Searched defs:opad (Results 1 - 6 of 6) sorted by relevance

/illumos-gate/usr/src/uts/common/os/
H A Daudit_core.c215 p_audit_data_t *opad; /* parent process audit data */ local
221 opad = P2A(curproc);
236 mutex_enter(&opad->pad_lock); /* lock opad structure during copy */
237 pad->pad_data = opad->pad_data; /* copy parent's process audit data */
240 mutex_exit(&opad->pad_lock); /* current proc will keep cwrd open */
/illumos-gate/usr/src/lib/pkcs11/pkcs11_softtoken/common/
H A DsoftMAC.c205 /* SSL MAC is HASH(key + opad + HASH(key + ipad + data)) */
271 /* SSL MAC is HASH(key + opad + HASH(key + ipad + data)) */
641 * the ipad and opad
644 md5_hmac_ctx_init(md5_hc_ctx_t *md5_hmac_ctx, uint32_t *ipad, uint32_t *opad) argument
647 /* XOR key with ipad (0x36) and opad (0x5c) */
650 opad[i] ^= 0x5c5c5c5c;
652 SOFT_MAC_INIT_CTX(MD5, md5_hmac_ctx, ipad, opad, MD5_HMAC_BLOCK_SIZE);
656 sha1_hmac_ctx_init(sha1_hc_ctx_t *sha1_hmac_ctx, uint32_t *ipad, uint32_t *opad) argument
659 /* XOR key with ipad (0x36) and opad (0x5c) */
662 opad[
670 sha2_hmac_ctx_init(uint_t mech, sha2_hc_ctx_t *ctx, uint64_t *ipad, uint64_t *opad, uint_t blocks_per_int64, uint_t block_size) argument
[all...]
/illumos-gate/usr/src/uts/common/crypto/io/
H A Dsha1_mod.c789 * SHA1 HMAC is: SHA1(key XOR opad, SHA1(key XOR ipad, text))
795 * - for outer context: SHA1(key XOR opad)
817 uint32_t opad[SHA1_HMAC_INTS_PER_BLOCK]; local
821 bzero(opad, SHA1_HMAC_BLOCK_SIZE);
824 bcopy(keyval, opad, length_in_bytes);
826 /* XOR key with ipad (0x36) and opad (0x5c) */
829 opad[i] ^= 0x5c5c5c5c;
836 /* perform SHA1 on opad */
838 SHA1Update(&ctx->hc_ocontext, (uint8_t *)opad, SHA1_HMAC_BLOCK_SIZE);
H A Dsha2_mod.c851 * SHA2 HMAC is: SHA2(key XOR opad, SHA2(key XOR ipad, text))
857 * - for outer context: SHA2(key XOR opad)
879 uint64_t opad[SHA512_HMAC_BLOCK_SIZE / sizeof (uint64_t)]; local
892 (void) bzero(opad, block_size);
894 (void) bcopy(keyval, opad, length_in_bytes);
896 /* XOR key with ipad (0x36) and opad (0x5c) */
899 opad[i] ^= 0x5c5c5c5c5c5c5c5c;
906 /* perform SHA2 on opad */
908 SHA2Update(&ctx->hc_ocontext, (uint8_t *)opad, block_size);
H A Dmd5_mod.c845 * MD5 HMAC is: MD5(key XOR opad, MD5(key XOR ipad, text))
851 * - for outer context: MD5(key XOR opad)
873 uint32_t opad[MD5_HMAC_INTS_PER_BLOCK]; local
877 bzero(opad, MD5_HMAC_BLOCK_SIZE);
880 bcopy(keyval, opad, length_in_bytes);
882 /* XOR key with ipad (0x36) and opad (0x5c) */
885 opad[i] ^= 0x5c5c5c5c;
892 /* perform MD5 on opad */
894 MD5Update(&ctx->hc_ocontext, opad, MD5_HMAC_BLOCK_SIZE);
/illumos-gate/usr/src/uts/common/inet/ip/
H A Dipsecah.c2613 uchar_t *opad = ((uchar_t *)inbound_ah + local
2619 pad[i] = opad[i]; /* Copy the padding */

Completed in 75 milliseconds