HKDS: Heirarchal Key Derivation System 1.0.0.2 (A2)
A fast post-quantum secure replacement for DUKPT
hkds_queue_state Struct Reference

Contains the queue context state. More...

#include <hkds_queue.h>

Data Fields

uint8_t ** queue
 
uint64_t tags [HKDS_QUEUE_MAX_DEPTH]
 
size_t count
 
size_t depth
 
size_t position
 
size_t width
 

Detailed Description

Contains the queue context state.

This structure holds the internal state of a generic HKDS queue, including:

  • A pointer to a 2-dimensional array representing the queue.
  • A corresponding array of 64-bit tags for each queue item.
  • Counters for the current item count, maximum depth, next empty slot (position), and the maximum byte length (width) of a queue item.

Field Documentation

◆ count

size_t count

The number of queue items currently in the queue.

◆ depth

size_t depth

The maximum number of items in the queue.

◆ position

size_t position

The index of the next empty slot in the queue.

◆ queue

uint8_t** queue

Pointer to a 2-dimensional queue array.

◆ tags

uint64_t tags[HKDS_QUEUE_MAX_DEPTH]

64-bit tag associated with each queue item.

◆ width

size_t width

The maximum byte length of a queue item.


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