tree: 464a34bc4c742e67f9bd369d6e6df73bb44c7f09 [path history] [tgz]
  1. nist_vectors.core
  2. nist_vectors_pkg.sv
  3. README.md
  4. SHA256LongMsg.rsp
  5. SHA256ShortMsg.rsp
hw/dv/sv/nist_vectors/README.md

nist_vectors_pkg.sv

This class read a list of vector files and parse the useful information to uvm_sequences. The following is a list of common properties and methods:

  • _file_list: A string list of file names grouped by tested functionality.
  • nist_vectors_t: A structure of parsed information.
  • str_to_bytes: A method to parse string to a vector of bytes.
  • get_nist_vectors_path: A method to get file directory from the run option, and concatenate with input file name. Return the full file path.
  • open_file: A method to open a file with specific path, and return a open file handle.
  • parse_sha: A method to parse sha vectors files. Return an array of nist_vectors_t.

SHA256 vectors

The SHA256LongMsg.rsp and SHA256ShortMsg.rsp are test vector files downloaded from the NIST website: ‘‘‘https://csrc.nist.gov/Projects/Cryptographic-Algorithm-Validation-Program/Secure-Hashing#shavs’’’