// SPDX-License-Identifier: BSD-2-Clause /* * Copyright (c) 2022, Linaro Limited */ #include #include /* Prototype for assembly function */ void sha512_ce_transform(uint64_t state[8], const void *src, unsigned int block_count); void crypto_accel_sha512_compress(uint64_t state[8], const void *src, unsigned int block_count) { uint32_t vfp_state = 0; vfp_state = thread_kernel_enable_vfp(); sha512_ce_transform(state, src, block_count); thread_kernel_disable_vfp(vfp_state); }