2022-09-06 04:00:10 +00:00
|
|
|
/* SPDX-License-Identifier: BSD-3-Clause
|
|
|
|
* Copyright (c) 2021 Marvell.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef _ROC_HASH_H_
|
|
|
|
#define _ROC_HASH_H_
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Compute a partial hash with the assumption that msg is the first block.
|
|
|
|
* Based on implementation from RFC 3174
|
|
|
|
*/
|
2023-09-13 12:21:49 +00:00
|
|
|
void __roc_api roc_hash_md5_gen(uint8_t *msg, uint32_t *hash);
|
2022-09-06 04:00:10 +00:00
|
|
|
void __roc_api roc_hash_sha1_gen(uint8_t *msg, uint32_t *hash);
|
|
|
|
void __roc_api roc_hash_sha256_gen(uint8_t *msg, uint32_t *hash);
|
|
|
|
void __roc_api roc_hash_sha512_gen(uint8_t *msg, uint64_t *hash, int hash_size);
|
|
|
|
|
|
|
|
#endif /* _ROC_HASH_H_ */
|