FPE.fe1Encrypt

Format Preserving Encryption using the scheme FE1 from the paper "Format-Preserving Encryption" by Bellare, Rogaway, et al (http://eprint.iacr.org/2009/251)

Encrypt X from and onto the group Z_n using key and tweak

struct FPE
static
fe1Encrypt
(
const(BigInt)* n0
,
const(BigInt)* X0
,,
const ref Vector!ubyte tweak
)

Parameters

key SymmetricKey

a random key

tweak Vector!ubyte

will modify the ciphertext (think of as an IV)

Meta