Searched refs:noncelen (Results 1 - 15 of 15) sorted by relevance

/netbsd-current/crypto/external/bsd/openssl.old/dist/test/
H A Ddrbg_cavs_test.c30 size_t noncelen; member in struct:test_ctx_st
52 return t->noncelen;
89 t.noncelen = td->noncelen;
148 t.noncelen = td->noncelen;
210 t.noncelen = td->noncelen;
H A Ddrbg_cavs_data.h71 size_t noncelen; member in struct:drbg_kat
H A Ddrbgtest.c44 size_t noncelen; member in struct:drbg_selftest_data_st
128 size_t noncelen; member in struct:test_ctx_st
150 return t->noncelen;
186 t.noncelen = td->noncelen;
217 t.noncelen = td->noncelen_pr;
265 t->noncelen = td->noncelen;
346 t.noncelen = drbg->min_noncelen - 1;
356 t.noncelen
[all...]
/netbsd-current/crypto/external/bsd/openssl/dist/providers/implementations/rands/
H A Ddrbg_local.h80 const unsigned char *nonce, size_t noncelen,
187 const unsigned char *nonce, size_t noncelen,
H A Ddrbg.c366 size_t noncelen = 0, entropylen = 0; local
398 noncelen = drbg->parent_nonce(drbg->parent, NULL, drbg->strength,
401 if (noncelen == 0) {
405 nonce = OPENSSL_malloc(noncelen);
410 if (noncelen != drbg->parent_nonce(drbg->parent, nonce,
433 noncelen = prov_drbg_get_nonce(drbg, &nonce, drbg->min_noncelen,
435 if (noncelen < drbg->min_noncelen
436 || noncelen > drbg->max_noncelen) {
460 if (!drbg->instantiate(drbg, entropy, entropylen, nonce, noncelen,
475 ossl_prov_cleanup_nonce(drbg->provctx, nonce, noncelen);
765 ossl_rand_drbg_new(void *provctx, void *parent, const OSSL_DISPATCH *p_dispatch, int (*dnew)(PROV_DRBG *ctx), void (*dfree)(void *vctx), int (*instantiate)(PROV_DRBG *drbg, const unsigned char *entropy, size_t entropylen, const unsigned char *nonce, size_t noncelen, const unsigned char *pers, size_t perslen), int (*uninstantiate)(PROV_DRBG *ctx), int (*reseed)(PROV_DRBG *drbg, const unsigned char *ent, size_t ent_len, const unsigned char *adin, size_t adin_len), int (*generate)(PROV_DRBG *, unsigned char *out, size_t outlen, const unsigned char *adin, size_t adin_len)) argument
[all...]
H A Ddrbg_ctr.c262 const unsigned char *nonce, size_t noncelen)
289 if (!ctr_df(ctr, in1, in1len, nonce, noncelen, in2, in2len))
307 const unsigned char *nonce, size_t noncelen,
321 if (!ctr_update(drbg, entropy, entropylen, pers, perslen, nonce, noncelen))
259 ctr_update(PROV_DRBG *drbg, const unsigned char *in1, size_t in1len, const unsigned char *in2, size_t in2len, const unsigned char *nonce, size_t noncelen) argument
305 drbg_ctr_instantiate(PROV_DRBG *drbg, const unsigned char *entropy, size_t entropylen, const unsigned char *nonce, size_t noncelen, const unsigned char *pers, size_t perslen) argument
/netbsd-current/sys/crypto/aes/
H A Daes_ccm.c88 const uint8_t *nonce, unsigned noncelen, const void *ad, size_t adlen,
100 KASSERT(noncelen == 15 - L);
112 memcpy(auth + 1, nonce, noncelen);
114 KASSERT(i < 16 - 1 - noncelen);
176 memcpy(ctr + 1, nonce, noncelen);
177 memset(ctr + 1 + noncelen, 0, 16 - 1 - noncelen);
373 size_t noncelen; member in struct:__anon4
516 const unsigned noncelen = 13; local
531 aes_ccm_init(C, nr, AE, L, T[i].M, T[i].nonce, noncelen,
86 aes_ccm_init(struct aes_ccm *C, unsigned nr, const struct aesenc *enc, unsigned L, unsigned M, const uint8_t *nonce, unsigned noncelen, const void *ad, size_t adlen, size_t mlen) argument
[all...]
/netbsd-current/crypto/external/bsd/openssl.old/dist/crypto/rand/
H A Ddrbg_lib.c292 size_t noncelen = 0, entropylen = 0; local
340 noncelen = drbg->get_nonce(drbg, &nonce, drbg->strength / 2,
342 if (noncelen < drbg->min_noncelen || noncelen > drbg->max_noncelen) {
349 nonce, noncelen, pers, perslen)) {
364 drbg->cleanup_nonce(drbg, nonce, noncelen);
H A Ddrbg_ctr.c227 const unsigned char *nonce, size_t noncelen)
254 if (!ctr_df(ctr, in1, in1len, nonce, noncelen, in2, in2len))
272 const unsigned char *nonce, size_t noncelen,
286 if (!ctr_update(drbg, entropy, entropylen, pers, perslen, nonce, noncelen))
224 ctr_update(RAND_DRBG *drbg, const unsigned char *in1, size_t in1len, const unsigned char *in2, size_t in2len, const unsigned char *nonce, size_t noncelen) argument
270 drbg_ctr_instantiate(RAND_DRBG *drbg, const unsigned char *entropy, size_t entropylen, const unsigned char *nonce, size_t noncelen, const unsigned char *pers, size_t perslen) argument
H A Drand_local.h106 size_t noncelen,
/netbsd-current/crypto/external/bsd/openssl/dist/providers/implementations/ciphers/
H A Dcipher_chacha20_poly1305_hw.c80 size_t noncelen = CHACHA20_POLY1305_IVLEN; local
89 memcpy(tempiv + CHACHA_CTR_SIZE - noncelen, bctx->oiv,
90 noncelen);
H A Dcipher_aes_ccm_hw_s390x.inc34 const unsigned char *nonce, size_t noncelen,
/netbsd-current/crypto/external/bsd/openssl/dist/providers/fips/
H A Dself_test_kats.c304 (void *)t->nonce, t->noncelen);
H A Dself_test_data.inc77 size_t noncelen;
/netbsd-current/sys/crypto/nist_hash_drbg/
H A Dnist_hash_drbg.c122 const void *nonce, size_t noncelen,
130 { .hv_base = nonce, .hv_len = noncelen },
118 nist_hash_drbg_instantiate(secret struct nist_hash_drbg *D, const secret void *entropy, size_t entropylen, const void *nonce, size_t noncelen, const void *personalization, size_t personalizationlen) argument

Completed in 217 milliseconds