cast.c
Go to the documentation of this file.
1 /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
2  * All rights reserved.
3  *
4  * This package is an SSL implementation written
5  * by Eric Young (eay@cryptsoft.com).
6  * The implementation was written so as to conform with Netscapes SSL.
7  *
8  * This library is free for commercial and non-commercial use as long as
9  * the following conditions are aheared to. The following conditions
10  * apply to all code found in this distribution, be it the RC4, RSA,
11  * lhash, DES, etc., code; not just the SSL code. The SSL documentation
12  * included with this distribution is covered by the same copyright terms
13  * except that the holder is Tim Hudson (tjh@cryptsoft.com).
14  *
15  * Copyright remains Eric Young's, and as such any Copyright notices in
16  * the code are not to be removed.
17  * If this package is used in a product, Eric Young should be given attribution
18  * as the author of the parts of the library used.
19  * This can be in the form of a textual message at program startup or
20  * in documentation (online or textual) provided with the package.
21  *
22  * Redistribution and use in source and binary forms, with or without
23  * modification, are permitted provided that the following conditions
24  * are met:
25  * 1. Redistributions of source code must retain the copyright
26  * notice, this list of conditions and the following disclaimer.
27  * 2. Redistributions in binary form must reproduce the above copyright
28  * notice, this list of conditions and the following disclaimer in the
29  * documentation and/or other materials provided with the distribution.
30  * 3. All advertising materials mentioning features or use of this software
31  * must display the following acknowledgement:
32  * "This product includes cryptographic software written by
33  * Eric Young (eay@cryptsoft.com)"
34  * The word 'cryptographic' can be left out if the rouines from the library
35  * being used are not cryptographic related :-).
36  * 4. If you include any Windows specific code (or a derivative thereof) from
37  * the apps directory (application code) you must include an acknowledgement:
38  * "This product includes software written by Tim Hudson (tjh@cryptsoft.com)"
39  *
40  * THIS SOFTWARE IS PROVIDED BY ERIC YOUNG ``AS IS'' AND
41  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
42  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
43  * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
44  * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
45  * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
46  * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
47  * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
48  * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
49  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
50  * SUCH DAMAGE.
51  *
52  * The licence and distribution terms for any publically available version or
53  * derivative of this code cannot be changed. i.e. this code cannot simply be
54  * copied and put under another distribution licence
55  * [including the GNU Public Licence.]. */
56 
57 #include <openssl/cast.h>
58 #include <openssl/cipher.h>
59 #include <openssl/obj.h>
60 
61 #if defined(OPENSSL_WINDOWS)
63 #include <intrin.h>
65 #endif
66 
67 #include "../../crypto/internal.h"
68 #include "internal.h"
69 #include "../macros.h"
70 
71 
72 void CAST_ecb_encrypt(const uint8_t *in, uint8_t *out, const CAST_KEY *ks,
73  int enc) {
74  uint32_t d[2];
75 
76  n2l(in, d[0]);
77  n2l(in, d[1]);
78  if (enc) {
79  CAST_encrypt(d, ks);
80  } else {
81  CAST_decrypt(d, ks);
82  }
83  l2n(d[0], out);
84  l2n(d[1], out);
85 }
86 
87 #define E_CAST(n, key, L, R, OP1, OP2, OP3) \
88  { \
89  uint32_t a, b, c, d; \
90  t = (key[n * 2] OP1 R) & 0xffffffff; \
91  t = CRYPTO_rotl_u32(t, (key[n * 2 + 1])); \
92  a = CAST_S_table0[(t >> 8) & 0xff]; \
93  b = CAST_S_table1[(t)&0xff]; \
94  c = CAST_S_table2[(t >> 24) & 0xff]; \
95  d = CAST_S_table3[(t >> 16) & 0xff]; \
96  L ^= (((((a OP2 b)&0xffffffffL)OP3 c) & 0xffffffffL) OP1 d) & 0xffffffffL; \
97  }
98 
100  uint32_t l, r, t;
101  const uint32_t *k;
102 
103  k = &key->data[0];
104  l = data[0];
105  r = data[1];
106 
107  E_CAST(0, k, l, r, +, ^, -);
108  E_CAST(1, k, r, l, ^, -, +);
109  E_CAST(2, k, l, r, -, +, ^);
110  E_CAST(3, k, r, l, +, ^, -);
111  E_CAST(4, k, l, r, ^, -, +);
112  E_CAST(5, k, r, l, -, +, ^);
113  E_CAST(6, k, l, r, +, ^, -);
114  E_CAST(7, k, r, l, ^, -, +);
115  E_CAST(8, k, l, r, -, +, ^);
116  E_CAST(9, k, r, l, +, ^, -);
117  E_CAST(10, k, l, r, ^, -, +);
118  E_CAST(11, k, r, l, -, +, ^);
119 
120  if (!key->short_key) {
121  E_CAST(12, k, l, r, +, ^, -);
122  E_CAST(13, k, r, l, ^, -, +);
123  E_CAST(14, k, l, r, -, +, ^);
124  E_CAST(15, k, r, l, +, ^, -);
125  }
126 
127  data[1] = l & 0xffffffffL;
128  data[0] = r & 0xffffffffL;
129 }
130 
132  uint32_t l, r, t;
133  const uint32_t *k;
134 
135  k = &key->data[0];
136  l = data[0];
137  r = data[1];
138 
139  if (!key->short_key) {
140  E_CAST(15, k, l, r, +, ^, -);
141  E_CAST(14, k, r, l, -, +, ^);
142  E_CAST(13, k, l, r, ^, -, +);
143  E_CAST(12, k, r, l, +, ^, -);
144  }
145 
146  E_CAST(11, k, l, r, -, +, ^);
147  E_CAST(10, k, r, l, ^, -, +);
148  E_CAST(9, k, l, r, +, ^, -);
149  E_CAST(8, k, r, l, -, +, ^);
150  E_CAST(7, k, l, r, ^, -, +);
151  E_CAST(6, k, r, l, +, ^, -);
152  E_CAST(5, k, l, r, -, +, ^);
153  E_CAST(4, k, r, l, ^, -, +);
154  E_CAST(3, k, l, r, +, ^, -);
155  E_CAST(2, k, r, l, -, +, ^);
156  E_CAST(1, k, l, r, ^, -, +);
157  E_CAST(0, k, r, l, +, ^, -);
158 
159  data[1] = l & 0xffffffffL;
160  data[0] = r & 0xffffffffL;
161 }
162 
163 void CAST_cbc_encrypt(const uint8_t *in, uint8_t *out, size_t length,
164  const CAST_KEY *ks, uint8_t *iv, int enc) {
165  uint32_t tin0, tin1;
166  uint32_t tout0, tout1, xor0, xor1;
167  size_t l = length;
168  uint32_t tin[2];
169 
170  if (enc) {
171  n2l(iv, tout0);
172  n2l(iv, tout1);
173  iv -= 8;
174  while (l >= 8) {
175  n2l(in, tin0);
176  n2l(in, tin1);
177  tin0 ^= tout0;
178  tin1 ^= tout1;
179  tin[0] = tin0;
180  tin[1] = tin1;
181  CAST_encrypt(tin, ks);
182  tout0 = tin[0];
183  tout1 = tin[1];
184  l2n(tout0, out);
185  l2n(tout1, out);
186  l -= 8;
187  }
188  if (l != 0) {
189  n2ln(in, tin0, tin1, l);
190  tin0 ^= tout0;
191  tin1 ^= tout1;
192  tin[0] = tin0;
193  tin[1] = tin1;
194  CAST_encrypt(tin, ks);
195  tout0 = tin[0];
196  tout1 = tin[1];
197  l2n(tout0, out);
198  l2n(tout1, out);
199  }
200  l2n(tout0, iv);
201  l2n(tout1, iv);
202  } else {
203  n2l(iv, xor0);
204  n2l(iv, xor1);
205  iv -= 8;
206  while (l >= 8) {
207  n2l(in, tin0);
208  n2l(in, tin1);
209  tin[0] = tin0;
210  tin[1] = tin1;
211  CAST_decrypt(tin, ks);
212  tout0 = tin[0] ^ xor0;
213  tout1 = tin[1] ^ xor1;
214  l2n(tout0, out);
215  l2n(tout1, out);
216  xor0 = tin0;
217  xor1 = tin1;
218  l -= 8;
219  }
220  if (l != 0) {
221  n2l(in, tin0);
222  n2l(in, tin1);
223  tin[0] = tin0;
224  tin[1] = tin1;
225  CAST_decrypt(tin, ks);
226  tout0 = tin[0] ^ xor0;
227  tout1 = tin[1] ^ xor1;
228  l2nn(tout0, tout1, out, l);
229  xor0 = tin0;
230  xor1 = tin1;
231  }
232  l2n(xor0, iv);
233  l2n(xor1, iv);
234  }
235  tin0 = tin1 = tout0 = tout1 = xor0 = xor1 = 0;
236  tin[0] = tin[1] = 0;
237 }
238 
239 #define CAST_exp(l, A, a, n) \
240  A[n / 4] = l; \
241  a[n + 3] = (l)&0xff; \
242  a[n + 2] = (l >> 8) & 0xff; \
243  a[n + 1] = (l >> 16) & 0xff; \
244  a[n + 0] = (l >> 24) & 0xff;
245 #define S4 CAST_S_table4
246 #define S5 CAST_S_table5
247 #define S6 CAST_S_table6
248 #define S7 CAST_S_table7
249 
250 void CAST_set_key(CAST_KEY *key, size_t len, const uint8_t *data) {
251  uint32_t x[16];
252  uint32_t z[16];
253  uint32_t k[32];
254  uint32_t X[4], Z[4];
255  uint32_t l, *K;
256  size_t i;
257 
258  for (i = 0; i < 16; i++) {
259  x[i] = 0;
260  }
261 
262  if (len > 16) {
263  len = 16;
264  }
265 
266  for (i = 0; i < len; i++) {
267  x[i] = data[i];
268  }
269 
270  if (len <= 10) {
271  key->short_key = 1;
272  } else {
273  key->short_key = 0;
274  }
275 
276  K = &k[0];
277  X[0] = ((x[0] << 24) | (x[1] << 16) | (x[2] << 8) | x[3]) & 0xffffffffL;
278  X[1] = ((x[4] << 24) | (x[5] << 16) | (x[6] << 8) | x[7]) & 0xffffffffL;
279  X[2] = ((x[8] << 24) | (x[9] << 16) | (x[10] << 8) | x[11]) & 0xffffffffL;
280  X[3] = ((x[12] << 24) | (x[13] << 16) | (x[14] << 8) | x[15]) & 0xffffffffL;
281 
282  for (;;) {
283  l = X[0] ^ S4[x[13]] ^ S5[x[15]] ^ S6[x[12]] ^ S7[x[14]] ^ S6[x[8]];
284  CAST_exp(l, Z, z, 0);
285  l = X[2] ^ S4[z[0]] ^ S5[z[2]] ^ S6[z[1]] ^ S7[z[3]] ^ S7[x[10]];
286  CAST_exp(l, Z, z, 4);
287  l = X[3] ^ S4[z[7]] ^ S5[z[6]] ^ S6[z[5]] ^ S7[z[4]] ^ S4[x[9]];
288  CAST_exp(l, Z, z, 8);
289  l = X[1] ^ S4[z[10]] ^ S5[z[9]] ^ S6[z[11]] ^ S7[z[8]] ^ S5[x[11]];
290  CAST_exp(l, Z, z, 12);
291 
292  K[0] = S4[z[8]] ^ S5[z[9]] ^ S6[z[7]] ^ S7[z[6]] ^ S4[z[2]];
293  K[1] = S4[z[10]] ^ S5[z[11]] ^ S6[z[5]] ^ S7[z[4]] ^ S5[z[6]];
294  K[2] = S4[z[12]] ^ S5[z[13]] ^ S6[z[3]] ^ S7[z[2]] ^ S6[z[9]];
295  K[3] = S4[z[14]] ^ S5[z[15]] ^ S6[z[1]] ^ S7[z[0]] ^ S7[z[12]];
296 
297  l = Z[2] ^ S4[z[5]] ^ S5[z[7]] ^ S6[z[4]] ^ S7[z[6]] ^ S6[z[0]];
298  CAST_exp(l, X, x, 0);
299  l = Z[0] ^ S4[x[0]] ^ S5[x[2]] ^ S6[x[1]] ^ S7[x[3]] ^ S7[z[2]];
300  CAST_exp(l, X, x, 4);
301  l = Z[1] ^ S4[x[7]] ^ S5[x[6]] ^ S6[x[5]] ^ S7[x[4]] ^ S4[z[1]];
302  CAST_exp(l, X, x, 8);
303  l = Z[3] ^ S4[x[10]] ^ S5[x[9]] ^ S6[x[11]] ^ S7[x[8]] ^ S5[z[3]];
304  CAST_exp(l, X, x, 12);
305 
306  K[4] = S4[x[3]] ^ S5[x[2]] ^ S6[x[12]] ^ S7[x[13]] ^ S4[x[8]];
307  K[5] = S4[x[1]] ^ S5[x[0]] ^ S6[x[14]] ^ S7[x[15]] ^ S5[x[13]];
308  K[6] = S4[x[7]] ^ S5[x[6]] ^ S6[x[8]] ^ S7[x[9]] ^ S6[x[3]];
309  K[7] = S4[x[5]] ^ S5[x[4]] ^ S6[x[10]] ^ S7[x[11]] ^ S7[x[7]];
310 
311  l = X[0] ^ S4[x[13]] ^ S5[x[15]] ^ S6[x[12]] ^ S7[x[14]] ^ S6[x[8]];
312  CAST_exp(l, Z, z, 0);
313  l = X[2] ^ S4[z[0]] ^ S5[z[2]] ^ S6[z[1]] ^ S7[z[3]] ^ S7[x[10]];
314  CAST_exp(l, Z, z, 4);
315  l = X[3] ^ S4[z[7]] ^ S5[z[6]] ^ S6[z[5]] ^ S7[z[4]] ^ S4[x[9]];
316  CAST_exp(l, Z, z, 8);
317  l = X[1] ^ S4[z[10]] ^ S5[z[9]] ^ S6[z[11]] ^ S7[z[8]] ^ S5[x[11]];
318  CAST_exp(l, Z, z, 12);
319 
320  K[8] = S4[z[3]] ^ S5[z[2]] ^ S6[z[12]] ^ S7[z[13]] ^ S4[z[9]];
321  K[9] = S4[z[1]] ^ S5[z[0]] ^ S6[z[14]] ^ S7[z[15]] ^ S5[z[12]];
322  K[10] = S4[z[7]] ^ S5[z[6]] ^ S6[z[8]] ^ S7[z[9]] ^ S6[z[2]];
323  K[11] = S4[z[5]] ^ S5[z[4]] ^ S6[z[10]] ^ S7[z[11]] ^ S7[z[6]];
324 
325  l = Z[2] ^ S4[z[5]] ^ S5[z[7]] ^ S6[z[4]] ^ S7[z[6]] ^ S6[z[0]];
326  CAST_exp(l, X, x, 0);
327  l = Z[0] ^ S4[x[0]] ^ S5[x[2]] ^ S6[x[1]] ^ S7[x[3]] ^ S7[z[2]];
328  CAST_exp(l, X, x, 4);
329  l = Z[1] ^ S4[x[7]] ^ S5[x[6]] ^ S6[x[5]] ^ S7[x[4]] ^ S4[z[1]];
330  CAST_exp(l, X, x, 8);
331  l = Z[3] ^ S4[x[10]] ^ S5[x[9]] ^ S6[x[11]] ^ S7[x[8]] ^ S5[z[3]];
332  CAST_exp(l, X, x, 12);
333 
334  K[12] = S4[x[8]] ^ S5[x[9]] ^ S6[x[7]] ^ S7[x[6]] ^ S4[x[3]];
335  K[13] = S4[x[10]] ^ S5[x[11]] ^ S6[x[5]] ^ S7[x[4]] ^ S5[x[7]];
336  K[14] = S4[x[12]] ^ S5[x[13]] ^ S6[x[3]] ^ S7[x[2]] ^ S6[x[8]];
337  K[15] = S4[x[14]] ^ S5[x[15]] ^ S6[x[1]] ^ S7[x[0]] ^ S7[x[13]];
338  if (K != k) {
339  break;
340  }
341  K += 16;
342  }
343 
344  for (i = 0; i < 16; i++) {
345  key->data[i * 2] = k[i];
346  key->data[i * 2 + 1] = ((k[i + 16]) + 16) & 0x1f;
347  }
348 }
349 
350 // The input and output encrypted as though 64bit cfb mode is being used. The
351 // extra state information to record how much of the 64bit block we have used
352 // is contained in *num.
354  const CAST_KEY *schedule, uint8_t *ivec, int *num,
355  int enc) {
356  uint32_t v0, v1, t;
357  int n = *num;
358  size_t l = length;
359  uint32_t ti[2];
360  uint8_t *iv, c, cc;
361 
362  iv = ivec;
363  if (enc) {
364  while (l--) {
365  if (n == 0) {
366  n2l(iv, v0);
367  ti[0] = v0;
368  n2l(iv, v1);
369  ti[1] = v1;
370  CAST_encrypt((uint32_t *)ti, schedule);
371  iv = ivec;
372  t = ti[0];
373  l2n(t, iv);
374  t = ti[1];
375  l2n(t, iv);
376  iv = ivec;
377  }
378  c = *(in++) ^ iv[n];
379  *(out++) = c;
380  iv[n] = c;
381  n = (n + 1) & 0x07;
382  }
383  } else {
384  while (l--) {
385  if (n == 0) {
386  n2l(iv, v0);
387  ti[0] = v0;
388  n2l(iv, v1);
389  ti[1] = v1;
390  CAST_encrypt((uint32_t *)ti, schedule);
391  iv = ivec;
392  t = ti[0];
393  l2n(t, iv);
394  t = ti[1];
395  l2n(t, iv);
396  iv = ivec;
397  }
398  cc = *(in++);
399  c = iv[n];
400  iv[n] = cc;
401  *(out++) = c ^ cc;
402  n = (n + 1) & 0x07;
403  }
404  }
405  v0 = v1 = ti[0] = ti[1] = t = c = cc = 0;
406  *num = n;
407 }
408 
410  const uint8_t *iv, int enc) {
411  CAST_KEY *cast_key = ctx->cipher_data;
412  CAST_set_key(cast_key, ctx->key_len, key);
413  return 1;
414 }
415 
417  size_t len) {
418  CAST_KEY *cast_key = ctx->cipher_data;
419 
420  while (len >= CAST_BLOCK) {
421  CAST_ecb_encrypt(in, out, cast_key, ctx->encrypt);
422  in += CAST_BLOCK;
423  out += CAST_BLOCK;
424  len -= CAST_BLOCK;
425  }
426  assert(len == 0);
427 
428  return 1;
429 }
430 
432  size_t len) {
433  CAST_KEY *cast_key = ctx->cipher_data;
434  CAST_cbc_encrypt(in, out, len, cast_key, ctx->iv, ctx->encrypt);
435  return 1;
436 }
437 
438 static const EVP_CIPHER cast5_ecb = {
440  CAST_KEY_LENGTH, CAST_BLOCK /* iv_len */,
442  NULL /* app_data */, cast_init_key,
443  cast_ecb_cipher, NULL /* cleanup */,
444  NULL /* ctrl */,
445 };
446 
447 static const EVP_CIPHER cast5_cbc = {
449  CAST_KEY_LENGTH, CAST_BLOCK /* iv_len */,
451  NULL /* app_data */, cast_init_key,
452  cast_cbc_cipher, NULL /* cleanup */,
453  NULL /* ctrl */,
454 };
455 
456 const EVP_CIPHER *EVP_cast5_ecb(void) { return &cast5_ecb; }
457 
458 const EVP_CIPHER *EVP_cast5_cbc(void) { return &cast5_cbc; }
NID_cast5_cbc
#define NID_cast5_cbc
Definition: nid.h:577
EVP_CIPH_VARIABLE_LENGTH
#define EVP_CIPH_VARIABLE_LENGTH
Definition: cipher.h:357
S5
#define S5
Definition: cast.c:246
gen_build_yaml.out
dictionary out
Definition: src/benchmark/gen_build_yaml.py:24
E_CAST
#define E_CAST(n, key, L, R, OP1, OP2, OP3)
Definition: cast.c:87
n2ln
#define n2ln(c, l1, l2, n)
Definition: boringssl-with-bazel/src/decrepit/macros.h:64
CAST_set_key
void CAST_set_key(CAST_KEY *key, size_t len, const uint8_t *data)
Definition: cast.c:250
CAST_cfb64_encrypt
void CAST_cfb64_encrypt(const uint8_t *in, uint8_t *out, size_t length, const CAST_KEY *schedule, uint8_t *ivec, int *num, int enc)
Definition: cast.c:353
X
#define X(c)
ctx
Definition: benchmark-async.c:30
cast.h
S4
#define S4
Definition: cast.c:245
check_version.warning
string warning
Definition: check_version.py:46
internal.h
CAST_KEY
struct cast_key_st CAST_KEY
CAST_KEY_LENGTH
#define CAST_KEY_LENGTH
Definition: cast.h:71
z
Uncopyable z
Definition: bloaty/third_party/googletest/googlemock/test/gmock-matchers_test.cc:3612
uint8_t
unsigned char uint8_t
Definition: stdint-msvc2008.h:78
setup.k
k
Definition: third_party/bloaty/third_party/capstone/bindings/python/setup.py:42
cast5_cbc
static const EVP_CIPHER cast5_cbc
Definition: cast.c:447
evp_cipher_ctx_st
Definition: cipher.h:536
CAST_BLOCK
#define CAST_BLOCK
Definition: cast.h:70
CAST_decrypt
void CAST_decrypt(uint32_t *data, const CAST_KEY *key)
Definition: cast.c:131
cast_init_key
static int cast_init_key(EVP_CIPHER_CTX *ctx, const uint8_t *key, const uint8_t *iv, int enc)
Definition: cast.c:409
l2n
#define l2n(l, c)
Definition: boringssl-with-bazel/src/decrepit/macros.h:126
CAST_exp
#define CAST_exp(l, A, a, n)
Definition: cast.c:239
uint32_t
unsigned int uint32_t
Definition: stdint-msvc2008.h:80
S7
#define S7
Definition: cast.c:248
in
const char * in
Definition: third_party/abseil-cpp/absl/strings/internal/str_format/parser_test.cc:391
c
void c(T a)
Definition: miscompile_with_no_unique_address_test.cc:40
evp_cipher_st
Definition: cipher.h:585
EVP_cast5_ecb
const EVP_CIPHER * EVP_cast5_ecb(void)
Definition: cast.c:456
cipher.h
cast_cbc_cipher
static int cast_cbc_cipher(EVP_CIPHER_CTX *ctx, uint8_t *out, const uint8_t *in, size_t len)
Definition: cast.c:431
cast_key_st
Definition: cast.h:73
OPENSSL_MSVC_PRAGMA
OPENSSL_MSVC_PRAGMA(warning(disable:4702))
Definition: e_aes.c:69
x
int x
Definition: bloaty/third_party/googletest/googlemock/test/gmock-matchers_test.cc:3610
data
char data[kBufferLength]
Definition: abseil-cpp/absl/strings/internal/str_format/float_conversion.cc:1006
d
static const fe d
Definition: curve25519_tables.h:19
n
int n
Definition: abseil-cpp/absl/container/btree_test.cc:1080
cast5_ecb
static const EVP_CIPHER cast5_ecb
Definition: cast.c:438
CAST_encrypt
void CAST_encrypt(uint32_t *data, const CAST_KEY *key)
Definition: cast.c:99
EVP_CIPH_CBC_MODE
#define EVP_CIPH_CBC_MODE
Definition: cipher.h:345
S6
#define S6
Definition: cast.c:247
push
int push(void *desc, unsigned char *buf, unsigned len)
Definition: bloaty/third_party/zlib/test/infcover.c:463
CAST_ecb_encrypt
void CAST_ecb_encrypt(const uint8_t *in, uint8_t *out, const CAST_KEY *ks, int enc)
Definition: cast.c:72
key
const char * key
Definition: hpack_parser_table.cc:164
L
lua_State * L
Definition: upb/upb/bindings/lua/main.c:35
fix_build_deps.r
r
Definition: fix_build_deps.py:491
xds_manager.num
num
Definition: xds_manager.py:56
EVP_cast5_cbc
const EVP_CIPHER * EVP_cast5_cbc(void)
Definition: cast.c:458
obj.h
NID_cast5_ecb
#define NID_cast5_ecb
Definition: nid.h:582
absl::types_internal
Definition: abseil-cpp/absl/types/internal/conformance_aliases.h:30
CAST_cbc_encrypt
void CAST_cbc_encrypt(const uint8_t *in, uint8_t *out, size_t length, const CAST_KEY *ks, uint8_t *iv, int enc)
Definition: cast.c:163
l2nn
#define l2nn(l1, l2, c, n)
Definition: boringssl-with-bazel/src/decrepit/macros.h:96
len
int len
Definition: abseil-cpp/absl/base/internal/low_level_alloc_test.cc:46
run_grpclb_interop_tests.l
dictionary l
Definition: run_grpclb_interop_tests.py:410
length
std::size_t length
Definition: abseil-cpp/absl/time/internal/test_util.cc:57
n2l
#define n2l(c, l)
Definition: boringssl-with-bazel/src/decrepit/macros.h:132
i
uint64_t i
Definition: abseil-cpp/absl/container/btree_benchmark.cc:230
cast_ecb_cipher
static int cast_ecb_cipher(EVP_CIPHER_CTX *ctx, uint8_t *out, const uint8_t *in, size_t len)
Definition: cast.c:416
EVP_CIPH_ECB_MODE
#define EVP_CIPH_ECB_MODE
Definition: cipher.h:344


grpc
Author(s):
autogenerated on Fri May 16 2025 02:57:52