Classes | Functions
poly1305.c File Reference
#include <openssl/poly1305.h>
#include <string.h>
#include <openssl/cpu.h>
#include "internal.h"
#include "../internal.h"
Include dependency graph for poly1305.c:

Go to the source code of this file.

Classes

struct  poly1305_state_st
 

Functions

void CRYPTO_poly1305_finish (poly1305_state *statep, uint8_t mac[16])
 
void CRYPTO_poly1305_init (poly1305_state *statep, const uint8_t key[32])
 
void CRYPTO_poly1305_update (poly1305_state *statep, const uint8_t *in, size_t in_len)
 
static uint64_t mul32x32_64 (uint32_t a, uint32_t b)
 
 OPENSSL_STATIC_ASSERT (sizeof(struct poly1305_state_st)+63<=sizeof(poly1305_state), "poly1305_state isn't large enough to hold aligned poly1305_state_st")
 
static struct poly1305_state_stpoly1305_aligned_state (poly1305_state *state)
 
static void poly1305_update (struct poly1305_state_st *state, const uint8_t *in, size_t len)
 
static void U32TO8_LE (uint8_t *m, uint32_t v)
 
static uint32_t U8TO32_LE (const uint8_t *m)
 

Function Documentation

◆ CRYPTO_poly1305_finish()

void CRYPTO_poly1305_finish ( poly1305_state statep,
uint8_t  mac[16] 
)

Definition at line 249 of file poly1305.c.

◆ CRYPTO_poly1305_init()

void CRYPTO_poly1305_init ( poly1305_state statep,
const uint8_t  key[32] 
)

Definition at line 159 of file poly1305.c.

◆ CRYPTO_poly1305_update()

void CRYPTO_poly1305_update ( poly1305_state statep,
const uint8_t in,
size_t  in_len 
)

Definition at line 205 of file poly1305.c.

◆ mul32x32_64()

static uint64_t mul32x32_64 ( uint32_t  a,
uint32_t  b 
)
static

Definition at line 42 of file poly1305.c.

◆ OPENSSL_STATIC_ASSERT()

OPENSSL_STATIC_ASSERT ( sizeof(struct poly1305_state_st)+63<=sizeof(poly1305_state ,
"poly1305_state isn't large enough to hold aligned poly1305_state_st  
)

◆ poly1305_aligned_state()

static struct poly1305_state_st* poly1305_aligned_state ( poly1305_state state)
inlinestatic

Definition at line 57 of file poly1305.c.

◆ poly1305_update()

static void poly1305_update ( struct poly1305_state_st state,
const uint8_t in,
size_t  len 
)
static

Definition at line 65 of file poly1305.c.

◆ U32TO8_LE()

static void U32TO8_LE ( uint8_t m,
uint32_t  v 
)
static

Definition at line 38 of file poly1305.c.

◆ U8TO32_LE()

static uint32_t U8TO32_LE ( const uint8_t m)
static

Definition at line 32 of file poly1305.c.



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