Home
last modified time | relevance | path

Searched refs:secret_len (Results 1 – 12 of 12) sorted by relevance

/optee_os-3.20.0/core/lib/libtomcrypt/
A Dx25519.c72 unsigned long *secret_len) in crypto_acipher_x25519_shared_secret() argument
83 if (!private_key || !public_key || !secret || !secret_len) in crypto_acipher_x25519_shared_secret()
93 secret, secret_len) != CRYPT_OK) in crypto_acipher_x25519_shared_secret()
103 if (*secret_len != X25519_KEY_SIZE_BYTES || in crypto_acipher_x25519_shared_secret()
A Decc.c323 unsigned long *secret_len) in _ltc_ecc_shared_secret() argument
345 secret, secret_len); in _ltc_ecc_shared_secret()
/optee_os-3.20.0/core/drivers/crypto/crypto_api/acipher/
A Decc.c286 void *secret, unsigned long *secret_len) in ecc_shared_secret() argument
294 if (!private_key || !public_key || !secret_len) { in ecc_shared_secret()
309 if (*secret_len < size_bytes) { in ecc_shared_secret()
310 *secret_len = size_bytes; in ecc_shared_secret()
328 sdata.secret.length = *secret_len; in ecc_shared_secret()
333 *secret_len = sdata.secret.length; in ecc_shared_secret()
/optee_os-3.20.0/core/lib/libtomcrypt/src/misc/bcrypt/
A Dbcrypt.c75 int bcrypt_pbkdf_openbsd(const void *secret, unsigned long secret_len, in bcrypt_pbkdf_openbsd() argument
91 if ((secret_len == 0) || (salt_len == 0) || (*outlen == 0)) { in bcrypt_pbkdf_openbsd()
124 …if ((err = hash_memory(hash_idx, (unsigned char*)secret, secret_len, hashed_pass, &hashed_pass_len… in bcrypt_pbkdf_openbsd()
/optee_os-3.20.0/core/drivers/crypto/se050/core/
A Decc.c401 void *secret, size_t *secret_len) in shared_secret_fallback() argument
417 secret, (unsigned long *)secret_len); in shared_secret_fallback()
447 void *secret, size_t *secret_len) in shared_secret() argument
466 secret, secret_len); in shared_secret()
496 secret, secret_len); in shared_secret()
/optee_os-3.20.0/lib/libmbedtls/core/
A Decc.c354 void *secret, unsigned long *secret_len) in ecc_shared_secret() argument
379 *secret_len, mbd_rand, NULL); in ecc_shared_secret()
384 *secret_len = out_len; in ecc_shared_secret()
/optee_os-3.20.0/core/lib/libtomcrypt/src/headers/
A Dtomcrypt_misc.h57 int bcrypt_pbkdf_openbsd(const void *secret, unsigned long secret_len,
/optee_os-3.20.0/core/include/crypto/
A Dcrypto.h284 unsigned long *secret_len);
294 unsigned long *secret_len);
A Dcrypto_impl.h358 void *secret, unsigned long *secret_len);
/optee_os-3.20.0/core/drivers/crypto/versal/
A Decc.c334 void *secret, size_t *secret_len) in shared_secret() argument
337 secret, secret_len); in shared_secret()
/optee_os-3.20.0/core/crypto/
A Dcrypto.c757 unsigned long *secret_len) in crypto_acipher_ecc_shared_secret() argument
765 secret_len); in crypto_acipher_ecc_shared_secret()
825 *secret_len __unused) in crypto_acipher_x25519_shared_secret()
/optee_os-3.20.0/lib/libmbedtls/mbedtls/library/
A Decp.c173 const mbedtls_mpi *secret, size_t secret_len ) in ecp_drbg_seed() argument
181 if( secret_len > MBEDTLS_ECP_MAX_BYTES ) in ecp_drbg_seed()
188 secret_bytes, secret_len ) ); in ecp_drbg_seed()
190 ret = mbedtls_hmac_drbg_seed_buf( ctx, md_info, secret_bytes, secret_len ); in ecp_drbg_seed()
193 mbedtls_platform_zeroize( secret_bytes, secret_len ); in ecp_drbg_seed()
238 const mbedtls_mpi *secret, size_t secret_len ) in ecp_drbg_seed() argument
243 if( secret_len > MBEDTLS_ECP_MAX_BYTES ) in ecp_drbg_seed()
250 secret_bytes, secret_len ) ); in ecp_drbg_seed()
253 secret_bytes, secret_len ); in ecp_drbg_seed()
256 mbedtls_platform_zeroize( secret_bytes, secret_len ); in ecp_drbg_seed()

Completed in 20 milliseconds