hkdf: don't compile if not requested
This commit is contained in:
parent
b1b15910ed
commit
4f86ad7dcf
@ -4,6 +4,8 @@
|
|||||||
|
|
||||||
#include <tomcrypt.h>
|
#include <tomcrypt.h>
|
||||||
|
|
||||||
|
#ifdef LTC_HKDF
|
||||||
|
|
||||||
#ifndef MIN
|
#ifndef MIN
|
||||||
#define MIN(a,b) ((a)<(b))?(a):(b)
|
#define MIN(a,b) ((a)<(b))?(a):(b)
|
||||||
#endif
|
#endif
|
||||||
@ -136,6 +138,7 @@ int hkdf(int hash_idx, const unsigned char *salt, unsigned long saltlen,
|
|||||||
XFREE(extracted);
|
XFREE(extracted);
|
||||||
return err;
|
return err;
|
||||||
}
|
}
|
||||||
|
#endif /* LTC_HKDF */
|
||||||
|
|
||||||
|
|
||||||
/* vim: set ts=2 sw=2 et ai si: */
|
/* vim: set ts=2 sw=2 et ai si: */
|
||||||
|
Loading…
Reference in New Issue
Block a user