Lines Matching refs:inl

36                            const unsigned char *in, size_t inl)  in des_ede3_unwrap()  argument
41 if (inl < 24) in des_ede3_unwrap()
44 return inl - 16; in des_ede3_unwrap()
55 memmove(out, out + 8, inl - 8); in des_ede3_unwrap()
58 ctx->hw->cipher(ctx, out, in + 8, inl - 16); in des_ede3_unwrap()
60 ctx->hw->cipher(ctx, iv, in + inl - 8, 8); in des_ede3_unwrap()
63 BUF_reverse(out, NULL, inl - 16); in des_ede3_unwrap()
66 ctx->hw->cipher(ctx, out, out, inl - 16); in des_ede3_unwrap()
68 if (ossl_sha1(out, inl - 16, sha1tmp) /* Work out hash of first portion */ in des_ede3_unwrap()
70 rv = inl - 16; in des_ede3_unwrap()
76 OPENSSL_cleanse(out, inl - 16); in des_ede3_unwrap()
82 const unsigned char *in, size_t inl) in des_ede3_wrap() argument
87 size_t len = inl + ivlen + icvlen; in des_ede3_wrap()
93 memmove(out + ivlen, in, inl); in des_ede3_wrap()
95 if (!ossl_sha1(in, inl, sha1tmp)) in des_ede3_wrap()
97 memcpy(out + inl + ivlen, sha1tmp, icvlen); in des_ede3_wrap()
104 ctx->hw->cipher(ctx, out + ivlen, out + ivlen, inl + ivlen); in des_ede3_wrap()
112 const unsigned char *in, size_t inl) in tdes_wrap_cipher_internal() argument
119 if (inl >= EVP_MAXCHUNK || inl % 8) in tdes_wrap_cipher_internal()
122 return des_ede3_wrap(ctx, out, in, inl); in tdes_wrap_cipher_internal()
124 return des_ede3_unwrap(ctx, out, in, inl); in tdes_wrap_cipher_internal()
129 const unsigned char *in, size_t inl) in tdes_wrap_cipher() argument
138 if (outsize < inl) { in tdes_wrap_cipher()
143 ret = tdes_wrap_cipher_internal(ctx, out, in, inl); in tdes_wrap_cipher()
153 size_t inl) in tdes_wrap_update() argument
156 if (inl == 0) in tdes_wrap_update()
158 if (outsize < inl) { in tdes_wrap_update()
163 if (!tdes_wrap_cipher(vctx, out, outl, outsize, in, inl)) { in tdes_wrap_update()