Home
last modified time | relevance | path

Searched refs:offset (Results 1 – 25 of 55) sorted by relevance

123

/openssl/test/
H A Dgmdifftest.c22 static int check_time(long offset) in check_time() argument
31 t2 = t1 + offset; in check_time()
35 if (!TEST_true(OPENSSL_gmtime_adj(&tm1, 0, offset)) in check_time()
45 if (!TEST_long_eq(offset, toffset)) in check_time()
50 static int test_gmtime(int offset) in test_gmtime() argument
52 return check_time(offset) in test_gmtime()
53 && check_time(-offset) in test_gmtime()
54 && check_time(offset * 1000L) in test_gmtime()
55 && check_time(-offset * 1000L) in test_gmtime()
56 && check_time(offset * 1000000L) in test_gmtime()
[all …]
H A Decdsatest.c191 unsigned char dirt, offset, tbs[128]; in test_builtin() local
312 offset = tbs[0] % sig_len; in test_builtin()
314 sig[offset] ^= dirt; in test_builtin()
321 sig[offset] ^= dirt; in test_builtin()
/openssl/crypto/aes/asm/
H A Daesni-mb-x86_64.pl216 xor $offset,$offset
221 add \$16,$offset
224 sub $offset,$sink
494 xor $offset,$offset
499 add \$16,$offset
502 sub $offset,$sink
795 mov 64+8*$i(%rsp),$offset
807 lea (@ptr[$i],$offset),$offset
812 sub @ptr[$i],$offset
1116 lea (@ptr[$i],$offset),$offset
[all …]
H A Daesni-x86_64.pl2923 movdqa @offset[4],@offset[5]
2949 movdqa @offset[1],@offset[5]
2961 movdqa @offset[2],@offset[5]
2972 movdqa @offset[3],@offset[5]
3055 pxor @offset[5],@offset[0]
3057 pxor @offset[0],@offset[1]
3060 pxor @offset[1],@offset[2]
3063 pxor @offset[2],@offset[3]
3066 pxor @offset[3],@offset[4]
3069 pxor @offset[4],@offset[5]
[all …]
/openssl/crypto/bio/
H A Dbss_bio.c172 peer_b->offset += chunk; in bio_read()
175 peer_b->offset = 0; in bio_read()
180 peer_b->offset = 0; in bio_read()
258 peer_b->offset += num; in bio_nread()
261 peer_b->offset = 0; in bio_nread()
263 peer_b->offset = 0; in bio_nread()
530 b->offset = 0; in bio_ctrl()
628 b1->offset = 0; in bio_make_pair()
638 b2->offset = 0; in bio_make_pair()
671 peer_b->offset = 0; in bio_destroy_pair()
[all …]
/openssl/crypto/txt_db/
H A Dtxt_db.c27 int offset = 0; in TXT_DB_read() local
55 offset = 0; in TXT_DB_read()
57 if (offset != 0) { in TXT_DB_read()
62 buf->data[offset] = '\0'; in TXT_DB_read()
63 BIO_gets(in, &(buf->data[offset]), size - offset); in TXT_DB_read()
65 if (buf->data[offset] == '\0') in TXT_DB_read()
67 if ((offset == 0) && (buf->data[0] == '#')) in TXT_DB_read()
69 i = strlen(&(buf->data[offset])); in TXT_DB_read()
70 offset += i; in TXT_DB_read()
71 if (buf->data[offset - 1] != '\n') in TXT_DB_read()
[all …]
/openssl/crypto/modes/
H A Docb128.c258 ctx->sess.offset.c[15] |= in CRYPTO_ocb128_setiv()
369 ocb_block16_xor(&ctx->sess.offset, lookup, &ctx->sess.offset); in CRYPTO_ocb128_encrypt()
378 ocb_block16_xor(&ctx->sess.offset, &tmp, &tmp); in CRYPTO_ocb128_encrypt()
380 ocb_block16_xor(&ctx->sess.offset, &tmp, &tmp); in CRYPTO_ocb128_encrypt()
397 ocb_block16_xor(&ctx->sess.offset, &ctx->l_star, &ctx->sess.offset); in CRYPTO_ocb128_encrypt()
400 ctx->encrypt(ctx->sess.offset.c, pad.c, ctx->keyenc); in CRYPTO_ocb128_encrypt()
461 ocb_block16_xor(&ctx->sess.offset, lookup, &ctx->sess.offset); in CRYPTO_ocb128_decrypt()
467 ocb_block16_xor(&ctx->sess.offset, &tmp, &tmp); in CRYPTO_ocb128_decrypt()
469 ocb_block16_xor(&ctx->sess.offset, &tmp, &tmp); in CRYPTO_ocb128_decrypt()
489 ocb_block16_xor(&ctx->sess.offset, &ctx->l_star, &ctx->sess.offset); in CRYPTO_ocb128_decrypt()
[all …]
/openssl/crypto/dso/
H A Ddso_win32.c305 int len = 0, offset = 0; in win32_joiner() local
343 offset += 2; in win32_joiner()
347 result[offset] = '\\'; in win32_joiner()
348 offset++; in win32_joiner()
353 result[offset] = ':'; in win32_joiner()
354 offset++; in win32_joiner()
366 result[offset] = '\\'; in win32_joiner()
367 offset++; in win32_joiner()
379 result[offset] = '\\'; in win32_joiner()
380 offset++; in win32_joiner()
[all …]
/openssl/crypto/err/
H A Derr_prn.c31 int offset; in ERR_print_errors_cb() local
38 offset = strlen(buf); in ERR_print_errors_cb()
39 ossl_err_string_int(l, func, buf + offset, sizeof(buf) - offset); in ERR_print_errors_cb()
40 offset += strlen(buf + offset); in ERR_print_errors_cb()
41 BIO_snprintf(buf + offset, sizeof(buf) - offset, ":%s:%d:%s\n", in ERR_print_errors_cb()
/openssl/ssl/record/
H A Dssl3_record_tls13.c29 size_t taglen, offset, loop, hdrlen; in tls13_enc() local
115 offset = ivlen - SEQ_NUM_SIZE; in tls13_enc()
116 memcpy(iv, staticiv, offset); in tls13_enc()
118 iv[offset + loop] = staticiv[offset + loop] ^ seq[loop]; in tls13_enc()
H A Drecord_local.h40 #define SSL3_BUFFER_get_offset(b) ((b)->offset)
41 #define SSL3_BUFFER_set_offset(b, o) ((b)->offset = (o))
42 #define SSL3_BUFFER_add_offset(b, o) ((b)->offset += (o))
H A Dssl3_buffer.c18 b->offset = 0; in SSL3_BUFFER_set_data()
27 b->offset = 0; in SSL3_BUFFER_clear()
/openssl/crypto/asn1/
H A Dasn1_parse.c21 int offset, int depth, int indent, int dump);
22 static int asn1_print_info(BIO *bp, long offset, int depth, int hl, long len, in asn1_print_info() argument
38 offset, depth, (long)hl, len, p) <= 0) in asn1_print_info()
42 offset, depth, (long)hl, p) <= 0) in asn1_print_info()
95 int offset, int depth, int indent, int dump) in asn1_parse2() argument
128 if (!asn1_print_info(bp, (long)offset + (long)(op - *pp), depth, in asn1_parse2()
144 offset + (p - *pp), depth + 1, in asn1_parse2()
159 offset + (p - *pp), depth + 1, in asn1_parse2()
H A Dtasn_utl.c23 #define offset2ptr(addr, offset) (void *)(((char *) addr) + offset) argument
201 ASN1_VALUE **pvaltmp = offset2ptr(*pval, tt->offset); in ossl_asn1_get_field_ptr()
214 return offset2ptr(*pval, tt->offset); in ossl_asn1_get_const_field_ptr()
239 sfld = offset2ptr(val, adb->offset); in ossl_asn1_do_adb()
H A Da_time.c220 int offset = 0; in ossl_asn1_time_to_tm() local
245 offset = n * 3600; in ossl_asn1_time_to_tm()
247 offset += n * 60; in ossl_asn1_time_to_tm()
251 if (offset && !OPENSSL_gmtime_adj(&tmp, 0, offset * offsign)) in ossl_asn1_time_to_tm()
/openssl/doc/man3/
H A DRSA_print.pod17 int RSA_print(BIO *bp, const RSA *x, int offset);
18 int RSA_print_fp(FILE *fp, const RSA *x, int offset);
28 int DSA_print(BIO *bp, const DSA *x, int offset);
29 int DSA_print_fp(FILE *fp, const DSA *x, int offset);
49 The output lines are indented by B<offset> spaces.
/openssl/apps/
H A Dasn1parse.c73 int offset = 0, ret = 1, i, j; in asn1parse_main() local
118 offset = strtol(opt_arg(), NULL, 0); in asn1parse_main()
267 if (offset < 0 || offset >= num) { in asn1parse_main()
272 num -= offset; in asn1parse_main()
277 if (BIO_write(derout, str + offset, length) != (int)length) { in asn1parse_main()
284 const unsigned char *p = str + offset; in asn1parse_main()
/openssl/ssl/record/methods/
H A Dtls13_meth.c64 size_t ivlen, offset, loop, hdrlen; in tls13_cipher() local
119 offset = ivlen - SEQ_NUM_SIZE; in tls13_cipher()
120 memcpy(iv, staticiv, offset); in tls13_cipher()
122 iv[offset + loop] = staticiv[offset + loop] ^ seq[loop]; in tls13_cipher()
H A Dtls_common.c183 rb->offset = align; in tls_default_read_n()
189 pkt = rb->buf + rb->offset; in tls_default_read_n()
200 rb->offset = align; in tls_default_read_n()
203 rl->packet = rb->buf + rb->offset; in tls_default_read_n()
217 rb->offset = len + align; in tls_default_read_n()
236 rb->offset += n; in tls_default_read_n()
243 if (n > rb->len - rb->offset) { in tls_default_read_n()
256 if (max > rb->len - rb->offset) in tls_default_read_n()
257 max = rb->len - rb->offset; in tls_default_read_n()
318 rb->offset += n; in tls_default_read_n()
[all …]
/openssl/crypto/bn/
H A Dbn_ctx.c359 unsigned int offset = (p->used - 1) % BN_CTX_POOL_SIZE; in BN_POOL_release() local
363 bn_check_top(p->current->vals + offset); in BN_POOL_release()
364 if (offset == 0) { in BN_POOL_release()
365 offset = BN_CTX_POOL_SIZE - 1; in BN_POOL_release()
368 offset--; in BN_POOL_release()
/openssl/doc/man1/
H A Dopenssl-asn1parse.pod.in16 [B<-offset> I<number>]
22 [B<-strparse> I<offset>]
60 =item B<-offset> I<number>
62 Starting offset to begin parsing, default is start of file.
85 =item B<-strparse> I<offset>
87 Parse the contents octets of the ASN.1 object starting at B<offset>. This
137 offset in decimal. C<d=XX> specifies the current depth. The depth is increased
146 In this example the BIT STRING at offset 229 is the certificate public key.
/openssl/test/recipes/
H A D70-test_sslcbcpadding.t54 foreach my $offset (@test_offsets) {
55 $bad_padding_offset = $offset;
/openssl/ssl/quic/
H A Dquic_wire.c117 || !WPACKET_quic_write_vlint(pkt, f->offset) in ossl_quic_wire_encode_frame_crypto_hdr()
156 if (f->offset != 0) in ossl_quic_wire_encode_frame_stream_hdr()
167 if (f->offset != 0 && !WPACKET_quic_write_vlint(pkt, f->offset)) in ossl_quic_wire_encode_frame_stream_hdr()
532 || !PACKET_get_quic_vlint(pkt, &f->offset) in ossl_quic_wire_decode_frame_crypto()
582 if (!PACKET_get_quic_vlint(pkt, &f->offset)) in ossl_quic_wire_decode_frame_stream()
585 f->offset = 0; in ossl_quic_wire_decode_frame_stream()
/openssl/crypto/ec/asm/
H A Decp_nistp521-ppc64.pl115 my $offset = $i * 8;
117 lxsd $reg_list->[$i],$offset($pointer)
131 my $offset = $i * 16;
133 stxv $reg_list->[$i],$offset($pointer)
/openssl/crypto/sha/
H A Dkeccak1600.c52 #define ROL32(a, offset) (((a) << (offset)) | ((a) >> ((32 - (offset)) & 31))) argument
54 static uint64_t ROL64(uint64_t val, int offset) in ROL64() argument
56 if (offset == 0) { in ROL64()
59 return (val << offset) | (val >> (64-offset)); in ROL64()
63 if (offset & 1) { in ROL64()
66 offset >>= 1; in ROL64()
67 hi = ROL32(lo, offset); in ROL64()
68 lo = ROL32(tmp, offset + 1); in ROL64()
70 offset >>= 1; in ROL64()
71 lo = ROL32(lo, offset); in ROL64()
[all …]

Completed in 109 milliseconds

123