PROBLEM: SHA1 on Allwinner V3s failed

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello.

[1.] One line summary of the problem:

SHA1 on Allwinner V3s failed

[2.] Full description of the problem/report:

I enabled support crypto engine (compatible with A31) to DT.
https://github.com/mcerveny/linux/commit/ec8069049ce44590d41e6a7efb3f0a41a7db05f0
When I enable "selftest" crypto the SHA1 fails all other seems to work.
https://github.com/mcerveny/linux/commit/1de17a919d53059e9e14228f09ca39a4eb572e51
Driver is:
drivers/crypto/allwinner/sun4i-ss/sun4i-ss-core.c
Other platforms using the same driver should be tested too.

[4.] Kernel information
[4.1.] Kernel version (from /proc/version):

Linux version 5.9.0-rc2-g1de17a919 (user@ubuntu1804) (arm-linux-gnueabihf-gcc (Ubuntu/Linaro 7.5.0-3ubuntu1~18.04) 7.5.0, GNU ld (GNU Binutils for Ubuntu) 2.30) #1 SMP Wed Aug 26 09:00:52 CEST 2020

[4.2.] Kernel .config file:

sunxi_defconfig with https://github.com/mcerveny/linux/commit/1de17a919d53059e9e14228f09ca39a4eb572e51

[6.] Output of Oops.. message (if applicable) with symbolic information
     resolved (see Documentation/admin-guide/bug-hunting.rst)

DMESG:
[    0.876684] sun4i-ss 1c15000.crypto: Die ID 7
[    0.885280] alg: ahash: sha1-sun4i-ss test failed (wrong result) on test vector 0, cfg="init+update+final aligned buffer"
[    0.925753] alg: No test for stdrng (sun4i_ss_rng)

[8.] Environment
[8.2.] Processor information (from /proc/cpuinfo):

processor	: 0
model name	: ARMv7 Processor rev 5 (v7l)
BogoMIPS	: 48.00
Features : half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt vfpd32 lpae evtstrm
CPU implementer	: 0x41
CPU architecture: 7
CPU variant	: 0x0
CPU part	: 0xc07
CPU revision	: 5

Hardware	: Allwinner sun8i Family
Revision	: 0000
Serial		: 12c00003a8a27b14

[8.7.] Other information that might be relevant to the problem
       (please look in /proc and include all information that you
       think to be relevant):

