Home
last modified time | relevance | path

Searched refs:s1 (Results 1 – 25 of 691) sorted by relevance

12345678910>>...28

/freebsd/crypto/openssl/crypto/camellia/
H A Dcamellia.c288 register u32 s0, s1, s2, s3; in Camellia_Ekeygen() local
291 k[1] = s1 = GETU32(rawKey + 4); in Camellia_Ekeygen()
297 k[9] = s1 = GETU32(rawKey + 20); in Camellia_Ekeygen()
300 k[11] = s3 = ~s1; 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.pl60 $s1="r1";
222 ldrb $s1,[$rounds,#7]
228 orr $s1,$s1,$t1,lsl#8
230 orr $s1,$s1,$t2,lsl#16
232 orr $s1,$s1,$t3,lsl#24
247 ldr $s1,[$rounds,#4]
252 rev $s1,$s1
263 rev $s1,$s1
268 str $s1,[$rounds,#4]
277 mov $t1,$s1,lsr#24
[all …]
H A Daes-s390x.pl118 $s1="%r9";
274 llgf $s1,4($inp)
283 st $s1,4($out)
296 x $s1,4($key)
314 srlg $i1,$s1,`16-3` # i0
315 sllg $i2,$s1,`0+3`
316 srlg $i3,$s1,`8-3`
317 srl $s1,`24-3`
319 nr $s1,$mask
329 l $s1,0($s1,$tbl) # Te0[s1>>24]
[all …]
H A Daes-ppc.pl87 $s1="r9";
380 lwz $s1,4($inp)
390 rotlwi $s1,$t1,8
394 rlwimi $s1,$t1,24,0,7
398 rlwimi $s1,$t1,24,16,23
409 rotlwi $t1,$s1,8
413 rlwimi $t1,$s1,24,0,7
417 rlwimi $t1,$s1,24,16,23
427 stw $s1,4($out)
450 lbz $s1,7($inp)
[all …]
H A Daes-586.pl208 $s1="ebx";
317 &movz ($v0,&HB($s1)); # 7, 6, 5*, 4
327 &movz ($v0,&LB($s1)); # 7, 6, 5, 4*
328 &shr ($s1,16); # -, -, 7, 6
336 &or ($s3,$s1); # 13,12, 7, 6
338 &mov ($s1,$v1); # s[1]=t[1]
484 { my @s = ($s0,$s1,$s2,$s3);
515 &xor ($s1,&DWP(4,$key));
536 &enccompact(0,$tbl,$s0,$s1,$s2,$s3,1);
537 &enccompact(1,$tbl,$s1,$s2,$s3,$s0,1);
[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
71 unsigned c1 = *s1; in internal_strcmp_strncmp()
77 s1++; 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
92 const uint8_t *t1 = static_cast<const uint8_t *>(s1); in internal_memcmp()
124 void __sanitizer_weak_hook_memcmp(void *called_pc, const void *s1,
[all …]
/freebsd/contrib/bearssl/src/symcipher/
H A Dchacha20_sse2.c92 __m128i s0, s1, s2, s3; in br_chacha20_sse2_run() local
96 s1 = kw0; in br_chacha20_sse2_run()
104 s0 = _mm_add_epi32(s0, s1); in br_chacha20_sse2_run()
111 s1 = _mm_xor_si128(s1, s2); in br_chacha20_sse2_run()
112 s1 = _mm_or_si128( in br_chacha20_sse2_run()
113 _mm_slli_epi32(s1, 12), in br_chacha20_sse2_run()
114 _mm_srli_epi32(s1, 20)); in br_chacha20_sse2_run()
116 s0 = _mm_add_epi32(s0, s1); in br_chacha20_sse2_run()
123 s1 = _mm_xor_si128(s1, s2); in br_chacha20_sse2_run()
124 s1 = _mm_or_si128( in br_chacha20_sse2_run()
[all …]
H A Daes_big_enc.c92 uint32_t s0, s1, s2, s3; in br_aes_big_encrypt() local
98 s1 = br_dec32be(buf + 4); in br_aes_big_encrypt()
102 s1 ^= skey[1]; in br_aes_big_encrypt()
109 ^ SboxExt1((s1 >> 16) & 0xFF) in br_aes_big_encrypt()
112 v1 = SboxExt0(s1 >> 24) in br_aes_big_encrypt()
119 ^ SboxExt3(s1 & 0xFF); in br_aes_big_encrypt()
122 ^ SboxExt2((s1 >> 8) & 0xFF) in br_aes_big_encrypt()
125 s1 = v1; in br_aes_big_encrypt()
129 s1 ^= skey[(u << 2) + 1]; in br_aes_big_encrypt()
134 | ((uint32_t)S[(s1 >> 16) & 0xFF] << 16) in br_aes_big_encrypt()
[all …]
/freebsd/usr.sbin/fdread/
H A Dfdutil.c173 char *s1; in parse_fmt() local
182 s1 = strdup(s); in parse_fmt()
183 if (s1 == NULL) in parse_fmt()
187 s1 = malloc(cp - s + 1); in parse_fmt()
188 if (s1 == NULL) in parse_fmt()
190 memcpy(s1, s, cp - s); in parse_fmt()
191 s1[cp - s] = 0; in parse_fmt()
195 if (strlen(s1) == 0) { in parse_fmt()
196 free(s1); in parse_fmt()
202 if (getnum(s1, &out->sectrac)) in parse_fmt()
[all …]
/freebsd/contrib/ntp/sntp/libpkgver/
H A Dcolcomp.c37 colcomp (s1, s2) in colcomp() argument
38 register char *s1; in colcomp()
43 while (*s1 && *s2)
45 if ( MyIsDigit(*s1)
48 hilo = (*s1 < *s2) ? -1 : (*s1 > *s2) ? 1 : 0;
49 ++s1;
51 while (MyIsDigit(*s1)
55 hilo = (*s1 < *s2) ? -1 : (*s1 > *s2) ? 1 : 0;
56 ++s1;
59 if (MyIsDigit(*s1))
[all …]
/freebsd/crypto/heimdal/lib/roken/
H A Dstrtok_r.c43 strtok_r(char *s1, const char *s2, char **lasts) in strtok_r() argument
47 if (s1 == NULL) in strtok_r()
48 s1 = *lasts; in strtok_r()
49 while(*s1 && strchr(s2, *s1)) in strtok_r()
50 ++s1; in strtok_r()
51 if(*s1 == '\0') in strtok_r()
53 ret = s1; in strtok_r()
54 while(*s1 && !strchr(s2, *s1)) in strtok_r()
55 ++s1; in strtok_r()
56 if(*s1) in strtok_r()
[all …]
/freebsd/lib/libc/arm/aeabi/
H A Daeabi_vfp_float.S36 LOAD_SREGS(s0, s1, r0, r1)
37 vcmp.f32 s0, s1
44 LOAD_SREGS(s0, s1, r0, r1)
45 vcmpe.f32 s0, s1
52 LOAD_SREGS(s0, s1, r0, r1)
53 vcmpe.f32 s1, s0
60 LOAD_SREGS(s0, s1, r0, r1)
61 vcmp.f32 s0, s1
71 LOAD_SREGS(s0, s1, r0, r1)
72 vcmp.f32 s0, s1
[all …]
/freebsd/crypto/openssh/
H A Drijndael.c765 u32 s0, s1, s2, s3, t0, t1, t2, t3; in rijndaelEncrypt() local
775 s1 = GETU32(pt + 4) ^ rk[1]; 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()
786 s1 = Te0[t1 >> 24] ^ Te1[(t2 >> 16) & 0xff] ^ Te2[(t3 >> 8) & 0xff] ^ Te3[t0 & 0xff] ^ rk[ 9]; 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
872 s1 = GETU32(pt + 4) ^ rk[1]; 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()
883 s1 = Te0[t1 >> 24] ^ Te1[(t2 >> 16) & 0xff] ^ Te2[(t3 >> 8) & 0xff] ^ Te3[t0 & 0xff] ^ rk[ 9]; 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.c23 char *s1; variable
28 s1 = "equal";
30 SM_TEST(sm_strrevcmp(s1, s2) == 0);
32 s1 = "equal";
34 SM_TEST(sm_strrevcmp(s1, s2) > 0);
36 s1 = "qual";
38 SM_TEST(sm_strrevcmp(s1, s2) < 0);
40 s1 = "Equal";
42 SM_TEST(sm_strrevcmp(s1, s2) < 0);
44 s1 = "Equal";
[all …]
H A Dstrcaseeq.c31 sm_strcaseeq(s1, s2) in sm_strcaseeq() argument
32 const char *s1; in sm_strcaseeq()
39 if (asciistr(s1))
43 return (sm_strcasecmp(s1, s2) == 0);
47 l1 = sm_lowercase(s1);
48 if (l1 != s1)
78 sm_strncaseeq(s1, s2, n) in sm_strncaseeq() argument
79 const char *s1; in sm_strncaseeq()
89 if (asciinstr(s1, 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()
38 i1 = strlen(s1) - 1;
41 charmap[(unsigned char) s1[i1]] ==
59 return (charmap[(unsigned char) s1[i1]] -
75 sm_strrevcmp(s1, s2) in sm_strrevcmp() argument
76 const char *s1, *s2; in sm_strrevcmp()
80 i1 = strlen(s1) - 1;
82 while (i1 >= 0 && i2 >= 0 && s1[i1] == s2[i2])
99 return s1[i1] - s2[i2];
/freebsd/contrib/netbsd-tests/lib/libc/regex/
H A Dt_exhaust.c81 char *d, *s1, *s2; in p0() local
82 s1 = mkstr("\\(", len); in p0()
83 s2 = concat(s1, ")"); in p0()
84 free(s1); in p0()
93 char *d, *s1, *s2, *s3; in p1() local
94 s1 = mkstr("\\(", 60); in p1()
96 s3 = concat(s1, s2); in p1()
98 free(s1); in p1()
99 s1 = concat(s3, ")"); in p1()
101 d = concat("(", s1); in p1()
[all …]
/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()
283 s1, s1 == NULL ? 0 : strlen(s1), 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()
297 s1, s1 == NULL ? 0 : strlen(s1), in test_str_ne()
[all …]
/freebsd/usr.bin/vgrind/
H A Dregexp.c54 STRNCMP(register char *s1, register char *s2, register int len) in STRNCMP() argument
58 if (*s2 - makelower(*s1)) in STRNCMP()
59 return (*s2 - makelower(*s1)); in STRNCMP()
62 s1++; in STRNCMP()
67 if (*s2 - *s1) in STRNCMP()
68 return (*s2 - *s1); in STRNCMP()
71 s1++; in STRNCMP()
339 register char *ptr,*s1; /* temporary pointer */ in expmatch() local
429 s1 = s; in expmatch()
431 ptr = expmatch(s1, MNEXT(cs), mstring); in expmatch()
[all …]
/freebsd/usr.bin/xargs/
H A Dstrnsubst.c35 char *s1, *s2, *this; in strnsubst() local
38 s1 = *str; in strnsubst()
39 if (s1 == NULL) in strnsubst()
51 maxsize = strlen(s1) + 1; in strnsubst()
60 if (match == NULL || replstr == NULL || maxsize == strlen(s1)) { in strnsubst()
61 strlcpy(s2, s1, maxsize); in strnsubst()
66 this = strstr(s1, match); 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()
[all …]
/freebsd/crypto/openssl/crypto/aes/
H A Daes_core.c465 uni s1; in MixColumns() local
470 s1.d = state[c]; in MixColumns()
471 s.d = s1.d; in MixColumns()
476 s.d ^= s1.d; in MixColumns()
477 XtimeLong(&s1.d); in MixColumns()
478 s.d ^= s1.d; in MixColumns()
479 s.b[0] ^= s1.b[1]; in MixColumns()
480 s.b[1] ^= s1.b[2]; in MixColumns()
481 s.b[2] ^= s1.b[3]; in MixColumns()
482 s.b[3] ^= s1.b[0]; in MixColumns()
[all …]
/freebsd/usr.bin/chat/
H A Dchat.c556 char *s1, *phchar; in clean() local
560 s1 = temp; in clean()
562 while (*s && s1 - temp < (off_t)(sizeof(temp) - 2 - add_return)) { in clean()
567 *s1++ = '^'; in clean()
572 *s1++ = cur_chr; in clean()
578 *s1++ = cur_chr; in clean()
585 *s1++ = '\\'; in clean()
586 *s1++ = '\\'; in clean()
593 *s1++ = '\b'; in clean()
600 *s1++ = cur_chr; in clean()
[all …]
/freebsd/tools/regression/netinet/ipdivert/
H A Dipdivert.c118 int s1, s2; in main() local
124 s1 = ipdivert_create(test); in main()
125 ipdivert_close(test, s1); in main()
132 s1 = ipdivert_create(test); in main()
133 ipdivert_bind(test, s1, 1000, 0); in main()
134 ipdivert_close(test, s1); in main()
142 s1 = ipdivert_create(test); in main()
144 ipdivert_bind(test, s1, 1000, 0); in main()
146 ipdivert_close(test, s1); in main()
155 s1 = ipdivert_create(test); in main()
[all …]
/freebsd/usr.bin/tr/
H A Dtr.c52 static STR s1 = { STRING1, NORMAL, 0, OOBCH, 0, { 0, OOBCH }, NULL, NULL }; variable
125 delete = setup(argv[0], &s1, cflag, Cflag); in main()
147 delete = setup(argv[0], &s1, cflag, Cflag); in main()
162 squeeze = setup(argv[0], &s1, cflag, Cflag); in main()
190 s1.str = argv[0]; in main()
209 while (next(&s1)) { in main()
211 if (s1.state == CCLASS_LOWER && in main()
213 s1.cnt == 1 && s2.cnt == 1) { in main()
215 ch = towupper(s1.lastch); in main()
216 cmap_add(map, s1.lastch, ch); in main()
[all …]

12345678910>>...28