Data Accelerator Offload
Loading...
Searching...
No Matches
Data Structures | Macros | Typedefs | Enumerations
dao_netlink_crypto.h File Reference

Go to the source code of this file.

Data Structures

struct  dao_netlink_crypto_key
 

Macros

#define dao_netlink_foreach_crypto_cipher_algorithm
 
#define dao_netlink_foreach_crypto_cipher_aead_algorithm
 

Typedefs

typedef struct dao_netlink_crypto_key dao_netlink_crypto_key_t
 

Enumerations

enum  dao_netlink_crypto_algo_t
 

Detailed Description

DAO Netlink crypto file (required for netlink-xfrm)

Contains macros for LINUX supported crypto algorithms with various crypto key attributes like: algo_name, key_lenght, block_size, hmac details, ivlen etc

Definition in file dao_netlink_crypto.h.

Macro Definition Documentation

◆ dao_netlink_foreach_crypto_cipher_algorithm

#define dao_netlink_foreach_crypto_cipher_algorithm
Value:
_(CIPHER_NULL, 0, 0, 0, 0, "ecb(cipher_null)", "ecb-cipher-null") \
_(CIPHER_DES_CBC, 56, 8, 8, 8, "cbc(des)", "des-cbc") \
_(CIPHER_3DES_CBC, 192, 24, 8, 8, "cbc(des3-cede)", "3des-cbc") \
_(CIPHER_AES_CBC, 128, 16, 16, 16, "cbc(aes)", "aes-cbc-128") \
_(CIPHER_AES_CBC, 192, 24, 16, 16, "cbc(aes)", "aes-cbc-192") \
_(CIPHER_AES_CBC, 256, 32, 16, 16, "cbc(aes)", "aes-cbc-256") \
_(CIPHER_AES_CTR, 128, 16, 16, 16, "ctr(aes)", "aes-ctr-128") \
_(CIPHER_AES_CTR, 192, 24, 16, 16, "ctr(aes)", "aes-ctr-192") \
_(CIPHER_AES_CTR, 256, 32, 16, 16, "ctr(aes)", "aes-ctr-256")

Cipher algorithms _(ALGO, KeylenBits, KeylenBytes, IVLEN, BLKSZ, LINUX_ALG_NAME, "PRETTY_NAME")

Definition at line 23 of file dao_netlink_crypto.h.

◆ dao_netlink_foreach_crypto_cipher_aead_algorithm

#define dao_netlink_foreach_crypto_cipher_aead_algorithm
Value:
_(AEAD_AES_GCM, 128, 16, 12/*TODO*/, 16, 8, "rfc4106(gcm(aes))", "aes-gcm-128-aad8") \
_(AEAD_AES_GCM, 192, 24, 12, 16, 8, "rfc4106(gcm(aes))", "aes-gcm-19-aad8") \
_(AEAD_AES_GCM, 256, 32, 12, 16, 8, "rfc4106(gcm(aes))", "aes-gcm-256-aad8") \
_(AEAD_CHACHA20_POLY1305, 256, 32, 12, 16, 8, \
"rfc7539esp(chacha20,poly1305)", "chacha20-poly1305-aad8")

AEAD algorithms

_(ALGO, KeylenBits, KeylenBytes, IVLEN, DIGEST, AADLEN, "LINUX_ALG_NAME", "PRETTY_NAME")

Definition at line 39 of file dao_netlink_crypto.h.

Typedef Documentation

◆ dao_netlink_crypto_key_t

Object representing crypto key

Enumeration Type Documentation

◆ dao_netlink_crypto_algo_t

Crypto Algorithm macros DAO_CRYPTO_XXX

Definition at line 65 of file dao_netlink_crypto.h.