mirror of
https://github.com/Telecominfraproject/OpenCellular.git
synced 2026-01-01 21:02:27 +00:00
CR50: remove duplicate SHA #defines
Include the appropriate SHA header files and remove duplicate #defines. BRANCH=none BUG=none TEST=compilation succeeds Change-Id: I15b77c3f40a07af8ea397f41d671386f303287eb Signed-off-by: nagendra modadugu <ngm@google.com> Reviewed-on: https://chromium-review.googlesource.com/505200 Commit-Ready: Nagendra Modadugu <ngm@google.com> Tested-by: Nagendra Modadugu <ngm@google.com> Reviewed-by: Andrey Pronin <apronin@chromium.org>
This commit is contained in:
committed by
chrome-bot
parent
395fce39e2
commit
dee69a236f
@@ -13,6 +13,8 @@
|
||||
|
||||
#include "cryptoc/sha.h"
|
||||
#include "cryptoc/sha256.h"
|
||||
#include "cryptoc/sha384.h"
|
||||
#include "cryptoc/sha512.h"
|
||||
#include "cryptoc/util.h"
|
||||
|
||||
/* Extend the MSB throughout the word. */
|
||||
@@ -275,12 +277,6 @@ static const uint8_t SHA512_DER[] = {
|
||||
0x00, 0x04, 0x40
|
||||
};
|
||||
|
||||
/* TODO(ngm): move these #defines to third_party/cryptoc once SHA-384
|
||||
* & 512 support is available.
|
||||
*/
|
||||
#define SHA384_DIGEST_SIZE 48
|
||||
#define SHA512_DIGEST_SIZE 64
|
||||
|
||||
static int pkcs1_get_der(enum hashing_mode hashing, const uint8_t **der,
|
||||
uint32_t *der_size, uint32_t *hash_size)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user