Zephyr Project API 4.4.99
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
hash_pkt Struct Reference

Structure encoding IO parameters of a hash operation. More...

#include <hash.h>

Data Fields

const uint8_tin_buf
 Start address of the input buffer.
size_t in_len
 Number of input bytes to process.
uint8_tout_buf
 Start address of the output buffer.
struct hash_ctxctx
 Context this packet relates to.

Detailed Description

Structure encoding IO parameters of a hash operation.

The fields which has not been explicitly called out has to be filled up by the app before calling hash_compute().

Field Documentation

◆ ctx

struct hash_ctx* hash_pkt::ctx

Context this packet relates to.

This can be useful to get the session details, especially for async ops. This is populated by hash_compute() or hash_update().

◆ in_buf

const uint8_t* hash_pkt::in_buf

Start address of the input buffer.

The buffer is allocated by the application and must remain valid for the duration of the operation.

◆ in_len

size_t hash_pkt::in_len

Number of input bytes to process.

◆ out_buf

uint8_t* hash_pkt::out_buf

Start address of the output buffer.

The buffer is allocated by the application and must remain valid for the duration of the operation. This can be NULL for in-place operations, in which case the driver writes the result to in_buf.


The documentation for this struct was generated from the following file:
  • include/zephyr/crypto/hash.h