NVIDIA DRIVE OS Linux API Reference

5.1.0.2 Release

 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages

Detailed Description

TLK services SSL functions.

Functions

te_error_t openssl_aes_init (te_crypto_operation_t operation)
 Initializes crypto operation for AES. More...
 
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. More...
 
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. More...
 
void openssl_aes_free (te_crypto_operation_t operation)
 Free AES internal allocated memory. More...
 
te_error_t openssl_mac_init (te_crypto_operation_t op)
 Initialize MAC operation. More...
 
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. More...
 
void openssl_mac_free (te_crypto_operation_t operation)
 Free internal allocated memory. More...
 
te_error_t openssl_rsa_init (te_crypto_operation_t op)
 Initializes a crypto operation for RSA. More...
 
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. More...
 
void openssl_rsa_free (te_crypto_operation_t operation)
 Free RSA internal allocated memory. More...
 
te_error_t openssl_rand_bytes (void *buffer, size_t size)
 Get random bytes. More...
 

Function Documentation

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.

Called by operation->do_final(operation, ...)

Parameters
[in]operationCrypto operation object
[in]srcNULL expected
[in]src_lenZero expected
[out]dstDestination buffer
[out]dst_lenOutput length
Returns
OTE_SUCCESS on success.
void openssl_aes_free ( te_crypto_operation_t  operation)

Free AES internal allocated memory.

Called by operation->free(operation, ...)

Parameters
[in]operationCrypto operation object.
te_error_t openssl_aes_init ( te_crypto_operation_t  operation)

Initializes crypto operation for AES.

Parameters
[in,out]operationCrypto operation object
Return values
OTE_SUCCESSon success.
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.

Called by operation->update(operation, ...)

Parameters
[in]operationCrypto operation object
[in]srcSource buffer
[in]src_lenSource buffer length
[out]dstDestination buffer
[out]dst_lenOutput length
Returns
OTE_SUCCESS on success.
void openssl_mac_free ( te_crypto_operation_t  operation)

Free internal allocated memory.

Called by operation->free(operation, ...)

Parameters
[in]operationCrypto operation object.
te_error_t openssl_mac_init ( te_crypto_operation_t  op)

Initialize MAC operation.

Return OTE_SUCCESS on success.

Parameters
[in]opCrypto operation object
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.

Called by operation->update(operation, ...)

Return OTE_SUCCESS on success.

Parameters
[in]operationCrypto operation object
[in]srcSource buffer
[in]src_sizeSource buffer length
[out]dstDestination buffer
[out]dst_sizeOutput length
te_error_t openssl_rand_bytes ( void *  buffer,
size_t  size 
)

Get random bytes.

Parameters
[in]bufferinput buffer.
[in]sizeinput buffer size.
void openssl_rsa_free ( te_crypto_operation_t  operation)

Free RSA internal allocated memory.

Called by operation->free(operation, ...)

Parameters
[in]operationCrypto operation object.
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.

Called by operation->handle_req(operation, ...)

Parameters
[in]operationObject of the crypto operation.
[in]srcA pointer to the source buffer.
[in]src_sizeSize of the source buffer.
[out]dstA pointer to the destination buffer.
[out]dst_sizeA pointer to the length of data in the destination buffer.
Returns
OTE_SUCCESS on success.
te_error_t openssl_rsa_init ( te_crypto_operation_t  op)

Initializes a crypto operation for RSA.

Parameters
[in,out]opThe object of the crypto operation.
Return values
OTE_SUCCESSon success.