Home
last modified time | relevance | path

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

1234

/openssl/providers/implementations/ciphers/
H A Dcipher_tdes_wrap.c40 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()
62 BUF_reverse(out, NULL, inl - 16); in des_ede3_unwrap()
69 rv = inl - 16; in des_ede3_unwrap()
92 memmove(out + ivlen, in, inl); in des_ede3_wrap()
94 if (!ossl_sha1(in, inl, sha1tmp)) in des_ede3_wrap()
118 if (inl >= EVP_MAXCHUNK || inl % 8) in tdes_wrap_cipher_internal()
137 if (outsize < inl) { in tdes_wrap_cipher()
155 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.c301 for (loop = inl; loop < inl + padnum; loop++) in ossl_cipher_generic_block_update()
304 inl += padnum; in ossl_cipher_generic_block_update()
326 *outl = inl; in ossl_cipher_generic_block_update()
382 inl -= nextblocks; in ossl_cipher_generic_block_update()
384 if (inl != 0 in ossl_cipher_generic_block_update()
391 return inl == 0; in ossl_cipher_generic_block_update()
479 if (inl == 0) { in ossl_cipher_generic_stream_update()
484 if (outsize < inl) { in ossl_cipher_generic_stream_update()
494 *outl = inl; in ossl_cipher_generic_stream_update()
561 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_sm4_xts.c122 size_t outsize, const unsigned char *in, size_t inl) in sm4_xts_cipher() argument
132 || inl < SM4_BLOCK_SIZE) in sm4_xts_cipher()
141 if (inl > XTS_MAX_BLOCKS_PER_DATA_UNIT * SM4_BLOCK_SIZE) { in sm4_xts_cipher()
147 (*ctx->stream)(in, out, inl, ctx->xts.key1, ctx->xts.key2, in sm4_xts_cipher()
149 else if (CRYPTO_xts128_encrypt(&ctx->xts, ctx->base.iv, in, out, inl, in sm4_xts_cipher()
154 (*ctx->stream_gb)(in, out, inl, ctx->xts.key1, ctx->xts.key2, in sm4_xts_cipher()
157 inl, ctx->base.enc)) in sm4_xts_cipher()
160 *outl = inl; in sm4_xts_cipher()
166 size_t inl) in sm4_xts_stream_update() argument
170 if (outsize < inl) { in sm4_xts_stream_update()
[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_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_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_aes_xts.c177 size_t outsize, const unsigned char *in, size_t inl) in aes_xts_cipher() argument
183 return s390x_aes_xts_cipher(vctx, out, outl, outsize, in, inl); in aes_xts_cipher()
192 || inl < AES_BLOCK_SIZE) in aes_xts_cipher()
201 if (inl > XTS_MAX_BLOCKS_PER_DATA_UNIT * AES_BLOCK_SIZE) { in aes_xts_cipher()
207 (*ctx->stream)(in, out, inl, ctx->xts.key1, ctx->xts.key2, ctx->base.iv); in aes_xts_cipher()
208 else if (CRYPTO_xts128_encrypt(&ctx->xts, ctx->base.iv, in, out, inl, in aes_xts_cipher()
212 *outl = inl; in aes_xts_cipher()
218 size_t inl) in aes_xts_stream_update() argument
222 if (outsize < inl) { in aes_xts_stream_update()
227 if (!aes_xts_cipher(ctx, out, outl, outsize, in, inl)) { in aes_xts_stream_update()
H A Dcipher_cts.c329 size_t inl) in ossl_cipher_cbc_cts_block_update() argument
334 if (inl < CTS_BLOCK_SIZE) /* There must be at least one block for CTS mode */ in ossl_cipher_cbc_cts_block_update()
336 if (outsize < inl) in ossl_cipher_cbc_cts_block_update()
339 *outl = inl; in ossl_cipher_cbc_cts_block_update()
352 sz = cts128_cs1_encrypt(ctx, in, out, inl); in ossl_cipher_cbc_cts_block_update()
354 sz = cts128_cs2_encrypt(ctx, in, out, inl); in ossl_cipher_cbc_cts_block_update()
356 sz = cts128_cs3_encrypt(ctx, in, out, inl); in ossl_cipher_cbc_cts_block_update()
359 sz = cts128_cs1_decrypt(ctx, in, out, inl); in ossl_cipher_cbc_cts_block_update()
361 sz = cts128_cs2_decrypt(ctx, in, out, inl); in ossl_cipher_cbc_cts_block_update()
363 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()
324 if (inl < 24) in des_ede3_unwrap()
327 return inl - 16; in des_ede3_unwrap()
352 rv = inl - 16; in des_ede3_unwrap()
368 return inl + 16; in des_ede3_wrap()
385 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 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 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 Devp_enc.c593 if (inl <= 0) { in evp_EncryptDecryptUpdate()
595 return inl == 0; in evp_EncryptDecryptUpdate()
604 *outl = inl; in evp_EncryptDecryptUpdate()
614 if (bl - i > inl) { in evp_EncryptDecryptUpdate()
634 inl -= j; in evp_EncryptDecryptUpdate()
643 i = inl & (bl - 1); in evp_EncryptDecryptUpdate()
644 inl -= i; in evp_EncryptDecryptUpdate()
645 if (inl > 0) { in evp_EncryptDecryptUpdate()
648 *outl += inl; in evp_EncryptDecryptUpdate()
877 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()
63 && EVP_VerifyUpdate(ctx, (unsigned char *)buf_in, inl); in ASN1_verify()
65 OPENSSL_clear_free(buf_in, (unsigned int)inl); in ASN1_verify()
116 int ret = -1, inl = 0; in ASN1_item_verify_ctx() local
202 inl = ASN1_item_i2d(data, &buf_in, it); in ASN1_item_verify_ctx()
203 if (inl <= 0) { in ASN1_item_verify_ctx()
213 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()
44 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()
91 || !EVP_SignUpdate(ctx, (unsigned char *)buf_in, inl) in ASN1_sign()
154 size_t inl = 0, outl = 0, outll = 0; in ASN1_item_sign_ctx() local
262 inl = buf_len; in ASN1_item_sign_ctx()
263 if (!EVP_DigestSign(ctx, NULL, &outll, buf_in, inl)) { in ASN1_item_sign_ctx()
275 if (!EVP_DigestSign(ctx, buf_out, &outl, buf_in, inl)) { in ASN1_item_sign_ctx()
288 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.c105 static int linebuffer_write(BIO *b, const char *in, int inl) in linebuffer_write() argument
110 if ((in == NULL) || (inl <= 0)) in linebuffer_write()
122 for (p = in, c = '\0'; p < in + inl && (c = *p) != '\n'; p++) ; in linebuffer_write()
142 inl -= p - in; in linebuffer_write()
148 inl -= i; in linebuffer_write()
183 inl -= i; in linebuffer_write()
186 while (foundnl && inl > 0); in linebuffer_write()
192 if (inl > 0) { in linebuffer_write()
193 memcpy(&(ctx->obuf[ctx->obuf_len]), in, inl); in linebuffer_write()
194 ctx->obuf_len += inl; in linebuffer_write()
[all …]
H A Dbf_nbio.c108 static int nbiof_write(BIO *b, const char *in, int inl) in nbiof_write() argument
115 if ((in == NULL) || (inl <= 0)) in nbiof_write()
132 if (inl > num) in nbiof_write()
133 inl = num; in nbiof_write()
139 ret = BIO_write(b->next_bio, in, inl); in nbiof_write()
142 nt->lwn = inl; in nbiof_write()
/openssl/include/crypto/
H A Devp.h364 if (inl < bl) return 1;\
365 inl -= bl; \
366 for (i=0; i <= inl; i+=bl)
385 inl-=EVP_MAXCHUNK;\
389 if (inl) {\
402 inl-=EVP_MAXCHUNK;\
406 if (inl)\
416 if (inl < chunk) chunk = inl;\
417 while (inl && inl >= chunk) {\
426 inl -= chunk;\
[all …]

Completed in 64 milliseconds

1234