Attached benchmark test with "tcrypt" (console) - mode: 500,501,502,302(using sha1-generic not sha1-sun4i-ss),303
and /proc/crypto.
root@LicheePi:~# modprobe tcrypt mode=500 sec=1
[ 1269.762010] tcrypt: 
[ 1269.762010] testing speed of async ecb(aes) (ecb-aes-sun4i-ss) encryption
[ 1269.773029] tcrypt: test 0 (128 bit key, 16 byte blocks): 891169 operations in 1 seconds (14258704 bytes)
[ 1270.786278] tcrypt: test 1 (128 bit key, 64 byte blocks): 336967 operations in 1 seconds (21565888 bytes)
[ 1271.791682] tcrypt: test 2 (128 bit key, 256 byte blocks): 97397 operations in 1 seconds (24933632 bytes)
[ 1272.801813] tcrypt: test 3 (128 bit key, 1024 byte blocks): 25338 operations in 1 seconds (25946112 bytes)
[ 1273.811843] tcrypt: test 4 (128 bit key, 1472 byte blocks): 17697 operations in 1 seconds (26049984 bytes)
[ 1274.825104] tcrypt: test 5 (128 bit key, 8192 byte blocks): 3187 operations in 1 seconds (26107904 bytes)
[ 1275.832135] tcrypt: test 6 (192 bit key, 16 byte blocks): 809038 operations in 1 seconds (12944608 bytes)
[ 1276.842336] tcrypt: test 7 (192 bit key, 64 byte blocks): 295532 operations in 1 seconds (18914048 bytes)
[ 1277.852623] tcrypt: test 8 (192 bit key, 256 byte blocks): 83239 operations in 1 seconds (21309184 bytes)
[ 1278.862403] tcrypt: test 9 (192 bit key, 1024 byte blocks): 21509 operations in 1 seconds (22025216 bytes)
[ 1279.872879] tcrypt: test 10 (192 bit key, 1472 byte blocks): 15006 operations in 1 seconds (22088832 bytes)
[ 1280.882866] tcrypt: test 11 (192 bit key, 8192 byte blocks): 2689 operations in 1 seconds (22028288 bytes)
[ 1281.893135] tcrypt: test 12 (256 bit key, 16 byte blocks): 743375 operations in 1 seconds (11894000 bytes)
[ 1282.903001] tcrypt: test 13 (256 bit key, 64 byte blocks): 261605 operations in 1 seconds (16742720 bytes)
[ 1283.913333] tcrypt: test 14 (256 bit key, 256 byte blocks): 72744 operations in 1 seconds (18622464 bytes)
[ 1284.923266] tcrypt: test 15 (256 bit key, 1024 byte blocks): 18717 operations in 1 seconds (19166208 bytes)
[ 1285.933697] tcrypt: test 16 (256 bit key, 1472 byte blocks): 13054 operations in 1 seconds (19215488 bytes)
[ 1286.943633] tcrypt: test 17 (256 bit key, 8192 byte blocks): 2355 operations in 1 seconds (19292160 bytes)
[ 1287.953852] tcrypt: 
[ 1287.953852] testing speed of async ecb(aes) (ecb-aes-sun4i-ss) decryption
[ 1287.968110] tcrypt: test 0 (128 bit key, 16 byte blocks): 823952 operations in 1 seconds (13183232 bytes)
[ 1288.973781] tcrypt: test 1 (128 bit key, 64 byte blocks): 310251 operations in 1 seconds (19856064 bytes)
[ 1289.983314] tcrypt: test 2 (128 bit key, 256 byte blocks): 88338 operations in 1 seconds (22614528 bytes)
[ 1290.993409] tcrypt: test 3 (128 bit key, 1024 byte blocks): 22893 operations in 1 seconds (23442432 bytes)
[ 1292.026314] tcrypt: test 4 (128 bit key, 1472 byte blocks): 15938 operations in 1 seconds (23460736 bytes)
[ 1293.033121] tcrypt: test 5 (128 bit key, 8192 byte blocks): 2888 operations in 1 seconds (23658496 bytes)
[ 1294.044178] tcrypt: test 6 (192 bit key, 16 byte blocks): 768576 operations in 1 seconds (12297216 bytes)
[ 1295.053509] tcrypt: test 7 (192 bit key, 64 byte blocks): 273937 operations in 1 seconds (17531968 bytes)
[ 1296.063270] tcrypt: test 8 (192 bit key, 256 byte blocks): 76623 operations in 1 seconds (19615488 bytes)
[ 1297.073614] tcrypt: test 9 (192 bit key, 1024 byte blocks): 19746 operations in 1 seconds (20219904 bytes)
[ 1298.083354] tcrypt: test 10 (192 bit key, 1472 byte blocks): 13784 operations in 1 seconds (20290048 bytes)
[ 1299.093682] tcrypt: test 11 (192 bit key, 8192 byte blocks): 2471 operations in 1 seconds (20242432 bytes)
[ 1300.103465] tcrypt: test 12 (256 bit key, 16 byte blocks): 709288 operations in 1 seconds (11348608 bytes)
[ 1301.113555] tcrypt: test 13 (256 bit key, 64 byte blocks): 244739 operations in 1 seconds (15663296 bytes)
[ 1302.123348] tcrypt: test 14 (256 bit key, 256 byte blocks): 67603 operations in 1 seconds (17306368 bytes)
[ 1303.133546] tcrypt: test 15 (256 bit key, 1024 byte blocks): 17361 operations in 1 seconds (17777664 bytes)
[ 1304.143460] tcrypt: test 16 (256 bit key, 1472 byte blocks): 12112 operations in 1 seconds (17828864 bytes)
[ 1305.153761] tcrypt: test 17 (256 bit key, 8192 byte blocks): 2184 operations in 1 seconds (17891328 bytes)
[ 1306.163858] tcrypt: 
[ 1306.163858] testing speed of async cbc(aes) (cbc-aes-sun4i-ss) encryption
[ 1306.178104] tcrypt: test 0 (128 bit key, 16 byte blocks): 781704 operations in 1 seconds (12507264 bytes)
[ 1307.183867] tcrypt: test 1 (128 bit key, 64 byte blocks): 297738 operations in 1 seconds (19055232 bytes)
[ 1308.193257] tcrypt: test 2 (128 bit key, 256 byte blocks): 85936 operations in 1 seconds (21999616 bytes)
[ 1309.203447] tcrypt: test 3 (128 bit key, 1024 byte blocks): 22337 operations in 1 seconds (22873088 bytes)
[ 1310.213376] tcrypt: test 4 (128 bit key, 1472 byte blocks): 15602 operations in 1 seconds (22966144 bytes)
[ 1311.223566] tcrypt: test 5 (128 bit key, 8192 byte blocks): 2819 operations in 1 seconds (23093248 bytes)
[ 1312.233304] tcrypt: test 6 (192 bit key, 16 byte blocks): 719829 operations in 1 seconds (11517264 bytes)
[ 1313.243509] tcrypt: test 7 (192 bit key, 64 byte blocks): 263020 operations in 1 seconds (16833280 bytes)
[ 1314.253418] tcrypt: test 8 (192 bit key, 256 byte blocks): 74623 operations in 1 seconds (19103488 bytes)
[ 1315.263332] tcrypt: test 9 (192 bit key, 1024 byte blocks): 19309 operations in 1 seconds (19772416 bytes)
[ 1316.273532] tcrypt: test 10 (192 bit key, 1472 byte blocks): 13477 operations in 1 seconds (19838144 bytes)
[ 1317.283640] tcrypt: test 11 (192 bit key, 8192 byte blocks): 2414 operations in 1 seconds (19775488 bytes)
[ 1318.293748] tcrypt: test 12 (256 bit key, 16 byte blocks): 662288 operations in 1 seconds (10596608 bytes)
[ 1319.303401] tcrypt: test 13 (256 bit key, 64 byte blocks): 235340 operations in 1 seconds (15061760 bytes)
[ 1320.313458] tcrypt: test 14 (256 bit key, 256 byte blocks): 66043 operations in 1 seconds (16907008 bytes)
[ 1321.323438] tcrypt: test 15 (256 bit key, 1024 byte blocks): 17033 operations in 1 seconds (17441792 bytes)
[ 1322.356629] tcrypt: test 16 (256 bit key, 1472 byte blocks): 11849 operations in 1 seconds (17441728 bytes)
[ 1323.363694] tcrypt: test 17 (256 bit key, 8192 byte blocks): 2144 operations in 1 seconds (17563648 bytes)
[ 1324.374328] tcrypt: 
[ 1324.374328] testing speed of async cbc(aes) (cbc-aes-sun4i-ss) decryption
[ 1324.388582] tcrypt: test 0 (128 bit key, 16 byte blocks): 701178 operations in 1 seconds (11218848 bytes)
[ 1325.393605] tcrypt: test 1 (128 bit key, 64 byte blocks): 269466 operations in 1 seconds (17245824 bytes)
[ 1326.403399] tcrypt: test 2 (128 bit key, 256 byte blocks): 78473 operations in 1 seconds (20089088 bytes)
[ 1327.413430] tcrypt: test 3 (128 bit key, 1024 byte blocks): 20455 operations in 1 seconds (20945920 bytes)
[ 1328.423518] tcrypt: test 4 (128 bit key, 1472 byte blocks): 14290 operations in 1 seconds (21034880 bytes)
[ 1329.433453] tcrypt: test 5 (128 bit key, 8192 byte blocks): 2582 operations in 1 seconds (21151744 bytes)
[ 1330.443760] tcrypt: test 6 (192 bit key, 16 byte blocks): 650539 operations in 1 seconds (10408624 bytes)
[ 1331.453517] tcrypt: test 7 (192 bit key, 64 byte blocks): 242521 operations in 1 seconds (15521344 bytes)
[ 1332.463256] tcrypt: test 8 (192 bit key, 256 byte blocks): 69148 operations in 1 seconds (17701888 bytes)
[ 1333.473530] tcrypt: test 9 (192 bit key, 1024 byte blocks): 17910 operations in 1 seconds (18339840 bytes)
[ 1334.483337] tcrypt: test 10 (192 bit key, 1472 byte blocks): 12508 operations in 1 seconds (18411776 bytes)
[ 1335.493740] tcrypt: test 11 (192 bit key, 8192 byte blocks): 2242 operations in 1 seconds (18366464 bytes)
[ 1336.503499] tcrypt: test 12 (256 bit key, 16 byte blocks): 604265 operations in 1 seconds (9668240 bytes)
[ 1337.513543] tcrypt: test 13 (256 bit key, 64 byte blocks): 218236 operations in 1 seconds (13967104 bytes)
[ 1338.523344] tcrypt: test 14 (256 bit key, 256 byte blocks): 61623 operations in 1 seconds (15775488 bytes)
[ 1339.533564] tcrypt: test 15 (256 bit key, 1024 byte blocks): 15919 operations in 1 seconds (16301056 bytes)
[ 1340.543487] tcrypt: test 16 (256 bit key, 1472 byte blocks): 11113 operations in 1 seconds (16358336 bytes)
[ 1341.553753] tcrypt: test 17 (256 bit key, 8192 byte blocks): 2005 operations in 1 seconds (16424960 bytes)
[ 1342.605559] tcrypt: failed to load transform for lrw(aes): -2
[ 1342.657265] tcrypt: failed to load transform for lrw(aes): -2
[ 1342.708908] tcrypt: failed to load transform for xts(aes): -2
[ 1342.760956] tcrypt: failed to load transform for xts(aes): -2
[ 1342.812514] tcrypt: failed to load transform for cts(cbc(aes)): -2
[ 1342.864859] tcrypt: failed to load transform for cts(cbc(aes)): -2
[ 1342.916792] tcrypt: failed to load transform for ctr(aes): -2
[ 1342.968498] tcrypt: failed to load transform for ctr(aes): -2
[ 1343.020505] tcrypt: failed to load transform for cfb(aes): -2
[ 1343.072225] tcrypt: failed to load transform for cfb(aes): -2
[ 1343.123831] tcrypt: failed to load transform for ofb(aes): -2
[ 1343.175819] tcrypt: failed to load transform for ofb(aes): -2
[ 1343.227275] tcrypt: failed to load transform for rfc3686(ctr(aes)): -2
[ 1343.280145] tcrypt: failed to load transform for rfc3686(ctr(aes)): -2
modprobe: ERROR: could not insert 'tcrypt': Resource temporarily unavailable
root@LicheePi:~# modprobe tcrypt mode=501 sec=1
[ 1346.661764] tcrypt: 
[ 1346.661764] testing speed of async ecb(des3_ede) (ecb-des3-sun4i-ss) encryption
[ 1346.676520] tcrypt: test 0 (192 bit key, 16 byte blocks): 230579 operations in 1 seconds (3689264 bytes)
[ 1347.683738] tcrypt: test 1 (192 bit key, 64 byte blocks): 63565 operations in 1 seconds (4068160 bytes)
[ 1348.693243] tcrypt: test 2 (192 bit key, 256 byte blocks): 16304 operations in 1 seconds (4173824 bytes)
[ 1349.703258] tcrypt: test 3 (192 bit key, 1024 byte blocks): 4102 operations in 1 seconds (4200448 bytes)
[ 1350.715208] tcrypt: test 4 (192 bit key, 1472 byte blocks): 2850 operations in 1 seconds (4195200 bytes)
[ 1351.723446] tcrypt: test 5 (192 bit key, 8192 byte blocks): 514 operations in 1 seconds (4210688 bytes)
[ 1352.756950] tcrypt: 
[ 1352.756950] testing speed of async ecb(des3_ede) (ecb-des3-sun4i-ss) decryption
[ 1352.771639] tcrypt: test 0 (192 bit key, 16 byte blocks): 231059 operations in 1 seconds (3696944 bytes)
[ 1353.784039] tcrypt: test 1 (192 bit key, 64 byte blocks): 63355 operations in 1 seconds (4054720 bytes)
[ 1354.794038] tcrypt: test 2 (192 bit key, 256 byte blocks): 16248 operations in 1 seconds (4159488 bytes)
[ 1355.803313] tcrypt: test 3 (192 bit key, 1024 byte blocks): 4091 operations in 1 seconds (4189184 bytes)
[ 1356.813360] tcrypt: test 4 (192 bit key, 1472 byte blocks): 2848 operations in 1 seconds (4192256 bytes)
[ 1357.823326] tcrypt: test 5 (192 bit key, 8192 byte blocks): 513 operations in 1 seconds (4202496 bytes)
[ 1358.835019] tcrypt: 
[ 1358.835019] testing speed of async cbc(des3_ede) (cbc-des3-sun4i-ss) encryption
[ 1358.849561] tcrypt: test 0 (192 bit key, 16 byte blocks): 221627 operations in 1 seconds (3546032 bytes)
[ 1359.863547] tcrypt: test 1 (192 bit key, 64 byte blocks): 61091 operations in 1 seconds (3909824 bytes)
[ 1360.873067] tcrypt: test 2 (192 bit key, 256 byte blocks): 15702 operations in 1 seconds (4019712 bytes)
[ 1361.883230] tcrypt: test 3 (192 bit key, 1024 byte blocks): 3952 operations in 1 seconds (4046848 bytes)
[ 1362.893361] tcrypt: test 4 (192 bit key, 1472 byte blocks): 2751 operations in 1 seconds (4049472 bytes)
[ 1363.903242] tcrypt: test 5 (192 bit key, 8192 byte blocks): 495 operations in 1 seconds (4055040 bytes)
[ 1364.913809] tcrypt: 
[ 1364.913809] testing speed of async cbc(des3_ede) (cbc-des3-sun4i-ss) decryption
[ 1364.928418] tcrypt: test 0 (192 bit key, 16 byte blocks): 215317 operations in 1 seconds (3445072 bytes)
[ 1365.933541] tcrypt: test 1 (192 bit key, 64 byte blocks): 60746 operations in 1 seconds (3887744 bytes)
[ 1366.943071] tcrypt: test 2 (192 bit key, 256 byte blocks): 15678 operations in 1 seconds (4013568 bytes)
[ 1367.953365] tcrypt: test 3 (192 bit key, 1024 byte blocks): 3950 operations in 1 seconds (4044800 bytes)
[ 1368.963217] tcrypt: test 4 (192 bit key, 1472 byte blocks): 2751 operations in 1 seconds (4049472 bytes)
[ 1369.973450] tcrypt: test 5 (192 bit key, 8192 byte blocks): 495 operations in 1 seconds (4055040 bytes)
[ 1371.025637] tcrypt: failed to load transform for cfb(des3_ede): -2
[ 1371.077928] tcrypt: failed to load transform for cfb(des3_ede): -2
[ 1371.130205] tcrypt: failed to load transform for ofb(des3_ede): -2
[ 1371.182066] tcrypt: failed to load transform for ofb(des3_ede): -2
modprobe: ERROR: could not insert 'tcrypt': Resource temporarily unavailable
root@LicheePi:~# modprobe tcrypt mode=502 sec=1
[ 1389.341571] tcrypt: 
[ 1389.341571] testing speed of async ecb(des) (ecb-des-sun4i-ss) encryption
[ 1389.355719] tcrypt: test 0 (64 bit key, 16 byte blocks): 523517 operations in 1 seconds (8376272 bytes)
[ 1390.367296] tcrypt: test 1 (64 bit key, 64 byte blocks): 164461 operations in 1 seconds (10525504 bytes)
[ 1391.373484] tcrypt: test 2 (64 bit key, 256 byte blocks): 44209 operations in 1 seconds (11317504 bytes)
[ 1392.383186] tcrypt: test 3 (64 bit key, 1024 byte blocks): 11256 operations in 1 seconds (11526144 bytes)
[ 1393.393422] tcrypt: test 4 (64 bit key, 1472 byte blocks): 7842 operations in 1 seconds (11543424 bytes)
[ 1394.406102] tcrypt: test 5 (64 bit key, 8192 byte blocks): 1409 operations in 1 seconds (11542528 bytes)
[ 1395.413674] tcrypt: 
[ 1395.413674] testing speed of async ecb(des) (ecb-des-sun4i-ss) decryption
[ 1395.427757] tcrypt: test 0 (64 bit key, 16 byte blocks): 520607 operations in 1 seconds (8329712 bytes)
[ 1396.433343] tcrypt: test 1 (64 bit key, 64 byte blocks): 164868 operations in 1 seconds (10551552 bytes)
[ 1397.443377] tcrypt: test 2 (64 bit key, 256 byte blocks): 44185 operations in 1 seconds (11311360 bytes)
[ 1398.453156] tcrypt: test 3 (64 bit key, 1024 byte blocks): 11254 operations in 1 seconds (11524096 bytes)
[ 1399.463349] tcrypt: test 4 (64 bit key, 1472 byte blocks): 7843 operations in 1 seconds (11544896 bytes)
[ 1400.473153] tcrypt: test 5 (64 bit key, 8192 byte blocks): 1413 operations in 1 seconds (11575296 bytes)
[ 1401.483448] tcrypt: 
[ 1401.483448] testing speed of async cbc(des) (cbc-des-sun4i-ss) encryption
[ 1401.497444] tcrypt: test 0 (64 bit key, 16 byte blocks): 472478 operations in 1 seconds (7559648 bytes)
[ 1402.503412] tcrypt: test 1 (64 bit key, 64 byte blocks): 149557 operations in 1 seconds (9571648 bytes)
[ 1403.513041] tcrypt: test 2 (64 bit key, 256 byte blocks): 40020 operations in 1 seconds (10245120 bytes)
[ 1404.523277] tcrypt: test 3 (64 bit key, 1024 byte blocks): 10181 operations in 1 seconds (10425344 bytes)
[ 1405.533451] tcrypt: test 4 (64 bit key, 1472 byte blocks): 7094 operations in 1 seconds (10442368 bytes)
[ 1406.543106] tcrypt: test 5 (64 bit key, 8192 byte blocks): 1278 operations in 1 seconds (10469376 bytes)
[ 1407.553381] tcrypt: 
[ 1407.553381] testing speed of async cbc(des) (cbc-des-sun4i-ss) decryption
[ 1407.567453] tcrypt: test 0 (64 bit key, 16 byte blocks): 454186 operations in 1 seconds (7266976 bytes)
[ 1408.573517] tcrypt: test 1 (64 bit key, 64 byte blocks): 147850 operations in 1 seconds (9462400 bytes)
[ 1409.583055] tcrypt: test 2 (64 bit key, 256 byte blocks): 39972 operations in 1 seconds (10232832 bytes)
[ 1410.593217] tcrypt: test 3 (64 bit key, 1024 byte blocks): 10198 operations in 1 seconds (10442752 bytes)
[ 1411.603295] tcrypt: test 4 (64 bit key, 1472 byte blocks): 7109 operations in 1 seconds (10464448 bytes)
[ 1412.613300] tcrypt: test 5 (64 bit key, 8192 byte blocks): 1281 operations in 1 seconds (10493952 bytes)
[ 1413.687900] tcrypt: failed to load transform for cfb(des): -2
[ 1413.739913] tcrypt: failed to load transform for cfb(des): -2
[ 1413.791491] tcrypt: failed to load transform for ofb(des): -2
[ 1413.842809] tcrypt: failed to load transform for ofb(des): -2
modprobe: ERROR: could not insert 'tcrypt': Resource temporarily unavailable
root@LicheePi:~# modprobe tcrypt mode=303 sec=1
[ 1544.408105] 
[ 1544.408105] testing speed of async sha1 (sha1-generic)
[ 1544.418277] tcrypt: test  0 (   16 byte blocks,   16 bytes per update,   1 updates): 
[ 1545.409357] 506331 opers/sec,   8101296 bytes/sec
[ 1545.433223] tcrypt: test  1 (   64 byte blocks,   16 bytes per update,   4 updates): 220298 opers/sec,  14099072 bytes/sec
[ 1546.445828] tcrypt: test  2 (   64 byte blocks,   64 bytes per update,   1 updates): 
[ 1547.439357] 309043 opers/sec,  19778752 bytes/sec
[ 1547.458424] tcrypt: test  3 (  256 byte blocks,   16 bytes per update,  16 updates):  76869 opers/sec,  19678464 bytes/sec
[ 1548.466170] tcrypt: test  4 (  256 byte blocks,   64 bytes per update,   4 updates): 120119 opers/sec,  30750464 bytes/sec
[ 1549.478354] tcrypt: test  5 (  256 byte blocks,  256 bytes per update,   1 updates): 
[ 1550.469364] 140638 opers/sec,  36003328 bytes/sec
[ 1550.488025] tcrypt: test  6 ( 1024 byte blocks,   16 bytes per update,  64 updates):  21417 opers/sec,  21931008 bytes/sec
[ 1551.496176] tcrypt: test  7 ( 1024 byte blocks,  256 bytes per update,   4 updates):  42211 opers/sec,  43224064 bytes/sec
[ 1552.506162] tcrypt: test  8 ( 1024 byte blocks, 1024 bytes per update,   1 updates): 
[ 1553.499377]  44533 opers/sec,  45601792 bytes/sec
[ 1553.518012] tcrypt: test  9 ( 2048 byte blocks,   16 bytes per update, 128 updates):  10917 opers/sec,  22358016 bytes/sec
[ 1554.526003] tcrypt: test 10 ( 2048 byte blocks,  256 bytes per update,   8 updates):  21916 opers/sec,  44883968 bytes/sec
[ 1555.536107] tcrypt: test 11 ( 2048 byte blocks, 1024 bytes per update,   2 updates):  23011 opers/sec,  47126528 bytes/sec
[ 1556.546116] tcrypt: test 12 ( 2048 byte blocks, 2048 bytes per update,   1 updates): 
[ 1557.539393]  23291 opers/sec,  47699968 bytes/sec
[ 1557.558065] tcrypt: test 13 ( 4096 byte blocks,   16 bytes per update, 256 updates):   5512 opers/sec,  22577152 bytes/sec
[ 1558.566263] tcrypt: test 14 ( 4096 byte blocks,  256 bytes per update,  16 updates):  11169 opers/sec,  45748224 bytes/sec
[ 1559.576321] tcrypt: test 15 ( 4096 byte blocks, 1024 bytes per update,   4 updates):  11740 opers/sec,  48087040 bytes/sec
[ 1560.586262] tcrypt: test 16 ( 4096 byte blocks, 4096 bytes per update,   1 updates): 
[ 1561.579382]  11916 opers/sec,  48807936 bytes/sec
[ 1561.598165] tcrypt: test 17 ( 8192 byte blocks,   16 bytes per update, 512 updates):   2769 opers/sec,  22683648 bytes/sec
[ 1562.606453] tcrypt: test 18 ( 8192 byte blocks,  256 bytes per update,  32 updates):   5639 opers/sec,  46194688 bytes/sec
[ 1563.616371] tcrypt: test 19 ( 8192 byte blocks, 1024 bytes per update,   8 updates):   5931 opers/sec,  48586752 bytes/sec
[ 1564.626306] tcrypt: test 20 ( 8192 byte blocks, 4096 bytes per update,   2 updates):   6010 opers/sec,  49233920 bytes/sec
[ 1565.659309] tcrypt: test 21 ( 8192 byte blocks, 8192 bytes per update,   1 updates): 
[ 1566.649523]   5997 opers/sec,  49127424 bytes/sec
modprobe: ERROR: could not insert 'tcrypt': Resource temporarily unavailable
root@LicheePi:~# modprobe tcrypt mode=302 sec=1
[ 1570.710738] 
[ 1570.710738] testing speed of async md5 (md5-sun4i-ss)
[ 1570.720725] tcrypt: test  0 (   16 byte blocks,   16 bytes per update,   1 updates): 
[ 1571.719358] 294726 opers/sec,   4715616 bytes/sec
[ 1571.742460] tcrypt: test  1 (   64 byte blocks,   16 bytes per update,   4 updates): 109572 opers/sec,   7012608 bytes/sec
[ 1572.755621] tcrypt: test  2 (   64 byte blocks,   64 bytes per update,   1 updates): 
[ 1573.749356] 247592 opers/sec,  15845888 bytes/sec
[ 1573.768473] tcrypt: test  3 (  256 byte blocks,   16 bytes per update,  16 updates):  36653 opers/sec,   9383168 bytes/sec
[ 1574.776059] tcrypt: test  4 (  256 byte blocks,   64 bytes per update,   4 updates):  52022 opers/sec,  13317632 bytes/sec
[ 1575.788169] tcrypt: test  5 (  256 byte blocks,  256 bytes per update,   1 updates): 
[ 1576.779363] 177997 opers/sec,  45567232 bytes/sec
[ 1576.797959] tcrypt: test  6 ( 1024 byte blocks,   16 bytes per update,  64 updates):  10053 opers/sec,  10294272 bytes/sec
[ 1577.806174] tcrypt: test  7 ( 1024 byte blocks,  256 bytes per update,   4 updates):  37973 opers/sec,  38884352 bytes/sec
[ 1578.816321] tcrypt: test  8 ( 1024 byte blocks, 1024 bytes per update,   1 updates): 
[ 1579.809363]  81707 opers/sec,  83667968 bytes/sec
[ 1579.827987] tcrypt: test  9 ( 2048 byte blocks,   16 bytes per update, 128 updates):   5108 opers/sec,  10461184 bytes/sec
[ 1580.836205] tcrypt: test 10 ( 2048 byte blocks,  256 bytes per update,   8 updates):  20577 opers/sec,  42141696 bytes/sec
[ 1581.845974] tcrypt: test 11 ( 2048 byte blocks, 1024 bytes per update,   2 updates):  36004 opers/sec,  73736192 bytes/sec
[ 1582.856216] tcrypt: test 12 ( 2048 byte blocks, 2048 bytes per update,   1 updates): 
[ 1583.849356]  47458 opers/sec,  97193984 bytes/sec
[ 1583.867891] tcrypt: test 13 ( 4096 byte blocks,   16 bytes per update, 256 updates):   2576 opers/sec,  10551296 bytes/sec
[ 1584.876510] tcrypt: test 14 ( 4096 byte blocks,  256 bytes per update,  16 updates):  10614 opers/sec,  43474944 bytes/sec
[ 1585.886117] tcrypt: test 15 ( 4096 byte blocks, 1024 bytes per update,   4 updates):  19074 opers/sec,  78127104 bytes/sec
[ 1586.896318] tcrypt: test 16 ( 4096 byte blocks, 4096 bytes per update,   1 updates): 
[ 1587.889382]  25837 opers/sec, 105828352 bytes/sec
[ 1587.908027] tcrypt: test 17 ( 8192 byte blocks,   16 bytes per update, 512 updates):   1293 opers/sec,  10592256 bytes/sec
[ 1588.916453] tcrypt: test 18 ( 8192 byte blocks,  256 bytes per update,  32 updates):   5398 opers/sec,  44220416 bytes/sec
[ 1589.926207] tcrypt: test 19 ( 8192 byte blocks, 1024 bytes per update,   8 updates):   9823 opers/sec,  80470016 bytes/sec
[ 1590.936365] tcrypt: test 20 ( 8192 byte blocks, 4096 bytes per update,   2 updates):  12382 opers/sec, 101433344 bytes/sec
[ 1591.946236] tcrypt: test 21 ( 8192 byte blocks, 8192 bytes per update,   1 updates): 
[ 1592.939390]  13511 opers/sec, 110682112 bytes/sec
modprobe: ERROR: could not insert 'tcrypt': Resource temporarily unavailable


