blob: 7f1fae437ac528389b9a47a437a1b6fa5e9a98a8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
#include <botan/botan.h>
#include <botan/rfc3394.h>
#include <botan/version.h>
int main()
{
using namespace Botan;
#if BOTAN_VERSION_CODE >= BOTAN_VERSION_CODE_FOR(1,11,0)
secure_vector<byte> key(10);
SymmetricKey kek("AABB");
secure_vector<byte> x = rfc5649_keywrap(key, kek);
#else
SecureVector<byte> key(10);
SymmetricKey kek("AABB");
Algorithm_Factory& af = global_state().algorithm_factory();
SecureVector<byte> x = rfc5649_keywrap(key, kek, af);
#endif
return 0;
}
|