blob: 38c56a50dc01946d184d0bec97c9411bd6bd64d0 [file] [log] [blame]
Manish V Badarkhe7a867922021-04-22 14:41:27 +01001/*
2 * Copyright (c) 2021, Arm Limited. All rights reserved.
3 *
4 * SPDX-License-Identifier: BSD-3-Clause
5 */
6
Manish V Badarkhea26bf352021-07-02 20:29:56 +01007#ifndef TF_CRC32_H
8#define TF_CRC32_H
Manish V Badarkhe7a867922021-04-22 14:41:27 +01009
10#include <stddef.h>
11#include <stdint.h>
12
13/* compute CRC using Arm intrinsic function */
Manish V Badarkhea26bf352021-07-02 20:29:56 +010014uint32_t tf_crc32(uint32_t crc, const unsigned char *buf, size_t size);
Manish V Badarkhe7a867922021-04-22 14:41:27 +010015
Manish V Badarkhea26bf352021-07-02 20:29:56 +010016#endif /* TF_CRC32_H */