crypto/libtomcrypt: added CONFIG_LIBTOMCRYPT_HASHSUM option to build hashsum app
This commit is contained in:
parent
bc5d8034f1
commit
61fe9c4fa2
@ -12,7 +12,7 @@ menuconfig CRYPTO_LIBTOMCRYPT
|
|||||||
cryptographic toolkit that provides developers with a vast array
|
cryptographic toolkit that provides developers with a vast array
|
||||||
of well known published block ciphers, one-way hash functions,
|
of well known published block ciphers, one-way hash functions,
|
||||||
chaining modes, pseudo-random number generators, public key
|
chaining modes, pseudo-random number generators, public key
|
||||||
cryptography and a plethora of other routines.
|
cryptography and a plethora of other routines.
|
||||||
|
|
||||||
if CRYPTO_LIBTOMCRYPT
|
if CRYPTO_LIBTOMCRYPT
|
||||||
|
|
||||||
@ -29,29 +29,54 @@ menuconfig LIBTOMCRYPT_DEMOS
|
|||||||
if LIBTOMCRYPT_DEMOS
|
if LIBTOMCRYPT_DEMOS
|
||||||
|
|
||||||
config LIBTOMCRYPT_LTCRYPT
|
config LIBTOMCRYPT_LTCRYPT
|
||||||
tristate "LibTomCrypt ltcrypt"
|
tristate "LibTomCrypt ltcrypt"
|
||||||
default n
|
default n
|
||||||
---help---
|
---help---
|
||||||
Demo encrypt/decrypt application
|
Demo encrypt/decrypt application
|
||||||
|
|
||||||
if LIBTOMCRYPT_LTCRYPT
|
if LIBTOMCRYPT_LTCRYPT
|
||||||
|
|
||||||
config LIBTOMCRYPT_LTCRYPT_PROGNAME
|
config LIBTOMCRYPT_LTCRYPT_PROGNAME
|
||||||
string "ltcrypt program name"
|
string "ltcrypt program name"
|
||||||
default "ltcrypt"
|
default "ltcrypt"
|
||||||
---help---
|
---help---
|
||||||
LibTomMath ltcrypt application name
|
LibTomMath ltcrypt application name
|
||||||
|
|
||||||
config LIBTOMCRYPT_LTCRYPT_PRIORITY
|
config LIBTOMCRYPT_LTCRYPT_PRIORITY
|
||||||
int "ltcrypt application priority"
|
int "ltcrypt application priority"
|
||||||
default 100
|
default 100
|
||||||
|
|
||||||
config LIBTOMCRYPT_LTCRYPT_STACKSIZE
|
config LIBTOMCRYPT_LTCRYPT_STACKSIZE
|
||||||
int "ltcrypt application stack size"
|
int "ltcrypt application stack size"
|
||||||
default DEFAULT_TASK_STACKSIZE
|
default DEFAULT_TASK_STACKSIZE
|
||||||
|
|
||||||
endif # LIBTOMCRYPT_LTCRYPT
|
endif # LIBTOMCRYPT_LTCRYPT
|
||||||
|
|
||||||
|
config LIBTOMCRYPT_HASHSUM
|
||||||
|
tristate "LibTomCrypt hashsum"
|
||||||
|
depends on SCHED_ATEXIT
|
||||||
|
default n
|
||||||
|
---help---
|
||||||
|
Demo hashsum application
|
||||||
|
|
||||||
|
if LIBTOMCRYPT_HASHSUM
|
||||||
|
|
||||||
|
config LIBTOMCRYPT_HASHSUM_PROGNAME
|
||||||
|
string "hashsum program name"
|
||||||
|
default "hashsum"
|
||||||
|
---help---
|
||||||
|
LibTomMath hashsum application name
|
||||||
|
|
||||||
|
config LIBTOMCRYPT_HASHSUM_PRIORITY
|
||||||
|
int "hashsum application priority"
|
||||||
|
default 100
|
||||||
|
|
||||||
|
config LIBTOMCRYPT_HASHSUM_STACKSIZE
|
||||||
|
int "hashsum application stack size"
|
||||||
|
default DEFAULT_TASK_STACKSIZE
|
||||||
|
|
||||||
|
endif # LIBTOMCRYPT_HASHSUM
|
||||||
|
|
||||||
endif # LIBTOMCRYPT_DEMOS
|
endif # LIBTOMCRYPT_DEMOS
|
||||||
|
|
||||||
endif # CRYPTO_LIBTOMCRYPT
|
endif # CRYPTO_LIBTOMCRYPT
|
||||||
|
@ -192,6 +192,14 @@ PRIORITY += $(CONFIG_LIBTOMCRYPT_LTCRYPT_PRIORITY)
|
|||||||
STACKSIZE += $(CONFIG_LIBTOMCRYPT_LTCRYPT_STACKSIZE)
|
STACKSIZE += $(CONFIG_LIBTOMCRYPT_LTCRYPT_STACKSIZE)
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
ifneq ($(CONFIG_LIBTOMCRYPT_HASHSUM),)
|
||||||
|
MAINSRC += libtomcrypt/demos/hashsum.c
|
||||||
|
|
||||||
|
PROGNAME += $(CONFIG_LIBTOMCRYPT_HASHSUM_PROGNAME)
|
||||||
|
PRIORITY += $(CONFIG_LIBTOMCRYPT_HASHSUM_PRIORITY)
|
||||||
|
STACKSIZE += $(CONFIG_LIBTOMCRYPT_HASHSUM_STACKSIZE)
|
||||||
|
endif
|
||||||
|
|
||||||
endif
|
endif
|
||||||
|
|
||||||
CONFIG_LIBTOMCRYPT_URL ?= "https://github.com/libtom/libtomcrypt/archive"
|
CONFIG_LIBTOMCRYPT_URL ?= "https://github.com/libtom/libtomcrypt/archive"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user