Bug 1193438 - dd_rescue tests failure against openssl 3.x
Summary: dd_rescue tests failure against openssl 3.x
Status: IN_PROGRESS
Alias: None
Product: openSUSE Tumbleweed
Classification: openSUSE
Component: Other (show other bugs)
Version: Current
Hardware: Other Other
: P5 - None : Normal (vote)
Target Milestone: ---
Assignee: Kurt Garloff
QA Contact: E-mail List
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-12-06 14:19 UTC by Dirk Mueller
Modified: 2024-01-10 18:09 UTC (History)
0 users

See Also:
Found By: ---
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Dirk Mueller 2021-12-06 14:19:28 UTC
building dd_rescue against openssl 3.x fails with:

  87s] # TODO: Move previous cases into script ...
[   87s] HAVE_LZO=1 HAVE_OPENSSL=1 HAVE_AES=1 ./test_crypt.sh
[   87s] #We will eat a lot of entropy ... hopefully you have some left afterwards!
[   87s] test_aes -s -w AES128-CTR 50000 0 15392
[   87s] CPU Features: SSE2 1 SSE4.2 1 AES 0 RDRAND 0 AVX2 0 VAES 0
[   87s] 
[   87s] Memcpy    :  0.109s ( 28287MB/s) 
[   87s] ===> AES tests/benchmark (15392) PAD_ZERO <===
[   87s] * AES_C AES128-CTR (128, 10, 176) pad 0/0
[   87s] EKey setup:  0.003s (  1479MB/s) 74c3ce266f8146d2 
[   87s] Encrypt   :  0.734s (   131MB/s) 15392->15392: 0 c23834336c6c6148 
[   87s] DKey setup:  0.003s (  1484MB/s) 74c3ce266f8146d2 
[   87s] Decrypt   :  0.740s (   130MB/s) 15392->15392: 0 c23834336c6c6148 
[   87s] * OSSL  AES128-CTR (128, 10, 8) pad 0/0
[   87s] EKey setup:  0.114s (   154MB/s) f000000000000000 
[   87s] Encrypt   : test_aes: aes_ossl11.c:57: AES_OSSL_Recycle: Assertion `ectx->oiv == EVP_CIPHER_CTX_original_iv(*evpctx)' failed.
[   87s] ./test_crypt.sh: line 66:  4740 Aborted                 $VG ./test_aes -s -w AES128-CTR 50000 0 15392
[   87s] ./test_aes AES192-ECB 10 0 0
[   87s] ./test_crypt.sh: line 63:  4742 Aborted                 $VG ./test_aes $ALG 10 0 $len > $LOG 2>&1
[   87s] CPU Features: SSE2 1 SSE4.2 1 AES 0 RDRAND 0 AVX2 0 VAES 0
[   87s] 
[   87s] Memcpy    :  0.000s (     0MB/s) 
[   87s] ===> AES tests/benchmark (0) PAD_ZERO <===
[   87s] * AES_C AES192-ECB (192, 12, 208) pad 0/0
[   87s] EKey setup:  0.000s (   621MB/s) 746789bcfa469b85 
[   87s] Encrypt   :  0.000s (     0MB/s) 0->0: 0 003534336c6c6148 
[   87s] DKey setup:  0.000s (   415MB/s) 8547a0ecb2d90b74 
[   87s] Decrypt   :  0.000s (     0MB/s) 0->0: 0 003534336c6c6148 
[   87s] * OSSL  AES192-ECB (192, 12, 8) pad 0/0
[   87s] EKey setup:  0.004s (     1MB/s) 8000000000000000 
[   87s] Encrypt   : test_aes: aes_ossl11.c:57: AES_OSSL_Recycle: Assertion `ectx->oiv == EVP_CIPHER_CTX_original_iv(*evpctx)' failed.
[   87s] ERROR
[   87s] make[1]: *** [Makefile:699: check_crypt] Error 1
Comment 2 Kurt Garloff 2022-07-26 18:24:57 UTC
dd_rescue-1.99.12 works with openssl-3.0 by using EVP_Cipher_Init() to set the IV. This works against openssl-1.1 as well.
However, performance of -3.0 is much worse, so I keep building against -1.1.
Will submit package to Factory later today.
Comment 3 Kurt Garloff 2022-07-26 19:36:45 UTC
https://build.opensuse.org/request/show/991298