LibLogicalAccess  2.5.0
An Open Source RFID Library
Loading...
Searching...
No Matches
Functions
crypt_find_cipher_any.cpp File Reference
#include <logicalaccess/plugins/crypto/tomcrypt.h>

Functions

int find_cipher_any (const char *name, int blocklen, int keylen)
 

Function Documentation

◆ 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
nameThe name of the cipher desired
blocklenThe minimum length of the block cipher desired (octets)
keylenThe minimum length of the key size desired (octets)
Returns
>= 0 if found, -1 if not present