Skip to content

Testing suite

brycx edited this page Aug 13, 2018 · 34 revisions

This section explains how orion is being tested.

Official test vectors

  • RFC 4231 test vectors for HMAC
  • NIST CAVP HMACVS test vectors (Only test cases where the MAC length matches the digest size)
  • KeccakCodePackage test vectors for cSHAKE

Custom test vectors

  • Custom test vectors for PBKDF2. These test vectors have been generated with the cryptography.io Python package. More information here.
  • Test vectors from here for HKDF.
  • Custom test vectors for HKDF. These test vectors have been generated with the cryptography.io Python package. More information here.

Fuzzing

orion is fuzzed using libFuzzer through cargo-fuzz. Fuzzing is done both to detect unwanted behavior but also verify the results. Right now, orion is fuzzed along with ring to see if the results that orion produces match those that ring does.

Clone this wiki locally