Commit Graph
193 Commits
Author SHA1 Message Date
Martin Willi f5475fa440 crypter_t api supports in-place encryption using NULL as output parameter 2008-04-30 14:02:25 +00:00
Andreas Steffen 460025e253 introduced ASN1_EXIT command in ASN.1 object syntax definition 2008-04-28 16:00:52 +00:00
Andreas Steffen c3628ebc35 optimized parser->success() 2008-04-26 11:08:36 +00:00
Andreas Steffen df231f5488 ported ASN.1 changes to pkcs7 2008-04-26 10:20:51 +00:00
Andreas Steffen d3d7e46b8c refactoring of the ASN.1 parser 2008-04-26 09:24:14 +00:00
Martin Willi 4d18175997 removed status result from crypter interface to be consistent with other crypto interfaces 2008-04-22 07:14:24 +00:00
Martin Willi 6a365f0740 added API for random number generators, served through credential factory
ported randomizer_t to a rng_t on top of /dev/(u)random (plugin random)
2008-04-15 05:56:35 +00:00
Martin Willi f6e7c0f785 removed stale ocsp header 2008-04-08 06:27:04 +00:00
Martin Willi cfede7f6e2 The introduced SHA1_NOFINAL hasher was not sufficient for EAP-AKA,
as it requires to XOR the key into the hashers state.
A new SHA1 based keyed hash function, implemented as PRF, enables EAP-AKA
and the FIPS-PRF function to properly use the existing SHA1 implementation.
2008-03-19 14:02:52 +00:00
Martin Willi 552cc11b1f merged the modularization branch (credentials) back to trunk 2008-03-13 14:14:44 +00:00
Andreas Steffen 9514d26c5c parse signedData object with empty content 2008-02-02 00:29:03 +00:00
Andreas Steffen f4a459473e build_signedData() now computes messageDigest attribute 2008-02-01 22:26:01 +00:00
Andreas Steffen 7734c01677 added set_messageDigest() and get_messageDigest() methods 2008-02-01 22:24:51 +00:00
Andreas Steffen e8bfe74289 extended and debugged PKCS#7 signedData support 2008-02-01 14:19:26 +00:00
Andreas Steffen 5862981ce9 fixed comment 2008-01-27 20:59:22 +00:00
Andreas Steffen f19628490c implemented pkcs1_encrypt() 2008-01-27 20:58:52 +00:00
Andreas Steffen 5bb8fcc074 added RCSID 2008-01-22 10:52:26 +00:00
Andreas Steffen cd543a69a2 extended asn1_algorithmIdentifier() to SHA-2 2008-01-22 10:32:37 +00:00
Andreas Steffen 2d49eaa131 x509_t.build_encoding() now supports any hash algorithm 2008-01-22 01:32:12 +00:00
Andreas Steffen a7419b07d1 fully implemented x509_create() 2008-01-22 01:09:19 +00:00
Andreas Steffen c8b6375c5c fixed destruction of generalNames linked list 2008-01-21 22:56:58 +00:00
Andreas Steffen 0be06e472a fixed parsing and building of generalNames 2008-01-21 10:00:13 +00:00
Andreas Steffen 55dbc3fd7b implemented rsa_private_key_t.get_public_key() 2008-01-21 00:36:38 +00:00
Andreas Steffen b5d8c9779a added rsa_public_key_create(mpz_t n, mpz_t e) 2008-01-21 00:34:41 +00:00
Andreas Steffen d349a3d11a added notBefore and notAfter to x509_create() 2008-01-21 00:30:26 +00:00
Andreas Steffen 35b2b1e334 fixed error in the ordering of the certinfo_t records in the ocsp cache that caused multiple entries of the same serial number to be created. This was caused by the iterator_t method insert_after() that inserts a record in the first instead of the last position of a linked list if the end of the list is reached. Fix: use linked_list_t method insert_last() instead. 2007-12-12 20:25:50 +00:00
Martin Willi ee61471113 implemented RFC4478 (repeated authentication)
changed %V printf handler to take a time delta, %#V now takes two arguments
2007-11-20 12:06:40 +00:00
Andreas Steffen 6d8bec0b97 corrected typos 2007-10-17 02:56:24 +00:00
Andreas Steffen 57423bb7ac corrected brief 2007-10-17 02:55:53 +00:00
Andreas Steffen f39e4d3209 added hasher_signature_algorithm_to_oid() function 2007-10-12 23:18:42 +00:00
Andreas Steffen bad1a23f02 added get_publicKeyInfo() method 2007-10-12 22:49:39 +00:00
Andreas Steffen 0fa2c4fada added create_certificate_iterator() method 2007-10-12 21:57:20 +00:00
Andreas Steffen 92a0b9d5ec added x509_build_generalNames() and x509_build_subjectAltNames() functions 2007-10-12 21:56:30 +00:00
Andreas Steffen 340376e316 added x509_ prefix to imported parse functions 2007-10-12 21:53:18 +00:00
Andreas Steffen 3edea3497f implemented pkcs1_write() method 2007-10-12 15:23:29 +00:00
Andreas Steffen dba89b1bb7 added x509_create() synthesis function 2007-10-11 14:39:40 +00:00
Andreas Steffen a09bbc82ce added get_data() method 2007-10-11 14:38:46 +00:00
Andreas Steffen 86150b684d call get_keysize with const rsa_private_key_t* 2007-10-11 11:36:37 +00:00
Andreas Steffen 5ff927425f cosmetics 2007-10-11 11:26:20 +00:00
Andreas Steffen b61e95a659 renamed eme_pkcs1_decrypt() to pkcs1_decrypt() 2007-10-11 11:25:52 +00:00
Andreas Steffen c5d0c18149 corrected brief 2007-10-08 21:25:44 +00:00
Andreas Steffen de63a765ef increase debug level from 1 to 2 2007-10-08 19:36:42 +00:00
Andreas Steffen 06ba2d36c3 completed pkcs7 parsing methods 2007-10-07 22:11:42 +00:00
Andreas Steffen 2d8a418059 added eme_pkcs1_decrypt() method 2007-10-07 21:43:24 +00:00
Andreas Steffen e1513577fb added error message in case of incorrect padding 2007-10-07 21:42:38 +00:00
Andreas Steffen 2f5199ec48 added RCSID 2007-10-07 21:41:37 +00:00
Andreas Steffen 5f854d7f95 added strneq(x,y,len) macro 2007-10-07 13:35:42 +00:00
Martin Willi 493f377b41 fixed memory leak 2007-10-04 15:20:00 +00:00
Martin Willi c96aefe268 implemented an optional DH public value test
some other cleanups, using RFC2631 variable names
2007-10-04 15:19:24 +00:00
Martin Willi 40f10fd88e cleanups, fixes and simplification of diffie hellman code 2007-10-04 12:08:11 +00:00