commit d1edce71135cc6d98c0a4b5729774542b676e769 Author: sophgo-forum-service <forum_service@sophgo.com> Date: Fri Mar 15 16:07:33 2024 +0800 [fix] recommend using ssh method to clone repo. [fix] fix sensor driver repo branch name.
19 lines
361 B
C
19 lines
361 B
C
// SPDX-License-Identifier: GPL-2.0
|
|
#include <openssl/sha.h>
|
|
#include <openssl/md5.h>
|
|
|
|
int main(void)
|
|
{
|
|
MD5_CTX context;
|
|
unsigned char md[MD5_DIGEST_LENGTH + SHA_DIGEST_LENGTH];
|
|
unsigned char dat[] = "12345";
|
|
|
|
MD5_Init(&context);
|
|
MD5_Update(&context, &dat[0], sizeof(dat));
|
|
MD5_Final(&md[0], &context);
|
|
|
|
SHA1(&dat[0], sizeof(dat), &md[0]);
|
|
|
|
return 0;
|
|
}
|