Macros | Functions
md4.c File Reference
#include <openssl/md4.h>
#include <stdlib.h>
#include <string.h>
#include "../../internal.h"
#include "../digest/md32_common.h"
Include dependency graph for md4.c:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define F(b, c, d)   ((((c) ^ (d)) & (b)) ^ (d))
 
#define G(b, c, d)   (((b) & (c)) | ((b) & (d)) | ((c) & (d)))
 
#define H(b, c, d)   ((b) ^ (c) ^ (d))
 
#define R0(a, b, c, d, k, s, t)
 
#define R1(a, b, c, d, k, s, t)
 
#define R2(a, b, c, d, k, s, t)
 

Functions

uint8_tMD4 (const uint8_t *data, size_t len, uint8_t out[MD4_DIGEST_LENGTH])
 
void md4_block_data_order (uint32_t *state, const uint8_t *data, size_t num)
 
int MD4_Final (uint8_t out[MD4_DIGEST_LENGTH], MD4_CTX *c)
 
int MD4_Init (MD4_CTX *md4)
 
void MD4_Transform (MD4_CTX *c, const uint8_t data[MD4_CBLOCK])
 
int MD4_Update (MD4_CTX *c, const void *data, size_t len)
 

Macro Definition Documentation

◆ F

#define F (   b,
  c,
  d 
)    ((((c) ^ (d)) & (b)) ^ (d))

Definition at line 112 of file md4.c.

◆ G

#define G (   b,
  c,
  d 
)    (((b) & (c)) | ((b) & (d)) | ((c) & (d)))

Definition at line 113 of file md4.c.

◆ H

#define H (   b,
  c,
  d 
)    ((b) ^ (c) ^ (d))

Definition at line 114 of file md4.c.

◆ R0

#define R0 (   a,
  b,
  c,
  d,
  k,
  s,
 
)
Value:
do { \
(a) += ((k) + (t) + F((b), (c), (d))); \
(a) = CRYPTO_rotl_u32(a, s); \
} while (0)

Definition at line 116 of file md4.c.

◆ R1

#define R1 (   a,
  b,
  c,
  d,
  k,
  s,
 
)
Value:
do { \
(a) += ((k) + (t) + G((b), (c), (d))); \
(a) = CRYPTO_rotl_u32(a, s); \
} while (0)

Definition at line 122 of file md4.c.

◆ R2

#define R2 (   a,
  b,
  c,
  d,
  k,
  s,
 
)
Value:
do { \
(a) += ((k) + (t) + H((b), (c), (d))); \
(a) = CRYPTO_rotl_u32(a, s); \
} while (0)

Definition at line 128 of file md4.c.

Function Documentation

◆ MD4()

uint8_t* MD4 ( const uint8_t data,
size_t  len,
uint8_t  out[MD4_DIGEST_LENGTH] 
)

Definition at line 66 of file md4.c.

◆ md4_block_data_order()

void md4_block_data_order ( uint32_t state,
const uint8_t data,
size_t  num 
)

Definition at line 134 of file md4.c.

◆ MD4_Final()

int MD4_Final ( uint8_t  out[MD4_DIGEST_LENGTH],
MD4_CTX c 
)

Definition at line 98 of file md4.c.

◆ MD4_Init()

int MD4_Init ( MD4_CTX md4)

Definition at line 77 of file md4.c.

◆ MD4_Transform()

void MD4_Transform ( MD4_CTX c,
const uint8_t  data[MD4_CBLOCK] 
)

Definition at line 88 of file md4.c.

◆ MD4_Update()

int MD4_Update ( MD4_CTX c,
const void *  data,
size_t  len 
)

Definition at line 92 of file md4.c.

CRYPTO_rotl_u32
static uint32_t CRYPTO_rotl_u32(uint32_t value, int shift)
Definition: third_party/boringssl-with-bazel/src/crypto/internal.h:899
a
int a
Definition: abseil-cpp/absl/container/internal/hash_policy_traits_test.cc:88
setup.k
k
Definition: third_party/bloaty/third_party/capstone/bindings/python/setup.py:42
c
void c(T a)
Definition: miscompile_with_no_unique_address_test.cc:40
G
#define G(b, c, d)
Definition: md4.c:113
b
uint64_t b
Definition: abseil-cpp/absl/container/internal/layout_test.cc:53
d
static const fe d
Definition: curve25519_tables.h:19
F
#define F(b, c, d)
Definition: md4.c:112
H
#define H(b, c, d)
Definition: md4.c:114
absl::str_format_internal::LengthMod::t
@ t


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