Repository navigation
Closed
Labels
Milestone
Description
For about a week the test_evp_kdf occasionally fails in CI in non-caching and sanitizer builds. I was not able to reproduce the issue locally yet.
30-test_evp_fetch_prov.t ........ ok
# ERROR: (int) 'EVP_KDF_derive(kctx, out, sizeof(out), NULL) > 0' failed @ test/evp_kdf_test.c:369
# [0] compared to [0]
# C0B785D8F87F0000:error:0308010C:digital envelope routines:inner_evp_generic_fetch:unsupported:crypto/evp/evp_fetch.c:332:Global default library context, Algorithm (SHA256 : 84), Properties ()
# C0B785D8F87F0000:error:03000086:digital envelope routines:evp_md_init_internal:initialization error:crypto/evp/digest.c:232:
# OPENSSL_TEST_RAND_ORDER=1622161904
not ok 1 - test_kdf_pbkdf1
# ------------------------------------------------------------------------------
# ERROR: (ptr) 'kctx != NULL' failed @ test/evp_kdf_test.c:824
# 0x0
# C0B785D8F87F0000:error:0308010C:digital envelope routines:inner_evp_generic_fetch:unsupported:crypto/evp/evp_fetch.c:332:Global default library context, Algorithm (KBKDF : 0), Properties (<null>)
# OPENSSL_TEST_RAND_ORDER=1622161904
# C0B785D8F87F0000:error:0308010C:digital envelope routines:inner_evp_generic_fetch:unsupported:crypto/evp/evp_fetch.c:332:Global default library context, Algorithm (PBKDF2 : 0), Properties (<null>)
# OPENSSL_TEST_RAND_ORDER=1622161904
not ok 19 - test_kdf_pbkdf2_small_iterations_pkcs5
# ------------------------------------------------------------------------------
# ERROR: (ptr) 'kctx = get_kdfbyname(OSSL_KDF_NAME_SCRYPT) != NULL' failed @ test/evp_kdf_test.c:672
# 0x0
# C0B785D8F87F0000:error:0308010C:digital envelope routines:inner_evp_generic_fetch:unsupported:crypto/evp/evp_fetch.c:332:Global default library context, Algorithm (SCRYPT : 0), Properties (<null>)
# OPENSSL_TEST_RAND_ORDER=1622161904
not ok 20 - test_kdf_scrypt
# ------------------------------------------------------------------------------
# ERROR: (ptr) 'kctx = get_kdfbyname(OSSL_KDF_NAME_HKDF) != NULL' failed @ test/evp_kdf_test.c:296
# 0x0
# C0B785D8F87F0000:error:0308010C:digital envelope routines:inner_evp_generic_fetch:unsupported:crypto/evp/evp_fetch.c:332:Global default library context, Algorithm (HKDF : 0), Properties (<null>)
# OPENSSL_TEST_RAND_ORDER=1622161904
not ok 21 - test_kdf_hkdf_1byte_key
# ------------------------------------------------------------------------------
# ERROR: (ptr) 'kctx != NULL' failed @ test/evp_kdf_test.c:989
# 0x0
# C0B785D8F87F0000:error:0308010C:digital envelope routines:inner_evp_generic_fetch:unsupported:crypto/evp/evp_fetch.c:332:Global default library context, Algorithm (KBKDF : 0), Properties (<null>)
# OPENSSL_TEST_RAND_ORDER=1622161904
not ok 22 - test_kdf_kbkdf_empty_key
# ------------------------------------------------------------------------------
# ERROR: (ptr) 'kctx = get_kdfbyname(OSSL_KDF_NAME_TLS1_PRF) != NULL' failed @ test/evp_kdf_test.c:179
# 0x0
# C0B785D8F87F0000:error:0308010C:digital envelope routines:inner_evp_generic_fetch:unsupported:crypto/evp/evp_fetch.c:332:Global default library context, Algorithm (TLS1-PRF : 0), Properties (<null>)
# OPENSSL_TEST_RAND_ORDER=1622161904
not ok 23 - test_kdf_tls1_prf_1byte_seed
# ------------------------------------------------------------------------------
# ERROR: (ptr) 'kctx = get_kdfbyname(OSSL_KDF_NAME_TLS1_PRF) != NULL' failed @ test/evp_kdf_test.c:141
# 0x0
# C0B785D8F87F0000:error:0308010C:digital envelope routines:inner_evp_generic_fetch:unsupported:crypto/evp/evp_fetch.c:332:Global default library context, Algorithm (TLS1-PRF : 0), Properties (<null>)
# OPENSSL_TEST_RAND_ORDER=1622161904
not ok 24 - test_kdf_tls1_prf_1byte_secret
# ------------------------------------------------------------------------------
# ERROR: (ptr) 'kdf1 = EVP_KDF_fetch(NULL, OSSL_KDF_NAME_PBKDF2, NULL) != NULL' failed @ test/evp_kdf_test.c:1355
# 0x0
# ERROR: (ptr) 'kdf1 = EVP_KDF_fetch(NULL, SN_tls1_prf, NULL) != NULL' failed @ test/evp_kdf_test.c:1365
# 0x0
# ERROR: (ptr) 'kdf2 = EVP_KDF_fetch(NULL, OBJ_nid2sn(NID_tls1_prf), NULL) != NULL' failed @ test/evp_kdf_test.c:1373
# 0x0
# C0B785D8F87F0000:error:0308010C:digital envelope routines:inner_evp_generic_fetch:unsupported:crypto/evp/evp_fetch.c:332:Global default library context, Algorithm (PBKDF2 : 0), Properties (<null>)
# C0B785D8F87F0000:error:0308010C:digital envelope routines:inner_evp_generic_fetch:unsupported:crypto/evp/evp_fetch.c:332:Global default library context, Algorithm (TLS1-PRF : 0), Properties (<null>)
# C0B785D8F87F0000:error:0308010C:digital envelope routines:inner_evp_generic_fetch:unsupported:crypto/evp/evp_fetch.c:332:Global default library context, Algorithm (TLS1-PRF : 0), Properties (<null>)
# OPENSSL_TEST_RAND_ORDER=1622161904
not ok 25 - test_kdf_get_kdf
# ------------------------------------------------------------------------------
# ERROR: (ptr) 'kctx = get_kdfbyname(OSSL_KDF_NAME_TLS1_PRF) != NULL' failed @ test/evp_kdf_test.c:160
# 0x0
# C0B785D8F87F0000:error:0308010C:digital envelope routines:inner_evp_generic_fetch:unsupported:crypto/evp/evp_fetch.c:332:Global default library context, Algorithm (TLS1-PRF : 0), Properties (<null>)
# OPENSSL_TEST_RAND_ORDER=1622161904
not ok 26 - test_kdf_tls1_prf_empty_seed
# ------------------------------------------------------------------------------
# ERROR: (ptr) 'kctx = get_kdfbyname(OSSL_KDF_NAME_HKDF) != NULL' failed @ test/evp_kdf_test.c:240
# 0x0
# C0B785D8F87F0000:error:0308010C:digital envelope routines:inner_evp_generic_fetch:unsupported:crypto/evp/evp_fetch.c:332:Global default library context, Algorithm (HKDF : 0), Properties (<null>)
# OPENSSL_TEST_RAND_ORDER=1622161904
not ok 27 - test_kdf_hkdf_invalid_digest
# ------------------------------------------------------------------------------
# ERROR: (ptr) 'kctx = get_kdfbyname(OSSL_KDF_NAME_SSKDF) != NULL' failed @ test/evp_kdf_test.c:1268
# 0x0
# C0B785D8F87F0000:error:0308010C:digital envelope routines:inner_evp_generic_fetch:unsupported:crypto/evp/evp_fetch.c:332:Global default library context, Algorithm (SSKDF : 0), Properties (<null>)
# OPENSSL_TEST_RAND_ORDER=1622161904
not ok 28 - test_kdf_ss_kmac
# ------------------------------------------------------------------------------
# ERROR: (ptr) 'kctx = get_kdfbyname(OSSL_KDF_NAME_SSKDF) != NULL' failed @ test/evp_kdf_test.c:1224
# 0x0
# C0B785D8F87F0000:error:0308010C:digital envelope routines:inner_evp_generic_fetch:unsupported:crypto/evp/evp_fetch.c:332:Global default library context, Algorithm (SSKDF : 0), Properties (<null>)
# OPENSSL_TEST_RAND_ORDER=1622161904
not ok 29 - test_kdf_ss_hmac
# ------------------------------------------------------------------------------
# ERROR: (ptr) 'kctx = get_kdfbyname(OSSL_KDF_NAME_KRB5KDF) != NULL' failed @ test/evp_kdf_test.c:1448
# 0x0
# C0B785D8F87F0000:error:0308010C:digital envelope routines:inner_evp_generic_fetch:unsupported:crypto/evp/evp_fetch.c:332:Global default library context, Algorithm (KRB5KDF : 0), Properties (<null>)
# OPENSSL_TEST_RAND_ORDER=1622161904
not ok 30 - test_kdf_krb5kdf
# ------------------------------------------------------------------------------
# ERROR: (ptr) 'kctx = get_kdfbyname(OSSL_KDF_NAME_X963KDF) != NULL' failed @ test/evp_kdf_test.c:769
# 0x0
# C0B785D8F87F0000:error:0308010C:digital envelope routines:inner_evp_generic_fetch:unsupported:crypto/evp/evp_fetch.c:332:Global default library context, Algorithm (X963KDF : 0), Properties (<null>)
# OPENSSL_TEST_RAND_ORDER=1622161904
not ok 31 - test_kdf_x963
# ------------------------------------------------------------------------------
# ERROR: (ptr) 'kctx != NULL' failed @ test/evp_kdf_test.c:1122
# 0x0
# C0B785D8F87F0000:error:0308010C:digital envelope routines:inner_evp_generic_fetch:unsupported:crypto/evp/evp_fetch.c:332:Global default library context, Algorithm (KBKDF : 0), Properties (<null>)
# OPENSSL_TEST_RAND_ORDER=1622161904
not ok 32 - test_kdf_kbkdf_8009_prf2
# ------------------------------------------------------------------------------
# ERROR: (ptr) 'kctx = get_kdfbyname(OSSL_KDF_NAME_PBKDF2) != NULL' failed @ test/evp_kdf_test.c:558
# 0x0
# C0B785D8F87F0000:error:0308010C:digital envelope routines:inner_evp_generic_fetch:unsupported:crypto/evp/evp_fetch.c:332:Global default library context, Algorithm (PBKDF2 : 0), Properties (<null>)
# OPENSSL_TEST_RAND_ORDER=1622161904
not ok 33 - test_kdf_pbkdf2_small_salt_pkcs5
# ------------------------------------------------------------------------------
# ERROR: (ptr) 'kctx = get_kdfbyname(OSSL_KDF_NAME_PBKDF2) != NULL' failed @ test/evp_kdf_test.c:506
# 0x0
# C0B785D8F87F0000:error:0308010C:digital envelope routines:inner_evp_generic_fetch:unsupported:crypto/evp/evp_fetch.c:332:Global default library context, Algorithm (PBKDF2 : 0), Properties (<null>)
# OPENSSL_TEST_RAND_ORDER=1622161904
not ok 34 - test_kdf_pbkdf2_small_salt
# ------------------------------------------------------------------------------
# ERROR: (ptr) 'kctx = get_kdfbyname(OSSL_KDF_NAME_HKDF) != NULL' failed @ test/evp_kdf_test.c:222
# 0x0
# C0B785D8F87F0000:error:0308010C:digital envelope routines:inner_evp_generic_fetch:unsupported:crypto/evp/evp_fetch.c:332:Global default library context, Algorithm (HKDF : 0), Properties (<null>)
# OPENSSL_TEST_RAND_ORDER=1622161904
not ok 35 - test_kdf_hkdf
# ------------------------------------------------------------------------------
# ERROR: (ptr) 'kctx != NULL' failed @ test/evp_kdf_test.c:890
# 0x0
# C0B785D8F87F0000:error:0308010C:digital envelope routines:inner_evp_generic_fetch:unsupported:crypto/evp/evp_fetch.c:332:Global default library context, Algorithm (KBKDF : 0), Properties (<null>)
# OPENSSL_TEST_RAND_ORDER=1622161904
not ok 36 - test_kdf_kbkdf_6803_256
# ------------------------------------------------------------------------------
# ERROR: (ptr) 'kctx = get_kdfbyname(OSSL_KDF_NAME_PBKDF2) != NULL' failed @ test/evp_kdf_test.c:449
# 0x0
# C0B785D8F87F0000:error:0308010C:digital envelope routines:inner_evp_generic_fetch:unsupported:crypto/evp/evp_fetch.c:332:Global default library context, Algorithm (PBKDF2 : 0), Properties (<null>)
# OPENSSL_TEST_RAND_ORDER=1622161904
not ok 37 - test_kdf_pbkdf2_small_output
# ------------------------------------------------------------------------------
# ERROR: (ptr) 'kctx = get_kdfbyname(OSSL_KDF_NAME_TLS1_PRF) != NULL' failed @ test/evp_kdf_test.c:104
# 0x0
# C0B785D8F87F0000:error:0308010C:digital envelope routines:inner_evp_generic_fetch:unsupported:crypto/evp/evp_fetch.c:332:Global default library context, Algorithm (TLS1-PRF : 0), Properties (<null>)
# OPENSSL_TEST_RAND_ORDER=1622161904
not ok 38 - test_kdf_tls1_prf_zero_output_size
# ------------------------------------------------------------------------------
# ERROR: (ptr) 'kctx = get_kdfbyname(OSSL_KDF_NAME_HKDF) != NULL' failed @ test/evp_kdf_test.c:278
# 0x0
# C0B785D8F87F0000:error:0308010C:digital envelope routines:inner_evp_generic_fetch:unsupported:crypto/evp/evp_fetch.c:332:Global default library context, Algorithm (HKDF : 0), Properties (<null>)
# OPENSSL_TEST_RAND_ORDER=1622161904
not ok 39 - test_kdf_hkdf_empty_key
# ------------------------------------------------------------------------------
# ERROR: (ptr) 'kctx = get_kdfbyname(OSSL_KDF_NAME_HKDF) != NULL' failed @ test/evp_kdf_test.c:259
# 0x0
# C0B785D8F87F0000:error:0308010C:digital envelope routines:inner_evp_generic_fetch:unsupported:crypto/evp/evp_fetch.c:332:Global default library context, Algorithm (HKDF : 0), Properties (<null>)
# OPENSSL_TEST_RAND_ORDER=1622161904
not ok 40 - test_kdf_hkdf_zero_output_size
# ------------------------------------------------------------------------------
# ERROR: (ptr) 'kctx != NULL' failed @ test/evp_kdf_test.c:966
# 0x0
# C0B785D8F87F0000:error:0308010C:digital envelope routines:inner_evp_generic_fetch:unsupported:crypto/evp/evp_fetch.c:332:Global default library context, Algorithm (KBKDF : 0), Properties (<null>)
# OPENSSL_TEST_RAND_ORDER=1622161904
not ok 41 - test_kdf_kbkdf_invalid_mac
# ------------------------------------------------------------------------------
../../util/wrap.pl ../../test/evp_kdf_test => 1
not ok 1 - running evp_kdf_test
# ------------------------------------------------------------------------------
# Failed test 'running evp_kdf_test'
# at /home/runner/work/openssl/openssl/util/perl/OpenSSL/Test/Simple.pm line 77.
# Looks like you failed 1 test of 1.30-test_evp_kdf.t ...............
Dubious, test returned 1 (wstat 256, 0x100)
Failed 1/1 subtests
30-test_evp_extra.t ............. ok
Activity
t8m commentedon May 28, 2021
In all the failures it seems that the test_kdf_pbkdf1() is run as the first test case.
Fix intermittent CI failure in evp_kdf_test for non_caching build.