/openssl/crypto/asn1/ |
H A D | asn1_lib.c | 205 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 D | d2i_pr.c | 32 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 D | a_object.c | 41 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 D | a_bitstr.c | 29 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 D | asn1_parse.c | 115 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 D | a_print.c | 48 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 D | buffer.c | 76 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 D | v3_addr.c | 107 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 D | x_x509.c | 206 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 D | v3_ncons.c | 239 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 D | v3_pci.c | 80 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 D | x_attrib.c | 102 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 D | ssltraceref-zlib.txt | 16 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 D | ssltraceref.txt | 16 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 D | str2key.c | 22 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 D | pcbc_enc.c | 19 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 D | des.h | 83 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 D | aes.h | 67 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 D | obj_lib.c | 38 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 D | aes_cfb.c | 26 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 D | cmll_cfb.c | 26 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 D | packet.h | 452 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 D | tls13_meth.c | 125 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 D | dtls_meth.c | 205 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 D | bss_mem.c | 100 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 …]
|