openMSX
Functions
sha1.cc File Reference
#include "catch.hpp"
#include "sha1.hh"
#include "ranges.hh"
#include "xrange.hh"
#include <bit>
#include <cstring>
#include <sstream>
Include dependency graph for unittest/sha1.cc:

Go to the source code of this file.

Functions

 TEST_CASE ("Sha1Sum: constructors")
 
 TEST_CASE ("Sha1Sum: parse")
 
 TEST_CASE ("Sha1Sum: clear")
 
 TEST_CASE ("Sha1Sum: comparisons")
 
 TEST_CASE ("Sha1Sum: stream")
 
 TEST_CASE ("sha1: calc")
 
 TEST_CASE ("sha1: update,digest")
 
 TEST_CASE ("sha1: finalize")
 

Function Documentation

◆ TEST_CASE() [1/8]

TEST_CASE ( "sha1: calc"  )

Definition at line 112 of file unittest/sha1.cc.

References openmsx::SHA1::calc(), CHECK(), and openmsx::Sha1Sum::toString().

◆ TEST_CASE() [2/8]

TEST_CASE ( "sha1: finalize"  )

Definition at line 142 of file unittest/sha1.cc.

References CHECK(), openmsx::SHA1::digest(), sum(), and openmsx::SHA1::update().

◆ TEST_CASE() [3/8]

TEST_CASE ( "sha1:  update,
digest"   
)

◆ TEST_CASE() [4/8]

TEST_CASE ( "Sha1Sum: clear"  )

Definition at line 52 of file unittest/sha1.cc.

References CHECK(), and sum().

◆ TEST_CASE() [5/8]

TEST_CASE ( "Sha1Sum: comparisons"  )

Definition at line 91 of file unittest/sha1.cc.

◆ TEST_CASE() [6/8]

TEST_CASE ( "Sha1Sum: constructors"  )

Definition at line 14 of file unittest/sha1.cc.

References CHECK(), and sum().

◆ TEST_CASE() [7/8]

TEST_CASE ( "Sha1Sum: parse"  )

Definition at line 38 of file unittest/sha1.cc.

References CHECK(), openmsx::Sha1Sum::parse40(), and sum().

◆ TEST_CASE() [8/8]

TEST_CASE ( "Sha1Sum: stream"  )

Definition at line 103 of file unittest/sha1.cc.

References CHECK(), and sum().