Home
last modified time | relevance | path

Searched refs:priv (Results 1 – 4 of 4) sorted by relevance

/crypto/
Dahash.c235 struct ahash_request_priv *priv; in ahash_save_req() local
237 priv = kmalloc(sizeof(*priv) + ahash_align_buffer_size(ds, alignmask), in ahash_save_req()
240 if (!priv) in ahash_save_req()
268 priv->result = req->result; in ahash_save_req()
269 priv->complete = req->base.complete; in ahash_save_req()
270 priv->data = req->base.data; in ahash_save_req()
271 priv->flags = req->base.flags; in ahash_save_req()
279 req->result = PTR_ALIGN((u8 *)priv->ubuf, alignmask + 1); in ahash_save_req()
282 req->priv = priv; in ahash_save_req()
289 struct ahash_request_priv *priv = req->priv; in ahash_restore_req() local
[all …]
Dlrw.c30 struct priv { struct
71 struct priv *ctx = crypto_skcipher_ctx(parent); in setkey() argument
146 struct priv *ctx = crypto_skcipher_ctx(tfm); in xor_tweak()
225 struct priv *ctx = crypto_skcipher_ctx(crypto_skcipher_reqtfm(req)); in init_crypt()
268 struct priv *ctx = crypto_skcipher_ctx(tfm); in init_tfm()
285 struct priv *ctx = crypto_skcipher_ctx(tfm); in exit_tfm()
395 inst->alg.base.cra_ctxsize = sizeof(struct priv); in create()
Dxts.c23 struct priv { struct
43 struct priv *ctx = crypto_skcipher_ctx(parent); in setkey() argument
166 struct priv *ctx = crypto_skcipher_ctx(crypto_skcipher_reqtfm(req)); in cts_final()
243 struct priv *ctx = crypto_skcipher_ctx(crypto_skcipher_reqtfm(req)); in init_crypt()
299 struct priv *ctx = crypto_skcipher_ctx(tfm); in init_tfm()
325 struct priv *ctx = crypto_skcipher_ctx(tfm); in exit_tfm()
433 inst->alg.base.cra_ctxsize = sizeof(struct priv); in create()
Decc.c1347 u64 priv[ECC_MAX_DIGITS]; in ecc_gen_privkey() local
1353 if (nbits < 160 || ndigits > ARRAY_SIZE(priv)) in ecc_gen_privkey()
1370 err = crypto_rng_get_bytes(crypto_default_rng, (u8 *)priv, nbytes); in ecc_gen_privkey()
1376 if (__ecc_is_key_valid(curve, priv, ndigits)) in ecc_gen_privkey()
1379 ecc_swap_digits(priv, privkey, ndigits); in ecc_gen_privkey()
1390 u64 priv[ECC_MAX_DIGITS]; in ecc_make_pub_key() local
1393 if (!private_key || !curve || ndigits > ARRAY_SIZE(priv)) { in ecc_make_pub_key()
1398 ecc_swap_digits(private_key, priv, ndigits); in ecc_make_pub_key()
1406 ecc_point_mult(pk, &curve->g, priv, NULL, curve, ndigits); in ecc_make_pub_key()
1461 u64 priv[ECC_MAX_DIGITS]; in crypto_ecdh_shared_secret() local
[all …]