Searched refs:sha1_addUncounted (Results 1 – 1 of 1) sorted by relevance
/third_party/json/test/thirdparty/Fuzzer/ |
D | FuzzerSHA1.cpp | 136 void sha1_addUncounted(sha1nfo *s, uint8_t data) { in sha1_addUncounted() function 152 sha1_addUncounted(s, data); in sha1_writebyte() 163 sha1_addUncounted(s, 0x80); in sha1_pad() 164 while (s->bufferOffset != 56) sha1_addUncounted(s, 0x00); in sha1_pad() 167 sha1_addUncounted(s, 0); // We're only using 32 bit lengths in sha1_pad() 168 sha1_addUncounted(s, 0); // But SHA-1 supports 64 bit lengths in sha1_pad() 169 sha1_addUncounted(s, 0); // So zero pad the top bits in sha1_pad() 170 sha1_addUncounted(s, s->byteCount >> 29); // Shifting to multiply by 8 in sha1_pad() 171 sha1_addUncounted(s, s->byteCount >> 21); // as SHA-1 supports bitstreams as well as in sha1_pad() 172 sha1_addUncounted(s, s->byteCount >> 13); // byte. in sha1_pad() [all …]
|