Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Use KDF2/PK_Key_Agreement in DH benchmark | lloyd | 2010-03-04 | 1 | -5/+5 |
| | |||||
* | Clean up PK_Key_Agreement slightly | lloyd | 2010-03-04 | 2 | -21/+32 |
| | |||||
* | Fix typos | lloyd | 2010-03-04 | 1 | -2/+2 |
| | |||||
* | Inline simple DSA funcs | lloyd | 2010-03-04 | 2 | -21/+6 |
| | |||||
* | Remove ElGamal load hook functions | lloyd | 2010-03-04 | 2 | -47/+23 |
| | |||||
* | Remove NR load hooks | lloyd | 2010-03-04 | 2 | -58/+34 |
| | |||||
* | Remove no-op DH_Public_Key::X509_load_hook | lloyd | 2010-03-04 | 2 | -12/+1 |
| | |||||
* | Remove DSA load hooks functions | lloyd | 2010-03-04 | 2 | -32/+17 |
| | |||||
* | Cleanups | lloyd | 2010-03-04 | 1 | -5/+4 |
| | |||||
* | Remove IF_Scheme_PrivateKey::PKCS8_load_hook | lloyd | 2010-03-04 | 6 | -35/+30 |
| | |||||
* | New IF constructors, simplifies RSA/RW | lloyd | 2010-03-04 | 6 | -72/+67 |
| | |||||
* | Remove DH_PrivateKey::PKCS8_load_hook | lloyd | 2010-03-04 | 2 | -15/+23 |
| | |||||
* | More keygen tests | lloyd | 2010-03-04 | 1 | -0/+8 |
| | |||||
* | Remove unnecessary virtual destructors from ECC key base types | lloyd | 2010-03-04 | 1 | -4/+0 |
| | | | | (already have them, via Public_Key's virtual destructor) | ||||
* | Add back the Integrity_Failure exception. For one, removing it causes | lloyd | 2010-03-04 | 1 | -0/+9 |
| | | | | | problems for Monotone, and anyway it is a reasonable exception to have around for signalling MAC validation errors, etc. | ||||
* | Test GOST with 521-bit prime field (was setting off bug before) | lloyd | 2010-03-04 | 1 | -1/+1 |
| | |||||
* | Fix GOST pubkey encoding when x.bytes() != y.bytes() | lloyd | 2010-03-04 | 1 | -1/+1 |
| | |||||
* | Fix exception text | lloyd | 2010-03-04 | 1 | -1/+1 |
| | |||||
* | Quite the hack, here. | lloyd | 2010-03-04 | 3 | -1/+11 |
| | | | | | | | | | | | | | | | | | GOST 34.10 public keys use a funky encoding. There is no standard for PKCS #8 format private keys, so the obvious choice is to act exactly the same as ECDSA/ECDH (following the rule of thumb that if you're going to make up a random non-standard thing, at least try to copy something that's standard for something else). However the public key encoding uses a weird scheme for encoding the OID in the algorithm identifier, which we don't want to use for the PKCS #8 encoding. Add a new function to Private_Key, pkcs8_algorithm_identifier, which by default just calls algorithm_identifier(). However GOST_3410_PrivateKey overrides it, and calls EC_PublicKey::algorithm_identifier(), basically skipping over the virtual function hierarchy, so it doesn't pick up the funky format from the public key's version of algorithm_identifier(). | ||||
* | Split up load/store tests public vs private | lloyd | 2010-03-04 | 1 | -11/+29 |
| | |||||
* | For each keygen tests, save the file as pem then reload it. | lloyd | 2010-03-04 | 1 | -27/+80 |
| | |||||
* | Fix GOST 34.10 pubkey encoding | lloyd | 2010-03-04 | 2 | -3/+13 |
| | |||||
* | Fix loading ElGamal keys | lloyd | 2010-03-04 | 1 | -6/+4 |
| | |||||
* | Catch parse errors in OID, throw Invalid_OID | lloyd | 2010-03-04 | 1 | -1/+9 |
| | |||||
* | Fix ElGamal pubkey encoding (OID was unknown) | lloyd | 2010-03-04 | 1 | -1/+1 |
| | |||||
* | Catch any exception for parsing name, assume it's a bad OID | lloyd | 2010-03-04 | 1 | -1/+1 |
| | |||||
* | Changes to CVC to deal with the fact that you can't create an uninitialized | lloyd | 2010-03-04 | 3 | -8/+10 |
| | | | | ECDSA_PublicKey object anymore. | ||||
* | Remove more load hooks | lloyd | 2010-03-04 | 7 | -17/+10 |
| | |||||
* | Remove load hooks from ECC classes, unused | lloyd | 2010-03-04 | 3 | -21/+16 |
| | |||||
* | Kill pkcs8_decoder | lloyd | 2010-03-04 | 8 | -158/+0 |
| | |||||
* | Add similar decoding constructors to the private keys | lloyd | 2010-03-04 | 18 | -85/+167 |
| | |||||
* | Remove X509_Decoder. Fix GOST-34.10 DER constructor (was default to normal ECC) | lloyd | 2010-03-04 | 10 | -173/+24 |
| | |||||
* | Add a new constructor to each public key algorithm (only the public | lloyd | 2010-03-04 | 21 | -211/+195 |
| | | | | | | | keys so far, private keys not changed) that takes an AlgorithmIdentifier and a MemoryRegion<byte>&. This performs the X.509 decoding. It is not possible anymore to create uninitialized PK objects. | ||||
* | Remove odd DH use in ECDH test | lloyd | 2010-03-04 | 1 | -4/+0 |
| | |||||
* | Some botan exception throws are plain STL exceptions | lloyd | 2010-03-04 | 1 | -7/+1 |
| | |||||
* | The code in pk_codecs was actually entirely tied to the code in | lloyd | 2010-03-04 | 12 | -13/+7 |
| | | | | | | pubkey; you literally could not compile any pubkey code without it. Move it up to the pubkey dir, it wasn't at all useful to have it in its own dir. | ||||
* | Kill pkcs8_encoder | lloyd | 2010-03-04 | 8 | -124/+4 |
| | |||||
* | Add a pkcs8_private_key similiar to x509_subject_public_key | lloyd | 2010-03-04 | 8 | -27/+49 |
| | |||||
* | Add a new function to public key x509_subject_public_key which returns | lloyd | 2010-03-04 | 12 | -146/+36 |
| | | | | | what x509_encoder()->key_bits() used to return. This is much simpler than using the explicit encoder objects. Remove X509_Encoder entirely. | ||||
* | Add a new function to Public_Key, algorithm_identifier(), which just | lloyd | 2010-03-04 | 8 | -23/+36 |
| | | | | | returns the AlgorithmIdentifier representing this scheme (OID + domain params if any). | ||||
* | Fix stupid typo | lloyd | 2010-03-03 | 1 | -1/+1 |
| | |||||
* | Pass the args to SIMD_32 variant of rotate_left/rotate_right as const | lloyd | 2010-03-03 | 1 | -6/+6 |
| | | | | | reference. Otherwise Visual C++ dies because apparently the Win32 ABI doesn't know how to pass a __m128i as a function parameter. :/ | ||||
* | Only disable VC++ warning C4275 with DLL builds | lloyd | 2010-03-03 | 1 | -2/+2 |
| | |||||
* | Document fix for VC static builds | lloyd | 2010-03-03 | 1 | -0/+1 |
| | |||||
* | Unused variable warning in catch statement | lloyd | 2010-03-03 | 1 | -1/+1 |
| | |||||
* | Unused variable warning in catch statement | lloyd | 2010-03-03 | 1 | -1/+1 |
| | |||||
* | Fix VC++ static lib builds | lloyd | 2010-03-03 | 1 | -0/+4 |
| | |||||
* | Reduce deps slightly in selftest code | lloyd | 2010-03-03 | 1 | -4/+17 |
| | |||||
* | Fix Windows distclean target | lloyd | 2010-03-03 | 1 | -1/+3 |
| | |||||
* | Disable VC warning 4275 | lloyd | 2010-03-03 | 1 | -1/+1 |
| |