aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/pubkey/pk_ops.h
Commit message (Collapse)AuthorAgeFilesLines
* Add PK_Decryptor::decrypt_or_randomJack Lloyd2016-03-201-1/+3
| | | | | Performs content checks on the value (expected length, expected bytes) and in constant time returns either the decrypted value or a random value.
* Add generalized KEM interfaceJack Lloyd2015-12-261-3/+37
| | | | | | Convert McEliece KEM to use it Add RSA-KEM
* Move the signature padding schemes to the PK operation classes,lloyd2015-03-231-110/+40
| | | | | | | | | as was previously done with encrypt/decrypt ops. One feature dropped on the floor here is previously PK_Signer by default did verification of signatures before releasing them as an measure against fault attacks. However in addition to being expensive this turned out to be difficult to implement with the new scheme.
* In PK encrypt/decrypt move pad calls to the operation. This allows anlloyd2015-03-141-9/+60
| | | | | | | | | op to use a padding scheme outside of our knowledge or control, for instance an OpenSSL RSA op which uses OpenSSL's padding code. Similar change for key agreement and KDFs for the same reason. Add an EME_Raw type; previously this operation was implicit in the code in pubkey.cpp
* Convert PK operations to using Algo_Registry instead of Engine.lloyd2015-02-031-4/+31
| | | | Remove global PRNG.
* Ensure all files have copyright and license info.lloyd2015-01-101-1/+1
| | | | | Update license header line to specify the terms and refer to the file, neither of which it included before.
* Move lib into srclloyd2014-01-101-0/+163