Geode AES, OpenSSL and Cryptodev for linux

I've used OCF linux before and it is very cool, however its BSD license taints the linux kernel.

http://www.logix.cz/michal/devel/cryptodev/index.xp?show_selected=1&msgid=4534

Of course this patch is for 2.6.8 and I'm using 2.6.26, and am getting this error:

crypto/cryptodev.c:74: error: CRYPTO_TFM_MODE_ECB undeclared here (not in a function)
crypto/cryptodev.c:74: error: array index in initializer not of integer type
crypto/cryptodev.c:74: error: (near initialization for crypto_cipher_modes)
crypto/cryptodev.c:75: error: CRYPTO_TFM_MODE_CBC undeclared here (not in a function)
crypto/cryptodev.c:75: error: array index in initializer not of integer type
crypto/cryptodev.c:75: error: (near initialization for crypto_cipher_modes)
crypto/cryptodev.c:76: error: CRYPTO_TFM_MODE_CFB undeclared here (not in a function)
crypto/cryptodev.c:76: error: array index in initializer not of integer type
crypto/cryptodev.c:76: error: (near initialization for crypto_cipher_modes)
crypto/cryptodev.c:77: error: CRYPTO_TFM_MODE_CTR undeclared here (not in a function)
crypto/cryptodev.c:77: error: array index in initializer not of integer type
crypto/cryptodev.c:77: error: (near initialization for crypto_cipher_modes)

Obviously a lot has changed in the kernel from 2.6.8. I'm not sure how to proceed - maybe I should look at the 2.6.8 code, or I should just start editing the cryptodev.c / cryptodev.h.

There might be a chance that Michal's code gets adopted into the kernel. That would be awesome. More info: http://www.docunext.com/wiki/MichalLudvigCryptodev


By on February 14, 2009 2:40 PM

Categories:

1 Comment

Hi,
I am trying to use this patch on 2.6.26 kernel giving the same error as above. I think CRYPTO_TFM_MODE_ECB macro is not present in crypto.h from 2.6.21. So, I am getting same error even after using Michal's code changes.

Could some buddy help me in this? May be i am missing some thing.

Thanks,
~Pankaj Singh