Lines Matching refs:digest
312 * digest to a readable hexadecimal character string:
550 void SHA256_Final(sha2_byte digest[], SHA256_CTX* context) {
551 sha2_word32 *d = (sha2_word32*)digest;
557 /* If no digest buffer is passed, we don't bother doing this: */
558 if (digest != (sha2_byte*)0) {
614 sha2_byte digest[SHA256_DIGEST_LENGTH], *d = digest;
621 SHA256_Final(digest, context);
632 bzero(digest, SHA256_DIGEST_LENGTH);
636 char* SHA256_Data(const sha2_byte* data, size_t len, char digest[SHA256_DIGEST_STRING_LENGTH]) {
641 return SHA256_End(&context, digest);
913 void SHA512_Final(sha2_byte digest[], SHA512_CTX* context) {
914 sha2_word64 *d = (sha2_word64*)digest;
919 /* If no digest buffer is passed, we don't bother doing this: */
920 if (digest != (sha2_byte*)0) {
943 sha2_byte digest[SHA512_DIGEST_LENGTH], *d = digest;
950 SHA512_Final(digest, context);
961 bzero(digest, SHA512_DIGEST_LENGTH);
965 char* SHA512_Data(const sha2_byte* data, size_t len, char digest[SHA512_DIGEST_STRING_LENGTH]) {
970 return SHA512_End(&context, digest);
988 void SHA384_Final(sha2_byte digest[], SHA384_CTX* context) {
989 sha2_word64 *d = (sha2_word64*)digest;
994 /* If no digest buffer is passed, we don't bother doing this: */
995 if (digest != (sha2_byte*)0) {
1018 sha2_byte digest[SHA384_DIGEST_LENGTH], *d = digest;
1025 SHA384_Final(digest, context);
1036 bzero(digest, SHA384_DIGEST_LENGTH);
1040 char* SHA384_Data(const sha2_byte* data, size_t len, char digest[SHA384_DIGEST_STRING_LENGTH]) {
1045 return SHA384_End(&context, digest);