diff options
author | lloyd <[email protected]> | 2010-03-13 04:26:38 +0000 |
---|---|---|
committer | lloyd <[email protected]> | 2010-03-13 04:26:38 +0000 |
commit | 06af2a684ef2a906cc3ca057efdbce466dbde0bb (patch) | |
tree | 15b3e55fe29fdbddac9e8c1f5a76c5c97021c9b0 /src/pubkey/pubkey.h | |
parent | e86f88975725888a9687c90baec6e1d9d83b0789 (diff) |
Give PK_Signer users the option of disabling fault protection
Diffstat (limited to 'src/pubkey/pubkey.h')
-rw-r--r-- | src/pubkey/pubkey.h | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/src/pubkey/pubkey.h b/src/pubkey/pubkey.h index c31aed67b..eeb4d5841 100644 --- a/src/pubkey/pubkey.h +++ b/src/pubkey/pubkey.h @@ -24,6 +24,14 @@ namespace Botan { enum Signature_Format { IEEE_1363, DER_SEQUENCE }; /** +* Enum marking if protection against fault attacks should be used +*/ +enum Fault_Protection { + ENABLE_FAULT_PROTECTION, + DISABLE_FAULT_PROTECTION +}; + +/** * Public Key Encryptor */ class BOTAN_DLL PK_Encryptor @@ -174,10 +182,12 @@ class BOTAN_DLL PK_Signer * @param emsa the EMSA to use * An example would be "EMSA1(SHA-224)". * @param format the signature format to use + * @param prot says if fault protection should be enabled */ PK_Signer(const Private_Key& key, const std::string& emsa, - Signature_Format format = IEEE_1363); + Signature_Format format = IEEE_1363, + Fault_Protection prot = ENABLE_FAULT_PROTECTION); ~PK_Signer() { delete op; delete verify_op; delete emsa; } private: |