root@LicheePi:~# cat /proc/crypto 
name         : stdrng
driver       : sun4i_ss_rng
module       : kernel
priority     : 300
refcnt       : 1
selftest     : passed
internal     : no
type         : rng
seedsize     : 24

name         : ecb(des3_ede)
driver       : ecb(des3_ede-generic)
module       : kernel
priority     : 100
refcnt       : 1
selftest     : passed
internal     : no
type         : skcipher
async        : no
blocksize    : 8
min keysize  : 24
max keysize  : 24
ivsize       : 0
chunksize    : 8
walksize     : 8

name         : ecb(des3_ede)
driver       : ecb-des3-sun4i-ss
module       : kernel
priority     : 300
refcnt       : 1
selftest     : passed
internal     : no
type         : skcipher
async        : no
blocksize    : 8
min keysize  : 24
max keysize  : 24
ivsize       : 0
chunksize    : 8
walksize     : 8

name         : cbc(des3_ede)
driver       : cbc(des3_ede-generic)
module       : kernel
priority     : 100
refcnt       : 1
selftest     : passed
internal     : no
type         : skcipher
async        : no
blocksize    : 8
min keysize  : 24
max keysize  : 24
ivsize       : 8
chunksize    : 8
walksize     : 8

name         : cbc(des3_ede)
driver       : cbc-des3-sun4i-ss
module       : kernel
priority     : 300
refcnt       : 1
selftest     : passed
internal     : no
type         : skcipher
async        : no
blocksize    : 8
min keysize  : 24
max keysize  : 24
ivsize       : 8
chunksize    : 8
walksize     : 8

