2
* AES Key Wrap (RFC 3394)
5
* Botan is released under the Simplified BSD License (see license.txt)
8
#ifndef BOTAN_RFC3394_H_
9
#define BOTAN_RFC3394_H_
11
#include <botan/symkey.h>
16
* Encrypt a key under a key encryption key using the algorithm
17
* described in RFC 3394
19
* @param key the plaintext key to encrypt
20
* @param kek the key encryption key
21
* @return key encrypted under kek
23
secure_vector<uint8_t> BOTAN_PUBLIC_API(2,0) rfc3394_keywrap(const secure_vector<uint8_t>& key,
24
const SymmetricKey& kek);
27
* Decrypt a key under a key encryption key using the algorithm
28
* described in RFC 3394
30
* @param key the encrypted key to decrypt
31
* @param kek the key encryption key
32
* @return key decrypted under kek
34
secure_vector<uint8_t> BOTAN_PUBLIC_API(2,0) rfc3394_keyunwrap(const secure_vector<uint8_t>& key,
35
const SymmetricKey& kek);