最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

c++ - Botan library container Botan::secure_vector<uint8_t> Vs. std::vector<uint8_t> - Stack Overflo

programmeradmin0浏览0评论

In Botan's example code, I see various ways of creating keys and IV/nonce which include a combination of either Botan::secure_vector<uint8_t> OR std::vector<uint8_t>.

Primarily the keys are constructed using std::vector and IV is constructed using secure_vector. I would assume the keys also need to be constructed with secure_vector given what the documentation says about using secure_vector in place of std::vector.

Essentially I am asking what are the use cases of using either one of those container types (secvec vs normal vector) in our own application code.

发布评论

评论列表(0)

  1. 暂无评论