📄 test.h
字号:
BOOLEAN loadDHKey( const CRYPT_DEVICE cryptDevice,
CRYPT_CONTEXT *cryptContext );
BOOLEAN loadRSAContextsEx( const CRYPT_DEVICE cryptDevice,
CRYPT_CONTEXT *cryptContext,
CRYPT_CONTEXT *decryptContext,
const C_STR cryptContextLabel,
const C_STR decryptContextLabel,
const BOOLEAN useLargeKey,
const BOOLEAN useMinimalKey );
BOOLEAN loadRSAContexts( const CRYPT_DEVICE cryptDevice,
CRYPT_CONTEXT *cryptContext,
CRYPT_CONTEXT *decryptContext );
BOOLEAN loadRSAContextsLarge( const CRYPT_DEVICE cryptDevice,
CRYPT_CONTEXT *cryptContext,
CRYPT_CONTEXT *decryptContext );
BOOLEAN loadDSAContextsEx( const CRYPT_DEVICE cryptDevice,
CRYPT_CONTEXT *signContext,
CRYPT_CONTEXT *sigCheckContext,
const C_STR signContextLabel,
const C_STR sigCheckContextLabel );
BOOLEAN loadDSAContexts( const CRYPT_DEVICE cryptDevice,
CRYPT_CONTEXT *signContext,
CRYPT_CONTEXT *sigCheckContext );
BOOLEAN loadElgamalContexts( CRYPT_CONTEXT *cryptContext,
CRYPT_CONTEXT *decryptContext );
BOOLEAN loadDHContexts( CRYPT_CONTEXT *cryptContext1,
CRYPT_CONTEXT *cryptContext2 );
BOOLEAN loadECDSAContexts( CRYPT_CONTEXT *signContext,
CRYPT_CONTEXT *sigCheckContext );
void destroyContexts( const CRYPT_DEVICE cryptDevice,
CRYPT_CONTEXT cryptContext,
CRYPT_CONTEXT decryptContext );
int testLowlevel( const CRYPT_DEVICE cryptDevice,
const CRYPT_ALGO_TYPE cryptAlgo,
const BOOLEAN checkOnly );
int testCrypt( CRYPT_CONTEXT cryptContext, CRYPT_CONTEXT decryptContext,
BYTE *buffer, const BOOLEAN isDevice,
const BOOLEAN noWarnFail );
int testRSAMinimalKey( void );
/* Prototypes for functions in envelope.c */
int testEnvelopePKCCryptEx( const CRYPT_CONTEXT cryptContext,
const CRYPT_HANDLE decryptKeyset );
int testCMSEnvelopeSignEx( const CRYPT_CONTEXT signContext );
int testCMSEnvelopePKCCryptEx( const CRYPT_HANDLE encryptContext,
const CRYPT_HANDLE decryptKeyset,
const C_STR password, const C_STR recipient );
/* Prototypes for functions in sreqresp.c */
int testSessionTSPServerEx( const CRYPT_CONTEXT privKeyContext );
/* Prototypes for functions in s_scep.c */
int pkiGetUserInfo( C_STR userID, C_STR issuePW, C_STR revPW, C_STR userName );
int pkiServerInit( CRYPT_CONTEXT *cryptPrivateKey,
CRYPT_KEYSET *cryptCertStore, const C_STR keyFileName,
const C_STR keyLabel, const CERT_DATA *pkiUserData,
const CERT_DATA *pkiUserCAData, const char *protocolName );
/****************************************************************************
* *
* Test Functions *
* *
****************************************************************************/
/* Prototypes for functions in highlvl.c */
int testLargeBufferEncrypt( void );
int testDeriveKey( void );
int testRandomRoutines( void );
int testConventionalExportImport( void );
int testMACExportImport( void );
int testKeyExportImport( void );
int testSignData( void );
int testKeygen( void );
int testKeygenAsync( void );
int testKeyExportImportCMS( void );
int testSignDataCMS( void );
/* Prototypes for functions in devices.c */
int testDevices( void );
int testUser( void );
/* Prototypes for functions in keyfile.c */
int testGetPGPPublicKey( void );
int testGetPGPPrivateKey( void );
int testGetBorkenKey( void );
int testReadWriteFileKey( void );
int testWriteAltFileKey( void );
int testReadBigFileKey( void );
int testReadFilePublicKey( void );
int testAddTrustedCert( void );
int testAddGloballyTrustedCert( void );
int testDeleteFileKey( void );
int testChangeFileKeyPassword( void );
int testUpdateFileCert( void );
int testWriteFileCertChain( void );
int testWriteFileLongCertChain( void );
int testReadFileCert( void );
int testReadFileCertPrivkey( void );
int testReadFileCertChain( void );
int testSingleStepFileCert( void );
int testSingleStepAltFileCert( void );
int testDoubleCertFile( void );
int testRenewedCertFile( void );
int testReadMiscFile( void );
/* Prototypes for functions in keydbx.c */
int testWriteCert( void );
int testReadCert( void );
int testKeysetQuery( void );
int testWriteCertDbx( void );
int testWriteCertLDAP( void );
int testReadCertLDAP( void );
int testReadCertURL( void );
int testReadCertHTTP( void );
/* Prototypes for functions in envelope.c */
int testEnvelopeData( void );
int testEnvelopeDataLargeBuffer( void );
int testEnvelopeCompress( void );
int testPGPEnvelopeCompressedDataImport( void );
int testEnvelopeSessionCrypt( void );
int testEnvelopeSessionCryptLargeBuffer( void );
int testEnvelopeCrypt( void );
int testEnvelopePasswordCrypt( void );
int testPGPEnvelopePasswordCryptImport( void );
int testEnvelopePKCCrypt( void );
int testPGPEnvelopePKCCryptImport( void );
int testEnvelopeSign( void );
int testEnvelopeSignOverflow( void );
int testPGPEnvelopeSignedDataImport( void );
int testEnvelopeAuthenticate( void );
int testEnvelopeAuthEnc( void );
int testCMSEnvelopePKCCrypt( void );
int testCMSEnvelopePKCCryptDoubleCert( void );
int testCMSEnvelopePKCCryptImport( void );
int testCMSEnvelopeSign( void );
int testCMSEnvelopeDualSign( void );
int testCMSEnvelopeDetachedSig( void );
int testCMSEnvelopeSignedDataImport( void );
/* Prototypes for functions in certs.c */
int testCert( void );
int testCACert( void );
int testXyzzyCert( void );
int testTextStringCert( void );
int testComplexCert( void );
int testCertExtension( void );
int testCustomDNCert( void );
int testSETCert( void );
int testAttributeCert( void );
int testCRL( void );
int testComplexCRL( void );
int testCertChain( void );
int testCertRequest( void );
int testComplexCertRequest( void );
int testCRMFRequest( void );
int testComplexCRMFRequest( void );
int testRevRequest( void );
int testCMSAttributes( void );
int testRTCSReqResp( void );
int testOCSPReqResp( void );
int testPKIUser( void );
int testCertImport( void );
int testCertReqImport( void );
int testCRLImport( void );
int testCertChainImport( void );
int testOCSPImport( void );
int testBase64CertImport( void );
int testBase64CertChainImport( void );
int testMiscImport( void );
int testNonchainCert( void );
int testCertComplianceLevel( void );
int testPathProcessing( void );
int testPKCS1Padding( void );
int testCertProcess( void );
int testCertManagement( void );
/* Prototypes for functions in scert.c (the EnvTSP one is actually in with
the enveloping code because the only way to fully exercise the TS
functionality is by using it to timestamp an S/MIME signature) */
int testSessionSCEP( void );
int testSessionSCEPCACert( void );
int testSessionSCEPServer( void );
int testSessionCMP( void );
int testSessionCMPServer( void );
int testSessionPNPPKI( void );
int testSessionEnvTSP( void );
/* Prototypes for functions in sreqresp.c */
int testSessionHTTPCertstoreServer( void );
int testSessionRTCS( void );
int testSessionRTCSServer( void );
int testSessionOCSP( void );
int testSessionOCSPServer( void );
int testSessionTSP( void );
int testSessionTSPServer( void );
/* Prototypes for functions in ssh.c */
int testSessionUrlParse( void );
int testSessionAttributes( void );
int testSessionSSHv1( void );
int testSessionSSH( void );
int testSessionSSHClientCert( void );
int testSessionSSHPortforward( void );
int testSessionSSHExec( void );
int testSessionSSH_SFTP( void );
int testSessionSSHv1Server( void );
int testSessionSSHServer( void );
int testSessionSSH_SFTPServer( void );
/* Prototypes for functions in ssl.c */
int testSessionSSL( void );
int testSessionSSLLocalSocket( void );
int testSessionSSLClientCert( void );
int testSessionSSLSharedKey( void );
int testSessionSSLServer( void );
int testSessionSSLServerCached( void );
int testSessionSSLServerClientCert( void );
int testSessionTLS( void );
int testSessionTLSServer( void );
int testSessionTLSServerSharedKey( void );
int testSessionTLS11( void );
int testSessionTLS11Server( void );
int testSessionTLS12( void );
/* Functions to test local client/server sessions. These require threading
support since they run the client and server in different threads */
#ifdef TEST_SESSION_LOOPBACK
int testSessionSSHv1ClientServer( void );
int testSessionSSHClientServer( void );
int testSessionSSHClientServerFingerprint( void );
int testSessionSSHClientServerSFTP( void );
int testSessionSSHClientServerPortForward( void );
int testSessionSSHClientServerExec( void );
int testSessionSSHClientServerMultichannel( void );
int testSessionSSHClientServerDualThread( void );
int testSessionSSHClientServerMultiThread( void );
int testSessionSSLClientServer( void );
int testSessionSSLClientCertClientServer( void );
int testSessionTLSClientServer( void );
int testSessionTLSSharedKeyClientServer( void );
int testSessionTLSNoSharedKeyClientServer( void );
int testSessionTLSBulkTransferClientServer( void );
int testSessionTLS11ClientServer( void );
int testSessionTLSClientServerDualThread( void );
int testSessionTLSClientServerMultiThread( void );
int testSessionHTTPCertstoreClientServer( void );
int testSessionRTCSClientServer( void );
int testSessionOCSPClientServer( void );
int testSessionTSPClientServer( void );
int testSessionTSPClientServerPersistent( void );
int testSessionSCEPClientServer( void );
int testSessionSCEPCACertClientServer( void );
int testSessionCMPClientServer( void );
int testSessionCMPPKIBootClientServer( void );
int testSessionPNPPKIClientServer( void );
int testSessionPNPPKIDeviceClientServer( void );
int testSessionPNPPKICAClientServer( void );
int testSessionPNPPKIIntermedCAClientServer( void );
#endif /* TEST_SESSION_LOOPBACK */
#if defined( __MVS__ ) || defined( __VMCMS__ )
#pragma convlit( resume )
#endif /* IBM big iron */
#if defined( __ILEC400__ )
#pragma convert( 819 )
#endif /* IBM medium iron */
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -