Home
last modified time | relevance | path

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

123456789

/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
708 cleanup_translation_ctx(enum state state, in cleanup_translation_ctx() argument
742 static int fix_cipher_md(enum state state, in fix_cipher_md() argument
799 static int fix_cipher(enum state state, in fix_cipher() argument
807 static int fix_md(enum state state, in fix_md() argument
815 static int fix_distid_len(enum state state, in fix_distid_len() argument
837 static int fix_kdf_type(enum state state, in fix_kdf_type() argument
949 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.c131 s->statem.state = MSG_FLOW_UNINITED; in ossl_statem_clear()
152 s->statem.state = MSG_FLOW_ERROR; in ossl_statem_send_fatal()
196 if (s->statem.state == MSG_FLOW_ERROR) in ossl_statem_in_error()
280 s->statem.state = MSG_FLOW_UNINITED; in ossl_statem_set_hello_verify_done()
364 if (st->state == MSG_FLOW_ERROR) { in state_machine()
395 if (st->state == MSG_FLOW_UNINITED in state_machine()
397 if (st->state == MSG_FLOW_UNINITED) { in state_machine()
475 st->state = MSG_FLOW_WRITING; in state_machine()
479 while (st->state != MSG_FLOW_FINISHED) { in state_machine()
480 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.c121 struct zlib_state *state = OPENSSL_zalloc(sizeof(*state)); in zlib_stateful_init() local
123 if (state == NULL) in zlib_stateful_init()
145 ctx->data = state; in zlib_stateful_init()
148 OPENSSL_free(state); in zlib_stateful_init()
155 inflateEnd(&state->istream); in zlib_stateful_finish()
156 deflateEnd(&state->ostream); in zlib_stateful_finish()
157 OPENSSL_free(state); in zlib_stateful_finish()
167 if (state == NULL) in zlib_stateful_compress_block()
170 state->ostream.next_in = in; in zlib_stateful_compress_block()
190 if (state == NULL) in zlib_stateful_expand_block()
[all …]
H A Dc_brotli.c115 struct brotli_state *state = OPENSSL_zalloc(sizeof(*state)); in brotli_stateful_init() local
117 if (state == NULL) in brotli_stateful_init()
121 if (state->encoder == NULL) in brotli_stateful_init()
125 if (state->decoder == NULL) in brotli_stateful_init()
128 ctx->data = state; in brotli_stateful_init()
133 OPENSSL_free(state); in brotli_stateful_init()
141 if (state != NULL) { in brotli_stateful_finish()
144 OPENSSL_free(state); in brotli_stateful_finish()
387 BrotliDecoderState *state; member
396 BrotliEncoderState *state; member
[all …]
H A Dc_zstd.c141 struct zstd_state *state = OPENSSL_zalloc(sizeof(*state)); in zstd_stateful_init() local
143 if (state == NULL) in zstd_stateful_init()
151 if (state->compressor == NULL) in zstd_stateful_init()
164 ctx->data = state; in zstd_stateful_init()
169 OPENSSL_free(state); in zstd_stateful_init()
177 if (state != NULL) { in zstd_stateful_finish()
180 OPENSSL_free(state); in zstd_stateful_finish()
202 if (state == NULL) in zstd_stateful_compress_block()
261 if (state == NULL) in zstd_stateful_expand_block()
457 ZSTD_DStream *state; member
[all …]
/openssl/doc/man3/
H A DOSSL_ERR_STATE_save.pod20 These functions save and restore the error state from the thread
21 local error state to a preallocated error state structure.
23 OSSL_ERR_STATE_new() allocates an empty error state structure to
24 be used when saving and restoring thread error state.
26 OSSL_ERR_STATE_save() saves the thread error state to I<es>. It
28 state in I<es> is cleared prior to saving the new state.
33 marked ERR and any ERR state before it remains part of the thread error state
43 saved state I<es> to the thread error state. Existing entries in
46 entries is duplicated on adding to the thread state.
48 OSSL_ERR_STATE_free() frees the saved error state I<es>.
[all …]
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
50 SSL_get_state() returns a value indicating the current state of the handshake
51 state machine. OSSL_HANDSHAKE_STATE is an enumerated type where each value
52 indicates a discrete state machine state. Note that future versions of OpenSSL
54 state values. The naming format is made up of a number of elements as follows:
58 B<protocol> is one of TLS or DTLS. DTLS is used where a state is specific to the
95 SSL_get_state() returns the current handshake state.
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
66 SSL_get_shutdown() returns the current shutdown state as set or based
67 on the actual connection 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
/openssl/fuzz/
H A Dquic-client.c64 int state = HANDSHAKING; in FuzzerTestOneInput() local
130 if (state == READING) in FuzzerTestOneInput()
134 if (state == READING) in FuzzerTestOneInput()
138 if (state == READING) in FuzzerTestOneInput()
155 switch (state) { in FuzzerTestOneInput()
159 state = READING; in FuzzerTestOneInput()
165 state = WRITING; in FuzzerTestOneInput()
174 state = READING; in FuzzerTestOneInput()
178 state = READING; in FuzzerTestOneInput()
191 state = READING; in FuzzerTestOneInput()
[all …]
/openssl/ssl/quic/
H A Dquic_rcidm.c251 assert(rcid->state == RCID_STATE_PENDING in rcidm_check_rcid()
252 || rcid->state == RCID_STATE_CUR in rcidm_check_rcid()
254 assert((rcid->state == RCID_STATE_PENDING) in rcidm_check_rcid()
256 assert((rcid->state == RCID_STATE_CUR) in rcidm_check_rcid()
361 rcid->state = RCID_STATE_PENDING; in rcidm_create_rcid()
382 unsigned int old_state = rcid->state; in rcidm_transition_rcid()
384 assert(state >= old_state && state <= RCID_STATE_RETIRING); in rcidm_transition_rcid()
386 if (state == old_state) in rcidm_transition_rcid()
399 rcid->state = state; in rcidm_transition_rcid()
401 if (state == RCID_STATE_CUR) { in rcidm_transition_rcid()
[all …]
H A Dquic_record_shared.c32 switch (el->state) { in ossl_qrl_enc_level_set_get()
49 switch (el->state) { in ossl_qrl_enc_level_set_have_el()
230 el->state = QRL_EL_STATE_UNPROV; in ossl_qrl_enc_level_set_provide_secret()
233 if (el->state != QRL_EL_STATE_UNPROV) { in ossl_qrl_enc_level_set_provide_secret()
327 el->state = QRL_EL_STATE_PROV_NORMAL; in ossl_qrl_enc_level_set_provide_secret()
357 if (el->state != QRL_EL_STATE_PROV_NORMAL) { in ossl_qrl_enc_level_set_key_update()
367 el->state = QRL_EL_STATE_PROV_UPDATING; in ossl_qrl_enc_level_set_key_update()
413 el->state = QRL_EL_STATE_PROV_COOLDOWN; in ossl_qrl_enc_level_set_key_update_done()
433 if (el->state == QRL_EL_STATE_PROV_UPDATING in ossl_qrl_enc_level_set_key_cooldown_done()
463 el->state = QRL_EL_STATE_PROV_NORMAL; in ossl_qrl_enc_level_set_key_cooldown_done()
[all …]
/openssl/util/perl/OpenSSL/
H A DParseC.pm785 my %state = (
840 $state{current_line}++;
864 unless ($state{in_comment}) {
995 if ($state{in_string}) {
1000 $state{in_string} = "";
1008 elsif ($state{in_comment}) {
1019 $state{in_comment} = "";
1057 if (!@{$state{$parens}}) {
1081 if (!@{$state{$parens}}
1107 $state{in_string} = $body;
[all …]
/openssl/include/internal/
H A Dthread_arch.h68 # define CRYPTO_THREAD_GET_STATE(THREAD, FLAG) ((THREAD)->state & (FLAG))
69 # define CRYPTO_THREAD_GET_ERROR(THREAD, FLAG) (((THREAD)->state >> 16) & (FLAG))
72 uint32_t state; member
89 (THREAD)->state &= ~(FLAG); \
94 (THREAD)->state |= (FLAG); \
99 (THREAD)->state |= ((FLAG) << 16); \
104 (THREAD)->state &= ~((FLAG) << 16); \
/openssl/crypto/bio/
H A Dbss_conn.c20 int state; member
107 c->state = BIO_CONN_S_CONNECT_ERROR; in conn_create_dgram_bio()
120 switch (c->state) { in conn_state()
226 c->state = BIO_CONN_S_OK; in conn_state()
300 ret->state = BIO_CONN_S_BEFORE; in BIO_CONNECT_new()
339 if (c->state == BIO_CONN_S_OK) in conn_close_socket()
372 if (data->state != BIO_CONN_S_OK) { in conn_read()
410 if (data->state != BIO_CONN_S_OK) { in conn_write()
782 if (data->state != BIO_CONN_S_OK) { in conn_gets()
829 if (data->state != BIO_CONN_S_OK) { in conn_sendmmsg()
[all …]
/openssl/doc/designs/quic-design/
H A Dconnection-state-machine.md14 - The Open state;
16 - The Terminated state, which is the terminal state.
97 state from Initial Exchange A.
163 to the Open state.
165 - The Open state is the steady state of the connection. It is a single state.
217 - The Terminated state is the terminal state of a connection.
222 totally quiescent state. The state associated with the connection may now be
233 no state change occurs.
433 <td>[terminal state]</td>
507 `ESTABLISHING.PROACTIVE_VER_NEG` state, which reenters that state to trigger
[all …]
/openssl/providers/implementations/rands/
H A Dseed_src_jitter.c47 int state; member
112 s->state = EVP_RAND_STATE_ERROR; in get_jitter_random_value()
133 s->state = EVP_RAND_STATE_UNINITIALISED; in jitter_new()
154 s->state = EVP_RAND_STATE_ERROR; in jitter_instantiate()
158 s->state = EVP_RAND_STATE_READY; in jitter_instantiate()
166 s->state = EVP_RAND_STATE_UNINITIALISED; in jitter_uninstantiate()
180 if (s->state != EVP_RAND_STATE_READY) { in jitter_generate()
182 s->state == EVP_RAND_STATE_ERROR ? PROV_R_IN_ERROR_STATE in jitter_generate()
212 if (s->state != EVP_RAND_STATE_READY) { in jitter_reseed()
214 s->state == EVP_RAND_STATE_ERROR ? PROV_R_IN_ERROR_STATE in jitter_reseed()
[all …]
H A Dseed_src.c42 int state; member
60 s->state = EVP_RAND_STATE_UNINITIALISED; in seed_src_new()
76 s->state = EVP_RAND_STATE_READY; in seed_src_instantiate()
84 s->state = EVP_RAND_STATE_UNINITIALISED; in seed_src_uninstantiate()
98 if (s->state != EVP_RAND_STATE_READY) { in seed_src_generate()
100 s->state == EVP_RAND_STATE_ERROR ? PROV_R_IN_ERROR_STATE in seed_src_generate()
130 if (s->state != EVP_RAND_STATE_READY) { in seed_src_reseed()
132 s->state == EVP_RAND_STATE_ERROR ? PROV_R_IN_ERROR_STATE in seed_src_reseed()
145 if (p != NULL && !OSSL_PARAM_set_int(p, s->state)) in seed_src_get_ctx_params()
H A Ddrbg.c381 drbg->state = EVP_RAND_STATE_ERROR; in ossl_prov_drbg_instantiate()
455 drbg->state = EVP_RAND_STATE_READY; in ossl_prov_drbg_instantiate()
463 if (drbg->state == EVP_RAND_STATE_READY) in ossl_prov_drbg_instantiate()
477 drbg->state = EVP_RAND_STATE_UNINITIALISED; in ossl_prov_drbg_uninstantiate()
494 if (drbg->state != EVP_RAND_STATE_READY) { in ossl_prov_drbg_reseed_unlocked()
528 drbg->state = EVP_RAND_STATE_ERROR; in ossl_prov_drbg_reseed_unlocked()
574 drbg->state = EVP_RAND_STATE_READY; in ossl_prov_drbg_reseed_unlocked()
583 if (drbg->state == EVP_RAND_STATE_READY) in ossl_prov_drbg_reseed_unlocked()
637 if (drbg->state != EVP_RAND_STATE_READY) { in ossl_prov_drbg_generate()
696 drbg->state = EVP_RAND_STATE_ERROR; in ossl_prov_drbg_generate()
[all …]
/openssl/crypto/http/
H A Dhttp_client.c105 rctx->state = OHS_ERROR; in OSSL_HTTP_REQ_CTX_new()
221 rctx->state = OHS_ADD_HEADERS; in OSSL_HTTP_REQ_CTX_set_request_line()
257 && rctx->state != OHS_ERROR && rctx->state != OHS_ADD_HEADERS) { in OSSL_HTTP_REQ_CTX_set_expected()
591 switch (rctx->state) { in OSSL_HTTP_REQ_CTX_nbio()
595 rctx->state = OHS_ERROR; in OSSL_HTTP_REQ_CTX_nbio()
649 rctx->state = OHS_FLUSH; in OSSL_HTTP_REQ_CTX_nbio()
664 rctx->state = OHS_ERROR; in OSSL_HTTP_REQ_CTX_nbio()
694 rctx->state = OHS_ERROR; in OSSL_HTTP_REQ_CTX_nbio()
702 rctx->state = OHS_ERROR; in OSSL_HTTP_REQ_CTX_nbio()
709 rctx->state = OHS_ERROR; in OSSL_HTTP_REQ_CTX_nbio()
[all …]
/openssl/crypto/err/
H A Derr.c205 if (state == NULL) in OSSL_ERR_STATE_free()
208 err_clear(state, i, 1); in OSSL_ERR_STATE_free()
647 if (state == NULL) in err_delete_thread_state()
651 OSSL_ERR_STATE_free(state); in err_delete_thread_state()
674 ERR_STATE *state; in ossl_err_get_state_int() local
684 if (state == (ERR_STATE*)-1) in ossl_err_get_state_int()
687 if (state == NULL) { in ossl_err_get_state_int()
692 if (state == NULL) { in ossl_err_get_state_int()
709 return state; in ossl_err_get_state_int()
724 int err_shelve_state(void **state) in err_shelve_state() argument
[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 …]
/openssl/crypto/property/
H A Dproperty.c790 n = state->seed; in impl_cache_flush_cache()
794 state->seed = n; in impl_cache_flush_cache()
799 state->nelem++; in impl_cache_flush_cache()
808 state->cache = alg->cache; in impl_cache_flush_one_alg()
811 state); in impl_cache_flush_one_alg()
817 IMPL_CACHE_FLUSH state; in ossl_method_cache_flush_some() local
820 state.nelem = 0; in ossl_method_cache_flush_some()
821 state.using_global_seed = 0; in ossl_method_cache_flush_some()
824 state.using_global_seed = 1; in ossl_method_cache_flush_some()
829 store->cache_nelem = state.nelem; in ossl_method_cache_flush_some()
[all …]

Completed in 170 milliseconds

123456789