Software APIs
Data Fields
sha512_message_length Struct Reference

A type that holds the SHA-512 message length. More...

#include <sw/device/lib/crypto/impl/sha2/sha512.h>

Data Fields

uint64_t lower
 Lower 64 bits of the message bit-length.
 
uint64_t upper
 Upper 64 bits of the message bit-length.
 

Detailed Description

A type that holds the SHA-512 message length.

The length may be up to 128 bits.

IMPORTANT: Every member of this struct should be a word-aligned type and have a size divisible by sizeof(uint32_t); otherwise sha512_state_t will not be suitable for hardened_memcpy().

Definition at line 75 of file sha512.h.

Field Documentation

◆ lower

uint64_t sha512_message_length::lower

Lower 64 bits of the message bit-length.

Definition at line 79 of file sha512.h.

◆ upper

uint64_t sha512_message_length::upper

Upper 64 bits of the message bit-length.

Definition at line 83 of file sha512.h.