Home
last modified time | relevance | path

Searched refs:s2 (Results 1 – 25 of 612) sorted by relevance

12345678910>>...25

/freebsd/crypto/openssl/crypto/camellia/
H A Dcamellia.c288 register u32 s0, s1, s2, s3; in Camellia_Ekeygen() local
292 k[2] = s2 = GETU32(rawKey + 8); in Camellia_Ekeygen()
299 k[10] = s2 = ~s0; in Camellia_Ekeygen()
302 k[10] = s2 = GETU32(rawKey + 24); in Camellia_Ekeygen()
305 s0 ^= k[0], s1 ^= k[1], s2 ^= k[2], s3 ^= k[3]; in Camellia_Ekeygen()
309 Camellia_Feistel(s0, s1, s2, s3, SIGMA + 0); in Camellia_Ekeygen()
310 Camellia_Feistel(s2, s3, s0, s1, SIGMA + 2); in Camellia_Ekeygen()
312 s0 ^= k[0], s1 ^= k[1], s2 ^= k[2], s3 ^= k[3]; in Camellia_Ekeygen()
313 Camellia_Feistel(s0, s1, s2, s3, SIGMA + 4); in Camellia_Ekeygen()
314 Camellia_Feistel(s2, s3, s0, s1, SIGMA + 6); in Camellia_Ekeygen()
[all …]
/freebsd/crypto/openssl/crypto/aes/asm/
H A Daes-armv4.pl61 $s2="r2";
229 ldrb $s2,[$rounds,#11]
235 orr $s2,$s2,$t1,lsl#8
237 orr $s2,$s2,$t2,lsl#16
239 orr $s2,$s2,$t3,lsl#24
248 ldr $s2,[$rounds,#8]
253 rev $s2,$s2
264 rev $s2,$s2
269 str $s2,[$rounds,#8]
284 mov $t1,$s2,lsr#24
[all …]
H A Daes-s390x.pl119 $s2="%r10";
275 llgf $s2,8($inp)
284 st $s2,8($out)
297 x $s2,8($key)
333 srlg $i1,$s2,`8-3` # i0
334 srlg $i2,$s2,`16-3` # i1
337 sllg $i3,$s2,`0+3`
338 srl $s2,`24-3`
339 nr $s2,$mask
351 l $s2,0($s2,$tbl) # Te0[s2>>24]
[all …]
H A Daes-ppc.pl88 $s2="r10";
381 lwz $s2,8($inp)
391 rotlwi $s2,$t2,8
395 rlwimi $s2,$t2,24,0,7
399 rlwimi $s2,$t2,24,16,23
410 rotlwi $t2,$s2,8
414 rlwimi $t2,$s2,24,0,7
418 rlwimi $t2,$s2,24,16,23
428 stw $s2,8($out)
455 lbz $s2,11($inp)
[all …]
H A Daes-586.pl209 $s2="ecx";
315 &rotr ($s2,8); # 8,11,10, 9
320 &movz ($v0,&HB($s2)); # 8,11,10*, 9
335 &movz ($v0,&LB($s2)); # 8,11,10, 9*
341 &shr ($s2,16); # -, -, 8,11
345 &movz ($v0,&HB($s2)); # -, -, 8*,11
351 &movz ($v0,&LB($s2)); # -, -, 8,11*
353 &mov ($s2,&DWP(1,$te,$v0,8)); # 11
354 &xor ($s2,&DWP(3,$te,$s0,8)); # 1
358 &xor ($s2,&DWP(2,$te,$v0,8)); # 6
[all …]
H A Daes-parisc.pl64 ($s0,$s1,$s2,$s3) = ("%r1","%r2","%r3","%r4");
114 ldw 8($inp),$s2
123 vshd $s1,$s2,$s1
124 vshd $s2,$s3,$s2
146 _srm $s2,24,$acc0
148 _srm $s2,16,$acc1
150 _srm $s2,8,$acc2
158 stb $s2,11($out)
168 stw $s2,8($out)
209 xor $t2,$s2,$s2
[all …]
/freebsd/contrib/llvm-project/compiler-rt/lib/fuzzer/
H A DFuzzerInterceptors.cpp62 static int internal_strcmp_strncmp(const char *s1, const char *s2, bool strncmp, in internal_strcmp_strncmp() argument
72 unsigned c2 = *s2; in internal_strcmp_strncmp()
78 s2++; in internal_strcmp_strncmp()
83 static int internal_strncmp(const char *s1, const char *s2, size_t n) { in internal_strncmp() argument
84 return internal_strcmp_strncmp(s1, s2, true, n); in internal_strncmp()
87 static int internal_strcmp(const char *s1, const char *s2) { in internal_strcmp() argument
88 return internal_strcmp_strncmp(s1, s2, false, 0); in internal_strcmp()
91 static int internal_memcmp(const void *s1, const void *s2, size_t n) { in internal_memcmp() argument
93 const uint8_t *t2 = static_cast<const uint8_t *>(s2); in internal_memcmp()
125 const void *s2, size_t n, int result);
[all …]
/freebsd/contrib/ntp/sntp/libpkgver/
H A Dcolcomp.c37 colcomp (s1, s2) in colcomp() argument
39 register char *s2;
43 while (*s1 && *s2)
46 && MyIsDigit(*s2))
48 hilo = (*s1 < *s2) ? -1 : (*s1 > *s2) ? 1 : 0;
50 ++s2;
52 && MyIsDigit(*s2))
55 hilo = (*s1 < *s2) ? -1 : (*s1 > *s2) ? 1 : 0;
57 ++s2;
61 if (MyIsDigit(*s2))
[all …]
/freebsd/crypto/openssh/
H A Drijndael.c765 u32 s0, s1, s2, s3, t0, t1, t2, t3; in rijndaelEncrypt() local
776 s2 = GETU32(pt + 8) ^ rk[2]; in rijndaelEncrypt()
780 t0 = Te0[s0 >> 24] ^ Te1[(s1 >> 16) & 0xff] ^ Te2[(s2 >> 8) & 0xff] ^ Te3[s3 & 0xff] ^ rk[ 4]; in rijndaelEncrypt()
781 t1 = Te0[s1 >> 24] ^ Te1[(s2 >> 16) & 0xff] ^ Te2[(s3 >> 8) & 0xff] ^ Te3[s0 & 0xff] ^ rk[ 5]; in rijndaelEncrypt()
782 t2 = Te0[s2 >> 24] ^ Te1[(s3 >> 16) & 0xff] ^ Te2[(s0 >> 8) & 0xff] ^ Te3[s1 & 0xff] ^ rk[ 6]; in rijndaelEncrypt()
783 t3 = Te0[s3 >> 24] ^ Te1[(s0 >> 16) & 0xff] ^ Te2[(s1 >> 8) & 0xff] ^ Te3[s2 & 0xff] ^ rk[ 7]; in rijndaelEncrypt()
787 s2 = Te0[t2 >> 24] ^ Te1[(t3 >> 16) & 0xff] ^ Te2[(t0 >> 8) & 0xff] ^ Te3[t1 & 0xff] ^ rk[10]; in rijndaelEncrypt()
790 t0 = Te0[s0 >> 24] ^ Te1[(s1 >> 16) & 0xff] ^ Te2[(s2 >> 8) & 0xff] ^ Te3[s3 & 0xff] ^ rk[12]; in rijndaelEncrypt()
791 t1 = Te0[s1 >> 24] ^ Te1[(s2 >> 16) & 0xff] ^ Te2[(s3 >> 8) & 0xff] ^ Te3[s0 & 0xff] ^ rk[13]; in rijndaelEncrypt()
792 t2 = Te0[s2 >> 24] ^ Te1[(s3 >> 16) & 0xff] ^ Te2[(s0 >> 8) & 0xff] ^ Te3[s1 & 0xff] ^ rk[14]; in rijndaelEncrypt()
[all …]
/freebsd/sys/crypto/rijndael/
H A Drijndael-alg-fst.c862 u32 s0, s1, s2, s3, t0, t1, t2, t3; in rijndaelEncrypt() local
873 s2 = GETU32(pt + 8) ^ rk[2]; in rijndaelEncrypt()
877 t0 = Te0[s0 >> 24] ^ Te1[(s1 >> 16) & 0xff] ^ Te2[(s2 >> 8) & 0xff] ^ Te3[s3 & 0xff] ^ rk[ 4]; in rijndaelEncrypt()
878 t1 = Te0[s1 >> 24] ^ Te1[(s2 >> 16) & 0xff] ^ Te2[(s3 >> 8) & 0xff] ^ Te3[s0 & 0xff] ^ rk[ 5]; in rijndaelEncrypt()
879 t2 = Te0[s2 >> 24] ^ Te1[(s3 >> 16) & 0xff] ^ Te2[(s0 >> 8) & 0xff] ^ Te3[s1 & 0xff] ^ rk[ 6]; in rijndaelEncrypt()
880 t3 = Te0[s3 >> 24] ^ Te1[(s0 >> 16) & 0xff] ^ Te2[(s1 >> 8) & 0xff] ^ Te3[s2 & 0xff] ^ rk[ 7]; in rijndaelEncrypt()
884 s2 = Te0[t2 >> 24] ^ Te1[(t3 >> 16) & 0xff] ^ Te2[(t0 >> 8) & 0xff] ^ Te3[t1 & 0xff] ^ rk[10]; in rijndaelEncrypt()
887 t0 = Te0[s0 >> 24] ^ Te1[(s1 >> 16) & 0xff] ^ Te2[(s2 >> 8) & 0xff] ^ Te3[s3 & 0xff] ^ rk[12]; in rijndaelEncrypt()
888 t1 = Te0[s1 >> 24] ^ Te1[(s2 >> 16) & 0xff] ^ Te2[(s3 >> 8) & 0xff] ^ Te3[s0 & 0xff] ^ rk[13]; in rijndaelEncrypt()
889 t2 = Te0[s2 >> 24] ^ Te1[(s3 >> 16) & 0xff] ^ Te2[(s0 >> 8) & 0xff] ^ Te3[s1 & 0xff] ^ rk[14]; in rijndaelEncrypt()
[all …]
/freebsd/contrib/sendmail/libsm/
H A Dt-strrevcmp.c24 char *s2; variable
29 s2 = "equal";
30 SM_TEST(sm_strrevcmp(s1, s2) == 0);
33 s2 = "qual";
34 SM_TEST(sm_strrevcmp(s1, s2) > 0);
37 s2 = "equal";
38 SM_TEST(sm_strrevcmp(s1, s2) < 0);
41 s2 = "equal";
42 SM_TEST(sm_strrevcmp(s1, s2) < 0);
45 s2 = "equal";
[all …]
H A Dstrcaseeq.c31 sm_strcaseeq(s1, s2) in sm_strcaseeq() argument
33 const char *s2;
41 if (!asciistr(s2))
43 return (sm_strcasecmp(s1, s2) == 0);
45 if (asciistr(s2))
55 l2 = sm_lowercase(s2);
78 sm_strncaseeq(s1, s2, n) in sm_strncaseeq() argument
80 const char *s2;
91 if (!asciinstr(s2, n))
93 return (sm_strncasecmp(s1, s2, n) == 0);
[all …]
H A Dstrrevcmp.c33 sm_strrevcasecmp(s1, s2) in sm_strrevcasecmp() argument
34 const char *s1, *s2; in sm_strrevcasecmp()
39 i2 = strlen(s2) - 1;
42 charmap[(unsigned char) s2[i2]])
60 charmap[(unsigned char) s2[i2]]);
75 sm_strrevcmp(s1, s2) in sm_strrevcmp() argument
76 const char *s1, *s2; in sm_strrevcmp()
81 i2 = strlen(s2) - 1;
82 while (i1 >= 0 && i2 >= 0 && s1[i1] == s2[i2])
99 return s1[i1] - s2[i2];
H A Dt-streq.c23 tstrncaseeq(s1, s2, len) in tstrncaseeq() argument
25 char *s2;
28 return SM_STRNCASEEQ(s1, s2, len);
72 char s1[MAXL], s2[MAXL]; local
87 fscanf(stdin, "%d:%s\n", &o,s2) == 2)
92 hack(s2);
93 SM_TEST(tstrncaseeq(s1, s2, len) == o);
94 if ((r = tstrncaseeq(s1, s2, len)) != o)
95 fprintf(stderr, "\"%s\"\n\"%s\"\n%d!=%d\n", s1, s2, o, r);
/freebsd/usr.bin/tr/
H A Dtr.c53 static STR s2 = { STRING2, NORMAL, 0, OOBCH, 0, { 0, OOBCH }, NULL, NULL }; variable
126 squeeze = setup(argv[1], &s2, 0, 0); in main()
194 if ((s2.str = strdup(argv[1])) == NULL) in main()
197 s2.str = argv[1]; in main()
199 if (!next(&s2)) in main()
212 s2.state == CCLASS_UPPER && in main()
213 s1.cnt == 1 && s2.cnt == 1) { in main()
224 if (!next(&s2)) in main()
226 } while (s2.state == CCLASS_UPPER && s2.cnt > 1); in main()
229 s2.state == CCLASS_LOWER && in main()
[all …]
/freebsd/contrib/bearssl/src/symcipher/
H A Dchacha20_sse2.c92 __m128i s0, s1, s2, s3; in br_chacha20_sse2_run() local
97 s2 = kw1; in br_chacha20_sse2_run()
110 s2 = _mm_add_epi32(s2, s3); in br_chacha20_sse2_run()
111 s1 = _mm_xor_si128(s1, s2); in br_chacha20_sse2_run()
122 s2 = _mm_add_epi32(s2, s3); in br_chacha20_sse2_run()
123 s1 = _mm_xor_si128(s1, s2); in br_chacha20_sse2_run()
134 s2 = _mm_shuffle_epi32(s2, 0x4E); in br_chacha20_sse2_run()
143 s2 = _mm_add_epi32(s2, s3); in br_chacha20_sse2_run()
144 s1 = _mm_xor_si128(s1, s2); in br_chacha20_sse2_run()
155 s2 = _mm_add_epi32(s2, s3); in br_chacha20_sse2_run()
[all …]
H A Daes_big_enc.c92 uint32_t s0, s1, s2, s3; in br_aes_big_encrypt() local
99 s2 = br_dec32be(buf + 8); in br_aes_big_encrypt()
103 s2 ^= skey[2]; in br_aes_big_encrypt()
110 ^ SboxExt2((s2 >> 8) & 0xFF) in br_aes_big_encrypt()
113 ^ SboxExt1((s2 >> 16) & 0xFF) in br_aes_big_encrypt()
116 v2 = SboxExt0(s2 >> 24) in br_aes_big_encrypt()
123 ^ SboxExt3(s2 & 0xFF); in br_aes_big_encrypt()
126 s2 = v2; in br_aes_big_encrypt()
130 s2 ^= skey[(u << 2) + 2]; in br_aes_big_encrypt()
135 | ((uint32_t)S[(s2 >> 8) & 0xFF] << 8) in br_aes_big_encrypt()
[all …]
H A Daes_small_dec.c121 unsigned s0, s1, s2, s3; in inv_mix_columns() local
126 s2 = state[i + 2]; in inv_mix_columns()
130 ^ s2 ^ (s2 << 2) ^ (s2 << 3) in inv_mix_columns()
134 ^ s2 ^ (s2 << 1) ^ (s2 << 3) in inv_mix_columns()
138 ^ (s2 << 1) ^ (s2 << 2) ^ (s2 << 3) in inv_mix_columns()
142 ^ s2 ^ (s2 << 3) in inv_mix_columns()
/freebsd/crypto/openssl/test/testutil/
H A Dtests.c213 const char *s1, const char *s2, \
218 test_fail_message(NULL, file, line, #type, s1, s2, #op, \
277 const char *s1, const char *s2) in test_str_eq() argument
279 if (s1 == NULL && s2 == NULL) in test_str_eq()
281 if (s1 == NULL || s2 == NULL || strcmp(s1, s2) != 0) { in test_str_eq()
284 s2, s2 == NULL ? 0 : strlen(s2)); in test_str_eq()
291 const char *s1, const char *s2) in test_str_ne() argument
293 if ((s1 == NULL) ^ (s2 == NULL)) in test_str_ne()
295 if (s1 == NULL || strcmp(s1, s2) == 0) { in test_str_ne()
298 s2, s2 == NULL ? 0 : strlen(s2)); in test_str_ne()
[all …]
/freebsd/crypto/openssh/regress/unittests/sshbuf/
H A Dtest_sshbuf_getput_basic.c37 char *s2; in sshbuf_getput_basic_tests() local
348 r = sshbuf_get_cstring(p1, &s2, &s); in sshbuf_getput_basic_tests()
360 r = sshbuf_get_cstring(p1, &s2, NULL); in sshbuf_getput_basic_tests()
371 ASSERT_INT_EQ(sshbuf_get_cstring(p1, &s2, &s), 0); in sshbuf_getput_basic_tests()
373 ASSERT_MEM_EQ(s2, x, s); in sshbuf_getput_basic_tests()
374 free(s2); in sshbuf_getput_basic_tests()
553 s2 = sshbuf_dtob16(p1); in sshbuf_getput_basic_tests()
554 ASSERT_PTR_NE(s2, NULL); in sshbuf_getput_basic_tests()
555 ASSERT_STRING_EQ(s2, "a1b2c3d4e5f607180000"); in sshbuf_getput_basic_tests()
556 free(s2); in sshbuf_getput_basic_tests()
[all …]
/freebsd/contrib/netbsd-tests/lib/libc/regex/
H A Dt_exhaust.c81 char *d, *s1, *s2; in p0() local
83 s2 = concat(s1, ")"); in p0()
85 d = concat("(", s2); in p0()
86 free(s2); in p0()
93 char *d, *s1, *s2, *s3; in p1() local
95 s2 = mkstr("(.*)", len); in p1()
96 s3 = concat(s1, s2); in p1()
97 free(s2); in p1()
109 char *d, *s1, *s2, *s3; in ps() local
111 s2 = mkstr(s, len); in ps()
[all …]
/freebsd/lib/libc/locale/
H A Dcollcmp.c44 char s1[2], s2[2]; in __collate_range_cmp() local
48 s2[0] = c2; in __collate_range_cmp()
49 s2[1] = '\0'; in __collate_range_cmp()
50 return (strcoll(s1, s2)); in __collate_range_cmp()
55 wchar_t s1[2], s2[2]; in __wcollate_range_cmp() local
59 s2[0] = c2; in __wcollate_range_cmp()
60 s2[1] = L'\0'; in __wcollate_range_cmp()
61 return (wcscoll(s1, s2)); in __wcollate_range_cmp()
/freebsd/contrib/llvm-project/libcxx/include/
H A Dcstring27 void* memcpy(void* restrict s1, const void* restrict s2, size_t n);
28 void* memmove(void* s1, const void* s2, size_t n);
29 char* strcpy (char* restrict s1, const char* restrict s2);
30 char* strncpy(char* restrict s1, const char* restrict s2, size_t n);
31 char* strcat (char* restrict s1, const char* restrict s2);
32 char* strncat(char* restrict s1, const char* restrict s2, size_t n);
33 int memcmp(const void* s1, const void* s2, size_t n);
34 int strcmp (const char* s1, const char* s2);
35 int strncmp(const char* s1, const char* s2, size_t n);
36 int strcoll(const char* s1, const char* s2);
[all …]
/freebsd/usr.bin/xargs/
H A Dstrnsubst.c35 char *s1, *s2, *this; in strnsubst() local
53 s2 = calloc(1, maxsize); in strnsubst()
54 if (s2 == NULL) in strnsubst()
61 strlcpy(s2, s1, maxsize); in strnsubst()
69 if ((strlen(s2) + strlen(s1) + strlen(replstr) - in strnsubst()
71 strlcat(s2, s1, maxsize); in strnsubst()
75 strncat(s2, s1, (uintptr_t)this - (uintptr_t)s1); in strnsubst()
76 strcat(s2, replstr); in strnsubst()
79 strcat(s2, s1); in strnsubst()
81 *str = s2; in strnsubst()
/freebsd/sys/riscv/riscv/
H A Dlocore.S141 srli s2, s9, L1_SHIFT /* kernstart >> L1_SHIFT */
142 andi a5, s2, Ln_ADDR_MASK /* & Ln_ADDR_MASK */
144 slli s2, s2, PTE_PPN2_S /* (s2 << PTE_PPN2_S) */
145 or t6, t4, s2
157 lla s2, bootstrap_pt_l2 /* Link to next level PN */
158 srli s2, s2, PAGE_SHIFT
164 slli t5, s2, PTE_PPN0_S /* (s2 << PTE_PPN0_S) */
202 lla s2, bootstrap_pt_l1
203 srli s2, s2, PAGE_SHIFT
205 or s2, s2, t0
[all …]

12345678910>>...25