Compromising electromagnetic emanations: Side-channel leakages in embedded devices