Classes | Functions | Variables
digest_extra.c File Reference
#include <openssl/digest.h>
#include <string.h>
#include <openssl/blake2.h>
#include <openssl/bytestring.h>
#include <openssl/obj.h>
#include <openssl/nid.h>
#include "../asn1/internal.h"
#include "../internal.h"
#include "../fipsmodule/digest/internal.h"
Include dependency graph for digest_extra.c:

Go to the source code of this file.

Classes

struct  nid_to_digest
 

Functions

static void blake2b256_final (EVP_MD_CTX *ctx, uint8_t *md)
 
static void blake2b256_init (EVP_MD_CTX *ctx)
 
static void blake2b256_update (EVP_MD_CTX *ctx, const void *data, size_t len)
 
static const EVP_MDcbs_to_md (const CBS *cbs)
 
const EVP_MDEVP_blake2b256 (void)
 
const EVP_MDEVP_get_digestbyname (const char *name)
 
const EVP_MDEVP_get_digestbynid (int nid)
 
const EVP_MDEVP_get_digestbyobj (const ASN1_OBJECT *obj)
 
int EVP_marshal_digest_algorithm (CBB *cbb, const EVP_MD *md)
 
const EVP_MDEVP_parse_digest_algorithm (CBS *cbs)
 

Variables

static const EVP_MD evp_md_blake2b256
 
struct {
   int   nid
 
   uint8_t   oid [9]
 
