Skip to content

Intermittent failure in spdm_crypt_lib_tests #3557

@steven-bellock

Description

@steven-bellock

Related issue: #3393.

[==========] spdm_crypt_lib_tests: Running 1 test(s).
[ RUN      ] libspdm_test_fips
[  ERROR   ] --- status
[   LINE   ] --- /home/runner/work/libspdm/libspdm/unit_test/test_spdm_fips/test_spdm_fips.c:29: error: Failure!
FFDH compute key failed 
[  FAILED  ] libspdm_test_fips
[==========] spdm_crypt_lib_tests: 1 test(s) run.
[  PASSED  ] 0 test(s).
[  FAILED  ] spdm_crypt_lib_tests: 1 test(s), listed below:
[  FAILED  ] libspdm_test_fips

result = libspdm_dh_compute_key(dh1, ff_public_key2, ff_public_key2_length,
ff_key1, &ff_key1_length);
if (!result || ff_key1_length != 256) {
LIBSPDM_DEBUG((LIBSPDM_DEBUG_INFO, "FFDH compute key failed \n"));
libspdm_dh_free(dh1);
libspdm_dh_free(dh2);
result = false;
goto update;
}
result = libspdm_dh_compute_key(dh2, ff_public_key1, ff_public_key1_length,
ff_key2, &ff_key2_length);
if (!result || ff_key2_length != 256) {
LIBSPDM_DEBUG((LIBSPDM_DEBUG_INFO, "FFDH compute key failed \n"));
libspdm_dh_free(dh1);
libspdm_dh_free(dh2);
result = false;
goto update;
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions