1
0
mirror of https://github.com/opencryptoki/opencryptoki.git synced 2026-10-27 06:12:56 +03:00

Commit Graph

  • 32330375cb Removed duplicate AES_GCM entry in ica token Signed-off-by: Ingo Tuchscherer <ingo.tuchscherer@linux.vnet.ibm.com> Ingo Tuchscherer 2016-01-06 13:10:56 -05:00
  • 8936e0e79c Fix testcase failure on CCA and EP11 token Signed-off-by: Harald Freudenberger <freude@linux.vnet.ibm.com> Signed-off-by: Vineetha Pai <vpishar@us.ibm.com> Harald Freudenberger 2016-01-05 17:08:36 -05:00
  • 1b8a894603 Fix failure of the EP11 token on tok_des testcase Signed-off-by: Harald Freudenberger <freude@linux.vnet.ibm.com> Harald Freudenberger 2015-12-18 15:49:28 -05:00
  • 2529cc2b5b Bumping up to version-3.4.1 with some fixes Signed-off-by: Vineetha Pai <vpishar@us.ibm.com> v3.4.1 Vineetha Pai 2015-12-04 16:52:47 -05:00
  • 2bc59c8d8b Fix copyobjects test for cca and ep11 token by checking CKA_VALUE to be zero Joy Latten 2015-12-04 16:24:42 -05:00
  • 43f546af9f Fix buffer overflow in cca token function ccatok_hmac() Harald Freudenberger 2015-12-04 15:59:32 -05:00
  • abd071a1a5 fix for opencryptoki 3.4 build error on s390 31 bit build Harald Freudenberger 2015-12-03 17:02:04 -05:00
  • 5f09c00031 Updated ChangeLog and bumped up opencryptoki version. v3.4 Joy Latten 2015-11-16 15:36:04 -06:00
  • b30c067293 - Update testcases/pkcs11/README - do not re-init icsf token in gen_purpose testcases Joy Latten 2015-11-13 16:09:53 -06:00
  • ee0ba361e0 icsftok_close_session does not require ldap handle, so should not check for it and error out in start of function. Joy Latten 2015-11-13 16:02:49 -06:00
  • c707cfe94f Include assertion count in attribute testcase. Joy Latten 2015-11-13 12:51:01 -06:00
  • 75edf7a2d5 Minor testcase correcttions. Joy Latten 2015-11-12 20:27:02 -06:00
  • 70fe0b8df4 Currently the icsf token does not support C_GetObjectSize. Return appropriate error code. Joy Latten 2015-11-12 00:22:39 -06:00
  • fd251182b5 MD5 HMAC mechanism was not being found. Joy Latten 2015-11-12 00:16:13 -06:00
  • 2acb82196d Add additional sha hmac test vectors from the fips test vectors. Joy Latten 2015-11-11 23:22:59 -06:00
  • f3d1122d60 Re-factor and rename misc_func.c and its testcases. Ian Davis 2015-10-18 19:46:34 -05:00
  • 4eccf58124 C_Finalize should be called in the testcases. Ian Davis 2015-10-13 14:02:06 -05:00
  • 7974e13f95 template.c is difficult to read because of format style and indentations. Correctly format indentations in template.c Joy Latten 2015-10-13 11:50:00 -05:00
  • 1c7dc4bf97 Coverity Scan cleanup 1.In function dp_x9dh_set_default_attributes, subprimebits_attr is not used. It needs to be added to template via template_update_attribute(). 2. In kea_priv_set_default_attributes(), type_attr is not freed upon error. 3. In C_OpenSession, apiSessp is not freed upon error. 4. In key_mgr_wrap_key(), ctx is not freed upon error. 5. In template_unflatten_withSize(), a2 and tmpl are not freed upon error. Jakub Jelen 2015-10-12 12:15:00 -05:00
  • 4d01202de9 get_srk_info in tpm token is not freeing secret before exiting on error. Jakub Jelen 2015-10-12 11:37:30 -05:00
  • 98b548f812 Add CKA_MODULUS and CKA_PUBLIC_EXPONENT to the RSA private key template after generating to comply with pkcs#11v2.20. Ingo Tuchscherer 2015-10-11 18:50:50 -05:00
  • aa7fb5448a CCA keys are wrapped with a master key, when this master key is changed, the wrapped keys need to be unwrapped with the old mater key and wrapped with the new master key. This patch extends the pkcscca tool to migrate wrapped keys. Fionnuala Gunter 2015-10-11 18:31:52 -05:00
  • a9bb63162f ica_3des_* calls produce compiler warning when linked to newer version of libica. Correct warnings. Joy Latten 2015-10-09 17:51:24 -05:00
  • f87eb9572e add AES GCM published test vectors Ingo Tuchscherer 2015-10-09 17:50:40 -05:00
  • 7cad7ad680 Add aes gcm to the ica token. Ingo Tuchscherer 2015-10-09 17:49:56 -05:00
  • ba4f228de1 Add GCM support to opencryptoki base infrastructure. Ingo Tuchscherer 2015-10-09 17:47:57 -05:00
  • 248be0ddce [PATCH 4]: icsf ldap handle - The sign and verify functions in icsf token were not calling free_sv_ctx. sign_mgr_cleanup and verify_mgr_cleanup will eventually get called and free ctx->context. But in icsf token, we malloc ctx->context AND ctx->context->data. So, we should call free_sv_ctx first to ensure we free all data malloc'd specifically for icsf token. Joy Latten 2015-10-01 17:39:42 -05:00
  • 185a6862d2 [PATCH 3]: icsf ldap handle - Add a check for the LDAP handle before using it. Also get_session_state() should return same error for all calls to it. Joy Latten 2015-10-01 17:38:06 -05:00
  • e85af1658b [PATCH 2]: icsf ldap handle - closeallsessions needs to also close all the ldap handles. Joy Latten 2015-10-01 17:36:03 -05:00
  • 5df0e5303a PATCH 1]: icsf ldap handle - Get a new ldap handle for each session opened in the icsf token, once the user has authenticated. Joy Latten 2015-10-01 17:34:17 -05:00
  • 4176f2ffa4 CKA_EC_POINT is not required in the ECDSA private key attribute, instead, CKA_VALUE is when importing a ECDSA private key. Vineetha Pai 2015-09-29 11:27:23 -05:00
  • 98aa8d59b4 Add testcase for C_GenerateKeyPair, generating RSA key pair and checking for generation with required attributes. Joy Latten 2015-09-11 14:26:56 -05:00
  • 913d80b6c1 Section 12.1.4 of pkcs#11v2.2 points out that the CKA_PUBLIC_EXPONENT may be omitted from template and if so, the mechanism should supply the public exponent attribute using the default value of 0x10001 (65537). Made corrections to do this. Joy Latten 2015-09-11 13:02:14 -05:00
  • 5c1afc61d6 ep11 token incorrectly copied the public key object class to the private key, thus both public and private keys were CKO_PUBLIC_KEY. Remove this code. The default attribute functions will ensure that private key has correct info. Vineetha Pai 2015-09-10 23:57:37 -05:00
  • 7748835d8f - Correct or remove some of the RSA generic secret key test vectors. These incorrect test vectors consisted of key lengths that the tokens could not use for genertaing these types of keys. - Correct testcase: Set the wrapped key to NULL for the next loop. Joy Latten 2015-09-08 09:29:14 -05:00
  • da5a3e1775 Add ability to generate generic secret key in ica token. Vineetha Pai 2015-09-01 17:48:44 -05:00
  • f68dd6f452 Add generic secret key generation mechanism to icsf token. Vineetha Pai 2015-09-01 17:28:57 -05:00
  • 214414111c Correct the attribute defaults for generic secret keys. Vineetha Pai 2015-09-01 17:26:53 -05:00
  • b797c7463c Add generic secret key generation to soft token. Vineetha Pai 2015-09-01 15:47:32 -05:00
  • 07b32cda6e Add CKA_SHA512_HMAC to cca token's single hmac. It was left out. Check for NULL when creating an openssl context in soft token. Joy Latten 2015-08-31 18:02:17 -05:00
  • b8c24b92a8 Add support to generate generic secret keys in cca token. Vineetha Pai 2015-08-31 17:04:46 -05:00
  • 337f695367 Improved sess_mgmt testcase. Added check to ensure if mechanism under test is supported. Ingo Tuchscherer 2015-08-31 13:36:49 -05:00
  • f4c69d85a3 Corrected slot number output in misc testcase Ingo Tuchscherer 2015-08-31 13:18:38 -05:00
  • 2668e8f347 Rework of the EP11 token code to store only the real size of the blob into the IBM_OPAQUE attribute. Together with this change some code could be removed as it was for bringup purpose only. Harald Freudenberger 2015-08-31 12:47:27 -05:00
  • 518871ce30 Pure whitespace cleanup in ep11 token specific code. Harald Freudenberger 2015-08-28 13:25:14 -05:00
  • eccd3fd88c Fixes and improvements on misc testcases. obj_mgmt.c now uses a 'real' RSA key and not just 123. speed.c checks for CCA token and skips ECB if CCA. tok_des.c compiler warning fixed. misc_func.c smarter random test and now uses AES instead of DES. sess_perf.c now uses AES instead of DES. Harald Freudenberger 2015-08-26 18:39:57 -05:00
  • c5a4771382 Fix missing newlines in trace statements in cca token. Harald Freudenberger 2015-08-26 17:13:20 -05:00
  • 2150f290d6 Clear out VALUE attribute after import, and fix UNKNOWN trace statements. Harald Freudenberger 2015-08-26 16:54:35 -05:00
  • a3553f8d64 Cleanup the value template after key import into cca token. Harald Freudenberger 2015-08-26 16:42:35 -05:00
  • d91cbb4bea Removed securekey option from DES and AES testcases as there is now the required key import available. Fixed some compile warnings. Unified all testcases to print out a summary line and not just something like 'looks ok'. Fixed digest test to have a look onto the required key sizes for the cca token. Harald Freudenberger 2015-08-26 16:28:42 -05:00
  • 446523364d ICSF token aborted when running hmac update with zero-length chunks. Needed to correct the ber-encoding in icsf_hmac_sign and verify to accept zero-lenth data. Joy Latten 2015-08-24 12:55:43 -05:00
  • 4808a384e9 Add published fips cavp hmac test vectors. Joy Latten 2015-08-24 12:55:01 -05:00
  • 016427c413 Add hmac support to soft token by calling openssl to do sha hmacs. Joy Latten 2015-08-24 12:54:16 -05:00
  • 50d09bdf77 Add hmac support to cca token by calling CCA verbs to do sha hmacs. Joy Latten 2015-08-24 12:53:33 -05:00
  • e4294ac4bd Add token specific hmac hooks to ock and tokens. Joy Latten 2015-08-24 12:52:46 -05:00
  • fa7d22cc93 compute_sha() needs to accomodate newly aggregated sha method. Joy Latten 2015-08-24 12:51:59 -05:00
  • 0e24406762 Aggregate the SHA token specific hooks in opencryptoki and in the tokens. Joy Latten 2015-08-24 12:51:14 -05:00
  • a585aabe65 CCA token: Add HMAC key import code. Harald Freudenberger 2015-07-14 10:35:17 -05:00
  • f5bad5f2af CCA token: add code to handle AES/DES key import. Harald Freudenberger 2015-07-10 14:58:52 -05:00
  • fd54b4b3d3 CCA token: code cleanup whitespaces and rework trace statements. Harald Freudenberger 2015-07-02 13:02:10 +00:00
  • 594702a3a8 Add header file to remove warning for pkcsep11_migrate utility. Joy Latten 2015-06-29 17:25:14 -05:00
  • 3a8dc37ec0 Remove references to LEEDs. It is no longer supported. Joy Latten 2015-06-29 17:12:02 -05:00
  • b212e44cf4 Fix all key mallocs to initialize key memory with zeros. Harald Freudenberger 2015-06-29 16:20:41 -05:00
  • 1b5b6bd2ff Remove inline declaration for function in btree.c The functions are not required to be inline. Jakub Jelen 2015-06-29 12:39:13 -05:00
  • 8fd44f641f Add missing lber library and include file to icsf. Jakub Jelen 2015-06-26 15:37:03 -05:00
  • 33246d3b3c Add missing header files. Jakub Jelen 2015-06-26 15:34:56 -05:00
  • 671f82d41f - Move get_ecsiglen to mech_ec, since this is the only place where it is used - Reorganize structures in ec_defs header files to avoid symbol redefinition Jakub Jelen 2015-06-26 15:28:35 -05:00
  • e89326ee4c Add missing sources to add missing symbols. Jakub Jelen 2015-06-26 15:25:49 -05:00
  • 6ff6301343 Fix compiler warnings in tpm token. Joy Latten 2015-06-26 12:26:38 -05:00
  • 96bfa60c3f Fix compiler warnings in pkcsconf. Vineetha Pai 2015-06-26 15:09:47 -05:00
  • 98a9109b9e Fix compiler warnings for pkcsslotd. Vineetha Pai 2015-06-26 15:07:51 -05:00
  • c8fb708232 Fix compiler warnings in ica token. Joy Latten 2015-06-26 13:56:34 -05:00
  • 3374af0704 Fix compiler warnings and errors for ep11 token. Joy Latten 2015-06-26 13:54:57 -05:00
  • f9d88d4267 Cleanup compiler warnings in icsf token and pkcsicsf tool. Joy Latten 2015-06-26 12:17:53 -05:00
  • 1c05d33ba9 Fix compiler warnings in soft token. Joy Latten 2015-06-26 13:52:56 -05:00
  • 296ab72a9f Fix compiler warnings in cca token and pkcscca tool. Vineetha Pai 2015-06-26 12:12:53 -05:00
  • 06fbff5de8 Fix compiler warnings and errors in the common directory. Vineetha Pai 2015-06-26 12:11:17 -05:00
  • 4619770fe0 Compile opencryptoki with -Wall enabled. 1. Add -Wall to configure.in 2. Add missing prototypes to header files. 3. Fix compiler warning in api directory. Vineetha Pai 2015-06-26 12:08:41 -05:00
  • 725214b4e9 Tracing and syslog improvements in cca and ep11 token code. Harald Freudenberger 2015-06-26 11:47:50 -05:00
  • 7743c0b0c6 Update files for version 3.3 information. v3.3 Joy Latten 2015-04-17 11:40:06 -05:00
  • 5e8b07b256 Correct a few trace calls. Joy Latten 2015-04-03 12:30:47 -05:00
  • 38f596769e Replace deprecated des_ methods and types Bernard Spil 2015-04-17 12:12:29 -05:00
  • 02fc777bab Swap TRACE_DEVEL and TRACE_DEBUG. Let TRACE_DEVEL refer to trace output that can be use by opencryptoki apps developers. Let TRACE_DEBUG be specifically for developers of the opencryptoki library. Joy Latten 2015-04-01 17:55:16 -05:00
  • f1ea6b2ec1 The ssl3 testcase to derive multiple keys should use an AES key rather than a Generic Secret key. Also set export to FALSE. Joy Latten 2015-03-31 18:19:24 -05:00
  • 956bd53b2f Allow root to run all the pkcs11 commands without needing to be in pkcs11 group. This was fixed previsously in commit 2475aaee11, but was mistakenly removed by a subsequent commit. Joy Latten 2015-03-31 17:40:56 -05:00
  • 3311107e50 Remove unnecessary hooks. Joy Latten 2015-03-25 17:18:53 -05:00
  • 0e1a98e967 Create new_host.c for ep11 token so it can call its own routines. Joy Latten 2015-03-25 17:15:14 -05:00
  • 72a1ac0ae9 ICSF Token: chain data was not being copied for hmac signing and verifying. Joy Latten 2015-03-25 17:12:14 -05:00
  • 33a2a0c8f0 Create a new_host.c for icsf token. Joy Latten 2015-03-25 17:10:14 -05:00
  • 41ac38e759 Remove slot2local. It does not do anything. Joy Latten 2015-03-25 17:02:39 -05:00
  • f93b49eccb Move some of the non-api routines out of new_host.c Joy Latten 2015-03-25 16:51:03 -05:00
  • beaaf2e673 Cleanup new_host.c Joy Latten 2015-03-25 16:48:16 -05:00
  • 5456b047b0 In C_DeriveKey do not check for NULL for location of derived key. It is ok if this value is NULL when deriving multiple keys. Joy Latten 2015-03-25 16:10:13 -05:00
  • a2d60d856f In rsa pss mfg1, the check to see if a length is < 2^32 causes overflow on 32-bit systems. Remove this check since it can be debated this check is done implicitly in the data type. Joy Latten 2015-03-31 11:46:19 -05:00
  • 11c0fc68b8 EP11 token rework based on the new OCK tracing interface, also some very small whitespace changes and solved some compiler warnings (unused variables, format string warnings). Harald Freudenberger 2015-03-11 16:34:25 -05:00
  • 10c8ac2a4b testcase correction: In the AES wrap/unwrap testcase, the AES keys passed to be wrapped act as the AES data and therefore must be a multiple of the aes blocksize. Joy Latten 2015-02-03 13:56:39 -06:00
  • d254406ec7 Make VALID_MECH a function. Joy Latten 2015-02-03 13:53:25 -06:00
  • 1d3d226c0c In SC_DeriveKey check for the pointer to the derived key. Joy Latten 2015-02-03 13:51:51 -06:00
  • e523a61d02 Remove DEBUG definitions in several header files. All DEBUG definitions should probably be in trace.h now. Remove msg.h and log.c file since no longer needed. Joy Latten 2015-02-03 13:49:30 -06:00
  • ae29472ae1 Replace OCK_LOG with TRACE in ep11 token. Joy Latten 2015-02-03 13:46:26 -06:00