   uint8_t   oid_len
 
kMDOIDs []
 
static const struct nid_to_digest nid_to_digest_mapping []
 

Function Documentation

◆ blake2b256_final()

static void blake2b256_final ( EVP_MD_CTX ctx,
uint8_t md 
)
static

Definition at line 253 of file digest_extra.c.

◆ blake2b256_init()

static void blake2b256_init ( EVP_MD_CTX ctx)
static

Definition at line 247 of file digest_extra.c.

◆ blake2b256_update()

static void blake2b256_update ( EVP_MD_CTX ctx,
const void *  data,
size_t  len 
)
static

Definition at line 249 of file digest_extra.c.

◆ cbs_to_md()

static const EVP_MD* cbs_to_md ( const CBS cbs)
static

Definition at line 144 of file digest_extra.c.

◆ EVP_blake2b256()

const EVP_MD* EVP_blake2b256 ( void  )

Definition at line 268 of file digest_extra.c.

◆ EVP_get_digestbyname()

const EVP_MD* EVP_get_digestbyname ( const char *  name)

Definition at line 234 of file digest_extra.c.

◆ EVP_get_digestbynid()

const EVP_MD* EVP_get_digestbynid ( int  nid)

Definition at line 108 of file digest_extra.c.

◆ EVP_get_digestbyobj()

const EVP_MD* EVP_get_digestbyobj ( const ASN1_OBJECT obj)

Definition at line 156 of file digest_extra.c.

◆ EVP_marshal_digest_algorithm()

int EVP_marshal_digest_algorithm ( CBB cbb,
const EVP_MD md 
)

Definition at line 199 of file digest_extra.c.

◆ EVP_parse_digest_algorithm()

const EVP_MD* EVP_parse_digest_algorithm ( CBS cbs)

Definition at line 168 of file digest_extra.c.

Variable Documentation

◆ evp_md_blake2b256

const EVP_MD evp_md_blake2b256
static

◆ kMDOIDs

const { ... } kMDOIDs[]
Initial value:
= {
{ {0x2a, 0x86, 0x48, 0x86, 0xf7, 0x0d, 0x02, 0x04}, 8, NID_md4 },
{ {0x2a, 0x86, 0x48, 0x86, 0xf7, 0x0d, 0x02, 0x05}, 8, NID_md5 },
{ {0x2b, 0x0e, 0x03, 0x02, 0x1a}, 5, NID_sha1 },
{ {0x60, 0x86, 0x48, 0x01, 0x65, 0x03, 0x04, 0x02, 0x01}, 9, NID_sha256 },
{ {0x60, 0x86, 0x48, 0x01, 0x65, 0x03, 0x04, 0x02, 0x02}, 9, NID_sha384 },
{ {0x60, 0x86, 0x48, 0x01, 0x65, 0x03, 0x04, 0x02, 0x03}, 9, NID_sha512 },
{ {0x60, 0x86, 0x48, 0x01, 0x65, 0x03, 0x04, 0x02, 0x04}, 9, NID_sha224 },
}

◆ nid

int nid

Definition at line 126 of file digest_extra.c.

◆ nid_to_digest_mapping

const struct nid_to_digest nid_to_digest_mapping[]
static

◆ oid

uint8_t oid[9]

Definition at line 124 of file digest_extra.c.

◆ oid_len

uint8_t oid_len

Definition at line 125 of file digest_extra.c.

NID_md5_sha1
#define NID_md5_sha1
Definition: nid.h:603
NID_md4
#define NID_md4
Definition: nid.h:1254
EVP_md5_sha1
const OPENSSL_EXPORT EVP_MD * EVP_md5_sha1(void)
EVP_sha512
const OPENSSL_EXPORT EVP_MD * EVP_sha512(void)
LN_sha224WithRSAEncryption
#define LN_sha224WithRSAEncryption
Definition: nid.h:2987
SN_sha1WithRSAEncryption
#define SN_sha1WithRSAEncryption
Definition: nid.h:375
LN_sha224
#define LN_sha224
Definition: nid.h:3007
EVP_sha384
const OPENSSL_EXPORT EVP_MD * EVP_sha384(void)
LN_md5_sha1
#define LN_md5_sha1
Definition: nid.h:602
SN_sha384
#define SN_sha384
Definition: nid.h:2996
LN_dsaWithSHA1
#define LN_dsaWithSHA1
Definition: nid.h:597
SN_md5WithRSAEncryption
#define SN_md5WithRSAEncryption
Definition: nid.h:122
blake2b256_update
static void blake2b256_update(EVP_MD_CTX *ctx, const void *data, size_t len)
Definition: digest_extra.c:249
SN_dsaWithSHA
#define SN_dsaWithSHA
Definition: nid.h:380
EVP_sha256
const OPENSSL_EXPORT EVP_MD * EVP_sha256(void)
NID_sha384
#define NID_sha384
Definition: nid.h:2998
SN_sha256
#define SN_sha256
Definition: nid.h:2991
blake2b256_init
static void blake2b256_init(EVP_MD_CTX *ctx)
Definition: digest_extra.c:247
SN_sha224WithRSAEncryption
#define SN_sha224WithRSAEncryption
Definition: nid.h:2986
LN_sha384WithRSAEncryption
#define LN_sha384WithRSAEncryption
Definition: nid.h:2977
LN_sha1
#define LN_sha1
Definition: nid.h:371
SN_sha224
#define SN_sha224
Definition: nid.h:3006
SN_sha512
#define SN_sha512
Definition: nid.h:3001
LN_md5WithRSAEncryption
#define LN_md5WithRSAEncryption
Definition: nid.h:123
NID_sha256
#define NID_sha256
Definition: nid.h:2993
NID_sha512_256
#define NID_sha512_256
Definition: nid.h:4251
LN_sha512_256
#define LN_sha512_256
Definition: nid.h:4250
SN_sha1
#define SN_sha1
Definition: nid.h:370
BLAKE2B256_DIGEST_LENGTH
#define BLAKE2B256_DIGEST_LENGTH
Definition: blake2.h:25
NID_undef
#define NID_undef
Definition: nid.h:85
LN_sha512WithRSAEncryption
#define LN_sha512WithRSAEncryption
Definition: nid.h:2982
NID_md5
#define NID_md5
Definition: nid.h:105
blake2b256_final
static void blake2b256_final(EVP_MD_CTX *ctx, uint8_t *md)
Definition: digest_extra.c:253
NID_sha1
#define NID_sha1
Definition: nid.h:372
NID_sha512
#define NID_sha512
Definition: nid.h:3003
SN_dsaWithSHA1
#define SN_dsaWithSHA1
Definition: nid.h:596
SN_sha512_256
#define SN_sha512_256
Definition: nid.h:4249
NID_sha224
#define NID_sha224
Definition: nid.h:3008
SN_sha512WithRSAEncryption
#define SN_sha512WithRSAEncryption
Definition: nid.h:2981
LN_sha256WithRSAEncryption
#define LN_sha256WithRSAEncryption
Definition: nid.h:2972
LN_md5
#define LN_md5
Definition: nid.h:104
SN_sha256WithRSAEncryption
#define SN_sha256WithRSAEncryption
Definition: nid.h:2971
BLAKE2B_CBLOCK
#define BLAKE2B_CBLOCK
Definition: blake2.h:26
LN_sha512
#define LN_sha512
Definition: nid.h:3002
EVP_sha1
const OPENSSL_EXPORT EVP_MD * EVP_sha1(void)
SN_md5_sha1
#define SN_md5_sha1
Definition: nid.h:601
BLAKE2B_CTX
struct blake2b_state_st BLAKE2B_CTX
Definition: base.h:383
LN_sha256
#define LN_sha256
Definition: nid.h:2992
SN_md4
#define SN_md4
Definition: nid.h:1252
LN_md4
#define LN_md4
Definition: nid.h:1253
SN_md5
#define SN_md5
Definition: nid.h:103
EVP_md4
const OPENSSL_EXPORT EVP_MD * EVP_md4(void)
EVP_md5
const OPENSSL_EXPORT EVP_MD * EVP_md5(void)
SN_sha384WithRSAEncryption
#define SN_sha384WithRSAEncryption
Definition: nid.h:2976
EVP_sha512_256
const OPENSSL_EXPORT EVP_MD * EVP_sha512_256(void)
LN_sha1WithRSAEncryption
#define LN_sha1WithRSAEncryption
Definition: nid.h:376
SN_ecdsa_with_SHA1
#define SN_ecdsa_with_SHA1
Definition: nid.h:1917
EVP_sha224
const OPENSSL_EXPORT EVP_MD * EVP_sha224(void)
LN_sha384
#define LN_sha384
Definition: nid.h:2997
LN_dsaWithSHA
#define LN_dsaWithSHA
Definition: nid.h:381


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