Home
last modified time | relevance | path

Searched refs:v (Results 1 – 25 of 235) sorted by relevance

12345678910

/openssl/crypto/conf/
H A Dkeysets.pl31 my $v;
35 $v = 0;
39 $v |= $UNDER if $c =~ /_/;
42 $v |= $ESC if $c =~ /\\/;
45 $v |= $DOLLAR if $c eq '$';
47 push(@V_def, $v);
49 $v = 0;
53 $v |= $UNDER if $c =~ /_/;
57 $v |= $FCOMMENT if $c =~ /;/;
58 $v |= $DOLLAR if $c eq '$';
[all …]
H A Dconf_api.c37 CONF_VALUE *v; in STACK_OF() local
40 if (v == NULL) in STACK_OF()
57 if (v != NULL) { in _CONF_add_string()
69 CONF_VALUE *v, vv; in _CONF_get_string() local
93 if (v == NULL) in _CONF_get_string()
95 return v->value; in _CONF_get_string()
193 if ((v = OPENSSL_malloc(sizeof(*v))) == NULL) in _CONF_new_section()
200 v->name = NULL; in _CONF_new_section()
206 return v; in _CONF_new_section()
210 if (v != NULL) in _CONF_new_section()
[all …]
/openssl/crypto/
H A Dquic_vlint.c9 buf[0] = (uint8_t)v; in ossl_quic_vlint_encode_n()
12 buf[1] = (uint8_t)v; in ossl_quic_vlint_encode_n()
15 buf[1] = (uint8_t)(v >> 16); in ossl_quic_vlint_encode_n()
16 buf[2] = (uint8_t)(v >> 8); in ossl_quic_vlint_encode_n()
17 buf[3] = (uint8_t)v; in ossl_quic_vlint_encode_n()
20 buf[1] = (uint8_t)(v >> 48); in ossl_quic_vlint_encode_n()
21 buf[2] = (uint8_t)(v >> 40); in ossl_quic_vlint_encode_n()
22 buf[3] = (uint8_t)(v >> 32); in ossl_quic_vlint_encode_n()
26 buf[7] = (uint8_t)v; in ossl_quic_vlint_encode_n()
32 ossl_quic_vlint_encode_n(buf, v, ossl_quic_vlint_encode_len(v)); in ossl_quic_vlint_encode()
[all …]
H A Dder_writer.c96 const void *v) in int_der_w_integer()
102 && put_bytes(pkt, v, &top_byte) in int_der_w_integer()
109 static int int_put_bytes_uint32(WPACKET *pkt, const void *v, in int_put_bytes_uint32() argument
112 const uint32_t *value = v; in int_put_bytes_uint32()
128 int ossl_DER_w_uint32(WPACKET *pkt, int tag, uint32_t v) in ossl_DER_w_uint32() argument
133 static int int_put_bytes_bn(WPACKET *pkt, const void *v, in int_put_bytes_bn() argument
137 size_t n = BN_num_bytes(v); in int_put_bytes_bn()
147 BN_bn2bin(v, p); in int_put_bytes_bn()
151 int ossl_DER_w_bn(WPACKET *pkt, int tag, const BIGNUM *v) in ossl_DER_w_bn() argument
153 if (v == NULL || BN_is_negative(v)) in ossl_DER_w_bn()
[all …]
H A Dthreads_pthread.c128 # define ATOMIC_STORE_N(t, p, v, o) __atomic_store_n(p, v, o) argument
129 # define ATOMIC_STORE(t, p, v, o) __atomic_store(p, v, o) argument
130 # define ATOMIC_EXCHANGE_N(t, p, v, o) __atomic_exchange_n(p, v, o) argument
131 # define ATOMIC_ADD_FETCH(p, v, o) __atomic_add_fetch(p, v, o) argument
132 # define ATOMIC_FETCH_ADD(p, v, o) __atomic_fetch_add(p, v, o) argument
133 # define ATOMIC_SUB_FETCH(p, v, o) __atomic_sub_fetch(p, v, o) argument
181 # define ATOMIC_STORE(t, p, v, o) fallback_atomic_store_##t(p, v) argument
211 *p += v;
225 *p += v; in fallback_atomic_fetch_add()
237 *p -= v; in fallback_atomic_sub_fetch()
[all …]
/openssl/test/
H A Digetest.c165 AES_ige_encrypt(v->in, buf, v->length, &key, iv, v->encrypt); in test_ige_vectors()
167 if (!TEST_mem_eq(v->out, v->length, buf, v->length)) { in test_ige_vectors()
170 test_output_memory("iv", v->iv, sizeof(v->iv)); in test_ige_vectors()
171 test_output_memory("in", v->in, v->length); in test_ige_vectors()
177 memcpy(buf, v->in, v->length); in test_ige_vectors()
180 if (!TEST_mem_eq(v->out, v->length, buf, v->length)) { in test_ige_vectors()
183 test_output_memory("iv", v->iv, sizeof(v->iv)); in test_ige_vectors()
184 test_output_memory("in", v->in, v->length); in test_ige_vectors()
209 AES_bi_ige_encrypt(v->in, buf, v->length, &key1, &key2, v->iv, in test_bi_ige_vectors()
212 if (!TEST_mem_eq(v->out, v->length, buf, v->length)) { in test_bi_ige_vectors()
[all …]
H A Dstack_test.c57 const int n = OSSL_NELEM(v); in test_int_stack()
97 sk_sint_push(s, v + i); in test_int_stack()
228 sk_uchar_insert(r, v, 0); in test_uchar_stack()
275 SS *v[10], *p; in test_SS_stack() local
282 v[i] = OPENSSL_malloc(sizeof(*v[i])); in test_SS_stack()
284 if (!TEST_ptr(v[i])) in test_SS_stack()
286 v[i]->n = i; in test_SS_stack()
287 v[i]->c = 'A' + i; in test_SS_stack()
292 sk_SS_push(s, v[i]); in test_SS_stack()
348 SU v[10]; in test_SU_stack() local
[all …]
H A Dverify_extra_test.c111 ASN1_OCTET_STRING *v = NULL, *v2 = NULL; in test_distinguishing_id() local
118 v = ASN1_OCTET_STRING_new(); in test_distinguishing_id()
119 if (v == NULL) in test_distinguishing_id()
122 if (!ASN1_OCTET_STRING_set(v, (unsigned char *)distid, in test_distinguishing_id()
124 ASN1_OCTET_STRING_free(v); in test_distinguishing_id()
128 X509_set0_distinguishing_id(x, v); in test_distinguishing_id()
146 ASN1_OCTET_STRING *v = NULL, *v2 = NULL; in test_req_distinguishing_id() local
157 v = ASN1_OCTET_STRING_new(); in test_req_distinguishing_id()
158 if (v == NULL) in test_req_distinguishing_id()
163 ASN1_OCTET_STRING_free(v); in test_req_distinguishing_id()
[all …]
H A Dsrptest.c34 BIGNUM *v = NULL; in run_srp() local
52 &s, &v, GN->N, GN->g))) in run_srp()
58 test_output_bignum("Verifier", v); in run_srp()
68 Bpub = SRP_Calc_B(b, GN->N, GN->g, v); in run_srp()
97 Kserver = SRP_Calc_server_key(Apub, v, u, b, GN->N); in run_srp()
115 BN_clear_free(v); in run_srp()
140 BIGNUM *v = NULL; in run_srp_kat() local
161 if (!TEST_true(check_bn("v", v, in run_srp_kat()
175 Bpub = SRP_Calc_B(b, GN->N, GN->g, v); in run_srp_kat()
229 Kserver = SRP_Calc_server_key(Apub, v, u, b, GN->N); in run_srp_kat()
[all …]
/openssl/providers/implementations/digests/
H A Dblake2b_prov.c160 uint64_t v[16]; in blake2b_compress() local
186 v[i] = S->h[i]; in blake2b_compress()
219 G(r,0,v[ 0],v[ 4],v[ 8],v[12]); \ in blake2b_compress()
220 G(r,1,v[ 1],v[ 5],v[ 9],v[13]); \ in blake2b_compress()
221 G(r,2,v[ 2],v[ 6],v[10],v[14]); \ in blake2b_compress()
222 G(r,3,v[ 3],v[ 7],v[11],v[15]); \ in blake2b_compress()
223 G(r,4,v[ 0],v[ 5],v[10],v[15]); \ in blake2b_compress()
224 G(r,5,v[ 1],v[ 6],v[11],v[12]); \ in blake2b_compress()
225 G(r,6,v[ 2],v[ 7],v[ 8],v[13]); \ in blake2b_compress()
226 G(r,7,v[ 3],v[ 4],v[ 9],v[14]); \ in blake2b_compress()
[all …]
H A Dblake2s_prov.c150 uint32_t v[16]; in blake2s_compress() local
176 v[i] = S->h[i]; in blake2s_compress()
209 G(r,0,v[ 0],v[ 4],v[ 8],v[12]); \ in blake2s_compress()
210 G(r,1,v[ 1],v[ 5],v[ 9],v[13]); \ in blake2s_compress()
211 G(r,2,v[ 2],v[ 6],v[10],v[14]); \ in blake2s_compress()
212 G(r,3,v[ 3],v[ 7],v[11],v[15]); \ in blake2s_compress()
213 G(r,4,v[ 0],v[ 5],v[10],v[15]); \ in blake2s_compress()
214 G(r,5,v[ 1],v[ 6],v[11],v[12]); \ in blake2s_compress()
215 G(r,6,v[ 2],v[ 7],v[ 8],v[13]); \ in blake2s_compress()
216 G(r,7,v[ 3],v[ 4],v[ 9],v[14]); \ in blake2s_compress()
[all …]
/openssl/util/
H A Dmkinstallvars.pl43 (my $k, my $v) = m|^([^=]*)=(.*)$|;
45 push @{$values{$k}}, $v;
59 my $v = $values{$k} || [ '.' ];
61 print STDERR "DEBUG: $k = $v->[0] => ";
62 $v = [ map { File::Spec->rel2abs($_) } @$v ];
63 $values{$k} = $v;
64 print STDERR "$k = $v->[0]\n";
83 foreach my $v (@$v2) {
85 push @{$values{$k}}, $v;
89 push @{$values{$kr}}, $v;
[all …]
/openssl/crypto/objects/
H A Dobj_dat.pl20 my ($v) = @_;
21 my @a = split(/\s+/, $v);
59 my $v = $1;
63 if ($v =~ /^SN_(.*)$/) {
83 $obj{$1} = $v;
84 $objd{$v} = $d;
132 $v =~ s/L//g;
133 $v =~ s/,/ /g;
224 my $v = $objd{$m};
225 $v =~ s/L//g;
[all …]
/openssl/apps/lib/
H A Dapp_x509.c25 ASN1_OCTET_STRING *v = ASN1_OCTET_STRING_new(); in mk_octet_string() local
27 if (v == NULL) { in mk_octet_string()
29 } else if (!ASN1_OCTET_STRING_set(v, value, (int)value_n)) { in mk_octet_string()
30 ASN1_OCTET_STRING_free(v); in mk_octet_string()
31 v = NULL; in mk_octet_string()
33 return v; in mk_octet_string()
43 ASN1_OCTET_STRING *v = mk_octet_string(value, value_n); in x509_ctrl() local
45 if (v == NULL) { in x509_ctrl()
51 X509_set0_distinguishing_id(object, v); in x509_ctrl()
69 if (v == NULL) { in x509_req_ctrl()
[all …]
/openssl/crypto/property/
H A Dproperty_parse.c113 v = v * 10 + (*s++ - '0'); in parse_number()
122 res->v.int_val = v; in parse_number()
149 v <<= 4; in parse_hex()
159 res->v.int_val = v; in parse_hex()
180 v = (v << 3) + (*s - '0'); in parse_oct()
189 res->v.int_val = v; in parse_oct()
246 v[i] = 0; in parse_unquoted()
271 res->v.int_val = -res->v.int_val; in parse_value()
364 memset(&prop->v, 0, sizeof(prop->v)); in ossl_parse_property()
421 memset(&prop->v, 0, sizeof(prop->v)); in ossl_parse_query()
[all …]
/openssl/include/internal/
H A Dquic_vlint.h39 static ossl_unused ossl_inline size_t ossl_quic_vlint_encode_len(uint64_t v) in ossl_quic_vlint_encode_len() argument
41 if (v < OSSL_QUIC_VLINT_2B_MIN) in ossl_quic_vlint_encode_len()
44 if (v < OSSL_QUIC_VLINT_4B_MIN) in ossl_quic_vlint_encode_len()
47 if (v < OSSL_QUIC_VLINT_8B_MIN) in ossl_quic_vlint_encode_len()
50 if (v <= OSSL_QUIC_VLINT_MAX) in ossl_quic_vlint_encode_len()
68 void ossl_quic_vlint_encode(unsigned char *buf, uint64_t v);
90 void ossl_quic_vlint_encode_n(unsigned char *buf, uint64_t v, int n);
123 int ossl_quic_vlint_decode(const unsigned char *buf, size_t buf_len, uint64_t *v);
H A Dhashtable.h186 pfx ossl_unused vtype *ossl_ht_##name##_##vtype##_from_value(HT_VALUE *v) \
189 if (v == NULL) \
191 if (v->type_id != expect_type) \
193 return (vtype *)v->value; \
198 HT_VALUE **v)\
204 *v = ossl_rcu_deref(&vv); \
205 return ossl_ht_##name##_##vtype##_from_value(*v); \
209 HT_VALUE *v) \
211 v->type_id = &name##_##vtype##_id; \
212 v->value = data; \
[all …]
/openssl/crypto/store/
H A Dstore_result.c88 OSSL_STORE_INFO **v = &cbdata->v; in ossl_store_handle_load_result() local
130 if (*v == NULL && !try_name(&helper_data, v)) in ossl_store_handle_load_result()
134 if (*v == NULL && !try_key(&helper_data, v, ctx, provider, libctx, propq)) in ossl_store_handle_load_result()
138 if (*v == NULL && !try_cert(&helper_data, v, libctx, propq)) in ossl_store_handle_load_result()
142 if (*v == NULL && !try_crl(&helper_data, v, libctx, propq)) in ossl_store_handle_load_result()
146 if (*v == NULL && !try_pkcs12(&helper_data, v, ctx, libctx, propq)) in ossl_store_handle_load_result()
150 if (*v == NULL) in ossl_store_handle_load_result()
153 return (*v != NULL); in ossl_store_handle_load_result()
449 if (*v == NULL) in try_key()
494 if (*v == NULL) in try_cert()
[all …]
/openssl/util/perl/OpenSSL/
H A Dconfig.pm66 $v =~ s/^[a-zA-Z]*\-//;
67 return $v;
320 my ( $k, $v ) = @$pair;
321 $v = $v->();
324 if ($v) {
357 my $v = `CC/VERSION NLA0:`;
364 ( $v =~ m/^
395 $v = 0;
400 if ($v > 500) {
403 $CCVER = $v;
[all …]
/openssl/crypto/perlasm/
H A Dx86_64-xlate.pl987 $v.=" 'CODE'";
989 $self->{value} = $v;
1030 $v="section $$line";
1035 $v.=" rdata align=";
1036 $v.=$1 eq "p"? 4 : 8;
1051 $v.="$$line\tSEGMENT";
1053 $v.=" READONLY";
1060 $v.=" READONLY ";
1124 my $v=undef;
1139 my $v=undef;
[all …]
/openssl/providers/implementations/kdfs/
H A Dpkcs12kdf.c56 size_t i, j, k, u, v; in pkcs12kdf_derive() local
73 v = (size_t)vi; in pkcs12kdf_derive()
74 D = OPENSSL_malloc(v); in pkcs12kdf_derive()
76 B = OPENSSL_malloc(v + 1); in pkcs12kdf_derive()
77 Slen = v * ((saltlen + v - 1) / v); in pkcs12kdf_derive()
79 Plen = v * ((passlen + v - 1) / v); in pkcs12kdf_derive()
86 for (i = 0; i < v; i++) in pkcs12kdf_derive()
95 || !EVP_DigestUpdate(ctx, D, v) in pkcs12kdf_derive()
112 for (j = 0; j < v; j++) in pkcs12kdf_derive()
114 for (j = 0; j < Ilen; j += v) { in pkcs12kdf_derive()
[all …]
/openssl/fuzz/
H A Dhashtable.c68 static int table_iterator(HT_VALUE *v, void *arg) in table_iterator() argument
71 FUZZER_VALUE *f = ossl_ht_fz_FUZZER_VALUE_from_value(v); in table_iterator()
81 static int filter_iterator(HT_VALUE *v, void *arg) in filter_iterator() argument
84 FUZZER_VALUE *f = ossl_ht_fz_FUZZER_VALUE_from_value(v); in filter_iterator()
92 static void fuzz_free_cb(HT_VALUE *v) in fuzz_free_cb() argument
94 FUZZER_VALUE *f = ossl_ht_fz_FUZZER_VALUE_from_value(v); in fuzz_free_cb()
127 HT_VALUE *v = NULL; in FuzzerTestOneInput() local
293 lval = ossl_ht_fz_FUZZER_VALUE_get(fuzzer_table, TO_HT_KEY(&key), &v); in FuzzerTestOneInput()
310 OPENSSL_assert(ossl_ht_fz_FUZZER_VALUE_type(v) == 1); in FuzzerTestOneInput()
312 v = ossl_ht_fz_FUZZER_VALUE_to_value(lval, &tv); in FuzzerTestOneInput()
[all …]
/openssl/.github/workflows/
H A Dwindows_comp.yml49 apps/openssl.exe version -v
50 apps/openssl.exe version -v | %{($_ -split '\s+')[1]}
51 apps/openssl.exe version -v | %{($_ -split '\s+')[1] -replace '([0-9]+\.[0-9]+)(\..*)','$1'}
57 …reg.exe add HKLM\SOFTWARE\OpenSSL-${Env:OSSL_VERSION}-openssl /v OPENSSLDIR /t REG_EXPAND_SZ /d TE…
58 …reg.exe add HKLM\SOFTWARE\OpenSSL-${Env:OSSL_VERSION}-openssl /v ENGINESDIR /t REG_EXPAND_SZ /d TE…
59 …reg.exe add HKLM\SOFTWARE\OpenSSL-${Env:OSSL_VERSION}-openssl /v MODULESDIR /t REG_EXPAND_SZ /d TE…
60 reg.exe query HKLM\SOFTWARE\OpenSSL-${Env:OSSL_VERSION}-openssl /v OPENSSLDIR /reg:32
108 apps/openssl.exe version -v
109 apps/openssl.exe version -v | %{($_ -split '\s+')[1]}
110 apps/openssl.exe version -v | %{($_ -split '\s+')[1] -replace '([0-9]+\.[0-9]+)(\..*)','$1'}
[all …]
/openssl/crypto/bn/asm/
H A Dco-586.pl161 $v=1;
162 $v=2 if (($i+1) == $tot);
165 { $v=0; }
178 if ($v)
249 $v=1;
250 $v=2 if ($i+1) == $tot;
253 { $v=0; }
254 if (!$v)
267 $c0,$c1,$c2,$v,$i,$na,$nb);
272 $c0,$c1,$c2,$v,$i,$na,$nb);
[all …]
/openssl/ssl/
H A Dtls_srp.c45 BN_free(ctx->srp_ctx.v); in ssl_ctx_srp_ctx_free_intern()
73 BN_free(s->srp_ctx.v); in ssl_srp_ctx_free_intern()
125 ((ctx->srp_ctx.v != NULL) && in ssl_srp_ctx_init_intern()
126 ((s->srp_ctx.v = BN_dup(ctx->srp_ctx.v)) == NULL)) || in ssl_srp_ctx_init_intern()
155 BN_free(s->srp_ctx.v); in ssl_srp_ctx_init_intern()
256 BN_clear_free(sc->srp_ctx.v); in SSL_set_srp_server_param_pw()
257 sc->srp_ctx.v = NULL; in SSL_set_srp_server_param_pw()
303 if (v != NULL) { in SSL_set_srp_server_param()
304 if (sc->srp_ctx.v != NULL) { in SSL_set_srp_server_param()
305 if (!BN_copy(sc->srp_ctx.v, v)) { in SSL_set_srp_server_param()
[all …]

Completed in 59 milliseconds

12345678910