Home
last modified time | relevance | path

Searched refs:SM2_INT_SIZE_BYTES (Results 1 – 6 of 6) sorted by relevance

/optee_os-3.20.0/core/lib/libtomcrypt/
A Dsm2-kep.c19 #define SM2_INT_SIZE_BYTES 32 macro
30 uint8_t buf[SM2_INT_SIZE_BYTES]; in sm2_kep_compute_Z()
110 uint8_t buf[SM2_INT_SIZE_BYTES]; in sm2_kep_compute_S()
139 SM2_INT_SIZE_BYTES); in sm2_kep_compute_S()
146 SM2_INT_SIZE_BYTES); in sm2_kep_compute_S()
153 SM2_INT_SIZE_BYTES); in sm2_kep_compute_S()
160 SM2_INT_SIZE_BYTES); in sm2_kep_compute_S()
257 SM2_INT_SIZE_BYTES / 2); in sm2_kep_derive()
334 SM2_INT_SIZE_BYTES); in sm2_kep_derive()
367 2 * SM2_INT_SIZE_BYTES, in sm2_kep_derive()
[all …]
A Dsm2-pke.c21 #define SM2_INT_SIZE_BYTES 32 macro
32 if (max_size < (size_t)(2 * SM2_INT_SIZE_BYTES)) in sm2_uncompressed_bytes_to_point()
39 ptr += SM2_INT_SIZE_BYTES; in sm2_uncompressed_bytes_to_point()
51 *consumed = 2 * SM2_INT_SIZE_BYTES + 1; /* PC */ in sm2_uncompressed_bytes_to_point()
216 SM2_INT_SIZE_BYTES); in sm2_ltc_pke_decrypt()
279 SM2_INT_SIZE_BYTES); in sm2_ltc_pke_decrypt()
311 size_t sz = 2 * SM2_INT_SIZE_BYTES + 1; in sm2_point_to_bytes()
313 if (xsize > SM2_INT_SIZE_BYTES || ysize > SM2_INT_SIZE_BYTES || in sm2_point_to_bytes()
321 SM2_INT_SIZE_BYTES); in sm2_point_to_bytes()
442 SM2_INT_SIZE_BYTES); in sm2_ltc_pke_encrypt()
[all …]
A Dsm2-dsa.c16 #define SM2_INT_SIZE_BYTES 32 macro
35 if (*sig_len < 2 * SM2_INT_SIZE_BYTES) { in sm2_ltc_dsa_sign()
125 *sig_len = 2 * SM2_INT_SIZE_BYTES; in sm2_ltc_dsa_sign()
127 mp_to_unsigned_bin2(r, sig, SM2_INT_SIZE_BYTES); in sm2_ltc_dsa_sign()
128 mp_to_unsigned_bin2(s, sig + SM2_INT_SIZE_BYTES, SM2_INT_SIZE_BYTES); in sm2_ltc_dsa_sign()
/optee_os-3.20.0/lib/libmbedtls/core/
A Dsm2-kep.c17 #define SM2_INT_SIZE_BYTES 32 macro
175 SM2_INT_SIZE_BYTES); in sm2_kep_compute_S()
186 SM2_INT_SIZE_BYTES); in sm2_kep_compute_S()
197 SM2_INT_SIZE_BYTES); in sm2_kep_compute_S()
208 SM2_INT_SIZE_BYTES); in sm2_kep_compute_S()
339 SM2_INT_SIZE_BYTES); in crypto_acipher_sm2_kep_derive()
375 SM2_INT_SIZE_BYTES); in crypto_acipher_sm2_kep_derive()
380 SM2_INT_SIZE_BYTES / 2); in crypto_acipher_sm2_kep_derive()
425 SM2_INT_SIZE_BYTES); in crypto_acipher_sm2_kep_derive()
460 2 * SM2_INT_SIZE_BYTES, in crypto_acipher_sm2_kep_derive()
[all …]
A Dsm2-pke.c21 #define SM2_INT_SIZE_BYTES 32 macro
31 if (max_size < (size_t)(2 * SM2_INT_SIZE_BYTES)) in sm2_uncompressed_bytes_to_point()
38 ptr += SM2_INT_SIZE_BYTES; in sm2_uncompressed_bytes_to_point()
52 *consumed = 2 * SM2_INT_SIZE_BYTES + 1; /* PC */ in sm2_uncompressed_bytes_to_point()
179 SM2_INT_SIZE_BYTES); in sm2_mbedtls_pke_decrypt()
246 SM2_INT_SIZE_BYTES); in sm2_mbedtls_pke_decrypt()
276 size_t sz = 2 * SM2_INT_SIZE_BYTES + 1; in sm2_point_to_bytes()
279 if (xsize > SM2_INT_SIZE_BYTES || ysize > SM2_INT_SIZE_BYTES || in sm2_point_to_bytes()
289 SM2_INT_SIZE_BYTES); in sm2_point_to_bytes()
375 SM2_INT_SIZE_BYTES); in sm2_mbedtls_pke_encrypt()
[all …]
A Dsm2-dsa.c20 #define SM2_INT_SIZE_BYTES 32 macro
39 if (*sig_len < 2 * SM2_INT_SIZE_BYTES) { in sm2_mbedtls_dsa_sign()
124 *sig_len = 2 * SM2_INT_SIZE_BYTES; in sm2_mbedtls_dsa_sign()
126 mres = mbedtls_mpi_write_binary(&r, sig, SM2_INT_SIZE_BYTES); in sm2_mbedtls_dsa_sign()
129 mres = mbedtls_mpi_write_binary(&s, sig + SM2_INT_SIZE_BYTES, in sm2_mbedtls_dsa_sign()
130 SM2_INT_SIZE_BYTES); in sm2_mbedtls_dsa_sign()

Completed in 8 milliseconds