Commit d93a925b authored by Milan Broz's avatar Milan Broz

Check for required minumum gcrypt version.

(also ensure that gcrypt global init is called,

git-svn-id: 36d66b0a-2a48-0410-832c-cd162a569da5
parent 9eac56c6
2010-01-10 Milan Broz <>
* Fix initialisation of gcrypt duting luksFormat.
* Convert hash name to lower case in header (fix sha1 backward comatible header)
* Check for minimum required gcrypt version.
2009-12-30 Milan Broz <>
* Fix key slot iteration count calculation (small -i value was the same as default).
#include <stdlib.h>
#include <string.h>
#include <ctype.h>
#include <errno.h>
#include <gcrypt.h>
#include "libcryptsetup.h"
......@@ -12,8 +13,8 @@
int init_crypto(void)
//if (!gcry_check_version (GCRYPT_VERSION))
// return -ENOSYS;
if (!gcry_check_version (GCRYPT_REQ_VERSION))
return -ENOSYS;
gcry_control (GCRYCTL_INIT_SECMEM, 16384, 0);
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment