Classes | Macros | Functions
digests.c File Reference
#include <openssl/digest.h>
#include <assert.h>
#include <string.h>
#include <openssl/md4.h>
#include <openssl/md5.h>
#include <openssl/nid.h>
#include <openssl/sha.h>
#include "internal.h"
#include "../delocate.h"
#include "../../internal.h"
Include dependency graph for digests.c:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  MD5_SHA1_CTX
 

Macros

#define CHECK(x)   assert(x)
 

Functions

 DEFINE_METHOD_FUNCTION (EVP_MD, EVP_md4)
 
 DEFINE_METHOD_FUNCTION (EVP_MD, EVP_md5)
 
 DEFINE_METHOD_FUNCTION (EVP_MD, EVP_md5_sha1)
 
 DEFINE_METHOD_FUNCTION (EVP_MD, EVP_sha1)
 
 DEFINE_METHOD_FUNCTION (EVP_MD, EVP_sha224)
 
 DEFINE_METHOD_FUNCTION (EVP_MD, EVP_sha256)
 
 DEFINE_METHOD_FUNCTION (EVP_MD, EVP_sha384)
 
 DEFINE_METHOD_FUNCTION (EVP_MD, EVP_sha512)
 
 DEFINE_METHOD_FUNCTION (EVP_MD, EVP_sha512_256)
 
static void md4_final (EVP_MD_CTX *ctx, uint8_t *out)
 
static void md4_init (EVP_MD_CTX *ctx)
 
static void md4_update (EVP_MD_CTX *ctx, const void *data, size_t count)
 
static void md5_final (EVP_MD_CTX *ctx, uint8_t *out)
 
static void md5_init (EVP_MD_CTX *ctx)
 
static void md5_sha1_final (EVP_MD_CTX *md_ctx, uint8_t *out)
 
static void md5_sha1_init (EVP_MD_CTX *md_ctx)
 
static void md5_sha1_update (EVP_MD_CTX *md_ctx, const void *data, size_t count)
 
static void md5_update (EVP_MD_CTX *ctx, const void *data, size_t count)
 
static void sha1_final (EVP_MD_CTX *ctx, uint8_t *md)
 
static void sha1_init (EVP_MD_CTX *ctx)
 
static void sha1_update (EVP_MD_CTX *ctx, const void *data, size_t count)
 
static void sha224_final (EVP_MD_CTX *ctx, uint8_t *md)
 
static void sha224_init (EVP_MD_CTX *ctx)
 
static void sha224_update (EVP_MD_CTX *ctx, const void *data, size_t count)
 
static void sha256_final (EVP_MD_CTX *ctx, uint8_t *md)
 
static void sha256_init (EVP_MD_CTX *ctx)
 
static void sha256_update (EVP_MD_CTX *ctx, const void *data, size_t count)
 
static void sha384_final (EVP_MD_CTX *ctx, uint8_t *md)
 
static void sha384_init (EVP_MD_CTX *ctx)
 
static void sha384_update (EVP_MD_CTX *ctx, const void *data, size_t count)
 
static void sha512_256_final (EVP_MD_CTX *ctx, uint8_t *md)
 
static void sha512_256_init (EVP_MD_CTX *ctx)
 
static void sha512_256_update (EVP_MD_CTX *ctx, const void *data, size_t count)
 
static void sha512_final (EVP_MD_CTX *ctx, uint8_t *md)
 
static void sha512_init (EVP_MD_CTX *ctx)
 
static void sha512_update (EVP_MD_CTX *ctx, const void *data, size_t count)
 

Macro Definition Documentation

◆ CHECK

#define CHECK (   x)    assert(x)

Definition at line 74 of file digests.c.

Function Documentation

◆ DEFINE_METHOD_FUNCTION() [1/9]

DEFINE_METHOD_FUNCTION ( EVP_MD  ,
EVP_md4   
)

Definition at line 90 of file digests.c.

◆ DEFINE_METHOD_FUNCTION() [2/9]

DEFINE_METHOD_FUNCTION ( EVP_MD  ,
EVP_md5   
)

Definition at line 114 of file digests.c.

◆ DEFINE_METHOD_FUNCTION() [3/9]

DEFINE_METHOD_FUNCTION ( EVP_MD  ,
EVP_md5_sha1   
)

Definition at line 293 of file digests.c.

◆ DEFINE_METHOD_FUNCTION() [4/9]

DEFINE_METHOD_FUNCTION ( EVP_MD  ,
EVP_sha1   
)

Definition at line 138 of file digests.c.

◆ DEFINE_METHOD_FUNCTION() [5/9]

DEFINE_METHOD_FUNCTION ( EVP_MD  ,
EVP_sha224   
)

Definition at line 162 of file digests.c.

◆ DEFINE_METHOD_FUNCTION() [6/9]

DEFINE_METHOD_FUNCTION ( EVP_MD  ,
EVP_sha256   
)