name         : ecb(des)
driver       : ecb(des-generic)
module       : kernel
priority     : 100
refcnt       : 1
selftest     : passed
internal     : no
type         : skcipher
async        : no
blocksize    : 8
min keysize  : 8
max keysize  : 8
ivsize       : 0
chunksize    : 8
walksize     : 8

name         : ecb(des)
driver       : ecb-des-sun4i-ss
module       : kernel
priority     : 300
refcnt       : 1
selftest     : passed
internal     : no
type         : skcipher
async        : no
blocksize    : 8
min keysize  : 8
max keysize  : 8
ivsize       : 0
chunksize    : 8
walksize     : 8

name         : cbc(des)
driver       : cbc(des-generic)
module       : kernel
priority     : 100
refcnt       : 1
selftest     : passed
internal     : no
type         : skcipher
async        : no
blocksize    : 8
min keysize  : 8
max keysize  : 8
ivsize       : 8
chunksize    : 8
walksize     : 8

name         : cbc(des)
driver       : cbc-des-sun4i-ss
module       : kernel
priority     : 300
refcnt       : 1
selftest     : passed
internal     : no
type         : skcipher
async        : no
blocksize    : 8
min keysize  : 8
max keysize  : 8
ivsize       : 8
chunksize    : 8
walksize     : 8

