Using an invalid public exponent should yield
  a CKR_TEMPLATE_INCONSISTENT error

Signed-off-by: Klaus Heinrich Kiwi <[email protected]>
---
 testcases/rsa_keygen/rsa_keygen.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/testcases/rsa_keygen/rsa_keygen.c 
b/testcases/rsa_keygen/rsa_keygen.c
index 985cefa..a7cc111 100755
--- a/testcases/rsa_keygen/rsa_keygen.c
+++ b/testcases/rsa_keygen/rsa_keygen.c
@@ -176,7 +176,7 @@ do_GenerateRSAKeyPair(CK_ULONG bits)
                                      pub_tmpl,   2,
                                      NULL,       0,
                                      &publ_key, &priv_key );
-      if (rc != CKR_FUNCTION_FAILED) {
+      if (rc != CKR_TEMPLATE_INCONSISTENT) {
          show_error("   C_GenerateKeyPair #3", rc );
          return rc;
    }
-- 
1.7.2.3


------------------------------------------------------------------------------
Lotusphere 2011
Register now for Lotusphere 2011 and learn how
to connect the dots, take your collaborative environment
to the next level, and enter the era of Social Business.
http://p.sf.net/sfu/lotusphere-d2d
_______________________________________________
Opencryptoki-tech mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opencryptoki-tech

Reply via email to