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

Commit Graph

  • 11e808223f The asm/zcrypt.h header file uses some std int types and so the stdint.h include statement should occur before the zcrypt header file. Harald Freudenberger 2014-04-14 12:02:48 -05:00
  • 2bca1b3922 Configure was checking for the ep11 lib and the m_init() function. As this library will be dynamically loaded at run time and there is no dependency at build time (but build will break if ep11 lib is not available) removed this check. Harald Freudenberger 2014-04-14 11:48:56 -05:00
  • 401de8a8b5 Fix failure when confname is not given, use default ep11tok.conf instead. Harald Freudenberger 2014-04-02 12:05:12 -05:00
  • 68a30e9bf0 print_mechanism() ignored bad returncodes from the called function token_specific_get_mechanism_list(). So the token init was just running fine but mechanism list kept empty (eg. because of wrong adapter configuration). Fixed this and adjusted some of the related log messages. Harald Freudenberger 2014-04-02 12:03:53 -05:00
  • d510700d00 pkcsconf: remove 'M' from the optstring and the help message Petr Lautrbach 2014-03-31 10:34:42 -05:00
  • 6589fae156 EP11: some README updates about usage and restrictions. Ingo Tuchscherer 2014-02-12 15:56:46 -06:00
  • 9d445b0294 ep11's h_opaque_2_blob needs to catch the return code from object_mgr_find_in_map1 and return it. Joy Latten 2014-02-12 12:09:14 -06:00
  • 099a3a110a Scenario: processA creates private token key object and before he can use it, processB gets it, uses it, and deletes it. Because opencryptoki was not checking the global token object count, process B segfaulted when count was zero, thinking there were objects in shared memory to search. Also, it was not checking return code of object_mgr_check_shm() in object_mgr_find_in_map1 to see if anything was found in shm. And lastly, return correct error code. Joy Latten 2014-02-12 12:06:53 -06:00
  • d564279d2c ep11: switched to official m_init() function based on library change Ingo Tuchscherer 2014-02-07 15:08:27 -06:00
  • f558043c9c ep11: Fixed Makefile to complement common code dependencies This will fix the side effect that the ep11 token could not plugged into slot 0, because of unresolved symbols. Ingo Tuchscherer 2014-02-07 15:03:48 -06:00
  • fde048b798 Separate Diffie hellman testcase #2 into a section for clear keys and a section for secure keys. v3.1 Joy Latten 2014-01-27 15:19:02 -06:00
  • 5c15f8b862 cca token does not support brainpoolP512t1, so skip it in the ec_func.c testcase. Joy Latten 2014-01-27 12:27:58 -06:00
  • 90e12552d9 EP11 key-migration-tool: fixed symbol handling for ep11 library 3.1pre_branch Ingo Tuchscherer 2014-01-27 12:11:44 -06:00
  • 3bdfaafbb1 Note not to install ep11.h header file in the ep11 Makefile.am Joy Latten 2014-01-26 23:58:52 -06:00
  • 8590fa93f7 Update necessary files for version 3.1 Joy Latten 2014-01-26 23:38:38 -06:00
  • b9ecf36d8a Add README for ep11 token and man page for ep11 migrate tool. Joy Latten 2014-01-26 23:19:28 -06:00
  • 38825420db Initialize csum and ep11_opaque in ep11. Joy Latten 2014-01-26 22:33:05 -06:00
  • 9da4a6174a EP11 token: removed unsupported mechanisms from mechanism list Ingo Tuchscherer 2014-01-23 15:21:42 -06:00
  • 5d9cf3e8b3 Added test case conditions based on mechanism type and key length Ingo Tuchscherer 2014-01-23 15:20:36 -06:00
  • 050f11b9fd EP11: Fixed key object attributes - part II Added key properties related to the class and key type Ingo Tuchscherer 2014-01-23 15:19:38 -06:00
  • 21d9a7d334 ST_initialize takes a mutex lock before calling the token specific init call. Thus ep11's token specific init call does not really require a lock since its access is serialize in ST_Initialize. Joy Latten 2014-01-19 23:20:30 -06:00
  • db436d2f51 Added EP11 token specific default key attributes for secret keys and EC/RSA public and private keys Ingo Tuchscherer 2014-01-19 23:19:09 -06:00
  • e0ed4ca88d RSA testcase corrections. Prior changes did not consider that the test vectors included keys other than DES3 and AES to be wrapped. Joy Latten 2014-01-13 13:45:34 -06:00
  • c0ba48eb32 EP11 fails with opencryptoki's version of encoding attributes. According to rfc 5208, encoding of attributes are optional. Thus can skip encoding them. Torsten Hendel 2014-01-13 13:51:34 -06:00
  • f6faf70670 1. 2 lines in code had "P11TOK" instead of "EP11TOK" and this caused a symbol lookup failure. 2. reformated a function Joy Latten 2014-01-09 15:38:45 -06:00
  • 555b60badb 1. opencryptoki was having problems finding ep11tok.conf. Made following corrections, - config dir is either OCK_EP11_TOKEN_DIR or OCK_CONFDIR. - The config file name is always taken from the ep11 entry in opencryptoki.conf. Joy Latten 2014-01-09 15:37:33 -06:00
  • 5dd62ff398 Added error handling for memory allocations. Release pre-allocated memory in error case. Mode change in token_specific_unwrap_key. Ingo Tuchscherer 2014-01-09 15:36:30 -06:00
  • 03436b602d Enable ep11 token and migrate utility only when ep11 library and required header is avaliable. Joy Latten 2014-01-09 15:34:53 -06:00
  • 4c95ddd850 1. Use the rng in soft token as a generic rng. Thus in future, if a token does not implement an rng, it can use the generic one. 2. Since secure key tokens use software des3 rather than token's des3 to encrypt/decrypt private token objects, their masterkeys do not need to be generated by the token. All this end up doing is creating a blob and the blob is used for the key. Instead, just use the RNG to create a spcific number of bytes for des3 key for the software des3 to use. Joy Latten 2014-01-08 17:32:40 -06:00
  • 04731e64ea Fixed configure script to conditionally enable ep11-token build. Ingo Tuchscherer 2014-01-08 17:30:30 -06:00
  • 70c410993d Added installation of ep11tok.conf to Makefile Ingo Tuchscherer 2014-01-08 17:29:16 -06:00
  • a8fc0b6e62 Reformated ep11_specific.c to more closely follow linux kernel coding style. Joy Latten 2014-01-08 16:50:33 -06:00
  • 52dbc27f83 Add several directories to gitignore. Joy Latten 2014-01-08 16:49:54 -06:00
  • a8d3862e76 Renaming of library and token config file extension. Ingo Tuchscherer 2014-01-08 16:49:11 -06:00
  • f4abd1fd0c testcase fixes for secure key tokens. Torsten Hendel 2013-12-16 00:41:50 -06:00
  • 657305f52b Add new EP11 token functionality orsten Hendel 2013-12-16 00:39:33 -06:00
  • 95064291fe Problem: A regular user in pkcs11 group cannot issue pkcsconf -t. When shm_open() creates shared memory object, it honors umask of the caller. This patch ensures the shared memory has expected permissions when it is created. Joy Latten 2014-01-17 10:33:19 -06:00
  • fef1c24a5f [PATCH] fix build with -Werror=format-security Refers to SF bug #1037228 Dan Horák 2013-12-03 12:52:32 -06:00
  • f4df4a49d4 CCA token was putting incorrect OID info into CKA_ECDSA_PARAMS. This attribute must be passed in by user when generating EC keypair and should not be over-written. Since CKA_EC_POINT is for public key, does not require being in private key. Created a routine to get signature length when length only. Joy Latten 2013-11-13 15:59:59 -06:00
  • ce8de9df2c Objects were not being encrypted and saved to disk for secure key token. Needed to call encrypt_data_with_clear_key() and let it determine if clear key or secure key and do appropriate actions. Joy Latten 2013-11-13 15:23:52 -06:00
  • 48c87082d3 CCA token was putting incorrect OID info into CKA_ECDSA_PARAMS attribute. This attribute must be passed in by the user when generating EC keypair and should not be over-written. Joy Latten 2013-11-06 13:39:24 -06:00
  • b3c5e1635e The sha256 in CCA (CSNBOWH) can take input larger than 32MB. Joy Latten 2013-10-02 17:15:34 -05:00
  • 84db3078de CCA token was not importing rsa keypair correctly in v3. Joy Latten 2013-10-02 16:34:40 -05:00
  • 5e7e9c8474 Update options in the pkcsconf man page to match the pkcsconf binary. Signed-off-by: Dan Horák 2013-09-04 16:35:38 -05:00
  • b50eb39e3c Update the opencryptoki(7) man page and remove reference to pkcs11_startup and pk_config_data. Joy Latten 2013-09-04 16:12:38 -05:00
  • 9c8ab7b0c7 Update unit file for 3.0. Dan Horák 2013-09-04 15:58:02 -05:00
  • 8ea9659d64 Add missing copyright. v3.0 Joy Latten 2013-07-15 11:38:43 -05:00
  • 285ae71055 More documentation. Joy Latten 2013-07-12 17:44:20 -05:00
  • 12c1c71d7e Add to ChangeLog Joy Latten 2013-07-12 10:02:54 -05:00
  • 3a492f7e21 Bump up version to 3.0. Joy Latten 2013-06-21 10:53:02 -05:00
  • 85a0f66ece ICA token was not properly reporting when a mechanism was invalid. The return value was incorrect when a mechanism could not be found. Corrected a few return values in the ica token specific get mechanism code. Joy Latten 2013-06-21 10:46:44 -05:00
  • 830a639128 Bugfix: several hmacs were in incorrect case statement. Also fixed a typo in the testcase vector for sha512 hmac. Joy Latten 2013-06-20 15:27:09 -05:00
  • 7175433ac2 Update docs to reflect v3 changes. Joy Latten 2013-06-17 16:12:31 -05:00
  • 684dd44bc9 Add cfb and ofb test vectors for des3. Also made a correction in one of the aes test vectors. Joy Latten 2013-06-11 22:33:12 +02:00
  • 92d8978f96 Added publiched test vectors for aes-cfb8 and aes-fb128. Joy Latten 2013-06-10 18:31:51 +02:00
  • 2b2bcd7aa7 Fixed Encrypt/Decrypt-Update methods for DES, DES3 and AES in CFB mode (s-bit size for single crypto operation cycle corrected) Ingo Tuchscherer 2013-06-11 03:23:02 +02:00
  • 157127f277 ica-token: added support for: CBC-MAC for DES3 and AES OFB and CFB mode for DES3 and AES SHA384HMAC, SHA512HMAC new method to retrieve mechanism list for ica token Ingo Tuchscherer 2013-06-10 00:22:04 +02:00
  • be895a5f2a Make using a socket for transferring slot info between pkcsslotd and the opencryptoki library the default behaviour rather than using shared memory. We still use shared memory for some process bookkeeping per slot. Joy Latten 2013-06-09 23:35:34 +02:00
  • b9ed7d424a Patch[4/4]: Part 2 of slot-info via socket. Ross McIlroy 2013-06-09 22:58:23 +02:00
  • 3686bd27f8 Patch[3/4]: Part 1 of slot-info via socket. Adds an option to use a unix domain socket for the transmission of slot information from the slot daemon to the library, rather than shared memory. In this patch, only ck_info is transmitted this way. Ross McIlroy 2013-06-09 04:19:28 +02:00
  • 87d147f2c3 Patch[2/4]: Move the code in InitSharedMemory that populates the CKInfo and SlotInfo structures into helper functions in pkcssllotd_util.c. Ross McIlroy 2013-05-22 10:41:48 -05:00
  • 4c4a109d82 Patch[1/4]: Add a CK_Info_From_Internal helper function to apiutil to avoid duplicating code. The CK_Info_From_Internal function copies the internal representation of CK_Info to the external one. Ross McIlroy 2013-05-22 09:15:28 -05:00
  • 14a3b009ac Add pkcsicsf man page Joy Latten 2013-04-08 16:04:34 -05:00
  • e3a8635e27 Correct usage syntax for pkcsicsf. Joy Latten 2013-04-07 23:11:03 -05:00
  • d0df70cdd1 The pkcs11 group will be added externally. Joy Latten 2013-04-07 15:33:43 -05:00
  • 22f8dd9d3d pkcsicsf: add support for explicit and implicit configuration Marcelo Cerri 2013-04-04 12:56:23 -03:00
  • 14bd9c375f fix: properly resize token_specific_find_objects_init() internal buffer Marcelo Cerri 2013-04-03 12:40:28 -03:00
  • 3792c748b3 TPM token needs to make user and TOK_OBJ directories some time during initialization. Joy Latten 2013-04-02 21:10:12 -05:00
  • 793b76e753 Add token_specific_init_token_data to tpm token so it won't do masterkey stuff. Joy Latten 2013-04-02 18:13:46 -05:00
  • 90d8d45dea list: fix warning on ppc Marcelo Cerri 2013-04-02 12:21:54 -03:00
  • 5180a9a31d test: add mechanism name to skip messages Marcelo Cerri 2013-04-02 11:17:22 -03:00
  • 4219a58705 Refactored copyobject testcase since was failing. Joy Latten 2013-04-01 18:49:02 -05:00
  • bd7e113e35 ICSF's token_specific_copy_object was not mapping icsf error code to ock error codes. Also, icsf reason 3034 should map to attribute_read_only. Joy Latten 2013-04-01 18:47:06 -05:00
  • e869bfcb21 Debug correction. Joy Latten 2013-04-01 17:40:33 -05:00
  • c0fb8c5ea3 DSA test case corrections. Joy Latten 2013-04-01 17:37:27 -05:00
  • 3e1055590a Corrections in error messages. Joy Latten 2013-04-01 17:35:02 -05:00
  • f627ce63a6 Check mechanism to see if key wrapping supported before running key wrap testcases. Joy Latten 2013-04-01 17:28:46 -05:00
  • f4a1db08a2 fix: check for a NULL list in for_each_list_entry() Marcelo Cerri 2013-04-01 17:17:23 -03:00
  • 3890d18e84 fix: properly return the length needed when signing with private keys Marcelo Cerri 2013-04-01 16:16:57 -03:00
  • c9705750b2 fix: add libraries required by 390x Marcelo Cerri 2013-04-01 16:16:20 -03:00
  • d614a92e75 Corrected aes testcases that were looking for incorrect return code as well as not checking if the mechanism supported key wrapping. Joy Latten 2013-04-01 13:44:46 -05:00
  • 68203e9c70 fix: user returned values from token-specific functions Marcelo Cerri 2013-04-01 15:10:13 -03:00
  • 533ea07c70 load token data when initializing. Dont use shared memory. Otherwise, when /var/lib/opencryptoki/<token> dir is removed, cannot reinitialize token because it is getting info like pin in shared memory and not from nvtok.dat to start over. Thus unable to re-initialize a token whose info was removed. Joy Latten 2013-03-28 16:31:56 -05:00
  • 77a88f89cf Add 2 additional assertions. 1. CKM_SSL3_MASTER_KEY_DERIVE has implicit (implied) attributes, so testcase checks that the implementation adds the required attributes to the derived key if the user did not specify them. Joy Latten 2013-03-27 20:20:26 -05:00
  • 351faf9104 icsf: add test case for multiple keys derivation Marcelo Cerri 2013-03-27 15:05:32 -03:00
  • 8aa426edf6 icsf: add multiple keys derivation Marcelo Cerri 2013-03-26 10:46:13 -03:00
  • b61c4f5a73 More refactoring for ssl3_func.c Joy Latten 2013-03-26 11:30:20 -05:00
  • 5af403023c Refactored ssl3 testcases in ssl3_func.c Joy Latten 2013-03-26 11:29:34 -05:00
  • 43d950cbb3 Refactored the Diffie Helman testcase in dh_func.c Joy Latten 2013-03-26 11:28:46 -05:00
  • a5e9353ef9 CKM_SSL3_SHA1_MAC and CKM_SSL3_MD5_MAC require mechanism parameters in ICSF token. Joy Latten 2013-03-26 11:25:01 -05:00
  • 6f935096b6 derive key in ICSF should accept null attributes. Joy Latten 2013-03-26 11:24:00 -05:00
  • 5a17f4afe4 Add DeriveKey to ock and icsf token. Joy Latten 2013-03-22 11:04:45 -05:00
  • 66db3c7def on ppc64 compiler complained about implicit use. needed include files. Joy Latten 2013-03-20 23:12:36 -05:00
  • 7e037485db Add SSL3 MAC mechanisms to sign and verify for ICSF token. Joy Latten 2013-03-20 23:11:33 -05:00
  • f8cbe209fd ber_scanf on ppc64 seems to not like our assigning an int to a size_t Joy Latten 2013-03-20 23:10:36 -05:00
  • 64c3c1eae6 Add signed hashes to ock layer in ICSF token. Joy Latten 2013-03-20 23:09:40 -05:00
  • 8d0dc83443 Remove reference to parameter since none of the sign and verify mechanisms require it. Joy Latten 2013-03-20 23:06:38 -05:00
  • 450958e0a7 Add signed hash call to icsf layer. Joy Latten 2013-03-20 23:05:49 -05:00
  • cbc64ae6cc icsf: add support for SASL authentication Marcelo Cerri 2013-03-19 10:07:56 -03:00
  • a9d324fe49 test: fix key wrapping test case Marcelo Cerri 2013-03-14 11:18:53 -03:00