@@ -775,8 +775,13 @@ fn derive_key_sp800() -> TestResult {
775775
776776#[ test]
777777#[ serial]
778- #[ ignore = "unsupported by both SoftHSM and Kryoptic for the moment. See latchset/kryoptic#323 to track support" ]
779778fn derive_key_concatenation_two_keys ( ) -> TestResult {
779+ // Mechanism not supported by SoftHSM
780+ if is_softhsm ( ) {
781+ /* return Ignore(); */
782+ return Ok ( ( ) ) ;
783+ }
784+
780785 let ( pkcs11, slot) = init_pins ( ) ;
781786
782787 // Open a session and log in
@@ -840,8 +845,13 @@ fn derive_key_concatenation_two_keys() -> TestResult {
840845
841846#[ test]
842847#[ serial]
843- #[ ignore = "unsupported by both SoftHSM and Kryoptic for the moment. See latchset/kryoptic#323 to track support" ]
844848fn derive_key_concatenation_key_and_data ( ) -> TestResult {
849+ // Mechanism not supported by SoftHSM
850+ if is_softhsm ( ) {
851+ /* return Ignore(); */
852+ return Ok ( ( ) ) ;
853+ }
854+
845855 let ( pkcs11, slot) = init_pins ( ) ;
846856
847857 // Open a session and log in
@@ -914,8 +924,13 @@ fn derive_key_concatenation_key_and_data() -> TestResult {
914924
915925#[ test]
916926#[ serial]
917- #[ ignore = "unsupported by both SoftHSM and Kryoptic for the moment. See latchset/kryoptic#323 to track support" ]
918927fn derive_key_xor_key_and_data ( ) -> TestResult {
928+ // Mechanism not supported by SoftHSM
929+ if is_softhsm ( ) {
930+ /* return Ignore(); */
931+ return Ok ( ( ) ) ;
932+ }
933+
919934 let ( pkcs11, slot) = init_pins ( ) ;
920935
921936 // Open a session and log in
@@ -967,8 +982,13 @@ fn derive_key_xor_key_and_data() -> TestResult {
967982
968983#[ test]
969984#[ serial]
970- #[ ignore = "unsupported by both SoftHSM and Kryoptic for the moment. See latchset/kryoptic#323 to track support" ]
971985fn derive_key_extract_from_key ( ) -> TestResult {
986+ // Mechanism not supported by SoftHSM
987+ if is_softhsm ( ) {
988+ /* return Ignore(); */
989+ return Ok ( ( ) ) ;
990+ }
991+
972992 let ( pkcs11, slot) = init_pins ( ) ;
973993
974994 // Open a session and log in
0 commit comments