Lines Matching refs:md
23 unsigned char *ossl_sha1(const unsigned char *d, size_t n, unsigned char *md) in ossl_sha1() argument
28 if (md == NULL) in ossl_sha1()
29 md = m; in ossl_sha1()
33 SHA1_Final(md, &c); in ossl_sha1()
35 return md; in ossl_sha1()
38 unsigned char *SHA1(const unsigned char *d, size_t n, unsigned char *md) in SHA1() argument
42 if (md == NULL) in SHA1()
43 md = m; in SHA1()
44 return EVP_Q_digest(NULL, "SHA1", NULL, d, n, md, NULL) ? md : NULL; in SHA1()
47 unsigned char *SHA224(const unsigned char *d, size_t n, unsigned char *md) in SHA224() argument
51 if (md == NULL) in SHA224()
52 md = m; in SHA224()
53 return EVP_Q_digest(NULL, "SHA224", NULL, d, n, md, NULL) ? md : NULL; in SHA224()
56 unsigned char *SHA256(const unsigned char *d, size_t n, unsigned char *md) in SHA256() argument
60 if (md == NULL) in SHA256()
61 md = m; in SHA256()
62 return EVP_Q_digest(NULL, "SHA256", NULL, d, n, md, NULL) ? md : NULL; in SHA256()
65 unsigned char *SHA384(const unsigned char *d, size_t n, unsigned char *md) in SHA384() argument
69 if (md == NULL) in SHA384()
70 md = m; in SHA384()
71 return EVP_Q_digest(NULL, "SHA384", NULL, d, n, md, NULL) ? md : NULL; in SHA384()
74 unsigned char *SHA512(const unsigned char *d, size_t n, unsigned char *md) in SHA512() argument
78 if (md == NULL) in SHA512()
79 md = m; in SHA512()
80 return EVP_Q_digest(NULL, "SHA512", NULL, d, n, md, NULL) ? md : NULL; in SHA512()