Home
last modified time | relevance | path

Searched refs:hc_ocontext (Results 1 – 7 of 7) sorted by relevance

/illumos-gate/usr/src/lib/pkcs11/pkcs11_softtoken/common/
H A DsoftMAC.h66 MD5_CTX hc_ocontext; /* outer MD5 context */ member
74 SHA1_CTX hc_ocontext; /* outer SHA1 context */ member
79 SHA2_CTX hc_ocontext; /* outer SHA2 context */ member
102 HASH##Init(&((mac_ctx)->hc_ocontext)); \
103 HASH##Update(&((mac_ctx)->hc_ocontext), opad, len);
110 HASH##Update(&((mac_ctx)->hc_ocontext), (mac), HASH##_HASH_SIZE);\
111 HASH##Final((mac), &((mac_ctx)->hc_ocontext));
115 SHA2Update(&((mac_ctx)->hc_ocontext), (mac), HASH##_DIGEST_LENGTH); \
116 SHA2Final((mac), &((mac_ctx)->hc_ocontext));
H A DsoftMAC.c683 SHA2Init(mech, &ctx->hc_ocontext); in sha2_hmac_ctx_init()
684 SHA2Update(&ctx->hc_ocontext, (uint8_t *)opad, block_size); in sha2_hmac_ctx_init()
/illumos-gate/usr/src/uts/common/crypto/io/
H A Dmd5_mod.c103 MD5_CTX hc_ocontext; /* outer MD5 context */ member
893 MD5Init(&ctx->hc_ocontext); in md5_mac_init_ctx()
894 MD5Update(&ctx->hc_ocontext, opad, MD5_HMAC_BLOCK_SIZE); in md5_mac_init_ctx()
1035 MD5Update(&PROV_MD5_HMAC_CTX(ctx)->hc_ocontext, digest, in md5_mac_final()
1051 &PROV_MD5_HMAC_CTX(ctx)->hc_ocontext); in md5_mac_final()
1057 &PROV_MD5_HMAC_CTX(ctx)->hc_ocontext); in md5_mac_final()
1062 &PROV_MD5_HMAC_CTX(ctx)->hc_ocontext, mac, in md5_mac_final()
1067 &PROV_MD5_HMAC_CTX(ctx)->hc_ocontext, mac, in md5_mac_final()
1178 MD5Update(&md5_hmac_ctx.hc_ocontext, digest, MD5_DIGEST_LENGTH); in md5_mac_atomic()
1192 MD5Final(digest, &md5_hmac_ctx.hc_ocontext); in md5_mac_atomic()
[all …]
H A Dsha2_mod.c927 SHA2Init(ctx->hc_mech_type, &ctx->hc_ocontext); in sha2_mac_init_ctx()
928 SHA2Update(&ctx->hc_ocontext, (uint8_t *)opad, block_size); in sha2_mac_init_ctx()
1118 SHA2Update(&PROV_SHA2_HMAC_CTX(ctx)->hc_ocontext, digest, in sha2_mac_final()
1134 &PROV_SHA2_HMAC_CTX(ctx)->hc_ocontext); in sha2_mac_final()
1140 &PROV_SHA2_HMAC_CTX(ctx)->hc_ocontext); in sha2_mac_final()
1145 &PROV_SHA2_HMAC_CTX(ctx)->hc_ocontext, mac, in sha2_mac_final()
1150 &PROV_SHA2_HMAC_CTX(ctx)->hc_ocontext, mac, in sha2_mac_final()
1283 SHA2Update(&sha2_hmac_ctx.hc_ocontext, digest, in sha2_mac_atomic()
1286 SHA2Update(&sha2_hmac_ctx.hc_ocontext, digest, sha_digest_len); in sha2_mac_atomic()
1300 SHA2Final(digest, &sha2_hmac_ctx.hc_ocontext); in sha2_mac_atomic()
[all …]
H A Dsha1_mod.c840 SHA1Init(&ctx->hc_ocontext); in sha1_mac_init_ctx()
841 SHA1Update(&ctx->hc_ocontext, (uint8_t *)opad, SHA1_HMAC_BLOCK_SIZE); in sha1_mac_init_ctx()
940 octx = &PROV_SHA1_HMAC_CTX(ctx)->hc_ocontext; in sha1_mac()
1078 SHA1Update(&PROV_SHA1_HMAC_CTX(ctx)->hc_ocontext, digest, in sha1_mac_final()
1094 &PROV_SHA1_HMAC_CTX(ctx)->hc_ocontext); in sha1_mac_final()
1100 &PROV_SHA1_HMAC_CTX(ctx)->hc_ocontext); in sha1_mac_final()
1105 &PROV_SHA1_HMAC_CTX(ctx)->hc_ocontext, mac, in sha1_mac_final()
1110 &PROV_SHA1_HMAC_CTX(ctx)->hc_ocontext, mac, in sha1_mac_final()
1220 SHA1Update(&sha1_hmac_ctx.hc_ocontext, digest, SHA1_DIGEST_LENGTH); in sha1_mac_atomic()
1234 SHA1Final(digest, &sha1_hmac_ctx.hc_ocontext); in sha1_mac_atomic()
[all …]
/illumos-gate/usr/src/common/crypto/sha2/
H A Dsha2_impl.h57 SHA2_CTX hc_ocontext; /* outer SHA2 context */ member
/illumos-gate/usr/src/common/crypto/sha1/
H A Dsha1_impl.h66 SHA1_CTX hc_ocontext; /* outer SHA1 context */ member