Home | History | Annotate | Download | only in wpa_supplicant

Lines Matching full:data_len

245  * @data_len: Length of data buffer in bytes
253 int omac1_aes_128(const u8 *key, const u8 *data, size_t data_len, u8 *mac)
255 return omac1_aes_128_vector(key, 1, &data, &data_len, mac);
287 * @data_len: Length of data in bytes
291 u8 *data, size_t data_len)
294 size_t j, len, left = data_len;
336 * @data_len: Length of data in bytes
342 u8 *data, size_t data_len, u8 *tag)
349 if (nonce_len > data_len)
352 buf_len = data_len;
371 aes_128_ctr_encrypt(key, nonce_mac, data, data_len);
373 os_memcpy(buf + 16, data, data_len);
374 omac1_aes_128(key, buf, 16 + data_len, data_mac);
393 * @data_len: Length of data in bytes
399 u8 *data, size_t data_len, const u8 *tag)
406 if (nonce_len > data_len)
409 buf_len = data_len;
429 os_memcpy(buf + 16, data, data_len);
430 omac1_aes_128(key, buf, 16 + data_len, data_mac);
439 aes_128_ctr_encrypt(key, nonce_mac, data, data_len);
454 * @data_len: Length of data in bytes (must be divisible by 16)
457 int aes_128_cbc_encrypt(const u8 *key, const u8 *iv, u8 *data, size_t data_len)
469 blocks = data_len / BLOCK_SIZE;
487 * @data_len: Length of data in bytes (must be divisible by 16)
490 int aes_128_cbc_decrypt(const u8 *key, const u8 *iv, u8 *data, size_t data_len)
502 blocks = data_len / BLOCK_SIZE;