SshEncryptionEngine Struct Reference

Encryption engine. More...

#include <ssh.h>

Data Fields

CipherMode cipherMode
 Cipher mode of operation. More...
 
const CipherAlgo * cipherAlgo
 Cipher algorithm. More...
 
CipherContext cipherContext
 Cipher context. More...
 
const HashAlgo * hashAlgo
 Hash algorithm for MAC operations. More...
 
HmacContext * hmacContext
 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 1380 of file ssh.h.

Field Documentation

◆ aad

uint8_t aad[4]

Additional authenticated data.

Definition at line 1398 of file ssh.h.

◆ cipherAlgo

const CipherAlgo* cipherAlgo

Cipher algorithm.

Definition at line 1383 of file ssh.h.

◆ cipherContext

CipherContext cipherContext

Cipher context.

Definition at line 1384 of file ssh.h.

◆ cipherMode

CipherMode cipherMode

Cipher mode of operation.

Definition at line 1382 of file ssh.h.

◆ encKey

uint8_t encKey[SSH_MAX_ENC_KEY_SIZE]

Encryption key.

Definition at line 1390 of file ssh.h.

◆ encKeyLen

size_t encKeyLen

Length of the encryption key, in bytes.

Definition at line 1391 of file ssh.h.

◆ etm

bool_t etm

Encrypt-then-MAC.

Definition at line 1388 of file ssh.h.

◆ gcmContext

GcmContext gcmContext

GCM context.

Definition at line 1395 of file ssh.h.

◆ hashAlgo

const HashAlgo* hashAlgo

Hash algorithm for MAC operations.

Definition at line 1385 of file ssh.h.

◆ hmacContext

HmacContext* hmacContext

HMAC context.

Definition at line 1386 of file ssh.h.

◆ iv

Initialization vector.

Definition at line 1389 of file ssh.h.

◆ macKey

uint8_t macKey[SSH_MAX_HASH_DIGEST_SIZE]

Integrity key.

Definition at line 1392 of file ssh.h.

◆ macSize

size_t macSize

Size of the MAC tag, in bytes.

Definition at line 1387 of file ssh.h.

◆ seqNum

uint8_t seqNum[4]

Sequence number.

Definition at line 1393 of file ssh.h.


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