Lines Matching refs:inl
35 const unsigned char *in, size_t inl) in des_ede3_unwrap() argument
40 if (inl < 24) in des_ede3_unwrap()
43 return inl - 16; in des_ede3_unwrap()
54 memmove(out, out + 8, inl - 8); in des_ede3_unwrap()
57 ctx->hw->cipher(ctx, out, in + 8, inl - 16); in des_ede3_unwrap()
59 ctx->hw->cipher(ctx, iv, in + inl - 8, 8); in des_ede3_unwrap()
62 BUF_reverse(out, NULL, inl - 16); in des_ede3_unwrap()
65 ctx->hw->cipher(ctx, out, out, inl - 16); in des_ede3_unwrap()
67 if (ossl_sha1(out, inl - 16, sha1tmp) /* Work out hash of first portion */ in des_ede3_unwrap()
69 rv = inl - 16; in des_ede3_unwrap()
75 OPENSSL_cleanse(out, inl - 16); in des_ede3_unwrap()
81 const unsigned char *in, size_t inl) in des_ede3_wrap() argument
86 size_t len = inl + ivlen + icvlen; in des_ede3_wrap()
92 memmove(out + ivlen, in, inl); in des_ede3_wrap()
94 if (!ossl_sha1(in, inl, sha1tmp)) in des_ede3_wrap()
96 memcpy(out + inl + ivlen, sha1tmp, icvlen); in des_ede3_wrap()
103 ctx->hw->cipher(ctx, out + ivlen, out + ivlen, inl + ivlen); in des_ede3_wrap()
111 const unsigned char *in, size_t inl) in tdes_wrap_cipher_internal() argument
118 if (inl >= EVP_MAXCHUNK || inl % 8) in tdes_wrap_cipher_internal()
121 return des_ede3_wrap(ctx, out, in, inl); in tdes_wrap_cipher_internal()
123 return des_ede3_unwrap(ctx, out, in, inl); in tdes_wrap_cipher_internal()
128 const unsigned char *in, size_t inl) in tdes_wrap_cipher() argument
137 if (outsize < inl) { in tdes_wrap_cipher()
142 ret = tdes_wrap_cipher_internal(ctx, out, in, inl); in tdes_wrap_cipher()
152 size_t inl) in tdes_wrap_update() argument
155 if (inl == 0) in tdes_wrap_update()
157 if (outsize < inl) { in tdes_wrap_update()
162 if (!tdes_wrap_cipher(vctx, out, outl, outsize, in, inl)) { in tdes_wrap_update()