Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Problem with cryptsetup bechmark
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
snsmac
n00b
n00b


Joined: 28 May 2015
Posts: 3

PostPosted: Thu Apr 28, 2016 9:54 am    Post subject: Problem with cryptsetup bechmark Reply with quote

Hello,

i have the problem that when i run crypsetup benchmark on the install-live-cd i do not get results for the chiphers (e.g. aes-xts)

Code:

livecd ~ # cryptsetup benchmark
# Tests are approximate using memory only (no storage IO).
PBKDF2-sha1      1028015 iterations per second
PBKDF2-sha256     655360 iterations per second
PBKDF2-sha512     429744 iterations per second
PBKDF2-ripemd160  602629 iterations per second
PBKDF2-whirlpool  198593 iterations per second
Required kernel crypto interface not available.
Ensure you have algif_skcipher kernel module loaded.


There is no kernel module algif_skcipher. I loaded dm-crypt and dm-mod

snsmac
Back to top
View user's profile Send private message
frostschutz
Advocate
Advocate


Joined: 22 Feb 2005
Posts: 2970
Location: Germany

PostPosted: Thu Apr 28, 2016 10:59 am    Post subject: Reply with quote

Check /lib/modules for crypto modules, for example aes (find -name "*aes*.ko" /lib/) or whatever.

Then go to the dir those modules are in and modprobe everything that's in there.

If the problem persists go for another live cd, you can use any cd to install gentoo, no point in wasting time with one that does not work for you
Back to top
View user's profile Send private message
SarahS93
Guru
Guru


Joined: 21 Nov 2013
Posts: 469

PostPosted: Wed Mar 07, 2018 9:06 pm    Post subject: Reply with quote

I have the same problem here, but i run not from a livecd.
cryptsetup runs fine, i will run a benchmark but i have the same errormessage:
"Required kernel crypto interface not available.
Ensure you have algif_skcipher kernel module loaded. "
I have build all modules into the kernel. How can i do a benchmark?
Back to top
View user's profile Send private message
SarahS93
Guru
Guru


Joined: 21 Nov 2013
Posts: 469

PostPosted: Fri Mar 09, 2018 7:19 pm    Post subject: Reply with quote

How can i run a benchmark?!
Back to top
View user's profile Send private message
blopsalot
Apprentice
Apprentice


Joined: 28 Jan 2017
Posts: 231

PostPosted: Fri Mar 09, 2018 8:34 pm    Post subject: Reply with quote

Code:
cryptsetup benchmark


oh i misread, follow frostschutz instructions. modprobe the kernel modules

Code:
find /lib/modules/ -type f -iname '*.o' -or -iname '*.ko' | less
Back to top
View user's profile Send private message
SarahS93
Guru
Guru


Joined: 21 Nov 2013
Posts: 469

PostPosted: Fri Mar 09, 2018 9:13 pm    Post subject: Reply with quote

There are no modules

Code:
/lib/modules/4.12.12-gentoo/video/nvidia.ko
/lib/modules/4.12.12-gentoo/kernel/drivers/thermal/x86_pkg_temp_thermal.ko
/lib/modules/4.12.12-gentoo/kernel/fs/efivarfs/efivarfs.ko
/lib/modules/4.12.12-gentoo/kernel/net/bridge/br_netfilter.ko
/lib/modules/4.14.8-gentoo-r1/kernel/drivers/thermal/x86_pkg_temp_thermal.ko
/lib/modules/4.14.8-gentoo-r1/kernel/fs/efivarfs/efivarfs.ko
/lib/modules/4.14.8-gentoo-r1/kernel/net/bridge/br_netfilter.ko


Thats all at my system.
Back to top
View user's profile Send private message
blopsalot
Apprentice
Apprentice


Joined: 28 Jan 2017
Posts: 231

PostPosted: Fri Mar 09, 2018 9:15 pm    Post subject: Reply with quote

whats output of this exactly?
Code:
cryptsetup benchmark
Back to top
View user's profile Send private message
SarahS93
Guru
Guru


Joined: 21 Nov 2013
Posts: 469

PostPosted: Fri Mar 09, 2018 9:34 pm    Post subject: Reply with quote

If i run "cryptsetup benchmark" than comes this error:
Code:
# Die Tests sind nur annähernd genau, da sie nicht auf den Datenträger zugreifen.
PBKDF2-sha1      1018034 iterations per second for 256-bit key
PBKDF2-sha256    1310720 iterations per second for 256-bit key
PBKDF2-sha512     826952 iterations per second for 256-bit key
PBKDF2-ripemd160  684449 iterations per second for 256-bit key
PBKDF2-whirlpool  513001 iterations per second for 256-bit key
Die benötigte Crypto-Kernel-Schnittstelle ist nicht verfügbar.
Stellen Sie sicher, dass das Kernelmodul »algif_skcipher« geladen ist.
Back to top
View user's profile Send private message
blopsalot
Apprentice
Apprentice


Joined: 28 Jan 2017
Posts: 231

PostPosted: Fri Mar 09, 2018 9:39 pm    Post subject: Reply with quote

https://wiki.gentoo.org/wiki/Dm-crypt#Kernel_Configuration
Back to top
View user's profile Send private message
PrSo
Tux's lil' helper
Tux's lil' helper


Joined: 01 Jun 2017
Posts: 128

PostPosted: Fri Mar 09, 2018 9:50 pm    Post subject: Reply with quote

Probably you have to enable in menuconfig:

Code:
Cryptographic API -> User-space interface for symmetric key cipher algorithms


CONFIG_CRYPTO_USER_API_SKCIPHER=y
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo 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