| /freebsd-13.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-13.1/sys/crypto/blake2/ |
| H A D | blake2_cryptodev.c | 335 } bctx; in blake2_cipher_process() local 365 rc = blake2b_init_key(&bctx.sb, ses->mlen, key, klen); in blake2_cipher_process() 367 rc = blake2b_init(&bctx.sb, ses->mlen); in blake2_cipher_process() 371 crp->crp_payload_length, blake2b_applicator, &bctx.sb); in blake2_cipher_process() 374 rc = blake2b_final(&bctx.sb, res, ses->mlen); in blake2_cipher_process() 382 rc = blake2s_init_key(&bctx.ss, ses->mlen, key, klen); in blake2_cipher_process() 384 rc = blake2s_init(&bctx.ss, ses->mlen); in blake2_cipher_process() 388 crp->crp_payload_length, blake2s_applicator, &bctx.ss); in blake2_cipher_process() 391 rc = blake2s_final(&bctx.ss, res, ses->mlen); in blake2_cipher_process()
|
| /freebsd-13.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-13.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-13.1/usr.sbin/bhyve/ |
| H A D | pci_ahci.c | 142 struct blockif_ctxt *bctx; member 540 if (!pr->bctx) { in ahci_port_reset() 577 if (sc->port[i].bctx) in ahci_reset() 966 if (blockif_candelete(p->bctx) && !blockif_is_ro(p->bctx)) { in ahci_handle_read_log() 1254 sectors = blockif_size(p->bctx) / blockif_sectsz(p->bctx); in atapi_read_toc() 1330 sectors = blockif_size(p->bctx) / blockif_sectsz(p->bctx); in atapi_read_toc() 2667 void *bctx; in pci_ahci_snapshot() local 2697 bctx = port->bctx; in pci_ahci_snapshot() 2703 if (((bctx == NULL) && (port->bctx != NULL)) || in pci_ahci_snapshot() 2704 ((bctx != NULL) && (port->bctx == NULL))) { in pci_ahci_snapshot() [all …]
|