41 #ifndef __OTE_OPENSSL_H
42 #define __OTE_OPENSSL_H
69 size_t src_len,
void *dst,
size_t *dst_len);
85 const void *src,
size_t src_len,
86 void *dst,
size_t *dst_len);
118 size_t src_size,
void *dst,
size_t *dst_size);
150 const void *src,
size_t src_size,
151 void *dst,
size_t *dst_size);
void openssl_mac_free(te_crypto_operation_t operation)
Free internal allocated memory.
void openssl_aes_free(te_crypto_operation_t operation)
Free AES internal allocated memory.
te_error_t openssl_mac_update(te_crypto_operation_t operation, const void *src, size_t src_size, void *dst, size_t *dst_size)
Perform the actual MAC operation.
Internal data structure for te_crypto_operation_t.
te_error_t openssl_aes_init(te_crypto_operation_t operation)
Initializes crypto operation for AES.
te_error_t openssl_rsa_handle_request(te_crypto_operation_t operation, const void *src, size_t src_size, void *dst, size_t *dst_size)
RSA-OAEP encrypt-decrypt function.
te_error_t openssl_mac_init(te_crypto_operation_t op)
Initialize MAC operation.
void openssl_rsa_free(te_crypto_operation_t operation)
Free RSA internal allocated memory.
NVIDIA Trusted Little Kernel Interface: Error Handling
te_error_t openssl_aes_do_final(te_crypto_operation_t operation, const void *src, size_t src_len, void *dst, size_t *dst_len)
AES do_final with crypto object and supplied parameters.
te_error_t openssl_rsa_init(te_crypto_operation_t op)
Initializes a crypto operation for RSA.
NVIDIA Trusted Little Kernel Interface: Cryptography
te_error_t openssl_aes_update(te_crypto_operation_t operation, const void *src, size_t src_len, void *dst, size_t *dst_len)
AES update with crypto object and supplied parameters.
te_error_t
Defines Open Trusted Environment (OTE) error codes.
te_error_t openssl_rand_bytes(void *buffer, size_t size)
Get random bytes.