Lines Matching refs:digest
766 uint8_t digest[MD_DIGEST_LENGTH_MAX]; in magnet_md_once() local
773 SHA512_once(digest, msg.ptr, msg.len); in magnet_md_once()
780 SHA256_once(digest, msg.ptr, msg.len); in magnet_md_once()
789 SHA1_once(digest, msg.ptr, msg.len); in magnet_md_once()
798 MD5_once(digest, msg.ptr, msg.len); in magnet_md_once()
809 li_tohex_uc(dighex, sizeof(dighex), (char *)digest, dlen); in magnet_md_once()
828 uint8_t digest[MD_DIGEST_LENGTH_MAX]; in magnet_hmac_once() local
836 rc = li_hmac_sha512(digest,secret.ptr,secret.len,msgptr,msg.len); in magnet_hmac_once()
843 rc = li_hmac_sha256(digest,secret.ptr,secret.len,msgptr,msg.len); in magnet_hmac_once()
852 rc = li_hmac_sha1(digest,secret.ptr,secret.len,msgptr,msg.len); in magnet_hmac_once()
861 rc = li_hmac_md5(digest,secret.ptr,secret.len,msgptr,msg.len); in magnet_hmac_once()
872 li_tohex_uc(dighex, sizeof(dighex), (char *)digest, dlen); in magnet_hmac_once()