Lines Matching refs:dat
55 EVP_CAMELLIA_KEY *dat = in cmll_t4_init_key() local
61 cmll_t4_set_key(key, bits, &dat->ks); in cmll_t4_init_key()
66 dat->block = (block128_f) cmll_t4_decrypt; 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()
82 dat->block = (block128_f) cmll_t4_encrypt; in cmll_t4_init_key()
86 dat->stream.cbc = (cbc128_f) cmll128_t4_cbc_encrypt; in cmll_t4_init_key()
88 dat->stream.ctr = (ctr128_f) cmll128_t4_ctr32_encrypt; in cmll_t4_init_key()
90 dat->stream.cbc = NULL; in cmll_t4_init_key()
95 dat->stream.cbc = (cbc128_f) cmll256_t4_cbc_encrypt; in cmll_t4_init_key()
97 dat->stream.ctr = (ctr128_f) cmll256_t4_ctr32_encrypt; in cmll_t4_init_key()
99 dat->stream.cbc = NULL; in cmll_t4_init_key()
196 EVP_CAMELLIA_KEY *dat = EVP_C_DATA(EVP_CAMELLIA_KEY, ctx); in camellia_init_key() local
199 &dat->ks); in camellia_init_key()
208 dat->block = (block128_f) Camellia_decrypt; in camellia_init_key()
209 dat->stream.cbc = mode == EVP_CIPH_CBC_MODE ? in camellia_init_key()
212 dat->block = (block128_f) Camellia_encrypt; in camellia_init_key()
213 dat->stream.cbc = mode == EVP_CIPH_CBC_MODE ? in camellia_init_key()
223 EVP_CAMELLIA_KEY *dat = EVP_C_DATA(EVP_CAMELLIA_KEY, ctx); in camellia_cbc_cipher() local
225 if (dat->stream.cbc) in camellia_cbc_cipher()
226 (*dat->stream.cbc) (in, out, len, &dat->ks, ctx->iv, in camellia_cbc_cipher()
229 CRYPTO_cbc128_encrypt(in, out, len, &dat->ks, ctx->iv, dat->block); in camellia_cbc_cipher()
231 CRYPTO_cbc128_decrypt(in, out, len, &dat->ks, ctx->iv, dat->block); in camellia_cbc_cipher()
241 EVP_CAMELLIA_KEY *dat = EVP_C_DATA(EVP_CAMELLIA_KEY, ctx); in camellia_ecb_cipher() local
247 (*dat->block) (in + i, out + i, &dat->ks); in camellia_ecb_cipher()
255 EVP_CAMELLIA_KEY *dat = EVP_C_DATA(EVP_CAMELLIA_KEY, ctx); in camellia_ofb_cipher() local
258 CRYPTO_ofb128_encrypt(in, out, len, &dat->ks, ctx->iv, &num, dat->block); in camellia_ofb_cipher()
266 EVP_CAMELLIA_KEY *dat = EVP_C_DATA(EVP_CAMELLIA_KEY, ctx); in camellia_cfb_cipher() local
269 CRYPTO_cfb128_encrypt(in, out, len, &dat->ks, ctx->iv, &num, in camellia_cfb_cipher()
270 EVP_CIPHER_CTX_is_encrypting(ctx), dat->block); in camellia_cfb_cipher()
278 EVP_CAMELLIA_KEY *dat = EVP_C_DATA(EVP_CAMELLIA_KEY, ctx); in camellia_cfb8_cipher() local
281 CRYPTO_cfb128_8_encrypt(in, out, len, &dat->ks, ctx->iv, &num, in camellia_cfb8_cipher()
282 EVP_CIPHER_CTX_is_encrypting(ctx), dat->block); in camellia_cfb8_cipher()
290 EVP_CAMELLIA_KEY *dat = EVP_C_DATA(EVP_CAMELLIA_KEY, ctx); in camellia_cfb1_cipher() local
294 CRYPTO_cfb128_1_encrypt(in, out, len, &dat->ks, ctx->iv, &num, in camellia_cfb1_cipher()
296 dat->block); in camellia_cfb1_cipher()
303 CRYPTO_cfb128_1_encrypt(in, out, MAXBITCHUNK * 8, &dat->ks, in camellia_cfb1_cipher()
306 dat->block); in camellia_cfb1_cipher()
314 CRYPTO_cfb128_1_encrypt(in, out, len * 8, &dat->ks, in camellia_cfb1_cipher()
317 dat->block); in camellia_cfb1_cipher()
329 EVP_CAMELLIA_KEY *dat = EVP_C_DATA(EVP_CAMELLIA_KEY, ctx); in camellia_ctr_cipher() local
334 if (dat->stream.ctr) in camellia_ctr_cipher()
335 CRYPTO_ctr128_encrypt_ctr32(in, out, len, &dat->ks, ctx->iv, in camellia_ctr_cipher()
338 dat->stream.ctr); in camellia_ctr_cipher()
340 CRYPTO_ctr128_encrypt(in, out, len, &dat->ks, ctx->iv, in camellia_ctr_cipher()
342 dat->block); in camellia_ctr_cipher()