/optee_os/lib/libmbedtls/core/ |
A D | sm2-pke.c | 111 size_t src_len, uint8_t *dst, in sm2_mbedtls_pke_decrypt() argument 188 if (src_len <= C1_len + TEE_SM3_HASH_SIZE) { in sm2_mbedtls_pke_decrypt() 193 C2_len = src_len - C1_len - TEE_SM3_HASH_SIZE; in sm2_mbedtls_pke_decrypt() 303 const uint8_t *src, size_t src_len, in sm2_mbedtls_pke_encrypt() argument 383 t = calloc(1, src_len); in sm2_mbedtls_pke_encrypt() 389 res = sm2_kdf(x2y2, sizeof(x2y2), t, src_len); in sm2_mbedtls_pke_encrypt() 393 if (is_zero(t, src_len)) { in sm2_mbedtls_pke_encrypt() 412 *dst_len = C1_len + src_len + TEE_SM3_HASH_SIZE; in sm2_mbedtls_pke_encrypt() 418 for (i = 0; i < src_len; i++) in sm2_mbedtls_pke_encrypt() 431 res = crypto_hash_update(ctx, src, src_len); in sm2_mbedtls_pke_encrypt() [all …]
|
A D | rsa.c | 243 const uint8_t *src, size_t src_len, in crypto_acipher_rsanopad_encrypt() argument 269 memcpy(buf + rsa.len - src_len, src, src_len); in crypto_acipher_rsanopad_encrypt() 301 const uint8_t *src, size_t src_len, in crypto_acipher_rsanopad_decrypt() argument 322 memcpy(buf + rsa.len - src_len, src, src_len); in crypto_acipher_rsanopad_decrypt() 353 const uint8_t *src, size_t src_len, in crypto_acipher_rsaes_decrypt() argument 380 blen = src_len; in crypto_acipher_rsaes_decrypt() 411 lmd_res = pk_info->decrypt_func(&rsa, src, src_len, buf, &blen, in crypto_acipher_rsaes_decrypt() 414 lmd_res = pk_info->decrypt_func(&rsa, src, src_len, buf, &blen, in crypto_acipher_rsaes_decrypt() 442 const uint8_t *src, size_t src_len, in crypto_acipher_rsaes_encrypt() argument 493 lmd_res = pk_info->encrypt_func(&rsa, src, src_len, dst, dst_len, in crypto_acipher_rsaes_encrypt()
|
A D | sm2-pke.h | 13 const uint8_t *src, size_t src_len, 17 size_t src_len, uint8_t *dst,
|
/optee_os/core/crypto/ |
A D | crypto.c | 394 size_t src_len, uint8_t *dst_data, in crypto_authenc_update_payload() argument 397 if (*dst_len < src_len) in crypto_authenc_update_payload() 399 *dst_len = src_len; in crypto_authenc_update_payload() 410 if (*dst_len < src_len) in crypto_authenc_enc_final() 412 *dst_len = src_len; in crypto_authenc_enc_final() 423 if (*dst_len < src_len) in crypto_authenc_dec_final() 425 *dst_len = src_len; in crypto_authenc_dec_final() 548 size_t src_len __unused, in crypto_acipher_rsanopad_decrypt() 557 size_t src_len __unused, in crypto_acipher_rsanopad_encrypt() 569 size_t src_len __unused, in crypto_acipher_rsaes_decrypt() [all …]
|
/optee_os/core/lib/libtomcrypt/ |
A D | sm2-pke.c | 109 size_t src_len, uint8_t *dst, size_t *dst_len) in sm2_ltc_pke_decrypt() argument 220 if (src_len <= C1_len + TEE_SM3_HASH_SIZE) { in sm2_ltc_pke_decrypt() 225 C2_len = src_len - C1_len - TEE_SM3_HASH_SIZE; in sm2_ltc_pke_decrypt() 445 t = calloc(1, src_len); in sm2_ltc_pke_encrypt() 451 res = sm2_kdf(x2y2, sizeof(x2y2), t, src_len); in sm2_ltc_pke_encrypt() 455 if (is_zero(t, src_len)) { in sm2_ltc_pke_encrypt() 473 if (*dst_len < C1_len + src_len + TEE_SM3_HASH_SIZE) { in sm2_ltc_pke_encrypt() 474 *dst_len = C1_len + src_len + TEE_SM3_HASH_SIZE; in sm2_ltc_pke_encrypt() 480 for (i = 0; i < src_len; i++) in sm2_ltc_pke_encrypt() 493 res = crypto_hash_update(ctx, src, src_len); in sm2_ltc_pke_encrypt() [all …]
|
A D | acipher_helpers.h | 82 size_t src_len, uint8_t *dst, size_t *dst_len); 85 size_t src_len, uint8_t *dst, size_t *dst_len); 90 size_t src_len __unused, in sm2_ltc_pke_decrypt() 99 const uint8_t *src __unused, size_t src_len __unused, in sm2_ltc_pke_encrypt()
|
A D | rsa.c | 181 size_t src_len, uint8_t *dst, size_t *dst_len) in rsadorep() argument 200 ltc_res = rsa_exptmod(src, src_len, buf, &blen, ltc_key->type, in rsadorep() 242 const uint8_t *src, size_t src_len, in crypto_acipher_rsanopad_encrypt() argument 252 res = rsadorep(<c_key, src, src_len, dst, dst_len); in crypto_acipher_rsanopad_encrypt() 257 const uint8_t *src, size_t src_len, in crypto_acipher_rsanopad_decrypt() argument 275 res = rsadorep(<c_key, src, src_len, dst, dst_len); in crypto_acipher_rsanopad_decrypt() 281 const uint8_t *src, size_t src_len, in crypto_acipher_rsaes_decrypt() argument 321 blen = src_len; in crypto_acipher_rsaes_decrypt() 331 ltc_res = rsa_decrypt_key_ex(src, src_len, buf, &blen, in crypto_acipher_rsaes_decrypt() 378 const uint8_t *src, size_t src_len, in crypto_acipher_rsaes_encrypt() argument [all …]
|
/optee_os/core/include/tee/ |
A D | tee_svc_cryp.h | 50 size_t src_len, void *dest, uint64_t *dest_len); 52 size_t src_len, void *dest, uint64_t *dest_len); 66 const void *src_data, size_t src_len, void *dest_data, 69 const void *src_data, size_t src_len, void *dest_data, 72 const void *src_data, size_t src_len, void *dest_data, 78 size_t src_len, void *dest_data, uint64_t *dest_len);
|
/optee_os/core/include/crypto/ |
A D | crypto.h | 70 size_t src_len, uint8_t *dst_data, 73 size_t src_len, uint8_t *dst_data, 77 size_t src_len, uint8_t *dst_data, 209 const uint8_t *src, size_t src_len, 212 const uint8_t *src, size_t src_len, 216 const uint8_t *src, size_t src_len, 221 const uint8_t *src, size_t src_len, 250 const uint8_t *src, size_t src_len, 253 const uint8_t *src, size_t src_len,
|
A D | crypto_se.h | 37 uint8_t *src_data, size_t src_len,
|
A D | crypto_impl.h | 332 size_t src_len, uint8_t *dst, size_t *dst_len); 354 size_t src_len, uint8_t *dst, size_t *dst_len);
|
/optee_os/core/drivers/ |
A D | zynqmp_csu_aes.c | 278 TEE_Result zynqmp_csu_aes_decrypt_data(const void *src, size_t src_len, in zynqmp_csu_aes_decrypt_data() argument 291 if (src_len % 4 || dst_len != src_len) { in zynqmp_csu_aes_decrypt_data() 317 ret = aes_transfer_dec(src, dst, src_len, tag, iv); in zynqmp_csu_aes_decrypt_data() 330 TEE_Result zynqmp_csu_aes_encrypt_data(const void *src, size_t src_len, in zynqmp_csu_aes_encrypt_data() argument 343 if (src_len % 4 || dst_len != ZYNQMP_CSU_AES_DST_LEN(src_len)) { in zynqmp_csu_aes_encrypt_data()
|
/optee_os/out/arm/export-ta_arm64/host_include/ |
A D | utee_syscalls.h | 100 size_t src_len, void *dest, uint64_t *dest_len); 102 size_t src_len, void *dest, uint64_t *dest_len); 140 const void *src_data, size_t src_len, 143 size_t src_len, void *dest_data, 147 size_t src_len, void *dest_data, 154 size_t src_len, void *dest_data,
|
/optee_os/out/arm/export-ta_arm64/include/ |
A D | utee_syscalls.h | 100 size_t src_len, void *dest, uint64_t *dest_len); 102 size_t src_len, void *dest, uint64_t *dest_len); 140 const void *src_data, size_t src_len, 143 size_t src_len, void *dest_data, 147 size_t src_len, void *dest_data, 154 size_t src_len, void *dest_data,
|
/optee_os/lib/libutee/include/ |
A D | utee_syscalls.h | 100 size_t src_len, void *dest, uint64_t *dest_len); 102 size_t src_len, void *dest, uint64_t *dest_len); 140 const void *src_data, size_t src_len, 143 size_t src_len, void *dest_data, 147 size_t src_len, void *dest_data, 154 size_t src_len, void *dest_data,
|
/optee_os/out/arm/export-ta_arm32/host_include/ |
A D | utee_syscalls.h | 100 size_t src_len, void *dest, uint64_t *dest_len); 102 size_t src_len, void *dest, uint64_t *dest_len); 140 const void *src_data, size_t src_len, 143 size_t src_len, void *dest_data, 147 size_t src_len, void *dest_data, 154 size_t src_len, void *dest_data,
|
/optee_os/out/arm/export-ta_arm32/include/ |
A D | utee_syscalls.h | 100 size_t src_len, void *dest, uint64_t *dest_len); 102 size_t src_len, void *dest, uint64_t *dest_len); 140 const void *src_data, size_t src_len, 143 size_t src_len, void *dest_data, 147 size_t src_len, void *dest_data, 154 size_t src_len, void *dest_data,
|
/optee_os/core/drivers/crypto/se050/core/ |
A D | apdu.c | 14 uint8_t *src_data, size_t src_len, in crypto_se_do_apdu() argument 20 hdr, hdr_len, src_data, src_len, in crypto_se_do_apdu()
|
A D | rsa.c | 189 const uint8_t *src, size_t src_len, in decrypt_es() argument 197 size_t buf_len = src_len; in decrypt_es() 219 st = sss_se05x_asymmetric_decrypt(&ctx, src, src_len, buf, &buf_len); in decrypt_es() 244 const uint8_t *src, size_t src_len, in encrypt_es() argument 268 st = sss_se05x_asymmetric_encrypt(&ctx, src, src_len, dst, dst_len); in encrypt_es() 279 size_t src_len, uint8_t *dst, size_t *dst_len) in decrypt_nopad() argument 311 memcpy(buf + rsa_len - src_len, src, src_len); in decrypt_nopad() 343 size_t src_len, uint8_t *dst, size_t *dst_len) in encrypt_nopad() argument 373 memcpy(buf + rsa_len - src_len, src, src_len); in encrypt_nopad()
|
/optee_os/core/include/drivers/ |
A D | zynqmp_csu_aes.h | 26 TEE_Result zynqmp_csu_aes_encrypt_data(const void *src, size_t src_len, 32 TEE_Result zynqmp_csu_aes_decrypt_data(const void *src, size_t src_len,
|
/optee_os/core/tee/ |
A D | tee_svc_cryp.c | 2607 (uaddr_t)src, src_len); in tee_svc_cipher_update_helper() 2628 if (dlen < src_len) { in tee_svc_cipher_update_helper() 2633 if (src_len > 0) { in tee_svc_cipher_update_helper() 3326 if (dlen < src_len) { in syscall_authenc_update_payload() 3392 if (dlen < src_len) { in syscall_authenc_enc_final() 3476 if (dlen < src_len) { in syscall_authenc_dec_final() 3585 src_len, dst_data, in syscall_asymm_operate() 3589 src_len, dst_data, in syscall_asymm_operate() 3603 src_len, dst_data, in syscall_asymm_operate() 3607 src_len, dst_data, in syscall_asymm_operate() [all …]
|
/optee_os/lib/libutee/ |
A D | tee_api_operations.c | 874 const void *src_data, size_t src_len, in tee_buffer_update() argument 879 size_t slen = src_len; in tee_buffer_update()
|