Home
last modified time | relevance | path

Searched refs:tmplen (Results 1 – 21 of 21) sorted by relevance

/openssl/demos/cipher/
H A Daeskeywrap.c61 int outlen, tmplen; in aes_wrap_encrypt() local
90 if (!EVP_EncryptFinal_ex(ctx, outbuf + outlen, &tmplen)) in aes_wrap_encrypt()
92 outlen += tmplen; in aes_wrap_encrypt()
119 int outlen, tmplen; in aes_wrap_decrypt() local
147 if (!EVP_DecryptFinal_ex(ctx, outbuf + outlen, &tmplen)) in aes_wrap_decrypt()
149 outlen += tmplen; in aes_wrap_decrypt()
H A Dariacbc.c60 int outlen, tmplen; in aria_cbc_encrypt() local
87 if (!EVP_EncryptFinal_ex(ctx, outbuf + outlen, &tmplen)) in aria_cbc_encrypt()
89 outlen += tmplen; in aria_cbc_encrypt()
116 int outlen, tmplen; in aria_cbc_decrypt() local
142 if (!EVP_DecryptFinal_ex(ctx, outbuf + outlen, &tmplen)) in aria_cbc_decrypt()
144 outlen += tmplen; in aria_cbc_decrypt()
H A Daesgcm.c75 int outlen, tmplen; in aes_gcm_encrypt() local
122 if (!EVP_EncryptFinal_ex(ctx, outbuf, &tmplen)) in aes_gcm_encrypt()
H A Daesccm.c76 int outlen, tmplen; in aes_ccm_encrypt() local
132 if (!EVP_EncryptFinal_ex(ctx, NULL, &tmplen)) in aes_ccm_encrypt()
/openssl/test/
H A Dbio_enc_test.c44 int i, lref, len, tmplen; in do_bio_cipher() local
80 tmplen = BIO_read(b, out, i); in do_bio_cipher()
81 if (tmplen < 0) in do_bio_cipher()
83 len = tmplen; in do_bio_cipher()
89 tmplen = BIO_read(b, out + len, sizeof(out) - len); in do_bio_cipher()
90 if (tmplen < 0) in do_bio_cipher()
92 len += tmplen; in do_bio_cipher()
H A Dbio_dgram_test.c26 size_t slen, tmplen; in compare_addr() local
47 tmplen = slen; in compare_addr()
48 if (!TEST_int_eq(BIO_ADDR_rawaddress(a, pa, &tmplen), 1)) in compare_addr()
51 tmplen = slen; in compare_addr()
52 if (!TEST_int_eq(BIO_ADDR_rawaddress(b, pb, &tmplen), 1)) in compare_addr()
H A Devp_test.c1082 int ok = 0, tmplen, chunklen, tmpflen, i; in cipher_test_enc() local
1270 if (!EVP_CipherUpdate(ctx, NULL, &tmplen, NULL, out_len)) { in cipher_test_enc()
1359 tmplen = 0; in cipher_test_enc()
1370 tmplen += chunklen; in cipher_test_enc()
1379 tmplen += chunklen; in cipher_test_enc()
1387 tmplen += chunklen; in cipher_test_enc()
1395 tmplen += chunklen; in cipher_test_enc()
1411 tmplen -= expected->iv_len; in cipher_test_enc()
1415 if ((int)out_len > tmplen + tmpflen) in cipher_test_enc()
1416 out_len = tmplen + tmpflen; in cipher_test_enc()
[all …]
H A Devp_extra_test.c5658 int outlen, tmplen; in aes_gcm_encrypt() local
5678 || !TEST_true(EVP_EncryptFinal_ex(ctx, outbuf, &tmplen))) in aes_gcm_encrypt()
5796 int outlen, tmplen; in rc4_encrypt() local
5812 || !TEST_true(EVP_EncryptFinal_ex(ctx, outbuf, &tmplen))) in rc4_encrypt()
/openssl/apps/
H A Dasn1parse.c74 long num, tmplen; in asn1parse_main() local
233 tmplen = num; in asn1parse_main()
238 if (j <= 0 || j >= tmplen) { in asn1parse_main()
244 tmplen -= j; in asn1parse_main()
247 at = d2i_ASN1_TYPE(NULL, &ctmpbuf, tmplen); in asn1parse_main()
264 tmplen = at->value.asn1_string->length; in asn1parse_main()
267 num = tmplen; in asn1parse_main()
H A Dstoreutl.c218 long tmplen = 0; in storeutl_main() local
220 if ((fingerprint = OPENSSL_hexstr2buf(opt_arg(), &tmplen)) in storeutl_main()
227 fingerprintlen = (size_t)tmplen; in storeutl_main()
H A Ddgst.c584 size_t tmplen; in do_fp() local
587 if (!EVP_DigestSignFinal(ctx, NULL, &tmplen)) { in do_fp()
591 if (tmplen > BUFSIZE) { in do_fp()
592 len = tmplen; in do_fp()
/openssl/crypto/x509/
H A Dx_x509.c228 int length, tmplen; in i2d_x509_aux_internal() local
240 tmplen = i2d_X509_CERT_AUX(a->aux, pp); in i2d_x509_aux_internal()
241 if (tmplen < 0) { in i2d_x509_aux_internal()
244 return tmplen; in i2d_x509_aux_internal()
246 length += tmplen; in i2d_x509_aux_internal()
/openssl/crypto/asn1/
H A Dtasn_enc.c175 int tmplen; in ASN1_item_ex_i2d() local
180 tmplen = asn1_template_ex_i2d(pseqval, NULL, seqtt, -1, aclass); in ASN1_item_ex_i2d()
181 if (tmplen == -1 || (tmplen > INT_MAX - seqcontlen)) in ASN1_item_ex_i2d()
183 seqcontlen += tmplen; in ASN1_item_ex_i2d()
H A Dasn1_lib.c239 int tmplen = length; in ASN1_object_size() local
240 while (tmplen > 0) { in ASN1_object_size()
241 tmplen >>= 8; in ASN1_object_size()
H A Dtasn_dec.c175 long tmplen; in asn1_item_embed_d2i() local
338 tmplen = len; in asn1_item_embed_d2i()
354 len = tmplen - (p - *in); in asn1_item_embed_d2i()
/openssl/crypto/
H A Dpacket.c297 size_t tmplen = packlen; in wpacket_intern_close() local
300 while ((tmplen = tmplen >> 8) > 0) in wpacket_intern_close()
/openssl/fuzz/
H A Dprovider.c393 int outlen, tmplen; in do_evp_cipher() local
421 if (!EVP_EncryptFinal_ex(ctx, outbuf + outlen, &tmplen)) { in do_evp_cipher()
426 outlen += tmplen; in do_evp_cipher()
/openssl/providers/implementations/kem/
H A Decx_kem.c257 size_t tmplen = 0; in ecxkem_set_ctx_params() local
260 if (!OSSL_PARAM_get_octet_string(p, &tmp, 0, &tmplen)) in ecxkem_set_ctx_params()
265 ctx->ikmlen = tmplen; in ecxkem_set_ctx_params()
H A Dec_kem.c298 size_t tmplen = 0; in eckem_set_ctx_params() local
301 if (!OSSL_PARAM_get_octet_string(p, &tmp, 0, &tmplen)) in eckem_set_ctx_params()
307 ctx->ikmlen = tmplen; in eckem_set_ctx_params()
/openssl/ssl/statem/
H A Dstatem_dtls.c329 size_t tmplen; in dtls_get_message() local
336 if (!dtls_get_reassembled_message(s, &errtype, &tmplen)) { in dtls_get_message()
/openssl/doc/man3/
H A DEVP_EncryptInit.pod1638 int outlen, tmplen;
1665 if (!EVP_EncryptFinal_ex(ctx, outbuf + outlen, &tmplen)) {
1670 outlen += tmplen;

Completed in 120 milliseconds