- Host_Error("Invalid hash function used for HMAC - too long hash block length");
- if(sizeof(catbuf) < (size_t) hblock + (size_t) hlen)
- Host_Error("Invalid hash function used for HMAC - too long hash block length");
- if(sizeof(catbuf) < (size_t) hblock + (size_t) n)
- Host_Error("Invalid hash function used for HMAC - too long message length");
+ return false;
+ if(sizeof(k_xor_ipad) < (size_t) hlen)
+ return false;
+
+ catbuf = (unsigned char *)Mem_Alloc(tempmempool, (size_t) hblock + max((size_t) hlen, (size_t) n));