Lines Matching refs:enclen
64 size_t enclen = datalen + CHACHA20POLY1305_AUTHTAG_SIZE; in big_key_preparse() local
87 buf = kvmalloc(enclen, GFP_KERNEL); in big_key_preparse()
106 file = shmem_kernel_file_setup("", enclen, 0); in big_key_preparse()
112 written = kernel_write(file, buf, enclen, &pos); in big_key_preparse()
113 if (written != enclen) { in big_key_preparse()
127 kvfree_sensitive(buf, enclen); in big_key_preparse()
145 kvfree_sensitive(buf, enclen); in big_key_preparse()
239 size_t enclen = datalen + CHACHA20POLY1305_AUTHTAG_SIZE; in big_key_read() local
242 buf = kvmalloc(enclen, GFP_KERNEL); in big_key_read()
253 ret = kernel_read(file, buf, enclen, &pos); in big_key_read()
254 if (ret != enclen) { in big_key_read()
260 ret = chacha20poly1305_decrypt(buf, buf, enclen, NULL, 0, 0, in big_key_read()
273 kvfree_sensitive(buf, enclen); in big_key_read()