Lines Matching defs:len
27 * @len: Lengths of the data blocks
31 int sha1_vector(size_t num_elem, const u8 *addr[], const size_t *len, u8 *mac)
41 SHA1Update(&ctx, addr[i], len[i]);
63 len)
66 long len)
68 The 'len' parameter was declared an int which works fine on 32 bit machines.
71 it. This caused the hash function to generate incorrect values if len was
72 greater than 8191 (8K - 1) due to the 'len << 3' on line 3 of SHA1Update().
248 void SHA1Update(SHA1_CTX* context, const void *_data, u32 len)
257 if ((context->count[0] += len << 3) < (len << 3))
259 context->count[1] += (len >> 29);
260 if ((j + len) > 63) {
263 for ( ; i + 63 < len; i += 64) {
269 os_memcpy(&context->buffer[j], &data[i], len - i);