Home
last modified time | relevance | path

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

/crypto/
Ddh.c37 static int _compute_val(const struct dh_ctx *ctx, MPI base, MPI val) in _compute_val() argument
40 return mpi_powm(val, base, ctx->xa, ctx->p); in _compute_val()
126 MPI val = mpi_alloc(0); in dh_is_pubkey_valid() local
129 if (!val) in dh_is_pubkey_valid()
132 ret = mpi_powm(val, y, ctx->q, ctx->p); in dh_is_pubkey_valid()
135 mpi_free(val); in dh_is_pubkey_valid()
139 ret = mpi_cmp_ui(val, 1); in dh_is_pubkey_valid()
141 mpi_free(val); in dh_is_pubkey_valid()
154 MPI base, val = mpi_alloc(0); in dh_compute_value() local
158 if (!val) in dh_compute_value()
[all …]
Dinternal.h92 int crypto_probing_notify(unsigned long val, void *v);
136 static inline void crypto_notify(unsigned long val, void *v) in crypto_notify() argument
138 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.c247 int crypto_probing_notify(unsigned long val, void *v) in crypto_probing_notify() argument
251 ok = blocking_notifier_call_chain(&crypto_chain, val, v); in crypto_probing_notify()
254 ok = blocking_notifier_call_chain(&crypto_chain, val, v); in crypto_probing_notify()
Dtestmgr.c3587 __le32 val; in alg_test_crc32c() local
3616 err = crypto_shash_final(shash, (u8 *)&val); in alg_test_crc32c()
3623 if (val != cpu_to_le32(~420553207)) { in alg_test_crc32c()
3625 driver, le32_to_cpu(val)); in alg_test_crc32c()
3927 static u8 *test_pack_u32(u8 *dst, u32 val) in test_pack_u32() argument
3929 memcpy(dst, &val, sizeof(val)); in test_pack_u32()
3930 return dst + sizeof(val); in test_pack_u32()
Ddrbg.c283 static inline void drbg_cpu_to_be32(__u32 val, unsigned char *buf) in drbg_cpu_to_be32() argument
290 conversion->conv = cpu_to_be32(val); in drbg_cpu_to_be32()
/crypto/asymmetric_keys/
Dpublic_key.c96 static u8 *pkey_pack_u32(u8 *dst, u32 val) in pkey_pack_u32() argument
98 memcpy(dst, &val, sizeof(val)); in pkey_pack_u32()
99 return dst + sizeof(val); in pkey_pack_u32()