1 /* SPDX-License-Identifier: BSD-3-Clause 2 * Copyright (c) 2021 Marvell. 3 */ 4 5 #ifndef _ROC_HASH_H_ 6 #define _ROC_HASH_H_ 7 8 /* 9 * Compute a partial hash with the assumption that msg is the first block. 10 * Based on implementation from RFC 3174 11 */ 12 void __roc_api roc_hash_md5_gen(uint8_t *msg, uint32_t *hash); 13 void __roc_api roc_hash_sha1_gen(uint8_t *msg, uint32_t *hash); 14 void __roc_api roc_hash_sha256_gen(uint8_t *msg, uint32_t *hash, int hash_size); 15 void __roc_api roc_hash_sha512_gen(uint8_t *msg, uint64_t *hash, int hash_size); 16 17 #endif /* _ROC_HASH_H_ */ 18