TLK services SSL 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...
|
|
AES do_final
with crypto object and supplied parameters.
Called by operation->do_final(operation, ...)
- Parameters
-
[in] | operation | Crypto operation object |
[in] | src | NULL expected |
[in] | src_len | Zero expected |
[out] | dst | Destination buffer |
[out] | dst_len | Output length |
- Returns
- OTE_SUCCESS on success.
Free AES internal allocated memory.
Called by operation->free(operation, ...)
- Parameters
-
[in] | operation | Crypto operation object. |
Initializes crypto operation for AES.
- Parameters
-
[in,out] | operation | Crypto operation object |
- Return values
-
AES update with crypto object and supplied parameters.
Called by operation->update(operation, ...)
- Parameters
-
[in] | operation | Crypto operation object |
[in] | src | Source buffer |
[in] | src_len | Source buffer length |
[out] | dst | Destination buffer |
[out] | dst_len | Output length |
- Returns
- OTE_SUCCESS on success.
Free internal allocated memory.
Called by operation->free(operation, ...)
- Parameters
-
[in] | operation | Crypto operation object. |
Initialize MAC operation.
Return OTE_SUCCESS on success.
- Parameters
-
[in] | op | Crypto operation object |
Perform the actual MAC operation.
Called by operation->update(operation, ...)
Return OTE_SUCCESS on success.
- Parameters
-
[in] | operation | Crypto operation object |
[in] | src | Source buffer |
[in] | src_size | Source buffer length |
[out] | dst | Destination buffer |
[out] | dst_size | Output length |
te_error_t openssl_rand_bytes |
( |
void * |
buffer, |
|
|
size_t |
size |
|
) |
| |
Get random bytes.
- Parameters
-
[in] | buffer | input buffer. |
[in] | size | input buffer size. |
Free RSA internal allocated memory.
Called by operation->free(operation, ...)
- Parameters
-
[in] | operation | Crypto operation object. |
RSA-OAEP encrypt-decrypt function.
Called by operation->handle_req(operation, ...)
- Parameters
-
[in] | operation | Object of the crypto operation. |
[in] | src | A pointer to the source buffer. |
[in] | src_size | Size of the source buffer. |
[out] | dst | A pointer to the destination buffer. |
[out] | dst_size | A pointer to the length of data in the destination buffer. |
- Returns
- OTE_SUCCESS on success.
Initializes a crypto operation for RSA.
- Parameters
-
[in,out] | op | The object of the crypto operation. |
- Return values
-