Lines Matching refs:charNdx
195 size_t charNdx; in deSha1_render() local
197 for (charNdx = 0; charNdx < 40; charNdx++) in deSha1_render()
199 const deUint32 val32 = hash->hash[charNdx / 8]; in deSha1_render()
200 const deUint8 val8 = (deUint8)(0x0fu & (val32 >> (4 * (8 - 1 - (charNdx % 8))))); in deSha1_render()
203 buffer[charNdx] = (char)('0' + val8); in deSha1_render()
205 buffer[charNdx] = (char)('a' + val8 - 10); in deSha1_render()
211 size_t charNdx; in deSha1_parse() local
215 for (charNdx = 0; charNdx < 40; charNdx++) in deSha1_parse()
219 if (buffer[charNdx] >= '0' && buffer[charNdx] <= '9') in deSha1_parse()
220 val4 = (deUint8)(buffer[charNdx] - '0'); in deSha1_parse()
221 else if (buffer[charNdx] >= 'a' && buffer[charNdx] <= 'f') in deSha1_parse()
222 val4 = (deUint8)(10 + (buffer[charNdx] - 'a')); in deSha1_parse()
223 else if (buffer[charNdx] >= 'A' && buffer[charNdx] <= 'F') in deSha1_parse()
224 val4 = (deUint8)(10 + (buffer[charNdx] - 'A')); in deSha1_parse()
228 hash->hash[charNdx / 8] |= ((deUint32)val4) << (4 * (8u - 1u - (charNdx % 8u))); in deSha1_parse()