We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d7623cc commit 72cb497Copy full SHA for 72cb497
cryptoki/tests/basic.rs
@@ -947,6 +947,18 @@ fn is_fn_supported_test() {
947
pkcs11.is_fn_supported(Function::DigestFinal),
948
"C_DigestFinal function reports as not supported"
949
);
950
+ if is_softhsm() {
951
+ // the SoftHSM does not have PKCS#11 3.0 API so this function is not present
952
+ assert!(
953
+ !pkcs11.is_fn_supported(Function::MessageEncryptInit),
954
+ "C_MessageEncryptInit function reports supported for SoftHSM"
955
+ );
956
+ } else {
957
958
+ pkcs11.is_fn_supported(Function::MessageEncryptInit),
959
+ "C_MessageEncryptInit function reports as not supported"
960
961
+ }
962
}
963
964
#[test]
0 commit comments