Orange Pi5 kernel

Deprecated Linux kernel 5.10.110 for OrangePi 5/5B/5+ boards

3 Commits   0 Branches   0 Tags
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  1) // SPDX-License-Identifier: GPL-2.0
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  2) #include <openssl/sha.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  3) #include <openssl/md5.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  4) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  5) int main(void)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  6) {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  7) 	MD5_CTX context;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  8) 	unsigned char md[MD5_DIGEST_LENGTH + SHA_DIGEST_LENGTH];
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  9) 	unsigned char dat[] = "12345";
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 10) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 11) 	MD5_Init(&context);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 12) 	MD5_Update(&context, &dat[0], sizeof(dat));
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 13) 	MD5_Final(&md[0], &context);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 14) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 15) 	SHA1(&dat[0], sizeof(dat), &md[0]);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 16) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 17) 	return 0;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 18) }