#include "logicalaccess/plugins/crypto/lla_crypto_api.hpp"
Go to the source code of this file.
◆ symmetric_key
◆ cipher_is_valid()
LLA_CRYPTO_API int cipher_is_valid |
( |
int |
idx | ) |
|
◆ find_cipher()
LLA_CRYPTO_API int find_cipher |
( |
const char * |
name | ) |
|
Find a registered cipher by name
- Parameters
-
name | The name of the cipher to look for |
- Returns
- >= 0 if found, -1 if not present
◆ find_cipher_any()
int find_cipher_any |
( |
const char * |
name, |
|
|
int |
blocklen, |
|
|
int |
keylen |
|
) |
| |
Find a cipher flexibly. First by name then if not present by block and key size
- Parameters
-
name | The name of the cipher desired |
blocklen | The minimum length of the block cipher desired (octets) |
keylen | The minimum length of the key size desired (octets) |
- Returns
- >= 0 if found, -1 if not present
◆ find_cipher_id()
int find_cipher_id |
( |
unsigned char |
ID | ) |
|
Find a cipher by ID number
- Parameters
-
ID | The ID (not same as index) of the cipher to find |
- Returns
- >= 0 if found, -1 if not present
◆ register_cipher()
Register a cipher with the descriptor table
- Parameters
-
cipher | The cipher you wish to register |
- Returns
- value >= 0 if successfully added (or already present), -1 if unsuccessful
◆ unregister_cipher()
Unregister a cipher from the descriptor table
- Parameters
-
cipher | The cipher descriptor to remove |
- Returns
- CRYPT_OK on success
◆ cipher_descriptor