|
ngl_server 1.0
基于 Actor 模型的 C++ 服务器框架
|
实现工具库中的哈希辅助函数 More...
Classes | |
| class | ngl::tools::hash_detail::md5_sum |
| struct | ngl::tools::hash_detail::sha1_ctx |
Namespaces | |
| namespace | ngl::tools |
| 工具函数命名空间。 | |
Functions | |
| uint32_t | ngl::tools::hash_detail::rol32 (uint32_t aval, int abits) |
| void | ngl::tools::hash_detail::sha1_tran (uint32_t astate[5], const uint8_t abuf[64]) |
| void | ngl::tools::hash_detail::sha1_init (sha1_ctx *actx) |
| void | ngl::tools::hash_detail::sha1_upd (sha1_ctx *actx, const uint8_t *adata, std::size_t alen) |
| void | ngl::tools::hash_detail::sha1_fin (sha1_ctx *actx, uint8_t adig[g_sha1_sz]) |
| void | ngl::tools::hash_detail::sha1_raw (std::string_view atext, std::string &aout) |
| void | ngl::tools::hash_detail::xor_key (uint8_t akey[g_hmac_sz], uint32_t axor) |
| void | ngl::tools::hash_detail::hmac_raw (const std::string &akey, const std::string &atext, std::string &aout) |
| std::string | ngl::tools::md5 (const std::string &atext) |
| 计算字符串的MD5哈希值 | |
| std::string | ngl::tools::sh1 (std::string_view atext) |
| 计算字符串的SHA1哈希值 | |
| std::string | ngl::tools::hmac_sha1 (const std::string &akey, const std::string &atext) |
| 计算HMAC-SHA1消息认证码 | |
实现工具库中的哈希辅助函数
提供MD5、SHA1和HMAC-SHA1哈希算法的实现 用于数据完整性校验、密码哈希和数字签名