PORT_Memcpy(newcx->ipad, cx->ipad, sizeof(cx->ipad)); PORT_Memcpy(newcx->opad, cx->opad, sizeof(cx->opad));
PORT_Memcpy(newcx->ipad, cx->ipad, cx->hashobj->blocklength); PORT_Memcpy(newcx->opad, cx->opad, cx->hashobj->blocklength);
HMAC_Clone(HMACContext *cx){    HMACContext *newcx;    newcx = (HMACContext*)PORT_ZAlloc(sizeof(HMACContext));    if (newcx == NULL)	goto loser;    newcx->wasAllocated = PR_TRUE;    newcx->hashobj = cx->hashobj;    newcx->hash = cx->hashobj->clone(cx->hash);    if (newcx->hash == NULL)	goto loser;    PORT_Memcpy(newcx->ipad, cx->ipad, sizeof(cx->ipad));    PORT_Memcpy(newcx->opad, cx->opad, sizeof(cx->opad));    return newcx;loser:    HMAC_Destroy(newcx, PR_TRUE);    return NULL;}