Botan

Rivest's Package Tranform

License
Botan is released under the Simplified BSD License (see LICENSE.md)

void  aontPackage(RandomNumberGenerator rng, BlockCipher cipher, const(ubyte)* input, size_t input_len, ubyte* output);

Rivest's Package Tranform

Parameters
RandomNumberGenerator rng the random number generator to use
BlockCipher cipher the block cipher to use
const(ubyte)* input the input data buffer
size_t input_len the length of the input data in bytes
ubyte* output the output data buffer (must be at least input_len + cipher.BLOCK_SIZE bytes long)

void  aontUnpackage(BlockCipher cipher, const(ubyte)* input, size_t input_len, ubyte* output);

Rivest's Package Tranform (Inversion)

Parameters
BlockCipher cipher the block cipher to use
const(ubyte)* input the input data buffer
size_t input_len the length of the input data in bytes
ubyte* output the output data buffer (must be at least input_len - cipher.BLOCK_SIZE bytes long)