Lines Matching refs:len
54 static void pad_block(u8 *pad, const u8 *addr, size_t len)
57 os_memcpy(pad, addr, len);
59 if (len < AES_BLOCK_SIZE)
60 pad[len] = 0x80;
65 size_t *len, u8 *mac)
83 ret = omac1_aes_128(key, addr[i], len[i], tmp2);
90 if (len[i] >= AES_BLOCK_SIZE) {
91 buf = os_malloc(len[i]);
95 os_memcpy(buf, addr[i], len[i]);
96 xorend(buf, len[i], tmp, AES_BLOCK_SIZE);
97 ret = omac1_aes_128(key, buf, len[i], mac);
98 bin_clear_free(buf, len[i]);
103 pad_block(tmp2, addr[i], len[i]);
112 const u8 *addr[], const size_t *len, u8 *out)
126 _len[i] = len[i];
148 size_t num_elem, const u8 *addr[], const size_t *len,
166 _len[i] = len[i];