快速跨平台的C / C ++库散列 [英] Fast Cross-Platform C/C++ Hashing Library

查看:110
本文介绍了快速跨平台的C / C ++库散列的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

什么是高性能的散列库也对C / C跨平台++。对于算法,如MD5,SHA1,CRC32和的Adler32。

What's a high performance hashing library that's also cross platform for C/C++. For algorithms such as MD5, SHA1, CRC32 and Adler32.

我最初有IM pression是加速了这些,但显然不是(还)。

I initially had the impression that Boost had these, but apparently not (yet).

最有前途的,到目前为止我所发现的是加密++,任何其他建议? http://www.cryptopp.com/ 这似乎是相当COM prehensive。

The most promising one I have found so far is Crypto++, any other suggestions? http://www.cryptopp.com/ This seems to be quite comprehensive.

推荐答案

有关平时加密散列(MD?SHA?等)的 OpenSSL的是最便携,可能最快的。你提到的散列都不是很好像哈希表的高性能数据结构。这些数据结构推荐的哈希函数,这些天有:FNV,詹金斯和murmur哈希

For usual crypto hashes (MD?, SHA? etc.), openssl is the most portable and probably fastest. None of the hashes you mentioned are good for high performance data structures like hash tables. The recommended hash functions for these data structures these days are: FNV, Jenkins and MurmurHash.

这篇关于快速跨平台的C / C ++库散列的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