mirror of
https://source.denx.de/u-boot/u-boot.git
synced 2025-08-11 09:47:00 +02:00
When bringing in the series 'arm: dts: am62-beagleplay: Fix Beagleplay Ethernet"' I failed to notice that b4 noticed it was based on next and so took that as the base commit and merged that part of next to master. This reverts commitc8ffd1356d
, reversing changes made to2ee6f3a5f7
. Reported-by: Jonas Karlman <jonas@kwiboo.se> Signed-off-by: Tom Rini <trini@konsulko.com>
22 lines
509 B
C
22 lines
509 B
C
// SPDX-License-Identifier: GPL-2.0-only
|
|
/*
|
|
* sha256_ce_glue.c - SHA-256 secure hash using ARMv8 Crypto Extensions
|
|
*
|
|
* Copyright (C) 2022 Linaro Ltd <loic.poulain@linaro.org>
|
|
*/
|
|
|
|
#include <common.h>
|
|
#include <u-boot/sha256.h>
|
|
|
|
extern void sha256_armv8_ce_process(uint32_t state[8], uint8_t const *src,
|
|
uint32_t blocks);
|
|
|
|
void sha256_process(sha256_context *ctx, const unsigned char *data,
|
|
unsigned int blocks)
|
|
{
|
|
if (!blocks)
|
|
return;
|
|
|
|
sha256_armv8_ce_process(ctx->state, data, blocks);
|
|
}
|