49 #ifndef OPENSSL_HEADER_MD32_COMMON_H 50 #define OPENSSL_HEADER_MD32_COMMON_H 56 #if defined(__cplusplus) 112 #if !defined(DATA_ORDER_IS_BIG_ENDIAN) && !defined(DATA_ORDER_IS_LITTLE_ENDIAN) 113 #error "DATA_ORDER must be defined!" 117 #error "HASH_CBLOCK must be defined!" 120 #error "HASH_CTX must be defined!" 124 #error "HASH_UPDATE must be defined!" 126 #ifndef HASH_TRANSFORM 127 #error "HASH_TRANSFORM must be defined!" 130 #error "HASH_FINAL must be defined!" 133 #ifndef HASH_BLOCK_DATA_ORDER 134 #error "HASH_BLOCK_DATA_ORDER must be defined!" 137 #ifndef HASH_MAKE_STRING 138 #error "HASH_MAKE_STRING must be defined!" 141 #if defined(DATA_ORDER_IS_BIG_ENDIAN) 143 #define HOST_c2l(c, l) \ 145 (l) = (((uint32_t)(*((c)++))) << 24); \ 146 (l) |= (((uint32_t)(*((c)++))) << 16); \ 147 (l) |= (((uint32_t)(*((c)++))) << 8); \ 148 (l) |= (((uint32_t)(*((c)++)))); \ 151 #define HOST_l2c(l, c) \ 153 *((c)++) = (uint8_t)(((l) >> 24) & 0xff); \ 154 *((c)++) = (uint8_t)(((l) >> 16) & 0xff); \ 155 *((c)++) = (uint8_t)(((l) >> 8) & 0xff); \ 156 *((c)++) = (uint8_t)(((l)) & 0xff); \ 159 #elif defined(DATA_ORDER_IS_LITTLE_ENDIAN) 161 #define HOST_c2l(c, l) \ 163 (l) = (((uint32_t)(*((c)++)))); \ 164 (l) |= (((uint32_t)(*((c)++))) << 8); \ 165 (l) |= (((uint32_t)(*((c)++))) << 16); \ 166 (l) |= (((uint32_t)(*((c)++))) << 24); \ 169 #define HOST_l2c(l, c) \ 171 *((c)++) = (uint8_t)(((l)) & 0xff); \ 172 *((c)++) = (uint8_t)(((l) >> 8) & 0xff); \ 173 *((c)++) = (uint8_t)(((l) >> 16) & 0xff); \ 174 *((c)++) = (uint8_t)(((l) >> 24) & 0xff); \ 206 memcpy(c->data + n, data, len);
207 c->num += (unsigned)len;
221 c->num = (unsigned)len;
222 memcpy(c->data, data, len);
251 #if defined(DATA_ORDER_IS_BIG_ENDIAN) 254 #elif defined(DATA_ORDER_IS_LITTLE_ENDIAN) 268 #if defined(__cplusplus) int HASH_UPDATE(HASH_CTX *c, const void *data_, size_t len)
Definition: md32_common.h:179
#define HASH_CTX
Definition: md4.c:87
DOMString p
Definition: WebCryptoAPI.idl:116
int c
Definition: cpp_unittests.cpp:275
unsigned int uint32_t
Definition: ptypes.h:105
#define HASH_CBLOCK
Definition: md4.c:88
std::integral_constant< std::uint32_t, V > uint32_t
Definition: Brigand.h:441
int HASH_FINAL(uint8_t *md, HASH_CTX *c)
Definition: md32_common.h:233
EGLStreamKHR EGLint n
Definition: eglext.h:984
OPENSSL_EXPORT const ASN1_OBJECT int const unsigned char int len
Definition: x509.h:1053
#define HASH_MAKE_STRING(c, s)
Definition: md4.c:92
unsigned char uint8_t
Definition: ptypes.h:89
EGLStreamKHR EGLint EGLint EGLint const void * data
Definition: eglext.h:984
#define HASH_BLOCK_DATA_ORDER
Definition: md4.c:104
void HASH_TRANSFORM(HASH_CTX *c, const uint8_t *data)
Definition: md32_common.h:228