Searched refs:priv (Results 1 – 3 of 3) sorted by relevance
/crypto/ |
D | ahash.c | 204 struct ahash_request_priv *priv; in ahash_save_req() local 206 priv = kmalloc(sizeof(*priv) + ahash_align_buffer_size(ds, alignmask), in ahash_save_req() 209 if (!priv) in ahash_save_req() 237 priv->result = req->result; in ahash_save_req() 238 priv->complete = req->base.complete; in ahash_save_req() 239 priv->data = req->base.data; in ahash_save_req() 240 priv->flags = req->base.flags; in ahash_save_req() 248 req->result = PTR_ALIGN((u8 *)priv->ubuf, alignmask + 1); in ahash_save_req() 251 req->priv = priv; in ahash_save_req() 258 struct ahash_request_priv *priv = req->priv; in ahash_restore_req() local [all …]
|
D | ecc.c | 1466 u64 priv[ECC_MAX_DIGITS]; in ecc_gen_privkey() local 1472 if (nbits < 160 || ndigits > ARRAY_SIZE(priv)) in ecc_gen_privkey() 1489 err = crypto_rng_get_bytes(crypto_default_rng, (u8 *)priv, nbytes); in ecc_gen_privkey() 1495 if (__ecc_is_key_valid(curve, priv, ndigits)) in ecc_gen_privkey() 1498 ecc_swap_digits(priv, privkey, ndigits); in ecc_gen_privkey() 1509 u64 priv[ECC_MAX_DIGITS]; in ecc_make_pub_key() local 1512 if (!private_key || !curve || ndigits > ARRAY_SIZE(priv)) { in ecc_make_pub_key() 1517 ecc_swap_digits(private_key, priv, ndigits); in ecc_make_pub_key() 1525 ecc_point_mult(pk, &curve->g, priv, NULL, curve, ndigits); in ecc_make_pub_key() 1609 u64 priv[ECC_MAX_DIGITS]; in crypto_ecdh_shared_secret() local [all …]
|
D | fips140-module.c | 558 static void fips140_aes_encrypt(void *priv, const struct crypto_aes_ctx *ctx, in fips140_aes_encrypt() argument 565 static void fips140_aes_decrypt(void *priv, const struct crypto_aes_ctx *ctx, in fips140_aes_decrypt() argument
|