/* * 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 #include namespace Botan { /* * Encrypt X from and onto the group Z_n using key and tweak */ BigInt BOTAN_DLL fpe_encrypt(const BigInt& n, const BigInt& X, const SymmetricKey& key, const MemoryRegion& tweak); /* * Decrypt X from and onto the group Z_n using key and tweak */ BigInt BOTAN_DLL fpe_decrypt(const BigInt& n, const BigInt& X, const SymmetricKey& key, const MemoryRegion& tweak); } #endif