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