Lines Matching refs:msg
765 const_buffer msg = magnet_checkconstbuffer(L, -1); 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()
826 const_buffer msg = magnet_checkconstbuffer(L, -1); in magnet_hmac_once() local
827 const uint8_t * const msgptr = (uint8_t *)msg.ptr; in magnet_hmac_once()
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()