Home
last modified time | relevance | path

Searched refs:MBEDTLS_X25519_KEY_SIZE_BYTES (Results 1 – 2 of 2) sorted by relevance

/mbedtls-3.6.0/3rdparty/everest/library/
Dx25519.c55 mbedtls_platform_zeroize( ctx->our_secret, MBEDTLS_X25519_KEY_SIZE_BYTES ); in mbedtls_x25519_free()
56 mbedtls_platform_zeroize( ctx->peer_point, MBEDTLS_X25519_KEY_SIZE_BYTES ); in mbedtls_x25519_free()
66 uint8_t base[MBEDTLS_X25519_KEY_SIZE_BYTES] = {0}; in mbedtls_x25519_make_params()
68 if( ( ret = f_rng( p_rng, ctx->our_secret, MBEDTLS_X25519_KEY_SIZE_BYTES ) ) != 0 ) in mbedtls_x25519_make_params()
71 *olen = MBEDTLS_X25519_KEY_SIZE_BYTES + 4; in mbedtls_x25519_make_params()
78 *buf++ = MBEDTLS_X25519_KEY_SIZE_BYTES; in mbedtls_x25519_make_params()
84 if( memcmp( buf, base, MBEDTLS_X25519_KEY_SIZE_BYTES) == 0 ) in mbedtls_x25519_make_params()
93 if( end - *buf < MBEDTLS_X25519_KEY_SIZE_BYTES + 1 ) in mbedtls_x25519_read_params()
96 if( ( *(*buf)++ != MBEDTLS_X25519_KEY_SIZE_BYTES ) ) in mbedtls_x25519_read_params()
99 memcpy( ctx->peer_point, *buf, MBEDTLS_X25519_KEY_SIZE_BYTES ); in mbedtls_x25519_read_params()
[all …]
/mbedtls-3.6.0/3rdparty/everest/include/everest/
Dx25519.h30 #define MBEDTLS_X25519_KEY_SIZE_BYTES 32 macro
46 unsigned char our_secret[MBEDTLS_X25519_KEY_SIZE_BYTES];
47 unsigned char peer_point[MBEDTLS_X25519_KEY_SIZE_BYTES];