/openssl/test/ |
H A D | gmdifftest.c | 22 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 D | ecdsatest.c | 191 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 D | aesni-mb-x86_64.pl | 216 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 D | aesni-x86_64.pl | 2923 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 D | bss_bio.c | 172 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 D | txt_db.c | 27 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 D | ocb128.c | 258 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 D | dso_win32.c | 305 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 D | err_prn.c | 31 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 D | ssl3_record_tls13.c | 29 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 D | record_local.h | 40 #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 D | ssl3_buffer.c | 18 b->offset = 0; in SSL3_BUFFER_set_data() 27 b->offset = 0; in SSL3_BUFFER_clear()
|
/openssl/crypto/asn1/ |
H A D | asn1_parse.c | 21 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 D | tasn_utl.c | 23 #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 D | a_time.c | 220 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 D | RSA_print.pod | 17 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 D | asn1parse.c | 73 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 D | tls13_meth.c | 64 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 D | tls_common.c | 183 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 D | bn_ctx.c | 359 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 D | openssl-asn1parse.pod.in | 16 [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 D | 70-test_sslcbcpadding.t | 54 foreach my $offset (@test_offsets) { 55 $bad_padding_offset = $offset;
|
/openssl/ssl/quic/ |
H A D | quic_wire.c | 117 || !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 D | ecp_nistp521-ppc64.pl | 115 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 D | keccak1600.c | 52 #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 …]
|