diff options
Diffstat (limited to 'src/crypto.c')
-rw-r--r-- | src/crypto.c | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/src/crypto.c b/src/crypto.c index 0f946d8..bef8a1e 100644 --- a/src/crypto.c +++ b/src/crypto.c @@ -372,9 +372,6 @@ p11t_crypto_test_encrypt (CK_SESSION_HANDLE session, CK_MECHANISM_TYPE mech) rv = (p11t_module_funcs->C_EncryptInit)(session, &mechanism, handle); P11T_CHECK_RV ("A normal call", rv, CKR_OK); - rv = (p11t_module_funcs->C_EncryptInit)(session, &mechanism, handle); - P11T_CHECK_RV ("Double call", rv, CKR_OPERATION_ACTIVE); - /* All other crypto operations shouldn't be valid */ test_without_init (session, CKA_ENCRYPT); @@ -574,9 +571,6 @@ p11t_crypto_test_decrypt (CK_SESSION_HANDLE session, CK_MECHANISM_TYPE mech) rv = (p11t_module_funcs->C_DecryptInit)(session, &mechanism, handle); P11T_CHECK_RV ("A normal call", rv, CKR_OK); - rv = (p11t_module_funcs->C_DecryptInit)(session, &mechanism, handle); - P11T_CHECK_RV ("Double call", rv, CKR_OPERATION_ACTIVE); - /* All other crypto operations shouldn't be valid */ test_without_init (session, CKA_DECRYPT); @@ -738,9 +732,6 @@ p11t_crypto_test_sign (CK_SESSION_HANDLE session, CK_MECHANISM_TYPE mech) rv = (p11t_module_funcs->C_SignInit)(session, &mechanism, handle); P11T_CHECK_RV ("A normal call", rv, CKR_OK); - rv = (p11t_module_funcs->C_SignInit)(session, &mechanism, handle); - P11T_CHECK_RV ("Double call", rv, CKR_OPERATION_ACTIVE); - /* All other crypto operations shouldn't be valid */ test_without_init (session, CKA_SIGN); @@ -962,9 +953,6 @@ p11t_crypto_test_verify (CK_SESSION_HANDLE session, CK_MECHANISM_TYPE mech) rv = (p11t_module_funcs->C_VerifyInit)(session, &mechanism, handle); P11T_CHECK_RV ("A normal call", rv, CKR_OK); - rv = (p11t_module_funcs->C_VerifyInit)(session, &mechanism, handle); - P11T_CHECK_RV ("Double call", rv, CKR_OPERATION_ACTIVE); - /* All other crypto operations shouldn't be valid */ test_without_init (session, CKA_VERIFY); |