encryption - AES decrypt with encrypt hardware -
i using nordic nrf51822 chip, has aes encrypt hardware support, no decrypt hardware support, come following method sender -> xor(data, aes(xor(salt, counter = 1)) -> receiver receiver able xor data. there better way, i.e. if aes symmetric, can 2 encryption original data?
what describe similar standard counter (ctr) mode of operation. indeed, hardware have, mode of operation requires aes encrypt function can used, e.g. cipher feedback (cfb) , output feedback (ofb).
i suggest use 1 of standard modes described above, rather rolling own, ill-advised when comes cryptography.
Comments
Post a Comment