webkit  2cdf99a9e3038c7e01b3c37e8ad903ecbe5eecf1
https://github.com/WebKit/webkit
Classes | Macros | Typedefs | Functions
e_rc2.c File Reference
#include <openssl/cipher.h>
#include <openssl/nid.h>
#include "internal.h"

Classes

struct  rc2_key_st
 
struct  EVP_RC2_KEY
 

Macros

#define c2l(c, l)
 
#define c2ln(c, l1, l2, n)
 
#define l2c(l, c)
 
#define l2cn(l1, l2, c, n)
 

Typedefs

typedef struct rc2_key_st RC2_KEY
 

Functions

const EVP_CIPHEREVP_rc2_40_cbc (void)
 
const EVP_CIPHEREVP_rc2_cbc (void)
 

Macro Definition Documentation

◆ c2l

#define c2l (   c,
 
)
Value:
do { \
(l) = ((uint32_t)(*((c)++))); \
(l) |= ((uint32_t)(*((c)++))) << 8L; \
(l) |= ((uint32_t)(*((c)++))) << 16L; \
(l) |= ((uint32_t)(*((c)++))) << 24L; \
} while (0)
int c
Definition: cpp_unittests.cpp:275
unsigned int uint32_t
Definition: ptypes.h:105

◆ c2ln

#define c2ln (   c,
  l1,
  l2,
  n 
)
Value:
do { \
(c) += (n); \
(l1) = (l2) = 0; \
switch (n) { \
case 8: \
(l2) = ((uint32_t)(*(--(c)))) << 24L; \
case 7: \
(l2) |= ((uint32_t)(*(--(c)))) << 16L; \
case 6: \
(l2) |= ((uint32_t)(*(--(c)))) << 8L; \
case 5: \
(l2) |= ((uint32_t)(*(--(c)))); \
case 4: \
(l1) = ((uint32_t)(*(--(c)))) << 24L; \
case 3: \
(l1) |= ((uint32_t)(*(--(c)))) << 16L; \
case 2: \
(l1) |= ((uint32_t)(*(--(c)))) << 8L; \
case 1: \
(l1) |= ((uint32_t)(*(--(c)))); \
} \
} while (0)
int c
Definition: cpp_unittests.cpp:275
unsigned int uint32_t
Definition: ptypes.h:105
EGLStreamKHR EGLint n
Definition: eglext.h:984

◆ l2c

#define l2c (   l,
 
)
Value:
do { \
*((c)++) = (uint8_t)(((l)) & 0xff); \
*((c)++) = (uint8_t)(((l) >> 8L) & 0xff); \
*((c)++) = (uint8_t)(((l) >> 16L) & 0xff); \
*((c)++) = (uint8_t)(((l) >> 24L) & 0xff); \
} while (0)
int c
Definition: cpp_unittests.cpp:275
unsigned char uint8_t
Definition: skin_detection.h:18

◆ l2cn

#define l2cn (   l1,
  l2,
  c,
  n 
)
Value:
do { \
(c) += (n); \
switch (n) { \
case 8: \
*(--(c)) = (uint8_t)(((l2) >> 24L) & 0xff); \
case 7: \
*(--(c)) = (uint8_t)(((l2) >> 16L) & 0xff); \
case 6: \
*(--(c)) = (uint8_t)(((l2) >> 8L) & 0xff); \
case 5: \
*(--(c)) = (uint8_t)(((l2)) & 0xff); \
case 4: \
*(--(c)) = (uint8_t)(((l1) >> 24L) & 0xff); \
case 3: \
*(--(c)) = (uint8_t)(((l1) >> 16L) & 0xff); \
case 2: \
*(--(c)) = (uint8_t)(((l1) >> 8L) & 0xff); \
case 1: \
*(--(c)) = (uint8_t)(((l1)) & 0xff); \
} \
} while (0)
int c
Definition: cpp_unittests.cpp:275
unsigned char uint8_t
Definition: skin_detection.h:18
EGLStreamKHR EGLint n
Definition: eglext.h:984

Typedef Documentation

◆ RC2_KEY

Function Documentation

◆ EVP_rc2_40_cbc()

const EVP_CIPHER* EVP_rc2_40_cbc ( void  )

◆ EVP_rc2_cbc()

const EVP_CIPHER* EVP_rc2_cbc ( void  )