| /linux-6.15/include/crypto/ |
| H A D | curve25519.h | 14 CURVE25519_KEY_SIZE = 32 enumerator 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]); 29 const u8 secret[CURVE25519_KEY_SIZE]); 35 const u8 secret[CURVE25519_KEY_SIZE], in curve25519() argument 43 CURVE25519_KEY_SIZE); in curve25519() 48 const u8 secret[CURVE25519_KEY_SIZE]) in curve25519_generate_public() argument [all …]
|
| /linux-6.15/arch/arm/crypto/ |
| H A D | curve25519-glue.c | 23 const u8 secret[CURVE25519_KEY_SIZE], 30 const u8 point[CURVE25519_KEY_SIZE]) in curve25519_arch() argument 43 const u8 secret[CURVE25519_KEY_SIZE]) in curve25519_base_arch() argument 56 else if (len == CURVE25519_KEY_SIZE && in curve25519_set_secret() 68 u8 public_key[CURVE25519_KEY_SIZE]; in curve25519_compute_value() 69 u8 buf[CURVE25519_KEY_SIZE]; in curve25519_compute_value() 76 CURVE25519_KEY_SIZE), in curve25519_compute_value() 77 public_key, CURVE25519_KEY_SIZE); in curve25519_compute_value() 78 if (copied != CURVE25519_KEY_SIZE) in curve25519_compute_value() 99 return CURVE25519_KEY_SIZE; in curve25519_max_size() [all …]
|
| /linux-6.15/crypto/ |
| H A D | curve25519-generic.c | 16 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 …]
|
| /linux-6.15/arch/powerpc/crypto/ |
| H A D | curve25519-ppc64le-core.c | 189 const u8 secret[CURVE25519_KEY_SIZE]) in curve25519_base_arch() argument 202 else if (len == CURVE25519_KEY_SIZE && in curve25519_set_secret() 204 memcpy(secret, buf, CURVE25519_KEY_SIZE); in curve25519_set_secret() 214 u8 buf[CURVE25519_KEY_SIZE]; in curve25519_generate_public_key() 236 u8 public_key[CURVE25519_KEY_SIZE]; in curve25519_compute_shared_secret() 237 u8 buf[CURVE25519_KEY_SIZE]; in curve25519_compute_shared_secret() 245 CURVE25519_KEY_SIZE), in curve25519_compute_shared_secret() 246 public_key, CURVE25519_KEY_SIZE); in curve25519_compute_shared_secret() 247 if (copied != CURVE25519_KEY_SIZE) in curve25519_compute_shared_secret() 264 return CURVE25519_KEY_SIZE; in curve25519_max_size() [all …]
|
| /linux-6.15/lib/crypto/ |
| H A D | curve25519-selftest.c | 9 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() 1309 memcmp(out, out2, CURVE25519_KEY_SIZE) || in curve25519_selftest() 1310 memcmp(out, out3, CURVE25519_KEY_SIZE)) { in curve25519_selftest() [all …]
|
| H A D | curve25519-generic.c | 15 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 D | curve25519-hacl64.c | 757 void curve25519_generic(u8 mypublic[CURVE25519_KEY_SIZE], in curve25519_generic() argument 758 const u8 secret[CURVE25519_KEY_SIZE], in curve25519_generic() argument 759 const u8 basepoint[CURVE25519_KEY_SIZE]) in curve25519_generic() argument
|
| H A D | curve25519-fiat32.c | 756 void curve25519_generic(u8 out[CURVE25519_KEY_SIZE], in curve25519_generic() argument 757 const u8 scalar[CURVE25519_KEY_SIZE], in curve25519_generic() argument 758 const u8 point[CURVE25519_KEY_SIZE]) in curve25519_generic() argument
|
| /linux-6.15/arch/x86/crypto/ |
| H A D | curve25519-x86_64.c | 1606 const u8 secret[CURVE25519_KEY_SIZE]) in curve25519_base_arch() argument 1622 else if (len == 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() 1656 u8 public_key[CURVE25519_KEY_SIZE]; in curve25519_compute_shared_secret() 1657 u8 buf[CURVE25519_KEY_SIZE]; in curve25519_compute_shared_secret() 1665 CURVE25519_KEY_SIZE), in curve25519_compute_shared_secret() 1666 public_key, CURVE25519_KEY_SIZE); in curve25519_compute_shared_secret() 1667 if (copied != CURVE25519_KEY_SIZE) in curve25519_compute_shared_secret() 1684 return CURVE25519_KEY_SIZE; in curve25519_max_size() [all …]
|
| /linux-6.15/drivers/crypto/hisilicon/hpre/ |
| H A D | hpre_crypto.c | 1690 u8 secret[CURVE25519_KEY_SIZE] = { 0 }; in hpre_curve25519_fill_curve() 1704 hpre_key_to_big_end(secret, CURVE25519_KEY_SIZE); in hpre_curve25519_fill_curve() 1715 memzero_explicit(secret, CURVE25519_KEY_SIZE); in hpre_curve25519_fill_curve() 1749 if (len != CURVE25519_KEY_SIZE || in hpre_curve25519_set_secret() 1758 ctx->key_sz = CURVE25519_KEY_SIZE; in hpre_curve25519_set_secret() 1759 ret = hpre_curve25519_set_param(ctx, buf, CURVE25519_KEY_SIZE); in hpre_curve25519_set_secret() 1811 hpre_key_to_big_end(sg_virt(areq->dst), CURVE25519_KEY_SIZE); in hpre_curve25519_cb() 1858 for (i = 0; i < CURVE25519_KEY_SIZE - 1; i++) in hpre_curve25519_src_modulo_p() 1871 u8 p[CURVE25519_KEY_SIZE] = { 0 }; in hpre_curve25519_src_init() 1876 if (len != CURVE25519_KEY_SIZE) { in hpre_curve25519_src_init() [all …]
|
| /linux-6.15/drivers/net/wireguard/ |
| H A D | messages.h | 18 NOISE_PUBLIC_KEY_LEN = CURVE25519_KEY_SIZE,
|