Functions | Variables
chacha_test.cc File Reference
#include <stdio.h>
#include <stdint.h>
#include <string.h>
#include <memory>
#include <gtest/gtest.h>
#include <openssl/crypto.h>
#include <openssl/chacha.h>
#include "internal.h"
#include "../internal.h"
#include "../test/abi_test.h"
#include "../test/test_util.h"
Include dependency graph for chacha_test.cc:

Go to the source code of this file.

Functions

 TEST (ChaChaTest, TestVector)
 

Variables

static uint32_t kCounter = 42
 
static const uint8_t kInput []
 
static const uint8_t kKey [32]
 
static const uint8_t kNonce [12]
 
static const uint8_t kOutput []
 

Function Documentation

◆ TEST()

TEST ( ChaChaTest  ,
TestVector   
)

Definition at line 224 of file chacha_test.cc.

Variable Documentation

◆ kCounter

uint32_t kCounter = 42
static

Definition at line 42 of file chacha_test.cc.

◆ kInput

const uint8_t kInput[]
static

Definition at line 44 of file chacha_test.cc.

◆ kKey

const uint8_t kKey[32]
static
Initial value:
= {
0x98, 0xbe, 0xf1, 0x46, 0x9b, 0xe7, 0x26, 0x98, 0x37, 0xa4, 0x5b,
0xfb, 0xc9, 0x2a, 0x5a, 0x6a, 0xc7, 0x62, 0x50, 0x7c, 0xf9, 0x64,
0x43, 0xbf, 0x33, 0xb9, 0x6b, 0x1b, 0xd4, 0xc6, 0xf8, 0xf6,
}

Definition at line 32 of file chacha_test.cc.

◆ kNonce

const uint8_t kNonce[12]
static
Initial value:
= {
0x44, 0xe7, 0x92, 0xd6, 0x33, 0x35, 0xab, 0xb1, 0x58, 0x2e, 0x92, 0x53,
}

Definition at line 38 of file chacha_test.cc.

◆ kOutput

const uint8_t kOutput[]
static

Definition at line 132 of file chacha_test.cc.



grpc
Author(s):
autogenerated on Fri May 16 2025 03:01:06