Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | 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 |
| | |||||
* | 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. | ||||
* | 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(). | ||||
* | 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 | 16 | -82/+164 |
| | |||||
* | 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 | 19 | -114/+193 |
| | | | | | | | 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. | ||||
* | 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 | 11 | -140/+34 |
| | | | | | 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 |
| | |||||
* | 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 |
| | |||||
* | Fix Windows distclean target | lloyd | 2010-03-03 | 1 | -1/+3 |
| | |||||
* | Disable VC warning 4275 | lloyd | 2010-03-03 | 1 | -1/+1 |
| | |||||
* | Remove BOTAN_DLL from templates, VC++ doesn't like it | lloyd | 2010-03-03 | 2 | -2/+2 |
| | |||||
* | Reorganize where some CVC code goes to avoid template bloat + VC problems | lloyd | 2010-03-03 | 7 | -95/+66 |
| | |||||
* | Minor cleanups in Salsa20 code | lloyd | 2010-03-03 | 2 | -42/+9 |
| | |||||
* | Use static_cast if using std::time-based get_nanoseconds_clock to make | lloyd | 2010-03-03 | 1 | -2/+6 |
| | | | | | | it obvious that truncation is occuring. Something to deal with in 2038 I guess, though get_nanoseconds_clock is already an unknown/unspecified epoch (since the Windows timer uses 1/1/1601 as the epoch) | ||||
* | Use a macro to make Salsa20 code a bit more compact | lloyd | 2010-03-03 | 1 | -66/+26 |
| | |||||
* | Add XSalsa20 | lloyd | 2010-03-03 | 2 | -12/+108 |
| | |||||
* | Modify the ECDSA signature OIDs. Previously the ones using the BSI | lloyd | 2010-03-02 | 1 | -6/+8 |
| | | | | | | | | | | | scheme, which is supposed to use the IEEE 1363-style concatenation format, was identified with the X9.62 OIDs, which are documented to use the DER sequence format. Switch the BSI ones to use the OIDs allocated for this purpose by BSI, and add the X9.62 ECDSA/SHA-1 OID since that was missing. Correct an ECDSA test that assumed the cert was identified with the BSI OID, even though in fact the cert in question uses an X9.62-style format. | ||||
* | CVC assumed sigs were DER encoded by default. Not true | lloyd | 2010-03-02 | 4 | -25/+7 |
| | |||||
* | Remove ECDSA_Signature encoding/decoding cruft | lloyd | 2010-03-02 | 3 | -83/+39 |
| | |||||
* | Cleanups, remove dead code | lloyd | 2010-03-02 | 8 | -96/+27 |
| | |||||
* | Port in the code for forming the EAC encoding of an ECDSA key, so now | lloyd | 2010-03-02 | 1 | -19/+47 |
| | | | | generating new CVC certs might actually work. | ||||
* | Lots of internal CVC cleanups | lloyd | 2010-03-02 | 13 | -192/+121 |
| | |||||
* | Remove some needless usages of auto_ptr in CVC | lloyd | 2010-03-02 | 7 | -22/+33 |
| | |||||
* | For PEM encoding ECC domain parameters I had been using the identifier | lloyd | 2010-03-02 | 2 | -60/+60 |
| | | | | | | | | "ECC DOMAIN PARAMETERS", because I couldn't find any other library that offered PEM encoding to be compatible with so I just picked something. Turns out OpenSSL does have PEM encoding of EC params (openssl ecparam), and uses "EC PARAMETERS". As good as anything else, and allows interop, so change to use that. | ||||
* | Make two variants of OS2ECP, one taking pointer + length, and other | lloyd | 2010-03-02 | 3 | -16/+20 |
| | | | | | (inlined) taking a MemoryRegion& that just forwards. This makes it possible to avoid an extra copy in ECDH::derive_key. | ||||
* | Use a single dir for all boost.python objects | lloyd | 2010-03-02 | 1 | -5/+3 |
| | |||||
* | Fix python_pbkdf2 for new signature. | lloyd | 2010-03-02 | 1 | -3/+19 |
| | | | | Add python KDF2 call, patch from Thomas Capricelli |