diff options
author | Mouse <[email protected]> | 2015-10-20 11:25:13 -0400 |
---|---|---|
committer | Mouse <[email protected]> | 2015-10-20 11:25:13 -0400 |
commit | b81c246c9c741ef669a79749bc31795175a2a555 (patch) | |
tree | b1291dc5ad4fff2193551e597aa01203327ffb5a /src/lib/pubkey/mceies/mceies.h | |
parent | 44e90e8cf98c7f132c88510b51492c8630fb092c (diff) | |
parent | 194d7d3682bddbd534e211357dd5f817d01ab7ed (diff) |
Merge pull request #2 from randombit/master
Update to match current Botan-1.11.22
Diffstat (limited to 'src/lib/pubkey/mceies/mceies.h')
-rw-r--r-- | src/lib/pubkey/mceies/mceies.h | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/src/lib/pubkey/mceies/mceies.h b/src/lib/pubkey/mceies/mceies.h index 9ead21a17..b43e2065f 100644 --- a/src/lib/pubkey/mceies/mceies.h +++ b/src/lib/pubkey/mceies/mceies.h @@ -23,9 +23,10 @@ class McEliece_PrivateKey; */ secure_vector<byte> BOTAN_DLL mceies_encrypt(const McEliece_PublicKey& pubkey, - const secure_vector<byte>& pt, - byte ad[], size_t ad_len, - RandomNumberGenerator& rng); + const byte pt[], size_t pt_len, + const byte ad[], size_t ad_len, + RandomNumberGenerator& rng, + const std::string& aead = "AES-256/OCB"); /** * McEliece Integrated Encryption System @@ -34,8 +35,9 @@ BOTAN_DLL mceies_encrypt(const McEliece_PublicKey& pubkey, */ secure_vector<byte> BOTAN_DLL mceies_decrypt(const McEliece_PrivateKey& privkey, - const secure_vector<byte>& ct, - byte ad[], size_t ad_len); + const byte ct[], size_t ct_len, + const byte ad[], size_t ad_len, + const std::string& aead = "AES-256/OCB"); } |