Macros
third_party/boringssl-with-bazel/src/crypto/fipsmodule/des/internal.h File Reference
#include <openssl/base.h>
#include "../../internal.h"
Include dependency graph for third_party/boringssl-with-bazel/src/crypto/fipsmodule/des/internal.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define c2l(c, l)
 
#define c2ln(c, l1, l2, n)
 
#define D_ENCRYPT(ks, LL, R, S)
 
#define FP(l, r)
 
#define HALF_ITERATIONS   8
 
#define IP(l, r)
 
#define ITERATIONS   16
 
#define l2c(l, c)
 
#define l2cn(l1, l2, c, n)
 
#define LOAD_DATA(ks, R, S, u, t, E0, E1)
 
#define PERM_OP(a, b, t, n, m)
 

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)

Definition at line 69 of file third_party/boringssl-with-bazel/src/crypto/fipsmodule/des/internal.h.

◆ c2ln

#define c2ln (   c,
  l1,
  l2,
  n 
)
Value:
do { \
(c) += (n); \
(l1) = (l2) = 0; \
switch (n) { \
case 8: \
(l2) = ((uint32_t)(*(--(c)))) << 24L; \
OPENSSL_FALLTHROUGH; \
case 7: \
(l2) |= ((uint32_t)(*(--(c)))) << 16L; \
OPENSSL_FALLTHROUGH; \
case 6: \
(l2) |= ((uint32_t)(*(--(c)))) << 8L; \
OPENSSL_FALLTHROUGH; \
case 5: \
(l2) |= ((uint32_t)(*(--(c)))); \
OPENSSL_FALLTHROUGH; \
case 4: \
(l1) = ((uint32_t)(*(--(c)))) << 24L; \
OPENSSL_FALLTHROUGH; \
case 3: \
(l1) |= ((uint32_t)(*(--(c)))) << 16L; \
OPENSSL_FALLTHROUGH; \
case 2: \
(l1) |= ((uint32_t)(*(--(c)))) << 8L; \
OPENSSL_FALLTHROUGH; \
case 1: \
(l1) |= ((uint32_t)(*(--(c)))); \
} \
} while (0)

Definition at line 86 of file third_party/boringssl-with-bazel/src/crypto/fipsmodule/des/internal.h.

◆ D_ENCRYPT

#define D_ENCRYPT (   ks,
  LL,
  R,
  S 
)
Value:
do { \
LOAD_DATA(ks, R, S, u, t, E0, E1); \
t = CRYPTO_rotr_u32(t, 4); \
(LL) ^= \
DES_SPtrans[0][(u >> 2L) & 0x3f] ^ DES_SPtrans[2][(u >> 10L) & 0x3f] ^ \
DES_SPtrans[4][(u >> 18L) & 0x3f] ^ \
DES_SPtrans[6][(u >> 26L) & 0x3f] ^ DES_SPtrans[1][(t >> 2L) & 0x3f] ^ \
DES_SPtrans[3][(t >> 10L) & 0x3f] ^ \
DES_SPtrans[5][(t >> 18L) & 0x3f] ^ DES_SPtrans[7][(t >> 26L) & 0x3f]; \
} while (0)

Definition at line 218 of file third_party/boringssl-with-bazel/src/crypto/fipsmodule/des/internal.h.

◆ FP

#define FP (   l,
 
)
Value:
do { \
uint32_t tt; \
PERM_OP(l, r, tt, 1, 0x55555555L); \
PERM_OP(r, l, tt, 8, 0x00ff00ffL); \
PERM_OP(l, r, tt, 2, 0x33333333L); \
PERM_OP(r, l, tt, 16, 0x0000ffffL); \
PERM_OP(l, r, tt, 4, 0x0f0f0f0fL); \
} while (0)

Definition at line 202 of file third_party/boringssl-with-bazel/src/crypto/fipsmodule/des/internal.h.

◆ HALF_ITERATIONS

#define HALF_ITERATIONS   8

◆ IP

#define IP (   l,
 
)
Value:
do { \
uint32_t tt; \
PERM_OP(r, l, tt, 4, 0x0f0f0f0fL); \
PERM_OP(l, r, tt, 16, 0x0000ffffL); \
PERM_OP(r, l, tt, 2, 0x33333333L); \
PERM_OP(l, r, tt, 8, 0x00ff00ffL); \
PERM_OP(r, l, tt, 1, 0x55555555L); \
} while (0)

