Home
last modified time | relevance | path

Searched refs:CURVE25519_KEY_SIZE (Results 1 - 19 of 19) sorted by relevance

/kernel/linux/linux-5.10/include/crypto/
H A Dcurve25519.h14 CURVE25519_KEY_SIZE = 32 enumerator
20 void curve25519_generic(u8 out[CURVE25519_KEY_SIZE],
21 const u8 scalar[CURVE25519_KEY_SIZE],
22 const u8 point[CURVE25519_KEY_SIZE]);
24 void curve25519_arch(u8 out[CURVE25519_KEY_SIZE],
25 const u8 scalar[CURVE25519_KEY_SIZE],
26 const u8 point[CURVE25519_KEY_SIZE]);
28 void curve25519_base_arch(u8 pub[CURVE25519_KEY_SIZE],
29 const u8 secret[CURVE25519_KEY_SIZE]);
32 bool __must_check curve25519(u8 mypublic[CURVE25519_KEY_SIZE], in curve25519()
[all...]
/kernel/linux/linux-6.6/include/crypto/
H A Dcurve25519.h14 CURVE25519_KEY_SIZE = 32 enumerator
20 void curve25519_generic(u8 out[CURVE25519_KEY_SIZE],
21 const u8 scalar[CURVE25519_KEY_SIZE],
22 const u8 point[CURVE25519_KEY_SIZE]);
24 void curve25519_arch(u8 out[CURVE25519_KEY_SIZE],
25 const u8 scalar[CURVE25519_KEY_SIZE],
26 const u8 point[CURVE25519_KEY_SIZE]);
28 void curve25519_base_arch(u8 pub[CURVE25519_KEY_SIZE],
29 const u8 secret[CURVE25519_KEY_SIZE]);
34 bool __must_check curve25519(u8 mypublic[CURVE25519_KEY_SIZE], in curve25519()
[all...]
/kernel/linux/linux-5.10/arch/arm/crypto/
H A Dcurve25519-glue.c22 asmlinkage void curve25519_neon(u8 mypublic[CURVE25519_KEY_SIZE],
23 const u8 secret[CURVE25519_KEY_SIZE],
24 const u8 basepoint[CURVE25519_KEY_SIZE]);
28 void curve25519_arch(u8 out[CURVE25519_KEY_SIZE], in curve25519_arch()
29 const u8 scalar[CURVE25519_KEY_SIZE], in curve25519_arch()
30 const u8 point[CURVE25519_KEY_SIZE]) in curve25519_arch()
42 void curve25519_base_arch(u8 pub[CURVE25519_KEY_SIZE], in curve25519_base_arch()
43 const u8 secret[CURVE25519_KEY_SIZE]) in curve25519_base_arch()
56 else if (len == CURVE25519_KEY_SIZE && in curve25519_set_secret()
57 crypto_memneq(buf, curve25519_null_point, CURVE25519_KEY_SIZE)) in curve25519_set_secret()
[all...]
/kernel/linux/linux-6.6/arch/arm/crypto/
H A Dcurve25519-glue.c22 asmlinkage void curve25519_neon(u8 mypublic[CURVE25519_KEY_SIZE],
23 const u8 secret[CURVE25519_KEY_SIZE],
24 const u8 basepoint[CURVE25519_KEY_SIZE]);
28 void curve25519_arch(u8 out[CURVE25519_KEY_SIZE], in curve25519_arch()
29 const u8 scalar[CURVE25519_KEY_SIZE], in curve25519_arch()
30 const u8 point[CURVE25519_KEY_SIZE]) in curve25519_arch()
42 void curve25519_base_arch(u8 pub[CURVE25519_KEY_SIZE], in curve25519_base_arch()
43 const u8 secret[CURVE25519_KEY_SIZE]) in curve25519_base_arch()
56 else if (len == CURVE25519_KEY_SIZE && in curve25519_set_secret()
57 crypto_memneq(buf, curve25519_null_point, CURVE25519_KEY_SIZE)) in curve25519_set_secret()
[all...]
/kernel/linux/linux-5.10/crypto/
H A Dcurve25519-generic.c16 else if (len == CURVE25519_KEY_SIZE && in curve25519_set_secret()
17 crypto_memneq(buf, curve25519_null_point, CURVE25519_KEY_SIZE)) in curve25519_set_secret()
18 memcpy(secret, buf, CURVE25519_KEY_SIZE); in curve25519_set_secret()
28 u8 public_key[CURVE25519_KEY_SIZE]; in curve25519_compute_value()
29 u8 buf[CURVE25519_KEY_SIZE]; in curve25519_compute_value()
36 CURVE25519_KEY_SIZE), in curve25519_compute_value()
37 public_key, CURVE25519_KEY_SIZE); in curve25519_compute_value()
38 if (copied != CURVE25519_KEY_SIZE) in curve25519_compute_value()
48 nbytes = min_t(size_t, CURVE25519_KEY_SIZE, req->dst_len); in curve25519_compute_value()
59 return CURVE25519_KEY_SIZE; in curve25519_max_size()
[all...]
/kernel/linux/linux-6.6/crypto/
H A Dcurve25519-generic.c16 else if (len == CURVE25519_KEY_SIZE && in curve25519_set_secret()
17 crypto_memneq(buf, curve25519_null_point, CURVE25519_KEY_SIZE)) in curve25519_set_secret()
18 memcpy(secret, buf, CURVE25519_KEY_SIZE); in curve25519_set_secret()
28 u8 public_key[CURVE25519_KEY_SIZE]; in curve25519_compute_value()
29 u8 buf[CURVE25519_KEY_SIZE]; in curve25519_compute_value()
36 CURVE25519_KEY_SIZE), in curve25519_compute_value()
37 public_key, CURVE25519_KEY_SIZE); in curve25519_compute_value()
38 if (copied != CURVE25519_KEY_SIZE) in curve25519_compute_value()
48 nbytes = min_t(size_t, CURVE25519_KEY_SIZE, req->dst_len); in curve25519_compute_value()
59 return CURVE25519_KEY_SIZE; in curve25519_max_size()
[all...]
/kernel/linux/linux-5.10/lib/crypto/
H A Dcurve25519-generic.c15 const u8 curve25519_null_point[CURVE25519_KEY_SIZE] __aligned(32) = { 0 };
16 const u8 curve25519_base_point[CURVE25519_KEY_SIZE] __aligned(32) = { 9 };
H A Dcurve25519-selftest.c9 u8 private[CURVE25519_KEY_SIZE];
10 u8 public[CURVE25519_KEY_SIZE];
11 u8 result[CURVE25519_KEY_SIZE];
1287 u8 in[CURVE25519_KEY_SIZE]; in curve25519_selftest()
1288 u8 out[CURVE25519_KEY_SIZE], out2[CURVE25519_KEY_SIZE], in curve25519_selftest()
1289 out3[CURVE25519_KEY_SIZE]; in curve25519_selftest()
1292 memset(out, 0, CURVE25519_KEY_SIZE); in curve25519_selftest()
1297 CURVE25519_KEY_SIZE)) { in curve25519_selftest()
1306 ret2 = curve25519(out2, in, (u8[CURVE25519_KEY_SIZE]){ in curve25519_selftest()
[all...]
H A Dcurve25519-hacl64.c759 void curve25519_generic(u8 mypublic[CURVE25519_KEY_SIZE], in curve25519_generic()
760 const u8 secret[CURVE25519_KEY_SIZE], in curve25519_generic()
761 const u8 basepoint[CURVE25519_KEY_SIZE]) in curve25519_generic()
H A Dcurve25519-fiat32.c756 void curve25519_generic(u8 out[CURVE25519_KEY_SIZE], in curve25519_generic()
757 const u8 scalar[CURVE25519_KEY_SIZE], in curve25519_generic()
758 const u8 point[CURVE25519_KEY_SIZE]) in curve25519_generic()
/kernel/linux/linux-6.6/lib/crypto/
H A Dcurve25519-generic.c15 const u8 curve25519_null_point[CURVE25519_KEY_SIZE] __aligned(32) = { 0 };
16 const u8 curve25519_base_point[CURVE25519_KEY_SIZE] __aligned(32) = { 9 };
H A Dcurve25519-selftest.c9 u8 private[CURVE25519_KEY_SIZE];
10 u8 public[CURVE25519_KEY_SIZE];
11 u8 result[CURVE25519_KEY_SIZE];
1287 u8 in[CURVE25519_KEY_SIZE]; in curve25519_selftest()
1288 u8 out[CURVE25519_KEY_SIZE], out2[CURVE25519_KEY_SIZE], in curve25519_selftest()
1289 out3[CURVE25519_KEY_SIZE]; in curve25519_selftest()
1292 memset(out, 0, CURVE25519_KEY_SIZE); in curve25519_selftest()
1297 CURVE25519_KEY_SIZE)) { in curve25519_selftest()
1306 ret2 = curve25519(out2, in, (u8[CURVE25519_KEY_SIZE]){ in curve25519_selftest()
[all...]
H A Dcurve25519-hacl64.c757 void curve25519_generic(u8 mypublic[CURVE25519_KEY_SIZE], in curve25519_generic()
758 const u8 secret[CURVE25519_KEY_SIZE], in curve25519_generic()
759 const u8 basepoint[CURVE25519_KEY_SIZE]) in curve25519_generic()
H A Dcurve25519-fiat32.c756 void curve25519_generic(u8 out[CURVE25519_KEY_SIZE], in curve25519_generic()
757 const u8 scalar[CURVE25519_KEY_SIZE], in curve25519_generic()
758 const u8 point[CURVE25519_KEY_SIZE]) in curve25519_generic()
/kernel/linux/linux-5.10/arch/x86/crypto/
H A Dcurve25519-x86_64.c1383 void curve25519_arch(u8 mypublic[CURVE25519_KEY_SIZE], in curve25519_arch()
1384 const u8 secret[CURVE25519_KEY_SIZE], in curve25519_arch()
1385 const u8 basepoint[CURVE25519_KEY_SIZE]) in curve25519_arch()
1394 void curve25519_base_arch(u8 pub[CURVE25519_KEY_SIZE], in curve25519_base_arch()
1395 const u8 secret[CURVE25519_KEY_SIZE]) in curve25519_base_arch()
1411 else if (len == CURVE25519_KEY_SIZE && in curve25519_set_secret()
1412 crypto_memneq(buf, curve25519_null_point, CURVE25519_KEY_SIZE)) in curve25519_set_secret()
1413 memcpy(secret, buf, CURVE25519_KEY_SIZE); in curve25519_set_secret()
1423 u8 buf[CURVE25519_KEY_SIZE]; in curve25519_generate_public_key()
1432 nbytes = min_t(size_t, CURVE25519_KEY_SIZE, re in curve25519_generate_public_key()
[all...]
/kernel/linux/linux-6.6/arch/x86/crypto/
H A Dcurve25519-x86_64.c1594 void curve25519_arch(u8 mypublic[CURVE25519_KEY_SIZE], in curve25519_arch()
1595 const u8 secret[CURVE25519_KEY_SIZE], in curve25519_arch()
1596 const u8 basepoint[CURVE25519_KEY_SIZE]) in curve25519_arch()
1605 void curve25519_base_arch(u8 pub[CURVE25519_KEY_SIZE], in curve25519_base_arch()
1606 const u8 secret[CURVE25519_KEY_SIZE]) in curve25519_base_arch()
1622 else if (len == CURVE25519_KEY_SIZE && in curve25519_set_secret()
1623 crypto_memneq(buf, curve25519_null_point, CURVE25519_KEY_SIZE)) in curve25519_set_secret()
1624 memcpy(secret, buf, CURVE25519_KEY_SIZE); in curve25519_set_secret()
1634 u8 buf[CURVE25519_KEY_SIZE]; in curve25519_generate_public_key()
1643 nbytes = min_t(size_t, CURVE25519_KEY_SIZE, re in curve25519_generate_public_key()
[all...]
/kernel/linux/linux-6.6/drivers/crypto/hisilicon/hpre/
H A Dhpre_crypto.c1678 u8 secret[CURVE25519_KEY_SIZE] = { 0 }; in hpre_curve25519_fill_curve()
1692 hpre_key_to_big_end(secret, CURVE25519_KEY_SIZE); in hpre_curve25519_fill_curve()
1703 memzero_explicit(secret, CURVE25519_KEY_SIZE); in hpre_curve25519_fill_curve()
1737 if (len != CURVE25519_KEY_SIZE || in hpre_curve25519_set_secret()
1738 !crypto_memneq(buf, curve25519_null_point, CURVE25519_KEY_SIZE)) { in hpre_curve25519_set_secret()
1746 ctx->key_sz = CURVE25519_KEY_SIZE; in hpre_curve25519_set_secret()
1747 ret = hpre_curve25519_set_param(ctx, buf, CURVE25519_KEY_SIZE); in hpre_curve25519_set_secret()
1799 hpre_key_to_big_end(sg_virt(areq->dst), CURVE25519_KEY_SIZE); in hpre_curve25519_cb()
1846 for (i = 0; i < CURVE25519_KEY_SIZE - 1; i++) in hpre_curve25519_src_modulo_p()
1859 u8 p[CURVE25519_KEY_SIZE] in hpre_curve25519_src_init()
[all...]
/kernel/linux/linux-5.10/drivers/net/wireguard/
H A Dmessages.h18 NOISE_PUBLIC_KEY_LEN = CURVE25519_KEY_SIZE,
/kernel/linux/linux-6.6/drivers/net/wireguard/
H A Dmessages.h18 NOISE_PUBLIC_KEY_LEN = CURVE25519_KEY_SIZE,

Completed in 21 milliseconds