Home
last modified time | relevance | path

Searched refs:plen (Results 1 – 11 of 11) sorted by relevance

/optee_os/lib/libmbedtls/mbedtls/include/mbedtls/
H A Dpkcs5.h151 size_t plen, const unsigned char *salt, size_t slen,
175 size_t plen,
/optee_os/lib/libmbedtls/mbedtls/library/
H A Dpkcs5.c270 size_t plen, const unsigned char *salt, size_t slen, in pkcs5_pbkdf2_hmac() argument
292 if ((ret = mbedtls_md_hmac_starts(ctx, password, plen)) != 0) { in pkcs5_pbkdf2_hmac()
360 size_t plen, const unsigned char *salt, size_t slen, in mbedtls_pkcs5_pbkdf2_hmac() argument
364 return pkcs5_pbkdf2_hmac(ctx, password, plen, salt, slen, iteration_count, in mbedtls_pkcs5_pbkdf2_hmac()
371 size_t plen, const unsigned char *salt, size_t slen, in mbedtls_pkcs5_pbkdf2_hmac_ext() argument
389 ret = pkcs5_pbkdf2_hmac(&md_ctx, password, plen, salt, slen, in mbedtls_pkcs5_pbkdf2_hmac_ext()
H A Decp.c701 size_t plen; in mbedtls_ecp_point_write_binary() local
707 plen = mbedtls_mpi_size(&grp->P); in mbedtls_ecp_point_write_binary()
712 *olen = plen; in mbedtls_ecp_point_write_binary()
717 MBEDTLS_MPI_CHK(mbedtls_mpi_write_binary_le(&P->X, buf, plen)); in mbedtls_ecp_point_write_binary()
737 *olen = 2 * plen + 1; in mbedtls_ecp_point_write_binary()
744 MBEDTLS_MPI_CHK(mbedtls_mpi_write_binary(&P->X, buf + 1, plen)); in mbedtls_ecp_point_write_binary()
745 MBEDTLS_MPI_CHK(mbedtls_mpi_write_binary(&P->Y, buf + 1 + plen, plen)); in mbedtls_ecp_point_write_binary()
747 *olen = plen + 1; in mbedtls_ecp_point_write_binary()
754 MBEDTLS_MPI_CHK(mbedtls_mpi_write_binary(&P->X, buf + 1, plen)); in mbedtls_ecp_point_write_binary()
778 size_t plen; in mbedtls_ecp_point_read_binary() local
[all …]
H A Dbignum.c799 size_t n, slen, plen; in mbedtls_mpi_write_file() local
818 plen = strlen(p); in mbedtls_mpi_write_file()
824 if (fwrite(p, 1, plen, fout) != plen || in mbedtls_mpi_write_file()
H A Decp_curves.c4557 const mbedtls_mpi_uint *p, size_t plen, in ecp_group_load() argument
4565 ecp_mpi_load(&grp->P, p, plen); in ecp_group_load()
H A Decp_curves_new.c4525 const mbedtls_mpi_uint *p, size_t plen, in ecp_group_load() argument
4533 ecp_mpi_load(&grp->P, p, plen); in ecp_group_load()
/optee_os/core/lib/libtomcrypt/src/pk/rsa/
H A Drsa_set.c62 int rsa_set_factors(const unsigned char *p, unsigned long plen, in rsa_set_factors() argument
75 …if ((err = mp_read_unsigned_bin(key->p , (unsigned char *)p , plen)) != CRYPT_OK) { goto LBL_ERR; } in rsa_set_factors()
/optee_os/core/lib/libtomcrypt/src/pk/dsa/
H A Ddsa_set.c19 int dsa_set_pqg(const unsigned char *p, unsigned long plen, in dsa_set_pqg() argument
36 … if ((err = mp_read_unsigned_bin(key->p, (unsigned char *)p , plen)) != CRYPT_OK) { goto LBL_ERR; } in dsa_set_pqg()
/optee_os/core/lib/libtomcrypt/src/pk/dh/
H A Ddh_set.c18 int dh_set_pg(const unsigned char *p, unsigned long plen, in dh_set_pg() argument
34 …if ((err = mp_read_unsigned_bin(key->prime, (unsigned char*)p, plen)) != CRYPT_OK) { goto LBL_ERR… in dh_set_pg()
/optee_os/core/arch/arm/kernel/
H A Dboot.c757 int plen; in check_node_compat_prefix() local
760 prop = fdt_getprop(dt->blob, offs, "compatible", &plen); in check_node_compat_prefix()
764 while (plen > 0) { in check_node_compat_prefix()
770 plen -= l; in check_node_compat_prefix()
/optee_os/core/lib/libtomcrypt/src/headers/
H A Dtomcrypt_pk.h117 int rsa_set_factors(const unsigned char *p, unsigned long plen,
142 int dh_set_pg(const unsigned char *p, unsigned long plen,
443 int dsa_set_pqg(const unsigned char *p, unsigned long plen,