]> git.proxmox.com Git - mirror_edk2.git/blame - CryptoPkg/Library/BaseCryptLibNull/Pk/CryptPkcs7SignNull.c
CryptoPkg: Apply uncrustify changes
[mirror_edk2.git] / CryptoPkg / Library / BaseCryptLibNull / Pk / CryptPkcs7SignNull.c
CommitLineData
d95de082
SB
1/** @file\r
2 PKCS#7 SignedData Sign Wrapper Implementation which does not provide real\r
3 capabilities.\r
4\r
5Copyright (c) 2012, Intel Corporation. All rights reserved.<BR>\r
6SPDX-License-Identifier: BSD-2-Clause-Patent\r
7\r
8**/\r
9\r
10#include "InternalCryptLib.h"\r
11\r
12/**\r
13 Creates a PKCS#7 signedData as described in "PKCS #7: Cryptographic Message\r
14 Syntax Standard, version 1.5". This interface is only intended to be used for\r
15 application to perform PKCS#7 functionality validation.\r
16\r
17 Return FALSE to indicate this interface is not supported.\r
18\r
19 @param[in] PrivateKey Pointer to the PEM-formatted private key data for\r
20 data signing.\r
21 @param[in] PrivateKeySize Size of the PEM private key data in bytes.\r
22 @param[in] KeyPassword NULL-terminated passphrase used for encrypted PEM\r
23 key data.\r
24 @param[in] InData Pointer to the content to be signed.\r
25 @param[in] InDataSize Size of InData in bytes.\r
26 @param[in] SignCert Pointer to signer's DER-encoded certificate to sign with.\r
27 @param[in] OtherCerts Pointer to an optional additional set of certificates to\r
28 include in the PKCS#7 signedData (e.g. any intermediate\r
29 CAs in the chain).\r
30 @param[out] SignedData Pointer to output PKCS#7 signedData. It's caller's\r
31 responsibility to free the buffer with FreePool().\r
32 @param[out] SignedDataSize Size of SignedData in bytes.\r
33\r
34 @retval FALSE This interface is not supported.\r
35\r
36**/\r
37BOOLEAN\r
38EFIAPI\r
39Pkcs7Sign (\r
40 IN CONST UINT8 *PrivateKey,\r
41 IN UINTN PrivateKeySize,\r
42 IN CONST UINT8 *KeyPassword,\r
43 IN UINT8 *InData,\r
44 IN UINTN InDataSize,\r
45 IN UINT8 *SignCert,\r
46 IN UINT8 *OtherCerts OPTIONAL,\r
47 OUT UINT8 **SignedData,\r
48 OUT UINTN *SignedDataSize\r
49 )\r
50{\r
51 ASSERT (FALSE);\r
52 return FALSE;\r
53}\r