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

Popular posts from this blog

java - Spring Data JPA: Why findOne(id) executing delete query internally? -

python - Mongodb How to add addtional information when aggregating? -

java - Incorrect order of records in M-M relationship in hibernate -