Definition at line 192 of file third_party/boringssl-with-bazel/src/crypto/fipsmodule/des/internal.h.

◆ ITERATIONS

#define ITERATIONS   16

◆ l2c

#define l2c (   l,
  c 
)
Value:
do { \
*((c)++) = (unsigned char)(((l)) & 0xff); \
*((c)++) = (unsigned char)(((l) >> 8L) & 0xff); \
*((c)++) = (unsigned char)(((l) >> 16L) & 0xff); \
*((c)++) = (unsigned char)(((l) >> 24L) & 0xff); \
} while (0)

Definition at line 77 of file third_party/boringssl-with-bazel/src/crypto/fipsmodule/des/internal.h.

◆ l2cn

#define l2cn (   l1,
  l2,
  c,
  n 
)
Value:
do { \
(c) += (n); \
switch (n) { \
case 8: \
*(--(c)) = (unsigned char)(((l2) >> 24L) & 0xff); \
OPENSSL_FALLTHROUGH; \
case 7: \
*(--(c)) = (unsigned char)(((l2) >> 16L) & 0xff); \
OPENSSL_FALLTHROUGH; \
case 6: \
*(--(c)) = (unsigned char)(((l2) >> 8L) & 0xff); \
OPENSSL_FALLTHROUGH; \
case 5: \
*(--(c)) = (unsigned char)(((l2)) & 0xff); \
OPENSSL_FALLTHROUGH; \
case 4: \
*(--(c)) = (unsigned char)(((l1) >> 24L) & 0xff); \
OPENSSL_FALLTHROUGH; \
case 3: \
*(--(c)) = (unsigned char)(((l1) >> 16L) & 0xff); \
OPENSSL_FALLTHROUGH; \
case 2: \
*(--(c)) = (unsigned char)(((l1) >> 8L) & 0xff); \
OPENSSL_FALLTHROUGH; \
case 1: \
*(--(c)) = (unsigned char)(((l1)) & 0xff); \
} \
} while (0)

Definition at line 118 of file third_party/boringssl-with-bazel/src/crypto/fipsmodule/des/internal.h.

◆ LOAD_DATA

#define LOAD_DATA (   ks,
  R,
  S,
  u,
  t,
  E0,
  E1 
)
Value:
do { \
(u) = (R) ^ (ks)->subkeys[S][0]; \
(t) = (R) ^ (ks)->subkeys[S][1]; \
} while (0)

Definition at line 212 of file third_party/boringssl-with-bazel/src/crypto/fipsmodule/des/internal.h.

◆ PERM_OP

#define PERM_OP (   a,
  b,
  t,
  n,
 
)
Value:
do { \
(t) = ((((a) >> (n)) ^ (b)) & (m)); \
(b) ^= (t); \
(a) ^= ((t) << (n)); \
} while (0)

Definition at line 185 of file third_party/boringssl-with-bazel/src/crypto/fipsmodule/des/internal.h.

CRYPTO_rotr_u32
static uint32_t CRYPTO_rotr_u32(uint32_t value, int shift)
Definition: third_party/boringssl-with-bazel/src/crypto/internal.h:907
S
#define S(s)
u
OPENSSL_EXPORT pem_password_cb void * u
Definition: pem.h:351
a
int a
Definition: abseil-cpp/absl/container/internal/hash_policy_traits_test.cc:88
uint32_t
unsigned int uint32_t
Definition: stdint-msvc2008.h:80
c
void c(T a)
Definition: miscompile_with_no_unique_address_test.cc:40
b
uint64_t b
Definition: abseil-cpp/absl/container/internal/layout_test.cc:53
n
int n
Definition: abseil-cpp/absl/container/btree_test.cc:1080
DES_SPtrans
static const uint32_t DES_SPtrans[8][64]
Definition: des.c:178
absl::str_format_internal::LengthMod::t
@ t
L
lua_State * L
Definition: upb/upb/bindings/lua/main.c:35
fix_build_deps.r
r
Definition: fix_build_deps.py:491
run_grpclb_interop_tests.l
dictionary l
Definition: run_grpclb_interop_tests.py:410
regress.m
m
Definition: regress/regress.py:25
LL
#define LL(x)


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