name         : ecb(aes)
driver       : ecb(aes-generic)
module       : kernel
priority     : 100
refcnt       : 1
selftest     : passed
internal     : no
type         : skcipher
async        : no
blocksize    : 16
min keysize  : 16
max keysize  : 32
ivsize       : 0
chunksize    : 16
walksize     : 16

name         : ecb(aes)
driver       : ecb-aes-sun4i-ss
module       : kernel
priority     : 300
refcnt       : 1
selftest     : passed
internal     : no
type         : skcipher
async        : no
blocksize    : 16
min keysize  : 16
max keysize  : 32
ivsize       : 0
chunksize    : 16
walksize     : 16

name         : cbc(aes)
driver       : cbc(aes-generic)
module       : kernel
priority     : 100
refcnt       : 1
selftest     : passed
internal     : no
type         : skcipher
async        : no
blocksize    : 16
min keysize  : 16
max keysize  : 32
ivsize       : 16
chunksize    : 16
walksize     : 16

name         : cbc(aes)
driver       : cbc-aes-sun4i-ss
module       : kernel
priority     : 300
refcnt       : 1
selftest     : passed
internal     : no
type         : skcipher
async        : no
blocksize    : 16
min keysize  : 16
max keysize  : 32
ivsize       : 16
chunksize    : 16
walksize     : 16

