Lines Matching refs:inl
66 const unsigned char *in, size_t inl) in des_ede_ecb_cipher() argument
77 const unsigned char *in, size_t inl) in des_ede_ofb_cipher() argument
79 while (inl >= EVP_MAXCHUNK) { in des_ede_ofb_cipher()
87 inl -= EVP_MAXCHUNK; in des_ede_ofb_cipher()
91 if (inl) { in des_ede_ofb_cipher()
93 DES_ede3_ofb64_encrypt(in, out, (long)inl, in des_ede_ofb_cipher()
104 const unsigned char *in, size_t inl) in des_ede_cbc_cipher() argument
109 (*dat->stream.cbc) (in, out, inl, dat->ks.ks, in des_ede_cbc_cipher()
114 while (inl >= EVP_MAXCHUNK) { in des_ede_cbc_cipher()
119 inl -= EVP_MAXCHUNK; in des_ede_cbc_cipher()
123 if (inl) in des_ede_cbc_cipher()
124 DES_ede3_cbc_encrypt(in, out, (long)inl, in des_ede_cbc_cipher()
132 const unsigned char *in, size_t inl) in des_ede_cfb64_cipher() argument
134 while (inl >= EVP_MAXCHUNK) { in des_ede_cfb64_cipher()
142 inl -= EVP_MAXCHUNK; in des_ede_cfb64_cipher()
146 if (inl) { in des_ede_cfb64_cipher()
148 DES_ede3_cfb64_encrypt(in, out, (long)inl, in des_ede_cfb64_cipher()
163 const unsigned char *in, size_t inl) in des_ede3_cfb1_cipher() argument
169 inl *= 8; in des_ede3_cfb1_cipher()
170 for (n = 0; n < inl; ++n) { in des_ede3_cfb1_cipher()
185 const unsigned char *in, size_t inl) in des_ede3_cfb8_cipher() argument
187 while (inl >= EVP_MAXCHUNK) { in des_ede3_cfb8_cipher()
193 inl -= EVP_MAXCHUNK; in des_ede3_cfb8_cipher()
197 if (inl) in des_ede3_cfb8_cipher()
198 DES_ede3_cfb_encrypt(in, out, 8, (long)inl, in des_ede3_cfb8_cipher()
317 const unsigned char *in, size_t inl) in des_ede3_unwrap() argument
321 if (inl < 24) in des_ede3_unwrap()
324 return inl - 16; in des_ede3_unwrap()
334 memmove(out, out + 8, inl - 8); in des_ede3_unwrap()
337 des_ede_cbc_cipher(ctx, out, in + 8, inl - 16); in des_ede3_unwrap()
339 des_ede_cbc_cipher(ctx, iv, in + inl - 8, 8); in des_ede3_unwrap()
342 BUF_reverse(out, NULL, inl - 16); in des_ede3_unwrap()
345 des_ede_cbc_cipher(ctx, out, out, inl - 16); in des_ede3_unwrap()
348 SHA1(out, inl - 16, sha1tmp); in des_ede3_unwrap()
351 rv = inl - 16; in des_ede3_unwrap()
357 OPENSSL_cleanse(out, inl - 16); in des_ede3_unwrap()
363 const unsigned char *in, size_t inl) in des_ede3_wrap() argument
367 return inl + 16; in des_ede3_wrap()
369 memmove(out + 8, in, inl); in des_ede3_wrap()
371 SHA1(in, inl, sha1tmp); in des_ede3_wrap()
372 memcpy(out + inl + 8, sha1tmp, 8); in des_ede3_wrap()
379 des_ede_cbc_cipher(ctx, out + 8, out + 8, inl + 8); in des_ede3_wrap()
380 BUF_reverse(out, NULL, inl + 16); in des_ede3_wrap()
382 des_ede_cbc_cipher(ctx, out, out, inl + 16); in des_ede3_wrap()
383 return inl + 16; in des_ede3_wrap()
387 const unsigned char *in, size_t inl) in des_ede3_wrap_cipher() argument
394 if (inl >= EVP_MAXCHUNK || inl % 8) in des_ede3_wrap_cipher()
397 if (is_partially_overlapping(out, in, inl)) { in des_ede3_wrap_cipher()
403 return des_ede3_wrap(ctx, out, in, inl); in des_ede3_wrap_cipher()
405 return des_ede3_unwrap(ctx, out, in, inl); in des_ede3_wrap_cipher()