SshEncryptionEngine Struct Reference

Encryption engine. More...

#include <ssh.h>

Data Fields

CipherMode cipherMode
 Cipher mode of operation. More...
 
const CipherAlgocipherAlgo
 Cipher algorithm. More...
 
CipherContext cipherContext
 Cipher context. More...
 
const HashAlgohashAlgo
 Hash algorithm for MAC operations. More...
 
HmacContexthmacContext
 HMAC context. More...
 
size_t macSize
 Size of the MAC tag, in bytes. More...
 
bool_t etm
 Encrypt-then-MAC. More...
 
uint8_t iv [SSH_MAX_CIPHER_BLOCK_SIZE]
 Initialization vector. More...
 
uint8_t encKey [SSH_MAX_ENC_KEY_SIZE]
 Encryption key. More...
 
size_t encKeyLen
 Length of the encryption key, in bytes. More...
 
uint8_t macKey [SSH_MAX_HASH_DIGEST_SIZE]
 Integrity key. More...
 
uint8_t seqNum [4]
 Sequence number. More...
 
GcmContext gcmContext
 GCM context. More...
 
uint8_t aad [4]
 Additional authenticated data. More...
 

Detailed Description

Encryption engine.

Definition at line 1315 of file ssh.h.

Field Documentation

◆ aad

uint8_t aad[4]

Additional authenticated data.

Definition at line 1333 of file ssh.h.

◆ cipherAlgo

const CipherAlgo* cipherAlgo

Cipher algorithm.

Definition at line 1318 of file ssh.h.

◆ cipherContext

CipherContext cipherContext

Cipher context.

Definition at line 1319 of file ssh.h.

◆ cipherMode

CipherMode cipherMode

Cipher mode of operation.

Definition at line 1317 of file ssh.h.

◆ encKey

uint8_t encKey[SSH_MAX_ENC_KEY_SIZE]

Encryption key.

Definition at line 1325 of file ssh.h.

◆ encKeyLen

size_t encKeyLen

Length of the encryption key, in bytes.

Definition at line 1326 of file ssh.h.

◆ etm

bool_t etm

Encrypt-then-MAC.

Definition at line 1323 of file ssh.h.

◆ gcmContext

GcmContext gcmContext

GCM context.

Definition at line 1330 of file ssh.h.

◆ hashAlgo

const HashAlgo* hashAlgo

Hash algorithm for MAC operations.

Definition at line 1320 of file ssh.h.

◆ hmacContext

HmacContext* hmacContext

HMAC context.

Definition at line 1321 of file ssh.h.

◆ iv

Initialization vector.

Definition at line 1324 of file ssh.h.

◆ macKey

uint8_t macKey[SSH_MAX_HASH_DIGEST_SIZE]

Integrity key.

Definition at line 1327 of file ssh.h.

◆ macSize

size_t macSize

Size of the MAC tag, in bytes.

Definition at line 1322 of file ssh.h.

◆ seqNum

uint8_t seqNum[4]

Sequence number.

Definition at line 1328 of file ssh.h.


The documentation for this struct was generated from the following file: