Home
last modified time | relevance | path

Searched refs:s3 (Results 1 – 25 of 209) sorted by relevance

123456789

/openbsd/lib/libcrypto/camellia/
H A Dcamellia.c364 u32 s0, s1, s2, s3; in Camellia_Ekeygen() local
369 k[3] = s3 = GETU32(rawKey + 12); in Camellia_Ekeygen()
376 k[11] = s3 = ~s1; in Camellia_Ekeygen()
414 k[26] = s2, k[27] = s3; in Camellia_Ekeygen()
483 u32 s0, s1, s2, s3; in Camellia_EncryptBlock_Rounds() local
509 s2 ^= s3 | k[3]; in Camellia_EncryptBlock_Rounds()
511 s3 ^= LeftRotate(s2 & k[2], 1); in Camellia_EncryptBlock_Rounds()
518 PUTU32(ciphertext + 4, s3); in Camellia_EncryptBlock_Rounds()
535 u32 s0, s1, s2, s3; in Camellia_DecryptBlock_Rounds() local
561 s2 ^= s3 | k[1]; in Camellia_DecryptBlock_Rounds()
[all …]
/openbsd/lib/libcrypto/aes/asm/
H A Daes-armv4.pl213 rev $s3,$s3
224 rev $s3,$s3
279 eor $s3,$s3,$i1
342 eor $s3,$s3,$t3
401 eor $s3,$s3,$t3
477 rev $s3,$s3
929 rev $s3,$s3
940 rev $s3,$s3
995 eor $s3,$s3,$i1
1058 eor $s3,$s3,$t3
[all …]
H A Daes-ppc.pl487 xor $s3,$s3,$t3
607 or $s3,$s3,$acc15
611 xor $s3,$s3,$t3
635 xor $s3,$s3,$t3
685 or $s3,$s3,$acc15
754 xor $s3,$s3,$t3
914 xor $s3,$s3,$t3
1038 xor $s3,$s3,$t3
1068 xor $s3,$s3,$t3
1288 rotrwi $s3,$s3,8
[all …]
H A Daes-586.pl200 $s3="edx";
337 &mov ($v0,$s3);
351 &mov ($s3,&DWP(0,$te,$s3,8)); # 12
2070 &sub ($s3,$s1);
2074 &sub ($s3,$s0);
2076 &add ($s3,384);
2091 &mov ($s3,&DWP(20,$s3)); # load enc flag
2130 &cmp ($s3,0);
2343 &mov ($s3,&DWP(20,$s3)); # load enc flag
2354 &cmp ($s3,0);
[all …]
H A Daes-parisc.pl117 vshd $s3,$t1,$s3
203 xor $t3,$s3,$s3
343 xor $acc13,$s3,$s3
346 xor $acc14,$s3,$s3
348 xor $acc15,$s3,$s3
437 xor $acc15,$s3,$s3
591 vshd $s3,$t1,$s3
677 xor $t3,$s3,$s3
817 xor $acc13,$s3,$s3
819 xor $acc14,$s3,$s3
[all …]
H A Daes-x86_64.pl51 $s3="%edx";
113 shr \$16,$s3
146 xor $t3,$s3
177 shr \$16,$s3
236 xor $t3,$s3
435 xor $t3,$s3
510 lea ($s3,$s3),$r21
523 mov $s3,$t3
538 xor $t3,$s3
544 xor $t3,$s3
[all …]
/openbsd/lib/libssl/
H A Dssl_pkt.c414 s->s3->rcontent)) { in ssl3_get_record()
487 tot = s->s3->wnum; in ssl3_write_bytes()
488 s->s3->wnum = 0; in ssl3_write_bytes()
511 s->s3->wnum = tot; in ssl3_write_bytes()
617 s->s3->wpend_tot = len; in do_ssl3_write()
618 s->s3->wpend_buf = buf; in do_ssl3_write()
620 s->s3->wpend_ret = len; in do_ssl3_write()
639 if ((s->s3->wpend_tot > (int)len) || ((s->s3->wpend_buf != buf) && in ssl3_write_pending()
1122 s->s3->rrec.length = 0; in ssl3_read_bytes()
1173 s->s3->rrec.length = 0; in ssl3_read_bytes()
[all …]
H A Dd1_pkt.c268 s->s3->rcontent = NULL; in dtls1_buffer_rcontent()
321 s->s3->rrec.epoch = tls_content_epoch(s->s3->rcontent); in dtls1_retrieve_buffered_rcontent()
365 s->s3->rcontent)) { in dtls1_process_record()
564 s->s3->rrec.length = 0; in dtls1_read_handshake_unexpected()
593 s->s3->rrec.length = 0; in dtls1_read_handshake_unexpected()
683 s->s3->rrec.length = 0; in dtls1_read_handshake_unexpected()
821 s->s3->rrec.length = 0; in dtls1_read_bytes()
841 s->s3->rrec.length = 0; in dtls1_read_bytes()
1032 s->s3->wpend_tot = len; in do_dtls1_write()
1033 s->s3->wpend_buf = buf; in do_dtls1_write()
[all …]
H A Dssl_srvr.c212 state = s->s3->hs.state; in ssl3_accept()
214 switch (s->s3->hs.state) { in ssl3_accept()
324 s->s3->hs.state = SSL_ST_OK; in ssl3_accept()
531 s->s3->hs.state = s->s3->hs.tls12.next_state; in ssl3_accept()
538 s->s3->hs.state = s->s3->hs.tls12.next_state; in ssl3_accept()
734 s->s3->hs.state = state; in ssl3_accept()
1040 s->s3->hs.negotiated_tls_version < s->s3->hs.our_max_tls_version) { in ssl3_get_client_hello()
1127 s->s3->hs.cipher = c; in ssl3_get_client_hello()
2475 s->s3->hs.finished, s->s3->hs.finished_len); in ssl3_send_server_finished()
2476 s->s3->previous_server_finished_len = s->s3->hs.finished_len; in ssl3_send_server_finished()
[all …]
H A Dssl_transcript.c66 if (s->s3->handshake_hash == NULL) in tls1_transcript_hash_update()
80 if (s->s3->handshake_hash == NULL) in tls1_transcript_hash_value()
112 EVP_MD_CTX_free(s->s3->handshake_hash); in tls1_transcript_hash_free()
113 s->s3->handshake_hash = NULL; in tls1_transcript_hash_free()
119 if (s->s3->handshake_transcript != NULL) in tls1_transcript_init()
133 tls_buffer_free(s->s3->handshake_transcript); in tls1_transcript_free()
134 s->s3->handshake_transcript = NULL; in tls1_transcript_free()
140 tls_buffer_clear(s->s3->handshake_transcript); in tls1_transcript_reset()
148 if (s->s3->handshake_transcript == NULL) in tls1_transcript_append()
162 if (s->s3->handshake_transcript == NULL) in tls1_transcript_data()
[all …]
H A Dssl_clnt.c205 state = s->s3->hs.state; in ssl3_connect()
207 switch (s->s3->hs.state) { in ssl3_connect()
566 s->s3->hs.state = s->s3->hs.tls12.next_state; in ssl3_connect()
573 s->s3->hs.state = s->s3->hs.tls12.next_state; in ssl3_connect()
626 s->s3->hs.state = state; in ssl3_connect()
887 s->s3->hs.negotiated_tls_version < s->s3->hs.our_max_tls_version) { in ssl3_get_server_hello()
950 s->s3->hs.cipher = in ssl3_get_server_hello()
1024 s->s3->hs.cipher = cipher; in ssl3_get_server_hello()
1511 &s->s3->hs.sigalgs_len)) in ssl3_get_certificate_request()
2380 s->s3->hs.finished, s->s3->hs.finished_len); in ssl3_send_client_finished()
[all …]
H A Ds3_lib.c1259 if ((s->s3 = calloc(1, sizeof(*s->s3))) == NULL) in ssl3_new()
1282 freezero(s->s3->hs.sigalgs, s->s3->hs.sigalgs_len); in ssl3_free()
1291 freezero(s->s3->hs.tls13.cookie, s->s3->hs.tls13.cookie_len); in ssl3_free()
1306 freezero(s->s3, sizeof(*s->s3)); in ssl3_free()
1308 s->s3 = NULL; in ssl3_free()
1325 freezero(s->s3->hs.sigalgs, s->s3->hs.sigalgs_len); in ssl3_clear()
1343 freezero(s->s3->hs.tls13.cookie, s->s3->hs.tls13.cookie_len); in ssl3_clear()
1355 rp = s->s3->rbuf.buf; in ssl3_clear()
1356 wp = s->s3->wbuf.buf; in ssl3_clear()
1375 memset(s->s3, 0, sizeof(*s->s3)); in ssl3_clear()
[all …]
H A Dtls12_lib.c74 s->s3->hs.finished, sizeof(s->s3->hs.finished), in tls12_derive_finished()
75 &s->s3->hs.finished_len); in tls12_derive_finished()
78 s->s3->hs.finished, sizeof(s->s3->hs.finished), in tls12_derive_finished()
79 &s->s3->hs.finished_len); in tls12_derive_finished()
88 s->s3->hs.peer_finished, sizeof(s->s3->hs.peer_finished), in tls12_derive_peer_finished()
89 &s->s3->hs.peer_finished_len); in tls12_derive_peer_finished()
92 s->s3->hs.peer_finished, sizeof(s->s3->hs.peer_finished), in tls12_derive_peer_finished()
93 &s->s3->hs.peer_finished_len); in tls12_derive_peer_finished()
110 s->s3->client_random, SSL3_RANDOM_SIZE, NULL, 0, in tls12_derive_master_secret()
111 s->s3->server_random, SSL3_RANDOM_SIZE, NULL, 0, in tls12_derive_master_secret()
H A Dssl_tlsext.c47 s->s3->hs.finished_len == 0; in tlsext_alpn_client_needs()
154 s->s3->alpn_selected_len)) in tlsext_alpn_server_build()
184 if (!CBS_stow(&proto, &s->s3->alpn_selected, &s->s3->alpn_selected_len)) in tlsext_alpn_client_process()
254 if (s->s3->hs.tls13.hrr) { in tlsext_supportedgroups_server_process()
481 s->s3->renegotiate_seen = 1; in tlsext_ri_server_process()
605 if (!CBS_stow(&sigalgs, &s->s3->hs.sigalgs, &s->s3->hs.sigalgs_len)) in tlsext_sigalgs_server_process()
645 if (!CBS_stow(&sigalgs, &s->s3->hs.sigalgs, &s->s3->hs.sigalgs_len)) in tlsext_sigalgs_client_process()
1497 if (s->s3->hs.tls13.hrr) { in tlsext_keyshare_server_process()
1640 if (s->s3->hs.tls13.hrr) { in tlsext_keyshare_server_build()
1813 s->s3->hs.tls13.cookie_len > 0 && s->s3->hs.tls13.cookie != NULL); in tlsext_cookie_client_needs()
[all …]
H A Dt1_enc.c152 tls12_key_block_free(s->s3->hs.tls12.key_block); in tls1_cleanup_key_block()
153 s->s3->hs.tls12.key_block = NULL; in tls1_cleanup_key_block()
294 s->s3->server_random, SSL3_RANDOM_SIZE, in tls1_generate_key_block()
295 s->s3->client_random, SSL3_RANDOM_SIZE, in tls1_generate_key_block()
357 if (s->s3->hs.tls12.key_block != NULL) in tls1_setup_key_block()
360 if (s->s3->hs.cipher == NULL) in tls1_setup_key_block()
389 s->s3->hs.tls12.key_block = key_block; in tls1_setup_key_block()
398 s->s3->need_empty_fragments = 1; in tls1_setup_key_block()
400 if (s->s3->hs.cipher != NULL) { in tls1_setup_key_block()
402 s->s3->need_empty_fragments = 0; in tls1_setup_key_block()
[all …]
H A Dssl_both.c280 if (s->s3->hs.state == st1) { in ssl3_get_message()
338 s->s3->hs.tls12.message_size = l; in ssl3_get_message()
339 s->s3->hs.state = stn; in ssl3_get_message()
499 if (s->s3->rbuf.buf == NULL) { in ssl3_setup_read_buffer()
504 s->s3->rbuf.buf = p; in ssl3_setup_read_buffer()
505 s->s3->rbuf.len = len; in ssl3_setup_read_buffer()
508 s->packet = s->s3->rbuf.buf; in ssl3_setup_read_buffer()
529 if (s->s3->wbuf.buf == NULL) { in ssl3_setup_write_buffer()
538 s->s3->wbuf.buf = p; in ssl3_setup_write_buffer()
539 s->s3->wbuf.len = len; in ssl3_setup_write_buffer()
[all …]
/openbsd/gnu/usr.bin/gcc/gcc/testsuite/gcc.c-torture/execute/
H A Dstdio-opt-3.c21 s3 = s2; in main()
22 fprintf (*s_ptr, "%s", *s3++); in main()
23 if (s3 != s2+1 || *s3 != 0) in main()
25 s3 = s2; in main()
26 fprintf (*s_ptr++, "%s", *s3++); in main()
27 if (s3 != s2+1 || *s3 != 0 || s_ptr != s_array+1 || *s_ptr != 0) in main()
33 s3 = s2; in main()
34 fprintf (*s_ptr, "%c", **s3++); in main()
35 if (s3 != s2+1 || *s3 != 0) in main()
37 s3 = s2; in main()
[all …]
H A Dstdio-opt-2.c14 const char *const s2[] = { s1, 0 }, *const*s3; in main() local
18 s3 = s2; in main()
19 printf ("%s\n", *s3++); in main()
20 if (s3 != s2+1 || *s3 != 0) in main()
25 s3 = s2; in main()
26 printf ("%c", **s3++); in main()
27 if (s3 != s2+1 || *s3 != 0) in main()
/openbsd/sys/lib/libsa/
H A Drijndael.c951 Te3[(s3 ) & 0xff] ^ in rijndaelEncrypt()
956 Te2[(s3 >> 8) & 0xff] ^ in rijndaelEncrypt()
961 Te1[(s3 >> 16) & 0xff] ^ in rijndaelEncrypt()
966 Te0[(s3 >> 24) ] ^ in rijndaelEncrypt()
995 s3 = in rijndaelEncrypt()
1028 s3 = in rijndaelEncrypt()
1034 PUTU32(ct + 12, s3); in rijndaelEncrypt()
1133 Td1[(s3 >> 16) & 0xff] ^ in rijndaelDecrypt()
1179 s3 = in rijndaelDecrypt()
1212 s3 = in rijndaelDecrypt()
[all …]
/openbsd/usr.bin/ssh/
H A Drijndael.c856 Te3[(s3 ) & 0xff] ^ in rijndaelEncrypt()
861 Te2[(s3 >> 8) & 0xff] ^ in rijndaelEncrypt()
866 Te1[(s3 >> 16) & 0xff] ^ in rijndaelEncrypt()
871 Te0[(s3 >> 24) ] ^ in rijndaelEncrypt()
900 s3 = in rijndaelEncrypt()
933 s3 = in rijndaelEncrypt()
939 PUTU32(ct + 12, s3); in rijndaelEncrypt()
1039 Td1[(s3 >> 16) & 0xff] ^
1085 s3 =
1118 s3 =
[all …]
/openbsd/sys/crypto/
H A Drijndael.c853 Te3[(s3 ) & 0xff] ^ in rijndaelEncrypt()
858 Te2[(s3 >> 8) & 0xff] ^ in rijndaelEncrypt()
863 Te1[(s3 >> 16) & 0xff] ^ in rijndaelEncrypt()
868 Te0[(s3 >> 24) ] ^ in rijndaelEncrypt()
897 s3 = in rijndaelEncrypt()
930 s3 = in rijndaelEncrypt()
936 PUTU32(ct + 12, s3); in rijndaelEncrypt()
1035 Td1[(s3 >> 16) & 0xff] ^ in rijndaelDecrypt()
1081 s3 = in rijndaelDecrypt()
1114 s3 = in rijndaelDecrypt()
[all …]
/openbsd/lib/libcrypto/aes/
H A Daes_core.c934 Te3[(s3) & 0xff] ^ in aes_encrypt_internal()
939 Te2[(s3 >> 8) & 0xff] ^ in aes_encrypt_internal()
944 Te1[(s3 >> 16) & 0xff] ^ in aes_encrypt_internal()
949 Te0[(s3 >> 24)] ^ in aes_encrypt_internal()
978 s3 = in aes_encrypt_internal()
1011 s3 = in aes_encrypt_internal()
1142 Td2[(s3 >> 8) & 0xff] ^ in aes_decrypt_internal()
1149 Td3[(s3) & 0xff] ^ in aes_decrypt_internal()
1152 Td0[(s3 >> 24)] ^ in aes_decrypt_internal()
1181 s3 = in aes_decrypt_internal()
[all …]
/openbsd/gnu/usr.bin/binutils/gdb/testsuite/gdb.base/
H A Dbitfields.c19 signed int s3 : 3; member
99 flags.s3 = 1; in main()
101 flags.s3 = 0; in main()
136 flags.s3 = -1; in main()
142 flags.s3 = 0; in main()
167 flags.s3 = 0x3; in main()
174 flags.s3 = -0x4; in main()
184 flags.s3 = -1; in main()
190 flags.s3 = 0; in main()
/openbsd/gnu/usr.bin/gcc/gcc/testsuite/g77.f-torture/execute/
H A D980701-0.f12 real s1(2), s2(2), s3(2) local
19 equivalence (r3, s3(2))
34 s3(1) = 3.
41 call x (s1, r1, d1, i1, s2, r2, d2, i2, s3, r3, d3, i3)
45 subroutine x (s1, r1, d1, i1, s2, r2, d2, i2, s3, r3, d3, i3) argument
49 real s1(2), s2(2), s3(2) local
65 if (s3(1) .ne. 3.) call abort
H A D980701-1.f12 real s1(2), s2(2), s3(2) local
20 equivalence (r3, s3(2))
34 s3(1) = 3.
41 call x (s1, r1, d1, i1, s2, r2, d2, i2, s3, r3, d3, i3)
45 subroutine x (s1, r1, d1, i1, s2, r2, d2, i2, s3, r3, d3, i3) argument
49 real s1(2), s2(2), s3(2) local
65 if (s3(1) .ne. 3.) call abort

123456789