Package: hmac_pkg

Description

Copyright lowRISC contributors.
Licensed under the Apache License, Version 2.0, see LICENSE for details.
SPDX-License-Identifier: Apache-2.0

Signals

Name Type Description
compress endfunction
hmac_pkg endpackage

Constants

Name Type Value Description
MsgFifoDepth int 16
NumRound int 64 SHA-224, SHA-256
WordByte int $bits(sha_word_t)/8
InitHash sha_word_t undefined
CubicRootPrime sha_word_t undefined

Types

Name Type Description
sha_word_t logic [31:0]
sha_fifo_t struct packed {
sha_word_t data;
logic [WordByte-1:0] mask;
}
err_code_e enum logic [31:0] {
NoError = 32'h 0000_0000,
SwPushMsgWhenShaDisabled = 32'h 0000_0001,
SwHashStartWhenShaDisabled = 32'h 0000_0002,
SwUpdateSecretKeyInProcess = 32'h 0000_0003,
SwHashStartWhenActive = 32'h 0000_0004,
SwPushMsgWhenDisallowed = 32'h 0000_0005 }

Functions