Skip to content
Advertisement

Tag: cryptoapi

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.

System crash with Linux CryptoApi Module

I tried to write Linux kernel module with cryptoapi. I found some examples like this: https://codedream.me/2014/04/cryptoapi-linux-kernel/ This example is working for me. Then I made some changes. Now my system crashes, when I try to load module. Can you help me with this? When variable len = 1000, module is loaded normal. But if I change it on len =

Advertisement