]> git.proxmox.com Git - mirror_edk2.git/blob - CryptoPkg/Library/BaseCryptLib/Pk/CryptPkcs7SignNull.c
1ce7202d911de2eb2caf9fbcfa4daeb54d99278e
[mirror_edk2.git] / CryptoPkg / Library / BaseCryptLib / Pk / CryptPkcs7SignNull.c
1 /** @file
2 PKCS#7 SignedData Sign Wrapper Implementation which does not provide real
3 capabilities.
4
5 Copyright (c) 2012, Intel Corporation. All rights reserved.<BR>
6 This program and the accompanying materials
7 are licensed and made available under the terms and conditions of the BSD License
8 which accompanies this distribution. The full text of the license may be found at
9 http://opensource.org/licenses/bsd-license.php
10
11 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
12 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
13
14 **/
15
16 #include "InternalCryptLib.h"
17
18 /**
19 Creates a PKCS#7 signedData as described in "PKCS #7: Cryptographic Message
20 Syntax Standard, version 1.5". This interface is only intended to be used for
21 application to perform PKCS#7 functionality validation.
22
23 Return FALSE to indicate this interface is not supported.
24
25 @param[in] PrivateKey Pointer to the PEM-formatted private key data for
26 data signing.
27 @param[in] PrivateKeySize Size of the PEM private key data in bytes.
28 @param[in] KeyPassword NULL-terminated passphrase used for encrypted PEM
29 key data.
30 @param[in] InData Pointer to the content to be signed.
31 @param[in] InDataSize Size of InData in bytes.
32 @param[in] SignCert Pointer to signer's DER-encoded certificate to sign with.
33 @param[in] OtherCerts Pointer to an optional additional set of certificates to
34 include in the PKCS#7 signedData (e.g. any intermediate
35 CAs in the chain).
36 @param[out] SignedData Pointer to output PKCS#7 signedData. It's caller's
37 responsibility to free the buffer with FreePool().
38 @param[out] SignedDataSize Size of SignedData in bytes.
39
40 @retval FALSE This interface is not supported.
41
42 **/
43 BOOLEAN
44 EFIAPI
45 Pkcs7Sign (
46 IN CONST UINT8 *PrivateKey,
47 IN UINTN PrivateKeySize,
48 IN CONST UINT8 *KeyPassword,
49 IN UINT8 *InData,
50 IN UINTN InDataSize,
51 IN UINT8 *SignCert,
52 IN UINT8 *OtherCerts OPTIONAL,
53 OUT UINT8 **SignedData,
54 OUT UINTN *SignedDataSize
55 )
56 {
57 ASSERT (FALSE);
58 return FALSE;
59 }
60