Does anyone know how to create an object of type Botan::MemoryRegion for use in this method?
BigInt BOTAN_DLL fe1_encrypt(const BigInt& n, const BigInt& X,
const SymmetricKey& key,
const MemoryRegion<byte>& tweak);
Both
MemoryVector
andSecureVector
inherit fromMemoryRegion
and can be used quite similar tostd::vector
.SecureVector
takes some precautions to prevent the data from spreading around (e.g. overwrite-before-delete and supresses some swap-to-disk scenarios)