Home
last modified time | relevance | path

Searched refs:state (Results 1 – 25 of 137) sorted by relevance

123456

/openssl/crypto/evp/
H A Dctrl_params_translate.c155 typedef int fixup_args_fn(enum state state,
158 typedef int cleanup_args_fn(enum state state,
289 static int default_check(enum state state, in default_check() argument
707 cleanup_translation_ctx(enum state state, in cleanup_translation_ctx() argument
741 static int fix_cipher_md(enum state state, in fix_cipher_md() argument
798 static int fix_cipher(enum state state, in fix_cipher() argument
806 static int fix_md(enum state state, in fix_md() argument
814 static int fix_distid_len(enum state state, in fix_distid_len() argument
836 static int fix_kdf_type(enum state state, in fix_kdf_type() argument
948 static int fix_oid(enum state state, in fix_oid() argument
[all …]
/openssl/ssl/statem/
H A DREADME.md5 state machine code to aid future maintenance.
7 The state machine code replaces an older state machine present in OpenSSL
10 - Remove duplication of state code between client and server
11 - Remove duplication of state code between TLS and DTLS
19 - Separate message flow state from handshake state (in order to better
25 - Control complexity: only the state machine can change state: keep all
26 the state changes local to the state machine component
28 The message flow state machine is divided into a reading sub-state machine and a
32 Conceptually the state machine component is designed as follows:
42 | Core state machine code |
[all …]
H A Dstatem.c124 s->statem.state = MSG_FLOW_UNINITED; in ossl_statem_clear()
145 s->statem.state = MSG_FLOW_ERROR; in ossl_statem_send_fatal()
190 if (s->statem.state == MSG_FLOW_ERROR) in ossl_statem_in_error()
274 s->statem.state = MSG_FLOW_UNINITED; in ossl_statem_set_hello_verify_done()
357 if (st->state == MSG_FLOW_ERROR) { in state_machine()
388 if (st->state == MSG_FLOW_UNINITED in state_machine()
390 if (st->state == MSG_FLOW_UNINITED) { in state_machine()
472 st->state = MSG_FLOW_WRITING; in state_machine()
476 while (st->state != MSG_FLOW_FINISHED) { in state_machine()
477 if (st->state == MSG_FLOW_READING) { in state_machine()
[all …]
/openssl/crypto/md2/
H A Dmd2_dgst.c80 memset(c->state, 0, sizeof(c->state)); in MD2_Init()
127 MD2_INT state[48]; in md2_block() local
129 sp1 = c->state; in md2_block()
133 state[i] = sp1[i]; in md2_block()
134 state[i + 16] = t = d[i]; in md2_block()
135 state[i + 32] = (t ^ sp1[i]); in md2_block()
141 t = state[j + 0] ^= S[t]; in md2_block()
142 t = state[j + 1] ^= S[t]; in md2_block()
143 t = state[j + 2] ^= S[t]; in md2_block()
144 t = state[j + 3] ^= S[t]; in md2_block()
[all …]
/openssl/crypto/comp/
H A Dc_zlib.c126 struct zlib_state *state = OPENSSL_zalloc(sizeof(*state)); in zlib_stateful_init() local
128 if (state == NULL) in zlib_stateful_init()
150 ctx->data = state; in zlib_stateful_init()
153 OPENSSL_free(state); in zlib_stateful_init()
160 inflateEnd(&state->istream); in zlib_stateful_finish()
161 deflateEnd(&state->ostream); in zlib_stateful_finish()
162 OPENSSL_free(state); in zlib_stateful_finish()
172 if (state == NULL) in zlib_stateful_compress_block()
175 state->ostream.next_in = in; in zlib_stateful_compress_block()
193 if (state == NULL) in zlib_stateful_expand_block()
[all …]
/openssl/util/perl/OpenSSL/
H A DParseC.pm779 my %state = (
834 $state{current_line}++;
858 unless ($state{in_comment}) {
989 if ($state{in_string}) {
994 $state{in_string} = "";
1002 elsif ($state{in_comment}) {
1013 $state{in_comment} = "";
1051 if (!@{$state{$parens}}) {
1075 if (!@{$state{$parens}}
1101 $state{in_string} = $body;
[all …]
/openssl/providers/implementations/rands/
H A Dseed_src.c42 int state; member
62 s->state = EVP_RAND_STATE_UNINITIALISED; in seed_src_new()
78 s->state = EVP_RAND_STATE_READY; in seed_src_instantiate()
86 s->state = EVP_RAND_STATE_UNINITIALISED; in seed_src_uninstantiate()
100 if (s->state != EVP_RAND_STATE_READY) { in seed_src_generate()
102 s->state == EVP_RAND_STATE_ERROR ? PROV_R_IN_ERROR_STATE in seed_src_generate()
132 if (s->state != EVP_RAND_STATE_READY) { in seed_src_reseed()
134 s->state == EVP_RAND_STATE_ERROR ? PROV_R_IN_ERROR_STATE in seed_src_reseed()
147 if (p != NULL && !OSSL_PARAM_set_int(p, s->state)) in seed_src_get_ctx_params()
H A Ddrbg.c388 drbg->state = EVP_RAND_STATE_ERROR; in ossl_prov_drbg_instantiate()
462 drbg->state = EVP_RAND_STATE_READY; in ossl_prov_drbg_instantiate()
470 if (drbg->state == EVP_RAND_STATE_READY) in ossl_prov_drbg_instantiate()
484 drbg->state = EVP_RAND_STATE_UNINITIALISED; in ossl_prov_drbg_uninstantiate()
505 if (drbg->state != EVP_RAND_STATE_READY) { in ossl_prov_drbg_reseed()
539 drbg->state = EVP_RAND_STATE_ERROR; in ossl_prov_drbg_reseed()
585 drbg->state = EVP_RAND_STATE_READY; in ossl_prov_drbg_reseed()
594 if (drbg->state == EVP_RAND_STATE_READY) in ossl_prov_drbg_reseed()
619 if (drbg->state != EVP_RAND_STATE_READY) { in ossl_prov_drbg_generate()
678 drbg->state = EVP_RAND_STATE_ERROR; in ossl_prov_drbg_generate()
[all …]
/openssl/crypto/err/
H A Derr.c206 if (state == NULL) in ERR_STATE_free()
209 err_clear(state, i, 1); in ERR_STATE_free()
648 if (state == NULL) in err_delete_thread_state()
652 ERR_STATE_free(state); in err_delete_thread_state()
675 ERR_STATE *state; in ossl_err_get_state_int() local
685 if (state == (ERR_STATE*)-1) in ossl_err_get_state_int()
688 if (state == NULL) { in ossl_err_get_state_int()
693 state = CRYPTO_zalloc(sizeof(*state), NULL, 0); in ossl_err_get_state_int()
694 if (state == NULL) { in ossl_err_get_state_int()
711 return state; in ossl_err_get_state_int()
[all …]
/openssl/crypto/bio/
H A Dbss_conn.c20 int state; member
90 switch (c->state) { in conn_state()
99 c->state = BIO_CONN_S_GET_ADDR; in conn_state()
189 c->state = BIO_CONN_S_OK; in conn_state()
215 c->state = BIO_CONN_S_OK; in conn_state()
263 ret->state = BIO_CONN_S_BEFORE; in BIO_CONNECT_new()
301 if (c->state == BIO_CONN_S_OK) in conn_close_socket()
332 if (data->state != BIO_CONN_S_OK) { in conn_read()
363 if (data->state != BIO_CONN_S_OK) { in conn_write()
413 data->state = BIO_CONN_S_BEFORE; in conn_ctrl()
[all …]
H A Dbss_acpt.c19 int state; member
86 ba->state = ACPT_S_BEFORE; in acpt_new()
156 switch (c->state) { in acpt_state()
179 c->state = ACPT_S_GET_ADDR; in acpt_state()
243 c->state = ACPT_S_LISTEN; in acpt_state()
272 c->state = ACPT_S_ACCEPT; in acpt_state()
279 c->state = ACPT_S_OK; in acpt_state()
337 c->state = ACPT_S_OK; in acpt_state()
344 c->state = ACPT_S_ACCEPT; in acpt_state()
415 data->state = ACPT_S_BEFORE; in acpt_ctrl()
[all …]
H A Dbio_print.c100 int state; in _dopr() local
105 state = DP_S_DEFAULT; in _dopr()
110 while (state != DP_S_DONE) { in _dopr()
112 state = DP_S_DONE; in _dopr()
114 switch (state) { in _dopr()
146 state = DP_S_MIN; in _dopr()
157 state = DP_S_DOT; in _dopr()
159 state = DP_S_DOT; in _dopr()
163 state = DP_S_MAX; in _dopr()
166 state = DP_S_MOD; in _dopr()
[all …]
/openssl/doc/man3/
H A DSSL_in_init.pod11 - retrieve information about the handshake state machine
28 SSL_in_init() returns 1 if the SSL/TLS state machine is currently processing or
34 SSL_is_init_finished() returns 1 if the SSL/TLS connection is in a state where
48 SSL_get_state() returns a value indicating the current state of the handshake
49 state machine. OSSL_HANDSHAKE_STATE is an enumerated type where each value
50 indicates a discrete state machine state. Note that future versions of OpenSSL
52 state values. The naming format is made up of a number of elements as follows:
56 B<protocol> is one of TLS or DTLS. DTLS is used where a state is specific to the
93 SSL_get_state() returns the current handshake state.
H A DSSL_state_string.pod5 SSL_state_string, SSL_state_string_long - get textual description of state of an SSL object
16 SSL_state_string() returns an abbreviated string indicating the current state
19 SSL_state_string_long() returns a descriptive string indicating the current state of
24 During its use, an SSL objects passes several states. The state is internally
25 maintained. Querying the state information is not very informative before
33 For both blocking or nonblocking sockets, the details state information
H A DSSL_set_shutdown.pod5 SSL_set_shutdown, SSL_get_shutdown - manipulate shutdown state of an SSL connection
17 SSL_set_shutdown() sets the shutdown state of B<ssl> to B<mode>.
23 The shutdown state of an ssl connection is a bit-mask of:
45 The shutdown state of the connection is used to determine the state of
53 SSL_set_shutdown() can be used to set this state without sending a
H A DSSL_CTX_set_info_callback.pod24 obtain state information for SSL objects created from B<ctx> during connection
30 obtain state information for B<ssl> during connection setup and use.
42 When setting up a connection and during use, it is possible to obtain state
44 is called whenever a significant event occurs such as: the state changes,
59 Callback has been called to indicate state change or some other significant
60 state machine event. This may mean that the callback gets invoked more than once
61 per state in some situations.
105 The current state information can be obtained using the
119 The following example callback function prints state strings, information
H A DSSL_rstate_string.pod5 SSL_rstate_string, SSL_rstate_string_long - get textual description of state of an SSL object durin…
16 SSL_rstate_string() returns a 2 letter string indicating the current read state
19 SSL_rstate_string_long() returns a string indicating the current read state of
51 The read state is unknown. This should never happen.
/openssl/crypto/http/
H A Dhttp_client.c101 rctx->state = OHS_ERROR; in OSSL_HTTP_REQ_CTX_new()
209 rctx->state = OHS_ADD_HEADERS; in OSSL_HTTP_REQ_CTX_set_request_line()
245 && rctx->state != OHS_ERROR && rctx->state != OHS_ADD_HEADERS) { in OSSL_HTTP_REQ_CTX_set_expected()
559 switch (rctx->state) { in OSSL_HTTP_REQ_CTX_nbio()
563 rctx->state = OHS_ERROR; in OSSL_HTTP_REQ_CTX_nbio()
571 rctx->state = OHS_WRITE_HDR; in OSSL_HTTP_REQ_CTX_nbio()
613 rctx->state = OHS_FLUSH; in OSSL_HTTP_REQ_CTX_nbio()
628 rctx->state = OHS_ERROR; in OSSL_HTTP_REQ_CTX_nbio()
658 rctx->state = OHS_ERROR; in OSSL_HTTP_REQ_CTX_nbio()
665 rctx->state = OHS_ERROR; in OSSL_HTTP_REQ_CTX_nbio()
[all …]
/openssl/crypto/asn1/
H A Dbio_asn1.c41 asn1_bio_state_t state; member
126 ctx->state = ASN1_STATE_START; in asn1_bio_init()
170 switch (ctx->state) { in asn1_bio_write()
196 ctx->state = ASN1_STATE_HEADER_COPY; in asn1_bio_write()
210 ctx->state = ASN1_STATE_DATA_COPY; in asn1_bio_write()
230 ctx->state = ASN1_STATE_HEADER; in asn1_bio_write()
271 ctx->state = next; in asn1_bio_flush_ex()
289 ctx->state = ex_state; in asn1_bio_setup_ex()
291 ctx->state = other_state; in asn1_bio_setup_ex()
374 if (ctx->state == ASN1_STATE_HEADER) { in asn1_bio_ctrl()
[all …]
H A Dasn_mime.c605 char state, part, first; in multi_split() local
609 state = 0; in multi_split()
617 if (state == 1) { in multi_split()
620 } else if (state == 2) { in multi_split()
678 int len, state, save_state = 0; in STACK_OF() local
686 state = MIME_NAME; in STACK_OF()
688 state = MIME_START; in STACK_OF()
699 switch (state) { in STACK_OF()
702 state = MIME_TYPE; in STACK_OF()
722 state = MIME_NAME; in STACK_OF()
[all …]
/openssl/crypto/property/
H A Dproperty.c629 n = state->seed; in impl_cache_flush_cache()
633 state->seed = n; in impl_cache_flush_cache()
638 state->nelem++; in impl_cache_flush_cache()
646 state->cache = alg->cache; in impl_cache_flush_one_alg()
648 state); in impl_cache_flush_one_alg()
653 IMPL_CACHE_FLUSH state; in ossl_method_cache_flush_some() local
656 state.nelem = 0; in ossl_method_cache_flush_some()
657 state.using_global_seed = 0; in ossl_method_cache_flush_some()
660 state.using_global_seed = 1; in ossl_method_cache_flush_some()
665 store->cache_nelem = state.nelem; in ossl_method_cache_flush_some()
[all …]
/openssl/apps/
H A Dtsget.in20 my ($maxlength, $state) = @_;
22 my $data_len = length ${$state->{data}};
23 if ($state->{bytes} < $data_len) {
24 $data_len = $data_len - $state->{bytes};
26 $return_data = substr ${$state->{data}}, $state->{bytes}, $data_len;
27 $state->{bytes} += $data_len;
/openssl/crypto/aes/
H A Daes_core.c470 s1.d = state[c]; in MixColumns()
487 state[c] = s.d; in MixColumns()
498 s1.d = state[c]; in InvMixColumns()
523 state[c] = s.d; in InvMixColumns()
529 state[0] ^= w[0]; in AddRoundKey()
530 state[1] ^= w[1]; in AddRoundKey()
536 u64 state[2]; in Cipher() local
551 SubLong(&state[0]); in Cipher()
552 SubLong(&state[1]); in Cipher()
553 ShiftRows(state); in Cipher()
[all …]
/openssl/external/perl/Text-Template-1.56/lib/Text/
H A DTemplate.pm205 my $state = 'TEXT';
219 push @content, [ $state, $cur_item, $lineno ] if $cur_item ne '';
221 $state = 'PROG';
236 push @content, [ $state, $cur_item, $prog_start ] if $cur_item ne '';
237 $state = 'TEXT';
259 if ($state eq 'PROG') {
263 elsif ($state eq 'TEXT') {
264 push @content, [ $state, $cur_item, $lineno ] if $cur_item ne '';
/openssl/test/testutil/
H A Dfake_random.c21 int state; member
41 r->state = EVP_RAND_STATE_UNINITIALISED; in fake_rand_newctx()
58 frng->state = EVP_RAND_STATE_READY; in fake_rand_instantiate()
66 frng->state = EVP_RAND_STATE_UNINITIALISED; in fake_rand_uninstantiate()
102 if (p != NULL && !OSSL_PARAM_set_int(p, frng->state)) in fake_rand_get_ctx_params()

Completed in 93 milliseconds

123456