diff options
author | Berne Hebark <berne.hebark@stericsson.com> | 2011-06-09 13:08:25 +0200 |
---|---|---|
committer | Ulf Hansson <ulf.hansson@stericsson.com> | 2011-09-19 15:15:47 +0200 |
commit | d8a2127e3e031f7901c7d731e638740d845a63d1 (patch) | |
tree | 76303f570a6e416f494054a75b84da4ee6cb9450 /drivers/crypto/ux500/hash/hash_alg.h | |
parent | 0193231f62eed3c48a58d7c7328283ca7586006d (diff) |
crypto: ux500: hash: Empty message support
Added support for empty message (pre-calculated) digests.
Support for data > blocksize, bug introduced in commit using ahash.
ST-Ericsson ID: 344561
ST-Ericsson Linux next: Not tested, ER 320876
ST-Ericsson FOSS-OUT ID: Trivial
Change-Id: I7d9615b074438d1e072bd6c291d392e4ff5e7768
Signed-off-by: Berne Hebark <berne.hebark@stericsson.com>
Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/24825
Reviewed-by: QATEST
Reviewed-by: QATOOLS
Diffstat (limited to 'drivers/crypto/ux500/hash/hash_alg.h')
-rw-r--r-- | drivers/crypto/ux500/hash/hash_alg.h | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/drivers/crypto/ux500/hash/hash_alg.h b/drivers/crypto/ux500/hash/hash_alg.h index 3bf1354ea03..2895c2ffe5e 100644 --- a/drivers/crypto/ux500/hash/hash_alg.h +++ b/drivers/crypto/ux500/hash/hash_alg.h @@ -10,11 +10,7 @@ #include <linux/bitops.h> -/* Number of bytes the message digest */ -#define HASH_MSG_DIGEST_SIZE 32 -#define HASH_BLOCK_SIZE 64 -#define HASH_SHA1_DIGEST_SIZE 20 -#define HASH_SHA2_DIGEST_SIZE 32 +#define HASH_BLOCK_SIZE 64 /* Maximum value of the length's high word */ #define HASH_HIGH_WORD_MAX_VAL 0xFFFFFFFFUL |