xref: /openbmc/qemu/include/crypto/x509-utils.h (revision 6a0e10b7)
1 /*
2  * X.509 certificate related helpers
3  *
4  * Copyright (c) 2024 Dorjoy Chowdhury <dorjoychy111@gmail.com>
5  *
6  * This work is licensed under the terms of the GNU GPL, version 2 or
7  * (at your option) any later version.  See the COPYING file in the
8  * top-level directory.
9  */
10 
11 #ifndef QCRYPTO_X509_UTILS_H
12 #define QCRYPTO_X509_UTILS_H
13 
14 #include "crypto/hash.h"
15 
16 int qcrypto_get_x509_cert_fingerprint(uint8_t *cert, size_t size,
17                                       QCryptoHashAlgo hash,
18                                       uint8_t *result,
19                                       size_t *resultlen,
20                                       Error **errp);
21 
22 #endif
23