1 #include <openssl/sha.h>
2 #include <openssl/md5.h>
7 unsigned char md
[MD5_DIGEST_LENGTH
+ SHA_DIGEST_LENGTH
];
8 unsigned char dat
[] = "12345";
11 MD5_Update(&context
, &dat
[0], sizeof(dat
));
12 MD5_Final(&md
[0], &context
);
14 SHA1(&dat
[0], sizeof(dat
), &md
[0]);