Lines Matching refs:mode
54 int ret, mode, bits; in cmll_t4_init_key() local
58 mode = EVP_CIPHER_CTX_get_mode(ctx); in cmll_t4_init_key()
63 if ((mode == EVP_CIPH_ECB_MODE || mode == EVP_CIPH_CBC_MODE) in cmll_t4_init_key()
69 dat->stream.cbc = mode == EVP_CIPH_CBC_MODE ? in cmll_t4_init_key()
74 dat->stream.cbc = mode == EVP_CIPH_CBC_MODE ? in cmll_t4_init_key()
85 if (mode == EVP_CIPH_CBC_MODE) in cmll_t4_init_key()
87 else if (mode == EVP_CIPH_CTR_MODE) in cmll_t4_init_key()
94 if (mode == EVP_CIPH_CBC_MODE) in cmll_t4_init_key()
96 else if (mode == EVP_CIPH_CTR_MODE) in cmll_t4_init_key()
142 # define BLOCK_CIPHER_generic(nid,keylen,blocksize,ivlen,nmode,mode,MODE,flags) \ argument
143 static const EVP_CIPHER cmll_t4_##keylen##_##mode = { \
148 cmll_t4_##mode##_cipher, \
152 static const EVP_CIPHER camellia_##keylen##_##mode = { \
158 camellia_##mode##_cipher, \
162 const EVP_CIPHER *EVP_camellia_##keylen##_##mode(void) \
163 { return SPARC_CMLL_CAPABLE?&cmll_t4_##keylen##_##mode:&camellia_##keylen##_##mode; }
167 # define BLOCK_CIPHER_generic(nid,keylen,blocksize,ivlen,nmode,mode,MODE,flags) \ argument
168 static const EVP_CIPHER camellia_##keylen##_##mode = { \
173 camellia_##mode##_cipher, \
177 const EVP_CIPHER *EVP_camellia_##keylen##_##mode(void) \
178 { return &camellia_##keylen##_##mode; }
195 int ret, mode; in camellia_init_key() local
205 mode = EVP_CIPHER_CTX_get_mode(ctx); in camellia_init_key()
206 if ((mode == EVP_CIPH_ECB_MODE || mode == EVP_CIPH_CBC_MODE) in camellia_init_key()
209 dat->stream.cbc = mode == EVP_CIPH_CBC_MODE ? in camellia_init_key()
213 dat->stream.cbc = mode == EVP_CIPH_CBC_MODE ? in camellia_init_key()