Lines Matching refs:TEE_Result

28 TEE_Result crypto_init(void);
31 TEE_Result crypto_hash_alloc_ctx(void **ctx, uint32_t algo);
32 TEE_Result crypto_hash_init(void *ctx);
33 TEE_Result crypto_hash_update(void *ctx, const uint8_t *data, size_t len);
34 TEE_Result crypto_hash_final(void *ctx, uint8_t *digest, size_t len);
39 TEE_Result crypto_cipher_alloc_ctx(void **ctx, uint32_t algo);
40 TEE_Result crypto_cipher_init(void *ctx, TEE_OperationMode mode,
44 TEE_Result crypto_cipher_update(void *ctx, TEE_OperationMode mode,
48 TEE_Result crypto_cipher_get_block_size(uint32_t algo, size_t *size);
53 TEE_Result crypto_mac_alloc_ctx(void **ctx, uint32_t algo);
54 TEE_Result crypto_mac_init(void *ctx, const uint8_t *key, size_t len);
55 TEE_Result crypto_mac_update(void *ctx, const uint8_t *data, size_t len);
56 TEE_Result crypto_mac_final(void *ctx, uint8_t *digest, size_t digest_len);
61 TEE_Result crypto_authenc_alloc_ctx(void **ctx, uint32_t algo);
62 TEE_Result crypto_authenc_init(void *ctx, TEE_OperationMode mode,
67 TEE_Result crypto_authenc_update_aad(void *ctx, TEE_OperationMode mode,
69 TEE_Result crypto_authenc_update_payload(void *ctx, TEE_OperationMode mode,
73 TEE_Result crypto_authenc_enc_final(void *ctx, const uint8_t *src_data,
77 TEE_Result crypto_authenc_dec_final(void *ctx, const uint8_t *src_data,
86 TEE_Result crypto_storage_obj_del(struct tee_obj *obj);
95 TEE_Result crypto_bignum_bin2bn(const uint8_t *from, size_t fromsize,
192 TEE_Result crypto_acipher_alloc_rsa_keypair(struct rsa_keypair *s,
194 TEE_Result crypto_acipher_alloc_rsa_public_key(struct rsa_public_key *s,
198 TEE_Result crypto_acipher_alloc_dsa_keypair(struct dsa_keypair *s,
200 TEE_Result crypto_acipher_alloc_dsa_public_key(struct dsa_public_key *s,
202 TEE_Result crypto_acipher_alloc_dh_keypair(struct dh_keypair *s,
204 TEE_Result crypto_acipher_alloc_ecc_public_key(struct ecc_public_key *s,
207 TEE_Result crypto_acipher_alloc_ecc_keypair(struct ecc_keypair *s,
211 TEE_Result crypto_acipher_alloc_x25519_keypair(struct montgomery_keypair *s,
213 TEE_Result crypto_acipher_alloc_x448_keypair(struct montgomery_keypair *s,
215 TEE_Result crypto_acipher_alloc_ed25519_keypair(struct ed25519_keypair *s,
217 TEE_Result
224 TEE_Result crypto_acipher_gen_rsa_key(struct rsa_keypair *key, size_t key_size);
225 TEE_Result crypto_acipher_gen_dsa_key(struct dsa_keypair *key, size_t key_size);
226 TEE_Result crypto_acipher_gen_dh_key(struct dh_keypair *key, struct bignum *q,
228 TEE_Result crypto_acipher_gen_ecc_key(struct ecc_keypair *key, size_t key_size);
229 TEE_Result crypto_acipher_gen_x25519_key(struct montgomery_keypair *key,
231 TEE_Result crypto_acipher_gen_x448_key(struct montgomery_keypair *key,
233 TEE_Result crypto_acipher_gen_ed25519_key(struct ed25519_keypair *key,
235 TEE_Result crypto_acipher_ed25519_sign(struct ed25519_keypair *key,
238 TEE_Result crypto_acipher_ed25519ctx_sign(struct ed25519_keypair *key,
243 TEE_Result crypto_acipher_ed25519_verify(struct ed25519_public_key *key,
246 TEE_Result crypto_acipher_ed25519ctx_verify(struct ed25519_public_key *key,
252 TEE_Result crypto_acipher_dh_shared_secret(struct dh_keypair *private_key,
256 TEE_Result crypto_acipher_rsanopad_decrypt(struct rsa_keypair *key,
259 TEE_Result crypto_acipher_rsanopad_encrypt(struct rsa_public_key *key,
262 TEE_Result crypto_acipher_rsaes_decrypt(uint32_t algo, struct rsa_keypair *key,
267 TEE_Result crypto_acipher_rsaes_encrypt(uint32_t algo,
274 TEE_Result crypto_acipher_rsassa_sign(uint32_t algo, struct rsa_keypair *key,
278 TEE_Result crypto_acipher_rsassa_verify(uint32_t algo,
283 TEE_Result crypto_acipher_dsa_sign(uint32_t algo, struct dsa_keypair *key,
286 TEE_Result crypto_acipher_dsa_verify(uint32_t algo, struct dsa_public_key *key,
289 TEE_Result crypto_acipher_ecc_sign(uint32_t algo, struct ecc_keypair *key,
292 TEE_Result crypto_acipher_ecc_verify(uint32_t algo, struct ecc_public_key *key,
295 TEE_Result crypto_acipher_ecc_shared_secret(struct ecc_keypair *private_key,
299 TEE_Result crypto_acipher_sm2_pke_decrypt(struct ecc_keypair *key,
302 TEE_Result crypto_acipher_sm2_pke_encrypt(struct ecc_public_key *key,
305 TEE_Result crypto_acipher_x25519_shared_secret(struct montgomery_keypair
309 TEE_Result crypto_acipher_x448_shared_secret(struct montgomery_keypair
328 TEE_Result crypto_acipher_sm2_kep_derive(struct ecc_keypair *my_key,
341 TEE_Result hash_sha256_check(const uint8_t *hash, const uint8_t *data,
352 TEE_Result hash_sha512_256_compute(uint8_t *digest, const uint8_t *data,
376 TEE_Result crypto_rng_init(const void *data, size_t dlen);
402 TEE_Result crypto_rng_read(void *buf, size_t len);
412 TEE_Result crypto_aes_expand_enc_key(const void *key, size_t key_len,