mirror of
https://gitlab.com/cryptsetup/cryptsetup.git
synced 2025-12-05 16:00:05 +01:00
Add kernel only detection in crypt storage API.
This commit is contained in:
committed by
Milan Broz
parent
a0540cafb3
commit
f9fa4cc099
@@ -117,6 +117,8 @@ int crypt_storage_decrypt(struct crypt_storage *ctx, uint64_t iv_offset,
|
||||
int crypt_storage_encrypt(struct crypt_storage *ctx, uint64_t iv_offset,
|
||||
uint64_t length, char *buffer);
|
||||
|
||||
bool crypt_storage_kernel_only(struct crypt_storage *ctx);
|
||||
|
||||
/* Memzero helper (memset on stack can be optimized out) */
|
||||
static inline void crypt_backend_memzero(void *s, size_t n)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user