Barretenberg
The ZK-SNARK library at the core of Aztec
Loading...
Searching...
No Matches
blake3s.test.cpp File Reference
#include "blake3s.hpp"
#include <gtest/gtest.h>
#include "barretenberg/common/assert.hpp"
#include "barretenberg/common/constexpr_utils.hpp"
#include <array>
#include <iostream>
#include <memory>
#include <vector>

Go to the source code of this file.

Classes

struct  test_vector
 
struct  blake3_test_vector
 

Functions

std::vector< uint8_t > test_input (size_t input_len)
 
template<size_t S>
constexpr std::array< uint8_t, S > convert (const std::string_view &in)
 
 TEST (MiscBlake3s, TestVectors)
 
 TEST (MiscBlake3s, TooLargeInputTest)
 
 TEST (MiscBlake3s, test_official_vectors)
 

Variables

blake3_test_vector full_test_vector []
 

Function Documentation

◆ convert()

template<size_t S>
constexpr std::array< uint8_t, S > convert ( const std::string_view &  in)
constexpr

Definition at line 33 of file blake3s.test.cpp.

◆ TEST() [1/3]

TEST ( MiscBlake3s  ,
test_official_vectors   
)

Definition at line 535 of file blake3s.test.cpp.

◆ TEST() [2/3]

TEST ( MiscBlake3s  ,
TestVectors   
)

Definition at line 506 of file blake3s.test.cpp.

◆ TEST() [3/3]

TEST ( MiscBlake3s  ,
TooLargeInputTest   
)

Definition at line 529 of file blake3s.test.cpp.

◆ test_input()

std::vector< uint8_t > test_input ( size_t  input_len)

Definition at line 24 of file blake3s.test.cpp.

Variable Documentation

◆ full_test_vector