Definition at line 186 of file digests.c.

◆ DEFINE_METHOD_FUNCTION() [7/9]

DEFINE_METHOD_FUNCTION ( EVP_MD  ,
EVP_sha384   
)

Definition at line 210 of file digests.c.

◆ DEFINE_METHOD_FUNCTION() [8/9]

DEFINE_METHOD_FUNCTION ( EVP_MD  ,
EVP_sha512   
)

Definition at line 234 of file digests.c.

◆ DEFINE_METHOD_FUNCTION() [9/9]

DEFINE_METHOD_FUNCTION ( EVP_MD  ,
EVP_sha512_256   
)

Definition at line 258 of file digests.c.

◆ md4_final()

static void md4_final ( EVP_MD_CTX ctx,
uint8_t out 
)
static

Definition at line 86 of file digests.c.

◆ md4_init()

static void md4_init ( EVP_MD_CTX ctx)
static

Definition at line 78 of file digests.c.

◆ md4_update()

static void md4_update ( EVP_MD_CTX ctx,
const void *  data,
size_t  count 
)
static

Definition at line 82 of file digests.c.

◆ md5_final()

static void md5_final ( EVP_MD_CTX ctx,
uint8_t out 
)
static

Definition at line 110 of file digests.c.

◆ md5_init()

static void md5_init ( EVP_MD_CTX ctx)
static

Definition at line 102 of file digests.c.

◆ md5_sha1_final()

static void md5_sha1_final ( EVP_MD_CTX md_ctx,
uint8_t out 
)
static

Definition at line 287 of file digests.c.

◆ md5_sha1_init()

static void md5_sha1_init ( EVP_MD_CTX md_ctx)
static

Definition at line 275 of file digests.c.

◆ md5_sha1_update()

static void md5_sha1_update ( EVP_MD_CTX md_ctx,
const void *  data,
size_t  count 
)
static

Definition at line 280 of file digests.c.

◆ md5_update()

static void md5_update ( EVP_MD_CTX ctx,
const void *  data,
size_t  count 
)
static

Definition at line 106 of file digests.c.

◆ sha1_final()

static void sha1_final ( EVP_MD_CTX ctx,
uint8_t md 
)
static

Definition at line 134 of file digests.c.

◆ sha1_init()

static void sha1_init ( EVP_MD_CTX ctx)
static

Definition at line 126 of file digests.c.

◆ sha1_update()

static void sha1_update ( EVP_MD_CTX ctx,
const void *  data,
size_t  count 
)
static

Definition at line 130 of file digests.c.

◆ sha224_final()

static void sha224_final ( EVP_MD_CTX ctx,
uint8_t md 
)
static

Definition at line 158 of file digests.c.

◆ sha224_init()

static void sha224_init ( EVP_MD_CTX ctx)
static

Definition at line 150 of file digests.c.

◆ sha224_update()

static void sha224_update ( EVP_MD_CTX ctx,
const void *  data,
size_t  count 
)
static

Definition at line 154 of file digests.c.

◆ sha256_final()

static void sha256_final ( EVP_MD_CTX ctx,
uint8_t md 
)
static

Definition at line 182 of file digests.c.

◆ sha256_init()

static void sha256_init ( EVP_MD_CTX ctx)
static

Definition at line 174 of file digests.c.

◆ sha256_update()

static void sha256_update ( EVP_MD_CTX ctx,
const void *  data,
size_t  count 
)
static

Definition at line 178 of file digests.c.

◆ sha384_final()

static void sha384_final ( EVP_MD_CTX ctx,
uint8_t md 
)
static

Definition at line 206 of file digests.c.

◆ sha384_init()

static void sha384_init ( EVP_MD_CTX ctx)
static

Definition at line 198 of file digests.c.

◆ sha384_update()

static void sha384_update ( EVP_MD_CTX ctx,
const void *  data,
size_t  count 
)
static

Definition at line 202 of file digests.c.

◆ sha512_256_final()

static void sha512_256_final ( EVP_MD_CTX ctx,
uint8_t md 
)
static

Definition at line 254 of file digests.c.

◆ sha512_256_init()

static void sha512_256_init ( EVP_MD_CTX ctx)
static

Definition at line 246 of file digests.c.

◆ sha512_256_update()

static void sha512_256_update ( EVP_MD_CTX ctx,
const void *  data,
size_t  count 
)
static

Definition at line 250 of file digests.c.

◆ sha512_final()

static void sha512_final ( EVP_MD_CTX ctx,
uint8_t md 
)
static

Definition at line 230 of file digests.c.

◆ sha512_init()

static void sha512_init ( EVP_MD_CTX ctx)
static

Definition at line 222 of file digests.c.

◆ sha512_update()

static void sha512_update ( EVP_MD_CTX ctx,
const void *  data,
size_t  count 
)
static

Definition at line 226 of file digests.c.



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