Lines Matching defs:mode
121 int ret, mode, bits;
124 mode = ctx->cipher->flags & EVP_CIPH_MODE;
129 if ((mode == EVP_CIPH_ECB_MODE || mode == EVP_CIPH_CBC_MODE)
135 dat->stream.cbc = mode == EVP_CIPH_CBC_MODE ?
140 dat->stream.cbc = mode == EVP_CIPH_CBC_MODE ?
151 if (mode == EVP_CIPH_CBC_MODE)
153 else if (mode == EVP_CIPH_CTR_MODE)
160 if (mode == EVP_CIPH_CBC_MODE)
162 else if (mode == EVP_CIPH_CTR_MODE)
208 # define BLOCK_CIPHER_generic(nid,keylen,blocksize,ivlen,nmode,mode,MODE,flags) \
209 static const EVP_CIPHER cmll_t4_##keylen##_##mode = { \
213 cmll_t4_##mode##_cipher, \
217 static const EVP_CIPHER camellia_##keylen##_##mode = { \
222 camellia_##mode##_cipher, \
226 const EVP_CIPHER *EVP_camellia_##keylen##_##mode(void) \
227 { return SPARC_CMLL_CAPABLE?&cmll_t4_##keylen##_##mode:&camellia_##keylen##_##mode; }
231 # define BLOCK_CIPHER_generic(nid,keylen,blocksize,ivlen,nmode,mode,MODE,flags) \
232 static const EVP_CIPHER camellia_##keylen##_##mode = { \
236 camellia_##mode##_cipher, \
240 const EVP_CIPHER *EVP_camellia_##keylen##_##mode(void) \
241 { return &camellia_##keylen##_##mode; }
259 int ret, mode;
268 mode = ctx->cipher->flags & EVP_CIPH_MODE;
269 if ((mode == EVP_CIPH_ECB_MODE || mode == EVP_CIPH_CBC_MODE)
272 dat->stream.cbc = mode == EVP_CIPH_CBC_MODE ?
276 dat->stream.cbc = mode == EVP_CIPH_CBC_MODE ?