随笔分类 -  cryptography

密码学
摘要:HMAC和MD5:HMAC的使用:#include unsigned char *HMAC(const EVP_MD *evp_md, const void *key, int key_len, const unsigned char *d, int n, ... 阅读全文
posted @ 2014-10-13 16:24 xt2357 阅读(1773) 评论(0) 推荐(0)
摘要:OpenSSL中对称加密组件的使用有一个统一的上层接口,叫做EVP通用加密接口:官方文档:http://www.openssl.org/docs/crypto/evp.html#具体例子:http://www.linuxidc.com/Linux/2014-03/97432.htmOpenSSL中H... 阅读全文
posted @ 2014-10-13 10:33 xt2357 阅读(278) 评论(0) 推荐(0)
摘要:配置安装OpenSSL:sudo apt-get install opensslsudo apt-get install libssl-dev编译安装gmp:到https://gmplib.org/#DOWNLOAD下载源码压缩包,lz后缀的压缩包Ubuntu默认无法解压,最好下xz后缀的。解压到某... 阅读全文
posted @ 2014-10-12 20:37 xt2357 阅读(839) 评论(0) 推荐(0)