2
* McEliece Integrated Encryption System
3
* (C) 2014,2015 Jack Lloyd
5
* Botan is released under the Simplified BSD License (see license.txt)
8
#ifndef BOTAN_MCEIES_H_
9
#define BOTAN_MCEIES_H_
11
#include <botan/secmem.h>
16
class RandomNumberGenerator;
17
class McEliece_PublicKey;
18
class McEliece_PrivateKey;
21
* McEliece Integrated Encryption System
22
* Derive a shared key using MCE KEM and encrypt/authenticate the
23
* plaintext and AD using AES-256 in OCB mode.
25
secure_vector<uint8_t>
26
BOTAN_PUBLIC_API(2,0) mceies_encrypt(const McEliece_PublicKey& pubkey,
27
const uint8_t pt[], size_t pt_len,
28
const uint8_t ad[], size_t ad_len,
29
RandomNumberGenerator& rng,
30
const std::string& aead = "AES-256/OCB");
33
* McEliece Integrated Encryption System
34
* Derive a shared key using MCE KEM and decrypt/authenticate the
35
* ciphertext and AD using AES-256 in OCB mode.
37
secure_vector<uint8_t>
38
BOTAN_PUBLIC_API(2,0) mceies_decrypt(const McEliece_PrivateKey& privkey,
39
const uint8_t ct[], size_t ct_len,
40
const uint8_t ad[], size_t ad_len,
41
const std::string& aead = "AES-256/OCB");