Searched refs:sha1_hmac_ctx (Results 1 - 5 of 5) sorted by relevance

/opensolaris-onvv-gate/usr/src/common/crypto/fips/
H A Dfips_sha1_util.c232 fips_hmac_sha1_hash(sha1_hmac_ctx_t *sha1_hmac_ctx, argument
238 SHA1Update(&((sha1_hmac_ctx)->hc_icontext), message,
244 SHA1Final(hmac_computed, &((sha1_hmac_ctx)->hc_icontext));
250 SHA1Update(&((sha1_hmac_ctx)->hc_ocontext), hmac_computed,
257 SHA1Final(hmac_computed, &((sha1_hmac_ctx)->hc_ocontext));
259 kmem_free(sha1_hmac_ctx, sizeof (sha1_hmac_ctx_t));
279 sha1_hmac_ctx_t *sha1_hmac_ctx = NULL; local
299 sha1_hmac_ctx = fips_sha1_hmac_build_context(HMAC_known_secret_key,
302 if (sha1_hmac_ctx == NULL)
305 fips_hmac_sha1_hash(sha1_hmac_ctx, hmac_sha1_known_hash_messag
[all...]
/opensolaris-onvv-gate/usr/src/common/crypto/sha1/
H A Dsha1_impl.h64 typedef struct sha1_hmac_ctx { struct
/opensolaris-onvv-gate/usr/src/uts/common/crypto/io/
H A Dsha1_mod.c1064 sha1_hmac_ctx_t sha1_hmac_ctx; local
1078 bcopy(ctx_template, &sha1_hmac_ctx, sizeof (sha1_hmac_ctx_t));
1087 PROV_SHA1_DIGEST_KEY(&sha1_hmac_ctx.hc_icontext,
1089 sha1_mac_init_ctx(&sha1_hmac_ctx, digest,
1092 sha1_mac_init_ctx(&sha1_hmac_ctx, key->ck_data,
1112 SHA1_MAC_UPDATE(data, sha1_hmac_ctx, ret);
1120 SHA1Final(digest, &sha1_hmac_ctx.hc_icontext);
1126 SHA1Update(&sha1_hmac_ctx.hc_ocontext, digest, SHA1_DIGEST_LENGTH);
1140 SHA1Final(digest, &sha1_hmac_ctx.hc_ocontext);
1145 mac->cd_offset, &sha1_hmac_ctx
1184 sha1_hmac_ctx_t sha1_hmac_ctx; local
[all...]
/opensolaris-onvv-gate/usr/src/lib/pkcs11/pkcs11_softtoken/common/
H A DsoftSSL.c302 sha1_hc_ctx_t sha1_hmac_ctx; local
317 sha1_hmac_ctx_init(&sha1_hmac_ctx, sha1_ipad, sha1_opad);
318 SOFT_MAC_UPDATE(SHA1, &sha1_hmac_ctx, label, labellen);
319 SOFT_MAC_UPDATE(SHA1, &sha1_hmac_ctx, rand1, rand1len);
320 SOFT_MAC_UPDATE(SHA1, &sha1_hmac_ctx, rand2, rand2len);
321 SOFT_MAC_FINAL(SHA1, &sha1_hmac_ctx, A);
336 SOFT_MAC_INIT_CTX(SHA1, &sha1_hmac_ctx,
339 SOFT_MAC_UPDATE(SHA1, &sha1_hmac_ctx, A, SHA1_HASH_SIZE);
340 SOFT_MAC_UPDATE(SHA1, &sha1_hmac_ctx, label, labellen);
341 SOFT_MAC_UPDATE(SHA1, &sha1_hmac_ctx, rand
[all...]
H A DsoftMAC.c656 sha1_hmac_ctx_init(sha1_hc_ctx_t *sha1_hmac_ctx, uint32_t *ipad, uint32_t *opad) argument
664 SOFT_MAC_INIT_CTX(SHA1, sha1_hmac_ctx, (const uchar_t *)ipad,

Completed in 97 milliseconds