]> git.ipfire.org Git - thirdparty/u-boot.git/blame - arch/arm/cpu/armv8/sha1_ce_glue.c
Revert "Merge patch series "arm: dts: am62-beagleplay: Fix Beagleplay Ethernet""
[thirdparty/u-boot.git] / arch / arm / cpu / armv8 / sha1_ce_glue.c
CommitLineData
084d8e6b
LP
1// SPDX-License-Identifier: GPL-2.0-only
2/*
3 * sha1_ce_glue.c - SHA-1 secure hash using ARMv8 Crypto Extensions
4 *
5 * Copyright (C) 2022 Linaro Ltd <loic.poulain@linaro.org>
6 */
7
d678a59d 8#include <common.h>
084d8e6b
LP
9#include <u-boot/sha1.h>
10
11extern void sha1_armv8_ce_process(uint32_t state[5], uint8_t const *src,
12 uint32_t blocks);
13
14void sha1_process(sha1_context *ctx, const unsigned char *data,
15 unsigned int blocks)
16{
17 if (!blocks)
18 return;
19
20 sha1_armv8_ce_process(ctx->state, data, blocks);
21}