
C/C++
liteblue
全力以赴
展开
-
EVP系列函数
EVP系列函数摘要函数典型的摘要函数主要有:1) EVP_md5返回 md5 的 EVP_MD。2) EVP_sha1返回 sha1 的 EVP_MD。3) EVP_sha256返回 sha256 的 EVP_MD。4) EVP_DigestInit摘要初使化函数,需要有 EVP_MD 作为输入参数。5) EVP_DigestUpdate 和 EVP_DigestInit_ex摘要 Update 函数,用于进行多次摘要。6) EVP_DigestFinal 和 EVP_Diges转载 2020-07-24 17:12:03 · 2993 阅读 · 0 评论 -
用C语言实现字符串搜索库函数strstr
用C语言实现字符串搜索库函数strstr#include <stdio.h>int my_strstr(char *b1, char*b2){ int match_cnt = 0; char *t1,*t2,*p1; if (b1 == NULL || b2 == NULL) { return -...原创 2019-07-30 16:06:09 · 458 阅读 · 0 评论