Home
last modified time | relevance | path

Searched refs:length (Results 1 – 25 of 587) sorted by relevance

12345678910>>...24

/openssl/crypto/asn1/
H A Dasn1_lib.c205 if (length <= 127) { in asn1_put_length()
208 len = length; in asn1_put_length()
215 length >>= 8; in asn1_put_length()
226 if (length < 0) in ASN1_object_size()
248 return ret + length; in ASN1_object_size()
321 str->length = len; in ASN1_STRING_set()
343 str->length = len; in ASN1_STRING_set0()
392 i = (a->length - b->length); in ASN1_STRING_cmp()
407 return x->length; in ASN1_STRING_length()
413 x->length = len; in ASN1_STRING_length_set()
[all …]
H A Dd2i_pr.c32 size_t len = length; in d2i_PrivateKey_decoder()
117 !ret->ameth->old_priv_decode(ret, &p, length)) { in ossl_d2i_PrivateKey_legacy()
122 p8 = d2i_PKCS8_PRIV_KEY_INFO(NULL, &p, length); in ossl_d2i_PrivateKey_legacy()
157 long length, OSSL_LIB_CTX *libctx, in d2i_PrivateKey_ex() argument
170 long length) in d2i_PrivateKey() argument
172 return d2i_PrivateKey_ex(type, a, pp, length, NULL, NULL); in d2i_PrivateKey()
177 long length, in d2i_AutoPrivateKey_legacy() argument
191 inkey = d2i_ASN1_SEQUENCE_ANY(NULL, &p, length); in d2i_AutoPrivateKey_legacy()
232 long length, OSSL_LIB_CTX *libctx, in d2i_AutoPrivateKey_ex() argument
245 long length) in d2i_AutoPrivateKey() argument
[all …]
H A Da_object.c41 memcpy(p, a->data, a->length); in i2d_ASN1_OBJECT()
245 int i, length; in ossl_c2i_ASN1_OBJECT() local
258 length = (int)len; in ossl_c2i_ASN1_OBJECT()
265 tobj.length = length; in ossl_c2i_ASN1_OBJECT()
302 if ((data == NULL) || (ret->length < length)) { in ossl_c2i_ASN1_OBJECT()
303 ret->length = 0; in ossl_c2i_ASN1_OBJECT()
310 memcpy(data, p, length); in ossl_c2i_ASN1_OBJECT()
319 ret->length = length; in ossl_c2i_ASN1_OBJECT()
323 p += length; in ossl_c2i_ASN1_OBJECT()
365 a->length = 0; in ASN1_OBJECT_free()
[all …]
H A Da_bitstr.c29 len = a->length; in ossl_i2c_ASN1_BIT_STRING()
162 if ((a->length < (w + 1)) || (a->data == NULL)) { in ASN1_BIT_STRING_set_bit()
165 c = OPENSSL_clear_realloc(a->data, a->length, w + 1); in ASN1_BIT_STRING_set_bit()
168 if (w + 1 - a->length > 0) in ASN1_BIT_STRING_set_bit()
169 memset(c + a->length, 0, w + 1 - a->length); in ASN1_BIT_STRING_set_bit()
171 a->length = w + 1; in ASN1_BIT_STRING_set_bit()
174 while ((a->length > 0) && (a->data[a->length - 1] == 0)) in ASN1_BIT_STRING_set_bit()
175 a->length--; in ASN1_BIT_STRING_set_bit()
188 if ((a == NULL) || (a->length < (w + 1)) || (a->data == NULL)) in ASN1_BIT_STRING_get_bit()
211 for (i = 0; i < a->length && ok; ++i) { in ASN1_BIT_STRING_check()
H A Dasn1_parse.c115 tot = p + length; in asn1_parse2()
116 while (length > 0) { in asn1_parse2()
124 length -= hl; in asn1_parse2()
137 if (len > length) { in asn1_parse2()
210 if (os != NULL && os->length > 0) { in asn1_parse2()
215 for (i = 0; i < os->length; i++) { in asn1_parse2()
253 length) ? os->length : dump), in asn1_parse2()
272 for (i = 0; i < ai->length; i++) { in asn1_parse2()
276 if (ai->length == 0) { in asn1_parse2()
302 if (ae->length == 0) { in asn1_parse2()
[all …]
H A Da_print.c48 if ((s->length % 4) != 0) in ASN1_UNIVERSALSTRING_to_string()
51 for (i = 0; i < s->length; i += 4) { in ASN1_UNIVERSALSTRING_to_string()
57 if (i < s->length) in ASN1_UNIVERSALSTRING_to_string()
60 for (i = 3; i < s->length; i += 4) { in ASN1_UNIVERSALSTRING_to_string()
64 s->length /= 4; in ASN1_UNIVERSALSTRING_to_string()
65 s->type = ASN1_PRINTABLE_type(s->data, s->length); in ASN1_UNIVERSALSTRING_to_string()
79 for (i = 0; i < v->length; i++) { in ASN1_STRING_print()
/openssl/crypto/buffer/
H A Dbuffer.c76 if (str->length >= len) { in BUF_MEM_grow()
77 str->length = len; in BUF_MEM_grow()
82 memset(&str->data[str->length], 0, len - str->length); in BUF_MEM_grow()
83 str->length = len; in BUF_MEM_grow()
101 memset(&str->data[str->length], 0, len - str->length); in BUF_MEM_grow()
102 str->length = len; in BUF_MEM_grow()
115 str->length = len; in BUF_MEM_grow_clean()
119 memset(&str->data[str->length], 0, len - str->length); in BUF_MEM_grow_clean()
120 str->length = len; in BUF_MEM_grow_clean()
138 memset(&str->data[str->length], 0, len - str->length); in BUF_MEM_grow_clean()
[all …]
/openssl/crypto/x509/
H A Dv3_addr.c107 if (bs->length < 0 || bs->length > length) in addr_expand()
109 if (bs->length > 0) { in addr_expand()
120 memset(addr + bs->length, fill, length - bs->length); in addr_expand()
139 if (bs->length < 0) in i2r_address()
161 for (i = 0; i < bs->length; i++) in i2r_address()
301 prefixlen_a = length * 8; in IPAddressOrRange_cmp()
316 prefixlen_b = length * 8; in IPAddressOrRange_cmp()
446 if (memcmp(min, max, length) > 0) in make_addressRange()
699 int len = ((a->length <= b->length) ? a->length : b->length); in IPAddressFamily_cmp()
702 return cmp ? cmp : a->length - b->length; in IPAddressFamily_cmp()
[all …]
H A Dx_x509.c206 length -= q - *pp; in d2i_X509_AUX()
207 if (length > 0 && !d2i_X509_CERT_AUX(&ret->aux, &q, length)) in d2i_X509_AUX()
228 int length, tmplen; in i2d_x509_aux_internal() local
236 length = i2d_X509(a, pp); in i2d_x509_aux_internal()
238 return length; in i2d_x509_aux_internal()
246 length += tmplen; in i2d_x509_aux_internal()
248 return length; in i2d_x509_aux_internal()
262 int length; in i2d_X509_AUX() local
271 return length; in i2d_X509_AUX()
280 if (length <= 0) { in i2d_X509_AUX()
[all …]
H A Dv3_ncons.c239 int len1 = ip->length >= 16 ? 16 : ip->length >= 4 ? 4 : ip->length; in print_nc_ipadd()
470 stmp.length = idlen; in NAME_CONSTRAINTS_check_CN()
635 if (base->length == 0) in nc_dns()
638 if (dns->length < base->length) in nc_dns()
645 if (dns->length > base->length) { in nc_dns()
646 dnsptr += dns->length - base->length; in nc_dns()
677 if (base->length > 0 && memchr(base->data, 0, base->length) != NULL) in nc_email_eai()
747 if (eml->length > base->length) { in nc_email()
748 emlptr += eml->length - base->length; in nc_email()
837 hostlen = ip->length; in nc_ip()
[all …]
H A Dv3_pci.c80 pci->proxyPolicy->policy->length, in i2r_pci()
141 memcpy(&(*policy)->data[(*policy)->length], in process_pci_value()
143 (*policy)->length += val_len; in process_pci_value()
144 (*policy)->data[(*policy)->length] = '\0'; in process_pci_value()
153 (*policy)->length = 0; in process_pci_value()
178 (*policy)->length = 0; in process_pci_value()
186 (*policy)->length += n; in process_pci_value()
187 (*policy)->data[(*policy)->length] = '\0'; in process_pci_value()
204 (*policy)->length += val_len; in process_pci_value()
205 (*policy)->data[(*policy)->length] = '\0'; in process_pci_value()
[all …]
H A Dx_attrib.c102 return ossl_bio_print_hex(out, str->data, str->length); in ossl_print_attribute_value()
108 av->value.bit_string->length); in ossl_print_attribute_value()
115 av->value.octet_string->length); in ossl_print_attribute_value()
134 av->value.generalstring->length, in ossl_print_attribute_value()
142 av->value.utf8string->length, in ossl_print_attribute_value()
173 av->value.sequence->length); in ossl_print_attribute_value()
191 av->value.set->length, indent, 1) > 0; in ossl_print_attribute_value()
203 av->value.visiblestring->length, in ossl_print_attribute_value()
208 av->value.printablestring->length, in ossl_print_attribute_value()
213 av->value.t61string->length, in ossl_print_attribute_value()
[all …]
/openssl/test/recipes/75-test_quicapi_data/
H A Dssltraceref-zlib.txt16 extensions, length = 216
79 Payload length: 1178
80 Token: <zero length token>
93 Payload length: 115
94 Token: <zero length token>
118 extensions, length = 46
130 Payload length: 1042
137 Payload length: 213
149 extensions, length = 86
291 Payload length: 1097
[all …]
H A Dssltraceref.txt16 extensions, length = 209
77 Payload length: 1178
78 Token: <zero length token>
91 Payload length: 115
92 Token: <zero length token>
116 extensions, length = 46
128 Payload length: 1042
135 Payload length: 213
147 extensions, length = 86
289 Payload length: 1097
[all …]
/openssl/crypto/des/
H A Dstr2key.c22 int i, length; in DES_string_to_key() local
25 length = strlen(str); in DES_string_to_key()
26 for (i = 0; i < length; i++) { in DES_string_to_key()
41 DES_cbc_cksum((const unsigned char *)str, key, length, &ks, key); in DES_string_to_key()
49 int i, length; in DES_string_to_2keys() local
53 length = strlen(str); in DES_string_to_2keys()
54 for (i = 0; i < length; i++) { in DES_string_to_2keys()
72 if (length <= 8) in DES_string_to_2keys()
77 DES_cbc_cksum((const unsigned char *)str, key1, length, &ks, key1); in DES_string_to_2keys()
79 DES_cbc_cksum((const unsigned char *)str, key2, length, &ks, key2); in DES_string_to_2keys()
H A Dpcbc_enc.c19 long length, DES_key_schedule *schedule, in DES_pcbc_encrypt() argument
34 for (; length > 0; length -= 8) { in DES_pcbc_encrypt()
35 if (length >= 8) { in DES_pcbc_encrypt()
39 c2ln(in, sin0, sin1, length); in DES_pcbc_encrypt()
53 for (; length > 0; length -= 8) { in DES_pcbc_encrypt()
61 if (length >= 8) { in DES_pcbc_encrypt()
65 l2cn(tout0, tout1, out, length); in DES_pcbc_encrypt()
/openssl/include/openssl/
H A Ddes.h83 long length, DES_key_schedule *schedule,
90 long length, DES_key_schedule *schedule, DES_cblock *ivec,
102 long length, DES_key_schedule *schedule, DES_cblock *ivec,
143 long length, DES_key_schedule *ks1,
148 long length, DES_key_schedule *ks1,
153 int numbits, long length, DES_key_schedule *ks1,
158 long length, DES_key_schedule *ks1,
170 long length, DES_key_schedule *schedule,
174 long length, int out_count, DES_cblock *seed);
198 long length, DES_key_schedule *schedule,
[all …]
H A Daes.h67 size_t length, const AES_KEY *key,
71 size_t length, const AES_KEY *key,
75 size_t length, const AES_KEY *key,
79 size_t length, const AES_KEY *key,
83 size_t length, const AES_KEY *key,
89 size_t length, const AES_KEY *key,
94 size_t length, const AES_KEY *key, const AES_KEY *key2,
/openssl/crypto/objects/
H A Dobj_lib.c38 if (o->length > 0 && (r->data = OPENSSL_memdup(o->data, o->length)) == NULL) in OBJ_dup()
41 r->length = o->length; in OBJ_dup()
60 ret = (a->length - b->length); in OBJ_cmp()
63 return memcmp(a->data, b->data, a->length); in OBJ_cmp()
/openssl/crypto/aes/
H A Daes_cfb.c26 size_t length, const AES_KEY *key, in AES_cfb128_encrypt() argument
30 CRYPTO_cfb128_encrypt(in, out, length, key, ivec, num, enc, in AES_cfb128_encrypt()
36 size_t length, const AES_KEY *key, in AES_cfb1_encrypt() argument
39 CRYPTO_cfb128_1_encrypt(in, out, length, key, ivec, num, enc, in AES_cfb1_encrypt()
44 size_t length, const AES_KEY *key, in AES_cfb8_encrypt() argument
47 CRYPTO_cfb128_8_encrypt(in, out, length, key, ivec, num, enc, in AES_cfb8_encrypt()
/openssl/crypto/camellia/
H A Dcmll_cfb.c26 size_t length, const CAMELLIA_KEY *key, in Camellia_cfb128_encrypt() argument
30 CRYPTO_cfb128_encrypt(in, out, length, key, ivec, num, enc, in Camellia_cfb128_encrypt()
36 size_t length, const CAMELLIA_KEY *key, in Camellia_cfb1_encrypt() argument
39 CRYPTO_cfb128_1_encrypt(in, out, length, key, ivec, num, enc, in Camellia_cfb1_encrypt()
44 size_t length, const CAMELLIA_KEY *key, in Camellia_cfb8_encrypt() argument
47 CRYPTO_cfb128_8_encrypt(in, out, length, key, ivec, num, enc, in Camellia_cfb8_encrypt()
/openssl/include/internal/
H A Dpacket.h452 size_t length; in PACKET_memdup() local
460 if (length == 0) in PACKET_memdup()
467 *len = length; in PACKET_memdup()
517 unsigned int length; in PACKET_get_length_prefixed_1() local
527 subpkt->remaining = length; in PACKET_get_length_prefixed_1()
539 unsigned int length; in PACKET_as_length_prefixed_1() local
550 subpkt->remaining = length; in PACKET_as_length_prefixed_1()
565 unsigned int length; in PACKET_get_length_prefixed_2() local
576 subpkt->remaining = length; in PACKET_get_length_prefixed_2()
588 unsigned int length; in PACKET_as_length_prefixed_2() local
[all …]
/openssl/ssl/record/methods/
H A Dtls13_meth.c125 memmove(rec->data, rec->input, rec->length); in tls13_cipher()
149 if (rec->length < rl->taglen + 1) in tls13_cipher()
151 rec->length -= rl->taglen; in tls13_cipher()
196 memcpy(rec->data + rec->length, tag, rl->taglen); in tls13_cipher()
197 rec->length += rl->taglen; in tls13_cipher()
235 || (size_t)(lenu + lenf) != rec->length) { in tls13_cipher()
245 rec->length += rl->taglen; in tls13_cipher()
267 if (rec->length > SSL3_RT_MAX_TLS13_ENCRYPTED_LENGTH) { in tls13_validate_record_header()
281 if (rec->length == 0 in tls13_post_process_record()
292 rec->length = end; in tls13_post_process_record()
[all …]
H A Ddtls_meth.c205 rr->length = 0; in dtls_process_record()
231 rr->length = 0; in dtls_process_record()
442 n2s(p, rr->length); in dtls_get_more_records()
465 rr->length = 0; in dtls_get_more_records()
472 rr->length = 0; in dtls_get_more_records()
483 rr->length = 0; in dtls_get_more_records()
495 more = rr->length; in dtls_get_more_records()
519 rr->length = 0; in dtls_get_more_records()
538 if (rr->length == 0) in dtls_get_more_records()
554 rr->length = 0; in dtls_get_more_records()
[all …]
/openssl/crypto/bio/
H A Dbss_mem.c100 b->length = sz; in BIO_new_mem_buf()
184 bbm->buf->length = bbm->readp->length; in mem_buf_sync()
200 ret = (outl >= 0 && (size_t)outl > bm->length) ? (int)bm->length : outl; in mem_read()
203 bm->length -= ret; in mem_read()
206 } else if (bm->length == 0) { in mem_read()
231 blen = bbm->readp->length; in mem_write()
258 remain = bm->length; in mem_ctrl()
281 bm->length = bo->length - num; in mem_ctrl()
295 ret = (long)bm->length; in mem_ctrl()
326 ret = (long)bm->length; in mem_ctrl()
[all …]

Completed in 63 milliseconds

12345678910>>...24