DeterministicESPAsyncWebServer v6.27.1
Zero-allocation, bounded-execution async HTTP server for ESP32
Loading...
Searching...
No Matches
SshHmacCtx Struct Reference

Streaming HMAC-SHA2-256 context. More...

#include <ssh_hmac_sha256.h>

Public Attributes

SshSha256Ctx inner
 Inner hash context (key XOR ipad prepended).
 
uint8_t okey [64]
 Outer key block (key XOR opad), stored for final step.
 

Detailed Description

Streaming HMAC-SHA2-256 context.

For the packet MAC where data arrives in two separate pieces:

  1. 4-byte big-endian sequence number
  2. plaintext packet bytes

Usage: ssh_hmac_sha256_init(&ctx, key); ssh_hmac_sha256_update(&ctx, seq_bytes, 4); ssh_hmac_sha256_update(&ctx, packet, pkt_len); ssh_hmac_sha256_final(&ctx, mac_out);

Definition at line 64 of file ssh_hmac_sha256.h.

Member Data Documentation

◆ inner

SshSha256Ctx SshHmacCtx::inner

Inner hash context (key XOR ipad prepended).

Definition at line 66 of file ssh_hmac_sha256.h.

Referenced by ssh_hmac_sha256_final(), ssh_hmac_sha256_init(), and ssh_hmac_sha256_update().

◆ okey

uint8_t SshHmacCtx::okey[64]

Outer key block (key XOR opad), stored for final step.

Definition at line 67 of file ssh_hmac_sha256.h.

Referenced by ssh_hmac_sha256_final(), and ssh_hmac_sha256_init().


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