aws-samples / aws-cloudhsm-pkcs11-examples

Sample applications demonstrating how to use the CloudHSM PKCS#11 library
Other
55 stars 39 forks source link

Failed to pass all the tests #47

Open gweconsulting opened 3 years ago

gweconsulting commented 3 years ago

Using AWS PKCS #11 SDK 3, "make test" fails at unwrap_with_template as shown below:

make test Running tests... Test project /home/ec2-user/AWS/cloudhsm_pkcs11_example/aws-cloudhsm-pkcs11-examples/build Start 1: digest 1/20 Test #1: digest ........................... Passed 0.05 sec Start 2: generate 2/20 Test #2: generate ......................... Passed 0.12 sec Start 3: sign 3/20 Test #3: sign ............................. Passed 0.12 sec Start 4: aes_cbc 4/20 Test #4: aes_cbc .......................... Passed 0.06 sec Start 5: aes_ecb 5/20 Test #5: aes_ecb .......................... Passed 0.06 sec Start 6: aes_gcm 6/20 Test #6: aes_gcm .......................... Passed 0.06 sec Start 7: aes_ctr 7/20 Test #7: aes_ctr .......................... Passed 0.05 sec Start 8: des_ecb 8/20 Test #8: des_ecb .......................... Passed 0.05 sec Start 9: aes_gcm_wrapping 9/20 Test #9: aes_gcm_wrapping ................. Passed 0.10 sec Start 10: aes_no_padding_wrapping 10/20 Test #10: aes_no_padding_wrapping .......... Passed 0.11 sec Start 11: aes_zero_padding_wrapping 11/20 Test #11: aes_zero_padding_wrapping ........ Passed 0.12 sec Start 12: aes_wrapping 12/20 Test #12: aes_wrapping ..................... Passed 0.12 sec Start 13: rsa_wrapping 13/20 Test #13: rsa_wrapping ..................... Passed 0.29 sec Start 14: wrap_with_template 14/20 Test #14: wrap_with_template ............... Passed 0.19 sec Start 15: unwrap_with_template 15/20 Test #15: unwrap_with_template .............***Failed 0.11 sec Start 16: hsm_info 16/20 Test #16: hsm_info ......................... Passed 0.07 sec Start 17: find_objects 17/20 Test #17: find_objects ..................... Passed 0.14 sec Start 18: ecdh 18/20 Test #18: ecdh ............................. Passed 0.10 sec Start 19: hmac_kdf 19/20 Test #19: hmac_kdf ......................... Passed 0.05 sec Start 20: generate_random 20/20 Test #20: generate_random .................. Passed 0.05 sec

95% tests passed, 1 tests failed out of 20

Total Test time (real) = 2.02 sec

The following tests FAILED: 15 - unwrap_with_template (Failed) Errors while running CTest make: *** [test] Error 8