Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
CryptoAPI on 2.6.5 problem
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
gentoo_server
n00b
n00b


Joined: 12 Jun 2004
Posts: 5

PostPosted: Sat Jun 12, 2004 8:57 pm    Post subject: CryptoAPI on 2.6.5 problem Reply with quote

Hello!

I've compiled CryptoAPI in kernel 2.6.5-gentoo-r1, but when I try to run "modprobe sha1" or "modprobe arc4" or something similar I got an error:
FATAL: Error inserting sha1 (/lib/modules/2.6.5-gentoo-r1/kernel/crypto/sha1.ko): Unknown symbol in module, or unknown parameter (see dmesg)

dmesg says:
"sha1: Unknown symbol crypto_unregister_alg
sha1: Unknown symbol crypto_register_alg"

Please help me how to fix it. Thank you.
Back to top
View user's profile Send private message
drakos7
Apprentice
Apprentice


Joined: 21 Feb 2003
Posts: 294
Location: Rockville, MD, USA, Earth, Sol

PostPosted: Tue Aug 24, 2004 4:20 pm    Post subject: Reply with quote

Same problem here for kernel 2.6.7 (gentoo-dev-sources-r13) when trying to probe arc4. I wonder if I need to reboot to have it work.... Shouldn't of course.
Back to top
View user's profile Send private message
wmgoree
Apprentice
Apprentice


Joined: 08 Aug 2003
Posts: 246
Location: Alexandria, VA

PostPosted: Fri Mar 04, 2005 3:22 am    Post subject: You didn't enable crypto Reply with quote

In one of the weirder decisions of kernel configuration, you are able to compile the crypto algorithm modules without enabling the crypto api (the part of the kernel that knows how to register a crypto algorithm). So, you have perfectly good modules but your kernel doesn't know what to do with them, hence the unknown symbol complaint.

Unfortunately, you can't load the crypto api as a module in 2.6 (to my knowledge). You need to recompile your kernel and make sure that CONFIG_CRYPT is set to "Y" -- and be careful: some of the config programs (particularly gconfig) have problems letting you select it.
_________________
vi? *snicker* it doesn't even include a mail reader...
Back to top
View user's profile Send private message
[Lx]-=Mystify=-
Apprentice
Apprentice


Joined: 16 Mar 2004
Posts: 180

PostPosted: Mon Mar 06, 2006 11:56 am    Post subject: Reply with quote

hm that's strange...

i can't load aes-i586 or serpent with the same failures, while crypto api is configured in my kernel[code]#
# Cryptographic options
#
CONFIG_CRYPTO=y
# CONFIG_CRYPTO_HMAC is not set
# CONFIG_CRYPTO_NULL is not set
# CONFIG_CRYPTO_MD4 is not set
# CONFIG_CRYPTO_MD5 is not set
# CONFIG_CRYPTO_SHA1 is not set
# CONFIG_CRYPTO_SHA256 is not set
# CONFIG_CRYPTO_SHA512 is not set
# CONFIG_CRYPTO_WP512 is not set
# CONFIG_CRYPTO_TGR192 is not set
# CONFIG_CRYPTO_DES is not set
# CONFIG_CRYPTO_BLOWFISH is not set
# CONFIG_CRYPTO_TWOFISH is not set
CONFIG_CRYPTO_SERPENT=m
CONFIG_CRYPTO_AES_586=m
# CONFIG_CRYPTO_CAST5 is not set
# CONFIG_CRYPTO_CAST6 is not set
# CONFIG_CRYPTO_TEA is not set
# CONFIG_CRYPTO_ARC4 is not set
# CONFIG_CRYPTO_KHAZAD is not set
# CONFIG_CRYPTO_ANUBIS is not set
# CONFIG_CRYPTO_DEFLATE is not set
# CONFIG_CRYPTO_MICHAEL_MIC is not set
CONFIG_CRYPTO_CRC32C=m
# CONFIG_CRYPTO_TEST is not set
[/quote]

the only thing that loads fine is the libcrc32c module...

any suggestions???
and as alwas (in companies) it should work since yesterday :roll:

the strange thing about it that /proc/crypto does not exist...

maybe i done a failure while setting up (haven't started the new kernel or such things).
_________________
DARK IS NOT THE OPPISITE OF LIGHT
IT'S THE ABSENCE OF LIGHT
Back to top
View user's profile Send private message
[Lx]-=Mystify=-
Apprentice
Apprentice


Joined: 16 Mar 2004
Posts: 180

PostPosted: Mon Mar 06, 2006 12:06 pm    Post subject: Reply with quote

ok, all the sys admin fault...

selecting the dm-crypt modules in kernel tree automatically selected the crypto api, but i wasn't aware that i have to boot the new kernel...

now everything works fine...
_________________
DARK IS NOT THE OPPISITE OF LIGHT
IT'S THE ABSENCE OF LIGHT
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum