diff options
Diffstat (limited to 'src/constructs/fpe')
-rw-r--r-- | src/constructs/fpe/fpe.cpp | 4 | ||||
-rw-r--r-- | src/constructs/fpe/fpe.h | 12 |
2 files changed, 12 insertions, 4 deletions
diff --git a/src/constructs/fpe/fpe.cpp b/src/constructs/fpe/fpe.cpp index a0b3274b5..4eaff0eb6 100644 --- a/src/constructs/fpe/fpe.cpp +++ b/src/constructs/fpe/fpe.cpp @@ -136,7 +136,7 @@ BigInt FPE_Encryptor::operator()(u32bit round_no, const BigInt& R) } -/** +/* * Generic Z_n FPE encryption, FE1 scheme */ BigInt fpe_encrypt(const BigInt& n, const BigInt& X0, @@ -164,7 +164,7 @@ BigInt fpe_encrypt(const BigInt& n, const BigInt& X0, return X; } -/** +/* * Generic Z_n FPE decryption, FD1 scheme */ BigInt fpe_decrypt(const BigInt& n, const BigInt& X0, diff --git a/src/constructs/fpe/fpe.h b/src/constructs/fpe/fpe.h index 75f90247f..7a4a7861a 100644 --- a/src/constructs/fpe/fpe.h +++ b/src/constructs/fpe/fpe.h @@ -13,15 +13,23 @@ namespace Botan { -/* +/** * Encrypt X from and onto the group Z_n using key and tweak +* @param n the modulus +* @param X the plaintext as a BigInt +* @param key a random key +* @param tweak will modify the ciphertext (think of as an IV) */ BigInt BOTAN_DLL fpe_encrypt(const BigInt& n, const BigInt& X, const SymmetricKey& key, const MemoryRegion<byte>& tweak); -/* +/** * Decrypt X from and onto the group Z_n using key and tweak +* @param n the modulus +* @param X the ciphertext as a BigInt +* @param key is the key used for encryption +* @param tweak the same tweak used for encryption */ BigInt BOTAN_DLL fpe_decrypt(const BigInt& n, const BigInt& X, const SymmetricKey& key, |