/freebsd/sys/contrib/openzfs/module/icp/io/ |
H A D | sha2_mod.c | 331 uint64_t opad[SHA512_HMAC_BLOCK_SIZE / sizeof (uint64_t)] = {0}; in sha2_mac_init_ctx() local 340 (void) memset(opad, 0, block_size); in sha2_mac_init_ctx() 344 (void) memcpy(opad, keyval, length_in_bytes); in sha2_mac_init_ctx() 352 opad[i] ^= 0x5c5c5c5c5c5c5c5c; in sha2_mac_init_ctx() 361 SHA2Update(&ctx->hc_ocontext, (uint8_t *)opad, block_size); in sha2_mac_init_ctx()
|
/freebsd/sys/netinet/ |
H A D | sctp_auth.c | 918 uint8_t ipad[128], opad[128]; /* keyed hash inner/outer pads */ in sctp_hmac() local 945 memset(opad, 0, blocklen); in sctp_hmac() 947 memcpy(opad, key, keylen); in sctp_hmac() 952 opad[i] ^= 0x5c; in sctp_hmac() 963 sctp_hmac_update(hmac_algo, &ctx, opad, blocklen); in sctp_hmac() 978 uint8_t ipad[128], opad[128]; /* keyed hash inner/outer pads */ in sctp_hmac_m() local 1005 memset(opad, 0, blocklen); in sctp_hmac_m() 1007 memcpy(opad, key, keylen); in sctp_hmac_m() 1012 opad[i] ^= 0x5c; in sctp_hmac_m() 1042 sctp_hmac_update(hmac_algo, &ctx, opad, blocklen); in sctp_hmac_m()
|
/freebsd/sys/dev/qat/qat_api/common/crypto/sym/ |
H A D | lac_sym_hash_sw_precomputes.c | 187 Cpa8U *opad = pHmacOpadQatData->data + i; in LacSymHash_HmacPreComputes() local 190 *opad ^= LAC_HASH_OPAD_BYTE; in LacSymHash_HmacPreComputes()
|
/freebsd/contrib/bsnmp/lib/ |
H A D | snmpcrypto.c | 62 static const uint8_t opad = 0x5c; variable 115 key2[i] = extkey[i] ^ opad; in snmp_pdu_calc_digest()
|
/freebsd/crypto/heimdal/lib/krb5/ |
H A D | crypto.c | 191 unsigned char *ipad, *opad; in _krb5_internal_hmac() local 199 opad = malloc(cm->blocksize + cm->checksumsize); in _krb5_internal_hmac() 200 if (opad == NULL) { in _krb5_internal_hmac() 205 memset(opad, 0x5c, cm->blocksize); in _krb5_internal_hmac() 222 opad[i] ^= key[i]; in _krb5_internal_hmac() 227 memcpy(opad + cm->blocksize, result->checksum.data, in _krb5_internal_hmac() 229 (*cm->checksum)(context, keyblock, opad, in _krb5_internal_hmac() 233 memset(opad, 0, cm->blocksize + cm->checksumsize); in _krb5_internal_hmac() 234 free(opad); in _krb5_internal_hmac()
|
/freebsd/sys/crypto/ccp/ |
H A D | ccp.h | 69 char opad[CCP_HASH_MAX_BLOCK_SIZE]; member
|
H A D | ccp.c | 253 memcpy(s->hmac.opad, s->hmac.ipad, axf->blocksize); in ccp_init_hmac_digest() 257 s->hmac.opad[i] ^= HMAC_OPAD_VAL; in ccp_init_hmac_digest()
|
H A D | ccp_hardware.c | 1220 axf->Update(&auth_ctx, s->hmac.opad, axf->blocksize); in ccp_do_hmac_done()
|
/freebsd/sys/dev/cxgbe/crypto/ |
H A D | t4_crypto.h | 236 __u8 opad[64]; member
|
/freebsd/sys/dev/safexcel/ |
H A D | safexcel.c | 1357 const uint8_t *key, int klen, uint8_t *ipad, uint8_t *opad) in safexcel_setkey_hmac() argument 1366 safexcel_setkey_hmac_digest(ahash, &ctx, opad); in safexcel_setkey_hmac()
|