Home
last modified time | relevance | path

Searched refs:sha1_addUncounted (Results 1 – 1 of 1) sorted by relevance

/external/llvm/lib/Fuzzer/
DFuzzerSHA1.cpp133 void sha1_addUncounted(sha1nfo *s, uint8_t data) { in sha1_addUncounted() function
149 sha1_addUncounted(s, data); in sha1_writebyte()
160 sha1_addUncounted(s, 0x80); in sha1_pad()
161 while (s->bufferOffset != 56) sha1_addUncounted(s, 0x00); in sha1_pad()
164 sha1_addUncounted(s, 0); // We're only using 32 bit lengths in sha1_pad()
165 sha1_addUncounted(s, 0); // But SHA-1 supports 64 bit lengths in sha1_pad()
166 sha1_addUncounted(s, 0); // So zero pad the top bits in sha1_pad()
167 sha1_addUncounted(s, s->byteCount >> 29); // Shifting to multiply by 8 in sha1_pad()
168 sha1_addUncounted(s, s->byteCount >> 21); // as SHA-1 supports bitstreams as well as in sha1_pad()
169 sha1_addUncounted(s, s->byteCount >> 13); // byte. in sha1_pad()
[all …]