Lines Matching refs:in_len
42 int32_t csi_tee_aes_encrypt(const uint8_t *in, uint32_t in_len,
60 int32_t csi_tee_aes_decrypt(const uint8_t *in, uint32_t in_len,
77 #define csi_tee_aes_encrypt_ecb(in, in_len, key, key_len, out) \ argument
78 csi_tee_aes_encrypt(in, in_len, key, key_len, NULL, out, TEE_AES_MODE_ECB)
91 #define csi_tee_aes_decrypt_ecb(in, in_len, key, key_len, out) \ argument
92 csi_tee_aes_decrypt(in, in_len, key, key_len, NULL, out, TEE_AES_MODE_ECB)
105 #define csi_tee_aes_encrypt_cbc(in, in_len, key, key_len, iv, out) \ argument
106 csi_tee_aes_encrypt(in, in_len, key, key_len, iv, out, TEE_AES_MODE_CBC)
119 #define csi_tee_aes_decrypt_cbc(in, in_len, key, key_len, iv, out) \ argument
120 csi_tee_aes_decrypt(in, in_len, key, key_len, iv, out, TEE_AES_MODE_CBC)
132 int32_t csi_tee_base64(const uint8_t *in, uint32_t in_len,
145 #define csi_tee_base64_encode(in,in_len,out,out_len) \ argument
146 csi_tee_base64(in,in_len,out,out_len,1,0)
156 #define csi_tee_base64_decode(in,in_len,out,out_len) \ argument
157 csi_tee_base64(in,in_len,out,out_len,0,0)
167 #define csi_tee_base64_websafe_encode(in,in_len,out,out_len) \ argument
168 csi_tee_base64(in,in_len,out,out_len,1,1)
178 #define csi_tee_base64_websafe_decode(in,in_len,out,out_len) \ argument
179 csi_tee_base64(in,in_len,out,out_len,0,1)
285 int32_t csi_tee_rsa_sign(const uint8_t *in, uint32_t in_len,
301 int32_t csi_tee_rsa_verify(const uint8_t *in, uint32_t in_len,
323 int32_t csi_tee_rsa_encrypt(const uint8_t *in, uint32_t in_len,
338 int32_t csi_tee_rsa_decrypt(const uint8_t *in, uint32_t in_len,
353 #define csi_tee_cid_rsa_sign(in,in_len,sign,sign_len,type) \ argument
354 csi_tee_rsa_sign(in,in_len,NULL,0,sign,sign_len,type)
366 #define csi_tee_cid_rsa_verify(in,in_len,sign,sign_len,type) \ argument
367 csi_tee_rsa_verify(in,in_len,NULL,0,sign,sign_len,type)
379 #define csi_tee_cid_rsa_encrypt(in,in_len,out,out_len,padding) \ argument
380 csi_tee_rsa_encrypt(in,in_len,NULL,0,out,out_len,padding)
394 #define csi_tee_cid_rsa_decrypt(in,in_len,out,out_len,padding) \ argument
395 csi_tee_rsa_decrypt(in,in_len,NULL,0,out,out_len,padding)
407 int32_t csi_tee_img_rsa_verify(const uint8_t *in, uint32_t in_len,
439 int32_t csi_tee_hmac(const uint8_t *in, uint32_t in_len,
457 #define csi_tee_hmac_digest(in,in_len,key,key_len,out,type) \ argument
458 csi_tee_hmac(in,in_len,key,key_len,out,type,TEE_HASH_OP_NONE,NULL)
482 int32_t csi_tee_sha(const uint8_t *in, uint32_t in_len,
497 #define csi_tee_sha_digest(in,in_len,out,type) \ argument
498 csi_tee_sha(in,in_len,out,type,TEE_HASH_OP_NONE,NULL);
516 #define csi_tee_sha_update(in,in_len,ctx) \ argument
517 csi_tee_sha(in,in_len,NULL,0,TEE_HASH_OP_UPDATA,ctx);
556 int32_t csi_tee_dev_info_sign(const uint8_t *in, uint32_t in_len,
569 int32_t csi_tee_dev_info_crypt(const uint8_t *in, uint32_t in_len,
581 #define csi_tee_dev_info_encrypt(in, in_len, out, out_len) \ argument
582 csi_tee_dev_info_crypt(in, in_len, out, out_len, 1)
592 #define csi_tee_dev_info_decrypt(in, in_len, out, out_len) \ argument
593 csi_tee_dev_info_crypt(in, in_len, out, out_len, 0)