name         : sha1
driver       : sha1-sun4i-ss
module       : kernel
priority     : 300
refcnt       : 1
selftest     : unknown
internal     : no
type         : ahash
async        : no
blocksize    : 64
digestsize   : 20

name         : md5
driver       : md5-sun4i-ss
module       : kernel
priority     : 300
refcnt       : 1
selftest     : passed
internal     : no
type         : ahash
async        : no
blocksize    : 64
digestsize   : 16

name         : crc32c
driver       : crc32c-generic
module       : kernel
priority     : 100
refcnt       : 3
selftest     : passed
internal     : no
type         : shash
blocksize    : 1
digestsize   : 4

name         : aes
driver       : aes-generic
module       : kernel
priority     : 100
refcnt       : 1
selftest     : passed
internal     : no
type         : cipher
blocksize    : 16
min keysize  : 16
max keysize  : 32

name         : des3_ede
driver       : des3_ede-generic
module       : kernel
priority     : 100
refcnt       : 1
selftest     : passed
internal     : no
type         : cipher
blocksize    : 8
min keysize  : 24
max keysize  : 24

name         : des
driver       : des-generic
module       : kernel
priority     : 100
refcnt       : 1
selftest     : passed
internal     : no
type         : cipher
blocksize    : 8
min keysize  : 8
max keysize  : 8

