1 /* SPDX-License-Identifier: BSD-3-Clause 2 * Copyright(c) 2019-2023 Broadcom 3 * All rights reserved. 4 */ 5 6 #ifndef _TF_HASH_H_ 7 #define _TF_HASH_H_ 8 9 #include "tf_core.h" 10 11 /** 12 * Calculate a crc32 on the buffer with an initial value and len 13 * 14 * Returns the crc32 15 */ 16 uint32_t 17 tf_hash_calc_crc32i(uint32_t init, uint8_t *buf, uint32_t len); 18 19 /** 20 * Calculate a crc32 on the buffer with a default initial value 21 * 22 * Returns the crc32 23 */ 24 uint32_t 25 tf_hash_calc_crc32(uint8_t *buf, uint32_t len); 26 #endif 27