Jump to content

Cryptsetup and USB audio in vanilla kernel


disconnect

Recommended Posts

Yes, probably (untested), with self compiled branch DEV. I think none of this is present in build accessible from Armbian repository. Yet. USB audio used to be, but droped out by accident

for crypto, it will work with kernel 4.3.3 and later (so next and dev Armbian)

 

for the prng, you will need the patch from Corentin Labbe http://sunxi.montjoie.ovh/

=> http://sunxi.montjoie.ovh/patchs_current/0001-crypto-sun4i-ss-support-the-Security-System-PRNG.patch

 

Corentin has made a nice tool to test https://github.com/montjoie/cryptotest

 

There is some errors yet, he wrote me there are some general kernel pending issues. But working.

 

FYI

 

I have done my A20 prng testing

 

posted some results here (very old "diehard" tool) http://www.cacert.at/cgi-bin/rngresults(search 2 proper results with "sunxi")

and there (old "dieharder" csprng tool) http://forum.armbian.com/index.php/topic/404-stable-vs-mainline-for-next/?hl=diehard#entry2558

Link to comment
Share on other sites

EDIT: Igor replied before I post my message :P

 

@disconnect

 

for the crypto part, it is already with Armbian vanilla version (kernel 4.3.3) but the Hardware PRNG patch is not applied (all the hardware prng won't be included in the linux kernel if the vendor do not provide a proper datasheet/spec, as there is a potential security threat)

 

for the audio part, Igor worked on it, there was a git problem, now Zador seems to be working on with kernel 4.4.x so possibly available when the vanilla version moves to kernel 4.4

Link to comment
Share on other sites

@disconnect

I already wrote full board list somewhere, don't remember in which topic.

Onboard analog audio (output only) will be available in kernel 4.4: on cubieboard, cubieboard 2, cubietruck; also on some other boards with patches backported from 4.5. Support for USB audio cards was removed by mistake and it should be available in next kernel release, not depending on exact kernel version.

 

About cryptsetup - are you talking about sunxi-ss crypto engine or are there any other missing modules or kernel features?

Link to comment
Share on other sites

I'm talking about cryptsetup (dm-crypt, LUKS). I can't mount my encrypted HDD as it isn't works at all. Just try cryptsetup benchmark, all of the encrypt/decrypt tests will return N/A, and you will see that the crypto something module is not loaded. On legacy kernel all works, probably from software, as the max encrypt/decrypt speed is ~20 mbytes/sec.

Link to comment
Share on other sites

 

 

➜  ~  % _ cryptsetup benchmark
# Tests are approximate using memory only (no storage IO).
PBKDF2-sha1        38550 iterations per second for 256-bit key
PBKDF2-sha256      52851 iterations per second for 256-bit key
PBKDF2-sha512      26640 iterations per second for 256-bit key
PBKDF2-ripemd160   38102 iterations per second for 256-bit key
PBKDF2-whirlpool    6350 iterations per second for 256-bit key
#  Algorithm | Key |  Encryption |  Decryption
     aes-cbc   128b    25,8 MiB/s    26,4 MiB/s
 serpent-cbc   128b    11,0 MiB/s    12,9 MiB/s
 twofish-cbc   128b    17,8 MiB/s    20,7 MiB/s
     aes-cbc   256b    26,5 MiB/s    26,6 MiB/s
 serpent-cbc   256b    11,7 MiB/s    12,8 MiB/s
 twofish-cbc   256b    18,7 MiB/s    20,5 MiB/s
     aes-xts   256b    13,8 MiB/s    15,1 MiB/s
 serpent-xts   256b    11,2 MiB/s    12,6 MiB/s
 twofish-xts   256b    19,1 MiB/s    20,0 MiB/s
     aes-xts   512b    13,0 MiB/s    12,7 MiB/s
 serpent-xts   512b    12,0 MiB/s    12,6 MiB/s
 twofish-xts   512b    19,9 MiB/s    20,0 MiB/s
sudo cryptsetup benchmark  8,74s user 24,21s system 97% cpu 33,629 total
➜  ~  %

 

 

BTW, you can find link to a prebuilt 4.4 sunxi-dev kernel if you want to use it ahead of schedule here.

Just remember that it's a dev branch, so you probably will need to uninstall your existing kernel and dtb packages before (if you are using "next" branch now) and install these (image and dtb packages at least) right after that.

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines