Home
last modified time | relevance | path

Searched refs:val (Results 1 – 7 of 7) sorted by relevance

/crypto/
Ddh.c36 static int _compute_val(const struct dh_ctx *ctx, MPI base, MPI val) in _compute_val() argument
39 return mpi_powm(val, base, ctx->xa, ctx->p); in _compute_val()
125 MPI val = mpi_alloc(0); in dh_is_pubkey_valid() local
128 if (!val) in dh_is_pubkey_valid()
131 ret = mpi_powm(val, y, ctx->q, ctx->p); in dh_is_pubkey_valid()
134 mpi_free(val); in dh_is_pubkey_valid()
138 ret = mpi_cmp_ui(val, 1); in dh_is_pubkey_valid()
140 mpi_free(val); in dh_is_pubkey_valid()
153 MPI base, val = mpi_alloc(0); in dh_compute_value() local
157 if (!val) in dh_compute_value()
[all …]
Dinternal.h82 int crypto_probing_notify(unsigned long val, void *v);
126 static inline void crypto_notify(unsigned long val, void *v) in crypto_notify() argument
128 blocking_notifier_call_chain(&crypto_chain, val, v); in crypto_notify()
Dmichael_mic.c28 static inline u32 xswap(u32 val) in xswap() argument
30 return ((val & 0x00ff00ff) << 8) | ((val & 0xff00ff00) >> 8); in xswap()
Dapi.c245 int crypto_probing_notify(unsigned long val, void *v) in crypto_probing_notify() argument
249 ok = blocking_notifier_call_chain(&crypto_chain, val, v); in crypto_probing_notify()
252 ok = blocking_notifier_call_chain(&crypto_chain, val, v); in crypto_probing_notify()
Dtestmgr.c3299 __le32 val; in alg_test_crc32c() local
3328 err = crypto_shash_final(shash, (u8 *)&val); in alg_test_crc32c()
3335 if (val != cpu_to_le32(~420553207)) { in alg_test_crc32c()
3337 driver, le32_to_cpu(val)); in alg_test_crc32c()
3639 static u8 *test_pack_u32(u8 *dst, u32 val) in test_pack_u32() argument
3641 memcpy(dst, &val, sizeof(val)); in test_pack_u32()
3642 return dst + sizeof(val); in test_pack_u32()
Ddrbg.c282 static inline void drbg_cpu_to_be32(__u32 val, unsigned char *buf) in drbg_cpu_to_be32() argument
289 conversion->conv = cpu_to_be32(val); in drbg_cpu_to_be32()
/crypto/asymmetric_keys/
Dpublic_key.c94 static u8 *pkey_pack_u32(u8 *dst, u32 val) in pkey_pack_u32() argument
96 memcpy(dst, &val, sizeof(val)); in pkey_pack_u32()
97 return dst + sizeof(val); in pkey_pack_u32()