如何使用Botan::MemoryRegion
How do I use Botan::MemoryRegion?
有人知道如何创建Botan::MemoryRegion类型的对象用于此方法吗?
BigInt BOTAN_DLL fe1_encrypt(const BigInt& n, const BigInt& X,
const SymmetricKey& key,
const MemoryRegion<byte>& tweak);
MemoryVector
和SecureVector
都继承自MemoryRegion
,使用起来与std::vector
非常相似。
BYTE tweakData[tweakDataLen] = { ... };
MemoryVector<byte> myTweak(tweakData, tweakDataLen);
SecureVector
采取了一些预防措施来防止数据四处传播(例如,在删除之前覆盖并支持一些交换到磁盘的场景)
相关文章:
- 在编译中包括 Botan 2
- 在QT中使用Botan C++来加密文件
- Java等效于C Botan功能调用
- SHA1+RSA - 帮助在C++中使用 Botan
- 将 Botan 库与 Eclispse 一起使用
- botan.dll中未经手的例外
- 将Botan SHA256输出转换为base64,以匹配.NET SHA256 MALAGENG().computeHa
- 在Windows 7(Mingw,Code :: Blocks)下进行编译,以获取Botan Library测试程序
- 创建密码的 SHA-256 哈希的 Botan 教程或示例
- 如何在windows上构建Botan合并文件Botan_all.cpp和.h
- 使用 Botan 和 Qt 加密文件时出错
- Botan PK_Signer
- 将 Botan 与 Qt 一起使用时遇到问题
- 无法将 BOTAN 库与日食链接
- 将Botan加密结果输出到QDomDocument,反之亦然
- Botan c++哈希函数generate_bcrypt()
- 如何使Botan RSA签名验证与PyCrypto的签名验证相匹配
- 如何使用Botan合并文件和VS2008
- Botan:序列化ECDH私钥
- 如何使用Botan::MemoryRegion