Functions | Variables
constant_time_test.cc File Reference
#include "internal.h"
#include <limits.h>
#include <stdio.h>
#include <stdlib.h>
#include <limits>
#include <gtest/gtest.h>
#include <openssl/mem.h>
#include <openssl/rand.h>
Include dependency graph for constant_time_test.cc:

Go to the source code of this file.

Functions

static uint8_t FromBool8 (bool b)
 
static crypto_word_t FromBoolW (bool b)
 
 TEST (ConstantTimeTest, MemCmp)
 
 TEST (ConstantTimeTest, Test)
 
 TEST (ConstantTimeTest, ValueBarrier)
 

Variables

static int signed_test_values []
 
static const uint8_t test_values_8 [] = {0, 1, 2, 20, 32, 127, 128, 129, 255}
 
static crypto_word_t test_values_w []
 

Function Documentation

◆ FromBool8()

static uint8_t FromBool8 ( bool  b)
static

Definition at line 60 of file constant_time_test.cc.

◆ FromBoolW()

static crypto_word_t FromBoolW ( bool  b)
static

Definition at line 64 of file constant_time_test.cc.

◆ TEST() [1/3]

TEST ( ConstantTimeTest  ,
MemCmp   
)

Definition at line 141 of file constant_time_test.cc.

◆ TEST() [2/3]

TEST ( ConstantTimeTest  ,
Test   
)

Definition at line 94 of file constant_time_test.cc.

◆ TEST() [3/3]

TEST ( ConstantTimeTest  ,
ValueBarrier   
)

Definition at line 157 of file constant_time_test.cc.

Variable Documentation

◆ signed_test_values

int signed_test_values[]
static
Initial value:
= {
0, 1, -1, 1024, -1024, 12345, -12345,
32000, -32000, INT_MAX, INT_MIN, INT_MAX - 1, INT_MIN + 1}

Definition at line 90 of file constant_time_test.cc.

◆ test_values_8

const uint8_t test_values_8[] = {0, 1, 2, 20, 32, 127, 128, 129, 255}
static

Definition at line 68 of file constant_time_test.cc.

◆ test_values_w

crypto_word_t test_values_w[]
static
max
int max
Definition: bloaty/third_party/zlib/examples/enough.c:170


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