Functions
ctr.c File Reference
#include <openssl/type_check.h>
#include <assert.h>
#include <string.h>
#include "internal.h"
#include "../../internal.h"
Include dependency graph for ctr.c:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

void CRYPTO_ctr128_encrypt (const uint8_t *in, uint8_t *out, size_t len, const AES_KEY *key, uint8_t ivec[16], uint8_t ecount_buf[16], unsigned int *num, block128_f block)
 
void CRYPTO_ctr128_encrypt_ctr32 (const uint8_t *in, uint8_t *out, size_t len, const AES_KEY *key, uint8_t ivec[16], uint8_t ecount_buf[16], unsigned int *num, ctr128_f func)
 
static void ctr128_inc (uint8_t *counter)
 
static void ctr96_inc (uint8_t *counter)
 
 OPENSSL_STATIC_ASSERT (16 % sizeof(crypto_word_t)==0, "block cannot be divided into crypto_word_t")
 

Function Documentation

◆ CRYPTO_ctr128_encrypt()

void CRYPTO_ctr128_encrypt ( const uint8_t in,
uint8_t out,
size_t  len,
const AES_KEY key,
uint8_t  ivec[16],
uint8_t  ecount_buf[16],
unsigned int num,
block128_f  block 
)

Definition at line 86 of file ctr.c.

◆ CRYPTO_ctr128_encrypt_ctr32()

void CRYPTO_ctr128_encrypt_ctr32 ( const uint8_t in,
uint8_t out,
size_t  len,
const AES_KEY key,
uint8_t  ivec[16],
uint8_t  ecount_buf[16],
unsigned int num,
ctr128_f  func 
)

Definition at line 138 of file ctr.c.

◆ ctr128_inc()

static void ctr128_inc ( uint8_t counter)
static

Definition at line 62 of file ctr.c.

◆ ctr96_inc()

static void ctr96_inc ( uint8_t counter)
static

Definition at line 127 of file ctr.c.

◆ OPENSSL_STATIC_ASSERT()

OPENSSL_STATIC_ASSERT ( 16 %   sizeofcrypto_word_t = =0,
"block cannot be divided into crypto_word_t"   
)


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