| /freebsd-12-stable/contrib/bearssl/src/kdf/ |
| D | hkdf.c | 43 br_hmac_init(&hc->u.hmac_ctx, &kc, 0); in br_hkdf_init() 44 hc->dig_len = br_hmac_size(&hc->u.hmac_ctx); in br_hkdf_init() 51 br_hmac_update(&hc->u.hmac_ctx, ikm, ikm_len); in br_hkdf_inject() 60 br_hmac_out(&hc->u.hmac_ctx, tmp); in br_hkdf_flip() 62 br_hmac_get_digest(&hc->u.hmac_ctx), tmp, hc->dig_len); in br_hkdf_flip() 79 br_hmac_context hmac_ctx; in br_hkdf_produce() local 87 br_hmac_init(&hmac_ctx, &hc->u.prk_ctx, 0); in br_hkdf_produce() 89 br_hmac_update(&hmac_ctx, hc->buf, hc->dig_len); in br_hkdf_produce() 91 br_hmac_update(&hmac_ctx, info, info_len); in br_hkdf_produce() 92 br_hmac_update(&hmac_ctx, &x, 1); in br_hkdf_produce() [all …]
|
| /freebsd-12-stable/crypto/openssh/ |
| D | mac.c | 110 if ((mac->hmac_ctx = ssh_hmac_start(macalg->alg)) == NULL) in mac_setup_by_alg() 146 if (mac->hmac_ctx == NULL || in mac_init() 147 ssh_hmac_init(mac->hmac_ctx, mac->key, mac->key_len) < 0) in mac_init() 182 if (ssh_hmac_init(mac->hmac_ctx, NULL, 0) < 0 || in mac_compute() 183 ssh_hmac_update(mac->hmac_ctx, b, sizeof(b)) < 0 || in mac_compute() 184 ssh_hmac_update(mac->hmac_ctx, data, datalen) < 0 || in mac_compute() 185 ssh_hmac_final(mac->hmac_ctx, u.m, sizeof(u.m)) < 0) in mac_compute() 236 } else if (mac->hmac_ctx != NULL) in mac_clear() 237 ssh_hmac_free(mac->hmac_ctx); in mac_clear() 238 mac->hmac_ctx = NULL; in mac_clear()
|
| D | mac.h | 39 struct ssh_hmac_ctx *hmac_ctx; member
|
| /freebsd-12-stable/sys/geom/eli/ |
| D | g_eli_hmac.c | 49 g_eli_crypto_hmac_init(struct hmac_ctx *ctx, const uint8_t *hkey, in g_eli_crypto_hmac_init() 85 g_eli_crypto_hmac_update(struct hmac_ctx *ctx, const uint8_t *data, in g_eli_crypto_hmac_update() 93 g_eli_crypto_hmac_final(struct hmac_ctx *ctx, uint8_t *md, size_t mdsize) in g_eli_crypto_hmac_final() 116 struct hmac_ctx ctx; in g_eli_crypto_hmac()
|
| D | g_eli.h | 705 struct hmac_ctx { struct 710 void g_eli_crypto_hmac_init(struct hmac_ctx *ctx, const uint8_t *hkey, argument 712 void g_eli_crypto_hmac_update(struct hmac_ctx *ctx, const uint8_t *data, 714 void g_eli_crypto_hmac_final(struct hmac_ctx *ctx, uint8_t *md, size_t mdsize);
|
| D | pkcs5v2.c | 61 struct hmac_ctx startpoint, ctx; in pkcs5v2_genkey()
|
| D | g_eli.c | 985 g_eli_keyfiles_load(struct hmac_ctx *ctx, const char *provider) in g_eli_keyfiles_load() 1057 struct hmac_ctx ctx; in g_eli_taste()
|
| /freebsd-12-stable/contrib/unbound/util/ |
| D | net_help.c | 117 EVP_MAC_CTX *hmac_ctx, 119 HMAC_CTX* hmac_ctx, 1700 EVP_MAC_CTX *hmac_ctx, in tls_session_ticket_key_cb() argument 1702 HMAC_CTX* hmac_ctx, in tls_session_ticket_key_cb() 1738 EVP_MAC_CTX_set_params(hmac_ctx, params); in tls_session_ticket_key_cb() 1740 EVP_MAC_set_ctx_params(hmac_ctx, params); in tls_session_ticket_key_cb() 1743 if (HMAC_Init_ex(hmac_ctx, ticket_keys->hmac_key, 32, digest, NULL) != 1) { in tls_session_ticket_key_cb() 1748 HMAC_Init_ex(hmac_ctx, ticket_keys->hmac_key, 32, digest, NULL); in tls_session_ticket_key_cb() 1773 EVP_MAC_CTX_set_params(hmac_ctx, params); in tls_session_ticket_key_cb() 1775 EVP_MAC_set_ctx_params(hmac_ctx, params); in tls_session_ticket_key_cb() [all …]
|
| /freebsd-12-stable/contrib/bearssl/inc/ |
| D | bearssl_kdf.h | 122 br_hmac_context hmac_ctx; member
|
| /freebsd-12-stable/lib/geom/eli/ |
| D | geom_eli.c | 368 struct hmac_ctx *ctxp, char *passbuf, size_t passbufsize) in eli_genkey_files() 484 struct hmac_ctx *ctxp) in eli_genkey_passphrase() 569 eli_init_key_hmac_ctx(struct gctl_req *req, struct hmac_ctx *ctx, bool new) in eli_init_key_hmac_ctx() 590 eli_genkey(struct gctl_req *req, const struct hmac_ctx *ctxtemplate, in eli_genkey() 593 struct hmac_ctx ctx; in eli_genkey() 609 struct hmac_ctx ctx; in eli_genkey_single() 732 struct hmac_ctx ctxtemplate; in eli_init() 1061 struct hmac_ctx ctxtemplate; in eli_attach()
|
| /freebsd-12-stable/stand/libsa/geli/ |
| D | geliboot.c | 226 struct hmac_ctx ctx; in geli_probe()
|
| /freebsd-12-stable/contrib/unbound/ |
| D | configure.ac | 990 HMAC_CTX* hmac_ctx = NULL; 993 int x = HMAC_Init_ex(hmac_ctx, hmac_key, 32, digest, NULL);
|