Searched refs:opad (Results 1 – 6 of 6) sorted by relevance
| /freebsd-10-stable/contrib/ntp/lib/isc/ |
| D | hmacsha.c | 246 unsigned char opad[ISC_SHA1_BLOCK_LENGTH]; in isc_hmacsha1_sign() local 253 memset(opad, OPAD, sizeof(opad)); in isc_hmacsha1_sign() 255 opad[i] ^= ctx->key[i]; in isc_hmacsha1_sign() 258 isc_sha1_update(&ctx->sha1ctx, opad, sizeof(opad)); in isc_hmacsha1_sign() 313 unsigned char opad[ISC_SHA224_BLOCK_LENGTH]; in isc_hmacsha224_sign() local 320 memset(opad, OPAD, sizeof(opad)); in isc_hmacsha224_sign() 322 opad[i] ^= ctx->key[i]; in isc_hmacsha224_sign() 325 isc_sha224_update(&ctx->sha224ctx, opad, sizeof(opad)); in isc_hmacsha224_sign() 379 unsigned char opad[ISC_SHA256_BLOCK_LENGTH]; in isc_hmacsha256_sign() local 386 memset(opad, OPAD, sizeof(opad)); in isc_hmacsha256_sign() [all …]
|
| D | hmacmd5.c | 116 unsigned char opad[PADLEN]; in isc_hmacmd5_sign() local 121 memset(opad, OPAD, sizeof(opad)); in isc_hmacmd5_sign() 123 opad[i] ^= ctx->key[i]; in isc_hmacmd5_sign() 126 isc_md5_update(&ctx->md5ctx, opad, sizeof(opad)); in isc_hmacmd5_sign()
|
| /freebsd-10-stable/sys/netinet/ |
| D | sctp_auth.c | 927 uint8_t ipad[128], opad[128]; /* keyed hash inner/outer pads */ in sctp_hmac() local 954 bzero(opad, blocklen); in sctp_hmac() 956 bcopy(key, opad, keylen); in sctp_hmac() 961 opad[i] ^= 0x5c; in sctp_hmac() 972 sctp_hmac_update(hmac_algo, &ctx, opad, blocklen); in sctp_hmac() 987 uint8_t ipad[128], opad[128]; /* keyed hash inner/outer pads */ in sctp_hmac_m() local 1014 bzero(opad, blocklen); in sctp_hmac_m() 1016 bcopy(key, opad, keylen); in sctp_hmac_m() 1021 opad[i] ^= 0x5c; in sctp_hmac_m() 1051 sctp_hmac_update(hmac_algo, &ctx, opad, blocklen); in sctp_hmac_m()
|
| /freebsd-10-stable/contrib/bsnmp/lib/ |
| D | snmpcrypto.c | 61 static const uint8_t opad = 0x5c; variable 111 key2[i] = extkey[i] ^ opad; in snmp_pdu_calc_digest()
|
| /freebsd-10-stable/crypto/heimdal/lib/krb5/ |
| 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-10-stable/sys/dev/cesa/ |
| D | cesa.c | 448 uint8_t opad[CESA_MAX_HMAC_BLOCK_LEN]; in cesa_set_mkey() local 456 memset(opad, HMAC_OPAD_VAL, CESA_MAX_HMAC_BLOCK_LEN); in cesa_set_mkey() 459 opad[i] ^= mkey[i]; in cesa_set_mkey() 471 MD5Update(&md5ctx, opad, MD5_HMAC_BLOCK_LEN); in cesa_set_mkey() 479 SHA1Update(&sha1ctx, opad, SHA1_HMAC_BLOCK_LEN); in cesa_set_mkey()
|