| /freebsd-12.1/contrib/bearssl/src/aead/ |
| H A D | ccm.c | 53 ctx->bctx = bctx; in br_ccm_init() 97 (*ctx->bctx)->mac(ctx->bctx, ctx->cbcmac, tmp, sizeof tmp); in br_ccm_reset() 126 (*ctx->bctx)->ctr(ctx->bctx, ctx->ctr, in br_ccm_reset() 157 (*ctx->bctx)->mac(ctx->bctx, ctx->cbcmac, in br_ccm_aad_inject() 166 (*ctx->bctx)->mac(ctx->bctx, ctx->cbcmac, dbuf, len); in br_ccm_aad_inject() 188 (*ctx->bctx)->mac(ctx->bctx, ctx->cbcmac, in br_ccm_flip() 246 (*ctx->bctx)->mac(ctx->bctx, in br_ccm_run() 264 (*ctx->bctx)->decrypt(ctx->bctx, ctx->ctr, ctx->cbcmac, in br_ccm_run() 267 (*ctx->bctx)->encrypt(ctx->bctx, ctx->ctr, ctx->cbcmac, in br_ccm_run() 280 (*ctx->bctx)->ctr(ctx->bctx, ctx->ctr, in br_ccm_run() [all …]
|
| H A D | eax.c | 112 (*ctx->bctx)->mac(ctx->bctx, ctx->cbcmac, ctx->buf, sizeof ctx->buf); in do_pad() 143 (*ctx->bctx)->mac(ctx->bctx, ctx->cbcmac, in do_cbcmac_chunk() 146 (*ctx->bctx)->mac(ctx->bctx, ctx->cbcmac, data, len); in do_cbcmac_chunk() 153 br_eax_init(br_eax_context *ctx, const br_block_ctrcbc_class **bctx) in br_eax_init() argument 158 ctx->bctx = bctx; in br_eax_init() 165 (*bctx)->ctr(bctx, iv, tmp, sizeof tmp); in br_eax_init() 187 (*ctx->bctx)->mac(ctx->bctx, st->st[i], tmp, sizeof tmp); in br_eax_capture() 396 (*ctx->bctx)->mac(ctx->bctx, ctx->cbcmac, in br_eax_run() 412 (*ctx->bctx)->encrypt(ctx->bctx, ctx->ctr, ctx->cbcmac, in br_eax_run() 415 (*ctx->bctx)->decrypt(ctx->bctx, ctx->ctr, ctx->cbcmac, in br_eax_run() [all …]
|
| H A D | gcm.c | 55 br_gcm_init(br_gcm_context *ctx, const br_block_ctr_class **bctx, br_ghash gh) in br_gcm_init() argument 60 ctx->bctx = bctx; in br_gcm_init() 71 (*bctx)->run(bctx, iv, 0, ctx->h, sizeof ctx->h); in br_gcm_init() 205 ctx->jc = (*ctx->bctx)->run(ctx->bctx, ctx->j0_1, ctx->jc, buf, dlen); in br_gcm_run() 220 ctx->jc = (*ctx->bctx)->run(ctx->bctx, ctx->j0_1, in br_gcm_run() 263 (*ctx->bctx)->run(ctx->bctx, ctx->j0_1, ctx->j0_2, tag, 16); in br_gcm_get_tag()
|
| /freebsd-12.1/contrib/bearssl/inc/ |
| H A D | bearssl_aead.h | 360 const br_block_ctr_class **bctx; member 388 const br_block_ctr_class **bctx, br_ghash gh); 583 const br_block_ctrcbc_class **bctx; member 623 void br_eax_init(br_eax_context *ctx, const br_block_ctrcbc_class **bctx); 898 const br_block_ctrcbc_class **bctx; member 922 void br_ccm_init(br_ccm_context *ctx, const br_block_ctrcbc_class **bctx);
|
| /freebsd-12.1/sys/crypto/blake2/ |
| H A D | blake2_cryptodev.c | 366 } bctx; in blake2_cipher_process() local 397 rc = blake2b_init_key(&bctx.sb, hashlen, ses->key, ses->klen); in blake2_cipher_process() 399 rc = blake2b_init(&bctx.sb, hashlen); in blake2_cipher_process() 403 crd->crd_len, blake2b_applicator, &bctx.sb); in blake2_cipher_process() 406 rc = blake2b_final(&bctx.sb, res, hashlen); in blake2_cipher_process() 418 rc = blake2s_init_key(&bctx.ss, hashlen, ses->key, ses->klen); in blake2_cipher_process() 420 rc = blake2s_init(&bctx.ss, hashlen); in blake2_cipher_process() 424 crd->crd_len, blake2s_applicator, &bctx.ss); in blake2_cipher_process() 427 rc = blake2s_final(&bctx.ss, res, hashlen); in blake2_cipher_process()
|
| /freebsd-12.1/contrib/ntp/ntpd/ |
| H A D | ntp_crypto.c | 2201 bctx = BN_CTX_new(); in crypto_alice() 2203 BN_CTX_free(bctx); in crypto_alice() 2294 BN_CTX_free(bctx); in crypto_bob() 2531 bctx = BN_CTX_new(); in crypto_alice2() 2533 BN_CTX_free(bctx); in crypto_alice2() 2617 BN_mod(k, k, n, bctx); in crypto_bob2() 2623 BN_CTX_free(bctx); in crypto_bob2() 2875 bctx = BN_CTX_new(); in crypto_alice3() 2877 BN_CTX_free(bctx); in crypto_alice3() 2965 BN_mod(k, k, q, bctx); in crypto_bob3() [all …]
|
| /freebsd-12.1/usr.sbin/bhyve/ |
| H A D | pci_ahci.c | 137 struct blockif_ctxt *bctx; member 535 if (!pr->bctx) { in ahci_port_reset() 572 if (sc->port[i].bctx) in ahci_reset() 715 lba *= blockif_sectsz(p->bctx); in ahci_handle_rw() 716 len *= blockif_sectsz(p->bctx); in ahci_handle_rw() 960 if (blockif_candelete(p->bctx) && !blockif_is_ro(p->bctx)) { in ahci_handle_read_log() 992 ro = blockif_is_ro(p->bctx); in handle_identify() 1244 sectors = blockif_size(p->bctx) / blockif_sectsz(p->bctx); in atapi_read_toc() 1320 sectors = blockif_size(p->bctx) / blockif_sectsz(p->bctx); in atapi_read_toc() 2367 sc->port[p].bctx = bctxt; in pci_ahci_init() [all …]
|