Home
last modified time | relevance | path

Searched refs:blen (Results 1 – 12 of 12) sorted by relevance

/openssl/test/
H A Dbio_addr_test.c84 size_t alen, blen; in bio_addr_is_eq() local
105 if (!BIO_ADDR_rawaddress(b, NULL, &blen)) in bio_addr_is_eq()
108 if (alen != blen) in bio_addr_is_eq()
119 bdata = OPENSSL_malloc(blen); in bio_addr_is_eq()
121 || !BIO_ADDR_rawaddress(b, bdata, &blen)) in bio_addr_is_eq()
H A Dbio_dgram_test.c495 int testresult = 0, blen, mtu1, mtu2, r; in test_bio_dgram_pair() local
555 blen = ((*(uint32_t*)scratch) % mtu1) + 1; in test_bio_dgram_pair()
556 r = BIO_write(bio1, scratch + 4, blen); in test_bio_dgram_pair()
560 if (!TEST_int_eq(r, blen)) in test_bio_dgram_pair()
563 total += blen; in test_bio_dgram_pair()
588 blen = ((*(uint32_t*)scratch) % mtu1) + 1; in test_bio_dgram_pair()
590 if (!TEST_int_eq(r, blen)) in test_bio_dgram_pair()
593 if (!TEST_mem_eq(scratch + 4, blen, scratch2, blen)) in test_bio_dgram_pair()
H A Ddhtest.c54 int i, alen, blen, clen, aout, bout, cout; in dh_test() local
214 blen = DH_size(b); in dh_test()
215 if (!TEST_ptr(bbuf = OPENSSL_malloc(blen)) in dh_test()
668 int i, alen, blen, aout, bout; in rfc7919_test() local
700 blen = DH_size(b); in rfc7919_test()
701 if (!TEST_int_gt(blen, 0) || !TEST_ptr(bbuf = OPENSSL_malloc(blen)) in rfc7919_test()
/openssl/crypto/asn1/
H A Da_int.c97 static size_t i2c_ibuf(const unsigned char *b, size_t blen, int neg, in i2c_ibuf() argument
104 if (b != NULL && blen) { in i2c_ibuf()
105 ret = blen; in i2c_ibuf()
119 for (pad = 0, i = 1; i < blen; i++) in i2c_ibuf()
128 blen = 0; /* reduce '(b == NULL || blen == 0)' to '(blen == 0)' */ in i2c_ibuf()
142 twos_complement(p, b, blen, pb); in i2c_ibuf()
213 static int asn1_get_uint64(uint64_t *pr, const unsigned char *b, size_t blen) in asn1_get_uint64() argument
218 if (blen > sizeof(*pr)) { in asn1_get_uint64()
224 for (r = 0, i = 0; i < blen; i++) { in asn1_get_uint64()
255 static int asn1_get_int64(int64_t *pr, const unsigned char *b, size_t blen, in asn1_get_int64() argument
[all …]
H A Dasn_mime.c56 static int mime_bound_check(char *line, int linelen, const char *bound, int blen);
613 int len, blen; in multi_split() local
619 blen = strlen(bound); in multi_split()
628 state = mime_bound_check(linebuf, len, bound, blen); in multi_split()
990 static int mime_bound_check(char *line, int linelen, const char *bound, int blen) in mime_bound_check() argument
994 if (blen == -1) in mime_bound_check()
995 blen = strlen(bound); in mime_bound_check()
997 if (blen + 2 > linelen) in mime_bound_check()
1000 if ((CHECK_AND_SKIP_PREFIX(line, "--")) && strncmp(line, bound, blen) == 0) in mime_bound_check()
1001 return HAS_PREFIX(line + blen, "--") ? 2 : 1; in mime_bound_check()
/openssl/apps/
H A Dengine.c65 const int blen = strlen(p); in append_buf() local
67 if (blen > 0) in append_buf()
68 len += 2 + blen; in append_buf()
81 if (blen > 0) { in append_buf()
82 p += blen; in append_buf()
/openssl/crypto/bio/
H A Dbss_mem.c217 int blen; in mem_write() local
231 blen = bbm->readp->length; in mem_write()
233 if (BUF_MEM_grow_clean(bbm->buf, blen + inl) == 0) in mem_write()
235 memcpy(bbm->buf->data + blen, in, inl); in mem_write()
/openssl/ssl/quic/
H A Dquic_wire_pkt.c661 size_t blen; in ossl_quic_wire_get_pkt_hdr_dst_conn_id() local
682 blen = (size_t)buf[5]; /* DCID Length */ in ossl_quic_wire_get_pkt_hdr_dst_conn_id()
683 if (blen > QUIC_MAX_CONN_ID_LEN in ossl_quic_wire_get_pkt_hdr_dst_conn_id()
684 || buf_len < QUIC_MIN_VALID_PKT_LEN + blen) in ossl_quic_wire_get_pkt_hdr_dst_conn_id()
687 dst_conn_id->id_len = (unsigned char)blen; in ossl_quic_wire_get_pkt_hdr_dst_conn_id()
688 memcpy(dst_conn_id->id, buf + 6, blen); in ossl_quic_wire_get_pkt_hdr_dst_conn_id()
/openssl/ssl/
H A Dt1_trce.c665 size_t blen; in ssl_print_hexbuf() local
670 blen = p[0]; in ssl_print_hexbuf()
672 blen = (blen << 8) | p[1]; in ssl_print_hexbuf()
673 if (*pmsglen < nlen + blen) in ssl_print_hexbuf()
676 ssl_print_hex(bio, indent, name, p, blen); in ssl_print_hexbuf()
677 *pmsg += blen + nlen; in ssl_print_hexbuf()
678 *pmsglen -= blen + nlen; in ssl_print_hexbuf()
H A Dssl_cert.c708 int alen, blen, ret; in xname_cmp() local
714 blen = i2d_X509_NAME((X509_NAME *)b, &bbuf); in xname_cmp()
716 if (alen < 0 || blen < 0) in xname_cmp()
718 else if (alen != blen) in xname_cmp()
719 ret = alen - blen; in xname_cmp()
/openssl/crypto/hpke/
H A Dhpke.c419 unsigned char *buf, size_t blen) in hpke_seqnonce2buf() argument
424 if (ctx == NULL || blen < sizeof(seq_copy) || blen != ctx->noncelen) in hpke_seqnonce2buf()
427 memset(buf, 0, blen); in hpke_seqnonce2buf()
429 buf[blen - i - 1] = seq_copy & 0xff; in hpke_seqnonce2buf()
432 for (i = 0; i < blen; i++) in hpke_seqnonce2buf()
434 return blen; in hpke_seqnonce2buf()
/openssl/crypto/x509/
H A Dv3_utl.c833 unsigned int flags, const char *b, size_t blen, in do_check_string() argument
844 rv = equal(a->data, a->length, (unsigned char *)b, blen, flags); in do_check_string()
845 else if (a->length == (int)blen && !memcmp(a->data, b, blen)) in do_check_string()
863 rv = equal(astr, astrlen, (unsigned char *)b, blen, flags); in do_check_string()

Completed in 53 milliseconds