/freebsd-12-stable/contrib/bearssl/src/aead/ |
H A D | ccm.c | 51 br_ccm_init(br_ccm_context *ctx, const br_block_ctrcbc_class **bctx) argument 53 ctx->bctx = bctx; 97 (*ctx->bctx)->mac(ctx->bctx, ctx->cbcmac, tmp, sizeof tmp); 126 (*ctx->bctx)->ctr(ctx->bctx, ctx->ctr, 157 (*ctx->bctx)->mac(ctx->bctx, ctx->cbcmac, 166 (*ctx->bctx) [all...] |
H A D | eax.c | 112 (*ctx->bctx)->mac(ctx->bctx, ctx->cbcmac, ctx->buf, sizeof ctx->buf); 143 (*ctx->bctx)->mac(ctx->bctx, ctx->cbcmac, 146 (*ctx->bctx)->mac(ctx->bctx, ctx->cbcmac, data, len); 153 br_eax_init(br_eax_context *ctx, const br_block_ctrcbc_class **bctx) argument 158 ctx->bctx = bctx; 165 (*bctx) [all...] |
H A D | gcm.c | 55 br_gcm_init(br_gcm_context *ctx, const br_block_ctr_class **bctx, br_ghash gh) argument 60 ctx->bctx = bctx; 71 (*bctx)->run(bctx, iv, 0, ctx->h, sizeof ctx->h); 205 ctx->jc = (*ctx->bctx)->run(ctx->bctx, ctx->j0_1, ctx->jc, buf, dlen); 220 ctx->jc = (*ctx->bctx)->run(ctx->bctx, ctx->j0_1, 263 (*ctx->bctx) [all...] |
/freebsd-12-stable/contrib/bearssl/inc/ |
H A D | bearssl_aead.h | 360 const br_block_ctr_class **bctx; member in struct:__anon223 384 * \param bctx block cipher context (already initialised with secret key). 388 const br_block_ctr_class **bctx, br_ghash gh); 583 const br_block_ctrcbc_class **bctx; member in struct:__anon224 621 * \param bctx block cipher context (already initialised with secret key). 623 void br_eax_init(br_eax_context *ctx, const br_block_ctrcbc_class **bctx); 898 const br_block_ctrcbc_class **bctx; member in struct:__anon226 920 * \param bctx block cipher context (already initialised with secret key). 922 void br_ccm_init(br_ccm_context *ctx, const br_block_ctrcbc_class **bctx);
|
/freebsd-12-stable/sys/crypto/blake2/ |
H A D | blake2_cryptodev.c | 366 } bctx; local 397 rc = blake2b_init_key(&bctx.sb, hashlen, ses->key, ses->klen); 399 rc = blake2b_init(&bctx.sb, hashlen); 403 crd->crd_len, blake2b_applicator, &bctx.sb); 406 rc = blake2b_final(&bctx.sb, res, hashlen); 418 rc = blake2s_init_key(&bctx.ss, hashlen, ses->key, ses->klen); 420 rc = blake2s_init(&bctx.ss, hashlen); 424 crd->crd_len, blake2s_applicator, &bctx.ss); 427 rc = blake2s_final(&bctx.ss, res, hashlen);
|
/freebsd-12-stable/contrib/ntp/ntpd/ |
H A D | ntp_crypto.c | 2173 BN_CTX *bctx; /* BIGNUM context */ local 2201 bctx = BN_CTX_new(); 2202 BN_mod(peer->iffval, peer->iffval, q, bctx); 2203 BN_CTX_free(bctx); 2248 BN_CTX *bctx; /* BIGNUM context */ local 2285 bctx = BN_CTX_new(); bk = BN_new(); bn = BN_new(); 2288 BN_mod_mul(bn, priv_key, r, q, bctx); /* b r mod q */ 2290 BN_mod(bn, bn, q, bctx); /* k + b r mod q */ 2291 BN_mod_exp(bk, g, bk, p, bctx); /* g^k mod p */ 2294 BN_CTX_free(bctx); 2361 BN_CTX *bctx; /* BIGNUM context */ local 2505 BN_CTX *bctx; /* BIGNUM context */ local 2578 BN_CTX *bctx; /* BIGNUM context */ local 2684 BN_CTX *bctx; /* BIGNUM context */ local 2849 BN_CTX *bctx; /* BIGNUM context */ local 2921 BN_CTX *bctx; /* BIGNUM context */ local 3037 BN_CTX *bctx; /* BIGNUM context */ local [all...] |
/freebsd-12-stable/usr.sbin/bhyve/ |
H A D | pci_ahci.c | 137 struct blockif_ctxt *bctx; member in struct:ahci_port 495 error = blockif_cancel(p->bctx, &aior->io_req); 535 if (!pr->bctx) { 572 if (sc->port[i].bctx) 642 extra = todo % blockif_sectsz(p->bctx); 715 lba *= blockif_sectsz(p->bctx); 716 len *= blockif_sectsz(p->bctx); 741 err = blockif_read(p->bctx, breq); 743 err = blockif_write(p->bctx, breq); 777 err = blockif_flush(p->bctx, bre [all...] |