• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-WNDR4500v2-V1.0.0.60_1.0.38/ap/gpl/openssl/crypto/evp/

Lines Matching refs:cname

70 #define BLOCK_CIPHER_func_ecb(cname, cprefix, kstruct, ksched) \
71 static int cname##_ecb_cipher(EVP_CIPHER_CTX *ctx, unsigned char *out, const unsigned char *in, unsigned int inl) \
78 #define BLOCK_CIPHER_func_ofb(cname, cprefix, cbits, kstruct, ksched) \
79 static int cname##_ofb_cipher(EVP_CIPHER_CTX *ctx, unsigned char *out, const unsigned char *in, unsigned int inl) \
85 #define BLOCK_CIPHER_func_cbc(cname, cprefix, kstruct, ksched) \
86 static int cname##_cbc_cipher(EVP_CIPHER_CTX *ctx, unsigned char *out, const unsigned char *in, unsigned int inl) \
92 #define BLOCK_CIPHER_func_cfb(cname, cprefix, cbits, kstruct, ksched) \
93 static int cname##_cfb##cbits##_cipher(EVP_CIPHER_CTX *ctx, unsigned char *out, const unsigned char *in, unsigned int inl) \
99 #define BLOCK_CIPHER_all_funcs(cname, cprefix, cbits, kstruct, ksched) \
100 BLOCK_CIPHER_func_cbc(cname, cprefix, kstruct, ksched) \
101 BLOCK_CIPHER_func_cfb(cname, cprefix, cbits, kstruct, ksched) \
102 BLOCK_CIPHER_func_ecb(cname, cprefix, kstruct, ksched) \
103 BLOCK_CIPHER_func_ofb(cname, cprefix, cbits, kstruct, ksched)
105 #define BLOCK_CIPHER_def1(cname, nmode, mode, MODE, kstruct, nid, block_size, \
108 static const EVP_CIPHER cname##_##mode = { \
112 cname##_##mode##_cipher, \
119 const EVP_CIPHER *EVP_##cname##_##mode(void) { return &cname##_##mode; }
121 #define BLOCK_CIPHER_def_cbc(cname, kstruct, nid, block_size, key_len, \
124 BLOCK_CIPHER_def1(cname, cbc, cbc, CBC, kstruct, nid, block_size, key_len, \
127 #define BLOCK_CIPHER_def_cfb(cname, kstruct, nid, key_len, \
130 BLOCK_CIPHER_def1(cname, cfb##cbits, cfb##cbits, CFB, kstruct, nid, 1, \
134 #define BLOCK_CIPHER_def_ofb(cname, kstruct, nid, key_len, \
137 BLOCK_CIPHER_def1(cname, ofb##cbits, ofb, OFB, kstruct, nid, 1, \
141 #define BLOCK_CIPHER_def_ecb(cname, kstruct, nid, block_size, key_len, \
144 BLOCK_CIPHER_def1(cname, ecb, ecb, ECB, kstruct, nid, block_size, key_len, \
147 #define BLOCK_CIPHER_defs(cname, kstruct, \
150 BLOCK_CIPHER_def_cbc(cname, kstruct, nid, block_size, key_len, iv_len, flags, \
152 BLOCK_CIPHER_def_cfb(cname, kstruct, nid, key_len, iv_len, cbits, \
154 BLOCK_CIPHER_def_ofb(cname, kstruct, nid, key_len, iv_len, cbits, \
156 BLOCK_CIPHER_def_ecb(cname, kstruct, nid, block_size, key_len, iv_len, flags, \
161 #define BLOCK_CIPHER_defs(cname, kstruct, \
164 static const EVP_CIPHER cname##_cbc = {\
168 cname##_cbc_cipher,\
176 const EVP_CIPHER *EVP_##cname##_cbc(void) { return &cname##_cbc; }\
177 static const EVP_CIPHER cname##_cfb = {\
181 cname##_cfb_cipher,\
189 const EVP_CIPHER *EVP_##cname##_cfb(void) { return &cname##_cfb; }\
190 static const EVP_CIPHER cname##_ofb = {\
194 cname##_ofb_cipher,\
202 const EVP_CIPHER *EVP_##cname##_ofb(void) { return &cname##_ofb; }\
203 static const EVP_CIPHER cname##_ecb = {\
207 cname##_ecb_cipher,\
215 const EVP_CIPHER *EVP_##cname##_ecb(void) { return &cname##_ecb; }
218 #define IMPLEMENT_BLOCK_CIPHER(cname, ksched, cprefix, kstruct, nid, \
222 BLOCK_CIPHER_all_funcs(cname, cprefix, cbits, kstruct, ksched) \
223 BLOCK_CIPHER_defs(cname, kstruct, nid, block_size, key_len, iv_len, \