Lines Matching refs:inl
70 const unsigned char *in, size_t inl) in des_ede_ecb_cipher() argument
81 const unsigned char *in, size_t inl) in des_ede_ofb_cipher() argument
83 while (inl >= EVP_MAXCHUNK) { in des_ede_ofb_cipher()
91 inl -= EVP_MAXCHUNK; in des_ede_ofb_cipher()
95 if (inl) { in des_ede_ofb_cipher()
97 DES_ede3_ofb64_encrypt(in, out, (long)inl, in des_ede_ofb_cipher()
108 const unsigned char *in, size_t inl) in des_ede_cbc_cipher() argument
113 (*dat->stream.cbc) (in, out, inl, dat->ks.ks, in des_ede_cbc_cipher()
118 while (inl >= EVP_MAXCHUNK) { in des_ede_cbc_cipher()
123 inl -= EVP_MAXCHUNK; in des_ede_cbc_cipher()
127 if (inl) in des_ede_cbc_cipher()
128 DES_ede3_cbc_encrypt(in, out, (long)inl, in des_ede_cbc_cipher()
136 const unsigned char *in, size_t inl) in des_ede_cfb64_cipher() argument
138 while (inl >= EVP_MAXCHUNK) { in des_ede_cfb64_cipher()
145 inl -= EVP_MAXCHUNK; in des_ede_cfb64_cipher()
149 if (inl) { in des_ede_cfb64_cipher()
151 DES_ede3_cfb64_encrypt(in, out, (long)inl, in des_ede_cfb64_cipher()
165 const unsigned char *in, size_t inl) in des_ede3_cfb1_cipher() argument
172 inl *= 8; in des_ede3_cfb1_cipher()
173 for (n = 0; n < inl; ++n) { in des_ede3_cfb1_cipher()
187 const unsigned char *in, size_t inl) in des_ede3_cfb8_cipher() argument
189 while (inl >= EVP_MAXCHUNK) { in des_ede3_cfb8_cipher()
194 inl -= EVP_MAXCHUNK; in des_ede3_cfb8_cipher()
198 if (inl) in des_ede3_cfb8_cipher()
199 DES_ede3_cfb_encrypt(in, out, 8, (long)inl, in des_ede3_cfb8_cipher()
320 const unsigned char *in, size_t inl) in des_ede3_unwrap() argument
324 if (inl < 24) in des_ede3_unwrap()
327 return inl - 16; in des_ede3_unwrap()
337 memmove(out, out + 8, inl - 8); in des_ede3_unwrap()
340 des_ede_cbc_cipher(ctx, out, in + 8, inl - 16); in des_ede3_unwrap()
342 des_ede_cbc_cipher(ctx, iv, in + inl - 8, 8); in des_ede3_unwrap()
345 BUF_reverse(out, NULL, inl - 16); in des_ede3_unwrap()
348 des_ede_cbc_cipher(ctx, out, out, inl - 16); in des_ede3_unwrap()
350 if (ossl_sha1(out, inl - 16, sha1tmp) /* Work out hash of first portion */ in des_ede3_unwrap()
352 rv = inl - 16; in des_ede3_unwrap()
358 OPENSSL_cleanse(out, inl - 16); in des_ede3_unwrap()
364 const unsigned char *in, size_t inl) in des_ede3_wrap() argument
368 return inl + 16; in des_ede3_wrap()
370 memmove(out + 8, in, inl); in des_ede3_wrap()
372 if (!ossl_sha1(in, inl, sha1tmp)) in des_ede3_wrap()
374 memcpy(out + inl + 8, sha1tmp, 8); in des_ede3_wrap()
381 des_ede_cbc_cipher(ctx, out + 8, out + 8, inl + 8); in des_ede3_wrap()
382 BUF_reverse(out, NULL, inl + 16); in des_ede3_wrap()
384 des_ede_cbc_cipher(ctx, out, out, inl + 16); in des_ede3_wrap()
385 return inl + 16; in des_ede3_wrap()
389 const unsigned char *in, size_t inl) in des_ede3_wrap_cipher() argument
396 if (inl >= EVP_MAXCHUNK || inl % 8) in des_ede3_wrap_cipher()
399 if (ossl_is_partially_overlapping(out, in, inl)) { in des_ede3_wrap_cipher()
405 return des_ede3_wrap(ctx, out, in, inl); in des_ede3_wrap_cipher()
407 return des_ede3_unwrap(ctx, out, in, inl); in des_ede3_wrap_cipher()