Lines Matching refs:inl

70                               const unsigned char *in, size_t inl)
81 const unsigned char *in, size_t inl)
83 while (inl >= EVP_MAXCHUNK) {
91 inl -= EVP_MAXCHUNK;
95 if (inl) {
97 DES_ede3_ofb64_encrypt(in, out, (long)inl,
108 const unsigned char *in, size_t inl)
113 (*dat->stream.cbc) (in, out, inl, dat->ks.ks,
118 while (inl >= EVP_MAXCHUNK) {
123 inl -= EVP_MAXCHUNK;
127 if (inl)
128 DES_ede3_cbc_encrypt(in, out, (long)inl,
136 const unsigned char *in, size_t inl)
138 while (inl >= EVP_MAXCHUNK) {
145 inl -= EVP_MAXCHUNK;
149 if (inl) {
151 DES_ede3_cfb64_encrypt(in, out, (long)inl,
165 const unsigned char *in, size_t inl)
171 inl *= 8;
172 for (n = 0; n < inl; ++n) {
186 const unsigned char *in, size_t inl)
188 while (inl >= EVP_MAXCHUNK) {
193 inl -= EVP_MAXCHUNK;
197 if (inl)
198 DES_ede3_cfb_encrypt(in, out, 8, (long)inl,
318 const unsigned char *in, size_t inl)
322 if (inl < 24)
325 return inl - 16;
335 memmove(out, out + 8, inl - 8);
338 des_ede_cbc_cipher(ctx, out, in + 8, inl - 16);
340 des_ede_cbc_cipher(ctx, iv, in + inl - 8, 8);
343 BUF_reverse(out, NULL, inl - 16);
346 des_ede_cbc_cipher(ctx, out, out, inl - 16);
348 if (ossl_sha1(out, inl - 16, sha1tmp) /* Work out hash of first portion */
350 rv = inl - 16;
356 OPENSSL_cleanse(out, inl - 16);
362 const unsigned char *in, size_t inl)
366 return inl + 16;
368 memmove(out + 8, in, inl);
370 if (!ossl_sha1(in, inl, sha1tmp))
372 memcpy(out + inl + 8, sha1tmp, 8);
379 des_ede_cbc_cipher(ctx, out + 8, out + 8, inl + 8);
380 BUF_reverse(out, NULL, inl + 16);
382 des_ede_cbc_cipher(ctx, out, out, inl + 16);
383 return inl + 16;
387 const unsigned char *in, size_t inl)
394 if (inl >= EVP_MAXCHUNK || inl % 8)
397 if (ossl_is_partially_overlapping(out, in, inl)) {
403 return des_ede3_wrap(ctx, out, in, inl);
405 return des_ede3_unwrap(ctx, out, in, inl);