]>
git.proxmox.com Git - efi-boot-shim.git/blob - Cryptlib/Pk/CryptPkcs7SignNull.c
2 PKCS#7 SignedData Sign Wrapper Implementation which does not provide real
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
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.
16 #include "InternalCryptLib.h"
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.
23 Return FALSE to indicate this interface is not supported.
25 @param[in] PrivateKey Pointer to the PEM-formatted private key data for
27 @param[in] PrivateKeySize Size of the PEM private key data in bytes.
28 @param[in] KeyPassword NULL-terminated passphrase used for encrypted PEM
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
36 @param[out] SignedData Pointer to output PKCS#7 signedData.
37 @param[out] SignedDataSize Size of SignedData in bytes.
39 @retval FALSE This interface is not supported.
45 IN CONST UINT8
*PrivateKey
,
46 IN UINTN PrivateKeySize
,
47 IN CONST UINT8
*KeyPassword
,
51 IN UINT8
*OtherCerts OPTIONAL
,
52 OUT UINT8
**SignedData
,
53 OUT UINTN
*SignedDataSize