Home
last modified time | relevance | path

Searched refs:len (Results 1 – 25 of 766) sorted by relevance

12345678910>>...31

/openssl/crypto/modes/
H A Dcts128.c44 in += len; in CRYPTO_cts128_encrypt_block()
45 out += len; in CRYPTO_cts128_encrypt_block()
76 in += len; in CRYPTO_nistcts128_encrypt_block()
77 out += len; in CRYPTO_nistcts128_encrypt_block()
107 in += len; in CRYPTO_cts128_encrypt()
108 out += len; in CRYPTO_cts128_encrypt()
145 in += len; in CRYPTO_nistcts128_encrypt()
146 out += len; in CRYPTO_nistcts128_encrypt()
177 if (len) { in CRYPTO_cts128_decrypt_block()
224 if (len) { in CRYPTO_nistcts128_decrypt_block()
[all …]
H A Dcbc128.c31 if (len == 0) in CRYPTO_cbc128_encrypt()
37 while (len >= 16) { in CRYPTO_cbc128_encrypt()
42 len -= 16; in CRYPTO_cbc128_encrypt()
53 len -= 16; in CRYPTO_cbc128_encrypt()
59 while (len) { in CRYPTO_cbc128_encrypt()
66 if (len <= 16) in CRYPTO_cbc128_encrypt()
68 len -= 16; in CRYPTO_cbc128_encrypt()
86 if (len == 0) in CRYPTO_cbc128_decrypt()
155 while (len) { in CRYPTO_cbc128_decrypt()
163 if (len <= 16) { in CRYPTO_cbc128_decrypt()
[all …]
/openssl/crypto/rand/
H A Drand_pool.c75 pool->len = len; in ossl_rand_pool_attach()
155 pool->len = 0; in ossl_rand_pool_reattach()
201 if (len > pool->alloc_len - pool->len) { in rand_pool_grow()
206 if (pool->attached || len > pool->max_len - pool->len) { in rand_pool_grow()
213 while (len > newlen - pool->len); in rand_pool_grow()
304 if (len > pool->max_len - pool->len) { in ossl_rand_pool_add()
336 memcpy(pool->buffer + pool->len, buffer, len); in ossl_rand_pool_add()
337 pool->len += len; in ossl_rand_pool_add()
361 if (len > pool->max_len - pool->len) { in ossl_rand_pool_add_begin()
397 if (len > pool->alloc_len - pool->len) { in ossl_rand_pool_add_end()
[all …]
/openssl/providers/implementations/ciphers/
H A Dcipher_cts.c106 len -= residue; in cts128_cs1_encrypt()
111 return len; in cts128_cs1_encrypt()
113 in += len; in cts128_cs1_encrypt()
114 out += len; in cts128_cs1_encrypt()
144 return len; in cts128_cs1_decrypt()
148 if (len > 0) { in cts128_cs1_decrypt()
151 in += len; in cts128_cs1_decrypt()
206 return ctx->hw->cipher(ctx, out, in, len) ? len : 0; in cts128_cs3_encrypt()
216 in += len; in cts128_cs3_encrypt()
217 out += len; in cts128_cs3_encrypt()
[all …]
H A Dcipher_chacha20_poly1305_hw.c18 unsigned int len; in chacha_poly1305_tls_init() local
34 ctx->tls_payload_length = len; in chacha_poly1305_tls_init()
63 ctx->len.aad = 0; in chacha20_poly1305_initkey()
64 ctx->len.text = 0; in chacha20_poly1305_initkey()
82 ctx->len.aad = 0; in chacha20_poly1305_initiv()
83 ctx->len.text = 0; in chacha20_poly1305_initiv()
143 ctx->len.text = plen; in chacha20_poly1305_tls_cipher()
168 ctx->len.text = plen; in chacha20_poly1305_tls_cipher()
202 ctx->len.text = plen; in chacha20_poly1305_tls_cipher()
260 *out_padlen = len; in chacha20_poly1305_tls_cipher()
[all …]
/openssl/crypto/buffer/
H A Dbuffer.c77 str->length = len; in BUF_MEM_grow()
78 return len; in BUF_MEM_grow()
80 if (str->max >= len) { in BUF_MEM_grow()
84 return len; in BUF_MEM_grow()
97 len = 0; in BUF_MEM_grow()
104 return len; in BUF_MEM_grow()
114 memset(&str->data[len], 0, str->length - len); in BUF_MEM_grow_clean()
116 return len; in BUF_MEM_grow_clean()
121 return len; in BUF_MEM_grow_clean()
134 len = 0; in BUF_MEM_grow_clean()
[all …]
/openssl/crypto/evp/
H A De_chacha20_poly1305.c67 len--; in chacha_cipher()
71 if (len == 0) in chacha_cipher()
83 len -= rem; in chacha_cipher()
108 len -= blocks; in chacha_cipher()
176 actx->len.aad = 0; in chacha20_poly1305_init_key()
177 actx->len.text = 0; in chacha20_poly1305_init_key()
358 return len; in chacha20_poly1305_tls_cipher()
381 actx->len.aad = actx->len.text = 0; in chacha20_poly1305_cipher()
394 actx->len.aad += len; in chacha20_poly1305_cipher()
396 return len; in chacha20_poly1305_cipher()
[all …]
/openssl/crypto/
H A Driscv64cpuid.pl29 beqz $len,2f # len == 0
35 addi $len,$len,-1
38 bgtz $len,1b
45 my ($ptr,$len,$temp1,$temp2) = ('a0','a1','t0','t1');
55 beqz $len,2f # len == 0, return
56 srli $temp1,$len,4
62 addi $len,$len,-1
63 bnez $len,1b
72 addi $len,$len,-1
80 addi $len,$len,-8
[all …]
H A Driscv32cpuid.pl29 beqz $len,2f # len == 0
35 addi $len,$len,-1
38 bgtz $len,1b
45 my ($ptr,$len,$temp1,$temp2) = ('a0','a1','t0','t1');
55 beqz $len,2f # len == 0, return
56 srli $temp1,$len,4
62 addi $len,$len,-1
63 bnez $len,1b
72 addi $len,$len,-1
80 addi $len,$len,-4
[all …]
H A Dloongarch64cpuid.pl37 beqz $len,2f # len == 0
43 addi.d $len,$len,-1
46 blt $zero,$len,1b
53 my ($ptr,$len,$temp1,$temp2) = ($a0,$a1,$t0,$t1);
63 beqz $len,2f # len == 0, return
64 srli.d $temp1,$len,4
70 addi.d $len,$len,-1
71 bnez $len,1b
80 addi.d $len,$len,-1
88 addi.d $len,$len,-8
[all …]
H A Dpacket.c24 pkt->written += len; in WPACKET_allocate_bytes()
25 pkt->curr += len; in WPACKET_allocate_bytes()
59 reflen = (len > pkt->buf->length) ? len : pkt->buf->length; in WPACKET_reserve_bytes()
74 *allocbytes -= len; in WPACKET_reserve_bytes()
140 pkt->maxsize = (max < len) ? max : len; in WPACKET_init_static_len()
154 pkt->maxsize = len; in WPACKET_init_der()
216 for (data += len - 1; len > 0; len--) { in put_value()
447 if (len == 0) in WPACKET_memset()
454 memset(dest, ch, len); in WPACKET_memset()
463 if (len == 0) in WPACKET_memcpy()
[all …]
/openssl/include/internal/
H A Dpacket.h32 pkt->curr += len; in packet_forward()
33 pkt->remaining -= len; in packet_forward()
78 pkt->remaining = len; in PACKET_buf_init()
127 packet_forward(pkt, len); in PACKET_get_sub_packet()
387 packet_forward(pkt, len); in PACKET_get_bytes()
415 packet_forward(pkt, len); in PACKET_copy_bytes()
432 *len = 0; in PACKET_copy_all()
435 *len = pkt->remaining; in PACKET_copy_all()
456 *len = 0; in PACKET_memdup()
467 *len = length; in PACKET_memdup()
[all …]
/openssl/crypto/ct/
H A Dct_oct.c41 if (len <= 4) { in o2i_SCT_signature()
75 if (len == 0 || len > MAX_SCT_SIZE) { in o2i_SCT()
102 len -= 43; in o2i_SCT()
155 size_t len; in i2o_SCT_signature() local
192 return len; in i2o_SCT_signature()
200 size_t len; in i2o_SCT() local
219 return len; in i2o_SCT()
247 return len; in i2o_SCT()
259 if (len < 2 || len > MAX_SCT_LIST_SIZE) { in STACK_OF()
392 int len; in i2d_SCT_LIST() local
[all …]
/openssl/engines/asm/
H A De_padlock-x86_64.pl46 $len="%rcx";
150 mov \$1,$len
340 cmp %rax,$len
350 add $len,%rax
367 mov $len,%r10
374 shr \$3,$len
382 shr \$4,$len
406 shr \$3,$len
411 mov %r10,$len
449 shr \$3,$len
[all …]
/openssl/include/openssl/
H A Dmodes.h29 size_t len, const void *key,
33 size_t len, const void *key,
46 size_t len, const void *key,
119 size_t len);
121 size_t len);
124 size_t len);
127 size_t len);
135 size_t len);
165 size_t len, int enc);
204 size_t len);
[all …]
/openssl/crypto/asn1/
H A Dtasn_dec.c185 if (len <= 0) { in asn1_item_embed_d2i()
338 tmplen = len; in asn1_item_embed_d2i()
504 long len; in asn1_template_ex_d2i() local
709 long len; in asn1_d2i_ex_primitive() local
812 len = plen; in asn1_d2i_ex_primitive()
866 if (len) { in asn1_ex_c2i()
986 *in += len; in asn1_find_end()
1059 *in += len; in asn1_collect()
1105 int len; in collect_data() local
1124 if (len < 2) in asn1_check_eoc()
[all …]
H A Dasn1_lib.c25 if (len <= 0) { in _asn1_check_infinite_end()
50 long len; in ASN1_get_object() local
66 len = 0; in ASN1_get_object()
68 len <<= 7L; in ASN1_get_object()
75 len <<= 7L; in ASN1_get_object()
203 int i, len; in asn1_put_length() local
208 len = length; in asn1_put_length()
212 len = i; in asn1_put_length()
217 p += len; in asn1_put_length()
290 size_t len; in ASN1_STRING_set() local
[all …]
H A Da_mbstr.c54 if (len == -1) in ASN1_mbstring_ncopy()
58 if (len < 0) in ASN1_mbstring_ncopy()
65 if (len & 1) { in ASN1_mbstring_ncopy()
73 if (len & 3) { in ASN1_mbstring_ncopy()
91 nchar = len; in ASN1_mbstring_ncopy()
214 while (len) { in traverse_string()
217 len--; in traverse_string()
221 len -= 2; in traverse_string()
266 if (len <= 0) in out_utf8()
267 return len; in out_utf8()
[all …]
H A Da_d2i_fp.c43 int len; in ASN1_d2i_bio() local
46 if (len < 0) in ASN1_d2i_bio()
50 ret = d2i(x, &p, len); in ASN1_d2i_bio()
64 int len; in ASN1_item_d2i_bio_ex() local
69 if (len < 0) in ASN1_item_d2i_bio_ex()
117 size_t len = 0; in asn1_d2i_read_bio() local
132 diff = len - off; in asn1_d2i_read_bio()
136 if (len + want < len || !BUF_MEM_grow_clean(b, len + want)) { in asn1_d2i_read_bio()
146 if (len + i < len) { in asn1_d2i_read_bio()
150 len += i; in asn1_d2i_read_bio()
[all …]
H A Da_bitstr.c23 int ret, j, bits, len; in ossl_i2c_ASN1_BIT_STRING() local
29 len = a->length; in ossl_i2c_ASN1_BIT_STRING()
31 if (len > 0) { in ossl_i2c_ASN1_BIT_STRING()
35 for (; len > 0; len--) { in ossl_i2c_ASN1_BIT_STRING()
62 ret = 1 + len; in ossl_i2c_ASN1_BIT_STRING()
70 if (len > 0) { in ossl_i2c_ASN1_BIT_STRING()
71 memcpy(p, d, len); in ossl_i2c_ASN1_BIT_STRING()
72 p += len; in ossl_i2c_ASN1_BIT_STRING()
87 if (len < 1) { in ossl_c2i_ASN1_BIT_STRING()
92 if (len > INT_MAX) { in ossl_c2i_ASN1_BIT_STRING()
[all …]
/openssl/crypto/ec/
H A Decp_s390x_nistp.c104 param + S390X_OFF_SCALAR(len), len) == -1 in ec_GFp_s390x_nistp_mul()
106 || BN_bin2bn(param + S390X_OFF_RES_X(len), len, x) == NULL in ec_GFp_s390x_nistp_mul()
107 || BN_bin2bn(param + S390X_OFF_RES_Y(len), len, y) == NULL in ec_GFp_s390x_nistp_mul()
167 off = len - (dgstlen > len ? len : dgstlen); in ecdsa_s390x_nistp_sign_sig()
168 memcpy(param + S390X_OFF_H(len) + off, dgst, len - off); in ecdsa_s390x_nistp_sign_sig()
170 if (BN_bn2binpad(privkey, param + S390X_OFF_K(len), len) == -1) { in ecdsa_s390x_nistp_sign_sig()
207 if (BN_bin2bn(param + S390X_OFF_R(len), len, sig->r) == NULL in ecdsa_s390x_nistp_sign_sig()
264 off = len - (dgstlen > len ? len : dgstlen); in ecdsa_s390x_nistp_verify_sig()
265 memcpy(param + S390X_OFF_H(len) + off, dgst, len - off); in ecdsa_s390x_nistp_verify_sig()
271 || BN_bn2binpad(x, param + S390X_OFF_X(len), len) == -1 in ecdsa_s390x_nistp_verify_sig()
[all …]
/openssl/test/
H A Dmodes_internal_test.c98 sizeof(vector_##len), vector_##len \
158 memcpy(out, in, len); in last_blocks_correction()
173 len -= 16 + tail; in last_blocks_correction_nist()
176 memcpy(out + len, in + len + 16, tail); in last_blocks_correction_nist()
177 memcpy(out + len + tail, in + len, 16); in last_blocks_correction_nist()
178 len += 16 + tail; in last_blocks_correction_nist()
207 || !TEST_mem_eq(ciphertext, len, vector, len) in execute_cts128()
216 if (!TEST_true(len == size || len + 16 == size) in execute_cts128()
217 || !TEST_mem_eq(cleartext, len, test_input, len) in execute_cts128()
227 || !TEST_mem_eq(ciphertext, len, vector, len) in execute_cts128()
[all …]
/openssl/crypto/bio/
H A Dbio_dump.c23 void *u, const void *s, int len) in BIO_dump_cb() argument
25 return BIO_dump_indent_cb(cb, u, s, len, 0); in BIO_dump_cb()
44 rows = len / dump_width; in BIO_dump_indent_cb()
45 if ((rows * dump_width) < len) in BIO_dump_indent_cb()
52 if (((i * dump_width) + j) >= len) { in BIO_dump_indent_cb()
67 if (((i * dump_width) + j) >= len) in BIO_dump_indent_cb()
100 return UP_fwrite(data, len, 1, fp); in write_fp()
103 int BIO_dump_fp(FILE *fp, const void *s, int len) in BIO_dump_fp() argument
105 return BIO_dump_cb(write_fp, fp, s, len); in BIO_dump_fp()
119 int BIO_dump(BIO *bp, const void *s, int len) in BIO_dump() argument
[all …]
/openssl/crypto/perlasm/
H A Dsparcv9_modes.pl90 srlx $len, 4, $len
119 sub $len, 1, $len
200 srlx $len, 4, $len
226 sub $len, 1, $len
308 srlx $len, 4, $len
341 sub $len, 1, $len
447 sub $len, 2, $len
533 srlx $len, 4, $len
535 sub $len, 1, $len
596 srl $len, 0, $len
[all …]
/openssl/crypto/sha/
H A Dsha_ppc.c17 void sha256_block_p8(void *ctx, const void *inp, size_t len);
18 void sha256_block_ppc(void *ctx, const void *inp, size_t len);
19 void sha256_block_data_order(void *ctx, const void *inp, size_t len);
20 void sha256_block_data_order(void *ctx, const void *inp, size_t len) in sha256_block_data_order() argument
22 OPENSSL_ppccap_P & PPC_CRYPTO207 ? sha256_block_p8(ctx, inp, len) : in sha256_block_data_order()
23 sha256_block_ppc(ctx, inp, len); in sha256_block_data_order()
26 void sha512_block_p8(void *ctx, const void *inp, size_t len);
27 void sha512_block_ppc(void *ctx, const void *inp, size_t len);
28 void sha512_block_data_order(void *ctx, const void *inp, size_t len);
29 void sha512_block_data_order(void *ctx, const void *inp, size_t len) in sha512_block_data_order() argument
[all …]

Completed in 54 milliseconds

12345678910>>...31