mirror of
https://github.com/Telecominfraproject/OpenCellular.git
synced 2026-01-11 18:35:28 +00:00
This change adds the plumbing for SHA-384 & 512. The actual hash implementation is software only, and a part of the third_party/cryptoc library. BRANCH=none BUG=none CQ-DEPEND=CL:418263 TEST=TCG tests pass Change-Id: Iba7e6d420fd7fa0bce4ad9061e00f9275ecf4d72 Signed-off-by: nagendra modadugu <ngm@google.com> Reviewed-on: https://chromium-review.googlesource.com/417888 Commit-Ready: Nagendra Modadugu <ngm@google.com> Tested-by: Nagendra Modadugu <ngm@google.com> Reviewed-by: Andrey Pronin <apronin@chromium.org>
21 lines
445 B
C
21 lines
445 B
C
/* Copyright 2016 The Chromium OS Authors. All rights reserved.
|
|
* Use of this source code is governed by a BSD-style license that can be
|
|
* found in the LICENSE file.
|
|
*/
|
|
|
|
#include "dcrypto.h"
|
|
#include "internal.h"
|
|
|
|
#include "cryptoc/sha512.h"
|
|
|
|
void DCRYPTO_SHA512_init(LITE_SHA512_CTX *ctx)
|
|
{
|
|
SHA512_init(ctx);
|
|
}
|
|
|
|
const uint8_t *DCRYPTO_SHA512_hash(const void *data, uint32_t n,
|
|
uint8_t *digest)
|
|
{
|
|
return SHA512_hash(data, n, digest);
|
|
}
|