/openssl-master/crypto/evp/ |
A D | bio_b64.c | 34 int buf_len; member 127 ctx->buf_len = 0; in b64_read() 134 if (ctx->buf_len > 0) { in b64_read() 146 ctx->buf_len = 0; in b64_read() 280 ctx->buf_len = 0; in b64_read() 302 ctx->buf_len = 0; in b64_read() 307 i = ctx->buf_len; in b64_read() 343 ctx->buf_len = 0; in b64_write() 367 ctx->buf_len = 0; in b64_write() 427 n = ctx->buf_len; in b64_write() [all …]
|
A D | bio_ok.c | 99 size_t buf_len; member 210 ctx->buf_len = 0; in ok_read() 221 n = IOBS - ctx->buf_len; in ok_read() 227 ctx->buf_len += i; in ok_read() 277 n = ctx->buf_len - ctx->buf_off; in ok_write() 304 ctx->buf_len += n; in ok_write() 335 ctx->buf_len = 0; in ok_ctrl() 460 ctx->buf_len += md_size; in sig_out() 466 ctx->buf_len += md_size; in sig_out() 514 ctx->buf_len -= ctx->buf_off; in sig_in() [all …]
|
A D | bio_enc.c | 30 int buf_len; member 121 if (ctx->buf_len > 0) { in enc_read() 131 ctx->buf_len = 0; in enc_read() 185 ret += buf_len; in enc_read() 186 out += buf_len; in enc_read() 187 outl -= buf_len; in enc_read() 212 if (ctx->buf_len == 0) in enc_read() 216 if (ctx->buf_len <= outl) in enc_read() 217 i = ctx->buf_len; in enc_read() 277 n = ctx->buf_len; in enc_write() [all …]
|
A D | e_chacha20_poly1305.c | 218 size_t tail, tohash_len, buf_len, plen = actx->tls_payload_length; in chacha20_poly1305_tls_cipher() local 231 buf_len = (plen + 2 * CHACHA_BLK_SIZE - 1) & (0 - CHACHA_BLK_SIZE); in chacha20_poly1305_tls_cipher() 232 ChaCha20_ctr32(buf, zero, buf_len, actx->key.key.d, in chacha20_poly1305_tls_cipher() 257 ChaCha20_ctr32(buf, zero, (buf_len = 2 * CHACHA_BLK_SIZE), in chacha20_poly1305_tls_cipher() 289 ChaCha20_ctr32(buf, zero, (buf_len = CHACHA_BLK_SIZE), in chacha20_poly1305_tls_cipher() 342 OPENSSL_cleanse(buf, buf_len); in chacha20_poly1305_tls_cipher()
|
A D | evp_enc.c | 373 ctx->buf_len = 0; in evp_cipher_init_internal() 533 if (ossl_is_partially_overlapping(out + ctx->buf_len, in, cmpl)) { in evp_EncryptDecryptUpdate() 538 if (ctx->buf_len == 0 && (inl & (ctx->block_mask)) == 0) { in evp_EncryptDecryptUpdate() 547 i = ctx->buf_len; in evp_EncryptDecryptUpdate() 552 ctx->buf_len += inl; in evp_EncryptDecryptUpdate() 589 ctx->buf_len = i; in evp_EncryptDecryptUpdate() 720 bl = ctx->buf_len; in EVP_EncryptFinal_ex() 855 if (b > 1 && !ctx->buf_len) { in EVP_DecryptUpdate() 939 if (ctx->buf_len) { in EVP_DecryptFinal_ex() 947 if (ctx->buf_len || !ctx->final_used) { in EVP_DecryptFinal_ex()
|
A D | e_aes.c | 3891 int *buf_len; in aes_ocb_cipher() local 3914 buf_len = &(octx->aad_buf_len); in aes_ocb_cipher() 3917 buf_len = &(octx->data_buf_len); in aes_ocb_cipher() 3919 if (ossl_is_partially_overlapping(out + *buf_len, in, len)) { in aes_ocb_cipher() 3929 if (*buf_len > 0) { in aes_ocb_cipher() 3932 remaining = AES_BLOCK_SIZE - (*buf_len); in aes_ocb_cipher() 3934 memcpy(buf + (*buf_len), in, len); in aes_ocb_cipher() 3935 *(buf_len) += len; in aes_ocb_cipher() 3938 memcpy(buf + (*buf_len), in, remaining); in aes_ocb_cipher() 3958 *buf_len = 0; in aes_ocb_cipher() [all …]
|
A D | evp_local.h | 41 int buf_len; /* number we have left */ member
|
/openssl-master/crypto/ec/ |
A D | ec_deprecated.c | 26 size_t buf_len = 0; in EC_POINT_point2bn() local 29 buf_len = EC_POINT_point2buf(group, point, form, &buf, ctx); in EC_POINT_point2bn() 31 if (buf_len == 0) in EC_POINT_point2bn() 34 ret = BN_bin2bn(buf, buf_len, ret); in EC_POINT_point2bn() 44 size_t buf_len = 0; in EC_POINT_bn2point() local 48 if ((buf_len = BN_num_bytes(bn)) == 0) in EC_POINT_bn2point() 49 buf_len = 1; in EC_POINT_bn2point() 50 if ((buf = OPENSSL_malloc(buf_len)) == NULL) { in EC_POINT_bn2point() 55 if (BN_bn2binpad(bn, buf, buf_len) < 0) { in EC_POINT_bn2point() 68 if (!EC_POINT_oct2point(group, ret, buf, buf_len, ctx)) { in EC_POINT_bn2point()
|
A D | ec_print.c | 22 size_t buf_len = 0, i; in EC_POINT_point2hex() local 25 buf_len = EC_POINT_point2buf(group, point, form, &buf, ctx); in EC_POINT_point2hex() 27 if (buf_len == 0) in EC_POINT_point2hex() 30 ret = OPENSSL_malloc(buf_len * 2 + 2); in EC_POINT_point2hex() 37 for (i = buf_len; i > 0; i--) { in EC_POINT_point2hex()
|
A D | ec_key.c | 905 size_t buf_len; in ossl_ec_key_simple_priv2oct() local 907 buf_len = (EC_GROUP_order_bits(eckey->group) + 7) / 8; in ossl_ec_key_simple_priv2oct() 911 return buf_len; in ossl_ec_key_simple_priv2oct() 912 else if (len < buf_len) in ossl_ec_key_simple_priv2oct() 917 if (BN_bn2binpad(eckey->priv_key, buf, buf_len) == -1) { in ossl_ec_key_simple_priv2oct() 922 return buf_len; in ossl_ec_key_simple_priv2oct()
|
A D | ec_asn1.c | 1151 size_t buf_len = 0; in i2o_ECPublicKey() local 1159 buf_len = EC_POINT_point2oct(a->group, a->pub_key, in i2o_ECPublicKey() 1162 if (out == NULL || buf_len == 0) in i2o_ECPublicKey() 1164 return buf_len; in i2o_ECPublicKey() 1167 if ((*out = OPENSSL_malloc(buf_len)) == NULL) { in i2o_ECPublicKey() 1174 *out, buf_len, NULL)) { in i2o_ECPublicKey() 1183 *out += buf_len; in i2o_ECPublicKey() 1184 return buf_len; in i2o_ECPublicKey()
|
/openssl-master/crypto/objects/ |
A D | obj_dat.c | 460 if (buf != NULL && buf_len > 0) in OBJ_obj2txt() 528 buf_len--; in OBJ_obj2txt() 540 if (buf_len > 1) { in OBJ_obj2txt() 543 buf_len--; in OBJ_obj2txt() 546 if (i > buf_len) { in OBJ_obj2txt() 547 buf += buf_len; in OBJ_obj2txt() 548 buf_len = 0; in OBJ_obj2txt() 551 buf_len -= i; in OBJ_obj2txt() 562 if (i > buf_len) { in OBJ_obj2txt() 564 buf_len = 0; in OBJ_obj2txt() [all …]
|
/openssl-master/apps/ |
A D | s_time.c | 130 int min_version = 0, max_version = 0, ver, buf_len, fd; in s_time_main() local 284 buf_len = BIO_snprintf(buf, sizeof(buf), fmt_http_get_cmd, in s_time_main() 286 if (buf_len <= 0 || SSL_write(scon, buf, buf_len) <= 0) in s_time_main() 339 buf_len = BIO_snprintf(buf, sizeof(buf), fmt_http_get_cmd, www_path); in s_time_main() 340 if (buf_len <= 0 || SSL_write(scon, buf, buf_len) <= 0) in s_time_main() 366 buf_len = BIO_snprintf(buf, sizeof(buf), fmt_http_get_cmd, in s_time_main() 368 if (buf_len <= 0 || SSL_write(scon, buf, buf_len) <= 0) in s_time_main()
|
A D | pkeyutl.c | 721 int buf_len = 0; in do_raw_keyop() local 734 buf_len = BIO_read(in, mbuf, filesize); in do_raw_keyop() 735 if (buf_len != filesize) { in do_raw_keyop() 742 buf_len = BIO_read(in, mbuf, filesize); in do_raw_keyop() 743 if (buf_len != filesize) { in do_raw_keyop() 760 buf_len = BIO_read(in, tbuf, TBUF_MAXSIZE); in do_raw_keyop() 761 if (buf_len == 0) in do_raw_keyop() 763 if (buf_len < 0) { in do_raw_keyop() 777 buf_len = BIO_read(in, tbuf, TBUF_MAXSIZE); in do_raw_keyop() 778 if (buf_len == 0) in do_raw_keyop() [all …]
|
/openssl-master/crypto/asn1/ |
A D | a_sign.c | 159 int signid, paramtype, buf_len = 0; in ASN1_item_sign_ctx() local 262 buf_len = ASN1_item_i2d(data, &buf_in, it); in ASN1_item_sign_ctx() 263 if (buf_len <= 0) { in ASN1_item_sign_ctx() 268 inl = buf_len; in ASN1_item_sign_ctx()
|
A D | a_object.c | 181 int i2t_ASN1_OBJECT(char *buf, int buf_len, const ASN1_OBJECT *a) in i2t_ASN1_OBJECT() argument 183 return OBJ_obj2txt(buf, buf_len, a, 0); in i2t_ASN1_OBJECT()
|
/openssl-master/providers/implementations/ciphers/ |
A D | cipher_chacha20_poly1305_hw.c | 126 size_t tail, tohash_len, buf_len, plen = ctx->tls_payload_length; in chacha20_poly1305_tls_cipher() local 138 buf_len = (plen + 2 * CHACHA_BLK_SIZE - 1) & (0 - CHACHA_BLK_SIZE); in chacha20_poly1305_tls_cipher() 139 ChaCha20_ctr32(buf, zero, buf_len, ctx->chacha.key.d, ctx->chacha.counter); in chacha20_poly1305_tls_cipher() 163 ChaCha20_ctr32(buf, zero, (buf_len = 2 * CHACHA_BLK_SIZE), in chacha20_poly1305_tls_cipher() 195 ChaCha20_ctr32(buf, zero, (buf_len = CHACHA_BLK_SIZE), in chacha20_poly1305_tls_cipher() 244 OPENSSL_cleanse(buf, buf_len); in chacha20_poly1305_tls_cipher()
|
/openssl-master/doc/man3/ |
A D | ECDSA_SIG_new.pod | 167 int buf_len; 169 buf_len = ECDSA_size(eckey); 170 buffer = OPENSSL_malloc(buf_len); 172 if (ECDSA_sign(0, dgst, dgstlen, pp, &buf_len, eckey) == 0) 181 ret = ECDSA_verify(0, digest, 32, buffer, buf_len, eckey);
|
A D | OBJ_nid2obj.pod | 26 int OBJ_obj2txt(char *buf, int buf_len, const ASN1_OBJECT *a, int no_name); 28 int i2t_ASN1_OBJECT(char *buf, int buf_len, const ASN1_OBJECT *a); 75 at most I<buf_len> bytes are written, truncating the result if necessary. 183 Instead I<buf> must point to a valid buffer and I<buf_len> should
|
/openssl-master/include/openssl/ |
A D | objects.h | 72 int OBJ_obj2txt(char *buf, int buf_len, const ASN1_OBJECT *a, int no_name);
|
A D | asn1.h.in | 695 int i2t_ASN1_OBJECT(char *buf, int buf_len, const ASN1_OBJECT *a);
|
/openssl-master/crypto/ffc/ |
A D | ffc_params_generate.c | 192 unsigned char *buf, size_t buf_len, const BIGNUM *q, in generate_p() argument 234 for (k = (int)buf_len - 1; k >= 0; k--) { in generate_p() 244 if (!EVP_Digest(buf, buf_len, md, NULL, evpmd, NULL) in generate_p()
|
/openssl-master/providers/implementations/signature/ |
A D | rsa_sig.c | 221 size_t buf_len, in rsa_generate_signature_aid() argument 230 if (!WPACKET_init_der(&pkt, aid_buf, buf_len)) { in rsa_generate_signature_aid()
|
/openssl-master/test/ |
A D | ectest.c | 2403 size_t buf_len, name_len; in do_test_custom_explicit_fromdata() local 2488 OSSL_PKEY_PARAM_EC_GENERATOR, buf, sizeof(buf), &buf_len)) in do_test_custom_explicit_fromdata() 2489 || !TEST_mem_eq(buf, (int)buf_len, gen, gen_size)) in do_test_custom_explicit_fromdata() 2513 OSSL_PKEY_PARAM_EC_SEED, buf, sizeof(buf), &buf_len)) in do_test_custom_explicit_fromdata() 2514 || !TEST_mem_eq(buf, buf_len, EC_GROUP_get0_seed(group), in do_test_custom_explicit_fromdata()
|
/openssl-master/ |
A D | CHANGES.md | 17090 * New function OBJ_obj2txt(buf, buf_len, a, no_name), this converts
|