Skip to content

Commit ccda71a

Browse files
author
Maxim Radugin
committed
Mode changed
1 parent 1ddca5c commit ccda71a

4 files changed

Lines changed: 16 additions & 3 deletions

File tree

README.md

Lines changed: 16 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,17 @@
1-
dmcryptfile
2-
===========
1+
Encrypts/decrypts file in dm-crypt compatible way, using kernel crypto API.
2+
Copyright (c) 2013 Maxim Radugin.
3+
4+
Usage: dmcryptfile <arguments>
5+
6+
This utility is designed to encrypt disk/partition image files in userspace
7+
without root priviledges and without using device mapper and cryptsetup.
8+
Currently supports only plain mode, no LUKS support!
9+
Backend code is taken from cryptsetup.
10+
Input key size should be of desired cipher key size.
11+
Key is passed directly to the cipher algorithm, no hashing or any other
12+
processing is performed. It is up to the user to provide strong key.
13+
For available ciphers, chain modes and key sizes check /proc/crypto.
14+
Only plain IV mode is supported.
15+
Input file size must be multiple of sector size i.e. 512 bytes.
16+
If input file is not multiple of sector size, output will be truncated.
317

4-
Encrypts/decrypts file in plain dm-crypt compatible way, using kernel crypto API.

crypto_backend.h

100755100644
File mode changed.

crypto_kernel.c

100755100644
File mode changed.

dmcryptfile.c

100755100644
File mode changed.

0 commit comments

Comments
 (0)