aboutsummaryrefslogtreecommitdiffstats
path: root/src/constructs/fpe/fpe.h
diff options
context:
space:
mode:
authorlloyd <[email protected]>2010-06-21 16:12:04 +0000
committerlloyd <[email protected]>2010-06-21 16:12:04 +0000
commitce14ac149a3b3bf70b3554aeefcdb9de5976da34 (patch)
treee83b38f1c545dbdd0cda432144db23346562da85 /src/constructs/fpe/fpe.h
parentfe47c1cb19d6f3d1fb54f488cf08eb1830dda1e5 (diff)
Doxygen
Diffstat (limited to 'src/constructs/fpe/fpe.h')
-rw-r--r--src/constructs/fpe/fpe.h12
1 files changed, 10 insertions, 2 deletions
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,