hc
2024-01-31 f9004dbfff8a3fbbd7e2a88c8a4327c7f2f8e5b2
kernel/include/crypto/pkcs7.h
....@@ -1,18 +1,15 @@
1
+/* SPDX-License-Identifier: GPL-2.0-or-later */
12 /* PKCS#7 crypto data parser
23 *
34 * Copyright (C) 2012 Red Hat, Inc. All Rights Reserved.
45 * Written by David Howells (dhowells@redhat.com)
5
- *
6
- * This program is free software; you can redistribute it and/or
7
- * modify it under the terms of the GNU General Public Licence
8
- * as published by the Free Software Foundation; either version
9
- * 2 of the Licence, or (at your option) any later version.
106 */
117
128 #ifndef _CRYPTO_PKCS7_H
139 #define _CRYPTO_PKCS7_H
1410
1511 #include <linux/verification.h>
12
+#include <linux/hash_info.h>
1613 #include <crypto/public_key.h>
1714
1815 struct key;
....@@ -44,4 +41,7 @@
4441 extern int pkcs7_supply_detached_data(struct pkcs7_message *pkcs7,
4542 const void *data, size_t datalen);
4643
44
+extern int pkcs7_get_digest(struct pkcs7_message *pkcs7, const u8 **buf,
45
+ u32 *len, enum hash_algo *hash_algo);
46
+
4747 #endif /* _CRYPTO_PKCS7_H */