aboutsummaryrefslogtreecommitdiffstats
path: root/src/fpe/fpe.h
blob: 677304b1d6d725c7c8b3ea729d2db1e2336a2917 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
/*
* Format Preserving Encryption
* (C) 2009 Jack Lloyd
*
* Distributed under the terms of the Botan license
*/

#ifndef BOTAN_FORMAT_PRESERVING_ENCRYPTION_H__
#define BOTAN_FORMAT_PRESERVING_ENCRYPTION_H__

#include <botan/bigint.h>
#include <botan/symkey.h>

namespace Botan {

BigInt fpe_encrypt(const BigInt& n, const BigInt& X,
                   const SymmetricKey& key,
                   const MemoryRegion<byte>& tweak);

BigInt fpe_decrypt(const BigInt& n, const BigInt& X,
                   const SymmetricKey& key,
                   const MemoryRegion<byte>& tweak);

}

#endif