X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=lib%2Ftcrypt%2Ftcrypt.h;h=e05e4683ac7aa9646ad9ec3574c53e757eee6aae;hb=ecf993834cfdfc3ff9e3584845ffce9a5b967184;hp=577221e1f5b8020eb8868bf0b8630c508289a51e;hpb=3cbb43a73a5504a4c4285394a4876eef202d7620;p=platform%2Fupstream%2Fcryptsetup.git diff --git a/lib/tcrypt/tcrypt.h b/lib/tcrypt/tcrypt.h index 577221e..e05e468 100644 --- a/lib/tcrypt/tcrypt.h +++ b/lib/tcrypt/tcrypt.h @@ -33,6 +33,8 @@ #define TCRYPT_HDR_HIDDEN_OFFSET 65536 #define TCRYPT_LRW_IKEY_LEN 16 +#define TCRYPT_KEY_POOL_LEN 64 +#define TCRYPT_KEYFILE_LEN 1048576 #define TCRYPT_HDR_FLAG_SYSTEM (1 << 0) #define TCRYPT_HDR_FLAG_NONSYSTEM (1 << 1) @@ -64,10 +66,7 @@ struct tcrypt_phdr { int TCRYPT_read_phdr(struct crypt_device *cd, struct tcrypt_phdr *hdr, - struct crypt_params_tcrypt *params, - const char *passphrase, - size_t passphrase_size, - uint32_t flags); + struct crypt_params_tcrypt *params); int TCRYPT_activate(struct crypt_device *cd, const char *name,