name         : sha1
driver       : sha1-generic
module       : kernel
priority     : 100
refcnt       : 1
selftest     : passed
internal     : no
type         : shash
blocksize    : 64
digestsize   : 20

name         : md5
driver       : md5-generic
module       : kernel
priority     : 0
refcnt       : 1
selftest     : passed
internal     : no
type         : shash
blocksize    : 64
digestsize   : 16

name         : ecb(cipher_null)
driver       : ecb-cipher_null
module       : kernel
priority     : 100
refcnt       : 1
selftest     : passed
internal     : no
type         : skcipher
async        : no
blocksize    : 1
min keysize  : 0
max keysize  : 0
ivsize       : 0
chunksize    : 1
walksize     : 1

name         : digest_null
driver       : digest_null-generic
module       : kernel
priority     : 0
refcnt       : 1
selftest     : passed
internal     : no
type         : shash
blocksize    : 1
digestsize   : 0

name         : compress_null
driver       : compress_null-generic
module       : kernel
priority     : 0
refcnt       : 1
selftest     : passed
internal     : no
type         : compression

name         : cipher_null
driver       : cipher_null-generic
module       : kernel
priority     : 0
refcnt       : 1
selftest     : passed
internal     : no
type         : cipher
blocksize    : 1
min keysize  : 0
max keysize  : 0


[Index of Archives]     [Kernel]     [Gnu Classpath]     [Gnu Crypto]     [DM Crypt]     [Netfilter]     [Bugtraq]

  Powered by Linux