Lines Matching refs:param
88 } param; in s390x_x25519_mul() local
91 memset(¶m, 0, sizeof(param)); in s390x_x25519_mul()
93 s390x_flip_endian32(param.x25519.u_src, u_src); in s390x_x25519_mul()
94 param.x25519.u_src[0] &= 0x7f; in s390x_x25519_mul()
95 s390x_x25519_mod_p(param.x25519.u_src); in s390x_x25519_mul()
97 s390x_flip_endian32(param.x25519.d_src, d_src); in s390x_x25519_mul()
98 param.x25519.d_src[31] &= 248; in s390x_x25519_mul()
99 param.x25519.d_src[0] &= 127; in s390x_x25519_mul()
100 param.x25519.d_src[0] |= 64; in s390x_x25519_mul()
102 rc = s390x_pcc(S390X_SCALAR_MULTIPLY_X25519, ¶m.x25519) ? 0 : 1; in s390x_x25519_mul()
104 s390x_flip_endian32(u_dst, param.x25519.u_dst); in s390x_x25519_mul()
106 OPENSSL_cleanse(param.x25519.d_src, sizeof(param.x25519.d_src)); in s390x_x25519_mul()
121 } param; in s390x_x448_mul() local
124 memset(¶m, 0, sizeof(param)); in s390x_x448_mul()
126 memcpy(param.x448.u_src, u_src, 56); in s390x_x448_mul()
127 memcpy(param.x448.d_src, d_src, 56); in s390x_x448_mul()
129 s390x_flip_endian64(param.x448.u_src, param.x448.u_src); in s390x_x448_mul()
130 s390x_x448_mod_p(param.x448.u_src + 8); in s390x_x448_mul()
132 s390x_flip_endian64(param.x448.d_src, param.x448.d_src); in s390x_x448_mul()
133 param.x448.d_src[63] &= 252; in s390x_x448_mul()
134 param.x448.d_src[8] |= 128; in s390x_x448_mul()
136 rc = s390x_pcc(S390X_SCALAR_MULTIPLY_X448, ¶m.x448) ? 0 : 1; in s390x_x448_mul()
138 s390x_flip_endian64(param.x448.u_dst, param.x448.u_dst); in s390x_x448_mul()
139 memcpy(u_dst, param.x448.u_dst, 56); in s390x_x448_mul()
142 OPENSSL_cleanse(param.x448.d_src, sizeof(param.x448.d_src)); in s390x_x448_mul()
161 } param; in s390x_ed25519_mul() local
164 memset(¶m, 0, sizeof(param)); in s390x_ed25519_mul()
166 s390x_flip_endian32(param.ed25519.x_src, x_src); in s390x_ed25519_mul()
167 s390x_flip_endian32(param.ed25519.y_src, y_src); in s390x_ed25519_mul()
168 s390x_flip_endian32(param.ed25519.d_src, d_src); in s390x_ed25519_mul()
170 rc = s390x_pcc(S390X_SCALAR_MULTIPLY_ED25519, ¶m.ed25519) ? 0 : 1; in s390x_ed25519_mul()
172 s390x_flip_endian32(x_dst, param.ed25519.x_dst); in s390x_ed25519_mul()
173 s390x_flip_endian32(y_dst, param.ed25519.y_dst); in s390x_ed25519_mul()
176 OPENSSL_cleanse(param.ed25519.d_src, sizeof(param.ed25519.d_src)); in s390x_ed25519_mul()
195 } param; in s390x_ed448_mul() local
198 memset(¶m, 0, sizeof(param)); in s390x_ed448_mul()
200 memcpy(param.ed448.x_src, x_src, 57); in s390x_ed448_mul()
201 memcpy(param.ed448.y_src, y_src, 57); in s390x_ed448_mul()
202 memcpy(param.ed448.d_src, d_src, 57); in s390x_ed448_mul()
203 s390x_flip_endian64(param.ed448.x_src, param.ed448.x_src); in s390x_ed448_mul()
204 s390x_flip_endian64(param.ed448.y_src, param.ed448.y_src); in s390x_ed448_mul()
205 s390x_flip_endian64(param.ed448.d_src, param.ed448.d_src); in s390x_ed448_mul()
207 rc = s390x_pcc(S390X_SCALAR_MULTIPLY_ED448, ¶m.ed448) ? 0 : 1; in s390x_ed448_mul()
209 s390x_flip_endian64(param.ed448.x_dst, param.ed448.x_dst); in s390x_ed448_mul()
210 s390x_flip_endian64(param.ed448.y_dst, param.ed448.y_dst); in s390x_ed448_mul()
211 memcpy(x_dst, param.ed448.x_dst, 57); in s390x_ed448_mul()
212 memcpy(y_dst, param.ed448.y_dst, 57); in s390x_ed448_mul()
215 OPENSSL_cleanse(param.ed448.d_src, sizeof(param.ed448.d_src)); in s390x_ed448_mul()