Home | History | Annotate | Download | only in libskey

Lines Matching defs:sha

163 	SHA1_CTX sha;
171 SHA1Init(&sha);
172 SHA1Update(&sha, (unsigned char *)buf, buflen);
173 SHA1Final(NULL, &sha);
177 sha.state[0] ^= sha.state[2];
178 sha.state[1] ^= sha.state[3];
179 sha.state[0] ^= sha.state[4];
188 result[j] = (unsigned char)(sha.state[i] & 0xff);
189 result[j+1] = (unsigned char)((sha.state[i] >> 8) & 0xff);
190 result[j+2] = (unsigned char)((sha.state[i] >> 16) & 0xff);
191 result[j+3] = (unsigned char)((sha.state[i] >> 24) & 0xff);
267 SHA1_CTX sha;
270 SHA1Init(&sha);
271 SHA1Update(&sha, (unsigned char *)x, SKEY_BINKEY_SIZE);
272 SHA1Final(NULL, &sha);
275 sha.state[0] ^= sha.state[2];
276 sha.state[1] ^= sha.state[3];
277 sha.state[0] ^= sha.state[4];
280 x[j] = (unsigned char)(sha.state[i] & 0xff);
281 x[j+1] = (unsigned char)((sha.state[i] >> 8) & 0xff);
282 x[j+2] = (unsigned char)((sha.state[i] >> 16) & 0xff);
283 x[j+3] = (unsigned char)((sha.state[i] >> 24) & 0xff);