| /freebsd-12-stable/contrib/bearssl/src/aead/ |
| D | ccm.c | 51 br_ccm_init(br_ccm_context *ctx, const br_block_ctrcbc_class **bctx) in br_ccm_init() argument 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() [all …]
|
| 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 …]
|
| 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-stable/contrib/bearssl/inc/ |
| 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-stable/sys/crypto/blake2/ |
| 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-stable/contrib/ntp/ntpd/ |
| D | ntp_crypto.c | 2173 BN_CTX *bctx; /* BIGNUM context */ in crypto_alice() local 2201 bctx = BN_CTX_new(); in crypto_alice() 2202 BN_mod(peer->iffval, peer->iffval, q, bctx); in crypto_alice() 2203 BN_CTX_free(bctx); in crypto_alice() 2248 BN_CTX *bctx; /* BIGNUM context */ in crypto_bob() local 2285 bctx = BN_CTX_new(); bk = BN_new(); bn = BN_new(); in crypto_bob() 2288 BN_mod_mul(bn, priv_key, r, q, bctx); /* b r mod q */ in crypto_bob() 2290 BN_mod(bn, bn, q, bctx); /* k + b r mod q */ in crypto_bob() 2291 BN_mod_exp(bk, g, bk, p, bctx); /* g^k mod p */ in crypto_bob() 2294 BN_CTX_free(bctx); in crypto_bob() [all …]
|
| /freebsd-12-stable/usr.sbin/bhyve/ |
| D | pci_ahci.c | 137 struct blockif_ctxt *bctx; member 495 error = blockif_cancel(p->bctx, &aior->io_req); in ahci_port_stop() 535 if (!pr->bctx) { in ahci_port_reset() 572 if (sc->port[i].bctx) in ahci_reset() 642 extra = todo % blockif_sectsz(p->bctx); in ahci_build_iov() 715 lba *= blockif_sectsz(p->bctx); in ahci_handle_rw() 716 len *= blockif_sectsz(p->bctx); in ahci_handle_rw() 741 err = blockif_read(p->bctx, breq); in ahci_handle_rw() 743 err = blockif_write(p->bctx, breq); in ahci_handle_rw() 777 err = blockif_flush(p->bctx, breq); in ahci_handle_flush() [all …]
|