Home
last modified time | relevance | path

Searched refs:x (Results 1 – 25 of 75) sorted by relevance

123

/openssh-portable/
H A Dcipher-aesctr.c42 u8 x, add = 1; in aesctr_inc() local
47 x = ctr[i]; in aesctr_inc()
48 x = (x | (x >> 4)) & 0xf; in aesctr_inc()
49 x = (x | (x >> 2)) & 0x3; in aesctr_inc()
50 x = (x | (x >> 1)) & 0x1; in aesctr_inc()
51 add *= (x^1); in aesctr_inc()
59 x->rounds = rijndaelKeySetupEnc(x->ek, k, kbits); in aesctr_keysetup()
63 aesctr_ivsetup(aesctr_ctx *x,const u8 *iv) in aesctr_ivsetup() argument
65 memcpy(x->ctr, iv, AES_BLOCK_SIZE); in aesctr_ivsetup()
76 rijndaelEncrypt(x->ek, x->rounds, x->ctr, buf); in aesctr_encrypt_bytes()
[all …]
H A Dge25519.c35 fe25519 x; member
43 fe25519 x; member
50 fe25519 x; member
72 fe25519_mul(&r->x, &p->x, &p->t); in p1p1_to_p2()
136 fe25519_add(&r->x, &p->x, &p->y); in dbl_p1p1()
137 fe25519_square(&r->x, &r->x); in dbl_p1p1()
138 fe25519_sub(&r->x, &r->x, &a); in dbl_p1p1()
139 fe25519_sub(&r->x, &r->x, &b); in dbl_p1p1()
148 fe25519_cmov(&r->x, &p->x, b); in cmov_aff()
227 fe25519_mul(&r->x, &r->x, &ge25519_sqrtm1); in ge25519_unpackneg_vartime()
[all …]
H A Dfe25519.h40 void fe25519_unpack(fe25519 *r, const unsigned char x[32]);
42 void fe25519_pack(unsigned char r[32], const fe25519 *x);
44 int fe25519_iszero(const fe25519 *x);
46 int fe25519_iseq_vartime(const fe25519 *x, const fe25519 *y);
48 void fe25519_cmov(fe25519 *r, const fe25519 *x, unsigned char b);
54 void fe25519_neg(fe25519 *r, const fe25519 *x);
56 unsigned char fe25519_getparity(const fe25519 *x);
58 void fe25519_add(fe25519 *r, const fe25519 *x, const fe25519 *y);
64 void fe25519_square(fe25519 *r, const fe25519 *x);
66 void fe25519_invert(fe25519 *r, const fe25519 *x);
[all …]
H A Dchacha.c100 j0 = x->input[0]; in chacha_encrypt_bytes()
101 j1 = x->input[1]; in chacha_encrypt_bytes()
102 j2 = x->input[2]; in chacha_encrypt_bytes()
103 j3 = x->input[3]; in chacha_encrypt_bytes()
104 j4 = x->input[4]; in chacha_encrypt_bytes()
105 j5 = x->input[5]; in chacha_encrypt_bytes()
106 j6 = x->input[6]; in chacha_encrypt_bytes()
107 j7 = x->input[7]; in chacha_encrypt_bytes()
108 j8 = x->input[8]; in chacha_encrypt_bytes()
109 j9 = x->input[9]; in chacha_encrypt_bytes()
[all …]
H A Dsc25519.h44 void sc25519_from32bytes(sc25519 *r, const unsigned char x[32]);
46 void shortsc25519_from16bytes(shortsc25519 *r, const unsigned char x[16]);
48 void sc25519_from64bytes(sc25519 *r, const unsigned char x[64]);
50 void sc25519_from_shortsc(sc25519 *r, const shortsc25519 *x);
52 void sc25519_to32bytes(unsigned char r[32], const sc25519 *x);
54 int sc25519_iszero_vartime(const sc25519 *x);
56 int sc25519_isshort_vartime(const sc25519 *x);
58 int sc25519_lt_vartime(const sc25519 *x, const sc25519 *y);
60 void sc25519_add(sc25519 *r, const sc25519 *x, const sc25519 *y);
62 void sc25519_sub_nored(sc25519 *r, const sc25519 *x, const sc25519 *y);
[all …]
H A Dfe25519.c21 return x; in equal()
26 unsigned int x = a; in ge() local
29 x ^= 1; /* 1: yes; 0: no */ in ge()
30 return x; in ge()
111 fe25519 y = *x; in fe25519_pack()
121 fe25519 t = *x; in fe25519_iszero()
132 fe25519 t1 = *x; in fe25519_iseq_vartime()
151 fe25519 t = *x; in fe25519_getparity()
189 t[0] = x->v[0] + 0x1da; in fe25519_sub()
190 t[31] = x->v[31] + 0xfe; in fe25519_sub()
[all …]
H A Dsc25519.c23 unsigned int x = a; in lt() local
25 x >>= 31; /* 0: no; 1: yes */ in lt()
26 return x; in lt()
74 for(i=0;i<33;i++)r1[i] = x[i]; in barrett_reduce()
106 for(i=0;i<32;i++) t[i] = x[i]; in sc25519_from32bytes()
121 for(i=0;i<64;i++) t[i] = x[i]; in sc25519_from64bytes()
129 r->v[i] = x->v[i]; in sc25519_from_shortsc()
144 if(x->v[i] != 0) return 0; in sc25519_iszero_vartime()
152 if(x->v[i] != 0) return 0; in sc25519_isshort_vartime()
187 t = x->v[i] - y->v[i] - b; in sc25519_sub_nored()
[all …]
H A Dsntrup761.c55 int32_MINMAX(x[j],x[j+p]); in crypto_sort_int32()
59 int32_MINMAX(x[j],x[j+p]); in crypto_sort_int32()
165 *r = x; in uint32_divmod_uint14()
692 x[0] = b; in Hash_prefix()
939 small x; in Small_encode() local
950 *s++ = x; in Small_encode()
960 *f++ = ((small)(x&3))-1; x >>= 2; in Small_decode()
961 *f++ = ((small)(x&3))-1; x >>= 2; in Small_decode()
962 *f++ = ((small)(x&3))-1; x >>= 2; in Small_decode()
1166 Hash_prefix(h,2,x,sizeof x); in HashConfirm()
[all …]
H A Dconfigure.ac58 if test "x$MANDOC" != "x" ; then
60 elif test "x$NROFF" != "x" ; then
62 elif test "x$GROFF" != "x" ; then
234 snprintf(x, sizeof(x), "XXX%d", func(1));
247 snprintf(x, sizeof(x), "XXX%d", func(1));
941 if test "x$seccomp_audit_arch" != "x" ; then
1736 if test "x$use_pie" = "x"; then
3619 test "x$seccomp_audit_arch" = "x" && \
5317 if test x"$system_utmp_path" = x"no" ; then
5347 if test x"$system_wtmp_path" = x"no" ; then
[all …]
H A Dcipher-aesctr.h31 void aesctr_keysetup(aesctr_ctx *x,const u8 *k,u32 kbits,u32 ivbits);
32 void aesctr_ivsetup(aesctr_ctx *x,const u8 *iv);
33 void aesctr_encrypt_bytes(aesctr_ctx *x,const u8 *m,u8 *c,u32 bytes);
H A Dchacha.h25 void chacha_keysetup(struct chacha_ctx *x, const u_char *k, u_int kbits)
27 void chacha_ivsetup(struct chacha_ctx *x, const u_char *iv, const u_char *ctr)
30 void chacha_encrypt_bytes(struct chacha_ctx *x, const u_char *m,
/openssh-portable/openbsd-compat/
H A Dsha1.h43 #define HTONDIGEST(x) do { \ argument
44 x[0] = htonl(x[0]); \
45 x[1] = htonl(x[1]); \
46 x[2] = htonl(x[2]); \
47 x[3] = htonl(x[3]); \
48 x[4] = htonl(x[4]); } while (0)
51 x[0] = ntohl(x[0]); \
52 x[1] = ntohl(x[1]); \
53 x[2] = ntohl(x[2]); \
54 x[3] = ntohl(x[3]); \
[all …]
H A Dchacha_private.h82 x->input[12] = 0; in chacha_ivsetup()
83 x->input[13] = 0; in chacha_ivsetup()
99 j0 = x->input[0]; in chacha_encrypt_bytes()
100 j1 = x->input[1]; in chacha_encrypt_bytes()
101 j2 = x->input[2]; in chacha_encrypt_bytes()
102 j3 = x->input[3]; in chacha_encrypt_bytes()
103 j4 = x->input[4]; in chacha_encrypt_bytes()
104 j5 = x->input[5]; in chacha_encrypt_bytes()
105 j6 = x->input[6]; in chacha_encrypt_bytes()
106 j7 = x->input[7]; in chacha_encrypt_bytes()
[all …]
H A Dsys-tree.h285 #define SPLAY_FIND(name, x, y) name##_SPLAY_FIND(x, y) argument
287 #define SPLAY_MIN(name, x) (SPLAY_EMPTY(x) ? NULL \ argument
289 #define SPLAY_MAX(name, x) (SPLAY_EMPTY(x) ? NULL \ argument
295 (x) = SPLAY_NEXT(name, head, x))
726 #define RB_INSERT(name, x, y) name##_RB_INSERT(x, y) argument
727 #define RB_REMOVE(name, x, y) name##_RB_REMOVE(x, y) argument
728 #define RB_FIND(name, x, y) name##_RB_FIND(x, y) argument
729 #define RB_NFIND(name, x, y) name##_RB_NFIND(x, y) argument
733 #define RB_MAX(name, x) name##_RB_MINMAX(x, RB_INF) argument
738 (x) = name##_RB_NEXT(x))
[all …]
H A Dsha2.c164 #define S32(b,x) (((x) >> (b)) | ((x) << (32 - (b)))) argument
166 #define S64(b,x) (((x) >> (b)) | ((x) << (64 - (b)))) argument
169 #define Ch(x,y,z) (((x) & (y)) ^ ((~(x)) & (z))) argument
173 #define Sigma0_256(x) (S32(2, (x)) ^ S32(13, (x)) ^ S32(22, (x))) argument
174 #define Sigma1_256(x) (S32(6, (x)) ^ S32(11, (x)) ^ S32(25, (x))) argument
175 #define sigma0_256(x) (S32(7, (x)) ^ S32(18, (x)) ^ R(3 , (x))) argument
176 #define sigma1_256(x) (S32(17, (x)) ^ S32(19, (x)) ^ R(10, (x))) argument
179 #define Sigma0_512(x) (S64(28, (x)) ^ S64(34, (x)) ^ S64(39, (x))) argument
180 #define Sigma1_512(x) (S64(14, (x)) ^ S64(18, (x)) ^ S64(41, (x))) argument
181 #define sigma0_512(x) (S64( 1, (x)) ^ S64( 8, (x)) ^ R( 7, (x))) argument
[all …]
H A Dbsd-misc.h180 # define fflush(x) (_ssh_compat_fflush(x)) argument
188 #define realpath(x, y) (sftp_realpath((x), (y))) argument
H A Dmd5.c142 #define F1(x, y, z) (z ^ (x & (y ^ z))) argument
143 #define F2(x, y, z) F1(z, x, y) argument
144 #define F3(x, y, z) (x ^ y ^ z) argument
145 #define F4(x, y, z) (y ^ (x | ~z)) argument
148 #define MD5STEP(f, w, x, y, z, data, s) \ argument
149 ( w += f(x, y, z) + data, w = w<<s | w>>(32-s), w += x )
/openssh-portable/regress/unittests/sshbuf/
H A Dtest_sshbuf_getput_basic.c291 ASSERT_INT_EQ(sshbuf_put(p1, x, sizeof(x)), 0); in sshbuf_getput_basic_tests()
296 ASSERT_MEM_EQ(d, x, sizeof(x)); in sshbuf_getput_basic_tests()
307 ASSERT_INT_EQ(sshbuf_put(p1, x, sizeof(x)), 0); in sshbuf_getput_basic_tests()
311 ASSERT_MEM_EQ(d, x, sizeof(x)); in sshbuf_getput_basic_tests()
321 ASSERT_INT_EQ(sshbuf_put(p1, x, sizeof(x)), 0); in sshbuf_getput_basic_tests()
335 ASSERT_INT_EQ(sshbuf_put(p1, x, sizeof(x)), 0); in sshbuf_getput_basic_tests()
347 ASSERT_INT_EQ(sshbuf_put(p1, x, sizeof(x)), 0); in sshbuf_getput_basic_tests()
359 ASSERT_INT_EQ(sshbuf_put(p1, x, sizeof(x)), 0); in sshbuf_getput_basic_tests()
393 r = sshbuf_put_string(p1, x, sizeof(x)); in sshbuf_getput_basic_tests()
488 ASSERT_INT_EQ(sshbuf_put(p1, x, sizeof(x)), 0); in sshbuf_getput_basic_tests()
[all …]
/openssh-portable/regress/
H A Dknownhosts-command.sh22 ${SSH} -F $OBJ/ssh_proxy x true || fail "ssh connect failed"
30 ${SSH} -F $OBJ/ssh_proxy x true && fail "ssh connect succeeded with no keys"
39 ${SSH} -F $OBJ/ssh_proxy x true && fail "ssh connect succeeded with bad exit"
51 ${SSH} -F $OBJ/ssh_proxy -oHostKeyAlgorithms=$keytype x true ||
52 fail "ssh connect failed for keytype $x"
H A Dcfginclude.sh105 trial x x
117 ${REAL_SSH} -F $OBJ/ssh_config.i -G x 2>/dev/null && \
131 cat > $OBJ/ssh_config.i.x << _EOF
132 Match host x
137 cat > $OBJ/ssh_config.i.x << _EOF
138 Host x
246 trial x x
272 cat > $OBJ/ssh_config.i.x << _EOF
273 Match host x
278 cat > $OBJ/ssh_config.i.x << _EOF
[all …]
H A Dsftp-cmds.sh113 for x in $GLOBFILES; do
114 cmp /bin/$x ${COPY}.dd/$x || fail "corrupted copy after get"
127 for x in $GLOBFILES; do
128 cmp /bin/$x ${COPY}.dd/$x || fail "corrupted copy after get"
159 for x in $GLOBFILES; do
160 cmp /bin/$x ${COPY}.dd/$x || fail "corrupted copy after put"
173 for x in $GLOBFILES; do
174 cmp /bin/$x ${COPY}.dd/$x || fail "corrupted copy after put"
H A Dsftp-badcmds.sh22 for x in $GLOBFILES; do
23 test -f ${COPY}.dd/$x && fail "existing copy after get nonexistent"
36 for x in $GLOBFILES; do
37 test -f ${COPY}.dd/$x && fail "existing copy after nonexistent"
/openssh-portable/contrib/hpux/
H A Dsshd.rc43 x=$?
44 if [ $x -ne 0 ]; then
45 echo "EXIT CODE: $x"
H A Degd.rc45 x=$?
46 if [ $x -ne 0 ]; then
47 echo "EXIT CODE: $x"
/openssh-portable/regress/unittests/sshkey/
H A Dmktestdata.sh19 for x in n p q ; do
20 echo "" >> ${_outbase}.$x
21 echo ============ ${_outbase}.$x
22 cat ${_outbase}.$x
40 for x in priv pub g ; do
41 echo "" >> ${_outbase}.$x
42 echo ============ ${_outbase}.$x
43 cat ${_outbase}.$x
61 for x in priv pub curve ; do
62 echo "" >> ${_outbase}.$x
[all …]

123