Lines Matching refs:buf_len
33 size_t buf_len; in aes_128_eax_encrypt() local
39 buf_len = nonce_len; in aes_128_eax_encrypt()
41 buf_len = data_len; in aes_128_eax_encrypt()
42 if (hdr_len > buf_len) in aes_128_eax_encrypt()
43 buf_len = hdr_len; in aes_128_eax_encrypt()
44 buf_len += 16; in aes_128_eax_encrypt()
46 buf = os_malloc(buf_len); in aes_128_eax_encrypt()
74 bin_clear_free(buf, buf_len); in aes_128_eax_encrypt()
97 size_t buf_len; in aes_128_eax_decrypt() local
103 buf_len = nonce_len; in aes_128_eax_decrypt()
105 buf_len = data_len; in aes_128_eax_decrypt()
106 if (hdr_len > buf_len) in aes_128_eax_decrypt()
107 buf_len = hdr_len; in aes_128_eax_decrypt()
108 buf_len += 16; in aes_128_eax_decrypt()
110 buf = os_malloc(buf_len); in aes_128_eax_decrypt()