Skip to content
Advertisement

Tag: aes

linux kernel crypto API for ECB AES

I am trying to write a sample code for using linux kernel crypto userspace interface. And I do found a example really helped me a lot, thanks to nibrunie: This is quite useful for CBC AES, but not for ECB AES. For What I understand, the variable iov is for Plaintext, iv for initialization Vector, and call ALG_SET_KEY for key.

File Encryption/Decryption with AES using Linux

I’m using the OpenWrt Linux distribution and I want to encrypt a file using AES. How can I do that quickly and easily, and how can I—or someone else—decrypt it again? Answer The quickest and easiest way is to use openssl util (provided by openssl-util package). For example, to encrypt a file, issue the following command: To decrypt:

Advertisement