Home
last modified time | relevance | path

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

12

/net-tools-3.7.0/mbedtls-2.4.0/tests/scripts/
Dlist-enum-consts.pl14 my $state = 'out';
17 if( $state eq 'out' and /^(typedef )?enum \{/ ) {
18 $state = 'in';
19 } elsif( $state eq 'out' and /^(typedef )?enum/ ) {
20 $state = 'start';
21 } elsif( $state eq 'start' and /{/ ) {
22 $state = 'in';
23 } elsif( $state eq 'in' and /}/ ) {
24 $state = 'out';
25 } elsif( $state eq 'in' ) {
/net-tools-3.7.0/mbedtls-2.4.0/library/
Dsha512.c125 ctx->state[0] = UL64(0x6A09E667F3BCC908); in mbedtls_sha512_starts()
126 ctx->state[1] = UL64(0xBB67AE8584CAA73B); in mbedtls_sha512_starts()
127 ctx->state[2] = UL64(0x3C6EF372FE94F82B); in mbedtls_sha512_starts()
128 ctx->state[3] = UL64(0xA54FF53A5F1D36F1); in mbedtls_sha512_starts()
129 ctx->state[4] = UL64(0x510E527FADE682D1); in mbedtls_sha512_starts()
130 ctx->state[5] = UL64(0x9B05688C2B3E6C1F); in mbedtls_sha512_starts()
131 ctx->state[6] = UL64(0x1F83D9ABFB41BD6B); in mbedtls_sha512_starts()
132 ctx->state[7] = UL64(0x5BE0CD19137E2179); in mbedtls_sha512_starts()
137 ctx->state[0] = UL64(0xCBBB9D5DC1059ED8); in mbedtls_sha512_starts()
138 ctx->state[1] = UL64(0x629A292A367CD507); in mbedtls_sha512_starts()
[all …]
Dsha256.c111 ctx->state[0] = 0x6A09E667; in mbedtls_sha256_starts()
112 ctx->state[1] = 0xBB67AE85; in mbedtls_sha256_starts()
113 ctx->state[2] = 0x3C6EF372; in mbedtls_sha256_starts()
114 ctx->state[3] = 0xA54FF53A; in mbedtls_sha256_starts()
115 ctx->state[4] = 0x510E527F; in mbedtls_sha256_starts()
116 ctx->state[5] = 0x9B05688C; in mbedtls_sha256_starts()
117 ctx->state[6] = 0x1F83D9AB; in mbedtls_sha256_starts()
118 ctx->state[7] = 0x5BE0CD19; in mbedtls_sha256_starts()
123 ctx->state[0] = 0xC1059ED8; in mbedtls_sha256_starts()
124 ctx->state[1] = 0x367CD507; in mbedtls_sha256_starts()
[all …]
Dcmac.c237 mbedtls_zeroize( cmac_ctx->state, sizeof( cmac_ctx->state ) ); in mbedtls_cipher_cmac_starts()
246 unsigned char *state; in mbedtls_cipher_cmac_update() local
256 state = ctx->cmac_ctx->state; in mbedtls_cipher_cmac_update()
267 cmac_xor_block( state, cmac_ctx->unprocessed_block, state, block_size ); in mbedtls_cipher_cmac_update()
269 if( ( ret = mbedtls_cipher_update( ctx, state, block_size, state, in mbedtls_cipher_cmac_update()
286 cmac_xor_block( state, input, state, block_size ); in mbedtls_cipher_cmac_update()
288 if( ( ret = mbedtls_cipher_update( ctx, state, block_size, state, in mbedtls_cipher_cmac_update()
313 unsigned char *state, *last_block; in mbedtls_cipher_cmac_finish() local
326 state = cmac_ctx->state; in mbedtls_cipher_cmac_finish()
347 cmac_xor_block( state, M_last, state, block_size ); in mbedtls_cipher_cmac_finish()
[all …]
Dripemd160.c104 ctx->state[0] = 0x67452301; in mbedtls_ripemd160_starts()
105 ctx->state[1] = 0xEFCDAB89; in mbedtls_ripemd160_starts()
106 ctx->state[2] = 0x98BADCFE; in mbedtls_ripemd160_starts()
107 ctx->state[3] = 0x10325476; in mbedtls_ripemd160_starts()
108 ctx->state[4] = 0xC3D2E1F0; in mbedtls_ripemd160_starts()
136 A = Ap = ctx->state[0]; in mbedtls_ripemd160_process()
137 B = Bp = ctx->state[1]; in mbedtls_ripemd160_process()
138 C = Cp = ctx->state[2]; in mbedtls_ripemd160_process()
139 D = Dp = ctx->state[3]; in mbedtls_ripemd160_process()
140 E = Ep = ctx->state[4]; in mbedtls_ripemd160_process()
[all …]
Dmd2.c111 memset( ctx->state, 0, 46 ); in mbedtls_md2_starts()
124 ctx->state[i + 16] = ctx->buffer[i]; in mbedtls_md2_process()
125 ctx->state[i + 32] = in mbedtls_md2_process()
126 (unsigned char)( ctx->buffer[i] ^ ctx->state[i]); in mbedtls_md2_process()
133 ctx->state[j] = (unsigned char) in mbedtls_md2_process()
134 ( ctx->state[j] ^ PI_SUBST[t] ); in mbedtls_md2_process()
135 t = ctx->state[j]; in mbedtls_md2_process()
198 memcpy( output, ctx->state, 16 ); in mbedtls_md2_finish()
Dmd4.c106 ctx->state[0] = 0x67452301; in mbedtls_md4_starts()
107 ctx->state[1] = 0xEFCDAB89; in mbedtls_md4_starts()
108 ctx->state[2] = 0x98BADCFE; in mbedtls_md4_starts()
109 ctx->state[3] = 0x10325476; in mbedtls_md4_starts()
136 A = ctx->state[0]; in mbedtls_md4_process()
137 B = ctx->state[1]; in mbedtls_md4_process()
138 C = ctx->state[2]; in mbedtls_md4_process()
139 D = ctx->state[3]; in mbedtls_md4_process()
210 ctx->state[0] += A; in mbedtls_md4_process()
211 ctx->state[1] += B; in mbedtls_md4_process()
[all …]
Dmd5.c105 ctx->state[0] = 0x67452301; in mbedtls_md5_starts()
106 ctx->state[1] = 0xEFCDAB89; in mbedtls_md5_starts()
107 ctx->state[2] = 0x98BADCFE; in mbedtls_md5_starts()
108 ctx->state[3] = 0x10325476; in mbedtls_md5_starts()
140 A = ctx->state[0]; in mbedtls_md5_process()
141 B = ctx->state[1]; in mbedtls_md5_process()
142 C = ctx->state[2]; in mbedtls_md5_process()
143 D = ctx->state[3]; in mbedtls_md5_process()
229 ctx->state[0] += A; in mbedtls_md5_process()
230 ctx->state[1] += B; in mbedtls_md5_process()
[all …]
Dsha1.c105 ctx->state[0] = 0x67452301; in mbedtls_sha1_starts()
106 ctx->state[1] = 0xEFCDAB89; in mbedtls_sha1_starts()
107 ctx->state[2] = 0x98BADCFE; in mbedtls_sha1_starts()
108 ctx->state[3] = 0x10325476; in mbedtls_sha1_starts()
109 ctx->state[4] = 0xC3D2E1F0; in mbedtls_sha1_starts()
148 A = ctx->state[0]; in mbedtls_sha1_process()
149 B = ctx->state[1]; in mbedtls_sha1_process()
150 C = ctx->state[2]; in mbedtls_sha1_process()
151 D = ctx->state[3]; in mbedtls_sha1_process()
152 E = ctx->state[4]; in mbedtls_sha1_process()
[all …]
Dssl_ticket.c298 unsigned char *state = state_len_bytes + 2; in mbedtls_ssl_ticket_write() local
331 state, end - state, &clear_len ) ) != 0 || in mbedtls_ssl_ticket_write()
340 tag = state + clear_len; in mbedtls_ssl_ticket_write()
343 state, clear_len, state, &ciph_len, tag, 16 ) ) != 0 ) in mbedtls_ssl_ticket_write()
Dssl_cli.c1036 ssl->state++;
1380 ssl->state = MBEDTLS_SSL_CLIENT_HELLO;
1601 ssl->state++;
1613 ssl->state = MBEDTLS_SSL_SERVER_CHANGE_CIPHER_SPEC;
2204 ssl->state++;
2223 ssl->state++;
2514 ssl->state++;
2540 ssl->state++;
2565 ssl->state++;
2587 ssl->state++;
[all …]
Dssl_tls.c2302 if( ssl->state != MBEDTLS_SSL_HANDSHAKE_OVER ) in mbedtls_ssl_fetch_input()
2326 if( ssl->state != MBEDTLS_SSL_HANDSHAKE_OVER ) in mbedtls_ssl_fetch_input()
2632 if( ssl->state == MBEDTLS_SSL_HANDSHAKE_OVER ) in mbedtls_ssl_resend()
3161 if( ssl->state != MBEDTLS_SSL_HANDSHAKE_OVER && in mbedtls_ssl_update_handshake_status()
3583 ssl->state != MBEDTLS_SSL_CLIENT_CHANGE_CIPHER_SPEC && in ssl_parse_record_header()
3584 ssl->state != MBEDTLS_SSL_SERVER_CHANGE_CIPHER_SPEC ) in ssl_parse_record_header()
3593 ssl->state != MBEDTLS_SSL_HANDSHAKE_OVER in ssl_parse_record_header()
3596 ssl->state == MBEDTLS_SSL_SERVER_HELLO ) in ssl_parse_record_header()
3619 ssl->state == MBEDTLS_SSL_HANDSHAKE_OVER && in ssl_parse_record_header()
3855 if( ssl->state == MBEDTLS_SSL_CLIENT_FINISHED || in mbedtls_ssl_read_record_layer()
[all …]
/net-tools-3.7.0/tinydtls-0.8.2/sha2/
Dsha2.c374 MEMCPY_BCOPY(context->state, sha256_initial_hash_value, SHA256_DIGEST_LENGTH); in SHA256_Init()
424 a = context->state[0]; in SHA256_Transform()
425 b = context->state[1]; in SHA256_Transform()
426 c = context->state[2]; in SHA256_Transform()
427 d = context->state[3]; in SHA256_Transform()
428 e = context->state[4]; in SHA256_Transform()
429 f = context->state[5]; in SHA256_Transform()
430 g = context->state[6]; in SHA256_Transform()
431 h = context->state[7]; in SHA256_Transform()
459 context->state[0] += a; in SHA256_Transform()
[all …]
Dsha2.h98 uint32_t state[8]; member
103 uint64_t state[8]; member
111 u_int32_t state[8];
116 u_int64_t state[8];
/net-tools-3.7.0/tinydtls-0.8.2/
Dpeer.h62 dtls_state_t state; /**< DTLS engine state */ member
137 return peer->state; in dtls_peer_state()
145 return peer->state == DTLS_STATE_CONNECTED; in dtls_peer_is_connected()
Ddtls.c252 if (peer->state != DTLS_STATE_CONNECTED) { in dtls_write()
880 if (client_hello && peer->state == DTLS_STATE_CONNECTED) { in dtls_check_tls_extension()
993 if (peer->state == DTLS_STATE_CONNECTED) { in dtls_update_parameters()
1503 peer->state = DTLS_STATE_CLOSING; in dtls_close()
1510 if (peer->state != DTLS_STATE_CLOSED && peer->state != DTLS_STATE_CLOSING) in dtls_destroy_peer()
2966 if (peer->state != DTLS_STATE_CONNECTED) in dtls_renegotiate()
2982 peer->state = DTLS_STATE_CLIENTHELLO; in dtls_renegotiate()
2993 const dtls_peer_type role, const dtls_state_t state, in handle_handshake_msg() argument
3020 if (state != DTLS_STATE_CLIENTHELLO) { in handle_handshake_msg()
3033 if (state != DTLS_STATE_CLIENTHELLO) { in handle_handshake_msg()
[all …]
/net-tools-3.7.0/libcoap/src/
Duri.c361 struct cnt_str *state = (struct cnt_str *)data; in write_option() local
363 assert(state); in write_option()
365 res = make_decoded_option(s, len, state->buf.s, state->buf.length); in write_option()
367 state->buf.s += res; in write_option()
368 state->buf.length -= res; in write_option()
369 state->n++; in write_option()
/net-tools-3.7.0/tinydtls-0.8.2/examples/contiki/
Ddtls-server.c208 uint8_t state; in print_local_addresses() local
212 state = uip_ds6_if.addr_list[i].state; in print_local_addresses()
214 (state == ADDR_TENTATIVE || state == ADDR_PREFERRED)) { in print_local_addresses()
Ddtls-client.c232 uint8_t state; in print_local_addresses() local
236 state = uip_ds6_if.addr_list[i].state; in print_local_addresses()
238 (state == ADDR_TENTATIVE || state == ADDR_PREFERRED)) { in print_local_addresses()
/net-tools-3.7.0/mbedtls-2.4.0/include/mbedtls/
Dmd2.h48 unsigned char state[48]; /*!< intermediate digest state */ member
Dripemd160.h49 uint32_t state[5]; /*!< intermediate digest state */ member
Dsha1.h49 uint32_t state[5]; /*!< intermediate digest state */ member
Dmd4.h49 uint32_t state[4]; /*!< intermediate digest state */ member
Dmd5.h49 uint32_t state[4]; /*!< intermediate digest state */ member
Dsha256.h49 uint32_t state[8]; /*!< intermediate digest state */ member

12