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. 37 @param[out] SignedDataSize Size of SignedData in bytes. 38 39 @retval FALSE This interface is not supported. 40 41 **/ 42 BOOLEAN 43 EFIAPI 44 Pkcs7Sign ( 45 IN CONST UINT8 *PrivateKey, 46 IN UINTN PrivateKeySize, 47 IN CONST UINT8 *KeyPassword, 48 IN UINT8 *InData, 49 IN UINTN InDataSize, 50 IN UINT8 *SignCert, 51 IN UINT8 *OtherCerts OPTIONAL, 52 OUT UINT8 **SignedData, 53 OUT UINTN *SignedDataSize 54 ) 55 { 56 ASSERT (FALSE); 57 return FALSE; 58 } 59 60