Home
last modified time | relevance | path

Searched refs:inl (Results 1 – 25 of 79) sorted by relevance

1234

/openssl/providers/implementations/ciphers/
H A Dcipher_tdes_wrap.c41 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()
63 BUF_reverse(out, NULL, inl - 16); in des_ede3_unwrap()
70 rv = inl - 16; in des_ede3_unwrap()
93 memmove(out + ivlen, in, inl); in des_ede3_wrap()
95 if (!ossl_sha1(in, inl, sha1tmp)) in des_ede3_wrap()
119 if (inl >= EVP_MAXCHUNK || inl % 8) in tdes_wrap_cipher_internal()
138 if (outsize < inl) { in tdes_wrap_cipher()
156 if (inl == 0) in tdes_wrap_update()
[all …]
H A Dciphercommon_hw.c137 inl -= MAXCHUNK; in ossl_cipher_hw_chunked_cbc()
141 if (inl > 0) in ossl_cipher_hw_chunked_cbc()
151 if (inl < chunk) in ossl_cipher_hw_chunked_cfb8()
152 chunk = inl; in ossl_cipher_hw_chunked_cfb8()
153 while (inl > 0 && inl >= chunk) { in ossl_cipher_hw_chunked_cfb8()
155 inl -= chunk; in ossl_cipher_hw_chunked_cfb8()
169 if (inl < chunk) in ossl_cipher_hw_chunked_cfb128()
170 chunk = inl; in ossl_cipher_hw_chunked_cfb128()
171 while (inl > 0 && inl >= chunk) { in ossl_cipher_hw_chunked_cfb128()
173 inl -= chunk; in ossl_cipher_hw_chunked_cfb128()
[all …]
H A Dcipher_tdes_default_hw.c54 while (inl >= MAXCHUNK) { in ossl_cipher_hw_tdes_ofb()
57 inl -= MAXCHUNK; in ossl_cipher_hw_tdes_ofb()
61 if (inl > 0) { in ossl_cipher_hw_tdes_ofb()
75 while (inl >= MAXCHUNK) { in ossl_cipher_hw_tdes_cfb()
80 inl -= MAXCHUNK; in ossl_cipher_hw_tdes_cfb()
84 if (inl > 0) { in ossl_cipher_hw_tdes_cfb()
106 inl *= 8; in ossl_cipher_hw_tdes_cfb1()
107 for (n = 0; n < inl; ++n) { in ossl_cipher_hw_tdes_cfb1()
124 while (inl >= MAXCHUNK) { in ossl_cipher_hw_tdes_cfb8()
128 inl -= MAXCHUNK; in ossl_cipher_hw_tdes_cfb8()
[all …]
H A Dciphercommon.c291 for (loop = inl; loop < inl + padnum; loop++) in ossl_cipher_generic_block_update()
294 inl += padnum; in ossl_cipher_generic_block_update()
316 *outl = inl; in ossl_cipher_generic_block_update()
372 inl -= nextblocks; in ossl_cipher_generic_block_update()
374 if (inl != 0 in ossl_cipher_generic_block_update()
381 return inl == 0; in ossl_cipher_generic_block_update()
459 if (inl == 0) { in ossl_cipher_generic_stream_update()
464 if (outsize < inl) { in ossl_cipher_generic_stream_update()
474 *outl = inl; in ossl_cipher_generic_stream_update()
529 if (outsize < inl) { in ossl_cipher_generic_cipher()
[all …]
H A Dcipher_chacha20_hw.c42 const unsigned char *in, size_t inl) in chacha20_cipher() argument
49 while (inl > 0 && n < CHACHA_BLK_SIZE) { in chacha20_cipher()
51 inl--; in chacha20_cipher()
55 if (inl == 0) in chacha20_cipher()
66 rem = (unsigned int)(inl % CHACHA_BLK_SIZE); in chacha20_cipher()
67 inl -= rem; in chacha20_cipher()
69 while (inl >= CHACHA_BLK_SIZE) { in chacha20_cipher()
70 size_t blocks = inl / CHACHA_BLK_SIZE; in chacha20_cipher()
93 inl -= blocks; in chacha20_cipher()
H A Dcipher_des_hw.c135 const unsigned char *in, size_t inl) in cipher_hw_des_cfb1_cipher() argument
142 if (inl < chunk) in cipher_hw_des_cfb1_cipher()
143 chunk = inl; in cipher_hw_des_cfb1_cipher()
145 while (inl && inl >= chunk) { in cipher_hw_des_cfb1_cipher()
153 inl -= chunk; in cipher_hw_des_cfb1_cipher()
156 if (inl < chunk) in cipher_hw_des_cfb1_cipher()
157 chunk = inl; in cipher_hw_des_cfb1_cipher()
168 while (inl >= MAXCHUNK) { in cipher_hw_des_cfb8_cipher()
171 inl -= MAXCHUNK; in cipher_hw_des_cfb8_cipher()
175 if (inl > 0) in cipher_hw_des_cfb8_cipher()
[all …]
H A Dcipher_desx_hw.c51 const unsigned char *in, size_t inl) in cipher_hw_desx_cbc() argument
55 while (inl >= MAXCHUNK) { in cipher_hw_desx_cbc()
59 inl -= MAXCHUNK; in cipher_hw_desx_cbc()
63 if (inl > 0) in cipher_hw_desx_cbc()
64 DES_xcbc_encrypt(in, out, (long)inl, &tctx->ks1, in cipher_hw_desx_cbc()
H A Dcipher_tdes_hw.c59 const unsigned char *in, size_t inl) in ossl_cipher_hw_tdes_cbc() argument
64 (*tctx->tstream.cbc) (in, out, inl, tctx->tks.ks, ctx->iv); in ossl_cipher_hw_tdes_cbc()
68 while (inl >= MAXCHUNK) { in ossl_cipher_hw_tdes_cbc()
71 inl -= MAXCHUNK; in ossl_cipher_hw_tdes_cbc()
75 if (inl > 0) in ossl_cipher_hw_tdes_cbc()
76 DES_ede3_cbc_encrypt(in, out, (long)inl, &tctx->ks1, &tctx->ks2, in ossl_cipher_hw_tdes_cbc()
H A Dcipher_null.c66 size_t outsize, const unsigned char *in, size_t inl) in null_cipher() argument
78 if (inl < ctx->tlsmacsize) in null_cipher()
80 ctx->tlsmac = in + inl - ctx->tlsmacsize; in null_cipher()
81 inl -= ctx->tlsmacsize; in null_cipher()
83 if (outsize < inl) in null_cipher()
86 memcpy(out, in, inl); in null_cipher()
87 *outl = inl; in null_cipher()
H A Dcipher_aes_xts.c158 size_t outsize, const unsigned char *in, size_t inl) in aes_xts_cipher() argument
168 || inl < AES_BLOCK_SIZE) in aes_xts_cipher()
177 if (inl > XTS_MAX_BLOCKS_PER_DATA_UNIT * AES_BLOCK_SIZE) { in aes_xts_cipher()
183 (*ctx->stream)(in, out, inl, ctx->xts.key1, ctx->xts.key2, ctx->base.iv); in aes_xts_cipher()
184 else if (CRYPTO_xts128_encrypt(&ctx->xts, ctx->base.iv, in, out, inl, in aes_xts_cipher()
188 *outl = inl; in aes_xts_cipher()
194 size_t inl) in aes_xts_stream_update() argument
198 if (outsize < inl) { in aes_xts_stream_update()
203 if (!aes_xts_cipher(ctx, out, outl, outsize, in, inl)) { in aes_xts_stream_update()
H A Dcipher_cts.c330 size_t inl) in ossl_cipher_cbc_cts_block_update() argument
335 if (inl < CTS_BLOCK_SIZE) /* There must be at least one block for CTS mode */ in ossl_cipher_cbc_cts_block_update()
337 if (outsize < inl) in ossl_cipher_cbc_cts_block_update()
340 *outl = inl; in ossl_cipher_cbc_cts_block_update()
353 sz = cts128_cs1_encrypt(ctx, in, out, inl); in ossl_cipher_cbc_cts_block_update()
355 sz = cts128_cs2_encrypt(ctx, in, out, inl); in ossl_cipher_cbc_cts_block_update()
357 sz = cts128_cs3_encrypt(ctx, in, out, inl); in ossl_cipher_cbc_cts_block_update()
360 sz = cts128_cs1_decrypt(ctx, in, out, inl); in ossl_cipher_cbc_cts_block_update()
362 sz = cts128_cs2_decrypt(ctx, in, out, inl); in ossl_cipher_cbc_cts_block_update()
364 sz = cts128_cs3_decrypt(ctx, in, out, inl); in ossl_cipher_cbc_cts_block_update()
/openssl/crypto/evp/
H A De_des3.c95 if (inl) { in des_ede_ofb_cipher()
127 if (inl) in des_ede_cbc_cipher()
149 if (inl) { in des_ede_cfb64_cipher()
172 inl *= 8; in des_ede3_cfb1_cipher()
198 if (inl) in des_ede3_cfb8_cipher()
323 if (inl < 24) in des_ede3_unwrap()
326 return inl - 16; in des_ede3_unwrap()
351 rv = inl - 16; in des_ede3_unwrap()
367 return inl + 16; in des_ede3_wrap()
384 return inl + 16; in des_ede3_wrap()
[all …]
H A De_des.c79 inl -= EVP_MAXCHUNK; in des_ofb_cipher()
83 if (inl) { in des_ofb_cipher()
111 if (inl) in des_cbc_cipher()
133 if (inl) { in des_cfb64_cipher()
155 if (inl < chunk) in des_cfb1_cipher()
156 chunk = inl; in des_cfb1_cipher()
158 while (inl && inl >= chunk) { in des_cfb1_cipher()
168 inl -= chunk; in des_cfb1_cipher()
171 if (inl < chunk) in des_cfb1_cipher()
172 chunk = inl; in des_cfb1_cipher()
[all …]
H A De_xcbc_d.c30 const unsigned char *in, size_t inl);
73 const unsigned char *in, size_t inl) in desx_cbc_cipher() argument
75 while (inl >= EVP_MAXCHUNK) { in desx_cbc_cipher()
80 inl -= EVP_MAXCHUNK; in desx_cbc_cipher()
84 if (inl) in desx_cbc_cipher()
85 DES_xcbc_encrypt(in, out, (long)inl, &data(ctx)->ks, in desx_cbc_cipher()
H A Dencode.c169 if (inl <= 0) in EVP_EncodeUpdate()
172 if (ctx->length - ctx->num > inl) { in EVP_EncodeUpdate()
173 memcpy(&(ctx->enc_data[ctx->num]), in, inl); in EVP_EncodeUpdate()
174 ctx->num += inl; in EVP_EncodeUpdate()
181 inl -= i; in EVP_EncodeUpdate()
195 inl -= ctx->length; in EVP_EncodeUpdate()
209 if (inl != 0) in EVP_EncodeUpdate()
210 memcpy(&(ctx->enc_data[0]), in, inl); in EVP_EncodeUpdate()
211 ctx->num = inl; in EVP_EncodeUpdate()
320 if (inl == 0) { in EVP_DecodeUpdate()
[all …]
H A Devp_enc.c549 if (inl <= 0) { in evp_EncryptDecryptUpdate()
551 return inl == 0; in evp_EncryptDecryptUpdate()
560 *outl = inl; in evp_EncryptDecryptUpdate()
570 if (bl - i > inl) { in evp_EncryptDecryptUpdate()
590 inl -= j; in evp_EncryptDecryptUpdate()
599 i = inl & (bl - 1); in evp_EncryptDecryptUpdate()
600 inl -= i; in evp_EncryptDecryptUpdate()
601 if (inl > 0) { in evp_EncryptDecryptUpdate()
604 *outl += inl; in evp_EncryptDecryptUpdate()
833 if (inl <= 0) { in EVP_DecryptUpdate()
[all …]
H A De_null.c19 const unsigned char *in, size_t inl);
46 const unsigned char *in, size_t inl) in null_cipher() argument
49 memcpy(out, in, inl); in null_cipher()
/openssl/crypto/asn1/
H A Da_verify.c33 int ret = -1, i, inl; in ASN1_verify() local
51 inl = i2d(data, NULL); in ASN1_verify()
52 if (inl <= 0) { in ASN1_verify()
56 buf_in = OPENSSL_malloc((unsigned int)inl); in ASN1_verify()
65 && EVP_VerifyUpdate(ctx, (unsigned char *)buf_in, inl); in ASN1_verify()
67 OPENSSL_clear_free(buf_in, (unsigned int)inl); in ASN1_verify()
118 int ret = -1, inl = 0; in ASN1_item_verify_ctx() local
203 inl = ASN1_item_i2d(data, &buf_in, it); in ASN1_item_verify_ctx()
204 if (inl <= 0) { in ASN1_item_verify_ctx()
212 inll = inl; in ASN1_item_verify_ctx()
[all …]
H A Da_digest.c31 int inl; in ASN1_digest() local
34 inl = i2d(data, NULL); in ASN1_digest()
35 if (inl <= 0) { in ASN1_digest()
39 if ((str = OPENSSL_malloc(inl)) == NULL) { in ASN1_digest()
46 if (!EVP_Digest(str, inl, md, len, type, NULL)) { in ASN1_digest()
H A Da_sign.c33 int i, inl = 0, outl = 0; in ASN1_sign() local
74 inl = i2d(data, NULL); in ASN1_sign()
75 if (inl <= 0) { in ASN1_sign()
79 inll = (size_t)inl; in ASN1_sign()
92 || !EVP_SignUpdate(ctx, (unsigned char *)buf_in, inl) in ASN1_sign()
155 size_t inl = 0, outl = 0, outll = 0; in ASN1_item_sign_ctx() local
263 inl = buf_len; in ASN1_item_sign_ctx()
264 if (!EVP_DigestSign(ctx, NULL, &outll, buf_in, inl)) { in ASN1_item_sign_ctx()
277 if (!EVP_DigestSign(ctx, buf_out, &outl, buf_in, inl)) { in ASN1_item_sign_ctx()
290 OPENSSL_clear_free((char *)buf_in, inl); in ASN1_item_sign_ctx()
H A Dbio_asn1.c154 static int asn1_bio_write(BIO *b, const char *in, int inl) in asn1_bio_write() argument
163 if (in == NULL || inl < 0 || ctx == NULL || next == NULL) in asn1_bio_write()
190 ctx->buflen = ASN1_object_size(0, inl, ctx->asn1_tag) - inl; in asn1_bio_write()
194 ASN1_put_object(&p, 0, inl, ctx->asn1_tag, ctx->asn1_class); in asn1_bio_write()
195 ctx->copylen = inl; in asn1_bio_write()
217 if (inl > ctx->copylen) in asn1_bio_write()
220 wrmax = inl; in asn1_bio_write()
227 inl -= ret; in asn1_bio_write()
232 if (inl == 0) in asn1_bio_write()
295 static int asn1_bio_read(BIO *b, char *in, int inl) in asn1_bio_read() argument
[all …]
/openssl/crypto/bio/
H A Dbf_lbuf.c108 static int linebuffer_write(BIO *b, const char *in, int inl) in linebuffer_write() argument
113 if ((in == NULL) || (inl <= 0)) in linebuffer_write()
125 for (p = in, c = '\0'; p < in + inl && (c = *p) != '\n'; p++) ; in linebuffer_write()
145 inl -= p - in; in linebuffer_write()
151 inl -= i; in linebuffer_write()
186 inl -= i; in linebuffer_write()
189 while (foundnl && inl > 0); in linebuffer_write()
195 if (inl > 0) { in linebuffer_write()
196 memcpy(&(ctx->obuf[ctx->obuf_len]), in, inl); in linebuffer_write()
197 ctx->obuf_len += inl; in linebuffer_write()
[all …]
H A Dbf_nbio.c110 static int nbiof_write(BIO *b, const char *in, int inl) in nbiof_write() argument
117 if ((in == NULL) || (inl <= 0)) in nbiof_write()
134 if (inl > num) in nbiof_write()
135 inl = num; in nbiof_write()
141 ret = BIO_write(b->next_bio, in, inl); in nbiof_write()
144 nt->lwn = inl; in nbiof_write()
H A Dbf_buff.c158 static int buffer_write(BIO *b, const char *in, int inl) in buffer_write() argument
163 if ((in == NULL) || (inl <= 0)) in buffer_write()
173 if (i >= inl) { in buffer_write()
174 memcpy(&(ctx->obuf[ctx->obuf_off + ctx->obuf_len]), in, inl); in buffer_write()
175 ctx->obuf_len += inl; in buffer_write()
176 return (num + inl); in buffer_write()
184 inl -= i; in buffer_write()
213 while (inl >= ctx->obuf_size) { in buffer_write()
214 i = BIO_write(b->next_bio, in, inl); in buffer_write()
224 inl -= i; in buffer_write()
[all …]
/openssl/include/crypto/
H A Devp.h356 if (inl < bl) return 1;\
357 inl -= bl; \
358 for (i=0; i <= inl; i+=bl)
377 inl-=EVP_MAXCHUNK;\
381 if (inl) {\
395 inl-=EVP_MAXCHUNK;\
399 if (inl)\
409 if (inl < chunk) chunk = inl;\
410 while (inl && inl >= chunk)\
420 inl -= chunk;\
[all …]

Completed in 68 milliseconds

1234