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) | ||||
* | 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 |
| | |||||
* | 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 | 9 | -10/+6 |
| | | | | | | 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 | 7 | -16/+35 |
| | | | | | returns the AlgorithmIdentifier representing this scheme (OID + domain params if any). | ||||
* | Unused variable warning in catch statement | lloyd | 2010-03-03 | 1 | -1/+1 |
| | |||||
* | For PEM encoding ECC domain parameters I had been using the identifier | lloyd | 2010-03-02 | 1 | -2/+2 |
| | | | | | | | | "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 | 1 | -3/+1 |
| | | | | | (inlined) taking a MemoryRegion& that just forwards. This makes it possible to avoid an extra copy in ECDH::derive_key. | ||||
* | Small cleanups | lloyd | 2010-03-02 | 4 | -23/+21 |
| | |||||
* | Add some simple constructors to the EC_ base key types to simplify | lloyd | 2010-03-02 | 8 | -106/+78 |
| | | | | the various implementations | ||||
* | Remove extraneous include | lloyd | 2010-03-02 | 1 | -4/+0 |
| | |||||
* | Rename ECKAEG to ECDH. As far as I can tell they are the same algorithm, | lloyd | 2010-03-02 | 3 | -31/+35 |
| | | | | | I'm not sure where the old name came from though as literally the only hits for it on Google are botan-related. | ||||
* | Kill ECKAEG_Op | lloyd | 2010-03-02 | 7 | -235/+32 |
| | |||||
* | Remove ECDSA_Op and its attendant bits | lloyd | 2010-03-02 | 6 | -281/+45 |
| | |||||
* | Remove auto_ptr from ECC key types | lloyd | 2010-03-02 | 11 | -586/+136 |
| | |||||
* | Remove a fairly useless member of EC_PublicKey that was only used for | lloyd | 2010-03-02 | 6 | -94/+3 |
| | | | | | | | handling ImplicitCA ECDSA keys in the CVC code. Currently dealt with in CVC by simply commenting out the calls - CVC is already pretty broken and I'd much rather have ECC sane and under control and CVC totally broken than ECC remaining in its current state. | ||||
* | Set PEM constructor (taking a string) to default to "". In this case, | lloyd | 2010-03-02 | 2 | -6/+12 |
| | | | | don't initialize. | ||||
* | Move all of the ECC domain parameter sets to policy.cpp, encoded as PEM, | lloyd | 2010-03-02 | 3 | -437/+12 |
| | | | | instead of weird custom format hard-coded in ec_dompar.cpp | ||||
* | Add EC domain contructor eating PEM. Set OID in OID constructor | lloyd | 2010-03-01 | 2 | -3/+17 |
| | |||||
* | Add EC_Domain_Params::PEM_encode | lloyd | 2010-03-01 | 3 | -31/+45 |
| | |||||
* | Kill get_EC_Dom_Pars_by_oid | lloyd | 2010-03-01 | 3 | -62/+49 |
| | |||||
* | Clean up EC_Domain_Params | lloyd | 2010-03-01 | 6 | -184/+144 |
| | |||||
* | Use a Modular_Reducer in ECDSA op for reductions mod the order of the group | lloyd | 2010-02-25 | 2 | -18/+9 |
| | |||||
* | Move contents of gfpmath to numbertheory. Adjust dependencies. | lloyd | 2010-02-25 | 5 | -6/+1 |
| | |||||
* | Inline GFpElement | lloyd | 2010-02-25 | 1 | -3/+1 |
| | |||||
* | Remove point_{x,y,z} funcs, hide GFpElement entirely | lloyd | 2010-02-25 | 1 | -2/+0 |
| | |||||
* | CurveGFp: Inline, deleting source file. Store only a,b,p as | lloyd | 2010-02-25 | 1 | -38/+41 |
| | | | | | BigInts. Also reorder constructor args to p, a, b which seems more sensible to me. | ||||
* | Convert PointGFp::get_affine_{x,y} to return just the BigInt value | lloyd | 2010-02-25 | 3 | -14/+16 |
| | |||||
* | Convert 3-arg constructoor of PointGFp to take BigInts instead of | lloyd | 2010-02-25 | 1 | -2/+1 |
| | | | | | | GFpElements. Clean up OS2ECP | ||||
* | Remove PointGFp::mult_this_secure | lloyd | 2010-02-24 | 5 | -19/+13 |
| | |||||
* | Remove debug print | lloyd | 2010-02-24 | 1 | -5/+0 |
| | |||||
* | propagate from branch 'net.randombit.botan' (head ↵ | lloyd | 2010-02-24 | 11 | -30/+24 |
|\ | | | | | | | | | | | 84baf58b29f3aaaee34e2b873d0040be5a6c4368) to branch 'net.randombit.botan.gost_3410' (head 63cbe3e357c071d7960bfedc31101eff35895285) | ||||
| * | Remove unused variable in ec_dompar. Add missing include to ecc_key | lloyd | 2010-02-23 | 2 | -5/+4 |
| | | |||||
| * | Remove catch clauses made redundant by inheritence changes in exception ↵ | lloyd | 2010-01-08 | 1 | -5/+0 |
| | | | | | | | | hierarchy. | ||||
| * | Clean up exceptions. Remove some unused ones like Config_Error. Make | lloyd | 2010-01-05 | 4 | -6/+8 |
| | | | | | | | | | | | | | | Invalid_Argument just a typedef for std::invalid_argument. Make Botan::Exception a typedef for std::runtime_error. Make Memory_Exhaustion a public exception, and use it in other places where memory allocations can fail. |