From 6846ed0daf62d11b595fcac4ce7a8fc041f54726 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc=20W=C3=A4ckerlin?= Date: Fri, 29 Oct 2010 10:54:12 +0000 Subject: [PATCH] store headers only once, refs #7 --- README.txt | 98 +- Test_Qt_Frontend/QtSslTest.pro | 32 +- Test_Qt_Frontend/pindialog.cpp | 74 +- Test_Qt_Frontend/pindialog.h | 44 +- Test_Qt_Frontend/qtssltest.cpp | 96 +- Test_Qt_Frontend/smartcardauth.cpp | 326 +- Test_Qt_Frontend/smartcardauth.h | 54 +- Test_Qt_Frontend/swsign_interm.pem | 82 +- Test_Qt_Frontend/swsign_root.pem | 74 +- .../Release/include/actAllocator.h | 107 - .../Release/include/actBasics.h | 93 - .../MacOSX-10.4-ppc/Release/include/actBlob.h | 644 --- .../Release/include/actBlockCipherModeKit.h | 27 - .../Release/include/actBlockCipherModeReg.h | 40 - .../MacOSX-10.4-ppc/Release/include/actCRL.h | 68 - .../Release/include/actCertificateKit.h | 28 - .../Release/include/actCertificateReg.h | 56 - .../MacOSX-10.4-ppc/Release/include/actDate.h | 109 - .../Release/include/actDefaultRNG.h | 24 - .../Release/include/actDerivatorReg.h | 41 - .../Release/include/actEMSAReg.h | 40 - .../Release/include/actFactoryReg.h | 146 - .../Release/include/actHandle.h | 98 - .../Release/include/actHashReg.h | 40 - .../Release/include/actIAccessCondition.h | 163 - .../Release/include/actIAgreementKey.h | 32 - .../Release/include/actIBlockCipherKey.h | 48 - .../Release/include/actICBCMACKey.h | 31 - .../Release/include/actIDerivator.h | 45 - .../Release/include/actIEMSAAlg.h | 49 - .../Release/include/actIEMSAWithHashAlg.h | 34 - .../Release/include/actIEventHandler.h | 54 - .../Release/include/actIHashAlg.h | 42 - .../MacOSX-10.4-ppc/Release/include/actIKey.h | 45 - .../Release/include/actIKeyDerivation.h | 70 - .../Release/include/actIMACKey.h | 27 - .../Release/include/actIPKCS15Behavior.h | 89 - .../Release/include/actIParam.h | 67 - .../Release/include/actIRNGAlg.h | 38 - .../Release/include/actIRSAKey.h | 32 - .../Release/include/actIRefCounted.h | 33 - .../Release/include/actISCardAccess.h | 198 - .../Release/include/actISCardOS.h | 262 - .../Release/include/actISecurityManager.h | 60 - .../Release/include/actISignatureKey.h | 32 - .../Release/include/actISlot.h | 82 - .../Release/include/actISlotMonitor.h | 39 - .../Release/include/actIStreamCipher.h | 51 - .../Release/include/actIStreamCipherKey.h | 39 - .../Release/include/actISubsystemConfig.h | 38 - .../Release/include/actIToken.h | 165 - .../Release/include/actITokenAuth.h | 139 - .../Release/include/actITokenBlockCipherKey.h | 59 - .../Release/include/actITokenConfig.h | 60 - .../Release/include/actITokenExtension.h | 39 - .../Release/include/actITokenFileCache.h | 42 - .../Release/include/actITokenFileOwner.h | 37 - .../Release/include/actITokenInitializer.h | 131 - .../Release/include/actITokenKey.h | 64 - .../Release/include/actITokenPIN.h | 221 - .../Release/include/actIX509CRL.h | 48 - .../Release/include/actIX509Certificate.h | 46 - .../MacOSX-10.4-ppc/Release/include/actInit.h | 578 --- .../Release/include/actJCAppletReg.h | 62 - .../MacOSX-10.4-ppc/Release/include/actKey.h | 82 - .../Release/include/actLogger.h | 110 - .../MacOSX-10.4-ppc/Release/include/actMode.h | 269 -- .../Release/include/actPKCS15BehaviorReg.h | 34 - .../Release/include/actPaddingKit.h | 26 - .../Release/include/actPaddingReg.h | 41 - .../Release/include/actProfileGeneratorKit.h | 26 - .../Release/include/actRNGKit.h | 44 - .../Release/include/actSCardOSKit.h | 170 - .../Release/include/actSCardOSReg.h | 46 - .../Release/include/actSCardTokenKit.h | 105 - .../Release/include/actSCardTokenReg.h | 42 - .../Release/include/actSCardUtil.h | 27 - .../Release/include/actSlotManager.h | 81 - .../Release/include/actState.h | 29 - .../Release/include/actStreamCipherKit.h | 22 - .../Release/include/actStreamCipherReg.h | 39 - .../Release/include/actSubsystemReg.h | 53 - .../Release/include/actTokenAuthProtocolKit.h | 30 - .../Release/include/actTokenBase.h | 200 - .../Release/include/actTokenConfig.h | 104 - .../Release/include/actTokenExtensionKit.h | 28 - .../Release/include/actTokenExtensionReg.h | 34 - .../Release/include/actToolsECC.h | 99 - .../Release/include/actToolsRSA.h | 19 - .../Release/include/actTypeTags.h | 32 - .../Release/include/actX509Extension.h | 50 - .../Release/include/actX509KeyReg.h | 48 - .../Release/include/actX509Kit.h | 45 - .../Release/include/actX509SignHashReg.h | 40 - .../Release/include/actX509SignReg.h | 41 - .../Release/include/actAlgorithm.h | 73 - .../Release/include/actAllocator.h | 107 - .../Release/include/actBlob.h | 644 --- .../Release/include/actBlockCipherKit.h | 31 - .../Release/include/actBlockCipherModeKit.h | 27 - .../Release/include/actBlockCipherReg.h | 39 - .../Release/include/actCRL.h | 68 - .../Release/include/actCertificate.h | 67 - .../Release/include/actCertificateKit.h | 28 - .../Release/include/actCertificateReg.h | 56 - .../Release/include/actDate.h | 109 - .../Release/include/actDebug.h | 295 -- .../Release/include/actDerivatorKit.h | 27 - .../Release/include/actDerivatorReg.h | 41 - .../Release/include/actEMSAKit.h | 28 - .../Release/include/actEMSAReg.h | 40 - .../Release/include/actEnv.h | 126 - .../Release/include/actException.h | 1112 ----- .../Release/include/actFactoryReg.h | 146 - .../Release/include/actHashKit.h | 32 - .../Release/include/actIAccessCondition.h | 163 - .../Release/include/actIAgreementKey.h | 32 - .../Release/include/actIAlgorithm.h | 38 - .../Release/include/actIBlockCipher.h | 53 - .../Release/include/actIBlockCipherKey.h | 48 - .../Release/include/actIBlockCipherMode.h | 45 - .../Release/include/actICRL.h | 51 - .../Release/include/actICertificate.h | 44 - .../Release/include/actIDerivatorWithHash.h | 33 - .../Release/include/actIEMSAAlg.h | 49 - .../Release/include/actIEMSAWithHashAlg.h | 34 - .../Release/include/actIEventHandler.h | 54 - .../Release/include/actIEventMonitoring.h | 36 - .../Release/include/actIHashMACKey.h | 32 - .../Release/include/actIIESKey.h | 35 - .../Release/include/actIKey.h | 45 - .../Release/include/actIKeyFactory.h | 48 - .../Release/include/actIMACKey.h | 27 - .../Release/include/actIPadding.h | 47 - .../Release/include/actIRNGAlg.h | 38 - .../Release/include/actIRefCounted.h | 33 - .../Release/include/actISCardAccess.h | 198 - .../Release/include/actISCardOS.h | 262 - .../Release/include/actISCardOSBehavior.h | 79 - .../Release/include/actISignatureKey.h | 32 - .../Release/include/actISlot.h | 82 - .../Release/include/actISlotMonitor.h | 39 - .../Release/include/actIStreamCipherKey.h | 39 - .../Release/include/actISubsystem.h | 54 - .../Release/include/actISubsystemConfig.h | 38 - .../Release/include/actISynchronize.h | 43 - .../Release/include/actIToken.h | 165 - .../Release/include/actITokenAuth.h | 139 - .../Release/include/actITokenAuthOwner.h | 39 - .../Release/include/actITokenBlockCipher.h | 45 - .../Release/include/actITokenConfig.h | 60 - .../Release/include/actITokenExtension.h | 39 - .../Release/include/actITokenFile.h | 71 - .../Release/include/actITokenFileCache.h | 42 - .../Release/include/actITokenInitializer.h | 131 - .../Release/include/actITokenKey.h | 64 - .../Release/include/actITokenPIN.h | 221 - .../Release/include/actIX509Certificate.h | 46 - .../Release/include/actInit.h | 578 --- .../Release/include/actJCAppletKit.h | 30 - .../Release/include/actJCAppletReg.h | 62 - .../Release/include/actJCSecureChannelReg.h | 43 - .../Release/include/actKey.h | 82 - .../Release/include/actKeyKit.h | 43 - .../Release/include/actKeyReg.h | 40 - .../Release/include/actMove.h | 133 - .../Release/include/actOID.h | 2103 --------- .../Release/include/actPKCS15BehaviorKit.h | 43 - .../Release/include/actPKCS15BehaviorReg.h | 34 - .../Release/include/actPaddingKit.h | 26 - .../Release/include/actProfileGeneratorKit.h | 26 - .../Release/include/actProfileGeneratorReg.h | 33 - .../Release/include/actRNGKit.h | 44 - .../Release/include/actSCardLock.h | 51 - .../Release/include/actSCardOSKit.h | 170 - .../Release/include/actSCardTokenKit.h | 105 - .../Release/include/actSCardTokenReg.h | 42 - .../Release/include/actSlotMonitorKit.h | 32 - .../Release/include/actSlotMonitorReg.h | 54 - .../Release/include/actState.h | 29 - .../Release/include/actStreamCipherKit.h | 22 - .../Release/include/actSubsystemKit.h | 33 - .../Release/include/actSubsystemReg.h | 53 - .../Release/include/actTokenAuthProtocolReg.h | 33 - .../Release/include/actTokenBase.h | 200 - .../Release/include/actTokenConfig.h | 104 - .../Release/include/actTokenExtensionReg.h | 34 - .../Release/include/actTools.h | 93 - .../Release/include/actToolsECC.h | 99 - .../Release/include/actToolsRSA.h | 19 - .../Release/include/actTypeTags.h | 32 - .../Release/include/actX509Extension.h | 50 - .../Release/include/actX509Kit.h | 45 - .../Release/include/actX509SignHashReg.h | 40 - .../Release/include/actAlgorithm.h | 73 - .../Release/include/actBasics.h | 93 - .../Release/include/actBlockCipherKit.h | 31 - .../Release/include/actBlockCipherModeReg.h | 40 - .../Release/include/actBlockCipherReg.h | 39 - .../Release/include/actCertificate.h | 67 - .../Release/include/actDebug.h | 295 -- .../Release/include/actDefaultRNG.h | 24 - .../Release/include/actDerivatorKit.h | 27 - .../Release/include/actEMSAKit.h | 28 - .../Release/include/actEnv.h | 126 - .../Release/include/actException.h | 1112 ----- .../Release/include/actHandle.h | 98 - .../Release/include/actHashKit.h | 32 - .../Release/include/actHashReg.h | 40 - .../Release/include/actIAlgorithm.h | 38 - .../Release/include/actIBlockCipher.h | 53 - .../Release/include/actIBlockCipherMode.h | 45 - .../Release/include/actICBCMACKey.h | 31 - .../Release/include/actICRL.h | 51 - .../Release/include/actICertificate.h | 44 - .../Release/include/actIDerivator.h | 45 - .../Release/include/actIDerivatorWithHash.h | 33 - .../Release/include/actIEventMonitoring.h | 36 - .../Release/include/actIHashAlg.h | 42 - .../Release/include/actIHashMACKey.h | 32 - .../Release/include/actIIESKey.h | 35 - .../Release/include/actIKeyDerivation.h | 70 - .../Release/include/actIKeyFactory.h | 48 - .../Release/include/actIPKCS15Behavior.h | 89 - .../Release/include/actIPadding.h | 47 - .../Release/include/actIParam.h | 67 - .../Release/include/actIRSAKey.h | 32 - .../Release/include/actISCardOSBehavior.h | 79 - .../Release/include/actISecurityManager.h | 60 - .../Release/include/actIStreamCipher.h | 51 - .../Release/include/actISubsystem.h | 54 - .../Release/include/actISynchronize.h | 43 - .../Release/include/actITokenAuthOwner.h | 39 - .../Release/include/actITokenBlockCipher.h | 45 - .../Release/include/actITokenBlockCipherKey.h | 59 - .../Release/include/actITokenFile.h | 71 - .../Release/include/actITokenFileOwner.h | 37 - .../Release/include/actIX509CRL.h | 48 - .../Release/include/actJCAppletKit.h | 30 - .../Release/include/actJCSecureChannelReg.h | 43 - .../Release/include/actKeyKit.h | 43 - .../Release/include/actKeyReg.h | 40 - .../Release/include/actLogger.h | 110 - .../Release/include/actMode.h | 269 -- .../Release/include/actMove.h | 133 - .../Release/include/actOID.h | 2103 --------- .../Release/include/actPKCS15BehaviorKit.h | 43 - .../Release/include/actPaddingReg.h | 41 - .../Release/include/actProfileGeneratorReg.h | 33 - .../Release/include/actSCardLock.h | 51 - .../Release/include/actSCardOSReg.h | 46 - .../Release/include/actSCardUtil.h | 27 - .../Release/include/actSlotManager.h | 81 - .../Release/include/actSlotMonitorKit.h | 32 - .../Release/include/actSlotMonitorReg.h | 54 - .../Release/include/actStreamCipherReg.h | 39 - .../Release/include/actSubsystemKit.h | 33 - .../Release/include/actTokenAuthProtocolKit.h | 30 - .../Release/include/actTokenAuthProtocolReg.h | 33 - .../Release/include/actTokenExtensionKit.h | 28 - .../Release/include/actTools.h | 93 - .../Release/include/actX509KeyReg.h | 48 - .../Release/include/actX509SignReg.h | 41 - .../Release/include/actAlgorithm.h | 73 - .../Release/include/actAllocator.h | 107 - .../Release/include/actBasics.h | 93 - .../Release/include/actBlob.h | 644 --- .../Release/include/actBlockCipherKit.h | 31 - .../Release/include/actBlockCipherModeKit.h | 27 - .../Release/include/actBlockCipherModeReg.h | 40 - .../Release/include/actBlockCipherReg.h | 39 - .../Release/include/actCRL.h | 68 - .../Release/include/actCertificate.h | 67 - .../Release/include/actCertificateKit.h | 28 - .../Release/include/actCertificateReg.h | 56 - .../Release/include/actDate.h | 109 - .../Release/include/actDebug.h | 295 -- .../Release/include/actDefaultRNG.h | 24 - .../Release/include/actDerivatorKit.h | 27 - .../Release/include/actDerivatorReg.h | 41 - .../Release/include/actEMSAKit.h | 28 - .../Release/include/actEMSAReg.h | 40 - .../Release/include/actEnv.h | 126 - .../Release/include/actException.h | 1112 ----- .../Release/include/actFactoryReg.h | 146 - .../Release/include/actHandle.h | 98 - .../Release/include/actHashKit.h | 32 - .../Release/include/actHashReg.h | 40 - .../Release/include/actIAccessCondition.h | 163 - .../Release/include/actIAgreementKey.h | 32 - .../Release/include/actIAlgorithm.h | 38 - .../Release/include/actIBlockCipher.h | 53 - .../Release/include/actIBlockCipherKey.h | 48 - .../Release/include/actIBlockCipherMode.h | 45 - .../Release/include/actICBCMACKey.h | 31 - .../Release/include/actICRL.h | 51 - .../Release/include/actICertificate.h | 44 - .../Release/include/actIDerivator.h | 45 - .../Release/include/actIDerivatorWithHash.h | 33 - .../Release/include/actIEMSAAlg.h | 49 - .../Release/include/actIEMSAWithHashAlg.h | 34 - .../Release/include/actIEventHandler.h | 54 - .../Release/include/actIEventMonitoring.h | 36 - .../Release/include/actIHashAlg.h | 42 - .../Release/include/actIHashMACKey.h | 32 - .../Release/include/actIIESKey.h | 35 - .../Release/include/actIKey.h | 45 - .../Release/include/actIKeyDerivation.h | 70 - .../Release/include/actIKeyFactory.h | 48 - .../Release/include/actIMACKey.h | 27 - .../Release/include/actIPKCS15Behavior.h | 89 - .../Release/include/actIPadding.h | 47 - .../Release/include/actIParam.h | 67 - .../Release/include/actIRNGAlg.h | 38 - .../Release/include/actIRSAKey.h | 32 - .../Release/include/actIRefCounted.h | 33 - .../Release/include/actISCardAccess.h | 198 - .../Release/include/actISCardOS.h | 262 - .../Release/include/actISCardOSBehavior.h | 79 - .../Release/include/actISecurityManager.h | 60 - .../Release/include/actISignatureKey.h | 32 - .../Release/include/actISlot.h | 82 - .../Release/include/actISlotMonitor.h | 39 - .../Release/include/actIStreamCipher.h | 51 - .../Release/include/actIStreamCipherKey.h | 39 - .../Release/include/actISubsystem.h | 54 - .../Release/include/actISubsystemConfig.h | 38 - .../Release/include/actISynchronize.h | 43 - .../Release/include/actIToken.h | 165 - .../Release/include/actITokenAuth.h | 139 - .../Release/include/actITokenAuthOwner.h | 39 - .../Release/include/actITokenBlockCipher.h | 45 - .../Release/include/actITokenBlockCipherKey.h | 59 - .../Release/include/actITokenConfig.h | 60 - .../Release/include/actITokenExtension.h | 39 - .../Release/include/actITokenFile.h | 71 - .../Release/include/actITokenFileCache.h | 42 - .../Release/include/actITokenFileOwner.h | 37 - .../Release/include/actITokenInitializer.h | 131 - .../Release/include/actITokenKey.h | 64 - .../Release/include/actITokenPIN.h | 221 - .../Release/include/actIX509CRL.h | 48 - .../Release/include/actIX509Certificate.h | 46 - .../Release/include/actInit.h | 578 --- .../Release/include/actJCAppletKit.h | 30 - .../Release/include/actJCAppletReg.h | 62 - .../Release/include/actJCSecureChannelReg.h | 43 - .../Release/include/actKey.h | 82 - .../Release/include/actKeyKit.h | 43 - .../Release/include/actKeyReg.h | 40 - .../Release/include/actLogger.h | 110 - .../Release/include/actMode.h | 269 -- .../Release/include/actMove.h | 133 - .../Release/include/actOID.h | 2103 --------- .../Release/include/actPKCS15BehaviorKit.h | 43 - .../Release/include/actPKCS15BehaviorReg.h | 34 - .../Release/include/actPaddingKit.h | 26 - .../Release/include/actPaddingReg.h | 41 - .../Release/include/actProfileGeneratorKit.h | 26 - .../Release/include/actProfileGeneratorReg.h | 33 - .../Release/include/actRNGKit.h | 44 - .../Release/include/actSCardLock.h | 51 - .../Release/include/actSCardOSKit.h | 170 - .../Release/include/actSCardOSReg.h | 46 - .../Release/include/actSCardTokenKit.h | 105 - .../Release/include/actSCardTokenReg.h | 42 - .../Release/include/actSCardUtil.h | 27 - .../Release/include/actSlotManager.h | 81 - .../Release/include/actSlotMonitorKit.h | 32 - .../Release/include/actSlotMonitorReg.h | 54 - .../Release/include/actState.h | 29 - .../Release/include/actStreamCipherKit.h | 22 - .../Release/include/actStreamCipherReg.h | 39 - .../Release/include/actSubsystemKit.h | 33 - .../Release/include/actSubsystemReg.h | 53 - .../Release/include/actTokenAuthProtocolKit.h | 30 - .../Release/include/actTokenAuthProtocolReg.h | 33 - .../Release/include/actTokenBase.h | 200 - .../Release/include/actTokenConfig.h | 104 - .../Release/include/actTokenExtensionKit.h | 28 - .../Release/include/actTokenExtensionReg.h | 34 - .../Release/include/actTools.h | 93 - .../Release/include/actToolsECC.h | 99 - .../Release/include/actToolsRSA.h | 19 - .../Release/include/actTypeTags.h | 32 - .../Release/include/actX509Extension.h | 50 - .../Release/include/actX509KeyReg.h | 48 - .../Release/include/actX509Kit.h | 45 - .../Release/include/actX509SignHashReg.h | 40 - .../Release/include/actX509SignReg.h | 41 - actlibrary/README.txt | 16 +- .../Release/include/actAlgorithm.h | 73 - .../Release/include/actAllocator.h | 107 - .../SLES-10-i686/Release/include/actBasics.h | 93 - .../SLES-10-i686/Release/include/actBlob.h | 644 --- .../Release/include/actBlockCipherKit.h | 31 - .../Release/include/actBlockCipherModeKit.h | 27 - .../Release/include/actBlockCipherModeReg.h | 40 - .../Release/include/actBlockCipherReg.h | 39 - .../SLES-10-i686/Release/include/actCRL.h | 68 - .../Release/include/actCertificate.h | 67 - .../Release/include/actCertificateKit.h | 28 - .../Release/include/actCertificateReg.h | 56 - .../SLES-10-i686/Release/include/actDate.h | 109 - .../SLES-10-i686/Release/include/actDebug.h | 295 -- .../Release/include/actDefaultRNG.h | 24 - .../Release/include/actDerivatorKit.h | 27 - .../Release/include/actDerivatorReg.h | 41 - .../SLES-10-i686/Release/include/actEMSAKit.h | 28 - .../SLES-10-i686/Release/include/actEMSAReg.h | 40 - .../SLES-10-i686/Release/include/actEnv.h | 126 - .../Release/include/actException.h | 1112 ----- .../Release/include/actFactoryReg.h | 146 - .../SLES-10-i686/Release/include/actHandle.h | 98 - .../SLES-10-i686/Release/include/actHashKit.h | 32 - .../SLES-10-i686/Release/include/actHashReg.h | 40 - .../Release/include/actIAccessCondition.h | 163 - .../Release/include/actIAgreementKey.h | 32 - .../Release/include/actIAlgorithm.h | 38 - .../Release/include/actIBlockCipher.h | 53 - .../Release/include/actIBlockCipherKey.h | 48 - .../Release/include/actIBlockCipherMode.h | 45 - .../Release/include/actICBCMACKey.h | 31 - .../SLES-10-i686/Release/include/actICRL.h | 51 - .../Release/include/actICertificate.h | 44 - .../Release/include/actIDerivator.h | 45 - .../Release/include/actIDerivatorWithHash.h | 33 - .../Release/include/actIEMSAAlg.h | 49 - .../Release/include/actIEMSAWithHashAlg.h | 34 - .../Release/include/actIEventHandler.h | 54 - .../Release/include/actIEventMonitoring.h | 36 - .../Release/include/actIHashAlg.h | 42 - .../Release/include/actIHashMACKey.h | 32 - .../SLES-10-i686/Release/include/actIIESKey.h | 35 - .../SLES-10-i686/Release/include/actIKey.h | 45 - .../Release/include/actIKeyDerivation.h | 70 - .../Release/include/actIKeyFactory.h | 48 - .../SLES-10-i686/Release/include/actIMACKey.h | 27 - .../Release/include/actIPKCS15Behavior.h | 89 - .../Release/include/actIPadding.h | 47 - .../SLES-10-i686/Release/include/actIParam.h | 67 - .../SLES-10-i686/Release/include/actIRNGAlg.h | 38 - .../SLES-10-i686/Release/include/actIRSAKey.h | 32 - .../Release/include/actIRefCounted.h | 33 - .../Release/include/actISCardAccess.h | 198 - .../Release/include/actISCardOS.h | 262 - .../Release/include/actISCardOSBehavior.h | 79 - .../Release/include/actISecurityManager.h | 60 - .../Release/include/actISignatureKey.h | 32 - .../SLES-10-i686/Release/include/actISlot.h | 82 - .../Release/include/actISlotMonitor.h | 39 - .../Release/include/actIStreamCipher.h | 51 - .../Release/include/actIStreamCipherKey.h | 39 - .../Release/include/actISubsystem.h | 54 - .../Release/include/actISubsystemConfig.h | 38 - .../Release/include/actISynchronize.h | 43 - .../SLES-10-i686/Release/include/actIToken.h | 165 - .../Release/include/actITokenAuth.h | 139 - .../Release/include/actITokenAuthOwner.h | 39 - .../Release/include/actITokenBlockCipher.h | 45 - .../Release/include/actITokenBlockCipherKey.h | 59 - .../Release/include/actITokenConfig.h | 60 - .../Release/include/actITokenExtension.h | 39 - .../Release/include/actITokenFile.h | 71 - .../Release/include/actITokenFileCache.h | 42 - .../Release/include/actITokenFileOwner.h | 37 - .../Release/include/actITokenInitializer.h | 131 - .../Release/include/actITokenKey.h | 64 - .../Release/include/actITokenPIN.h | 221 - .../Release/include/actIX509CRL.h | 48 - .../Release/include/actIX509Certificate.h | 46 - .../SLES-10-i686/Release/include/actInit.h | 578 --- .../Release/include/actJCAppletKit.h | 30 - .../Release/include/actJCAppletReg.h | 62 - .../Release/include/actJCSecureChannelReg.h | 43 - .../SLES-10-i686/Release/include/actKey.h | 82 - .../SLES-10-i686/Release/include/actKeyKit.h | 43 - .../SLES-10-i686/Release/include/actKeyReg.h | 40 - .../SLES-10-i686/Release/include/actLogger.h | 110 - .../SLES-10-i686/Release/include/actMode.h | 269 -- .../SLES-10-i686/Release/include/actMove.h | 133 - .../SLES-10-i686/Release/include/actOID.h | 2103 --------- .../Release/include/actPKCS15BehaviorKit.h | 43 - .../Release/include/actPKCS15BehaviorReg.h | 34 - .../Release/include/actPaddingKit.h | 26 - .../Release/include/actPaddingReg.h | 41 - .../Release/include/actProfileGeneratorKit.h | 26 - .../Release/include/actProfileGeneratorReg.h | 33 - .../SLES-10-i686/Release/include/actRNGKit.h | 44 - .../Release/include/actSCardLock.h | 51 - .../Release/include/actSCardOSKit.h | 170 - .../Release/include/actSCardOSReg.h | 46 - .../Release/include/actSCardTokenKit.h | 105 - .../Release/include/actSCardTokenReg.h | 42 - .../Release/include/actSCardUtil.h | 27 - .../Release/include/actSlotManager.h | 81 - .../Release/include/actSlotMonitorKit.h | 32 - .../Release/include/actSlotMonitorReg.h | 54 - .../SLES-10-i686/Release/include/actState.h | 29 - .../Release/include/actStreamCipherKit.h | 22 - .../Release/include/actStreamCipherReg.h | 39 - .../Release/include/actSubsystemKit.h | 33 - .../Release/include/actSubsystemReg.h | 53 - .../Release/include/actTokenAuthProtocolKit.h | 30 - .../Release/include/actTokenAuthProtocolReg.h | 33 - .../Release/include/actTokenBase.h | 200 - .../Release/include/actTokenConfig.h | 104 - .../Release/include/actTokenExtensionKit.h | 28 - .../Release/include/actTokenExtensionReg.h | 34 - .../SLES-10-i686/Release/include/actTools.h | 93 - .../Release/include/actToolsECC.h | 99 - .../Release/include/actToolsRSA.h | 19 - .../Release/include/actTypeTags.h | 32 - .../Release/include/actX509Extension.h | 50 - .../Release/include/actX509KeyReg.h | 48 - .../SLES-10-i686/Release/include/actX509Kit.h | 45 - .../Release/include/actX509SignHashReg.h | 40 - .../Release/include/actX509SignReg.h | 41 - .../Release/include/actAlgorithm.h | 73 - .../Release/include/actAllocator.h | 107 - .../SLES-11-i686/Release/include/actBasics.h | 93 - .../SLES-11-i686/Release/include/actBlob.h | 644 --- .../Release/include/actBlockCipherKit.h | 31 - .../Release/include/actBlockCipherModeKit.h | 27 - .../Release/include/actBlockCipherModeReg.h | 40 - .../Release/include/actBlockCipherReg.h | 39 - .../SLES-11-i686/Release/include/actCRL.h | 68 - .../Release/include/actCertificate.h | 67 - .../Release/include/actCertificateKit.h | 28 - .../Release/include/actCertificateReg.h | 56 - .../SLES-11-i686/Release/include/actDate.h | 109 - .../SLES-11-i686/Release/include/actDebug.h | 295 -- .../Release/include/actDefaultRNG.h | 24 - .../Release/include/actDerivatorKit.h | 27 - .../Release/include/actDerivatorReg.h | 41 - .../SLES-11-i686/Release/include/actEMSAKit.h | 28 - .../SLES-11-i686/Release/include/actEMSAReg.h | 40 - .../SLES-11-i686/Release/include/actEnv.h | 126 - .../Release/include/actException.h | 1112 ----- .../Release/include/actFactoryReg.h | 146 - .../SLES-11-i686/Release/include/actHandle.h | 98 - .../SLES-11-i686/Release/include/actHashKit.h | 32 - .../SLES-11-i686/Release/include/actHashReg.h | 40 - .../Release/include/actIAccessCondition.h | 163 - .../Release/include/actIAgreementKey.h | 32 - .../Release/include/actIAlgorithm.h | 38 - .../Release/include/actIBlockCipher.h | 53 - .../Release/include/actIBlockCipherKey.h | 48 - .../Release/include/actIBlockCipherMode.h | 45 - .../Release/include/actICBCMACKey.h | 31 - .../SLES-11-i686/Release/include/actICRL.h | 51 - .../Release/include/actICertificate.h | 44 - .../Release/include/actIDerivator.h | 45 - .../Release/include/actIDerivatorWithHash.h | 33 - .../Release/include/actIEMSAAlg.h | 49 - .../Release/include/actIEMSAWithHashAlg.h | 34 - .../Release/include/actIEventHandler.h | 54 - .../Release/include/actIEventMonitoring.h | 36 - .../Release/include/actIHashAlg.h | 42 - .../Release/include/actIHashMACKey.h | 32 - .../SLES-11-i686/Release/include/actIIESKey.h | 35 - .../SLES-11-i686/Release/include/actIKey.h | 45 - .../Release/include/actIKeyDerivation.h | 70 - .../Release/include/actIKeyFactory.h | 48 - .../SLES-11-i686/Release/include/actIMACKey.h | 27 - .../Release/include/actIPKCS15Behavior.h | 89 - .../Release/include/actIPadding.h | 47 - .../SLES-11-i686/Release/include/actIParam.h | 67 - .../SLES-11-i686/Release/include/actIRNGAlg.h | 38 - .../SLES-11-i686/Release/include/actIRSAKey.h | 32 - .../Release/include/actIRefCounted.h | 33 - .../Release/include/actISCardAccess.h | 198 - .../Release/include/actISCardOS.h | 262 - .../Release/include/actISCardOSBehavior.h | 79 - .../Release/include/actISecurityManager.h | 60 - .../Release/include/actISignatureKey.h | 32 - .../SLES-11-i686/Release/include/actISlot.h | 82 - .../Release/include/actISlotMonitor.h | 39 - .../Release/include/actIStreamCipher.h | 51 - .../Release/include/actIStreamCipherKey.h | 39 - .../Release/include/actISubsystem.h | 54 - .../Release/include/actISubsystemConfig.h | 38 - .../Release/include/actISynchronize.h | 43 - .../SLES-11-i686/Release/include/actIToken.h | 165 - .../Release/include/actITokenAuth.h | 139 - .../Release/include/actITokenAuthOwner.h | 39 - .../Release/include/actITokenBlockCipher.h | 45 - .../Release/include/actITokenBlockCipherKey.h | 59 - .../Release/include/actITokenConfig.h | 60 - .../Release/include/actITokenExtension.h | 39 - .../Release/include/actITokenFile.h | 71 - .../Release/include/actITokenFileCache.h | 42 - .../Release/include/actITokenFileOwner.h | 37 - .../Release/include/actITokenInitializer.h | 131 - .../Release/include/actITokenKey.h | 64 - .../Release/include/actITokenPIN.h | 221 - .../Release/include/actIX509CRL.h | 48 - .../Release/include/actIX509Certificate.h | 46 - .../SLES-11-i686/Release/include/actInit.h | 578 --- .../Release/include/actJCAppletKit.h | 30 - .../Release/include/actJCAppletReg.h | 62 - .../Release/include/actJCSecureChannelReg.h | 43 - .../SLES-11-i686/Release/include/actKey.h | 82 - .../SLES-11-i686/Release/include/actKeyKit.h | 43 - .../SLES-11-i686/Release/include/actKeyReg.h | 40 - .../SLES-11-i686/Release/include/actLogger.h | 110 - .../SLES-11-i686/Release/include/actMode.h | 269 -- .../SLES-11-i686/Release/include/actMove.h | 133 - .../SLES-11-i686/Release/include/actOID.h | 2103 --------- .../Release/include/actPKCS15BehaviorKit.h | 43 - .../Release/include/actPKCS15BehaviorReg.h | 34 - .../Release/include/actPaddingKit.h | 26 - .../Release/include/actPaddingReg.h | 41 - .../Release/include/actProfileGeneratorKit.h | 26 - .../Release/include/actProfileGeneratorReg.h | 33 - .../SLES-11-i686/Release/include/actRNGKit.h | 44 - .../Release/include/actSCardLock.h | 51 - .../Release/include/actSCardOSKit.h | 170 - .../Release/include/actSCardOSReg.h | 46 - .../Release/include/actSCardTokenKit.h | 105 - .../Release/include/actSCardTokenReg.h | 42 - .../Release/include/actSCardUtil.h | 27 - .../Release/include/actSlotManager.h | 81 - .../Release/include/actSlotMonitorKit.h | 32 - .../Release/include/actSlotMonitorReg.h | 54 - .../SLES-11-i686/Release/include/actState.h | 29 - .../Release/include/actStreamCipherKit.h | 22 - .../Release/include/actStreamCipherReg.h | 39 - .../Release/include/actSubsystemKit.h | 33 - .../Release/include/actSubsystemReg.h | 53 - .../Release/include/actTokenAuthProtocolKit.h | 30 - .../Release/include/actTokenAuthProtocolReg.h | 33 - .../Release/include/actTokenBase.h | 200 - .../Release/include/actTokenConfig.h | 104 - .../Release/include/actTokenExtensionKit.h | 28 - .../Release/include/actTokenExtensionReg.h | 34 - .../SLES-11-i686/Release/include/actTools.h | 93 - .../Release/include/actToolsECC.h | 99 - .../Release/include/actToolsRSA.h | 19 - .../Release/include/actTypeTags.h | 32 - .../Release/include/actX509Extension.h | 50 - .../Release/include/actX509KeyReg.h | 48 - .../SLES-11-i686/Release/include/actX509Kit.h | 45 - .../Release/include/actX509SignHashReg.h | 40 - .../Release/include/actX509SignReg.h | 41 - .../Release/include/actAlgorithm.h | 73 - .../Release/include/actAllocator.h | 107 - .../Ubuntu-9-i686/Release/include/actBasics.h | 93 - .../Ubuntu-9-i686/Release/include/actBlob.h | 644 --- .../Release/include/actBlockCipherKit.h | 31 - .../Release/include/actBlockCipherModeKit.h | 27 - .../Release/include/actBlockCipherModeReg.h | 40 - .../Release/include/actBlockCipherReg.h | 39 - .../Ubuntu-9-i686/Release/include/actCRL.h | 68 - .../Release/include/actCertificate.h | 67 - .../Release/include/actCertificateKit.h | 28 - .../Release/include/actCertificateReg.h | 56 - .../Ubuntu-9-i686/Release/include/actDate.h | 109 - .../Ubuntu-9-i686/Release/include/actDebug.h | 295 -- .../Release/include/actDefaultRNG.h | 24 - .../Release/include/actDerivatorKit.h | 27 - .../Release/include/actDerivatorReg.h | 41 - .../Release/include/actEMSAKit.h | 28 - .../Release/include/actEMSAReg.h | 40 - .../Ubuntu-9-i686/Release/include/actEnv.h | 126 - .../Release/include/actException.h | 1112 ----- .../Release/include/actFactoryReg.h | 146 - .../Ubuntu-9-i686/Release/include/actHandle.h | 98 - .../Release/include/actHashKit.h | 32 - .../Release/include/actHashReg.h | 40 - .../Release/include/actIAccessCondition.h | 163 - .../Release/include/actIAgreementKey.h | 32 - .../Release/include/actIAlgorithm.h | 38 - .../Release/include/actIBlockCipher.h | 53 - .../Release/include/actIBlockCipherKey.h | 48 - .../Release/include/actIBlockCipherMode.h | 45 - .../Release/include/actICBCMACKey.h | 31 - .../Ubuntu-9-i686/Release/include/actICRL.h | 51 - .../Release/include/actICertificate.h | 44 - .../Release/include/actIDerivator.h | 45 - .../Release/include/actIDerivatorWithHash.h | 33 - .../Release/include/actIEMSAAlg.h | 49 - .../Release/include/actIEMSAWithHashAlg.h | 34 - .../Release/include/actIEventHandler.h | 54 - .../Release/include/actIEventMonitoring.h | 36 - .../Release/include/actIHashAlg.h | 42 - .../Release/include/actIHashMACKey.h | 32 - .../Release/include/actIIESKey.h | 35 - .../Ubuntu-9-i686/Release/include/actIKey.h | 45 - .../Release/include/actIKeyDerivation.h | 70 - .../Release/include/actIKeyFactory.h | 48 - .../Release/include/actIMACKey.h | 27 - .../Release/include/actIPKCS15Behavior.h | 89 - .../Release/include/actIPadding.h | 47 - .../Ubuntu-9-i686/Release/include/actIParam.h | 67 - .../Release/include/actIRNGAlg.h | 38 - .../Release/include/actIRSAKey.h | 32 - .../Release/include/actIRefCounted.h | 33 - .../Release/include/actISCardAccess.h | 198 - .../Release/include/actISCardOS.h | 262 - .../Release/include/actISCardOSBehavior.h | 79 - .../Release/include/actISecurityManager.h | 60 - .../Release/include/actISignatureKey.h | 32 - .../Ubuntu-9-i686/Release/include/actISlot.h | 82 - .../Release/include/actISlotMonitor.h | 39 - .../Release/include/actIStreamCipher.h | 51 - .../Release/include/actIStreamCipherKey.h | 39 - .../Release/include/actISubsystem.h | 54 - .../Release/include/actISubsystemConfig.h | 38 - .../Release/include/actISynchronize.h | 43 - .../Ubuntu-9-i686/Release/include/actIToken.h | 165 - .../Release/include/actITokenAuth.h | 139 - .../Release/include/actITokenAuthOwner.h | 39 - .../Release/include/actITokenBlockCipher.h | 45 - .../Release/include/actITokenBlockCipherKey.h | 59 - .../Release/include/actITokenConfig.h | 60 - .../Release/include/actITokenExtension.h | 39 - .../Release/include/actITokenFile.h | 71 - .../Release/include/actITokenFileCache.h | 42 - .../Release/include/actITokenFileOwner.h | 37 - .../Release/include/actITokenInitializer.h | 131 - .../Release/include/actITokenKey.h | 64 - .../Release/include/actITokenPIN.h | 221 - .../Release/include/actIX509CRL.h | 48 - .../Release/include/actIX509Certificate.h | 46 - .../Ubuntu-9-i686/Release/include/actInit.h | 578 --- .../Release/include/actJCAppletKit.h | 30 - .../Release/include/actJCAppletReg.h | 62 - .../Release/include/actJCSecureChannelReg.h | 43 - .../Ubuntu-9-i686/Release/include/actKey.h | 82 - .../Ubuntu-9-i686/Release/include/actKeyKit.h | 43 - .../Ubuntu-9-i686/Release/include/actKeyReg.h | 40 - .../Ubuntu-9-i686/Release/include/actLogger.h | 110 - .../Ubuntu-9-i686/Release/include/actMode.h | 269 -- .../Ubuntu-9-i686/Release/include/actMove.h | 133 - .../Ubuntu-9-i686/Release/include/actOID.h | 2103 --------- .../Release/include/actPKCS15BehaviorKit.h | 43 - .../Release/include/actPKCS15BehaviorReg.h | 34 - .../Release/include/actPaddingKit.h | 26 - .../Release/include/actPaddingReg.h | 41 - .../Release/include/actProfileGeneratorKit.h | 26 - .../Release/include/actProfileGeneratorReg.h | 33 - .../Ubuntu-9-i686/Release/include/actRNGKit.h | 44 - .../Release/include/actSCardLock.h | 51 - .../Release/include/actSCardOSKit.h | 170 - .../Release/include/actSCardOSReg.h | 46 - .../Release/include/actSCardTokenKit.h | 105 - .../Release/include/actSCardTokenReg.h | 42 - .../Release/include/actSCardUtil.h | 27 - .../Release/include/actSlotManager.h | 81 - .../Release/include/actSlotMonitorKit.h | 32 - .../Release/include/actSlotMonitorReg.h | 54 - .../Ubuntu-9-i686/Release/include/actState.h | 29 - .../Release/include/actStreamCipherKit.h | 22 - .../Release/include/actStreamCipherReg.h | 39 - .../Release/include/actSubsystemKit.h | 33 - .../Release/include/actSubsystemReg.h | 53 - .../Release/include/actTokenAuthProtocolKit.h | 30 - .../Release/include/actTokenAuthProtocolReg.h | 33 - .../Release/include/actTokenBase.h | 200 - .../Release/include/actTokenConfig.h | 104 - .../Release/include/actTokenExtensionKit.h | 28 - .../Release/include/actTokenExtensionReg.h | 34 - .../Ubuntu-9-i686/Release/include/actTools.h | 93 - .../Release/include/actToolsECC.h | 99 - .../Release/include/actToolsRSA.h | 19 - .../Release/include/actTypeTags.h | 32 - .../Release/include/actX509Extension.h | 50 - .../Release/include/actX509KeyReg.h | 48 - .../Release/include/actX509Kit.h | 45 - .../Release/include/actX509SignHashReg.h | 40 - .../Release/include/actX509SignReg.h | 41 - .../Release => }/include/actAlgorithm.h | 146 +- .../Release => }/include/actAllocator.h | 214 +- .../Release => }/include/actBasics.h | 186 +- .../Release => }/include/actBlob.h | 1288 ++--- .../Release => }/include/actBlockCipherKit.h | 62 +- .../include/actBlockCipherModeKit.h | 54 +- .../include/actBlockCipherModeReg.h | 80 +- .../Release => }/include/actBlockCipherReg.h | 78 +- .../Release => }/include/actCRL.h | 136 +- .../Release => }/include/actCertificate.h | 134 +- .../Release => }/include/actCertificateKit.h | 56 +- .../Release => }/include/actCertificateReg.h | 112 +- .../Release => }/include/actDate.h | 218 +- .../Release => }/include/actDebug.h | 590 +-- .../Release => }/include/actDefaultRNG.h | 48 +- .../Release => }/include/actDerivatorKit.h | 54 +- .../Release => }/include/actDerivatorReg.h | 82 +- .../Release => }/include/actEMSAKit.h | 56 +- .../Release => }/include/actEMSAReg.h | 80 +- .../Release => }/include/actEnv.h | 252 +- .../Release => }/include/actException.h | 2224 ++++----- .../Release => }/include/actFactoryReg.h | 292 +- .../Release => }/include/actHandle.h | 196 +- .../Release => }/include/actHashKit.h | 64 +- .../Release => }/include/actHashReg.h | 80 +- .../include/actIAccessCondition.h | 326 +- .../Release => }/include/actIAgreementKey.h | 64 +- .../Release => }/include/actIAlgorithm.h | 76 +- .../Release => }/include/actIBlockCipher.h | 106 +- .../Release => }/include/actIBlockCipherKey.h | 96 +- .../include/actIBlockCipherMode.h | 90 +- .../Release => }/include/actICBCMACKey.h | 62 +- .../Release => }/include/actICRL.h | 102 +- .../Release => }/include/actICertificate.h | 88 +- .../Release => }/include/actIDerivator.h | 90 +- .../include/actIDerivatorWithHash.h | 66 +- .../Release => }/include/actIEMSAAlg.h | 98 +- .../include/actIEMSAWithHashAlg.h | 68 +- .../Release => }/include/actIEventHandler.h | 108 +- .../include/actIEventMonitoring.h | 72 +- .../Release => }/include/actIHashAlg.h | 84 +- .../Release => }/include/actIHashMACKey.h | 64 +- .../Release => }/include/actIIESKey.h | 70 +- .../Release => }/include/actIKey.h | 90 +- .../Release => }/include/actIKeyDerivation.h | 140 +- .../Release => }/include/actIKeyFactory.h | 96 +- .../Release => }/include/actIMACKey.h | 54 +- .../Release => }/include/actIPKCS15Behavior.h | 178 +- .../Release => }/include/actIPadding.h | 94 +- .../Release => }/include/actIParam.h | 134 +- .../Release => }/include/actIRNGAlg.h | 76 +- .../Release => }/include/actIRSAKey.h | 64 +- .../Release => }/include/actIRefCounted.h | 66 +- .../Release => }/include/actISCardAccess.h | 396 +- .../Release => }/include/actISCardOS.h | 524 +- .../include/actISCardOSBehavior.h | 158 +- .../include/actISecurityManager.h | 120 +- .../Release => }/include/actISignatureKey.h | 64 +- .../Release => }/include/actISlot.h | 164 +- .../Release => }/include/actISlotMonitor.h | 78 +- .../Release => }/include/actIStreamCipher.h | 102 +- .../include/actIStreamCipherKey.h | 78 +- .../Release => }/include/actISubsystem.h | 108 +- .../include/actISubsystemConfig.h | 76 +- .../Release => }/include/actISynchronize.h | 86 +- .../Release => }/include/actIToken.h | 330 +- .../Release => }/include/actITokenAuth.h | 278 +- .../Release => }/include/actITokenAuthOwner.h | 78 +- .../include/actITokenBlockCipher.h | 90 +- .../include/actITokenBlockCipherKey.h | 118 +- .../Release => }/include/actITokenConfig.h | 120 +- .../Release => }/include/actITokenExtension.h | 78 +- .../Release => }/include/actITokenFile.h | 142 +- .../Release => }/include/actITokenFileCache.h | 84 +- .../Release => }/include/actITokenFileOwner.h | 74 +- .../include/actITokenInitializer.h | 262 +- .../Release => }/include/actITokenKey.h | 128 +- .../Release => }/include/actITokenPIN.h | 442 +- .../Release => }/include/actIX509CRL.h | 96 +- .../include/actIX509Certificate.h | 92 +- .../Release => }/include/actInit.h | 1156 ++--- .../Release => }/include/actJCAppletKit.h | 60 +- .../Release => }/include/actJCAppletReg.h | 124 +- .../include/actJCSecureChannelReg.h | 86 +- .../Release => }/include/actKey.h | 164 +- .../Release => }/include/actKeyKit.h | 86 +- .../Release => }/include/actKeyReg.h | 80 +- .../Release => }/include/actLogger.h | 220 +- .../Release => }/include/actMode.h | 538 +-- .../Release => }/include/actMove.h | 266 +- .../Release => }/include/actOID.h | 4206 ++++++++--------- .../include/actPKCS15BehaviorKit.h | 86 +- .../include/actPKCS15BehaviorReg.h | 68 +- .../Release => }/include/actPaddingKit.h | 52 +- .../Release => }/include/actPaddingReg.h | 82 +- .../include/actProfileGeneratorKit.h | 52 +- .../include/actProfileGeneratorReg.h | 66 +- .../Release => }/include/actRNGKit.h | 88 +- .../Release => }/include/actSCardLock.h | 102 +- .../Release => }/include/actSCardOSKit.h | 340 +- .../Release => }/include/actSCardOSReg.h | 92 +- .../Release => }/include/actSCardTokenKit.h | 210 +- .../Release => }/include/actSCardTokenReg.h | 84 +- .../Release => }/include/actSCardUtil.h | 54 +- .../Release => }/include/actSlotManager.h | 162 +- .../Release => }/include/actSlotMonitorKit.h | 64 +- .../Release => }/include/actSlotMonitorReg.h | 108 +- .../Release => }/include/actState.h | 58 +- .../Release => }/include/actStreamCipherKit.h | 44 +- .../Release => }/include/actStreamCipherReg.h | 78 +- .../Release => }/include/actSubsystemKit.h | 66 +- .../Release => }/include/actSubsystemReg.h | 106 +- .../include/actTokenAuthProtocolKit.h | 60 +- .../include/actTokenAuthProtocolReg.h | 66 +- .../Release => }/include/actTokenBase.h | 400 +- .../Release => }/include/actTokenConfig.h | 208 +- .../include/actTokenExtensionKit.h | 56 +- .../include/actTokenExtensionReg.h | 68 +- .../Release => }/include/actTools.h | 186 +- .../Release => }/include/actToolsECC.h | 198 +- .../Release => }/include/actToolsRSA.h | 38 +- .../Release => }/include/actTypeTags.h | 64 +- .../Release => }/include/actX509Extension.h | 100 +- .../Release => }/include/actX509KeyReg.h | 96 +- .../Release => }/include/actX509Kit.h | 90 +- .../Release => }/include/actX509SignHashReg.h | 80 +- .../Release => }/include/actX509SignReg.h | 82 +- .../Release/include/actAlgorithm.h | 73 - .../Release/include/actAllocator.h | 107 - .../mingw32-i586/Release/include/actBasics.h | 93 - .../mingw32-i586/Release/include/actBlob.h | 644 --- .../Release/include/actBlockCipherKit.h | 31 - .../Release/include/actBlockCipherModeKit.h | 27 - .../Release/include/actBlockCipherModeReg.h | 40 - .../Release/include/actBlockCipherReg.h | 39 - .../mingw32-i586/Release/include/actCRL.h | 68 - .../Release/include/actCertificate.h | 67 - .../Release/include/actCertificateKit.h | 28 - .../Release/include/actCertificateReg.h | 56 - .../mingw32-i586/Release/include/actDate.h | 109 - .../mingw32-i586/Release/include/actDebug.h | 295 -- .../Release/include/actDefaultRNG.h | 24 - .../Release/include/actDerivatorKit.h | 27 - .../Release/include/actDerivatorReg.h | 41 - .../mingw32-i586/Release/include/actEMSAKit.h | 28 - .../mingw32-i586/Release/include/actEMSAReg.h | 40 - .../mingw32-i586/Release/include/actEnv.h | 126 - .../Release/include/actException.h | 1112 ----- .../Release/include/actFactoryReg.h | 146 - .../mingw32-i586/Release/include/actHandle.h | 98 - .../mingw32-i586/Release/include/actHashKit.h | 32 - .../mingw32-i586/Release/include/actHashReg.h | 40 - .../Release/include/actIAccessCondition.h | 163 - .../Release/include/actIAgreementKey.h | 32 - .../Release/include/actIAlgorithm.h | 38 - .../Release/include/actIBlockCipher.h | 53 - .../Release/include/actIBlockCipherKey.h | 48 - .../Release/include/actIBlockCipherMode.h | 45 - .../Release/include/actICBCMACKey.h | 31 - .../mingw32-i586/Release/include/actICRL.h | 51 - .../Release/include/actICertificate.h | 44 - .../Release/include/actIDerivator.h | 45 - .../Release/include/actIDerivatorWithHash.h | 33 - .../Release/include/actIEMSAAlg.h | 49 - .../Release/include/actIEMSAWithHashAlg.h | 34 - .../Release/include/actIEventHandler.h | 54 - .../Release/include/actIEventMonitoring.h | 36 - .../Release/include/actIHashAlg.h | 42 - .../Release/include/actIHashMACKey.h | 32 - .../mingw32-i586/Release/include/actIIESKey.h | 35 - .../mingw32-i586/Release/include/actIKey.h | 45 - .../Release/include/actIKeyDerivation.h | 70 - .../Release/include/actIKeyFactory.h | 48 - .../mingw32-i586/Release/include/actIMACKey.h | 27 - .../Release/include/actIPKCS15Behavior.h | 89 - .../Release/include/actIPadding.h | 47 - .../mingw32-i586/Release/include/actIParam.h | 67 - .../mingw32-i586/Release/include/actIRNGAlg.h | 38 - .../mingw32-i586/Release/include/actIRSAKey.h | 32 - .../Release/include/actIRefCounted.h | 33 - .../Release/include/actISCardAccess.h | 198 - .../Release/include/actISCardOS.h | 262 - .../Release/include/actISCardOSBehavior.h | 79 - .../Release/include/actISecurityManager.h | 60 - .../Release/include/actISignatureKey.h | 32 - .../mingw32-i586/Release/include/actISlot.h | 82 - .../Release/include/actISlotMonitor.h | 39 - .../Release/include/actIStreamCipher.h | 51 - .../Release/include/actIStreamCipherKey.h | 39 - .../Release/include/actISubsystem.h | 54 - .../Release/include/actISubsystemConfig.h | 38 - .../Release/include/actISynchronize.h | 43 - .../mingw32-i586/Release/include/actIToken.h | 165 - .../Release/include/actITokenAuth.h | 139 - .../Release/include/actITokenAuthOwner.h | 39 - .../Release/include/actITokenBlockCipher.h | 45 - .../Release/include/actITokenBlockCipherKey.h | 59 - .../Release/include/actITokenConfig.h | 60 - .../Release/include/actITokenExtension.h | 39 - .../Release/include/actITokenFile.h | 71 - .../Release/include/actITokenFileCache.h | 42 - .../Release/include/actITokenFileOwner.h | 37 - .../Release/include/actITokenInitializer.h | 131 - .../Release/include/actITokenKey.h | 64 - .../Release/include/actITokenPIN.h | 221 - .../Release/include/actIX509CRL.h | 48 - .../Release/include/actIX509Certificate.h | 46 - .../mingw32-i586/Release/include/actInit.h | 578 --- .../Release/include/actJCAppletKit.h | 30 - .../Release/include/actJCAppletReg.h | 62 - .../Release/include/actJCSecureChannelReg.h | 43 - .../mingw32-i586/Release/include/actKey.h | 82 - .../mingw32-i586/Release/include/actKeyKit.h | 43 - .../mingw32-i586/Release/include/actKeyReg.h | 40 - .../mingw32-i586/Release/include/actLogger.h | 110 - .../mingw32-i586/Release/include/actMode.h | 269 -- .../mingw32-i586/Release/include/actMove.h | 133 - .../mingw32-i586/Release/include/actOID.h | 2103 --------- .../Release/include/actPKCS15BehaviorKit.h | 43 - .../Release/include/actPKCS15BehaviorReg.h | 34 - .../Release/include/actPaddingKit.h | 26 - .../Release/include/actPaddingReg.h | 41 - .../Release/include/actProfileGeneratorKit.h | 26 - .../Release/include/actProfileGeneratorReg.h | 33 - .../mingw32-i586/Release/include/actRNGKit.h | 44 - .../Release/include/actSCardLock.h | 51 - .../Release/include/actSCardOSKit.h | 170 - .../Release/include/actSCardOSReg.h | 46 - .../Release/include/actSCardTokenKit.h | 105 - .../Release/include/actSCardTokenReg.h | 42 - .../Release/include/actSCardUtil.h | 27 - .../Release/include/actSlotManager.h | 81 - .../Release/include/actSlotMonitorKit.h | 32 - .../Release/include/actSlotMonitorReg.h | 54 - .../mingw32-i586/Release/include/actState.h | 29 - .../Release/include/actStreamCipherKit.h | 22 - .../Release/include/actStreamCipherReg.h | 39 - .../Release/include/actSubsystemKit.h | 33 - .../Release/include/actSubsystemReg.h | 53 - .../Release/include/actTokenAuthProtocolKit.h | 30 - .../Release/include/actTokenAuthProtocolReg.h | 33 - .../Release/include/actTokenBase.h | 200 - .../Release/include/actTokenConfig.h | 104 - .../Release/include/actTokenExtensionKit.h | 28 - .../Release/include/actTokenExtensionReg.h | 34 - .../mingw32-i586/Release/include/actTools.h | 93 - .../Release/include/actToolsECC.h | 99 - .../Release/include/actToolsRSA.h | 19 - .../Release/include/actTypeTags.h | 32 - .../Release/include/actX509Extension.h | 50 - .../Release/include/actX509KeyReg.h | 48 - .../mingw32-i586/Release/include/actX509Kit.h | 45 - .../Release/include/actX509SignHashReg.h | 40 - .../Release/include/actX509SignReg.h | 41 - 1026 files changed, 12807 insertions(+), 99284 deletions(-) delete mode 100644 actlibrary/MacOSX-10.4-ppc/Release/include/actAllocator.h delete mode 100644 actlibrary/MacOSX-10.4-ppc/Release/include/actBasics.h delete mode 100644 actlibrary/MacOSX-10.4-ppc/Release/include/actBlob.h delete mode 100644 actlibrary/MacOSX-10.4-ppc/Release/include/actBlockCipherModeKit.h delete mode 100644 actlibrary/MacOSX-10.4-ppc/Release/include/actBlockCipherModeReg.h delete mode 100644 actlibrary/MacOSX-10.4-ppc/Release/include/actCRL.h delete mode 100644 actlibrary/MacOSX-10.4-ppc/Release/include/actCertificateKit.h delete mode 100644 actlibrary/MacOSX-10.4-ppc/Release/include/actCertificateReg.h delete mode 100644 actlibrary/MacOSX-10.4-ppc/Release/include/actDate.h delete mode 100644 actlibrary/MacOSX-10.4-ppc/Release/include/actDefaultRNG.h delete mode 100644 actlibrary/MacOSX-10.4-ppc/Release/include/actDerivatorReg.h delete mode 100644 actlibrary/MacOSX-10.4-ppc/Release/include/actEMSAReg.h delete mode 100644 actlibrary/MacOSX-10.4-ppc/Release/include/actFactoryReg.h delete mode 100644 actlibrary/MacOSX-10.4-ppc/Release/include/actHandle.h delete mode 100644 actlibrary/MacOSX-10.4-ppc/Release/include/actHashReg.h delete mode 100644 actlibrary/MacOSX-10.4-ppc/Release/include/actIAccessCondition.h delete mode 100644 actlibrary/MacOSX-10.4-ppc/Release/include/actIAgreementKey.h delete mode 100644 actlibrary/MacOSX-10.4-ppc/Release/include/actIBlockCipherKey.h delete mode 100644 actlibrary/MacOSX-10.4-ppc/Release/include/actICBCMACKey.h delete mode 100644 actlibrary/MacOSX-10.4-ppc/Release/include/actIDerivator.h delete mode 100644 actlibrary/MacOSX-10.4-ppc/Release/include/actIEMSAAlg.h delete mode 100644 actlibrary/MacOSX-10.4-ppc/Release/include/actIEMSAWithHashAlg.h delete mode 100644 actlibrary/MacOSX-10.4-ppc/Release/include/actIEventHandler.h delete mode 100644 actlibrary/MacOSX-10.4-ppc/Release/include/actIHashAlg.h delete mode 100644 actlibrary/MacOSX-10.4-ppc/Release/include/actIKey.h delete mode 100644 actlibrary/MacOSX-10.4-ppc/Release/include/actIKeyDerivation.h delete mode 100644 actlibrary/MacOSX-10.4-ppc/Release/include/actIMACKey.h delete mode 100644 actlibrary/MacOSX-10.4-ppc/Release/include/actIPKCS15Behavior.h delete mode 100644 actlibrary/MacOSX-10.4-ppc/Release/include/actIParam.h delete mode 100644 actlibrary/MacOSX-10.4-ppc/Release/include/actIRNGAlg.h delete mode 100644 actlibrary/MacOSX-10.4-ppc/Release/include/actIRSAKey.h delete mode 100644 actlibrary/MacOSX-10.4-ppc/Release/include/actIRefCounted.h delete mode 100644 actlibrary/MacOSX-10.4-ppc/Release/include/actISCardAccess.h delete mode 100644 actlibrary/MacOSX-10.4-ppc/Release/include/actISCardOS.h delete mode 100644 actlibrary/MacOSX-10.4-ppc/Release/include/actISecurityManager.h delete mode 100644 actlibrary/MacOSX-10.4-ppc/Release/include/actISignatureKey.h delete mode 100644 actlibrary/MacOSX-10.4-ppc/Release/include/actISlot.h delete mode 100644 actlibrary/MacOSX-10.4-ppc/Release/include/actISlotMonitor.h delete mode 100644 actlibrary/MacOSX-10.4-ppc/Release/include/actIStreamCipher.h delete mode 100644 actlibrary/MacOSX-10.4-ppc/Release/include/actIStreamCipherKey.h delete mode 100644 actlibrary/MacOSX-10.4-ppc/Release/include/actISubsystemConfig.h delete mode 100644 actlibrary/MacOSX-10.4-ppc/Release/include/actIToken.h delete mode 100644 actlibrary/MacOSX-10.4-ppc/Release/include/actITokenAuth.h delete mode 100644 actlibrary/MacOSX-10.4-ppc/Release/include/actITokenBlockCipherKey.h delete mode 100644 actlibrary/MacOSX-10.4-ppc/Release/include/actITokenConfig.h delete mode 100644 actlibrary/MacOSX-10.4-ppc/Release/include/actITokenExtension.h delete mode 100644 actlibrary/MacOSX-10.4-ppc/Release/include/actITokenFileCache.h delete mode 100644 actlibrary/MacOSX-10.4-ppc/Release/include/actITokenFileOwner.h delete mode 100644 actlibrary/MacOSX-10.4-ppc/Release/include/actITokenInitializer.h delete mode 100644 actlibrary/MacOSX-10.4-ppc/Release/include/actITokenKey.h delete mode 100644 actlibrary/MacOSX-10.4-ppc/Release/include/actITokenPIN.h delete mode 100644 actlibrary/MacOSX-10.4-ppc/Release/include/actIX509CRL.h delete mode 100644 actlibrary/MacOSX-10.4-ppc/Release/include/actIX509Certificate.h delete mode 100644 actlibrary/MacOSX-10.4-ppc/Release/include/actInit.h delete mode 100644 actlibrary/MacOSX-10.4-ppc/Release/include/actJCAppletReg.h delete mode 100644 actlibrary/MacOSX-10.4-ppc/Release/include/actKey.h delete mode 100644 actlibrary/MacOSX-10.4-ppc/Release/include/actLogger.h delete mode 100644 actlibrary/MacOSX-10.4-ppc/Release/include/actMode.h delete mode 100644 actlibrary/MacOSX-10.4-ppc/Release/include/actPKCS15BehaviorReg.h delete mode 100644 actlibrary/MacOSX-10.4-ppc/Release/include/actPaddingKit.h delete mode 100644 actlibrary/MacOSX-10.4-ppc/Release/include/actPaddingReg.h delete mode 100644 actlibrary/MacOSX-10.4-ppc/Release/include/actProfileGeneratorKit.h delete mode 100644 actlibrary/MacOSX-10.4-ppc/Release/include/actRNGKit.h delete mode 100644 actlibrary/MacOSX-10.4-ppc/Release/include/actSCardOSKit.h delete mode 100644 actlibrary/MacOSX-10.4-ppc/Release/include/actSCardOSReg.h delete mode 100644 actlibrary/MacOSX-10.4-ppc/Release/include/actSCardTokenKit.h delete mode 100644 actlibrary/MacOSX-10.4-ppc/Release/include/actSCardTokenReg.h delete mode 100644 actlibrary/MacOSX-10.4-ppc/Release/include/actSCardUtil.h delete mode 100644 actlibrary/MacOSX-10.4-ppc/Release/include/actSlotManager.h delete mode 100644 actlibrary/MacOSX-10.4-ppc/Release/include/actState.h delete mode 100644 actlibrary/MacOSX-10.4-ppc/Release/include/actStreamCipherKit.h delete mode 100644 actlibrary/MacOSX-10.4-ppc/Release/include/actStreamCipherReg.h delete mode 100644 actlibrary/MacOSX-10.4-ppc/Release/include/actSubsystemReg.h delete mode 100644 actlibrary/MacOSX-10.4-ppc/Release/include/actTokenAuthProtocolKit.h delete mode 100644 actlibrary/MacOSX-10.4-ppc/Release/include/actTokenBase.h delete mode 100644 actlibrary/MacOSX-10.4-ppc/Release/include/actTokenConfig.h delete mode 100644 actlibrary/MacOSX-10.4-ppc/Release/include/actTokenExtensionKit.h delete mode 100644 actlibrary/MacOSX-10.4-ppc/Release/include/actTokenExtensionReg.h delete mode 100644 actlibrary/MacOSX-10.4-ppc/Release/include/actToolsECC.h delete mode 100644 actlibrary/MacOSX-10.4-ppc/Release/include/actToolsRSA.h delete mode 100644 actlibrary/MacOSX-10.4-ppc/Release/include/actTypeTags.h delete mode 100644 actlibrary/MacOSX-10.4-ppc/Release/include/actX509Extension.h delete mode 100644 actlibrary/MacOSX-10.4-ppc/Release/include/actX509KeyReg.h delete mode 100644 actlibrary/MacOSX-10.4-ppc/Release/include/actX509Kit.h delete mode 100644 actlibrary/MacOSX-10.4-ppc/Release/include/actX509SignHashReg.h delete mode 100644 actlibrary/MacOSX-10.4-ppc/Release/include/actX509SignReg.h delete mode 100644 actlibrary/MacOSX-10.5-x86_64/Release/include/actAlgorithm.h delete mode 100644 actlibrary/MacOSX-10.5-x86_64/Release/include/actAllocator.h delete mode 100644 actlibrary/MacOSX-10.5-x86_64/Release/include/actBlob.h delete mode 100644 actlibrary/MacOSX-10.5-x86_64/Release/include/actBlockCipherKit.h delete mode 100644 actlibrary/MacOSX-10.5-x86_64/Release/include/actBlockCipherModeKit.h delete mode 100644 actlibrary/MacOSX-10.5-x86_64/Release/include/actBlockCipherReg.h delete mode 100644 actlibrary/MacOSX-10.5-x86_64/Release/include/actCRL.h delete mode 100644 actlibrary/MacOSX-10.5-x86_64/Release/include/actCertificate.h delete mode 100644 actlibrary/MacOSX-10.5-x86_64/Release/include/actCertificateKit.h delete mode 100644 actlibrary/MacOSX-10.5-x86_64/Release/include/actCertificateReg.h delete mode 100644 actlibrary/MacOSX-10.5-x86_64/Release/include/actDate.h delete mode 100644 actlibrary/MacOSX-10.5-x86_64/Release/include/actDebug.h delete mode 100644 actlibrary/MacOSX-10.5-x86_64/Release/include/actDerivatorKit.h delete mode 100644 actlibrary/MacOSX-10.5-x86_64/Release/include/actDerivatorReg.h delete mode 100644 actlibrary/MacOSX-10.5-x86_64/Release/include/actEMSAKit.h delete mode 100644 actlibrary/MacOSX-10.5-x86_64/Release/include/actEMSAReg.h delete mode 100644 actlibrary/MacOSX-10.5-x86_64/Release/include/actEnv.h delete mode 100644 actlibrary/MacOSX-10.5-x86_64/Release/include/actException.h delete mode 100644 actlibrary/MacOSX-10.5-x86_64/Release/include/actFactoryReg.h delete mode 100644 actlibrary/MacOSX-10.5-x86_64/Release/include/actHashKit.h delete mode 100644 actlibrary/MacOSX-10.5-x86_64/Release/include/actIAccessCondition.h delete mode 100644 actlibrary/MacOSX-10.5-x86_64/Release/include/actIAgreementKey.h delete mode 100644 actlibrary/MacOSX-10.5-x86_64/Release/include/actIAlgorithm.h delete mode 100644 actlibrary/MacOSX-10.5-x86_64/Release/include/actIBlockCipher.h delete mode 100644 actlibrary/MacOSX-10.5-x86_64/Release/include/actIBlockCipherKey.h delete mode 100644 actlibrary/MacOSX-10.5-x86_64/Release/include/actIBlockCipherMode.h delete mode 100644 actlibrary/MacOSX-10.5-x86_64/Release/include/actICRL.h delete mode 100644 actlibrary/MacOSX-10.5-x86_64/Release/include/actICertificate.h delete mode 100644 actlibrary/MacOSX-10.5-x86_64/Release/include/actIDerivatorWithHash.h delete mode 100644 actlibrary/MacOSX-10.5-x86_64/Release/include/actIEMSAAlg.h delete mode 100644 actlibrary/MacOSX-10.5-x86_64/Release/include/actIEMSAWithHashAlg.h delete mode 100644 actlibrary/MacOSX-10.5-x86_64/Release/include/actIEventHandler.h delete mode 100644 actlibrary/MacOSX-10.5-x86_64/Release/include/actIEventMonitoring.h delete mode 100644 actlibrary/MacOSX-10.5-x86_64/Release/include/actIHashMACKey.h delete mode 100644 actlibrary/MacOSX-10.5-x86_64/Release/include/actIIESKey.h delete mode 100644 actlibrary/MacOSX-10.5-x86_64/Release/include/actIKey.h delete mode 100644 actlibrary/MacOSX-10.5-x86_64/Release/include/actIKeyFactory.h delete mode 100644 actlibrary/MacOSX-10.5-x86_64/Release/include/actIMACKey.h delete mode 100644 actlibrary/MacOSX-10.5-x86_64/Release/include/actIPadding.h delete mode 100644 actlibrary/MacOSX-10.5-x86_64/Release/include/actIRNGAlg.h delete mode 100644 actlibrary/MacOSX-10.5-x86_64/Release/include/actIRefCounted.h delete mode 100644 actlibrary/MacOSX-10.5-x86_64/Release/include/actISCardAccess.h delete mode 100644 actlibrary/MacOSX-10.5-x86_64/Release/include/actISCardOS.h delete mode 100644 actlibrary/MacOSX-10.5-x86_64/Release/include/actISCardOSBehavior.h delete mode 100644 actlibrary/MacOSX-10.5-x86_64/Release/include/actISignatureKey.h delete mode 100644 actlibrary/MacOSX-10.5-x86_64/Release/include/actISlot.h delete mode 100644 actlibrary/MacOSX-10.5-x86_64/Release/include/actISlotMonitor.h delete mode 100644 actlibrary/MacOSX-10.5-x86_64/Release/include/actIStreamCipherKey.h delete mode 100644 actlibrary/MacOSX-10.5-x86_64/Release/include/actISubsystem.h delete mode 100644 actlibrary/MacOSX-10.5-x86_64/Release/include/actISubsystemConfig.h delete mode 100644 actlibrary/MacOSX-10.5-x86_64/Release/include/actISynchronize.h delete mode 100644 actlibrary/MacOSX-10.5-x86_64/Release/include/actIToken.h delete mode 100644 actlibrary/MacOSX-10.5-x86_64/Release/include/actITokenAuth.h delete mode 100644 actlibrary/MacOSX-10.5-x86_64/Release/include/actITokenAuthOwner.h delete mode 100644 actlibrary/MacOSX-10.5-x86_64/Release/include/actITokenBlockCipher.h delete mode 100644 actlibrary/MacOSX-10.5-x86_64/Release/include/actITokenConfig.h delete mode 100644 actlibrary/MacOSX-10.5-x86_64/Release/include/actITokenExtension.h delete mode 100644 actlibrary/MacOSX-10.5-x86_64/Release/include/actITokenFile.h delete mode 100644 actlibrary/MacOSX-10.5-x86_64/Release/include/actITokenFileCache.h delete mode 100644 actlibrary/MacOSX-10.5-x86_64/Release/include/actITokenInitializer.h delete mode 100644 actlibrary/MacOSX-10.5-x86_64/Release/include/actITokenKey.h delete mode 100644 actlibrary/MacOSX-10.5-x86_64/Release/include/actITokenPIN.h delete mode 100644 actlibrary/MacOSX-10.5-x86_64/Release/include/actIX509Certificate.h delete mode 100644 actlibrary/MacOSX-10.5-x86_64/Release/include/actInit.h delete mode 100644 actlibrary/MacOSX-10.5-x86_64/Release/include/actJCAppletKit.h delete mode 100644 actlibrary/MacOSX-10.5-x86_64/Release/include/actJCAppletReg.h delete mode 100644 actlibrary/MacOSX-10.5-x86_64/Release/include/actJCSecureChannelReg.h delete mode 100644 actlibrary/MacOSX-10.5-x86_64/Release/include/actKey.h delete mode 100644 actlibrary/MacOSX-10.5-x86_64/Release/include/actKeyKit.h delete mode 100644 actlibrary/MacOSX-10.5-x86_64/Release/include/actKeyReg.h delete mode 100644 actlibrary/MacOSX-10.5-x86_64/Release/include/actMove.h delete mode 100644 actlibrary/MacOSX-10.5-x86_64/Release/include/actOID.h delete mode 100644 actlibrary/MacOSX-10.5-x86_64/Release/include/actPKCS15BehaviorKit.h delete mode 100644 actlibrary/MacOSX-10.5-x86_64/Release/include/actPKCS15BehaviorReg.h delete mode 100644 actlibrary/MacOSX-10.5-x86_64/Release/include/actPaddingKit.h delete mode 100644 actlibrary/MacOSX-10.5-x86_64/Release/include/actProfileGeneratorKit.h delete mode 100644 actlibrary/MacOSX-10.5-x86_64/Release/include/actProfileGeneratorReg.h delete mode 100644 actlibrary/MacOSX-10.5-x86_64/Release/include/actRNGKit.h delete mode 100644 actlibrary/MacOSX-10.5-x86_64/Release/include/actSCardLock.h delete mode 100644 actlibrary/MacOSX-10.5-x86_64/Release/include/actSCardOSKit.h delete mode 100644 actlibrary/MacOSX-10.5-x86_64/Release/include/actSCardTokenKit.h delete mode 100644 actlibrary/MacOSX-10.5-x86_64/Release/include/actSCardTokenReg.h delete mode 100644 actlibrary/MacOSX-10.5-x86_64/Release/include/actSlotMonitorKit.h delete mode 100644 actlibrary/MacOSX-10.5-x86_64/Release/include/actSlotMonitorReg.h delete mode 100644 actlibrary/MacOSX-10.5-x86_64/Release/include/actState.h delete mode 100644 actlibrary/MacOSX-10.5-x86_64/Release/include/actStreamCipherKit.h delete mode 100644 actlibrary/MacOSX-10.5-x86_64/Release/include/actSubsystemKit.h delete mode 100644 actlibrary/MacOSX-10.5-x86_64/Release/include/actSubsystemReg.h delete mode 100644 actlibrary/MacOSX-10.5-x86_64/Release/include/actTokenAuthProtocolReg.h delete mode 100644 actlibrary/MacOSX-10.5-x86_64/Release/include/actTokenBase.h delete mode 100644 actlibrary/MacOSX-10.5-x86_64/Release/include/actTokenConfig.h delete mode 100644 actlibrary/MacOSX-10.5-x86_64/Release/include/actTokenExtensionReg.h delete mode 100644 actlibrary/MacOSX-10.5-x86_64/Release/include/actTools.h delete mode 100644 actlibrary/MacOSX-10.5-x86_64/Release/include/actToolsECC.h delete mode 100644 actlibrary/MacOSX-10.5-x86_64/Release/include/actToolsRSA.h delete mode 100644 actlibrary/MacOSX-10.5-x86_64/Release/include/actTypeTags.h delete mode 100644 actlibrary/MacOSX-10.5-x86_64/Release/include/actX509Extension.h delete mode 100644 actlibrary/MacOSX-10.5-x86_64/Release/include/actX509Kit.h delete mode 100644 actlibrary/MacOSX-10.5-x86_64/Release/include/actX509SignHashReg.h delete mode 100644 actlibrary/MacOSX-10.6-x86_64/Release/include/actAlgorithm.h delete mode 100644 actlibrary/MacOSX-10.6-x86_64/Release/include/actBasics.h delete mode 100644 actlibrary/MacOSX-10.6-x86_64/Release/include/actBlockCipherKit.h delete mode 100644 actlibrary/MacOSX-10.6-x86_64/Release/include/actBlockCipherModeReg.h delete mode 100644 actlibrary/MacOSX-10.6-x86_64/Release/include/actBlockCipherReg.h delete mode 100644 actlibrary/MacOSX-10.6-x86_64/Release/include/actCertificate.h delete mode 100644 actlibrary/MacOSX-10.6-x86_64/Release/include/actDebug.h delete mode 100644 actlibrary/MacOSX-10.6-x86_64/Release/include/actDefaultRNG.h delete mode 100644 actlibrary/MacOSX-10.6-x86_64/Release/include/actDerivatorKit.h delete mode 100644 actlibrary/MacOSX-10.6-x86_64/Release/include/actEMSAKit.h delete mode 100644 actlibrary/MacOSX-10.6-x86_64/Release/include/actEnv.h delete mode 100644 actlibrary/MacOSX-10.6-x86_64/Release/include/actException.h delete mode 100644 actlibrary/MacOSX-10.6-x86_64/Release/include/actHandle.h delete mode 100644 actlibrary/MacOSX-10.6-x86_64/Release/include/actHashKit.h delete mode 100644 actlibrary/MacOSX-10.6-x86_64/Release/include/actHashReg.h delete mode 100644 actlibrary/MacOSX-10.6-x86_64/Release/include/actIAlgorithm.h delete mode 100644 actlibrary/MacOSX-10.6-x86_64/Release/include/actIBlockCipher.h delete mode 100644 actlibrary/MacOSX-10.6-x86_64/Release/include/actIBlockCipherMode.h delete mode 100644 actlibrary/MacOSX-10.6-x86_64/Release/include/actICBCMACKey.h delete mode 100644 actlibrary/MacOSX-10.6-x86_64/Release/include/actICRL.h delete mode 100644 actlibrary/MacOSX-10.6-x86_64/Release/include/actICertificate.h delete mode 100644 actlibrary/MacOSX-10.6-x86_64/Release/include/actIDerivator.h delete mode 100644 actlibrary/MacOSX-10.6-x86_64/Release/include/actIDerivatorWithHash.h delete mode 100644 actlibrary/MacOSX-10.6-x86_64/Release/include/actIEventMonitoring.h delete mode 100644 actlibrary/MacOSX-10.6-x86_64/Release/include/actIHashAlg.h delete mode 100644 actlibrary/MacOSX-10.6-x86_64/Release/include/actIHashMACKey.h delete mode 100644 actlibrary/MacOSX-10.6-x86_64/Release/include/actIIESKey.h delete mode 100644 actlibrary/MacOSX-10.6-x86_64/Release/include/actIKeyDerivation.h delete mode 100644 actlibrary/MacOSX-10.6-x86_64/Release/include/actIKeyFactory.h delete mode 100644 actlibrary/MacOSX-10.6-x86_64/Release/include/actIPKCS15Behavior.h delete mode 100644 actlibrary/MacOSX-10.6-x86_64/Release/include/actIPadding.h delete mode 100644 actlibrary/MacOSX-10.6-x86_64/Release/include/actIParam.h delete mode 100644 actlibrary/MacOSX-10.6-x86_64/Release/include/actIRSAKey.h delete mode 100644 actlibrary/MacOSX-10.6-x86_64/Release/include/actISCardOSBehavior.h delete mode 100644 actlibrary/MacOSX-10.6-x86_64/Release/include/actISecurityManager.h delete mode 100644 actlibrary/MacOSX-10.6-x86_64/Release/include/actIStreamCipher.h delete mode 100644 actlibrary/MacOSX-10.6-x86_64/Release/include/actISubsystem.h delete mode 100644 actlibrary/MacOSX-10.6-x86_64/Release/include/actISynchronize.h delete mode 100644 actlibrary/MacOSX-10.6-x86_64/Release/include/actITokenAuthOwner.h delete mode 100644 actlibrary/MacOSX-10.6-x86_64/Release/include/actITokenBlockCipher.h delete mode 100644 actlibrary/MacOSX-10.6-x86_64/Release/include/actITokenBlockCipherKey.h delete mode 100644 actlibrary/MacOSX-10.6-x86_64/Release/include/actITokenFile.h delete mode 100644 actlibrary/MacOSX-10.6-x86_64/Release/include/actITokenFileOwner.h delete mode 100644 actlibrary/MacOSX-10.6-x86_64/Release/include/actIX509CRL.h delete mode 100644 actlibrary/MacOSX-10.6-x86_64/Release/include/actJCAppletKit.h delete mode 100644 actlibrary/MacOSX-10.6-x86_64/Release/include/actJCSecureChannelReg.h delete mode 100644 actlibrary/MacOSX-10.6-x86_64/Release/include/actKeyKit.h delete mode 100644 actlibrary/MacOSX-10.6-x86_64/Release/include/actKeyReg.h delete mode 100644 actlibrary/MacOSX-10.6-x86_64/Release/include/actLogger.h delete mode 100644 actlibrary/MacOSX-10.6-x86_64/Release/include/actMode.h delete mode 100644 actlibrary/MacOSX-10.6-x86_64/Release/include/actMove.h delete mode 100644 actlibrary/MacOSX-10.6-x86_64/Release/include/actOID.h delete mode 100644 actlibrary/MacOSX-10.6-x86_64/Release/include/actPKCS15BehaviorKit.h delete mode 100644 actlibrary/MacOSX-10.6-x86_64/Release/include/actPaddingReg.h delete mode 100644 actlibrary/MacOSX-10.6-x86_64/Release/include/actProfileGeneratorReg.h delete mode 100644 actlibrary/MacOSX-10.6-x86_64/Release/include/actSCardLock.h delete mode 100644 actlibrary/MacOSX-10.6-x86_64/Release/include/actSCardOSReg.h delete mode 100644 actlibrary/MacOSX-10.6-x86_64/Release/include/actSCardUtil.h delete mode 100644 actlibrary/MacOSX-10.6-x86_64/Release/include/actSlotManager.h delete mode 100644 actlibrary/MacOSX-10.6-x86_64/Release/include/actSlotMonitorKit.h delete mode 100644 actlibrary/MacOSX-10.6-x86_64/Release/include/actSlotMonitorReg.h delete mode 100644 actlibrary/MacOSX-10.6-x86_64/Release/include/actStreamCipherReg.h delete mode 100644 actlibrary/MacOSX-10.6-x86_64/Release/include/actSubsystemKit.h delete mode 100644 actlibrary/MacOSX-10.6-x86_64/Release/include/actTokenAuthProtocolKit.h delete mode 100644 actlibrary/MacOSX-10.6-x86_64/Release/include/actTokenAuthProtocolReg.h delete mode 100644 actlibrary/MacOSX-10.6-x86_64/Release/include/actTokenExtensionKit.h delete mode 100644 actlibrary/MacOSX-10.6-x86_64/Release/include/actTools.h delete mode 100644 actlibrary/MacOSX-10.6-x86_64/Release/include/actX509KeyReg.h delete mode 100644 actlibrary/MacOSX-10.6-x86_64/Release/include/actX509SignReg.h delete mode 100644 actlibrary/OpenSUSE-11-x86_64/Release/include/actAlgorithm.h delete mode 100644 actlibrary/OpenSUSE-11-x86_64/Release/include/actAllocator.h delete mode 100644 actlibrary/OpenSUSE-11-x86_64/Release/include/actBasics.h delete mode 100644 actlibrary/OpenSUSE-11-x86_64/Release/include/actBlob.h delete mode 100644 actlibrary/OpenSUSE-11-x86_64/Release/include/actBlockCipherKit.h delete mode 100644 actlibrary/OpenSUSE-11-x86_64/Release/include/actBlockCipherModeKit.h delete mode 100644 actlibrary/OpenSUSE-11-x86_64/Release/include/actBlockCipherModeReg.h delete mode 100644 actlibrary/OpenSUSE-11-x86_64/Release/include/actBlockCipherReg.h delete mode 100644 actlibrary/OpenSUSE-11-x86_64/Release/include/actCRL.h delete mode 100644 actlibrary/OpenSUSE-11-x86_64/Release/include/actCertificate.h delete mode 100644 actlibrary/OpenSUSE-11-x86_64/Release/include/actCertificateKit.h delete mode 100644 actlibrary/OpenSUSE-11-x86_64/Release/include/actCertificateReg.h delete mode 100644 actlibrary/OpenSUSE-11-x86_64/Release/include/actDate.h delete mode 100644 actlibrary/OpenSUSE-11-x86_64/Release/include/actDebug.h delete mode 100644 actlibrary/OpenSUSE-11-x86_64/Release/include/actDefaultRNG.h delete mode 100644 actlibrary/OpenSUSE-11-x86_64/Release/include/actDerivatorKit.h delete mode 100644 actlibrary/OpenSUSE-11-x86_64/Release/include/actDerivatorReg.h delete mode 100644 actlibrary/OpenSUSE-11-x86_64/Release/include/actEMSAKit.h delete mode 100644 actlibrary/OpenSUSE-11-x86_64/Release/include/actEMSAReg.h delete mode 100644 actlibrary/OpenSUSE-11-x86_64/Release/include/actEnv.h delete mode 100644 actlibrary/OpenSUSE-11-x86_64/Release/include/actException.h delete mode 100644 actlibrary/OpenSUSE-11-x86_64/Release/include/actFactoryReg.h delete mode 100644 actlibrary/OpenSUSE-11-x86_64/Release/include/actHandle.h delete mode 100644 actlibrary/OpenSUSE-11-x86_64/Release/include/actHashKit.h delete mode 100644 actlibrary/OpenSUSE-11-x86_64/Release/include/actHashReg.h delete mode 100644 actlibrary/OpenSUSE-11-x86_64/Release/include/actIAccessCondition.h delete mode 100644 actlibrary/OpenSUSE-11-x86_64/Release/include/actIAgreementKey.h delete mode 100644 actlibrary/OpenSUSE-11-x86_64/Release/include/actIAlgorithm.h delete mode 100644 actlibrary/OpenSUSE-11-x86_64/Release/include/actIBlockCipher.h delete mode 100644 actlibrary/OpenSUSE-11-x86_64/Release/include/actIBlockCipherKey.h delete mode 100644 actlibrary/OpenSUSE-11-x86_64/Release/include/actIBlockCipherMode.h delete mode 100644 actlibrary/OpenSUSE-11-x86_64/Release/include/actICBCMACKey.h delete mode 100644 actlibrary/OpenSUSE-11-x86_64/Release/include/actICRL.h delete mode 100644 actlibrary/OpenSUSE-11-x86_64/Release/include/actICertificate.h delete mode 100644 actlibrary/OpenSUSE-11-x86_64/Release/include/actIDerivator.h delete mode 100644 actlibrary/OpenSUSE-11-x86_64/Release/include/actIDerivatorWithHash.h delete mode 100644 actlibrary/OpenSUSE-11-x86_64/Release/include/actIEMSAAlg.h delete mode 100644 actlibrary/OpenSUSE-11-x86_64/Release/include/actIEMSAWithHashAlg.h delete mode 100644 actlibrary/OpenSUSE-11-x86_64/Release/include/actIEventHandler.h delete mode 100644 actlibrary/OpenSUSE-11-x86_64/Release/include/actIEventMonitoring.h delete mode 100644 actlibrary/OpenSUSE-11-x86_64/Release/include/actIHashAlg.h delete mode 100644 actlibrary/OpenSUSE-11-x86_64/Release/include/actIHashMACKey.h delete mode 100644 actlibrary/OpenSUSE-11-x86_64/Release/include/actIIESKey.h delete mode 100644 actlibrary/OpenSUSE-11-x86_64/Release/include/actIKey.h delete mode 100644 actlibrary/OpenSUSE-11-x86_64/Release/include/actIKeyDerivation.h delete mode 100644 actlibrary/OpenSUSE-11-x86_64/Release/include/actIKeyFactory.h delete mode 100644 actlibrary/OpenSUSE-11-x86_64/Release/include/actIMACKey.h delete mode 100644 actlibrary/OpenSUSE-11-x86_64/Release/include/actIPKCS15Behavior.h delete mode 100644 actlibrary/OpenSUSE-11-x86_64/Release/include/actIPadding.h delete mode 100644 actlibrary/OpenSUSE-11-x86_64/Release/include/actIParam.h delete mode 100644 actlibrary/OpenSUSE-11-x86_64/Release/include/actIRNGAlg.h delete mode 100644 actlibrary/OpenSUSE-11-x86_64/Release/include/actIRSAKey.h delete mode 100644 actlibrary/OpenSUSE-11-x86_64/Release/include/actIRefCounted.h delete mode 100644 actlibrary/OpenSUSE-11-x86_64/Release/include/actISCardAccess.h delete mode 100644 actlibrary/OpenSUSE-11-x86_64/Release/include/actISCardOS.h delete mode 100644 actlibrary/OpenSUSE-11-x86_64/Release/include/actISCardOSBehavior.h delete mode 100644 actlibrary/OpenSUSE-11-x86_64/Release/include/actISecurityManager.h delete mode 100644 actlibrary/OpenSUSE-11-x86_64/Release/include/actISignatureKey.h delete mode 100644 actlibrary/OpenSUSE-11-x86_64/Release/include/actISlot.h delete mode 100644 actlibrary/OpenSUSE-11-x86_64/Release/include/actISlotMonitor.h delete mode 100644 actlibrary/OpenSUSE-11-x86_64/Release/include/actIStreamCipher.h delete mode 100644 actlibrary/OpenSUSE-11-x86_64/Release/include/actIStreamCipherKey.h delete mode 100644 actlibrary/OpenSUSE-11-x86_64/Release/include/actISubsystem.h delete mode 100644 actlibrary/OpenSUSE-11-x86_64/Release/include/actISubsystemConfig.h delete mode 100644 actlibrary/OpenSUSE-11-x86_64/Release/include/actISynchronize.h delete mode 100644 actlibrary/OpenSUSE-11-x86_64/Release/include/actIToken.h delete mode 100644 actlibrary/OpenSUSE-11-x86_64/Release/include/actITokenAuth.h delete mode 100644 actlibrary/OpenSUSE-11-x86_64/Release/include/actITokenAuthOwner.h delete mode 100644 actlibrary/OpenSUSE-11-x86_64/Release/include/actITokenBlockCipher.h delete mode 100644 actlibrary/OpenSUSE-11-x86_64/Release/include/actITokenBlockCipherKey.h delete mode 100644 actlibrary/OpenSUSE-11-x86_64/Release/include/actITokenConfig.h delete mode 100644 actlibrary/OpenSUSE-11-x86_64/Release/include/actITokenExtension.h delete mode 100644 actlibrary/OpenSUSE-11-x86_64/Release/include/actITokenFile.h delete mode 100644 actlibrary/OpenSUSE-11-x86_64/Release/include/actITokenFileCache.h delete mode 100644 actlibrary/OpenSUSE-11-x86_64/Release/include/actITokenFileOwner.h delete mode 100644 actlibrary/OpenSUSE-11-x86_64/Release/include/actITokenInitializer.h delete mode 100644 actlibrary/OpenSUSE-11-x86_64/Release/include/actITokenKey.h delete mode 100644 actlibrary/OpenSUSE-11-x86_64/Release/include/actITokenPIN.h delete mode 100644 actlibrary/OpenSUSE-11-x86_64/Release/include/actIX509CRL.h delete mode 100644 actlibrary/OpenSUSE-11-x86_64/Release/include/actIX509Certificate.h delete mode 100644 actlibrary/OpenSUSE-11-x86_64/Release/include/actInit.h delete mode 100644 actlibrary/OpenSUSE-11-x86_64/Release/include/actJCAppletKit.h delete mode 100644 actlibrary/OpenSUSE-11-x86_64/Release/include/actJCAppletReg.h delete mode 100644 actlibrary/OpenSUSE-11-x86_64/Release/include/actJCSecureChannelReg.h delete mode 100644 actlibrary/OpenSUSE-11-x86_64/Release/include/actKey.h delete mode 100644 actlibrary/OpenSUSE-11-x86_64/Release/include/actKeyKit.h delete mode 100644 actlibrary/OpenSUSE-11-x86_64/Release/include/actKeyReg.h delete mode 100644 actlibrary/OpenSUSE-11-x86_64/Release/include/actLogger.h delete mode 100644 actlibrary/OpenSUSE-11-x86_64/Release/include/actMode.h delete mode 100644 actlibrary/OpenSUSE-11-x86_64/Release/include/actMove.h delete mode 100644 actlibrary/OpenSUSE-11-x86_64/Release/include/actOID.h delete mode 100644 actlibrary/OpenSUSE-11-x86_64/Release/include/actPKCS15BehaviorKit.h delete mode 100644 actlibrary/OpenSUSE-11-x86_64/Release/include/actPKCS15BehaviorReg.h delete mode 100644 actlibrary/OpenSUSE-11-x86_64/Release/include/actPaddingKit.h delete mode 100644 actlibrary/OpenSUSE-11-x86_64/Release/include/actPaddingReg.h delete mode 100644 actlibrary/OpenSUSE-11-x86_64/Release/include/actProfileGeneratorKit.h delete mode 100644 actlibrary/OpenSUSE-11-x86_64/Release/include/actProfileGeneratorReg.h delete mode 100644 actlibrary/OpenSUSE-11-x86_64/Release/include/actRNGKit.h delete mode 100644 actlibrary/OpenSUSE-11-x86_64/Release/include/actSCardLock.h delete mode 100644 actlibrary/OpenSUSE-11-x86_64/Release/include/actSCardOSKit.h delete mode 100644 actlibrary/OpenSUSE-11-x86_64/Release/include/actSCardOSReg.h delete mode 100644 actlibrary/OpenSUSE-11-x86_64/Release/include/actSCardTokenKit.h delete mode 100644 actlibrary/OpenSUSE-11-x86_64/Release/include/actSCardTokenReg.h delete mode 100644 actlibrary/OpenSUSE-11-x86_64/Release/include/actSCardUtil.h delete mode 100644 actlibrary/OpenSUSE-11-x86_64/Release/include/actSlotManager.h delete mode 100644 actlibrary/OpenSUSE-11-x86_64/Release/include/actSlotMonitorKit.h delete mode 100644 actlibrary/OpenSUSE-11-x86_64/Release/include/actSlotMonitorReg.h delete mode 100644 actlibrary/OpenSUSE-11-x86_64/Release/include/actState.h delete mode 100644 actlibrary/OpenSUSE-11-x86_64/Release/include/actStreamCipherKit.h delete mode 100644 actlibrary/OpenSUSE-11-x86_64/Release/include/actStreamCipherReg.h delete mode 100644 actlibrary/OpenSUSE-11-x86_64/Release/include/actSubsystemKit.h delete mode 100644 actlibrary/OpenSUSE-11-x86_64/Release/include/actSubsystemReg.h delete mode 100644 actlibrary/OpenSUSE-11-x86_64/Release/include/actTokenAuthProtocolKit.h delete mode 100644 actlibrary/OpenSUSE-11-x86_64/Release/include/actTokenAuthProtocolReg.h delete mode 100644 actlibrary/OpenSUSE-11-x86_64/Release/include/actTokenBase.h delete mode 100644 actlibrary/OpenSUSE-11-x86_64/Release/include/actTokenConfig.h delete mode 100644 actlibrary/OpenSUSE-11-x86_64/Release/include/actTokenExtensionKit.h delete mode 100644 actlibrary/OpenSUSE-11-x86_64/Release/include/actTokenExtensionReg.h delete mode 100644 actlibrary/OpenSUSE-11-x86_64/Release/include/actTools.h delete mode 100644 actlibrary/OpenSUSE-11-x86_64/Release/include/actToolsECC.h delete mode 100644 actlibrary/OpenSUSE-11-x86_64/Release/include/actToolsRSA.h delete mode 100644 actlibrary/OpenSUSE-11-x86_64/Release/include/actTypeTags.h delete mode 100644 actlibrary/OpenSUSE-11-x86_64/Release/include/actX509Extension.h delete mode 100644 actlibrary/OpenSUSE-11-x86_64/Release/include/actX509KeyReg.h delete mode 100644 actlibrary/OpenSUSE-11-x86_64/Release/include/actX509Kit.h delete mode 100644 actlibrary/OpenSUSE-11-x86_64/Release/include/actX509SignHashReg.h delete mode 100644 actlibrary/OpenSUSE-11-x86_64/Release/include/actX509SignReg.h delete mode 100644 actlibrary/SLES-10-i686/Release/include/actAlgorithm.h delete mode 100644 actlibrary/SLES-10-i686/Release/include/actAllocator.h delete mode 100644 actlibrary/SLES-10-i686/Release/include/actBasics.h delete mode 100644 actlibrary/SLES-10-i686/Release/include/actBlob.h delete mode 100644 actlibrary/SLES-10-i686/Release/include/actBlockCipherKit.h delete mode 100644 actlibrary/SLES-10-i686/Release/include/actBlockCipherModeKit.h delete mode 100644 actlibrary/SLES-10-i686/Release/include/actBlockCipherModeReg.h delete mode 100644 actlibrary/SLES-10-i686/Release/include/actBlockCipherReg.h delete mode 100644 actlibrary/SLES-10-i686/Release/include/actCRL.h delete mode 100644 actlibrary/SLES-10-i686/Release/include/actCertificate.h delete mode 100644 actlibrary/SLES-10-i686/Release/include/actCertificateKit.h delete mode 100644 actlibrary/SLES-10-i686/Release/include/actCertificateReg.h delete mode 100644 actlibrary/SLES-10-i686/Release/include/actDate.h delete mode 100644 actlibrary/SLES-10-i686/Release/include/actDebug.h delete mode 100644 actlibrary/SLES-10-i686/Release/include/actDefaultRNG.h delete mode 100644 actlibrary/SLES-10-i686/Release/include/actDerivatorKit.h delete mode 100644 actlibrary/SLES-10-i686/Release/include/actDerivatorReg.h delete mode 100644 actlibrary/SLES-10-i686/Release/include/actEMSAKit.h delete mode 100644 actlibrary/SLES-10-i686/Release/include/actEMSAReg.h delete mode 100644 actlibrary/SLES-10-i686/Release/include/actEnv.h delete mode 100644 actlibrary/SLES-10-i686/Release/include/actException.h delete mode 100644 actlibrary/SLES-10-i686/Release/include/actFactoryReg.h delete mode 100644 actlibrary/SLES-10-i686/Release/include/actHandle.h delete mode 100644 actlibrary/SLES-10-i686/Release/include/actHashKit.h delete mode 100644 actlibrary/SLES-10-i686/Release/include/actHashReg.h delete mode 100644 actlibrary/SLES-10-i686/Release/include/actIAccessCondition.h delete mode 100644 actlibrary/SLES-10-i686/Release/include/actIAgreementKey.h delete mode 100644 actlibrary/SLES-10-i686/Release/include/actIAlgorithm.h delete mode 100644 actlibrary/SLES-10-i686/Release/include/actIBlockCipher.h delete mode 100644 actlibrary/SLES-10-i686/Release/include/actIBlockCipherKey.h delete mode 100644 actlibrary/SLES-10-i686/Release/include/actIBlockCipherMode.h delete mode 100644 actlibrary/SLES-10-i686/Release/include/actICBCMACKey.h delete mode 100644 actlibrary/SLES-10-i686/Release/include/actICRL.h delete mode 100644 actlibrary/SLES-10-i686/Release/include/actICertificate.h delete mode 100644 actlibrary/SLES-10-i686/Release/include/actIDerivator.h delete mode 100644 actlibrary/SLES-10-i686/Release/include/actIDerivatorWithHash.h delete mode 100644 actlibrary/SLES-10-i686/Release/include/actIEMSAAlg.h delete mode 100644 actlibrary/SLES-10-i686/Release/include/actIEMSAWithHashAlg.h delete mode 100644 actlibrary/SLES-10-i686/Release/include/actIEventHandler.h delete mode 100644 actlibrary/SLES-10-i686/Release/include/actIEventMonitoring.h delete mode 100644 actlibrary/SLES-10-i686/Release/include/actIHashAlg.h delete mode 100644 actlibrary/SLES-10-i686/Release/include/actIHashMACKey.h delete mode 100644 actlibrary/SLES-10-i686/Release/include/actIIESKey.h delete mode 100644 actlibrary/SLES-10-i686/Release/include/actIKey.h delete mode 100644 actlibrary/SLES-10-i686/Release/include/actIKeyDerivation.h delete mode 100644 actlibrary/SLES-10-i686/Release/include/actIKeyFactory.h delete mode 100644 actlibrary/SLES-10-i686/Release/include/actIMACKey.h delete mode 100644 actlibrary/SLES-10-i686/Release/include/actIPKCS15Behavior.h delete mode 100644 actlibrary/SLES-10-i686/Release/include/actIPadding.h delete mode 100644 actlibrary/SLES-10-i686/Release/include/actIParam.h delete mode 100644 actlibrary/SLES-10-i686/Release/include/actIRNGAlg.h delete mode 100644 actlibrary/SLES-10-i686/Release/include/actIRSAKey.h delete mode 100644 actlibrary/SLES-10-i686/Release/include/actIRefCounted.h delete mode 100644 actlibrary/SLES-10-i686/Release/include/actISCardAccess.h delete mode 100644 actlibrary/SLES-10-i686/Release/include/actISCardOS.h delete mode 100644 actlibrary/SLES-10-i686/Release/include/actISCardOSBehavior.h delete mode 100644 actlibrary/SLES-10-i686/Release/include/actISecurityManager.h delete mode 100644 actlibrary/SLES-10-i686/Release/include/actISignatureKey.h delete mode 100644 actlibrary/SLES-10-i686/Release/include/actISlot.h delete mode 100644 actlibrary/SLES-10-i686/Release/include/actISlotMonitor.h delete mode 100644 actlibrary/SLES-10-i686/Release/include/actIStreamCipher.h delete mode 100644 actlibrary/SLES-10-i686/Release/include/actIStreamCipherKey.h delete mode 100644 actlibrary/SLES-10-i686/Release/include/actISubsystem.h delete mode 100644 actlibrary/SLES-10-i686/Release/include/actISubsystemConfig.h delete mode 100644 actlibrary/SLES-10-i686/Release/include/actISynchronize.h delete mode 100644 actlibrary/SLES-10-i686/Release/include/actIToken.h delete mode 100644 actlibrary/SLES-10-i686/Release/include/actITokenAuth.h delete mode 100644 actlibrary/SLES-10-i686/Release/include/actITokenAuthOwner.h delete mode 100644 actlibrary/SLES-10-i686/Release/include/actITokenBlockCipher.h delete mode 100644 actlibrary/SLES-10-i686/Release/include/actITokenBlockCipherKey.h delete mode 100644 actlibrary/SLES-10-i686/Release/include/actITokenConfig.h delete mode 100644 actlibrary/SLES-10-i686/Release/include/actITokenExtension.h delete mode 100644 actlibrary/SLES-10-i686/Release/include/actITokenFile.h delete mode 100644 actlibrary/SLES-10-i686/Release/include/actITokenFileCache.h delete mode 100644 actlibrary/SLES-10-i686/Release/include/actITokenFileOwner.h delete mode 100644 actlibrary/SLES-10-i686/Release/include/actITokenInitializer.h delete mode 100644 actlibrary/SLES-10-i686/Release/include/actITokenKey.h delete mode 100644 actlibrary/SLES-10-i686/Release/include/actITokenPIN.h delete mode 100644 actlibrary/SLES-10-i686/Release/include/actIX509CRL.h delete mode 100644 actlibrary/SLES-10-i686/Release/include/actIX509Certificate.h delete mode 100644 actlibrary/SLES-10-i686/Release/include/actInit.h delete mode 100644 actlibrary/SLES-10-i686/Release/include/actJCAppletKit.h delete mode 100644 actlibrary/SLES-10-i686/Release/include/actJCAppletReg.h delete mode 100644 actlibrary/SLES-10-i686/Release/include/actJCSecureChannelReg.h delete mode 100644 actlibrary/SLES-10-i686/Release/include/actKey.h delete mode 100644 actlibrary/SLES-10-i686/Release/include/actKeyKit.h delete mode 100644 actlibrary/SLES-10-i686/Release/include/actKeyReg.h delete mode 100644 actlibrary/SLES-10-i686/Release/include/actLogger.h delete mode 100644 actlibrary/SLES-10-i686/Release/include/actMode.h delete mode 100644 actlibrary/SLES-10-i686/Release/include/actMove.h delete mode 100644 actlibrary/SLES-10-i686/Release/include/actOID.h delete mode 100644 actlibrary/SLES-10-i686/Release/include/actPKCS15BehaviorKit.h delete mode 100644 actlibrary/SLES-10-i686/Release/include/actPKCS15BehaviorReg.h delete mode 100644 actlibrary/SLES-10-i686/Release/include/actPaddingKit.h delete mode 100644 actlibrary/SLES-10-i686/Release/include/actPaddingReg.h delete mode 100644 actlibrary/SLES-10-i686/Release/include/actProfileGeneratorKit.h delete mode 100644 actlibrary/SLES-10-i686/Release/include/actProfileGeneratorReg.h delete mode 100644 actlibrary/SLES-10-i686/Release/include/actRNGKit.h delete mode 100644 actlibrary/SLES-10-i686/Release/include/actSCardLock.h delete mode 100644 actlibrary/SLES-10-i686/Release/include/actSCardOSKit.h delete mode 100644 actlibrary/SLES-10-i686/Release/include/actSCardOSReg.h delete mode 100644 actlibrary/SLES-10-i686/Release/include/actSCardTokenKit.h delete mode 100644 actlibrary/SLES-10-i686/Release/include/actSCardTokenReg.h delete mode 100644 actlibrary/SLES-10-i686/Release/include/actSCardUtil.h delete mode 100644 actlibrary/SLES-10-i686/Release/include/actSlotManager.h delete mode 100644 actlibrary/SLES-10-i686/Release/include/actSlotMonitorKit.h delete mode 100644 actlibrary/SLES-10-i686/Release/include/actSlotMonitorReg.h delete mode 100644 actlibrary/SLES-10-i686/Release/include/actState.h delete mode 100644 actlibrary/SLES-10-i686/Release/include/actStreamCipherKit.h delete mode 100644 actlibrary/SLES-10-i686/Release/include/actStreamCipherReg.h delete mode 100644 actlibrary/SLES-10-i686/Release/include/actSubsystemKit.h delete mode 100644 actlibrary/SLES-10-i686/Release/include/actSubsystemReg.h delete mode 100644 actlibrary/SLES-10-i686/Release/include/actTokenAuthProtocolKit.h delete mode 100644 actlibrary/SLES-10-i686/Release/include/actTokenAuthProtocolReg.h delete mode 100644 actlibrary/SLES-10-i686/Release/include/actTokenBase.h delete mode 100644 actlibrary/SLES-10-i686/Release/include/actTokenConfig.h delete mode 100644 actlibrary/SLES-10-i686/Release/include/actTokenExtensionKit.h delete mode 100644 actlibrary/SLES-10-i686/Release/include/actTokenExtensionReg.h delete mode 100644 actlibrary/SLES-10-i686/Release/include/actTools.h delete mode 100644 actlibrary/SLES-10-i686/Release/include/actToolsECC.h delete mode 100644 actlibrary/SLES-10-i686/Release/include/actToolsRSA.h delete mode 100644 actlibrary/SLES-10-i686/Release/include/actTypeTags.h delete mode 100644 actlibrary/SLES-10-i686/Release/include/actX509Extension.h delete mode 100644 actlibrary/SLES-10-i686/Release/include/actX509KeyReg.h delete mode 100644 actlibrary/SLES-10-i686/Release/include/actX509Kit.h delete mode 100644 actlibrary/SLES-10-i686/Release/include/actX509SignHashReg.h delete mode 100644 actlibrary/SLES-10-i686/Release/include/actX509SignReg.h delete mode 100644 actlibrary/SLES-11-i686/Release/include/actAlgorithm.h delete mode 100644 actlibrary/SLES-11-i686/Release/include/actAllocator.h delete mode 100644 actlibrary/SLES-11-i686/Release/include/actBasics.h delete mode 100644 actlibrary/SLES-11-i686/Release/include/actBlob.h delete mode 100644 actlibrary/SLES-11-i686/Release/include/actBlockCipherKit.h delete mode 100644 actlibrary/SLES-11-i686/Release/include/actBlockCipherModeKit.h delete mode 100644 actlibrary/SLES-11-i686/Release/include/actBlockCipherModeReg.h delete mode 100644 actlibrary/SLES-11-i686/Release/include/actBlockCipherReg.h delete mode 100644 actlibrary/SLES-11-i686/Release/include/actCRL.h delete mode 100644 actlibrary/SLES-11-i686/Release/include/actCertificate.h delete mode 100644 actlibrary/SLES-11-i686/Release/include/actCertificateKit.h delete mode 100644 actlibrary/SLES-11-i686/Release/include/actCertificateReg.h delete mode 100644 actlibrary/SLES-11-i686/Release/include/actDate.h delete mode 100644 actlibrary/SLES-11-i686/Release/include/actDebug.h delete mode 100644 actlibrary/SLES-11-i686/Release/include/actDefaultRNG.h delete mode 100644 actlibrary/SLES-11-i686/Release/include/actDerivatorKit.h delete mode 100644 actlibrary/SLES-11-i686/Release/include/actDerivatorReg.h delete mode 100644 actlibrary/SLES-11-i686/Release/include/actEMSAKit.h delete mode 100644 actlibrary/SLES-11-i686/Release/include/actEMSAReg.h delete mode 100644 actlibrary/SLES-11-i686/Release/include/actEnv.h delete mode 100644 actlibrary/SLES-11-i686/Release/include/actException.h delete mode 100644 actlibrary/SLES-11-i686/Release/include/actFactoryReg.h delete mode 100644 actlibrary/SLES-11-i686/Release/include/actHandle.h delete mode 100644 actlibrary/SLES-11-i686/Release/include/actHashKit.h delete mode 100644 actlibrary/SLES-11-i686/Release/include/actHashReg.h delete mode 100644 actlibrary/SLES-11-i686/Release/include/actIAccessCondition.h delete mode 100644 actlibrary/SLES-11-i686/Release/include/actIAgreementKey.h delete mode 100644 actlibrary/SLES-11-i686/Release/include/actIAlgorithm.h delete mode 100644 actlibrary/SLES-11-i686/Release/include/actIBlockCipher.h delete mode 100644 actlibrary/SLES-11-i686/Release/include/actIBlockCipherKey.h delete mode 100644 actlibrary/SLES-11-i686/Release/include/actIBlockCipherMode.h delete mode 100644 actlibrary/SLES-11-i686/Release/include/actICBCMACKey.h delete mode 100644 actlibrary/SLES-11-i686/Release/include/actICRL.h delete mode 100644 actlibrary/SLES-11-i686/Release/include/actICertificate.h delete mode 100644 actlibrary/SLES-11-i686/Release/include/actIDerivator.h delete mode 100644 actlibrary/SLES-11-i686/Release/include/actIDerivatorWithHash.h delete mode 100644 actlibrary/SLES-11-i686/Release/include/actIEMSAAlg.h delete mode 100644 actlibrary/SLES-11-i686/Release/include/actIEMSAWithHashAlg.h delete mode 100644 actlibrary/SLES-11-i686/Release/include/actIEventHandler.h delete mode 100644 actlibrary/SLES-11-i686/Release/include/actIEventMonitoring.h delete mode 100644 actlibrary/SLES-11-i686/Release/include/actIHashAlg.h delete mode 100644 actlibrary/SLES-11-i686/Release/include/actIHashMACKey.h delete mode 100644 actlibrary/SLES-11-i686/Release/include/actIIESKey.h delete mode 100644 actlibrary/SLES-11-i686/Release/include/actIKey.h delete mode 100644 actlibrary/SLES-11-i686/Release/include/actIKeyDerivation.h delete mode 100644 actlibrary/SLES-11-i686/Release/include/actIKeyFactory.h delete mode 100644 actlibrary/SLES-11-i686/Release/include/actIMACKey.h delete mode 100644 actlibrary/SLES-11-i686/Release/include/actIPKCS15Behavior.h delete mode 100644 actlibrary/SLES-11-i686/Release/include/actIPadding.h delete mode 100644 actlibrary/SLES-11-i686/Release/include/actIParam.h delete mode 100644 actlibrary/SLES-11-i686/Release/include/actIRNGAlg.h delete mode 100644 actlibrary/SLES-11-i686/Release/include/actIRSAKey.h delete mode 100644 actlibrary/SLES-11-i686/Release/include/actIRefCounted.h delete mode 100644 actlibrary/SLES-11-i686/Release/include/actISCardAccess.h delete mode 100644 actlibrary/SLES-11-i686/Release/include/actISCardOS.h delete mode 100644 actlibrary/SLES-11-i686/Release/include/actISCardOSBehavior.h delete mode 100644 actlibrary/SLES-11-i686/Release/include/actISecurityManager.h delete mode 100644 actlibrary/SLES-11-i686/Release/include/actISignatureKey.h delete mode 100644 actlibrary/SLES-11-i686/Release/include/actISlot.h delete mode 100644 actlibrary/SLES-11-i686/Release/include/actISlotMonitor.h delete mode 100644 actlibrary/SLES-11-i686/Release/include/actIStreamCipher.h delete mode 100644 actlibrary/SLES-11-i686/Release/include/actIStreamCipherKey.h delete mode 100644 actlibrary/SLES-11-i686/Release/include/actISubsystem.h delete mode 100644 actlibrary/SLES-11-i686/Release/include/actISubsystemConfig.h delete mode 100644 actlibrary/SLES-11-i686/Release/include/actISynchronize.h delete mode 100644 actlibrary/SLES-11-i686/Release/include/actIToken.h delete mode 100644 actlibrary/SLES-11-i686/Release/include/actITokenAuth.h delete mode 100644 actlibrary/SLES-11-i686/Release/include/actITokenAuthOwner.h delete mode 100644 actlibrary/SLES-11-i686/Release/include/actITokenBlockCipher.h delete mode 100644 actlibrary/SLES-11-i686/Release/include/actITokenBlockCipherKey.h delete mode 100644 actlibrary/SLES-11-i686/Release/include/actITokenConfig.h delete mode 100644 actlibrary/SLES-11-i686/Release/include/actITokenExtension.h delete mode 100644 actlibrary/SLES-11-i686/Release/include/actITokenFile.h delete mode 100644 actlibrary/SLES-11-i686/Release/include/actITokenFileCache.h delete mode 100644 actlibrary/SLES-11-i686/Release/include/actITokenFileOwner.h delete mode 100644 actlibrary/SLES-11-i686/Release/include/actITokenInitializer.h delete mode 100644 actlibrary/SLES-11-i686/Release/include/actITokenKey.h delete mode 100644 actlibrary/SLES-11-i686/Release/include/actITokenPIN.h delete mode 100644 actlibrary/SLES-11-i686/Release/include/actIX509CRL.h delete mode 100644 actlibrary/SLES-11-i686/Release/include/actIX509Certificate.h delete mode 100644 actlibrary/SLES-11-i686/Release/include/actInit.h delete mode 100644 actlibrary/SLES-11-i686/Release/include/actJCAppletKit.h delete mode 100644 actlibrary/SLES-11-i686/Release/include/actJCAppletReg.h delete mode 100644 actlibrary/SLES-11-i686/Release/include/actJCSecureChannelReg.h delete mode 100644 actlibrary/SLES-11-i686/Release/include/actKey.h delete mode 100644 actlibrary/SLES-11-i686/Release/include/actKeyKit.h delete mode 100644 actlibrary/SLES-11-i686/Release/include/actKeyReg.h delete mode 100644 actlibrary/SLES-11-i686/Release/include/actLogger.h delete mode 100644 actlibrary/SLES-11-i686/Release/include/actMode.h delete mode 100644 actlibrary/SLES-11-i686/Release/include/actMove.h delete mode 100644 actlibrary/SLES-11-i686/Release/include/actOID.h delete mode 100644 actlibrary/SLES-11-i686/Release/include/actPKCS15BehaviorKit.h delete mode 100644 actlibrary/SLES-11-i686/Release/include/actPKCS15BehaviorReg.h delete mode 100644 actlibrary/SLES-11-i686/Release/include/actPaddingKit.h delete mode 100644 actlibrary/SLES-11-i686/Release/include/actPaddingReg.h delete mode 100644 actlibrary/SLES-11-i686/Release/include/actProfileGeneratorKit.h delete mode 100644 actlibrary/SLES-11-i686/Release/include/actProfileGeneratorReg.h delete mode 100644 actlibrary/SLES-11-i686/Release/include/actRNGKit.h delete mode 100644 actlibrary/SLES-11-i686/Release/include/actSCardLock.h delete mode 100644 actlibrary/SLES-11-i686/Release/include/actSCardOSKit.h delete mode 100644 actlibrary/SLES-11-i686/Release/include/actSCardOSReg.h delete mode 100644 actlibrary/SLES-11-i686/Release/include/actSCardTokenKit.h delete mode 100644 actlibrary/SLES-11-i686/Release/include/actSCardTokenReg.h delete mode 100644 actlibrary/SLES-11-i686/Release/include/actSCardUtil.h delete mode 100644 actlibrary/SLES-11-i686/Release/include/actSlotManager.h delete mode 100644 actlibrary/SLES-11-i686/Release/include/actSlotMonitorKit.h delete mode 100644 actlibrary/SLES-11-i686/Release/include/actSlotMonitorReg.h delete mode 100644 actlibrary/SLES-11-i686/Release/include/actState.h delete mode 100644 actlibrary/SLES-11-i686/Release/include/actStreamCipherKit.h delete mode 100644 actlibrary/SLES-11-i686/Release/include/actStreamCipherReg.h delete mode 100644 actlibrary/SLES-11-i686/Release/include/actSubsystemKit.h delete mode 100644 actlibrary/SLES-11-i686/Release/include/actSubsystemReg.h delete mode 100644 actlibrary/SLES-11-i686/Release/include/actTokenAuthProtocolKit.h delete mode 100644 actlibrary/SLES-11-i686/Release/include/actTokenAuthProtocolReg.h delete mode 100644 actlibrary/SLES-11-i686/Release/include/actTokenBase.h delete mode 100644 actlibrary/SLES-11-i686/Release/include/actTokenConfig.h delete mode 100644 actlibrary/SLES-11-i686/Release/include/actTokenExtensionKit.h delete mode 100644 actlibrary/SLES-11-i686/Release/include/actTokenExtensionReg.h delete mode 100644 actlibrary/SLES-11-i686/Release/include/actTools.h delete mode 100644 actlibrary/SLES-11-i686/Release/include/actToolsECC.h delete mode 100644 actlibrary/SLES-11-i686/Release/include/actToolsRSA.h delete mode 100644 actlibrary/SLES-11-i686/Release/include/actTypeTags.h delete mode 100644 actlibrary/SLES-11-i686/Release/include/actX509Extension.h delete mode 100644 actlibrary/SLES-11-i686/Release/include/actX509KeyReg.h delete mode 100644 actlibrary/SLES-11-i686/Release/include/actX509Kit.h delete mode 100644 actlibrary/SLES-11-i686/Release/include/actX509SignHashReg.h delete mode 100644 actlibrary/SLES-11-i686/Release/include/actX509SignReg.h delete mode 100644 actlibrary/Ubuntu-9-i686/Release/include/actAlgorithm.h delete mode 100644 actlibrary/Ubuntu-9-i686/Release/include/actAllocator.h delete mode 100644 actlibrary/Ubuntu-9-i686/Release/include/actBasics.h delete mode 100644 actlibrary/Ubuntu-9-i686/Release/include/actBlob.h delete mode 100644 actlibrary/Ubuntu-9-i686/Release/include/actBlockCipherKit.h delete mode 100644 actlibrary/Ubuntu-9-i686/Release/include/actBlockCipherModeKit.h delete mode 100644 actlibrary/Ubuntu-9-i686/Release/include/actBlockCipherModeReg.h delete mode 100644 actlibrary/Ubuntu-9-i686/Release/include/actBlockCipherReg.h delete mode 100644 actlibrary/Ubuntu-9-i686/Release/include/actCRL.h delete mode 100644 actlibrary/Ubuntu-9-i686/Release/include/actCertificate.h delete mode 100644 actlibrary/Ubuntu-9-i686/Release/include/actCertificateKit.h delete mode 100644 actlibrary/Ubuntu-9-i686/Release/include/actCertificateReg.h delete mode 100644 actlibrary/Ubuntu-9-i686/Release/include/actDate.h delete mode 100644 actlibrary/Ubuntu-9-i686/Release/include/actDebug.h delete mode 100644 actlibrary/Ubuntu-9-i686/Release/include/actDefaultRNG.h delete mode 100644 actlibrary/Ubuntu-9-i686/Release/include/actDerivatorKit.h delete mode 100644 actlibrary/Ubuntu-9-i686/Release/include/actDerivatorReg.h delete mode 100644 actlibrary/Ubuntu-9-i686/Release/include/actEMSAKit.h delete mode 100644 actlibrary/Ubuntu-9-i686/Release/include/actEMSAReg.h delete mode 100644 actlibrary/Ubuntu-9-i686/Release/include/actEnv.h delete mode 100644 actlibrary/Ubuntu-9-i686/Release/include/actException.h delete mode 100644 actlibrary/Ubuntu-9-i686/Release/include/actFactoryReg.h delete mode 100644 actlibrary/Ubuntu-9-i686/Release/include/actHandle.h delete mode 100644 actlibrary/Ubuntu-9-i686/Release/include/actHashKit.h delete mode 100644 actlibrary/Ubuntu-9-i686/Release/include/actHashReg.h delete mode 100644 actlibrary/Ubuntu-9-i686/Release/include/actIAccessCondition.h delete mode 100644 actlibrary/Ubuntu-9-i686/Release/include/actIAgreementKey.h delete mode 100644 actlibrary/Ubuntu-9-i686/Release/include/actIAlgorithm.h delete mode 100644 actlibrary/Ubuntu-9-i686/Release/include/actIBlockCipher.h delete mode 100644 actlibrary/Ubuntu-9-i686/Release/include/actIBlockCipherKey.h delete mode 100644 actlibrary/Ubuntu-9-i686/Release/include/actIBlockCipherMode.h delete mode 100644 actlibrary/Ubuntu-9-i686/Release/include/actICBCMACKey.h delete mode 100644 actlibrary/Ubuntu-9-i686/Release/include/actICRL.h delete mode 100644 actlibrary/Ubuntu-9-i686/Release/include/actICertificate.h delete mode 100644 actlibrary/Ubuntu-9-i686/Release/include/actIDerivator.h delete mode 100644 actlibrary/Ubuntu-9-i686/Release/include/actIDerivatorWithHash.h delete mode 100644 actlibrary/Ubuntu-9-i686/Release/include/actIEMSAAlg.h delete mode 100644 actlibrary/Ubuntu-9-i686/Release/include/actIEMSAWithHashAlg.h delete mode 100644 actlibrary/Ubuntu-9-i686/Release/include/actIEventHandler.h delete mode 100644 actlibrary/Ubuntu-9-i686/Release/include/actIEventMonitoring.h delete mode 100644 actlibrary/Ubuntu-9-i686/Release/include/actIHashAlg.h delete mode 100644 actlibrary/Ubuntu-9-i686/Release/include/actIHashMACKey.h delete mode 100644 actlibrary/Ubuntu-9-i686/Release/include/actIIESKey.h delete mode 100644 actlibrary/Ubuntu-9-i686/Release/include/actIKey.h delete mode 100644 actlibrary/Ubuntu-9-i686/Release/include/actIKeyDerivation.h delete mode 100644 actlibrary/Ubuntu-9-i686/Release/include/actIKeyFactory.h delete mode 100644 actlibrary/Ubuntu-9-i686/Release/include/actIMACKey.h delete mode 100644 actlibrary/Ubuntu-9-i686/Release/include/actIPKCS15Behavior.h delete mode 100644 actlibrary/Ubuntu-9-i686/Release/include/actIPadding.h delete mode 100644 actlibrary/Ubuntu-9-i686/Release/include/actIParam.h delete mode 100644 actlibrary/Ubuntu-9-i686/Release/include/actIRNGAlg.h delete mode 100644 actlibrary/Ubuntu-9-i686/Release/include/actIRSAKey.h delete mode 100644 actlibrary/Ubuntu-9-i686/Release/include/actIRefCounted.h delete mode 100644 actlibrary/Ubuntu-9-i686/Release/include/actISCardAccess.h delete mode 100644 actlibrary/Ubuntu-9-i686/Release/include/actISCardOS.h delete mode 100644 actlibrary/Ubuntu-9-i686/Release/include/actISCardOSBehavior.h delete mode 100644 actlibrary/Ubuntu-9-i686/Release/include/actISecurityManager.h delete mode 100644 actlibrary/Ubuntu-9-i686/Release/include/actISignatureKey.h delete mode 100644 actlibrary/Ubuntu-9-i686/Release/include/actISlot.h delete mode 100644 actlibrary/Ubuntu-9-i686/Release/include/actISlotMonitor.h delete mode 100644 actlibrary/Ubuntu-9-i686/Release/include/actIStreamCipher.h delete mode 100644 actlibrary/Ubuntu-9-i686/Release/include/actIStreamCipherKey.h delete mode 100644 actlibrary/Ubuntu-9-i686/Release/include/actISubsystem.h delete mode 100644 actlibrary/Ubuntu-9-i686/Release/include/actISubsystemConfig.h delete mode 100644 actlibrary/Ubuntu-9-i686/Release/include/actISynchronize.h delete mode 100644 actlibrary/Ubuntu-9-i686/Release/include/actIToken.h delete mode 100644 actlibrary/Ubuntu-9-i686/Release/include/actITokenAuth.h delete mode 100644 actlibrary/Ubuntu-9-i686/Release/include/actITokenAuthOwner.h delete mode 100644 actlibrary/Ubuntu-9-i686/Release/include/actITokenBlockCipher.h delete mode 100644 actlibrary/Ubuntu-9-i686/Release/include/actITokenBlockCipherKey.h delete mode 100644 actlibrary/Ubuntu-9-i686/Release/include/actITokenConfig.h delete mode 100644 actlibrary/Ubuntu-9-i686/Release/include/actITokenExtension.h delete mode 100644 actlibrary/Ubuntu-9-i686/Release/include/actITokenFile.h delete mode 100644 actlibrary/Ubuntu-9-i686/Release/include/actITokenFileCache.h delete mode 100644 actlibrary/Ubuntu-9-i686/Release/include/actITokenFileOwner.h delete mode 100644 actlibrary/Ubuntu-9-i686/Release/include/actITokenInitializer.h delete mode 100644 actlibrary/Ubuntu-9-i686/Release/include/actITokenKey.h delete mode 100644 actlibrary/Ubuntu-9-i686/Release/include/actITokenPIN.h delete mode 100644 actlibrary/Ubuntu-9-i686/Release/include/actIX509CRL.h delete mode 100644 actlibrary/Ubuntu-9-i686/Release/include/actIX509Certificate.h delete mode 100644 actlibrary/Ubuntu-9-i686/Release/include/actInit.h delete mode 100644 actlibrary/Ubuntu-9-i686/Release/include/actJCAppletKit.h delete mode 100644 actlibrary/Ubuntu-9-i686/Release/include/actJCAppletReg.h delete mode 100644 actlibrary/Ubuntu-9-i686/Release/include/actJCSecureChannelReg.h delete mode 100644 actlibrary/Ubuntu-9-i686/Release/include/actKey.h delete mode 100644 actlibrary/Ubuntu-9-i686/Release/include/actKeyKit.h delete mode 100644 actlibrary/Ubuntu-9-i686/Release/include/actKeyReg.h delete mode 100644 actlibrary/Ubuntu-9-i686/Release/include/actLogger.h delete mode 100644 actlibrary/Ubuntu-9-i686/Release/include/actMode.h delete mode 100644 actlibrary/Ubuntu-9-i686/Release/include/actMove.h delete mode 100644 actlibrary/Ubuntu-9-i686/Release/include/actOID.h delete mode 100644 actlibrary/Ubuntu-9-i686/Release/include/actPKCS15BehaviorKit.h delete mode 100644 actlibrary/Ubuntu-9-i686/Release/include/actPKCS15BehaviorReg.h delete mode 100644 actlibrary/Ubuntu-9-i686/Release/include/actPaddingKit.h delete mode 100644 actlibrary/Ubuntu-9-i686/Release/include/actPaddingReg.h delete mode 100644 actlibrary/Ubuntu-9-i686/Release/include/actProfileGeneratorKit.h delete mode 100644 actlibrary/Ubuntu-9-i686/Release/include/actProfileGeneratorReg.h delete mode 100644 actlibrary/Ubuntu-9-i686/Release/include/actRNGKit.h delete mode 100644 actlibrary/Ubuntu-9-i686/Release/include/actSCardLock.h delete mode 100644 actlibrary/Ubuntu-9-i686/Release/include/actSCardOSKit.h delete mode 100644 actlibrary/Ubuntu-9-i686/Release/include/actSCardOSReg.h delete mode 100644 actlibrary/Ubuntu-9-i686/Release/include/actSCardTokenKit.h delete mode 100644 actlibrary/Ubuntu-9-i686/Release/include/actSCardTokenReg.h delete mode 100644 actlibrary/Ubuntu-9-i686/Release/include/actSCardUtil.h delete mode 100644 actlibrary/Ubuntu-9-i686/Release/include/actSlotManager.h delete mode 100644 actlibrary/Ubuntu-9-i686/Release/include/actSlotMonitorKit.h delete mode 100644 actlibrary/Ubuntu-9-i686/Release/include/actSlotMonitorReg.h delete mode 100644 actlibrary/Ubuntu-9-i686/Release/include/actState.h delete mode 100644 actlibrary/Ubuntu-9-i686/Release/include/actStreamCipherKit.h delete mode 100644 actlibrary/Ubuntu-9-i686/Release/include/actStreamCipherReg.h delete mode 100644 actlibrary/Ubuntu-9-i686/Release/include/actSubsystemKit.h delete mode 100644 actlibrary/Ubuntu-9-i686/Release/include/actSubsystemReg.h delete mode 100644 actlibrary/Ubuntu-9-i686/Release/include/actTokenAuthProtocolKit.h delete mode 100644 actlibrary/Ubuntu-9-i686/Release/include/actTokenAuthProtocolReg.h delete mode 100644 actlibrary/Ubuntu-9-i686/Release/include/actTokenBase.h delete mode 100644 actlibrary/Ubuntu-9-i686/Release/include/actTokenConfig.h delete mode 100644 actlibrary/Ubuntu-9-i686/Release/include/actTokenExtensionKit.h delete mode 100644 actlibrary/Ubuntu-9-i686/Release/include/actTokenExtensionReg.h delete mode 100644 actlibrary/Ubuntu-9-i686/Release/include/actTools.h delete mode 100644 actlibrary/Ubuntu-9-i686/Release/include/actToolsECC.h delete mode 100644 actlibrary/Ubuntu-9-i686/Release/include/actToolsRSA.h delete mode 100644 actlibrary/Ubuntu-9-i686/Release/include/actTypeTags.h delete mode 100644 actlibrary/Ubuntu-9-i686/Release/include/actX509Extension.h delete mode 100644 actlibrary/Ubuntu-9-i686/Release/include/actX509KeyReg.h delete mode 100644 actlibrary/Ubuntu-9-i686/Release/include/actX509Kit.h delete mode 100644 actlibrary/Ubuntu-9-i686/Release/include/actX509SignHashReg.h delete mode 100644 actlibrary/Ubuntu-9-i686/Release/include/actX509SignReg.h rename actlibrary/{MacOSX-10.4-ppc/Release => }/include/actAlgorithm.h (96%) rename actlibrary/{MacOSX-10.6-x86_64/Release => }/include/actAllocator.h (96%) rename actlibrary/{MacOSX-10.5-x86_64/Release => }/include/actBasics.h (95%) rename actlibrary/{MacOSX-10.6-x86_64/Release => }/include/actBlob.h (96%) rename actlibrary/{MacOSX-10.4-ppc/Release => }/include/actBlockCipherKit.h (96%) rename actlibrary/{MacOSX-10.6-x86_64/Release => }/include/actBlockCipherModeKit.h (96%) rename actlibrary/{MacOSX-10.5-x86_64/Release => }/include/actBlockCipherModeReg.h (96%) rename actlibrary/{MacOSX-10.4-ppc/Release => }/include/actBlockCipherReg.h (96%) rename actlibrary/{MacOSX-10.6-x86_64/Release => }/include/actCRL.h (95%) rename actlibrary/{MacOSX-10.4-ppc/Release => }/include/actCertificate.h (96%) rename actlibrary/{MacOSX-10.6-x86_64/Release => }/include/actCertificateKit.h (96%) rename actlibrary/{MacOSX-10.6-x86_64/Release => }/include/actCertificateReg.h (96%) rename actlibrary/{MacOSX-10.6-x86_64/Release => }/include/actDate.h (96%) rename actlibrary/{MacOSX-10.4-ppc/Release => }/include/actDebug.h (95%) rename actlibrary/{MacOSX-10.5-x86_64/Release => }/include/actDefaultRNG.h (96%) rename actlibrary/{MacOSX-10.4-ppc/Release => }/include/actDerivatorKit.h (96%) rename actlibrary/{MacOSX-10.6-x86_64/Release => }/include/actDerivatorReg.h (96%) rename actlibrary/{MacOSX-10.4-ppc/Release => }/include/actEMSAKit.h (96%) rename actlibrary/{MacOSX-10.6-x86_64/Release => }/include/actEMSAReg.h (96%) rename actlibrary/{MacOSX-10.4-ppc/Release => }/include/actEnv.h (95%) rename actlibrary/{MacOSX-10.4-ppc/Release => }/include/actException.h (97%) rename actlibrary/{MacOSX-10.6-x86_64/Release => }/include/actFactoryReg.h (96%) rename actlibrary/{MacOSX-10.5-x86_64/Release => }/include/actHandle.h (95%) rename actlibrary/{MacOSX-10.4-ppc/Release => }/include/actHashKit.h (96%) rename actlibrary/{MacOSX-10.5-x86_64/Release => }/include/actHashReg.h (96%) rename actlibrary/{MacOSX-10.6-x86_64/Release => }/include/actIAccessCondition.h (95%) rename actlibrary/{MacOSX-10.6-x86_64/Release => }/include/actIAgreementKey.h (96%) rename actlibrary/{MacOSX-10.4-ppc/Release => }/include/actIAlgorithm.h (96%) rename actlibrary/{MacOSX-10.4-ppc/Release => }/include/actIBlockCipher.h (96%) rename actlibrary/{MacOSX-10.6-x86_64/Release => }/include/actIBlockCipherKey.h (96%) rename actlibrary/{MacOSX-10.4-ppc/Release => }/include/actIBlockCipherMode.h (97%) rename actlibrary/{MacOSX-10.5-x86_64/Release => }/include/actICBCMACKey.h (96%) rename actlibrary/{MacOSX-10.4-ppc/Release => }/include/actICRL.h (96%) rename actlibrary/{MacOSX-10.4-ppc/Release => }/include/actICertificate.h (96%) rename actlibrary/{MacOSX-10.5-x86_64/Release => }/include/actIDerivator.h (96%) rename actlibrary/{MacOSX-10.4-ppc/Release => }/include/actIDerivatorWithHash.h (96%) rename actlibrary/{MacOSX-10.6-x86_64/Release => }/include/actIEMSAAlg.h (96%) rename actlibrary/{MacOSX-10.6-x86_64/Release => }/include/actIEMSAWithHashAlg.h (96%) rename actlibrary/{MacOSX-10.6-x86_64/Release => }/include/actIEventHandler.h (96%) rename actlibrary/{MacOSX-10.4-ppc/Release => }/include/actIEventMonitoring.h (96%) rename actlibrary/{MacOSX-10.5-x86_64/Release => }/include/actIHashAlg.h (96%) rename actlibrary/{MacOSX-10.4-ppc/Release => }/include/actIHashMACKey.h (96%) rename actlibrary/{MacOSX-10.4-ppc/Release => }/include/actIIESKey.h (96%) rename actlibrary/{MacOSX-10.6-x86_64/Release => }/include/actIKey.h (96%) rename actlibrary/{MacOSX-10.5-x86_64/Release => }/include/actIKeyDerivation.h (96%) rename actlibrary/{MacOSX-10.4-ppc/Release => }/include/actIKeyFactory.h (96%) rename actlibrary/{MacOSX-10.6-x86_64/Release => }/include/actIMACKey.h (96%) rename actlibrary/{MacOSX-10.5-x86_64/Release => }/include/actIPKCS15Behavior.h (97%) rename actlibrary/{MacOSX-10.4-ppc/Release => }/include/actIPadding.h (96%) rename actlibrary/{MacOSX-10.5-x86_64/Release => }/include/actIParam.h (96%) rename actlibrary/{MacOSX-10.6-x86_64/Release => }/include/actIRNGAlg.h (96%) rename actlibrary/{MacOSX-10.5-x86_64/Release => }/include/actIRSAKey.h (96%) rename actlibrary/{MacOSX-10.6-x86_64/Release => }/include/actIRefCounted.h (96%) rename actlibrary/{MacOSX-10.6-x86_64/Release => }/include/actISCardAccess.h (96%) rename actlibrary/{MacOSX-10.6-x86_64/Release => }/include/actISCardOS.h (97%) rename actlibrary/{MacOSX-10.4-ppc/Release => }/include/actISCardOSBehavior.h (97%) rename actlibrary/{MacOSX-10.5-x86_64/Release => }/include/actISecurityManager.h (96%) rename actlibrary/{MacOSX-10.6-x86_64/Release => }/include/actISignatureKey.h (96%) rename actlibrary/{MacOSX-10.6-x86_64/Release => }/include/actISlot.h (96%) rename actlibrary/{MacOSX-10.6-x86_64/Release => }/include/actISlotMonitor.h (96%) rename actlibrary/{MacOSX-10.5-x86_64/Release => }/include/actIStreamCipher.h (96%) rename actlibrary/{MacOSX-10.6-x86_64/Release => }/include/actIStreamCipherKey.h (96%) rename actlibrary/{MacOSX-10.4-ppc/Release => }/include/actISubsystem.h (96%) rename actlibrary/{MacOSX-10.6-x86_64/Release => }/include/actISubsystemConfig.h (96%) rename actlibrary/{MacOSX-10.4-ppc/Release => }/include/actISynchronize.h (96%) rename actlibrary/{MacOSX-10.6-x86_64/Release => }/include/actIToken.h (96%) rename actlibrary/{MacOSX-10.6-x86_64/Release => }/include/actITokenAuth.h (96%) rename actlibrary/{MacOSX-10.4-ppc/Release => }/include/actITokenAuthOwner.h (96%) rename actlibrary/{MacOSX-10.4-ppc/Release => }/include/actITokenBlockCipher.h (96%) rename actlibrary/{MacOSX-10.5-x86_64/Release => }/include/actITokenBlockCipherKey.h (96%) rename actlibrary/{MacOSX-10.6-x86_64/Release => }/include/actITokenConfig.h (96%) rename actlibrary/{MacOSX-10.6-x86_64/Release => }/include/actITokenExtension.h (96%) rename actlibrary/{MacOSX-10.4-ppc/Release => }/include/actITokenFile.h (96%) rename actlibrary/{MacOSX-10.6-x86_64/Release => }/include/actITokenFileCache.h (96%) rename actlibrary/{MacOSX-10.5-x86_64/Release => }/include/actITokenFileOwner.h (96%) rename actlibrary/{MacOSX-10.6-x86_64/Release => }/include/actITokenInitializer.h (96%) rename actlibrary/{MacOSX-10.6-x86_64/Release => }/include/actITokenKey.h (96%) rename actlibrary/{MacOSX-10.6-x86_64/Release => }/include/actITokenPIN.h (96%) rename actlibrary/{MacOSX-10.5-x86_64/Release => }/include/actIX509CRL.h (97%) rename actlibrary/{MacOSX-10.6-x86_64/Release => }/include/actIX509Certificate.h (97%) rename actlibrary/{MacOSX-10.6-x86_64/Release => }/include/actInit.h (97%) rename actlibrary/{MacOSX-10.4-ppc/Release => }/include/actJCAppletKit.h (96%) rename actlibrary/{MacOSX-10.6-x86_64/Release => }/include/actJCAppletReg.h (96%) rename actlibrary/{MacOSX-10.4-ppc/Release => }/include/actJCSecureChannelReg.h (95%) rename actlibrary/{MacOSX-10.6-x86_64/Release => }/include/actKey.h (96%) rename actlibrary/{MacOSX-10.4-ppc/Release => }/include/actKeyKit.h (95%) rename actlibrary/{MacOSX-10.4-ppc/Release => }/include/actKeyReg.h (96%) rename actlibrary/{MacOSX-10.5-x86_64/Release => }/include/actLogger.h (97%) rename actlibrary/{MacOSX-10.5-x86_64/Release => }/include/actMode.h (93%) rename actlibrary/{MacOSX-10.4-ppc/Release => }/include/actMove.h (96%) rename actlibrary/{MacOSX-10.4-ppc/Release => }/include/actOID.h (98%) rename actlibrary/{MacOSX-10.4-ppc/Release => }/include/actPKCS15BehaviorKit.h (97%) rename actlibrary/{MacOSX-10.6-x86_64/Release => }/include/actPKCS15BehaviorReg.h (96%) rename actlibrary/{MacOSX-10.6-x86_64/Release => }/include/actPaddingKit.h (96%) rename actlibrary/{MacOSX-10.5-x86_64/Release => }/include/actPaddingReg.h (96%) rename actlibrary/{MacOSX-10.6-x86_64/Release => }/include/actProfileGeneratorKit.h (96%) rename actlibrary/{MacOSX-10.4-ppc/Release => }/include/actProfileGeneratorReg.h (96%) rename actlibrary/{MacOSX-10.6-x86_64/Release => }/include/actRNGKit.h (96%) rename actlibrary/{MacOSX-10.4-ppc/Release => }/include/actSCardLock.h (95%) rename actlibrary/{MacOSX-10.6-x86_64/Release => }/include/actSCardOSKit.h (96%) rename actlibrary/{MacOSX-10.5-x86_64/Release => }/include/actSCardOSReg.h (96%) rename actlibrary/{MacOSX-10.6-x86_64/Release => }/include/actSCardTokenKit.h (96%) rename actlibrary/{MacOSX-10.6-x86_64/Release => }/include/actSCardTokenReg.h (96%) rename actlibrary/{MacOSX-10.5-x86_64/Release => }/include/actSCardUtil.h (96%) rename actlibrary/{MacOSX-10.5-x86_64/Release => }/include/actSlotManager.h (96%) rename actlibrary/{MacOSX-10.4-ppc/Release => }/include/actSlotMonitorKit.h (96%) rename actlibrary/{MacOSX-10.4-ppc/Release => }/include/actSlotMonitorReg.h (96%) rename actlibrary/{MacOSX-10.6-x86_64/Release => }/include/actState.h (96%) rename actlibrary/{MacOSX-10.6-x86_64/Release => }/include/actStreamCipherKit.h (96%) rename actlibrary/{MacOSX-10.5-x86_64/Release => }/include/actStreamCipherReg.h (96%) rename actlibrary/{MacOSX-10.4-ppc/Release => }/include/actSubsystemKit.h (96%) rename actlibrary/{MacOSX-10.6-x86_64/Release => }/include/actSubsystemReg.h (96%) rename actlibrary/{MacOSX-10.5-x86_64/Release => }/include/actTokenAuthProtocolKit.h (97%) rename actlibrary/{MacOSX-10.4-ppc/Release => }/include/actTokenAuthProtocolReg.h (96%) rename actlibrary/{MacOSX-10.6-x86_64/Release => }/include/actTokenBase.h (95%) rename actlibrary/{MacOSX-10.6-x86_64/Release => }/include/actTokenConfig.h (97%) rename actlibrary/{MacOSX-10.5-x86_64/Release => }/include/actTokenExtensionKit.h (97%) rename actlibrary/{MacOSX-10.6-x86_64/Release => }/include/actTokenExtensionReg.h (96%) rename actlibrary/{MacOSX-10.4-ppc/Release => }/include/actTools.h (97%) rename actlibrary/{MacOSX-10.6-x86_64/Release => }/include/actToolsECC.h (97%) rename actlibrary/{MacOSX-10.6-x86_64/Release => }/include/actToolsRSA.h (97%) rename actlibrary/{MacOSX-10.6-x86_64/Release => }/include/actTypeTags.h (96%) rename actlibrary/{MacOSX-10.6-x86_64/Release => }/include/actX509Extension.h (96%) rename actlibrary/{MacOSX-10.5-x86_64/Release => }/include/actX509KeyReg.h (96%) rename actlibrary/{MacOSX-10.6-x86_64/Release => }/include/actX509Kit.h (97%) rename actlibrary/{MacOSX-10.6-x86_64/Release => }/include/actX509SignHashReg.h (96%) rename actlibrary/{MacOSX-10.5-x86_64/Release => }/include/actX509SignReg.h (96%) delete mode 100644 actlibrary/mingw32-i586/Release/include/actAlgorithm.h delete mode 100644 actlibrary/mingw32-i586/Release/include/actAllocator.h delete mode 100644 actlibrary/mingw32-i586/Release/include/actBasics.h delete mode 100644 actlibrary/mingw32-i586/Release/include/actBlob.h delete mode 100644 actlibrary/mingw32-i586/Release/include/actBlockCipherKit.h delete mode 100644 actlibrary/mingw32-i586/Release/include/actBlockCipherModeKit.h delete mode 100644 actlibrary/mingw32-i586/Release/include/actBlockCipherModeReg.h delete mode 100644 actlibrary/mingw32-i586/Release/include/actBlockCipherReg.h delete mode 100644 actlibrary/mingw32-i586/Release/include/actCRL.h delete mode 100644 actlibrary/mingw32-i586/Release/include/actCertificate.h delete mode 100644 actlibrary/mingw32-i586/Release/include/actCertificateKit.h delete mode 100644 actlibrary/mingw32-i586/Release/include/actCertificateReg.h delete mode 100644 actlibrary/mingw32-i586/Release/include/actDate.h delete mode 100644 actlibrary/mingw32-i586/Release/include/actDebug.h delete mode 100644 actlibrary/mingw32-i586/Release/include/actDefaultRNG.h delete mode 100644 actlibrary/mingw32-i586/Release/include/actDerivatorKit.h delete mode 100644 actlibrary/mingw32-i586/Release/include/actDerivatorReg.h delete mode 100644 actlibrary/mingw32-i586/Release/include/actEMSAKit.h delete mode 100644 actlibrary/mingw32-i586/Release/include/actEMSAReg.h delete mode 100644 actlibrary/mingw32-i586/Release/include/actEnv.h delete mode 100644 actlibrary/mingw32-i586/Release/include/actException.h delete mode 100644 actlibrary/mingw32-i586/Release/include/actFactoryReg.h delete mode 100644 actlibrary/mingw32-i586/Release/include/actHandle.h delete mode 100644 actlibrary/mingw32-i586/Release/include/actHashKit.h delete mode 100644 actlibrary/mingw32-i586/Release/include/actHashReg.h delete mode 100644 actlibrary/mingw32-i586/Release/include/actIAccessCondition.h delete mode 100644 actlibrary/mingw32-i586/Release/include/actIAgreementKey.h delete mode 100644 actlibrary/mingw32-i586/Release/include/actIAlgorithm.h delete mode 100644 actlibrary/mingw32-i586/Release/include/actIBlockCipher.h delete mode 100644 actlibrary/mingw32-i586/Release/include/actIBlockCipherKey.h delete mode 100644 actlibrary/mingw32-i586/Release/include/actIBlockCipherMode.h delete mode 100644 actlibrary/mingw32-i586/Release/include/actICBCMACKey.h delete mode 100644 actlibrary/mingw32-i586/Release/include/actICRL.h delete mode 100644 actlibrary/mingw32-i586/Release/include/actICertificate.h delete mode 100644 actlibrary/mingw32-i586/Release/include/actIDerivator.h delete mode 100644 actlibrary/mingw32-i586/Release/include/actIDerivatorWithHash.h delete mode 100644 actlibrary/mingw32-i586/Release/include/actIEMSAAlg.h delete mode 100644 actlibrary/mingw32-i586/Release/include/actIEMSAWithHashAlg.h delete mode 100644 actlibrary/mingw32-i586/Release/include/actIEventHandler.h delete mode 100644 actlibrary/mingw32-i586/Release/include/actIEventMonitoring.h delete mode 100644 actlibrary/mingw32-i586/Release/include/actIHashAlg.h delete mode 100644 actlibrary/mingw32-i586/Release/include/actIHashMACKey.h delete mode 100644 actlibrary/mingw32-i586/Release/include/actIIESKey.h delete mode 100644 actlibrary/mingw32-i586/Release/include/actIKey.h delete mode 100644 actlibrary/mingw32-i586/Release/include/actIKeyDerivation.h delete mode 100644 actlibrary/mingw32-i586/Release/include/actIKeyFactory.h delete mode 100644 actlibrary/mingw32-i586/Release/include/actIMACKey.h delete mode 100644 actlibrary/mingw32-i586/Release/include/actIPKCS15Behavior.h delete mode 100644 actlibrary/mingw32-i586/Release/include/actIPadding.h delete mode 100644 actlibrary/mingw32-i586/Release/include/actIParam.h delete mode 100644 actlibrary/mingw32-i586/Release/include/actIRNGAlg.h delete mode 100644 actlibrary/mingw32-i586/Release/include/actIRSAKey.h delete mode 100644 actlibrary/mingw32-i586/Release/include/actIRefCounted.h delete mode 100644 actlibrary/mingw32-i586/Release/include/actISCardAccess.h delete mode 100644 actlibrary/mingw32-i586/Release/include/actISCardOS.h delete mode 100644 actlibrary/mingw32-i586/Release/include/actISCardOSBehavior.h delete mode 100644 actlibrary/mingw32-i586/Release/include/actISecurityManager.h delete mode 100644 actlibrary/mingw32-i586/Release/include/actISignatureKey.h delete mode 100644 actlibrary/mingw32-i586/Release/include/actISlot.h delete mode 100644 actlibrary/mingw32-i586/Release/include/actISlotMonitor.h delete mode 100644 actlibrary/mingw32-i586/Release/include/actIStreamCipher.h delete mode 100644 actlibrary/mingw32-i586/Release/include/actIStreamCipherKey.h delete mode 100644 actlibrary/mingw32-i586/Release/include/actISubsystem.h delete mode 100644 actlibrary/mingw32-i586/Release/include/actISubsystemConfig.h delete mode 100644 actlibrary/mingw32-i586/Release/include/actISynchronize.h delete mode 100644 actlibrary/mingw32-i586/Release/include/actIToken.h delete mode 100644 actlibrary/mingw32-i586/Release/include/actITokenAuth.h delete mode 100644 actlibrary/mingw32-i586/Release/include/actITokenAuthOwner.h delete mode 100644 actlibrary/mingw32-i586/Release/include/actITokenBlockCipher.h delete mode 100644 actlibrary/mingw32-i586/Release/include/actITokenBlockCipherKey.h delete mode 100644 actlibrary/mingw32-i586/Release/include/actITokenConfig.h delete mode 100644 actlibrary/mingw32-i586/Release/include/actITokenExtension.h delete mode 100644 actlibrary/mingw32-i586/Release/include/actITokenFile.h delete mode 100644 actlibrary/mingw32-i586/Release/include/actITokenFileCache.h delete mode 100644 actlibrary/mingw32-i586/Release/include/actITokenFileOwner.h delete mode 100644 actlibrary/mingw32-i586/Release/include/actITokenInitializer.h delete mode 100644 actlibrary/mingw32-i586/Release/include/actITokenKey.h delete mode 100644 actlibrary/mingw32-i586/Release/include/actITokenPIN.h delete mode 100644 actlibrary/mingw32-i586/Release/include/actIX509CRL.h delete mode 100644 actlibrary/mingw32-i586/Release/include/actIX509Certificate.h delete mode 100644 actlibrary/mingw32-i586/Release/include/actInit.h delete mode 100644 actlibrary/mingw32-i586/Release/include/actJCAppletKit.h delete mode 100644 actlibrary/mingw32-i586/Release/include/actJCAppletReg.h delete mode 100644 actlibrary/mingw32-i586/Release/include/actJCSecureChannelReg.h delete mode 100644 actlibrary/mingw32-i586/Release/include/actKey.h delete mode 100644 actlibrary/mingw32-i586/Release/include/actKeyKit.h delete mode 100644 actlibrary/mingw32-i586/Release/include/actKeyReg.h delete mode 100644 actlibrary/mingw32-i586/Release/include/actLogger.h delete mode 100644 actlibrary/mingw32-i586/Release/include/actMode.h delete mode 100644 actlibrary/mingw32-i586/Release/include/actMove.h delete mode 100644 actlibrary/mingw32-i586/Release/include/actOID.h delete mode 100644 actlibrary/mingw32-i586/Release/include/actPKCS15BehaviorKit.h delete mode 100644 actlibrary/mingw32-i586/Release/include/actPKCS15BehaviorReg.h delete mode 100644 actlibrary/mingw32-i586/Release/include/actPaddingKit.h delete mode 100644 actlibrary/mingw32-i586/Release/include/actPaddingReg.h delete mode 100644 actlibrary/mingw32-i586/Release/include/actProfileGeneratorKit.h delete mode 100644 actlibrary/mingw32-i586/Release/include/actProfileGeneratorReg.h delete mode 100644 actlibrary/mingw32-i586/Release/include/actRNGKit.h delete mode 100644 actlibrary/mingw32-i586/Release/include/actSCardLock.h delete mode 100644 actlibrary/mingw32-i586/Release/include/actSCardOSKit.h delete mode 100644 actlibrary/mingw32-i586/Release/include/actSCardOSReg.h delete mode 100644 actlibrary/mingw32-i586/Release/include/actSCardTokenKit.h delete mode 100644 actlibrary/mingw32-i586/Release/include/actSCardTokenReg.h delete mode 100644 actlibrary/mingw32-i586/Release/include/actSCardUtil.h delete mode 100644 actlibrary/mingw32-i586/Release/include/actSlotManager.h delete mode 100644 actlibrary/mingw32-i586/Release/include/actSlotMonitorKit.h delete mode 100644 actlibrary/mingw32-i586/Release/include/actSlotMonitorReg.h delete mode 100644 actlibrary/mingw32-i586/Release/include/actState.h delete mode 100644 actlibrary/mingw32-i586/Release/include/actStreamCipherKit.h delete mode 100644 actlibrary/mingw32-i586/Release/include/actStreamCipherReg.h delete mode 100644 actlibrary/mingw32-i586/Release/include/actSubsystemKit.h delete mode 100644 actlibrary/mingw32-i586/Release/include/actSubsystemReg.h delete mode 100644 actlibrary/mingw32-i586/Release/include/actTokenAuthProtocolKit.h delete mode 100644 actlibrary/mingw32-i586/Release/include/actTokenAuthProtocolReg.h delete mode 100644 actlibrary/mingw32-i586/Release/include/actTokenBase.h delete mode 100644 actlibrary/mingw32-i586/Release/include/actTokenConfig.h delete mode 100644 actlibrary/mingw32-i586/Release/include/actTokenExtensionKit.h delete mode 100644 actlibrary/mingw32-i586/Release/include/actTokenExtensionReg.h delete mode 100644 actlibrary/mingw32-i586/Release/include/actTools.h delete mode 100644 actlibrary/mingw32-i586/Release/include/actToolsECC.h delete mode 100644 actlibrary/mingw32-i586/Release/include/actToolsRSA.h delete mode 100644 actlibrary/mingw32-i586/Release/include/actTypeTags.h delete mode 100644 actlibrary/mingw32-i586/Release/include/actX509Extension.h delete mode 100644 actlibrary/mingw32-i586/Release/include/actX509KeyReg.h delete mode 100644 actlibrary/mingw32-i586/Release/include/actX509Kit.h delete mode 100644 actlibrary/mingw32-i586/Release/include/actX509SignHashReg.h delete mode 100644 actlibrary/mingw32-i586/Release/include/actX509SignReg.h diff --git a/README.txt b/README.txt index 2695a37..ae08129 100644 --- a/README.txt +++ b/README.txt @@ -1,46 +1,52 @@ -Ein globales Makefile existiert bislang noch nicht; die einzelnen -Komponenten werden müssen separat gebaut werden. - -actlibrary - Beinhaltet Unterverzeichnisse für die "actlibrary" und die dazugehörigen - Include-Dateien der einzelnen Architekturen - -openssl-act-engine - OpenSSL-Engine auf Basis der actlibrary zur Benutzung von - Smartcard-basierten Schlüsseln von OpenSSL aus - - Makefile im Verzeichnis - - benötigt OpenSSL-Libs und Includes der Zielarchitektur (OPENSSL_LIBDIR, OPENSSL_INCDIR) - - benötigt Pfad zur actlibrary der Zielarchitektur (ACTLIB_ROOT) - - erstellt libengine_act.so - -swisssign-openssl-pkcs11-engine - OpenSSL-PKCS11-Engine. Referenzcode für das Grundgerüst der - OpenSSL-actlibrary-Engine, nicht im eigentlichen SwissSurfer benötigt. - -Qt - Beinhaltet das Qt-Quellcode-Archiv. - -Qt/patch - Beinhaltet die Patches zum Qt-Quellcode. Anwenden mit - cd /pfad/zu/ausgepackten/qt-Quellen ; patch -p1 -#include "pindialog.h" - - -PinDialog::PinDialog(QWidget *parent) - : QDialog(parent) -{ - label=new QLabel(tr("Enter &PIN:")); - lineEdit=new QLineEdit; - lineEdit->setEchoMode(QLineEdit::Password); - label->setBuddy(lineEdit); - - okButton=new QPushButton(tr("&OK")); - okButton->setDefault(true); - - cancelButton=new QPushButton(tr("&Cancel")); - - connect(okButton, SIGNAL(clicked()), this, SLOT(accept())); - connect(cancelButton, SIGNAL(clicked()), this, SLOT(reject())); - - QHBoxLayout* tl= new QHBoxLayout; - tl->addWidget(label); - tl->addWidget(lineEdit); - QHBoxLayout* bl= new QHBoxLayout; - bl->addStretch(); - bl->addWidget(okButton); - bl->addWidget(cancelButton); - QVBoxLayout* ml= new QVBoxLayout; - ml->addLayout(tl); - ml->addLayout(bl); - setLayout(ml); -} - -QString PinDialog::pin() const { - // TODO: Cleanup of internal strings as soon as the PIN is retrieved - return lineEdit ? lineEdit->text() : ""; -} +#include +#include "pindialog.h" + + +PinDialog::PinDialog(QWidget *parent) + : QDialog(parent) +{ + label=new QLabel(tr("Enter &PIN:")); + lineEdit=new QLineEdit; + lineEdit->setEchoMode(QLineEdit::Password); + label->setBuddy(lineEdit); + + okButton=new QPushButton(tr("&OK")); + okButton->setDefault(true); + + cancelButton=new QPushButton(tr("&Cancel")); + + connect(okButton, SIGNAL(clicked()), this, SLOT(accept())); + connect(cancelButton, SIGNAL(clicked()), this, SLOT(reject())); + + QHBoxLayout* tl= new QHBoxLayout; + tl->addWidget(label); + tl->addWidget(lineEdit); + QHBoxLayout* bl= new QHBoxLayout; + bl->addStretch(); + bl->addWidget(okButton); + bl->addWidget(cancelButton); + QVBoxLayout* ml= new QVBoxLayout; + ml->addLayout(tl); + ml->addLayout(bl); + setLayout(ml); +} + +QString PinDialog::pin() const { + // TODO: Cleanup of internal strings as soon as the PIN is retrieved + return lineEdit ? lineEdit->text() : ""; +} diff --git a/Test_Qt_Frontend/pindialog.h b/Test_Qt_Frontend/pindialog.h index 7b54c75..712c203 100644 --- a/Test_Qt_Frontend/pindialog.h +++ b/Test_Qt_Frontend/pindialog.h @@ -1,22 +1,22 @@ -#ifndef PINDIALOG_H -#define PINDIALOG_H - -#include -class QLabel; -class QLineEdit; -class QPushButton; - -class PinDialog : public QDialog -{ - Q_OBJECT -public: - PinDialog(QWidget *parent = 0); - QString pin() const; -private: - QLabel* label; - QLineEdit* lineEdit; - QPushButton* okButton; - QPushButton* cancelButton; -}; - -#endif // PINDIALOG_H +#ifndef PINDIALOG_H +#define PINDIALOG_H + +#include +class QLabel; +class QLineEdit; +class QPushButton; + +class PinDialog : public QDialog +{ + Q_OBJECT +public: + PinDialog(QWidget *parent = 0); + QString pin() const; +private: + QLabel* label; + QLineEdit* lineEdit; + QPushButton* okButton; + QPushButton* cancelButton; +}; + +#endif // PINDIALOG_H diff --git a/Test_Qt_Frontend/qtssltest.cpp b/Test_Qt_Frontend/qtssltest.cpp index d3f2e02..b18db1e 100644 --- a/Test_Qt_Frontend/qtssltest.cpp +++ b/Test_Qt_Frontend/qtssltest.cpp @@ -1,48 +1,48 @@ -#include -#include -#include -#include -#include -#include -#include "smartcardauth.h" - -SmartCardAuth g_scard_auth; - -int main(int argc, char *argv[]) -{ - - SmartCardAuth::initialize(); - - QApplication app(argc, argv); - - QSslConfiguration sslConf(QSslConfiguration::defaultConfiguration()); - - // Works even without specifying the root certificate, we just need to add the intermediates, - // and that's done in SmartCardAuth.cpp -#if 0 - QFile caCertsFile("D:\\QtSmartCardAuth_TMI\\QtSslTest\\swsign_root.pem"); - caCertsFile.open(QIODevice::ReadOnly); - QList chain( QSslCertificate::fromDevice(&caCertsFile) ); - - sslConf.setCaCertificates(chain); -#endif - - sslConf.setPeerVerifyMode(QSslSocket::QueryPeer); - sslConf.setOpenSslHook(&g_scard_auth); - QSslConfiguration::setDefaultConfiguration(sslConf); - - // TODO - IMPORTANT: Error reporting! - // If there is ANY failure (no network, no host resolution, no SSL connection, timeout) we just see a - // blank page! - QWebView web; - - // Works - NEEDS AN INTERMEDIATE CERTIFICATE, either loaded from card or from file, see SmartCardAuth - web.load(QUrl("https://dev.swisssign.com/test/")); - - // web.load(QUrl("https://e2k7.demo8.cryptovision.com/ssl/")); - web.show(); - - int rv=app.exec(); - SmartCardAuth::deinitialize(); - return rv; -} +#include +#include +#include +#include +#include +#include +#include "smartcardauth.h" + +SmartCardAuth g_scard_auth; + +int main(int argc, char *argv[]) +{ + + SmartCardAuth::initialize(); + + QApplication app(argc, argv); + + QSslConfiguration sslConf(QSslConfiguration::defaultConfiguration()); + + // Works even without specifying the root certificate, we just need to add the intermediates, + // and that's done in SmartCardAuth.cpp +#if 0 + QFile caCertsFile("D:\\QtSmartCardAuth_TMI\\QtSslTest\\swsign_root.pem"); + caCertsFile.open(QIODevice::ReadOnly); + QList chain( QSslCertificate::fromDevice(&caCertsFile) ); + + sslConf.setCaCertificates(chain); +#endif + + sslConf.setPeerVerifyMode(QSslSocket::QueryPeer); + sslConf.setOpenSslHook(&g_scard_auth); + QSslConfiguration::setDefaultConfiguration(sslConf); + + // TODO - IMPORTANT: Error reporting! + // If there is ANY failure (no network, no host resolution, no SSL connection, timeout) we just see a + // blank page! + QWebView web; + + // Works - NEEDS AN INTERMEDIATE CERTIFICATE, either loaded from card or from file, see SmartCardAuth + web.load(QUrl("https://dev.swisssign.com/test/")); + + // web.load(QUrl("https://e2k7.demo8.cryptovision.com/ssl/")); + web.show(); + + int rv=app.exec(); + SmartCardAuth::deinitialize(); + return rv; +} diff --git a/Test_Qt_Frontend/smartcardauth.cpp b/Test_Qt_Frontend/smartcardauth.cpp index a475068..63036a7 100644 --- a/Test_Qt_Frontend/smartcardauth.cpp +++ b/Test_Qt_Frontend/smartcardauth.cpp @@ -1,162 +1,164 @@ -#include "smartcardauth.h" -#include "pindialog.h" -#include - -#include "engine_sct.h" - -#include - -ENGINE* SmartCardAuth::e=NULL; -enum_certs_s* SmartCardAuth::certs_found=NULL; -QWidget* SmartCardAuth::parent=0; -bool SmartCardAuth::pin_configured=false; -bool SmartCardAuth::pin_rejected=false; - -void SmartCardAuth::initialize() { - QSslSocketPrivate::ensureInitialized(); - - q_ENGINE_load_dynamic(); - e = q_ENGINE_by_id("dynamic"); - - int r=q_ENGINE_ctrl_cmd_string(e, "SO_PATH", "C:\\Windows\\System32\\engine_act.dll", 0); - r=q_ENGINE_ctrl_cmd_string(e, "ID", "act", 0); - r=q_ENGINE_ctrl_cmd_string(e, "LIST_ADD", "1", 0); - r=q_ENGINE_ctrl_cmd_string(e, "LOAD", NULL, 0); - - if(!r) - { - unsigned int err = 0; - while((err = q_ERR_get_error())) - { - char *str = q_ERR_error_string(err, NULL); - fprintf(stderr,"%s\n", str); - } - } - - r=q_ENGINE_init(e); - -} - -void SmartCardAuth::deinitialize() { - q_ENGINE_finish(e); - q_ENGINE_cleanup(); -} - -void SmartCardAuth::setPinDlgParent(QWidget* p) { - parent=p; -} - -int SmartCardAuth::client_cert_cb(SSL *ssl, X509 **x509, EVP_PKEY **pkey) -{ - // NB: Keep in mind that this function is called for EVERY SSL connection to be opened. - - for(size_t i=certs_found->num_certs;i--;) - { - const char *id_p = certs_found->certificate[i].id; - - if(id_p == NULL) continue; - - // Name has the format "slot-x-name-SwissSign_digSig" for the certificate/key we're looking for - std::string name(certs_found->certificate[i].name); - std::string compare("-name-SwissSign_digSig"); - - // Compare the rightmost part of the retrieved name to locate the certificate/keypair - size_t pos = name.length() - compare.length(); - if(name.substr(pos) != compare) - continue; - -// // Filter out the correct certificate depending on well-known sorting criteria -// // Given example searches for a keyword in the certificate's subject, but since we've got -// // the decoded certificate as an X509* structure we can check all the fields. -// X509_NAME* subj_name = q_X509_get_subject_name(certs_found->certificate[i].cert); -// int maxlen = 2048; -// char buf[maxlen+1]; -// buf[maxlen]=0; -// q_X509_NAME_oneline(subj_name, buf, maxlen); -// std::string subject(buf); - -// const char *compare="CN=Carsten Pluntke"; -// if(subject.find(compare) == std::string::npos) -// continue; - - // Here we found a suitable certificate. - - // Now prepare the reference to the SmartCard's private key and a copy of the certificate - // to pass back to the caller. - *x509 = q_X509_dup(certs_found->certificate[i].cert); - *pkey = NULL; - - // If we don't have a PIN yet, pop up a dialog, ask for a PIN and pass it along to the engine - // for usage. - if(!pin_configured) - { - PinDialog dlg(parent); - int ok=dlg.exec(); - if(ok!=1) return 0; // User cancelled - QByteArray pinByteArray=dlg.pin().toAscii(); - char *pin_str = pinByteArray.data(); - - // The engine control command takes a copy and overwrites the source array - if(q_ENGINE_ctrl_cmd_string(e, "PIN", pin_str, 0)) - pin_configured = true; - else - return 0; // Engine refuses to take the PIN - - *pkey = q_ENGINE_load_private_key(e, id_p, NULL, NULL); - - // We do a test authorization on loading of the private key. If the operation fails at all, - // DON'T try again (see below) or we would instantly lock the card in a single session because - // of the retries! - if(!*pkey) - pin_rejected = true; - } - - // Second to nth iteration: We skipped the PIN dialog here, now load the key if we don't have the - // explicit information not to do it (because the PIN is wrong) - if(!*pkey && !pin_rejected) - *pkey = q_ENGINE_load_private_key(e, id_p, NULL, NULL); - - break; - } - - if(!*x509) { - qWarning("Unable to load certificate"); - return 0; - } - - if(!*pkey) { - qWarning("Unable to load key"); - return 0; - } - - return 1; -} - -bool SmartCardAuth::hookInitSslContext(SSL_CTX *ctx) -{ - bool result = false; - - if(!certs_found) - result = (q_ENGINE_ctrl_cmd(e, "ENUM_CERTS", 0, &certs_found, NULL, 0) != 0); - else - result = true; - -#ifdef USE_CERTIFICATE_FILE - // Load a specific intermediate certificate from a file - BIO* cert_file= q_BIO_new_file("D:\\QtSmartCardAuth_TMI\\QtSslTest\\swsign_interm.pem", "r"); - X509* interm=q_PEM_read_bio_X509(cert_file,NULL,NULL, NULL); - q_BIO_free(cert_file); - - q_SSL_CTX_add_extra_chain_cert(ctx,interm); -#else - // Add all of the card's certificates without a private key as intermediate certs - for(size_t i=certs_found->num_certs;i--;) - { - if(certs_found->certificate[i].id == NULL) - q_SSL_CTX_add_extra_chain_cert(ctx, q_X509_dup(certs_found->certificate[i].cert)); - } -#endif - - q_SSL_CTX_set_client_cert_cb(ctx,client_cert_cb); - return true; -} +#include "smartcardauth.h" +#include "pindialog.h" +#include + +#include "engine_sct.h" + +#include + +ENGINE* SmartCardAuth::e=NULL; +enum_certs_s* SmartCardAuth::certs_found=NULL; +QWidget* SmartCardAuth::parent=0; +bool SmartCardAuth::pin_configured=false; +bool SmartCardAuth::pin_rejected=false; + +void SmartCardAuth::initialize() { + QSslSocketPrivate::ensureInitialized(); + + q_ENGINE_load_dynamic(); + e = q_ENGINE_by_id("dynamic"); + + //! @todo add library-name + int r=q_ENGINE_ctrl_cmd_string(e, "SO_PATH", "...library-name...", 0); + r=q_ENGINE_ctrl_cmd_string(e, "ID", "act", 0); + r=q_ENGINE_ctrl_cmd_string(e, "LIST_ADD", "1", 0); + r=q_ENGINE_ctrl_cmd_string(e, "LOAD", NULL, 0); + + if(!r) + { + unsigned int err = 0; + while((err = q_ERR_get_error())) + { + char *str = q_ERR_error_string(err, NULL); + fprintf(stderr,"%s\n", str); + } + } + + r=q_ENGINE_init(e); + +} + +void SmartCardAuth::deinitialize() { + q_ENGINE_finish(e); + q_ENGINE_cleanup(); +} + +void SmartCardAuth::setPinDlgParent(QWidget* p) { + parent=p; +} + +int SmartCardAuth::client_cert_cb(SSL *ssl, X509 **x509, EVP_PKEY **pkey) +{ + // NB: Keep in mind that this function is called for EVERY SSL connection to be opened. + + for(size_t i=certs_found->num_certs;i--;) + { + const char *id_p = certs_found->certificate[i].id; + + if(id_p == NULL) continue; + + // Name has the format "slot-x-name-SwissSign_digSig" for the certificate/key we're looking for + std::string name(certs_found->certificate[i].name); + std::string compare("-name-SwissSign_digSig"); + + // Compare the rightmost part of the retrieved name to locate the certificate/keypair + size_t pos = name.length() - compare.length(); + if(name.substr(pos) != compare) + continue; + +// // Filter out the correct certificate depending on well-known sorting criteria +// // Given example searches for a keyword in the certificate's subject, but since we've got +// // the decoded certificate as an X509* structure we can check all the fields. +// X509_NAME* subj_name = q_X509_get_subject_name(certs_found->certificate[i].cert); +// int maxlen = 2048; +// char buf[maxlen+1]; +// buf[maxlen]=0; +// q_X509_NAME_oneline(subj_name, buf, maxlen); +// std::string subject(buf); + +// const char *compare="CN=Carsten Pluntke"; +// if(subject.find(compare) == std::string::npos) +// continue; + + // Here we found a suitable certificate. + + // Now prepare the reference to the SmartCard's private key and a copy of the certificate + // to pass back to the caller. + *x509 = q_X509_dup(certs_found->certificate[i].cert); + *pkey = NULL; + + // If we don't have a PIN yet, pop up a dialog, ask for a PIN and pass it along to the engine + // for usage. + if(!pin_configured) + { + PinDialog dlg(parent); + int ok=dlg.exec(); + if(ok!=1) return 0; // User cancelled + QByteArray pinByteArray=dlg.pin().toAscii(); + char *pin_str = pinByteArray.data(); + + // The engine control command takes a copy and overwrites the source array + if(q_ENGINE_ctrl_cmd_string(e, "PIN", pin_str, 0)) + pin_configured = true; + else + return 0; // Engine refuses to take the PIN + + *pkey = q_ENGINE_load_private_key(e, id_p, NULL, NULL); + + // We do a test authorization on loading of the private key. If the operation fails at all, + // DON'T try again (see below) or we would instantly lock the card in a single session because + // of the retries! + if(!*pkey) + pin_rejected = true; + } + + // Second to nth iteration: We skipped the PIN dialog here, now load the key if we don't have the + // explicit information not to do it (because the PIN is wrong) + if(!*pkey && !pin_rejected) + *pkey = q_ENGINE_load_private_key(e, id_p, NULL, NULL); + + break; + } + + if(!*x509) { + qWarning("Unable to load certificate"); + return 0; + } + + if(!*pkey) { + qWarning("Unable to load key"); + return 0; + } + + return 1; +} + +bool SmartCardAuth::hookInitSslContext(SSL_CTX *ctx) +{ + bool result = false; + + if(!certs_found) + result = (q_ENGINE_ctrl_cmd(e, "ENUM_CERTS", 0, &certs_found, NULL, 0) != 0); + else + result = true; + +#ifdef USE_CERTIFICATE_FILE + // Load a specific intermediate certificate from a file + //! @todo PEM-File + BIO* cert_file= q_BIO_new_file("D:\\QtSmartCardAuth_TMI\\QtSslTest\\swsign_interm.pem", "r"); + X509* interm=q_PEM_read_bio_X509(cert_file,NULL,NULL, NULL); + q_BIO_free(cert_file); + + q_SSL_CTX_add_extra_chain_cert(ctx,interm); +#else + // Add all of the card's certificates without a private key as intermediate certs + for(size_t i=certs_found->num_certs;i--;) + { + if(certs_found->certificate[i].id == NULL) + q_SSL_CTX_add_extra_chain_cert(ctx, q_X509_dup(certs_found->certificate[i].cert)); + } +#endif + + q_SSL_CTX_set_client_cert_cb(ctx,client_cert_cb); + return true; +} diff --git a/Test_Qt_Frontend/smartcardauth.h b/Test_Qt_Frontend/smartcardauth.h index 0edfb46..7a45bf9 100644 --- a/Test_Qt_Frontend/smartcardauth.h +++ b/Test_Qt_Frontend/smartcardauth.h @@ -1,27 +1,27 @@ -#ifndef SMARTCARDAUTH_H -#define SMARTCARDAUTH_H - -#include -class QWidget; - -struct enum_certs_s; - -class SmartCardAuth : public QOpenSslHook { - -public: - static void initialize(); - static void deinitialize(); - static void setPinDlgParent(QWidget* parent); - - virtual bool hookInitSslContext(SSL_CTX* ctx); - -private: - static int client_cert_cb(SSL *ssl, X509 **x509, EVP_PKEY **pkey); - static ENGINE* e; - static enum_certs_s* certs_found; - static QWidget* parent; - static bool pin_configured; - static bool pin_rejected; -}; - -#endif // SMARTCARDAUTH_H +#ifndef SMARTCARDAUTH_H +#define SMARTCARDAUTH_H + +#include +class QWidget; + +struct enum_certs_s; + +class SmartCardAuth : public QOpenSslHook { + +public: + static void initialize(); + static void deinitialize(); + static void setPinDlgParent(QWidget* parent); + + virtual bool hookInitSslContext(SSL_CTX* ctx); + +private: + static int client_cert_cb(SSL *ssl, X509 **x509, EVP_PKEY **pkey); + static ENGINE* e; + static enum_certs_s* certs_found; + static QWidget* parent; + static bool pin_configured; + static bool pin_rejected; +}; + +#endif // SMARTCARDAUTH_H diff --git a/Test_Qt_Frontend/swsign_interm.pem b/Test_Qt_Frontend/swsign_interm.pem index fe6c37b..0e81f4b 100644 --- a/Test_Qt_Frontend/swsign_interm.pem +++ b/Test_Qt_Frontend/swsign_interm.pem @@ -1,41 +1,41 @@ -Bag Attributes - 1.3.6.1.4.1.311.17.3.20: EB 35 B1 56 6D 15 60 58 F4 E1 22 CD 1C 46 1C AE D0 04 00 65 -subject=/C=CH/O=SwissSign AG/CN=SwissSign Personal Silver CA 2008 - G2 -issuer=/C=CH/O=SwissSign AG/CN=SwissSign Silver CA - G2 ------BEGIN CERTIFICATE----- -MIIGZzCCBE+gAwIBAgIJAOJWt1OXa3ZYMA0GCSqGSIb3DQEBBQUAMEcxCzAJBgNV -BAYTAkNIMRUwEwYDVQQKEwxTd2lzc1NpZ24gQUcxITAfBgNVBAMTGFN3aXNzU2ln -biBTaWx2ZXIgQ0EgLSBHMjAeFw0wODA3MDkxMTExMDlaFw0yMzA3MDkxMTExMDla -MFUxCzAJBgNVBAYTAkNIMRUwEwYDVQQKEwxTd2lzc1NpZ24gQUcxLzAtBgNVBAMT -JlN3aXNzU2lnbiBQZXJzb25hbCBTaWx2ZXIgQ0EgMjAwOCAtIEcyMIIBIjANBgkq -hkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA9/NTXkltjAPlJxchGGCldpQ/FRC4IUDP -NjOsKnKaj2HDa956SQhYPYDYO/CdHUEQAb9rB1YajbM9v2O6MX7ickYYaIfXhU+g -yXsTqdA50YnWNWdodsFflgnNzzoF0T8GBQraFvJD8qQHHaKsgHUBnaDo9zSnv7bm -OWhmUkc5KU20negqrRVhtKIx4BCR2x7kQ/Er3hDBNMtshO5iFCdE2DHx3zwhzMCs -kGjTdGjJF0qOOwmnsQVljQekkK4uet56RG+wAv50/xqH9VjppiXxzIgiJ9jLMcEv -KAxxch73+whObnoFrCF/PwpaZvi/5RYU+RubxJ+6Mw2GlxVdrqEGjwIDAQABo4IC -RjCCAkIwDgYDVR0PAQH/BAQDAgEGMBIGA1UdEwEB/wQIMAYBAf8CAQAwHQYDVR0O -BBYEFOs1sVZtFWBY9OEizRxGHK7QBABlMB8GA1UdIwQYMBaAFBegzcHkQbY6WzvL -RZ29HMKY+oZYMIH/BgNVHR8EgfcwgfQwR6BFoEOGQWh0dHA6Ly9jcmwuc3dpc3Nz -aWduLm5ldC8xN0EwQ0RDMUU0NDFCNjNBNUIzQkNCNDU5REJEMUNDMjk4RkE4NjU4 -MIGooIGloIGihoGfbGRhcDovL2RpcmVjdG9yeS5zd2lzc3NpZ24ubmV0L0NOPTE3 -QTBDREMxRTQ0MUI2M0E1QjNCQ0I0NTlEQkQxQ0MyOThGQTg2NTglMkNPPVN3aXNz -U2lnbiUyQ0M9Q0g/Y2VydGlmaWNhdGVSZXZvY2F0aW9uTGlzdD9iYXNlP29iamVj -dENsYXNzPWNSTERpc3RyaWJ1dGlvblBvaW50MGQGA1UdIARdMFswWQYJYIV0AVkB -AwEDMEwwSgYIKwYBBQUHAgEWPmh0dHA6Ly9yZXBvc2l0b3J5LnN3aXNzc2lnbi5j -b20vU3dpc3NTaWduLVNpbHZlci1DUC1DUFMtUjMucGRmMHQGCCsGAQUFBwEBBGgw -ZjBkBggrBgEFBQcwAoZYaHR0cDovL3N3aXNzc2lnbi5uZXQvY2dpLWJpbi9hdXRo -b3JpdHkvZG93bmxvYWQvMTdBMENEQzFFNDQxQjYzQTVCM0JDQjQ1OURCRDFDQzI5 -OEZBODY1ODANBgkqhkiG9w0BAQUFAAOCAgEALip22pfzTN9kJ+FbLZXvuVUu27gJ -ZTFAsEu9fJCx2dhxGFPO6DUsmxS6H3SC1FeSwFeTm1AFJXvgldRduER46TOQQf7h -v0abeX1yvDhQGcBoWgay0xveXWfPaZL49awJhdTdWi5qOSPv9O9zWjYew+mNIEdk -Nx85eRPXDlCyrLoZnuqD5EVGBL7NLzkQCJsNifBVsiYkUbNr0XxpPVjVgTU8aEdX -jcYSs88qahVFL4SpTj3BOcrr+95KnK0buGGWBiC4gCMZtHZDHJ+umjheENI49R6e -2QwR1S74yYqHpwyz0ihdI2xOZgXxmGOg3GKBxEficqLgbRl+PV2FRZdogAOl8PXt -25iCzummltrfbjXaGQNg9rBHmAM05bxgtMCQwCj0BG48ufpJhzplOLS1YYIehiHv -mojFdSg1q15SYC867zGLpnv3SAxwPLXXYsu0QsP0jbhEcYwk/NfunyHoqmOWw88H -W/KB0ppwJ1QYzO6h0Qwijl7QmUM5qlJOZxuP2jK8WoOS2jarU3r0EXfq/Nfo3uqX -xm5QDg9E4M8wyouaoaCn/LnoxS3zc/VU/p0o15AjIylPSTN/kHmDSl4eYZFmBBhd -0YhvjC4hW2UBRM12SQAAEPIaEqUdxrYFfogWojYCoymheKskXfAKdA1k2gp5mhVh -SFXeRgS5uQTbqpY= ------END CERTIFICATE----- +Bag Attributes + 1.3.6.1.4.1.311.17.3.20: EB 35 B1 56 6D 15 60 58 F4 E1 22 CD 1C 46 1C AE D0 04 00 65 +subject=/C=CH/O=SwissSign AG/CN=SwissSign Personal Silver CA 2008 - G2 +issuer=/C=CH/O=SwissSign AG/CN=SwissSign Silver CA - G2 +-----BEGIN CERTIFICATE----- +MIIGZzCCBE+gAwIBAgIJAOJWt1OXa3ZYMA0GCSqGSIb3DQEBBQUAMEcxCzAJBgNV +BAYTAkNIMRUwEwYDVQQKEwxTd2lzc1NpZ24gQUcxITAfBgNVBAMTGFN3aXNzU2ln +biBTaWx2ZXIgQ0EgLSBHMjAeFw0wODA3MDkxMTExMDlaFw0yMzA3MDkxMTExMDla +MFUxCzAJBgNVBAYTAkNIMRUwEwYDVQQKEwxTd2lzc1NpZ24gQUcxLzAtBgNVBAMT +JlN3aXNzU2lnbiBQZXJzb25hbCBTaWx2ZXIgQ0EgMjAwOCAtIEcyMIIBIjANBgkq +hkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA9/NTXkltjAPlJxchGGCldpQ/FRC4IUDP +NjOsKnKaj2HDa956SQhYPYDYO/CdHUEQAb9rB1YajbM9v2O6MX7ickYYaIfXhU+g +yXsTqdA50YnWNWdodsFflgnNzzoF0T8GBQraFvJD8qQHHaKsgHUBnaDo9zSnv7bm +OWhmUkc5KU20negqrRVhtKIx4BCR2x7kQ/Er3hDBNMtshO5iFCdE2DHx3zwhzMCs +kGjTdGjJF0qOOwmnsQVljQekkK4uet56RG+wAv50/xqH9VjppiXxzIgiJ9jLMcEv +KAxxch73+whObnoFrCF/PwpaZvi/5RYU+RubxJ+6Mw2GlxVdrqEGjwIDAQABo4IC +RjCCAkIwDgYDVR0PAQH/BAQDAgEGMBIGA1UdEwEB/wQIMAYBAf8CAQAwHQYDVR0O +BBYEFOs1sVZtFWBY9OEizRxGHK7QBABlMB8GA1UdIwQYMBaAFBegzcHkQbY6WzvL +RZ29HMKY+oZYMIH/BgNVHR8EgfcwgfQwR6BFoEOGQWh0dHA6Ly9jcmwuc3dpc3Nz +aWduLm5ldC8xN0EwQ0RDMUU0NDFCNjNBNUIzQkNCNDU5REJEMUNDMjk4RkE4NjU4 +MIGooIGloIGihoGfbGRhcDovL2RpcmVjdG9yeS5zd2lzc3NpZ24ubmV0L0NOPTE3 +QTBDREMxRTQ0MUI2M0E1QjNCQ0I0NTlEQkQxQ0MyOThGQTg2NTglMkNPPVN3aXNz +U2lnbiUyQ0M9Q0g/Y2VydGlmaWNhdGVSZXZvY2F0aW9uTGlzdD9iYXNlP29iamVj +dENsYXNzPWNSTERpc3RyaWJ1dGlvblBvaW50MGQGA1UdIARdMFswWQYJYIV0AVkB +AwEDMEwwSgYIKwYBBQUHAgEWPmh0dHA6Ly9yZXBvc2l0b3J5LnN3aXNzc2lnbi5j +b20vU3dpc3NTaWduLVNpbHZlci1DUC1DUFMtUjMucGRmMHQGCCsGAQUFBwEBBGgw +ZjBkBggrBgEFBQcwAoZYaHR0cDovL3N3aXNzc2lnbi5uZXQvY2dpLWJpbi9hdXRo +b3JpdHkvZG93bmxvYWQvMTdBMENEQzFFNDQxQjYzQTVCM0JDQjQ1OURCRDFDQzI5 +OEZBODY1ODANBgkqhkiG9w0BAQUFAAOCAgEALip22pfzTN9kJ+FbLZXvuVUu27gJ +ZTFAsEu9fJCx2dhxGFPO6DUsmxS6H3SC1FeSwFeTm1AFJXvgldRduER46TOQQf7h +v0abeX1yvDhQGcBoWgay0xveXWfPaZL49awJhdTdWi5qOSPv9O9zWjYew+mNIEdk +Nx85eRPXDlCyrLoZnuqD5EVGBL7NLzkQCJsNifBVsiYkUbNr0XxpPVjVgTU8aEdX +jcYSs88qahVFL4SpTj3BOcrr+95KnK0buGGWBiC4gCMZtHZDHJ+umjheENI49R6e +2QwR1S74yYqHpwyz0ihdI2xOZgXxmGOg3GKBxEficqLgbRl+PV2FRZdogAOl8PXt +25iCzummltrfbjXaGQNg9rBHmAM05bxgtMCQwCj0BG48ufpJhzplOLS1YYIehiHv +mojFdSg1q15SYC867zGLpnv3SAxwPLXXYsu0QsP0jbhEcYwk/NfunyHoqmOWw88H +W/KB0ppwJ1QYzO6h0Qwijl7QmUM5qlJOZxuP2jK8WoOS2jarU3r0EXfq/Nfo3uqX +xm5QDg9E4M8wyouaoaCn/LnoxS3zc/VU/p0o15AjIylPSTN/kHmDSl4eYZFmBBhd +0YhvjC4hW2UBRM12SQAAEPIaEqUdxrYFfogWojYCoymheKskXfAKdA1k2gp5mhVh +SFXeRgS5uQTbqpY= +-----END CERTIFICATE----- diff --git a/Test_Qt_Frontend/swsign_root.pem b/Test_Qt_Frontend/swsign_root.pem index fc135a0..ed83c5d 100644 --- a/Test_Qt_Frontend/swsign_root.pem +++ b/Test_Qt_Frontend/swsign_root.pem @@ -1,37 +1,37 @@ -Bag Attributes - 1.3.6.1.4.1.311.17.3.20: 17 A0 CD C1 E4 41 B6 3A 5B 3B CB 45 9D BD 1C C2 98 FA 86 58 -subject=/C=CH/O=SwissSign AG/CN=SwissSign Silver CA - G2 -issuer=/C=CH/O=SwissSign AG/CN=SwissSign Silver CA - G2 ------BEGIN CERTIFICATE----- -MIIFvTCCA6WgAwIBAgIITxvUL1S7L0swDQYJKoZIhvcNAQEFBQAwRzELMAkGA1UE -BhMCQ0gxFTATBgNVBAoTDFN3aXNzU2lnbiBBRzEhMB8GA1UEAxMYU3dpc3NTaWdu -IFNpbHZlciBDQSAtIEcyMB4XDTA2MTAyNTA4MzI0NloXDTM2MTAyNTA4MzI0Nlow -RzELMAkGA1UEBhMCQ0gxFTATBgNVBAoTDFN3aXNzU2lnbiBBRzEhMB8GA1UEAxMY -U3dpc3NTaWduIFNpbHZlciBDQSAtIEcyMIICIjANBgkqhkiG9w0BAQEFAAOCAg8A -MIICCgKCAgEAxPGHf9N4Mfc4yfjDmUO8x/e8N+dOcbpLj6VzHVxumK4DV644N0Mv -Fz0fyM5oEMF4rhkDKxD6LHmD9ui5aLlV8gREpzn5/ASLHvGiTSf5YXu6t+WiE7br -YT7QbNHm+/pe7R20nqA1W6GSy/BJkv6FCgU+5tkL4k+73JU3/JHpMjUi0R86TieF -nbAVlDLaYQ1HTWBCrpJH6INaUFjpiou5XaHc3ZlKHzZnu0jkg7Y360g6rw9njxcH -6ATK72oxh9TAtvmUcXtnZLi2kUpCe2UuMGoM9ZDulebyzYLs2aFK7PayS+VFheZt -eJMELpyCbTapxDFkH4aDCyr0NQp4yVXPQbBH6TCfmb5hqAaEuSh6XzjZG6k4sIN/ -c8HDO0gqgg8hm7jMqDXDhBuDsz6+pJVpATqJAHgE2cn0mRmrVn5bi4Y5FZGkECwJ -MoBgs5PAKrYYC51+jUnyEEp/+dVGLxmSo5mnJqy7jDzmDrxHB9xzUfFwZC8I+bRH -HTBsROopN4WSaGa8gzj+ezku01DwH/teYLappvonQfGbGHLy9YR0SslnxFSuSGTf -jNFusB3hB48IHpmccelM2KX3RxIfdNFRnobzwqIjQAtz20um53MGjMGg6cFZrEb6 -5i/4z3GcRm25xBWNOHkDRUjvxF3XCO6HOSKGsg0PWEP3calILv3q1h8CAwEAAaOB -rDCBqTAOBgNVHQ8BAf8EBAMCAQYwDwYDVR0TAQH/BAUwAwEB/zAdBgNVHQ4EFgQU -F6DNweRBtjpbO8tFnb0cwpj6hlgwHwYDVR0jBBgwFoAUF6DNweRBtjpbO8tFnb0c -wpj6hlgwRgYDVR0gBD8wPTA7BglghXQBWQEDAQEwLjAsBggrBgEFBQcCARYgaHR0 -cDovL3JlcG9zaXRvcnkuc3dpc3NzaWduLmNvbS8wDQYJKoZIhvcNAQEFBQADggIB -AHPGgeAn0i0P4JUw4ppBf1AsX19iYamGamkYDHRJ1l2E6kFSGG9YrVBWIGrGvShp -WJHckRE1qTodvBqlYJ7YH39FkWnZfrt4csEGDyrOj4VwYaygzQu4OSlWhDJOhrs9 -xCrZ1x9y7v5RoSJBsXECYxqCsGKrXlcSH9/L3XWgwF15kIwb4FDm3jH+mHtwX6WQ -2K34ArZv02DdQEsixT2tOnqfGhpHkXkzuoLcMmkDlm4fS/Bx/uNncqCxv1yL5PqZ -IseEuRuNI5c/7SXgz2W79WEE790eslpBIlqhn10s6FvJbakMDHiqYMZWjwFaDGi8 -aRl5xB9+lwW/xekkUV7U1UtT7dkjWjYDZaPBA61BMPNGG4WQr2W11bHkFlt4dR2X -em1ZqSqPe97Dh4kQmUlzeMg9vVE1dCrV8X5pGyq7O70luJpaPXJhkGaH7gzWTdQR -dAtq/gsD/KNVV4n+SsuuWxcFyPKNIzFTONItaj+CuY0IavdeQXRuwxF+B6wpYJE/ -OMpXEA29MC/HpeZBoNquBYeaoKRlbEwJDIm6uNO5wJOKMPqN5ZprFQFOZ6raYlY+ -hAhm0sQ2fac+EPyI4NSA5QC9qvNOBqN6avlicuMJT+ubDgEj8Z+7fNzcbBGXJbLy -tGMU0gYqZ4yD9c7qB9iaah7s5Aq7KkzrCWA5zspi2C5u ------END CERTIFICATE----- +Bag Attributes + 1.3.6.1.4.1.311.17.3.20: 17 A0 CD C1 E4 41 B6 3A 5B 3B CB 45 9D BD 1C C2 98 FA 86 58 +subject=/C=CH/O=SwissSign AG/CN=SwissSign Silver CA - G2 +issuer=/C=CH/O=SwissSign AG/CN=SwissSign Silver CA - G2 +-----BEGIN CERTIFICATE----- +MIIFvTCCA6WgAwIBAgIITxvUL1S7L0swDQYJKoZIhvcNAQEFBQAwRzELMAkGA1UE +BhMCQ0gxFTATBgNVBAoTDFN3aXNzU2lnbiBBRzEhMB8GA1UEAxMYU3dpc3NTaWdu +IFNpbHZlciBDQSAtIEcyMB4XDTA2MTAyNTA4MzI0NloXDTM2MTAyNTA4MzI0Nlow +RzELMAkGA1UEBhMCQ0gxFTATBgNVBAoTDFN3aXNzU2lnbiBBRzEhMB8GA1UEAxMY +U3dpc3NTaWduIFNpbHZlciBDQSAtIEcyMIICIjANBgkqhkiG9w0BAQEFAAOCAg8A +MIICCgKCAgEAxPGHf9N4Mfc4yfjDmUO8x/e8N+dOcbpLj6VzHVxumK4DV644N0Mv +Fz0fyM5oEMF4rhkDKxD6LHmD9ui5aLlV8gREpzn5/ASLHvGiTSf5YXu6t+WiE7br +YT7QbNHm+/pe7R20nqA1W6GSy/BJkv6FCgU+5tkL4k+73JU3/JHpMjUi0R86TieF +nbAVlDLaYQ1HTWBCrpJH6INaUFjpiou5XaHc3ZlKHzZnu0jkg7Y360g6rw9njxcH +6ATK72oxh9TAtvmUcXtnZLi2kUpCe2UuMGoM9ZDulebyzYLs2aFK7PayS+VFheZt +eJMELpyCbTapxDFkH4aDCyr0NQp4yVXPQbBH6TCfmb5hqAaEuSh6XzjZG6k4sIN/ +c8HDO0gqgg8hm7jMqDXDhBuDsz6+pJVpATqJAHgE2cn0mRmrVn5bi4Y5FZGkECwJ +MoBgs5PAKrYYC51+jUnyEEp/+dVGLxmSo5mnJqy7jDzmDrxHB9xzUfFwZC8I+bRH +HTBsROopN4WSaGa8gzj+ezku01DwH/teYLappvonQfGbGHLy9YR0SslnxFSuSGTf +jNFusB3hB48IHpmccelM2KX3RxIfdNFRnobzwqIjQAtz20um53MGjMGg6cFZrEb6 +5i/4z3GcRm25xBWNOHkDRUjvxF3XCO6HOSKGsg0PWEP3calILv3q1h8CAwEAAaOB +rDCBqTAOBgNVHQ8BAf8EBAMCAQYwDwYDVR0TAQH/BAUwAwEB/zAdBgNVHQ4EFgQU +F6DNweRBtjpbO8tFnb0cwpj6hlgwHwYDVR0jBBgwFoAUF6DNweRBtjpbO8tFnb0c +wpj6hlgwRgYDVR0gBD8wPTA7BglghXQBWQEDAQEwLjAsBggrBgEFBQcCARYgaHR0 +cDovL3JlcG9zaXRvcnkuc3dpc3NzaWduLmNvbS8wDQYJKoZIhvcNAQEFBQADggIB +AHPGgeAn0i0P4JUw4ppBf1AsX19iYamGamkYDHRJ1l2E6kFSGG9YrVBWIGrGvShp +WJHckRE1qTodvBqlYJ7YH39FkWnZfrt4csEGDyrOj4VwYaygzQu4OSlWhDJOhrs9 +xCrZ1x9y7v5RoSJBsXECYxqCsGKrXlcSH9/L3XWgwF15kIwb4FDm3jH+mHtwX6WQ +2K34ArZv02DdQEsixT2tOnqfGhpHkXkzuoLcMmkDlm4fS/Bx/uNncqCxv1yL5PqZ +IseEuRuNI5c/7SXgz2W79WEE790eslpBIlqhn10s6FvJbakMDHiqYMZWjwFaDGi8 +aRl5xB9+lwW/xekkUV7U1UtT7dkjWjYDZaPBA61BMPNGG4WQr2W11bHkFlt4dR2X +em1ZqSqPe97Dh4kQmUlzeMg9vVE1dCrV8X5pGyq7O70luJpaPXJhkGaH7gzWTdQR +dAtq/gsD/KNVV4n+SsuuWxcFyPKNIzFTONItaj+CuY0IavdeQXRuwxF+B6wpYJE/ +OMpXEA29MC/HpeZBoNquBYeaoKRlbEwJDIm6uNO5wJOKMPqN5ZprFQFOZ6raYlY+ +hAhm0sQ2fac+EPyI4NSA5QC9qvNOBqN6avlicuMJT+ubDgEj8Z+7fNzcbBGXJbLy +tGMU0gYqZ4yD9c7qB9iaah7s5Aq7KkzrCWA5zspi2C5u +-----END CERTIFICATE----- diff --git a/actlibrary/MacOSX-10.4-ppc/Release/include/actAllocator.h b/actlibrary/MacOSX-10.4-ppc/Release/include/actAllocator.h deleted file mode 100644 index ce0bfb2..0000000 --- a/actlibrary/MacOSX-10.4-ppc/Release/include/actAllocator.h +++ /dev/null @@ -1,107 +0,0 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actAllocator.h -// Product: cv act library -// Purpose: -// -// Copyright: (c) 2008 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -// -// Autor: Markus Tesche (MTE) -// Date: 09/29/2008 -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_Allocator_h -#define ACT_Allocator_h - -#include "actBasics.h" - -// -------------------------------------------------------------------------------- -namespace act -{ - // - // Allocator<> - template - class Allocator - { - public: - typedef SizeT size_type; - typedef TypeT value_type; - typedef value_type* pointer; - typedef value_type& reference; - typedef const value_type* const_pointer; - typedef const value_type& const_reference; - - protected: - typedef Allocator ThisT; - typedef pointer (*fptr_allocate)(ThisT*, size_type n, const void* hint); - typedef void (*fptr_deallocate)(ThisT*, pointer p, size_type n); - - private: - Allocator(const Allocator&); - Allocator& operator=(const Allocator&); - - protected: - Allocator(fptr_allocate pAllocate, fptr_deallocate pDeallocate) throw() - : m_pAllocate(pAllocate) - , m_pDeallocate(pDeallocate) - { } - - public: - inline pointer allocate(size_type n, const void* hint) - { - return m_pAllocate(this, n, hint); - } - - inline void deallocate(pointer p, size_type n) - { - if(p != 0) m_pDeallocate(this, p, n); - } - - protected: - fptr_allocate m_pAllocate; - fptr_deallocate m_pDeallocate; - }; - - // - // AllocatorImpl<> - template - < - class AllocatorT, - class BaseT = Allocator - > - class AllocatorImpl : public BaseT - { - public: - typedef typename BaseT::pointer pointer; - typedef typename BaseT::size_type size_type; - - protected: - typedef AllocatorImpl ThisT; - - public: - AllocatorImpl() throw() - : BaseT(_allocate, _deallocate) - { } - - AllocatorT& ref_alloc() { return m_Alloc; } - - private: - inline static pointer _allocate(BaseT* pThis, size_type n, const void* hint) - { - return static_cast(pThis)->m_Alloc.allocate(n, hint); - } - - inline static void _deallocate(BaseT* pThis, pointer p, size_type n) - { - static_cast(pThis)->m_Alloc.deallocate(p, n); - } - - private: - AllocatorT m_Alloc; - }; - -} // namespace act - -#endif // ACT_Allocator_h diff --git a/actlibrary/MacOSX-10.4-ppc/Release/include/actBasics.h b/actlibrary/MacOSX-10.4-ppc/Release/include/actBasics.h deleted file mode 100644 index 39057d6..0000000 --- a/actlibrary/MacOSX-10.4-ppc/Release/include/actBasics.h +++ /dev/null @@ -1,93 +0,0 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actBasics.h -// Product: cv act library -// Purpose: integration of globally available identifiers -// -// Copyright: (c) 2000 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_Basics_h -#define ACT_Basics_h - -#include "actEnv.h" - -#ifndef ACT_LITTLE_ENDIAN -# define ACT_LITTLE_ENDIAN -#endif - -#if defined(__BIG_ENDIAN__) || \ - defined(__sun__) || \ - defined(__sparc) || \ - defined(__sparc__) || \ - defined(__ppc__) || \ - defined(__ppc64__) -# undef ACT_LITTLE_ENDIAN -#endif // __sun__ - - -#ifndef NO_STL_SUPPORT -# include // used for ptrdiff_t,size_t -#else -# ifndef _PTRDIFF_T_DEFINED - typedef int ptrdiff_t; -# define _PTRDIFF_T_DEFINED -# endif - - -# ifndef _SIZE_T_DEFINED - typedef unsigned int size_t; -# define _SIZE_T_DEFINED -# endif -#endif // NO_STL_SUPPORT - -namespace act -{ - typedef unsigned long ulong; - typedef unsigned int uint; - typedef unsigned short ushort; - typedef unsigned char uchar; - typedef unsigned char byte; - typedef unsigned short word; - typedef unsigned int dword; - -#if defined(_MSC_VER) & !defined(__MWERKS__) - using ::size_t; - using ::ptrdiff_t; -#else - using std::size_t; - using std::ptrdiff_t; -#endif - - typedef int paramid_t; - typedef int status_t; - typedef int mode_t; - typedef int export_t; - - typedef ushort uint16; - typedef uint uint32; -#if defined(__GNUC__) || defined(__MWERKS__) - typedef unsigned long long uint64; -# define U64(x) x##ULL -#else - //#ifdef _MSC_EXTENSIONS - typedef unsigned __int64 uint64; -# define U64(x) x##ui64 -#endif - -#if defined(__GNUC__) -# define GCC_VERSION (__GNUC__ * 10000 + __GNUC_MINOR__ * 100 + __GNUC_PATCHLEVEL__) -#endif - - const export_t DEFAULT = 0; - - // - // scoped_delete<> - template - struct scoped_delete { }; - -} // namespace act - -#endif // ACT_Basics_h diff --git a/actlibrary/MacOSX-10.4-ppc/Release/include/actBlob.h b/actlibrary/MacOSX-10.4-ppc/Release/include/actBlob.h deleted file mode 100644 index e42687d..0000000 --- a/actlibrary/MacOSX-10.4-ppc/Release/include/actBlob.h +++ /dev/null @@ -1,644 +0,0 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actBlob.h -// Product: cv act library -// Purpose: The datatype Blob (Binary Large Object) is a universal type, which -// can be used for any data. The class Blob almost behaves like -// std::vector with the difference that freed memory -// is filled with zeros to enhance security. -// -// Copyright: (c) 2000 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_Blob_h -#define ACT_Blob_h - -#include "actMove.h" -#include "actBasics.h" -#include "actAllocator.h" - -#ifndef UNDER_CE_30 -# include -#endif // UNDER_CE_30 - -#ifndef NO_STL_SUPPORT -# include // used for reserve_iterator -# include // used for string -#else - // -------------------------------------------------------------------------------- - // if there is no STL support, we define reverse_iterator here. - // -------------------------------------------------------------------------------- - namespace std - { - // ITERATOR TAGS (from ) - struct input_iterator_tag {}; - struct output_iterator_tag {}; - struct forward_iterator_tag - : public input_iterator_tag {}; - struct bidirectional_iterator_tag - : public forward_iterator_tag {}; - struct random_access_iterator_tag - : public bidirectional_iterator_tag {}; - - // TEMPLATE CLASS iterator (from ) - template - struct iterator { - typedef _C iterator_category; - typedef _Ty value_type; - typedef _D distance_type; - }; - template - struct _Bidit : public iterator {}; - template - struct _Ranit : public iterator {}; - - // TEMPLATE CLASS iterator_traits (from ) - template - struct iterator_traits { - typedef _It::iterator_category iterator_category; - typedef _It::value_type value_type; - typedef _It::distance_type distance_type; - }; - - - // TEMPLATE CLASS reverse_iterator (from ) - template - class reverse_iterator : public _Ranit<_Ty, _D> { - public: - typedef reverse_iterator<_RI, _Ty, _Rt, _Pt, _D> _Myt; - typedef _RI iter_type; - typedef _Rt reference_type; - typedef _Pt pointer_type; - reverse_iterator() - {} - explicit reverse_iterator(_RI _X) - : current(_X) {} - _RI base() const - {return(current); } - _Rt operator*() const - {return(*(current - 1)); } - // _Pt operator->() const - // {return(&**this); } - _Myt& operator++() - {--current; - return(*this); } - _Myt operator++(int) - {_Myt _Tmp = *this; - --current; - return(_Tmp); } - _Myt& operator--() - {++current; - return(*this); } - _Myt operator--(int) - {_Myt _Tmp = *this; - ++current; - return(_Tmp); } - _Myt& operator+=(_D _N) - {current -= _N; - return(*this); } - _Myt operator+(_D _N) const - {return(_Myt(current - _N)); } - _Myt& operator-=(_D _N) - {current += _N; - return(*this); } - _Myt operator-(_D _N) const - {return(_Myt(current + _N)); } - _Rt operator[](_D _N) const - {return(*(*this + _N)); } - protected: - _RI current; - }; - template inline - bool __cdecl operator==( - const reverse_iterator<_RI, _Ty, _Rt, _Pt, _D>& _X, - const reverse_iterator<_RI, _Ty, _Rt, _Pt, _D>& _Y) - {return(get_base(_X) == get_base(_Y)); } - template inline - bool __cdecl operator!=( - const reverse_iterator<_RI, _Ty, _Rt, _Pt, _D>& _X, - const reverse_iterator<_RI, _Ty, _Rt, _Pt, _D>& _Y) - {return(!(_X == _Y)); } - template inline - bool __cdecl operator<( - const reverse_iterator<_RI, _Ty, _Rt, _Pt, _D>& _X, - const reverse_iterator<_RI, _Ty, _Rt, _Pt, _D>& _Y) - {return(get_base(_Y) < get_base(_X)); } - template inline - bool __cdecl operator>( - const reverse_iterator<_RI, _Ty, _Rt, _Pt, _D>& _X, - const reverse_iterator<_RI, _Ty, _Rt, _Pt, _D>& _Y) - {return(_Y < _X); } - template inline - bool __cdecl operator<=( - const reverse_iterator<_RI, _Ty, _Rt, _Pt, _D>& _X, - const reverse_iterator<_RI, _Ty, _Rt, _Pt, _D>& _Y) - {return(!(_Y < _X)); } - template inline - bool __cdecl operator>=( - const reverse_iterator<_RI, _Ty, _Rt, _Pt, _D>& _X, - const reverse_iterator<_RI, _Ty, _Rt, _Pt, _D>& _Y) - {return(!(_X < _Y)); } - template inline - _D __cdecl operator-( - const reverse_iterator<_RI, _Ty, _Rt, _Pt, _D>& _X, - const reverse_iterator<_RI, _Ty, _Rt, _Pt, _D>& _Y) - {return(get_base(_Y) - get_base(_X)); } - template inline - reverse_iterator<_RI, _Ty, _Rt, _Pt, _D> __cdecl operator+(_D _N, - const reverse_iterator<_RI, _Ty, _Rt, _Pt, _D>& _Y) - {return(reverse_iterator<_RI, _Ty, _Rt, _Pt, _D>( - get_base(_Y) - _N)); } - } // namespace std - -#endif //NO_STL_SUPPORT - -// -------------------------------------------------------------------------------- -namespace act -{ - // - // byte_array for fixed data - struct byte_array - { - const act::byte* value; - const size_t size; - }; - - inline byte_array make_array(const act::byte* value = 0, size_t size = 0) - { - const byte_array ba = { value, size }; - return ba; - }; - -#ifndef ACT_NO_BYTE_ARRAY_MACROS -# define _A(x) x.value, x.size -# define _B(x) act::make_array(reinterpret_cast(x), sizeof(x) - sizeof(x[0])) -# define _C(x) act::make_array(reinterpret_cast(x), sizeof(x)) -# define _H(x) { (const act::byte*) x, sizeof(x) - sizeof(x[0]) } -#endif - -#if(_MSC_VER >= 1300) - template - < - class _Ty, - class _Diff, - class _Pointer, - class _Reference, - class _Pointer2, - class _Reference2 - > - class _Ptrit : - public std::iterator - { // wrap pointer as random-access iterator - public: - typedef _Ptrit<_Ty, _Diff, _Pointer, _Reference, _Pointer2, _Reference2> _Myt; - - _Ptrit() - { // construct with uninitialized wrapped pointer - } - - _Ptrit(_Pointer _Ptr) : current(_Ptr) - { // construct wrapped pointer from _Ptr - } - - _Ptrit(const _Ptrit<_Ty, _Diff, _Pointer2, _Reference2, _Pointer2, _Reference2>& _Iter) - : current(_Iter.base()) - { // const converter or copy constructor - } - - _Pointer base() const - { // return wrapped pointer - return current; - } - - _Reference operator*() const - { // return designated value - return *current; - } - - _Pointer operator->() const - { // return pointer to class object - return &**this; - } - - _Myt& operator++() - { // preincrement - ++current; - return *this; - } - - _Myt operator++(int) - { // postincrement - _Myt _Tmp = *this; - ++current; - return _Tmp; - } - - _Myt& operator--() - { // predecrement - --current; - return *this; - } - - _Myt operator--(int) - { // postdecrement - _Myt _Tmp = *this; - --current; - return _Tmp; - } - - bool operator==(size_t _Right) const - { // test if wrapped pointer == integer (null pointer constant) - return current == (_Pointer) _Right; - } - - bool operator==(const _Myt& _Right) const - { // test for iterator equality - return current == _Right.current; - } - - bool operator!=(const _Myt& _Right) const - { // test for iterator inequality - return !(*this == _Right); - } - - _Myt& operator+=(_Diff _Off) - { // increment by integer - current += _Off; - return *this; - } - - _Myt operator+(_Diff _Off) const - { // return this + integer - return _Myt(current + _Off); - } - - _Myt& operator-=(_Diff _Off) - { // decrement by integer - current -= _Off; - return *this; - } - - _Myt operator-(_Diff _Off) const - { // return this - integer - return _Myt(current - _Off); - } - - _Reference operator[](_Diff _Off) const - { // subscript - return *(*this + _Off); - } - - bool operator<(const _Myt& _Right) const - { // test if this < _Right - return current < _Right.current; - } - - bool operator>(const _Myt& _Right) const - { // test if this > _Right - return _Right < *this; - } - - bool operator<=(const _Myt& _Right) const - { // test if this <= _Right - return !(_Right < *this); - } - - bool operator>=(const _Myt& _Right) const - { // test if this >= _Right - return !(*this < _Right); - } - - _Diff operator-(const _Myt& _Right) const - { // return difference of iterators - return current - _Right.current; - } - - protected: - _Pointer current; // the wrapped pointer - }; - -#endif // _MSC_VER >= 1300 - - // - // Blob - class Blob - { - protected: - struct flags - { - byte copy_on_write:1; - byte external_allocated:1; - - flags() throw() - : copy_on_write(0) - , external_allocated(0) - { } - }; - - public: - typedef Allocator _Alloc; - typedef _Alloc allocator_type; - typedef _Alloc::size_type size_type; - typedef _Alloc::value_type value_type; - typedef value_type* pointer; - typedef value_type& reference; - typedef const value_type* const_pointer; - typedef const value_type& const_reference; - typedef ptrdiff_t difference_type; - -#if(_MSC_VER >= 1300) - typedef _Ptrit - < value_type, difference_type, pointer, reference, pointer, reference - > iterator; - - typedef _Ptrit - < value_type, difference_type, const_pointer, const_reference, pointer, reference - > const_iterator; - - inline static pointer get_base(iterator it) { return it.base(); } - inline static const_pointer get_base(const_iterator it) { return it.base(); } - -#else - typedef byte* iterator; - typedef const byte* const_iterator; - - inline static pointer get_base(iterator it) { return it; } - inline static const_pointer get_base(const_iterator it) { return it; } - -#endif - -#if (_MSC_VER >= 1200) && (_MSC_VER < 1300) - typedef std::reverse_iterator - < iterator, value_type, reference, pointer, difference_type - > reverse_iterator; - - typedef std::reverse_iterator - < const_iterator, value_type, const_reference, const_pointer, difference_type - > const_reverse_iterator; - -#else - typedef std::reverse_iterator reverse_iterator; - typedef std::reverse_iterator const_reverse_iterator; - -#endif - // construct/copy/destroy - Blob(); - - explicit Blob(allocator_type* allocator); - explicit Blob(const char* str, allocator_type* allocator = dAllocator); - -#ifndef NO_STL_SUPPORT - explicit Blob(std::string& str, allocator_type* allocator = dAllocator); - explicit Blob(const std::string& str, allocator_type* allocator = dAllocator); -#endif // NO_STL_SUPPORT - - explicit Blob(const byte_array& ba, allocator_type* allocator = dAllocator); - explicit Blob(size_type n, byte v = byte(0), allocator_type* allocator = dAllocator); - - template - Blob(inputit f, inputit l, allocator_type* allocator = dAllocator) - : mFirst(0), mLast(0), mEnd(0), mAllocator(allocator) - { - insert(begin(), f, l); - } - - Blob(move_from other); - Blob(const Blob& other); - ~Blob(); - - Blob& operator=(const Blob& other); - Blob& operator=(move_from other); - - template - void assign(inputit f, inputit l) - { - erase(begin(), end()); - insert(begin(), f, l); - } - - void assign(const byte_array& ba); - void assign(size_type n, byte x = byte(0)); - - // capacity - bool empty() const { return size() == 0; } - size_type size() const { return mFirst == 0 ? 0 : mLast - mFirst; } - size_type capacity() const { return mFirst == 0 ? 0 : mEnd - mFirst; } - size_type max_size() const; - void reserve(size_type n); - void resize(size_type n, byte x = byte(0)); - - // iterators - iterator begin() { return mFirst; } - const_iterator begin() const { return const_iterator(mFirst); } - iterator end() { return mLast; } - const_iterator end() const { return const_iterator(mLast); } - reverse_iterator rbegin() { return reverse_iterator(end()); } - const_reverse_iterator rbegin() const { return const_reverse_iterator(end()); } - reverse_iterator rend() { return reverse_iterator(begin()); } - const_reverse_iterator rend() const { return const_reverse_iterator(begin()); } - - - // element access: - reference at(size_type p); - const_reference at(size_type p) const; - reference operator[](size_type p) { return *(begin() + p); } - const_reference operator[](size_type p) const { return *(begin() + p); } - - reference front() { return *begin(); } - const_reference front() const { return *begin(); } - reference back() { return *(end() - 1); } - const_reference back() const { return *(end() - 1); } - - // modifiers - void push_back(byte x) { insert(end(), x); } - void pop_back() { erase(end() - 1); } - - void insert(iterator p, size_type m, byte x); - iterator insert(iterator p, byte x = byte(0)); - - template - void insert(iterator p, inputit f, inputit l) - { - size_type m = 0; - _distance(f, l, m); - if(size_type(mEnd - mLast) < m) - { - size_type n = size(); - n = aligned_size(n + (m < n ? n : m)); - iterator s = allocate(n, (void*) 0); - iterator q = ucopy(mFirst, p, s); - q = ucopy(f, l, q); - ucopy(p, mLast, q); - _destroy(mFirst, mLast); - deallocate(get_base(mFirst), mEnd - mFirst); - mEnd = s + n; - mLast = s + size() + m; - mFirst = s; - } - else if(size_type(mLast - p) < m) - { - ucopy(p, mLast, p + m); - ucopy(f + (mLast - p), l, mLast); - copy(f, f + (mLast - p), p); - mLast += m; - } - else if(0 < m) - { - ucopy(mLast - m, mLast, mLast); - copy_backward(p, mLast - m, mLast); - copy(f, l, p); - mLast += m; - } - } - - Blob& append(const Blob& x) - { - insert(end(), x.begin(), x.end()); - return *this; - } - - Blob& append(size_type m, byte x) - { - insert(end(), m, x); - return *this; - } - - template - Blob& append(inputit f, inputit l) - { - insert(end(), f, l); - return *this; - } - - iterator erase(iterator p); - iterator erase(iterator f, iterator l); - void clear(); - void swap(Blob& x); - - // used by compare operators - bool _eq(const Blob& x) const; - bool _lt(const Blob& x) const; - - allocator_type* get_allocator() const { return mAllocator; } - static allocator_type* set_default_allocator(allocator_type* allocator) - { - std::swap(dAllocator, allocator); - return allocator; - } - - private: - template - outputit copy(inputit f, inputit l, outputit x) - { - for(; f != l; ++x, ++f) - *x = *f; - return x; - } - - iterator copy_backward(const_iterator f, const_iterator l, iterator x); - - template - outputit ucopy(inputit f, inputit l, outputit p) - { - for(; f != l; ++p, ++f) - construct(get_base(p), *f); - return p; - } - - void fill(iterator f, const_iterator l, byte x); - void ufill(iterator f, size_type n, byte x); - - size_type distance(const_iterator f, const_iterator l) const; - - template - void _distance(inputit f, inputit l, size_type& n) const - { - for(; f != l; ++f) - ++n; - } - - bool equal(const_iterator f, const_iterator l, const_iterator x) const; - bool lexicographical_compare(const_iterator f1, const_iterator l1, const_iterator f2, const_iterator l2) const; - - byte* allocate(size_type n, const void* hint); - void deallocate(pointer p, size_type n); - - void construct(byte* p, const_reference v) { *p = v; } - void destroy(byte* p) { *p = 0; } - - void _destroy(iterator f, iterator l); - - void outofrange() const; - - static size_type aligned_size(size_type size); - - protected: - flags mFlags; - iterator mFirst, mLast, mEnd; - allocator_type* mAllocator; - static allocator_type* dAllocator; - }; - -#ifndef UNDER_CE_30 - std::ostream &operator<<(std::ostream& os, const Blob& blob); -#endif // UNDER_CE_30 - - - // -------------------------------------------------------------------------------- - inline bool operator==(const Blob& x, const Blob&y) - { - return x._eq(y); - } - - inline bool operator!=(const Blob& x, const Blob&y) - { - return !(x._eq(y)); - } - - inline bool operator<(const Blob& x, const Blob&y) - { - return x._lt(y); - } - - inline bool operator>=(const Blob& x, const Blob&y) - { - return !(x._lt(y)); - } - - inline bool operator<=(const Blob& x, const Blob&y) - { - return x._eq(y) || x._lt(y); - } - - inline bool operator>(const Blob& x, const Blob&y) - { - return !(x._eq(y) || x._lt(y)); - } - -} // namespace act - -// -------------------------------------------------------------------------------- -namespace std -{ - // --------------------------------------------------------------------------- - inline void swap(act::Blob& left, act::Blob& right) { left.swap(right); } - -} // namespace std - -#endif // ACT_Blob_h diff --git a/actlibrary/MacOSX-10.4-ppc/Release/include/actBlockCipherModeKit.h b/actlibrary/MacOSX-10.4-ppc/Release/include/actBlockCipherModeKit.h deleted file mode 100644 index ee2bd0a..0000000 --- a/actlibrary/MacOSX-10.4-ppc/Release/include/actBlockCipherModeKit.h +++ /dev/null @@ -1,27 +0,0 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actBlockCipherModeKit.h -// Product: cv act library -// Purpose: declaration of all factory functions -// -// Copyright: (c) 2000 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - - -#ifndef ACT_BlockCipherModeKit_h -#define ACT_BlockCipherModeKit_h - -namespace act -{ - class IBlockCipherMode; - - IBlockCipherMode* CreateECBMode(); - IBlockCipherMode* CreateCBCMode(); - IBlockCipherMode* CreateCFBMode(); - IBlockCipherMode* CreateOFBMode(); - IBlockCipherMode* CreateCTRMode(); -} -#endif - diff --git a/actlibrary/MacOSX-10.4-ppc/Release/include/actBlockCipherModeReg.h b/actlibrary/MacOSX-10.4-ppc/Release/include/actBlockCipherModeReg.h deleted file mode 100644 index 6ce7d63..0000000 --- a/actlibrary/MacOSX-10.4-ppc/Release/include/actBlockCipherModeReg.h +++ /dev/null @@ -1,40 +0,0 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actBlockCipherModeReg.h -// Product: cv act library -// Purpose: registry for factory functions in actBlockCipherModeKit.h -// -// Copyright: (c) 2000 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_BlockCipherModeReg_h -#define ACT_BlockCipherModeReg_h - -namespace act -{ - class IBlockCipherMode; - - typedef IBlockCipherMode* (*CreateBlockCipherModePtr)(); - - struct BlockCipherModeMapEntry - { - const char* Name; - CreateBlockCipherModePtr CreatePtr; - }; - - class BlockCipherModeReg - { - public: - static IBlockCipherMode* CreateBlockCipherMode(const char* name); - static CreateBlockCipherModePtr GetCreatePointer(const char* name); - static const char* GetName(void* createptr); - static const char* GetNextName(const char* name); - static void Insert(const char* name, CreateBlockCipherModePtr createptr); - static void Insert(const BlockCipherModeMapEntry* map); - }; - -} // namespace act - -#endif // ACT_BlockCipherModeReg_h diff --git a/actlibrary/MacOSX-10.4-ppc/Release/include/actCRL.h b/actlibrary/MacOSX-10.4-ppc/Release/include/actCRL.h deleted file mode 100644 index 9922439..0000000 --- a/actlibrary/MacOSX-10.4-ppc/Release/include/actCRL.h +++ /dev/null @@ -1,68 +0,0 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actCRL.h -// Product: cv act library -// Purpose: -// -// Copyright: (c) 2000 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_CRL_h -#define ACT_CRL_h -#include "actBasics.h" - -namespace act -{ - class IKey; - class Blob; - class ICertificate; - class ICRL; - class CRL - { - public: - CRL(const char* type); - CRL(const char* type, const Blob& crlblob); - CRL(const CRL& crl); - - void SetParam(paramid_t id,const Blob& blob); - void SetParam(paramid_t id,int val); - void SetParam(paramid_t id,const char* cstr); - void GetParam(paramid_t id,Blob& blob) const; - int GetParam(paramid_t) const; - - void Import(const Blob& crl); - void Export(Blob& crl) const; - - void Revoke(const ICertificate* cert); - bool IsRevoked(const ICertificate* Cert) const; - void RemoveRevokation(const ICertificate* cert); - - void Revoke(const Blob& blob); - bool IsRevoked(const Blob& blob) const; - void RemoveRevokation(const Blob& blob); - - void Sign(const IKey* privkey); - int Verify(const IKey* pubkey) const; - - const ICRL* GetPointer() const; - ICRL* GetPointer(); - - operator const ICRL* () const; - operator ICRL* (); - - - ICRL* ReleasePointer(); - - CRL& operator= (const CRL& crl); - - ~CRL(); - private: - ICRL* mCRL; - }; - -}; // namespace act - -#endif - diff --git a/actlibrary/MacOSX-10.4-ppc/Release/include/actCertificateKit.h b/actlibrary/MacOSX-10.4-ppc/Release/include/actCertificateKit.h deleted file mode 100644 index 9387a39..0000000 --- a/actlibrary/MacOSX-10.4-ppc/Release/include/actCertificateKit.h +++ /dev/null @@ -1,28 +0,0 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actCertificateKit.h -// Product: cv act library -// Purpose: declaration of all factory functions -// -// Copyright: (c) 2000 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_CERTIFICATEKIT_H -#define ACT_CERTIFICATEKIT_H - -namespace act -{ - class ICertificate; - class ICRL; - class ICVCertRequest; - - ICertificate* CreateX509Certificate(); - ICRL* CreateX509CRL(); - - ICertificate* CreateCVCertificate(); - ICVCertRequest* CreateCVCertRequest(); -} -#endif - diff --git a/actlibrary/MacOSX-10.4-ppc/Release/include/actCertificateReg.h b/actlibrary/MacOSX-10.4-ppc/Release/include/actCertificateReg.h deleted file mode 100644 index afd7a75..0000000 --- a/actlibrary/MacOSX-10.4-ppc/Release/include/actCertificateReg.h +++ /dev/null @@ -1,56 +0,0 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actCertificateReg.h -// Product: cv act library -// Purpose: -// -// Copyright: (c) 2000 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_CERTIFICATEREG_H -#define ACT_CERTIFICATEREG_H - -namespace act -{ - class ICertificate; - class ICRL; - - typedef ICertificate* (*CreateCertificatePtr)(); - typedef ICRL* (*CreateCRLPtr)(); - - struct CertificateMapEntry { - const char* Name; - CreateCertificatePtr CreatePtr; - }; - - struct CRLMapEntry { - const char* Name; - CreateCRLPtr CreatePtr; - }; - - class CertificateReg - { - public: - static ICertificate* CreateCertificate(const char* name); - static CreateCertificatePtr GetCreatePointer(const char* name); - static const char* GetName(void* createptr); - static const char* GetNextName(const char* name); - static void Insert(const char* name, CreateCertificatePtr createptr); - static void Insert(const CertificateMapEntry* certmap); - }; - - class CRLReg - { - public: - static ICRL* CreateCRL(const char* name); - static CreateCRLPtr GetCreatePointer(const char* name); - static const char* GetName(void* createptr); - static const char* GetNextName(const char* name); - static void Insert(const char* name, CreateCRLPtr createptr); - static void Insert(const CRLMapEntry* certmap); - }; -} -#endif - diff --git a/actlibrary/MacOSX-10.4-ppc/Release/include/actDate.h b/actlibrary/MacOSX-10.4-ppc/Release/include/actDate.h deleted file mode 100644 index 5d08c74..0000000 --- a/actlibrary/MacOSX-10.4-ppc/Release/include/actDate.h +++ /dev/null @@ -1,109 +0,0 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actDate.h -// Product: cv act library -// Purpose: The Date function used in act Library -// -// Copyright: (c) 2000 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_Date_h -#define ACT_Date_h - -#include "actBasics.h" - -#if defined(ACT_POSIX) -# include -#endif - -namespace act -{ - class Blob; - - class Date - { - public: - Date(); //today - Date(int day, int month ,int year); - Date(int day, int month, int year, int hour, int minute, int sec); - Date(const Blob& der); - - Date(const unsigned char* ch, const unsigned int size); - - Date& SetToday(); - - int GetDay() const { return m_day; } - int GetMonth() const { return m_month; } - int GetYear() const { return m_year; } - int GetHour() const { return m_hour; } - int GetMinute() const { return m_min; } - int GetSecond() const { return m_sec; } - - void IgnoreTime(bool b); // ignore time(hour, min,sec) in the operators - const Date& operator=(const Date&); - bool operator>(const Date&) const; - bool operator>=(const Date&) const; - bool operator<(const Date&) const; - bool operator<=(const Date&) const; - bool operator==(const Date&) const; - bool operator!=(const Date&) const; - - const Date& AddMonths(int m); - const Date& SubMonths(int m); - const Date& AddYears(int y); - const Date& SubYears(int y); - const Date& AddDays(int d); - const Date& SubDays(int d); - const Date& AddHours(int h); - const Date& SubHours(int h); - const Date& AddMinutes(int m); - const Date& SubMinutes(int m); - const Date& AddSecond(int m); - const Date& SubSecond(int m); - - int DayOfWeek() const; // 0:Sunday, 1=Monday ... 6=Saturday - int IsLeap(int y) const; // 1:leapyear, 0:else - int DaysPerMonth(int m, int y) const; - long GetDifference(const Date& d2) const; - - long GetJulian() const; - long GetJulian(int d, int m, int y) const; - void ConvertFromJulian(long jd, int& d, int& m, int& y); - - Blob Encode() const; - size_t Encode(Blob& encoded) const; - - Blob EncodeToGeneralizedTime() const; - Blob GetGeneralizedTimeString() const; - Blob GetLocalTimeString() const; // fixed format: "DD/MM/YYYY HH:MM:SS" - - operator Blob() const; - - int GetDayFromWeekDay (int weekday, int year, int month, int which); - -#if defined(ACT_POSIX) - static void copyDatetm(act::Date a, struct tm& b); - static void copytmDate(struct tm a, act::Date& b); -#endif - - private: - Date& SetYear(int year) { m_year = year; return *this; } - Date& SetMonth(int month) { m_month = month; return *this; } - Date& SetDay(int day) { m_day = day; return *this; } - Date& SetHour(int hour) { m_hour = hour; return *this; } - Date& SetMinute(int minute) { m_min = minute; return *this; } - Date& SetSecond(int sec) { m_sec = sec; return *this; } - bool IsValid() const; - void AdjustDays(); - - private: - int m_day, m_month, m_year; - int m_hour, m_min, m_sec; - bool m_ignore_time; - }; - -} // namespace act - -#endif // ACT_Date_h diff --git a/actlibrary/MacOSX-10.4-ppc/Release/include/actDefaultRNG.h b/actlibrary/MacOSX-10.4-ppc/Release/include/actDefaultRNG.h deleted file mode 100644 index 6d44af6..0000000 --- a/actlibrary/MacOSX-10.4-ppc/Release/include/actDefaultRNG.h +++ /dev/null @@ -1,24 +0,0 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actDefaultRNG.h -// Product: cv act library -// Purpose: actDefaultRNG.h provides defaults for the class IRNGAlg. -// -// Copyright: (c) 2000 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_DefaultRNG_h -#define ACT_DefaultRNG_h -namespace act -{ - class IRNGAlg; - typedef IRNGAlg* (*CreateRNGPtr)(); - - extern CreateRNGPtr CreateFastRNG; - extern CreateRNGPtr CreateStrongRNG; -} - -#endif - diff --git a/actlibrary/MacOSX-10.4-ppc/Release/include/actDerivatorReg.h b/actlibrary/MacOSX-10.4-ppc/Release/include/actDerivatorReg.h deleted file mode 100644 index 32fe672..0000000 --- a/actlibrary/MacOSX-10.4-ppc/Release/include/actDerivatorReg.h +++ /dev/null @@ -1,41 +0,0 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actDerivatorReg.h -// Product: cv act library -// Purpose: registry for the factory functions in actDerivatorKit.h -// -// Copyright: (c) 2000 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_DerivatorReg_h -#define ACT_DerivatorReg_h - -namespace act -{ - class IDerivator; - class Blob; - - typedef IDerivator* (*CreateDerivatorPtr)(); - - struct DerivatorMapEntry - { - const char* Name; - CreateDerivatorPtr CreatePtr; - }; - - class DerivatorReg - { - public: - static IDerivator* CreateDerivator(const char* name); - static CreateDerivatorPtr GetCreatePointer(const char* name); - static const char* GetName(void* createptr); - static const char* GetNextName(const char* name); - static void Insert(const char* name, CreateDerivatorPtr createptr); - static void Insert(const DerivatorMapEntry* derivatormap); - }; - -} // namespace act - -#endif // ACT_DerivatorReg_h diff --git a/actlibrary/MacOSX-10.4-ppc/Release/include/actEMSAReg.h b/actlibrary/MacOSX-10.4-ppc/Release/include/actEMSAReg.h deleted file mode 100644 index c5e92f0..0000000 --- a/actlibrary/MacOSX-10.4-ppc/Release/include/actEMSAReg.h +++ /dev/null @@ -1,40 +0,0 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actEMSAReg.h -// Product: cv act library -// Purpose: registry for factory functions in actEMSAKit.h -// -// Copyright: (c) 2000 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_EMSAReg_h -#define ACT_EMSAReg_h - -namespace act -{ - class IEMSAAlg; - - typedef IEMSAAlg* (*CreateEMSAPtr)(); - - struct EMSAMapEntry - { - const char* Name; - CreateEMSAPtr CreatePtr; - }; - - class EMSAReg - { - public: - static IEMSAAlg* CreateEMSAAlg(const char* name); - static CreateEMSAPtr GetCreatePointer(const char* name); - static const char* GetName(void* createptr); - static const char* GetNextName(const char* name); - static void Insert(const char* name, CreateEMSAPtr createptr); - static void Insert(const EMSAMapEntry* map); - }; - -} // namespace act - -#endif // ACT_EMSAReg_h diff --git a/actlibrary/MacOSX-10.4-ppc/Release/include/actFactoryReg.h b/actlibrary/MacOSX-10.4-ppc/Release/include/actFactoryReg.h deleted file mode 100644 index 175da36..0000000 --- a/actlibrary/MacOSX-10.4-ppc/Release/include/actFactoryReg.h +++ /dev/null @@ -1,146 +0,0 @@ -// --------------------------------------------------------------------------- -// Name: actFactoryReg.h -// Product: cv act library -// Purpose: Templates for simple factory-registry implementation. -// -// Copyright: (c) 2008 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -// -// Autor: Markus Tesche -// Date: 06/02/2008 -// --------------------------------------------------------------------------- - -#ifndef ACT_FactoryReg_h -#define ACT_FactoryReg_h - -#include -#include - -namespace act -{ - // - // FactoryMapEntry<> - template - struct FactoryMapEntry - { - typedef char KeyType; - - struct KeyLessPredicate - : public std::binary_function - { - bool operator()(const KeyType* left, const KeyType* right) const - { - if(left == 0) return false; - if(right == 0) return true; - return strcmp(left, right) < 0; - } - }; - - typedef std::map - < const KeyType*, CreatePtrT, KeyLessPredicate - > MapType; - - static const KeyType* Empty; - - const KeyType* Name; - CreatePtrT createPtr; - }; - - template - const typename FactoryMapEntry::KeyType* - FactoryMapEntry::Empty = ""; - - - // - // FactoryReg<> - template - < - class ResultT, - class CreatePtrT, - class MapEntryT, - class MapT = typename MapEntryT::MapType - > - class FactoryReg - { - public: - typedef typename MapEntryT::KeyType KeyType; - typedef MapEntryT MapEntryType; - typedef MapT MapType; - - // Creates default ... - static ResultT* Create(const KeyType* name) - { - if(name == 0) name = MapEntryType::Empty; - typename MapType::const_iterator result(g_map.find(name)); - return result != g_map.end() ? result->second(name) : 0; - } - - template - static ResultT* Create(const KeyType* name, ParamT* param) - { - if(name == 0) name = MapEntryType::Empty; - typename MapType::const_iterator result(g_map.find(name)); - return result != g_map.end() ? result->second(name, param) : 0; - } - - template - static ResultT* Create(ParamT* param) { return Create(0, param); } - static ResultT* Create() { return Create(0); } - - static const KeyType* GetName(void* createptr) - { - if(createptr == 0) return 0; - for(typename MapType::const_iterator i(g_map.begin()), - end(g_map.end()); i != end; ++i) - if(i->second == createptr) - return i->first; - - return 0; - } - - static const KeyType* GetNextName(const KeyType* name) - { - if(name == 0) - return g_map.empty() == true ? 0 : g_map.begin()->first; - - typename MapType::const_iterator result(g_map.find(name)); - return result == g_map.end() || ++result == g_map.end() ? 0 : result->first; - } - - static CreatePtrT GetCreatePointer(const KeyType* name) - { - if(name != 0) - { - typename MapType::const_iterator result(g_map.find(name)); - return result != g_map.end() ? result->second : 0; - } - return 0; - } - - static void Insert(const KeyType* name, CreatePtrT createPtr) - { - std::pair - result(g_map.insert(typename MapType::value_type(name, createPtr))); - } - - static void Insert(const MapEntryType* entry) - { - while(entry->Name != 0) - { - Insert(entry->Name, entry->createPtr); - ++entry; - } - } - - protected: - static MapT g_map; - }; - - template - MapT FactoryReg::g_map; - -} // namespace act - -#endif // ACT_FactoryReg_h diff --git a/actlibrary/MacOSX-10.4-ppc/Release/include/actHandle.h b/actlibrary/MacOSX-10.4-ppc/Release/include/actHandle.h deleted file mode 100644 index fb01279..0000000 --- a/actlibrary/MacOSX-10.4-ppc/Release/include/actHandle.h +++ /dev/null @@ -1,98 +0,0 @@ -////////////////////////////////////////////////////////////////////////// -// Name: actHandle.h -// Product: cv act library -// Purpose: Handle helper templates -// -// Copyright: (c) 2010 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -// -// Autor: Markus Tesche -// Date: 07/27/2010 -////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_Handle_h -#define ACT_Handle_h - -#include "actMove.h" -#include "actException.h" - -namespace act -{ - // - // Handle - class Handle - { - public: - virtual ~Handle() { /* essential */ } - - template TypeT* as() const; - template TypeT& requiredAs() const; - - template - friend inline TypeT& getPointer(const Handle& handle) - { - return handle.as(); - } - - template - friend inline TypeT& getRef(const Handle& handle) - { - return handle.requiredAs(); - } - }; - - // - // ValueHandle<> - template - class ValueHandle : public Handle - { - public: - typedef TypeT value_type; - - ValueHandle() : m_val() { } - explicit ValueHandle(const TypeT& other) : m_val(other) { } - - template - explicit ValueHandle(move_from other) : m_val() { other.move(m_val); } - - template void operator=(const O& other) { m_val = other; } - template void operator=(move_from other) { other.move(m_val); } - - inline TypeT& valueRef() const { return m_val; } - - inline operator TypeT&() const { return m_val; } - - inline TypeT& operator*() const { return m_val; } - inline TypeT* operator->() const { return &m_val; } - - private: - mutable TypeT m_val; - - private: - friend class Handle; - }; - - // - // Handle::as<> - template - inline TypeT* Handle::as() const - { - const ValueHandle* self = dynamic_cast*>(this); - return self != 0 ? &self->m_val : 0; - } - - // - // Handle::requiredAs<> - template - inline TypeT& Handle::requiredAs() const - { - TypeT* value = as(); - if(value != 0) return *value; - throw NullPointerException("invalid handle value type"); - } - -} // namespace act - -#endif // ACT_Handle_h diff --git a/actlibrary/MacOSX-10.4-ppc/Release/include/actHashReg.h b/actlibrary/MacOSX-10.4-ppc/Release/include/actHashReg.h deleted file mode 100644 index 896039d..0000000 --- a/actlibrary/MacOSX-10.4-ppc/Release/include/actHashReg.h +++ /dev/null @@ -1,40 +0,0 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actHashReg.h -// Product: cv act library -// Purpose: registry for factory functions in actHashKit.h -// -// Copyright: (c) 2000 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_HashReg_H -#define ACT_HashReg_H - -namespace act -{ - class IHashAlg; - - typedef IHashAlg* (*CreateHashPtr)(); - - struct HashMapEntry - { - const char* Name; - CreateHashPtr CreatePtr; - }; - - class HashReg - { - public: - static IHashAlg* CreateHashAlg(const char* name); - static CreateHashPtr GetCreatePointer(const char* name); - static const char* GetName(void* createptr); - static const char* GetNextName(const char* name); - static void Insert(const char* name, CreateHashPtr createptr); - static void Insert(const HashMapEntry* hashmap); - }; - -} // namespace act - -#endif // ACT_HashReg_H diff --git a/actlibrary/MacOSX-10.4-ppc/Release/include/actIAccessCondition.h b/actlibrary/MacOSX-10.4-ppc/Release/include/actIAccessCondition.h deleted file mode 100644 index a6d9da3..0000000 --- a/actlibrary/MacOSX-10.4-ppc/Release/include/actIAccessCondition.h +++ /dev/null @@ -1,163 +0,0 @@ -// --------------------------------------------------------------------------- -// Name: actIAccessConditions.h -// Product: cv act library -// Purpose: The IAccessCondition interface is used to map access conditions for -// Files, Keys etc. on specific smartcard's -// -// Copyright: (c) 2008 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -// -// Autor: Markus Tesche -// Date: 10/29/2008 -// --------------------------------------------------------------------------- - -#ifndef ACT_IAccessConditions_h -#define ACT_IAccessConditions_h - -#include "actBlob.h" -#include "actIRefCounted.h" - -namespace act -{ - class IToken; - class ISCardOS; - - enum - { - AC_AUTH_ID_MASK = 0x7f, - }; - - enum ACType - { - AC_TYPE_UNKNOWN = 0, - AC_TYPE_RAW = 1, // Already transformed for specific OS - AC_TYPE_GENERIC = 2 // OS independant, requires to be transformed before used - }; - - // SCard object specific rights by type - enum ACSCardObjType - { - // { AC_TOKEN_USER, AC_TOKEN_SO, AC_TOKEN_USER_OR_SO } - AC_OBJ_MAP = 0x00, // Used for access condition (f.e. tag 0x86) - AC_OBJREF_MAP = 0x01, // Used as object reference for access condition - - AC_RIGHTS_EF = 0x02, // Access Rights for EF's - AC_RIGHTS_DF = 0x03, // Access Rights for DF's - AC_RIGHTS_KEY = 0x04, // Access Rights for Key Objects - AC_RIGHTS_AUTH = 0x05, // Access Rights for Authentication Objects - // ... add additional types here - }; - - // SCard specific rights - enum ACSCard - { - AC_ALWAYS = 0x00, - // Any other from 0x01..0x7f - AC_NEVER = 0xff - }; - - // Token specific rights - enum ACToken - { - AC_TOKEN_USER = 0x80, - AC_TOKEN_SO = 0x81, - AC_TOKEN_USER_OR_SO = 0x82, - AC_TOKEN_USER_AND_SO = 0x83, - AC_TOKEN_ADMIN = 0x84, - - AC_TOKEN_FLAG = 0x80, - }; - - // AuthId Index - enum AIIndex - { - AI_INVALID = -1, - AI_USER = AC_TOKEN_USER & ~AC_TOKEN_FLAG, - AI_SO = AC_TOKEN_SO & ~AC_TOKEN_FLAG, - AI_USER_OR_SO = AC_TOKEN_USER_OR_SO & ~AC_TOKEN_FLAG, - AI_USER_AND_SO = AC_TOKEN_USER_AND_SO & ~AC_TOKEN_FLAG, - AI_ADMIN = AC_TOKEN_ADMIN & ~AC_TOKEN_FLAG, - }; - - enum ACOperation - { - AC_OR = 0x00, - AC_AND = 0x01, - }; - - enum ACMode - { - AC_MODE_READ = 0, - AC_MODE_UPDATE = 1, - AC_MODE_EXECUTE = 2, - AC_MODE_DELETE = 3, - }; - - enum ACRight - { - // Used for EF/DF - AC_READ = 0x00, - AC_WRITE = 0x01, - AC_UPDATE = 0x01, - AC_APPEND = 0x02, - AC_DEACTIVATE = 0x03, - AC_LOCK = 0x03, - AC_ACTIVATE = 0x04, - AC_UNLOCK = 0x04, - AC_DELETE = 0x05, - AC_ADMIN = 0x06, - AC_CREATE = 0x07, - AC_INCREASE = 0x08, - AC_DECREASE = 0x09, - AC_TERMINATE = 0x0a, - - // Used for Objects - AC_USE = 0x00, - AC_CHANGE = 0x01, - AC_UNBLOCK = 0x02, - AC_GENKEY = 0x07, - AC_SIGN = 0x08, - AC_DEC = 0x09, - AC_ENC = 0x0a, - }; - - enum ACRange - { - AC_FIRST = AC_READ, - AC_LAST = AC_ENC, - }; - - // - // IAccessCondition - class IAccessCondition : public IRefCounted - { - public: - virtual IAccessCondition* Clone() const = 0; - - virtual const char* GetName() const = 0; - virtual ACType GetAcType() const = 0; - - virtual Blob& GetAccessRights() = 0; - virtual const Blob& GetAccessRights() const = 0; - - virtual IAccessCondition* ConvertAc(const IToken* token, ACType acdest) const = 0; - }; - - // - // IAcConverter - class IAcConverter - { - protected: - virtual ~IAcConverter() { } - - public: - virtual IAccessCondition* ConvertAc(const IAccessCondition* ac, ACType acdest) const = 0; - virtual Blob ConvertAc(const IAccessCondition* ac) const = 0; - virtual IAccessCondition* ConvertAc(const Blob& ac) const = 0; - }; - -} // namespace act - -#endif // ACT_IAccessConditions_h diff --git a/actlibrary/MacOSX-10.4-ppc/Release/include/actIAgreementKey.h b/actlibrary/MacOSX-10.4-ppc/Release/include/actIAgreementKey.h deleted file mode 100644 index 7ff4ef1..0000000 --- a/actlibrary/MacOSX-10.4-ppc/Release/include/actIAgreementKey.h +++ /dev/null @@ -1,32 +0,0 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actIAgreementKey.h -// Product: cv act library -// Purpose: The abstract class IAgreementKey derived from IKey is the -// interface to all key agreements. -// -// Copyright: (c) 2000 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_IAgreementKey_H -#define ACT_IAgreementKey_H - -#include "actIKey.h" - -namespace act -{ - class IDerivator; - - class IAgreementKey : public IKey - { - public: - virtual void SetDerivator(IDerivator* derivator) = 0; - virtual const IDerivator* GetDerivator() const = 0; - virtual IDerivator* GetDerivator() = 0; - }; - -} // namespace act - -#endif // ACT_IAgreementKey_H diff --git a/actlibrary/MacOSX-10.4-ppc/Release/include/actIBlockCipherKey.h b/actlibrary/MacOSX-10.4-ppc/Release/include/actIBlockCipherKey.h deleted file mode 100644 index 3b93cd7..0000000 --- a/actlibrary/MacOSX-10.4-ppc/Release/include/actIBlockCipherKey.h +++ /dev/null @@ -1,48 +0,0 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actIBlockCipherKey.h -// Product: cv act library -// Purpose: The class IBlockCipherKey extends the interface of the class IKey -// and supports the peculiarities of symmetric keys. -// -// -// Copyright: (c) 2000 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_IBlockCipherKey_h -#define ACT_IBlockCipherKey_h - -#include "actIKey.h" - -namespace act -{ - class IPadding; - class IBlockCipher; - class IBlockCipherMode; - class IDerivator; - - class IBlockCipherKey : public IKey - { - public: - virtual void SetPadding(IPadding* padding) = 0; - virtual const IPadding* GetPadding() const = 0; - virtual IPadding* GetPadding() = 0; - - virtual void SetCipher(IBlockCipher* cipher) = 0; - virtual const IBlockCipher* GetCipher() const = 0; - virtual IBlockCipher* GetCipher() = 0; - - virtual void SetMode(IBlockCipherMode* mode) = 0; - virtual const IBlockCipherMode* GetMode() const = 0; - virtual IBlockCipherMode* GetMode() = 0; - - virtual void SetDerivator(IDerivator* derive) = 0; - virtual const IDerivator* GetDerivator() const = 0; - virtual IDerivator* GetDerivator() = 0; - }; - -} //namespace act - -#endif // ACT_IBlockCipherKey_h diff --git a/actlibrary/MacOSX-10.4-ppc/Release/include/actICBCMACKey.h b/actlibrary/MacOSX-10.4-ppc/Release/include/actICBCMACKey.h deleted file mode 100644 index d8dbe6c..0000000 --- a/actlibrary/MacOSX-10.4-ppc/Release/include/actICBCMACKey.h +++ /dev/null @@ -1,31 +0,0 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actICBCMACKey.h -// Product: cv act library -// Purpose: interface for the class CBCMAC. -// -// Copyright: (c) 2000 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_ICBCMACKey_h -#define ACT_ICBCMACKey_h - -#include "actIMACKey.h" - -namespace act -{ - class IBlockCipher; - - class ICBCMACKey : public IMACKey - { - public: - virtual void SetCipher(IBlockCipher* cipher) = 0; - virtual const IBlockCipher* GetCipher() const = 0; - virtual IBlockCipher* GetCipher() = 0; - }; - -} // namespace act - -#endif // ACT_ICBCMACKey_h diff --git a/actlibrary/MacOSX-10.4-ppc/Release/include/actIDerivator.h b/actlibrary/MacOSX-10.4-ppc/Release/include/actIDerivator.h deleted file mode 100644 index e8b7140..0000000 --- a/actlibrary/MacOSX-10.4-ppc/Release/include/actIDerivator.h +++ /dev/null @@ -1,45 +0,0 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actIDerivator.h -// Product: cv act library -// Purpose: This interface provides a shared secret key (the last step in -// a Key Agreement Scheme). -// -// Copyright: (c) 2006 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_IDerivator_h -#define ACT_IDerivator_h - -#include"actBasics.h" - -namespace act -{ - class Blob; - - class IDerivator - { - public: - virtual IDerivator* Clone() const=0; - - virtual void Import(const Blob &blob)=0; - virtual void Export(Blob &blob) const=0; - - virtual void SetParam(paramid_t id,const Blob &blob)=0; - virtual void SetParam(paramid_t id,int val)=0; - virtual void SetParam(paramid_t id,const char* cstr)=0; - virtual void GetParam(paramid_t id,Blob &blob) const=0; - virtual int GetParam(paramid_t) const=0; - - virtual void Derive(const Blob& secret, const Blob& salt, Blob& keymat) const=0; - - virtual void* GetCreatePointer() const =0; - virtual ~IDerivator() {} - }; -} // namespace act - -#endif - - diff --git a/actlibrary/MacOSX-10.4-ppc/Release/include/actIEMSAAlg.h b/actlibrary/MacOSX-10.4-ppc/Release/include/actIEMSAAlg.h deleted file mode 100644 index 0aaec1d..0000000 --- a/actlibrary/MacOSX-10.4-ppc/Release/include/actIEMSAAlg.h +++ /dev/null @@ -1,49 +0,0 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actIEMSAAlg.h -// Product: cv act library -// Purpose: IEMSAAlg (Encoding Methods for Signatures with Appendix) is an -// abstract class derived from IAlgorithm. Encoding methods do not -// use keys. These algorithms prepare the data to sign. They can be -// implemented with or without hash functions. -// -// Copyright: (c) 2000 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_IEMSAAlg_h -#define ACT_IEMSAAlg_h - -#include "actBasics.h" -#include "actIAlgorithm.h" - -namespace act -{ - - class IEMSAAlg : public IAlgorithm - { - public: - virtual IEMSAAlg* Clone() const =0; - - virtual void Import(const Blob &blob) =0; - virtual void Export(Blob &blob) const =0; - virtual void SetParam(paramid_t id,const Blob &blob) =0; - virtual void SetParam(paramid_t id,int val) =0; - virtual void SetParam(paramid_t id,const char* cstr) =0; - virtual void GetParam(paramid_t id,Blob &blob) const =0; - virtual int GetParam(paramid_t) const =0; - - virtual void Reset(size_t sizeinbits) =0; - - virtual void* GetCreatePointer() const =0; - - virtual bool Verify(const Blob &em, const Blob &sig_inv) =0; - - virtual ~IEMSAAlg(){} - }; -} // namespace act - -#endif - - diff --git a/actlibrary/MacOSX-10.4-ppc/Release/include/actIEMSAWithHashAlg.h b/actlibrary/MacOSX-10.4-ppc/Release/include/actIEMSAWithHashAlg.h deleted file mode 100644 index 9a928c1..0000000 --- a/actlibrary/MacOSX-10.4-ppc/Release/include/actIEMSAWithHashAlg.h +++ /dev/null @@ -1,34 +0,0 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actIEMSAWithHashAlg.h -// Product: cv act library -// Purpose: IEMSAWithHashAlg is the abstract class derived from IEMSAAlg -// which provides access on the aggregated hashobject of an -// EMSA-object. -// -// Copyright: (c) 2000 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_IEMSAWithHashAlg_h -#define ACT_IEMSAWithHashAlg_h - -#include "actIEMSAAlg.h" - -namespace act -{ - class IHashAlg; - - class IEMSAWithHashAlg : public IEMSAAlg - { - public: - virtual void SetHash(IHashAlg* hash) =0; - virtual const IHashAlg* GetHash() const =0; - virtual IHashAlg* GetHash() =0; - }; -} // namespace act - -#endif - - diff --git a/actlibrary/MacOSX-10.4-ppc/Release/include/actIEventHandler.h b/actlibrary/MacOSX-10.4-ppc/Release/include/actIEventHandler.h deleted file mode 100644 index 115662f..0000000 --- a/actlibrary/MacOSX-10.4-ppc/Release/include/actIEventHandler.h +++ /dev/null @@ -1,54 +0,0 @@ -// --------------------------------------------------------------------------- -// Name: actIEventHandler.h -// Product: cv act library -// Purpose: Interfaces required to receive token, slot or subsystem events -// -// Copyright: (c) 2002 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -// -// Autor: Dr. Xiangdong Wang (XWG) -// Markus Tesche -// Date: 03/26/2002 -// --------------------------------------------------------------------------- - -#ifndef ACT_IEventHandler_h -#define ACT_IEventHandler_h - -#include "actTypeTags.h" -#include "actIRefCounted.h" - -namespace act -{ - enum EventCode - { - TOKEN_REMOVED = 0x00000010, - TOKEN_INSERTED = 0x00000020, - SLOT_REMOVED = 0x00000040, - SLOT_INSERTED = 0x00000080, - SUBSYSTEM_STOPPED = 0x00000100, - SUBSYSTEM_STARTED = 0x00000200, - MONITORING_STOPPED = 0x00000400, - MONITORING_STARTED = 0x00000800, - MONITORING_ERROR = 0x80000000, - }; - - class ISubsystem; - class IEventMonitoring; - - // - // IEventHandler - class IEventHandler : public IRefCounted - { - public: - virtual IEventHandler* Clone() = 0; - virtual void Source(IEventMonitoring* source) = 0; - virtual void OnEvent(int event, ISubsystem* source) = 0; - }; - - typedef TypeTag TagEH; - -} // namespace act - -#endif // ACT_IEventHandler_h diff --git a/actlibrary/MacOSX-10.4-ppc/Release/include/actIHashAlg.h b/actlibrary/MacOSX-10.4-ppc/Release/include/actIHashAlg.h deleted file mode 100644 index 8620c51..0000000 --- a/actlibrary/MacOSX-10.4-ppc/Release/include/actIHashAlg.h +++ /dev/null @@ -1,42 +0,0 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actIHashAlg.h -// Product: cv act library -// Purpose: IHashAlg is an abstract base class, which provides the interface -// of all hash-algorithms. -// -// Copyright: (c) 2000 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_IHASHALG_H -#define ACT_IHASHALG_H - -#include "actIAlgorithm.h" - -namespace act -{ - - class IHashAlg : public IAlgorithm - { - public: - virtual IHashAlg* Clone() const =0; - virtual void Import(const Blob& indata) =0; - virtual void Export(Blob& outdata) const =0; - virtual void SetParam(paramid_t id,const Blob &blob) =0; - virtual void SetParam(paramid_t id,int val) =0; - virtual void SetParam(paramid_t id,const char* cstr) =0; - virtual void GetParam(paramid_t id,Blob &blob) const =0; - virtual int GetParam(paramid_t) const =0; - virtual size_t GetBlockSize() const = 0; - virtual size_t GetHashSize() const = 0; - virtual void Reset() =0; - virtual void* GetCreatePointer() const =0; - virtual ~IHashAlg() {} - }; - -} // namespace act -#endif - - diff --git a/actlibrary/MacOSX-10.4-ppc/Release/include/actIKey.h b/actlibrary/MacOSX-10.4-ppc/Release/include/actIKey.h deleted file mode 100644 index 3ed1a9e..0000000 --- a/actlibrary/MacOSX-10.4-ppc/Release/include/actIKey.h +++ /dev/null @@ -1,45 +0,0 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actIKey.h -// Product: cv act library -// Purpose: IKey is an abstract base class. All concrete Key-classes are -// derived from IKey. -// -// Copyright: (c) 2000 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_IKey_h -#define ACT_IKey_h - -#include "actIParam.h" -#include "actBlob.h" - -namespace act -{ - class IAlgorithm; - class IRNGAlg; - - class IKey : public IParam - { - public: - virtual ~IKey() { } - - virtual IKey* Clone() const = 0; - - virtual void Import(const Blob& keyblob) = 0; - virtual void Export(Blob& keyblob, export_t type = DEFAULT) const = 0; - - virtual void Generate(IRNGAlg* prng = 0) = 0; - virtual void Derive(const Blob& data, const Blob& salt = Blob()) = 0; - - virtual IAlgorithm* CreateAlgorithm(mode_t Mode) const = 0; - virtual IAlgorithm* CreateAlgorithm(mode_t Mode, const Blob& data) const = 0; - - virtual void* GetCreatePointer() const = 0; - }; - -} // namespace act - -#endif // ACT_IKey_h diff --git a/actlibrary/MacOSX-10.4-ppc/Release/include/actIKeyDerivation.h b/actlibrary/MacOSX-10.4-ppc/Release/include/actIKeyDerivation.h deleted file mode 100644 index f8909eb..0000000 --- a/actlibrary/MacOSX-10.4-ppc/Release/include/actIKeyDerivation.h +++ /dev/null @@ -1,70 +0,0 @@ -// --------------------------------------------------------------------------- -// Name: actIKeyDerivation.h -// Product: cv act library -// Purpose: IKeyDerivation for general prupose -// -// Copyright: (c) 2003-2010 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -// -// Autor: Ulrich Birkenhauer -// Markus Tesche -// Date: 07/05/2010 -// --------------------------------------------------------------------------- - -#ifndef ACT_IKeyDerivation_h -#define ACT_IKeyDerivation_h - -#include "actMove.h" -#include "actMode.h" - -#include "actIParam.h" -#include "actIRefCounted.h" - -namespace act -{ - enum KDParam - { - KD_DATA = SALT, - KD_HASH = HASH, - KD_SERIAL = SERIALNR, - KD_DERIVATOR = DERIVATOR, - KD_MODE = BCMODE, // key configuration - KD_PADDING = PADDING, // key configuration - }; - - enum KDMode - { - KD_MODE_DEFAULT = 0, - KD_MODE_CARD_MANAGER, - - KD_MODE_LAST - }; - - class IKeyDerivation; - class IBlockCipherKey; - - typedef void (*DerivationFunc)(IKeyDerivation* owner, const Blob& data, - Blob& k_enc, Blob& k_mac, Blob& k_kek); - - // - // IKeyDerivation - class IKeyDerivation - : public IParam - , public IRefCounted - { - public: - virtual Blob Derive(const Blob& deriveData) = 0; - virtual void Derive(uint mode, const Blob& data, Blob& k_enc, Blob& k_mac) = 0; - virtual void Derive(uint mode, const Blob& data, Blob& k_enc, Blob& k_mac, Blob& k_kek) = 0; - - virtual void SetKey(IBlockCipherKey* key) = 0; - // - // If mode already registered, it will be overwritten and the previous will be returned. - virtual DerivationFunc Register(uint mode, DerivationFunc df) = 0; - }; - -} // namespace act - -#endif // ACT_IKeyDerivation_h diff --git a/actlibrary/MacOSX-10.4-ppc/Release/include/actIMACKey.h b/actlibrary/MacOSX-10.4-ppc/Release/include/actIMACKey.h deleted file mode 100644 index b630e74..0000000 --- a/actlibrary/MacOSX-10.4-ppc/Release/include/actIMACKey.h +++ /dev/null @@ -1,27 +0,0 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actIMACKEY.h -// Product: cv act library -// Purpose: interface for the class CBCMAC -// -// Copyright: (c) 2000 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_IMACKey_h -#define ACT_IMACKey_h - -#include "actIKey.h" - -namespace act -{ - class IMACKey : public IKey - { - public: - virtual const char* KeyName() const = 0; - }; - -} // namespace act - -#endif // ACT_IMACKey_h diff --git a/actlibrary/MacOSX-10.4-ppc/Release/include/actIPKCS15Behavior.h b/actlibrary/MacOSX-10.4-ppc/Release/include/actIPKCS15Behavior.h deleted file mode 100644 index 174cd51..0000000 --- a/actlibrary/MacOSX-10.4-ppc/Release/include/actIPKCS15Behavior.h +++ /dev/null @@ -1,89 +0,0 @@ -// --------------------------------------------------------------------------- -// Name: actIPKCS15Behavior.h -// Product: cv act library -// Purpose: IPKCS15Behavior interface, encapsulates Manufacturer specific logic -// for PKCS15 to cvProfile mapping. -// -// Copyright: (c) 2002-2008 cv cryptovision GmbH all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -// -// Autor: Markus Tesche -// Date: 06/02/2008 -// --------------------------------------------------------------------------- - -#ifndef ACT_IPKCS15Behavior_h -#define ACT_IPKCS15Behavior_h - -#include "actISCardOSBehavior.h" - -#include "cvProfileInfos.h" - -namespace act -{ - class IAuthIdRef; - - class IToken; - class ITokenPIN; - class ITokenKey; - class ITokenFile; - class ITokenFileMap; - class ISecurityManager; - class ITokenBlockCipherKey; - - class PKCS15Container; - struct PKCS15Path; - struct PKCS15Object; - - // - // IPKCS15Behavior - class IPKCS15Behavior : public ISCardOSBehavior - { - public: - virtual void Init(IToken* token) = 0; - - virtual int GetTokenType(const IToken* token) const throw() = 0; - virtual void GetProfileCapabilities(ITokenConfig* tkcfg) const = 0; - - virtual bool IsReadOnly() const = 0; - virtual const Blob& GetMID() const = 0; - - // Returns a valid instance or throws ! - virtual ITokenFile* GetPath() const = 0; - virtual ITokenFile* GetTokenFile(const Blob& p15path) = 0; - virtual ITokenFile* GetTokenFile(const PKCS15Path& p15path) = 0; - - virtual ITokenPIN* GetPin(IToken* token, const PKCS15Object& p15object, bool use_obj_ref = false) = 0; - - // NOTE: If one of these functions return false, the object gets destroyed - // and is not added to the corresponding collection, therefore not accessable! - virtual bool InitTokenPIN(ITokenPIN* pin, const PKCS15Object& p15object) = 0; - virtual bool InitTokenKey(ITokenKey* key, const FileInfo& fi, int usage, const PKCS15Object& p15object) = 0; - virtual bool InitTokenKey(ITokenBlockCipherKey* key, const FileInfo& fi, const PKCS15Object& p15object) = 0; - - virtual FIDType GetFirstFID(byte obj_type, size_t key_size = 0) const = 0; - virtual void GetObjectInfo(FIDType fid, Blob& object_path, byte* obj_ref, byte obj_type, size_t key_size = 0) const = 0; - - virtual FIDType TransformKeyReference(FIDType id, bool to_on_card_reference = false, bool* bReference = 0) const = 0; - - virtual FIDType GetNativeFID(byte obj_type, const FIDType fid, byte object_reference = 0) const = 0; - - virtual void GetRelativeFilePath(Blob& absolute_filepath) const = 0; - - virtual const Blob& GetACTokenRights() const = 0; - virtual Blob GetAccessRights(const ITokenPIN* pin, byte obj_type) const = 0; - virtual Blob GetAccessRights(IAuthIdRef* authIdRef, IAuthIdRef* parentAuthIdRef, byte obj_type) const = 0; - - virtual ISecurityManager* SecurityManager(IToken* token, int authManagerType) const = 0; - virtual void CreateAuthObj(ITokenPIN* pin, byte obj_type) const = 0; - - virtual bool GetNativePubKeySupport() const = 0; - virtual Blob ReadNativePublicKey(ISCardOS* os, FIDType fid) const = 0; - virtual Blob ReadNativeECPublicKey(ISCardOS* os, FIDType fid) const = 0; - virtual FIDType GetNativePubKeyInfo(FIDType priv_key_fid, const PublicKeyInfo& info, - PKCS15Object& p15object) const = 0; - }; - -} // namespace act - -#endif // ACT_IPKCS15Behavior_h diff --git a/actlibrary/MacOSX-10.4-ppc/Release/include/actIParam.h b/actlibrary/MacOSX-10.4-ppc/Release/include/actIParam.h deleted file mode 100644 index ee8d26b..0000000 --- a/actlibrary/MacOSX-10.4-ppc/Release/include/actIParam.h +++ /dev/null @@ -1,67 +0,0 @@ -// --------------------------------------------------------------------------- -// Name: actIParam.h -// Product: cv act library -// Purpose: Declares act::IParam interface. -// -// Copyright: (c) 2006 cv cryptovision GmbH -// all rights reserved. -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -// -// Autor: Markus Tesche (MTE) -// Date: 3/1/2006 -// --------------------------------------------------------------------------- - -#ifndef ACT_IParam_h -#define ACT_IParam_h - -#include "actBasics.h" - -namespace act -{ - class Blob; - - enum - { - PARAM_ANY = -3, - PARAM_UNKNOWN_SIZE = -2, - PARAM_INVALID_VALUE = -1, - PARAM_FALSE = 0, - PARAM_TRUE = 1 - }; - - static inline int param_bool(bool value) - { - return value == true ? PARAM_TRUE : PARAM_FALSE; - } - - // - // IParam - class IParam - { - public: - virtual ~IParam() { } - - virtual void SetParam(paramid_t id, int value) = 0; - virtual void SetParam(paramid_t id, const char* value) = 0; - virtual void SetParam(paramid_t id, const Blob& value) = 0; - - // - // Get value for id, otherwise PARAM_INVALID_VALUE. - // NOTE: May throws an act::Exception derived exception. - virtual int GetParam(paramid_t id) const = 0; - - // - // Get value for id, returns size[PARAM_UNKNOWN_SIZE|0-n] or PARAM_INVALID_VALUE. - // NOTE: May throws an act::Exception derived exception. - virtual size_t GetParam(paramid_t id, const char** value) const = 0; - - // - // Get value for id, returns size[PARAM_UNKNOWN_SIZE|0-n] or PARAM_INVALID_VALUE. - // NOTE: May throws an act::Exception derived exception. - virtual size_t GetParam(paramid_t id, Blob& value) const = 0; - }; - -} // namespace act - -#endif // ACT_IParam_h diff --git a/actlibrary/MacOSX-10.4-ppc/Release/include/actIRNGAlg.h b/actlibrary/MacOSX-10.4-ppc/Release/include/actIRNGAlg.h deleted file mode 100644 index 521be1d..0000000 --- a/actlibrary/MacOSX-10.4-ppc/Release/include/actIRNGAlg.h +++ /dev/null @@ -1,38 +0,0 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actIRNGAlg.h -// Product: cv act library -// Purpose: IRNGAlg is the interface for Random Number Generators. -// -// Copyright: (c) 2000 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_IRNGAlg_h -#define ACT_IRNGAlg_h - -#include "actIAlgorithm.h" - -namespace act -{ - class Blob; - - class IRNGAlg : public IAlgorithm - { - public: - virtual IRNGAlg* Clone() const = 0; - virtual void Import(const Blob& keyblob) = 0; - virtual void Export(Blob& keyblob) const = 0; - virtual void SetParam(paramid_t id, const Blob& blob) = 0; - virtual void SetParam(paramid_t id, int val) = 0; - virtual void SetParam(paramid_t id, const char* cstr) = 0; - virtual int GetParam(paramid_t id) const = 0; - virtual void GetParam(paramid_t id, Blob& blob) const = 0; - - virtual void* GetCreatePointer() const = 0; - }; - -} // namespace act - -#endif // ACT_IRNGAlg_h diff --git a/actlibrary/MacOSX-10.4-ppc/Release/include/actIRSAKey.h b/actlibrary/MacOSX-10.4-ppc/Release/include/actIRSAKey.h deleted file mode 100644 index 96bcdac..0000000 --- a/actlibrary/MacOSX-10.4-ppc/Release/include/actIRSAKey.h +++ /dev/null @@ -1,32 +0,0 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actIRSAKey.h -// Product: cv act library -// Purpose: IRSAKey is the interface for the class IRSAKey enabling access to -// the aggregated padding-object of an RSAKeys. -// -// Copyright: (c) 2000 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_IRSAKey_h -#define ACT_IRSAKey_h - -#include "actISignatureKey.h" - -namespace act -{ - class IPadding; - - class IRSAKey : public ISignatureKey - { - public: - virtual void SetPadding(IPadding* padding) = 0; - virtual const IPadding* GetPadding() const = 0; - virtual IPadding* GetPadding() = 0; - }; - -} // namespace act - -#endif // ACT_IRSAKey_h diff --git a/actlibrary/MacOSX-10.4-ppc/Release/include/actIRefCounted.h b/actlibrary/MacOSX-10.4-ppc/Release/include/actIRefCounted.h deleted file mode 100644 index 5c66ef0..0000000 --- a/actlibrary/MacOSX-10.4-ppc/Release/include/actIRefCounted.h +++ /dev/null @@ -1,33 +0,0 @@ -// --------------------------------------------------------------------------- -// Name: actIRefCounted.h -// Product: cv act library -// Purpose: The IRefCounted interface. -// -// Copyright: (c) 2006 cv cryptovision GmbH -// all rights reserved. -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -// -// Autor: Markus Tesche (MTE) -// Date: 1/18/2006 -// --------------------------------------------------------------------------- - -#ifndef ACT_IRefCounted_h -#define ACT_IRefCounted_h - -namespace act -{ - // - // IRefCounted, methods for reference counting. - class IRefCounted - { - public: - virtual ~IRefCounted() { } - - virtual void AddRef() = 0; - virtual void Release() = 0; - }; - -} // namespace act - -#endif // ACT_IRefCounted_h diff --git a/actlibrary/MacOSX-10.4-ppc/Release/include/actISCardAccess.h b/actlibrary/MacOSX-10.4-ppc/Release/include/actISCardAccess.h deleted file mode 100644 index 3f59b31..0000000 --- a/actlibrary/MacOSX-10.4-ppc/Release/include/actISCardAccess.h +++ /dev/null @@ -1,198 +0,0 @@ -// --------------------------------------------------------------------------- -// Name: actISCardAccess.h -// Product: cv act library -// Purpose: The class ISCardAccess manages the operations with the smartcards and readers -// -// Copyright: (c) 2002 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -// -// Autor: Dr. Xiangdong Wang (XWG) -// Date: 03/21/2002 -// --------------------------------------------------------------------------- - -#ifndef ACT_ISCardAccess_h -#define ACT_ISCardAccess_h - -#include "actBlob.h" -#include "actIRefCounted.h" -#include "actISynchronize.h" - -namespace act -{ - class SyncObject; - - const ushort RESPONSE_MAXLEN = 2048; - - enum ReturnCode - { - APDU_RESPONSE_MASK = 0xffff, - - APDU_OK = 0x9000, - APDU_OK1 = 0x9001, - - // error codes defined in ISO7816-4 - APDU_STATE_UNCHANGED = 0x6200, - APDU_RETURN_CORRUPTED = 0x6281, - APDU_END_REACHED = 0x6282, - APDU_SELECTFILE_INVALID = 0x6283, - APDU_FCI_FORMAT = 0x6284, - - APDU_AUTHEN_FAILED = 0x6300, - APDU_RETRY_COUNTER = 0x63C0, - APDU_FILE_FILLED_UP = 0x6381, - - APDU_STATE_UNCHANGED2 = 0x6400, - - APDU_STATE_CHANGED = 0x6500, - APDU_MEMORY_FAILURE = 0x6581, - - APDU_SECURITY_ERROR = 0x6600, // not defined in ISO7816 - - APDU_WRONG_LEN = 0x6700, - - APDU_NO_CLA_FUNCTION = 0x6800, - APDU_NO_LOGICAL_CHANNEL = 0x6881, - APDU_NO_SM = 0x6882, - - APDU_CMD_NOT_ALLOWED = 0x6900, - APDU_CMD_INCOMPATIBLE = 0x6981, - APDU_SECURITY_STATE = 0x6982, - APDU_AUTHEN_BLOCKED = 0x6983, - APDU_REF_DATA_INVALID = 0x6984, - APDU_NO_CONDITION = 0x6985, - APDU_CMD_EF_NOT_ALLOWED = 0x6986, - APDU_SM_DATA_MISSING = 0x6987, - APDU_SM_DATA_INCORRECT = 0x6988, - - APDU_WRONG_PARAMETER = 0x6A00, - APDU_WRONG_DATA = 0x6A80, - APDU_FUNCTION_NOT_SUPPORTED = 0x6A81, - APDU_FILE_NOT_FOUND = 0x6A82, - APDU_RECORD_NOT_FOUND = 0x6A83, - APDU_NOT_ENOUGH_MEMORY = 0x6A84, - APDU_LC_TLV_INCONSISTENT = 0x6A85, - APDU_INVALID_P1P2 = 0x6A86, - APDU_LC_P1P2_INCONSISTENT = 0x6A87, - APDU_REF_DATA_NOT_FOUND = 0x6A88, - APDU_FILE_ALREADY_EXISTS = 0x6A89, - - APDU_WRONG_PARAMETER2 = 0x6B00, - - APDU_WRONG_LE = 0x6C00, - - APDU_INS_INVALID = 0x6D00, - - APDU_CLA_INVALID = 0x6E00, - - APDU_TECHNICAL_ERROR = 0x6F00, - - - // other error codes depend on card OS - APDU_NO_ICC = 0x64A1, - APDU_PROTOCOL_ERROR = 0x64A8, - - APDU_NO_AC_RIGHT = 0x6982, - APDU_PIN_LOCKED = 0x6983, - APDU_PIN_FORMAT_ERROR = 0x6984, - - APDU_OBJECT_NOT_FOUND = 0x6A88, - - APDU_KEYGEN_FAILED = 0x6F83, // ACOS - - - // JavaCardOS - APDU_MORE_DATA_AVAILABLE = 0x6310, - APDU_APPLET_SELECTION_FAILED = 0x6999, - APDU_PIN_FAILED = 0x69C0, - APDU_ASSERT = 0x6FFF, - APDU_ASSERT_NOTRANSACTION = 0x6FFE, - }; - - enum ProtocolType - { - PROTOCOL_UNDEFINED = 0x00000, // There is no active protocol. - PROTOCOL_T0 = 0x00001, // T=0 is the active protocol. - PROTOCOL_T1 = 0x00002, // T=1 is the active protocol. - PROTOCOL_RAW = 0x10000 // Raw is the active protocol. - }; - - enum DispositionType - { - LEAVE_CARD = 0, // Don't do anything special. - RESET_CARD = 1, // Reset the card. - UNPOWER_CARD = 2, // Power down the card. - EJECT_CARD = 3 // Eject the card. - }; - - inline bool APDUSUCCESS(word sw1sw2) - { - return sw1sw2 == act::APDU_OK - || sw1sw2 == act::APDU_OK1; - } - - // extract - template - inline word apdu_response(const ExceptionT& e) - { - return word(e.code() & APDU_RESPONSE_MASK); - } - - // LengthInfo - struct LengthInfo; - typedef LengthInfo VerifyInfo; - - class ISlot; - class ISCardSM; - - // --------------------------------------------------------------------------- - class ISCardAccess - : public IRefCounted - , public ISynchronize - { - public: - virtual ~ISCardAccess() - { } - - virtual long GetProtocol() const = 0; - virtual void SetProtocol(long protocol) = 0; - - virtual ulong GetTimeout() const = 0; - virtual bool SetTimeout(ulong timeout_msec) = 0; - - virtual void Open() = 0; - virtual void Close() = 0; - virtual void ResetCard() = 0; - virtual long CancelCardOperation() = 0; - - virtual void BeginTransaction() = 0; - virtual void EndTransaction(DispositionType disposition = LEAVE_CARD) = 0; - virtual ulong GetTransactionDepth() const = 0; - - virtual const ISlot* GetSlot() const = 0; - - virtual word SendCard(const Blob& cmd, Blob& response, ushort response_len = RESPONSE_MAXLEN) = 0; - - virtual Blob GetResponse() const = 0; - virtual Blob& GetResponse(Blob& response) const = 0; - - virtual word Send(const Blob& cmd) = 0; - virtual word Send(const Blob& header, const Blob& data) = 0; - virtual word Send(const Blob& header, const Blob& data, byte le) = 0; - - // Extended APDU - virtual word SendX(const Blob& header, const Blob& data) = 0; - virtual word SendX(const Blob& header, const Blob& data, ushort le) = 0; - - // Secure Pin Entry - virtual word SendVerifyToReader(const Blob& apdu, const VerifyInfo& info) = 0; - - // Secure Messaging - virtual ISCardSM* GetSM() const = 0; - virtual void SetSM(ISCardSM* sm) = 0; - }; - -} // namespace act - -#endif // ACT_ISCardAccess_h diff --git a/actlibrary/MacOSX-10.4-ppc/Release/include/actISCardOS.h b/actlibrary/MacOSX-10.4-ppc/Release/include/actISCardOS.h deleted file mode 100644 index 53f2d62..0000000 --- a/actlibrary/MacOSX-10.4-ppc/Release/include/actISCardOS.h +++ /dev/null @@ -1,262 +0,0 @@ -// --------------------------------------------------------------------------- -// Name: actISCardOS.h -// Product: cv act library -// Purpose: The class ISCardOS accesses the card operating system -// -// Copyright: (c) 2002 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -// -// Autor: Dr. Xiangdong Wang (XWG) -// Date: 03/21/2002 -// --------------------------------------------------------------------------- - -#ifndef ACT_ISCardOS_h -#define ACT_ISCardOS_h - -#include "actBlob.h" -#include "actTokenBase.h" - -#include "actITokenPIN.h" -#include "actITokenConfig.h" -#include "actITokenInitializer.h" - -#include "actIRefCounted.h" -#include "actIAccessCondition.h" - -namespace act -{ - class IKey; - class IEMSAAlg; - class ITokenFile; - class ISCardAccess; - class ISCardOSBehavior; - class IKeyDerivation; - - class EFDIR; - - const FIDType FID_EF_DIR = 0x2F00; - const FIDType FID_EF_ATR = 0x2F01; - - // - // ISO 7816-4 - enum SCardFileType - { - BINARY = 0x01, - LINEAR_FIXED = 0x02, - LINEAR_TLV = 0x05, - LINEAR_VARIABLE = 0x04, - CYCLIC_FIXED = 0x06, - DF = 0x38 - }; - - // - // ISO 7816-4 - enum SCardRecordMode - { - ABSOLUTE_MODE = 0x04 - }; - - // - // ISO 7816-4 - enum SCardSelectType - { - MFType = 0x00, - DFType = 0x01, - EFType = 0x02, - AIDType = 0x04, - PathType = 0x08 - }; - - enum SCardSelectMode - { - FCI = 0x00, // FCI template - FCP = 0x04, // FCP template - FMD = 0x08, // FMD template - NoData = 0x0c, // No response data - }; - - enum SCardError - { - SCARD_SUCCESS = 0, - SCARD_FUNCTION_NOT_SUPPORTED = -1, - SCARD_FUNCTION_FAILED = -2 - }; - - // - // ISCardOS - class ISCardOS - : public IRefCounted - , public IAcConverter - { - public: - virtual ~ISCardOS() { } - - // ISCardOS - virtual ISCardOS* Clone() const = 0; - - virtual bool IsMoC() = 0; - virtual const char* GetName() const = 0; - virtual Blob GetSerialNumber() const = 0; // hardware serial number - virtual Blob GetCardId(unsigned short fid_card_id) = 0; - virtual Blob GetCardCF(unsigned short fid_card_cf) = 0; - - virtual ISCardAccess* GetAccess() const = 0; - - virtual Blob ComputeDigitalSignature(const Blob& data, int mode = SIGN_DATA) = 0; - virtual Blob ComputeDigitalSignature(IEMSAAlg* emsa, int mode = SIGN_DATA) = 0; - virtual Blob Encipher(const Blob& plaintext) = 0; - virtual Blob Decipher(const Blob& encrypted_data) = 0; - virtual Blob AgreeKey(const Blob& pubkey) = 0; - - virtual void ComputeECDigitalSignature(const Blob& data, Blob& signature) = 0; - - virtual Blob SelectFile(const int filetype, const char* filepath) = 0; // return file control information - virtual Blob SelectFile(const int filetype, const Blob& filepath) = 0; // return file control information - virtual Blob SelectFile(const int filetype, FIDType fid) = 0; // return file control information - virtual Blob SelectApp(const Blob& aid, SCardSelectMode mode = NoData) = 0; - - // EF.DIR - virtual EFDIR* GetEFDIR(ushort fid = FID_INVALID) = 0; - - virtual int GetEFSize(FIDType fid) = 0; - virtual int GetEFSize(const Blob& filepath, Blob& fci) = 0; - virtual void GetFCI(FIDType fid, Blob& fci) = 0; - virtual Blob GetFCIValue(const Blob& fci, const byte tag) = 0; - virtual byte GetFileInfo(const Blob& fc_data, unsigned short& ef_size, size_t& num_of_records) = 0; - - // select and read binary - virtual Blob ReadBinary(const char* filepath) = 0; - virtual Blob ReadBinary(const Blob& filepath) = 0; - virtual Blob ReadBinary(FIDType fid) = 0; - - // read/update binary, file is selected, file size is known - virtual Blob ReadSelectedBinary(size_t file_size, unsigned short offset = 0) = 0; - virtual void UpdateSelectedBinary(const Blob& data, unsigned short offset = 0) = 0; - - // select and update binary - virtual void UpdateBinary(const Blob& filepath, const Blob& data, unsigned short offset = 0) = 0; - virtual void UpdateBinary(FIDType fid, const Blob& data, unsigned short offset = 0) = 0; - - // read binary with XL-APDUs - virtual Blob ReadBinaryX(const char* filepath) = 0; - virtual Blob ReadBinaryX(const Blob& filepath) = 0; - virtual Blob ReadBinaryX(FIDType fid) = 0; - virtual Blob ReadSelectedBinaryX(size_t file_size, unsigned short offset = 0) = 0; - - // update binary with XL-APDUs - virtual void UpdateBinaryX(const Blob& filepath, const Blob& data, unsigned short offset = 0) = 0; - virtual void UpdateBinaryX(FIDType fid, const Blob& data, unsigned short offset = 0) = 0; - virtual void UpdateSelectedBinaryX(const Blob& data, unsigned short offset = 0) = 0; - - // record read/write (file must be selected) - virtual Blob ReadRecord(byte mode) = 0; // p2 - virtual Blob ReadRecord(byte rec_id, byte mode) = 0; // p1, p2 - virtual void UpdateRecord(const Blob& data, byte rec_id, byte mode) = 0; // data, p1, p2 - virtual void AppendRecord(const Blob& data, byte ef_id = 0) = 0; // data, p2 - - // record write (includes file selection and resize) - virtual void UpdateRecord(const Blob& filepath, const Blob& data, byte rec_id, byte mode) = 0; - virtual void AppendRecord(const Blob& filepath, const Blob& data) = 0; - - virtual void DeleteEF(const Blob& fid) = 0; - virtual void DeleteEF(FIDType fid) = 0; - - virtual void CreateEF(const Blob& fcp) = 0; - virtual void CreateEF(const Blob& fid, unsigned short len, bool secure = false) = 0; - virtual void CreateEF(FIDType fid, unsigned short len, bool secure = false) = 0; - - virtual void CreateEF_TLV(FIDType fid, unsigned short len, unsigned short num_of_records = 1) = 0; - virtual void CreateEF_TLV(const Blob& fid, unsigned short len, unsigned short num_of_records = 1) = 0; - - virtual unsigned short GetOSFileOffset() const = 0; - - // get/put dat - virtual Blob GetData(ushort tag, ushort le = 0) const = 0; // INS=CA - virtual void PutData(ushort tag, const Blob& data) = 0; // INS=DA - - // MSE/PSO functions - virtual void ManageSecurityEnvironment(byte p1, byte p2, const Blob& data = Blob()) = 0; - virtual void PerformSecurityOperation(Blob& response, byte p1, byte p2, const Blob& data, bool chaining = false) = 0; - virtual void PerformSecurityOperationX(Blob& response, byte p1, byte p2, const Blob& data) = 0; // explicit extended APDU - - // ISO authentication functions - virtual void ExternalAuthenticate(byte key_id, const Blob& response, bool odd_INS = false) = 0; // INS=82/83, P1=00, P2=key_id - virtual Blob InternalAuthenticate(byte key_id, const Blob& challenge, bool odd_INS = false) = 0; // INS=88/89, P1=00, P2=key_id - virtual Blob MutualAuthenticate(byte key_id, const Blob& auth_data, bool odd_INS = false) = 0; // INS=82/83, P1=00, P2=key_id - virtual Blob GeneralAuthenticate(byte key_id, const Blob& auth_data, bool chaining = false, bool odd_INS = false) = 0; // INS=86/87, P1=00, P2=key_id - - virtual void ResetRetryCounter(byte p1, byte p2, const Blob& data) = 0; - virtual void Verify(byte p1, byte p2, const Blob& data, bool odd_INS = false) = 0; // INS=20/21 - - // random functions - virtual Blob GetChallenge(byte le = byte(8)) const = 0; - virtual Blob GetRandom(const unsigned long count) const = 0; - - // token type / config - virtual ProfileType GetProfileType(bool refresh = false) = 0; - - virtual void SetTokenConfig(ITokenConfig* tkcfg) = 0; - virtual ITokenConfig* GetTokenConfig() const = 0; - - // set/get behavior - virtual void SetBehavior(ISCardOSBehavior* behave) = 0; - virtual ISCardOSBehavior* GetBehavior() = 0; - - // access rights - virtual void SetAccessRights(const Blob& access_rights) = 0; - virtual void SetAccessRights(move_from access_rights) = 0; - virtual void SetExplicitRights(IAccessCondition* ac, size_t ac_cnt = 1) = 0; - - virtual bool HasExplicitRights() const = 0; - - virtual Blob GetAccessRights() = 0; - virtual IAccessCondition* GetAccessRights(const Blob& fci) = 0; - virtual Blob GetAccessRights(ACSCardObjType ac_obj_type, bool tagged) const = 0; - - // selected path - virtual void SetSelectedPath(ITokenFile* selected_path) const = 0; - virtual ITokenFile* GetSelectedPath() const = 0; - - // key derivation - virtual void SetKeyDerivation(IKeyDerivation* key_derivation) = 0; - virtual IKeyDerivation* GetKeyDerivation() const = 0; - - // key handling - virtual void GenerateRSAKeyPair(int key_id, size_t key_size, // in bits - Blob& pubkey) = 0; - - virtual void ImportRSAKeyPair(int key_id, const Blob& prime_p, - const Blob& prime_q, const Blob& priv_exp, Blob& pubkey) = 0; - - virtual void GenerateECKeyPair(Blob& pubkey) = 0; - - virtual void GenerateECKeyPair(int key_id, const Blob& curve_oid, - const Blob& curve_param, Blob& pubkey) = 0; - - virtual void ImportECKeyPair(int key_nr, const Blob& curve_oid, - const Blob& curve_param, const Blob& privkey, const Blob& pubkey) = 0; - - virtual void ImportDESKey(int key_id, const Blob& keyblob) = 0; - - virtual void DeletePrivateKeyObj(FIDType fid) = 0; - virtual void DeleteECPrivateKeyObj(FIDType fid) = 0; - virtual void DeleteBlockCipherKeyObj(FIDType fid) = 0; - virtual void SelectKey(int key_id) = 0; - - // authentication functions - virtual Blob ComputeResponse(const Blob& auth_key, const Blob& challenge) const = 0; - virtual void UpdateExternalAuthenticateKey(byte key_id, const Blob& auth_key) = 0; - - virtual void ResetSecurityStatus() = 0; - virtual SecStatus GetSecurityStatus(byte obj_ref, Blob& context) const = 0; - - // token initialization - virtual void SetDefaultLabel(move_from label) = 0; - virtual ITokenInitializer* GetTokenInitializer() = 0; - }; - -} // namespace act - -#endif // ACT_ISCardOS_h diff --git a/actlibrary/MacOSX-10.4-ppc/Release/include/actISecurityManager.h b/actlibrary/MacOSX-10.4-ppc/Release/include/actISecurityManager.h deleted file mode 100644 index ecaccd8..0000000 --- a/actlibrary/MacOSX-10.4-ppc/Release/include/actISecurityManager.h +++ /dev/null @@ -1,60 +0,0 @@ -// --------------------------------------------------------------------------- -// Name: actISecurityManager.h -// Product: cv act library -// Purpose: ISecurityManager used to manage the token authentication objects. -// -// Copyright: (c) 2008 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -// -// Autor: Markus Tesche (MTE) -// Date: 08/05/2008 -// --------------------------------------------------------------------------- - -#ifndef ACT_ISecurityManager_h -#define ACT_ISecurityManager_h - -#include "actBasics.h" -#include "actIRefCounted.h" - -namespace act -{ - class ITokenPIN; - class IAuthIdRef; - - enum SecManType - { - SecManUnknown = 0, - SecManPIN, - SecManBio, - }; - - // - // ISecurityManager - // TODO: MTE: Add access control management - class ISecurityManager : public IRefCounted - { - public: - virtual SecManType GetType() const = 0; - virtual void Delete(ITokenPIN* auth_obj) = 0; - }; - - class IPINManager : public ISecurityManager - { - public: - // NOTE: MTE: pin can be empty! - virtual ITokenPIN* Create(IAuthIdRef* authIdRef, IAuthIdRef* parentAuthIdRef, - int retryCount, const Blob& pin) = 0; - }; - - class IBioManager : public ISecurityManager - { - public: - virtual ITokenPIN* Create(IAuthIdRef* authIdRef, IAuthIdRef* parentAuthIdRef, - int retryCount, int bioFinger) = 0; - }; - -} // namespace act - -#endif // ACT_ISecurityManager_h diff --git a/actlibrary/MacOSX-10.4-ppc/Release/include/actISignatureKey.h b/actlibrary/MacOSX-10.4-ppc/Release/include/actISignatureKey.h deleted file mode 100644 index 2538580..0000000 --- a/actlibrary/MacOSX-10.4-ppc/Release/include/actISignatureKey.h +++ /dev/null @@ -1,32 +0,0 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actISignatureKey.h -// Product: cv act library -// Purpose: The interface ISignatureKey enables access to the aggregated -// EMSA-object of the SignatureKeys. -// -// Copyright: (c) 2000 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_ISignatureKey_h -#define ACT_ISignatureKey_h - -#include "actIKey.h" - -namespace act -{ - class IEMSAAlg; - - class ISignatureKey : public IKey - { - public: - virtual void SetEncoder(IEMSAAlg* padding) = 0; - virtual const IEMSAAlg* GetEncoder() const = 0; - virtual IEMSAAlg* GetEncoder() = 0; - }; - -} // namespace act - -#endif // ACT_ISignatureKey_h diff --git a/actlibrary/MacOSX-10.4-ppc/Release/include/actISlot.h b/actlibrary/MacOSX-10.4-ppc/Release/include/actISlot.h deleted file mode 100644 index b3a2efd..0000000 --- a/actlibrary/MacOSX-10.4-ppc/Release/include/actISlot.h +++ /dev/null @@ -1,82 +0,0 @@ -// --------------------------------------------------------------------------- -// Name: actISlot.h -// Product: cv act library -// Purpose: The class ISlot manages the Tokens -// -// Copyright: (c) 2002 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -// -// Autor: Dr. Xiangdong Wang (XWG) -// Date: 03/26/2002 -// --------------------------------------------------------------------------- - -#ifndef ACT_ISlot_h -#define ACT_ISlot_h - -#include "actBasics.h" -#include "actBlob.h" - -#include "actIRefCounted.h" -#include "actISynchronize.h" -#include "actIEventMonitoring.h" - -namespace act -{ - class IToken; - class ITokenConfig; - class ISCardOS; - class ISCardAccess; - class ISubsystem; - - // --------------------------------------------------------------------------- - class ISlot - : public IRefCounted - , public ISynchronize - , public IEventMonitoring - { - protected: - virtual ~ISlot() { } - - public: - virtual ISlot* Clone() const = 0; - - virtual bool IsTokenPresent() const = 0; - virtual const char* GetName() const = 0; - virtual ISubsystem* GetSystem() const = 0; - - virtual Blob GetATR() const = 0; - virtual Blob GetHistoricalBytes() const = 0; - - virtual ISCardOS* CreateOS(const Blob& historical_bytes = Blob()) = 0; - virtual IToken* CreateToken(ISCardOS* os = 0) = 0; - virtual ISCardAccess* CreateAccess() = 0; - - virtual void SetTokenConfig(ITokenConfig* tkcfg) = 0; - - virtual bool HasSecurePinEntry(ISCardAccess* ac = 0) const = 0; - virtual bool HasSecurePinChange(ISCardAccess* ac = 0) const = 0; - - virtual void SetParam(paramid_t id,int val) = 0; - virtual int GetParam(paramid_t id) const = 0; - }; - - // --------------------------------------------------------------------------- - struct ATRCardInfo - { - const char* name; - const char* atr; - const char* atr_mask; - }; - - // --------------------------------------------------------------------------- - void InitCardInfoMap(const ATRCardInfo* mapCardInfo); - const ATRCardInfo* GetATRCardInfo(const Blob& atr); - const char* GetOSName(const Blob& atr); - Blob GetHistoricalBytes(const Blob& atr); - bool GetATRStructInfo(const Blob& atr, size_t& his_pos, size_t& his_len, bool& has_tck); - -} // namespace act - -#endif // ACT_ISlot_h diff --git a/actlibrary/MacOSX-10.4-ppc/Release/include/actISlotMonitor.h b/actlibrary/MacOSX-10.4-ppc/Release/include/actISlotMonitor.h deleted file mode 100644 index 358abc0..0000000 --- a/actlibrary/MacOSX-10.4-ppc/Release/include/actISlotMonitor.h +++ /dev/null @@ -1,39 +0,0 @@ -// --------------------------------------------------------------------------- -// Name: actISlotMonitor.h -// Product: cv act library -// Purpose: The class SlotMonitor notifies the slot events -// -// Copyright: (c) 2002 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -// -// Autor: Dr. Xiangdong Wang (XWG) -// Date: 05/27/2002 -// --------------------------------------------------------------------------- - -#ifndef ACT_ISlotMonitor_h -#define ACT_ISlotMonitor_h - -#include "actIRefCounted.h" - -namespace act -{ - class IEventHandler; - - // - // ISlotMonitor - class ISlotMonitor : public IRefCounted - { - public: - virtual void Stop() = 0; - virtual void Start(IEventHandler* cmd) = 0; - virtual bool Interrupted() const = 0; - - protected: - virtual void Run() = 0; - }; - -} // namespace act - -#endif // ACT_ISlotMonitor_h diff --git a/actlibrary/MacOSX-10.4-ppc/Release/include/actIStreamCipher.h b/actlibrary/MacOSX-10.4-ppc/Release/include/actIStreamCipher.h deleted file mode 100644 index 4c53d98..0000000 --- a/actlibrary/MacOSX-10.4-ppc/Release/include/actIStreamCipher.h +++ /dev/null @@ -1,51 +0,0 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actIStreamCipher.h -// Product: cv act library -// Purpose: The class IStreamCipher creates the symmetric StreamCipher, which is -// defined by IStreamCipherKey. It offers operations like encrypt, decrypt -// and queries involving validity or keylength etc. -// -// Copyright: (c) 2001 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_IStreamCipher_h -#define ACT_IStreamCipher_h - -#include "actBasics.h" - -namespace act -{ - - class Blob; - - class IStreamCipher - { - public: - - virtual IStreamCipher* Clone() const =0; - virtual void Import( const Blob& indata ) =0; - virtual void Export( Blob& outdata ) const =0; - - virtual void SetRawKey( const Blob& keyblob ) =0; - virtual void GetRawKey( Blob& keyblob ) const =0; - - virtual void Process(const byte* input, byte* output, size_t input_len) const =0; - - virtual size_t GetKeySize(size_t keysize=0) const =0; - virtual size_t GetMinKeySize() const =0; - virtual size_t GetMaxKeySize() const =0; - virtual size_t GetNextKeySize(size_t prevsize) const =0; - - virtual void* GetCreatePointer() const =0; - - virtual ~IStreamCipher() {}; - }; - - -}// namespace act - -#endif - diff --git a/actlibrary/MacOSX-10.4-ppc/Release/include/actIStreamCipherKey.h b/actlibrary/MacOSX-10.4-ppc/Release/include/actIStreamCipherKey.h deleted file mode 100644 index 7282893..0000000 --- a/actlibrary/MacOSX-10.4-ppc/Release/include/actIStreamCipherKey.h +++ /dev/null @@ -1,39 +0,0 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actIStreamCipherKey.h -// Product: cv act library -// Purpose: The class IStreamCipherKey extends the interface of the class IKey -// and supports the peculiarities of symmetric keys. -// -// -// Copyright: (c) 2001 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_IStreamCipherKey_h -#define ACT_IStreamCipherKey_h - -#include "actIKey.h" - -namespace act -{ - class IStreamCipher; - class IDerivator; - - class IStreamCipherKey : public IKey - { - public: - - virtual void SetCipher(IStreamCipher* cipher) = 0; - virtual const IStreamCipher* GetCipher() const = 0; - virtual IStreamCipher* GetCipher() = 0; - - virtual void SetDerivator(IDerivator* derive) = 0; - virtual const IDerivator* GetDerivator() const = 0; - virtual IDerivator* GetDerivator() = 0; - }; - -} //namespace act - -#endif // ACT_IStreamCipherKey_h diff --git a/actlibrary/MacOSX-10.4-ppc/Release/include/actISubsystemConfig.h b/actlibrary/MacOSX-10.4-ppc/Release/include/actISubsystemConfig.h deleted file mode 100644 index 165ac6e..0000000 --- a/actlibrary/MacOSX-10.4-ppc/Release/include/actISubsystemConfig.h +++ /dev/null @@ -1,38 +0,0 @@ -// --------------------------------------------------------------------------- -// Name: actISubsystemConfig.h -// Product: cv act library -// Purpose: The Subsystem configuration. -// -// Copyright: (c) 2006 cv cryptovision GmbH -// all rights reserved. -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -// -// Autor: Markus Tesche (MTE) -// Date: 1/12/2006 -// --------------------------------------------------------------------------- - -#ifndef ACT_ISubsystemConfig_h -#define ACT_ISubsystemConfig_h - -#include "actIRefCounted.h" - -namespace act -{ - class ISubsystem; - - // - // ISubsystemConfig - class ISubsystemConfig : public IRefCounted - { - public: - // Returns the Subsystem name. - virtual const char* GetName() const = 0; - - // Configures the Subsystem, if fails throws an Exception. - virtual void ConfigureSubsystem(ISubsystem*) = 0; - }; - -} // namespace act - -#endif // ACT_ISubsystemConfig_h diff --git a/actlibrary/MacOSX-10.4-ppc/Release/include/actIToken.h b/actlibrary/MacOSX-10.4-ppc/Release/include/actIToken.h deleted file mode 100644 index 15d0ac2..0000000 --- a/actlibrary/MacOSX-10.4-ppc/Release/include/actIToken.h +++ /dev/null @@ -1,165 +0,0 @@ -// --------------------------------------------------------------------------- -// Name: actIToken.h -// Product: cv act library -// Purpose: The IToken interface represents the profile and the application -// supported by a token. -// -// Copyright: (c) 2002 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -// -// Autor: Dr. Xiangdong Wang (XWG) -// Date: 03/22/2002 -// --------------------------------------------------------------------------- - -#ifndef ACT_IToken_h -#define ACT_IToken_h - -#include "actBlob.h" -#include "actBasics.h" -#include "actTokenBase.h" - -#include "actISynchronize.h" -#include "actITokenFileCache.h" -#include "actIAccessCondition.h" - -namespace act -{ - class IKey; - class IEMSAAlg; - class ICertificate; - class IAuthIdRef; - class ITokenPIN; - class ITokenAuth; - class ITokenFile; - class ITokenFileMap; - class ITokenConfig; - class ITokenKeyIterator; - class ISecurityManager; - class ITokenAuthIterator; - - struct CertEntry - { - int usage; - Blob certblob; - }; - - // - // ITokenView - class ITokenView - { - protected: - virtual ~ITokenView() { } - - public: - virtual IToken* GetToken() = 0; - - virtual ITokenView* GetPrev() const = 0; - virtual ITokenView* GetNext() const = 0; - - virtual ITokenFile* GetPath() const = 0; - virtual ITokenFileMap* GetFileMap() const = 0; - - virtual bool Equals(const ITokenView* other) const = 0; - - // Divide view into partitions, based on type[PATH|PIN] - virtual size_t Split(paramid_t type) = 0; - virtual ITokenView* SetDefault() = 0; - }; - - // - // IToken - class IToken - : public IRefCounted - , public IAcConverter - , public ISynchronize - { - protected: - virtual ~IToken() { } - - public: - virtual ITokenView* GetView() const = 0; - virtual ITokenConfig* GetConfig() const = 0; - virtual ITokenFile* GetTokenFile(const Blob& path) = 0; - - virtual int GetStatus() const = 0; - virtual int GetType() const = 0; - virtual ProfileType GetProfileType() = 0; - virtual const char* GetName() const = 0; - - // Returns the serial number, which may (!) be empty or equal the hardware serial! - virtual Blob GetSerialNumber() const = 0; - virtual Blob GetCardholderName() const = 0; - virtual Blob GetRandom(const unsigned long count) const = 0; - virtual void SetSeed(const Blob& seed) = 0; - - // Generate a new key - virtual IKey* NewKey(int key_type) = 0; - - // Add key to token, takes ownership - even on exception! - virtual void AddKey(IKey* key) = 0; - virtual bool RemoveKey(IKey* key) = 0; - - // Write/Import a (soft) key to token - virtual IKey* WriteKey(const IKey* key) = 0; - - // Get a token key instance from matching certificate - virtual IKey* CreateKey(const Blob& cert) const = 0; - virtual IKey* CreateKey(const ICertificate* cert) const = 0; - - // Key Objects - virtual int GetKeyNumber() const = 0; - virtual IKey* GetKey(int pos) const = 0; - virtual ITokenKeyIterator* GetKeyIterator(KeyType type, const Blob& authId = Blob()) = 0; - - // Certificate Objects - virtual int GetCertificateNumber() const = 0; - virtual CertEntry GetCertificate(int pos) const = 0; - - // Write/Delete a certificate (corresponding to a key) to token - virtual void WriteCertificate(const Blob& cert, IKey* key = 0) = 0; - virtual void DeleteCertificate(const Blob& cert, IKey* key = 0) = 0; - - // Authentication Objects - virtual ITokenAuth* GetAuth() const = 0; - virtual ISecurityManager* SecurityManager(int authManagerType) = 0; - virtual ITokenAuthIterator* GetAuthIterator(int type, const Blob& authId = Blob()) = 0; - - virtual int GetPinNumber() const = 0; - virtual ITokenPIN* GetPin(const IAuthIdRef* authIdRef, const ITokenFile* location) const = 0; - virtual ITokenPIN* GetPin(int pos, const ITokenFile* location) const = 0; - virtual ITokenPIN* GetPin(const char* pin_name) const = 0; - virtual ITokenPIN* GetPin(const Blob& authId) const = 0; - - virtual ITokenPIN* GetUserPin() const = 0; - virtual ITokenPIN* GetSOPin() const = 0; - virtual void VerifyUserPin(const Blob& pinvalue) = 0; - virtual void ChangeUserPin(const Blob& oldpin, const Blob& newpin) = 0; - virtual void UnlockUserPin(const Blob& so_pin, const Blob& new_userpin) = 0; - virtual void VerifySOPin(const Blob& pinvalue) = 0; - virtual void ChangeSOPin(const Blob& oldpin, const Blob& newpin) = 0; - - virtual bool ResetSecurityState() const = 0; - - // Token specific - virtual void SelectDataPath() const = 0; // TODO: MTE: To be removed soon! - virtual ISCardOS* GetOS() const = 0; // TODO: MTE: To be removed soon! - - // Delete a key pair from token with matching token key or certificate - virtual void DeleteKeyPair(const IKey* key) = 0; - virtual void DeleteKeyPair(const Blob& cert) = 0; - - virtual bool IsPKCS15() const = 0; - virtual bool IsReadOnly() const = 0; - virtual bool LoginRequired() const = 0; - - virtual bool IsLocked() const = 0; - - virtual Blob GetCardId() const = 0; - virtual Blob GetCardCF() const = 0; - }; - -} // namespace act - -#endif // ACT_IToken_h diff --git a/actlibrary/MacOSX-10.4-ppc/Release/include/actITokenAuth.h b/actlibrary/MacOSX-10.4-ppc/Release/include/actITokenAuth.h deleted file mode 100644 index cd6d150..0000000 --- a/actlibrary/MacOSX-10.4-ppc/Release/include/actITokenAuth.h +++ /dev/null @@ -1,139 +0,0 @@ -// --------------------------------------------------------------------------- -// Name: actITokenAuth.h -// Product: cv act library -// Purpose: The ITokenAuth interface represents a IToken authentication state -// using one the ITokenPIN objects owned by a token. -// -// Copyright: (c) 2007 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -// -// Autor: Markus Tesche (MTE) -// Date: 11/09/2007 -// --------------------------------------------------------------------------- - -#ifndef ACT_ITokenAuth_h -#define ACT_ITokenAuth_h - -#include "actBlob.h" -#include "actBasics.h" -#include "actIRefCounted.h" - -namespace act -{ - class AuthInfo; - - class IToken; - class ITokenPIN; - class ITokenFile; - class IAuthIdRef; - class IAuthConstrained; - - enum AuthConstrainedType - { - AUTH_CONSTRAINED_ALWAYS = 0, - AUTH_CONSTRAINED_NOT, - AUTH_CONSTRAINED_AND, - AUTH_CONSTRAINED_OR, - }; - - // - // IAuthFactory - class IAuthFactory - { - public: - virtual IAuthIdRef* CreateAuthIdRef(const Blob& authId, ITokenFile* path, - byte constrained_mode = AUTH_CONSTRAINED_ALWAYS) = 0; - - virtual ITokenPIN* CreatePin(const AuthInfo& ai, byte objRef, ITokenFile* path, - IAuthIdRef* authIdRef, IAuthIdRef* parentAuthIdRef) = 0; - - // TODO: MTE: deprecated, use CreatePin(const AuthInfo&...) instead - virtual ITokenPIN* CreatePin(int type, int usage, byte objRef, int minLen, - int maxLen, IAuthIdRef* authIdRef, const char* name = 0) = 0; - - protected: - virtual ~IAuthFactory() { } - }; - - - // - // IAuthIdRef - class IAuthIdRef : public IRefCounted - { - public: - virtual byte GetAuthIdByte() const = 0; - virtual const Blob& GetAuthId() const = 0; - virtual IAuthConstrained* GetAuthConstrained() = 0; - - virtual bool Equals(const Blob& authId) const = 0; - }; - - // - // IAuthIdRefIterator - class IAuthIdRefIterator : public IRefCounted - { - public: - virtual void Reset() = 0; - virtual IAuthIdRef* Next() = 0; - }; - - - // - // ITokenAuthIterator - class ITokenAuthIterator : public IRefCounted - { - public: - virtual void Reset(ITokenFile* parent = 0) = 0; - virtual ITokenPIN* Next() = 0; - }; - - // - // ITokenAuth - class ITokenAuth : public IRefCounted - { - public: - virtual bool Login(ITokenPIN* auth_obj, const Blob& pin) = 0; - - virtual bool Logout() = 0; - virtual bool Logout(const ITokenPIN* auth_obj) = 0; - virtual bool LogoutEx(bool reset_security_state) = 0; - - virtual Blob GetChallenge(const ITokenPIN* auth_obj) = 0; - - virtual IToken* GetToken() const = 0; - virtual ITokenPIN* GetAuthenticated() const = 0; - virtual ITokenPIN* GetAuthenticated(size_t index) const = 0; - - virtual bool NeedsPINValue() const = 0; - virtual bool HasChallenge() const = 0; - virtual bool HasChallenge(const ITokenPIN* auth_obj) const = 0; - virtual bool IsAuthenticated(const ITokenPIN* auth_obj) const = 0; - virtual bool IsAuthenticated(bool verify_security_state = false) const = 0; - - /*! - * Clears the internal authentication state for given auth_obj. - * - * If auth_obj is not authenticated: - * - do nothing - * - return false - * - * If auth_obj is authenticated: - * - remove auth_obj from authenticated-list. - * - return true - * - * \note does NOT reset the card's authentication state! - * - * \param auth_obj \ref ITokenPIN - * \return true if succeeded, false if not - */ - virtual bool Invalidate(ITokenPIN* auth_obj) = 0; - virtual bool Select(const ITokenPIN* auth_obj, bool force) = 0; - - virtual ITokenAuthIterator* Iterator(int type, const Blob& authId = Blob()) const = 0; - }; - -} // namespace act - -#endif // ACT_ITokenAuth_h diff --git a/actlibrary/MacOSX-10.4-ppc/Release/include/actITokenBlockCipherKey.h b/actlibrary/MacOSX-10.4-ppc/Release/include/actITokenBlockCipherKey.h deleted file mode 100644 index 3f13e59..0000000 --- a/actlibrary/MacOSX-10.4-ppc/Release/include/actITokenBlockCipherKey.h +++ /dev/null @@ -1,59 +0,0 @@ -// --------------------------------------------------------------------------- -// Name: actITokenBlockCipherKey.h -// Product: cv act library -// Purpose: The interface ITokenBlockCipherKey enables access to a key stored -// on a secure token. -// -// Copyright: (c) 2008 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -// -// Autor: Markus Tesche -// Date: 05/15/2008 -// --------------------------------------------------------------------------- - -#ifndef ACT_ITokenBlockCipherKey_h -#define ACT_ITokenBlockCipherKey_h - -#include "actTokenBase.h" - -#include "actIBlockCipherKey.h" - -#include "actITokenAuthOwner.h" -#include "actITokenFileOwner.h" -#include "actITokenBlockCipher.h" - -namespace act -{ - class IToken; - class ITokenConfig; - - // - // ITokenBlockCipherKey - class ITokenBlockCipherKey - : public IBlockCipherKey - , public ITokenAuthOwner - , public ITokenFileOwner - { - public: - virtual ITokenBlockCipherKey* Clone() const = 0; - - virtual ITokenBlockCipher* GetCipher() = 0; - virtual const ITokenBlockCipher* GetCipher() const = 0; - - virtual KeyType GetType() const = 0; - virtual IToken* GetToken() const = 0; - virtual const char* GetName() const = 0; - virtual void Configure(ITokenConfig* tkcfg) = 0; - - virtual void SetRawKey(const Blob& raw_key) = 0; - virtual void GetRawKey(Blob& raw_key) const = 0; - - virtual void SetMode(const char* modename) = 0; - virtual void SetPadding(const char* padname) = 0; - }; - -} // namespace act - -#endif // ACT_ITokenBlockCipherKey_h diff --git a/actlibrary/MacOSX-10.4-ppc/Release/include/actITokenConfig.h b/actlibrary/MacOSX-10.4-ppc/Release/include/actITokenConfig.h deleted file mode 100644 index cecaa7e..0000000 --- a/actlibrary/MacOSX-10.4-ppc/Release/include/actITokenConfig.h +++ /dev/null @@ -1,60 +0,0 @@ -// --------------------------------------------------------------------------- -// Name: actITokenConfig.h -// Product: cv act library -// Purpose: IToken configuration. -// -// Copyright: (c) 2008 cv cryptovision GmbH -// all rights reserved. -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -// -// Autor: Markus Tesche -// Date: 11/07/2008 -// --------------------------------------------------------------------------- - -#ifndef ACT_ITokenConfig_h -#define ACT_ITokenConfig_h - -#include "actIParam.h" -#include "actIRefCounted.h" - -namespace act -{ - class ISCardOS; - class IToken; - class ITokenPIN; - class ITokenAuth; - class ITokenKey; - class ITokenBlockCipher; - class ITokenBlockCipherKey; - class ITokenFileMap; - class ITokenFileCache; - - // - // ITokenConfig - class ITokenConfig - : public IParam - , virtual public IRefCounted - { - public: - virtual ITokenConfig* Clone() const = 0; - - // Individual card detection - virtual bool IsSupported(ISCardOS* os) const = 0; - - // Configures the token, if fails throws an Exception - virtual void Configure(IToken* token) const = 0; - virtual void Configure(ITokenPIN* auth_obj) const = 0; - virtual void Configure(ITokenKey* key) const = 0; - virtual void Configure(ITokenBlockCipher* cipher) const = 0; - virtual void Configure(ITokenBlockCipherKey* key) const = 0; - - // Factory's for token helper objects - virtual ITokenAuth* CreateAuth(IToken* token) = 0; - virtual ITokenFileMap* CreateFileMap(const IToken* token) = 0; - virtual ITokenFileCache* CreateFileCache(IToken* token) = 0; - }; - -} // namespace act - -#endif // ACT_ITokenConfig_h diff --git a/actlibrary/MacOSX-10.4-ppc/Release/include/actITokenExtension.h b/actlibrary/MacOSX-10.4-ppc/Release/include/actITokenExtension.h deleted file mode 100644 index 784c418..0000000 --- a/actlibrary/MacOSX-10.4-ppc/Release/include/actITokenExtension.h +++ /dev/null @@ -1,39 +0,0 @@ -// --------------------------------------------------------------------------- -// Name: actITokenExtension.h -// Product: cv act library -// Purpose: Interface ITokenExtension provides functionality to register extensions to -// IToken derived objects. -// -// Copyright: (c) 2008 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -// -// Autor: Markus Tesche -// Date: 12/02/2008 -// --------------------------------------------------------------------------- - -#ifndef ACT_ITokenExtension_h -#define ACT_ITokenExtension_h - -#include "actIRefCounted.h" - -namespace act -{ - class IToken; - - // - // ITokenExtension - class ITokenExtension : public IRefCounted - { - protected: - virtual ~ITokenExtension() { } - - public: - virtual void* GetCreatePtr() throw() = 0; - virtual bool Register(IToken* token) = 0; - }; - -} // namespace act - -#endif // ACT_ITokenExtension_h diff --git a/actlibrary/MacOSX-10.4-ppc/Release/include/actITokenFileCache.h b/actlibrary/MacOSX-10.4-ppc/Release/include/actITokenFileCache.h deleted file mode 100644 index 0991040..0000000 --- a/actlibrary/MacOSX-10.4-ppc/Release/include/actITokenFileCache.h +++ /dev/null @@ -1,42 +0,0 @@ -// --------------------------------------------------------------------------- -// Name: actITokenFileCache.h -// Product: cv act library -// Purpose: Interface used for FID based binary cache. -// -// Copyright: (c) 2008 cv cryptovision GmbH -// all rights reserved. -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -// -// Autor: Markus Tesche -// Date: 11/07/2008 -// --------------------------------------------------------------------------- - -#ifndef ACT_ITokenFileCache_h -#define ACT_ITokenFileCache_h - -#include "actIRefCounted.h" - -#include - -namespace act -{ - class Blob; - class IToken; - - // - // ITokenFileCache - class ITokenFileCache : public IRefCounted - { - protected: - typedef std::map CacheMap; - - public: - virtual bool InitCache(IToken* token) = 0; - virtual Blob GetCache(const Blob& filepath) const = 0; - virtual void PutCache(const Blob& filepath, const Blob& memory) const = 0; - }; - -} // namespace act - -#endif // ACT_ITokenFileCache_h diff --git a/actlibrary/MacOSX-10.4-ppc/Release/include/actITokenFileOwner.h b/actlibrary/MacOSX-10.4-ppc/Release/include/actITokenFileOwner.h deleted file mode 100644 index 1762d31..0000000 --- a/actlibrary/MacOSX-10.4-ppc/Release/include/actITokenFileOwner.h +++ /dev/null @@ -1,37 +0,0 @@ -// --------------------------------------------------------------------------- -// Name: actITokenFileOwner.h -// Product: cv act library -// Purpose: The ITokenFileOwner interface is implemented by objects which -// refer to a specific location on token represented by ITokenFile. -// -// Copyright: (c) 2010 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -// -// Autor: Markus Tesche -// Date: 28/03/2010 -// --------------------------------------------------------------------------- - -#ifndef ACT_ITokenFileOwner_h -#define ACT_ITokenFileOwner_h - -namespace act -{ - class ITokenFile; - - // - // ITokenFileOwner - class ITokenFileOwner - { - public: - virtual ITokenFile* GetPath() const = 0; - virtual void SetPath(ITokenFile* file) = 0; - - protected: - virtual ~ITokenFileOwner() { } - }; - -} // namespace act - -#endif // ACT_ITokenFileOwner_h diff --git a/actlibrary/MacOSX-10.4-ppc/Release/include/actITokenInitializer.h b/actlibrary/MacOSX-10.4-ppc/Release/include/actITokenInitializer.h deleted file mode 100644 index 0de6aef..0000000 --- a/actlibrary/MacOSX-10.4-ppc/Release/include/actITokenInitializer.h +++ /dev/null @@ -1,131 +0,0 @@ -// --------------------------------------------------------------------------- -// Name: actITokenInitializer.h -// Product: cv act library -// Purpose: ITokenInitializer interface declares common token profile initialization functionality. -// -// Copyright: (c) 2009 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -// -// Autor: Markus Tesche -// Date: 04/20/2009 -// --------------------------------------------------------------------------- - -#ifndef ACT_ITokenInitializer_h -#define ACT_ITokenInitializer_h - -#include "actBlob.h" -#include "actTokenBase.h" -#include "actIRefCounted.h" - -namespace act -{ - extern const byte PIN_PAD_CHAR; - - struct TIData - { - private: - TIData(const TIData&) throw(); - TIData& operator=(const TIData&) throw(); - - public: - TIData(const char* _profile_name = 0) - : profile_name(_profile_name) - , profile_type(PROFILE_UNKNOWN) - , retry_counter(3) - , pin_pad_byte(PIN_PAD_CHAR) - , enable_pin_padding(false) - , enable_pin_pce_so(false) - , enable_pin_pce_user(false) - , enable_minidriver(false) - , enable_minidriver_pnp(false) - , enable_biometric(false) - , enable_biometric_pins(false) - , load_only(false) - , load_package_MoC(false) - , load_package_2048(false) - , load_package_ecc(false) - { } - - Blob atr_historical_bytes; - Blob atr_historical_bytes_suffix; - Blob card_pin; - Blob so_pin; - Blob user_pin; - Blob serial_number; - Blob last_update_pin_utc; - Blob challenge_response_key; - Blob binary_data; - - const char* profile_name; - ProfileType profile_type; - - short retry_counter; - byte pin_pad_byte; - - bool enable_pin_padding; - bool enable_pin_pce_so; - bool enable_pin_pce_user; - bool enable_minidriver; - bool enable_minidriver_pnp; - bool enable_biometric; - bool enable_biometric_pins; - - bool load_only; - bool load_package_MoC; - bool load_package_2048; - bool load_package_ecc; - }; - - struct TITokenInfo - { - TITokenInfo(size_t pin_len_max, size_t pin_len_min, size_t _key_len_cr) - : serial_number_len(16) - , key_len_cr(_key_len_cr) - { - pin_len_max_admin = pin_len_max_so = pin_len_max_user = pin_len_max; - pin_len_min_admin = pin_len_min_so = pin_len_min_user = pin_len_min; - } - - size_t serial_number_len; - - size_t key_len_cr; - - size_t pin_len_max_admin; - size_t pin_len_max_so; - size_t pin_len_max_user; - - size_t pin_len_min_admin; - size_t pin_len_min_so; - size_t pin_len_min_user; - }; - - class ISCardOS; - class IProfileGenerator; - class ISCardCmdObserver; - - // - // ITokenInitializer - class ITokenInitializer : public IRefCounted - { - public: - virtual ISCardOS* GetOS() const= 0; - virtual const TITokenInfo& GetTokenInfo() const = 0; - virtual const ProfileType* GetSupportedProfileList() const = 0; - - virtual bool SupportsProfile(ProfileType profile_type) const = 0; - virtual void SetGenerator(IProfileGenerator* generator) = 0; - virtual void SetObserver(ISCardCmdObserver* observer) = 0; - - virtual bool EraseProfile(const Blob& card_pin) = 0; - virtual bool ExistProfile(bool& is_pkcs15, bool& requires_adminpin) = 0; - virtual void CreateProfile(TIData& data, ProfileType profile_type) = 0; - virtual void FinalizeProfile(TIData& data) = 0; - - virtual void PinChangeReminder(TIData& data, bool enable) = 0; - }; - -} // namespace act - -#endif // ACT_ITokenInitializer_h diff --git a/actlibrary/MacOSX-10.4-ppc/Release/include/actITokenKey.h b/actlibrary/MacOSX-10.4-ppc/Release/include/actITokenKey.h deleted file mode 100644 index 47e21bb..0000000 --- a/actlibrary/MacOSX-10.4-ppc/Release/include/actITokenKey.h +++ /dev/null @@ -1,64 +0,0 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actITokenKey.h -// Product: cv act library -// Purpose: The interface ITokenKey enables access to a key stored in a secure token. -// -// Copyright: (c) 2003 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_ITokenKey_h -#define ACT_ITokenKey_h - -#include "actIRefCounted.h" -#include "actISignatureKey.h" -#include "actITokenAuthOwner.h" -#include "actITokenFileOwner.h" - -#include "actTokenBase.h" - -namespace act -{ - class IToken; - class ITokenConfig; - - // - // ITokenKeyIterator - class ITokenKeyIterator : public IRefCounted - { - public: - virtual void Reset(ITokenFile* parent = 0) = 0; - virtual IKey* Next() = 0; - }; - - // - // ITokenKey - class ITokenKey - : public ISignatureKey - , public ITokenAuthOwner - , public ITokenFileOwner - { - public: - virtual ITokenKey* Clone() const = 0; - - virtual KeyType GetType() const = 0; - virtual IToken* GetToken() const = 0; - virtual const char* GetName() const = 0; - virtual void Configure(ITokenConfig* tkcfg) = 0; - - virtual Blob GetCertificate() const = 0; - virtual IKey* GetPublicKey() const = 0; - - virtual void VerifyPin(const Blob& pin) = 0; - - virtual Blob GetID() const = 0; - virtual Blob GetSubject() const = 0; - - virtual ITokenKeyIterator* Iterator(KeyType type, const Blob& authId = Blob()) const = 0; - }; - -} // namespace act - -#endif // ACT_ITokenKey_h diff --git a/actlibrary/MacOSX-10.4-ppc/Release/include/actITokenPIN.h b/actlibrary/MacOSX-10.4-ppc/Release/include/actITokenPIN.h deleted file mode 100644 index 3da8440..0000000 --- a/actlibrary/MacOSX-10.4-ppc/Release/include/actITokenPIN.h +++ /dev/null @@ -1,221 +0,0 @@ -// --------------------------------------------------------------------------- -// Name: actITokenPIN.h -// Product: cv act library -// Purpose: The class ITokenPIN defines the interfaces of the PIN operations -// -// Copyright: (c) 2002 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -// -// Autor: Dr. Xiangdong Wang (XWG) -// Date: 04/05/2002 -// --------------------------------------------------------------------------- - -#ifndef ACT_ITokenPIN_h -#define ACT_ITokenPIN_h - -#include "actBasics.h" -#include "actDate.h" -#include "actBlob.h" - -#include "actITokenAuth.h" -#include "actITokenFileOwner.h" -#include "actIRefCounted.h" - -#include "actTokenBase.h" - -namespace act -{ - enum PINType - { - UNKNOWN_PIN = 0x0000, - SO_PIN = 0x0001, - USER_PIN = 0x0002, - UNBLOCK_PIN = 0x0003, - - PIN_MASK = 0x000F, - - EXAUTH_PIN = 0x0010, - BIOMETRIC_PIN = 0x0020, - CERTBASED_PIN = 0x0040, - - BAC_PIN = 0x0100, - ICAO_PIN = 0x0200, - - EAC_PACE_PIN = 0x0400, - EAC_TA_PIN = 0x0800, - EAC_CA_PIN = 0x1000, - - PIN_TYPE_MASK = 0x7fff, - - AUTHENTICATED_PIN = 0x8000, // Current authenticated PIN - - // combined types - EXAUTH_SO_PIN = EXAUTH_PIN | SO_PIN, - EXAUTH_UNBLOCK_PIN = EXAUTH_PIN | UNBLOCK_PIN, - - BIOMETRIC_USER_PIN = BIOMETRIC_PIN | USER_PIN, - BIOMETRIC_SO_PIN = BIOMETRIC_PIN | SO_PIN, - - EAC_PACE_UNKNOWN_PIN = EAC_PACE_PIN | UNKNOWN_PIN, - EAC_PACE_SO_PIN = EAC_PACE_PIN | SO_PIN, - EAC_PACE_USER_PIN = EAC_PACE_PIN | USER_PIN, - EAC_PACE_UNBLOCK_PIN = EAC_PACE_PIN | UNBLOCK_PIN, - - EAC_TA_UNKNOWN_PIN = EAC_TA_PIN | UNKNOWN_PIN, - EAC_TA_USER_PIN = EAC_TA_PIN | USER_PIN, - - EAC_CA_UNKNOWN_PIN = EAC_CA_PIN | UNKNOWN_PIN, - EAC_CA_USER_PIN = EAC_CA_PIN | USER_PIN, - }; - - enum PINFlags - { - PIN_INITIALIZED = (1 << 0), - PIN_IS_LOCAL = (1 << 1), - PIN_CASE_SENSITIVE = (1 << 2), - PIN_CHANGE_DISABLED = (1 << 3), - PIN_UNBLOCK_DISABLED = (1 << 4), - PIN_DISABLE_ALLOWED = (1 << 5), - PIN_NEEDS_PADDING = (1 << 6), - PIN_NEEDS_UPDATE = (1 << 7), - PIN_REQUIRES_SM = (1 << 8), - PIN_REQUIRES_NO_DATA = (1 << 9), - PIN_REQUIRES_ENCRYPTION = (1 << 10), - PIN_CHANGE_REQUIRES_OLD = (1 << 11), - PIN_IS_DEFAULT = (1 << 12), // marks the one and only default pin - - PIN_FLAGS_MASK = (1 << 13) - 1, - - // combined flags - PIN_FLAGS = PIN_INITIALIZED | PIN_IS_LOCAL | PIN_CASE_SENSITIVE, - PIN_FLAGS_DEFAULT = PIN_IS_DEFAULT | PIN_FLAGS, - PIN_FLAGS_SO = PIN_INITIALIZED | PIN_IS_LOCAL | PIN_CASE_SENSITIVE | PIN_UNBLOCK_DISABLED, - PIN_FLAGS_EXAUTH = PIN_INITIALIZED | PIN_IS_LOCAL, - PIN_FLAGS_BIOMETRIC = PIN_INITIALIZED | PIN_IS_LOCAL, - PIN_FLAGS_CERTBASED = PIN_INITIALIZED | PIN_IS_LOCAL | PIN_REQUIRES_NO_DATA | PIN_CHANGE_DISABLED | PIN_UNBLOCK_DISABLED, - }; - - enum AuthDataEncoding - { - PIN_ENCODING_UNKNOWN = -1, - PIN_ENCODING_BINARY = 0, - PIN_ENCODING_ASCII_NUMERIC, - PIN_ENCODING_UTF8, - PIN_ENCODING_BCD, - PIN_ENCODING_HALF_NIBBLE_BCD, - PIN_ENCODING_ISO9564_1, - - PIN_ENCODING = PIN_ENCODING_ASCII_NUMERIC, - }; - - enum AuthId - { - AUTHID_INVALID = 0x00, - }; - - enum BioFinger - { - FINGER_UNKNOWN = 0, - FINGER_RIGHT_THUMB = 1, - FINGER_RIGHT_INDEX = 2, - FINGER_RIGHT_MIDDLE = 3, - FINGER_RIGHT_RING = 4, - FINGER_RIGHT_LITTLE = 5, - FINGER_LEFT_THUMB = 6, - FINGER_LEFT_INDEX = 7, - FINGER_LEFT_MIDDLE = 8, - FINGER_LEFT_RING = 9, - FINGER_LEFT_LITTLE = 10 - }; - - class IAuthIdRef; - class ITokenFile; - class IToken; - class ISCardOS; - class AuthInfo; - - // - // ITokenPIN - class ITokenPIN - : public IRefCounted - , public ITokenFileOwner - { - public: - virtual ITokenPIN* Clone() const = 0; - virtual bool Equals(const ITokenPIN* other) const = 0; - virtual int Compare(const ITokenPIN* other) const = 0; - - virtual int GetType() const = 0; - virtual int GetUsage() const = 0; - virtual byte GetObjRef() const = 0; - virtual IToken* GetToken() const = 0; - virtual const char* GetName() const = 0; - virtual AuthDataEncoding GetEncoding() const = 0; - - virtual const AuthInfo* GetInfo() const = 0; - virtual void SetInfo(const AuthInfo* ai) = 0; - - virtual void SetDefault(bool is_default) = 0; - virtual bool IsDefault() const = 0; - - virtual bool IsInitialized() const = 0; - virtual bool IsAuthenticated() const = 0; - - virtual bool NeedsUpdate() const = 0; - virtual bool NeedsPINValue() const = 0; - - virtual bool GetLengthInfo(LengthInfo& info) const = 0; - virtual bool CheckPinLength(const Blob& pin) const = 0; - virtual bool GetLastChange(Date& date, bool& supported) const = 0; - - virtual void VerifyPin(const Blob& pin) = 0; - - // NOTE: ChangePin preserves the authentication state if successfull - // TODO: MTE: Describe in detail! - virtual void ChangePin(const Blob& oldpin, const Blob& newpin) = 0; - - // NOTE: UnlockPin preserves the authentication state if successfull - // TODO: MTE: Describe in detail! - virtual void UnlockPin(ITokenPIN* so, const Blob& pin, const Blob& newpin) = 0; - - // NOTE: SetPinValue preserves the authentication state if successfull - // TODO: MTE: Describe in detail! - virtual void SetPinValue(ITokenPIN* so, const Blob& so_pin, const Blob& newpin) = 0; - - virtual void Select(ISCardOS* os = 0) const = 0; - - virtual ITokenPIN* GetParent() const = 0; - - virtual IAuthIdRef* GetAuthIdRef() const = 0; - virtual IAuthIdRef* GetParentAuthIdRef() const = 0; - - // Bio extensions - virtual byte GetFinger() const = 0; - virtual bool GetBioHeader(Blob& bioheader) = 0; - - // ExternalAuth Key extensions - virtual Blob GetChallenge() const = 0; - virtual void ResetChallenge() = 0; - virtual Blob ComputeResponse(const Blob& auth_key, const Blob& challenge) const = 0; - - // Certificate based authentication extensions - virtual void SetCHAT(const Blob& chat) = 0; - virtual void SetCHAT(move_from chat) = 0; - virtual Blob GetCHAT() const = 0; - - protected: - // SCard Functionality - virtual Blob doGetChallenge() const = 0; - virtual void doResetChallenge() const = 0; - virtual void doVerify(const Blob& pin) const = 0; - virtual SecStatus doGetSecurityStatus(Blob& context) const = 0; - - private: - friend class TokenAuth; - }; - -} // namespace act - -#endif // ACT_ITokenPIN_h diff --git a/actlibrary/MacOSX-10.4-ppc/Release/include/actIX509CRL.h b/actlibrary/MacOSX-10.4-ppc/Release/include/actIX509CRL.h deleted file mode 100644 index 750ddd6..0000000 --- a/actlibrary/MacOSX-10.4-ppc/Release/include/actIX509CRL.h +++ /dev/null @@ -1,48 +0,0 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actIX509CRL.h -// Product: cv act library -// Purpose: -// -// Copyright: (c) 2000 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_IX509CRL_h -#define ACT_IX509CRL_h -#include "actICRL.h" -#include "actX509Extension.h" - -namespace act -{ - - class IX509CRL: public ICRL - { - public: - virtual void SetThisUpdate(const Date &date )=0; - virtual void SetNextUpdate(const Date &date )=0; - virtual void GetThisUpdate(Date &date ) const=0; - virtual void GetNextUpdate(Date &date ) const=0; - - virtual X509Extension GetExtension(const char* oid) const=0; - virtual X509Extension GetExtension(const act::Blob& oidbl) const=0; - virtual void SetExtension(const X509Extension &ext)=0; - virtual X509Extension GetNextExtension(const X509Extension& ext) const=0; - virtual void RemoveExtension(const char* oid)=0; - - virtual Blob GetNextEntry(const Blob& certsernr) const=0; - - virtual void SetEntryRevocationDate(const Blob& certsn, const Date &vnbefore )=0; - virtual void GetEntryRevocationDate(const Blob& certsn, Date &vnbefore ) const=0; - - virtual X509Extension GetEntryExtension(const Blob& certsn, const char* oid) const=0; - virtual void SetEntryExtension(const Blob& certsn, const X509Extension &ext)=0; - virtual X509Extension GetNextEntryExtension(const Blob& certsn,const X509Extension& ext) const=0; - virtual void RemoveEntryExtension(const Blob& certsn,const char* oid)=0; - - }; -} // namespace act - -#endif - diff --git a/actlibrary/MacOSX-10.4-ppc/Release/include/actIX509Certificate.h b/actlibrary/MacOSX-10.4-ppc/Release/include/actIX509Certificate.h deleted file mode 100644 index 85d6907..0000000 --- a/actlibrary/MacOSX-10.4-ppc/Release/include/actIX509Certificate.h +++ /dev/null @@ -1,46 +0,0 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actIX509Certificate.h -// Product: cv act library -// Purpose: The abstract class IX509Certificate enables access to a certificate, -// e.g. its public key and the corresponding validity. -// -// Copyright: (c) 2000 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_IX509Certificate_h -#define ACT_IX509Certificate_h - -#include "actBasics.h" -#include "actDate.h" -#include "actICertificate.h" -#include "actX509Extension.h" - -namespace act -{ - class IKey; - class Blob; - - class IX509Certificate : public ICertificate - { - public: - - virtual void SetValidityNotBefore(const Date &vnbefore ) =0; - virtual void SetValidityNotAfter(const Date &vnafter ) =0; - virtual void GetValidityNotBefore(Date &vnbefore ) const =0; - virtual void GetValidityNotAfter(Date &vnafter ) const =0; - - virtual bool CheckValidity(const Date& date = Date() ) const =0; - - virtual X509Extension GetExtension(const char* oid) const=0; - virtual X509Extension GetExtension(const act::Blob& oidbl) const=0; - virtual void SetExtension(const X509Extension &ext)=0; - virtual X509Extension GetNextExtension(const X509Extension& ext) const=0; - virtual void RemoveExtension(const char* oid)=0; - }; -} // namespace act - -#endif - diff --git a/actlibrary/MacOSX-10.4-ppc/Release/include/actInit.h b/actlibrary/MacOSX-10.4-ppc/Release/include/actInit.h deleted file mode 100644 index 36f0099..0000000 --- a/actlibrary/MacOSX-10.4-ppc/Release/include/actInit.h +++ /dev/null @@ -1,578 +0,0 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actInit.h -// Product: cv act library -// Purpose: initialize the map entries of the objects -// -// Copyright: (c) 2007 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -// remarks: -// declare NO_SMARTCARD: no smartcard support required. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef actInit_h -#define actInit_h - -#include "actEnv.h" -#include "actKeyKit.h" -#include "actKeyReg.h" -#include "actBlockCipherKit.h" -#include "actBlockCipherReg.h" -#include "actBlockCipherModeReg.h" -#include "actBlockCipherModeKit.h" -#include "actStreamCipherKit.h" -#include "actStreamCipherReg.h" -#include "actHashKit.h" -#include "actHashReg.h" -#include "actEMSAReg.h" -#include "actEMSAKit.h" -#include "actDerivatorReg.h" -#include "actDerivatorKit.h" -#include "actPaddingReg.h" -#include "actPaddingKit.h" -#include "actCertificateReg.h" -#include "actCertificateKit.h" -#include "actX509KeyReg.h" -#include "actX509SignReg.h" -#include "actX509SignHashReg.h" -#include "actX509Kit.h" -#include "actDefaultRNG.h" -#include "actRNGKit.h" - -#ifndef NO_SMARTCARD -// NOTE: To Enable support for additional smartcards / profiles define: -// ACT_SUPPORT_TCOS_NETKEY30 -# include "actSCardOSReg.h" -# include "actSCardOSKit.h" -# include "actSCardTokenReg.h" -# include "actSCardTokenKit.h" -# include "actSubsystemReg.h" -# include "actSubsystemKit.h" -# include "actSlotMonitorReg.h" -# include "actSlotMonitorKit.h" -# include "actTokenExtensionReg.h" -# include "actTokenExtensionKit.h" -# include "actTokenAuthProtocolReg.h" -# include "actTokenAuthProtocolKit.h" -# include "actJCAppletKit.h" -# include "actJCAppletReg.h" -# include "actPKCS15BehaviorReg.h" -# include "actPKCS15BehaviorKit.h" -# include "actProfileGeneratorReg.h" -# include "actProfileGeneratorKit.h" -#endif // NO_SMARTCARD - -namespace act -{ - // ------------------------------------------------------------------------ - const KeyMapEntry KeyMap[] = - { - { "BlockCipher", CreateBlockCipherKey }, - { "StreamCipher", CreateStreamCipherKey }, - - { "IES", CreateIESKey }, - { "DSA", CreateDSAKey }, - { "RSA", CreateRSAKey }, - { "ECDSA", CreateECDSAKey }, - { "ECGDSA", CreateECGDSAKey }, - - { "DH", CreateDHKey }, - { "ECDH", CreateECDHKey }, - - { "HashMAC", CreateHashMACKey }, - { "CBCMAC", CreateCBCMACKey }, - { "SecretKeyMAC", CreateSecretKeyMACKey }, - { "RetailCFBMAC", CreateRetailCFBMACKey }, - { "iMAC3", Create_iMAC3Key }, // ISO9797-1 M2 Alg 3 MAC8 - { "CMAC", CreateCMACKey }, // NIST 800-38B CMAC - { 0, 0 } - }; - - // ------------------------------------------------------------------------ - const BlockCipherMapEntry BlockCipherMap[] = - { - { "AES", CreateRijndael }, - { "DES", CreateDES }, - { "TripleDES", CreateTripleDES }, - { "CAST128", CreateCAST128 }, - { "BlowFish", CreateBlowFish }, - { "Mars", CreateMars }, - { "Serpent", CreateSerpent }, - { "Rijndael", CreateRijndael }, - { "TwoFish", CreateTwoFish }, - { "RC2", CreateRC2 }, - //{ "RC6", CreateRC6 }, - { 0, 0 } - }; - - // ------------------------------------------------------------------------ - const BlockCipherModeMapEntry BlockCipherModeMap[] = - { - { "ECB", CreateECBMode }, - { "CBC", CreateCBCMode }, - { "CFB", CreateCFBMode }, - { "OFB", CreateOFBMode }, - { "CTR", CreateCTRMode }, - { 0, 0 } - }; - - // ------------------------------------------------------------------------ - const StreamCipherMapEntry StreamCipherMap[] = - { - { "ARC4", CreateARC4 }, - { 0, 0 } - }; - - // ------------------------------------------------------------------------ - const HashMapEntry HashMap[] = - { - { "MD2", CreateMD2 }, - { "MD4", CreateMD4 }, - { "MD5", CreateMD5 }, - { "RIPEMD128", CreateRipemd128 }, - { "RIPEMD160", CreateRipemd160 }, - { "SHA0", CreateSHA0 }, - { "SHA1", CreateSHA1 }, - { "SHA224", CreateSHA224 }, - { "SHA256", CreateSHA256 }, - { "SHA384", CreateSHA384 }, - { "SHA512", CreateSHA512 }, - { "DummyHash", CreateDummyHash }, - { 0, 0 } - }; - - // ------------------------------------------------------------------------ - const EMSAMapEntry EMSAMap[] = - { - { "EMSA1", CreateEMSA1 }, - { "PKCS1V1_5EMSA", CreatePKCS1V1_5EMSA }, - { "TLS_EMSA", CreateTLS_EMSA}, - { "PKCS1_PSS_EMSA", CreatePKCS1_PSS_EMSA }, - { "DummyEMSA", CreateDummyEMSA }, // Used for "Hash on Card" - { 0, 0 } - }; - - // ------------------------------------------------------------------------ - const DerivatorMapEntry DerivatorMap[] = - { - { "KDF1", CreateKDF1 }, // IEEE P1363 KDF1 - { "KDF2", CreateX963KDF }, // IEEE P1363 KDF2 (= X963KDF) - { "X963KDF", CreateX963KDF }, // ANSI X9.63 KDF - { "PBKDF1", CreatePBKDF1 }, // PKCS#5 PBKDF1 - { "PBKDF2", CreatePBKDF2 }, // PKCS#5 PBKDF2 - { "EACKDF", CreateEACKDF }, // EAC 2.01, BSI TR-03110 A.2.3 - { "SessionKDF", CreateEACKDF }, // BSI TR-03111 (= EACKDF) - { 0, 0 } - }; - - // ------------------------------------------------------------------------ - const PaddingMapEntry PaddingMap[] = - { - { "PKCS5", CreatePKCS5Pad }, - { "RSAES", CreatePKCS1V1_5EMEPad }, - { "ISO", CreateOneAndZerosPad }, - { "ISO9796", CreateISO9796Pad }, - { "NOPAD", CreateNoPad }, - { 0, 0 } - }; - - // ------------------------------------------------------------------------ - const CertificateMapEntry CertificateMap[] = - { - { "X509", CreateX509Certificate }, - { "CV", CreateCVCertificate }, - { 0, 0 } - }; - - // ------------------------------------------------------------------------ - const CRLMapEntry CRLMap[] = - { - { "X509", CreateX509CRL }, - { 0, 0 } - }; - - // ------------------------------------------------------------------------ - const X509KeyMapEntry X509KeyMap[] = - { - { "1.2.840.113549.1.1.1", CreateRSAKey, X509ToRSA, RSAToX509 }, - { "2.5.8.1.1", CreateRSAKey, X509ToRSA, RSAToX509 }, - { "1.2.840.10040.4.1", CreateDSAKey, X509ToDSA, DSAToX509 }, - { "1.3.14.3.2.20", CreateDSAKey, X509ToDSA, DSAToX509 }, - { "1.3.14.3.2.12", CreateDSAKey, X509ToDSA, DSAToX509 }, // secude DSA oid - { "1.2.840.10046.2.1", CreateDHKey, X509ToDH, DHToX509 }, - { "1.2.840.10045.2.1", CreateECDSAKey, X509ToECDSA, ECDSAToX509 }, - { "1.2.840.10045.2.1", CreateECDHKey, X509ToECDSA, ECDSAToX509 }, - { 0, 0, 0, 0 } - }; - - // ------------------------------------------------------------------------ - const X509SignMapEntry X509SignMap[] = - { - { CreateRSAKey, RSAGetAlgID, RSASetAlgID }, - { CreateDSAKey, DSAGetAlgID, DSASetAlgID }, - { CreateECDSAKey, ECDSAGetAlgID, ECDSASetAlgID }, - { CreateDHKey, DHGetAlgID, DHSetAlgID }, - { CreateECDHKey, ECDHGetAlgID, ECDHSetAlgID }, - { 0, 0, 0 } - }; - - // ------------------------------------------------------------------------ - const X509SignHashMapEntry X509SignHashMap[] = - { - // RSA - { "1.2.840.113549.1.1.2", "MD2", "RSA" }, // md2WithRSAEncryption - { "1.2.840.113549.1.1.3", "MD4", "RSA" }, // md4WithRSAEncryption - { "1.2.840.113549.1.1.4", "MD5", "RSA" }, // md5WithRSAEncryption - { "1.2.840.113549.1.1.5", "SHA1", "RSA" }, // shaWithRSAEncryption - { "1.3.14.3.2.29", "SHA1", "RSA" }, - { "1.2.840.113549.1.1.11", "SHA256", "RSA" }, // sha256WithRSAEncryption - { "1.2.840.113549.1.1.12", "SHA384", "RSA" }, // sha384WithRSAEncryption - { "1.2.840.113549.1.1.13", "SHA512", "RSA" }, // sha512WithRSAEncryption - { "1.2.840.113549.1.1.14", "SHA224", "RSA" }, // sha224WithRSAEncryption - { "1.3.36.3.3.1.2", "RIPEMD160", "RSA" }, - { "1.3.36.3.3.1.3", "RIPEMD128", "RSA" }, - // DSA - { "1.2.840.10040.4.3", "SHA1", "DSA" }, - { "1.3.14.3.2.28", "SHA1", "DSA" }, - { "1.3.14.3.2.27", "SHA1", "DSA" }, // secude DSA oid - // ECDSA - { "1.2.840.10045.4.1", "SHA1", "ECDSA" }, // ecdsa-with-Sha1 - { "1.2.840.10045.2.1", "SHA1", "ECDSA" }, // ecdsa-with-Sha1 (deprecated) - { "1.2.840.10045.4.3.1", "SHA224", "ECDSA" }, // ecdsa-with-Sha224 - { "1.2.840.10045.4.3.2", "SHA256", "ECDSA" }, // ecdsa-with-Sha256 - { "1.2.840.10045.4.3.3", "SHA384", "ECDSA" }, // ecdsa-with-Sha384 - { "1.2.840.10045.4.3.4", "SHA512", "ECDSA" }, // ecdsa-with-Sha512 - // DH - { "1.3.6.1.5.5.7.6.4", "SHA1", "DH" }, // DH-POP - // ECDH - { "1.2.840.10045.2.1", "SHA1", "ECDH" }, // "ECDH-POP" - { 0, 0, 0 } - }; - -#ifndef NO_SMARTCARD - // ------------------------------------------------------------------------ - const SCardOSMapEntry SCardOSMap[] = - { - // NOTE: Only lower case historical bytes ! - /* - { "0064050a020131809000", CreateTCOS }, // NetKey (TCOS V2R1) - { "00640560020331809000", CreateTCOS }, // NetKey (TCOS V2R3) - { "0064057b020331809000", CreateTCOS }, // NetKey (TCOS V2R?) - { "00640514020231809000", CreateTCOS }, // etrust (TCOS V2R2) - { "00640561020331809000", CreateTCOS }, // TCOS USB Crypt Token - { "0068d276000028ff051e3180009000", CreateMicardOS }, // Micardo P2.1 - { "4d4943323045", CreateMicardo20E }, // Micardo EC 2.0 - { "0068d276000028ff05233180009000", CreateMicardo23E }, // Micardo EC 2.3 - */ - - // ACOS - { "454d56203033202006", CreateACOS_D01 }, // Austria Card ACOS EMV-D01 - { "44492030324d", CreateACOS_D01 }, // Austria Card ACOS EMV-D01 contactless - { "455041000000000228505900000000", CreateACOS_A04 }, // Austria Card ACOS EMV-A04/A05 - { "455041000000000000000000000000", CreateACOS_A04 }, // Austria Card ACOS EMV-A04/A05 - - // CardOS - { "c802", CreateCardOS_M4 }, // CardOS M4.0 siemens profile - { "c803", CreateCardOS_M4 }, // CardOS M4.01 siemens profile - { "c804", CreateCardOS_M4 }, // CardOS M4.01a siemens profile - { "4d346376", CreateCardOS_M4 }, // CardOS M4.01(a) cv profile - { "4d3463765f4d", CreateCardOS_M4_MoC }, // CardOS M4.01_M cv profile - { "4d3463765f45", CreateCardOS_M4_ECC }, // CardOS M4.01_E cv profile - { "c806", CreateCardOS_V4 }, // CardOS V4.2 - { "c807", CreateCardOS_V4 }, // CardOS V4.3 - { "c808", CreateCardOS_V4 }, // CardOS V4.3B - { "c809", CreateCardOS_V4 }, // CardOS V4.2B - { "c80a", CreateCardOS_V4 }, // CardOS V4.2B DI - { "0000c80a3381b100", CreateCardOS_V4 }, // CardOS V4.2B DI contactless - { "c80b", CreateCardOS_V4 }, // CardOS V4.2C - { "c80d", CreateCardOS_V4 }, // CardOS V4.4 - { "56346376", CreateCardOS_V4 }, // CardOS V4.2/4.3/4.3B cv profile - { "563432626376", CreateCardOS_V4 }, // CardOS V4.2b cv profile - { "5634326244496376", CreateCardOS_V4 }, // CardOS V4.2b DI cv profile - { "563432636376", CreateCardOS_V4 }, // CardOS V4.2c cv profile - { "5634346376", CreateCardOS_V4 }, // CardOS V4.4 cv profile - { "563463765f45", CreateCardOS_V4_ECC }, // CardOS V4.3B ECC cv profile - { "006b0508c806012101434e53103180", CreateCardOS_V4 }, // CardOS V4.2 CNS profile, 2004.02.20 - { "006b0508c807012101434e53103180", CreateCardOS_V4 }, // CardOS V4.3 CNS profile, 2004.02.20 - { "006b0508c808012101434e53103180", CreateCardOS_V4 }, // CardOS V4.3B CNS profile, 2004.02.20 - { "006b0508c806011101434e53103180", CreateCardOS_V4 }, // CardOS V4.2 CNS profile, 2005.03.11 - { "006b0508c807011101434e53103180", CreateCardOS_V4 }, // CardOS V4.3 CNS profile, 2005.03.11 - { "006b0508c808011101434e53103180", CreateCardOS_V4 }, // CardOS V4.3B CNS profile, 2005.03.11 - { "006b0508c808011101434e53103180", CreateCardOS_V4 }, // CardOS V4.3B CNS profile, 2005.03.11 - { "4b53776973735369676e", CreateCardOS_V4 }, // CardOS V4.3B/V4.4 ATR by SwissSign - - // STARCOS - //{ "53504b32339000", CreateStarCOS_3_0}, // G&D STARCOS SPK 2.3 - { "80670412b0030300008101", CreateStarCOS_3_0 }, // G&D STARCOS 3.0 (creational state) - { "80670412b0030300008105", CreateStarCOS_3_0 }, // G&D STARCOS 3.0 - { "80670412b003030000", CreateStarCOS_3_0 }, // G&D STARCOS 3.0 contactless - { "80655343010d067394211b8101", CreateStarCOS_3_0 }, // G&D STARCOS 3.1 (creational state) - { "80655343010d067394211b8105", CreateStarCOS_3_0 }, // G&D STARCOS 3.1 - { "0064051eb20031b0739621db019000", CreateStarCOS_3_2 }, // G&D STARCOS 3.2 (creational state) - { "0064051eb20031b0739621db059000", CreateStarCOS_3_2 }, // G&D STARCOS 3.2 - - // TCOS -#ifdef ACT_SUPPORT_TCOS_NETKEY30 - { "00640411030131c073f701d0009000", CreateTCOS_3_0 }, // NetKey (TCOS 3.0) -#endif - // JavaCards - { "8073002113574a544861314a00", CreateJavaCardOS_2_2 }, // G&D SmartCafe Expert 64 (cfg1) - { "8073002113574a544861314700", CreateJavaCardOS_2_2 }, // G&D SmartCafe Expert 64 (cfg2) - { "8073002113574a544861314800", CreateJavaCardOS_2_2 }, // G&D SmartCafe Expert 64 (cfg3) - { "8073002113574a544861314b00", CreateJavaCardOS_2_2 }, // G&D SmartCafe Expert 64 (cfg4) - { "8073002113574a544861314c00", CreateJavaCardOS_2_2 }, // G&D SmartCafe Expert 64 (cfg5) - { "8073002113574a544861314900", CreateJavaCardOS_2_2 }, // G&D SmartCafe Expert 64 (cfg8) - { "404d4f504153530000000000000000", CreateJavaCardOS_2_2 }, // G&D SmartCafe Expert 64 (XMC2) - - { "534653452d43583332322d56180308", CreateJavaCardOS_2_1_1 },// G&D SmartCafe Expert 2.0 - { "0073c84013009000", CreateJavaCardOS_2_2_1 }, // G&D SmartCafe Expert 3.0 / 3.1 / 3.1 contactless - { "4138004133b1020073c840130090", CreateJavaCardOS_2_2_1 }, // G&D SmartCafe Expert 3.1 contactless (SCM SDI010, Firmware V6.28) - { "4138004133b10073c84013009000", CreateJavaCardOS_2_2_1 }, // G&D SmartCafe Expert 3.1 contactless (SCM SDI010, Firmware V6.32) - { "73667465206364313434", CreateJavaCardOS_2_2_1 }, // G&D SmartCafe Expert 3.2 PIV 144 KB - { "736674652D6364303830", CreateJavaCardOS_2_2_1 }, // G&D SmartCafe Expert 3.2 PIV 80 KB - { "73667465", CreateJavaCardOS_2_2_1 }, // G&D SmartCafe Expert 3.2 (sfte) - { "736674652d6e66", CreateJavaCardOS_2_2_1 }, // G&D SmartCafe Expert 3.2 (sfte-nf) - { "73c840130090009b", CreateJavaCardOS_2_2_1 }, // G&D SmartCafe Expert 3.2 USB Token - { "736674652063643038302d6e66", CreateJavaCardOS_2_2_1 }, // G&D SmartCafe Expert 3.2 (sfte cd080-nf) - { "53462d3443432d3031", CreateJavaCardOS_2_2_1 }, // G&D SmartCafe Expert 5.0 - { "53504b323544499000", CreateJavaCardOS_2_2_1 }, // G&D Mobile Security Card 3.x - { "4d5343", CreateJavaCardOS_2_2_1 }, // G&D Mobile Security Card 3.x - - //{ "4a434f503230", CreateJavaCardOS_2_1 }, // JCOP 20 - { "4a434f503231563232", CreateJavaCardOS_2_2_1 }, // JCOP 21 V2.2 - { "4a434f50323156323331", CreateJavaCardOS_2_2_1 }, // JCOP 21 V2.3.1 - { "4a434f503331563231", CreateJavaCardOS_2_1 }, // JCOP 31 V2.1 - { "4a434f503331563232", CreateJavaCardOS_2_2_1 }, // JCOP 31 V2.2 - { "4a434f50333156323331", CreateJavaCardOS_2_2_1 }, // JCOP 31 V2.3.1 - { "4a434f503331563234", CreateJavaCardOS_2_2_1 }, // JCOP 31 V2.4 - //{ "4a434f5033313336474454", CreateJavaCardOS_2_2_1 }, // JCOP 31 36GDT - { "4a434f503431563232", CreateJavaCardOS_2_2_1 }, // JCOP 41 V2.2 / V2.2 contactless - { "4128001133b04a434f5034315632", CreateJavaCardOS_2_2_1 }, // JCOP 41 V2.2 contactless (SCM SDI010, Firmware V6.32) - { "4a434f50343156323231", CreateJavaCardOS_2_2_1 }, // JCOP 41 V2.2.1 - { "4138001133b04a434f5034315632", CreateJavaCardOS_2_2_1 }, // JCOP 41 V2.2.1 contactless - { "4a434f50343156323331", CreateJavaCardOS_2_2_1 }, // JCOP 41 V2.3.1 - { "4a434f50343156323332", CreateJavaCardOS_2_2_1 }, // JCOP 41 V2.3.2 - { "4a434f503431563234", CreateJavaCardOS_2_2_1 }, // JCOP 41 V2.4 - { "4a434f5076323431", CreateJavaCardOS_2_2_2 }, // JCOP v2.4.1 - { "434f50343156323231ff", CreateJavaCardOS_2_2_1 }, // JCOP 41 V2.2.1 (IDptoken 200) - { "4a434f507632343262657461", CreateJavaCardOS_2_2_2 }, // JCOP v2.4.2 beta - { "0073c84000009000", CreateJavaCardOS_2_2_1 }, // JCOP V2.3.2 - - { "4a434f50563231", CreateJavaCardOS_2_1 }, // JCOP V2.1 - { "4a434f50563232", CreateJavaCardOS_2_2_1 }, // JCOP V2.2 - { "4a434f5056323231", CreateJavaCardOS_2_2_1 }, // JCOP V2.2.1 - { "4a434f50563233", CreateJavaCardOS_2_2_1 }, // JCOP V2.3 - { "4a434f5056323331", CreateJavaCardOS_2_2_1 }, // JCOP V2.3.1 - { "4a434f5056323332", CreateJavaCardOS_2_2_1 }, // JCOP V2.3.2 - { "4a434f50563234", CreateJavaCardOS_2_2_1 }, // JCOP V2.4 - { "4a434f5056323431", CreateJavaCardOS_2_2_2 }, // JCOP V2.4.1 - { "4a434f5056323432", CreateJavaCardOS_2_2_2 }, // JCOP V2.4.2 - - { "4a434f5033314d34", CreateJavaCardOS_2_2_1 }, // Austriacard JCOP31M4 - { "4a434f5032315632325f", CreateJavaCardOS_2_2_1 }, // AustriaCard JCOP 21 V2.2, T0, T1 - { "4a434f5033315632325f", CreateJavaCardOS_2_2_1 }, // AustriaCard JCOP 31 V2.2, T0, T1 - { "4a434f5034315632345f", CreateJavaCardOS_2_2_1 }, // AustriaCard JCOP 41 V2.4, T0, T1 - { "4a434f50563234314143", CreateJavaCardOS_2_2_1 }, // AustriaCard JCOP V2.4.1, T0, T1 - - { "5257414e44415f4944", CreateJavaCardOS_2_2_1 }, // AustriaCard JCOP V2.4.1 'RWANDA_ID' - { "44654c61527565", CreateJavaCardOS_2_2_1 }, // AustriaCard JCOP V2.4.1 'DeLaRue' - - { "803180664090a4561b1183019000", CreateJavaCardOS_2_2_1 }, // Infineon jTOP 20ID - - { "80318065b0831148c883009000", CreateJavaCardOS_2_2_1 }, // Gemalto TOP IM GX4 - //{ "80318065b08301029083009000", CreateJavaCardOS_2_2_1 }, // Gemalto I-DENTITY CARD - { "8065b08301017483009000", CreateJavaCardOS_2_1_1 }, // Gemplus GemXpresso Pro R3 - { "8065b08301037483009000", CreateJavaCardOS_2_1_1 }, // Gemplus GemXpresso Pro R3 - //{ "8065a20101013d72d643", CreateJavaCardOS_2_1_1 }, // Gemplus GemXpresso Pro R3 E32 PK - - { "0031c06477e30300829000", CreateJavaCardOS_2_1_1 }, // Oberthur CosmopolIC 64K v5.2D - - { "8059017f4849444a43327300011b", CreateJavaCardOS_2_2_2 }, // HID Crescendo C700 (JC2s) ("Standard JavaCard, T0/1, Platform Default Packages") - { "804f0ca0000003060a001d00000000", CreateJavaCardOS_2_2_2 },// HID Crescendo C700 (JC2s) contactless - - { ACT_ISO7816OS_NAME, CreateISO7816OS }, // use act::ISO7816OS as fallback - { 0, 0 } - }; - - // ------------------------------------------------------------------------ - const SCardTokenMapEntry SCardTokenMap[] = - { - // Passport - { IsEPAProfile, CreateEPAProfile }, - - // PKCS#15 - { IsM4PKCS15Profile, CreateM4PKCS15Profile }, - { IsV4PKCS15ECProfile, CreateV4PKCS15ECProfile }, - { IsV4PKCS15Profile, CreateV4PKCS15Profile }, - { IsJCPKCS15ECProfile, CreateJCPKCS15ECProfile }, - { IsJCPKCS15Profile, CreateJCPKCS15Profile }, - { IsACOSPKCS15Profile, CreateACOSPKCS15Profile }, - { IsStarCOSPKCS15Profile, CreateStarCOSPKCS15Profile }, - - // ACOS - { IsACOScvProfile, CreateACOScvProfile }, - - // CardOS - { IsM4cvMoCProfile, CreateM4cvMoCProfile }, - { IsM4cvECProfile, CreateM4cvECProfile }, - { IsV4cvECProfile, CreateV4cvECProfile }, - { IsV4cvProfile, CreateV4cvProfile }, - { IsM4cvProfile, CreateM4cvProfile }, - // { IsV4CNSProfile, CreateV4CNSProfile }, - - // TCOS -#ifdef ACT_SUPPORT_TCOS_NETKEY30 - { IsNetKey30Token, CreateNetKey30Token }, -#endif - - // JavaCardOS - { IsJCProfile, CreateJCProfile }, - // { IsJavaCardAppletManager, CreateJavaCardAppletManager }, - - /* - { IsStarCOSToken, CreateStarCOSToken }, - { IsNetKey2000Token, CreateNetKey2000Token }, - { IsNetKeyE4Token, CreateNetKeyE4Token }, - { IsNetKeyPKSToken, CreateNetKeyPKSToken }, - { IsNetKeyOldToken, CreateNetKeyOldToken }, - { IseTrustToken, CreateeTrustToken }, - { IsMicardoECToken, CreateMicardoECToken }, - { IsM4SiemensProfile, CreateM4SiemensProfile }, - */ - { 0, 0 } - }; - - // ------------------------------------------------------------------------ - const ProfileGeneratorMapEntry ProfileGeneratorMap[] = - { - { "JavaCardOS", CreateJCPKCS15Generator }, - { 0, 0 } - }; - - // ------------------------------------------------------------------------ - const PKCS15BehaviorMapEntry PKCS15BehaviorMap[] = - { - { "cv cryptovision gmbh (c) v1.0j", CreateJCPKCS15Behavior }, - { "cv cryptovision gmbh (c) v1.0jEAC", CreateJCPKCS15mEACBehavior }, - { "cv cryptovision gmbh (c) v1.0n", CreateV4PKCS15Behavior }, - { "cv cryptovision gmbh (c) v1.0na", CreateACOSPKCS15Behavior }, - { "cv cryptovision gmbh (c) v1.0ns", CreateStarCOSPKCS15Behavior }, - { "A.E.T. Europe B.V.", CreateSafeSignBehavior }, - { "Giesecke&Devrient GmbH", CreateStarSignBehavior }, - { "D-TRUST GmbH (C)", CreateDTRUSTBehavior }, - { "Siemens AG (C)", CreateHiPathBehavior }, - { "Technology Nexus", CreateNexusBehavior }, - { "Volkswagen AG", CreateVWBehavior }, - { "", CreatePKCS15Behavior }, // default - { 0, 0 } - }; - - // ------------------------------------------------------------------------ - const TokenExtensionMapEntry TokenExtensionMap[] = - { - { "MDProfileExt", CreateMDProfileExt }, // Minidriver FS Profile Extension - -# if defined(ACT_WIN32) && !defined(ACT_MINGW) - { "EAC 2.01 TA", CreateEACTAwithCAPI }, - -# endif - { 0, 0 } - }; - - // ------------------------------------------------------------------------ - const TokenAuthProtocolMapEntry TokenAuthProtocolMap[] = - { - { "EAC 2.01 PACE", CreateTokenAuthPACE }, - { "EAC 2.01 TA", CreateTokenAuthTA }, - { "EAC 2.01 CA", CreateTokenAuthCA }, - { "BAC", CreateTokenAuthBAC }, - { 0, 0 } - }; - - // ------------------------------------------------------------------------ - const SubsystemMapEntry SubsystemMap[] = - { - { "PCSC", CreatePCSCSystem, CreatePCSCSystemEx }, - { "CTAPI", CreateCTAPISystem, 0 }, - { "PKCS11", CreatePKCS11System, 0 }, - -# if defined(ACT_WIN32) && !defined(ACT_MINGW) - { "CSP", CreateCSPSystem, 0 }, - -# endif - { 0, 0, 0 } - }; - - // ------------------------------------------------------------------------ - const SlotMonitorRegEntry SlotMonitorMap[] = - { - { "PCSC", { CreatePCSCSlotMonitor, CreatePCSCSystemSlotMonitor } }, - { "CTAPI", { CreateSlotMonitor, 0 } }, - { "PKCS11", { CreateSlotMonitor, 0 } }, - -# if defined(ACT_WIN32) && !defined(ACT_MINGW) - { "CSP", { CreateSlotMonitor, 0 } }, - -# endif - { 0, { 0, 0 } } - }; - - // ------------------------------------------------------------------------ - const JCardAppletEntry JCardAppletMap[] = - { - // AID if it is equal to 0 then all AID are able - // function returns true if the Applet can used - // creates an new applet - // number of PIN's Key's Certificate's - // if they are -1 then it will be checked - // if they are biger or equal to 0 they are const - { "D276000098C00000", IsJCProfileApplet, CreateJCProfileApplet, 1, 1, 0 }, - { 0, 0, 0, 0, 0, 0 } - }; -#endif // NO_SMARTCARD - - // ------------------------------------------------------------------------ - // Version: V1R4M4 - const char* GetVersion(); - - // ------------------------------------------------------------------------ - inline void Init(bool bAlwaysInit = false) - { - static bool loaded = false; - if(loaded == true && bAlwaysInit == false) - return; - - KeyReg::Insert(KeyMap); - BlockCipherReg::Insert(BlockCipherMap); - BlockCipherModeReg::Insert(BlockCipherModeMap); - StreamCipherReg::Insert(StreamCipherMap); - HashReg::Insert(HashMap); - EMSAReg::Insert(EMSAMap); - DerivatorReg::Insert(DerivatorMap); - PaddingReg::Insert(PaddingMap); - CertificateReg::Insert(CertificateMap); - CRLReg::Insert(CRLMap); - X509KeyReg::Insert(X509KeyMap); - X509SignReg::Insert(X509SignMap); - X509SignHashReg::Insert(X509SignHashMap); - -#ifndef NO_SMARTCARD - SubsystemReg::Insert(SubsystemMap); - SlotMonitorReg::Insert(SlotMonitorMap); - SCardOSReg::Insert(SCardOSMap); - SCardTokenReg::Insert(SCardTokenMap); - ProfileGeneratorReg::Insert(ProfileGeneratorMap); - PKCS15BehaviorReg::Insert(PKCS15BehaviorMap); - TokenExtensionReg::Insert(TokenExtensionMap); - TokenAuthProtocolReg::Insert(TokenAuthProtocolMap); - JCardAppletReg::Insert(JCardAppletMap); -#endif - CreateFastRNG = CreateFIPS186; - CreateStrongRNG = CreateBBS; - loaded = true; - } - -} // namespace act - -#endif // actInit_h diff --git a/actlibrary/MacOSX-10.4-ppc/Release/include/actJCAppletReg.h b/actlibrary/MacOSX-10.4-ppc/Release/include/actJCAppletReg.h deleted file mode 100644 index a8dfa8f..0000000 --- a/actlibrary/MacOSX-10.4-ppc/Release/include/actJCAppletReg.h +++ /dev/null @@ -1,62 +0,0 @@ -// --------------------------------------------------------------------------- -// Name: actAppletReg.h -// Product: cv act library -// Purpose: registry for factory functions to create JavaCardApplet object -// -// Copyright: (c) 2002 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -// -// Autor: -// Date: 02/10/2003 -// --------------------------------------------------------------------------- - -#ifndef ACT_AppletReg_h -#define ACT_AppletReg_h - -#ifdef _MSC_VER -#pragma warning (disable:4786) -#endif - -namespace act -{ - class JavaCardOS; - class IToken; - class Blob; - - typedef IToken* (*CreateJCardAppletPtr)(JavaCardOS*, const Blob& aid); - typedef bool (*CheckJCardAppletPtr)(JavaCardOS*, const Blob& aid); - - struct JCardAppletEntry - { - const char* hexid; - CheckJCardAppletPtr CheckPtr; - CreateJCardAppletPtr CreatePtr; - int keys; - int certs; - int auth_objs; - }; - - struct JCardAppletInfoEntry - { - int keys; - int certs; - int auth_objs; - }; - - class JCardAppletReg - { - public: - static IToken* CreateJCardApplet(JavaCardOS* os, const Blob& aid); - static JCardAppletInfoEntry GetJCardAppletInfo(JavaCardOS* os, const Blob& aid); - static bool IsJCardApplet(JavaCardOS* os, const Blob& aid); - - static void Insert(const JCardAppletEntry* entry); - static void Insert(const char* id, CheckJCardAppletPtr checkptr, CreateJCardAppletPtr createptr, - int keys = -1, int auth_objs = -1, int certs = -1); - }; - -} // namespace act - -#endif // ACT_AppletReg_h diff --git a/actlibrary/MacOSX-10.4-ppc/Release/include/actKey.h b/actlibrary/MacOSX-10.4-ppc/Release/include/actKey.h deleted file mode 100644 index 5030c0c..0000000 --- a/actlibrary/MacOSX-10.4-ppc/Release/include/actKey.h +++ /dev/null @@ -1,82 +0,0 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actKey.h -// Product: cv act library -// Purpose: The class Key manages information relevant to keys (e.g. -// domain parameters or the key itself). In the case of symmetric -// encryption only a (the) secret key is generated. In the case of -// of asymetric encryption a private and a public key are generated. -// This handle allows a universal approach for different families of -// algorithms. -// -// -// Copyright: (c) 2000 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_Key_h -#define ACT_Key_h - -#include "actBasics.h" -#include "actBlob.h" - -namespace act -{ - class IRNGAlg; - class IAlgorithm; - class IKey; - class ICertificate; - - class Key - { - public: - Key(); - Key(const Key& key); - Key(IKey* keyptr); - Key(const Blob& keyblob); - Key(const ICertificate* cert); - Key(const char* keytype); - - void Import(const Blob& keyblob); - void Export(Blob& keyblob, export_t type = DEFAULT) const; - - void SetParam(paramid_t id, const Blob& blob); - void SetParam(paramid_t id, int val); - void SetParam(paramid_t id, const char* cstr); - - int GetParam(paramid_t id) const; - void GetParam(paramid_t id, Blob& blob) const; - - void Generate(IAlgorithm* prng = 0); - void Derive(const Blob& data, const Blob& salt = Blob()); - - IAlgorithm* CreateAlgorithm(mode_t Mode) const; - IAlgorithm* CreateAlgorithm(mode_t Mode, const Blob& data) const; - - IKey* GetPointer(); - const IKey* GetPointer() const; - operator IKey*(); - operator const IKey*() const; - - IKey* ReleasePointer(); - - template - inline KeyTypeT* As() { return static_cast(GetPointer()); } - - template - inline const KeyTypeT* As() const { return static_cast(GetPointer()); } - - Key& operator=(const Key& key); - Key& Reset(IKey* key); - Key& Required(const char* where = 0); - - ~Key(); - - private: - IKey *mKey; - }; - -} // namespace act - -#endif // ACT_Key_h diff --git a/actlibrary/MacOSX-10.4-ppc/Release/include/actLogger.h b/actlibrary/MacOSX-10.4-ppc/Release/include/actLogger.h deleted file mode 100644 index 103b1ed..0000000 --- a/actlibrary/MacOSX-10.4-ppc/Release/include/actLogger.h +++ /dev/null @@ -1,110 +0,0 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actLogger.h -// Product: cv act library -// Purpose: Logger -// -// Copyright: (c) 2000-2001 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_Logger_h -#define ACT_Logger_h - -#include "actDebug.h" -#include "actBlob.h" - -#include "SyncObject.h" - -// for convenience: -#ifdef _MSC_VER -# define ACT_SNPRINTF _snprintf -#else -# include -# define ACT_SNPRINTF snprintf -#endif - -// -// MTE [11/1/2006]: Added addtional accessing macros. -// NOTE: Redefine to use another Logger. -#define ACT_LOGGER(x) act::Logger::x - -// -// MTE [11/1/2006]: Added to replace direct usage of ACT_LOGGER(LogInit)(). -#define ACT_LOGISENABLED() (ACT_DEBUG != 0 || ACT_LOGGER(LogInit)()) - -// -// MTE [11/1/2006]: Changed to use ACT_LOGISENABLED(). -#define ACT_LOGINFO(info) { if(ACT_LOGISENABLED()) ACT_LOGGER(Log)(ACT_LOGGER(LEVEL_INFO), info); } -#define ACT_LOGWARN(warn) { if(ACT_LOGISENABLED()) ACT_LOGGER(Log)(ACT_LOGGER(LEVEL_WARN), warn); } -#define ACT_LOGERROR(error) { if(ACT_LOGISENABLED()) ACT_LOGGER(Log)(ACT_LOGGER(LEVEL_ERROR), error); } -#define ACT_LOGEXCEPTION(e) { if(ACT_LOGISENABLED()) { char buf[1024]; ACT_SNPRINTF(buf, 1024, "Exception:\t '%s' in '%s'", e.what(), e.where()); ACT_LOGERROR(buf) }} - -#define ACT_LOGINFODATA(info, data) { if(ACT_LOGISENABLED()) ACT_LOGGER(Log)(ACT_LOGGER(LEVEL_INFO), info, data); } -#define ACT_LOGWARNDATA(warn, data) { if(ACT_LOGISENABLED()) ACT_LOGGER(Log)(ACT_LOGGER(LEVEL_WARN), warn, data); } -#define ACT_LOGERRORDATA(error, data) { if(ACT_LOGISENABLED()) ACT_LOGGER(Log)(ACT_LOGGER(LEVEL_ERROR), error, data); } -#define ACT_LOGBLOB(blob) { if(ACT_LOGISENABLED()) ACT_LOGGER(Log)(ACT_LOGGER(LEVEL_INFO), #blob, blob); } - -#define ACT_LOGVALUE(name, value, format) { if(ACT_LOGISENABLED()) { char buf[256]; ACT_SNPRINTF(buf, 256, name " :\t " format, value); ACT_LOGINFO(buf) }} - -#define ACT_LOGINT(value) ACT_LOGVALUE(#value, int(value), "%i") -#define ACT_LOGHEX(value) ACT_LOGVALUE(#value, act::ulong(value), "0x%08x") -#define ACT_LOGSTRING(value) ACT_LOGVALUE(#value, value, "%s") - -#define ACT_LOGNAMEDINT(name, value) ACT_LOGVALUE(name, int(value), "%i") -#define ACT_LOGNAMEDHEX(name, value) ACT_LOGVALUE(name, act::ulong(value), "0x%08x") -#define ACT_LOGNAMEDSTRING(name, value) ACT_LOGVALUE(name, value, "%s") - -#ifdef WIN32 -#define ACT_LOGPTR(value) ACT_LOGINT(value) -#else -#define ACT_LOGPTR(value) ACT_LOGVALUE(#value, value, "%lp") -#endif - -// TODO: MTE: What about this "nice" construct ? -#define ACT_LOGPOINTER(p) { if(ACT_LOGISENABLED()) { if(p != 0) ACT_LOGINT(*p) else ACT_LOGHEX(p) }} -#define ACT_LOGISNULL(p) { if(ACT_LOGISENABLED()) { char buf[256]; if(p != 0) ACT_SNPRINTF(buf, 256, #p " :\t *"); else ACT_SNPRINTF(buf, 256, #p " :\t 0"); ACT_LOGINFO(buf) }} - - -namespace act -{ - class Logger - { - public: - enum Levels - { - LEVEL_OFF = 0, - LEVEL_ERROR = 30, - LEVEL_WARNING = 50, - LEVEL_WARN = LEVEL_WARNING, - LEVEL_INFO = 80, - LEVEL_MAX = 99 - }; - - static void SetLogger(Logger* pLogger); - static void FreeLogger(); - static void Log(short level, const char* msg); - static void Log(short level, const Blob& blobmsg); - static void Log(short level, const char* msg, const Blob& blobmsg); - static void SetLoglevel(short level); - static bool LogInit() - { - return(s_pLogger != 0 ? true : false); - } - - protected: - Logger(){} - virtual ~Logger(){} - virtual void doLog(short level, const char* msg) = 0; - virtual void doSetLoglevel(short level) = 0; - - private: - static Logger* s_pLogger; - static SyncObject m_sync; - }; - -} // namespace act - -#endif // ACT_Logger_h - diff --git a/actlibrary/MacOSX-10.4-ppc/Release/include/actMode.h b/actlibrary/MacOSX-10.4-ppc/Release/include/actMode.h deleted file mode 100644 index 3c4bdb9..0000000 --- a/actlibrary/MacOSX-10.4-ppc/Release/include/actMode.h +++ /dev/null @@ -1,269 +0,0 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actMode.h -// Product: cv act library -// Purpose: enumerations -// -// Copyright: (c) 2006 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_Mode_h -#define ACT_Mode_h - -namespace act -{ - enum - { - MODE_RANGE_BEGIN = 100, - - ENCRYPT = 100, - DECRYPT, - SIGN, - VERIFY, - MAC, - - PRIVATE =200, - PUBLIC, - SECRET, - DOMAINPARAMS, - PKCS8_TYPE, - - CIPHER = 300, - PADDING, - DERIVATOR, - BCMODE, - KEYSIZE, - RAWKEY, - IV, - BLOCKSIZE, - CHAINING_VALUE, - CHAINING_BITCOUNT, - EFFECTIVE_KEYSIZE, - SHAREDDATA_1, - SHAREDDATA_2, - KEYDATALEN, - ITERATIONCOUNT, - COUNTER, - OUTDATALEN, - - ENCODER=400, - PRIVATEKEY, - PUBLICKEY, - PUBLICSIZE, - KEY, - SIGNATURE, - AGREEMENT, - - MODULO=500, - PRIME_P, - PRIME_Q, - MODULOSIZE, - PRIME_P_SIZE, - PRIME_Q_SIZE, - CRT_EXPONENT_1, - CRT_EXPONENT_2, - CRT_COEFFICIENT, - PKCS1_PRIVATEKEY, - PKCS1_PUBLICKEY, - - CURVE=600, - PUBLIC_X, - PUBLIC_Y, - STATICPUBLIC_X, - STATICPUBLIC_Y, - EPHEMERALPUBLIC_X, - EPHEMERALPUBLIC_Y, - CURVEPARAM, - PUBLICKEY_EXPORT_TYPE, - BASEPOINT_EXPORT_TYPE, - COMPRESSED, - UNCOMPRESSED, - HYBRID, - IMPLICITLYCA, - GF2CURVE, - PRIMECURVE, - ENCODE_SIGNATURE, - PLAIN_SECRET, - - RING = 700, - RINGORDER, - RINGGENERATOR, - COFACTOR, - COMPATIBLE, - NEWEPHEMERAL, - CHECKDOMAINPARAMS, - - STATICPRIVATEKEY, - STATICPUBLICKEY, - EPHEMERALPRIVATEKEY, - EPHEMERALPUBLICKEY, - - PIN = 800, - CARDTYPE, - CARDPORTTYPE, - PORTNR, - DLLNAME, - READERNAME, - CHANGEMASTERPIN, - CHANGEPIN, - USERPIN, - MASTERPIN, - PINPAD, - USERNAME, - INFOTEXT, - SIGNKEY, - ENCKEY, - SIGNCERTIFICATE, - ENCCERTIFICATE, - ROOTCERTIFICATE, - LOCK_KEY, - DHKEY, - DHCERTIFICATE, - PERSONALIZED, - READERNAMES, - AID, - PATH, - NULLPIN, - SELECTKEY, - ALLCERTIFICATE, - APPLICATION, - KEYUSAGE, - MECHANISM, - CERTIFICATE, - DATA, - KEYTYPE, - LABEL, - ID, - - CTAPI_PORT = 900, - PCSC_PORT, - - CARDOS_CARD = 1000, - TCOS_CARD, - CVACT_CARD, - PKCS11_CARD, - MICARDOEC_CARD, - STARCOSPK_CARD, - ETRUST_CARD, -// MICARDOPUBLIC_CARD, - CARDOSM4_CARD, - MICARDOP21_CARD, - - HASH=1100, - SALT, - SALT_LENGTH, - EMLEN, - - X = 1200, - SEED, - MULTIPLIER, - - VERSION = 1300, - ISSUER, - SUBJECT, - SERIALNR, - ISSUER_DER, - SUBJECT_DER, - ISSUER_UID, - SUBJECT_UID, - NOTBEFORE_DER, - NOTAFTER_DER, - THISUPDATE_DER, - NEXTUPDATE_DER, - TBS, - - CVPROFILEID = 1400, - CVCAREFERENCE, - CVHOLDERREFERENCE, - CVHATEMPLATE, - CVEACTEMPLATE, - CVEFFECTIVEDATE, - CVEXPIRATIONDATE, - CVPUBLICKEY_TLV, - CVPUBLICKEY_MECHANISM, - - // GF(P)-Curves - SECGp112r1 = 0x1000, - SECGp112r2, - SECGp128r1, - SECGp128r2, - SECGp160r1, - SECGp160r2, - SECGp160k1, - ANSIp192r1, - ANSIp192r2, - ANSIp192r3, - NISTp192r1, - SECGp192r1, - SECGp192k1, - NISTp224r1, - SECGp224r1, - SECGp224k1, - ANSIp239r1, - ANSIp239r2, - ANSIp239r3, - ANSIp256r1, - NISTp256r1, - SECGp256r1, - SECGp256k1, - NISTp384r1, - NISTp521r1, - brainpoolP256r1, - brainpoolP256t1, - - // GF(2^m)-Curves - SECGz113r1 = 0x1200, - SECGz113r2, - SECGz131r1, - SECGz131r2, - ANSIz163r1, - ANSIz163r2, - ANSIz163r3, - NISTz163r1, - NISTz163k1, - SECGz163r1, - SECGz163r2, - SECGz163k1, - ANSIz176w1, - ANSIz191r1, - ANSIz191r2, - ANSIz191r3, - SECGz193r1, - SECGz193r2, - ANSIz208w1, - NISTz233r1, - NISTz233k1, - SECGz233r1, - SECGz233k1, - ANSIz239r1, - ANSIz239r2, - ANSIz239r3, - SECGz239k1, - ANSIz272w1, - NISTz283r1, - NISTz283k1, - SECGz283r1, - SECGz283k1, - ANSIz304w1, - ANSIz359r1, - ANSIz368w1, - NISTz409r1, - NISTz409k1, - SECGz409r1, - SECGz409k1, - ANSIz431r1, - NISTz571r1, - NISTz571k1, - SECGz571r1, - SECGz571k1, - - MODE_RANGE_LAST = 0x1400, // insert new elements here - - TOKEN_CONFIG = 0x2000, // token config start - }; - -} // namespace act - -#endif // ACT_Mode_h diff --git a/actlibrary/MacOSX-10.4-ppc/Release/include/actPKCS15BehaviorReg.h b/actlibrary/MacOSX-10.4-ppc/Release/include/actPKCS15BehaviorReg.h deleted file mode 100644 index 56f39a2..0000000 --- a/actlibrary/MacOSX-10.4-ppc/Release/include/actPKCS15BehaviorReg.h +++ /dev/null @@ -1,34 +0,0 @@ -// --------------------------------------------------------------------------- -// Name: actPKCS15BehaviorReg.h -// Product: cv act library -// Purpose: Registry for factory functions to create specific PKCS15Behavior objects. -// -// Copyright: (c) 2008 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -// -// Autor: Markus Tesche -// Date: 06/02/2008 -// --------------------------------------------------------------------------- - -#ifndef ACT_PKCS15BehaviorReg_h -#define ACT_PKCS15BehaviorReg_h - -#include "actFactoryReg.h" - -namespace act -{ - class IToken; - class IPKCS15Behavior; - - typedef IPKCS15Behavior* (*CreatePKCS15BehaviorPtr)(const char* mid, IToken* token); - typedef FactoryMapEntry PKCS15BehaviorMapEntry; - - typedef FactoryReg - < IPKCS15Behavior, CreatePKCS15BehaviorPtr, PKCS15BehaviorMapEntry - > PKCS15BehaviorReg; - -} // namespace act - -#endif // ACT_PKCS15BehaviorReg_h diff --git a/actlibrary/MacOSX-10.4-ppc/Release/include/actPaddingKit.h b/actlibrary/MacOSX-10.4-ppc/Release/include/actPaddingKit.h deleted file mode 100644 index 01fb93e..0000000 --- a/actlibrary/MacOSX-10.4-ppc/Release/include/actPaddingKit.h +++ /dev/null @@ -1,26 +0,0 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actPaddingKit.h -// Product: cv act library -// Purpose: declaration of all factory functions -// -// Copyright: (c) 2000 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_PaddingKit_h -#define ACT_PaddingKit_h - -namespace act -{ - class IPadding; - - IPadding* CreatePKCS5Pad(); - IPadding* CreatePKCS1V1_5EMEPad(); - IPadding* CreateOneAndZerosPad(); - IPadding* CreateISO9796Pad(); - IPadding* CreateNoPad(); -} -#endif - diff --git a/actlibrary/MacOSX-10.4-ppc/Release/include/actPaddingReg.h b/actlibrary/MacOSX-10.4-ppc/Release/include/actPaddingReg.h deleted file mode 100644 index 4cad768..0000000 --- a/actlibrary/MacOSX-10.4-ppc/Release/include/actPaddingReg.h +++ /dev/null @@ -1,41 +0,0 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actPaddingReg.h -// Product: cv act library -// Purpose: registry for the factory functions in actPaddingKit.h -// -// Copyright: (c) 2000 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_PaddingReg_h -#define ACT_PaddingReg_h - -namespace act -{ - class IPadding; - class Blob; - - typedef IPadding* (*CreatePaddingPtr)(); - - struct PaddingMapEntry - { - const char* Name; - CreatePaddingPtr CreatePtr; - }; - - class PaddingReg - { - public: - static IPadding* CreatePadding(const char* name); - static CreatePaddingPtr GetCreatePointer(const char* name); - static const char* GetName(void* createptr); - static const char* GetNextName(const char* name); - static void Insert(const char* name, CreatePaddingPtr createptr); - static void Insert(const PaddingMapEntry* paddingmap); - }; - -} // namespace act - -#endif // ACT_PaddingReg_h diff --git a/actlibrary/MacOSX-10.4-ppc/Release/include/actProfileGeneratorKit.h b/actlibrary/MacOSX-10.4-ppc/Release/include/actProfileGeneratorKit.h deleted file mode 100644 index 1992c43..0000000 --- a/actlibrary/MacOSX-10.4-ppc/Release/include/actProfileGeneratorKit.h +++ /dev/null @@ -1,26 +0,0 @@ -// --------------------------------------------------------------------------- -// Name: actProfileGeneratorKit.h -// Product: cv act library -// Purpose: Factory functions for smartcard profile generators. -// -// Copyright: (c) 2009 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -// -// Autor: Markus Tesche -// Date: 12/18/2009 -// --------------------------------------------------------------------------- - -#ifndef ACT_ProfileGeneratorKit_h -#define ACT_ProfileGeneratorKit_h - -namespace act -{ - class IProfileGenerator; - - IProfileGenerator* CreateJCPKCS15Generator(const char* name); - -} // namespace act - -#endif // ACT_ProfileGeneratorKit_h diff --git a/actlibrary/MacOSX-10.4-ppc/Release/include/actRNGKit.h b/actlibrary/MacOSX-10.4-ppc/Release/include/actRNGKit.h deleted file mode 100644 index 6a8b886..0000000 --- a/actlibrary/MacOSX-10.4-ppc/Release/include/actRNGKit.h +++ /dev/null @@ -1,44 +0,0 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actRNGKit.h -// Product: cv act library -// Purpose: declaration of all factory functions -// -// Copyright: (c) 2010 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_RNGKit_h -#define ACT_RNGKit_h -namespace act -{ - class IRNGAlg; - - // Dummy PRNG (uses rand() / srand(time(0))) - IRNGAlg* CreateDummyPRNG(); - - // Deterministic PRNGs - IRNGAlg* CreateARC4RNG(); - IRNGAlg* CreateBBS(); - IRNGAlg* CreateFIPS186(); - IRNGAlg* CreateFIPS186DES(); - IRNGAlg* CreateLCG(); - - // AIS 20, K1 - K4 evaluated deterministic PRNG - IRNGAlg* CreateFIPS186K4(); - - // 'True' RNGs - IRNGAlg* CreateDevRandomRNG(); -#ifndef UNDER_CE_30 - IRNGAlg* CreateWinRNG(); -#endif - - // Token RNG (uses IToken::GetRandom()) -#ifndef NO_SMARTCARD - IRNGAlg* CreateTokenRNG(); -#endif -} - -#endif - diff --git a/actlibrary/MacOSX-10.4-ppc/Release/include/actSCardOSKit.h b/actlibrary/MacOSX-10.4-ppc/Release/include/actSCardOSKit.h deleted file mode 100644 index 79ae7b0..0000000 --- a/actlibrary/MacOSX-10.4-ppc/Release/include/actSCardOSKit.h +++ /dev/null @@ -1,170 +0,0 @@ -// --------------------------------------------------------------------------- -// Name: actSCardOSKit.h -// Product: cv act library -// Purpose: registry for factory functions to create SCardOS object -// -// Copyright: (c) 2002 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -// -// Autor: Dr. Xiangdong Wang (XWG) -// Date: 05/13/2002 -// --------------------------------------------------------------------------- - -#ifndef ACT_SCardOSKit_h -#define ACT_SCardOSKit_h - -namespace act -{ - class ISCardOS; - class ISCardAccess; - - /* - ISCardOS* CreateMicardOS(ISCardAccess*); - ISCardOS* CreateMicardo20E(ISCardAccess*); - ISCardOS* CreateMicardo23E(ISCardAccess* ac); - */ - - bool IsACOS(CreateSCardOSPtr ptr); - ISCardOS* CreateACOS_D01(ISCardAccess*); - ISCardOS* CreateACOS_A04(ISCardAccess*); - - bool IsCardOS_M4(CreateSCardOSPtr ptr); - ISCardOS* CreateCardOS_M4(ISCardAccess*); - ISCardOS* CreateCardOS_M4_MoC(ISCardAccess*); - - bool IsCardOS_M4_ECC(CreateSCardOSPtr ptr); - ISCardOS* CreateCardOS_M4_ECC(ISCardAccess*); - - bool IsCardOS_V4(CreateSCardOSPtr ptr); - ISCardOS* CreateCardOS_V4(ISCardAccess*); - - bool IsCardOS_V4_ECC(CreateSCardOSPtr ptr); - ISCardOS* CreateCardOS_V4_ECC(ISCardAccess*); - - bool IsStarCOS(CreateSCardOSPtr ptr); - ISCardOS* CreateStarCOS_3_0(ISCardAccess*); - ISCardOS* CreateStarCOS_3_2(ISCardAccess*); - - bool IsTCOS(CreateSCardOSPtr ptr); - ISCardOS* CreateTCOS_3_0(ISCardAccess*); - - bool IsJavaCardOS(CreateSCardOSPtr ptr); - ISCardOS* CreateJavaCardOS_2_2_2(ISCardAccess*); - ISCardOS* CreateJavaCardOS_2_2_1(ISCardAccess*); - ISCardOS* CreateJavaCardOS_2_2(ISCardAccess*); - ISCardOS* CreateJavaCardOS_2_1_2(ISCardAccess*); - ISCardOS* CreateJavaCardOS_2_1_1(ISCardAccess*); - ISCardOS* CreateJavaCardOS_2_1(ISCardAccess*); - - bool IsISO7816OS(CreateSCardOSPtr ptr); - ISCardOS* CreateISO7816OS(ISCardAccess*); - - // - // Passport OS - // --------------------------------------------------------------------------- - bool IsBACOS(CreateSCardOSPtr ptr); - ISCardOS* CreateBACOS(ISCardAccess* ac); - - bool IsEACOS(CreateSCardOSPtr ptr); - ISCardOS* CreateEACOS(ISCardAccess* ac); - - bool IsEACOS201(CreateSCardOSPtr ptr); - ISCardOS* CreateEACOS201(ISCardAccess* ac); - - bool IsEPAOS(CreateSCardOSPtr ptr); - ISCardOS* CreateEPAOS(ISCardAccess* ac); - - - // --------------------------------------------------------------------------- - inline bool IsACOS(CreateSCardOSPtr ptr) - { - return ptr == CreateACOS_D01 - || ptr == CreateACOS_A04; - } - - // --------------------------------------------------------------------------- - inline bool IsCardOS_M4(CreateSCardOSPtr ptr) - { - return ptr == CreateCardOS_M4 - || ptr == CreateCardOS_M4_MoC; - } - - // --------------------------------------------------------------------------- - inline bool IsCardOS_M4_ECC(CreateSCardOSPtr ptr) - { - return ptr == CreateCardOS_M4_ECC; - } - - // --------------------------------------------------------------------------- - inline bool IsCardOS_V4(CreateSCardOSPtr ptr) - { - return ptr == CreateCardOS_V4; - } - - // --------------------------------------------------------------------------- - inline bool IsCardOS_V4_ECC(CreateSCardOSPtr ptr) - { - return ptr == CreateCardOS_V4_ECC; - } - - // --------------------------------------------------------------------------- - inline bool IsStarCOS(CreateSCardOSPtr ptr) - { - return ptr == CreateStarCOS_3_0 - || ptr == CreateStarCOS_3_2; - } - - // --------------------------------------------------------------------------- - inline bool IsTCOS(CreateSCardOSPtr ptr) - { - return ptr == CreateTCOS_3_0; - } - - // --------------------------------------------------------------------------- - inline bool IsJavaCardOS(CreateSCardOSPtr ptr) - { - return ptr == CreateJavaCardOS_2_2_2 - || ptr == CreateJavaCardOS_2_2_1 - || ptr == CreateJavaCardOS_2_2 - || ptr == CreateJavaCardOS_2_1_2 - || ptr == CreateJavaCardOS_2_1_1 - || ptr == CreateJavaCardOS_2_1; - } - - // --------------------------------------------------------------------------- - inline bool IsISO7816OS(CreateSCardOSPtr ptr) - { - return ptr == CreateISO7816OS; - } - - // - // Passport OS - // --------------------------------------------------------------------------- - inline bool IsBACOS(CreateSCardOSPtr ptr) - { - return ptr == CreateBACOS; - } - - // --------------------------------------------------------------------------- - inline bool IsEACOS(CreateSCardOSPtr ptr) - { - return ptr == CreateEACOS; - } - - // --------------------------------------------------------------------------- - inline bool IsEACOS201(CreateSCardOSPtr ptr) - { - return ptr == CreateEACOS201; - } - - // --------------------------------------------------------------------------- - inline bool IsEPAOS(CreateSCardOSPtr ptr) - { - return ptr == CreateEPAOS; - } - -} // namespace act - -#endif // ACT_SCardOSKit_h diff --git a/actlibrary/MacOSX-10.4-ppc/Release/include/actSCardOSReg.h b/actlibrary/MacOSX-10.4-ppc/Release/include/actSCardOSReg.h deleted file mode 100644 index 4156615..0000000 --- a/actlibrary/MacOSX-10.4-ppc/Release/include/actSCardOSReg.h +++ /dev/null @@ -1,46 +0,0 @@ -// --------------------------------------------------------------------------- -// Name: actSCardOSReg.h -// Product: cv act library -// Purpose: factory functions registry to create SCardOS objects. -// -// Copyright: (c) 2002 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -// -// Autor: Dr. Xiangdong Wang (XWG) -// Date: 04/09/2002 -// --------------------------------------------------------------------------- - -#ifndef ACT_SCardOSReg_h -#define ACT_SCardOSReg_h - -namespace act -{ -# define ACT_ISO7816OS_NAME "ISO7816OS" - - class ISCardOS; - class ISCardAccess; - - typedef ISCardOS* (*CreateSCardOSPtr)(ISCardAccess*); - - struct SCardOSMapEntry - { - const char* Name; - CreateSCardOSPtr CreatePtr; - }; - - class SCardOSReg - { - public: - static ISCardOS* CreateSCardOS(const char* name, ISCardAccess* ac); - static CreateSCardOSPtr GetCreatePointer(const char* name); - static const char* GetName(void* createptr); - static const char* GetNextName(const char* name); - static void Insert(const char* name, CreateSCardOSPtr createptr); - static void Insert(const SCardOSMapEntry* entry); - }; - -} // namespace act - -#endif // ACT_SCardOSReg_h diff --git a/actlibrary/MacOSX-10.4-ppc/Release/include/actSCardTokenKit.h b/actlibrary/MacOSX-10.4-ppc/Release/include/actSCardTokenKit.h deleted file mode 100644 index 90cb011..0000000 --- a/actlibrary/MacOSX-10.4-ppc/Release/include/actSCardTokenKit.h +++ /dev/null @@ -1,105 +0,0 @@ -// --------------------------------------------------------------------------- -// Name: actSCardTokenKit.h -// Product: cv act library -// Purpose: registry for factory functions to create SCardOS and SCardToken objects -// -// Copyright: (c) 2002 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -// -// Autor: Dr. Xiangdong Wang (XWG) -// Date: 05/14/2002 -// --------------------------------------------------------------------------- - -#ifndef ACT_SCardTokenKit_h -#define ACT_SCardTokenKit_h - -namespace act -{ - class ISCardOS; - class SCardToken; - - bool IsStarCOSToken(ISCardOS* os); - SCardToken* CreateStarCOSToken(ISCardOS* os); - - bool IsV4cvProfile(ISCardOS* os); - SCardToken* CreateV4cvProfile(ISCardOS* os); - - bool IsV4cvECProfile(ISCardOS* os); - SCardToken* CreateV4cvECProfile(ISCardOS* os); - - bool IsV4CNSProfile(ISCardOS* os); - SCardToken* CreateV4CNSProfile(ISCardOS* os); - - bool IsNetKey2000Token(ISCardOS* os); - SCardToken* CreateNetKey2000Token(ISCardOS* os); - - bool IsNetKeyE4Token(ISCardOS* os); - SCardToken* CreateNetKeyE4Token(ISCardOS* os); - - bool IsNetKey30Token(ISCardOS* os); - SCardToken* CreateNetKey30Token(ISCardOS* os); - - bool IsNetKeyPKSToken(ISCardOS* os); - SCardToken* CreateNetKeyPKSToken(ISCardOS* os); - - bool IsNetKeyOldToken(ISCardOS* os); - SCardToken* CreateNetKeyOldToken(ISCardOS* os); - - bool IseTrustToken(ISCardOS* os); - SCardToken* CreateeTrustToken(ISCardOS* os); - - bool IsMicardoECToken(ISCardOS* os); - SCardToken* CreateMicardoECToken(ISCardOS* os); - - bool IsM4cvProfile(ISCardOS* os); - SCardToken* CreateM4cvProfile(ISCardOS* os); - - bool IsACOScvProfile(ISCardOS* os); - SCardToken* CreateACOScvProfile(ISCardOS* os); - - bool IsM4SiemensProfile(ISCardOS* os); - SCardToken* CreateM4SiemensProfile(ISCardOS* os); - - bool IsM4cvECProfile(ISCardOS* os); - SCardToken* CreateM4cvECProfile(ISCardOS* os); - - bool IsM4cvMoCProfile(ISCardOS* os); - SCardToken* CreateM4cvMoCProfile(ISCardOS* os); - - bool IsJavaCardAppletManager(ISCardOS* os); - SCardToken* CreateJavaCardAppletManager(ISCardOS* os); - - bool IsJCProfile(ISCardOS* os); - SCardToken* CreateJCProfile(ISCardOS* os); - - // PKCS#15 Profiles - bool IsM4PKCS15Profile(ISCardOS* os); - SCardToken* CreateM4PKCS15Profile(ISCardOS* os); - - bool IsV4PKCS15Profile(ISCardOS* os); - SCardToken* CreateV4PKCS15Profile(ISCardOS* os); - - bool IsV4PKCS15ECProfile(ISCardOS* os); - SCardToken* CreateV4PKCS15ECProfile(ISCardOS* os); - - bool IsJCPKCS15Profile(ISCardOS* os); - SCardToken* CreateJCPKCS15Profile(ISCardOS* os); - - bool IsJCPKCS15ECProfile(ISCardOS* os); - SCardToken* CreateJCPKCS15ECProfile(ISCardOS* os); - - bool IsACOSPKCS15Profile(ISCardOS* os); - SCardToken* CreateACOSPKCS15Profile(ISCardOS* os); - - bool IsStarCOSPKCS15Profile(ISCardOS* os); - SCardToken* CreateStarCOSPKCS15Profile(ISCardOS* os); - - // Passport - bool IsEPAProfile(ISCardOS* os); - SCardToken* CreateEPAProfile(ISCardOS* os); - -} // namespace act - -#endif // ACT_SCardTokenKit_h diff --git a/actlibrary/MacOSX-10.4-ppc/Release/include/actSCardTokenReg.h b/actlibrary/MacOSX-10.4-ppc/Release/include/actSCardTokenReg.h deleted file mode 100644 index 3f26385..0000000 --- a/actlibrary/MacOSX-10.4-ppc/Release/include/actSCardTokenReg.h +++ /dev/null @@ -1,42 +0,0 @@ -// --------------------------------------------------------------------------- -// Name: actSCardTokenReg.h -// Product: cv act library -// Purpose: factory functions registry to create SCardToken objects. -// -// Copyright: (c) 2002 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -// -// Autor: Dr. Xiangdong Wang (XWG) -// Date: 05/13/2002 -// --------------------------------------------------------------------------- - -#ifndef ACT_SCardTokenReg_h -#define ACT_SCardTokenReg_h - -namespace act -{ - class ISCardOS; - class SCardToken; - - typedef bool (*CheckSCardTokenPtr)(ISCardOS*); - typedef SCardToken* (*CreateSCardTokenPtr)(ISCardOS*); - - struct SCardTokenMapEntry - { - CheckSCardTokenPtr CheckPtr; - CreateSCardTokenPtr CreatePtr; - }; - - class SCardTokenReg - { - public: - static SCardToken* CreateSCardToken(ISCardOS* os); - static void Insert(CheckSCardTokenPtr checkptr, CreateSCardTokenPtr createptr); - static void Insert(const SCardTokenMapEntry* entry); - }; - -} // namespace act - -#endif // ACT_SCardTokenReg_h diff --git a/actlibrary/MacOSX-10.4-ppc/Release/include/actSCardUtil.h b/actlibrary/MacOSX-10.4-ppc/Release/include/actSCardUtil.h deleted file mode 100644 index 2b890d0..0000000 --- a/actlibrary/MacOSX-10.4-ppc/Release/include/actSCardUtil.h +++ /dev/null @@ -1,27 +0,0 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actSCardUtil.h -// Product: cv act library -// Purpose: useful global functions -// -// Copyright: (c) 2008 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef actSCardUtil_h -#define actSCardUtil_h - -namespace act -{ - // --------------------------------------------------------------------------- - template - inline BlobT short2blob(unsigned short n) - { - byte data[2] = { byte((n >> 8) & 0xff), byte(n & 0xff) }; - return BlobT(&data[0], &data[0] + sizeof(data)); - } - -} // namespace act - -#endif // actSCardUtil_h diff --git a/actlibrary/MacOSX-10.4-ppc/Release/include/actSlotManager.h b/actlibrary/MacOSX-10.4-ppc/Release/include/actSlotManager.h deleted file mode 100644 index 63875f2..0000000 --- a/actlibrary/MacOSX-10.4-ppc/Release/include/actSlotManager.h +++ /dev/null @@ -1,81 +0,0 @@ -// --------------------------------------------------------------------------- -// Name: actSlotManager.h -// Product: cv act library -// Purpose: The class SlotManager detects and manages the subsystems and the slots -// -// Copyright: (c) 2002 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -// -// Autor: Dr. Xiangdong Wang -// Markus Tesche -// Date: 03/26/2002 -// --------------------------------------------------------------------------- - -#ifndef ACT_SlotManager_h -#define ACT_SlotManager_h - -#include "actIEventMonitoring.h" - -namespace act -{ - class ISubsystem; - class ISubsystemConfig; - - class ISlot; - class ITokenConfig; - - // - // SlotManager - class SlotManager : public IEventMonitoring - { - private: - struct SubsystemList - { - SubsystemList(ISubsystem* system, SubsystemList* next = 0); - ~SubsystemList(); - - SubsystemList* insert(SubsystemList* prev); - SubsystemList* remove(SubsystemList* prev); - - ISubsystem* system; - SubsystemList* next; - }; - - public: - SlotManager(ITokenConfig* tkcfg = 0); - ~SlotManager(); - - bool Install(ISubsystem* system); - bool Install(ISubsystemConfig* config); - - void Refresh(); - void Disconnect(); - ISubsystem* GetSystem(size_t pos = 0) const; - - // SlotList - int GetSlotNumber() const; - const ISlot* GetSlot(int pos) const; - ISlot* CreateSlot(const char* name) const; - - // IEventMonitoring functions - virtual bool IsMonitored() const; - virtual void StopMonitor(bool force = false); - virtual void StartMonitor(IEventHandler* cmd); - - protected: - IEventHandler* SetMonitor(SubsystemList* begin, IEventHandler* cmd, bool force); - - private: - int m_total; - ITokenConfig* m_tkcfg; - SubsystemList* m_begin; - SubsystemList* m_current; - IEventHandler* m_cmd_root; - IEventHandler* m_cmd_current; - }; - -} // namespace act - -#endif // ACT_SlotManager_h diff --git a/actlibrary/MacOSX-10.4-ppc/Release/include/actState.h b/actlibrary/MacOSX-10.4-ppc/Release/include/actState.h deleted file mode 100644 index c7e1cbf..0000000 --- a/actlibrary/MacOSX-10.4-ppc/Release/include/actState.h +++ /dev/null @@ -1,29 +0,0 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actState.h -// Product: cv act library -// Purpose: -// -// Copyright: (c) 2000 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_STATE_H -#define ACT_STATE_H - -namespace act -{ - - const int READY=0; - const int SIGNATURE_OK=1; - const int IS_FINALIZED=2; - const int DECRYPT_ERROR=3; - const int CERTIFICATE_OK=4; - const int CERTIFICATE_ERROR=5; - const int VERIFY_ERROR=6; - -} // namspace act - -#endif - diff --git a/actlibrary/MacOSX-10.4-ppc/Release/include/actStreamCipherKit.h b/actlibrary/MacOSX-10.4-ppc/Release/include/actStreamCipherKit.h deleted file mode 100644 index efc74fa..0000000 --- a/actlibrary/MacOSX-10.4-ppc/Release/include/actStreamCipherKit.h +++ /dev/null @@ -1,22 +0,0 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actStreamCipherKit.h -// Product: cv act library -// Purpose: declaration of all factory functions -// -// Copyright: (c) 2001 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_StreamCipherKit_h -#define ACT_StreamCipherKit_h - -namespace act -{ - class IStreamCipher; - - IStreamCipher* CreateARC4(); -} -#endif - diff --git a/actlibrary/MacOSX-10.4-ppc/Release/include/actStreamCipherReg.h b/actlibrary/MacOSX-10.4-ppc/Release/include/actStreamCipherReg.h deleted file mode 100644 index 4cc5b22..0000000 --- a/actlibrary/MacOSX-10.4-ppc/Release/include/actStreamCipherReg.h +++ /dev/null @@ -1,39 +0,0 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actStreamCipherReg.h -// Product: cv act library -// Purpose: registry for factory functions in actStreamCipherKit.h -// -// Copyright: (c) 2001 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_StreamCipherReg_h -#define ACT_StreamCipherReg_h - -namespace act -{ - class IStreamCipher; - - typedef IStreamCipher* (*CreateStreamCipherPtr)(); - - struct StreamCipherMapEntry { - const char* Name; - CreateStreamCipherPtr CreatePtr; - }; - - class StreamCipherReg - { - public: - static IStreamCipher* CreateStreamCipher(const char* name); - static CreateStreamCipherPtr GetCreatePointer(const char* name); - static const char* GetName(void* createptr); - static const char* GetNextName(const char* name); - static void Insert(const char* name,CreateStreamCipherPtr createptr); - static void Insert(const StreamCipherMapEntry* map); - }; -} - -#endif - diff --git a/actlibrary/MacOSX-10.4-ppc/Release/include/actSubsystemReg.h b/actlibrary/MacOSX-10.4-ppc/Release/include/actSubsystemReg.h deleted file mode 100644 index 7a82df8..0000000 --- a/actlibrary/MacOSX-10.4-ppc/Release/include/actSubsystemReg.h +++ /dev/null @@ -1,53 +0,0 @@ -// --------------------------------------------------------------------------- -// Name: actSubsystemReg.h -// Product: cv act library -// Purpose: factory functions registry to create Subsystem objects. -// -// Copyright: (c) 2002 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -// -// Autor: Dr. Xiangdong Wang (XWG) -// Markus Tesche -// Date: 05/14/2002 -// --------------------------------------------------------------------------- - -#ifndef ACT_SubsystemReg_h -#define ACT_SubsystemReg_h - -namespace act -{ - class ISubsystem; - class ISubsystemConfig; - - typedef ISubsystem* (*CreateSubsystemPtr)(const char*); - typedef ISubsystem* (*CreateSubsystemExPtr)(ISubsystemConfig*); - - struct SubsystemMapEntry - { - const char* Name; - CreateSubsystemPtr CreatePtr; - CreateSubsystemExPtr CreateExPtr; - }; - - class SubsystemReg - { - public: - static ISubsystem* CreateSubsystem(ISubsystemConfig* config); - static ISubsystem* CreateSubsystem(const char* name, const char* dll_name = 0); - - static CreateSubsystemPtr GetCreatePointer(const char* name); - static CreateSubsystemExPtr GetCreateExPointer(const char* name); - - static const char* GetName(void* createptr); - static const char* GetNextName(const char* name); - - static void Insert(const char* name, CreateSubsystemPtr createptr); - static void Insert(const char* name, CreateSubsystemExPtr createexptr); - static void Insert(const SubsystemMapEntry* map); - }; - -} // namespace act - -#endif // ACT_SubsystemReg_h diff --git a/actlibrary/MacOSX-10.4-ppc/Release/include/actTokenAuthProtocolKit.h b/actlibrary/MacOSX-10.4-ppc/Release/include/actTokenAuthProtocolKit.h deleted file mode 100644 index d528776..0000000 --- a/actlibrary/MacOSX-10.4-ppc/Release/include/actTokenAuthProtocolKit.h +++ /dev/null @@ -1,30 +0,0 @@ -// --------------------------------------------------------------------------- -// Name: actTokenAuthProtocolKit.h -// Product: cv act library -// Purpose: Factory functions to create specific ITokenAuthProtocol objects. -// -// Copyright: (c) 2009 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -// -// Autor: Markus Tesche -// Date: 14/10/2008 -// --------------------------------------------------------------------------- - -#ifndef ACT_TokenAuthProtocolKit_h -#define ACT_TokenAuthProtocolKit_h - -namespace act -{ - class ITokenAuthProtocol; - - ITokenAuthProtocol* CreateTokenAuthPACE(const char* name); // EACv2-PACE - ITokenAuthProtocol* CreateTokenAuthTA(const char* name); // EACv2-TA - ITokenAuthProtocol* CreateTokenAuthCA(const char* name); // EACv2-CA - - ITokenAuthProtocol* CreateTokenAuthBAC(const char* name); // EACv1-BAC - -} // namespace act - -#endif // ACT_TokenAuthProtocolKit_h diff --git a/actlibrary/MacOSX-10.4-ppc/Release/include/actTokenBase.h b/actlibrary/MacOSX-10.4-ppc/Release/include/actTokenBase.h deleted file mode 100644 index d31b0e7..0000000 --- a/actlibrary/MacOSX-10.4-ppc/Release/include/actTokenBase.h +++ /dev/null @@ -1,200 +0,0 @@ -// --------------------------------------------------------------------------- -// Name: actTokenBase.h -// Product: cv act library -// Purpose: Declares common token enums and constants. -// -// Copyright: (c) 2010 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -// -// Autor: Markus Tesche -// Date: 03/24/2010 -// --------------------------------------------------------------------------- - -#ifndef ACT_TokenBase_h -#define ACT_TokenBase_h - -namespace act -{ - enum TokenError - { - TOKEN_SUCCESS = 0, - TOKEN_FUNCTION_NOT_SUPPORTED = -1, - TOKEN_FUNCTION_FAILED = -2, - TOKEN_LOCKED = -3 - }; - - enum TokenType - { - TOKEN_RSA = 0x0001, - TOKEN_DSA = 0x0002, - TOKEN_DH = 0x0004, - TOKEN_ECDSA = 0x0008, - TOKEN_ECDH = 0x0010, - TOKEN_SECRET = 0x0080, - - TOKEN_BAC = 0x0100, - TOKEN_EAC = 0x0200, - TOKEN_EPA = 0x0400, - }; - - enum TokenStatusCode - { - TOKEN_EMPTY = 0x0000, - TOKEN_INITIALIZED = 0x0001, - TOKEN_PERSONALIZED = 0x0002 - }; - - enum ProfileType - { - PROFILE_EMPTY = 0x00, - PROFILE_CV = 0x01, - PROFILE_CNS = 0x02, - PROFILE_GDO = 0x03, - PROFILE_CVEC = 0x04, - PROFILE_SIGG = 0x05, - PROFILE_JC = 0x06, - PROFILE_MICARDOEC = 0x07, - PROFILE_STARCOS = 0x08, - PROFILE_NETKEY = 0x09, - PROFILE_CVMOC = 0x0a, - - PROFILE_PKCS15 = 0x0f, - PROFILE_PKCS15_mEAC = 0x10, // includes PACE-Pin's - PROFILE_PKCS15_mEAC_TA = 0x11, // includes PACE-Pin's and TA-IS, TA-ST, TA-AT - - PROFILE_BAC = 0x80, - PROFILE_EAC = 0x81, - PROFILE_EAC201 = 0x82, - PROFILE_EPA = 0x83, - - PROFILE_PKCS11 = 0xa0, - PROFILE_CSP = 0xa1, - PROFILE_MD = 0xa2, - - PROFILE_ANY = 0xfe, - PROFILE_UNKNOWN = 0xff - }; - - // usage of key, pin - enum KeyUsage - { - KEY_EMPTY = 0x0000, - SIGN_DATA = 0x0001, - DEC_DATA = 0x0002, - AGREE_KEY = 0x0004, - AUTH_DATA = 0x0008, - BLOCKCIPHER_KEY = 0x0010, - VERIFY_DATA = 0x0020, - ENC_DATA = 0x0040, - UNLOCK_PIN = 0x0100, - UPDATE_BINARY = 0x0200, - DELETE_BINARY = 0x0400, - ALL_USAGE = 0xffff, - - // custom usage - SIGN_HASH = 0x00010000, - CUSTOM_USAGE_MASK = 0xffff0000, - - // combined usage - ENC_DEC_DATA = DEC_DATA | ENC_DATA, - SIGN_DEC_DATA = DEC_DATA | SIGN_DATA, - SIGN_HASH_DATA = SIGN_HASH | SIGN_DATA, - }; - - enum KeyType - { // NOTE: Never change (!), used for serialization. - KEY_UNKNOWN = 0xffff, - - KEY_RSA = 0x0000, - KEY_DSA = 0x0001, - KEY_DH = 0x0002, - KEY_ECDSA = 0x0003, - KEY_ECDH = 0x0004, - - KEY_SECRET = 0x0010, - KEY_DES = 0x0001 + KEY_SECRET, - KEY_2DES = 0x0002 + KEY_SECRET, - KEY_3DES = 0x0003 + KEY_SECRET, - KEY_AES = 0x0004 + KEY_SECRET, - - KEY_TYPE_MASK = 0x001f - }; - - enum CertificateType - { // NOTE: Never change (!), used for serialization. - CERT_UNKNOWN = 0xffff, - - CERT_X509 = 0x0000, - CERT_CV = 0x0001 - }; - - enum CertificateUsage - { - EMPTY_CERT = 0x0000, - SIGN_CERT = 0x0001, - DEC_CERT = 0x0002, - ROOT_CERT = 0x0004, - AUTH_CERT = 0x0008, - CA_CERT = 0x0010, - SMARTCARD_LOGON_CERT = 0x0100, // lib version >= 1.5 - UNSPECIFIED_CERT = 0xffff - }; - - enum SecStatus - { - SS_INVALID = 0x0000, - SS_AUTHENTICATED = 0x0001, - SS_UNKNOWN = 0xffff, - }; - - enum AUTH_OBJ_TYPE - { - AUTH_OBJ_PIN = 0xff, // -1 - AUTH_OBJ_BIOMETRIC = 0xfe, // -2 - }; - - typedef ulong IDType; - typedef ushort FIDType; - - const IDType ID_INVALID = 0; - const FIDType FID_INVALID = 0x0000; - - // - // FileInfo - struct FileInfo - { - explicit FileInfo(FIDType val_fid = FID_INVALID, IDType val_rec_nr = ID_INVALID) - : fid(val_fid) - , rec_nr(val_rec_nr) - { } - - FIDType fid; - IDType rec_nr; - }; - - // LengthInfo - struct LengthInfo - { - LengthInfo(ulong _minLen = 0, ulong _maxLen = 0, ulong _storedLen = 0) - : minLen(_minLen) - , maxLen(_maxLen) - , storedLen(_storedLen) - { } - - void swap(LengthInfo& other) - { - std::swap(minLen, other.minLen); - std::swap(storedLen, other.storedLen); - std::swap(maxLen, other.maxLen); - } - - ulong minLen; - ulong storedLen; - ulong maxLen; - }; - -} // namespace act - -#endif // ACT_TokenBase_h diff --git a/actlibrary/MacOSX-10.4-ppc/Release/include/actTokenConfig.h b/actlibrary/MacOSX-10.4-ppc/Release/include/actTokenConfig.h deleted file mode 100644 index 45844c1..0000000 --- a/actlibrary/MacOSX-10.4-ppc/Release/include/actTokenConfig.h +++ /dev/null @@ -1,104 +0,0 @@ -// --------------------------------------------------------------------------- -// Name: actTokenConfig.h -// Product: cv act library -// Purpose: Declares all availabl param_id's for ITokenCofing. -// -// Copyright: (c) 2009 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -// -// Autor: Markus Tesche -// Date: 05/07/2009 -// --------------------------------------------------------------------------- - -#ifndef ACT_TokenConfig_h -#define ACT_TokenConfig_h - -#include "actMode.h" -#include "actIParam.h" - -namespace act -{ - // according to ISO 24727-3, definition of supported Data Set's - enum DataSetList - { - DATA_SET_NONE = 0, - DATA_SET_PUBLIC_DATA = (1 << 0), - DATA_SET_PRIVATE_DATA = (1 << 1), - DATA_SET_CERTIFICATES = (1 << 2), - DATA_SET_USEFUL_CERTIFICATES = (1 << 3), - DATA_SET_TRUSTED_CERTIFICATES = (1 << 4), - DATA_SET_TRUSTED_PUBLIC_KEYS = (1 << 5), - // - // ... - DATA_SET_NEXT = (1 << 6), - DATA_SET_MASK = DATA_SET_NEXT - 1, - DATA_SET_ALL = PARAM_INVALID_VALUE, - }; - - enum ObjectTypeList - { - OBJECT_TYPE_NONE = 0, - OBJECT_TYPE_KEY_DES = (1 << 0), - OBJECT_TYPE_KEY_2DES = (1 << 1), - OBJECT_TYPE_KEY_3DES = (1 << 2), - OBJECT_TYPE_KEY_AES = (1 << 3), - OBJECT_TYPE_KEY_RSA = (1 << 4), - OBJECT_TYPE_KEY_DSA = (1 << 5), - OBJECT_TYPE_KEY_DH = (1 << 6), - OBJECT_TYPE_KEY_ECC = (1 << 7), - OBJECT_TYPE_DATA = (1 << 8), - OBJECT_TYPE_CERTIFICATE = (1 << 9), - OBJECT_TYPE_USEFUL_CERTIFICATE = (1 << 10), - OBJECT_TYPE_TRUSTED_CERTIFICATE = (1 << 11), - OBJECT_TYPE_TRUSTED_PUBLIC_KEY = (1 << 12), - // - // Mark an object as private - OBJECT_TYPE_PRVIVATE = (1 << 13), - // - // ... - OBJECT_TYPE_NEXT = (1 << 14), - OBJECT_TYPE_MASK = OBJECT_TYPE_NEXT - 1, - OBJECT_TYPE_ALL = PARAM_INVALID_VALUE, - }; - - enum ObjectAttributeList - { - OBJECT_ATTR_LABEL_P = OBJECT_TYPE_NEXT, - OBJECT_ATTR_LABEL_P_PUB = OBJECT_ATTR_LABEL_P, - OBJECT_ATTR_LABEL_P_PRV = OBJECT_ATTR_LABEL_P | OBJECT_TYPE_PRVIVATE, - }; - - enum - { - TC_TYPE = TOKEN_CONFIG, - TC_HAS_TOKEN_CAPABILITIES, - TC_HAS_WRITABLE_AODF, - TC_IS_MOC_ENABLED, - TC_IS_MINIDRIVER_ENABLED, - TC_IS_PROFILE_ERASABLE, - TC_PINPAD_CHAR, - TC_DATA_SET_LIST, - TC_OBJECT_TYPE_LIST, - // - // Object naming - Label Prefix - TC_LABEL_P_PRV_DES = OBJECT_ATTR_LABEL_P_PRV + OBJECT_TYPE_KEY_DES, - TC_LABEL_P_PRV_2DES = OBJECT_ATTR_LABEL_P_PRV + OBJECT_TYPE_KEY_2DES, - TC_LABEL_P_PRV_3DES = OBJECT_ATTR_LABEL_P_PRV + OBJECT_TYPE_KEY_3DES, - TC_LABEL_P_PRV_AES = OBJECT_ATTR_LABEL_P_PRV + OBJECT_TYPE_KEY_AES, - TC_LABEL_P_PUB_RSA = OBJECT_ATTR_LABEL_P_PUB + OBJECT_TYPE_KEY_RSA, - TC_LABEL_P_PRV_RSA = OBJECT_ATTR_LABEL_P_PRV + OBJECT_TYPE_KEY_RSA, - TC_LABEL_P_PUB_ECC = OBJECT_ATTR_LABEL_P_PUB + OBJECT_TYPE_KEY_ECC, - TC_LABEL_P_PRV_ECC = OBJECT_ATTR_LABEL_P_PRV + OBJECT_TYPE_KEY_ECC, - TC_LABEL_P_PUB_DATA = OBJECT_ATTR_LABEL_P_PUB + OBJECT_TYPE_DATA, - TC_LABEL_P_PRV_DATA = OBJECT_ATTR_LABEL_P_PRV + OBJECT_TYPE_DATA, - TC_LABEL_P_PUB_CERTIFICATE = OBJECT_ATTR_LABEL_P_PUB + OBJECT_TYPE_CERTIFICATE, - TC_LABEL_P_PUB_USEFUL_CERTIFICATE = OBJECT_ATTR_LABEL_P_PUB + OBJECT_TYPE_USEFUL_CERTIFICATE, - TC_LABEL_P_PUB_TRUSTED_CERTIFICATE = OBJECT_ATTR_LABEL_P_PUB + OBJECT_TYPE_TRUSTED_CERTIFICATE, - TC_LABEL_P_PUB_TRUSTED_PUBLIC_KEY = OBJECT_ATTR_LABEL_P_PUB + OBJECT_TYPE_TRUSTED_PUBLIC_KEY, - }; - -} // namespace act - -#endif // ACT_TokenConfig_h diff --git a/actlibrary/MacOSX-10.4-ppc/Release/include/actTokenExtensionKit.h b/actlibrary/MacOSX-10.4-ppc/Release/include/actTokenExtensionKit.h deleted file mode 100644 index f087bdc..0000000 --- a/actlibrary/MacOSX-10.4-ppc/Release/include/actTokenExtensionKit.h +++ /dev/null @@ -1,28 +0,0 @@ -// --------------------------------------------------------------------------- -// Name: actTokenExtensionKit.h -// Product: cv act library -// Purpose: Factory functions to create specific ITokenExtension objects. -// -// Copyright: (c) 2008 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -// -// Autor: Markus Tesche -// Date: 12/02/2008 -// --------------------------------------------------------------------------- - -#ifndef ACT_TokenExtensionKit_h -#define ACT_TokenExtensionKit_h - -namespace act -{ - class IToken; - class ITokenExtension; - - ITokenExtension* CreateMDProfileExt(const char* name, IToken*); // Minidriver - ITokenExtension* CreateEACTAwithCAPI(const char* name, IToken*); // EACv2-TA with CAPI - -} // namespace act - -#endif // ACT_TokenExtensionKit_h diff --git a/actlibrary/MacOSX-10.4-ppc/Release/include/actTokenExtensionReg.h b/actlibrary/MacOSX-10.4-ppc/Release/include/actTokenExtensionReg.h deleted file mode 100644 index f961078..0000000 --- a/actlibrary/MacOSX-10.4-ppc/Release/include/actTokenExtensionReg.h +++ /dev/null @@ -1,34 +0,0 @@ -// --------------------------------------------------------------------------- -// Name: actTokenExtensionReg.h -// Product: cv act library -// Purpose: factory functions registry to create ITokenExtension objects. -// -// Copyright: (c) 2008 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -// -// Autor: Markus Tesche -// Date: 12/02/2008 -// --------------------------------------------------------------------------- - -#ifndef ACT_TokenExtensionReg_h -#define ACT_TokenExtensionReg_h - -#include "actFactoryReg.h" - -namespace act -{ - class IToken; - class ITokenExtension; - - typedef ITokenExtension* (*CreateTokenExtensionPtr)(const char*, IToken*); - typedef FactoryMapEntry TokenExtensionMapEntry; - - typedef FactoryReg - < ITokenExtension, CreateTokenExtensionPtr, TokenExtensionMapEntry - > TokenExtensionReg; - -} // namespace act - -#endif // ACT_TokenExtensionReg_h diff --git a/actlibrary/MacOSX-10.4-ppc/Release/include/actToolsECC.h b/actlibrary/MacOSX-10.4-ppc/Release/include/actToolsECC.h deleted file mode 100644 index 246b99f..0000000 --- a/actlibrary/MacOSX-10.4-ppc/Release/include/actToolsECC.h +++ /dev/null @@ -1,99 +0,0 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actToolsECC.h -// Product: cv act library -// Purpose: useful ECC functions -// -// Copyright: (c) 2009 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_ToolsECC_h -#define ACT_ToolsECC_h - -#include "actMode.h" -#include "actBlob.h" -#include "actIKey.h" - -namespace act -{ - // Functions for ECC scalar multiplication, addition of points. - // Input points must be in ASN.1 point representation (uncompressed, - // compressed or hybrid). The output point will be in ASN.1 representation - // as indicated in 'output_format'. - // - // 1) Calculate s * Q, s unsigned in ASN.1 OCTET STRING representation - // (leading zeros will be ignored) - Blob ECMultiplyPoint(IKey* ec_key, const Blob& s, const Blob& Q, - int output_format = UNCOMPRESSED); - // 2) Calculate Q1 + Q2 - Blob ECAddPoints(IKey* ec_key, const Blob& Q1, const Blob& Q2, - int output_format = UNCOMPRESSED); - - - // Functions to encode an (EC-)DSA signature (r, s) in ASN1 format and backwards. - // - // 1) Plain signature I/O as string - // - for encode: r and s must be in hex notation - // - for decode: the user has to allocate r and s buffers - void EncodeSignature(const char* r, const char* s, Blob& signature_ASN1); - void DecodeSignature(const Blob& signature_ASN1, char* r, char* s); - // 2) Plain signature I/O as byte array (Blob) - // - r and s I/O in big endian representation - void EncodeSignature(const Blob& r, const Blob& s, Blob& signature_ASN1); - void DecodeSignature(const Blob& signature_ASN1, Blob& r, Blob& s); - // 3) Plain signature I/O as byte array (Blob) - // - r_s length even, left haft = r, right half = s - // - if order_bytes is non zero, decode output length is 2 * order_bytes - void EncodeSignature(const Blob& r_s, Blob& signature_ASN1); - void DecodeSignature(const Blob& signature_ASN1, Blob& r_s, size_t order_bytes = 0); - - - // Tools for elliptic curves over GF(P). - // The basepoint can be given by it's coordinates (Gx, Gy) or as - // COMPRESSED, UNCOMPRESSED or HYBRID octetstring G corresponding - // to ANSI X9.62/63 standard. - // By default, the basepoint will be encoded in UNCOMPRESSED format. - - Blob EncodePrimeCurveParam(const Blob& p, const Blob& a, const Blob& b, - const Blob& Gx, const Blob& Gy, const Blob& n, const Blob& h, - int output_type = UNCOMPRESSED); - - Blob EncodePrimeCurveParam(const Blob& p, const Blob& a, const Blob& b, - const Blob& G, const Blob& n, const Blob& h, int output_type = UNCOMPRESSED); - - // dto. for elliptic curves over GF(2^m), tri- or pentanomial basis. - - // tri- or pentanomial in hex presentation - Blob EncodeGF2CurveParam(const Blob& p, const Blob& a, const Blob& b, - const Blob& Gx, const Blob& Gy, const Blob& n, const Blob& h, - int output_type = UNCOMPRESSED); - - // tri- or pentanomial in hex presentation - Blob EncodeGF2CurveParam(const Blob& p, const Blob& a, const Blob& b, - const Blob& G, const Blob& n, const Blob& h, int output_type = UNCOMPRESSED); - - // f(t) = t^m + t^k + 1 - Blob EncodeTrinomialCurveParam(const int m, const int k, - const Blob& a, const Blob& b, const Blob& Gx, const Blob& Gy, - const Blob& n, const Blob& h, int output_type = UNCOMPRESSED); - - // f(t) = t^m + t^k + 1 - Blob EncodeTrinomialCurveParam(const int m, const int k, - const Blob& a, const Blob& b, const Blob& G, const Blob& n, - const Blob& h, int output_type = UNCOMPRESSED); - - // f(t) = t^m + t^k3 + t^k2 + t^k1 + 1 - Blob EncodePentanomialCurveParam(const int m, const int k3, const int k2, - const int k1, const Blob& a, const Blob& b, const Blob& Gx, const Blob& Gy, - const Blob& n, const Blob& h, int output_type = UNCOMPRESSED); - - // f(t) = t^m + t^k3 + t^k2 + t^k1 + 1 - Blob EncodePentanomialCurveParam(const int m, const int k3, const int k2, - const int k1, const Blob& a, const Blob& b, const Blob& G, - const Blob& n, const Blob& h, int output_type = UNCOMPRESSED); - -} // namespace act - -#endif // ACT_ToolsECC_h diff --git a/actlibrary/MacOSX-10.4-ppc/Release/include/actToolsRSA.h b/actlibrary/MacOSX-10.4-ppc/Release/include/actToolsRSA.h deleted file mode 100644 index b79c55b..0000000 --- a/actlibrary/MacOSX-10.4-ppc/Release/include/actToolsRSA.h +++ /dev/null @@ -1,19 +0,0 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actToolsRSA.h -// Product: cv act library -// Purpose: useful RSA functions -// -// Copyright: (c) 2000 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_TOOLS_RSA_H -#define ACT_TOOLS_RSA_H - -#include "actTools.h" - -// TODO: MTE: Move all RSA functions from "actTools.h" to here! include inside "actTools.h" - -#endif // ACT_TOOLS_RSA_H diff --git a/actlibrary/MacOSX-10.4-ppc/Release/include/actTypeTags.h b/actlibrary/MacOSX-10.4-ppc/Release/include/actTypeTags.h deleted file mode 100644 index a844a0d..0000000 --- a/actlibrary/MacOSX-10.4-ppc/Release/include/actTypeTags.h +++ /dev/null @@ -1,32 +0,0 @@ -// --------------------------------------------------------------------------- -// Name: actTypeTags.h -// Product: cv act library -// Purpose: TypeTag<> and usibility forward declarations. -// -// Copyright: (c) 2010 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -// -// Autor: Markus Tesche -// Date: 09/10/2010 -// --------------------------------------------------------------------------- - -#ifndef ACT_TypeTags_h -#define ACT_TypeTags_h - -namespace act -{ - // - // TypeTag<> - template - struct TypeTag { typedef TypeT Type; }; - - // - // CloneFactory<> - template - struct CloneFactory; - -} // namespace act - -#endif // ACT_TypeTags_h diff --git a/actlibrary/MacOSX-10.4-ppc/Release/include/actX509Extension.h b/actlibrary/MacOSX-10.4-ppc/Release/include/actX509Extension.h deleted file mode 100644 index 51f59f0..0000000 --- a/actlibrary/MacOSX-10.4-ppc/Release/include/actX509Extension.h +++ /dev/null @@ -1,50 +0,0 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actX509Extension.h -// Product: cv act library -// Purpose: -// -// Copyright: (c) 2000 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_X509Extension_H -#define ACT_X509Extension_H - -#include "actBlob.h" - -namespace act -{ - class X509Extension - { - public: - X509Extension(); - X509Extension(const Blob& oid, const Blob& value, bool critflag); - X509Extension(const char* oid, const Blob& value, bool critflag); - - void GetOID(Blob& oid) const; - void GetOIDString(Blob& oid) const; - void SetOID(const Blob& oid); - void SetOIDString(const char* oid); - - void GetValue(Blob& value) const; - void SetValue(const Blob& value); - - bool IsCritical() const; - void SetCritical(bool crit = true); - - void GetDER(Blob& der) const; - void SetDER(const Blob& der); - - bool IsPresent() { return mValue.size() > 0; } - - private: - Blob mOID; - Blob mValue; - bool mCrit; - }; - -} // namespace act - -#endif // ACT_X509Extension_H diff --git a/actlibrary/MacOSX-10.4-ppc/Release/include/actX509KeyReg.h b/actlibrary/MacOSX-10.4-ppc/Release/include/actX509KeyReg.h deleted file mode 100644 index 619a17d..0000000 --- a/actlibrary/MacOSX-10.4-ppc/Release/include/actX509KeyReg.h +++ /dev/null @@ -1,48 +0,0 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actX509KeyReg.h -// Product: cv act library -// Purpose: registry for factory functions in actX509Kit.h -// -// Copyright: (c) 2000 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_X509KeyReg_h -#define ACT_X509KeyReg_h - -namespace act -{ - class IKey; - class Blob; - - typedef IKey* (*CreateKeyPtr)(); - typedef void (*X509ToKeyPtr)(const Blob& pkinfo, IKey* key); - typedef void (*KeyToX509Ptr)(const IKey* key, Blob& pkinfo ); - - struct X509KeyMapEntry - { - const char* OID; - CreateKeyPtr CreatePtr; - X509ToKeyPtr X509ToKey; - KeyToX509Ptr KeyToX509; - }; - - class X509KeyReg - { - public: - static IKey* CreateX509Key(const Blob& pkInfo); - static void GetX509KeyInfo(const IKey* key, Blob& pkInfo); - - static CreateKeyPtr GetCreatePointer(const char* oid); - static const char* GetOID(void* createptr); - static const char* GetNextOID(const char* oid); - - static void Insert(const char* name, CreateKeyPtr createptr, X509ToKeyPtr x509tokey, KeyToX509Ptr keytox509); - static void Insert(const X509KeyMapEntry* keymap); - }; - -} // namespace act - -#endif // ACT_X509KeyReg_h diff --git a/actlibrary/MacOSX-10.4-ppc/Release/include/actX509Kit.h b/actlibrary/MacOSX-10.4-ppc/Release/include/actX509Kit.h deleted file mode 100644 index bb0affb..0000000 --- a/actlibrary/MacOSX-10.4-ppc/Release/include/actX509Kit.h +++ /dev/null @@ -1,45 +0,0 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actX509Kit.h -// Product: cv act library -// Purpose: declaration of all factory functions -// -// Copyright: (c) 2000 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_X509Kit_h -#define ACT_X509Kit_h - -namespace act -{ - class Blob; - class IKey; - - void X509ToRSA(const Blob& pkinfo, IKey* key); - void RSAToX509(const IKey* key, Blob& pkinfo); - void RSAGetAlgID(const IKey* key, Blob& algid); - void RSASetAlgID(const Blob& algid, IKey* key ); - - void X509ToDSA(const Blob& pkinfo, IKey* key); - void DSAToX509(const IKey* key, Blob& pkinfo); - void DSAGetAlgID(const IKey* key, Blob& algid); - void DSASetAlgID(const Blob& algid, IKey* key ); - - void X509ToECDSA(const Blob& pkinfo, IKey* key); - void ECDSAToX509(const IKey* key, Blob& pkinfo); - void ECDSAGetAlgID(const IKey* key, Blob& algid); - void ECDSASetAlgID(const Blob& algid, IKey* key ); - - void X509ToDH(const Blob& pkinfo, IKey* key); - void DHToX509(const IKey* key, Blob& pkinfo); - void DHGetAlgID(const IKey* key, Blob& algid); - void DHSetAlgID(const Blob& algid, IKey* key ); - - void ECDHGetAlgID(const IKey* key, Blob& algid); - void ECDHSetAlgID(const Blob& algid, IKey* key ); - -} -#endif - diff --git a/actlibrary/MacOSX-10.4-ppc/Release/include/actX509SignHashReg.h b/actlibrary/MacOSX-10.4-ppc/Release/include/actX509SignHashReg.h deleted file mode 100644 index d4a01d5..0000000 --- a/actlibrary/MacOSX-10.4-ppc/Release/include/actX509SignHashReg.h +++ /dev/null @@ -1,40 +0,0 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actX509SignHashReg.h -// Product: cv act library -// Purpose: registry for factory functions in actX509Kit.h -// -// Copyright: (c) 2000-2001 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_X509SignHashReg_h -#define ACT_X509SignHashReg_h - -namespace act -{ - class Blob; - - // ------------------------------------------------------------------------ - struct X509SignHashMapEntry { - const char* OID; - const char* HashAlg; - const char* SignAlg; - }; - - // ------------------------------------------------------------------------ - class X509SignHashReg - { - public: - static void GetOID(const char* algo, const char* sign_algo, Blob& algid); - static const char* GetHashAlg(const Blob& algid); - static const char* GetSignAlg(const Blob& algid); - static void Insert(const X509SignHashMapEntry* map); - - static const char* GetHashAlg(const Blob& algid, const char* sign_algo); // deprecated - }; - -} -#endif - diff --git a/actlibrary/MacOSX-10.4-ppc/Release/include/actX509SignReg.h b/actlibrary/MacOSX-10.4-ppc/Release/include/actX509SignReg.h deleted file mode 100644 index 74b48a2..0000000 --- a/actlibrary/MacOSX-10.4-ppc/Release/include/actX509SignReg.h +++ /dev/null @@ -1,41 +0,0 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actX509SignReg.h -// Product: cv act library -// Purpose: registry for factory functions in actX509Kit.h -// -// Copyright: (c) 2000 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_X509SignReg_h -#define ACT_X509SignReg_h - -namespace act -{ - class IKey; - class Blob; - - typedef IKey* (*CreateKeyPtr)(); - typedef void (*GetX509AlgIDPtr)(const IKey* key, Blob& algid); - typedef void (*SetX509AlgIDPtr)(const Blob& algid, IKey* key); - - struct X509SignMapEntry { - CreateKeyPtr CreatePtr; - GetX509AlgIDPtr GetAlgID; - SetX509AlgIDPtr SetAlgID; - }; - - class X509SignReg - { - public: - static void GetAlgID(const IKey* key, Blob& algid); - static void SetAlgID(const Blob& algid, IKey* key); - - static void Insert(CreateKeyPtr createptr, GetX509AlgIDPtr getalgid, SetX509AlgIDPtr setalgid ); - static void Insert(const X509SignMapEntry* keymap); - }; -} -#endif - diff --git a/actlibrary/MacOSX-10.5-x86_64/Release/include/actAlgorithm.h b/actlibrary/MacOSX-10.5-x86_64/Release/include/actAlgorithm.h deleted file mode 100644 index 035471e..0000000 --- a/actlibrary/MacOSX-10.5-x86_64/Release/include/actAlgorithm.h +++ /dev/null @@ -1,73 +0,0 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actAlgorithm.h -// Product: cv act library -// Purpose: The class Algorithm generates algorithms for encryption and signing. -// The class Key defined these algorithms. By using this handle the -// necessary methods (e.g. hash-algorithms, verifying-primitiva, etc.) -// can be generated. -// -// Copyright: (c) 2000 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_Algorithm_h -#define ACT_Algorithm_h - -#include "actBasics.h" - -namespace act -{ - class IAlgorithm; - class IKey; - class Blob; - - class Algorithm - { - private: - Algorithm(const Algorithm&); - Algorithm &operator=(const Algorithm&); - - public: - Algorithm(IAlgorithm* alg); - Algorithm(const IKey* key, mode_t mode); - Algorithm(const IKey* key, mode_t mode, const Blob& data); - Algorithm(const char* name); - ~Algorithm(); - - void Write(const Blob& indata); - void Write(const byte* indata, size_t insize); - - void Finalize(); - - size_t Read(Blob& outdata, size_t max = 0); - size_t Read(byte* outbuffer, size_t buffersize); - - size_t GetAvailableSize() const; - status_t GetStatus() const; - - Algorithm& operator<<(const Blob& indata) { Write(indata); return *this; } - Algorithm& operator<<(Algorithm& (*manipulator)(Algorithm &alg)) { return manipulator(*this); } - Algorithm& operator>>(Blob& outdata) { Read(outdata); return *this; } - - operator IAlgorithm*(); - operator const IAlgorithm* () const; - IAlgorithm* GetPointer(); - const IAlgorithm* GetPointer() const; - - IAlgorithm* ReleasePointer(); - - private: - IAlgorithm* mAlg; - }; - - inline Algorithm& final(Algorithm& alg) - { - alg.Finalize(); - return alg; - } - -} // namespace act - -#endif // ACT_Algorithm_h diff --git a/actlibrary/MacOSX-10.5-x86_64/Release/include/actAllocator.h b/actlibrary/MacOSX-10.5-x86_64/Release/include/actAllocator.h deleted file mode 100644 index ce0bfb2..0000000 --- a/actlibrary/MacOSX-10.5-x86_64/Release/include/actAllocator.h +++ /dev/null @@ -1,107 +0,0 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actAllocator.h -// Product: cv act library -// Purpose: -// -// Copyright: (c) 2008 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -// -// Autor: Markus Tesche (MTE) -// Date: 09/29/2008 -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_Allocator_h -#define ACT_Allocator_h - -#include "actBasics.h" - -// -------------------------------------------------------------------------------- -namespace act -{ - // - // Allocator<> - template - class Allocator - { - public: - typedef SizeT size_type; - typedef TypeT value_type; - typedef value_type* pointer; - typedef value_type& reference; - typedef const value_type* const_pointer; - typedef const value_type& const_reference; - - protected: - typedef Allocator ThisT; - typedef pointer (*fptr_allocate)(ThisT*, size_type n, const void* hint); - typedef void (*fptr_deallocate)(ThisT*, pointer p, size_type n); - - private: - Allocator(const Allocator&); - Allocator& operator=(const Allocator&); - - protected: - Allocator(fptr_allocate pAllocate, fptr_deallocate pDeallocate) throw() - : m_pAllocate(pAllocate) - , m_pDeallocate(pDeallocate) - { } - - public: - inline pointer allocate(size_type n, const void* hint) - { - return m_pAllocate(this, n, hint); - } - - inline void deallocate(pointer p, size_type n) - { - if(p != 0) m_pDeallocate(this, p, n); - } - - protected: - fptr_allocate m_pAllocate; - fptr_deallocate m_pDeallocate; - }; - - // - // AllocatorImpl<> - template - < - class AllocatorT, - class BaseT = Allocator - > - class AllocatorImpl : public BaseT - { - public: - typedef typename BaseT::pointer pointer; - typedef typename BaseT::size_type size_type; - - protected: - typedef AllocatorImpl ThisT; - - public: - AllocatorImpl() throw() - : BaseT(_allocate, _deallocate) - { } - - AllocatorT& ref_alloc() { return m_Alloc; } - - private: - inline static pointer _allocate(BaseT* pThis, size_type n, const void* hint) - { - return static_cast(pThis)->m_Alloc.allocate(n, hint); - } - - inline static void _deallocate(BaseT* pThis, pointer p, size_type n) - { - static_cast(pThis)->m_Alloc.deallocate(p, n); - } - - private: - AllocatorT m_Alloc; - }; - -} // namespace act - -#endif // ACT_Allocator_h diff --git a/actlibrary/MacOSX-10.5-x86_64/Release/include/actBlob.h b/actlibrary/MacOSX-10.5-x86_64/Release/include/actBlob.h deleted file mode 100644 index e42687d..0000000 --- a/actlibrary/MacOSX-10.5-x86_64/Release/include/actBlob.h +++ /dev/null @@ -1,644 +0,0 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actBlob.h -// Product: cv act library -// Purpose: The datatype Blob (Binary Large Object) is a universal type, which -// can be used for any data. The class Blob almost behaves like -// std::vector with the difference that freed memory -// is filled with zeros to enhance security. -// -// Copyright: (c) 2000 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_Blob_h -#define ACT_Blob_h - -#include "actMove.h" -#include "actBasics.h" -#include "actAllocator.h" - -#ifndef UNDER_CE_30 -# include -#endif // UNDER_CE_30 - -#ifndef NO_STL_SUPPORT -# include // used for reserve_iterator -# include // used for string -#else - // -------------------------------------------------------------------------------- - // if there is no STL support, we define reverse_iterator here. - // -------------------------------------------------------------------------------- - namespace std - { - // ITERATOR TAGS (from ) - struct input_iterator_tag {}; - struct output_iterator_tag {}; - struct forward_iterator_tag - : public input_iterator_tag {}; - struct bidirectional_iterator_tag - : public forward_iterator_tag {}; - struct random_access_iterator_tag - : public bidirectional_iterator_tag {}; - - // TEMPLATE CLASS iterator (from ) - template - struct iterator { - typedef _C iterator_category; - typedef _Ty value_type; - typedef _D distance_type; - }; - template - struct _Bidit : public iterator {}; - template - struct _Ranit : public iterator {}; - - // TEMPLATE CLASS iterator_traits (from ) - template - struct iterator_traits { - typedef _It::iterator_category iterator_category; - typedef _It::value_type value_type; - typedef _It::distance_type distance_type; - }; - - - // TEMPLATE CLASS reverse_iterator (from ) - template - class reverse_iterator : public _Ranit<_Ty, _D> { - public: - typedef reverse_iterator<_RI, _Ty, _Rt, _Pt, _D> _Myt; - typedef _RI iter_type; - typedef _Rt reference_type; - typedef _Pt pointer_type; - reverse_iterator() - {} - explicit reverse_iterator(_RI _X) - : current(_X) {} - _RI base() const - {return(current); } - _Rt operator*() const - {return(*(current - 1)); } - // _Pt operator->() const - // {return(&**this); } - _Myt& operator++() - {--current; - return(*this); } - _Myt operator++(int) - {_Myt _Tmp = *this; - --current; - return(_Tmp); } - _Myt& operator--() - {++current; - return(*this); } - _Myt operator--(int) - {_Myt _Tmp = *this; - ++current; - return(_Tmp); } - _Myt& operator+=(_D _N) - {current -= _N; - return(*this); } - _Myt operator+(_D _N) const - {return(_Myt(current - _N)); } - _Myt& operator-=(_D _N) - {current += _N; - return(*this); } - _Myt operator-(_D _N) const - {return(_Myt(current + _N)); } - _Rt operator[](_D _N) const - {return(*(*this + _N)); } - protected: - _RI current; - }; - template inline - bool __cdecl operator==( - const reverse_iterator<_RI, _Ty, _Rt, _Pt, _D>& _X, - const reverse_iterator<_RI, _Ty, _Rt, _Pt, _D>& _Y) - {return(get_base(_X) == get_base(_Y)); } - template inline - bool __cdecl operator!=( - const reverse_iterator<_RI, _Ty, _Rt, _Pt, _D>& _X, - const reverse_iterator<_RI, _Ty, _Rt, _Pt, _D>& _Y) - {return(!(_X == _Y)); } - template inline - bool __cdecl operator<( - const reverse_iterator<_RI, _Ty, _Rt, _Pt, _D>& _X, - const reverse_iterator<_RI, _Ty, _Rt, _Pt, _D>& _Y) - {return(get_base(_Y) < get_base(_X)); } - template inline - bool __cdecl operator>( - const reverse_iterator<_RI, _Ty, _Rt, _Pt, _D>& _X, - const reverse_iterator<_RI, _Ty, _Rt, _Pt, _D>& _Y) - {return(_Y < _X); } - template inline - bool __cdecl operator<=( - const reverse_iterator<_RI, _Ty, _Rt, _Pt, _D>& _X, - const reverse_iterator<_RI, _Ty, _Rt, _Pt, _D>& _Y) - {return(!(_Y < _X)); } - template inline - bool __cdecl operator>=( - const reverse_iterator<_RI, _Ty, _Rt, _Pt, _D>& _X, - const reverse_iterator<_RI, _Ty, _Rt, _Pt, _D>& _Y) - {return(!(_X < _Y)); } - template inline - _D __cdecl operator-( - const reverse_iterator<_RI, _Ty, _Rt, _Pt, _D>& _X, - const reverse_iterator<_RI, _Ty, _Rt, _Pt, _D>& _Y) - {return(get_base(_Y) - get_base(_X)); } - template inline - reverse_iterator<_RI, _Ty, _Rt, _Pt, _D> __cdecl operator+(_D _N, - const reverse_iterator<_RI, _Ty, _Rt, _Pt, _D>& _Y) - {return(reverse_iterator<_RI, _Ty, _Rt, _Pt, _D>( - get_base(_Y) - _N)); } - } // namespace std - -#endif //NO_STL_SUPPORT - -// -------------------------------------------------------------------------------- -namespace act -{ - // - // byte_array for fixed data - struct byte_array - { - const act::byte* value; - const size_t size; - }; - - inline byte_array make_array(const act::byte* value = 0, size_t size = 0) - { - const byte_array ba = { value, size }; - return ba; - }; - -#ifndef ACT_NO_BYTE_ARRAY_MACROS -# define _A(x) x.value, x.size -# define _B(x) act::make_array(reinterpret_cast(x), sizeof(x) - sizeof(x[0])) -# define _C(x) act::make_array(reinterpret_cast(x), sizeof(x)) -# define _H(x) { (const act::byte*) x, sizeof(x) - sizeof(x[0]) } -#endif - -#if(_MSC_VER >= 1300) - template - < - class _Ty, - class _Diff, - class _Pointer, - class _Reference, - class _Pointer2, - class _Reference2 - > - class _Ptrit : - public std::iterator - { // wrap pointer as random-access iterator - public: - typedef _Ptrit<_Ty, _Diff, _Pointer, _Reference, _Pointer2, _Reference2> _Myt; - - _Ptrit() - { // construct with uninitialized wrapped pointer - } - - _Ptrit(_Pointer _Ptr) : current(_Ptr) - { // construct wrapped pointer from _Ptr - } - - _Ptrit(const _Ptrit<_Ty, _Diff, _Pointer2, _Reference2, _Pointer2, _Reference2>& _Iter) - : current(_Iter.base()) - { // const converter or copy constructor - } - - _Pointer base() const - { // return wrapped pointer - return current; - } - - _Reference operator*() const - { // return designated value - return *current; - } - - _Pointer operator->() const - { // return pointer to class object - return &**this; - } - - _Myt& operator++() - { // preincrement - ++current; - return *this; - } - - _Myt operator++(int) - { // postincrement - _Myt _Tmp = *this; - ++current; - return _Tmp; - } - - _Myt& operator--() - { // predecrement - --current; - return *this; - } - - _Myt operator--(int) - { // postdecrement - _Myt _Tmp = *this; - --current; - return _Tmp; - } - - bool operator==(size_t _Right) const - { // test if wrapped pointer == integer (null pointer constant) - return current == (_Pointer) _Right; - } - - bool operator==(const _Myt& _Right) const - { // test for iterator equality - return current == _Right.current; - } - - bool operator!=(const _Myt& _Right) const - { // test for iterator inequality - return !(*this == _Right); - } - - _Myt& operator+=(_Diff _Off) - { // increment by integer - current += _Off; - return *this; - } - - _Myt operator+(_Diff _Off) const - { // return this + integer - return _Myt(current + _Off); - } - - _Myt& operator-=(_Diff _Off) - { // decrement by integer - current -= _Off; - return *this; - } - - _Myt operator-(_Diff _Off) const - { // return this - integer - return _Myt(current - _Off); - } - - _Reference operator[](_Diff _Off) const - { // subscript - return *(*this + _Off); - } - - bool operator<(const _Myt& _Right) const - { // test if this < _Right - return current < _Right.current; - } - - bool operator>(const _Myt& _Right) const - { // test if this > _Right - return _Right < *this; - } - - bool operator<=(const _Myt& _Right) const - { // test if this <= _Right - return !(_Right < *this); - } - - bool operator>=(const _Myt& _Right) const - { // test if this >= _Right - return !(*this < _Right); - } - - _Diff operator-(const _Myt& _Right) const - { // return difference of iterators - return current - _Right.current; - } - - protected: - _Pointer current; // the wrapped pointer - }; - -#endif // _MSC_VER >= 1300 - - // - // Blob - class Blob - { - protected: - struct flags - { - byte copy_on_write:1; - byte external_allocated:1; - - flags() throw() - : copy_on_write(0) - , external_allocated(0) - { } - }; - - public: - typedef Allocator _Alloc; - typedef _Alloc allocator_type; - typedef _Alloc::size_type size_type; - typedef _Alloc::value_type value_type; - typedef value_type* pointer; - typedef value_type& reference; - typedef const value_type* const_pointer; - typedef const value_type& const_reference; - typedef ptrdiff_t difference_type; - -#if(_MSC_VER >= 1300) - typedef _Ptrit - < value_type, difference_type, pointer, reference, pointer, reference - > iterator; - - typedef _Ptrit - < value_type, difference_type, const_pointer, const_reference, pointer, reference - > const_iterator; - - inline static pointer get_base(iterator it) { return it.base(); } - inline static const_pointer get_base(const_iterator it) { return it.base(); } - -#else - typedef byte* iterator; - typedef const byte* const_iterator; - - inline static pointer get_base(iterator it) { return it; } - inline static const_pointer get_base(const_iterator it) { return it; } - -#endif - -#if (_MSC_VER >= 1200) && (_MSC_VER < 1300) - typedef std::reverse_iterator - < iterator, value_type, reference, pointer, difference_type - > reverse_iterator; - - typedef std::reverse_iterator - < const_iterator, value_type, const_reference, const_pointer, difference_type - > const_reverse_iterator; - -#else - typedef std::reverse_iterator reverse_iterator; - typedef std::reverse_iterator const_reverse_iterator; - -#endif - // construct/copy/destroy - Blob(); - - explicit Blob(allocator_type* allocator); - explicit Blob(const char* str, allocator_type* allocator = dAllocator); - -#ifndef NO_STL_SUPPORT - explicit Blob(std::string& str, allocator_type* allocator = dAllocator); - explicit Blob(const std::string& str, allocator_type* allocator = dAllocator); -#endif // NO_STL_SUPPORT - - explicit Blob(const byte_array& ba, allocator_type* allocator = dAllocator); - explicit Blob(size_type n, byte v = byte(0), allocator_type* allocator = dAllocator); - - template - Blob(inputit f, inputit l, allocator_type* allocator = dAllocator) - : mFirst(0), mLast(0), mEnd(0), mAllocator(allocator) - { - insert(begin(), f, l); - } - - Blob(move_from other); - Blob(const Blob& other); - ~Blob(); - - Blob& operator=(const Blob& other); - Blob& operator=(move_from other); - - template - void assign(inputit f, inputit l) - { - erase(begin(), end()); - insert(begin(), f, l); - } - - void assign(const byte_array& ba); - void assign(size_type n, byte x = byte(0)); - - // capacity - bool empty() const { return size() == 0; } - size_type size() const { return mFirst == 0 ? 0 : mLast - mFirst; } - size_type capacity() const { return mFirst == 0 ? 0 : mEnd - mFirst; } - size_type max_size() const; - void reserve(size_type n); - void resize(size_type n, byte x = byte(0)); - - // iterators - iterator begin() { return mFirst; } - const_iterator begin() const { return const_iterator(mFirst); } - iterator end() { return mLast; } - const_iterator end() const { return const_iterator(mLast); } - reverse_iterator rbegin() { return reverse_iterator(end()); } - const_reverse_iterator rbegin() const { return const_reverse_iterator(end()); } - reverse_iterator rend() { return reverse_iterator(begin()); } - const_reverse_iterator rend() const { return const_reverse_iterator(begin()); } - - - // element access: - reference at(size_type p); - const_reference at(size_type p) const; - reference operator[](size_type p) { return *(begin() + p); } - const_reference operator[](size_type p) const { return *(begin() + p); } - - reference front() { return *begin(); } - const_reference front() const { return *begin(); } - reference back() { return *(end() - 1); } - const_reference back() const { return *(end() - 1); } - - // modifiers - void push_back(byte x) { insert(end(), x); } - void pop_back() { erase(end() - 1); } - - void insert(iterator p, size_type m, byte x); - iterator insert(iterator p, byte x = byte(0)); - - template - void insert(iterator p, inputit f, inputit l) - { - size_type m = 0; - _distance(f, l, m); - if(size_type(mEnd - mLast) < m) - { - size_type n = size(); - n = aligned_size(n + (m < n ? n : m)); - iterator s = allocate(n, (void*) 0); - iterator q = ucopy(mFirst, p, s); - q = ucopy(f, l, q); - ucopy(p, mLast, q); - _destroy(mFirst, mLast); - deallocate(get_base(mFirst), mEnd - mFirst); - mEnd = s + n; - mLast = s + size() + m; - mFirst = s; - } - else if(size_type(mLast - p) < m) - { - ucopy(p, mLast, p + m); - ucopy(f + (mLast - p), l, mLast); - copy(f, f + (mLast - p), p); - mLast += m; - } - else if(0 < m) - { - ucopy(mLast - m, mLast, mLast); - copy_backward(p, mLast - m, mLast); - copy(f, l, p); - mLast += m; - } - } - - Blob& append(const Blob& x) - { - insert(end(), x.begin(), x.end()); - return *this; - } - - Blob& append(size_type m, byte x) - { - insert(end(), m, x); - return *this; - } - - template - Blob& append(inputit f, inputit l) - { - insert(end(), f, l); - return *this; - } - - iterator erase(iterator p); - iterator erase(iterator f, iterator l); - void clear(); - void swap(Blob& x); - - // used by compare operators - bool _eq(const Blob& x) const; - bool _lt(const Blob& x) const; - - allocator_type* get_allocator() const { return mAllocator; } - static allocator_type* set_default_allocator(allocator_type* allocator) - { - std::swap(dAllocator, allocator); - return allocator; - } - - private: - template - outputit copy(inputit f, inputit l, outputit x) - { - for(; f != l; ++x, ++f) - *x = *f; - return x; - } - - iterator copy_backward(const_iterator f, const_iterator l, iterator x); - - template - outputit ucopy(inputit f, inputit l, outputit p) - { - for(; f != l; ++p, ++f) - construct(get_base(p), *f); - return p; - } - - void fill(iterator f, const_iterator l, byte x); - void ufill(iterator f, size_type n, byte x); - - size_type distance(const_iterator f, const_iterator l) const; - - template - void _distance(inputit f, inputit l, size_type& n) const - { - for(; f != l; ++f) - ++n; - } - - bool equal(const_iterator f, const_iterator l, const_iterator x) const; - bool lexicographical_compare(const_iterator f1, const_iterator l1, const_iterator f2, const_iterator l2) const; - - byte* allocate(size_type n, const void* hint); - void deallocate(pointer p, size_type n); - - void construct(byte* p, const_reference v) { *p = v; } - void destroy(byte* p) { *p = 0; } - - void _destroy(iterator f, iterator l); - - void outofrange() const; - - static size_type aligned_size(size_type size); - - protected: - flags mFlags; - iterator mFirst, mLast, mEnd; - allocator_type* mAllocator; - static allocator_type* dAllocator; - }; - -#ifndef UNDER_CE_30 - std::ostream &operator<<(std::ostream& os, const Blob& blob); -#endif // UNDER_CE_30 - - - // -------------------------------------------------------------------------------- - inline bool operator==(const Blob& x, const Blob&y) - { - return x._eq(y); - } - - inline bool operator!=(const Blob& x, const Blob&y) - { - return !(x._eq(y)); - } - - inline bool operator<(const Blob& x, const Blob&y) - { - return x._lt(y); - } - - inline bool operator>=(const Blob& x, const Blob&y) - { - return !(x._lt(y)); - } - - inline bool operator<=(const Blob& x, const Blob&y) - { - return x._eq(y) || x._lt(y); - } - - inline bool operator>(const Blob& x, const Blob&y) - { - return !(x._eq(y) || x._lt(y)); - } - -} // namespace act - -// -------------------------------------------------------------------------------- -namespace std -{ - // --------------------------------------------------------------------------- - inline void swap(act::Blob& left, act::Blob& right) { left.swap(right); } - -} // namespace std - -#endif // ACT_Blob_h diff --git a/actlibrary/MacOSX-10.5-x86_64/Release/include/actBlockCipherKit.h b/actlibrary/MacOSX-10.5-x86_64/Release/include/actBlockCipherKit.h deleted file mode 100644 index e89cc2a..0000000 --- a/actlibrary/MacOSX-10.5-x86_64/Release/include/actBlockCipherKit.h +++ /dev/null @@ -1,31 +0,0 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actBlockCipherKit.h -// Product: cv act library -// Purpose: declaration of all factory functions -// -// Copyright: (c) 2000 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_BlockCipherKit_h -#define ACT_BlockCipherKit_h - -namespace act -{ - class IBlockCipher; - - IBlockCipher* CreateDES(); - IBlockCipher* CreateTripleDES(); - IBlockCipher* CreateCAST128(); - IBlockCipher* CreateBlowFish(); - IBlockCipher* CreateTwoFish(); - IBlockCipher* CreateMars(); - IBlockCipher* CreateRijndael(); - IBlockCipher* CreateSerpent(); - IBlockCipher* CreateRC2(); - //IBlockCipher* CreateRC6(); -} -#endif - diff --git a/actlibrary/MacOSX-10.5-x86_64/Release/include/actBlockCipherModeKit.h b/actlibrary/MacOSX-10.5-x86_64/Release/include/actBlockCipherModeKit.h deleted file mode 100644 index ee2bd0a..0000000 --- a/actlibrary/MacOSX-10.5-x86_64/Release/include/actBlockCipherModeKit.h +++ /dev/null @@ -1,27 +0,0 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actBlockCipherModeKit.h -// Product: cv act library -// Purpose: declaration of all factory functions -// -// Copyright: (c) 2000 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - - -#ifndef ACT_BlockCipherModeKit_h -#define ACT_BlockCipherModeKit_h - -namespace act -{ - class IBlockCipherMode; - - IBlockCipherMode* CreateECBMode(); - IBlockCipherMode* CreateCBCMode(); - IBlockCipherMode* CreateCFBMode(); - IBlockCipherMode* CreateOFBMode(); - IBlockCipherMode* CreateCTRMode(); -} -#endif - diff --git a/actlibrary/MacOSX-10.5-x86_64/Release/include/actBlockCipherReg.h b/actlibrary/MacOSX-10.5-x86_64/Release/include/actBlockCipherReg.h deleted file mode 100644 index 7f96a90..0000000 --- a/actlibrary/MacOSX-10.5-x86_64/Release/include/actBlockCipherReg.h +++ /dev/null @@ -1,39 +0,0 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actBlockCipherReg.h -// Product: cv act library -// Purpose: registry for factory functions in actBlockCipherKit.h -// -// Copyright: (c) 2000 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_BlockCipherReg_h -#define ACT_BlockCipherReg_h - -namespace act -{ - class IBlockCipher; - - typedef IBlockCipher* (*CreateBlockCipherPtr)(); - - struct BlockCipherMapEntry { - const char* Name; - CreateBlockCipherPtr CreatePtr; - }; - - class BlockCipherReg - { - public: - static IBlockCipher* CreateBlockCipher(const char* name); - static CreateBlockCipherPtr GetCreatePointer(const char* name); - static const char* GetName(void* createptr); - static const char* GetNextName(const char* name); - static void Insert(const char* name,CreateBlockCipherPtr createptr); - static void Insert(const BlockCipherMapEntry* map); - }; -} - -#endif - diff --git a/actlibrary/MacOSX-10.5-x86_64/Release/include/actCRL.h b/actlibrary/MacOSX-10.5-x86_64/Release/include/actCRL.h deleted file mode 100644 index 9922439..0000000 --- a/actlibrary/MacOSX-10.5-x86_64/Release/include/actCRL.h +++ /dev/null @@ -1,68 +0,0 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actCRL.h -// Product: cv act library -// Purpose: -// -// Copyright: (c) 2000 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_CRL_h -#define ACT_CRL_h -#include "actBasics.h" - -namespace act -{ - class IKey; - class Blob; - class ICertificate; - class ICRL; - class CRL - { - public: - CRL(const char* type); - CRL(const char* type, const Blob& crlblob); - CRL(const CRL& crl); - - void SetParam(paramid_t id,const Blob& blob); - void SetParam(paramid_t id,int val); - void SetParam(paramid_t id,const char* cstr); - void GetParam(paramid_t id,Blob& blob) const; - int GetParam(paramid_t) const; - - void Import(const Blob& crl); - void Export(Blob& crl) const; - - void Revoke(const ICertificate* cert); - bool IsRevoked(const ICertificate* Cert) const; - void RemoveRevokation(const ICertificate* cert); - - void Revoke(const Blob& blob); - bool IsRevoked(const Blob& blob) const; - void RemoveRevokation(const Blob& blob); - - void Sign(const IKey* privkey); - int Verify(const IKey* pubkey) const; - - const ICRL* GetPointer() const; - ICRL* GetPointer(); - - operator const ICRL* () const; - operator ICRL* (); - - - ICRL* ReleasePointer(); - - CRL& operator= (const CRL& crl); - - ~CRL(); - private: - ICRL* mCRL; - }; - -}; // namespace act - -#endif - diff --git a/actlibrary/MacOSX-10.5-x86_64/Release/include/actCertificate.h b/actlibrary/MacOSX-10.5-x86_64/Release/include/actCertificate.h deleted file mode 100644 index f8d063b..0000000 --- a/actlibrary/MacOSX-10.5-x86_64/Release/include/actCertificate.h +++ /dev/null @@ -1,67 +0,0 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actCertificate.h -// Product: cv act library -// Purpose: The concrete class Certificate enables direct access to a certificate, -// e.g. its public key and the corresponding validity. -// -// Copyright: (c) 2000 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_Certificate_h -#define ACT_Certificate_h - -#include "actBasics.h" - -namespace act -{ - class IKey; - class Blob; - class ICertificate; - - class Certificate - { - public: - Certificate(); - Certificate(const char* type); - Certificate(const char* type, const Blob& certblob); - Certificate(const Certificate& cert); - - void SetParam(paramid_t id, const Blob& blob); - void SetParam(paramid_t id, int val); - void SetParam(paramid_t id, const char* cstr); - void GetParam(paramid_t id, Blob& blob) const; - int GetParam(paramid_t id) const; - - void Import(const Blob& certblob); - void Export(Blob& certblob) const; - - void SetPublicKey(const IKey* pubkey); - IKey* CreatePublicKey(const char* = 0) const; - - void Sign(const IKey* privkey); - int Verify(const IKey* pubkey) const; - - const ICertificate* GetPointer() const; - ICertificate* GetPointer(); - - operator const ICertificate*() const; - operator ICertificate*(); - - ICertificate* ReleasePointer(); - - Certificate& operator=(const Certificate& cert); - Certificate& Reset(ICertificate* cert); - Certificate& Required(const char* where = 0); - - ~Certificate(); - - private: - ICertificate* mCert; - }; - -}; // namespace act - -#endif // ACT_Certificate_h diff --git a/actlibrary/MacOSX-10.5-x86_64/Release/include/actCertificateKit.h b/actlibrary/MacOSX-10.5-x86_64/Release/include/actCertificateKit.h deleted file mode 100644 index 9387a39..0000000 --- a/actlibrary/MacOSX-10.5-x86_64/Release/include/actCertificateKit.h +++ /dev/null @@ -1,28 +0,0 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actCertificateKit.h -// Product: cv act library -// Purpose: declaration of all factory functions -// -// Copyright: (c) 2000 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_CERTIFICATEKIT_H -#define ACT_CERTIFICATEKIT_H - -namespace act -{ - class ICertificate; - class ICRL; - class ICVCertRequest; - - ICertificate* CreateX509Certificate(); - ICRL* CreateX509CRL(); - - ICertificate* CreateCVCertificate(); - ICVCertRequest* CreateCVCertRequest(); -} -#endif - diff --git a/actlibrary/MacOSX-10.5-x86_64/Release/include/actCertificateReg.h b/actlibrary/MacOSX-10.5-x86_64/Release/include/actCertificateReg.h deleted file mode 100644 index afd7a75..0000000 --- a/actlibrary/MacOSX-10.5-x86_64/Release/include/actCertificateReg.h +++ /dev/null @@ -1,56 +0,0 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actCertificateReg.h -// Product: cv act library -// Purpose: -// -// Copyright: (c) 2000 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_CERTIFICATEREG_H -#define ACT_CERTIFICATEREG_H - -namespace act -{ - class ICertificate; - class ICRL; - - typedef ICertificate* (*CreateCertificatePtr)(); - typedef ICRL* (*CreateCRLPtr)(); - - struct CertificateMapEntry { - const char* Name; - CreateCertificatePtr CreatePtr; - }; - - struct CRLMapEntry { - const char* Name; - CreateCRLPtr CreatePtr; - }; - - class CertificateReg - { - public: - static ICertificate* CreateCertificate(const char* name); - static CreateCertificatePtr GetCreatePointer(const char* name); - static const char* GetName(void* createptr); - static const char* GetNextName(const char* name); - static void Insert(const char* name, CreateCertificatePtr createptr); - static void Insert(const CertificateMapEntry* certmap); - }; - - class CRLReg - { - public: - static ICRL* CreateCRL(const char* name); - static CreateCRLPtr GetCreatePointer(const char* name); - static const char* GetName(void* createptr); - static const char* GetNextName(const char* name); - static void Insert(const char* name, CreateCRLPtr createptr); - static void Insert(const CRLMapEntry* certmap); - }; -} -#endif - diff --git a/actlibrary/MacOSX-10.5-x86_64/Release/include/actDate.h b/actlibrary/MacOSX-10.5-x86_64/Release/include/actDate.h deleted file mode 100644 index 5d08c74..0000000 --- a/actlibrary/MacOSX-10.5-x86_64/Release/include/actDate.h +++ /dev/null @@ -1,109 +0,0 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actDate.h -// Product: cv act library -// Purpose: The Date function used in act Library -// -// Copyright: (c) 2000 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_Date_h -#define ACT_Date_h - -#include "actBasics.h" - -#if defined(ACT_POSIX) -# include -#endif - -namespace act -{ - class Blob; - - class Date - { - public: - Date(); //today - Date(int day, int month ,int year); - Date(int day, int month, int year, int hour, int minute, int sec); - Date(const Blob& der); - - Date(const unsigned char* ch, const unsigned int size); - - Date& SetToday(); - - int GetDay() const { return m_day; } - int GetMonth() const { return m_month; } - int GetYear() const { return m_year; } - int GetHour() const { return m_hour; } - int GetMinute() const { return m_min; } - int GetSecond() const { return m_sec; } - - void IgnoreTime(bool b); // ignore time(hour, min,sec) in the operators - const Date& operator=(const Date&); - bool operator>(const Date&) const; - bool operator>=(const Date&) const; - bool operator<(const Date&) const; - bool operator<=(const Date&) const; - bool operator==(const Date&) const; - bool operator!=(const Date&) const; - - const Date& AddMonths(int m); - const Date& SubMonths(int m); - const Date& AddYears(int y); - const Date& SubYears(int y); - const Date& AddDays(int d); - const Date& SubDays(int d); - const Date& AddHours(int h); - const Date& SubHours(int h); - const Date& AddMinutes(int m); - const Date& SubMinutes(int m); - const Date& AddSecond(int m); - const Date& SubSecond(int m); - - int DayOfWeek() const; // 0:Sunday, 1=Monday ... 6=Saturday - int IsLeap(int y) const; // 1:leapyear, 0:else - int DaysPerMonth(int m, int y) const; - long GetDifference(const Date& d2) const; - - long GetJulian() const; - long GetJulian(int d, int m, int y) const; - void ConvertFromJulian(long jd, int& d, int& m, int& y); - - Blob Encode() const; - size_t Encode(Blob& encoded) const; - - Blob EncodeToGeneralizedTime() const; - Blob GetGeneralizedTimeString() const; - Blob GetLocalTimeString() const; // fixed format: "DD/MM/YYYY HH:MM:SS" - - operator Blob() const; - - int GetDayFromWeekDay (int weekday, int year, int month, int which); - -#if defined(ACT_POSIX) - static void copyDatetm(act::Date a, struct tm& b); - static void copytmDate(struct tm a, act::Date& b); -#endif - - private: - Date& SetYear(int year) { m_year = year; return *this; } - Date& SetMonth(int month) { m_month = month; return *this; } - Date& SetDay(int day) { m_day = day; return *this; } - Date& SetHour(int hour) { m_hour = hour; return *this; } - Date& SetMinute(int minute) { m_min = minute; return *this; } - Date& SetSecond(int sec) { m_sec = sec; return *this; } - bool IsValid() const; - void AdjustDays(); - - private: - int m_day, m_month, m_year; - int m_hour, m_min, m_sec; - bool m_ignore_time; - }; - -} // namespace act - -#endif // ACT_Date_h diff --git a/actlibrary/MacOSX-10.5-x86_64/Release/include/actDebug.h b/actlibrary/MacOSX-10.5-x86_64/Release/include/actDebug.h deleted file mode 100644 index 623c00a..0000000 --- a/actlibrary/MacOSX-10.5-x86_64/Release/include/actDebug.h +++ /dev/null @@ -1,295 +0,0 @@ -////////////////////////////////////////////////////////////////////////// -// Name: actDebug.h -// Product: cv act library -// Purpose: Integration of globally available debug macros and functions -// -// Copyright: (c) 2005 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -// -// Autor: Markus Tesche (MTE) -// Date: 12/15/2005 -////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_Debug_h -#define ACT_Debug_h - -#include "actEnv.h" -#include "actBasics.h" -#include "actException.h" - -// -// ACT_NOOP use for semicolon terminated non operating macros. -#ifdef _MSC_VER -# if _MSC_VER >= 1210 -# define ACT_NOOP __noop -# else -# define ACT_NOOP ((void) 0) -# endif -// MSVC specific -# if !defined(DEBUG_NEW) -# if defined(_DEBUG) && !defined(_WIN32_WCE) -# include -# define DEBUG_NEW new(_NORMAL_BLOCK, __FILE__, __LINE__) -# else -# define DEBUG_NEW new -# endif -# endif -#else -# define ACT_NOOP ((void) 0) -# define DEBUG_NEW new -#endif - -// -// Declare all debug macros for release builds. -#ifdef _DEBUG -# ifdef UNDER_CE -# define ACT_ASSERT ACT_NOOP -# define ACT_ASSERT_ALWAYS(m, l, f) ACT_NOOP -# endif -# define ACT_DEBUG 1 -# define ACT_DEBUG_PARAM(p) p -# define ACT_DEBUG_SOURCE() act::FileAndLine(__FILE__, __LINE__) -# define ACT_NOT_IMPLEMENTED(m, w) throw act::NotImplementedException(m, w) << ACT_DEBUG_SOURCE() -#else -# define ACT_DEBUG 0 -# define ACT_DEBUG_SOURCE() act::FileAndLine() -# define ACT_NOT_IMPLEMENTED(m, w) throw act::NotImplementedException(m, w) -# if defined(_MSC_VER) && _MSC_VER < 1210 -# define ACT_DEBUG_PARAM(p) p -# define ACT_TRACE ACT_NOOP -# define ACT_TRACELOG ACT_NOOP -# define ACT_ASSERT ACT_NOOP -# else -# define ACT_DEBUG_PARAM(p) -# define ACT_TRACE(...) ACT_NOOP -# define ACT_TRACELOG(...) ACT_NOOP -# define ACT_ASSERT(e) ACT_NOOP -# endif -# define ACT_ASSERT_ALWAYS(m, l, f) ACT_NOOP -# define ACT_ASSERT_ON_THROW(m) ACT_NOOP -#endif // _DEBUG - -// -// ACT_ASSERT -#ifndef ACT_ASSERT -# if defined(_MSC_VER) -# include -# define ACT_ASSERT _ASSERTE -# else -# include -# define ACT_ASSERT assert -# endif -#endif // ACT_ASSERT - -// -// ACT_ASSERT_ALWAYS -#ifndef ACT_ASSERT_ALWAYS -# if defined(_MSC_VER) -# include -# define ACT_ASSERT_ALWAYS(m, f, l) _RPT_BASE((_CRT_ASSERT, f, l, 0, m)) -# else -# include -# define ACT_ASSERT_ALWAYS(m, f, l) assert(f == 0) -# endif -#endif // ACT_ASSERT_ALWAYS - -// -// ACT_ASSERT_ON_THROW -#ifndef ACT_ASSERT_ON_THROW -namespace act -{ - class CheckForNoThrow : public FileAndLine - { - public: - CheckForNoThrow(const char* msg, const char* file = 0, int line = 0) - : FileAndLine(file, line) - , m_msg(msg) - { } - - ~CheckForNoThrow() - { - const bool uc = ::std::uncaught_exception(); - if(uc == true) ACT_ASSERT_ALWAYS(m_msg, file(), line()); - } - - private: - const char* m_msg; - }; - -} // namespace act - -#define ACT_ASSERT_ON_THROW(m) act::CheckForNoThrow __dbg_check_for_nothrow(m, __FILE__, __LINE__) -#endif // ACT_ASSERT_ON_THROW - -// -// ACT_ENABLE_TRACE -#ifdef ACT_ENABLE_TRACE -# ifdef ACT_TRACE -# undef ACT_TRACE -# endif -# ifdef ACT_TRACELOG -# undef ACT_TRACELOG -# endif -#endif - -// -// ACT_TRACE -#ifndef ACT_TRACE - -#ifndef ACT_TRACE_BUFFER -#define ACT_TRACE_BUFFER 1024 -#endif - -#include -#include -#include - -#if defined(ACT_WIN32) || defined(ACT_WIN32_WCE) -#include - -namespace act -{ - struct Trace - { - void __cdecl operator()(const char* pFormat, va_list ptr, const char* pFileName = 0, int nLine = 0) const - { - char szBuf[ACT_TRACE_BUFFER] = {'\0'}; - int nLen = 0; - - if(pFileName != 0) { - int nTemp = _snprintf(szBuf + nLen, ACT_TRACE_BUFFER - nLen, "%s(%d) : ", pFileName, nLine); - if(nTemp < 0) - nLen = ACT_TRACE_BUFFER; - else nLen += nTemp; - } - - _vsnprintf(szBuf + nLen, ACT_TRACE_BUFFER - nLen, pFormat, ptr); - szBuf[ACT_TRACE_BUFFER - 1] = 0; -#ifndef UNDER_CE - ::OutputDebugStringA(szBuf); -#else - { - wchar_t wtmp[ACT_TRACE_BUFFER]; - mbstowcs(wtmp, szBuf, ACT_TRACE_BUFFER); - ::OutputDebugStringW(wtmp); - } -#endif - } - }; - -} // namespace act - -#elif defined(ACT_POSIX) -#include - -namespace act -{ - struct Trace - { - void operator()(const char* pFormat, va_list ptr, const char* pFileName = 0, int nLine = 0) const - { - char szBuf[ACT_TRACE_BUFFER] = {'\0'}; - int nLen = 0; - - if(pFileName != 0) { - int nTemp = snprintf(szBuf + nLen, ACT_TRACE_BUFFER - nLen, "%s(%d) : ", pFileName, nLine); - if(nTemp < 0) - nLen = ACT_TRACE_BUFFER; - else nLen += nTemp; - } - - vsnprintf(szBuf + nLen, ACT_TRACE_BUFFER - nLen, pFormat, ptr); - szBuf[ACT_TRACE_BUFFER - 1] = 0; - - syslog(LOG_DEBUG, "%s", szBuf); - } - }; - -} // namespace act - -#else -# error act::Trace not implemented for this platform - -#endif - -// -// act::TraceFileAndLine -namespace act -{ - class TraceFileAndLine : public FileAndLine - { - public: - TraceFileAndLine() { } - TraceFileAndLine(const FileAndLine& fl) : FileAndLine(fl) { } - TraceFileAndLine(const char * file, int line) : FileAndLine(file, line) { } - - inline void setFileAndLine(const FileAndLine* fl) - { - if(fl != 0) *static_cast(this) = *fl; - } - - inline TraceFileAndLine& operator<<(const FileAndLine& fl) - { - *static_cast(this) = fl; - return *this; - } - - // - // default va_list based trace. - void operator()(const char* pFormat, ...) - { - va_list ptr; va_start(ptr, pFormat); - Trace()(pFormat, ptr, file(), line()); - va_end(ptr); - } - - // - // Exception trace. - void operator()(const Exception& e) - { - setFileAndLine(dynamic_cast(&e)); - switch(e.GetId()) - { - case eiNoSuchAlgorithmException: - (*this)("%s['0x%08x', '%&s', '%s', '%s']\n", - typeid(e).name(), - static_cast(e).algorithm(), - e.code(), e.what(), e.where()); - break; - - default: - (*this)("%s['0x%08x', '%s', '%s']\n", - typeid(e).name(), e.code(), e.what(), e.where()); - } - } - - void operator()(const Exception& e, const char* pName) - { - setFileAndLine(dynamic_cast(&e)); - switch(e.GetId()) - { - case eiNoSuchAlgorithmException: - (*this)("%s : %s['0x%08x', '%s', '%s', '%s']\n", pName, - typeid(e).name(), - e.code(), - static_cast(e).algorithm(), - e.what(), e.where()); - break; - - default: - (*this)("%s : %s['0x%08x', '%s', '%s']\n", pName, - typeid(e).name(), - e.code(), e.what(), e.where()); - } - } - }; - -} // namespace act - -#define ACT_TRACE act::TraceFileAndLine(__FILE__, __LINE__) -#define ACT_TRACELOG act::TraceFileAndLine() - -#endif // ACT_TRACE -#endif // ACT_Debug_h diff --git a/actlibrary/MacOSX-10.5-x86_64/Release/include/actDerivatorKit.h b/actlibrary/MacOSX-10.5-x86_64/Release/include/actDerivatorKit.h deleted file mode 100644 index 8339d09..0000000 --- a/actlibrary/MacOSX-10.5-x86_64/Release/include/actDerivatorKit.h +++ /dev/null @@ -1,27 +0,0 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actDerivatorKit.h -// Product: cv act library -// Purpose: declaration of all factory functions -// -// Copyright: (c) 2006 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_DerivatorKit_h -#define ACT_DerivatorKit_h - -namespace act -{ - class IDerivator; - class Blob; - - IDerivator* CreateKDF1(); - IDerivator* CreateX963KDF(); - IDerivator* CreatePBKDF1(); - IDerivator* CreatePBKDF2(); - IDerivator* CreateEACKDF(); -} -#endif - diff --git a/actlibrary/MacOSX-10.5-x86_64/Release/include/actDerivatorReg.h b/actlibrary/MacOSX-10.5-x86_64/Release/include/actDerivatorReg.h deleted file mode 100644 index 32fe672..0000000 --- a/actlibrary/MacOSX-10.5-x86_64/Release/include/actDerivatorReg.h +++ /dev/null @@ -1,41 +0,0 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actDerivatorReg.h -// Product: cv act library -// Purpose: registry for the factory functions in actDerivatorKit.h -// -// Copyright: (c) 2000 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_DerivatorReg_h -#define ACT_DerivatorReg_h - -namespace act -{ - class IDerivator; - class Blob; - - typedef IDerivator* (*CreateDerivatorPtr)(); - - struct DerivatorMapEntry - { - const char* Name; - CreateDerivatorPtr CreatePtr; - }; - - class DerivatorReg - { - public: - static IDerivator* CreateDerivator(const char* name); - static CreateDerivatorPtr GetCreatePointer(const char* name); - static const char* GetName(void* createptr); - static const char* GetNextName(const char* name); - static void Insert(const char* name, CreateDerivatorPtr createptr); - static void Insert(const DerivatorMapEntry* derivatormap); - }; - -} // namespace act - -#endif // ACT_DerivatorReg_h diff --git a/actlibrary/MacOSX-10.5-x86_64/Release/include/actEMSAKit.h b/actlibrary/MacOSX-10.5-x86_64/Release/include/actEMSAKit.h deleted file mode 100644 index 460f614..0000000 --- a/actlibrary/MacOSX-10.5-x86_64/Release/include/actEMSAKit.h +++ /dev/null @@ -1,28 +0,0 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actEMSAKit.h -// Product: cv act library -// Purpose: declaration of all factory functions -// -// Copyright: (c) 2000 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_EMSAKit_h -#define ACT_EMSAKit_h - -namespace act -{ - class IEMSAAlg; - - IEMSAAlg* CreateEMSA1(); - IEMSAAlg* CreatePKCS1V1_5EMSA(); - IEMSAAlg* CreateTLS_EMSA(); - IEMSAAlg* CreatePKCS1_PSS_EMSA(); - - IEMSAAlg* CreateDummyEMSA(); - -} -#endif - diff --git a/actlibrary/MacOSX-10.5-x86_64/Release/include/actEMSAReg.h b/actlibrary/MacOSX-10.5-x86_64/Release/include/actEMSAReg.h deleted file mode 100644 index c5e92f0..0000000 --- a/actlibrary/MacOSX-10.5-x86_64/Release/include/actEMSAReg.h +++ /dev/null @@ -1,40 +0,0 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actEMSAReg.h -// Product: cv act library -// Purpose: registry for factory functions in actEMSAKit.h -// -// Copyright: (c) 2000 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_EMSAReg_h -#define ACT_EMSAReg_h - -namespace act -{ - class IEMSAAlg; - - typedef IEMSAAlg* (*CreateEMSAPtr)(); - - struct EMSAMapEntry - { - const char* Name; - CreateEMSAPtr CreatePtr; - }; - - class EMSAReg - { - public: - static IEMSAAlg* CreateEMSAAlg(const char* name); - static CreateEMSAPtr GetCreatePointer(const char* name); - static const char* GetName(void* createptr); - static const char* GetNextName(const char* name); - static void Insert(const char* name, CreateEMSAPtr createptr); - static void Insert(const EMSAMapEntry* map); - }; - -} // namespace act - -#endif // ACT_EMSAReg_h diff --git a/actlibrary/MacOSX-10.5-x86_64/Release/include/actEnv.h b/actlibrary/MacOSX-10.5-x86_64/Release/include/actEnv.h deleted file mode 100644 index 6a319b8..0000000 --- a/actlibrary/MacOSX-10.5-x86_64/Release/include/actEnv.h +++ /dev/null @@ -1,126 +0,0 @@ -////////////////////////////////////////////////////////////////////////// -// Name: actEnv.h -// Product: cv act library -// Purpose: Operating System environment -// -// Copyright: (c) 2009 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -// -// Autor: Markus Tesche -// Date: 04/23/2009 -////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_Env_h -#define ACT_Env_h - -// 64Bit detection ... -#if defined(_WIN64) || \ - defined(__LP64__) || \ - defined(__alpha__) || \ - defined(__ia64__) || \ - defined(__ppc64__) || \ - defined(__s390x__) || \ - defined(__x86_64__) -# define ACT_64 -#endif - -// cygwin -#if defined(__CYGWIN__) -# define ACT_CYGWIN -#endif - -// mingw -#if defined(__MINGW32__) -# define ACT_MINGW -#endif - -// Platform detection ... -#if defined(ACT_WIN32) || \ - defined(ACT_POSIX) || \ - defined(ACT_SOLARIS) || \ - defined(ACT_MACOSX) || \ - defined(ACT_WIN32_WCE) -// do nothing - -#elif defined(_WIN32_WCE) && _WIN32_WCE >= 0x500 -# define ACT_WIN32 -# define ACT_WIN32_WCE - -#elif defined(WIN32) && !defined(__CYGWIN__) -# define ACT_WIN32 - -#elif defined(_MSC_VER) || \ - defined(__BORLANDC__) || \ - defined(__BCPLUSPLUS__) || \ - defined(__MINGW32__) -# define ACT_WIN32 - -#elif defined(__linux__) || \ - defined(__CYGWIN__) || \ - defined(__FreeBSD__) || defined(__NetBSD__) || defined(__OpenBSD__) || \ - defined(__hpux) || \ - defined(__sgi) -# define ACT_POSIX - -#elif defined(_POSIX_SOURCE) || \ - defined(_XOPEN_SOURCE) -# define ACT_POSIX - -#elif defined(__sun) -# define ACT_POSIX -# define ACT_SOLARIS - -#elif defined(__APPLE__) && defined(__MACH__) -# define ACT_POSIX -# define ACT_MACOSX - -#else -# error unable to deteced system environment - -#endif - -// -// ACT_DEPRECATED definition -#if defined(_MSC_VER) -# define ACT_MSC -# if _MSC_FULL_VER >= 140050320 -# define ACT_DEPRECATED(msg) __declspec(deprecated("is deprecated: " msg)) -# else -# define ACT_DEPRECATED(msg) __declspec(deprecated) -# endif -# define ACT_STDEXT_NS std -# define ACT_STDEXT_INC(file) - -#elif defined(__GNUC__) -# define ACT_GCC -# if (__GNUC__ > 3) || (__GNUC__ == 3 && __GNUC_MINOR__ >= 1) -# define ACT_DEPRECATED(msg) __attribute__((__deprecated__)) -# endif -# define ACT_STDEXT_NS __gnu_cxx -# define ACT_STDEXT_INC(file) - -#endif - -#if !defined(ACT_DEPRECATED) -# define ACT_DEPRECATED(msg) -#endif - -// -// DLL/Shared Object symbol export/import attribte -#if defined(ACT_MSC) -# define ACT_DYNLIB_EXPORT _declspec(dllexport) -# define ACT_DYNLIB_IMPORT _declspec(dllimport) - -#elif defined(ACT_GCC) && !defined(ACT_MINGW) -# define ACT_DYNLIB_EXPORT __attribute__((visibility("default"))) -# define ACT_DYNLIB_IMPORT - -#else -# define ACT_DYNLIB_EXPORT -# define ACT_DYNLIB_IMPORT - -#endif - -#endif // ACT_Env_h diff --git a/actlibrary/MacOSX-10.5-x86_64/Release/include/actException.h b/actlibrary/MacOSX-10.5-x86_64/Release/include/actException.h deleted file mode 100644 index caa9636..0000000 --- a/actlibrary/MacOSX-10.5-x86_64/Release/include/actException.h +++ /dev/null @@ -1,1112 +0,0 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actException.h -// Product: cv act library -// Purpose: exception hierarchy -// -// Copyright: (c) 2000 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_Exception_h -#define ACT_Exception_h - -#include -#include - -#include "actMove.h" -#include "actBlob.h" - -namespace act -{ - // --------------------------------------------------------------------------- - enum ExceptionId - { - eiException = 0, - eiBadException = eiException + 1, - eiNullPointerException, - eiOutOfRangeException, - - eiBadCastException = eiException + 10, - eiBadNumericCast, - eiNegativeOverflow, - eiPositiveOverflow, - - eiRuntimeException = eiException + 20, - eiBadAllocException, - eiNotSupportedException, - eiNotImplementedException, - eiInvalidParameterException, - eiSynchronizationException, - - eiLogicalException = eiException + 40, - eiASN1Exception, - eiNoSuchDLLException, - eiPasswordException, - eiArithmeticException, - eiMessageDigestException, - eiPaddingException, - eiSignatureException, - - eiAlgorithmException = eiException + 80, - eiInvalidAlgorithmParameterException, - eiNoSuchAlgorithmException, - - eiCertificateException = eiException + 80, - eiInvalidCertificateException, - eiCertificateEncodingException, - eiCertificateExpiredException, - eiCertificateNotYetValidException, - eiCertificateParsingException, - - eiKeyException = eiException + 100, - eiInvalidKeyException, - eiKeyManagementException, - - eiEACException = eiException + 120, - eiEACDataException, - eiEACMRZException, - eiEACCVCertException, - - eiSmartcardException = eiException + 140, - eiCardOutOfMemoryException, - eiInvalidPinException, - eiPinLockedException, - eiPinExpiredException, - eiPinLenRangeException, - eiInvalidCRKeyException, - eiInvalidCardException, - eiInvalidAuthException, - eiInvalidAuthObjectException, - eiAuthProtocolException, - eiAuthConstrainedException, - eiSecureMessagingException, - eiSMWrapException, - eiSMUnwrapException, - - eiSubsystemException = eiException + 180, - eiNoSuchSubsystemException, - }; - -#ifndef UNDER_CE_30 - - // --------------------------------------------------------------------------- - class FileAndLine - { - public: - FileAndLine(const char* file = 0, int line = 0) - : m_line(line) - , m_file(file) - { } - - FileAndLine(const FileAndLine& other) - : m_line(other.line()) - , m_file(other.file()) - { } - - int line() const { return m_line; } - const char* file() const { return m_file; } - - // assignment operators. - FileAndLine& operator=(const FileAndLine& other) - { - m_line = other.line(); - m_file = other.file(); - return *this; - } - - private: - int m_line; - const char* m_file; - }; - - // - // base class for all exceptions thrown by cv act library - // --------------------------------------------------------------------------- - class Exception - { - public: - typedef Exception Type; - - explicit Exception(const char* msg = 0, const char* where = 0, ulong code = 0) - : m_what(msg) - , m_where(where) - , m_code(code) - { } - - explicit Exception(const std::exception& other) - : m_what(other.what()) - , m_where(0) - , m_code(0) - { } - - template - explicit Exception(const T& other) - : m_what(other.what()) - , m_where(other.where()) - , m_code(0) - { } - - virtual ~Exception() - { } - - template - _ExceptionT* TypedClone() const - { - return new(std::nothrow) _ExceptionT(m_what, m_where, m_code); - } - - template - _ExceptionT* TypedClone(const ParamT& param) const - { - return new(std::nothrow) _ExceptionT(m_what, m_where, param); - } - - template - void TypedThrow() const { throw _ExceptionT(m_what, m_where, m_code); } - - template - void TypedThrow(const ParamT& param) const { throw _ExceptionT(m_what, m_where, param); } - - virtual Exception* Clone() const { return new(std::nothrow) Exception(*this); } - virtual int GetId() const { return eiException; } - virtual void Throw() const { throw Exception(*this); } - - const char* what() const { return m_what != 0 ? m_what : ""; } - const char* where() const { return m_where != 0 ? m_where : ""; } - ulong code() const { return m_code; } - - template - friend ExceptionT& modify(ExceptionT& e, const char* what, const char* where) - { - if(what != 0) e.m_what = what; - if(where != 0) e.m_where = where; - return e; - } - - protected: - const char* m_what; - const char* m_where; - ulong m_code; - }; - - // - // ExceptionType<> - // --------------------------------------------------------------------------- - template - < - const int _exceptionId, - class ExceptionT, - class BaseT, - typename OtherT = void - > - class ExceptionType : public BaseT, public OtherT - { - protected: - typedef BaseT BaseType; - typedef OtherT OtherType; - enum { exceptionId = _exceptionId }; - - public: - ExceptionType(const char* msg, const char* where, ulong code) - : BaseType(msg, where, code) - , OtherT() - { } - - ExceptionT& operator<<(const OtherType& other) - { - *static_cast(this) = other; - return *static_cast(this); - } - - template - _ExceptionT* TypedClone() const - { - _ExceptionT* e = new(std::nothrow) _ExceptionT(BaseT::m_what, BaseT::m_where, BaseT::m_code); - if(e != 0) *e << *this; - return e; - } - - virtual void Throw() const { throw ExceptionT(BaseT::m_what, BaseT::m_where, BaseT::m_code); } - virtual int GetId() const { return exceptionId; } - }; - - template - < - const int _exceptionId, - class ExceptionT, - class BaseT - > - class ExceptionType<_exceptionId, ExceptionT, BaseT, void> : public BaseT - { - protected: - typedef BaseT BaseType; - enum { exceptionId = _exceptionId }; - - public: - ExceptionType(const char* msg, const char* where, ulong code) - : BaseType(msg, where, code) - { } - - virtual void Throw() const { throw ExceptionT(BaseT::m_what, BaseT::m_where, BaseT::m_code); } - virtual int GetId() const { return exceptionId; } - }; - - // --------------------------------------------------------------------------- - class BadException : - public ExceptionType - { - public: - typedef ExceptionType BaseType; - typedef BadException Type; - using BaseType::exceptionId; - - BadException(const char* msg = 0, const char* where = 0, ulong code = 0) - : BaseType(msg, where, code) - { } - }; - - class NullPointerException : - public ExceptionType - { - public: - typedef ExceptionType BaseType; - typedef NullPointerException Type; - using BaseType::exceptionId; - - NullPointerException(const char* msg = 0, const char* where = 0, ulong code = 0) - : BaseType(msg, where, code) - { } - }; - - class OutOfRangeException : - public ExceptionType - { - public: - typedef ExceptionType BaseType; - typedef OutOfRangeException Type; - using BaseType::exceptionId; - - OutOfRangeException(const char* msg = 0, const char* where = 0, ulong code = 0) - : BaseType(msg, where, code) - { } - }; - - // --------------------------------------------------------------------------- - class BadCastException : - public ExceptionType - { - public: - typedef ExceptionType BaseType; - typedef BadCastException Type; - using BaseType::exceptionId; - - BadCastException(const char* msg = 0, const char* where = 0, ulong code = 0) - : BaseType(msg, where, code) - { } - }; - - class BadNumericCast : - public ExceptionType - { - public: - typedef ExceptionType BaseType; - typedef BadNumericCast Type; - using BaseType::exceptionId; - - BadNumericCast(const char* msg = 0, const char* where = 0, ulong code = 0) - : BaseType(msg, where, code) - { } - - template - void operator()(overflow_type overflow) - { - switch(eiBadNumericCast + overflow) - { - case eiNegativeOverflow: TypedThrow >(); - case eiPositiveOverflow: TypedThrow >(); - default: /* do nothing */; - } - } - }; - - // --------------------------------------------------------------------------- - class RuntimeException : - public ExceptionType - { - public: - typedef ExceptionType BaseType; - typedef RuntimeException Type; - using BaseType::exceptionId; - - RuntimeException(const char* msg = 0, const char* where = 0, ulong code = 0) - : BaseType(msg, where, code) - { } - }; - - class BadAllocException : - public ExceptionType - { - public: - typedef ExceptionType BaseType; - typedef BadAllocException Type; - using BaseType::exceptionId; - - BadAllocException(const char* msg = 0, const char* where = 0, ulong code = 0) - : BaseType(msg, where, code) - { } - }; - - class NotSupportedException : - public ExceptionType - { - public: - typedef ExceptionType BaseType; - typedef NotSupportedException Type; - using BaseType::exceptionId; - using BaseType::operator<<; - - explicit NotSupportedException(const char* msg = 0, const char* where = 0, ulong code = 0) - : BaseType(msg, where, code) - { } - - virtual Type* Clone() const { return TypedClone(); } - }; - - class NotImplementedException : - public ExceptionType - { - public: - typedef ExceptionType BaseType; - typedef NotImplementedException Type; - using BaseType::exceptionId; - using BaseType::operator<<; - - NotImplementedException(const char* msg = 0, const char* where = 0, ulong code = 0) - : BaseType(msg, where, code) - { } - - virtual Type* Clone() const { return TypedClone(); } - }; - - class InvalidParameterException : - public ExceptionType - { - public: - typedef ExceptionType BaseType; - typedef InvalidParameterException Type; - using BaseType::exceptionId; - using BaseType::operator<<; - - InvalidParameterException(const char* msg = 0, const char* where = 0, ulong code = 0) - : BaseType(msg, where, code) - { } - - virtual Type* Clone() const { return TypedClone(); } - }; - - class SynchronizationException : - public ExceptionType - { - public: - typedef ExceptionType BaseType; - typedef SynchronizationException Type; - using BaseType::exceptionId; - using BaseType::operator<<; - - SynchronizationException(const char* msg = 0, const char* where = 0, ulong code = 0) - : BaseType(msg, where, code) - { } - - virtual Type* Clone() const { return TypedClone(); } - }; - - // --------------------------------------------------------------------------- - class LogicalException : public Exception - { - public: - typedef Exception BaseType; - typedef LogicalException Type; - - LogicalException(const char* msg = 0, const char* where = 0, ulong code = 0) - : Exception(msg, where, code) - { } - - virtual Type* Clone() const { return TypedClone(); } - virtual void Throw() const { throw Type(m_what, m_where, m_code); } - virtual int GetId() const { return eiLogicalException; } - }; - - class ASN1Exception : public LogicalException - { - public: - typedef LogicalException BaseType; - typedef ASN1Exception Type; - - ASN1Exception(const char* msg = 0, const char* where = 0, ulong code = 0) - : LogicalException(msg, where, code) - { } - - virtual Type* Clone() const { return TypedClone(); } - virtual void Throw() const { throw Type(m_what, m_where, m_code); } - virtual int GetId() const { return eiASN1Exception; } - }; - - class NoSuchDLLException : public LogicalException - { - public: - typedef LogicalException BaseType; - typedef NoSuchDLLException Type; - - NoSuchDLLException(const char* msg = 0, const char* where = 0, ulong code = 0) - : LogicalException(msg, where, code) - { } - - virtual Type* Clone() const { return TypedClone(); } - virtual void Throw() const { throw Type(m_what, m_where, m_code); } - virtual int GetId() const { return eiNoSuchDLLException; } - }; - - class PasswordException : public LogicalException - { - public: - typedef LogicalException BaseType; - typedef PasswordException Type; - - PasswordException(const char* msg = 0, const char* where = 0, ulong code = 0) - : LogicalException(msg, where, code) - { } - - virtual Type* Clone() const { return TypedClone(); } - virtual void Throw() const { throw Type(m_what, m_where, m_code); } - virtual int GetId() const { return eiPasswordException; } - }; - - class ArithmeticException : public LogicalException - { - public: - typedef LogicalException BaseType; - typedef ArithmeticException Type; - - ArithmeticException(const char* msg = 0, const char* where = 0, ulong code = 0) - : LogicalException(msg, where, code) - { } - - virtual Type* Clone() const { return TypedClone(); } - virtual void Throw() const { throw Type(m_what, m_where, m_code); } - virtual int GetId() const { return eiArithmeticException; } - }; - - class MessageDigestException : public LogicalException - { - public: - typedef LogicalException BaseType; - typedef MessageDigestException Type; - - MessageDigestException(const char* msg = 0, const char* where = 0, ulong code = 0) - : LogicalException(msg, where, code) - { } - - virtual Type* Clone() const { return TypedClone(); } - virtual void Throw() const { throw Type(m_what, m_where, m_code); } - virtual int GetId() const { return eiMessageDigestException; } - }; - - class PaddingException : public LogicalException - { - public: - typedef LogicalException BaseType; - typedef PaddingException Type; - - PaddingException(const char* msg = 0, const char* where = 0, ulong code = 0) - : LogicalException(msg, where, code) - { } - - virtual Type* Clone() const { return TypedClone(); } - virtual void Throw() const { throw Type(m_what, m_where, m_code); } - virtual int GetId() const { return eiPaddingException; } - }; - - class SignatureException : public LogicalException - { - public: - typedef LogicalException BaseType; - typedef SignatureException Type; - - SignatureException(const char* msg = 0, const char* where = 0, ulong code = 0) - : LogicalException(msg, where, code) - { } - - virtual Type* Clone() const { return TypedClone(); } - virtual void Throw() const { throw Type(m_what, m_where, m_code); } - virtual int GetId() const { return eiSignatureException; } - }; - - // --------------------------------------------------------------------------- - class AlgorithmException : public LogicalException - { - public: - typedef LogicalException BaseType; - typedef AlgorithmException Type; - - AlgorithmException(const char* msg = 0, const char* where = 0, ulong code = 0) - : LogicalException(msg, where, code) - { } - - virtual Type* Clone() const { return TypedClone(); } - virtual void Throw() const { throw Type(m_what, m_where, m_code); } - virtual int GetId() const { return eiAlgorithmException; } - }; - - class InvalidAlgorithmParameterException : public AlgorithmException - { - public: - typedef AlgorithmException BaseType; - typedef InvalidAlgorithmParameterException Type; - - InvalidAlgorithmParameterException(const char* msg = 0, const char* where = 0, ulong code = 0) - : AlgorithmException(msg, where, code) - { } - - virtual Type* Clone() const { return TypedClone(); } - virtual void Throw() const { throw Type(m_what, m_where, m_code); } - virtual int GetId() const { return eiInvalidAlgorithmParameterException; } - }; - - class NoSuchAlgorithmException : public AlgorithmException - { - public: - typedef AlgorithmException BaseType; - typedef NoSuchAlgorithmException Type; - - NoSuchAlgorithmException(const char* msg = 0, const char* where = 0, const char* algorithm = 0) - : AlgorithmException(msg, where) - , m_algorithm(algorithm) - { - m_algorithm.push_back(0); - } - - // GCC 4.2.1 whats to have it - virtual ~NoSuchAlgorithmException() - { } - - virtual Type* Clone() const { return TypedClone(algorithm()); } - virtual void Throw() const { throw Type(m_what, m_where, algorithm()); } - virtual int GetId() const { return eiNoSuchAlgorithmException; } - - const char* algorithm() const { return reinterpret_cast(&m_algorithm[0]); } - - protected: - mutable Blob m_algorithm; - }; - - // --------------------------------------------------------------------------- - class CertificateException : public LogicalException - { - public: - typedef LogicalException BaseType; - typedef CertificateException Type; - - CertificateException(const char* msg = 0, const char* where = 0, ulong code = 0) - : LogicalException(msg, where, code) - { } - - virtual Type* Clone() const { return TypedClone(); } - virtual void Throw() const { throw Type(m_what, m_where, m_code); } - virtual int GetId() const { return eiCertificateException; } - }; - - class InvalidCertificateException : public CertificateException - { - public: - typedef CertificateException BaseType; - typedef InvalidCertificateException Type; - - InvalidCertificateException(const char* msg = 0, const char* where = 0, ulong code = 0) - : CertificateException(msg, where, code) - { } - - virtual Type* Clone() const { return TypedClone(); } - virtual void Throw() const { throw Type(m_what, m_where, m_code); } - virtual int GetId() const { return eiInvalidCertificateException; } - }; - - class CertificateEncodingException : public CertificateException - { - public: - typedef CertificateException BaseType; - typedef CertificateEncodingException Type; - - CertificateEncodingException(const char* msg = 0, const char* where = 0, ulong code = 0) - : CertificateException(msg, where, code) - { } - - virtual Type* Clone() const { return TypedClone(); } - virtual void Throw() const { throw Type(m_what, m_where, m_code); } - virtual int GetId() const { return eiCertificateEncodingException; } - }; - - class CertificateExpiredException : public CertificateException - { - public: - typedef CertificateException BaseType; - typedef CertificateExpiredException Type; - - CertificateExpiredException(const char* msg = 0, const char* where = 0, ulong code = 0) - : CertificateException(msg, where, code) - { } - - virtual Type* Clone() const { return TypedClone(); } - virtual void Throw() const { throw Type(m_what, m_where, m_code); } - virtual int GetId() const { return eiCertificateExpiredException; } - }; - - class CertificateNotYetValidException : public CertificateException - { - public: - typedef CertificateException BaseType; - typedef CertificateNotYetValidException Type; - - CertificateNotYetValidException(const char* msg = 0, const char* where = 0, ulong code = 0) - : CertificateException(msg, where, code) - { } - - virtual Type* Clone() const { return TypedClone(); } - virtual void Throw() const { throw Type(m_what, m_where, m_code); } - virtual int GetId() const { return eiCertificateNotYetValidException; } - }; - - class CertificateParsingException : public CertificateException - { - public: - typedef CertificateException BaseType; - typedef CertificateParsingException Type; - - CertificateParsingException(const char* msg = 0, const char* where = 0, ulong code = 0) - : CertificateException(msg, where, code) - { } - - virtual Type* Clone() const { return TypedClone(); } - virtual void Throw() const { throw Type(m_what, m_where, m_code); } - virtual int GetId() const { return eiCertificateParsingException; } - }; - - // --------------------------------------------------------------------------- - class KeyException : public LogicalException - { - public: - typedef LogicalException BaseType; - typedef KeyException Type; - - KeyException(const char* msg = 0, const char* where = 0, ulong code = 0) - : LogicalException(msg, where, code) - { } - - virtual Type* Clone() const { return TypedClone(); } - virtual void Throw() const { throw Type(m_what, m_where, m_code); } - virtual int GetId() const { return eiKeyException; } - }; - - class InvalidKeyException : public KeyException - { - public: - typedef KeyException BaseType; - typedef InvalidKeyException Type; - - InvalidKeyException(const char* msg = 0, const char* where = 0, ulong code = 0) - : KeyException(msg, where, code) - { } - - virtual Type* Clone() const { return TypedClone(); } - virtual void Throw() const { throw Type(m_what, m_where, m_code); } - virtual int GetId() const { return eiInvalidKeyException; } - }; - - class KeyManagementException : public KeyException - { - public: - typedef KeyException BaseType; - typedef KeyManagementException Type; - - KeyManagementException(const char* msg = 0, const char* where = 0, ulong code = 0) - : KeyException(msg, where, code) - { } - - virtual Type* Clone() const { return TypedClone(); } - virtual void Throw() const { throw Type(m_what, m_where, m_code); } - virtual int GetId() const { return eiKeyManagementException; } - }; - - // --------------------------------------------------------------------------- - class EACException : public LogicalException - { - public: - typedef LogicalException BaseType; - typedef EACException Type; - - EACException(const char* msg = 0, const char* where = 0, ulong code = 0) - : LogicalException(msg, where, code) - { } - - virtual Type* Clone() const { return TypedClone(); } - virtual void Throw() const { throw Type(m_what, m_where, m_code); } - virtual int GetId() const { return eiEACException; } - }; - - class EACDataException : public EACException - { - public: - typedef EACException BaseType; - typedef EACDataException Type; - - EACDataException(const char* msg = 0, const char* where = 0, ulong code = 0) - : EACException(msg, where, code) - { } - - virtual Type* Clone() const { return TypedClone(); } - virtual void Throw() const { throw Type(m_what, m_where, m_code); } - virtual int GetId() const { return eiEACDataException; } - }; - - class EACMRZException : public EACDataException - { - public: - typedef EACDataException BaseType; - typedef EACMRZException Type; - - EACMRZException(const char* msg = 0, const char* where = 0, ulong code = 0) - : EACDataException(msg, where, code) - { } - - virtual Type* Clone() const { return TypedClone(); } - virtual void Throw() const { throw Type(m_what, m_where, m_code); } - virtual int GetId() const { return eiEACMRZException; } - }; - - class EACCVCertException : public EACDataException - { - public: - typedef EACDataException BaseType; - typedef EACCVCertException Type; - - EACCVCertException(const char* msg = 0, const char* where = 0, ulong code = 0) - : EACDataException(msg, where, code) - { } - - virtual Type* Clone() const { return TypedClone(); } - virtual void Throw() const { throw Type(m_what, m_where, m_code); } - virtual int GetId() const { return eiEACCVCertException; } - }; - - // --------------------------------------------------------------------------- - class SmartcardException : public LogicalException - { - public: - typedef LogicalException BaseType; - typedef SmartcardException Type; - - SmartcardException(const char* msg = 0, const char* where = 0, ulong code = 0) - : LogicalException(msg, where, code) - { } - - virtual Type* Clone() const { return TypedClone(); } - virtual void Throw() const { throw Type(m_what, m_where, m_code); } - virtual int GetId() const { return eiSmartcardException; } - }; - - class CardOutOfMemoryException : public SmartcardException - { - public: - typedef SmartcardException BaseType; - typedef CardOutOfMemoryException Type; - - CardOutOfMemoryException(const char* msg = 0, const char* where = 0, ulong code = 0) - : SmartcardException(msg, where, code) - { } - - virtual Type* Clone() const { return TypedClone(); } - virtual void Throw() const { throw Type(m_what, m_where, m_code); } - virtual int GetId() const { return eiCardOutOfMemoryException; } - }; - - class InvalidPinException : public SmartcardException - { - public: - typedef SmartcardException BaseType; - typedef InvalidPinException Type; - - InvalidPinException(const char* msg = 0, const char* where = 0, ulong code = 0) - : SmartcardException(msg, where, code) - { } - - virtual Type* Clone() const { return TypedClone(); } - virtual void Throw() const { throw Type(m_what, m_where, m_code); } - virtual int GetId() const { return eiInvalidPinException; } - }; - - class PinLockedException : public SmartcardException - { - public: - typedef SmartcardException BaseType; - typedef PinLockedException Type; - - PinLockedException(const char* msg = 0, const char* where = 0, ulong code = 0) - : SmartcardException(msg, where, code) - { } - - virtual Type* Clone() const { return TypedClone(); } - virtual void Throw() const { throw Type(m_what, m_where, m_code); } - virtual int GetId() const { return eiPinLockedException; } - }; - - class PinExpiredException : public SmartcardException - { - public: - typedef SmartcardException BaseType; - typedef PinExpiredException Type; - - PinExpiredException(const char* msg = 0, const char* where = 0, ulong code = 0) - : SmartcardException(msg, where, code) - { } - - virtual Type* Clone() const { return TypedClone(); } - virtual void Throw() const { throw Type(m_what, m_where, m_code); } - virtual int GetId() const { return eiPinExpiredException; } - }; - - class PinLenRangeException : public SmartcardException - { - public: - typedef SmartcardException BaseType; - typedef PinLenRangeException Type; - - PinLenRangeException(const char* msg = 0, const char* where = 0, ulong code = 0) - : SmartcardException(msg, where, code) - { } - - virtual Type* Clone() const { return TypedClone(); } - virtual void Throw() const { throw Type(m_what, m_where, m_code); } - virtual int GetId() const { return eiPinLenRangeException; } - }; - - class InvalidCRKeyException : public SmartcardException - { - public: - typedef SmartcardException BaseType; - typedef InvalidCRKeyException Type; - - InvalidCRKeyException(const char* msg = 0, const char* where = 0, ulong code = 0) - : SmartcardException(msg, where, code) - { } - - virtual Type* Clone() const { return TypedClone(); } - virtual void Throw() const { throw Type(m_what, m_where, m_code); } - virtual int GetId() const { return eiInvalidCRKeyException; } - }; - - class InvalidCardException : public SmartcardException - { - public: - typedef SmartcardException BaseType; - typedef InvalidCardException Type; - - InvalidCardException(const char* msg = 0, const char* where = 0, ulong code = 0) - : SmartcardException(msg, where, code) - { } - - virtual Type* Clone() const { return TypedClone(); } - virtual void Throw() const { throw Type(m_what, m_where, m_code); } - virtual int GetId() const { return eiInvalidCardException; } - }; - - class InvalidAuthException : public SmartcardException - { - public: - typedef SmartcardException BaseType; - typedef InvalidAuthException Type; - - InvalidAuthException(const char* msg = 0, const char* where = 0, ulong code = 0) - : SmartcardException(msg, where, code) - { } - - virtual Type* Clone() const { return TypedClone(); } - virtual void Throw() const { throw Type(m_what, m_where, m_code); } - virtual int GetId() const { return eiInvalidAuthException; } - }; - - class InvalidAuthObjectException : public SmartcardException - { - public: - typedef SmartcardException BaseType; - typedef InvalidAuthObjectException Type; - - InvalidAuthObjectException(const char* msg = 0, const char* where = 0, ulong code = 0) - : SmartcardException(msg, where, code) - { } - - virtual Type* Clone() const { return TypedClone(); } - virtual void Throw() const { throw Type(m_what, m_where, m_code); } - virtual int GetId() const { return eiInvalidAuthObjectException; } - }; - - class AuthProtocolException : public SmartcardException - { - public: - typedef SmartcardException BaseType; - typedef AuthProtocolException Type; - - AuthProtocolException(const char* msg = 0, const char* where = 0, ulong code = 0) - : SmartcardException(msg, where, code) - { } - - virtual Type* Clone() const { return TypedClone(); } - virtual void Throw() const { throw Type(m_what, m_where, m_code); } - virtual int GetId() const { return eiAuthProtocolException; } - }; - - class AuthConstrainedException : public SmartcardException - { - public: - typedef SmartcardException BaseType; - typedef AuthConstrainedException Type; - - AuthConstrainedException(const char* msg = 0, const char* where = 0, ulong code = 0) - : SmartcardException(msg, where, code) - { } - - virtual Type* Clone() const { return TypedClone(); } - virtual void Throw() const { throw Type(m_what, m_where, m_code); } - virtual int GetId() const { return eiAuthConstrainedException; } - }; - - class SecureMessagingException : public SmartcardException - { - public: - typedef SmartcardException BaseType; - typedef SecureMessagingException Type; - - SecureMessagingException(const char* msg = 0, const char* where = 0, ulong code = 0) - : SmartcardException(msg, where, code) - { } - - virtual Type* Clone() const { return TypedClone(); } - virtual void Throw() const { throw Type(m_what, m_where, m_code); } - virtual int GetId() const { return eiSecureMessagingException; } - }; - - class SMWrapException : public SecureMessagingException - { - public: - typedef SecureMessagingException BaseType; - typedef SMWrapException Type; - - SMWrapException(const char* msg = 0, const char* where = 0, ulong code = 0) - : SecureMessagingException(msg, where, code) - { } - - virtual Type* Clone() const { return TypedClone(); } - virtual void Throw() const { throw Type(m_what, m_where, m_code); } - virtual int GetId() const { return eiSMWrapException; } - }; - - class SMUnwrapException : public SecureMessagingException - { - public: - typedef SecureMessagingException BaseType; - typedef SMUnwrapException Type; - - SMUnwrapException(const char* msg = 0, const char* where = 0, ulong code = 0) - : SecureMessagingException(msg, where, code) - { } - - virtual Type* Clone() const { return TypedClone(); } - virtual void Throw() const { throw Type(m_what, m_where, m_code); } - virtual int GetId() const { return eiSMUnwrapException; } - }; - - // --------------------------------------------------------------------------- - class SubsystemException : public LogicalException - { - public: - typedef LogicalException BaseType; - typedef SubsystemException Type; - - SubsystemException(const char* msg = 0, const char* where = 0, ulong code = 0) - : LogicalException(msg, where, code) - { } - - virtual Type* Clone() const { return TypedClone(); } - virtual void Throw() const { throw Type(m_what, m_where, m_code); } - virtual int GetId() const { return eiSubsystemException; } - }; - - class NoSuchSubsystemException : public SubsystemException - { - public: - typedef SubsystemException BaseType; - typedef NoSuchSubsystemException Type; - - NoSuchSubsystemException(const char* msg = 0, const char* where = 0, ulong code = 0) - : SubsystemException(msg, where, code) - { } - - virtual Type* Clone() const { return TypedClone(); } - virtual void Throw() const { throw Type(m_what, m_where, m_code); } - virtual int GetId() const { return eiNoSuchSubsystemException; } - }; - -#else - - #define throw(_x) _exit(_x) - - int Exception(const char* msg = 0, const char* where = 0, ulong code = 0); - int BadException(const char* msg = 0, const char* where = 0, ulong code = 0); - int NullPointerException(const char* msg = 0, const char* where = 0, ulong code = 0); - int OutOfRangeException(const char* msg = 0, const char* where = 0, ulong code = 0); - int BadCastException(const char* msg = 0, const char* where = 0, ulong code = 0); - int BadNumericCast(const char* msg = 0, const char* where = 0, ulong code = 0); - int RuntimeException(const char* msg = 0, const char* where = 0, ulong code = 0); - int BadAllocException(const char* msg = 0, const char* where = 0, ulong code = 0); - int NotSupportedException(const char* msg = 0, const char* where = 0, ulong code = 0); - int NotImplementedException(const char* msg = 0, const char* where = 0, ulong code = 0); - int InvalidParameterException(const char* msg = 0, const char* where = 0, ulong code = 0); - int SynchronizationException(const char* msg = 0, const char* where = 0, ulong code = 0); - int LogicalException(const char* msg = 0, const char* where = 0, ulong code = 0); - int AlgorithmException(const char* msg = 0, const char* where = 0, ulong code = 0); - int InvalidAlgorithmParameterException(const char* msg = 0, const char* where = 0, ulong code = 0); - int NoSuchAlgorithmException(const char* msg = 0, const char* where = 0, const char* algorithm); - int ArithmeticException(const char* msg = 0, const char* where = 0, ulong code = 0); - int CertificateException(const char* msg = 0, const char* where = 0, ulong code = 0); - int CertificateEncodingException(const char* msg = 0, const char* where = 0, ulong code = 0); - int CertificateExpiredException(const char* msg = 0, const char* where = 0, ulong code = 0); - int CertificateNotYetValidException(const char* msg = 0, const char* where = 0, ulong code = 0); - int CertificateParsingException(const char* msg = 0, const char* where = 0, ulong code = 0); - int KeyException(const char* msg = 0, const char* where = 0, ulong code = 0); - int InvalidKeyException(const char* msg = 0, const char* where = 0, ulong code = 0); - int KeyManagementException(const char* msg = 0, const char* where = 0, ulong code = 0); - int MessageDigestException(const char* msg = 0, const char* where = 0, ulong code = 0); - int PaddingException(const char* msg = 0, const char* where = 0, ulong code = 0); - int SignatureException(const char* msg = 0, const char* where = 0, ulong code = 0); - int EACException(const char* msg = 0, const char* where = 0, ulong code = 0); - int EACDataException(const char* msg = 0, const char* where = 0, ulong code = 0); - int EACMRZException(const char* msg = 0, const char* where = 0, ulong code = 0); - int EACCVCertException(const char* msg = 0, const char* where = 0, ulong code = 0); - int SmartcardException(const char* msg = 0, const char* where = 0, ulong code = 0); - int CardOutOfMemoryException(const char* msg = 0, const char* where = 0, ulong code = 0); - int InvalidPinException(const char* msg = 0, const char* where = 0, ulong code = 0); - int InvalidCardException(const char* msg = 0, const char* where = 0, ulong code = 0); - int InvalidAuthObjectException(const char* msg = 0, const char* where = 0, ulong code = 0); - int AuthProtocolException(const char* msg = 0, const char* where = 0, ulong code = 0); - int AuthConstrainedException(const char* msg = 0, const char* where = 0, ulong code = 0); - int SecureMessagingException(const char* msg = 0, const char* where = 0, ulong code = 0); - int SMWrapException(const char* msg = 0, const char* where = 0, ulong code = 0); - int SMUnwrapException(const char* msg = 0, const char* where = 0, ulong code = 0); - int SubsystemException(const char* msg = 0, const char* where = 0, ulong code = 0); - int NoSuchSubsystemException(const char* msg = 0, const char* where = 0, ulong code = 0); - -#endif // UNDER_CE_30 - -}// namespace act - -#endif // ACT_Exception_h diff --git a/actlibrary/MacOSX-10.5-x86_64/Release/include/actFactoryReg.h b/actlibrary/MacOSX-10.5-x86_64/Release/include/actFactoryReg.h deleted file mode 100644 index 175da36..0000000 --- a/actlibrary/MacOSX-10.5-x86_64/Release/include/actFactoryReg.h +++ /dev/null @@ -1,146 +0,0 @@ -// --------------------------------------------------------------------------- -// Name: actFactoryReg.h -// Product: cv act library -// Purpose: Templates for simple factory-registry implementation. -// -// Copyright: (c) 2008 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -// -// Autor: Markus Tesche -// Date: 06/02/2008 -// --------------------------------------------------------------------------- - -#ifndef ACT_FactoryReg_h -#define ACT_FactoryReg_h - -#include -#include - -namespace act -{ - // - // FactoryMapEntry<> - template - struct FactoryMapEntry - { - typedef char KeyType; - - struct KeyLessPredicate - : public std::binary_function - { - bool operator()(const KeyType* left, const KeyType* right) const - { - if(left == 0) return false; - if(right == 0) return true; - return strcmp(left, right) < 0; - } - }; - - typedef std::map - < const KeyType*, CreatePtrT, KeyLessPredicate - > MapType; - - static const KeyType* Empty; - - const KeyType* Name; - CreatePtrT createPtr; - }; - - template - const typename FactoryMapEntry::KeyType* - FactoryMapEntry::Empty = ""; - - - // - // FactoryReg<> - template - < - class ResultT, - class CreatePtrT, - class MapEntryT, - class MapT = typename MapEntryT::MapType - > - class FactoryReg - { - public: - typedef typename MapEntryT::KeyType KeyType; - typedef MapEntryT MapEntryType; - typedef MapT MapType; - - // Creates default ... - static ResultT* Create(const KeyType* name) - { - if(name == 0) name = MapEntryType::Empty; - typename MapType::const_iterator result(g_map.find(name)); - return result != g_map.end() ? result->second(name) : 0; - } - - template - static ResultT* Create(const KeyType* name, ParamT* param) - { - if(name == 0) name = MapEntryType::Empty; - typename MapType::const_iterator result(g_map.find(name)); - return result != g_map.end() ? result->second(name, param) : 0; - } - - template - static ResultT* Create(ParamT* param) { return Create(0, param); } - static ResultT* Create() { return Create(0); } - - static const KeyType* GetName(void* createptr) - { - if(createptr == 0) return 0; - for(typename MapType::const_iterator i(g_map.begin()), - end(g_map.end()); i != end; ++i) - if(i->second == createptr) - return i->first; - - return 0; - } - - static const KeyType* GetNextName(const KeyType* name) - { - if(name == 0) - return g_map.empty() == true ? 0 : g_map.begin()->first; - - typename MapType::const_iterator result(g_map.find(name)); - return result == g_map.end() || ++result == g_map.end() ? 0 : result->first; - } - - static CreatePtrT GetCreatePointer(const KeyType* name) - { - if(name != 0) - { - typename MapType::const_iterator result(g_map.find(name)); - return result != g_map.end() ? result->second : 0; - } - return 0; - } - - static void Insert(const KeyType* name, CreatePtrT createPtr) - { - std::pair - result(g_map.insert(typename MapType::value_type(name, createPtr))); - } - - static void Insert(const MapEntryType* entry) - { - while(entry->Name != 0) - { - Insert(entry->Name, entry->createPtr); - ++entry; - } - } - - protected: - static MapT g_map; - }; - - template - MapT FactoryReg::g_map; - -} // namespace act - -#endif // ACT_FactoryReg_h diff --git a/actlibrary/MacOSX-10.5-x86_64/Release/include/actHashKit.h b/actlibrary/MacOSX-10.5-x86_64/Release/include/actHashKit.h deleted file mode 100644 index d2a817b..0000000 --- a/actlibrary/MacOSX-10.5-x86_64/Release/include/actHashKit.h +++ /dev/null @@ -1,32 +0,0 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actHashKit.h -// Product: cv act library -// Purpose: declaration of all factory functions -// -// Copyright: (c) 2000 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_HASHKIT_H -#define ACT_HASHKIT_H - -namespace act -{ - class IHashAlg; - IHashAlg* CreateMD2(); - IHashAlg* CreateMD4(); - IHashAlg* CreateMD5(); - IHashAlg* CreateRipemd128(); - IHashAlg* CreateRipemd160(); - IHashAlg* CreateSHA0(); - IHashAlg* CreateSHA1(); - IHashAlg* CreateSHA224(); - IHashAlg* CreateSHA256(); - IHashAlg* CreateSHA384(); - IHashAlg* CreateSHA512(); - IHashAlg* CreateDummyHash(); -} -#endif - diff --git a/actlibrary/MacOSX-10.5-x86_64/Release/include/actIAccessCondition.h b/actlibrary/MacOSX-10.5-x86_64/Release/include/actIAccessCondition.h deleted file mode 100644 index a6d9da3..0000000 --- a/actlibrary/MacOSX-10.5-x86_64/Release/include/actIAccessCondition.h +++ /dev/null @@ -1,163 +0,0 @@ -// --------------------------------------------------------------------------- -// Name: actIAccessConditions.h -// Product: cv act library -// Purpose: The IAccessCondition interface is used to map access conditions for -// Files, Keys etc. on specific smartcard's -// -// Copyright: (c) 2008 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -// -// Autor: Markus Tesche -// Date: 10/29/2008 -// --------------------------------------------------------------------------- - -#ifndef ACT_IAccessConditions_h -#define ACT_IAccessConditions_h - -#include "actBlob.h" -#include "actIRefCounted.h" - -namespace act -{ - class IToken; - class ISCardOS; - - enum - { - AC_AUTH_ID_MASK = 0x7f, - }; - - enum ACType - { - AC_TYPE_UNKNOWN = 0, - AC_TYPE_RAW = 1, // Already transformed for specific OS - AC_TYPE_GENERIC = 2 // OS independant, requires to be transformed before used - }; - - // SCard object specific rights by type - enum ACSCardObjType - { - // { AC_TOKEN_USER, AC_TOKEN_SO, AC_TOKEN_USER_OR_SO } - AC_OBJ_MAP = 0x00, // Used for access condition (f.e. tag 0x86) - AC_OBJREF_MAP = 0x01, // Used as object reference for access condition - - AC_RIGHTS_EF = 0x02, // Access Rights for EF's - AC_RIGHTS_DF = 0x03, // Access Rights for DF's - AC_RIGHTS_KEY = 0x04, // Access Rights for Key Objects - AC_RIGHTS_AUTH = 0x05, // Access Rights for Authentication Objects - // ... add additional types here - }; - - // SCard specific rights - enum ACSCard - { - AC_ALWAYS = 0x00, - // Any other from 0x01..0x7f - AC_NEVER = 0xff - }; - - // Token specific rights - enum ACToken - { - AC_TOKEN_USER = 0x80, - AC_TOKEN_SO = 0x81, - AC_TOKEN_USER_OR_SO = 0x82, - AC_TOKEN_USER_AND_SO = 0x83, - AC_TOKEN_ADMIN = 0x84, - - AC_TOKEN_FLAG = 0x80, - }; - - // AuthId Index - enum AIIndex - { - AI_INVALID = -1, - AI_USER = AC_TOKEN_USER & ~AC_TOKEN_FLAG, - AI_SO = AC_TOKEN_SO & ~AC_TOKEN_FLAG, - AI_USER_OR_SO = AC_TOKEN_USER_OR_SO & ~AC_TOKEN_FLAG, - AI_USER_AND_SO = AC_TOKEN_USER_AND_SO & ~AC_TOKEN_FLAG, - AI_ADMIN = AC_TOKEN_ADMIN & ~AC_TOKEN_FLAG, - }; - - enum ACOperation - { - AC_OR = 0x00, - AC_AND = 0x01, - }; - - enum ACMode - { - AC_MODE_READ = 0, - AC_MODE_UPDATE = 1, - AC_MODE_EXECUTE = 2, - AC_MODE_DELETE = 3, - }; - - enum ACRight - { - // Used for EF/DF - AC_READ = 0x00, - AC_WRITE = 0x01, - AC_UPDATE = 0x01, - AC_APPEND = 0x02, - AC_DEACTIVATE = 0x03, - AC_LOCK = 0x03, - AC_ACTIVATE = 0x04, - AC_UNLOCK = 0x04, - AC_DELETE = 0x05, - AC_ADMIN = 0x06, - AC_CREATE = 0x07, - AC_INCREASE = 0x08, - AC_DECREASE = 0x09, - AC_TERMINATE = 0x0a, - - // Used for Objects - AC_USE = 0x00, - AC_CHANGE = 0x01, - AC_UNBLOCK = 0x02, - AC_GENKEY = 0x07, - AC_SIGN = 0x08, - AC_DEC = 0x09, - AC_ENC = 0x0a, - }; - - enum ACRange - { - AC_FIRST = AC_READ, - AC_LAST = AC_ENC, - }; - - // - // IAccessCondition - class IAccessCondition : public IRefCounted - { - public: - virtual IAccessCondition* Clone() const = 0; - - virtual const char* GetName() const = 0; - virtual ACType GetAcType() const = 0; - - virtual Blob& GetAccessRights() = 0; - virtual const Blob& GetAccessRights() const = 0; - - virtual IAccessCondition* ConvertAc(const IToken* token, ACType acdest) const = 0; - }; - - // - // IAcConverter - class IAcConverter - { - protected: - virtual ~IAcConverter() { } - - public: - virtual IAccessCondition* ConvertAc(const IAccessCondition* ac, ACType acdest) const = 0; - virtual Blob ConvertAc(const IAccessCondition* ac) const = 0; - virtual IAccessCondition* ConvertAc(const Blob& ac) const = 0; - }; - -} // namespace act - -#endif // ACT_IAccessConditions_h diff --git a/actlibrary/MacOSX-10.5-x86_64/Release/include/actIAgreementKey.h b/actlibrary/MacOSX-10.5-x86_64/Release/include/actIAgreementKey.h deleted file mode 100644 index 7ff4ef1..0000000 --- a/actlibrary/MacOSX-10.5-x86_64/Release/include/actIAgreementKey.h +++ /dev/null @@ -1,32 +0,0 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actIAgreementKey.h -// Product: cv act library -// Purpose: The abstract class IAgreementKey derived from IKey is the -// interface to all key agreements. -// -// Copyright: (c) 2000 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_IAgreementKey_H -#define ACT_IAgreementKey_H - -#include "actIKey.h" - -namespace act -{ - class IDerivator; - - class IAgreementKey : public IKey - { - public: - virtual void SetDerivator(IDerivator* derivator) = 0; - virtual const IDerivator* GetDerivator() const = 0; - virtual IDerivator* GetDerivator() = 0; - }; - -} // namespace act - -#endif // ACT_IAgreementKey_H diff --git a/actlibrary/MacOSX-10.5-x86_64/Release/include/actIAlgorithm.h b/actlibrary/MacOSX-10.5-x86_64/Release/include/actIAlgorithm.h deleted file mode 100644 index 23cdb2c..0000000 --- a/actlibrary/MacOSX-10.5-x86_64/Release/include/actIAlgorithm.h +++ /dev/null @@ -1,38 +0,0 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actIAlgorithm.h -// Product: cv act library -// Purpose: IAlgorithm is an abstract base. All concrete algorithm-classes are -// derived from IAlgorithm. -// -// Copyright: (c) 2000 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_IAlgorithm_h -#define ACT_IAlgorithm_h - -#include "actBasics.h" - -namespace act -{ - class Blob; - - class IAlgorithm - { - public: - virtual ~IAlgorithm() { } - - virtual void Write(const Blob& input) = 0; - virtual void Write(const byte* input, size_t insize) = 0; - virtual void Finalize() = 0; - virtual size_t GetAvailableSize() const = 0; - virtual size_t Read(Blob& output, size_t max = 0) = 0; - virtual size_t Read(byte* outbuffer, size_t buffersize) = 0; - virtual status_t GetStatus() const = 0; - }; - -} // namespace act - -#endif // ACT_IAlgorithm_h diff --git a/actlibrary/MacOSX-10.5-x86_64/Release/include/actIBlockCipher.h b/actlibrary/MacOSX-10.5-x86_64/Release/include/actIBlockCipher.h deleted file mode 100644 index 10338cd..0000000 --- a/actlibrary/MacOSX-10.5-x86_64/Release/include/actIBlockCipher.h +++ /dev/null @@ -1,53 +0,0 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actIBlockCipher.h -// Product: cv act library -// Purpose: The class IBlockCipher creates the symmetric BlockCypher, which is -// defined by IBockCipherKey and IBlockCipherMode. It offers operations -// like encrypt, decrypt and queries involving validity or keylength etc. -// -// Copyright: (c) 2000 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_IBlockCipher_h -#define ACT_IBlockCipher_h - -#include "actBasics.h" -#include - -namespace act -{ - - class Blob; - - class IBlockCipher - { - public: - virtual IBlockCipher* Clone() const =0; - virtual void Import( const Blob& indata ) =0; - virtual void Export( Blob& outdata ) const =0; - - virtual void SetRawKey( const Blob& keyblob ) =0; - virtual void GetRawKey( Blob& keyblob ) const =0; - - virtual void Encrypt(const byte* in,byte* out) const =0; - virtual void Decrypt(const byte* in,byte* out) const =0; - - virtual size_t GetKeySize(size_t keysize=0) const =0; - virtual size_t GetMinKeySize() const =0; - virtual size_t GetMaxKeySize() const =0; - virtual size_t GetNextKeySize(size_t prevsize) const =0; - virtual size_t GetBlockSize() const =0; - - virtual void* GetCreatePointer() const =0; - - virtual ~IBlockCipher() {}; - }; - - -}// namespace act - -#endif - diff --git a/actlibrary/MacOSX-10.5-x86_64/Release/include/actIBlockCipherKey.h b/actlibrary/MacOSX-10.5-x86_64/Release/include/actIBlockCipherKey.h deleted file mode 100644 index 3b93cd7..0000000 --- a/actlibrary/MacOSX-10.5-x86_64/Release/include/actIBlockCipherKey.h +++ /dev/null @@ -1,48 +0,0 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actIBlockCipherKey.h -// Product: cv act library -// Purpose: The class IBlockCipherKey extends the interface of the class IKey -// and supports the peculiarities of symmetric keys. -// -// -// Copyright: (c) 2000 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_IBlockCipherKey_h -#define ACT_IBlockCipherKey_h - -#include "actIKey.h" - -namespace act -{ - class IPadding; - class IBlockCipher; - class IBlockCipherMode; - class IDerivator; - - class IBlockCipherKey : public IKey - { - public: - virtual void SetPadding(IPadding* padding) = 0; - virtual const IPadding* GetPadding() const = 0; - virtual IPadding* GetPadding() = 0; - - virtual void SetCipher(IBlockCipher* cipher) = 0; - virtual const IBlockCipher* GetCipher() const = 0; - virtual IBlockCipher* GetCipher() = 0; - - virtual void SetMode(IBlockCipherMode* mode) = 0; - virtual const IBlockCipherMode* GetMode() const = 0; - virtual IBlockCipherMode* GetMode() = 0; - - virtual void SetDerivator(IDerivator* derive) = 0; - virtual const IDerivator* GetDerivator() const = 0; - virtual IDerivator* GetDerivator() = 0; - }; - -} //namespace act - -#endif // ACT_IBlockCipherKey_h diff --git a/actlibrary/MacOSX-10.5-x86_64/Release/include/actIBlockCipherMode.h b/actlibrary/MacOSX-10.5-x86_64/Release/include/actIBlockCipherMode.h deleted file mode 100644 index c6f5267..0000000 --- a/actlibrary/MacOSX-10.5-x86_64/Release/include/actIBlockCipherMode.h +++ /dev/null @@ -1,45 +0,0 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actIBlockCipherMode.h -// Product: cv act library -// Purpose: By using this interface every blockcipher-algorithm can be run in -// the modes CBC or ECB. Other modes e.g. OFB or CFB are supported. -// -// Copyright: (c) 2000 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_IBlockCipherMode_h -#define ACT_IBlockCipherMode_h - -#include "actBasics.h" - -namespace act -{ - class IBlockCipher; - class IAlgorithm; - class IPadding; - class Blob; - - class IBlockCipherMode - { - public: - virtual IBlockCipherMode* Clone() const =0; - virtual void Import(const Blob& indata) =0; - virtual void Export(Blob& outdata) const =0; - virtual void SetParam(paramid_t id, const Blob &blob) =0; - virtual void SetParam(paramid_t id, int val) =0; - virtual void SetParam(paramid_t id, const char* cstr) =0; - virtual int GetParam(paramid_t) const =0; - virtual void GetParam(paramid_t, Blob &blob) const =0; - virtual IAlgorithm* CreateEncAlgorithm(IBlockCipher* cipher, IPadding* padding, const Blob& iv) const=0; - virtual IAlgorithm* CreateDecAlgorithm(IBlockCipher* cipher, IPadding* padding) const=0; - virtual void* GetCreatePointer() const=0; - virtual ~IBlockCipherMode() {} - }; -} // namespace act - -#endif - - diff --git a/actlibrary/MacOSX-10.5-x86_64/Release/include/actICRL.h b/actlibrary/MacOSX-10.5-x86_64/Release/include/actICRL.h deleted file mode 100644 index 2bb598b..0000000 --- a/actlibrary/MacOSX-10.5-x86_64/Release/include/actICRL.h +++ /dev/null @@ -1,51 +0,0 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actICRL.h -// Product: cv act library -// Purpose: The abstract class ICRL (Certificate Revocation List) can be used -// to check whether a certificate has been revoked. -// -// Copyright: (c) 2000 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_ICRL_h -#define ACT_ICRL_h - -namespace act -{ - class IKey; - class ICertificate; - class Blob; - - class ICRL - { - public: - - virtual ICRL* Clone() const=0; - virtual void Import(const Blob& crlblob)=0; - virtual void Export(Blob& crlblob) const =0; - virtual void SetParam(paramid_t id,const Blob& blob) =0; - virtual void SetParam(paramid_t id,int val) =0; - virtual void SetParam(paramid_t id,const char* cstr) =0; - virtual void GetParam(paramid_t id,Blob& blob) const =0; - virtual int GetParam(paramid_t) const =0; - - virtual void Revoke(const ICertificate* cert) =0; - virtual bool IsRevoked(const ICertificate* Cert) const =0; - virtual void RemoveRevokation(const ICertificate* cert) =0; - - virtual void Revoke(const Blob& blob) = 0; - virtual bool IsRevoked(const Blob& blob) const = 0; - virtual void RemoveRevokation(const Blob& blob) = 0; - - virtual void Sign(const IKey* privkey) =0; - virtual int Verify(const IKey* pubkey) const =0; - virtual void* GetCreatePointer() const=0; - virtual ~ICRL() {}; - }; -} // namespace act - -#endif - diff --git a/actlibrary/MacOSX-10.5-x86_64/Release/include/actICertificate.h b/actlibrary/MacOSX-10.5-x86_64/Release/include/actICertificate.h deleted file mode 100644 index eadfe0b..0000000 --- a/actlibrary/MacOSX-10.5-x86_64/Release/include/actICertificate.h +++ /dev/null @@ -1,44 +0,0 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actICertificate.h -// Product: cv act library -// Purpose: The abstract class ICertificate enables access to a certificate, e.g. -// its public key and the corresponding validity. -// -// Copyright: (c) 2000 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_ICertificate_h -#define ACT_ICertificate_h - -#include "actBasics.h" -#include "actIParam.h" - -namespace act -{ - class IKey; - class Blob; - - class ICertificate : public IParam - { - public: - virtual ~ICertificate() { }; - - virtual ICertificate* Clone() const = 0; - virtual void Import(const Blob& certblob) = 0; - virtual void Export(Blob& certblob) const = 0; - - virtual void SetPublicKey(const IKey* pubkey) = 0; - virtual IKey* CreatePublicKey(const char* = 0) const = 0; - - virtual void Sign(const IKey* privkey) = 0; - virtual int Verify(const IKey* pubkey) const = 0; - - virtual void* GetCreatePointer() const = 0; - }; - -} // namespace act - -#endif // ACT_ICertificate_h diff --git a/actlibrary/MacOSX-10.5-x86_64/Release/include/actIDerivatorWithHash.h b/actlibrary/MacOSX-10.5-x86_64/Release/include/actIDerivatorWithHash.h deleted file mode 100644 index b1bdaf9..0000000 --- a/actlibrary/MacOSX-10.5-x86_64/Release/include/actIDerivatorWithHash.h +++ /dev/null @@ -1,33 +0,0 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actIDerivatorWithHash.h -// Product: cv act library -// Purpose: The abstract class IDerivatorWithHash is derived from IDerivator and -// uses hash algorithms. -// -// Copyright: (c) 2000 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_IDerivatorWithHash_h -#define ACT_IDerivatorWithHash_h - -#include "actIDerivator.h" - -namespace act -{ - class IHashAlg; - - class IDerivatorWithHash : public IDerivator - { - public: - virtual void SetHash(IHashAlg* hash) =0; - virtual const IHashAlg* GetHash() const =0; - virtual IHashAlg* GetHash() =0; - }; -} // namespace act - -#endif - - diff --git a/actlibrary/MacOSX-10.5-x86_64/Release/include/actIEMSAAlg.h b/actlibrary/MacOSX-10.5-x86_64/Release/include/actIEMSAAlg.h deleted file mode 100644 index 0aaec1d..0000000 --- a/actlibrary/MacOSX-10.5-x86_64/Release/include/actIEMSAAlg.h +++ /dev/null @@ -1,49 +0,0 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actIEMSAAlg.h -// Product: cv act library -// Purpose: IEMSAAlg (Encoding Methods for Signatures with Appendix) is an -// abstract class derived from IAlgorithm. Encoding methods do not -// use keys. These algorithms prepare the data to sign. They can be -// implemented with or without hash functions. -// -// Copyright: (c) 2000 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_IEMSAAlg_h -#define ACT_IEMSAAlg_h - -#include "actBasics.h" -#include "actIAlgorithm.h" - -namespace act -{ - - class IEMSAAlg : public IAlgorithm - { - public: - virtual IEMSAAlg* Clone() const =0; - - virtual void Import(const Blob &blob) =0; - virtual void Export(Blob &blob) const =0; - virtual void SetParam(paramid_t id,const Blob &blob) =0; - virtual void SetParam(paramid_t id,int val) =0; - virtual void SetParam(paramid_t id,const char* cstr) =0; - virtual void GetParam(paramid_t id,Blob &blob) const =0; - virtual int GetParam(paramid_t) const =0; - - virtual void Reset(size_t sizeinbits) =0; - - virtual void* GetCreatePointer() const =0; - - virtual bool Verify(const Blob &em, const Blob &sig_inv) =0; - - virtual ~IEMSAAlg(){} - }; -} // namespace act - -#endif - - diff --git a/actlibrary/MacOSX-10.5-x86_64/Release/include/actIEMSAWithHashAlg.h b/actlibrary/MacOSX-10.5-x86_64/Release/include/actIEMSAWithHashAlg.h deleted file mode 100644 index 9a928c1..0000000 --- a/actlibrary/MacOSX-10.5-x86_64/Release/include/actIEMSAWithHashAlg.h +++ /dev/null @@ -1,34 +0,0 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actIEMSAWithHashAlg.h -// Product: cv act library -// Purpose: IEMSAWithHashAlg is the abstract class derived from IEMSAAlg -// which provides access on the aggregated hashobject of an -// EMSA-object. -// -// Copyright: (c) 2000 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_IEMSAWithHashAlg_h -#define ACT_IEMSAWithHashAlg_h - -#include "actIEMSAAlg.h" - -namespace act -{ - class IHashAlg; - - class IEMSAWithHashAlg : public IEMSAAlg - { - public: - virtual void SetHash(IHashAlg* hash) =0; - virtual const IHashAlg* GetHash() const =0; - virtual IHashAlg* GetHash() =0; - }; -} // namespace act - -#endif - - diff --git a/actlibrary/MacOSX-10.5-x86_64/Release/include/actIEventHandler.h b/actlibrary/MacOSX-10.5-x86_64/Release/include/actIEventHandler.h deleted file mode 100644 index 115662f..0000000 --- a/actlibrary/MacOSX-10.5-x86_64/Release/include/actIEventHandler.h +++ /dev/null @@ -1,54 +0,0 @@ -// --------------------------------------------------------------------------- -// Name: actIEventHandler.h -// Product: cv act library -// Purpose: Interfaces required to receive token, slot or subsystem events -// -// Copyright: (c) 2002 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -// -// Autor: Dr. Xiangdong Wang (XWG) -// Markus Tesche -// Date: 03/26/2002 -// --------------------------------------------------------------------------- - -#ifndef ACT_IEventHandler_h -#define ACT_IEventHandler_h - -#include "actTypeTags.h" -#include "actIRefCounted.h" - -namespace act -{ - enum EventCode - { - TOKEN_REMOVED = 0x00000010, - TOKEN_INSERTED = 0x00000020, - SLOT_REMOVED = 0x00000040, - SLOT_INSERTED = 0x00000080, - SUBSYSTEM_STOPPED = 0x00000100, - SUBSYSTEM_STARTED = 0x00000200, - MONITORING_STOPPED = 0x00000400, - MONITORING_STARTED = 0x00000800, - MONITORING_ERROR = 0x80000000, - }; - - class ISubsystem; - class IEventMonitoring; - - // - // IEventHandler - class IEventHandler : public IRefCounted - { - public: - virtual IEventHandler* Clone() = 0; - virtual void Source(IEventMonitoring* source) = 0; - virtual void OnEvent(int event, ISubsystem* source) = 0; - }; - - typedef TypeTag TagEH; - -} // namespace act - -#endif // ACT_IEventHandler_h diff --git a/actlibrary/MacOSX-10.5-x86_64/Release/include/actIEventMonitoring.h b/actlibrary/MacOSX-10.5-x86_64/Release/include/actIEventMonitoring.h deleted file mode 100644 index 0aee7db..0000000 --- a/actlibrary/MacOSX-10.5-x86_64/Release/include/actIEventMonitoring.h +++ /dev/null @@ -1,36 +0,0 @@ -// --------------------------------------------------------------------------- -// Name: actIEventMonitoring.h -// Product: cv act library -// Purpose: Interface for event monitoring enabled objects. -// -// Copyright: (c) 2010 cv cryptovision GmbH -// all rights reserved. -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -// -// Autor: Markus Tesche (MTE) -// Date: 08/20/2010 -// --------------------------------------------------------------------------- - -#ifndef ACT_IEventMonitoring_h -#define ACT_IEventMonitoring_h - -namespace act -{ - class IEventHandler; - - // - // IEventMonitoring - class IEventMonitoring - { - public: - virtual ~IEventMonitoring() { } - - virtual bool IsMonitored() const = 0; - virtual void StopMonitor(bool force = false) = 0; - virtual void StartMonitor(IEventHandler* cmd) = 0; - }; - -} // namespace act - -#endif // ACT_IEventMonitoring_h diff --git a/actlibrary/MacOSX-10.5-x86_64/Release/include/actIHashMACKey.h b/actlibrary/MacOSX-10.5-x86_64/Release/include/actIHashMACKey.h deleted file mode 100644 index 29719fe..0000000 --- a/actlibrary/MacOSX-10.5-x86_64/Release/include/actIHashMACKey.h +++ /dev/null @@ -1,32 +0,0 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actIHashMacKey.h -// Product: cv act library -// Purpose: interface for the class HashMAC -// -// Copyright: (c) 2000 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_IHashMACKey_h -#define ACT_IHashMACKey_h - -#include "actIMACKey.h" - -namespace act -{ - class IHashAlg; - - class IHashMACKey : public IMACKey - { - public: - virtual void SetHash(IHashAlg* cipher) =0; - virtual const IHashAlg* GetHash() const =0; - virtual IHashAlg* GetHash() =0; - }; - -} // namespace act - -#endif - diff --git a/actlibrary/MacOSX-10.5-x86_64/Release/include/actIIESKey.h b/actlibrary/MacOSX-10.5-x86_64/Release/include/actIIESKey.h deleted file mode 100644 index e54a7f4..0000000 --- a/actlibrary/MacOSX-10.5-x86_64/Release/include/actIIESKey.h +++ /dev/null @@ -1,35 +0,0 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actIIESKey.h -// Product: cv act library -// Purpose: The interface IIESKey enables access to the aggregated objects of -// an IES-key, like DL-IES or EC-IES. -// -// Copyright: (c) 2000 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_IIESKey_H -#define ACT_IIESKey_H - -#include "actIKey.h" - -namespace act -{ - class IAgreementKey; - class IMACKey; - - class IIESKey : public IKey - { - public: - virtual void SetMAC(IMACKey* mac) =0; - virtual const IMACKey* GetMAC() const =0; - virtual IMACKey* GetMAC() =0; - virtual void SetAgreement(IAgreementKey* derivator) =0; - virtual const IAgreementKey* GetAgreement() const =0; - virtual IAgreementKey* GetAgreement() =0; - }; -} // act -#endif - diff --git a/actlibrary/MacOSX-10.5-x86_64/Release/include/actIKey.h b/actlibrary/MacOSX-10.5-x86_64/Release/include/actIKey.h deleted file mode 100644 index 3ed1a9e..0000000 --- a/actlibrary/MacOSX-10.5-x86_64/Release/include/actIKey.h +++ /dev/null @@ -1,45 +0,0 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actIKey.h -// Product: cv act library -// Purpose: IKey is an abstract base class. All concrete Key-classes are -// derived from IKey. -// -// Copyright: (c) 2000 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_IKey_h -#define ACT_IKey_h - -#include "actIParam.h" -#include "actBlob.h" - -namespace act -{ - class IAlgorithm; - class IRNGAlg; - - class IKey : public IParam - { - public: - virtual ~IKey() { } - - virtual IKey* Clone() const = 0; - - virtual void Import(const Blob& keyblob) = 0; - virtual void Export(Blob& keyblob, export_t type = DEFAULT) const = 0; - - virtual void Generate(IRNGAlg* prng = 0) = 0; - virtual void Derive(const Blob& data, const Blob& salt = Blob()) = 0; - - virtual IAlgorithm* CreateAlgorithm(mode_t Mode) const = 0; - virtual IAlgorithm* CreateAlgorithm(mode_t Mode, const Blob& data) const = 0; - - virtual void* GetCreatePointer() const = 0; - }; - -} // namespace act - -#endif // ACT_IKey_h diff --git a/actlibrary/MacOSX-10.5-x86_64/Release/include/actIKeyFactory.h b/actlibrary/MacOSX-10.5-x86_64/Release/include/actIKeyFactory.h deleted file mode 100644 index 711d883..0000000 --- a/actlibrary/MacOSX-10.5-x86_64/Release/include/actIKeyFactory.h +++ /dev/null @@ -1,48 +0,0 @@ -// --------------------------------------------------------------------------- -// Name: actIKeyFactory.h -// Product: cv act library -// Purpose: IKeyFactory and IKeyFactoryChain interface -// -// Copyright: (c) 2008 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -// -// Autor: Markus Tesche -// Date: 05/18/2008 -// --------------------------------------------------------------------------- - -#ifndef ACT_IKeyFactory_h -#define ACT_IKeyFactory_h - -#include "actTokenBase.h" - -namespace act -{ - class ITokenKey; - class ITokenBlockCipher; - class ITokenBlockCipherKey; - - class IKeyFactory - { - protected: - virtual ~IKeyFactory() - { } - - public: - virtual ITokenKey* CreateKey(int type, FileInfo& fi, int usage, bool cleartoken) = 0; - - virtual ITokenBlockCipher* CreateBlockCipher(FileInfo& fi) = 0; - virtual ITokenBlockCipherKey* CreateBlockCipherKey(ITokenBlockCipher* cipher, bool cleartoken) = 0; - virtual ITokenBlockCipherKey* CreateBlockCipherAndKey(FileInfo& fi, bool cleartoken) = 0; - }; - - class IKeyFactoryChain : public IKeyFactory - { - public: - virtual void SetNext(IKeyFactoryChain* next) = 0; - }; - -} // namespace act - -#endif // ACT_IKeyFactory_h diff --git a/actlibrary/MacOSX-10.5-x86_64/Release/include/actIMACKey.h b/actlibrary/MacOSX-10.5-x86_64/Release/include/actIMACKey.h deleted file mode 100644 index b630e74..0000000 --- a/actlibrary/MacOSX-10.5-x86_64/Release/include/actIMACKey.h +++ /dev/null @@ -1,27 +0,0 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actIMACKEY.h -// Product: cv act library -// Purpose: interface for the class CBCMAC -// -// Copyright: (c) 2000 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_IMACKey_h -#define ACT_IMACKey_h - -#include "actIKey.h" - -namespace act -{ - class IMACKey : public IKey - { - public: - virtual const char* KeyName() const = 0; - }; - -} // namespace act - -#endif // ACT_IMACKey_h diff --git a/actlibrary/MacOSX-10.5-x86_64/Release/include/actIPadding.h b/actlibrary/MacOSX-10.5-x86_64/Release/include/actIPadding.h deleted file mode 100644 index c916e21..0000000 --- a/actlibrary/MacOSX-10.5-x86_64/Release/include/actIPadding.h +++ /dev/null @@ -1,47 +0,0 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actIPadding.h -// Product: cv act library -// Purpose: With the abstract class IPadding input data can be filled to obtain -// a certain length and also to invert this process. E.g. PKCS1-v1_5 is -// a padding. -// -// Copyright: (c) 2000 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_IPadding_h -#define ACT_IPadding_h -#include "actBasics.h" - -namespace act -{ - - class Blob; - - class IPadding - { - public: - - virtual IPadding* Clone() const=0; - - virtual void Import(const Blob& indata) =0; - virtual void Export(Blob& outdata) const =0; - virtual void SetParam(paramid_t id,const Blob &blob) =0; - virtual void SetParam(paramid_t id,int val) =0; - virtual void SetParam(paramid_t id,const char* cstr) =0; - virtual void GetParam(paramid_t id,Blob &blob) const =0; - virtual int GetParam(paramid_t) const =0; - - virtual void Pad(Blob& Buffer, size_t len) const =0; - virtual size_t Unpad(Blob& Buffer) const =0; - - virtual void* GetCreatePointer() const =0; - virtual ~IPadding() {} - }; - - -} //namespace act -#endif - diff --git a/actlibrary/MacOSX-10.5-x86_64/Release/include/actIRNGAlg.h b/actlibrary/MacOSX-10.5-x86_64/Release/include/actIRNGAlg.h deleted file mode 100644 index 521be1d..0000000 --- a/actlibrary/MacOSX-10.5-x86_64/Release/include/actIRNGAlg.h +++ /dev/null @@ -1,38 +0,0 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actIRNGAlg.h -// Product: cv act library -// Purpose: IRNGAlg is the interface for Random Number Generators. -// -// Copyright: (c) 2000 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_IRNGAlg_h -#define ACT_IRNGAlg_h - -#include "actIAlgorithm.h" - -namespace act -{ - class Blob; - - class IRNGAlg : public IAlgorithm - { - public: - virtual IRNGAlg* Clone() const = 0; - virtual void Import(const Blob& keyblob) = 0; - virtual void Export(Blob& keyblob) const = 0; - virtual void SetParam(paramid_t id, const Blob& blob) = 0; - virtual void SetParam(paramid_t id, int val) = 0; - virtual void SetParam(paramid_t id, const char* cstr) = 0; - virtual int GetParam(paramid_t id) const = 0; - virtual void GetParam(paramid_t id, Blob& blob) const = 0; - - virtual void* GetCreatePointer() const = 0; - }; - -} // namespace act - -#endif // ACT_IRNGAlg_h diff --git a/actlibrary/MacOSX-10.5-x86_64/Release/include/actIRefCounted.h b/actlibrary/MacOSX-10.5-x86_64/Release/include/actIRefCounted.h deleted file mode 100644 index 5c66ef0..0000000 --- a/actlibrary/MacOSX-10.5-x86_64/Release/include/actIRefCounted.h +++ /dev/null @@ -1,33 +0,0 @@ -// --------------------------------------------------------------------------- -// Name: actIRefCounted.h -// Product: cv act library -// Purpose: The IRefCounted interface. -// -// Copyright: (c) 2006 cv cryptovision GmbH -// all rights reserved. -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -// -// Autor: Markus Tesche (MTE) -// Date: 1/18/2006 -// --------------------------------------------------------------------------- - -#ifndef ACT_IRefCounted_h -#define ACT_IRefCounted_h - -namespace act -{ - // - // IRefCounted, methods for reference counting. - class IRefCounted - { - public: - virtual ~IRefCounted() { } - - virtual void AddRef() = 0; - virtual void Release() = 0; - }; - -} // namespace act - -#endif // ACT_IRefCounted_h diff --git a/actlibrary/MacOSX-10.5-x86_64/Release/include/actISCardAccess.h b/actlibrary/MacOSX-10.5-x86_64/Release/include/actISCardAccess.h deleted file mode 100644 index 3f59b31..0000000 --- a/actlibrary/MacOSX-10.5-x86_64/Release/include/actISCardAccess.h +++ /dev/null @@ -1,198 +0,0 @@ -// --------------------------------------------------------------------------- -// Name: actISCardAccess.h -// Product: cv act library -// Purpose: The class ISCardAccess manages the operations with the smartcards and readers -// -// Copyright: (c) 2002 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -// -// Autor: Dr. Xiangdong Wang (XWG) -// Date: 03/21/2002 -// --------------------------------------------------------------------------- - -#ifndef ACT_ISCardAccess_h -#define ACT_ISCardAccess_h - -#include "actBlob.h" -#include "actIRefCounted.h" -#include "actISynchronize.h" - -namespace act -{ - class SyncObject; - - const ushort RESPONSE_MAXLEN = 2048; - - enum ReturnCode - { - APDU_RESPONSE_MASK = 0xffff, - - APDU_OK = 0x9000, - APDU_OK1 = 0x9001, - - // error codes defined in ISO7816-4 - APDU_STATE_UNCHANGED = 0x6200, - APDU_RETURN_CORRUPTED = 0x6281, - APDU_END_REACHED = 0x6282, - APDU_SELECTFILE_INVALID = 0x6283, - APDU_FCI_FORMAT = 0x6284, - - APDU_AUTHEN_FAILED = 0x6300, - APDU_RETRY_COUNTER = 0x63C0, - APDU_FILE_FILLED_UP = 0x6381, - - APDU_STATE_UNCHANGED2 = 0x6400, - - APDU_STATE_CHANGED = 0x6500, - APDU_MEMORY_FAILURE = 0x6581, - - APDU_SECURITY_ERROR = 0x6600, // not defined in ISO7816 - - APDU_WRONG_LEN = 0x6700, - - APDU_NO_CLA_FUNCTION = 0x6800, - APDU_NO_LOGICAL_CHANNEL = 0x6881, - APDU_NO_SM = 0x6882, - - APDU_CMD_NOT_ALLOWED = 0x6900, - APDU_CMD_INCOMPATIBLE = 0x6981, - APDU_SECURITY_STATE = 0x6982, - APDU_AUTHEN_BLOCKED = 0x6983, - APDU_REF_DATA_INVALID = 0x6984, - APDU_NO_CONDITION = 0x6985, - APDU_CMD_EF_NOT_ALLOWED = 0x6986, - APDU_SM_DATA_MISSING = 0x6987, - APDU_SM_DATA_INCORRECT = 0x6988, - - APDU_WRONG_PARAMETER = 0x6A00, - APDU_WRONG_DATA = 0x6A80, - APDU_FUNCTION_NOT_SUPPORTED = 0x6A81, - APDU_FILE_NOT_FOUND = 0x6A82, - APDU_RECORD_NOT_FOUND = 0x6A83, - APDU_NOT_ENOUGH_MEMORY = 0x6A84, - APDU_LC_TLV_INCONSISTENT = 0x6A85, - APDU_INVALID_P1P2 = 0x6A86, - APDU_LC_P1P2_INCONSISTENT = 0x6A87, - APDU_REF_DATA_NOT_FOUND = 0x6A88, - APDU_FILE_ALREADY_EXISTS = 0x6A89, - - APDU_WRONG_PARAMETER2 = 0x6B00, - - APDU_WRONG_LE = 0x6C00, - - APDU_INS_INVALID = 0x6D00, - - APDU_CLA_INVALID = 0x6E00, - - APDU_TECHNICAL_ERROR = 0x6F00, - - - // other error codes depend on card OS - APDU_NO_ICC = 0x64A1, - APDU_PROTOCOL_ERROR = 0x64A8, - - APDU_NO_AC_RIGHT = 0x6982, - APDU_PIN_LOCKED = 0x6983, - APDU_PIN_FORMAT_ERROR = 0x6984, - - APDU_OBJECT_NOT_FOUND = 0x6A88, - - APDU_KEYGEN_FAILED = 0x6F83, // ACOS - - - // JavaCardOS - APDU_MORE_DATA_AVAILABLE = 0x6310, - APDU_APPLET_SELECTION_FAILED = 0x6999, - APDU_PIN_FAILED = 0x69C0, - APDU_ASSERT = 0x6FFF, - APDU_ASSERT_NOTRANSACTION = 0x6FFE, - }; - - enum ProtocolType - { - PROTOCOL_UNDEFINED = 0x00000, // There is no active protocol. - PROTOCOL_T0 = 0x00001, // T=0 is the active protocol. - PROTOCOL_T1 = 0x00002, // T=1 is the active protocol. - PROTOCOL_RAW = 0x10000 // Raw is the active protocol. - }; - - enum DispositionType - { - LEAVE_CARD = 0, // Don't do anything special. - RESET_CARD = 1, // Reset the card. - UNPOWER_CARD = 2, // Power down the card. - EJECT_CARD = 3 // Eject the card. - }; - - inline bool APDUSUCCESS(word sw1sw2) - { - return sw1sw2 == act::APDU_OK - || sw1sw2 == act::APDU_OK1; - } - - // extract - template - inline word apdu_response(const ExceptionT& e) - { - return word(e.code() & APDU_RESPONSE_MASK); - } - - // LengthInfo - struct LengthInfo; - typedef LengthInfo VerifyInfo; - - class ISlot; - class ISCardSM; - - // --------------------------------------------------------------------------- - class ISCardAccess - : public IRefCounted - , public ISynchronize - { - public: - virtual ~ISCardAccess() - { } - - virtual long GetProtocol() const = 0; - virtual void SetProtocol(long protocol) = 0; - - virtual ulong GetTimeout() const = 0; - virtual bool SetTimeout(ulong timeout_msec) = 0; - - virtual void Open() = 0; - virtual void Close() = 0; - virtual void ResetCard() = 0; - virtual long CancelCardOperation() = 0; - - virtual void BeginTransaction() = 0; - virtual void EndTransaction(DispositionType disposition = LEAVE_CARD) = 0; - virtual ulong GetTransactionDepth() const = 0; - - virtual const ISlot* GetSlot() const = 0; - - virtual word SendCard(const Blob& cmd, Blob& response, ushort response_len = RESPONSE_MAXLEN) = 0; - - virtual Blob GetResponse() const = 0; - virtual Blob& GetResponse(Blob& response) const = 0; - - virtual word Send(const Blob& cmd) = 0; - virtual word Send(const Blob& header, const Blob& data) = 0; - virtual word Send(const Blob& header, const Blob& data, byte le) = 0; - - // Extended APDU - virtual word SendX(const Blob& header, const Blob& data) = 0; - virtual word SendX(const Blob& header, const Blob& data, ushort le) = 0; - - // Secure Pin Entry - virtual word SendVerifyToReader(const Blob& apdu, const VerifyInfo& info) = 0; - - // Secure Messaging - virtual ISCardSM* GetSM() const = 0; - virtual void SetSM(ISCardSM* sm) = 0; - }; - -} // namespace act - -#endif // ACT_ISCardAccess_h diff --git a/actlibrary/MacOSX-10.5-x86_64/Release/include/actISCardOS.h b/actlibrary/MacOSX-10.5-x86_64/Release/include/actISCardOS.h deleted file mode 100644 index 53f2d62..0000000 --- a/actlibrary/MacOSX-10.5-x86_64/Release/include/actISCardOS.h +++ /dev/null @@ -1,262 +0,0 @@ -// --------------------------------------------------------------------------- -// Name: actISCardOS.h -// Product: cv act library -// Purpose: The class ISCardOS accesses the card operating system -// -// Copyright: (c) 2002 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -// -// Autor: Dr. Xiangdong Wang (XWG) -// Date: 03/21/2002 -// --------------------------------------------------------------------------- - -#ifndef ACT_ISCardOS_h -#define ACT_ISCardOS_h - -#include "actBlob.h" -#include "actTokenBase.h" - -#include "actITokenPIN.h" -#include "actITokenConfig.h" -#include "actITokenInitializer.h" - -#include "actIRefCounted.h" -#include "actIAccessCondition.h" - -namespace act -{ - class IKey; - class IEMSAAlg; - class ITokenFile; - class ISCardAccess; - class ISCardOSBehavior; - class IKeyDerivation; - - class EFDIR; - - const FIDType FID_EF_DIR = 0x2F00; - const FIDType FID_EF_ATR = 0x2F01; - - // - // ISO 7816-4 - enum SCardFileType - { - BINARY = 0x01, - LINEAR_FIXED = 0x02, - LINEAR_TLV = 0x05, - LINEAR_VARIABLE = 0x04, - CYCLIC_FIXED = 0x06, - DF = 0x38 - }; - - // - // ISO 7816-4 - enum SCardRecordMode - { - ABSOLUTE_MODE = 0x04 - }; - - // - // ISO 7816-4 - enum SCardSelectType - { - MFType = 0x00, - DFType = 0x01, - EFType = 0x02, - AIDType = 0x04, - PathType = 0x08 - }; - - enum SCardSelectMode - { - FCI = 0x00, // FCI template - FCP = 0x04, // FCP template - FMD = 0x08, // FMD template - NoData = 0x0c, // No response data - }; - - enum SCardError - { - SCARD_SUCCESS = 0, - SCARD_FUNCTION_NOT_SUPPORTED = -1, - SCARD_FUNCTION_FAILED = -2 - }; - - // - // ISCardOS - class ISCardOS - : public IRefCounted - , public IAcConverter - { - public: - virtual ~ISCardOS() { } - - // ISCardOS - virtual ISCardOS* Clone() const = 0; - - virtual bool IsMoC() = 0; - virtual const char* GetName() const = 0; - virtual Blob GetSerialNumber() const = 0; // hardware serial number - virtual Blob GetCardId(unsigned short fid_card_id) = 0; - virtual Blob GetCardCF(unsigned short fid_card_cf) = 0; - - virtual ISCardAccess* GetAccess() const = 0; - - virtual Blob ComputeDigitalSignature(const Blob& data, int mode = SIGN_DATA) = 0; - virtual Blob ComputeDigitalSignature(IEMSAAlg* emsa, int mode = SIGN_DATA) = 0; - virtual Blob Encipher(const Blob& plaintext) = 0; - virtual Blob Decipher(const Blob& encrypted_data) = 0; - virtual Blob AgreeKey(const Blob& pubkey) = 0; - - virtual void ComputeECDigitalSignature(const Blob& data, Blob& signature) = 0; - - virtual Blob SelectFile(const int filetype, const char* filepath) = 0; // return file control information - virtual Blob SelectFile(const int filetype, const Blob& filepath) = 0; // return file control information - virtual Blob SelectFile(const int filetype, FIDType fid) = 0; // return file control information - virtual Blob SelectApp(const Blob& aid, SCardSelectMode mode = NoData) = 0; - - // EF.DIR - virtual EFDIR* GetEFDIR(ushort fid = FID_INVALID) = 0; - - virtual int GetEFSize(FIDType fid) = 0; - virtual int GetEFSize(const Blob& filepath, Blob& fci) = 0; - virtual void GetFCI(FIDType fid, Blob& fci) = 0; - virtual Blob GetFCIValue(const Blob& fci, const byte tag) = 0; - virtual byte GetFileInfo(const Blob& fc_data, unsigned short& ef_size, size_t& num_of_records) = 0; - - // select and read binary - virtual Blob ReadBinary(const char* filepath) = 0; - virtual Blob ReadBinary(const Blob& filepath) = 0; - virtual Blob ReadBinary(FIDType fid) = 0; - - // read/update binary, file is selected, file size is known - virtual Blob ReadSelectedBinary(size_t file_size, unsigned short offset = 0) = 0; - virtual void UpdateSelectedBinary(const Blob& data, unsigned short offset = 0) = 0; - - // select and update binary - virtual void UpdateBinary(const Blob& filepath, const Blob& data, unsigned short offset = 0) = 0; - virtual void UpdateBinary(FIDType fid, const Blob& data, unsigned short offset = 0) = 0; - - // read binary with XL-APDUs - virtual Blob ReadBinaryX(const char* filepath) = 0; - virtual Blob ReadBinaryX(const Blob& filepath) = 0; - virtual Blob ReadBinaryX(FIDType fid) = 0; - virtual Blob ReadSelectedBinaryX(size_t file_size, unsigned short offset = 0) = 0; - - // update binary with XL-APDUs - virtual void UpdateBinaryX(const Blob& filepath, const Blob& data, unsigned short offset = 0) = 0; - virtual void UpdateBinaryX(FIDType fid, const Blob& data, unsigned short offset = 0) = 0; - virtual void UpdateSelectedBinaryX(const Blob& data, unsigned short offset = 0) = 0; - - // record read/write (file must be selected) - virtual Blob ReadRecord(byte mode) = 0; // p2 - virtual Blob ReadRecord(byte rec_id, byte mode) = 0; // p1, p2 - virtual void UpdateRecord(const Blob& data, byte rec_id, byte mode) = 0; // data, p1, p2 - virtual void AppendRecord(const Blob& data, byte ef_id = 0) = 0; // data, p2 - - // record write (includes file selection and resize) - virtual void UpdateRecord(const Blob& filepath, const Blob& data, byte rec_id, byte mode) = 0; - virtual void AppendRecord(const Blob& filepath, const Blob& data) = 0; - - virtual void DeleteEF(const Blob& fid) = 0; - virtual void DeleteEF(FIDType fid) = 0; - - virtual void CreateEF(const Blob& fcp) = 0; - virtual void CreateEF(const Blob& fid, unsigned short len, bool secure = false) = 0; - virtual void CreateEF(FIDType fid, unsigned short len, bool secure = false) = 0; - - virtual void CreateEF_TLV(FIDType fid, unsigned short len, unsigned short num_of_records = 1) = 0; - virtual void CreateEF_TLV(const Blob& fid, unsigned short len, unsigned short num_of_records = 1) = 0; - - virtual unsigned short GetOSFileOffset() const = 0; - - // get/put dat - virtual Blob GetData(ushort tag, ushort le = 0) const = 0; // INS=CA - virtual void PutData(ushort tag, const Blob& data) = 0; // INS=DA - - // MSE/PSO functions - virtual void ManageSecurityEnvironment(byte p1, byte p2, const Blob& data = Blob()) = 0; - virtual void PerformSecurityOperation(Blob& response, byte p1, byte p2, const Blob& data, bool chaining = false) = 0; - virtual void PerformSecurityOperationX(Blob& response, byte p1, byte p2, const Blob& data) = 0; // explicit extended APDU - - // ISO authentication functions - virtual void ExternalAuthenticate(byte key_id, const Blob& response, bool odd_INS = false) = 0; // INS=82/83, P1=00, P2=key_id - virtual Blob InternalAuthenticate(byte key_id, const Blob& challenge, bool odd_INS = false) = 0; // INS=88/89, P1=00, P2=key_id - virtual Blob MutualAuthenticate(byte key_id, const Blob& auth_data, bool odd_INS = false) = 0; // INS=82/83, P1=00, P2=key_id - virtual Blob GeneralAuthenticate(byte key_id, const Blob& auth_data, bool chaining = false, bool odd_INS = false) = 0; // INS=86/87, P1=00, P2=key_id - - virtual void ResetRetryCounter(byte p1, byte p2, const Blob& data) = 0; - virtual void Verify(byte p1, byte p2, const Blob& data, bool odd_INS = false) = 0; // INS=20/21 - - // random functions - virtual Blob GetChallenge(byte le = byte(8)) const = 0; - virtual Blob GetRandom(const unsigned long count) const = 0; - - // token type / config - virtual ProfileType GetProfileType(bool refresh = false) = 0; - - virtual void SetTokenConfig(ITokenConfig* tkcfg) = 0; - virtual ITokenConfig* GetTokenConfig() const = 0; - - // set/get behavior - virtual void SetBehavior(ISCardOSBehavior* behave) = 0; - virtual ISCardOSBehavior* GetBehavior() = 0; - - // access rights - virtual void SetAccessRights(const Blob& access_rights) = 0; - virtual void SetAccessRights(move_from access_rights) = 0; - virtual void SetExplicitRights(IAccessCondition* ac, size_t ac_cnt = 1) = 0; - - virtual bool HasExplicitRights() const = 0; - - virtual Blob GetAccessRights() = 0; - virtual IAccessCondition* GetAccessRights(const Blob& fci) = 0; - virtual Blob GetAccessRights(ACSCardObjType ac_obj_type, bool tagged) const = 0; - - // selected path - virtual void SetSelectedPath(ITokenFile* selected_path) const = 0; - virtual ITokenFile* GetSelectedPath() const = 0; - - // key derivation - virtual void SetKeyDerivation(IKeyDerivation* key_derivation) = 0; - virtual IKeyDerivation* GetKeyDerivation() const = 0; - - // key handling - virtual void GenerateRSAKeyPair(int key_id, size_t key_size, // in bits - Blob& pubkey) = 0; - - virtual void ImportRSAKeyPair(int key_id, const Blob& prime_p, - const Blob& prime_q, const Blob& priv_exp, Blob& pubkey) = 0; - - virtual void GenerateECKeyPair(Blob& pubkey) = 0; - - virtual void GenerateECKeyPair(int key_id, const Blob& curve_oid, - const Blob& curve_param, Blob& pubkey) = 0; - - virtual void ImportECKeyPair(int key_nr, const Blob& curve_oid, - const Blob& curve_param, const Blob& privkey, const Blob& pubkey) = 0; - - virtual void ImportDESKey(int key_id, const Blob& keyblob) = 0; - - virtual void DeletePrivateKeyObj(FIDType fid) = 0; - virtual void DeleteECPrivateKeyObj(FIDType fid) = 0; - virtual void DeleteBlockCipherKeyObj(FIDType fid) = 0; - virtual void SelectKey(int key_id) = 0; - - // authentication functions - virtual Blob ComputeResponse(const Blob& auth_key, const Blob& challenge) const = 0; - virtual void UpdateExternalAuthenticateKey(byte key_id, const Blob& auth_key) = 0; - - virtual void ResetSecurityStatus() = 0; - virtual SecStatus GetSecurityStatus(byte obj_ref, Blob& context) const = 0; - - // token initialization - virtual void SetDefaultLabel(move_from label) = 0; - virtual ITokenInitializer* GetTokenInitializer() = 0; - }; - -} // namespace act - -#endif // ACT_ISCardOS_h diff --git a/actlibrary/MacOSX-10.5-x86_64/Release/include/actISCardOSBehavior.h b/actlibrary/MacOSX-10.5-x86_64/Release/include/actISCardOSBehavior.h deleted file mode 100644 index da9c27c..0000000 --- a/actlibrary/MacOSX-10.5-x86_64/Release/include/actISCardOSBehavior.h +++ /dev/null @@ -1,79 +0,0 @@ -// --------------------------------------------------------------------------- -// Name: actISCardOSBehavior.h -// Product: cv act library -// Purpose: ISCardOSBehavior interface, encapsulates CardOS specific logic -// for security operations. -// -// Copyright: (c) 2002-2008 cv cryptovision GmbH all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -// -// Autor: Markus Tesche -// Date: 06/03/2008 -// --------------------------------------------------------------------------- - -#ifndef ACT_ISCardOSBehavior_h -#define ACT_ISCardOSBehavior_h - -#include "actIRefCounted.h" - -namespace act -{ - class Blob; - class IEMSAAlg; - class ISCardOS; - class ITokenPIN; - - enum OSBehavior - { - NONE_BEHAVIOR = 0x00000000, - - // algorithm behaviors - SIGN_BEHAVIOR = 0x00000001, - VERIFY_BEHAVIOR = 0x00000002, - DECRYPT_BEHAVIOR = 0x00000004, - ENCRYPT_BEHAVIOR = 0x00000008, - AGREEMENT_BEHAVIOR = 0x00000010, - ALGORITHM_BEHAVIOR_MASK = 0x000000FF, - - // key behaviors - GENERATE_KEY_BEHAVIOR = 0x00000100, - IMPORT_KEY_BEHAVIOR = 0x00000200, - DELETE_PRIVKEY_BEHAVIOR = 0x00000400, - KEY_BEHAVIOR_MASK = 0x0000FF00, - - // PIN behaviors - VERIFY_PIN_BEHAVIOR = 0x00010000, - CHANGE_PIN_BEHAVIOR = 0x00020000, - SET_PIN_BEHAVIOR = 0x00040000, - UNLOCK_PIN_BEHAVIOR = 0x00080000, - PIN_BEHAVIOR_MASK = 0x00FF0000 - }; - - // - // ISCardOSBehavior - class ISCardOSBehavior : public IRefCounted - { - public: - virtual bool Supports(int behavior) const throw() = 0; - - virtual Blob ComputeDigitalSignature(ISCardOS* os, const Blob& data, int mode) = 0; - virtual Blob ComputeDigitalSignature(ISCardOS* os, IEMSAAlg* emsa, int mode) = 0; - virtual Blob Encipher(ISCardOS* os, const Blob& plaintext) = 0; - virtual Blob Decipher(ISCardOS* os, const Blob& encrypted_data) = 0; - virtual Blob AgreeKey(ISCardOS* os, const Blob& pubkey) = 0; - - virtual void GenerateRSAKeyPair(ISCardOS* os, byte key_num, size_t key_size) = 0; - virtual void ImportRSAKeyPair(ISCardOS* os, int key_id, const Blob& prime_p, const Blob& prime_q, - const Blob& priv_exp, Blob& pubkey) = 0; - virtual void DeletePrivateKeyObj(ISCardOS* os, unsigned short fid) = 0; - - virtual void doVerifyPinCmd(const ITokenPIN* token_pin, const Blob& pin_value) = 0; - virtual void doChangePinCmd(const ITokenPIN* token_pin, const Blob& oldnew_value) = 0; - virtual void doSetPinValueCmd(const ITokenPIN* token_pin, const Blob& newpin_value) = 0; - virtual void UnlockPin(const ITokenPIN* token_pin, const Blob& new_pin) = 0; - }; - -} // namespace act - -#endif // ACT_ISCardOSBehavior_h diff --git a/actlibrary/MacOSX-10.5-x86_64/Release/include/actISignatureKey.h b/actlibrary/MacOSX-10.5-x86_64/Release/include/actISignatureKey.h deleted file mode 100644 index 2538580..0000000 --- a/actlibrary/MacOSX-10.5-x86_64/Release/include/actISignatureKey.h +++ /dev/null @@ -1,32 +0,0 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actISignatureKey.h -// Product: cv act library -// Purpose: The interface ISignatureKey enables access to the aggregated -// EMSA-object of the SignatureKeys. -// -// Copyright: (c) 2000 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_ISignatureKey_h -#define ACT_ISignatureKey_h - -#include "actIKey.h" - -namespace act -{ - class IEMSAAlg; - - class ISignatureKey : public IKey - { - public: - virtual void SetEncoder(IEMSAAlg* padding) = 0; - virtual const IEMSAAlg* GetEncoder() const = 0; - virtual IEMSAAlg* GetEncoder() = 0; - }; - -} // namespace act - -#endif // ACT_ISignatureKey_h diff --git a/actlibrary/MacOSX-10.5-x86_64/Release/include/actISlot.h b/actlibrary/MacOSX-10.5-x86_64/Release/include/actISlot.h deleted file mode 100644 index b3a2efd..0000000 --- a/actlibrary/MacOSX-10.5-x86_64/Release/include/actISlot.h +++ /dev/null @@ -1,82 +0,0 @@ -// --------------------------------------------------------------------------- -// Name: actISlot.h -// Product: cv act library -// Purpose: The class ISlot manages the Tokens -// -// Copyright: (c) 2002 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -// -// Autor: Dr. Xiangdong Wang (XWG) -// Date: 03/26/2002 -// --------------------------------------------------------------------------- - -#ifndef ACT_ISlot_h -#define ACT_ISlot_h - -#include "actBasics.h" -#include "actBlob.h" - -#include "actIRefCounted.h" -#include "actISynchronize.h" -#include "actIEventMonitoring.h" - -namespace act -{ - class IToken; - class ITokenConfig; - class ISCardOS; - class ISCardAccess; - class ISubsystem; - - // --------------------------------------------------------------------------- - class ISlot - : public IRefCounted - , public ISynchronize - , public IEventMonitoring - { - protected: - virtual ~ISlot() { } - - public: - virtual ISlot* Clone() const = 0; - - virtual bool IsTokenPresent() const = 0; - virtual const char* GetName() const = 0; - virtual ISubsystem* GetSystem() const = 0; - - virtual Blob GetATR() const = 0; - virtual Blob GetHistoricalBytes() const = 0; - - virtual ISCardOS* CreateOS(const Blob& historical_bytes = Blob()) = 0; - virtual IToken* CreateToken(ISCardOS* os = 0) = 0; - virtual ISCardAccess* CreateAccess() = 0; - - virtual void SetTokenConfig(ITokenConfig* tkcfg) = 0; - - virtual bool HasSecurePinEntry(ISCardAccess* ac = 0) const = 0; - virtual bool HasSecurePinChange(ISCardAccess* ac = 0) const = 0; - - virtual void SetParam(paramid_t id,int val) = 0; - virtual int GetParam(paramid_t id) const = 0; - }; - - // --------------------------------------------------------------------------- - struct ATRCardInfo - { - const char* name; - const char* atr; - const char* atr_mask; - }; - - // --------------------------------------------------------------------------- - void InitCardInfoMap(const ATRCardInfo* mapCardInfo); - const ATRCardInfo* GetATRCardInfo(const Blob& atr); - const char* GetOSName(const Blob& atr); - Blob GetHistoricalBytes(const Blob& atr); - bool GetATRStructInfo(const Blob& atr, size_t& his_pos, size_t& his_len, bool& has_tck); - -} // namespace act - -#endif // ACT_ISlot_h diff --git a/actlibrary/MacOSX-10.5-x86_64/Release/include/actISlotMonitor.h b/actlibrary/MacOSX-10.5-x86_64/Release/include/actISlotMonitor.h deleted file mode 100644 index 358abc0..0000000 --- a/actlibrary/MacOSX-10.5-x86_64/Release/include/actISlotMonitor.h +++ /dev/null @@ -1,39 +0,0 @@ -// --------------------------------------------------------------------------- -// Name: actISlotMonitor.h -// Product: cv act library -// Purpose: The class SlotMonitor notifies the slot events -// -// Copyright: (c) 2002 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -// -// Autor: Dr. Xiangdong Wang (XWG) -// Date: 05/27/2002 -// --------------------------------------------------------------------------- - -#ifndef ACT_ISlotMonitor_h -#define ACT_ISlotMonitor_h - -#include "actIRefCounted.h" - -namespace act -{ - class IEventHandler; - - // - // ISlotMonitor - class ISlotMonitor : public IRefCounted - { - public: - virtual void Stop() = 0; - virtual void Start(IEventHandler* cmd) = 0; - virtual bool Interrupted() const = 0; - - protected: - virtual void Run() = 0; - }; - -} // namespace act - -#endif // ACT_ISlotMonitor_h diff --git a/actlibrary/MacOSX-10.5-x86_64/Release/include/actIStreamCipherKey.h b/actlibrary/MacOSX-10.5-x86_64/Release/include/actIStreamCipherKey.h deleted file mode 100644 index 7282893..0000000 --- a/actlibrary/MacOSX-10.5-x86_64/Release/include/actIStreamCipherKey.h +++ /dev/null @@ -1,39 +0,0 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actIStreamCipherKey.h -// Product: cv act library -// Purpose: The class IStreamCipherKey extends the interface of the class IKey -// and supports the peculiarities of symmetric keys. -// -// -// Copyright: (c) 2001 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_IStreamCipherKey_h -#define ACT_IStreamCipherKey_h - -#include "actIKey.h" - -namespace act -{ - class IStreamCipher; - class IDerivator; - - class IStreamCipherKey : public IKey - { - public: - - virtual void SetCipher(IStreamCipher* cipher) = 0; - virtual const IStreamCipher* GetCipher() const = 0; - virtual IStreamCipher* GetCipher() = 0; - - virtual void SetDerivator(IDerivator* derive) = 0; - virtual const IDerivator* GetDerivator() const = 0; - virtual IDerivator* GetDerivator() = 0; - }; - -} //namespace act - -#endif // ACT_IStreamCipherKey_h diff --git a/actlibrary/MacOSX-10.5-x86_64/Release/include/actISubsystem.h b/actlibrary/MacOSX-10.5-x86_64/Release/include/actISubsystem.h deleted file mode 100644 index 731b4cd..0000000 --- a/actlibrary/MacOSX-10.5-x86_64/Release/include/actISubsystem.h +++ /dev/null @@ -1,54 +0,0 @@ -// --------------------------------------------------------------------------- -// Name: actISubsystem.h -// Product: cv act library -// Purpose: The class ISubsystem detects and manages the slots -// -// Copyright: (c) 2002 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -// -// Autor: Dr. Xiangdong Wang (XWG) -// Date: 03/26/2002 -// --------------------------------------------------------------------------- - -#ifndef ACT_ISubsystem_h -#define ACT_ISubsystem_h - -#include "actBasics.h" -#include "actIRefCounted.h" -#include "actISynchronize.h" -#include "actIEventMonitoring.h" - -namespace act -{ - class ISlot; - class ITokenConfig; - - // - // ISubsystem - class ISubsystem - : public IRefCounted - , public ISynchronize - , public IEventMonitoring - { - public: - virtual void Refresh() = 0; - virtual bool Disconnect() = 0; - virtual bool Install(size_t port) = 0; - virtual const char* GetName() const = 0; - - // SlotList - virtual int GetSlotNumber() const = 0; - virtual const ISlot* GetSlot(int pos) const = 0; - virtual ISlot* CreateSlot(const char* name) = 0; - - virtual void SetTokenConfig(ITokenConfig* tkcfg) = 0; - - protected: - virtual ~ISubsystem() { } - }; - -} // namespace act - -#endif // ACT_ISubsystem_h diff --git a/actlibrary/MacOSX-10.5-x86_64/Release/include/actISubsystemConfig.h b/actlibrary/MacOSX-10.5-x86_64/Release/include/actISubsystemConfig.h deleted file mode 100644 index 165ac6e..0000000 --- a/actlibrary/MacOSX-10.5-x86_64/Release/include/actISubsystemConfig.h +++ /dev/null @@ -1,38 +0,0 @@ -// --------------------------------------------------------------------------- -// Name: actISubsystemConfig.h -// Product: cv act library -// Purpose: The Subsystem configuration. -// -// Copyright: (c) 2006 cv cryptovision GmbH -// all rights reserved. -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -// -// Autor: Markus Tesche (MTE) -// Date: 1/12/2006 -// --------------------------------------------------------------------------- - -#ifndef ACT_ISubsystemConfig_h -#define ACT_ISubsystemConfig_h - -#include "actIRefCounted.h" - -namespace act -{ - class ISubsystem; - - // - // ISubsystemConfig - class ISubsystemConfig : public IRefCounted - { - public: - // Returns the Subsystem name. - virtual const char* GetName() const = 0; - - // Configures the Subsystem, if fails throws an Exception. - virtual void ConfigureSubsystem(ISubsystem*) = 0; - }; - -} // namespace act - -#endif // ACT_ISubsystemConfig_h diff --git a/actlibrary/MacOSX-10.5-x86_64/Release/include/actISynchronize.h b/actlibrary/MacOSX-10.5-x86_64/Release/include/actISynchronize.h deleted file mode 100644 index c8f1ef6..0000000 --- a/actlibrary/MacOSX-10.5-x86_64/Release/include/actISynchronize.h +++ /dev/null @@ -1,43 +0,0 @@ -////////////////////////////////////////////////////////////////////////// -// Name: actISynchronize.h -// Product: cv act library -// Purpose: Implemented by types supporting multithreading synchronization. -// -// Copyright: (c) 2010 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -// -// Autor: Markus Tesche -// Date: 07/27/2010 -////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_ISynchronize_h -#define ACT_ISynchronize_h - -namespace act -{ - class Handle; - - // - // ISynchronize - class ISynchronize - { - protected: - virtual ~ISynchronize() { } - - public: - virtual void Lock() = 0; - virtual void Unlock() = 0; - virtual long LockCount() const = 0; - - virtual const Handle& syncHandle() const = 0; - }; - - inline void Lock(ISynchronize& object) { object.Lock(); } - inline void Unlock(ISynchronize& object) { object.Unlock(); } - inline long LockCount(const ISynchronize& object) { return object.LockCount(); } - -} // namespace act - -#endif // ACT_ISynchronize_h diff --git a/actlibrary/MacOSX-10.5-x86_64/Release/include/actIToken.h b/actlibrary/MacOSX-10.5-x86_64/Release/include/actIToken.h deleted file mode 100644 index 15d0ac2..0000000 --- a/actlibrary/MacOSX-10.5-x86_64/Release/include/actIToken.h +++ /dev/null @@ -1,165 +0,0 @@ -// --------------------------------------------------------------------------- -// Name: actIToken.h -// Product: cv act library -// Purpose: The IToken interface represents the profile and the application -// supported by a token. -// -// Copyright: (c) 2002 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -// -// Autor: Dr. Xiangdong Wang (XWG) -// Date: 03/22/2002 -// --------------------------------------------------------------------------- - -#ifndef ACT_IToken_h -#define ACT_IToken_h - -#include "actBlob.h" -#include "actBasics.h" -#include "actTokenBase.h" - -#include "actISynchronize.h" -#include "actITokenFileCache.h" -#include "actIAccessCondition.h" - -namespace act -{ - class IKey; - class IEMSAAlg; - class ICertificate; - class IAuthIdRef; - class ITokenPIN; - class ITokenAuth; - class ITokenFile; - class ITokenFileMap; - class ITokenConfig; - class ITokenKeyIterator; - class ISecurityManager; - class ITokenAuthIterator; - - struct CertEntry - { - int usage; - Blob certblob; - }; - - // - // ITokenView - class ITokenView - { - protected: - virtual ~ITokenView() { } - - public: - virtual IToken* GetToken() = 0; - - virtual ITokenView* GetPrev() const = 0; - virtual ITokenView* GetNext() const = 0; - - virtual ITokenFile* GetPath() const = 0; - virtual ITokenFileMap* GetFileMap() const = 0; - - virtual bool Equals(const ITokenView* other) const = 0; - - // Divide view into partitions, based on type[PATH|PIN] - virtual size_t Split(paramid_t type) = 0; - virtual ITokenView* SetDefault() = 0; - }; - - // - // IToken - class IToken - : public IRefCounted - , public IAcConverter - , public ISynchronize - { - protected: - virtual ~IToken() { } - - public: - virtual ITokenView* GetView() const = 0; - virtual ITokenConfig* GetConfig() const = 0; - virtual ITokenFile* GetTokenFile(const Blob& path) = 0; - - virtual int GetStatus() const = 0; - virtual int GetType() const = 0; - virtual ProfileType GetProfileType() = 0; - virtual const char* GetName() const = 0; - - // Returns the serial number, which may (!) be empty or equal the hardware serial! - virtual Blob GetSerialNumber() const = 0; - virtual Blob GetCardholderName() const = 0; - virtual Blob GetRandom(const unsigned long count) const = 0; - virtual void SetSeed(const Blob& seed) = 0; - - // Generate a new key - virtual IKey* NewKey(int key_type) = 0; - - // Add key to token, takes ownership - even on exception! - virtual void AddKey(IKey* key) = 0; - virtual bool RemoveKey(IKey* key) = 0; - - // Write/Import a (soft) key to token - virtual IKey* WriteKey(const IKey* key) = 0; - - // Get a token key instance from matching certificate - virtual IKey* CreateKey(const Blob& cert) const = 0; - virtual IKey* CreateKey(const ICertificate* cert) const = 0; - - // Key Objects - virtual int GetKeyNumber() const = 0; - virtual IKey* GetKey(int pos) const = 0; - virtual ITokenKeyIterator* GetKeyIterator(KeyType type, const Blob& authId = Blob()) = 0; - - // Certificate Objects - virtual int GetCertificateNumber() const = 0; - virtual CertEntry GetCertificate(int pos) const = 0; - - // Write/Delete a certificate (corresponding to a key) to token - virtual void WriteCertificate(const Blob& cert, IKey* key = 0) = 0; - virtual void DeleteCertificate(const Blob& cert, IKey* key = 0) = 0; - - // Authentication Objects - virtual ITokenAuth* GetAuth() const = 0; - virtual ISecurityManager* SecurityManager(int authManagerType) = 0; - virtual ITokenAuthIterator* GetAuthIterator(int type, const Blob& authId = Blob()) = 0; - - virtual int GetPinNumber() const = 0; - virtual ITokenPIN* GetPin(const IAuthIdRef* authIdRef, const ITokenFile* location) const = 0; - virtual ITokenPIN* GetPin(int pos, const ITokenFile* location) const = 0; - virtual ITokenPIN* GetPin(const char* pin_name) const = 0; - virtual ITokenPIN* GetPin(const Blob& authId) const = 0; - - virtual ITokenPIN* GetUserPin() const = 0; - virtual ITokenPIN* GetSOPin() const = 0; - virtual void VerifyUserPin(const Blob& pinvalue) = 0; - virtual void ChangeUserPin(const Blob& oldpin, const Blob& newpin) = 0; - virtual void UnlockUserPin(const Blob& so_pin, const Blob& new_userpin) = 0; - virtual void VerifySOPin(const Blob& pinvalue) = 0; - virtual void ChangeSOPin(const Blob& oldpin, const Blob& newpin) = 0; - - virtual bool ResetSecurityState() const = 0; - - // Token specific - virtual void SelectDataPath() const = 0; // TODO: MTE: To be removed soon! - virtual ISCardOS* GetOS() const = 0; // TODO: MTE: To be removed soon! - - // Delete a key pair from token with matching token key or certificate - virtual void DeleteKeyPair(const IKey* key) = 0; - virtual void DeleteKeyPair(const Blob& cert) = 0; - - virtual bool IsPKCS15() const = 0; - virtual bool IsReadOnly() const = 0; - virtual bool LoginRequired() const = 0; - - virtual bool IsLocked() const = 0; - - virtual Blob GetCardId() const = 0; - virtual Blob GetCardCF() const = 0; - }; - -} // namespace act - -#endif // ACT_IToken_h diff --git a/actlibrary/MacOSX-10.5-x86_64/Release/include/actITokenAuth.h b/actlibrary/MacOSX-10.5-x86_64/Release/include/actITokenAuth.h deleted file mode 100644 index cd6d150..0000000 --- a/actlibrary/MacOSX-10.5-x86_64/Release/include/actITokenAuth.h +++ /dev/null @@ -1,139 +0,0 @@ -// --------------------------------------------------------------------------- -// Name: actITokenAuth.h -// Product: cv act library -// Purpose: The ITokenAuth interface represents a IToken authentication state -// using one the ITokenPIN objects owned by a token. -// -// Copyright: (c) 2007 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -// -// Autor: Markus Tesche (MTE) -// Date: 11/09/2007 -// --------------------------------------------------------------------------- - -#ifndef ACT_ITokenAuth_h -#define ACT_ITokenAuth_h - -#include "actBlob.h" -#include "actBasics.h" -#include "actIRefCounted.h" - -namespace act -{ - class AuthInfo; - - class IToken; - class ITokenPIN; - class ITokenFile; - class IAuthIdRef; - class IAuthConstrained; - - enum AuthConstrainedType - { - AUTH_CONSTRAINED_ALWAYS = 0, - AUTH_CONSTRAINED_NOT, - AUTH_CONSTRAINED_AND, - AUTH_CONSTRAINED_OR, - }; - - // - // IAuthFactory - class IAuthFactory - { - public: - virtual IAuthIdRef* CreateAuthIdRef(const Blob& authId, ITokenFile* path, - byte constrained_mode = AUTH_CONSTRAINED_ALWAYS) = 0; - - virtual ITokenPIN* CreatePin(const AuthInfo& ai, byte objRef, ITokenFile* path, - IAuthIdRef* authIdRef, IAuthIdRef* parentAuthIdRef) = 0; - - // TODO: MTE: deprecated, use CreatePin(const AuthInfo&...) instead - virtual ITokenPIN* CreatePin(int type, int usage, byte objRef, int minLen, - int maxLen, IAuthIdRef* authIdRef, const char* name = 0) = 0; - - protected: - virtual ~IAuthFactory() { } - }; - - - // - // IAuthIdRef - class IAuthIdRef : public IRefCounted - { - public: - virtual byte GetAuthIdByte() const = 0; - virtual const Blob& GetAuthId() const = 0; - virtual IAuthConstrained* GetAuthConstrained() = 0; - - virtual bool Equals(const Blob& authId) const = 0; - }; - - // - // IAuthIdRefIterator - class IAuthIdRefIterator : public IRefCounted - { - public: - virtual void Reset() = 0; - virtual IAuthIdRef* Next() = 0; - }; - - - // - // ITokenAuthIterator - class ITokenAuthIterator : public IRefCounted - { - public: - virtual void Reset(ITokenFile* parent = 0) = 0; - virtual ITokenPIN* Next() = 0; - }; - - // - // ITokenAuth - class ITokenAuth : public IRefCounted - { - public: - virtual bool Login(ITokenPIN* auth_obj, const Blob& pin) = 0; - - virtual bool Logout() = 0; - virtual bool Logout(const ITokenPIN* auth_obj) = 0; - virtual bool LogoutEx(bool reset_security_state) = 0; - - virtual Blob GetChallenge(const ITokenPIN* auth_obj) = 0; - - virtual IToken* GetToken() const = 0; - virtual ITokenPIN* GetAuthenticated() const = 0; - virtual ITokenPIN* GetAuthenticated(size_t index) const = 0; - - virtual bool NeedsPINValue() const = 0; - virtual bool HasChallenge() const = 0; - virtual bool HasChallenge(const ITokenPIN* auth_obj) const = 0; - virtual bool IsAuthenticated(const ITokenPIN* auth_obj) const = 0; - virtual bool IsAuthenticated(bool verify_security_state = false) const = 0; - - /*! - * Clears the internal authentication state for given auth_obj. - * - * If auth_obj is not authenticated: - * - do nothing - * - return false - * - * If auth_obj is authenticated: - * - remove auth_obj from authenticated-list. - * - return true - * - * \note does NOT reset the card's authentication state! - * - * \param auth_obj \ref ITokenPIN - * \return true if succeeded, false if not - */ - virtual bool Invalidate(ITokenPIN* auth_obj) = 0; - virtual bool Select(const ITokenPIN* auth_obj, bool force) = 0; - - virtual ITokenAuthIterator* Iterator(int type, const Blob& authId = Blob()) const = 0; - }; - -} // namespace act - -#endif // ACT_ITokenAuth_h diff --git a/actlibrary/MacOSX-10.5-x86_64/Release/include/actITokenAuthOwner.h b/actlibrary/MacOSX-10.5-x86_64/Release/include/actITokenAuthOwner.h deleted file mode 100644 index c53eccc..0000000 --- a/actlibrary/MacOSX-10.5-x86_64/Release/include/actITokenAuthOwner.h +++ /dev/null @@ -1,39 +0,0 @@ -// --------------------------------------------------------------------------- -// Name: actITokenAuthOwner.h -// Product: cv act library -// Purpose: The ITokenAuthOwner interface is used by objects which requires -// authentication like token keys. -// -// Copyright: (c) 2008 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -// -// Autor: Markus Tesche -// Date: 08/10/2008 -// --------------------------------------------------------------------------- - -#ifndef ACT_ITokenAuthOwner_h -#define ACT_ITokenAuthOwner_h - -namespace act -{ - class ITokenPIN; - class IAuthIdRef; - - // - // ITokenAuthOwner - class ITokenAuthOwner - { - public: - virtual void SetPin(ITokenPIN* pin) = 0; - virtual ITokenPIN* GetPin() const = 0; - virtual IAuthIdRef* GetAuthIdRef() const = 0; - - protected: - virtual ~ITokenAuthOwner() { } - }; - -} // namespace act - -#endif // ACT_ITokenAuthOwner_h diff --git a/actlibrary/MacOSX-10.5-x86_64/Release/include/actITokenBlockCipher.h b/actlibrary/MacOSX-10.5-x86_64/Release/include/actITokenBlockCipher.h deleted file mode 100644 index 014efe1..0000000 --- a/actlibrary/MacOSX-10.5-x86_64/Release/include/actITokenBlockCipher.h +++ /dev/null @@ -1,45 +0,0 @@ -// --------------------------------------------------------------------------- -// Name: actITokenBlockCipher.h -// Product: cv act library -// Purpose: The interface ITokenBlockCipher encapsulates operations using a -// symmetric key stored on a secure token. -// -// Copyright: (c) 2008 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -// -// Autor: Markus Tesche -// Date: 05/15/2008 -// --------------------------------------------------------------------------- - -#ifndef ACT_ITokenBlockCipher_h -#define ACT_ITokenBlockCipher_h - -#include "actBlob.h" -#include "actIBlockCipher.h" - -namespace act -{ - class IToken; - class ITokenConfig; - - // - // ITokenBlockCipher - class ITokenBlockCipher : public IBlockCipher - { - public: - virtual ITokenBlockCipher* Clone() const = 0; - - virtual void Configure(ITokenConfig* tkcfg) = 0; - virtual Blob GetCipherName() const = 0; - virtual Blob GetLabel() const = 0; - - virtual int GetKeyNumber() const = 0; - - virtual IToken* GetToken() const = 0; - }; - -} // namespace act - -#endif // ACT_ITokenBlockCipher_h diff --git a/actlibrary/MacOSX-10.5-x86_64/Release/include/actITokenConfig.h b/actlibrary/MacOSX-10.5-x86_64/Release/include/actITokenConfig.h deleted file mode 100644 index cecaa7e..0000000 --- a/actlibrary/MacOSX-10.5-x86_64/Release/include/actITokenConfig.h +++ /dev/null @@ -1,60 +0,0 @@ -// --------------------------------------------------------------------------- -// Name: actITokenConfig.h -// Product: cv act library -// Purpose: IToken configuration. -// -// Copyright: (c) 2008 cv cryptovision GmbH -// all rights reserved. -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -// -// Autor: Markus Tesche -// Date: 11/07/2008 -// --------------------------------------------------------------------------- - -#ifndef ACT_ITokenConfig_h -#define ACT_ITokenConfig_h - -#include "actIParam.h" -#include "actIRefCounted.h" - -namespace act -{ - class ISCardOS; - class IToken; - class ITokenPIN; - class ITokenAuth; - class ITokenKey; - class ITokenBlockCipher; - class ITokenBlockCipherKey; - class ITokenFileMap; - class ITokenFileCache; - - // - // ITokenConfig - class ITokenConfig - : public IParam - , virtual public IRefCounted - { - public: - virtual ITokenConfig* Clone() const = 0; - - // Individual card detection - virtual bool IsSupported(ISCardOS* os) const = 0; - - // Configures the token, if fails throws an Exception - virtual void Configure(IToken* token) const = 0; - virtual void Configure(ITokenPIN* auth_obj) const = 0; - virtual void Configure(ITokenKey* key) const = 0; - virtual void Configure(ITokenBlockCipher* cipher) const = 0; - virtual void Configure(ITokenBlockCipherKey* key) const = 0; - - // Factory's for token helper objects - virtual ITokenAuth* CreateAuth(IToken* token) = 0; - virtual ITokenFileMap* CreateFileMap(const IToken* token) = 0; - virtual ITokenFileCache* CreateFileCache(IToken* token) = 0; - }; - -} // namespace act - -#endif // ACT_ITokenConfig_h diff --git a/actlibrary/MacOSX-10.5-x86_64/Release/include/actITokenExtension.h b/actlibrary/MacOSX-10.5-x86_64/Release/include/actITokenExtension.h deleted file mode 100644 index 784c418..0000000 --- a/actlibrary/MacOSX-10.5-x86_64/Release/include/actITokenExtension.h +++ /dev/null @@ -1,39 +0,0 @@ -// --------------------------------------------------------------------------- -// Name: actITokenExtension.h -// Product: cv act library -// Purpose: Interface ITokenExtension provides functionality to register extensions to -// IToken derived objects. -// -// Copyright: (c) 2008 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -// -// Autor: Markus Tesche -// Date: 12/02/2008 -// --------------------------------------------------------------------------- - -#ifndef ACT_ITokenExtension_h -#define ACT_ITokenExtension_h - -#include "actIRefCounted.h" - -namespace act -{ - class IToken; - - // - // ITokenExtension - class ITokenExtension : public IRefCounted - { - protected: - virtual ~ITokenExtension() { } - - public: - virtual void* GetCreatePtr() throw() = 0; - virtual bool Register(IToken* token) = 0; - }; - -} // namespace act - -#endif // ACT_ITokenExtension_h diff --git a/actlibrary/MacOSX-10.5-x86_64/Release/include/actITokenFile.h b/actlibrary/MacOSX-10.5-x86_64/Release/include/actITokenFile.h deleted file mode 100644 index 4f42757..0000000 --- a/actlibrary/MacOSX-10.5-x86_64/Release/include/actITokenFile.h +++ /dev/null @@ -1,71 +0,0 @@ -// --------------------------------------------------------------------------- -// Name: actITokenFile.h -// Product: cv act library -// Purpose: ITokenFile represents a simple smartcard file with path. -// -// Copyright: (c) 2008 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -// -// Autor: Markus Tesche -// Date: 09/02/2008 -// --------------------------------------------------------------------------- - -#ifndef ACT_TokenFile_h -#define ACT_TokenFile_h - -#include "actBlob.h" -#include "actIRefCounted.h" - -namespace act -{ - class ISCardOS; - - enum FILETYPE - { - UKType = -1 - }; - - // - // ITokenFile - class ITokenFile : public IRefCounted - { - public: - virtual ITokenFile* Clone() const = 0; - - virtual bool IsValid() const = 0; - - virtual bool Equals(const Blob& path) const = 0; - virtual bool Equals(const ISCardOS* os) const = 0; - virtual bool Equals(const ITokenFile* other) const = 0; - virtual bool IsParent(const ITokenFile* other, size_t* mismatch = 0) const = 0; - - virtual Blob& RefFCI() = 0; - virtual const Blob& GetFCI() const = 0; - - virtual Blob& RefAID() = 0; - virtual const Blob& GetAID() const = 0; - - virtual int GetFileType() const = 0; - virtual size_t GetFileLength() const = 0; - virtual const Blob& GetFilePath() const = 0; - virtual size_t GetFullLength() const = 0; - virtual size_t GetFullPath(Blob& path) const = 0; - - virtual ITokenFile* GetRelativeTo() const = 0; - virtual void SetRelativeTo(ITokenFile* parent) = 0; - virtual ITokenFile* MakeRelativeTo(ITokenFile* parent) = 0; - - virtual void SetFilePath(const Blob& filepath, int filetype) = 0; - virtual void SetFilePath(move_from filepath, int filetype) = 0; - - virtual const Blob& SelectApp(ISCardOS* os, int selectmode) = 0; - virtual const Blob& SelectFile(ISCardOS* os, int selectmode) = 0; - - virtual bool ProbeFilePath(ISCardOS* os, bool cut_non_existing) = 0; - }; - -} // namespace act - -#endif // ACT_TokenFile_h diff --git a/actlibrary/MacOSX-10.5-x86_64/Release/include/actITokenFileCache.h b/actlibrary/MacOSX-10.5-x86_64/Release/include/actITokenFileCache.h deleted file mode 100644 index 0991040..0000000 --- a/actlibrary/MacOSX-10.5-x86_64/Release/include/actITokenFileCache.h +++ /dev/null @@ -1,42 +0,0 @@ -// --------------------------------------------------------------------------- -// Name: actITokenFileCache.h -// Product: cv act library -// Purpose: Interface used for FID based binary cache. -// -// Copyright: (c) 2008 cv cryptovision GmbH -// all rights reserved. -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -// -// Autor: Markus Tesche -// Date: 11/07/2008 -// --------------------------------------------------------------------------- - -#ifndef ACT_ITokenFileCache_h -#define ACT_ITokenFileCache_h - -#include "actIRefCounted.h" - -#include - -namespace act -{ - class Blob; - class IToken; - - // - // ITokenFileCache - class ITokenFileCache : public IRefCounted - { - protected: - typedef std::map CacheMap; - - public: - virtual bool InitCache(IToken* token) = 0; - virtual Blob GetCache(const Blob& filepath) const = 0; - virtual void PutCache(const Blob& filepath, const Blob& memory) const = 0; - }; - -} // namespace act - -#endif // ACT_ITokenFileCache_h diff --git a/actlibrary/MacOSX-10.5-x86_64/Release/include/actITokenInitializer.h b/actlibrary/MacOSX-10.5-x86_64/Release/include/actITokenInitializer.h deleted file mode 100644 index 0de6aef..0000000 --- a/actlibrary/MacOSX-10.5-x86_64/Release/include/actITokenInitializer.h +++ /dev/null @@ -1,131 +0,0 @@ -// --------------------------------------------------------------------------- -// Name: actITokenInitializer.h -// Product: cv act library -// Purpose: ITokenInitializer interface declares common token profile initialization functionality. -// -// Copyright: (c) 2009 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -// -// Autor: Markus Tesche -// Date: 04/20/2009 -// --------------------------------------------------------------------------- - -#ifndef ACT_ITokenInitializer_h -#define ACT_ITokenInitializer_h - -#include "actBlob.h" -#include "actTokenBase.h" -#include "actIRefCounted.h" - -namespace act -{ - extern const byte PIN_PAD_CHAR; - - struct TIData - { - private: - TIData(const TIData&) throw(); - TIData& operator=(const TIData&) throw(); - - public: - TIData(const char* _profile_name = 0) - : profile_name(_profile_name) - , profile_type(PROFILE_UNKNOWN) - , retry_counter(3) - , pin_pad_byte(PIN_PAD_CHAR) - , enable_pin_padding(false) - , enable_pin_pce_so(false) - , enable_pin_pce_user(false) - , enable_minidriver(false) - , enable_minidriver_pnp(false) - , enable_biometric(false) - , enable_biometric_pins(false) - , load_only(false) - , load_package_MoC(false) - , load_package_2048(false) - , load_package_ecc(false) - { } - - Blob atr_historical_bytes; - Blob atr_historical_bytes_suffix; - Blob card_pin; - Blob so_pin; - Blob user_pin; - Blob serial_number; - Blob last_update_pin_utc; - Blob challenge_response_key; - Blob binary_data; - - const char* profile_name; - ProfileType profile_type; - - short retry_counter; - byte pin_pad_byte; - - bool enable_pin_padding; - bool enable_pin_pce_so; - bool enable_pin_pce_user; - bool enable_minidriver; - bool enable_minidriver_pnp; - bool enable_biometric; - bool enable_biometric_pins; - - bool load_only; - bool load_package_MoC; - bool load_package_2048; - bool load_package_ecc; - }; - - struct TITokenInfo - { - TITokenInfo(size_t pin_len_max, size_t pin_len_min, size_t _key_len_cr) - : serial_number_len(16) - , key_len_cr(_key_len_cr) - { - pin_len_max_admin = pin_len_max_so = pin_len_max_user = pin_len_max; - pin_len_min_admin = pin_len_min_so = pin_len_min_user = pin_len_min; - } - - size_t serial_number_len; - - size_t key_len_cr; - - size_t pin_len_max_admin; - size_t pin_len_max_so; - size_t pin_len_max_user; - - size_t pin_len_min_admin; - size_t pin_len_min_so; - size_t pin_len_min_user; - }; - - class ISCardOS; - class IProfileGenerator; - class ISCardCmdObserver; - - // - // ITokenInitializer - class ITokenInitializer : public IRefCounted - { - public: - virtual ISCardOS* GetOS() const= 0; - virtual const TITokenInfo& GetTokenInfo() const = 0; - virtual const ProfileType* GetSupportedProfileList() const = 0; - - virtual bool SupportsProfile(ProfileType profile_type) const = 0; - virtual void SetGenerator(IProfileGenerator* generator) = 0; - virtual void SetObserver(ISCardCmdObserver* observer) = 0; - - virtual bool EraseProfile(const Blob& card_pin) = 0; - virtual bool ExistProfile(bool& is_pkcs15, bool& requires_adminpin) = 0; - virtual void CreateProfile(TIData& data, ProfileType profile_type) = 0; - virtual void FinalizeProfile(TIData& data) = 0; - - virtual void PinChangeReminder(TIData& data, bool enable) = 0; - }; - -} // namespace act - -#endif // ACT_ITokenInitializer_h diff --git a/actlibrary/MacOSX-10.5-x86_64/Release/include/actITokenKey.h b/actlibrary/MacOSX-10.5-x86_64/Release/include/actITokenKey.h deleted file mode 100644 index 47e21bb..0000000 --- a/actlibrary/MacOSX-10.5-x86_64/Release/include/actITokenKey.h +++ /dev/null @@ -1,64 +0,0 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actITokenKey.h -// Product: cv act library -// Purpose: The interface ITokenKey enables access to a key stored in a secure token. -// -// Copyright: (c) 2003 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_ITokenKey_h -#define ACT_ITokenKey_h - -#include "actIRefCounted.h" -#include "actISignatureKey.h" -#include "actITokenAuthOwner.h" -#include "actITokenFileOwner.h" - -#include "actTokenBase.h" - -namespace act -{ - class IToken; - class ITokenConfig; - - // - // ITokenKeyIterator - class ITokenKeyIterator : public IRefCounted - { - public: - virtual void Reset(ITokenFile* parent = 0) = 0; - virtual IKey* Next() = 0; - }; - - // - // ITokenKey - class ITokenKey - : public ISignatureKey - , public ITokenAuthOwner - , public ITokenFileOwner - { - public: - virtual ITokenKey* Clone() const = 0; - - virtual KeyType GetType() const = 0; - virtual IToken* GetToken() const = 0; - virtual const char* GetName() const = 0; - virtual void Configure(ITokenConfig* tkcfg) = 0; - - virtual Blob GetCertificate() const = 0; - virtual IKey* GetPublicKey() const = 0; - - virtual void VerifyPin(const Blob& pin) = 0; - - virtual Blob GetID() const = 0; - virtual Blob GetSubject() const = 0; - - virtual ITokenKeyIterator* Iterator(KeyType type, const Blob& authId = Blob()) const = 0; - }; - -} // namespace act - -#endif // ACT_ITokenKey_h diff --git a/actlibrary/MacOSX-10.5-x86_64/Release/include/actITokenPIN.h b/actlibrary/MacOSX-10.5-x86_64/Release/include/actITokenPIN.h deleted file mode 100644 index 3da8440..0000000 --- a/actlibrary/MacOSX-10.5-x86_64/Release/include/actITokenPIN.h +++ /dev/null @@ -1,221 +0,0 @@ -// --------------------------------------------------------------------------- -// Name: actITokenPIN.h -// Product: cv act library -// Purpose: The class ITokenPIN defines the interfaces of the PIN operations -// -// Copyright: (c) 2002 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -// -// Autor: Dr. Xiangdong Wang (XWG) -// Date: 04/05/2002 -// --------------------------------------------------------------------------- - -#ifndef ACT_ITokenPIN_h -#define ACT_ITokenPIN_h - -#include "actBasics.h" -#include "actDate.h" -#include "actBlob.h" - -#include "actITokenAuth.h" -#include "actITokenFileOwner.h" -#include "actIRefCounted.h" - -#include "actTokenBase.h" - -namespace act -{ - enum PINType - { - UNKNOWN_PIN = 0x0000, - SO_PIN = 0x0001, - USER_PIN = 0x0002, - UNBLOCK_PIN = 0x0003, - - PIN_MASK = 0x000F, - - EXAUTH_PIN = 0x0010, - BIOMETRIC_PIN = 0x0020, - CERTBASED_PIN = 0x0040, - - BAC_PIN = 0x0100, - ICAO_PIN = 0x0200, - - EAC_PACE_PIN = 0x0400, - EAC_TA_PIN = 0x0800, - EAC_CA_PIN = 0x1000, - - PIN_TYPE_MASK = 0x7fff, - - AUTHENTICATED_PIN = 0x8000, // Current authenticated PIN - - // combined types - EXAUTH_SO_PIN = EXAUTH_PIN | SO_PIN, - EXAUTH_UNBLOCK_PIN = EXAUTH_PIN | UNBLOCK_PIN, - - BIOMETRIC_USER_PIN = BIOMETRIC_PIN | USER_PIN, - BIOMETRIC_SO_PIN = BIOMETRIC_PIN | SO_PIN, - - EAC_PACE_UNKNOWN_PIN = EAC_PACE_PIN | UNKNOWN_PIN, - EAC_PACE_SO_PIN = EAC_PACE_PIN | SO_PIN, - EAC_PACE_USER_PIN = EAC_PACE_PIN | USER_PIN, - EAC_PACE_UNBLOCK_PIN = EAC_PACE_PIN | UNBLOCK_PIN, - - EAC_TA_UNKNOWN_PIN = EAC_TA_PIN | UNKNOWN_PIN, - EAC_TA_USER_PIN = EAC_TA_PIN | USER_PIN, - - EAC_CA_UNKNOWN_PIN = EAC_CA_PIN | UNKNOWN_PIN, - EAC_CA_USER_PIN = EAC_CA_PIN | USER_PIN, - }; - - enum PINFlags - { - PIN_INITIALIZED = (1 << 0), - PIN_IS_LOCAL = (1 << 1), - PIN_CASE_SENSITIVE = (1 << 2), - PIN_CHANGE_DISABLED = (1 << 3), - PIN_UNBLOCK_DISABLED = (1 << 4), - PIN_DISABLE_ALLOWED = (1 << 5), - PIN_NEEDS_PADDING = (1 << 6), - PIN_NEEDS_UPDATE = (1 << 7), - PIN_REQUIRES_SM = (1 << 8), - PIN_REQUIRES_NO_DATA = (1 << 9), - PIN_REQUIRES_ENCRYPTION = (1 << 10), - PIN_CHANGE_REQUIRES_OLD = (1 << 11), - PIN_IS_DEFAULT = (1 << 12), // marks the one and only default pin - - PIN_FLAGS_MASK = (1 << 13) - 1, - - // combined flags - PIN_FLAGS = PIN_INITIALIZED | PIN_IS_LOCAL | PIN_CASE_SENSITIVE, - PIN_FLAGS_DEFAULT = PIN_IS_DEFAULT | PIN_FLAGS, - PIN_FLAGS_SO = PIN_INITIALIZED | PIN_IS_LOCAL | PIN_CASE_SENSITIVE | PIN_UNBLOCK_DISABLED, - PIN_FLAGS_EXAUTH = PIN_INITIALIZED | PIN_IS_LOCAL, - PIN_FLAGS_BIOMETRIC = PIN_INITIALIZED | PIN_IS_LOCAL, - PIN_FLAGS_CERTBASED = PIN_INITIALIZED | PIN_IS_LOCAL | PIN_REQUIRES_NO_DATA | PIN_CHANGE_DISABLED | PIN_UNBLOCK_DISABLED, - }; - - enum AuthDataEncoding - { - PIN_ENCODING_UNKNOWN = -1, - PIN_ENCODING_BINARY = 0, - PIN_ENCODING_ASCII_NUMERIC, - PIN_ENCODING_UTF8, - PIN_ENCODING_BCD, - PIN_ENCODING_HALF_NIBBLE_BCD, - PIN_ENCODING_ISO9564_1, - - PIN_ENCODING = PIN_ENCODING_ASCII_NUMERIC, - }; - - enum AuthId - { - AUTHID_INVALID = 0x00, - }; - - enum BioFinger - { - FINGER_UNKNOWN = 0, - FINGER_RIGHT_THUMB = 1, - FINGER_RIGHT_INDEX = 2, - FINGER_RIGHT_MIDDLE = 3, - FINGER_RIGHT_RING = 4, - FINGER_RIGHT_LITTLE = 5, - FINGER_LEFT_THUMB = 6, - FINGER_LEFT_INDEX = 7, - FINGER_LEFT_MIDDLE = 8, - FINGER_LEFT_RING = 9, - FINGER_LEFT_LITTLE = 10 - }; - - class IAuthIdRef; - class ITokenFile; - class IToken; - class ISCardOS; - class AuthInfo; - - // - // ITokenPIN - class ITokenPIN - : public IRefCounted - , public ITokenFileOwner - { - public: - virtual ITokenPIN* Clone() const = 0; - virtual bool Equals(const ITokenPIN* other) const = 0; - virtual int Compare(const ITokenPIN* other) const = 0; - - virtual int GetType() const = 0; - virtual int GetUsage() const = 0; - virtual byte GetObjRef() const = 0; - virtual IToken* GetToken() const = 0; - virtual const char* GetName() const = 0; - virtual AuthDataEncoding GetEncoding() const = 0; - - virtual const AuthInfo* GetInfo() const = 0; - virtual void SetInfo(const AuthInfo* ai) = 0; - - virtual void SetDefault(bool is_default) = 0; - virtual bool IsDefault() const = 0; - - virtual bool IsInitialized() const = 0; - virtual bool IsAuthenticated() const = 0; - - virtual bool NeedsUpdate() const = 0; - virtual bool NeedsPINValue() const = 0; - - virtual bool GetLengthInfo(LengthInfo& info) const = 0; - virtual bool CheckPinLength(const Blob& pin) const = 0; - virtual bool GetLastChange(Date& date, bool& supported) const = 0; - - virtual void VerifyPin(const Blob& pin) = 0; - - // NOTE: ChangePin preserves the authentication state if successfull - // TODO: MTE: Describe in detail! - virtual void ChangePin(const Blob& oldpin, const Blob& newpin) = 0; - - // NOTE: UnlockPin preserves the authentication state if successfull - // TODO: MTE: Describe in detail! - virtual void UnlockPin(ITokenPIN* so, const Blob& pin, const Blob& newpin) = 0; - - // NOTE: SetPinValue preserves the authentication state if successfull - // TODO: MTE: Describe in detail! - virtual void SetPinValue(ITokenPIN* so, const Blob& so_pin, const Blob& newpin) = 0; - - virtual void Select(ISCardOS* os = 0) const = 0; - - virtual ITokenPIN* GetParent() const = 0; - - virtual IAuthIdRef* GetAuthIdRef() const = 0; - virtual IAuthIdRef* GetParentAuthIdRef() const = 0; - - // Bio extensions - virtual byte GetFinger() const = 0; - virtual bool GetBioHeader(Blob& bioheader) = 0; - - // ExternalAuth Key extensions - virtual Blob GetChallenge() const = 0; - virtual void ResetChallenge() = 0; - virtual Blob ComputeResponse(const Blob& auth_key, const Blob& challenge) const = 0; - - // Certificate based authentication extensions - virtual void SetCHAT(const Blob& chat) = 0; - virtual void SetCHAT(move_from chat) = 0; - virtual Blob GetCHAT() const = 0; - - protected: - // SCard Functionality - virtual Blob doGetChallenge() const = 0; - virtual void doResetChallenge() const = 0; - virtual void doVerify(const Blob& pin) const = 0; - virtual SecStatus doGetSecurityStatus(Blob& context) const = 0; - - private: - friend class TokenAuth; - }; - -} // namespace act - -#endif // ACT_ITokenPIN_h diff --git a/actlibrary/MacOSX-10.5-x86_64/Release/include/actIX509Certificate.h b/actlibrary/MacOSX-10.5-x86_64/Release/include/actIX509Certificate.h deleted file mode 100644 index 85d6907..0000000 --- a/actlibrary/MacOSX-10.5-x86_64/Release/include/actIX509Certificate.h +++ /dev/null @@ -1,46 +0,0 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actIX509Certificate.h -// Product: cv act library -// Purpose: The abstract class IX509Certificate enables access to a certificate, -// e.g. its public key and the corresponding validity. -// -// Copyright: (c) 2000 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_IX509Certificate_h -#define ACT_IX509Certificate_h - -#include "actBasics.h" -#include "actDate.h" -#include "actICertificate.h" -#include "actX509Extension.h" - -namespace act -{ - class IKey; - class Blob; - - class IX509Certificate : public ICertificate - { - public: - - virtual void SetValidityNotBefore(const Date &vnbefore ) =0; - virtual void SetValidityNotAfter(const Date &vnafter ) =0; - virtual void GetValidityNotBefore(Date &vnbefore ) const =0; - virtual void GetValidityNotAfter(Date &vnafter ) const =0; - - virtual bool CheckValidity(const Date& date = Date() ) const =0; - - virtual X509Extension GetExtension(const char* oid) const=0; - virtual X509Extension GetExtension(const act::Blob& oidbl) const=0; - virtual void SetExtension(const X509Extension &ext)=0; - virtual X509Extension GetNextExtension(const X509Extension& ext) const=0; - virtual void RemoveExtension(const char* oid)=0; - }; -} // namespace act - -#endif - diff --git a/actlibrary/MacOSX-10.5-x86_64/Release/include/actInit.h b/actlibrary/MacOSX-10.5-x86_64/Release/include/actInit.h deleted file mode 100644 index 36f0099..0000000 --- a/actlibrary/MacOSX-10.5-x86_64/Release/include/actInit.h +++ /dev/null @@ -1,578 +0,0 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actInit.h -// Product: cv act library -// Purpose: initialize the map entries of the objects -// -// Copyright: (c) 2007 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -// remarks: -// declare NO_SMARTCARD: no smartcard support required. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef actInit_h -#define actInit_h - -#include "actEnv.h" -#include "actKeyKit.h" -#include "actKeyReg.h" -#include "actBlockCipherKit.h" -#include "actBlockCipherReg.h" -#include "actBlockCipherModeReg.h" -#include "actBlockCipherModeKit.h" -#include "actStreamCipherKit.h" -#include "actStreamCipherReg.h" -#include "actHashKit.h" -#include "actHashReg.h" -#include "actEMSAReg.h" -#include "actEMSAKit.h" -#include "actDerivatorReg.h" -#include "actDerivatorKit.h" -#include "actPaddingReg.h" -#include "actPaddingKit.h" -#include "actCertificateReg.h" -#include "actCertificateKit.h" -#include "actX509KeyReg.h" -#include "actX509SignReg.h" -#include "actX509SignHashReg.h" -#include "actX509Kit.h" -#include "actDefaultRNG.h" -#include "actRNGKit.h" - -#ifndef NO_SMARTCARD -// NOTE: To Enable support for additional smartcards / profiles define: -// ACT_SUPPORT_TCOS_NETKEY30 -# include "actSCardOSReg.h" -# include "actSCardOSKit.h" -# include "actSCardTokenReg.h" -# include "actSCardTokenKit.h" -# include "actSubsystemReg.h" -# include "actSubsystemKit.h" -# include "actSlotMonitorReg.h" -# include "actSlotMonitorKit.h" -# include "actTokenExtensionReg.h" -# include "actTokenExtensionKit.h" -# include "actTokenAuthProtocolReg.h" -# include "actTokenAuthProtocolKit.h" -# include "actJCAppletKit.h" -# include "actJCAppletReg.h" -# include "actPKCS15BehaviorReg.h" -# include "actPKCS15BehaviorKit.h" -# include "actProfileGeneratorReg.h" -# include "actProfileGeneratorKit.h" -#endif // NO_SMARTCARD - -namespace act -{ - // ------------------------------------------------------------------------ - const KeyMapEntry KeyMap[] = - { - { "BlockCipher", CreateBlockCipherKey }, - { "StreamCipher", CreateStreamCipherKey }, - - { "IES", CreateIESKey }, - { "DSA", CreateDSAKey }, - { "RSA", CreateRSAKey }, - { "ECDSA", CreateECDSAKey }, - { "ECGDSA", CreateECGDSAKey }, - - { "DH", CreateDHKey }, - { "ECDH", CreateECDHKey }, - - { "HashMAC", CreateHashMACKey }, - { "CBCMAC", CreateCBCMACKey }, - { "SecretKeyMAC", CreateSecretKeyMACKey }, - { "RetailCFBMAC", CreateRetailCFBMACKey }, - { "iMAC3", Create_iMAC3Key }, // ISO9797-1 M2 Alg 3 MAC8 - { "CMAC", CreateCMACKey }, // NIST 800-38B CMAC - { 0, 0 } - }; - - // ------------------------------------------------------------------------ - const BlockCipherMapEntry BlockCipherMap[] = - { - { "AES", CreateRijndael }, - { "DES", CreateDES }, - { "TripleDES", CreateTripleDES }, - { "CAST128", CreateCAST128 }, - { "BlowFish", CreateBlowFish }, - { "Mars", CreateMars }, - { "Serpent", CreateSerpent }, - { "Rijndael", CreateRijndael }, - { "TwoFish", CreateTwoFish }, - { "RC2", CreateRC2 }, - //{ "RC6", CreateRC6 }, - { 0, 0 } - }; - - // ------------------------------------------------------------------------ - const BlockCipherModeMapEntry BlockCipherModeMap[] = - { - { "ECB", CreateECBMode }, - { "CBC", CreateCBCMode }, - { "CFB", CreateCFBMode }, - { "OFB", CreateOFBMode }, - { "CTR", CreateCTRMode }, - { 0, 0 } - }; - - // ------------------------------------------------------------------------ - const StreamCipherMapEntry StreamCipherMap[] = - { - { "ARC4", CreateARC4 }, - { 0, 0 } - }; - - // ------------------------------------------------------------------------ - const HashMapEntry HashMap[] = - { - { "MD2", CreateMD2 }, - { "MD4", CreateMD4 }, - { "MD5", CreateMD5 }, - { "RIPEMD128", CreateRipemd128 }, - { "RIPEMD160", CreateRipemd160 }, - { "SHA0", CreateSHA0 }, - { "SHA1", CreateSHA1 }, - { "SHA224", CreateSHA224 }, - { "SHA256", CreateSHA256 }, - { "SHA384", CreateSHA384 }, - { "SHA512", CreateSHA512 }, - { "DummyHash", CreateDummyHash }, - { 0, 0 } - }; - - // ------------------------------------------------------------------------ - const EMSAMapEntry EMSAMap[] = - { - { "EMSA1", CreateEMSA1 }, - { "PKCS1V1_5EMSA", CreatePKCS1V1_5EMSA }, - { "TLS_EMSA", CreateTLS_EMSA}, - { "PKCS1_PSS_EMSA", CreatePKCS1_PSS_EMSA }, - { "DummyEMSA", CreateDummyEMSA }, // Used for "Hash on Card" - { 0, 0 } - }; - - // ------------------------------------------------------------------------ - const DerivatorMapEntry DerivatorMap[] = - { - { "KDF1", CreateKDF1 }, // IEEE P1363 KDF1 - { "KDF2", CreateX963KDF }, // IEEE P1363 KDF2 (= X963KDF) - { "X963KDF", CreateX963KDF }, // ANSI X9.63 KDF - { "PBKDF1", CreatePBKDF1 }, // PKCS#5 PBKDF1 - { "PBKDF2", CreatePBKDF2 }, // PKCS#5 PBKDF2 - { "EACKDF", CreateEACKDF }, // EAC 2.01, BSI TR-03110 A.2.3 - { "SessionKDF", CreateEACKDF }, // BSI TR-03111 (= EACKDF) - { 0, 0 } - }; - - // ------------------------------------------------------------------------ - const PaddingMapEntry PaddingMap[] = - { - { "PKCS5", CreatePKCS5Pad }, - { "RSAES", CreatePKCS1V1_5EMEPad }, - { "ISO", CreateOneAndZerosPad }, - { "ISO9796", CreateISO9796Pad }, - { "NOPAD", CreateNoPad }, - { 0, 0 } - }; - - // ------------------------------------------------------------------------ - const CertificateMapEntry CertificateMap[] = - { - { "X509", CreateX509Certificate }, - { "CV", CreateCVCertificate }, - { 0, 0 } - }; - - // ------------------------------------------------------------------------ - const CRLMapEntry CRLMap[] = - { - { "X509", CreateX509CRL }, - { 0, 0 } - }; - - // ------------------------------------------------------------------------ - const X509KeyMapEntry X509KeyMap[] = - { - { "1.2.840.113549.1.1.1", CreateRSAKey, X509ToRSA, RSAToX509 }, - { "2.5.8.1.1", CreateRSAKey, X509ToRSA, RSAToX509 }, - { "1.2.840.10040.4.1", CreateDSAKey, X509ToDSA, DSAToX509 }, - { "1.3.14.3.2.20", CreateDSAKey, X509ToDSA, DSAToX509 }, - { "1.3.14.3.2.12", CreateDSAKey, X509ToDSA, DSAToX509 }, // secude DSA oid - { "1.2.840.10046.2.1", CreateDHKey, X509ToDH, DHToX509 }, - { "1.2.840.10045.2.1", CreateECDSAKey, X509ToECDSA, ECDSAToX509 }, - { "1.2.840.10045.2.1", CreateECDHKey, X509ToECDSA, ECDSAToX509 }, - { 0, 0, 0, 0 } - }; - - // ------------------------------------------------------------------------ - const X509SignMapEntry X509SignMap[] = - { - { CreateRSAKey, RSAGetAlgID, RSASetAlgID }, - { CreateDSAKey, DSAGetAlgID, DSASetAlgID }, - { CreateECDSAKey, ECDSAGetAlgID, ECDSASetAlgID }, - { CreateDHKey, DHGetAlgID, DHSetAlgID }, - { CreateECDHKey, ECDHGetAlgID, ECDHSetAlgID }, - { 0, 0, 0 } - }; - - // ------------------------------------------------------------------------ - const X509SignHashMapEntry X509SignHashMap[] = - { - // RSA - { "1.2.840.113549.1.1.2", "MD2", "RSA" }, // md2WithRSAEncryption - { "1.2.840.113549.1.1.3", "MD4", "RSA" }, // md4WithRSAEncryption - { "1.2.840.113549.1.1.4", "MD5", "RSA" }, // md5WithRSAEncryption - { "1.2.840.113549.1.1.5", "SHA1", "RSA" }, // shaWithRSAEncryption - { "1.3.14.3.2.29", "SHA1", "RSA" }, - { "1.2.840.113549.1.1.11", "SHA256", "RSA" }, // sha256WithRSAEncryption - { "1.2.840.113549.1.1.12", "SHA384", "RSA" }, // sha384WithRSAEncryption - { "1.2.840.113549.1.1.13", "SHA512", "RSA" }, // sha512WithRSAEncryption - { "1.2.840.113549.1.1.14", "SHA224", "RSA" }, // sha224WithRSAEncryption - { "1.3.36.3.3.1.2", "RIPEMD160", "RSA" }, - { "1.3.36.3.3.1.3", "RIPEMD128", "RSA" }, - // DSA - { "1.2.840.10040.4.3", "SHA1", "DSA" }, - { "1.3.14.3.2.28", "SHA1", "DSA" }, - { "1.3.14.3.2.27", "SHA1", "DSA" }, // secude DSA oid - // ECDSA - { "1.2.840.10045.4.1", "SHA1", "ECDSA" }, // ecdsa-with-Sha1 - { "1.2.840.10045.2.1", "SHA1", "ECDSA" }, // ecdsa-with-Sha1 (deprecated) - { "1.2.840.10045.4.3.1", "SHA224", "ECDSA" }, // ecdsa-with-Sha224 - { "1.2.840.10045.4.3.2", "SHA256", "ECDSA" }, // ecdsa-with-Sha256 - { "1.2.840.10045.4.3.3", "SHA384", "ECDSA" }, // ecdsa-with-Sha384 - { "1.2.840.10045.4.3.4", "SHA512", "ECDSA" }, // ecdsa-with-Sha512 - // DH - { "1.3.6.1.5.5.7.6.4", "SHA1", "DH" }, // DH-POP - // ECDH - { "1.2.840.10045.2.1", "SHA1", "ECDH" }, // "ECDH-POP" - { 0, 0, 0 } - }; - -#ifndef NO_SMARTCARD - // ------------------------------------------------------------------------ - const SCardOSMapEntry SCardOSMap[] = - { - // NOTE: Only lower case historical bytes ! - /* - { "0064050a020131809000", CreateTCOS }, // NetKey (TCOS V2R1) - { "00640560020331809000", CreateTCOS }, // NetKey (TCOS V2R3) - { "0064057b020331809000", CreateTCOS }, // NetKey (TCOS V2R?) - { "00640514020231809000", CreateTCOS }, // etrust (TCOS V2R2) - { "00640561020331809000", CreateTCOS }, // TCOS USB Crypt Token - { "0068d276000028ff051e3180009000", CreateMicardOS }, // Micardo P2.1 - { "4d4943323045", CreateMicardo20E }, // Micardo EC 2.0 - { "0068d276000028ff05233180009000", CreateMicardo23E }, // Micardo EC 2.3 - */ - - // ACOS - { "454d56203033202006", CreateACOS_D01 }, // Austria Card ACOS EMV-D01 - { "44492030324d", CreateACOS_D01 }, // Austria Card ACOS EMV-D01 contactless - { "455041000000000228505900000000", CreateACOS_A04 }, // Austria Card ACOS EMV-A04/A05 - { "455041000000000000000000000000", CreateACOS_A04 }, // Austria Card ACOS EMV-A04/A05 - - // CardOS - { "c802", CreateCardOS_M4 }, // CardOS M4.0 siemens profile - { "c803", CreateCardOS_M4 }, // CardOS M4.01 siemens profile - { "c804", CreateCardOS_M4 }, // CardOS M4.01a siemens profile - { "4d346376", CreateCardOS_M4 }, // CardOS M4.01(a) cv profile - { "4d3463765f4d", CreateCardOS_M4_MoC }, // CardOS M4.01_M cv profile - { "4d3463765f45", CreateCardOS_M4_ECC }, // CardOS M4.01_E cv profile - { "c806", CreateCardOS_V4 }, // CardOS V4.2 - { "c807", CreateCardOS_V4 }, // CardOS V4.3 - { "c808", CreateCardOS_V4 }, // CardOS V4.3B - { "c809", CreateCardOS_V4 }, // CardOS V4.2B - { "c80a", CreateCardOS_V4 }, // CardOS V4.2B DI - { "0000c80a3381b100", CreateCardOS_V4 }, // CardOS V4.2B DI contactless - { "c80b", CreateCardOS_V4 }, // CardOS V4.2C - { "c80d", CreateCardOS_V4 }, // CardOS V4.4 - { "56346376", CreateCardOS_V4 }, // CardOS V4.2/4.3/4.3B cv profile - { "563432626376", CreateCardOS_V4 }, // CardOS V4.2b cv profile - { "5634326244496376", CreateCardOS_V4 }, // CardOS V4.2b DI cv profile - { "563432636376", CreateCardOS_V4 }, // CardOS V4.2c cv profile - { "5634346376", CreateCardOS_V4 }, // CardOS V4.4 cv profile - { "563463765f45", CreateCardOS_V4_ECC }, // CardOS V4.3B ECC cv profile - { "006b0508c806012101434e53103180", CreateCardOS_V4 }, // CardOS V4.2 CNS profile, 2004.02.20 - { "006b0508c807012101434e53103180", CreateCardOS_V4 }, // CardOS V4.3 CNS profile, 2004.02.20 - { "006b0508c808012101434e53103180", CreateCardOS_V4 }, // CardOS V4.3B CNS profile, 2004.02.20 - { "006b0508c806011101434e53103180", CreateCardOS_V4 }, // CardOS V4.2 CNS profile, 2005.03.11 - { "006b0508c807011101434e53103180", CreateCardOS_V4 }, // CardOS V4.3 CNS profile, 2005.03.11 - { "006b0508c808011101434e53103180", CreateCardOS_V4 }, // CardOS V4.3B CNS profile, 2005.03.11 - { "006b0508c808011101434e53103180", CreateCardOS_V4 }, // CardOS V4.3B CNS profile, 2005.03.11 - { "4b53776973735369676e", CreateCardOS_V4 }, // CardOS V4.3B/V4.4 ATR by SwissSign - - // STARCOS - //{ "53504b32339000", CreateStarCOS_3_0}, // G&D STARCOS SPK 2.3 - { "80670412b0030300008101", CreateStarCOS_3_0 }, // G&D STARCOS 3.0 (creational state) - { "80670412b0030300008105", CreateStarCOS_3_0 }, // G&D STARCOS 3.0 - { "80670412b003030000", CreateStarCOS_3_0 }, // G&D STARCOS 3.0 contactless - { "80655343010d067394211b8101", CreateStarCOS_3_0 }, // G&D STARCOS 3.1 (creational state) - { "80655343010d067394211b8105", CreateStarCOS_3_0 }, // G&D STARCOS 3.1 - { "0064051eb20031b0739621db019000", CreateStarCOS_3_2 }, // G&D STARCOS 3.2 (creational state) - { "0064051eb20031b0739621db059000", CreateStarCOS_3_2 }, // G&D STARCOS 3.2 - - // TCOS -#ifdef ACT_SUPPORT_TCOS_NETKEY30 - { "00640411030131c073f701d0009000", CreateTCOS_3_0 }, // NetKey (TCOS 3.0) -#endif - // JavaCards - { "8073002113574a544861314a00", CreateJavaCardOS_2_2 }, // G&D SmartCafe Expert 64 (cfg1) - { "8073002113574a544861314700", CreateJavaCardOS_2_2 }, // G&D SmartCafe Expert 64 (cfg2) - { "8073002113574a544861314800", CreateJavaCardOS_2_2 }, // G&D SmartCafe Expert 64 (cfg3) - { "8073002113574a544861314b00", CreateJavaCardOS_2_2 }, // G&D SmartCafe Expert 64 (cfg4) - { "8073002113574a544861314c00", CreateJavaCardOS_2_2 }, // G&D SmartCafe Expert 64 (cfg5) - { "8073002113574a544861314900", CreateJavaCardOS_2_2 }, // G&D SmartCafe Expert 64 (cfg8) - { "404d4f504153530000000000000000", CreateJavaCardOS_2_2 }, // G&D SmartCafe Expert 64 (XMC2) - - { "534653452d43583332322d56180308", CreateJavaCardOS_2_1_1 },// G&D SmartCafe Expert 2.0 - { "0073c84013009000", CreateJavaCardOS_2_2_1 }, // G&D SmartCafe Expert 3.0 / 3.1 / 3.1 contactless - { "4138004133b1020073c840130090", CreateJavaCardOS_2_2_1 }, // G&D SmartCafe Expert 3.1 contactless (SCM SDI010, Firmware V6.28) - { "4138004133b10073c84013009000", CreateJavaCardOS_2_2_1 }, // G&D SmartCafe Expert 3.1 contactless (SCM SDI010, Firmware V6.32) - { "73667465206364313434", CreateJavaCardOS_2_2_1 }, // G&D SmartCafe Expert 3.2 PIV 144 KB - { "736674652D6364303830", CreateJavaCardOS_2_2_1 }, // G&D SmartCafe Expert 3.2 PIV 80 KB - { "73667465", CreateJavaCardOS_2_2_1 }, // G&D SmartCafe Expert 3.2 (sfte) - { "736674652d6e66", CreateJavaCardOS_2_2_1 }, // G&D SmartCafe Expert 3.2 (sfte-nf) - { "73c840130090009b", CreateJavaCardOS_2_2_1 }, // G&D SmartCafe Expert 3.2 USB Token - { "736674652063643038302d6e66", CreateJavaCardOS_2_2_1 }, // G&D SmartCafe Expert 3.2 (sfte cd080-nf) - { "53462d3443432d3031", CreateJavaCardOS_2_2_1 }, // G&D SmartCafe Expert 5.0 - { "53504b323544499000", CreateJavaCardOS_2_2_1 }, // G&D Mobile Security Card 3.x - { "4d5343", CreateJavaCardOS_2_2_1 }, // G&D Mobile Security Card 3.x - - //{ "4a434f503230", CreateJavaCardOS_2_1 }, // JCOP 20 - { "4a434f503231563232", CreateJavaCardOS_2_2_1 }, // JCOP 21 V2.2 - { "4a434f50323156323331", CreateJavaCardOS_2_2_1 }, // JCOP 21 V2.3.1 - { "4a434f503331563231", CreateJavaCardOS_2_1 }, // JCOP 31 V2.1 - { "4a434f503331563232", CreateJavaCardOS_2_2_1 }, // JCOP 31 V2.2 - { "4a434f50333156323331", CreateJavaCardOS_2_2_1 }, // JCOP 31 V2.3.1 - { "4a434f503331563234", CreateJavaCardOS_2_2_1 }, // JCOP 31 V2.4 - //{ "4a434f5033313336474454", CreateJavaCardOS_2_2_1 }, // JCOP 31 36GDT - { "4a434f503431563232", CreateJavaCardOS_2_2_1 }, // JCOP 41 V2.2 / V2.2 contactless - { "4128001133b04a434f5034315632", CreateJavaCardOS_2_2_1 }, // JCOP 41 V2.2 contactless (SCM SDI010, Firmware V6.32) - { "4a434f50343156323231", CreateJavaCardOS_2_2_1 }, // JCOP 41 V2.2.1 - { "4138001133b04a434f5034315632", CreateJavaCardOS_2_2_1 }, // JCOP 41 V2.2.1 contactless - { "4a434f50343156323331", CreateJavaCardOS_2_2_1 }, // JCOP 41 V2.3.1 - { "4a434f50343156323332", CreateJavaCardOS_2_2_1 }, // JCOP 41 V2.3.2 - { "4a434f503431563234", CreateJavaCardOS_2_2_1 }, // JCOP 41 V2.4 - { "4a434f5076323431", CreateJavaCardOS_2_2_2 }, // JCOP v2.4.1 - { "434f50343156323231ff", CreateJavaCardOS_2_2_1 }, // JCOP 41 V2.2.1 (IDptoken 200) - { "4a434f507632343262657461", CreateJavaCardOS_2_2_2 }, // JCOP v2.4.2 beta - { "0073c84000009000", CreateJavaCardOS_2_2_1 }, // JCOP V2.3.2 - - { "4a434f50563231", CreateJavaCardOS_2_1 }, // JCOP V2.1 - { "4a434f50563232", CreateJavaCardOS_2_2_1 }, // JCOP V2.2 - { "4a434f5056323231", CreateJavaCardOS_2_2_1 }, // JCOP V2.2.1 - { "4a434f50563233", CreateJavaCardOS_2_2_1 }, // JCOP V2.3 - { "4a434f5056323331", CreateJavaCardOS_2_2_1 }, // JCOP V2.3.1 - { "4a434f5056323332", CreateJavaCardOS_2_2_1 }, // JCOP V2.3.2 - { "4a434f50563234", CreateJavaCardOS_2_2_1 }, // JCOP V2.4 - { "4a434f5056323431", CreateJavaCardOS_2_2_2 }, // JCOP V2.4.1 - { "4a434f5056323432", CreateJavaCardOS_2_2_2 }, // JCOP V2.4.2 - - { "4a434f5033314d34", CreateJavaCardOS_2_2_1 }, // Austriacard JCOP31M4 - { "4a434f5032315632325f", CreateJavaCardOS_2_2_1 }, // AustriaCard JCOP 21 V2.2, T0, T1 - { "4a434f5033315632325f", CreateJavaCardOS_2_2_1 }, // AustriaCard JCOP 31 V2.2, T0, T1 - { "4a434f5034315632345f", CreateJavaCardOS_2_2_1 }, // AustriaCard JCOP 41 V2.4, T0, T1 - { "4a434f50563234314143", CreateJavaCardOS_2_2_1 }, // AustriaCard JCOP V2.4.1, T0, T1 - - { "5257414e44415f4944", CreateJavaCardOS_2_2_1 }, // AustriaCard JCOP V2.4.1 'RWANDA_ID' - { "44654c61527565", CreateJavaCardOS_2_2_1 }, // AustriaCard JCOP V2.4.1 'DeLaRue' - - { "803180664090a4561b1183019000", CreateJavaCardOS_2_2_1 }, // Infineon jTOP 20ID - - { "80318065b0831148c883009000", CreateJavaCardOS_2_2_1 }, // Gemalto TOP IM GX4 - //{ "80318065b08301029083009000", CreateJavaCardOS_2_2_1 }, // Gemalto I-DENTITY CARD - { "8065b08301017483009000", CreateJavaCardOS_2_1_1 }, // Gemplus GemXpresso Pro R3 - { "8065b08301037483009000", CreateJavaCardOS_2_1_1 }, // Gemplus GemXpresso Pro R3 - //{ "8065a20101013d72d643", CreateJavaCardOS_2_1_1 }, // Gemplus GemXpresso Pro R3 E32 PK - - { "0031c06477e30300829000", CreateJavaCardOS_2_1_1 }, // Oberthur CosmopolIC 64K v5.2D - - { "8059017f4849444a43327300011b", CreateJavaCardOS_2_2_2 }, // HID Crescendo C700 (JC2s) ("Standard JavaCard, T0/1, Platform Default Packages") - { "804f0ca0000003060a001d00000000", CreateJavaCardOS_2_2_2 },// HID Crescendo C700 (JC2s) contactless - - { ACT_ISO7816OS_NAME, CreateISO7816OS }, // use act::ISO7816OS as fallback - { 0, 0 } - }; - - // ------------------------------------------------------------------------ - const SCardTokenMapEntry SCardTokenMap[] = - { - // Passport - { IsEPAProfile, CreateEPAProfile }, - - // PKCS#15 - { IsM4PKCS15Profile, CreateM4PKCS15Profile }, - { IsV4PKCS15ECProfile, CreateV4PKCS15ECProfile }, - { IsV4PKCS15Profile, CreateV4PKCS15Profile }, - { IsJCPKCS15ECProfile, CreateJCPKCS15ECProfile }, - { IsJCPKCS15Profile, CreateJCPKCS15Profile }, - { IsACOSPKCS15Profile, CreateACOSPKCS15Profile }, - { IsStarCOSPKCS15Profile, CreateStarCOSPKCS15Profile }, - - // ACOS - { IsACOScvProfile, CreateACOScvProfile }, - - // CardOS - { IsM4cvMoCProfile, CreateM4cvMoCProfile }, - { IsM4cvECProfile, CreateM4cvECProfile }, - { IsV4cvECProfile, CreateV4cvECProfile }, - { IsV4cvProfile, CreateV4cvProfile }, - { IsM4cvProfile, CreateM4cvProfile }, - // { IsV4CNSProfile, CreateV4CNSProfile }, - - // TCOS -#ifdef ACT_SUPPORT_TCOS_NETKEY30 - { IsNetKey30Token, CreateNetKey30Token }, -#endif - - // JavaCardOS - { IsJCProfile, CreateJCProfile }, - // { IsJavaCardAppletManager, CreateJavaCardAppletManager }, - - /* - { IsStarCOSToken, CreateStarCOSToken }, - { IsNetKey2000Token, CreateNetKey2000Token }, - { IsNetKeyE4Token, CreateNetKeyE4Token }, - { IsNetKeyPKSToken, CreateNetKeyPKSToken }, - { IsNetKeyOldToken, CreateNetKeyOldToken }, - { IseTrustToken, CreateeTrustToken }, - { IsMicardoECToken, CreateMicardoECToken }, - { IsM4SiemensProfile, CreateM4SiemensProfile }, - */ - { 0, 0 } - }; - - // ------------------------------------------------------------------------ - const ProfileGeneratorMapEntry ProfileGeneratorMap[] = - { - { "JavaCardOS", CreateJCPKCS15Generator }, - { 0, 0 } - }; - - // ------------------------------------------------------------------------ - const PKCS15BehaviorMapEntry PKCS15BehaviorMap[] = - { - { "cv cryptovision gmbh (c) v1.0j", CreateJCPKCS15Behavior }, - { "cv cryptovision gmbh (c) v1.0jEAC", CreateJCPKCS15mEACBehavior }, - { "cv cryptovision gmbh (c) v1.0n", CreateV4PKCS15Behavior }, - { "cv cryptovision gmbh (c) v1.0na", CreateACOSPKCS15Behavior }, - { "cv cryptovision gmbh (c) v1.0ns", CreateStarCOSPKCS15Behavior }, - { "A.E.T. Europe B.V.", CreateSafeSignBehavior }, - { "Giesecke&Devrient GmbH", CreateStarSignBehavior }, - { "D-TRUST GmbH (C)", CreateDTRUSTBehavior }, - { "Siemens AG (C)", CreateHiPathBehavior }, - { "Technology Nexus", CreateNexusBehavior }, - { "Volkswagen AG", CreateVWBehavior }, - { "", CreatePKCS15Behavior }, // default - { 0, 0 } - }; - - // ------------------------------------------------------------------------ - const TokenExtensionMapEntry TokenExtensionMap[] = - { - { "MDProfileExt", CreateMDProfileExt }, // Minidriver FS Profile Extension - -# if defined(ACT_WIN32) && !defined(ACT_MINGW) - { "EAC 2.01 TA", CreateEACTAwithCAPI }, - -# endif - { 0, 0 } - }; - - // ------------------------------------------------------------------------ - const TokenAuthProtocolMapEntry TokenAuthProtocolMap[] = - { - { "EAC 2.01 PACE", CreateTokenAuthPACE }, - { "EAC 2.01 TA", CreateTokenAuthTA }, - { "EAC 2.01 CA", CreateTokenAuthCA }, - { "BAC", CreateTokenAuthBAC }, - { 0, 0 } - }; - - // ------------------------------------------------------------------------ - const SubsystemMapEntry SubsystemMap[] = - { - { "PCSC", CreatePCSCSystem, CreatePCSCSystemEx }, - { "CTAPI", CreateCTAPISystem, 0 }, - { "PKCS11", CreatePKCS11System, 0 }, - -# if defined(ACT_WIN32) && !defined(ACT_MINGW) - { "CSP", CreateCSPSystem, 0 }, - -# endif - { 0, 0, 0 } - }; - - // ------------------------------------------------------------------------ - const SlotMonitorRegEntry SlotMonitorMap[] = - { - { "PCSC", { CreatePCSCSlotMonitor, CreatePCSCSystemSlotMonitor } }, - { "CTAPI", { CreateSlotMonitor, 0 } }, - { "PKCS11", { CreateSlotMonitor, 0 } }, - -# if defined(ACT_WIN32) && !defined(ACT_MINGW) - { "CSP", { CreateSlotMonitor, 0 } }, - -# endif - { 0, { 0, 0 } } - }; - - // ------------------------------------------------------------------------ - const JCardAppletEntry JCardAppletMap[] = - { - // AID if it is equal to 0 then all AID are able - // function returns true if the Applet can used - // creates an new applet - // number of PIN's Key's Certificate's - // if they are -1 then it will be checked - // if they are biger or equal to 0 they are const - { "D276000098C00000", IsJCProfileApplet, CreateJCProfileApplet, 1, 1, 0 }, - { 0, 0, 0, 0, 0, 0 } - }; -#endif // NO_SMARTCARD - - // ------------------------------------------------------------------------ - // Version: V1R4M4 - const char* GetVersion(); - - // ------------------------------------------------------------------------ - inline void Init(bool bAlwaysInit = false) - { - static bool loaded = false; - if(loaded == true && bAlwaysInit == false) - return; - - KeyReg::Insert(KeyMap); - BlockCipherReg::Insert(BlockCipherMap); - BlockCipherModeReg::Insert(BlockCipherModeMap); - StreamCipherReg::Insert(StreamCipherMap); - HashReg::Insert(HashMap); - EMSAReg::Insert(EMSAMap); - DerivatorReg::Insert(DerivatorMap); - PaddingReg::Insert(PaddingMap); - CertificateReg::Insert(CertificateMap); - CRLReg::Insert(CRLMap); - X509KeyReg::Insert(X509KeyMap); - X509SignReg::Insert(X509SignMap); - X509SignHashReg::Insert(X509SignHashMap); - -#ifndef NO_SMARTCARD - SubsystemReg::Insert(SubsystemMap); - SlotMonitorReg::Insert(SlotMonitorMap); - SCardOSReg::Insert(SCardOSMap); - SCardTokenReg::Insert(SCardTokenMap); - ProfileGeneratorReg::Insert(ProfileGeneratorMap); - PKCS15BehaviorReg::Insert(PKCS15BehaviorMap); - TokenExtensionReg::Insert(TokenExtensionMap); - TokenAuthProtocolReg::Insert(TokenAuthProtocolMap); - JCardAppletReg::Insert(JCardAppletMap); -#endif - CreateFastRNG = CreateFIPS186; - CreateStrongRNG = CreateBBS; - loaded = true; - } - -} // namespace act - -#endif // actInit_h diff --git a/actlibrary/MacOSX-10.5-x86_64/Release/include/actJCAppletKit.h b/actlibrary/MacOSX-10.5-x86_64/Release/include/actJCAppletKit.h deleted file mode 100644 index 0d48e6d..0000000 --- a/actlibrary/MacOSX-10.5-x86_64/Release/include/actJCAppletKit.h +++ /dev/null @@ -1,30 +0,0 @@ -// --------------------------------------------------------------------------- -// Name: actAppletKit.h -// Product: cv act library -// Purpose: registry for factory functions to create JavaCard Applet -// -// Copyright: (c) 2002 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -// -// Autor: -// Date: 02/10/2003 -// --------------------------------------------------------------------------- - -#ifndef ACT_AppletKit_h -#define ACT_AppletKit_h - -#include "actBlob.h" - -namespace act -{ - class IToken; - class JavaCardOS; - - bool IsJCProfileApplet(JavaCardOS* os, const Blob& aid); - IToken* CreateJCProfileApplet(JavaCardOS* os, const Blob& aid); - -} // namespace act - -#endif // ACT_AppletKit_h diff --git a/actlibrary/MacOSX-10.5-x86_64/Release/include/actJCAppletReg.h b/actlibrary/MacOSX-10.5-x86_64/Release/include/actJCAppletReg.h deleted file mode 100644 index a8dfa8f..0000000 --- a/actlibrary/MacOSX-10.5-x86_64/Release/include/actJCAppletReg.h +++ /dev/null @@ -1,62 +0,0 @@ -// --------------------------------------------------------------------------- -// Name: actAppletReg.h -// Product: cv act library -// Purpose: registry for factory functions to create JavaCardApplet object -// -// Copyright: (c) 2002 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -// -// Autor: -// Date: 02/10/2003 -// --------------------------------------------------------------------------- - -#ifndef ACT_AppletReg_h -#define ACT_AppletReg_h - -#ifdef _MSC_VER -#pragma warning (disable:4786) -#endif - -namespace act -{ - class JavaCardOS; - class IToken; - class Blob; - - typedef IToken* (*CreateJCardAppletPtr)(JavaCardOS*, const Blob& aid); - typedef bool (*CheckJCardAppletPtr)(JavaCardOS*, const Blob& aid); - - struct JCardAppletEntry - { - const char* hexid; - CheckJCardAppletPtr CheckPtr; - CreateJCardAppletPtr CreatePtr; - int keys; - int certs; - int auth_objs; - }; - - struct JCardAppletInfoEntry - { - int keys; - int certs; - int auth_objs; - }; - - class JCardAppletReg - { - public: - static IToken* CreateJCardApplet(JavaCardOS* os, const Blob& aid); - static JCardAppletInfoEntry GetJCardAppletInfo(JavaCardOS* os, const Blob& aid); - static bool IsJCardApplet(JavaCardOS* os, const Blob& aid); - - static void Insert(const JCardAppletEntry* entry); - static void Insert(const char* id, CheckJCardAppletPtr checkptr, CreateJCardAppletPtr createptr, - int keys = -1, int auth_objs = -1, int certs = -1); - }; - -} // namespace act - -#endif // ACT_AppletReg_h diff --git a/actlibrary/MacOSX-10.5-x86_64/Release/include/actJCSecureChannelReg.h b/actlibrary/MacOSX-10.5-x86_64/Release/include/actJCSecureChannelReg.h deleted file mode 100644 index 1eb4b32..0000000 --- a/actlibrary/MacOSX-10.5-x86_64/Release/include/actJCSecureChannelReg.h +++ /dev/null @@ -1,43 +0,0 @@ -//----------------------------------------------------------------------------- -// Name: actJCSecureChannelReg.h -// Product: cv act library -// Purpose: -// -// Copyright: (c) 2003 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for use of this software are regulated -// in the cv act libary licence agreement. -// -// Autor: -// Data: 08.10.2003 15:53:14 -//----------------------------------------------------------------------------- - -#ifndef __ACTJCSECURECHANNELREG_H__ -#define __ACTJCSECURECHANNELREG_H__ - -namespace act -{ - class Blob; - - struct JCSecureChannelEntry { - const char* hexvalue; - }; - - - class JCardSecureChannelReg - { - public: - static Blob GetValue(int i); - static int GetNumber(); - - - static void Insert(const char* hexvalue); - static void Insert(const JCSecureChannelEntry* entry); - - }; - -} - - - -#endif //__ACTJCSECURECHANNELREG_H__ diff --git a/actlibrary/MacOSX-10.5-x86_64/Release/include/actKey.h b/actlibrary/MacOSX-10.5-x86_64/Release/include/actKey.h deleted file mode 100644 index 5030c0c..0000000 --- a/actlibrary/MacOSX-10.5-x86_64/Release/include/actKey.h +++ /dev/null @@ -1,82 +0,0 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actKey.h -// Product: cv act library -// Purpose: The class Key manages information relevant to keys (e.g. -// domain parameters or the key itself). In the case of symmetric -// encryption only a (the) secret key is generated. In the case of -// of asymetric encryption a private and a public key are generated. -// This handle allows a universal approach for different families of -// algorithms. -// -// -// Copyright: (c) 2000 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_Key_h -#define ACT_Key_h - -#include "actBasics.h" -#include "actBlob.h" - -namespace act -{ - class IRNGAlg; - class IAlgorithm; - class IKey; - class ICertificate; - - class Key - { - public: - Key(); - Key(const Key& key); - Key(IKey* keyptr); - Key(const Blob& keyblob); - Key(const ICertificate* cert); - Key(const char* keytype); - - void Import(const Blob& keyblob); - void Export(Blob& keyblob, export_t type = DEFAULT) const; - - void SetParam(paramid_t id, const Blob& blob); - void SetParam(paramid_t id, int val); - void SetParam(paramid_t id, const char* cstr); - - int GetParam(paramid_t id) const; - void GetParam(paramid_t id, Blob& blob) const; - - void Generate(IAlgorithm* prng = 0); - void Derive(const Blob& data, const Blob& salt = Blob()); - - IAlgorithm* CreateAlgorithm(mode_t Mode) const; - IAlgorithm* CreateAlgorithm(mode_t Mode, const Blob& data) const; - - IKey* GetPointer(); - const IKey* GetPointer() const; - operator IKey*(); - operator const IKey*() const; - - IKey* ReleasePointer(); - - template - inline KeyTypeT* As() { return static_cast(GetPointer()); } - - template - inline const KeyTypeT* As() const { return static_cast(GetPointer()); } - - Key& operator=(const Key& key); - Key& Reset(IKey* key); - Key& Required(const char* where = 0); - - ~Key(); - - private: - IKey *mKey; - }; - -} // namespace act - -#endif // ACT_Key_h diff --git a/actlibrary/MacOSX-10.5-x86_64/Release/include/actKeyKit.h b/actlibrary/MacOSX-10.5-x86_64/Release/include/actKeyKit.h deleted file mode 100644 index e8a7730..0000000 --- a/actlibrary/MacOSX-10.5-x86_64/Release/include/actKeyKit.h +++ /dev/null @@ -1,43 +0,0 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actKeyKit.h -// Product: cv act library -// Purpose: declaration of all factory functions -// -// Copyright: (c) 2000 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_KeyKit_h -#define ACT_KeyKit_h - -namespace act -{ - class IKey; - - IKey* CreateBlockCipherKey(); - - IKey* CreateStreamCipherKey(); - - IKey* CreateHashMACKey(); - IKey* CreateCBCMACKey(); - IKey* CreateSecretKeyMACKey(); - IKey* CreateRetailCFBMACKey(); - IKey* Create_iMAC3Key(); - IKey* CreateCMACKey(); - - IKey* CreateRSAKey(); - - IKey* CreateDSAKey(); - IKey* CreateECDSAKey(); - IKey* CreateECGDSAKey(); - - IKey* CreateDHKey(); - IKey* CreateECDHKey(); - - IKey* CreateIESKey(); - -} // namespace act - -#endif // ACT_KeyKit_h diff --git a/actlibrary/MacOSX-10.5-x86_64/Release/include/actKeyReg.h b/actlibrary/MacOSX-10.5-x86_64/Release/include/actKeyReg.h deleted file mode 100644 index 14caa8c..0000000 --- a/actlibrary/MacOSX-10.5-x86_64/Release/include/actKeyReg.h +++ /dev/null @@ -1,40 +0,0 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actKeyReg.h -// Product: cv act library -// Purpose: registry for factory functions in actKeyKit.h -// -// Copyright: (c) 2000 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_KeyReg_h -#define ACT_KeyReg_h - -namespace act -{ - class IKey; - - typedef IKey* (*CreateKeyPtr)(); - - struct KeyMapEntry - { - const char* Name; - CreateKeyPtr CreatePtr; - }; - - class KeyReg - { - public: - static IKey* CreateKey(const char* name); - static CreateKeyPtr GetCreatePointer(const char* name); - static const char* GetName(void* createptr); - static const char* GetNextName(const char* name); - static void Insert(const char* name, CreateKeyPtr createptr); - static void Insert(const KeyMapEntry* keymap); - }; - -} // namespace act - -#endif // ACT_KeyReg_h diff --git a/actlibrary/MacOSX-10.5-x86_64/Release/include/actMove.h b/actlibrary/MacOSX-10.5-x86_64/Release/include/actMove.h deleted file mode 100644 index ebf1d6f..0000000 --- a/actlibrary/MacOSX-10.5-x86_64/Release/include/actMove.h +++ /dev/null @@ -1,133 +0,0 @@ -////////////////////////////////////////////////////////////////////////// -// Name: actMove.h -// Product: cv act library -// Purpose: template<>'s to implement move semantics -// -// Copyright: (c) 2010 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -// -// Autor: Markus Tesche -// Date: 07/25/2010 -////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_Move_h -#define ACT_Move_h - -namespace act -{ - // - // type_of used to dismantle T resulting in T' - // -------------------------------------------------------------------------------- - template struct type_of { typedef T type; }; - template struct type_of { typedef T type; }; - template struct type_of { typedef T type; }; - template struct type_of { typedef T type; }; - template struct type_of { typedef T type; }; - template struct type_of { typedef T type; }; - - // - // is_const - // -------------------------------------------------------------------------------- - template struct is_const { enum { value = 0 }; }; - template struct is_const { enum { value = 1 }; }; - template struct is_const { enum { value = 0 }; }; - template struct is_const { enum { value = 1 }; }; - template struct is_const { enum { value = 0 }; }; - template struct is_const { enum { value = 1 }; }; - - // - // /brief move_from<...> used to implement move semantics - // -------------------------------------------------------------------------------- - template - class move_from; - - // - // /brief move_from default spcialization, holds reference to type T - // -------------------------------------------------------------------------------- - template - class move_from - { - public: - typedef typename type_of::type type_t; - - explicit move_from(type_t& ref) - : m_ref(ref) - { } - - template - move_from(const move_from& other) - : m_ref(other.source()) - { } - - inline type_t& source() const { return m_ref; } - template O& source() const { return m_ref; } - - template void swap(O& other) { m_ref.swap(other); } - template O& move(O& other) { m_ref.swap(other); return other; } - - private: - type_t& m_ref; - - private: - template - friend class move_from; - }; - - // - // /brief move_from spcialization takes ownership of 'swapped-in' source data - // -------------------------------------------------------------------------------- - template - class move_from : public move_from - { - public: - typedef typename type_of::type type_t; - - explicit move_from(type_t& ref) - : move_from(m_value) - { - ref.swap(m_value); - } - - template - move_from(move_from other) - : move_from(m_value) - { - other.swap(m_value); - } - - private: - typename move_from::type_t m_value; - }; - - // - // /brief move_empty used as default move_from<...> function parameter - // -------------------------------------------------------------------------------- - template - class move_empty : public move_from - { - public: - move_empty() - : move_from(m_empty) - { } - - move_empty(const move_empty&) - : move_from(m_empty) - { } - - inline move_empty& operator=(const move_empty&) { return *this; } - - private: - T m_empty; - }; - - // - // /brief move<> helper function - // -------------------------------------------------------------------------------- - template - move_from move(T& ref) { return move_from(ref); } - -} // namespace act - -#endif // ACT_Move_h diff --git a/actlibrary/MacOSX-10.5-x86_64/Release/include/actOID.h b/actlibrary/MacOSX-10.5-x86_64/Release/include/actOID.h deleted file mode 100644 index 527f660..0000000 --- a/actlibrary/MacOSX-10.5-x86_64/Release/include/actOID.h +++ /dev/null @@ -1,2103 +0,0 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actOID.h -// Product: cv act library -// Purpose: -// -// -// Copyright: (c) 2000 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_OID_H -#define ACT_OID_H - -#define CV_OID_DEF(x) (act::Blob((x),(x)+sizeof((x)))) - -#ifdef _MSC_VER -#pragma warning(disable : 4305) //Verkuerzung von 'static const int' in 'static const unsigned char' -#pragma warning(disable : 4309) //Verkuerzung eines konstanten Wertes -#endif - -//1.2.840.10045.4.1 ECDSA cvECDSA -static const unsigned char cvOID_cvECDSA[] = {0x2a, 0x86, 0x48, 0xce, 0x3d, 0x04, 0x01}; -//1.2.840.113549.1.9.1 Alternate Name cvAlternateName -static const unsigned char cvOID_cvAlternateName[] = {0x2a, 0x86, 0x48, 0x86, 0xf7, 0x0d, 0x01, 0x09, 0x01}; - -//0.2.262.1.10 Deutsche Telekom Telesec -static const unsigned char cvOID_Telesec [] = { 0x02, 0x82, 0x06, 0x01, 0x0A}; -//0.2.262.1.10.0 Telesec extension -static const unsigned char cvOID_extension [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x00}; -//0.2.262.1.10.1 Telesec mechanism -static const unsigned char cvOID_mechanism [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x01}; -//0.2.262.1.10.1.0 Telesec mechanism authentication -static const unsigned char cvOID_authentication [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x01, 0x00}; -//0.2.262.1.10.1.0.1 Telesec authentication passwordAuthentication -static const unsigned char cvOID_passwordAuthentication [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x01, 0x00, 0x01}; -//0.2.262.1.10.1.0.2 Telesec authentication protectedPasswordAuthentication -static const unsigned char cvOID_protectedPasswordAuthentication [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x01, 0x00, 0x02}; -//0.2.262.1.10.1.0.3 Telesec authentication oneWayX509Authentication -static const unsigned char cvOID_oneWayX509Authentication [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x01, 0x00, 0x03}; -//0.2.262.1.10.1.0.4 Telesec authentication twoWayX509Authentication -static const unsigned char cvOID_twoWayX509Authentication [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x01, 0x00, 0x04}; -//0.2.262.1.10.1.0.5 Telesec authentication threeWayX509Authentication -static const unsigned char cvOID_threeWayX509Authentication [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x01, 0x00, 0x05}; -//0.2.262.1.10.1.0.6 Telesec authentication oneWayISO9798Authentication -static const unsigned char cvOID_oneWayISO9798Authentication [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x01, 0x00, 0x06}; -//0.2.262.1.10.1.0.7 Telesec authentication twoWayISO9798Authentication -static const unsigned char cvOID_twoWayISO9798Authentication [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x01, 0x00, 0x07}; -//0.2.262.1.10.1.0.8 Telesec authentication telekomAuthentication -static const unsigned char cvOID_telekomAuthentication [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x01, 0x00, 0x08}; -//0.2.262.1.10.1.1 Telesec mechanism signature -static const unsigned char cvOID_signature [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x01, 0x01}; -//0.2.262.1.10.1.1.1 Telesec mechanism md4WithRSAAndISO9697 -static const unsigned char cvOID_md4WithRSAAndISO9697 [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x01, 0x01, 0x01}; -//0.2.262.1.10.1.1.2 Telesec mechanism md4WithRSAAndTelesecSignatureStandard -static const unsigned char cvOID_md4WithRSAAndTelesecSignatureStandard [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x01, 0x01, 0x02}; -//0.2.262.1.10.1.1.3 Telesec mechanism md5WithRSAAndISO9697 -static const unsigned char cvOID_md5WithRSAAndISO9697 [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x01, 0x01, 0x03}; -//0.2.262.1.10.1.1.4 Telesec mechanism md5WithRSAAndTelesecSignatureStandard -static const unsigned char cvOID_md5WithRSAAndTelesecSignatureStandard [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x01, 0x01, 0x04}; -//0.2.262.1.10.1.1.5 Telesec mechanism ripemd160WithRSAAndTelekomSignatureStandard -static const unsigned char cvOID_ripemd160WithRSAAndTelekomSignatureStandard [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x01, 0x01, 0x05}; -//0.2.262.1.10.1.1.9 Telesec signature hbciRsaSignature -static const unsigned char cvOID_hbciRsaSignature [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x01, 0x01, 0x09}; -//0.2.262.1.10.1.2 Telesec mechanism encryption -static const unsigned char cvOID_encryption [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x01, 0x02}; -//0.2.262.1.10.1.2.0 Telesec encryption none -static const unsigned char cvOID_none [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x01, 0x02, 0x00}; -//0.2.262.1.10.1.2.1 Telesec encryption rsaTelesec -static const unsigned char cvOID_rsaTelesec [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x01, 0x02, 0x01}; -//0.2.262.1.10.1.2.2 Telesec encryption des -static const unsigned char cvOID_des [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x01, 0x02, 0x02}; -//0.2.262.1.10.1.2.2.1 Telesec encryption desECB -static const unsigned char cvOID_desECB [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x01, 0x02, 0x02, 0x01}; -//0.2.262.1.10.1.2.2.2 Telesec encryption desCBC -static const unsigned char cvOID_desCBC [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x01, 0x02, 0x02, 0x02}; -//0.2.262.1.10.1.2.2.3 Telesec encryption desOFB -static const unsigned char cvOID_desOFB [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x01, 0x02, 0x02, 0x03}; -//0.2.262.1.10.1.2.2.4 Telesec encryption desCFB8 -static const unsigned char cvOID_desCFB8 [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x01, 0x02, 0x02, 0x04}; -//0.2.262.1.10.1.2.2.5 Telesec encryption desCFB64 -static const unsigned char cvOID_desCFB64 [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x01, 0x02, 0x02, 0x05}; -//0.2.262.1.10.1.2.3 Telesec encryption des3 -static const unsigned char cvOID_des3 [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x01, 0x02, 0x03}; -//0.2.262.1.10.1.2.3.1 Telesec encryption des3ECB -static const unsigned char cvOID_des3ECB [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x01, 0x02, 0x03, 0x01}; -//0.2.262.1.10.1.2.3.2 Telesec encryption des3CBC -static const unsigned char cvOID_des3CBC [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x01, 0x02, 0x03, 0x02}; -//0.2.262.1.10.1.2.3.3 Telesec encryption des3OFB -static const unsigned char cvOID_des3OFB [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x01, 0x02, 0x03, 0x03}; -//0.2.262.1.10.1.2.3.4 Telesec encryption des3CFB8 -static const unsigned char cvOID_des3CFB8 [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x01, 0x02, 0x03, 0x04}; -//0.2.262.1.10.1.2.3.5 Telesec encryption des3CFB64 -static const unsigned char cvOID_des3CFB64 [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x01, 0x02, 0x03, 0x05}; -//0.2.262.1.10.1.2.4 Telesec encryption magenta -static const unsigned char cvOID_magenta [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x01, 0x02, 0x04}; -//0.2.262.1.10.1.2.5 Telesec encryption idea -static const unsigned char cvOID_idea [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x01, 0x02, 0x05}; -//0.2.262.1.10.1.2.5.1 Telesec encryption ideaECB -static const unsigned char cvOID_ideaECB_Telesec [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x01, 0x02, 0x05, 0x01}; -//0.2.262.1.10.1.2.5.2 Telesec encryption ideaCBC -static const unsigned char cvOID_ideaCBC_Telesec [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x01, 0x02, 0x05, 0x02}; -//0.2.262.1.10.1.2.5.3 Telesec encryption ideaOFB -static const unsigned char cvOID_ideaOFB_Telesec [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x01, 0x02, 0x05, 0x03}; -//0.2.262.1.10.1.2.5.4 Telesec encryption ideaCFB8 -static const unsigned char cvOID_ideaCFB8_Telesec [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x01, 0x02, 0x05, 0x04}; -//0.2.262.1.10.1.2.5.5 Telesec encryption ideaCFB64 -static const unsigned char cvOID_ideaCFB64_Telesec [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x01, 0x02, 0x05, 0x05}; -//0.2.262.1.10.1.3 Telesec mechanism oneWayFunction -static const unsigned char cvOID_oneWayFunction [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x01, 0x03}; -//0.2.262.1.10.1.3.1 Telesec one-way function md4 -static const unsigned char cvOID_md4_Telesec [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x01, 0x03, 0x01}; -//0.2.262.1.10.1.3.2 Telesec one-way function md5 -static const unsigned char cvOID_md5_Telesec [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x01, 0x03, 0x02}; -//0.2.262.1.10.1.3.3 Telesec one-way function sqModNX509 -static const unsigned char cvOID_sqModNX509 [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x01, 0x03, 0x03}; -//0.2.262.1.10.1.3.4 Telesec one-way function sqModNISO -static const unsigned char cvOID_sqModNISO [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x01, 0x03, 0x04}; -//0.2.262.1.10.1.3.5 Telesec one-way function ripemd128 -static const unsigned char cvOID_ripemd128 [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x01, 0x03, 0x05}; -//0.2.262.1.10.1.3.6 Telesec one-way function hashUsingBlockCipher -static const unsigned char cvOID_hashUsingBlockCipher [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x01, 0x03, 0x06}; -//0.2.262.1.10.1.3.7 Telesec one-way function mac -static const unsigned char cvOID_mac [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x01, 0x03, 0x07}; -//0.2.262.1.10.1.3.8 Telesec one-way function ripemd160 -static const unsigned char cvOID_ripemd160 [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x01, 0x03, 0x08}; -//0.2.262.1.10.1.4 Telesec mechanism fecFunction -static const unsigned char cvOID_fecFunction [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x01, 0x04}; -//0.2.262.1.10.1.4.1 Telesec mechanism reedSolomon -static const unsigned char cvOID_reedSolomon [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x01, 0x04, 0x01}; -//0.2.262.1.10.2 Telesec module -static const unsigned char cvOID_module_Telesec [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x02}; -//0.2.262.1.10.2.0 Telesec module algorithms -static const unsigned char cvOID_algorithms [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x02, 0x00}; -//0.2.262.1.10.2.1 Telesec module attributeTypes -static const unsigned char cvOID_attributeTypes [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x02, 0x01}; -//0.2.262.1.10.2.2 Telesec module certificateTypes -static const unsigned char cvOID_certificateTypes [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x02, 0x02}; -//0.2.262.1.10.2.3).. Telesec module messageTypes -static const unsigned char cvOID_messageTypes [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x02, 0x03}; -//0.2.262.1.10.2.4 Telesec module plProtocol -static const unsigned char cvOID_plProtocol [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x02, 0x04}; -//0.2.262.1.10.2.5 Telesec module smeAndComponentsOfSme -static const unsigned char cvOID_smeAndComponentsOfSme [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x02, 0x05}; -//0.2.262.1.10.2.6 Telesec module fec -static const unsigned char cvOID_fec [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x02, 0x06}; -//0.2.262.1.10.2.7 Telesec module usefulDefinitions -static const unsigned char cvOID_usefulDefinitions [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x02, 0x07}; -//0.2.262.1.10.2.8 Telesec module stefiles -static const unsigned char cvOID_stefiles [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x02, 0x08}; -//0.2.262.1.10.2.9 Telesec module sadmib -static const unsigned char cvOID_sadmib [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x02, 0x09}; -//0.2.262.1.10.2.10 Telesec module electronicOrder -static const unsigned char cvOID_electronicOrder [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x02, 0x0A}; -//0.2.262.1.10.2.11 Telesec module telesecTtpAsymmetricApplication -static const unsigned char cvOID_telesecTtpAsymmetricApplication [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x02, 0x0B}; -//0.2.262.1.10.2.12)..... Telesec module telesecTtpBasisApplication -static const unsigned char cvOID_telesecTtpBasisApplication [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x02, 0x0C}; -//0.2.262.1.10.2.13)....... Telesec module telesecTtpMessages -static const unsigned char cvOID_telesecTtpMessages [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x02, 0x0D}; -//0.2.262.1.10.2.14)....... Telesec module telesecTtpTimeStampApplication -static const unsigned char cvOID_telesecTtpTimeStampApplication [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x02, 0x0E}; -//0.2.262.1.10.3 Telesec objectClass -static const unsigned char cvOID_objectClass_Telesec [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x03}; -//0.2.262.1.10.3.0 Telesec object class telesecOtherName -static const unsigned char cvOID_telesecOtherName_Telesec [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x03, 0x00}; -//0.2.262.1.10.3.1 Telesec object class directory -static const unsigned char cvOID_directory_Telesec [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x03, 0x01}; -//0.2.262.1.10.3.2 Telesec object class directoryType -static const unsigned char cvOID_directoryType_Telesec [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x03, 0x02}; -//0.2.262.1.10.3.3 Telesec object class directroyGroup -static const unsigned char cvOID_directroyGroup_Telesec [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x03, 0x03}; -//0.2.262.1.10.3.4 Telesec object class directoryUser -static const unsigned char cvOID_directoryUser_Telesec [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x03, 0x04}; -//0.2.262.1.10.3.5 Telesec object class symmetricKeyEntry -static const unsigned char cvOID_symmetricKeyEntry [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x03, 0x05}; -//0.2.262.1.10.4 Telesec package -static const unsigned char cvOID_package [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x04}; -//0.2.262.1.10.5 Telesec parameter -static const unsigned char cvOID_parameter [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x05}; -//0.2.262.1.10.6 Telesec nameBinding -static const unsigned char cvOID_nameBinding [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x06}; -//0.2.262.1.10.7 Telesec attribute -static const unsigned char cvOID_attribute_Telesec [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x07}; -//0.2.262.1.10.7.0 Telesec attribute applicationGroupIdentifier -static const unsigned char cvOID_applicationGroupIdentifier [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x07, 0x00}; -//0.2.262.1.10.7.1 Telesec attribute certificateType -static const unsigned char cvOID_certificateType [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x07, 0x01}; -//0.2.262.1.10.7.2 Telesec attribute telesecCertificate -static const unsigned char cvOID_Certificate_Telesec [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x07, 0x02}; -//0.2.262.1.10.7.3 Telesec attribute certificateNumber -static const unsigned char cvOID_certificateNumber [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x07, 0x03}; -//0.2.262.1.10.7.4 Telesec attribute certificateRevocationList -static const unsigned char cvOID_certificateRevocationList_Telesec [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x07, 0x04}; -//0.2.262.1.10.7.5 Telesec attribute creationDate -static const unsigned char cvOID_creationDate [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x07, 0x05}; -//0.2.262.1.10.7.6).... Telesec attribute issuer -static const unsigned char cvOID_issuer [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x07, 0x06}; -//0.2.262.1.10.7.7 Telesec attribute namingAuthority -static const unsigned char cvOID_namingAuthority [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x07, 0x07}; -//0.2.262.1.10.7.8 Telesec attribute publicKeyDirectory -static const unsigned char cvOID_publicKeyDirectory [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x07, 0x08}; -//0.2.262.1.10.7.9).. Telesec attribute securityDomain -static const unsigned char cvOID_securityDomain [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x07, 0x09}; -//0.2.262.1.10.7.10)..... Telesec attribute subject -static const unsigned char cvOID_subject [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x07, 0x0A}; -//0.2.262.1.10.7.11 Telesec attribute timeOfRevocation -static const unsigned char cvOID_timeOfRevocation [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x07, 0x0B}; -//0.2.262.1.10.7.12 Telesec attribute userGroupReference -static const unsigned char cvOID_userGroupReference [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x07, 0x0C}; -//0.2.262.1.10.7.13 Telesec attribute validity -static const unsigned char cvOID_validity [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x07, 0x0D}; -//0.2.262.1.10.7.14 Telesec attribute zert93 -static const unsigned char cvOID_zert93 [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x07, 0x0E}; -//0.2.262.1.10.7.15 Telesec attribute securityMessEnv -static const unsigned char cvOID_securityMessEnv [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x07, 0x0F}; -//0.2.262.1.10.7.16 Telesec attribute anonymizedPublicKeyDirectory -static const unsigned char cvOID_anonymizedPublicKeyDirectory [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x07, 0x10}; -//0.2.262.1.10.7.17 Telesec attribute telesecGivenName -static const unsigned char cvOID_telesecGivenName [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x07, 0x11}; -//0.2.262.1.10.7.18). Telesec attribute nameAdditions -static const unsigned char cvOID_nameAdditions [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x07, 0x12}; -//0.2.262.1.10.7.19 Telesec attribute telesecPostalCode -static const unsigned char cvOID_telesecPostalCode [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x07, 0x13}; -//0.2.262.1.10.7.20 Telesec attribute nameDistinguisher -static const unsigned char cvOID_nameDistinguisher [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x07, 0x14}; -//0.2.262.1.10.7.21 Telesec attribute telesecCertificateList -static const unsigned char cvOID_telesecCertificateList [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x07, 0x15}; -//0.2.262.1.10.7.22 Telesec attribute teletrustCertificateList -static const unsigned char cvOID_teletrustCertificateList [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x07, 0x16}; -//0.2.262.1.10.7.23)... Telesec attribute x509CertificateList -static const unsigned char cvOID_x509CertificateList [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x07, 0x17}; -//0.2.262.1.10.7.24 Telesec attribute timeOfIssue -static const unsigned char cvOID_timeOfIssue [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x07, 0x18}; -//0.2.262.1.10.7.25 Telesec attribute physicalCardNumber -static const unsigned char cvOID_physicalCardNumber [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x07, 0x19}; -//0.2.262.1.10.7.26)........ Telesec attribute fileType -static const unsigned char cvOID_fileType [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x07, 0x1A}; -//0.2.262.1.10.7.27 Telesec attribute ctlFileIsArchive -static const unsigned char cvOID_ctlFileIsArchive [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x07, 0x1B}; -//0.2.262.1.10.7.28)........ Telesec attribute emailAddress -static const unsigned char cvOID_emailAddress [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x07, 0x1C}; -//0.2.262.1.10.7.29)........ Telesec attribute certificateTemplateList -static const unsigned char cvOID_certificateTemplateList [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x07, 0x1D}; -//0.2.262.1.10.7.30)........ Telesec attribute directoryName -static const unsigned char cvOID_directoryName [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x07, 0x1E}; -//0.2.262.1.10.7.31)........ Telesec attribute directoryTypeName -static const unsigned char cvOID_directoryTypeName [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x07, 0x1F}; -//0.2.262.1.10.7.32 Telesec attribute directoryGroupName -static const unsigned char cvOID_directoryGroupName [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x07, 0x20}; -//0.2.262.1.10.7.33 Telesec attribute directoryUserName -static const unsigned char cvOID_directoryUserName [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x07, 0x21}; -//0.2.262.1.10.7.34 Telesec attribute revocationFlag -static const unsigned char cvOID_revocationFlag [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x07, 0x22}; -//0.2.262.1.10.7.35 Telesec attribute symmetricKeyEntryName -static const unsigned char cvOID_symmetricKeyEntryName [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x07, 0x23}; -//0.2.262.1.10.7.36 Telesec attribute glNumber -static const unsigned char cvOID_glNumber [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x07, 0x24}; -//0.2.262.1.10.7.37 Telesec attribute goNumber -static const unsigned char cvOID_goNumber [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x07, 0x25}; -//0.2.262.1.10.7.38 Telesec attribute gKeyData -static const unsigned char cvOID_gKeyData [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x07, 0x26}; -//0.2.262.1.10.7.39 Telesec attribute zKeyData -static const unsigned char cvOID_zKeyData [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x07, 0x27}; -//0.2.262.1.10.7.40 Telesec attribute ktKeyData -static const unsigned char cvOID_ktKeyData [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x07, 0x28}; -//0.2.262.1.10.7.41 Telesec attribute ktKeyNumber -static const unsigned char cvOID_ktKeyNumber [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x07, 0x2A}; -//0.2.262.1.10.7.51 Telesec attribute timeOfRevocationGen -static const unsigned char cvOID_timeOfRevocationGen [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x07, 0x33}; -//0.2.262.1.10.7.52).... Telesec attribute liabilityText -static const unsigned char cvOID_liabilityText [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x07, 0x34}; -//0.2.262.1.10.8 Telesec attributeGroup -static const unsigned char cvOID_attributeGroup [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x08}; -//0.2.262.1.10.9 Telesec action -static const unsigned char cvOID_action [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x09}; -//0.2.262.1.10.10 Telesec notification -static const unsigned char cvOID_notification [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x0A}; -//0.2.262.1.10.11 Telesec snmp-mibs -static const unsigned char cvOID_snmp_mibs [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x0B}; -//0.2.262.1.10.11.1 Telesec SNMP MIBs securityApplication -static const unsigned char cvOID_securityApplication [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x0B, 0x01}; -//0.2.262.1.10.12 Telesec certAndCrlExtensionDefinitions -static const unsigned char cvOID_certAndCrlExtensionDefinitions [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x0C}; -//0.2.262.1.10.12.0 Telesec cert/CRL extension certExtensionLiabilityLimitationExt -static const unsigned char cvOID_certExtensionLiabilityLimitationExt [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x0C, 0x00}; -//0.2.262.1.10.12.1 Telesec cert/CRL extension telesecCertIdExt -static const unsigned char cvOID_telesecCertIdExt [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x0C, 0x01}; -//0.2.262.1.10.12.2 Telesec cert/CRL extension telesecPolicyIdentifier -static const unsigned char cvOID_telesecPolicyIdentifier [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x0C, 0x02}; -//0.2.262.1.10.12.3 Telesec cert/CRL extension telesecPolicyQualifierID -static const unsigned char cvOID_telesecPolicyQualifierID [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x0C, 0x03}; -//0.2.262.1.10.12.4 Telesec cert/CRL extension telesecCRLFilteredExt -static const unsigned char cvOID_telesecCRLFilteredExt [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x0C, 0x04}; -//0.2.262.1.10.12.5 Telesec cert/CRL extension telesecCRLFilterExt -static const unsigned char cvOID_telesecCRLFilterExt [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x0C, 0x05}; -//0.2.262.1.10.12.6 Telesec cert/CRL extension telesecNamingAuthorityExt -static const unsigned char cvOID_telesecNamingAuthorityExt [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x0C, 0x06}; -//0.9.2342.19200300.1.3 Some oddball X.500 attribute collection rfc822Mailbox -static const unsigned char cvOID_rfc822Mailbox [] = { 0x09, 0x92, 0x26, 0x89, 0x93, 0xF2, 0x2C, 0x01, 0x03}; -//0.9.2342.19200300.100.1.25 Men are from Mars, this OID is from Pluto domainComponent -static const unsigned char cvOID_domainComponent [] = { 0x09, 0x92, 0x26, 0x89, 0x93, 0xF2, 0x2C, 0x64, 0x01, 0x019}; -//1.2.36.75878867.1.100.1.1 Certificates Australia CA Certificates Australia policyIdentifier -static const unsigned char cvOID_Certificates_Australia_policyIdentifier [] = { 0x2A, 0x24, 0xA4, 0x97, 0xA3, 0x53, 0x01, 0x64, 0x01, 0x01}; -//1.2.36.68980861.1.1.2 Signet CA Signet personal -static const unsigned char cvOID_Signet_personal [] = { 0x2A, 0x24, 0xA0, 0xF2, 0xA0, 0x7D, 0x01, 0x01, 0x02}; -//1.2.36.68980861.1.1.3 Signet CA Signet business -static const unsigned char cvOID_Signet_business [] = { 0x2A, 0x24, 0xA0, 0xF2, 0xA0, 0x7D, 0x01, 0x01, 0x03}; -//1.2.36.68980861.1.1.4 Signet CA Signet legal -static const unsigned char cvOID_Signet_legal [] = { 0x2A, 0x24, 0xA0, 0xF2, 0xA0, 0x7D, 0x01, 0x01, 0x04}; -//1.2.36.68980861.1.1.10 Signet CA Signet pilot -static const unsigned char cvOID_Signet_pilot [] = { 0x2A, 0x24, 0xA0, 0xF2, 0xA0, 0x7D, 0x01, 0x01, 0x0A}; -//1.2.36.68980861.1.1.11 Signet CA Signet intraNet -static const unsigned char cvOID_Signet_intraNet [] = { 0x2A, 0x24, 0xA0, 0xF2, 0xA0, 0x7D, 0x01, 0x01, 0x0B}; -//1.2.36.68980861.1.1.20 Signet CA Signet securityPolicy -static const unsigned char cvOID_Signet_securityPolicy [] = { 0x2A, 0x24, 0xA0, 0xF2, 0xA0, 0x7D, 0x01, 0x01, 0x14}; -//1.2.392.200011.61.1.1.1 Mitsubishi security algorithm symmetric-encryption-algorithm -static const unsigned char cvOID_symmetric_encryption_algorithm [] = { 0x2A, 0x83, 0x08, 0x8C, 0x1A, 0x4B, 0x3D, 0x01, 0x01, 0x01}; -//1.2.392.200011.61.1.1.1.1 Mitsubishi security algorithm misty1-cbc -static const unsigned char cvOID_misty1_cbc [] = { 0x2A, 0x83, 0x08, 0x8C, 0x9A, 0x4B, 0x3D, 0x01, 0x01, 0x01, 0x01}; -//1.2.752.34.1 SEIS Project seis-cp -static const unsigned char cvOID_seis_cp [] = { 0x2A, 0x85, 0x70, 0x22, 0x01}; -//1.2.752.34.1.1 SEIS Project certificate policies SEIS high-assurnace certificatePolicy -static const unsigned char cvOID_SEIS_high_assurnace_certificatePolicy [] = { 0x2A, 0x85, 0x70, 0x22, 0x01, 0x01}; -//1.2.752.34.1.2 SEIS Project certificate policies SEIS GAK certificatePolicy -static const unsigned char cvOID_SEIS_GAK_certificatePolicy [] = { 0x2A, 0x85, 0x70, 0x22, 0x01, 0x02}; -//1.2.752.34.2 SEIS Project SEIS pe -static const unsigned char cvOID_SEIS_pe [] = { 0x2A, 0x85, 0x70, 0x22, 0x02}; -//1.2.752.34.3 SEIS Project SEIS at -static const unsigned char cvOID_SEIS_at [] = { 0x2A, 0x85, 0x70, 0x22, 0x03}; -//1.2.752.34.3.1 SEIS Project attribute SEIS at-personalIdentifier -static const unsigned char cvOID_SEIS_at_personalIdentifier [] = { 0x2A, 0x85, 0x70, 0x22, 0x03, 0x01}; -//1.2.840.10040.1 ANSI X9.57 module -static const unsigned char cvOID_module [] = { 0x2A, 0x86, 0x48, 0xCE, 0x38, 0x01}; -//1.2.840.10040.1.1 ANSI X9.57 module x9f1-cert-mgmt -static const unsigned char cvOID_x9f1_cert_mgmt [] = { 0x2A, 0x86, 0x48, 0xCE, 0x38, 0x01, 0x01}; -//1.2.840.10040.2 ANSI X9.57 holdinstruction -static const unsigned char cvOID_holdinstruction [] = { 0x2A, 0x86, 0x48, 0xCE, 0x38, 0x02}; -//1.2.840.10040.2.1 ANSI X9.57 hold instruction holdinstruction-none -static const unsigned char cvOID_holdinstruction_none [] = { 0x2A, 0x86, 0x48, 0xCE, 0x38, 0x02, 0x01}; -//1.2.840.10040.2.2 ANSI X9.57 hold instruction callissuer -static const unsigned char cvOID_callissuer [] = { 0x2A, 0x86, 0x48, 0xCE, 0x38, 0x02, 0x02}; -//1.2.840.10040.2.3 ANSI X9.57 hold instruction reject -static const unsigned char cvOID_reject [] = { 0x2A, 0x86, 0x48, 0xCE, 0x38, 0x02, 0x03}; -//1.2.840.10040.2.4 ANSI X9.57 hold instruction pickupToken -static const unsigned char cvOID_pickupToken [] = { 0x2A, 0x86, 0x48, 0xCE, 0x38, 0x02, 0x04}; -//1.2.840.10040.3 ANSI X9.57 attribute -static const unsigned char cvOID_attribute [] = { 0x2A, 0x86, 0x48, 0xCE, 0x38, 0x03}; -//1.2.840.10040.3.1 ANSI X9.57 attribute countersignature -static const unsigned char cvOID_countersignature [] = { 0x2A, 0x86, 0x48, 0xCE, 0x38, 0x03, 0x01}; -//1.2.840.10040.3.2 ANSI X9.57 attribute attribute-cert -static const unsigned char cvOID_attribute_cert [] = { 0x2A, 0x86, 0x48, 0xCE, 0x38, 0x03, 0x02}; -//1.2.840.10040.4 ANSI X9.57 algorithm -static const unsigned char cvOID_algorithm [] = { 0x2A, 0x86, 0x48, 0xCE, 0x38, 0x04}; -//1.2.840.10040.4.1 ANSI X9.57 algorithm dsa -static const unsigned char cvOID_dsa [] = { 0x2A, 0x86, 0x48, 0xCE, 0x38, 0x04, 0x01}; -//1.2.840.10040.4.2 ANSI X9.57 algorithm dsa-match -static const unsigned char cvOID_dsa_match [] = { 0x2A, 0x86, 0x48, 0xCE, 0x38, 0x04, 0x02}; -//1.2.840.10040.4.3 ANSI X9.57 algorithm dsaWithSha1 -static const unsigned char cvOID_dsaWithSha1 [] = { 0x2A, 0x86, 0x48, 0xCE, 0x38, 0x04, 0x03}; -//1.2.840.10045.1 ANSI X9.62. This OID is also assigned as ecdsa-with-SHA1 fieldType -static const unsigned char cvOID_fieldType [] = { 0x2A, 0x86, 0x48, 0xCE, 0x3D, 0x01}; -//1.2.840.10045.1.1 ANSI X9.62 field type prime-field -static const unsigned char cvOID_prime_field [] = { 0x2A, 0x86, 0x48, 0xCE, 0x3D, 0x01, 0x01}; -//1.2.840.10045.1.2 ANSI X9.62 field type characteristic-two-field -static const unsigned char cvOID_characteristic_two_field [] = { 0x2A, 0x86, 0x48, 0xCE, 0x3D, 0x01, 0x02}; -//1.2.840.10045.1.2.3 ANSI X9.62 field type characteristic-two-basis -static const unsigned char cvOID_characteristic_two_basis [] = { 0x2A, 0x86, 0x48, 0xCE, 0x3D, 0x01, 0x02, 0x03}; -//1.2.840.10045.1.2.3.1 ANSI X9.62 field basis onBasis -static const unsigned char cvOID_onBasis [] = { 0x2A, 0x86, 0x48, 0xCE, 0x3D, 0x01, 0x02, 0x03, 0x01}; -//1.2.840.10045.1.2.3.2 ANSI X9.62 field basis tpBasis -static const unsigned char cvOID_tpBasis [] = { 0x2A, 0x86, 0x48, 0xCE, 0x3D, 0x01, 0x02, 0x03, 0x02}; -//1.2.840.10045.1.2.3.3 ANSI X9.62 field basis ppBasis -static const unsigned char cvOID_ppBasis [] = { 0x2A, 0x86, 0x48, 0xCE, 0x3D, 0x01, 0x02, 0x03, 0x03}; -//1.2.840.10045.2 ANSI X9.62 publicKeyType -static const unsigned char cvOID_publicKeyType [] = { 0x2A, 0x86, 0x48, 0xCE, 0x3D, 0x02}; -//1.2.840.10045.2.1 ANSI X9.62 public key type ecPublicKey -static const unsigned char cvOID_ecPublicKey [] = { 0x2A, 0x86, 0x48, 0xCE, 0x3D, 0x02, 0x01}; -//1.2.840.10046.1 ANSI X9.42 fieldType -static const unsigned char cvOID_fieldType42 [] = { 0x2A, 0x86, 0x48, 0xCE, 0x3E, 0x01}; -//1.2.840.10046.1.1 ANSI X9.42 field type gf-prime -static const unsigned char cvOID_gf_prime [] = { 0x2A, 0x86, 0x48, 0xCE, 0x3E, 0x01, 0x01}; -//1.2.840.10046.2 ANSI X9.42 numberType -static const unsigned char cvOID_numberType [] = { 0x2A, 0x86, 0x48, 0xCE, 0x3E, 0x02}; -//1.2.840.10046.2.1 ANSI X9.42 number type dhPublicKey -static const unsigned char cvOID_dhPublicKey [] = { 0x2A, 0x86, 0x48, 0xCE, 0x3E, 0x02, 0x01}; -//1.2.840.10046.3 ANSI X9.42 scheme -static const unsigned char cvOID_scheme [] = { 0x2A, 0x86, 0x48, 0xCE, 0x3E, 0x03}; -//1.2.840.10046.3.1 ANSI X9.42 scheme dhStatic -static const unsigned char cvOID_dhStatic [] = { 0x2A, 0x86, 0x48, 0xCE, 0x3E, 0x03, 0x01}; -//1.2.840.10046.3.2 ANSI X9.42 scheme dhEphem -static const unsigned char cvOID_dhEphem [] = { 0x2A, 0x86, 0x48, 0xCE, 0x3E, 0x03, 0x02}; -//1.2.840.10046.3.3 ANSI X9.42 scheme dhHybrid1 -static const unsigned char cvOID_dhHybrid1 [] = { 0x2A, 0x86, 0x48, 0xCE, 0x3E, 0x03, 0x03}; -//1.2.840.10046.3.4 ANSI X9.42 scheme dhHybrid2 -static const unsigned char cvOID_dhHybrid2 [] = { 0x2A, 0x86, 0x48, 0xCE, 0x3E, 0x03, 0x04}; -//1.2.840.10046.3.5 ANSI X9.42 scheme mqv2 -static const unsigned char cvOID_mqv2 [] = { 0x2A, 0x86, 0x48, 0xCE, 0x3E, 0x03, 0x05}; -//1.2.840.10046.3.6 ANSI X9.42 scheme mqv1 -static const unsigned char cvOID_mqv1 [] = { 0x2A, 0x86, 0x48, 0xCE, 0x3E, 0x03, 0x06}; -//1.2.840.113533.7.65.0 Nortel Secure Networks ce (1 2 840 113533 7 65) entrustVersInfo -static const unsigned char cvOID_entrustVersInfo [] = { 0x2A, 0x86, 0x48, 0x86, 0xF6, 0x7D, 0x07, 0x41, 0x00}; -//1.2.840.113533.7.66.3 Nortel Secure Networks alg (1 2 840 113533 7 66) cast3CBC -static const unsigned char cvOID_cast3CBC [] = { 0x2A, 0x86, 0x48, 0x86, 0xF6, 0x7D, 0x07, 0x42, 0x03}; -//1.2.840.113533.7.66.10 Nortel Secure Networks alg (1 2 840 113533 7 66) cast5CBC -static const unsigned char cvOID_cast5CBC [] = { 0x2A, 0x86, 0x48, 0x86, 0xF6, 0x7D, 0x07, 0x42, 0x0A}; -//1.2.840.113533.7.66.11 Nortel Secure Networks alg (1 2 840 113533 7 66) cast5MAC -static const unsigned char cvOID_cast5MAC [] = { 0x2A, 0x86, 0x48, 0x86, 0xF6, 0x7D, 0x07, 0x42, 0x0B}; -//1.2.840.113533.7.66.12 Nortel Secure Networks alg (1 2 840 113533 7 66) pbeWithMD5AndCAST5-CBC -static const unsigned char cvOID_pbeWithMD5AndCAST5_CBC [] = { 0x2A, 0x86, 0x48, 0x86, 0xF6, 0x7D, 0x07, 0x42, 0x0C}; -//1.2.840.113533.7.66.13 Nortel Secure Networks alg (1 2 840 113533 7 66) passwordBasedMac -static const unsigned char cvOID_passwordBasedMac [] = { 0x2A, 0x86, 0x48, 0x86, 0xF6, 0x7D, 0x07, 0x42, 0x0D}; -//1.2.840.113 -static const unsigned char cvOID_entrustUser [] = { 0x2A, 0x86, 0x48, 0x86, 0xF6, 0x7D, 0x07, 0x43, 0x0C}; -//1.2.840.113533.7.68.0 Nortel Secure Networks at (1 2 840 113533 7 68) entrustCAInfo -static const unsigned char cvOID_entrustCAInfo [] = { 0x2A, 0x86, 0x48, 0x86, 0xF6, 0x7D, 0x07, 0x44, 0x00}; -//1.2.840.113533.7.68.10 Nortel Secure Networks at (1 2 840 113533 7 68) attributeCertificate -static const unsigned char cvOID_attributeCertificate [] = { 0x2A, 0x86, 0x48, 0x86, 0xF6, 0x7D, 0x07, 0x44, 0x0A}; -//1.2.840.113549.1.1.1 PKCS #1 rsaEncryption -static const unsigned char cvOID_rsaEncryption [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x01, 0x01}; -//1.2.840.113549.1.1.2 PKCS #1 md2withRSAEncryption -static const unsigned char cvOID_md2withRSAEncryption [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x01, 0x02}; -//1.2.840.113549.1.1.3 PKCS #1 md4withRSAEncryption -static const unsigned char cvOID_md4withRSAEncryption [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x01, 0x03}; -//1.2.840.113549.1.1.4 PKCS #1 md5withRSAEncryption -static const unsigned char cvOID_md5withRSAEncryption [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x01, 0x04}; -//1.2.840.113549.1.1.5 PKCS #1 sha1withRSAEncryption -static const unsigned char cvOID_sha1withRSAEncryption [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x01, 0x05}; -//1.2.840.113549.1.1.6 PKCS #1. This OID may also be assigned as ripemd160WithRSAEncryption rsaOAEPEncryptionSET -static const unsigned char cvOID_rsaOAEPEncryptionSET [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x01, 0x06}; -//1.2.840.113549.1.1.8 PKCS #1. id-mgf1 (0x2A864886F70D010108) -static const unsigned char cvOID_mgf1 [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x01, 0x08}; -//1.2.840.113549.1.1.10 PKCS #1. id-RSASSA-PSS (0x2A864886F70D01010A) -static const unsigned char cvOID_rsaSSA_PSS [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x01, 0x0A}; -//1.2.840.113549.1.2 Obsolete BSAFE OID bsafeRsaEncr -static const unsigned char cvOID_bsafeRsaEncr [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x01}; -//1.2.840.113549.1.3.1 PKCS #3 dhKeyAgreement -static const unsigned char cvOID_dhKeyAgreement [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x03, 0x01}; -//1.2.840.113549.1.5.1 PKCS #5 pbeWithMD2AndDES-CBC -static const unsigned char cvOID_pbeWithMD2AndDES_CBC [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x05, 0x01}; -//1.2.840.113549.1.5.3 PKCS #5 pbeWithMD5AndDES-CBC -static const unsigned char cvOID_pbeWithMD5AndDES_CBC [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x05, 0x03}; -//1.2.840.113549.1.5.4 PKCS #5 pbeWithMD2AndRC2-CBC -static const unsigned char cvOID_pbeWithMD2AndRC2_CBC [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x05, 0x04}; -//1.2.840.113549.1.5.6 PKCS #5 pbeWithMD5AndRC2-CBC -static const unsigned char cvOID_pbeWithMD5AndRC2_CBC [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x05, 0x06}; -//1.2.840.113549.1.5.9 PKCS #5, used in BSAFE only pbeWithMD5AndXOR -static const unsigned char cvOID_pbeWithMD5AndXOR [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x05, 0x09}; -//1.2.840.113549.1.5.10 PKCS #5 pbeWithSHAAndDES-CBC -static const unsigned char cvOID_pbeWithSHAAndDES_CBC [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x05, 0x0A}; -//1.2.840.113549.1.5.12 PKCS #5 v2.0 id-PBKDF2 -static const unsigned char cvOID_id_PBKDF2 [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x05, 0x0C}; -//1.2.840.113549.1.5.13 PKCS #5 v2.0 id-PBES2 -static const unsigned char cvOID_id_PBES2 [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x05, 0x0D}; -//1.2.840.113549.1.5.14 PKCS #5 v2.0 id-PBMAC1 -static const unsigned char cvOID_id_PBMAC1 [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x05, 0x0E}; -//1.2.840.113549.1.7.1 PKCS #7 data -static const unsigned char cvOID_data [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x07, 0x01}; -//1.2.840.113549.1.7.2 PKCS #7 signedData -static const unsigned char cvOID_signedData [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x07, 0x02}; -//1.2.840.113549.1.7.3 PKCS #7 envelopedData -static const unsigned char cvOID_envelopedData [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x07, 0x03}; -//1.2.840.113549.1.7.4 PKCS #7 signedAndEnvelopedData -static const unsigned char cvOID_signedAndEnvelopedData [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x07, 0x04}; -//1.2.840.113549.1.7.5 PKCS #7 digestedData -static const unsigned char cvOID_digestedData [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x07, 0x05}; -//1.2.840.113549.1.7.6 PKCS #7 encryptedData -static const unsigned char cvOID_encryptedData [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x07, 0x06}; -//1.2.840.113549.1.7.7 PKCS #7 experimental dataWithAttributes -static const unsigned char cvOID_dataWithAttributes [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x07, 0x07}; -//1.2.840.113549.1.7.8 PKCS #7 experimental encryptedPrivateKeyInfo -static const unsigned char cvOID_encryptedPrivateKeyInfo [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x07, 0x08}; -//1.2.840.113549.1.9.1 PKCS #9 (1 2 840 113549 1 9). Deprecated, use an altName extension instead emailAddress -static const unsigned char cvOID_emailAddress_PKCS9 [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x09, 0x01}; -//1.2.840.113549.1.9.2 PKCS #9 (1 2 840 113549 1 9) unstructuredName -static const unsigned char cvOID_unstructuredName [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x09, 0x02}; -//1.2.840.113549.1.9.3 PKCS #9 (1 2 840 113549 1 9) contentType -static const unsigned char cvOID_contentType [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x09, 0x03}; -//1.2.840.113549.1.9.4 PKCS #9 (1 2 840 113549 1 9) messageDigest -static const unsigned char cvOID_messageDigest [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x09, 0x04}; -//1.2.840.113549.1.9.5 PKCS #9 (1 2 840 113549 1 9) signingTime -static const unsigned char cvOID_signingTime [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x09, 0x05}; -//1.2.840.113549.1.9.6 PKCS #9 (1 2 840 113549 1 9) countersignature -static const unsigned char cvOID_countersignature_PKCS9 [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x09, 0x06}; -//1.2.840.113549.1.9.7 PKCS #9 (1 2 840 113549 1 9) challengePassword -static const unsigned char cvOID_challengePassword [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x09, 0x07}; -//1.2.840.113549.1.9.8 PKCS #9 (1 2 840 113549 1 9) unstructuredAddress -static const unsigned char cvOID_unstructuredAddress [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x09, 0x08}; -//1.2.840.113549.1.9.9 PKCS #9 (1 2 840 113549 1 9) extendedCertificateAttributes -static const unsigned char cvOID_extendedCertificateAttributes [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x09, 0x09}; -//1.2.840.113549.1.9.10 PKCS #9 (1 2 840 113549 1 9) experimental issuerAndSerialNumber -static const unsigned char cvOID_issuerAndSerialNumber [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x09, 0x0A}; -//1.2.840.113549.1.9.11 PKCS #9 (1 2 840 113549 1 9) experimental passwordCheck -static const unsigned char cvOID_passwordCheck [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x09, 0x0B}; -//1.2.840.113549.1.9.12 PKCS #9 (1 2 840 113549 1 9) experimental publicKey -static const unsigned char cvOID_publicKey [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x09, 0x0C}; -//1.2.840.113549.1.9.13 PKCS #9 (1 2 840 113549 1 9) experimental signingDescription -static const unsigned char cvOID_signingDescription [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x09, 0x0D}; -//1.2.840.113549.1.9.14 PKCS #9 (1 2 840 113549 1 9) experimental extensionReq -static const unsigned char cvOID_extensionReq [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x09, 0x0E}; -//1.2.840.113549.1.9.15 PKCS #9 (1 2 840 113549 1 9). This OID was formerly assigned as symmetricCapabilities, then reassigned as SMIMECapabilities, then renamed to the current name sMIMECapabilities -static const unsigned char cvOID_sMIMECapabilities [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x09, 0x0F}; -//1.2.840.113549.1.9.15.1 sMIMECapabilities (1 2 840 113549 1 9 15) preferSignedData -static const unsigned char cvOID_preferSignedData [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x09, 0x0F, 0x01}; -//1.2.840.113549.1.9.15.2 sMIMECapabilities (1 2 840 113549 1 9 15) canNotDecryptAny -static const unsigned char cvOID_canNotDecryptAny [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x09, 0x0F, 0x02}; -//1.2.840.113549.1.9.15.3 sMIMECapabilities (1 2 840 113549 1 9 15). Deprecated, use (1 2 840 113549 1 9 16 2 1) instead receiptRequest -static const unsigned char cvOID_receiptRequest [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x09, 0x0F, 0x03}; -//1.2.840.113549.1.9.15.4 sMIMECapabilities (1 2 840 113549 1 9 15). Deprecated, use (1 2 840 113549 1 9 16 1 1) instead receipt -static const unsigned char cvOID_receipt [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x09, 0x0F, 0x04}; -//1.2.840.113549.1.9.15.5 sMIMECapabilities (1 2 840 113549 1 9 15). Deprecated, use (1 2 840 113549 1 9 16 2 4) instead contentHints -static const unsigned char cvOID_contentHints [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x09, 0x0F, 0x05}; -//1.2.840.113549.1.9.15.6 sMIMECapabilities (1 2 840 113549 1 9 15). Deprecated, use (1 2 840 113549 1 9 16 2 3) instead mlExpansionHistory -static const unsigned char cvOID_mlExpansionHistory [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x09, 0x0F, 0x06}; -//1.2.840.113549.1.9.16 PKCS #9 (1 2 840 113549 1 9) id-sMIME -static const unsigned char cvOID_id_sMIME [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x09, 0x10}; -//1.2.840.113549.1.9.16.0 id-sMIME (1 2 840 113549 1 9 16) id-mod -static const unsigned char cvOID_id_mod [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x09, 0x10, 0x00}; -//1.2.840.113549.1.9.16.0.1 S/MIME Modules (1 2 840 113549 1 9 16 0) id-mod-cms -static const unsigned char cvOID_id_mod_cms [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x09, 0x10, 0x00, 0x01}; -//1.2.840.113549.1.9.16.0.2 S/MIME Modules (1 2 840 113549 1 9 16 0) id-mod-ess -static const unsigned char cvOID_id_mod_ess [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x09, 0x10, 0x00, 0x02}; -//1.2.840.113549.1.9.16.1 id-sMIME (1 2 840 113549 1 9 16) id-ct -static const unsigned char cvOID_id_ct [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x09, 0x10, 0x01}; -//1.2.840.113549.1.9.16.1.1 S/MIME Content Types (1 2 840 113549 1 9 16 1) id-ct-receipt -static const unsigned char cvOID_id_ct_receipt [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x09, 0x10, 0x01, 0x01}; -//1.2.840.113549.1.9.16.1.2 S/MIME Content Types (1 2 840 113549 1 9 16 1) id-ct-authData -static const unsigned char cvOID_id_ct_authData [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x09, 0x10, 0x01, 0x02}; -//1.2.840.113549.1.9.16.1.3 S/MIME Content Types (1 2 840 113549 1 9 16 1) id-ct-compressedData -static const unsigned char cvOID_id_ct_compressedData [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x09, 0x10, 0x01, 0x03}; -//1.2.840.113549.1.9.16.2 id-sMIME (1 2 840 113549 1 9 16) id-aa -static const unsigned char cvOID_id_aa [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x09, 0x10, 0x02}; -//1.2.840.113549.1.9.16.2.1 S/MIME Authenticated Attributes (1 2 840 113549 1 9 16 2) id-aa-receiptRequest -static const unsigned char cvOID_id_aa_receiptRequest [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x09, 0x10, 0x02, 0x01}; -//1.2.840.113549.1.9.16.2.2 S/MIME Authenticated Attributes (1 2 840 113549 1 9 16 2) id-aa-securityLabel -static const unsigned char cvOID_id_aa_securityLabel [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x09, 0x10, 0x02, 0x02}; -//1.2.840.113549.1.9.16.2.3 S/MIME Authenticated Attributes (1 2 840 113549 1 9 16 2) id-aa-mlExpandHistory -static const unsigned char cvOID_id_aa_mlExpandHistory [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x09, 0x10, 0x02, 0x03}; -//1.2.840.113549.1.9.16.2.4 S/MIME Authenticated Attributes (1 2 840 113549 1 9 16 2) id-aa-contentHint -static const unsigned char cvOID_id_aa_contentHint [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x09, 0x10, 0x02, 0x04}; -//1.2.840.113549.1.9.16.2.5 S/MIME Authenticated Attributes (1 2 840 113549 1 9 16 2) id-aa-msgSigDigest -static const unsigned char cvOID_id_aa_msgSigDigest [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x09, 0x10, 0x02, 0x05}; -//1.2.840.113549.1.9.16.2.7 S/MIME Authenticated Attributes (1 2 840 113549 1 9 16 2) id-aa-contentIdentifier -static const unsigned char cvOID_id_aa_contentIdentifier [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x09, 0x10, 0x02, 0x07}; -//1.2.840.113549.1.9.16.2.8 S/MIME Authenticated Attributes (1 2 840 113549 1 9 16 2) id-aa-macValue -static const unsigned char cvOID_id_aa_macValue [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x09, 0x10, 0x02, 0x08}; -//1.2.840.113549.1.9.16.2.9 S/MIME Authenticated Attributes (1 2 840 113549 1 9 16 2) id-aa-equivalentLabels -static const unsigned char cvOID_id_aa_equivalentLabels [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x09, 0x10, 0x02, 0x09}; -//1.2.840.113549.1.9.16.2.10 S/MIME Authenticated Attributes (1 2 840 113549 1 9 16 2) id-aa-contentReference -static const unsigned char cvOID_id_aa_contentReference [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x09, 0x10, 0x02, 0x0A}; -//1.2.840.113549.1.9.16.3.5 S/MIME Algorithms (1 2 840 113549 1 9 16 3) id-alg-ESDH -static const unsigned char cvOID_id_alg_ESDH [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x09, 0x10, 0x03, 0x05}; -//1.2.840.113549.1.9.16.3.6 S/MIME Algorithms (1 2 840 113549 1 9 16 3) id-alg-CMS3DESwrap -static const unsigned char cvOID_id_alg_CMS3DESwrap [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x09, 0x10, 0x03, 0x06}; -//1.2.840.113549.1.9.16.3.7 S/MIME Algorithms (1 2 840 113549 1 9 16 3) id-alg-CMSRC2wrap -static const unsigned char cvOID_id_alg_CMSRC2wrap [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x09, 0x10, 0x03, 0x07}; -//1.2.840.113549.1.9.16.3.8 S/MIME Algorithms (1 2 840 113549 1 9 16 3) id-alg-zlib -static const unsigned char cvOID_id_alg_zlib [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x09, 0x10, 0x03, 0x08}; -//1.2.840.113549.1.9.20 PKCS #9 (1 2 840 113549 1 9) friendlyName (for PKCS #12) -static const unsigned char cvOID_friendlyName [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x09, 0x14}; -//1.2.840.113549.1.9.21 PKCS #9 (1 2 840 113549 1 9) localKeyID (for PKCS #12) -static const unsigned char cvOID_localKeyID[] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x09, 0x15}; -//1.2.840.113549.1.9.22 PKCS #9 (1 2 840 113549 1 9) certTypes (for PKCS #12) -static const unsigned char cvOID_certTypes[] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x09, 0x16}; -//1.2.840.113549.1.9.22.1 PKCS #9 (1 2 840 113549 1 9) x509Certificate (for PKCS #12) -static const unsigned char cvOID_x509Certificate[] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x09, 0x16, 0x01}; -//1.2.840.113549.1.9.22.2 PKCS #9 (1 2 840 113549 1 9) sdsiCertificate (for PKCS #12) -static const unsigned char cvOID_sdsiCertificate [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x09, 0x16, 0x02}; -//1.2.840.113549.1.9.23 PKCS #9 (1 2 840 113549 1 9) crlTypes (for PKCS #12) -static const unsigned char cvOID_crlTypes[] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x09, 0x17}; -//1.2.840.113549.1.9.23.1 PKCS #9 (1 2 840 113549 1 9) x509Crl (for PKCS #12) -static const unsigned char cvOID_x509Crl[] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x09, 0x17, 0x01}; -//1.2.840.113549.1.12.1 This OID was formerly assigned as PKCS #12 modeID pkcs-12-PbeIds -static const unsigned char cvOID_pkcs_12_PbeIds [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x0C, 0x01}; -//1.2.840.113549.1.12.1.1 PKCS #12 PbeIds (1 2 840 113549 1 12 1). This OID was formerly assigned as pkcs-12-OfflineTransportMode pbeWithSHAAnd128BitRC4 -static const unsigned char cvOID_pbeWithSHAAnd128BitRC4 [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x0C, 0x01, 0x01}; -//1.2.840.113549.1.12.1.2 PKCS #12 PbeIds (1 2 840 113549 1 12 2). This OID was formerly assigned as pkcs-12-OnlineTransportMode pbeWithSHAAnd40BitRC4 -static const unsigned char cvOID_pbeWithSHAAnd40BitRC4 [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x0C, 0x01, 0x02}; -//1.2.840.113549.1.12.1.3 PKCS #12 PbeIds (1 2 840 113549 1 12 3) pbeWithSHAAnd3-KeyTripleDES-CBC -static const unsigned char cvOID_pbeWithSHAAnd3_KeyTripleDES_CBC [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x0C, 0x01, 0x03}; -//1.2.840.113549.1.12.1.4 PKCS #12 PbeIds (1 2 840 113549 1 12 3) pbeWithSHAAnd2-KeyTripleDES-CBC -static const unsigned char cvOID_pbeWithSHAAnd2_KeyTripleDES_CBC [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x0C, 0x01, 0x04}; -//1.2.840.113549.1.12.1.5 PKCS #12 PbeIds (1 2 840 113549 1 12 3) pbeWithSHAAnd128BitRC2-CBC -static const unsigned char cvOID_pbeWithSHAAnd128BitRC2_CBC [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x0C, 0x01, 0x05}; -//1.2.840.113549.1.12.1.6 PKCS #12 PbeIds (1 2 840 113549 1 12 3) pbeWithSHAAnd40BitRC2-CBC -static const unsigned char cvOID_pbeWithSHAAnd40BitRC2_CBC [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x0C, 0x01, 0x06}; -//1.2.840.113549.1.12.2 Deprecated pkcs-12-ESPVKID -static const unsigned char cvOID_pkcs_12_ESPVKID [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x0C, 0x02}; -//1.2.840.113549.1.12.2.1 PKCS #12 ESPVKID (1 2 840 113549 1 12 2). Deprecated, use (1 2 840 113549 1 12 3 5) instead pkcs-12-PKCS8KeyShrouding -static const unsigned char cvOID_pkcs_12_PKCS8KeyShrouding [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x0C, 0x02, 0x01}; -//1.2.840.113549.1.12.3.1 PKCS #12 BagIds (1 2 840 113549 1 12 3) pkcs-12-keyBagId -static const unsigned char cvOID_pkcs_12_keyBagId [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x0C, 0x03, 0x01}; -//1.2.840.113549.1.12.3.2 PKCS #12 BagIds (1 2 840 113549 1 12 3) pkcs-12-certAndCRLBagId -static const unsigned char cvOID_pkcs_12_certAndCRLBagId [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x0C, 0x03, 0x02}; -//1.2.840.113549.1.12.3.3 PKCS #12 BagIds (1 2 840 113549 1 12 3) pkcs-12-secretBagId -static const unsigned char cvOID_pkcs_12_secretBagId [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x0C, 0x03, 0x03}; -//1.2.840.113549.1.12.3.4 PKCS #12 BagIds (1 2 840 113549 1 12 3) pkcs-12-safeContentsId -static const unsigned char cvOID_pkcs_12_safeContentsId [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x0C, 0x03, 0x04}; -//1.2.840.113549.1.12.3.5 PKCS #12 BagIds (1 2 840 113549 1 12 3) pkcs-12-pkcs-8ShroudedKeyBagId -static const unsigned char cvOID_pkcs_12_pkcs_8ShroudedKeyBagId [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x0C, 0x03, 0x05}; -//1.2.840.113549.1.12.4 Deprecated pkcs-12-CertBagID -static const unsigned char cvOID_pkcs_12_CertBagID [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x0C, 0x04}; -//1.2.840.113549.1.12.4.1 PKCS #12 CertBagID (1 2 840 113549 1 12 4). This OID was formerly assigned as pkcs-12-X509CertCRLBag pkcs-12-X509CertCRLBagID -static const unsigned char cvOID_pkcs_12_X509CertCRLBagID [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x0C, 0x04, 0x01}; -//1.2.840.113549.1.12.4.2 PKCS #12 CertBagID (1 2 840 113549 1 12 4). This OID was formerly assigned as pkcs-12-SDSICertBag pkcs-12-SDSICertBagID -static const unsigned char cvOID_pkcs_12_SDSICertBagID [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x0C, 0x04, 0x02}; -//1.2.840.113549.1.12.5.1 PKCS #12 OID (1 2 840 113549 1 12 5). Deprecated, use the partially compatible (1 2 840 113549 1 12 1) OIDs instead pkcs-12-PBEID -static const unsigned char cvOID_pkcs_12_PBEID [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x0C, 0x05, 0x01}; -//1.2.840.113549.1.12.5.1.1 PKCS #12 OID PBEID (1 2 840 113549 1 12 5 1). Deprecated, use (1 2 840 113549 1 12 1 1) instead pkcs-12-PBEWithSha1And128BitRC4 -static const unsigned char cvOID_pkcs_12_PBEWithSha1And128BitRC4 [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x0C, 0x05, 0x01, 0x01}; -//1.2.840.113549.1.12.5.1.2 PKCS #12 OID PBEID (1 2 840 113549 1 12 5 1). Deprecated, use (1 2 840 113549 1 12 1 2) instead pkcs-12-PBEWithSha1And40BitRC4 -static const unsigned char cvOID_pkcs_12_PBEWithSha1And40BitRC4 [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x0C, 0x05, 0x01, 0x02}; -//1.2.840.113549.1.12.5.1.3 PKCS #12 OID PBEID (1 2 840 113549 1 12 5 1). Deprecated, use the incompatible but similar (1 2 840 113549 1 12 1 3) or (1 2 840 113549 1 12 1 4) instead pkcs-12-PBEWithSha1AndTripleDESCBC -static const unsigned char cvOID_pkcs_12_PBEWithSha1AndTripleDESCBC [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x0C, 0x05, 0x01, 0x03}; -//1.2.840.113549.1.12.5.1.4 PKCS #12 OID PBEID (1 2 840 113549 1 12 5 1). Deprecated, use (1 2 840 113549 1 12 1 5) instead pkcs-12-PBEWithSha1And128BitRC2CBC -static const unsigned char cvOID_pkcs_12_PBEWithSha1And128BitRC2CBC [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x0C, 0x05, 0x01, 0x04}; -//1.2.840.113549.1.12.5.1.5 PKCS #12 OID PBEID (1 2 840 113549 1 12 5 1). Deprecated, use (1 2 840 113549 1 12 1 6) instead pkcs-12-PBEWithSha1And40BitRC2CBC -static const unsigned char cvOID_pkcs_12_PBEWithSha1And40BitRC2CBC [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x0C, 0x05, 0x01, 0x05}; -//1.2.840.113549.1.12.5.1.6 PKCS #12 OID PBEID (1 2 840 113549 1 12 5 1). Deprecated, use the incompatible but similar (1 2 840 113549 1 12 1 1) or (1 2 840 113549 1 12 1 2) instead pkcs-12-PBEWithSha1AndRC4 -static const unsigned char cvOID_pkcs_12_PBEWithSha1AndRC4 [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x0C, 0x05, 0x01, 0x06}; -//1.2.840.113549.1.12.5.1.7 PKCS #12 OID PBEID (1 2 840 113549 1 12 5 1). Deprecated, use the incompatible but similar (1 2 840 113549 1 12 1 5) or (1 2 840 113549 1 12 1 6) instead pkcs-12-PBEWithSha1AndRC2CBC -static const unsigned char cvOID_pkcs_12_PBEWithSha1AndRC2CBC [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x0C, 0x05, 0x01, 0x07}; -//1.2.840.113549.1.12.5.2.1 PKCS #12 OID EnvelopingID (1 2 840 113549 1 12 5 2). Deprecated, use the conventional PKCS #1 OIDs instead pkcs-12-RSAEncryptionWith128BitRC4 -static const unsigned char cvOID_pkcs_12_RSAEncryptionWith128BitRC4 [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x0C, 0x05, 0x02, 0x01}; -//1.2.840.113549.1.12.5.2.2 PKCS #12 OID EnvelopingID (1 2 840 113549 1 12 5 2). Deprecated, use the conventional PKCS #1 OIDs instead pkcs-12-RSAEncryptionWith40BitRC4 -static const unsigned char cvOID_pkcs_12_RSAEncryptionWith40BitRC4 [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x0C, 0x05, 0x02, 0x02}; -//1.2.840.113549.1.12.5.2.3 PKCS #12 OID EnvelopingID (1 2 840 113549 1 12 5 2). Deprecated, use the conventional PKCS #1 OIDs instead pkcs-12-RSAEncryptionWithTripleDES -static const unsigned char cvOID_pkcs_12_RSAEncryptionWithTripleDES [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x0C, 0x05, 0x02, 0x03}; -//1.2.840.113549.1.12.5.3.1 PKCS #12 OID SignatureID (1 2 840 113549 1 12 5 3). Deprecated, use the conventional PKCS #1 OIDs instead pkcs-12-RSASignatureWithSHA1Digest -static const unsigned char cvOID_pkcs_12_RSASignatureWithSHA1Digest [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x0C, 0x05, 0x03, 0x01}; -//1.2.840.113549.1.12.10.1.1 PKCS #12 BagIds (1 2 840 113549 1 12 10 1) pkcs-12-keyBag -static const unsigned char cvOID_pkcs_12_keyBag [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x0C, 0x0A, 0x01, 0x01}; -//1.2.840.113549.1.12.10.1.2 PKCS #12 BagIds (1 2 840 113549 1 12 10 1) pkcs-12-pkcs-8ShroudedKeyBag -static const unsigned char cvOID_pkcs_12_pkcs_8ShroudedKeyBag [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x0C, 0x0A, 0x01, 0x02}; -//1.2.840.113549.1.12.10.1.3 PKCS #12 BagIds (1 2 840 113549 1 12 10 1) pkcs-12-certBag -static const unsigned char cvOID_pkcs_12_certBag [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x0C, 0x0A, 0x01, 0x03}; -//1.2.840.113549.1.12.10.1.4 PKCS #12 BagIds (1 2 840 113549 1 12 10 1) pkcs-12-crlBag -static const unsigned char cvOID_pkcs_12_crlBag [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x0C, 0x0A, 0x01, 0x04}; -//1.2.840.113549.1.12.10.1.5 PKCS #12 BagIds (1 2 840 113549 1 12 10 1) pkcs-12-secretBag -static const unsigned char cvOID_pkcs_12_secretBag [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x0C, 0x0A, 0x01, 0x05}; -//1.2.840.113549.1.12.10.1.6 PKCS #12 BagIds (1 2 840 113549 1 12 10 1) pkcs-12-safeContentsBag -static const unsigned char cvOID_pkcs_12_safeContentsBag [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x0C, 0x0A, 0x01, 0x06}; -//1.2.840.113549.2.2 RSADSI digestAlgorithm (1 2 840 113549 2) md2 -static const unsigned char cvOID_md2 [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x02, 0x02}; -//1.2.840.113549.2.4 RSADSI digestAlgorithm (1 2 840 113549 2) md4 -static const unsigned char cvOID_md4 [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x02, 0x04}; -//1.2.840.113549.2.5 RSADSI digestAlgorithm (1 2 840 113549 2) md5 -static const unsigned char cvOID_md5 [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x02, 0x05}; -//1.2.840.113549.3.2 RSADSI encryptionAlgorithm (1 2 840 113549 3) rc2CBC -static const unsigned char cvOID_rc2CBC [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x03, 0x02}; -//1.2.840.113549.3.3 RSADSI encryptionAlgorithm (1 2 840 113549 3) rc2ECB -static const unsigned char cvOID_rc2ECB [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x03, 0x03}; -//1.2.840.113549.3.4 RSADSI encryptionAlgorithm (1 2 840 113549 3) rc4 -static const unsigned char cvOID_rc4 [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x03, 0x04}; -//1.2.840.113549.3.5 RSADSI encryptionAlgorithm (1 2 840 113549 3) rc4WithMAC -static const unsigned char cvOID_rc4WithMAC [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x03, 0x05}; -//1.2.840.113549.3.6 RSADSI encryptionAlgorithm (1 2 840 113549 3) desx-CBC -static const unsigned char cvOID_desx_CBC [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x03, 0x06}; -//1.2.840.113549.3.7 RSADSI encryptionAlgorithm (1 2 840 113549 3) des-EDE3-CBC -static const unsigned char cvOID_des_EDE3_CBC [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x03, 0x07}; -//1.2.840.113549.3.8 RSADSI encryptionAlgorithm (1 2 840 113549 3) rc5CBC -static const unsigned char cvOID_rc5CBC [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x03, 0x08}; -//1.2.840.113549.3.9 RSADSI encryptionAlgorithm (1 2 840 113549 3) rc5-CBCPad -static const unsigned char cvOID_rc5_CBCPad [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x03, 0x09}; -//1.2.840.113549.3.10 RSADSI encryptionAlgorithm (1 2 840 113549 3). Formerly called CDMFCBCPad desCDMF -static const unsigned char cvOID_desCDMF [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x03, 0x0A}; -//1.3.6.1.4.1.188.7.1.1 Ascom Systech ascom -static const unsigned char cvOID_ascom [] = { 0x2B, 0x06, 0x01, 0x04, 0x01, 0x81, 0x3C, 0x07, 0x01, 0x01}; -//1.3.6.1.4.1.188.7.1.1.1 Ascom Systech ideaECB -static const unsigned char cvOID_ideaECB [] = { 0x2B, 0x06, 0x01, 0x04, 0x01, 0x81, 0x3C, 0x07, 0x01, 0x01, 0x01}; -//1.3.6.1.4.1.188.7.1.1.2 Ascom Systech ideaCBC -static const unsigned char cvOID_ideaCBC [] = { 0x2B, 0x06, 0x01, 0x04, 0x01, 0x81, 0x3C, 0x07, 0x01, 0x01, 0x02}; -//1.3.6.1.4.1.188.7.1.1.3 Ascom Systech ideaCFB -static const unsigned char cvOID_ideaCFB [] = { 0x2B, 0x06, 0x01, 0x04, 0x01, 0x81, 0x3C, 0x07, 0x01, 0x01, 0x03}; -//1.3.6.1.4.1.188.7.1.1.4 Ascom Systech ideaOFB -static const unsigned char cvOID_ideaOFB [] = { 0x2B, 0x06, 0x01, 0x04, 0x01, 0x81, 0x3C, 0x07, 0x01, 0x01, 0x04}; -//1.2.840.113556.4.3 Microsoft microsoftExcel -static const unsigned char cvOID_microsoftExcel [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x14, 0x04, 0x03}; -//1.2.840.113556.4.4 Microsoft titledWithOID -static const unsigned char cvOID_titledWithOID [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x14, 0x04, 0x04}; -//1.2.840.113556.4.5 Microsoft microsoftPowerPoint -static const unsigned char cvOID_microsoftPowerPoint [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x14, 0x04, 0x05}; -//1.3.6.1.4.1.311.2.1.4 Microsoft code signing spcIndirectDataContext -static const unsigned char cvOID_spcIndirectDataContext [] = { 0x2B, 0x06, 0x01, 0x04, 0x01, 0x82, 0x37, 0x02, 0x01, 0x04}; -//1.3.6.1.4.1.311.2.1.10 Microsoft code signing. Also known as policyLink spcAgencyInfo -static const unsigned char cvOID_spcAgencyInfo [] = { 0x2B, 0x06, 0x01, 0x04, 0x01, 0x82, 0x37, 0x02, 0x01, 0x0A}; -//1.3.6.1.4.1.311.2.1.11 Microsoft code signing spcStatementType -static const unsigned char cvOID_spcStatementType [] = { 0x2B, 0x06, 0x01, 0x04, 0x01, 0x82, 0x37, 0x02, 0x01, 0x0B}; -//1.3.6.1.4.1.311.2.1.12 Microsoft code signing spcSpOpusInfo -static const unsigned char cvOID_spcSpOpusInfo [] = { 0x2B, 0x06, 0x01, 0x04, 0x01, 0x82, 0x37, 0x02, 0x01, 0x0C}; -//1.3.6.1.4.1.311.2.1.14 Microsoft certReqExtensions -static const unsigned char cvOID_certReqExtensions [] = { 0x2B, 0x06, 0x01, 0x04, 0x01, 0x82, 0x37, 0x02, 0x01, 0x0E}; -//1.3.6.1.4.1.311.2.1.15 Microsoft code signing spcPelmageData -static const unsigned char cvOID_spcPelmageData [] = { 0x2B, 0x06, 0x01, 0x04, 0x01, 0x82, 0x37, 0x02, 0x01, 0x0F}; -//1.3.6.1.4.1.311.2.1.20 Microsoft code signing. Also known as "glue extension" spcLink (type 1) -static const unsigned char cvOID_spcLink_1[] = { 0x2B, 0x06, 0x01, 0x04, 0x01, 0x82, 0x37, 0x02, 0x01, 0x14}; -//1.3.6.1.4.1.311.2.1.21 Microsoft individualCodeSigning -static const unsigned char cvOID_individualCodeSigning [] = { 0x2B, 0x06, 0x01, 0x04, 0x01, 0x82, 0x37, 0x02, 0x01, 0x15}; -//1.3.6.1.4.1.311.2.1.22 Microsoft commercialCodeSigning -static const unsigned char cvOID_commercialCodeSigning [] = { 0x2B, 0x06, 0x01, 0x04, 0x01, 0x82, 0x37, 0x02, 0x01, 0x16}; -//1.3.6.1.4.1.311.2.1.25 Microsoft code signing. Also known as "glue extension" spcLink (type 2) -static const unsigned char cvOID_spcLink_2[] = { 0x2B, 0x06, 0x01, 0x04, 0x01, 0x82, 0x37, 0x02, 0x01, 0x19}; -//1.3.6.1.4.1.311.2.1.26 Microsoft code signing spcMinimalCriteriaInfo -static const unsigned char cvOID_spcMinimalCriteriaInfo [] = { 0x2B, 0x06, 0x01, 0x04, 0x01, 0x82, 0x37, 0x02, 0x01, 0x1A}; -//1.3.6.1.4.1.311.2.1.27 Microsoft code signing spcFinancialCriteriaInfo -static const unsigned char cvOID_spcFinancialCriteriaInfo [] = { 0x2B, 0x06, 0x01, 0x04, 0x01, 0x82, 0x37, 0x02, 0x01, 0x1B}; -//1.3.6.1.4.1.311.2.1.28 Microsoft code signing. Also known as "glue extension" spcLink (type 3) -static const unsigned char cvOID_spcLink_3[] = { 0x2B, 0x06, 0x01, 0x04, 0x01, 0x82, 0x37, 0x02, 0x01, 0x1C}; -//1.3.6.1.4.1.311.3.2.1 Microsoft code signing timestampCountersignature -static const unsigned char cvOID_timestampCountersignature [] = { 0x2B, 0x06, 0x01, 0x04, 0x01, 0x82, 0x37, 0x03, 0x02, 0x01}; -//1.3.6.1.4.1.311.10.1 Microsoft PKCS #7 contentType certTrustList -static const unsigned char cvOID_certTrustList [] = { 0x2B, 0x06, 0x01, 0x04, 0x01, 0x82, 0x37, 0x0A, 0x01}; -//1.3.6.1.4.1.311.10.2 Microsoft nextUpdateLocation -static const unsigned char cvOID_nextUpdateLocation [] = { 0x2B, 0x06, 0x01, 0x04, 0x01, 0x82, 0x37, 0x0A, 0x02}; -//1.3.6.1.4.1.311.10.3.1 Microsoft enhanced key usage certTrustListSigning -static const unsigned char cvOID_certTrustListSigning [] = { 0x2B, 0x06, 0x01, 0x04, 0x01, 0x82, 0x37, 0x0A, 0x03, 0x01}; -//1.3.6.1.4.1.311.10.3.2 Microsoft enhanced key usage timeStampSigning -static const unsigned char cvOID_timeStampSigning [] = { 0x2B, 0x06, 0x01, 0x04, 0x01, 0x82, 0x37, 0x0A, 0x03, 0x02}; -//1.3.6.1.4.1.311.10.3.3 Microsoft enhanced key usage serverGatedCrypto -static const unsigned char cvOID_serverGatedCrypto [] = { 0x2B, 0x06, 0x01, 0x04, 0x01, 0x82, 0x37, 0x0A, 0x03, 0x03}; -//1.3.6.1.4.1.311.10.3.4 Microsoft enhanced key usage encryptedFileSystem -static const unsigned char cvOID_encryptedFileSystem [] = { 0x2B, 0x06, 0x01, 0x04, 0x01, 0x82, 0x37, 0x0A, 0x03, 0x04}; -//1.3.6.1.4.1.311.10.4.1 Microsoft attribute yesnoTrustAttr -static const unsigned char cvOID_yesnoTrustAttr [] = { 0x2B, 0x06, 0x01, 0x04, 0x01, 0x82, 0x37, 0x0A, 0x04, 0x01}; -//1.3.6.1.4.1.311.16.4 Microsoft S/MIME cert attribute microsoftEncryptionCert -static const unsigned char cvOID_microsoftEncryptionCert [] = { 0x2B, 0x06, 0x01, 0x04, 0x01, 0x82, 0x37, 0x10, 0x04}; -//1.3.6.1.4.1.311.20.2.2 Microsoft enhanced key usage smartcardLogon -static const unsigned char cvOID_smartcardLogon [] = { 0x2B, 0x06, 0x01, 0x04, 0x01, 0x82, 0x37, 0x14, 0x02, 0x02}; -//1.3.6.1.4.1.311.21.1 Microsoft attribute cAKeyCertIndexPair -static const unsigned char cvOID_cAKeyCertIndexPair [] = { 0x2B, 0x06, 0x01, 0x04, 0x01, 0x82, 0x37, 0x15, 0x01}; -//1.3.6.1.4.1.311.13.2.2 Microsoft attribute Unknown MS CryptoAPI-related extension -static const unsigned char cvOID_Unknown_MS_CryptoAPI_related_extension [] = { 0x2B, 0x06, 0x01, 0x04, 0x01, 0x82, 0x37, 0x0D, 0x02, 0x02}; -//1.3.6.1.4.1.311.16.4 Microsoft attribute microsoftRecipientInfo -static const unsigned char cvOID_microsoftRecipientInfo [] = { 0x2B, 0x06, 0x01, 0x04, 0x01, 0x82, 0x37, 0x10, 0x04}; -//1.3.6.1.4.1.2428.10.1.1 UNINETT PCA UNINETT policyIdentifier -static const unsigned char cvOID_UNINETT_policyIdentifier [] = { 0x2B, 0x06, 0x01, 0x04, 0x01, 0x92, 0x7C, 0x0A, 0x01, 0x01}; -//1.3.6.1.4.1.2712.10 ICE-TEL CA ICE-TEL policyIdentifier -static const unsigned char cvOID_ICE_TEL_policyIdentifier [] = { 0x2B, 0x06, 0x01, 0x04, 0x01, 0x95, 0x18, 0x0A}; -//1.3.6.1.4.1.2786.1.1.1 ICE-TEL CA policy ICE-TEL Italian policyIdentifier -static const unsigned char cvOID_ICE_TEL_Italian_policyIdentifier [] = { 0x2B, 0x06, 0x01, 0x04, 0x01, 0x95, 0x62, 0x01, 0x01, 0x01}; -//1.3.6.1.4.1.3029.1.1 cryptlib encryption algorithm blowfishECB -static const unsigned char cvOID_blowfishECB [] = { 0x2B, 0x06, 0x01, 0x04, 0x01, 0x97, 0x55, 0x01, 0x01}; -//1.3.6.1.4.1.3029.1.2 cryptlib encr -static const unsigned char cvOID_blowfishCBC [] = { 0x2B, 0x06, 0x01, 0x04, 0x01, 0x97, 0x55, 0x01, 0x02}; -//1.3.6.1.4.1.3029.1.3 cryptlib encryption algorithm blowfishCFB -static const unsigned char cvOID_blowfishCFB [] = { 0x2B, 0x06, 0x01, 0x04, 0x01, 0x97, 0x55, 0x01, 0x03}; -//1.3.6.1.4.1.3029.1.4 cryptlib encryption algorithm blowfishOFB -static const unsigned char cvOID_blowfishOFB [] = { 0x2B, 0x06, 0x01, 0x04, 0x01, 0x97, 0x55, 0x01, 0x04}; -//1.3.6.1.4.1.3029.3.1 cryptlib public-key algorithm elgamal -static const unsigned char cvOID_elgamal [] = { 0x2B, 0x06, 0x01, 0x04, 0x01, 0x97, 0x55, 0x03, 0x01}; -//1.3.6.1.4.1.3029.3.1.1 cryptlib public-key algorithm elgamalWithSHA-1 -static const unsigned char cvOID_elgamalWithSHA_1 [] = { 0x2B, 0x06, 0x01, 0x04, 0x01, 0x97, 0x55, 0x03, 0x01, 0x01}; -//1.3.6.1.4.1.3029.3.1.2 cryptlib public-key algorithm elgamalWithRIPEMD-160 -static const unsigned char cvOID_elgamalWithRIPEMD_160 [] = { 0x2B, 0x06, 0x01, 0x04, 0x01, 0x97, 0x55, 0x03, 0x01, 0x02}; -//1.3.6.1.4.1.3029.32.1 cryptlib cryptlibPrivateKey -static const unsigned char cvOID_cryptlibPrivateKey [] = { 0x2B, 0x06, 0x01, 0x04, 0x01, 0x97, 0x55, 0x20, 0x01}; -//1.3.6.1.4.1.3029.42.11172.1 cryptlib special MPEG-of-cat OID mpeg-1 -static const unsigned char cvOID_mpeg_1 [] = { 0x2B, 0x06, 0x01, 0x04, 0x01, 0x97, 0x55, 0x2A, 0xD7, 0x24, 0x01}; -//1.3.6.1.5.5.7.1 PKIX privateExtension -static const unsigned char cvOID_privateExtension [] = { 0x2B, 0x06, 0x01, 0x05, 0x05, 0x07, 0x01}; -//1.3.6.1.5.5.7.1.1 PKIX private extension authorityInfoAccess -static const unsigned char cvOID_authorityInfoAccess [] = { 0x2B, 0x06, 0x01, 0x05, 0x05, 0x07, 0x01, 0x01}; - -//ame -//1.3.6.1.5.5.7.1.11 PKIX private extension subjectInfoAccess -static const unsigned char cvOID_subjectInfoAccess [] = { 0x2B, 0x06, 0x01, 0x05, 0x05, 0x07, 0x01, 0x0a}; - -//1.3.6.1.5.5.7.2 PKIX policyQualifierIds -static const unsigned char cvOID_policyQualifierIds [] = { 0x2B, 0x06, 0x01, 0x05, 0x05, 0x07, 0x02}; -//1.3.6.1.5.5.7.2.1 PKIX policy qualifier cps -static const unsigned char cvOID_cps [] = { 0x2B, 0x06, 0x01, 0x05, 0x05, 0x07, 0x02, 0x01}; -//1.3.6.1.5.5.7.2.2 PKIX policy qualifier unotice -static const unsigned char cvOID_unotice [] = { 0x2B, 0x06, 0x01, 0x05, 0x05, 0x07, 0x02, 0x02}; -//1.3.6.1.5.5.7.3 PKIX keyPurpose -static const unsigned char cvOID_keyPurpose [] = { 0x2B, 0x06, 0x01, 0x05, 0x05, 0x07, 0x03}; -//1.3.6.1.5.5.7.3.1 PKIX key purpose serverAuth -static const unsigned char cvOID_serverAuth [] = { 0x2B, 0x06, 0x01, 0x05, 0x05, 0x07, 0x03, 0x01}; -//1.3.6.1.5.5.7.3.2 PKIX key purpose clientAuth -static const unsigned char cvOID_clientAuth [] = { 0x2B, 0x06, 0x01, 0x05, 0x05, 0x07, 0x03, 0x02}; -//1.3.6.1.5.5.7.3.3 PKIX key purpose codeSigning -static const unsigned char cvOID_codeSigning [] = { 0x2B, 0x06, 0x01, 0x05, 0x05, 0x07, 0x03, 0x03}; -//1.3.6.1.5.5.7.3.4 PKIX key purpose emailProtection -static const unsigned char cvOID_emailProtection [] = { 0x2B, 0x06, 0x01, 0x05, 0x05, 0x07, 0x03, 0x04}; -//1.3.6.1.5.5.7.3.5 PKIX key purpose ipsecEndSystem -static const unsigned char cvOID_ipsecEndSystem [] = { 0x2B, 0x06, 0x01, 0x05, 0x05, 0x07, 0x03, 0x05}; -//1.3.6.1.5.5.7.3.6 PKIX key purpose ipsecTunnel -static const unsigned char cvOID_ipsecTunnel [] = { 0x2B, 0x06, 0x01, 0x05, 0x05, 0x07, 0x03, 0x06}; -//1.3.6.1.5.5.7.3.7 PKIX key purpose ipsecUser -static const unsigned char cvOID_ipsecUser [] = { 0x2B, 0x06, 0x01, 0x05, 0x05, 0x07, 0x03, 0x07}; -//1.3.6.1.5.5.7.3.8 PKIX key purpose timeStamping -static const unsigned char cvOID_timeStamping [] = { 0x2B, 0x06, 0x01, 0x05, 0x05, 0x07, 0x03, 0x08}; -//ame -//1.3.6.1.5.5.7.3.9 PKIX key purpose OCSPSigning -static const unsigned char cvOID_OCSPSigning [] = { 0x2B, 0x06, 0x01, 0x05, 0x05, 0x07, 0x03, 0x09}; -//1.3.6.1.5.5.7.4 PKIX cmpInformationTypes -static const unsigned char cvOID_cmpInformationTypes [] = { 0x2B, 0x06, 0x01, 0x05, 0x05, 0x07, 0x04}; -//1.3.6.1.5.5.7.4.1 PKIX CMP information caProtEncCert -static const unsigned char cvOID_caProtEncCert [] = { 0x2B, 0x06, 0x01, 0x05, 0x05, 0x07, 0x04, 0x01}; -//1.3.6.1.5.5.7.4.2 PKIX CMP information signKeyPairTypes -static const unsigned char cvOID_signKeyPairTypes [] = { 0x2B, 0x06, 0x01, 0x05, 0x05, 0x07, 0x04, 0x02}; -//1.3.6.1.5.5.7.4.3 PKIX CMP information encKeyPairTypes -static const unsigned char cvOID_encKeyPairTypes [] = { 0x2B, 0x06, 0x01, 0x05, 0x05, 0x07, 0x04, 0x03}; -//1.3.6.1.5.5.7.4.4 PKIX CMP information preferredSymmAlg -static const unsigned char cvOID_preferredSymmAlg [] = { 0x2B, 0x06, 0x01, 0x05, 0x05, 0x07, 0x04, 0x04}; -//1.3.6.1.5.5.7.4.5 PKIX CMP information caKeyUpdateInfo -static const unsigned char cvOID_caKeyUpdateInfo [] = { 0x2B, 0x06, 0x01, 0x05, 0x05, 0x07, 0x04, 0x05}; -//1.3.6.1.5.5.7.4.6 PKIX CMP information currentCRL -static const unsigned char cvOID_currentCRL [] = { 0x2B, 0x06, 0x01, 0x05, 0x05, 0x07, 0x04, 0x06}; -//1.3.6.1.5.5.7.6.3 PKIX algorithm dh-sig-hmac-sha1 -static const unsigned char cvOID_dh_sig_hmac_sha1 [] = { 0x2B, 0x06, 0x01, 0x05, 0x05, 0x07, 0x06, 0x03}; -//1.3.6.1.5.5.7.6.4 PKIX algorithm dh-pop -static const unsigned char cvOID_dh_pop [] = { 0x2B, 0x06, 0x01, 0x05, 0x05, 0x07, 0x06, 0x04}; -//1.3.6.1.5.5.7.48.1 PKIX authority info access descriptor ocsp -static const unsigned char cvOID_ocsp [] = { 0x2B, 0x06, 0x01, 0x05, 0x05, 0x07, 0x30, 0x01}; -//1.3.6.1.5.5.7.48.2 PKIX authority info access descriptor caIssuers -static const unsigned char cvOID_caIssuers [] = { 0x2B, 0x06, 0x01, 0x05, 0x05, 0x07, 0x30, 0x02}; - -//ame -//1.3.6.1.5.5.7.48.3 PKIX subject info access descriptor timeStamping -static const unsigned char cvOID_info_timeStamping [] = { 0x2B, 0x06, 0x01, 0x05, 0x05, 0x07, 0x30, 0x03}; -//1.3.6.1.5.5.7.48.5 PKIX subject info access descriptor caRepository -static const unsigned char cvOID_caRepository [] = { 0x2B, 0x06, 0x01, 0x05, 0x05, 0x07, 0x30, 0x05}; - -//1.3.6.1.5.5.8.1.1 ISAKMP HMAC algorithm HMAC-MD5 -static const unsigned char cvOID_HMAC_MD5 [] = { 0x2B, 0x06, 0x01, 0x05, 0x05, 0x08, 0x01, 0x01}; -//1.3.6.1.5.5.8.1.2 ISAKMP HMAC algorithm HMAC-SHA -static const unsigned char cvOID_HMAC_SHA [] = { 0x2B, 0x06, 0x01, 0x05, 0x05, 0x08, 0x01, 0x02}; -//1.3.6.1.5.5.8.1.3 ISAKMP HMAC algorithm HMAC-Tiger -static const unsigned char cvOID_HMAC_Tiger [] = { 0x2B, 0x06, 0x01, 0x05, 0x05, 0x08, 0x01, 0x03}; -//1.3.6.1.5.5.8.2.2 ipsec_kp_ike_intermediate -static const unsigned char cvOID_iKEIntermediate[] = { 0x2B, 0x06, 0x01, 0x05, 0x05, 0x08, 0x02, 0x02}; - -//1.3.12.2.1011.7.1 DASS algorithm decEncryptionAlgorithm -static const unsigned char cvOID_decEncryptionAlgorithm [] = { 0x2B, 0x0C, 0x02, 0x87, 0x73, 0x07, 0x01}; -//1.3.12.2.1011.7.1.2 DASS encryption algorithm decDEA -static const unsigned char cvOID_decDEA [] = { 0x2B, 0x0C, 0x02, 0x87, 0x73, 0x07, 0x01, 0x02}; -//1.3.12.2.1011.7.2 DASS algorithm decHashAlgorithm -static const unsigned char cvOID_decHashAlgorithm [] = { 0x2B, 0x0C, 0x02, 0x87, 0x73, 0x07, 0x02}; -//1.3.12.2.1011.7.2.1 DASS hash algorithm decMD2 -static const unsigned char cvOID_decMD2 [] = { 0x2B, 0x0C, 0x02, 0x87, 0x73, 0x07, 0x02, 0x01}; -//1.3.12.2.1011.7.2.2 DASS hash algorithm decMD4 -static const unsigned char cvOID_decMD4 [] = { 0x2B, 0x0C, 0x02, 0x87, 0x73, 0x07, 0x02, 0x02}; -//1.3.12.2.1011.7.3 DASS algorithm decSignatureAlgorithm -static const unsigned char cvOID_decSignatureAlgorithm [] = { 0x2B, 0x0C, 0x02, 0x87, 0x73, 0x07, 0x03}; -//1.3.12.2.1011.7.3.1 DASS signature algorithm decMD2withRSA -static const unsigned char cvOID_decMD2withRSA [] = { 0x2B, 0x0C, 0x02, 0x87, 0x73, 0x07, 0x03, 0x01}; -//1.3.12.2.1011.7.3.2 DASS signature algorithm decMD4withRSA -static const unsigned char cvOID_decMD4withRSA [] = { 0x2B, 0x0C, 0x02, 0x87, 0x73, 0x07, 0x03, 0x02}; -//1.3.12.2.1011.7.3.3 DASS signature algorithm decDEAMAC -static const unsigned char cvOID_decDEAMAC [] = { 0x2B, 0x0C, 0x02, 0x87, 0x73, 0x07, 0x03, 0x03}; -//1.3.14.2.26.5 Unsure about this OID sha -static const unsigned char cvOID_sha [] = { 0x2B, 0x0E, 0x02, 0x1A, 0x05}; -//1.3.14.3.2.1.1 X.509. Unsure about this OID rsa -static const unsigned char cvOID_rsa [] = { 0x2B, 0x0E, 0x03, 0x02, 0x01, 0x01}; -//1.3.14.3.2.2 Oddball OIW OID md4WitRSA -static const unsigned char cvOID_md4WitRSA [] = { 0x2B, 0x0E, 0x03, 0x02, 0x02}; -//1.3.14.3.2.3 Oddball OIW OID md5WithRSA -static const unsigned char cvOID_md5WithRSA [] = { 0x2B, 0x0E, 0x03, 0x02, 0x03}; -//1.3.14.3.2.4 Oddball OIW OID md4WithRSAEncryption -static const unsigned char cvOID_md4WithRSAEncryption [] = { 0x2B, 0x0E, 0x03, 0x02, 0x04}; -//1.3.14.3.2.2.1 X.509. Deprecated sqmod-N -static const unsigned char cvOID_sqmod_N [] = { 0x2B, 0x0E, 0x03, 0x02, 0x02, 0x01}; -//1.3.14.3.2.3.1 X.509. Deprecated sqmod-NwithRSA -static const unsigned char cvOID_sqmod_NwithRSA [] = { 0x2B, 0x0E, 0x03, 0x02, 0x03, 0x01}; -//1.3.14.3.2.11 ISO 9796-2, also X9.31 Part 1 rsaSignature -static const unsigned char cvOID_rsaSignature [] = { 0x2B, 0x0E, 0x03, 0x02, 0x0B}; -////1.3.14.3.2.12 OIW?, supposedly from an incomplete version of SDN.701 (doesn't match final SDN.701) dsa -//static const unsigned char cvOID_dsa [] = { 0x2B, 0x0E, 0x03, 0x02, 0x0C}; -//1.3.14.3.2.14 Oddball OIW OID using 9796-2 padding rules mdc2WithRSASignature -static const unsigned char cvOID_mdc2WithRSASignature [] = { 0x2B, 0x0E, 0x03, 0x02, 0x0E}; -//1.3.14.3.2.15 Oddball OIW OID using 9796-2 padding rules shaWithRSASignature -static const unsigned char cvOID_shaWithRSASignature [] = { 0x2B, 0x0E, 0x03, 0x02, 0x0F}; -//1.3.14.3.2.16 Oddball OIW OID. Deprecated, use a plain DH OID instead dhWithCommonModulus -static const unsigned char cvOID_dhWithCommonModulus [] = { 0x2B, 0x0E, 0x03, 0x02, 0x10}; -//1.3.14.3.2.17 Oddball OIW OID. Mode is ECB desEDE -static const unsigned char cvOID_desEDE [] = { 0x2B, 0x0E, 0x03, 0x02, 0x11}; -////1.3.14.3.2.18 Oddball OIW OID sha -//static const unsigned char cvOID_sha [] = { 0x2B, 0x0E, 0x03, 0x02, 0x12}; -//1.3.14.3.2.19 Oddball OIW OID, DES-based hash, planned for X9.31 Part 2 mdc-2 -static const unsigned char cvOID_mdc_2 [] = { 0x2B, 0x0E, 0x03, 0x02, 0x13}; -//1.3.14.3.2.20 Oddball OIW OID. Deprecated, use a plain DSA OID instead dsaCommon -static const unsigned char cvOID_dsaCommon [] = { 0x2B, 0x0E, 0x03, 0x02, 0x14}; -//1.3.14.3.2.21 Oddball OIW OID. Deprecated, use a plain dsaWithSHA OID instead dsaCommonWithSHA -static const unsigned char cvOID_dsaCommonWithSHA [] = { 0x2B, 0x0E, 0x03, 0x02, 0x15}; -//1.3.14.3.2.22 Oddball OIW OID rsaKeyTransport -static const unsigned char cvOID_rsaKeyTransport [] = { 0x2B, 0x0E, 0x03, 0x02, 0x16}; -//1.3.14.3.2.23 Oddball OIW OID keyed-hash-seal -static const unsigned char cvOID_keyed_hash_seal [] = { 0x2B, 0x0E, 0x03, 0x02, 0x17}; -//1.3.14.3.2.24 Oddball OIW OID using 9796-2 padding rules md2WithRSASignature -static const unsigned char cvOID_md2WithRSASignature [] = { 0x2B, 0x0E, 0x03, 0x02, 0x18}; -//1.3.14.3.2.25 Oddball OIW OID using 9796-2 padding rules md5WithRSASignature -static const unsigned char cvOID_md5WithRSASignature [] = { 0x2B, 0x0E, 0x03, 0x02, 0x19}; -//1.3.14.3.2.26 OIW sha1 -static const unsigned char cvOID_sha1 [] = { 0x2B, 0x0E, 0x03, 0x02, 0x1A}; -//1.3.14.3.2.27 OIW. This OID may also be assigned as ripemd-160 dsaWithSHA1 -static const unsigned char cvOID_dsaWithSHA1 [] = { 0x2B, 0x0E, 0x03, 0x02, 0x1B}; -//1.3.14.3.2.28 OIW dsaWithCommonSHA1 -static const unsigned char cvOID_dsaWithCommonSHA1 [] = { 0x2B, 0x0E, 0x03, 0x02, 0x1C}; -//1.3.14.3.2.29 Oddball OIW OID sha-1WithRSAEncryption -static const unsigned char cvOID_sha_1WithRSAEncryption [] = { 0x2B, 0x0E, 0x03, 0x02, 0x1D}; -//1.3.14.3.3.1 Oddball OIW OID simple-strong-auth-mechanism -static const unsigned char cvOID_simple_strong_auth_mechanism [] = { 0x2B, 0x0E, 0x03, 0x03, 0x01}; -//1.3.14.7.2.1.1 Unsure about this OID ElGamal -static const unsigned char cvOID_ElGamal [] = { 0x2B, 0x0E, 0x07, 0x02, 0x01, 0x01}; -//1.3.14.7.2.3.1 Unsure about this OID md2WithRSA -static const unsigned char cvOID_md2WithRSA [] = { 0x2B, 0x0E, 0x07, 0x02, 0x03, 0x01}; -//1.3.14.7.2.3.2 Unsure about this OID md2WithElGamal -static const unsigned char cvOID_md2WithElGamal [] = { 0x2B, 0x0E, 0x07, 0x02, 0x03, 0x02}; -//1.3.36.1 Teletrust document document -static const unsigned char cvOID_document [] = { 0x2B, 0x24, 0x01}; -//1.3.36.1.1 Teletrust document finalVersion -static const unsigned char cvOID_finalVersion [] = { 0x2B, 0x24, 0x01, 0x01}; -//1.3.36.1.2 Teletrust document draft -static const unsigned char cvOID_draft [] = { 0x2B, 0x24, 0x01, 0x02}; -//1.3.36.2 Teletrust sio sio -static const unsigned char cvOID_sio [] = { 0x2B, 0x24, 0x02}; -//1.3.36.2.1 Teletrust sio sedu -static const unsigned char cvOID_sedu [] = { 0x2B, 0x24, 0x02, 0x01}; -//1.3.36.3 Teletrust algorithm algorithm -static const unsigned char cvOID_algorithm_Teletrust[] = { 0x2B, 0x24, 0x03}; -//1.3.36.3.1 Teletrust algorithm encryptionAlgorithm -static const unsigned char cvOID_encryptionAlgorithm_Teletrust [] = { 0x2B, 0x24, 0x03, 0x01}; -//1.3.36.3.1.1 Teletrust encryption algorithm des -static const unsigned char cvOID_des_Teletrust [] = { 0x2B, 0x24, 0x03, 0x01, 0x01}; -//1.3.36.3.1.1.1 Teletrust encryption algorithm desECB_pad -static const unsigned char cvOID_desECB_pad [] = { 0x2B, 0x24, 0x03, 0x01, 0x01, 0x01}; -//1.3.36.3.1.1.1.1 Teletrust encryption algorithm desECB_ISOpad -static const unsigned char cvOID_desECB_ISOpad [] = { 0x2B, 0x24, 0x03, 0x01, 0x01, 0x01, 0x01}; -//1.3.36.3.1.1.2.1 Teletrust encryption algorithm desCBC_pad -static const unsigned char cvOID_desCBC_pad [] = { 0x2B, 0x24, 0x03, 0x01, 0x01, 0x02, 0x01}; -//1.3.36.3.1.1.2.1.1 Teletrust encryption algorithm desCBC_ISOpad -static const unsigned char cvOID_desCBC_ISOpad [] = { 0x2B, 0x24, 0x03, 0x01, 0x01, 0x02, 0x01, 0x01}; -//1.3.36.3.1.3 Teletrust encryption algorithm des_3 -static const unsigned char cvOID_des_3 [] = { 0x2B, 0x24, 0x03, 0x01, 0x03}; -//1.3.36.3.1.3.1.1 Teletrust encryption algorithm. EDE triple DES des_3ECB_pad -static const unsigned char cvOID_des_3ECB_pad [] = { 0x2B, 0x24, 0x03, 0x01, 0x03, 0x01, 0x01}; -//1.3.36.3.1.3.1.1.1 Teletrust encryption algorithm. EDE triple DES des_3ECB_ISOpad -static const unsigned char cvOID_des_3ECB_ISOpad [] = { 0x2B, 0x24, 0x03, 0x01, 0x03, 0x01, 0x01, 0x01}; -//1.3.36.3.1.3.2.1 Teletrust encryption algorithm. EDE triple DES des_3CBC_pad -static const unsigned char cvOID_des_3CBC_pad [] = { 0x2B, 0x24, 0x03, 0x01, 0x03, 0x02, 0x01}; -//1.3.36.3.1.3.2.1.1 Teletrust encryption algorithm. EDE triple DES des_3CBC_ISOpad -static const unsigned char cvOID_des_3CBC_ISOpad [] = { 0x2B, 0x24, 0x03, 0x01, 0x03, 0x02, 0x01, 0x01}; -//1.3.36.3.1.2 Teletrust encryption algorithm idea -static const unsigned char cvOID_idea_Teletrust [] = { 0x2B, 0x24, 0x03, 0x01, 0x02}; -//1.3.36.3.1.2.1 Teletrust encryption algorithm ideaECB -static const unsigned char cvOID_ideaECB_Teletrust [] = { 0x2B, 0x24, 0x03, 0x01, 0x02, 0x01}; -//1.3.36.3.1.2.1.1 Teletrust encryption algorithm ideaECB_pad -static const unsigned char cvOID_ideaECB_pad [] = { 0x2B, 0x24, 0x03, 0x01, 0x02, 0x01, 0x01}; -//1.3.36.3.1.2.1.1.1 Teletrust encryption algorithm ideaECB_ISOpad -static const unsigned char cvOID_ideaECB_ISOpad [] = { 0x2B, 0x24, 0x03, 0x01, 0x02, 0x01, 0x01, 0x01}; -//1.3.36.3.1.2.2 Teletrust encryption algorithm ideaCBC -static const unsigned char cvOID_ideaCBC_Teletrust [] = { 0x2B, 0x24, 0x03, 0x01, 0x02, 0x02}; -//1.3.36.3.1.2.2.1 Teletrust encryption algorithm ideaCBC_pad -static const unsigned char cvOID_ideaCBC_pad [] = { 0x2B, 0x24, 0x03, 0x01, 0x02, 0x02, 0x01}; -//1.3.36.3.1.2.2.1.1 Teletrust encryption algorithm ideaCBC_ISOpad -static const unsigned char cvOID_ideaCBC_ISOpad [] = { 0x2B, 0x24, 0x03, 0x01, 0x02, 0x02, 0x01, 0x01}; -//1.3.36.3.1.2.3 Teletrust encryption algorithm ideaOFB -static const unsigned char cvOID_ideaOFB_Teletrust [] = { 0x2B, 0x24, 0x03, 0x01, 0x02, 0x03}; -//1.3.36.3.1.2.4 Teletrust encryption algorithm ideaCFB -static const unsigned char cvOID_ideaCFB_Teletrust [] = { 0x2B, 0x24, 0x03, 0x01, 0x02, 0x04}; -//1.3.36.3.1.4 Teletrust encryption algorithm rsaEncryption -static const unsigned char cvOID_rsaEncryption_Teletrust [] = { 0x2B, 0x24, 0x03, 0x01, 0x04}; -//1.3.36.3.1.4.512.17 Teletrust encryption algorithm rsaEncryptionWithlmod512expe17 -static const unsigned char cvOID_rsaEncryptionWithlmod512expe17 [] = { 0x2B, 0x24, 0x03, 0x01, 0x04, 0x84, 0x00, 0x11}; -//1.3.36.3.1.5 Teletrust encryption algorithm bsi-1 -static const unsigned char cvOID_bsi_1 [] = { 0x2B, 0x24, 0x03, 0x01, 0x05}; -//1.3.36.3.1.5.1 Teletrust encryption algorithm bsi_1ECB_pad -static const unsigned char cvOID_bsi_1ECB_pad [] = { 0x2B, 0x24, 0x03, 0x01, 0x05, 0x01}; -//1.3.36.3.1.5.2 Teletrust encryption algorithm bsi_1CBC_pad -static const unsigned char cvOID_bsi_1CBC_pad [] = { 0x2B, 0x24, 0x03, 0x01, 0x05, 0x02}; -//1.3.36.3.1.5.2.1 Teletrust encryption algorithm bsi_1CBC_PEMpad -static const unsigned char cvOID_bsi_1CBC_PEMpad [] = { 0x2B, 0x24, 0x03, 0x01, 0x05, 0x02, 0x01}; -//1.3.36.3.2 Teletrust algorithm hashAlgorithm -static const unsigned char cvOID_hashAlgorithm [] = { 0x2B, 0x24, 0x03, 0x02}; -//1.3.36.3.2.1 Teletrust hash algorithm ripemd160 -static const unsigned char cvOID_ripemd160_Teletrust [] = { 0x2B, 0x24, 0x03, 0x02, 0x01}; -//1.3.36.3.2.2 Teletrust hash algorithm ripemd128 -static const unsigned char cvOID_ripemd128_Teletrust [] = { 0x2B, 0x24, 0x03, 0x02, 0x02}; -//1.3.36.3.2.3 Teletrust hash algorithm ripemd256 -static const unsigned char cvOID_ripemd256 [] = { 0x2B, 0x24, 0x03, 0x02, 0x03}; -//1.3.36.3.2.4 Teletrust hash algorithm mdc2singleLength -static const unsigned char cvOID_mdc2singleLength [] = { 0x2B, 0x24, 0x03, 0x02, 0x04}; -//1.3.36.3.2.5 Teletrust hash algorithm mdc2doubleLength -static const unsigned char cvOID_mdc2doubleLength [] = { 0x2B, 0x24, 0x03, 0x02, 0x05}; -//1.3.36.3.3 Teletrust algorithm signatureAlgorithm -static const unsigned char cvOID_signatureAlgorithm [] = { 0x2B, 0x24, 0x03, 0x03}; -//1.3.36.3.3.1 Teletrust signature algorithm rsaSignature -static const unsigned char cvOID_rsaSignature_Teletrust [] = { 0x2B, 0x24, 0x03, 0x03, 0x01}; -//1.3.36.3.3.1.1 Teletrust signature algorithm rsaSignatureWithsha1 -static const unsigned char cvOID_rsaSignatureWithsha1 [] = { 0x2B, 0x24, 0x03, 0x03, 0x01, 0x01}; -//1.3.36.3.3.1.1.512.2 Teletrust signature algorithm rsaSignatureWithsha1_l512_l2 -static const unsigned char cvOID_rsaSignatureWithsha1_l512_l2 [] = { 0x2B, 0x24, 0x03, 0x03, 0x01, 0x01, 0x84, 0x00, 0x02}; -//1.3.36.3.3.1.1.640.2 Teletrust signature algorithm rsaSignatureWithsha1_l640_l2 -static const unsigned char cvOID_rsaSignatureWithsha1_l640_l2 [] = { 0x2B, 0x24, 0x03, 0x03, 0x01, 0x01, 0x85, 0x00, 0x02}; -//1.3.36.3.3.1.1.768.2 Teletrust signature algorithm rsaSignatureWithsha1_l768_l2 -static const unsigned char cvOID_rsaSignatureWithsha1_l768_l2 [] = { 0x2B, 0x24, 0x03, 0x03, 0x01, 0x01, 0x86, 0x00, 0x02}; -//1.3.36.3.3.1.1.892.2 Teletrust signature algorithm rsaSignatureWithsha1_l896_l2 -static const unsigned char cvOID_rsaSignatureWithsha1_l896_l2 [] = { 0x2B, 0x24, 0x03, 0x03, 0x01, 0x01, 0x87, 0x00, 0x02}; -//1.3.36.3.3.1.1.1024.2 Teletrust signature algorithm rsaSignatureWithsha1_l1024_l2 -static const unsigned char cvOID_rsaSignatureWithsha1_l1024_l2 [] = { 0x2B, 0x24, 0x03, 0x03, 0x01, 0x01, 0x88, 0x00, 0x02}; -//1.3.36.3.3.1.1.512.3 Teletrust signature algorithm rsaSignatureWithsha1_l512_l3 -static const unsigned char cvOID_rsaSignatureWithsha1_l512_l3 [] = { 0x2B, 0x24, 0x03, 0x03, 0x01, 0x01, 0x84, 0x00, 0x03}; -//1.3.36.3.3.1.1.640.3 Teletrust signature algorithm rsaSignatureWithsha1_l640_l3 -static const unsigned char cvOID_rsaSignatureWithsha1_l640_l3 [] = { 0x2B, 0x24, 0x03, 0x03, 0x01, 0x01, 0x85, 0x00, 0x03}; -//1.3.36.3.3.1.1.768.3 Teletrust signature algorithm rsaSignatureWithsha1_l768_l3 -static const unsigned char cvOID_rsaSignatureWithsha1_l768_l3 [] = { 0x2B, 0x24, 0x03, 0x03, 0x01, 0x01, 0x86, 0x00, 0x03}; -//1.3.36.3.3.1.1.896.3 Teletrust signature algorithm rsaSignatureWithsha1_l896_l3 -static const unsigned char cvOID_rsaSignatureWithsha1_l896_l3 [] = { 0x2B, 0x24, 0x03, 0x03, 0x01, 0x01, 0x87, 0x00, 0x03}; -//1.3.36.3.3.1.1.1024.3 Teletrust signature algorithm rsaSignatureWithsha1_l1024_l3 -static const unsigned char cvOID_rsaSignatureWithsha1_l1024_l3 [] = { 0x2B, 0x24, 0x03, 0x03, 0x01, 0x01, 0x88, 0x00, 0x03}; -//1.3.36.3.3.1.1.512.5 Teletrust signature algorithm rsaSignatureWithsha1_l512_l5 -static const unsigned char cvOID_rsaSignatureWithsha1_l512_l5 [] = { 0x2B, 0x24, 0x03, 0x03, 0x01, 0x01, 0x84, 0x00, 0x05}; -//1.3.36.3.3.1.1.640.5 Teletrust signature algorithm rsaSignatureWithsha1_l640_l5 -static const unsigned char cvOID_rsaSignatureWithsha1_l640_l5 [] = { 0x2B, 0x24, 0x03, 0x03, 0x01, 0x01, 0x85, 0x00, 0x05}; -//1.3.36.3.3.1.1.768.5 Teletrust signature algorithm rsaSignatureWithsha1_l768_l5 -static const unsigned char cvOID_rsaSignatureWithsha1_l768_l5 [] = { 0x2B, 0x24, 0x03, 0x03, 0x01, 0x01, 0x86, 0x00, 0x05}; -//1.3.36.3.3.1.1.896.5 Teletrust signature algorithm rsaSignatureWithsha1_l896_l5 -static const unsigned char cvOID_rsaSignatureWithsha1_l896_l5 [] = { 0x2B, 0x24, 0x03, 0x03, 0x01, 0x01, 0x87, 0x00, 0x05}; -//1.3.36.3.3.1.1.1024.5 Teletrust signature algorithm rsaSignatureWithsha1_l1024_l5 -static const unsigned char cvOID_rsaSignatureWithsha1_l1024_l5 [] = { 0x2B, 0x24, 0x03, 0x03, 0x01, 0x01, 0x88, 0x00, 0x05}; -//1.3.36.3.3.1.1.512.9 Teletrust signature algorithm rsaSignatureWithsha1_l512_l9 -static const unsigned char cvOID_rsaSignatureWithsha1_l512_l9 [] = { 0x2B, 0x24, 0x03, 0x03, 0x01, 0x01, 0x84, 0x00, 0x09}; -//1.3.36.3.3.1.1.640.9 Teletrust signature algorithm rsaSignatureWithsha1_l640_l9 -static const unsigned char cvOID_rsaSignatureWithsha1_l640_l9 [] = { 0x2B, 0x24, 0x03, 0x03, 0x01, 0x01, 0x85, 0x00, 0x09}; -//1.3.36.3.3.1.1.768.9 Teletrust signature algorithm rsaSignatureWithsha1_l768_l9 -static const unsigned char cvOID_rsaSignatureWithsha1_l768_l9 [] = { 0x2B, 0x24, 0x03, 0x03, 0x01, 0x01, 0x86, 0x00, 0x09}; -//1.3.36.3.3.1.1.896.9 Teletrust signature algorithm rsaSignatureWithsha1_l896_l9 -static const unsigned char cvOID_rsaSignatureWithsha1_l896_l9 [] = { 0x2B, 0x24, 0x03, 0x03, 0x01, 0x01, 0x87, 0x00, 0x09}; -//1.3.36.3.3.1.1.1024.9 Teletrust signature algorithm rsaSignatureWithsha1_l1024_l9 -static const unsigned char cvOID_rsaSignatureWithsha1_l1024_l9 [] = { 0x2B, 0x24, 0x03, 0x03, 0x01, 0x01, 0x88, 0x00, 0x09}; -//1.3.36.3.3.1.1.512.11 Teletrust signature algorithm rsaSignatureWithsha1_l512_l11 -static const unsigned char cvOID_rsaSignatureWithsha1_l512_l11 [] = { 0x2B, 0x24, 0x03, 0x03, 0x01, 0x01, 0x84, 0x00, 0x11}; -//1.3.36.3.3.1.1.640.11 Teletrust signature algorithm rsaSignatureWithsha1_l640_l11 -static const unsigned char cvOID_rsaSignatureWithsha1_l640_l11 [] = { 0x2B, 0x24, 0x03, 0x03, 0x01, 0x01, 0x85, 0x00, 0x11}; -//1.3.36.3.3.1.1.768.11 Teletrust signature algorithm rsaSignatureWithsha1_l768_l11 -static const unsigned char cvOID_rsaSignatureWithsha1_l768_l11 [] = { 0x2B, 0x24, 0x03, 0x03, 0x01, 0x01, 0x86, 0x00, 0x11}; -//1.3.36.3.3.1.1.896.11 Teletrust signature algorithm rsaSignatureWithsha1_l896_l11 -static const unsigned char cvOID_rsaSignatureWithsha1_l896_l11 [] = { 0x2B, 0x24, 0x03, 0x03, 0x01, 0x01, 0x87, 0x00, 0x11}; -//1.3.36.3.3.1.1.1024.11 Teletrust signature algorithm rsaSignatureWithsha1_l1024_l11 -static const unsigned char cvOID_rsaSignatureWithsha1_l1024_l11 [] = { 0x2B, 0x24, 0x03, 0x03, 0x01, 0x01, 0x88, 0x00, 0x11}; -//1.3.36.3.3.1.2 Teletrust signature algorithm rsaSignatureWithripemd160 -static const unsigned char cvOID_rsaSignatureWithripemd160 [] = { 0x2B, 0x24, 0x03, 0x03, 0x01, 0x02}; -//1.3.36.3.3.1.2.512.2 Teletrust signature algorithm rsaSignatureWithripemd160_l512_l2 -static const unsigned char cvOID_rsaSignatureWithripemd160_l512_l2 [] = { 0x2B, 0x24, 0x03, 0x03, 0x01, 0x02, 0x84, 0x00, 0x02}; -//1.3.36.3.3.1.2.640.2 Teletrust signature algorithm rsaSignatureWithripemd160_l640_l2 -static const unsigned char cvOID_rsaSignatureWithripemd160_l640_l2 [] = { 0x2B, 0x24, 0x03, 0x03, 0x01, 0x02, 0x85, 0x00, 0x02}; -//1.3.36.3.3.1.2.768.2 Teletrust signature algorithm rsaSignatureWithripemd160_l768_l2 -static const unsigned char cvOID_rsaSignatureWithripemd160_l768_l2 [] = { 0x2B, 0x24, 0x03, 0x03, 0x01, 0x02, 0x86, 0x00, 0x02}; -//1.3.36.3.3.1.2.892.2 Teletrust signature algorithm rsaSignatureWithripemd160_l896_l2 -static const unsigned char cvOID_rsaSignatureWithripemd160_l896_l2 [] = { 0x2B, 0x24, 0x03, 0x03, 0x01, 0x02, 0x87, 0x00, 0x02}; -//1.3.36.3.3.1.2.1024.2 Teletrust signature algorithm rsaSignatureWithripemd160_l1024_l2 -static const unsigned char cvOID_rsaSignatureWithripemd160_l1024_l2 [] = { 0x2B, 0x24, 0x03, 0x03, 0x01, 0x02, 0x88, 0x00, 0x02}; -//1.3.36.3.3.1.2.512.3 Teletrust signature algorithm rsaSignatureWithripemd160_l512_l3 -static const unsigned char cvOID_rsaSignatureWithripemd160_l512_l3 [] = { 0x2B, 0x24, 0x03, 0x03, 0x01, 0x02, 0x84, 0x00, 0x03}; -//1.3.36.3.3.1.2.640.3 Teletrust signature algorithm rsaSignatureWithripemd160_l640_l3 -static const unsigned char cvOID_rsaSignatureWithripemd160_l640_l3 [] = { 0x2B, 0x24, 0x03, 0x03, 0x01, 0x02, 0x85, 0x00, 0x03}; -//1.3.36.3.3.1.2.768.3 Teletrust signature algorithm rsaSignatureWithripemd160_l768_l3 -static const unsigned char cvOID_rsaSignatureWithripemd160_l768_l3 [] = { 0x2B, 0x24, 0x03, 0x03, 0x01, 0x02, 0x86, 0x00, 0x03}; -//1.3.36.3.3.1.2.896.3 Teletrust signature algorithm rsaSignatureWithripemd160_l896_l3 -static const unsigned char cvOID_rsaSignatureWithripemd160_l896_l3 [] = { 0x2B, 0x24, 0x03, 0x03, 0x01, 0x02, 0x87, 0x00, 0x03}; -//1.3.36.3.3.1.2.1024.3 Teletrust signature algorithm rsaSignatureWithripemd160_l1024_l3 -static const unsigned char cvOID_rsaSignatureWithripemd160_l1024_l3 [] = { 0x2B, 0x24, 0x03, 0x03, 0x01, 0x02, 0x88, 0x00, 0x03}; -//1.3.36.3.3.1.2.512.5 Teletrust signature algorithm rsaSignatureWithripemd160_l512_l5 -static const unsigned char cvOID_rsaSignatureWithripemd160_l512_l5 [] = { 0x2B, 0x24, 0x03, 0x03, 0x01, 0x02, 0x84, 0x00, 0x05}; -//1.3.36.3.3.1.2.640.5 Teletrust signature algorithm rsaSignatureWithripemd160_l640_l5 -static const unsigned char cvOID_rsaSignatureWithripemd160_l640_l5 [] = { 0x2B, 0x24, 0x03, 0x03, 0x01, 0x02, 0x85, 0x00, 0x05}; -//1.3.36.3.3.1.2.768.5 Teletrust signature algorithm rsaSignatureWithripemd160_l768_l5 -static const unsigned char cvOID_rsaSignatureWithripemd160_l768_l5 [] = { 0x2B, 0x24, 0x03, 0x03, 0x01, 0x02, 0x86, 0x00, 0x05}; -//1.3.36.3.3.1.2.896.5 Teletrust signature algorithm rsaSignatureWithripemd160_l896_l5 -static const unsigned char cvOID_rsaSignatureWithripemd160_l896_l5 [] = { 0x2B, 0x24, 0x03, 0x03, 0x01, 0x02, 0x87, 0x00, 0x05}; -//1.3.36.3.3.1.2.1024.5 Teletrust signature algorithm rsaSignatureWithripemd160_l1024_l5 -static const unsigned char cvOID_rsaSignatureWithripemd160_l1024_l5 [] = { 0x2B, 0x24, 0x03, 0x03, 0x01, 0x02, 0x88, 0x00, 0x05}; -//1.3.36.3.3.1.2.512.9 Teletrust signature algorithm rsaSignatureWithripemd160_l512_l9 -static const unsigned char cvOID_rsaSignatureWithripemd160_l512_l9 [] = { 0x2B, 0x24, 0x03, 0x03, 0x01, 0x02, 0x84, 0x00, 0x09}; -//1.3.36.3.3.1.2.640.9 Teletrust signature algorithm rsaSignatureWithripemd160_l640_l9 -static const unsigned char cvOID_rsaSignatureWithripemd160_l640_l9 [] = { 0x2B, 0x24, 0x03, 0x03, 0x01, 0x02, 0x85, 0x00, 0x09}; -//1.3.36.3.3.1.2.768.9 Teletrust signature algorithm rsaSignatureWithripemd160_l768_l9 -static const unsigned char cvOID_rsaSignatureWithripemd160_l768_l9 [] = { 0x2B, 0x24, 0x03, 0x03, 0x01, 0x02, 0x86, 0x00, 0x09}; -//1.3.36.3.3.1.2.896.9 Teletrust signature algorithm rsaSignatureWithripemd160_l896_l9 -static const unsigned char cvOID_rsaSignatureWithripemd160_l896_l9 [] = { 0x2B, 0x24, 0x03, 0x03, 0x01, 0x02, 0x87, 0x00, 0x09}; -//1.3.36.3.3.1.2.1024.9 Teletrust signature algorithm rsaSignatureWithripemd160_l1024_l9 -static const unsigned char cvOID_rsaSignatureWithripemd160_l1024_l9 [] = { 0x2B, 0x24, 0x03, 0x03, 0x01, 0x02, 0x88, 0x00, 0x09}; -//1.3.36.3.3.1.2.512.11 Teletrust signature algorithm rsaSignatureWithripemd160_l512_l11 -static const unsigned char cvOID_rsaSignatureWithripemd160_l512_l11 [] = { 0x2B, 0x24, 0x03, 0x03, 0x01, 0x02, 0x84, 0x00, 0x11}; -//1.3.36.3.3.1.2.640.11 Teletrust signature algorithm rsaSignatureWithripemd160_l640_l11 -static const unsigned char cvOID_rsaSignatureWithripemd160_l640_l11 [] = { 0x2B, 0x24, 0x03, 0x03, 0x01, 0x02, 0x85, 0x00, 0x11}; -//1.3.36.3.3.1.2.768.11 Teletrust signature algorithm rsaSignatureWithripemd160_l768_l11 -static const unsigned char cvOID_rsaSignatureWithripemd160_l768_l11 [] = { 0x2B, 0x24, 0x03, 0x03, 0x01, 0x02, 0x86, 0x00, 0x11}; -//1.3.36.3.3.1.2.896.11 Teletrust signature algorithm rsaSignatureWithripemd160_l896_l11 -static const unsigned char cvOID_rsaSignatureWithripemd160_l896_l11 [] = { 0x2B, 0x24, 0x03, 0x03, 0x01, 0x02, 0x87, 0x00, 0x11}; -//1.3.36.3.3.1.2.1024.11 Teletrust signature algorithm rsaSignatureWithripemd160_l1024_l11 -static const unsigned char cvOID_rsaSignatureWithripemd160_l1024_l11 [] = { 0x2B, 0x24, 0x03, 0x03, 0x01, 0x02, 0x88, 0x00, 0x11}; -//1.3.36.3.3.1.3 Teletrust signature algorithm rsaSignatureWithrimpemd128 -static const unsigned char cvOID_rsaSignatureWithrimpemd128 [] = { 0x2B, 0x24, 0x03, 0x03, 0x01, 0x03}; -//1.3.36.3.3.1.4 Teletrust signature algorithm rsaSignatureWithrimpemd256 -static const unsigned char cvOID_rsaSignatureWithrimpemd256 [] = { 0x2B, 0x24, 0x03, 0x03, 0x01, 0x04}; -//1.3.36.3.3.2 Teletrust signature algorithm ecsieSign -static const unsigned char cvOID_ecsieSign [] = { 0x2B, 0x24, 0x03, 0x03, 0x02}; -//1.3.36.3.3.2.1 Teletrust signature algorithm ecsieSignWithsha1 -static const unsigned char cvOID_ecsieSignWithsha1 [] = { 0x2B, 0x24, 0x03, 0x03, 0x02, 0x01}; -//1.3.36.3.3.2.2 Teletrust signature algorithm ecsieSignWithripemd160 -static const unsigned char cvOID_ecsieSignWithripemd160 [] = { 0x2B, 0x24, 0x03, 0x03, 0x02, 0x02}; -//1.3.36.3.3.2.3 Teletrust signature algorithm ecsieSignWithmd2 -static const unsigned char cvOID_ecsieSignWithmd2 [] = { 0x2B, 0x24, 0x03, 0x03, 0x02, 0x03}; -//1.3.36.3.3.2.4 Teletrust signature algorithm ecsieSignWithmd5 -static const unsigned char cvOID_ecsieSignWithmd5 [] = { 0x2B, 0x24, 0x03, 0x03, 0x02, 0x04}; -//1.3.36.3.4 Teletrust algorithm signatureScheme -static const unsigned char cvOID_signatureScheme [] = { 0x2B, 0x24, 0x03, 0x04}; -//1.3.36.3.4.1 Teletrust signature scheme sigS_ISO9796-1 -static const unsigned char cvOID_sigS_ISO9796_1 [] = { 0x2B, 0x24, 0x03, 0x04, 0x01}; -//1.3.36.3.4.2 Teletrust signature scheme sigS_ISO9796-2 -static const unsigned char cvOID_sigS_ISO9796_2 [] = { 0x2B, 0x24, 0x03, 0x04, 0x02}; -//1.3.36.3.4.2.1 Teletrust signature scheme. Unsure what this is supposed to be sigS_ISO9796-2Withred -static const unsigned char cvOID_sigS_ISO9796_2Withred [] = { 0x2B, 0x24, 0x03, 0x04, 0x02, 0x01}; -//1.3.36.3.4.2.2 Teletrust signature scheme. Unsure what this is supposed to be sigS_ISO9796-2Withrsa -static const unsigned char cvOID_sigS_ISO9796_2Withrsa [] = { 0x2B, 0x24, 0x03, 0x04, 0x02, 0x02}; -//1.3.36.3.4.2.3 Teletrust signature scheme. 9796-2 with random number in padding field sigS_ISO9796-2Withrnd -static const unsigned char cvOID_sigS_ISO9796_2Withrnd [] = { 0x2B, 0x24, 0x03, 0x04, 0x02, 0x03}; -//1.3.36.4 Teletrust attribute attribute -static const unsigned char cvOID_attribute_Teletrust [] = { 0x2B, 0x24, 0x04}; -//1.3.36.5 Teletrust policy policy -static const unsigned char cvOID_policy [] = { 0x2B, 0x24, 0x05}; -//1.3.36.6 Teletrust API api -static const unsigned char cvOID_api [] = { 0x2B, 0x24, 0x06}; -//1.3.36.6.1 Teletrust API manufacturer-specific_api -static const unsigned char cvOID_manufacturer_specific_api [] = { 0x2B, 0x24, 0x06, 0x01}; -//1.3.36.6.1.1 Teletrust API utimaco-api -static const unsigned char cvOID_utimaco_api [] = { 0x2B, 0x24, 0x06, 0x01, 0x01}; -//1.3.36.6.2 Teletrust API functionality-specific_api -static const unsigned char cvOID_functionality_specific_api [] = { 0x2B, 0x24, 0x06, 0x02}; -//1.3.36.7 Teletrust key management keymgmnt -static const unsigned char cvOID_keymgmnt [] = { 0x2B, 0x24, 0x07}; -//1.3.36.7.1 Teletrust key management keyagree -static const unsigned char cvOID_keyagree [] = { 0x2B, 0x24, 0x07, 0x01}; -//1.3.36.7.1.1 Teletrust key management bsiPKE -static const unsigned char cvOID_bsiPKE [] = { 0x2B, 0x24, 0x07, 0x01, 0x01}; -//1.3.36.7.2 Teletrust key management keytrans -static const unsigned char cvOID_keytrans [] = { 0x2B, 0x24, 0x07, 0x02}; -//1.3.36.7.2.1 Teletrust key management. 9796-2 with key stored in hash field encISO9796-2Withrsa -static const unsigned char cvOID_encISO9796_2Withrsa [] = { 0x2B, 0x24, 0x07, 0x02, 0x01}; -//1.3.36.8.1.1 Teletrust policy sigiSigConform -static const unsigned char cvOID_sigiSigConform [] = { 0x2B, 0x24, 0x08, 0x01, 0x01}; -//1.3.36.8.2.1 Teletrust extended key usage directoryService -static const unsigned char cvOID_directoryService [] = { 0x2B, 0x24, 0x08, 0x02, 0x01}; -//1.3.36.8.3.1 Teletrust attribute dateOfCertGen -static const unsigned char cvOID_dateOfCertGen [] = { 0x2B, 0x24, 0x08, 0x03, 0x01}; -//1.3.36.8.3.2 Teletrust attribute procuration -static const unsigned char cvOID_procuration [] = { 0x2B, 0x24, 0x08, 0x03, 0x02}; -//1.3.36.8.3.3 Teletrust attribute admission -static const unsigned char cvOID_admission [] = { 0x2B, 0x24, 0x08, 0x03, 0x03}; -//1.3.36.8.3.4 Teletrust attribute monetaryLimit -static const unsigned char cvOID_monetaryLimit [] = { 0x2B, 0x24, 0x08, 0x03, 0x04}; -//1.3.36.8.3.5 Teletrust attribute declarationOfMajority -static const unsigned char cvOID_declarationOfMajority [] = { 0x2B, 0x24, 0x08, 0x03, 0x05}; -//1.3.36.8.3.6 Teletrust attribute integratedCircuitCardSerialNumber -static const unsigned char cvOID_integratedCircuitCardSerialNumber [] = { 0x2B, 0x24, 0x08, 0x03, 0x06}; -//1.3.36.8.3.7 Teletrust attribute pKReference -static const unsigned char cvOID_pKReference [] = { 0x2B, 0x24, 0x08, 0x03, 0x07}; -//1.3.36.8.3.8 Teletrust attribute restriction -static const unsigned char cvOID_restriction_1 [] = { 0x2B, 0x24, 0x08, 0x03, 0x08}; -//1.3.36.8.3.9 Teletrust attribute retrieveIfAllowed -static const unsigned char cvOID_retrieveIfAllowed [] = { 0x2B, 0x24, 0x08, 0x03, 0x09}; -//1.3.36.8.3.10 Teletrust attribute requestedCertificate -static const unsigned char cvOID_requestedCertificate [] = { 0x2B, 0x24, 0x08, 0x03, 0x0A}; -//1.3.36.8.3.11 Teletrust attribute namingAuthorities -static const unsigned char cvOID_namingAuthorities [] = { 0x2B, 0x24, 0x08, 0x03, 0x0B}; -//1.3.36.8.3.12 Teletrust attribute certInDirSince -static const unsigned char cvOID_certInDirSince [] = { 0x2B, 0x24, 0x08, 0x03, 0x0C}; -//1.3.36.8.3.13 Teletrust attribute certHash -static const unsigned char cvOID_certHash [] = { 0x2B, 0x24, 0x08, 0x03, 0x0D}; -//1.3.36.8.4.1 Teletrust OtherName attribute personalData -static const unsigned char cvOID_personalData [] = { 0x2B, 0x24, 0x08, 0x04, 0x01}; -//1.3.36.8.4.8 Teletrust attribute certificate attribute restriction -static const unsigned char cvOID_restriction_2 [] = { 0x2B, 0x24, 0x08, 0x04, 0x08}; -//1.3.36.8.5.1.1.1 Teletrust signature algorithm rsaIndicateSHA1 -static const unsigned char cvOID_rsaIndicateSHA1 [] = { 0x2B, 0x24, 0x08, 0x05, 0x01, 0x01, 0x01}; -//1.3.36.8.5.1.1.2 Teletrust signature algorithm rsaIndicateRIPEMD160 -static const unsigned char cvOID_rsaIndicateRIPEMD160 [] = { 0x2B, 0x24, 0x08, 0x05, 0x01, 0x01, 0x02}; -//1.3.36.8.5.1.1.3 Teletrust signature algorithm rsaWithSHA1 -static const unsigned char cvOID_rsaWithSHA1 [] = { 0x2B, 0x24, 0x08, 0x05, 0x01, 0x01, 0x03}; -//1.3.36.8.5.1.1.4 Teletrust signature algorithm rsaWithRIPEMD160 -static const unsigned char cvOID_rsaWithRIPEMD160 [] = { 0x2B, 0x24, 0x08, 0x05, 0x01, 0x01, 0x04}; -//1.3.36.8.5.1.2.1 Teletrust signature algorithm dsaExtended -static const unsigned char cvOID_dsaExtended [] = { 0x2B, 0x24, 0x08, 0x05, 0x01, 0x02, 0x01}; -//1.3.36.8.5.1.2.2 Teletrust signature algorithm dsaWithRIPEMD160 -static const unsigned char cvOID_dsaWithRIPEMD160 [] = { 0x2B, 0x24, 0x08, 0x05, 0x01, 0x02, 0x02}; -//1.3.36.8.6.1 Teletrust signature attributes cert -static const unsigned char cvOID_cert [] = { 0x2B, 0x24, 0x08, 0x06, 0x01}; -//1.3.36.8.6.2 Teletrust signature attributes certRef -static const unsigned char cvOID_certRef [] = { 0x2B, 0x24, 0x08, 0x06, 0x02}; -//1.3.36.8.6.3 Teletrust signature attributes attrCert -static const unsigned char cvOID_attrCert [] = { 0x2B, 0x24, 0x08, 0x06, 0x03}; -//1.3.36.8.6.4 Teletrust signature attributes attrRef -static const unsigned char cvOID_attrRef [] = { 0x2B, 0x24, 0x08, 0x06, 0x04}; -//1.3.36.8.6.5 Teletrust signature attributes fileName -static const unsigned char cvOID_fileName [] = { 0x2B, 0x24, 0x08, 0x06, 0x05}; -//1.3.36.8.6.6 Teletrust signature attributes storageTime -static const unsigned char cvOID_storageTime [] = { 0x2B, 0x24, 0x08, 0x06, 0x06}; -//1.3.36.8.6.7 Teletrust signature attributes fileSize -static const unsigned char cvOID_fileSize [] = { 0x2B, 0x24, 0x08, 0x06, 0x07}; -//1.3.36.8.6.8 Teletrust signature attributes location -static const unsigned char cvOID_location [] = { 0x2B, 0x24, 0x08, 0x06, 0x08}; -//1.3.36.8.6.9 Teletrust signature attributes sigNumber -static const unsigned char cvOID_sigNumber [] = { 0x2B, 0x24, 0x08, 0x06, 0x09}; -//1.3.36.8.6.10 Teletrust signature attributes autoGen -static const unsigned char cvOID_autoGen [] = { 0x2B, 0x24, 0x08, 0x06, 0x0A}; -//1.3.36.8.7.1.1 Teletrust presentation types ptAdobeILL -static const unsigned char cvOID_ptAdobeILL [] = { 0x2B, 0x24, 0x08, 0x07, 0x01, 0x01}; -//1.3.36.8.7.1.2 Teletrust presentation types ptAmiPro -static const unsigned char cvOID_ptAmiPro [] = { 0x2B, 0x24, 0x08, 0x07, 0x01, 0x02}; -//1.3.36.8.7.1.3 Teletrust presentation types ptAutoCAD -static const unsigned char cvOID_ptAutoCAD [] = { 0x2B, 0x24, 0x08, 0x07, 0x01, 0x03}; -//1.3.36.8.7.1.4 Teletrust presentation types ptBinary -static const unsigned char cvOID_ptBinary [] = { 0x2B, 0x24, 0x08, 0x07, 0x01, 0x04}; -//1.3.36.8.7.1.5 Teletrust presentation types ptBMP -static const unsigned char cvOID_ptBMP [] = { 0x2B, 0x24, 0x08, 0x07, 0x01, 0x05}; -//1.3.36.8.7.1.6 Teletrust presentation types ptCGM -static const unsigned char cvOID_ptCGM [] = { 0x2B, 0x24, 0x08, 0x07, 0x01, 0x06}; -//1.3.36.8.7.1.7 Teletrust presentation types ptCorelCRT -static const unsigned char cvOID_ptCorelCRT [] = { 0x2B, 0x24, 0x08, 0x07, 0x01, 0x07}; -//1.3.36.8.7.1.8 Teletrust presentation types ptCorelDRW -static const unsigned char cvOID_ptCorelDRW [] = { 0x2B, 0x24, 0x08, 0x07, 0x01, 0x08}; -//1.3.36.8.7.1.9 Teletrust presentation types ptCorelEXC -static const unsigned char cvOID_ptCorelEXC [] = { 0x2B, 0x24, 0x08, 0x07, 0x01, 0x09}; -//1.3.36.8.7.1.10 Teletrust presentation types ptCorelPHT -static const unsigned char cvOID_ptCorelPHT [] = { 0x2B, 0x24, 0x08, 0x07, 0x01, 0x0A}; -//1.3.36.8.7.1.11 Teletrust presentation types ptDraw -static const unsigned char cvOID_ptDraw [] = { 0x2B, 0x24, 0x08, 0x07, 0x01, 0x0B}; -//1.3.36.8.7.1.12 Teletrust presentation types ptDVI -static const unsigned char cvOID_ptDVI [] = { 0x2B, 0x24, 0x08, 0x07, 0x01, 0x0C}; -//1.3.36.8.7.1.13 Teletrust presentation types ptEPS -static const unsigned char cvOID_ptEPS [] = { 0x2B, 0x24, 0x08, 0x07, 0x01, 0x0D}; -//1.3.36.8.7.1.14 Teletrust presentation types ptExcel -static const unsigned char cvOID_ptExcel [] = { 0x2B, 0x24, 0x08, 0x07, 0x01, 0x0E}; -//1.3.36.8.7.1.15 Teletrust presentation types ptGEM -static const unsigned char cvOID_ptGEM [] = { 0x2B, 0x24, 0x08, 0x07, 0x01, 0x0F}; -//1.3.36.8.7.1.16 Teletrust presentation types ptGIF -static const unsigned char cvOID_ptGIF [] = { 0x2B, 0x24, 0x08, 0x07, 0x01, 0x10}; -//1.3.36.8.7.1.17 Teletrust presentation types ptHPGL -static const unsigned char cvOID_ptHPGL [] = { 0x2B, 0x24, 0x08, 0x07, 0x01, 0x11}; -//1.3.36.8.7.1.18 Teletrust presentation types ptJPEG -static const unsigned char cvOID_ptJPEG [] = { 0x2B, 0x24, 0x08, 0x07, 0x01, 0x12}; -//1.3.36.8.7.1.19 Teletrust presentation types ptKodak -static const unsigned char cvOID_ptKodak [] = { 0x2B, 0x24, 0x08, 0x07, 0x01, 0x13}; -//1.3.36.8.7.1.20 Teletrust presentation types ptLaTeX -static const unsigned char cvOID_ptLaTeX [] = { 0x2B, 0x24, 0x08, 0x07, 0x01, 0x14}; -//1.3.36.8.7.1.21 Teletrust presentation types ptLotus -static const unsigned char cvOID_ptLotus [] = { 0x2B, 0x24, 0x08, 0x07, 0x01, 0x15}; -//1.3.36.8.7.1.22 Teletrust presentation types ptLotusPIC -static const unsigned char cvOID_ptLotusPIC [] = { 0x2B, 0x24, 0x08, 0x07, 0x01, 0x16}; -//1.3.36.8.7.1.23 Teletrust presentation types ptMacPICT -static const unsigned char cvOID_ptMacPICT [] = { 0x2B, 0x24, 0x08, 0x07, 0x01, 0x17}; -//1.3.36.8.7.1.24 Teletrust presentation types ptMacWord -static const unsigned char cvOID_ptMacWord [] = { 0x2B, 0x24, 0x08, 0x07, 0x01, 0x18}; -//1.3.36.8.7.1.25 Teletrust presentation types ptMSWfD -static const unsigned char cvOID_ptMSWfD [] = { 0x2B, 0x24, 0x08, 0x07, 0x01, 0x19}; -//1.3.36.8.7.1.26 Teletrust presentation types ptMSWord -static const unsigned char cvOID_ptMSWord [] = { 0x2B, 0x24, 0x08, 0x07, 0x01, 0x1A}; -//1.3.36.8.7.1.27 Teletrust presentation types ptMSWord2 -static const unsigned char cvOID_ptMSWord2 [] = { 0x2B, 0x24, 0x08, 0x07, 0x01, 0x1B}; -//1.3.36.8.7.1.28 Teletrust presentation types ptMSWord6 -static const unsigned char cvOID_ptMSWord6 [] = { 0x2B, 0x24, 0x08, 0x07, 0x01, 0x1C}; -//1.3.36.8.7.1.29 Teletrust presentation types ptMSWord8 -static const unsigned char cvOID_ptMSWord8 [] = { 0x2B, 0x24, 0x08, 0x07, 0x01, 0x1D}; -//1.3.36.8.7.1.30 Teletrust presentation types ptPDF -static const unsigned char cvOID_ptPDF [] = { 0x2B, 0x24, 0x08, 0x07, 0x01, 0x1E}; -//1.3.36.8.7.1.31 Teletrust presentation types ptPIF -static const unsigned char cvOID_ptPIF [] = { 0x2B, 0x24, 0x08, 0x07, 0x01, 0x1F}; -//1.3.36.8.7.1.32 Teletrust presentation types ptPostscript -static const unsigned char cvOID_ptPostscript [] = { 0x2B, 0x24, 0x08, 0x07, 0x01, 0x20}; -//1.3.36.8.7.1.33 Teletrust presentation types ptRTF -static const unsigned char cvOID_ptRTF [] = { 0x2B, 0x24, 0x08, 0x07, 0x01, 0x21}; -//1.3.36.8.7.1.34 Teletrust presentation types ptSCITEX -static const unsigned char cvOID_ptSCITEX [] = { 0x2B, 0x24, 0x08, 0x07, 0x01, 0x22}; -//1.3.36.8.7.1.35 Teletrust presentation types ptTAR -static const unsigned char cvOID_ptTAR [] = { 0x2B, 0x24, 0x08, 0x07, 0x01, 0x23}; -//1.3.36.8.7.1.36 Teletrust presentation types ptTarga -static const unsigned char cvOID_ptTarga [] = { 0x2B, 0x24, 0x08, 0x07, 0x01, 0x24}; -//1.3.36.8.7.1.37 Teletrust presentation types ptTeX -static const unsigned char cvOID_ptTeX [] = { 0x2B, 0x24, 0x08, 0x07, 0x01, 0x25}; -//1.3.36.8.7.1.38 Teletrust presentation types ptText -static const unsigned char cvOID_ptText [] = { 0x2B, 0x24, 0x08, 0x07, 0x01, 0x26}; -//1.3.36.8.7.1.39 Teletrust presentation types ptTIFF -static const unsigned char cvOID_ptTIFF [] = { 0x2B, 0x24, 0x08, 0x07, 0x01, 0x27}; -//1.3.36.8.7.1.40 Teletrust presentation types ptTIFF-FC -static const unsigned char cvOID_ptTIFF_FC [] = { 0x2B, 0x24, 0x08, 0x07, 0x01, 0x28}; -//1.3.36.8.7.1.41 Teletrust presentation types ptUID -static const unsigned char cvOID_ptUID [] = { 0x2B, 0x24, 0x08, 0x07, 0x01, 0x29}; -//1.3.36.8.7.1.42 Teletrust presentation types ptUUEncode -static const unsigned char cvOID_ptUUEncode [] = { 0x2B, 0x24, 0x08, 0x07, 0x01, 0x2A}; -//1.3.36.8.7.1.43 Teletrust presentation types ptWMF -static const unsigned char cvOID_ptWMF [] = { 0x2B, 0x24, 0x08, 0x07, 0x01, 0x2B}; -//1.3.36.8.7.1.44 Teletrust presentation types ptWordPerfect -static const unsigned char cvOID_ptWordPerfect [] = { 0x2B, 0x24, 0x08, 0x07, 0x01, 0x2C}; -//1.3.36.8.7.1.45 Teletrust presentation types ptWPGrph -static const unsigned char cvOID_ptWPGrph [] = { 0x2B, 0x24, 0x08, 0x07, 0x01, 0x2D}; -//1.3.101.1.4 Thawte thawte-ce -static const unsigned char cvOID_thawte_ce [] = { 0x2B, 0x65, 0x01, 0x04}; -//1.3.101.1.4.1 Thawte certificate extension strongExtranet -static const unsigned char cvOID_strongExtranet [] = { 0x2B, 0x65, 0x01, 0x04, 0x01}; -//2.5.4.0 X.520 id-at (2 5 4) objectClass -static const unsigned char cvOID_objectClass [] = { 0x55, 0x04, 0x00}; -//2.5.4.1 X.520 id-at (2 5 4) aliasedEntryName -static const unsigned char cvOID_aliasedEntryName [] = { 0x55, 0x04, 0x01}; -//2.5.4.2 X.520 id-at (2 5 4) knowledgeInformation -static const unsigned char cvOID_knowledgeInformation [] = { 0x55, 0x04, 0x02}; -//2.5.4.3 X.520 id-at (2 5 4) commonName -static const unsigned char cvOID_commonName [] = { 0x55, 0x04, 0x03}; -//2.5.4.4 X.520 id-at (2 5 4) surname -static const unsigned char cvOID_surname [] = { 0x55, 0x04, 0x04}; -//2.5.4.5 X.520 id-at (2 5 4) serialNumber -static const unsigned char cvOID_serialNumber [] = { 0x55, 0x04, 0x05}; -//2.5.4.6 X.520 id-at (2 5 4) countryName -static const unsigned char cvOID_countryName [] = { 0x55, 0x04, 0x06}; -//2.5.4.7 X.520 id-at (2 5 4) localityName -static const unsigned char cvOID_localityName [] = { 0x55, 0x04, 0x07}; -//2.5.4.7.1 X.520 id-at (2 5 4) collectiveLocalityName -static const unsigned char cvOID_collectiveLocalityName [] = { 0x55, 0x04, 0x07, 0x01}; -//2.5.4.8 X.520 id-at (2 5 4) stateOrProvinceName -static const unsigned char cvOID_stateOrProvinceName [] = { 0x55, 0x04, 0x08}; -//2.5.4.8.1 X.520 id-at (2 5 4) collectiveStateOrProvinceName -static const unsigned char cvOID_collectiveStateOrProvinceName [] = { 0x55, 0x04, 0x08, 0x01}; -//2.5.4.9 X.520 id-at (2 5 4) streetAddress -static const unsigned char cvOID_streetAddress [] = { 0x55, 0x04, 0x09}; -//2.5.4.9.1 X.520 id-at (2 5 4) collectiveStreetAddress -static const unsigned char cvOID_collectiveStreetAddress [] = { 0x55, 0x04, 0x09, 0x01}; -//2.5.4.10 X.520 id-at (2 5 4) organizationName -static const unsigned char cvOID_organizationName [] = { 0x55, 0x04, 0x0A}; -//2.5.4.10.1 X.520 id-at (2 5 4) collectiveOrganizationName -static const unsigned char cvOID_collectiveOrganizationName [] = { 0x55, 0x04, 0x0A, 0x01}; -//2.5.4.11 X.520 id-at (2 5 4) organizationalUnitName -static const unsigned char cvOID_organizationalUnitName [] = { 0x55, 0x04, 0x0B}; -//2.5.4.11.1 X.520 id-at (2 5 4) collectiveOrganizationalUnitName -static const unsigned char cvOID_collectiveOrganizationalUnitName [] = { 0x55, 0x04, 0x0B, 0x01}; -//2.5.4.12 X.520 id-at (2 5 4) title -static const unsigned char cvOID_title [] = { 0x55, 0x04, 0x0C}; -//2.5.4.13 X.520 id-at (2 5 4) description -static const unsigned char cvOID_description [] = { 0x55, 0x04, 0x0D}; -//2.5.4.14 X.520 id-at (2 5 4) searchGuide -static const unsigned char cvOID_searchGuide [] = { 0x55, 0x04, 0x0E}; -//2.5.4.15 X.520 id-at (2 5 4) businessCategory -static const unsigned char cvOID_businessCategory [] = { 0x55, 0x04, 0x0F}; -//2.5.4.16 X.520 id-at (2 5 4) postalAddress -static const unsigned char cvOID_postalAddress [] = { 0x55, 0x04, 0x10}; -//2.5.4.16.1 X.520 id-at (2 5 4) collectivePostalAddress -static const unsigned char cvOID_collectivePostalAddress [] = { 0x55, 0x04, 0x10, 0x01}; -//2.5.4.17 X.520 id-at (2 5 4) postalCode -static const unsigned char cvOID_postalCode [] = { 0x55, 0x04, 0x11}; -//2.5.4.17.1 X.520 id-at (2 5 4) collectivePostalCode -static const unsigned char cvOID_collectivePostalCode [] = { 0x55, 0x04, 0x11, 0x01}; -//2.5.4.18 X.520 id-at (2 5 4) postOfficeBox -static const unsigned char cvOID_postOfficeBox [] = { 0x55, 0x04, 0x12}; -//2.5.4.18.1 X.520 id-at (2 5 4) collectivePostOfficeBox -static const unsigned char cvOID_collectivePostOfficeBox [] = { 0x55, 0x04, 0x12, 0x01}; -//2.5.4.19 X.520 id-at (2 5 4) physicalDeliveryOfficeName -static const unsigned char cvOID_physicalDeliveryOfficeName [] = { 0x55, 0x04, 0x13}; -//2.5.4.19.1 X.520 id-at (2 5 4) collectivePhysicalDeliveryOfficeName -static const unsigned char cvOID_collectivePhysicalDeliveryOfficeName [] = { 0x55, 0x04, 0x13, 0x01}; -//2.5.4.20 X.520 id-at (2 5 4) telephoneNumber -static const unsigned char cvOID_telephoneNumber [] = { 0x55, 0x04, 0x14}; -//2.5.4.20.1 X.520 id-at (2 5 4) collectiveTelephoneNumber -static const unsigned char cvOID_collectiveTelephoneNumber [] = { 0x55, 0x04, 0x14, 0x01}; -//2.5.4.21 X.520 id-at (2 5 4) telexNumber -static const unsigned char cvOID_telexNumber [] = { 0x55, 0x04, 0x15}; -//2.5.4.21.1 X.520 id-at (2 5 4) collectiveTelexNumber -static const unsigned char cvOID_collectiveTelexNumber [] = { 0x55, 0x04, 0x15, 0x01}; -//2.5.4.22 X.520 id-at (2 5 4) teletexTerminalIdentifier -static const unsigned char cvOID_teletexTerminalIdentifier [] = { 0x55, 0x04, 0x16}; -//2.5.4.22.1 X.520 id-at (2 5 4) collectiveTeletexTerminalIdentifier -static const unsigned char cvOID_collectiveTeletexTerminalIdentifier [] = { 0x55, 0x04, 0x16, 0x01}; -//2.5.4.23 X.520 id-at (2 5 4) facsimileTelephoneNumber -static const unsigned char cvOID_facsimileTelephoneNumber [] = { 0x55, 0x04, 0x17}; -//2.5.4.23.1 X.520 id-at (2 5 4) collectiveFacsimileTelephoneNumber -static const unsigned char cvOID_collectiveFacsimileTelephoneNumber [] = { 0x55, 0x04, 0x17, 0x01}; -//2.5.4.24 X.520 id-at (2 5 4) x121Address -static const unsigned char cvOID_x121Address [] = { 0x55, 0x04, 0x18}; -//2.5.4.25 X.520 id-at (2 5 4) internationalISDNNumber -static const unsigned char cvOID_internationalISDNNumber [] = { 0x55, 0x04, 0x19}; -//2.5.4.25.1 X.520 id-at (2 5 4) collectiveInternationalISDNNumber -static const unsigned char cvOID_collectiveInternationalISDNNumber [] = { 0x55, 0x04, 0x19, 0x01}; -//2.5.4.26 X.520 id-at (2 5 4) registeredAddress -static const unsigned char cvOID_registeredAddress [] = { 0x55, 0x04, 0x1A}; -//2.5.4.27 X.520 id-at (2 5 4) destinationIndicator -static const unsigned char cvOID_destinationIndicator [] = { 0x55, 0x04, 0x1B}; -//2.5.4.28 X.520 id-at (2 5 4) preferredDeliveryMehtod -static const unsigned char cvOID_preferredDeliveryMehtod [] = { 0x55, 0x04, 0x1C}; -//2.5.4.29 X.520 id-at (2 5 4) presentationAddress -static const unsigned char cvOID_presentationAddress [] = { 0x55, 0x04, 0x1D}; -//2.5.4.30 X.520 id-at (2 5 4) supportedApplicationContext -static const unsigned char cvOID_supportedApplicationContext [] = { 0x55, 0x04, 0x1E}; -//2.5.4.31 X.520 id-at (2 5 4) member -static const unsigned char cvOID_member [] = { 0x55, 0x04, 0x1F}; -//2.5.4.32 X.520 id-at (2 5 4) owner -static const unsigned char cvOID_owner [] = { 0x55, 0x04, 0x20}; -//2.5.4.33 X.520 id-at (2 5 4) roleOccupant -static const unsigned char cvOID_roleOccupant [] = { 0x55, 0x04, 0x21}; -//2.5.4.34 X.520 id-at (2 5 4) seeAlso -static const unsigned char cvOID_seeAlso [] = { 0x55, 0x04, 0x22}; -//2.5.4.35 X.520 id-at (2 5 4) userPassword -static const unsigned char cvOID_userPassword [] = { 0x55, 0x04, 0x23}; -//2.5.4.36 X.520 id-at (2 5 4) userCertificate -static const unsigned char cvOID_userCertificate [] = { 0x55, 0x04, 0x24}; -//2.5.4.37 X.520 id-at (2 5 4) caCertificate -static const unsigned char cvOID_caCertificate [] = { 0x55, 0x04, 0x25}; -//2.5.4.38 X.520 id-at (2 5 4) authorityRevocationList -static const unsigned char cvOID_authorityRevocationList [] = { 0x55, 0x04, 0x26}; -//2.5.4.39 X.520 id-at (2 5 4) certificateRevocationList -static const unsigned char cvOID_certificateRevocationList [] = { 0x55, 0x04, 0x27}; -//2.5.4.40 X.520 id-at (2 5 4) crossCertificatePair -static const unsigned char cvOID_crossCertificatePair_2 [] = { 0x55, 0x04, 0x28}; -//2.5.4.41 X.520 id-at (2 5 4) name -static const unsigned char cvOID_name [] = { 0x55, 0x04, 0x29}; -//2.5.4.42 X.520 id-at (2 5 4) givenName -static const unsigned char cvOID_givenName [] = { 0x55, 0x04, 0x2A}; -//2.5.4.43 X.520 id-at (2 5 4) initials -static const unsigned char cvOID_initials [] = { 0x55, 0x04, 0x2B}; -//2.5.4.44 X.520 id-at (2 5 4) generationQualifier -static const unsigned char cvOID_generationQualifier [] = { 0x55, 0x04, 0x2C}; -//2.5.4.45 X.520 id-at (2 5 4) uniqueIdentifier -static const unsigned char cvOID_uniqueIdentifier [] = { 0x55, 0x04, 0x2D}; -//2.5.4.46 X.520 id-at (2 5 4) dnQualifier -static const unsigned char cvOID_dnQualifier [] = { 0x55, 0x04, 0x2E}; -//2.5.4.47 X.520 id-at (2 5 4) enhancedSearchGuide -static const unsigned char cvOID_enhancedSearchGuide [] = { 0x55, 0x04, 0x2F}; -//2.5.4.48 X.520 id-at (2 5 4) protocolInformation -static const unsigned char cvOID_protocolInformation [] = { 0x55, 0x04, 0x30}; -//2.5.4.49 X.520 id-at (2 5 4) distinguishedName -static const unsigned char cvOID_distinguishedName [] = { 0x55, 0x04, 0x31}; -//2.5.4.50 X.520 id-at (2 5 4) uniqueMember -static const unsigned char cvOID_uniqueMember [] = { 0x55, 0x04, 0x32}; -//2.5.4.51 X.520 id-at (2 5 4) houseIdentifier -static const unsigned char cvOID_houseIdentifier [] = { 0x55, 0x04, 0x33}; -//2.5.4.52 X.520 id-at (2 5 4) supportedAlgorithms -static const unsigned char cvOID_supportedAlgorithms [] = { 0x55, 0x04, 0x34}; -//2.5.4.53 X.520 id-at (2 5 4) deltaRevocationList -static const unsigned char cvOID_deltaRevocationList [] = { 0x55, 0x04, 0x35}; -//2.5.4.55 X.520 id-at (2 5 4) clearance -static const unsigned char cvOID_clearance [] = { 0x55, 0x04, 0x36}; -//2.5.4.58 X.520 id-at (2 5 4) crossCertificatePair -static const unsigned char cvOID_crossCertificatePair_1 [] = { 0x55, 0x04, 0x3A}; -//2.5.4.65 Naming attributes of type X520Pseudonym -static const unsigned char cvOID_pseudonym[] = { 0x55, 0x04, 0x41}; -//2.5.8.1.1 X.500 algorithms. Ambiguous, since no padding rules specified rsa -static const unsigned char cvOID_rsa_X500 [] = { 0x55, 0x08, 0x01, 0x01}; -//2.5.29.1 X.509 id-ce (2 5 29). Deprecated, use (2 5 29 35) instead authorityKeyIdentifier -static const unsigned char cvOID_authorityKeyIdentifier_old[] = { 0x55, 0x1D, 0x01}; -//2.5.29.2 X.509 id-ce (2 5 29). Obsolete, use keyUsage/extKeyUsage instead keyAttributes -static const unsigned char cvOID_keyAttributes [] = { 0x55, 0x1D, 0x02}; -//2.5.29.3 X.509 id-ce (2 5 29). Deprecated, use (2 5 29 32) instead certificatePolicies -static const unsigned char cvOID_certificatePolicies_old [] = { 0x55, 0x1D, 0x03}; -//2.5.29.4 X.509 id-ce (2 5 29). Obsolete, use keyUsage/extKeyUsage instead keyUsageRestriction -static const unsigned char cvOID_keyUsageRestriction [] = { 0x55, 0x1D, 0x04}; -//2.5.29.5 X.509 id-ce (2 5 29). Deprecated, use (2 5 29 33) instead policyMapping -static const unsigned char cvOID_policyMapping [] = { 0x55, 0x1D, 0x05}; -//2.5.29.6 X.509 id-ce (2 5 29). Obsolete, use namestatic constraints instead subtreesstatic constraint -static const unsigned char cvOID_subtreesconstraint [] = { 0x55, 0x1D, 0x06}; -//2.5.29.7 X.509 id-ce (2 5 29). Deprecated, use (2 5 29 17) instead subjectAltName -static const unsigned char cvOID_subjectAltName_old [] = { 0x55, 0x1D, 0x07}; -//2.5.29.8 X.509 id-ce (2 5 29). Deprecated, use (2 5 29 18) instead issuerAltName -static const unsigned char cvOID_issuerAltName_old [] = { 0x55, 0x1D, 0x08}; -//2.5.29.9 X.509 id-ce (2 5 29) subjectDirectoryAttributes -static const unsigned char cvOID_subjectDirectoryAttributes [] = { 0x55, 0x1D, 0x09}; -//2.5.29.10 X.509 id-ce (2 5 29). Deprecated, use (2 5 29 19) instead basicstatic constraints -static const unsigned char cvOID_basicconstraints_old [] = { 0x55, 0x1D, 0x0A}; -//2.5.29.11 X.509 id-ce (2 5 29). Deprecated, use (2 5 29 30) instead namestatic constraints -static const unsigned char cvOID_nameconstraints_old [] = { 0x55, 0x1D, 0x0B}; -//2.5.29.12 X.509 id-ce (2 5 29). Deprecated, use (2 5 29 36) instead policystatic constraints -static const unsigned char cvOID_policyconstraints_old_1 [] = { 0x55, 0x1D, 0x0C}; -//2.5.29.13 X.509 id-ce (2 5 29). Deprecated, use (2 5 29 19) instead basicstatic constraints -static const unsigned char cvOID_basicconstraints_2 [] = { 0x55, 0x1D, 0x0D}; -//2.5.29.14 X.509 id-ce (2 5 29) subjectKeyIdentifier -static const unsigned char cvOID_subjectKeyIdentifier[] = { 0x55, 0x1D, 0x0E}; -//2.5.29.15 X.509 id-ce (2 5 29) keyUsage -static const unsigned char cvOID_keyUsage[] = { 0x55, 0x1D, 0x0F}; -//2.5.29.16 X.509 id-ce (2 5 29) privateKeyUsagePeriod -static const unsigned char cvOID_privateKeyUsagePeriod [] = { 0x55, 0x1D, 0x10}; -//2.5.29.17 X.509 id-ce (2 5 29) subjectAltName -static const unsigned char cvOID_subjectAltName [] = { 0x55, 0x1D, 0x11}; -//2.5.29.18 X.509 id-ce (2 5 29) issuerAltName -static const unsigned char cvOID_issuerAltName [] = { 0x55, 0x1D, 0x12}; -//2.5.29.19 X.509 id-ce (2 5 29) basicstatic constraints -static const unsigned char cvOID_basicconstraints[] = { 0x55, 0x1D, 0x13}; -//2.5.29.20 X.509 id-ce (2 5 29) cRLNumber -static const unsigned char cvOID_cRLNumber [] = { 0x55, 0x1D, 0x14}; -//2.5.29.21 X.509 id-ce (2 5 29) cRLReason -static const unsigned char cvOID_cRLReason [] = { 0x55, 0x1D, 0x15}; -//2.5.29.22 X.509 id-ce (2 5 29). Deprecated, alternative OID uncertain expirationDate -static const unsigned char cvOID_expirationDate [] = { 0x55, 0x1D, 0x16}; -//2.5.29.23 X.509 id-ce (2 5 29) instructionCode -static const unsigned char cvOID_instructionCode [] = { 0x55, 0x1D, 0x17}; -//2.5.29.24 X.509 id-ce (2 5 29) invalidityDate -static const unsigned char cvOID_invalidityDate [] = { 0x55, 0x1D, 0x18}; -//2.5.29.25 X.509 id-ce (2 5 29). Deprecated, use (2 5 29 31) instead cRLDistributionPoints -static const unsigned char cvOID_cRLDistributionPoints_old [] = { 0x55, 0x1D, 0x19}; -//2.5.29.26 X.509 id-ce (2 5 29). Deprecated, use (2 5 29 28) instead issuingDistributionPoint -static const unsigned char cvOID_issuingDistributionPoint_old [] = { 0x55, 0x1D, 0x1A}; -//2.5.29.27 X.509 id-ce (2 5 29) deltaCRLIndicator -static const unsigned char cvOID_deltaCRLIndicator [] = { 0x55, 0x1D, 0x1B}; -//2.5.29.28 X.509 id-ce (2 5 29) issuingDistributionPoint -static const unsigned char cvOID_issuingDistributionPoint [] = { 0x55, 0x1D, 0x1C}; -//2.5.29.29 X.509 id-ce (2 5 29) certificateIssuer -static const unsigned char cvOID_certificateIssuer [] = { 0x55, 0x1D, 0x1D}; -//2.5.29.30 X.509 id-ce (2 5 29) namestatic constraints -static const unsigned char cvOID_nameconstraints [] = { 0x55, 0x1D, 0x1E}; -//2.5.29.31 X.509 id-ce (2 5 29) cRLDistributionPoints -static const unsigned char cvOID_cRLDistributionPoints[] = { 0x55, 0x1D, 0x1F}; -//2.5.29.32 X.509 id-ce (2 5 29) certificatePolicies -static const unsigned char cvOID_certificatePolicies [] = { 0x55, 0x1D, 0x20}; -//2.5.29.32.0 X.509 id-ce (2 5 29.0) anyPolicies -static const unsigned char cvOID_anyPolicies [] = { 0x55, 0x1D, 0x20, 0x00}; -//2.5.29.33 X.509 id-ce (2 5 29) policyMappings -static const unsigned char cvOID_policyMappings [] = { 0x55, 0x1D, 0x21}; -//2.5.29.34 X.509 id-ce (2 5 29). Deprecated, use (2 5 29 36) instead policystatic constraints -static const unsigned char cvOID_policyconstraints_old_2 [] = { 0x55, 0x1D, 0x22}; -//2.5.29.35 X.509 id-ce (2 5 29) authorityKeyIdentifier -static const unsigned char cvOID_authorityKeyIdentifier [] = { 0x55, 0x1D, 0x23}; -//2.5.29.36 X.509 id-ce (2 5 29) policystatic constraints -static const unsigned char cvOID_policyconstraints [] = { 0x55, 0x1D, 0x24}; -//2.5.29.37 X.509 id-ce (2 5 29) extKeyUsage -static const unsigned char cvOID_extKeyUsage [] = { 0x55, 0x1D, 0x25}; -//2.5.29.37.0 anyExtendedKeyUsage id-ce-extKeyUsage 0 -static const unsigned char cvOID_anyExtendedKeyUsage [] = { 0x55, 0x1D, 0x25, 0x00}; -//ame -//2.5.29.46 X.509 id-ce (2 5 29) id-ce-freshestCRL -static const unsigned char cvOID_freshestCRL [] = { 0x55, 0x1D, 0x2E}; -//2.5.29.54 X.509 id-ce (2 5 29) inhibitAnyPolicy -static const unsigned char cvOID_inhibitAnyPolicy [] = { 0x55, 0x1D, 0x36}; - -//2.16.840.1.101.2.1.1.1 SDN.700 INFOSEC algorithms sdnsSignatureAlgorithm -static const unsigned char cvOID_sdnsSignatureAlgorithm [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x01, 0x01}; -//2.16.840.1.101.2.1.1.2 SDN.700 INFOSEC algorithms. Formerly known as mosaicSignatureAlgorithm, this OID is better known as dsaWithSHA-1. fortezzaSignatureAlgorithm -static const unsigned char cvOID_fortezzaSignatureAlgorithm [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x01, 0x02}; -//2.16.840.1.101.2.1.1.3 SDN.700 INFOSEC algorithms sdnsConfidentialityAlgorithm -static const unsigned char cvOID_sdnsConfidentialityAlgorithm [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x01, 0x03}; -//2.16.840.1.101.2.1.1.4 SDN.700 INFOSEC algorithms. Formerly known as mosaicConfidentialityAlgorithm fortezzaConfidentialityAlgorithm -static const unsigned char cvOID_fortezzaConfidentialityAlgorithm [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x01, 0x04}; -//2.16.840.1.101.2.1.1.5 SDN.700 INFOSEC algorithms sdnsIntegrityAlgorithm -static const unsigned char cvOID_sdnsIntegrityAlgorithm [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x01, 0x05}; -//2.16.840.1.101.2.1.1.6 SDN.700 INFOSEC algorithms. Formerly known as mosaicIntegrityAlgorithm fortezzaIntegrityAlgorithm -static const unsigned char cvOID_fortezzaIntegrityAlgorithm [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x01, 0x06}; -//2.16.840.1.101.2.1.1.7 SDN.700 INFOSEC algorithms sdnsTokenProtectionAlgorithm -static const unsigned char cvOID_sdnsTokenProtectionAlgorithm [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x01, 0x07}; -//2.16.840.1.101.2.1.1.8 SDN.700 INFOSEC algorithms. Formerly know as mosaicTokenProtectionAlgorithm fortezzaTokenProtectionAlgorithm -static const unsigned char cvOID_fortezzaTokenProtectionAlgorithm [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x01, 0x08}; -//2.16.840.1.101.2.1.1.9 SDN.700 INFOSEC algorithms sdnsKeyManagementAlgorithm -static const unsigned char cvOID_sdnsKeyManagementAlgorithm [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x01, 0x09}; -//2.16.840.1.101.2.1.1.10 SDN.700 INFOSEC algorithms. Formerly known as mosaicKeyManagementAlgorithm fortezzaKeyManagementAlgorithm -static const unsigned char cvOID_fortezzaKeyManagementAlgorithm [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x01, 0x0A}; -//2.16.840.1.101.2.1.1.11 SDN.700 INFOSEC algorithms sdnsKMandSigAlgorithm -static const unsigned char cvOID_sdnsKMandSigAlgorithm [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x01, 0x0B}; -//2.16.840.1.101.2.1.1.12 SDN.700 INFOSEC algorithms. Formerly known as mosaicKMandSigAlgorithm fortezzaKMandSigAlgorithm -static const unsigned char cvOID_fortezzaKMandSigAlgorithm [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x01, 0x0C}; -//2.16.840.1.101.2.1.1.13 SDN.700 INFOSEC algorithms suiteASignatureAlgorithm -static const unsigned char cvOID_suiteASignatureAlgorithm [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x01, 0x0D}; -//2.16.840.1.101.2.1.1.14 SDN.700 INFOSEC algorithms suiteAConfidentialityAlgorithm -static const unsigned char cvOID_suiteAConfidentialityAlgorithm [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x01, 0x0E}; -//2.16.840.1.101.2.1.1.15 SDN.700 INFOSEC algorithms suiteAIntegrityAlgorithm -static const unsigned char cvOID_suiteAIntegrityAlgorithm [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x01, 0x0F}; -//2.16.840.1.101.2.1.1.16 SDN.700 INFOSEC algorithms suiteATokenProtectionAlgorithm -static const unsigned char cvOID_suiteATokenProtectionAlgorithm [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x01, 0x10}; -//2.16.840.1.101.2.1.1.17 SDN.700 INFOSEC algorithms suiteAKeyManagementAlgorithm -static const unsigned char cvOID_suiteAKeyManagementAlgorithm [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x01, 0x11}; -//2.16.840.1.101.2.1.1.18 SDN.700 INFOSEC algorithms suiteAKMandSigAlgorithm -static const unsigned char cvOID_suiteAKMandSigAlgorithm [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x01, 0x12}; -//2.16.840.1.101.2.1.1.19 SDN.700 INFOSEC algorithms. Formerly known as mosaicUpdatedSigAlgorithm fortezzaUpdatedSigAlgorithm -static const unsigned char cvOID_fortezzaUpdatedSigAlgorithm [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x01, 0x13}; -//2.16.840.1.101.2.1.1.20 SDN.700 INFOSEC algorithms. Formerly known as mosaicKMandUpdSigAlgorithms fortezzaKMandUpdSigAlgorithms -static const unsigned char cvOID_fortezzaKMandUpdSigAlgorithms [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x01, 0x14}; -//2.16.840.1.101.2.1.1.21 SDN.700 INFOSEC algorithms. Formerly known as mosaicUpdatedIntegAlgorithm fortezzaUpdatedIntegAlgorithm -static const unsigned char cvOID_fortezzaUpdatedIntegAlgorithm [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x01, 0x15}; -//2.16.840.1.101.2.1.1.22 SDN.700 INFOSEC algorithms. Formerly known as mosaicKeyEncryptionAlgorithm keyExchangeAlgorithm -static const unsigned char cvOID_keyExchangeAlgorithm [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x01, 0x16}; -//2.16.840.1.101.2.1.1.23 SDN.700 INFOSEC algorithms fortezzaWrap80Algorithm -static const unsigned char cvOID_fortezzaWrap80Algorithm [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x01, 0x17}; -//2.16.840.1.101.2.1.1.24 SDN.700 INFOSEC algorithms kEAKeyEncryptionAlgorithm -static const unsigned char cvOID_kEAKeyEncryptionAlgorithm [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x01, 0x18}; -//2.16.840.1.101.2.1.2.1 SDN.700 INFOSEC format rfc822MessageFormat -static const unsigned char cvOID_rfc822MessageFormat [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x02, 0x01}; -//2.16.840.1.101.2.1.2.2 SDN.700 INFOSEC format emptyContent -static const unsigned char cvOID_emptyContent [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x02, 0x02}; -//2.16.840.1.101.2.1.2.3 SDN.700 INFOSEC format cspContentType -static const unsigned char cvOID_cspContentType [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x02, 0x03}; -//2.16.840.1.101.2.1.2.42 SDN.700 INFOSEC format mspRev3ContentType -static const unsigned char cvOID_mspRev3ContentType [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x02, 0x2A}; -//2.16.840.1.101.2.1.2.48 SDN.700 INFOSEC format mspContentType -static const unsigned char cvOID_mspContentType [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x02, 0x30}; -//2.16.840.1.101.2.1.2.49 SDN.700 INFOSEC format mspRekeyAgentProtocol -static const unsigned char cvOID_mspRekeyAgentProtocol [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x02, 0x31}; -//2.16.840.1.101.2.1.2.50 SDN.700 INFOSEC format mspMMP -static const unsigned char cvOID_mspMMP [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x02, 0x32}; -//2.16.840.1.101.2.1.2.66 SDN.700 INFOSEC format mspRev3-1ContentType -static const unsigned char cvOID_mspRev3_1ContentType [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x02, 0x42}; -//2.16.840.1.101.2.1.2.72 SDN.700 INFOSEC format forwardedMSPMessageBodyPart -static const unsigned char cvOID_forwardedMSPMessageBodyPart [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x02, 0x48}; -//2.16.840.1.101.2.1.2.73 SDN.700 INFOSEC format mspForwardedMessageParameters -static const unsigned char cvOID_mspForwardedMessageParameters [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x02, 0x49}; -//2.16.840.1.101.2.1.2.74 SDN.700 INFOSEC format forwardedCSPMsgBodyPart -static const unsigned char cvOID_forwardedCSPMsgBodyPart [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x02, 0x50}; -//2.16.840.1.101.2.1.2.75 SDN.700 INFOSEC format cspForwardedMessageParameters -static const unsigned char cvOID_cspForwardedMessageParameters [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x02, 0x51}; -//2.16.840.1.101.2.1.2.76 SDN.700 INFOSEC format mspMMP2 -static const unsigned char cvOID_mspMMP2 [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x02, 0x52}; -//2.16.840.1.101.2.1.3.1 SDN.700 INFOSEC policy sdnsSecurityPolicy -static const unsigned char cvOID_sdnsSecurityPolicy [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x03, 0x01}; -//2.16.840.1.101.2.1.3.2 SDN.700 INFOSEC policy sdnsPRBAC -static const unsigned char cvOID_sdnsPRBAC [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x03, 0x02}; -//2.16.840.1.101.2.1.3.3 SDN.700 INFOSEC policy mosaicPRBAC -static const unsigned char cvOID_mosaicPRBAC [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x03, 0x03}; -//2.16.840.1.101.2.1.3.10 SDN.700 INFOSEC policy siSecurityPolicy -static const unsigned char cvOID_siSecurityPolicy [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x03, 0x0A}; -//2.16.840.1.101.2.1.3.10.0 SDN.700 INFOSEC policy (obsolete) siNASP -static const unsigned char cvOID_siNASP [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x03, 0x0A, 0x00}; -//2.16.840.1.101.2.1.3.10.1 SDN.700 INFOSEC policy (obsolete) siELCO -static const unsigned char cvOID_siELCO [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x03, 0x0A, 0x01}; -//2.16.840.1.101.2.1.3.10.2 SDN.700 INFOSEC policy (obsolete) siTK -static const unsigned char cvOID_siTK [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x03, 0x0A, 0x02}; -//2.16.840.1.101.2.1.3.10.3 SDN.700 INFOSEC policy (obsolete) siDSAP -static const unsigned char cvOID_siDSAP [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x03, 0x0A, 0x03}; -//2.16.840.1.101.2.1.3.10.4 SDN.700 INFOSEC policy (obsolete) siSSSS -static const unsigned char cvOID_siSSSS [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x03, 0x0A, 0x04}; -//2.16.840.1.101.2.1.3.10.5 SDN.700 INFOSEC policy (obsolete) siDNASP -static const unsigned char cvOID_siDNASP [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x03, 0x0A, 0x05}; -//2.16.840.1.101.2.1.3.10.6 SDN.700 INFOSEC policy (obsolete) siBYEMAN -static const unsigned char cvOID_siBYEMAN [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x03, 0x0A, 0x06}; -//2.16.840.1.101.2.1.3.10.7 SDN.700 INFOSEC policy (obsolete) siREL-US -static const unsigned char cvOID_siREL_US [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x03, 0x0A, 0x07}; -//2.16.840.1.101.2.1.3.10.8 SDN.700 INFOSEC policy (obsolete) siREL-AUS -static const unsigned char cvOID_siREL_AUS [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x03, 0x0A, 0x08}; -//2.16.840.1.101.2.1.3.10.9 SDN.700 INFOSEC policy (obsolete) siREL-CAN -static const unsigned char cvOID_siREL_CAN [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x03, 0x0A, 0x09}; -//2.16.840.1.101.2.1.3.10.10 SDN.700 INFOSEC policy (obsolete) siREL_UK -static const unsigned char cvOID_siREL_UK [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x03, 0x0A, 0x0A}; -//2.16.840.1.101.2.1.3.10.11 SDN.700 INFOSEC policy (obsolete) siREL-NZ -static const unsigned char cvOID_siREL_NZ [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x03, 0x0A, 0x0B}; -//2.16.840.1.101.2.1.3.10.12 SDN.700 INFOSEC policy (obsolete) siGeneric -static const unsigned char cvOID_siGeneric [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x03, 0x0A, 0x0C}; -//2.16.840.1.101.2.1.3.11 SDN.700 INFOSEC policy genser -static const unsigned char cvOID_genser [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x03, 0x0B}; -//2.16.840.1.101.2.1.3.11.0 SDN.700 INFOSEC policy (obsolete) genserNations -static const unsigned char cvOID_genserNations [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x03, 0x0B, 0x00}; -//2.16.840.1.101.2.1.3.11.1 SDN.700 INFOSEC policy (obsolete) genserComsec -static const unsigned char cvOID_genserComsec [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x03, 0x0B, 0x01}; -//2.16.840.1.101.2.1.3.11.2 SDN.700 INFOSEC policy (obsolete) genserAcquisition -static const unsigned char cvOID_genserAcquisition [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x03, 0x0B, 0x02}; -//2.16.840.1.101.2.1.3.11.3 SDN.700 INFOSEC policy genserSecurityCategories -static const unsigned char cvOID_genserSecurityCategories [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x03, 0x0B, 0x03}; -//2.16.840.1.101.2.1.3.11.3.0 SDN.700 INFOSEC GENSER policy genserTagSetName -static const unsigned char cvOID_genserTagSetName [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x03, 0x0B, 0x03, 0x00}; -//2.16.840.1.101.2.1.3.12 SDN.700 INFOSEC policy defaultSecurityPolicy -static const unsigned char cvOID_defaultSecurityPolicy [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x03, 0x0C}; -//2.16.840.1.101.2.1.3.13 SDN.700 INFOSEC policy capcoMarkings -static const unsigned char cvOID_capcoMarkings [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x03, 0x0D}; -//2.16.840.1.101.2.1.3.13.0 SDN.700 INFOSEC policy CAPCO markings capcoSecurityCategories -static const unsigned char cvOID_capcoSecurityCategories [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x03, 0x0D, 0x00}; -//2.16.840.1.101.2.1.3.13.0.1 SDN.700 INFOSEC policy CAPCO markings capcoTagSetName1 -static const unsigned char cvOID_capcoTagSetName1 [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x03, 0x0D, 0x00, 0x01}; -//2.16.840.1.101.2.1.3.13.0.2 SDN.700 INFOSEC policy CAPCO markings capcoTagSetName2 -static const unsigned char cvOID_capcoTagSetName2 [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x03, 0x0D, 0x00, 0x02}; -//2.16.840.1.101.2.1.3.13.0.3 SDN.700 INFOSEC policy CAPCO markings capcoTagSetName3 -static const unsigned char cvOID_capcoTagSetName3 [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x03, 0x0D, 0x00, 0x03}; -//2.16.840.1.101.2.1.3.13.0.4 SDN.700 INFOSEC policy CAPCO markings capcoTagSetName4 -static const unsigned char cvOID_capcoTagSetName4 [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x03, 0x0D, 0x00, 0x04}; -//2.16.840.1.101.2.1.5.1 SDN.700 INFOSEC attributes (superseded) sdnsKeyManagementCertificate -static const unsigned char cvOID_sdnsKeyManagementCertificate [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x05, 0x01}; -//2.16.840.1.101.2.1.5.2 SDN.700 INFOSEC attributes (superseded) sdnsUserSignatureCertificate -static const unsigned char cvOID_sdnsUserSignatureCertificate [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x05, 0x02}; -//2.16.840.1.101.2.1.5.3 SDN.700 INFOSEC attributes (superseded) sdnsKMandSigCertificate -static const unsigned char cvOID_sdnsKMandSigCertificate [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x05, 0x03}; -//2.16.840.1.101.2.1.5.4 SDN.700 INFOSEC attributes (superseded) fortezzaKeyManagementCertificate -static const unsigned char cvOID_fortezzaKeyManagementCertificate [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x05, 0x04}; -//2.16.840.1.101.2.1.5.5 SDN.700 INFOSEC attributes (superseded) fortezzaKMandSigCertificate -static const unsigned char cvOID_fortezzaKMandSigCertificate [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x05, 0x05}; -//2.16.840.1.101.2.1.5.6 SDN.700 INFOSEC attributes (superseded) fortezzaUserSignatureCertificate -static const unsigned char cvOID_fortezzaUserSignatureCertificate [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x05, 0x06}; -//2.16.840.1.101.2.1.5.7 SDN.700 INFOSEC attributes (superseded) fortezzaCASignatureCertificate -static const unsigned char cvOID_fortezzaCASignatureCertificate [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x05, 0x07}; -//2.16.840.1.101.2.1.5.8 SDN.700 INFOSEC attributes (superseded) sdnsCASignatureCertificate -static const unsigned char cvOID_sdnsCASignatureCertificate [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x05, 0x08}; -//2.16.840.1.101.2.1.5.10 SDN.700 INFOSEC attributes (superseded) auxiliaryVector -static const unsigned char cvOID_auxiliaryVector [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x05, 0x0A}; -//2.16.840.1.101.2.1.5.11 SDN.700 INFOSEC attributes mlReceiptPolicy -static const unsigned char cvOID_mlReceiptPolicy [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x05, 0x0B}; -//2.16.840.1.101.2.1.5.12 SDN.700 INFOSEC attributes mlMembership -static const unsigned char cvOID_mlMembership [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x05, 0x0C}; -//2.16.840.1.101.2.1.5.13 SDN.700 INFOSEC attributes mlAdministrators -static const unsigned char cvOID_mlAdministrators [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x05, 0x0D}; -//2.16.840.1.101.2.1.5.14 SDN.700 INFOSEC attributes alid -static const unsigned char cvOID_alid [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x05, 0x0E}; -//2.16.840.1.101.2.1.5.20 SDN.700 INFOSEC attributes janUKMs -static const unsigned char cvOID_janUKMs [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x05, 0x14}; -//2.16.840.1.101.2.1.5.21 SDN.700 INFOSEC attributes febUKMs -static const unsigned char cvOID_febUKMs [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x05, 0x15}; -//2.16.840.1.101.2.1.5.22 SDN.700 INFOSEC attributes marUKMs -static const unsigned char cvOID_marUKMs [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x05, 0x16}; -//2.16.840.1.101.2.1.5.23 SDN.700 INFOSEC attributes aprUKMs -static const unsigned char cvOID_aprUKMs [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x05, 0x17}; -//2.16.840.1.101.2.1.5.24 SDN.700 INFOSEC attributes mayUKMs -static const unsigned char cvOID_mayUKMs [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x05, 0x18}; -//2.16.840.1.101.2.1.5.25 SDN.700 INFOSEC attributes junUKMs -static const unsigned char cvOID_junUKMs [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x05, 0x19}; -//2.16.840.1.101.2.1.5.26 SDN.700 INFOSEC attributes julUKMs -static const unsigned char cvOID_julUKMs [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x05, 0x1A}; -//2.16.840.1.101.2.1.5.27 SDN.700 INFOSEC attributes augUKMs -static const unsigned char cvOID_augUKMs [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x05, 0x1B}; -//2.16.840.1.101.2.1.5.28 SDN.700 INFOSEC attributes sepUKMs -static const unsigned char cvOID_sepUKMs [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x05, 0x1C}; -//2.16.840.1.101.2.1.5.29 SDN.700 INFOSEC attributes octUKMs -static const unsigned char cvOID_octUKMs [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x05, 0x1D}; -//2.16.840.1.101.2.1.5.30 SDN.700 INFOSEC attributes novUKMs -static const unsigned char cvOID_novUKMs [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x05, 0x1E}; -//2.16.840.1.101.2.1.5.21 SDN.700 INFOSEC attributes decUKMs -static const unsigned char cvOID_decUKMs [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x05, 0x1F}; -//2.16.840.1.101.2.1.5.40 SDN.700 INFOSEC attributes metaSDNSckl -static const unsigned char cvOID_metaSDNSckl [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x05, 0x28}; -//2.16.840.1.101.2.1.5.41 SDN.700 INFOSEC attributes sdnsCKL -static const unsigned char cvOID_sdnsCKL [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x05, 0x29}; -//2.16.840.1.101.2.1.5.42 SDN.700 INFOSEC attributes metaSDNSsignatureCKL -static const unsigned char cvOID_metaSDNSsignatureCKL [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x05, 0x2A}; -//2.16.840.1.101.2.1.5.43 SDN.700 INFOSEC attributes sdnsSignatureCKL -static const unsigned char cvOID_sdnsSignatureCKL [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x05, 0x2B}; -//2.16.840.1.101.2.1.5.44 SDN.700 INFOSEC attributes sdnsCertificateRevocationList -static const unsigned char cvOID_sdnsCertificateRevocationList [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x05, 0x2C}; -//2.16.840.1.101.2.1.5.45 SDN.700 INFOSEC attributes (superseded) fortezzaCertificateRevocationList -static const unsigned char cvOID_fortezzaCertificateRevocationList [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x05, 0x2D}; -//2.16.840.1.101.2.1.5.46 SDN.700 INFOSEC attributes fortezzaCKL -static const unsigned char cvOID_fortezzaCKL [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x05, 0x2E}; -//2.16.840.1.101.2.1.5.47 SDN.700 INFOSEC attributes alExemptedAddressProcessor -static const unsigned char cvOID_alExemptedAddressProcessor [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x05, 0x2F}; -//2.16.840.1.101.2.1.5.48 SDN.700 INFOSEC attributes (obsolete) guard -static const unsigned char cvOID_guard [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x05, 0x30}; -//2.16.840.1.101.2.1.5.49 SDN.700 INFOSEC attributes (obsolete) algorithmsSupported -static const unsigned char cvOID_algorithmsSupported [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x05, 0x31}; -//2.16.840.1.101.2.1.5.50 SDN.700 INFOSEC attributes (obsolete) suiteAKeyManagementCertificate -static const unsigned char cvOID_suiteAKeyManagementCertificate [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x05, 0x32}; -//2.16.840.1.101.2.1.5.51 SDN.700 INFOSEC attributes (obsolete) suiteAKMandSigCertificate -static const unsigned char cvOID_suiteAKMandSigCertificate [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x05, 0x33}; -//2.16.840.1.101.2.1.5.52 SDN.700 INFOSEC attributes (obsolete) suiteAUserSignatureCertificate -static const unsigned char cvOID_suiteAUserSignatureCertificate [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x05, 0x34}; -//2.16.840.1.101.2.1.5.53 SDN.700 INFOSEC attributes prbacInfo -static const unsigned char cvOID_prbacInfo [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x05, 0x35}; -//2.16.840.1.101.2.1.5.54 SDN.700 INFOSEC attributes prbacCAstatic constraints -static const unsigned char cvOID_prbacCAconstraints [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x05, 0x36}; -//2.16.840.1.101.2.1.5.55 SDN.700 INFOSEC attributes sigOrKMPrivileges -static const unsigned char cvOID_sigOrKMPrivileges [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x05, 0x37}; -//2.16.840.1.101.2.1.5.56 SDN.700 INFOSEC attributes commPrivileges -static const unsigned char cvOID_commPrivileges [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x05, 0x38}; -//2.16.840.1.101.2.1.5.57 SDN.700 INFOSEC attributes labeledAttribute -static const unsigned char cvOID_labeledAttribute [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x05, 0x39}; -//2.16.840.1.101.2.1.5.58 SDN.700 INFOSEC attributes (obsolete) policyInformationFile -static const unsigned char cvOID_policyInformationFile [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x05, 0x3A}; -//2.16.840.1.101.2.1.5.59 SDN.700 INFOSEC attributes secPolicyInformationFile -static const unsigned char cvOID_secPolicyInformationFile [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x05, 0x3B}; -//2.16.840.1.101.2.1.5.60 SDN.700 INFOSEC attributes cAClearancestatic constraint -static const unsigned char cvOID_cAClearanceconstraint [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x05, 0x3C}; -//2.16.840.1.101.2.1.7.1 SDN.700 INFOSEC extensions cspExtns -static const unsigned char cvOID_cspExtns [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x07, 0x01}; -//2.16.840.1.101.2.1.7.1.0 SDN.700 INFOSEC extensions cspCsExtn -static const unsigned char cvOID_cspCsExtn [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x07, 0x01, 0x00}; -//2.16.840.1.101.2.1.8.1 SDN.700 INFOSEC security category mISSISecurityCategories -static const unsigned char cvOID_mISSISecurityCategories [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x08, 0x01}; -//2.16.840.1.101.2.1.8.2 SDN.700 INFOSEC security category standardSecurityLabelPrivileges -static const unsigned char cvOID_standardSecurityLabelPrivileges [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x08, 0x02}; -//2.16.840.1.101.2.1.10.1 SDN.700 INFOSEC privileges sigPrivileges -static const unsigned char cvOID_sigPrivileges [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x0A, 0x01}; -//2.16.840.1.101.2.1.10.2 SDN.700 INFOSEC privileges kmPrivileges -static const unsigned char cvOID_kmPrivileges [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x0A, 0x02}; -//2.16.840.1.101.2.1.10.3 SDN.700 INFOSEC privileges namedTagSetPrivilege -static const unsigned char cvOID_namedTagSetPrivilege [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x0A, 0x03}; -//2.16.840.1.101.2.1.11.1 SDN.700 INFOSEC certificate policy ukDemo -static const unsigned char cvOID_ukDemo [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x0B, 0x01}; -//2.16.840.1.101.2.1.11.2 SDN.700 INFOSEC certificate policy usDODClass2 -static const unsigned char cvOID_usDODClass2 [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x0B, 0x02}; -//2.16.840.1.101.2.1.11.3 SDN.700 INFOSEC certificate policy usMediumPilot -static const unsigned char cvOID_usMediumPilot [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x0B, 0x03}; -//2.16.840.1.101.2.1.11.4 SDN.700 INFOSEC certificate policy usDODClass4 -static const unsigned char cvOID_usDODClass4 [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x0B, 0x04}; -//2.16.840.1.101.2.1.11.5 SDN.700 INFOSEC certificate policy usDODClass3 -static const unsigned char cvOID_usDODClass3 [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x0B, 0x05}; -//2.16.840.1.101.2.1.11.6 SDN.700 INFOSEC certificate policy usDODClass5 -static const unsigned char cvOID_usDODClass5 [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x0B, 0x06}; -//2.16.840.1.101.2.1.12.0 SDN.700 INFOSEC test objects testSecurityPolicy -static const unsigned char cvOID_testSecurityPolicy [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x0C, 0x00}; -//2.16.840.1.101.2.1.12.0.1 SDN.700 INFOSEC test objects tsp1 -static const unsigned char cvOID_tsp1 [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x0C, 0x00, 0x01}; -//2.16.840.1.101.2.1.12.0.1.0 SDN.700 INFOSEC test objects tsp1SecurityCategories -static const unsigned char cvOID_tsp1SecurityCategories [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x0C, 0x00, 0x01, 0x00}; -//2.16.840.1.101.2.1.12.0.1.0.0 SDN.700 INFOSEC test objects tsp1TagSetZero -static const unsigned char cvOID_tsp1TagSetZero [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x0C, 0x00, 0x01, 0x00, 0x00}; -//2.16.840.1.101.2.1.12.0.1.0.1 SDN.700 INFOSEC test objects tsp1TagSetOne -static const unsigned char cvOID_tsp1TagSetOne [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x0C, 0x00, 0x01, 0x00, 0x01}; -//2.16.840.1.101.2.1.12.0.1.0.2 SDN.700 INFOSEC test objects tsp1TagSetTwo -static const unsigned char cvOID_tsp1TagSetTwo [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x0C, 0x00, 0x01, 0x00, 0x02}; -//2.16.840.1.101.2.1.12.0.2 SDN.700 INFOSEC test objects tsp2 -static const unsigned char cvOID_tsp2 [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x0C, 0x00, 0x02}; -//2.16.840.1.101.2.1.12.0.2.0 SDN.700 INFOSEC test objects tsp2SecurityCategories -static const unsigned char cvOID_tsp2SecurityCategories [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x0C, 0x00, 0x02, 0x00}; -//2.16.840.1.101.2.1.12.0.2.0.0 SDN.700 INFOSEC test objects tsp2TagSetZero -static const unsigned char cvOID_tsp2TagSetZero [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x0C, 0x00, 0x02, 0x00, 0x00}; -//2.16.840.1.101.2.1.12.0.2.0.1 SDN.700 INFOSEC test objects tsp2TagSetOne -static const unsigned char cvOID_tsp2TagSetOne [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x0C, 0x00, 0x02, 0x00, 0x01}; -//2.16.840.1.101.2.1.12.0.2.0.2 SDN.700 INFOSEC test objects tsp2TagSetTwo -static const unsigned char cvOID_tsp2TagSetTwo [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x0C, 0x00, 0x02, 0x00, 0x02}; -//2.16.840.1.101.2.1.12.0.3 SDN.700 INFOSEC test objects kafka -static const unsigned char cvOID_kafka [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x0C, 0x00, 0x03}; -//2.16.840.1.101.2.1.12.0.3.0 SDN.700 INFOSEC test objects kafkaSecurityCategories -static const unsigned char cvOID_kafkaSecurityCategories [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x0C, 0x00, 0x03, 0x00}; -//2.16.840.1.101.2.1.12.0.3.0.1 SDN.700 INFOSEC test objects kafkaTagSetName1 -static const unsigned char cvOID_kafkaTagSetName1 [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x0C, 0x00, 0x03, 0x00, 0x01}; -//2.16.840.1.101.2.1.12.0.3.0.2 SDN.700 INFOSEC test objects kafkaTagSetName2 -static const unsigned char cvOID_kafkaTagSetName2 [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x0C, 0x00, 0x03, 0x00, 0x02}; -//2.16.840.1.101.2.1.12.0.3.0.3 SDN.700 INFOSEC test objects kafkaTagSetName3 -static const unsigned char cvOID_kafkaTagSetName3 [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x0C, 0x00, 0x03, 0x00, 0x03}; -//2.16.840.1.101.2.1.12.1.1 SDN.700 INFOSEC test objects tcp1 -static const unsigned char cvOID_tcp1 [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x0C, 0x01, 0x01}; -//2.16.840.1.101.3.1 CSOR GAK slabel -static const unsigned char cvOID_slabel [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x03, 0x01}; -//2.16.840.1.101.3.2 CSOR GAK pki -static const unsigned char cvOID_pki [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x03, 0x02}; -//2.16.840.1.101.3.2.1 CSOR GAK policy GAK policyIdentifier -static const unsigned char cvOID_GAK_policyIdentifier [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x03, 0x02, 0x01}; -//2.16.840.1.101.3.2.2 CSOR GAK extended key usage GAK -static const unsigned char cvOID_GAK [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x03, 0x02, 0x02}; -//2.16.840.1.101.3.2.2.1 CSOR GAK extended key usage kRAKey -static const unsigned char cvOID_kRAKey [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x03, 0x02, 0x02, 0x01}; -//2.16.840.1.101.3.2.3 CSOR GAK extensions extensions -static const unsigned char cvOID_extensions [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x03, 0x02, 0x03}; -//2.16.840.1.101.3.2.3.1 CSOR GAK extensions kRTechnique -static const unsigned char cvOID_kRTechnique [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x03, 0x02, 0x03, 0x01}; -//2.16.840.1.101.3.2.3.2 CSOR GAK extensions kRecoveryCapable -static const unsigned char cvOID_kRecoveryCapable [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x03, 0x02, 0x03, 0x02}; -//2.16.840.1.101.3.2.3.3 CSOR GAK extensions kR -static const unsigned char cvOID_kR [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x03, 0x02, 0x03, 0x03}; -//2.16.840.1.101.3.2.4 CSOR GAK keyrecoveryschemes -static const unsigned char cvOID_keyrecoveryschemes [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x03, 0x02, 0x04}; -//2.16.840.1.101.3.2.5 CSOR GAK krapola -static const unsigned char cvOID_krapola [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x03, 0x02, 0x05}; -//2.16.840.1.101.3.3 CSOR GAK arpa -static const unsigned char cvOID_arpa [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x03, 0x03}; -//2.16.840.1.113719.1.9 Novell pki -static const unsigned char cvOID_pki_Novell [] = { 0x60, 0x86, 0x48, 0x01, 0x86, 0xF8, 0x37, 0x01, 0x09}; -//2.16.840.1.113719.1.9.4 Novell PKI pkiAttributeType -static const unsigned char cvOID_pkiAttributeType [] = { 0x60, 0x86, 0x48, 0x01, 0x86, 0xF8, 0x37, 0x01, 0x09, 0x04}; -//2.16.840.1.113719.1.9.4.1 Novell PKI attribute type registeredAttributes -static const unsigned char cvOID_registeredAttributes [] = { 0x60, 0x86, 0x48, 0x01, 0x86, 0xF8, 0x37, 0x01, 0x09, 0x04, 0x01}; -//2.16.840.1.113719.1.9.4.2 Novell PKI attribute type relianceLimit -static const unsigned char cvOID_relianceLimit [] = { 0x60, 0x86, 0x48, 0x01, 0x86, 0xF8, 0x37, 0x01, 0x09, 0x04, 0x02}; -//2.16.840.1.113730.1 Netscape cert-extension -static const unsigned char cvOID_cert_extension [] = { 0x60, 0x86, 0x48, 0x01, 0x86, 0xF8, 0x42, 0x01}; -//2.16.840.1.113730.1.1 Netscape certificate extension netscape-cert-type -static const unsigned char cvOID_netscape_cert_type [] = { 0x60, 0x86, 0x48, 0x01, 0x86, 0xF8, 0x42, 0x01, 0x01}; -//2.16.840.1.113730.1.2 Netscape certificate extension netscape-base-url -static const unsigned char cvOID_netscape_base_url [] = { 0x60, 0x86, 0x48, 0x01, 0x86, 0xF8, 0x42, 0x01, 0x02}; -//2.16.840.1.113730.1.3 Netscape certificate extension netscape-revocation-url -static const unsigned char cvOID_netscape_revocation_url [] = { 0x60, 0x86, 0x48, 0x01, 0x86, 0xF8, 0x42, 0x01, 0x03}; -//2.16.840.1.113730.1.4 Netscape certificate extension netscape-ca-revocation-url -static const unsigned char cvOID_netscape_ca_revocation_url [] = { 0x60, 0x86, 0x48, 0x01, 0x86, 0xF8, 0x42, 0x01, 0x04}; -//2.16.840.1.113730.1.7 Netscape certificate extension netscape-cert-renewal-url -static const unsigned char cvOID_netscape_cert_renewal_url [] = { 0x60, 0x86, 0x48, 0x01, 0x86, 0xF8, 0x42, 0x01, 0x07}; -//2.16.840.1.113730.1.8 Netscape certificate extension netscape-ca-policy-url -static const unsigned char cvOID_netscape_ca_policy_url [] = { 0x60, 0x86, 0x48, 0x01, 0x86, 0xF8, 0x42, 0x01, 0x08}; -//2.16.840.1.113730.1.9 Netscape certificate extension HomePage-url -static const unsigned char cvOID_HomePage_url [] = { 0x60, 0x86, 0x48, 0x01, 0x86, 0xF8, 0x42, 0x01, 0x09}; -//2.16.840.1.113730.1.10 Netscape certificate extension EntityLogo -static const unsigned char cvOID_EntityLogo [] = { 0x60, 0x86, 0x48, 0x01, 0x86, 0xF8, 0x42, 0x01, 0x0A}; -//2.16.840.1.113730.1.11 Netscape certificate extension UserPicture -static const unsigned char cvOID_UserPicture [] = { 0x60, 0x86, 0x48, 0x01, 0x86, 0xF8, 0x42, 0x01, 0x0B}; -//2.16.840.1.113730.1.12 Netscape certificate extension netscape-ssl-server-name -static const unsigned char cvOID_netscape_ssl_server_name [] = { 0x60, 0x86, 0x48, 0x01, 0x86, 0xF8, 0x42, 0x01, 0x0C}; -//2.16.840.1.113730.1.13 Netscape certificate extension netscape-comment -static const unsigned char cvOID_netscape_comment [] = { 0x60, 0x86, 0x48, 0x01, 0x86, 0xF8, 0x42, 0x01, 0x0D}; -//2.16.840.1.113730.2 Netscape data-type -static const unsigned char cvOID_data_type [] = { 0x60, 0x86, 0x48, 0x01, 0x86, 0xF8, 0x42, 0x02}; -//2.16.840.1.113730.2.1 Netscape data type dataGIF -static const unsigned char cvOID_dataGIF [] = { 0x60, 0x86, 0x48, 0x01, 0x86, 0xF8, 0x42, 0x02, 0x01}; -//2.16.840.1.113730.2.2 Netscape data type dataJPEG -static const unsigned char cvOID_dataJPEG [] = { 0x60, 0x86, 0x48, 0x01, 0x86, 0xF8, 0x42, 0x02, 0x02}; -//2.16.840.1.113730.2.3 Netscape data type dataURL -static const unsigned char cvOID_dataURL [] = { 0x60, 0x86, 0x48, 0x01, 0x86, 0xF8, 0x42, 0x02, 0x03}; -//2.16.840.1.113730.2.4 Netscape data type dataHTML -static const unsigned char cvOID_dataHTML [] = { 0x60, 0x86, 0x48, 0x01, 0x86, 0xF8, 0x42, 0x02, 0x04}; -//2.16.840.1.113730.2.5 Netscape data type certSequence -static const unsigned char cvOID_certSequence [] = { 0x60, 0x86, 0x48, 0x01, 0x86, 0xF8, 0x42, 0x02, 0x05}; -//2.16.840.1.113730.2.6 Netscape certificate extension certURL -static const unsigned char cvOID_certURL [] = { 0x60, 0x86, 0x48, 0x01, 0x86, 0xF8, 0x42, 0x02, 0x06}; -//2.16.840.1.113730.3 Netscape directory -static const unsigned char cvOID_directory [] = { 0x60, 0x86, 0x48, 0x01, 0x86, 0xF8, 0x42, 0x03}; -//2.16.840.1.113730.3.1 Netscape directory ldapDefinitions -static const unsigned char cvOID_ldapDefinitions [] = { 0x60, 0x86, 0x48, 0x01, 0x86, 0xF8, 0x42, 0x03, 0x01}; -//2.16.840.1.113730.3.1.1 Netscape LDAP definitions carLicense -static const unsigned char cvOID_carLicense [] = { 0x60, 0x86, 0x48, 0x01, 0x86, 0xF8, 0x42, 0x03, 0x01, 0x01}; -//2.16.840.1.113730.3.1.2 Netscape LDAP definitions departmentNumber -static const unsigned char cvOID_departmentNumber [] = { 0x60, 0x86, 0x48, 0x01, 0x86, 0xF8, 0x42, 0x03, 0x01, 0x02}; -//2.16.840.1.113730.3.1.3 Netscape LDAP definitions employeeNumber -static const unsigned char cvOID_employeeNumber [] = { 0x60, 0x86, 0x48, 0x01, 0x86, 0xF8, 0x42, 0x03, 0x01, 0x03}; -//2.16.840.1.113730.3.1.4 Netscape LDAP definitions employeeType -static const unsigned char cvOID_employeeType [] = { 0x60, 0x86, 0x48, 0x01, 0x86, 0xF8, 0x42, 0x03, 0x01, 0x04}; -//2.16.840.1.113730.3.2.2 Netscape LDAP definitions inetOrgPerson -static const unsigned char cvOID_inetOrgPerson [] = { 0x60, 0x86, 0x48, 0x01, 0x86, 0xF8, 0x42, 0x03, 0x02, 0x02}; -//2.16.840.1.113730.4.1 Netscape serverGatedCrypto -static const unsigned char cvOID_serverGatedCrypto_Netscape [] = { 0x60, 0x86, 0x48, 0x01, 0x86, 0xF8, 0x42, 0x04, 0x01}; -//2.16.840.1.113733.1.6.3 Verisign Unknown Verisign extension -static const unsigned char cvOID_Unknown_Verisign_extension_1 [] = { 0x60, 0x86, 0x48, 0x01, 0x86, 0xF8, 0x45, 0x01, 0x06, 0x03}; -//2.16.840.1.113733.1.6.6 Verisign Unknown Verisign extension -static const unsigned char cvOID_Unknown_Verisign_extension_2 [] = { 0x60, 0x86, 0x48, 0x01, 0x86, 0xF8, 0x45, 0x01, 0x06, 0x06}; -//2.16.840.1.113733.1.7.1.1 Verisign Verisign certificatePolicy -static const unsigned char cvOID_Verisign_certificatePolicy [] = { 0x60, 0x86, 0x48, 0x01, 0x86, 0xF8, 0x45, 0x01, 0x07, 0x01, 0x01}; -//2.16.840.1.113733.1.7.1.1.1 Verisign Unknown Verisign policy qualifier -static const unsigned char cvOID_Unknown_Verisign_policy_qualifier_1 [] = { 0x60, 0x86, 0x48, 0x01, 0x86, 0xF8, 0x45, 0x01, 0x07, 0x01, 0x01, 0x01}; -//2.16.840.1.113733.1.7.1.1.2 Verisign Unknown Verisign policy qualifier -static const unsigned char cvOID_Unknown_Verisign_policy_qualifier_2 [] = { 0x60, 0x86, 0x48, 0x01, 0x86, 0xF8, 0x45, 0x01, 0x07, 0x01, 0x01, 0x02}; -//2.16.840.1.113733.1.8.1 Verisign Verisign SGC CA? -static const unsigned char cvOID_Verisign_SGC_CA [] = { 0x60, 0x86, 0x48, 0x01, 0x86, 0xF8, 0x45, 0x01, 0x08, 0x01}; -//2.23.42.0 SET contentType -static const unsigned char cvOID_contentType_SET [] = { 0x67, 0x2A, 0x00}; -//2.23.42.0.0 SET contentType PANData -static const unsigned char cvOID_PANData [] = { 0x67, 0x2A, 0x00, 0x00}; -//2.23.42.0.1 SET contentType PANToken -static const unsigned char cvOID_PANToken [] = { 0x67, 0x2A, 0x00, 0x01}; -//2.23.42.0.2 SET contentType PANOnly -static const unsigned char cvOID_PANOnly [] = { 0x67, 0x2A, 0x00, 0x02}; -//2.23.42.1 SET msgExt -static const unsigned char cvOID_msgExt [] = { 0x67, 0x2A, 0x01}; -//2.23.42.2 SET field -static const unsigned char cvOID_field [] = { 0x67, 0x2A, 0x02}; -//2.23.42.2.0 SET field fullName -static const unsigned char cvOID_fullName [] = { 0x67, 0x2A, 0x02, 0x00}; -//2.23.42.2.1 SET field givenName -static const unsigned char cvOID_givenName_SET [] = { 0x67, 0x2A, 0x02, 0x01}; -//2.23.42.2.2 SET field familyName -static const unsigned char cvOID_familyName [] = { 0x67, 0x2A, 0x02, 0x02}; -//2.23.42.2.3 SET field birthFamilyName -static const unsigned char cvOID_birthFamilyName [] = { 0x67, 0x2A, 0x02, 0x03}; -//2.23.42.2.4 SET field placeName -static const unsigned char cvOID_placeName [] = { 0x67, 0x2A, 0x02, 0x04}; -//2.23.42.2.5 SET field identificationNumber -static const unsigned char cvOID_identificationNumber [] = { 0x67, 0x2A, 0x02, 0x05}; -//2.23.42.2.6 SET field month -static const unsigned char cvOID_month [] = { 0x67, 0x2A, 0x02, 0x06}; -//2.23.42.2.7 SET field date -static const unsigned char cvOID_date [] = { 0x67, 0x2A, 0x02, 0x07}; -//2.23.42.2.8 SET field address -static const unsigned char cvOID_address [] = { 0x67, 0x2A, 0x02, 0x08}; -//2.23.42.2.9 SET field telephone -static const unsigned char cvOID_telephone [] = { 0x67, 0x2A, 0x02, 0x09}; -//2.23.42.2.10 SET field amount -static const unsigned char cvOID_amount [] = { 0x67, 0x2A, 0x02, 0x0A}; -//2.23.42.2.7.11 SET field accountNumber -static const unsigned char cvOID_accountNumber [] = { 0x67, 0x2A, 0x02, 0x0B}; -//2.23.42.2.7.12 SET field passPhrase -static const unsigned char cvOID_passPhrase [] = { 0x67, 0x2A, 0x02, 0x0C}; -//2.23.42.3 SET attribute -static const unsigned char cvOID_attribute_SET [] = { 0x67, 0x2A, 0x03}; -//2.23.42.3.0 SET attribute cert -static const unsigned char cvOID_cert_SET [] = { 0x67, 0x2A, 0x03, 0x00}; -//2.23.42.3.0.0 SET cert attribute rootKeyThumb -static const unsigned char cvOID_rootKeyThumb [] = { 0x67, 0x2A, 0x03, 0x00, 0x00}; -//2.23.42.3.0.1 SET cert attribute additionalPolicy -static const unsigned char cvOID_additionalPolicy [] = { 0x67, 0x2A, 0x03, 0x00, 0x01}; -//2.23.42.4 SET algorithm -static const unsigned char cvOID_algorithm_SET [] = { 0x67, 0x2A, 0x04}; -//2.23.42.5 SET policy -static const unsigned char cvOID_policy_SET [] = { 0x67, 0x2A, 0x05}; -//2.23.42.5.0 SET policy root -static const unsigned char cvOID_root [] = { 0x67, 0x2A, 0x05, 0x00}; -//2.23.42.6 SET module -static const unsigned char cvOID_module_SET [] = { 0x67, 0x2A, 0x06}; -//2.23.42.7 SET certExt -static const unsigned char cvOID_certExt [] = { 0x67, 0x2A, 0x07}; -//2.23.42.7.0 SET cert extension hashedRootKey -static const unsigned char cvOID_hashedRootKey [] = { 0x67, 0x2A, 0x07, 0x00}; -//2.23.42.7.1 SET cert extension certificateType -static const unsigned char cvOID_certificateType_SET [] = { 0x67, 0x2A, 0x07, 0x01}; -//2.23.42.7.2 SET cert extension merchantData -static const unsigned char cvOID_merchantData [] = { 0x67, 0x2A, 0x07, 0x02}; -//2.23.42.7.3 SET cert extension cardCertRequired -static const unsigned char cvOID_cardCertRequired [] = { 0x67, 0x2A, 0x07, 0x03}; -//2.23.42.7.4 SET cert extension tunneling -static const unsigned char cvOID_tunneling [] = { 0x67, 0x2A, 0x07, 0x04}; -//2.23.42.7.5 SET cert extension setExtensions -static const unsigned char cvOID_setExtensions [] = { 0x67, 0x2A, 0x07, 0x05}; -//2.23.42.7.6 SET cert extension setQualifier -static const unsigned char cvOID_setQualifier [] = { 0x67, 0x2A, 0x07, 0x06}; -//2.23.42.8 SET brand -static const unsigned char cvOID_brand [] = { 0x67, 0x2A, 0x08}; -//2.23.42.8.1 SET brand IATA-ATA -static const unsigned char cvOID_IATA_ATA [] = { 0x67, 0x2A, 0x08, 0x01}; -//2.23.42.8.4 SET brand VISA -static const unsigned char cvOID_VISA [] = { 0x67, 0x2A, 0x08, 0x04}; -//2.23.42.8.5 SET brand MasterCard -static const unsigned char cvOID_MasterCard [] = { 0x67, 0x2A, 0x08, 0x05}; -//2.23.42.8.30 SET brand Diners -static const unsigned char cvOID_Diners [] = { 0x67, 0x2A, 0x08, 0x1E}; -//2.23.42.8.34 SET brand AmericanExpress -static const unsigned char cvOID_AmericanExpress [] = { 0x67, 0x2A, 0x08, 0x22}; -//2.23.42.8.6011 SET brand Novus -static const unsigned char cvOID_Novus [] = { 0x67, 0x2A, 0x08, 0xAE, 0x7B}; -//2.23.42.9 SET vendor -static const unsigned char cvOID_vendor [] = { 0x67, 0x2A, 0x09}; -//2.23.42.9.0 SET vendor GlobeSet -static const unsigned char cvOID_GlobeSet [] = { 0x67, 0x2A, 0x09, 0x00}; -//2.23.42.9.1 SET vendor IBM -static const unsigned char cvOID_IBM [] = { 0x67, 0x2A, 0x09, 0x01}; -//2.23.42.9.2 SET vendor CyberCash -static const unsigned char cvOID_CyberCash [] = { 0x67, 0x2A, 0x09, 0x02}; -//2.23.42.9.3 SET vendor Terisa -static const unsigned char cvOID_Terisa [] = { 0x67, 0x2A, 0x09, 0x03}; -//2.23.42.9.4 SET vendor RSADSI -static const unsigned char cvOID_RSADSI [] = { 0x67, 0x2A, 0x09, 0x04}; -//2.23.42.9.5 SET vendor VeriFone -static const unsigned char cvOID_VeriFone [] = { 0x67, 0x2A, 0x09, 0x05}; -//2.23.42.9.6 SET vendor TrinTech -static const unsigned char cvOID_TrinTech [] = { 0x67, 0x2A, 0x09, 0x06}; -//2.23.42.9.7 SET vendor BankGate -static const unsigned char cvOID_BankGate [] = { 0x67, 0x2A, 0x09, 0x07}; -//2.23.42.9.8 SET vendor GTE -static const unsigned char cvOID_GTE [] = { 0x67, 0x2A, 0x09, 0x08}; -//2.23.42.9.9 SET vendor CompuSource -static const unsigned char cvOID_CompuSource [] = { 0x67, 0x2A, 0x09, 0x09}; -//2.23.42.9.10 SET vendor Griffin -static const unsigned char cvOID_Griffin [] = { 0x67, 0x2A, 0x09, 0x0A}; -//2.23.42.9.11 SET vendor Certicom -static const unsigned char cvOID_Certicom [] = { 0x67, 0x2A, 0x09, 0x0B}; -//2.23.42.9.12 SET vendor OSS -static const unsigned char cvOID_OSS [] = { 0x67, 0x2A, 0x09, 0x0C}; -//2.23.42.9.13 SET vendor TenthMountain -static const unsigned char cvOID_TenthMountain [] = { 0x67, 0x2A, 0x09, 0x0D}; -//2.23.42.9.14 SET vendor Antares -static const unsigned char cvOID_Antares [] = { 0x67, 0x2A, 0x09, 0x0E}; -//2.23.42.9.15 SET vendor ECC -static const unsigned char cvOID_ECC [] = { 0x67, 0x2A, 0x09, 0x0F}; -//2.23.42.9.16 SET vendor Maithean -static const unsigned char cvOID_Maithean [] = { 0x67, 0x2A, 0x09, 0x10}; -//2.23.42.9.17 SET vendor Netscape -static const unsigned char cvOID_Netscape [] = { 0x67, 0x2A, 0x09, 0x11}; -//2.23.42.9.18 SET vendor Verisign -static const unsigned char cvOID_Verisign [] = { 0x67, 0x2A, 0x09, 0x12}; -//2.23.42.9.19 SET vendor BlueMoney -static const unsigned char cvOID_BlueMoney [] = { 0x67, 0x2A, 0x09, 0x13}; -//2.23.42.9.20 SET vendor Lacerte -static const unsigned char cvOID_Lacerte [] = { 0x67, 0x2A, 0x09, 0x14}; -//2.23.42.9.21 SET vendor Fujitsu -static const unsigned char cvOID_Fujitsu [] = { 0x67, 0x2A, 0x09, 0x15}; -//2.23.42.9.22 SET vendor eLab -static const unsigned char cvOID_eLab [] = { 0x67, 0x2A, 0x09, 0x16}; -//2.23.42.9.23 SET vendor Entrust -static const unsigned char cvOID_Entrust [] = { 0x67, 0x2A, 0x09, 0x17}; -//2.23.42.9.24 SET vendor VIAnet -static const unsigned char cvOID_VIAnet [] = { 0x67, 0x2A, 0x09, 0x18}; -//2.23.42.9.25 SET vendor III -static const unsigned char cvOID_III [] = { 0x67, 0x2A, 0x09, 0x19}; -//2.23.42.9.26 SET vendor OpenMarket -static const unsigned char cvOID_OpenMarket [] = { 0x67, 0x2A, 0x09, 0x1A}; -//2.23.42.9.27 SET vendor Lexem -static const unsigned char cvOID_Lexem [] = { 0x67, 0x2A, 0x09, 0x1B}; -//2.23.42.9.28 SET vendor Intertrader -static const unsigned char cvOID_Intertrader [] = { 0x67, 0x2A, 0x09, 0x1C}; -//2.23.42.9.29 SET vendor Persimmon -static const unsigned char cvOID_Persimmon [] = { 0x67, 0x2A, 0x09, 0x1D}; -//2.23.42.9.30 SET vendor NABLE -static const unsigned char cvOID_NABLE [] = { 0x67, 0x2A, 0x09, 0x1E}; -//2.23.42.9.31 SET vendor espace-net -static const unsigned char cvOID_espace_net [] = { 0x67, 0x2A, 0x09, 0x1F}; -//2.23.42.9.32 SET vendor Hitachi -static const unsigned char cvOID_Hitachi [] = { 0x67, 0x2A, 0x09, 0x20}; -//2.23.42.9.33 SET vendor Microsoft -static const unsigned char cvOID_Microsoft [] = { 0x67, 0x2A, 0x09, 0x21}; -//2.23.42.9.34 SET vendor NEC -static const unsigned char cvOID_NEC [] = { 0x67, 0x2A, 0x09, 0x22}; -//2.23.42.9.35 SET vendor Mitsubishi -static const unsigned char cvOID_Mitsubishi [] = { 0x67, 0x2A, 0x09, 0x23}; -//2.23.42.9.36 SET vendor NCR -static const unsigned char cvOID_NCR [] = { 0x67, 0x2A, 0x09, 0x24}; -//2.23.42.9.37 SET vendor e-COMM -static const unsigned char cvOID_e_COMM [] = { 0x67, 0x2A, 0x09, 0x25}; -//2.23.42.9.38 SET vendor Gemplus -static const unsigned char cvOID_Gemplus [] = { 0x67, 0x2A, 0x09, 0x26}; -//2.23.42.10 SET national -static const unsigned char cvOID_national [] = { 0x67, 0x2A, 0x0A}; -//2.23.42.10.192 SET national Japan -static const unsigned char cvOID_Japan [] = { 0x67, 0x2A, 0x0A, 0x81, 0x40}; -//2.54.1775.2 SET. Deprecated, use (2 23 42 7 0) instead hashedRootKey -static const unsigned char cvOID_hashedRootKey_old [] = { 0x86, 0x8D, 0x6F, 0x02}; -//2.54.1775.3 SET. Deprecated, use (2 23 42 7 0) instead certificateType -static const unsigned char cvOID_certificateType_old [] = { 0x86, 0x8D, 0x6F, 0x03}; -//2.54.1775.4 SET. Deprecated, use (2 23 42 7 0) instead merchantData -static const unsigned char cvOID_merchantData_old [] = { 0x86, 0x8D, 0x6F, 0x04}; -//2.54.1775.5 SET. Deprecated, use (2 23 42 7 0) instead cardCertRequired -static const unsigned char cvOID_cardCertRequired_old [] = { 0x86, 0x8D, 0x6F, 0x05}; -//2.54.1775.6 SET. Deprecated, use (2 23 42 7 0) instead tunneling -static const unsigned char cvOID_tunneling_old [] = { 0x86, 0x8D, 0x6F, 0x06}; -//2.54.1775.7 SET. Deprecated, use (2 23 42 7 0) instead setQualifier -static const unsigned char cvOID_setQualifier_old [] = { 0x86, 0x8D, 0x6F, 0x07}; -//2.54.1775.99 SET. Deprecated, use (2 23 42 7 0) instead set-data -static const unsigned char cvOID_set_data_old [] = { 0x86, 0x8D, 0x6F, 0x63}; - -#ifdef _MSC_VER -#pragma warning(default : 4305) -#pragma warning(default : 4309) -#endif - -#endif - diff --git a/actlibrary/MacOSX-10.5-x86_64/Release/include/actPKCS15BehaviorKit.h b/actlibrary/MacOSX-10.5-x86_64/Release/include/actPKCS15BehaviorKit.h deleted file mode 100644 index cdac8da..0000000 --- a/actlibrary/MacOSX-10.5-x86_64/Release/include/actPKCS15BehaviorKit.h +++ /dev/null @@ -1,43 +0,0 @@ -// --------------------------------------------------------------------------- -// Name: actPKCS15BehaviorKit.h -// Product: cv act library -// Purpose: Factory functions to create specific PKCS15Behavior objects. -// -// Copyright: (c) 2008 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -// -// Autor: Markus Tesche -// Date: 06/02/2008 -// --------------------------------------------------------------------------- - -#ifndef ACT_PKCS15BehaviorKit_h -#define ACT_PKCS15BehaviorKit_h - -#include - -namespace act -{ - class IToken; - class IPKCS15Behavior; - - // default behavior, does nothing - IPKCS15Behavior* CreatePKCS15Behavior(const char* mid, IToken* token); - - // specialized behavior - IPKCS15Behavior* CreateSafeSignBehavior(const char* mid, IToken* token); - IPKCS15Behavior* CreateStarSignBehavior(const char* mid, IToken* token); - IPKCS15Behavior* CreateJCPKCS15Behavior(const char* mid, IToken* token); - IPKCS15Behavior* CreateJCPKCS15mEACBehavior(const char* mid, IToken* token); - IPKCS15Behavior* CreateHiPathBehavior(const char* mid, IToken* token); - IPKCS15Behavior* CreateV4PKCS15Behavior(const char* mid, IToken* token); - IPKCS15Behavior* CreateACOSPKCS15Behavior(const char* mid, IToken* token); - IPKCS15Behavior* CreateStarCOSPKCS15Behavior(const char* mid, IToken* token); - IPKCS15Behavior* CreateNexusBehavior(const char* mid, IToken* token); - IPKCS15Behavior* CreateVWBehavior(const char* mid, IToken* token); // Nexus derived - IPKCS15Behavior* CreateDTRUSTBehavior(const char* mid, IToken* token); // Nexus derived - -} // namespace act - -#endif // ACT_PKCS15BehaviorKit_h diff --git a/actlibrary/MacOSX-10.5-x86_64/Release/include/actPKCS15BehaviorReg.h b/actlibrary/MacOSX-10.5-x86_64/Release/include/actPKCS15BehaviorReg.h deleted file mode 100644 index 56f39a2..0000000 --- a/actlibrary/MacOSX-10.5-x86_64/Release/include/actPKCS15BehaviorReg.h +++ /dev/null @@ -1,34 +0,0 @@ -// --------------------------------------------------------------------------- -// Name: actPKCS15BehaviorReg.h -// Product: cv act library -// Purpose: Registry for factory functions to create specific PKCS15Behavior objects. -// -// Copyright: (c) 2008 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -// -// Autor: Markus Tesche -// Date: 06/02/2008 -// --------------------------------------------------------------------------- - -#ifndef ACT_PKCS15BehaviorReg_h -#define ACT_PKCS15BehaviorReg_h - -#include "actFactoryReg.h" - -namespace act -{ - class IToken; - class IPKCS15Behavior; - - typedef IPKCS15Behavior* (*CreatePKCS15BehaviorPtr)(const char* mid, IToken* token); - typedef FactoryMapEntry PKCS15BehaviorMapEntry; - - typedef FactoryReg - < IPKCS15Behavior, CreatePKCS15BehaviorPtr, PKCS15BehaviorMapEntry - > PKCS15BehaviorReg; - -} // namespace act - -#endif // ACT_PKCS15BehaviorReg_h diff --git a/actlibrary/MacOSX-10.5-x86_64/Release/include/actPaddingKit.h b/actlibrary/MacOSX-10.5-x86_64/Release/include/actPaddingKit.h deleted file mode 100644 index 01fb93e..0000000 --- a/actlibrary/MacOSX-10.5-x86_64/Release/include/actPaddingKit.h +++ /dev/null @@ -1,26 +0,0 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actPaddingKit.h -// Product: cv act library -// Purpose: declaration of all factory functions -// -// Copyright: (c) 2000 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_PaddingKit_h -#define ACT_PaddingKit_h - -namespace act -{ - class IPadding; - - IPadding* CreatePKCS5Pad(); - IPadding* CreatePKCS1V1_5EMEPad(); - IPadding* CreateOneAndZerosPad(); - IPadding* CreateISO9796Pad(); - IPadding* CreateNoPad(); -} -#endif - diff --git a/actlibrary/MacOSX-10.5-x86_64/Release/include/actProfileGeneratorKit.h b/actlibrary/MacOSX-10.5-x86_64/Release/include/actProfileGeneratorKit.h deleted file mode 100644 index 1992c43..0000000 --- a/actlibrary/MacOSX-10.5-x86_64/Release/include/actProfileGeneratorKit.h +++ /dev/null @@ -1,26 +0,0 @@ -// --------------------------------------------------------------------------- -// Name: actProfileGeneratorKit.h -// Product: cv act library -// Purpose: Factory functions for smartcard profile generators. -// -// Copyright: (c) 2009 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -// -// Autor: Markus Tesche -// Date: 12/18/2009 -// --------------------------------------------------------------------------- - -#ifndef ACT_ProfileGeneratorKit_h -#define ACT_ProfileGeneratorKit_h - -namespace act -{ - class IProfileGenerator; - - IProfileGenerator* CreateJCPKCS15Generator(const char* name); - -} // namespace act - -#endif // ACT_ProfileGeneratorKit_h diff --git a/actlibrary/MacOSX-10.5-x86_64/Release/include/actProfileGeneratorReg.h b/actlibrary/MacOSX-10.5-x86_64/Release/include/actProfileGeneratorReg.h deleted file mode 100644 index 0a8f6be..0000000 --- a/actlibrary/MacOSX-10.5-x86_64/Release/include/actProfileGeneratorReg.h +++ /dev/null @@ -1,33 +0,0 @@ -// --------------------------------------------------------------------------- -// Name: actProfileGeneratorReg.h -// Product: cv act library -// Purpose: factory functions registry to create IProfileGenerator objects. -// -// Copyright: (c) 2009 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -// -// Autor: Markus Tesche -// Date: 12/18/2009 -// --------------------------------------------------------------------------- - -#ifndef ACT_ProfileGeneratorReg_h -#define ACT_ProfileGeneratorReg_h - -#include "actFactoryReg.h" - -namespace act -{ - class IProfileGenerator; - - typedef IProfileGenerator* (*CreateProfileGeneratorPtr)(const char*); - typedef FactoryMapEntry ProfileGeneratorMapEntry; - - typedef FactoryReg - < IProfileGenerator, CreateProfileGeneratorPtr, ProfileGeneratorMapEntry - > ProfileGeneratorReg; - -} // namespace act - -#endif // ACT_ProfileGeneratorReg_h diff --git a/actlibrary/MacOSX-10.5-x86_64/Release/include/actRNGKit.h b/actlibrary/MacOSX-10.5-x86_64/Release/include/actRNGKit.h deleted file mode 100644 index 6a8b886..0000000 --- a/actlibrary/MacOSX-10.5-x86_64/Release/include/actRNGKit.h +++ /dev/null @@ -1,44 +0,0 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actRNGKit.h -// Product: cv act library -// Purpose: declaration of all factory functions -// -// Copyright: (c) 2010 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_RNGKit_h -#define ACT_RNGKit_h -namespace act -{ - class IRNGAlg; - - // Dummy PRNG (uses rand() / srand(time(0))) - IRNGAlg* CreateDummyPRNG(); - - // Deterministic PRNGs - IRNGAlg* CreateARC4RNG(); - IRNGAlg* CreateBBS(); - IRNGAlg* CreateFIPS186(); - IRNGAlg* CreateFIPS186DES(); - IRNGAlg* CreateLCG(); - - // AIS 20, K1 - K4 evaluated deterministic PRNG - IRNGAlg* CreateFIPS186K4(); - - // 'True' RNGs - IRNGAlg* CreateDevRandomRNG(); -#ifndef UNDER_CE_30 - IRNGAlg* CreateWinRNG(); -#endif - - // Token RNG (uses IToken::GetRandom()) -#ifndef NO_SMARTCARD - IRNGAlg* CreateTokenRNG(); -#endif -} - -#endif - diff --git a/actlibrary/MacOSX-10.5-x86_64/Release/include/actSCardLock.h b/actlibrary/MacOSX-10.5-x86_64/Release/include/actSCardLock.h deleted file mode 100644 index 3bc753e..0000000 --- a/actlibrary/MacOSX-10.5-x86_64/Release/include/actSCardLock.h +++ /dev/null @@ -1,51 +0,0 @@ -// --------------------------------------------------------------------------- -// Name: actSCardLock.h -// Product: cv act library -// Purpose: Smartcard transaction lock -// -// Copyright: (c) 2009 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -// -// Autor: Markus Tesche -// Date: 07/10/2009 -// --------------------------------------------------------------------------- - -#ifndef ACT_SCardLock_H -#define ACT_SCardLock_H - -#include "actEnv.h" - -#if defined(ACT_64) -# define LOCK_SIZE 32 -#else -# define LOCK_SIZE 16 -#endif - -namespace act -{ - class ISCardOS; - - class SCardLock - { - private: - SCardLock() { } - SCardLock(const SCardLock&) { } - - public: - SCardLock(ISCardOS* os); - ~SCardLock(); - - void Lock(ISCardOS* os); - void Unlock(); - - private: - byte m_lock[LOCK_SIZE]; - }; - -} // namespace act - -#undef LOCK_SIZE - -#endif // ACT_SCardLock_H diff --git a/actlibrary/MacOSX-10.5-x86_64/Release/include/actSCardOSKit.h b/actlibrary/MacOSX-10.5-x86_64/Release/include/actSCardOSKit.h deleted file mode 100644 index 79ae7b0..0000000 --- a/actlibrary/MacOSX-10.5-x86_64/Release/include/actSCardOSKit.h +++ /dev/null @@ -1,170 +0,0 @@ -// --------------------------------------------------------------------------- -// Name: actSCardOSKit.h -// Product: cv act library -// Purpose: registry for factory functions to create SCardOS object -// -// Copyright: (c) 2002 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -// -// Autor: Dr. Xiangdong Wang (XWG) -// Date: 05/13/2002 -// --------------------------------------------------------------------------- - -#ifndef ACT_SCardOSKit_h -#define ACT_SCardOSKit_h - -namespace act -{ - class ISCardOS; - class ISCardAccess; - - /* - ISCardOS* CreateMicardOS(ISCardAccess*); - ISCardOS* CreateMicardo20E(ISCardAccess*); - ISCardOS* CreateMicardo23E(ISCardAccess* ac); - */ - - bool IsACOS(CreateSCardOSPtr ptr); - ISCardOS* CreateACOS_D01(ISCardAccess*); - ISCardOS* CreateACOS_A04(ISCardAccess*); - - bool IsCardOS_M4(CreateSCardOSPtr ptr); - ISCardOS* CreateCardOS_M4(ISCardAccess*); - ISCardOS* CreateCardOS_M4_MoC(ISCardAccess*); - - bool IsCardOS_M4_ECC(CreateSCardOSPtr ptr); - ISCardOS* CreateCardOS_M4_ECC(ISCardAccess*); - - bool IsCardOS_V4(CreateSCardOSPtr ptr); - ISCardOS* CreateCardOS_V4(ISCardAccess*); - - bool IsCardOS_V4_ECC(CreateSCardOSPtr ptr); - ISCardOS* CreateCardOS_V4_ECC(ISCardAccess*); - - bool IsStarCOS(CreateSCardOSPtr ptr); - ISCardOS* CreateStarCOS_3_0(ISCardAccess*); - ISCardOS* CreateStarCOS_3_2(ISCardAccess*); - - bool IsTCOS(CreateSCardOSPtr ptr); - ISCardOS* CreateTCOS_3_0(ISCardAccess*); - - bool IsJavaCardOS(CreateSCardOSPtr ptr); - ISCardOS* CreateJavaCardOS_2_2_2(ISCardAccess*); - ISCardOS* CreateJavaCardOS_2_2_1(ISCardAccess*); - ISCardOS* CreateJavaCardOS_2_2(ISCardAccess*); - ISCardOS* CreateJavaCardOS_2_1_2(ISCardAccess*); - ISCardOS* CreateJavaCardOS_2_1_1(ISCardAccess*); - ISCardOS* CreateJavaCardOS_2_1(ISCardAccess*); - - bool IsISO7816OS(CreateSCardOSPtr ptr); - ISCardOS* CreateISO7816OS(ISCardAccess*); - - // - // Passport OS - // --------------------------------------------------------------------------- - bool IsBACOS(CreateSCardOSPtr ptr); - ISCardOS* CreateBACOS(ISCardAccess* ac); - - bool IsEACOS(CreateSCardOSPtr ptr); - ISCardOS* CreateEACOS(ISCardAccess* ac); - - bool IsEACOS201(CreateSCardOSPtr ptr); - ISCardOS* CreateEACOS201(ISCardAccess* ac); - - bool IsEPAOS(CreateSCardOSPtr ptr); - ISCardOS* CreateEPAOS(ISCardAccess* ac); - - - // --------------------------------------------------------------------------- - inline bool IsACOS(CreateSCardOSPtr ptr) - { - return ptr == CreateACOS_D01 - || ptr == CreateACOS_A04; - } - - // --------------------------------------------------------------------------- - inline bool IsCardOS_M4(CreateSCardOSPtr ptr) - { - return ptr == CreateCardOS_M4 - || ptr == CreateCardOS_M4_MoC; - } - - // --------------------------------------------------------------------------- - inline bool IsCardOS_M4_ECC(CreateSCardOSPtr ptr) - { - return ptr == CreateCardOS_M4_ECC; - } - - // --------------------------------------------------------------------------- - inline bool IsCardOS_V4(CreateSCardOSPtr ptr) - { - return ptr == CreateCardOS_V4; - } - - // --------------------------------------------------------------------------- - inline bool IsCardOS_V4_ECC(CreateSCardOSPtr ptr) - { - return ptr == CreateCardOS_V4_ECC; - } - - // --------------------------------------------------------------------------- - inline bool IsStarCOS(CreateSCardOSPtr ptr) - { - return ptr == CreateStarCOS_3_0 - || ptr == CreateStarCOS_3_2; - } - - // --------------------------------------------------------------------------- - inline bool IsTCOS(CreateSCardOSPtr ptr) - { - return ptr == CreateTCOS_3_0; - } - - // --------------------------------------------------------------------------- - inline bool IsJavaCardOS(CreateSCardOSPtr ptr) - { - return ptr == CreateJavaCardOS_2_2_2 - || ptr == CreateJavaCardOS_2_2_1 - || ptr == CreateJavaCardOS_2_2 - || ptr == CreateJavaCardOS_2_1_2 - || ptr == CreateJavaCardOS_2_1_1 - || ptr == CreateJavaCardOS_2_1; - } - - // --------------------------------------------------------------------------- - inline bool IsISO7816OS(CreateSCardOSPtr ptr) - { - return ptr == CreateISO7816OS; - } - - // - // Passport OS - // --------------------------------------------------------------------------- - inline bool IsBACOS(CreateSCardOSPtr ptr) - { - return ptr == CreateBACOS; - } - - // --------------------------------------------------------------------------- - inline bool IsEACOS(CreateSCardOSPtr ptr) - { - return ptr == CreateEACOS; - } - - // --------------------------------------------------------------------------- - inline bool IsEACOS201(CreateSCardOSPtr ptr) - { - return ptr == CreateEACOS201; - } - - // --------------------------------------------------------------------------- - inline bool IsEPAOS(CreateSCardOSPtr ptr) - { - return ptr == CreateEPAOS; - } - -} // namespace act - -#endif // ACT_SCardOSKit_h diff --git a/actlibrary/MacOSX-10.5-x86_64/Release/include/actSCardTokenKit.h b/actlibrary/MacOSX-10.5-x86_64/Release/include/actSCardTokenKit.h deleted file mode 100644 index 90cb011..0000000 --- a/actlibrary/MacOSX-10.5-x86_64/Release/include/actSCardTokenKit.h +++ /dev/null @@ -1,105 +0,0 @@ -// --------------------------------------------------------------------------- -// Name: actSCardTokenKit.h -// Product: cv act library -// Purpose: registry for factory functions to create SCardOS and SCardToken objects -// -// Copyright: (c) 2002 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -// -// Autor: Dr. Xiangdong Wang (XWG) -// Date: 05/14/2002 -// --------------------------------------------------------------------------- - -#ifndef ACT_SCardTokenKit_h -#define ACT_SCardTokenKit_h - -namespace act -{ - class ISCardOS; - class SCardToken; - - bool IsStarCOSToken(ISCardOS* os); - SCardToken* CreateStarCOSToken(ISCardOS* os); - - bool IsV4cvProfile(ISCardOS* os); - SCardToken* CreateV4cvProfile(ISCardOS* os); - - bool IsV4cvECProfile(ISCardOS* os); - SCardToken* CreateV4cvECProfile(ISCardOS* os); - - bool IsV4CNSProfile(ISCardOS* os); - SCardToken* CreateV4CNSProfile(ISCardOS* os); - - bool IsNetKey2000Token(ISCardOS* os); - SCardToken* CreateNetKey2000Token(ISCardOS* os); - - bool IsNetKeyE4Token(ISCardOS* os); - SCardToken* CreateNetKeyE4Token(ISCardOS* os); - - bool IsNetKey30Token(ISCardOS* os); - SCardToken* CreateNetKey30Token(ISCardOS* os); - - bool IsNetKeyPKSToken(ISCardOS* os); - SCardToken* CreateNetKeyPKSToken(ISCardOS* os); - - bool IsNetKeyOldToken(ISCardOS* os); - SCardToken* CreateNetKeyOldToken(ISCardOS* os); - - bool IseTrustToken(ISCardOS* os); - SCardToken* CreateeTrustToken(ISCardOS* os); - - bool IsMicardoECToken(ISCardOS* os); - SCardToken* CreateMicardoECToken(ISCardOS* os); - - bool IsM4cvProfile(ISCardOS* os); - SCardToken* CreateM4cvProfile(ISCardOS* os); - - bool IsACOScvProfile(ISCardOS* os); - SCardToken* CreateACOScvProfile(ISCardOS* os); - - bool IsM4SiemensProfile(ISCardOS* os); - SCardToken* CreateM4SiemensProfile(ISCardOS* os); - - bool IsM4cvECProfile(ISCardOS* os); - SCardToken* CreateM4cvECProfile(ISCardOS* os); - - bool IsM4cvMoCProfile(ISCardOS* os); - SCardToken* CreateM4cvMoCProfile(ISCardOS* os); - - bool IsJavaCardAppletManager(ISCardOS* os); - SCardToken* CreateJavaCardAppletManager(ISCardOS* os); - - bool IsJCProfile(ISCardOS* os); - SCardToken* CreateJCProfile(ISCardOS* os); - - // PKCS#15 Profiles - bool IsM4PKCS15Profile(ISCardOS* os); - SCardToken* CreateM4PKCS15Profile(ISCardOS* os); - - bool IsV4PKCS15Profile(ISCardOS* os); - SCardToken* CreateV4PKCS15Profile(ISCardOS* os); - - bool IsV4PKCS15ECProfile(ISCardOS* os); - SCardToken* CreateV4PKCS15ECProfile(ISCardOS* os); - - bool IsJCPKCS15Profile(ISCardOS* os); - SCardToken* CreateJCPKCS15Profile(ISCardOS* os); - - bool IsJCPKCS15ECProfile(ISCardOS* os); - SCardToken* CreateJCPKCS15ECProfile(ISCardOS* os); - - bool IsACOSPKCS15Profile(ISCardOS* os); - SCardToken* CreateACOSPKCS15Profile(ISCardOS* os); - - bool IsStarCOSPKCS15Profile(ISCardOS* os); - SCardToken* CreateStarCOSPKCS15Profile(ISCardOS* os); - - // Passport - bool IsEPAProfile(ISCardOS* os); - SCardToken* CreateEPAProfile(ISCardOS* os); - -} // namespace act - -#endif // ACT_SCardTokenKit_h diff --git a/actlibrary/MacOSX-10.5-x86_64/Release/include/actSCardTokenReg.h b/actlibrary/MacOSX-10.5-x86_64/Release/include/actSCardTokenReg.h deleted file mode 100644 index 3f26385..0000000 --- a/actlibrary/MacOSX-10.5-x86_64/Release/include/actSCardTokenReg.h +++ /dev/null @@ -1,42 +0,0 @@ -// --------------------------------------------------------------------------- -// Name: actSCardTokenReg.h -// Product: cv act library -// Purpose: factory functions registry to create SCardToken objects. -// -// Copyright: (c) 2002 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -// -// Autor: Dr. Xiangdong Wang (XWG) -// Date: 05/13/2002 -// --------------------------------------------------------------------------- - -#ifndef ACT_SCardTokenReg_h -#define ACT_SCardTokenReg_h - -namespace act -{ - class ISCardOS; - class SCardToken; - - typedef bool (*CheckSCardTokenPtr)(ISCardOS*); - typedef SCardToken* (*CreateSCardTokenPtr)(ISCardOS*); - - struct SCardTokenMapEntry - { - CheckSCardTokenPtr CheckPtr; - CreateSCardTokenPtr CreatePtr; - }; - - class SCardTokenReg - { - public: - static SCardToken* CreateSCardToken(ISCardOS* os); - static void Insert(CheckSCardTokenPtr checkptr, CreateSCardTokenPtr createptr); - static void Insert(const SCardTokenMapEntry* entry); - }; - -} // namespace act - -#endif // ACT_SCardTokenReg_h diff --git a/actlibrary/MacOSX-10.5-x86_64/Release/include/actSlotMonitorKit.h b/actlibrary/MacOSX-10.5-x86_64/Release/include/actSlotMonitorKit.h deleted file mode 100644 index 043e5c9..0000000 --- a/actlibrary/MacOSX-10.5-x86_64/Release/include/actSlotMonitorKit.h +++ /dev/null @@ -1,32 +0,0 @@ -// --------------------------------------------------------------------------- -// Name: actSlotMonitorKit.h -// Product: cv act library -// Purpose: registry for factory functions to create slot monitors -// -// Copyright: (c) 2009 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -// -// Autor: Markus Tesche -// Date: 04/12/2009 -// --------------------------------------------------------------------------- - -#ifndef ACT_SlotMonitorKit_h -#define ACT_SlotMonitorKit_h - -namespace act -{ - class ISubsystem; - class ISlot; - class ISlotMonitor; - - // default polling slot monitor - ISlotMonitor* CreateSlotMonitor(ISlot*); - - ISlotMonitor* CreatePCSCSlotMonitor(ISlot*); - ISlotMonitor* CreatePCSCSystemSlotMonitor(ISubsystem*); - -} // namespace act - -#endif // ACT_SlotMonitorKit_h diff --git a/actlibrary/MacOSX-10.5-x86_64/Release/include/actSlotMonitorReg.h b/actlibrary/MacOSX-10.5-x86_64/Release/include/actSlotMonitorReg.h deleted file mode 100644 index 60a8d7e..0000000 --- a/actlibrary/MacOSX-10.5-x86_64/Release/include/actSlotMonitorReg.h +++ /dev/null @@ -1,54 +0,0 @@ -// --------------------------------------------------------------------------- -// Name: actSlotMonitorReg.h -// Product: cv act library -// Purpose: factory functions registry to create Slot-Monitor objects. -// -// Copyright: (c) 2009 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -// -// Autor: Markus Tesche -// Date: 04/12/2009 -// --------------------------------------------------------------------------- - -#ifndef ACT_SlotMonitoReg_h -#define ACT_SlotMonitoReg_h - -#include "actFactoryReg.h" - -namespace act -{ - class ISubsystem; - class ISlot; - class ISlotMonitor; - - typedef ISlotMonitor* (*CreateSlotMonitorPtr)(ISlot*); - typedef ISlotMonitor* (*CreateSystemSlotMonitorPtr)(ISubsystem*); - - struct SlotMonitorRegCreatePtr - { - ISlotMonitor* operator()(const char*, ISlot* slot) const - { - return createSlotMonitor != 0 ? createSlotMonitor(slot) : 0; - } - - ISlotMonitor* operator()(const char*, ISubsystem* system) const - { - return createSystemSlotMonitor != 0 ? createSystemSlotMonitor(system) : 0; - } - - CreateSlotMonitorPtr createSlotMonitor; - CreateSystemSlotMonitorPtr createSystemSlotMonitor; - }; - - - typedef FactoryMapEntry SlotMonitorRegEntry; - - typedef FactoryReg - < ISlotMonitor, SlotMonitorRegCreatePtr, SlotMonitorRegEntry - > SlotMonitorReg; - -} // namespace act - -#endif // ACT_SlotMonitoReg_h diff --git a/actlibrary/MacOSX-10.5-x86_64/Release/include/actState.h b/actlibrary/MacOSX-10.5-x86_64/Release/include/actState.h deleted file mode 100644 index c7e1cbf..0000000 --- a/actlibrary/MacOSX-10.5-x86_64/Release/include/actState.h +++ /dev/null @@ -1,29 +0,0 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actState.h -// Product: cv act library -// Purpose: -// -// Copyright: (c) 2000 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_STATE_H -#define ACT_STATE_H - -namespace act -{ - - const int READY=0; - const int SIGNATURE_OK=1; - const int IS_FINALIZED=2; - const int DECRYPT_ERROR=3; - const int CERTIFICATE_OK=4; - const int CERTIFICATE_ERROR=5; - const int VERIFY_ERROR=6; - -} // namspace act - -#endif - diff --git a/actlibrary/MacOSX-10.5-x86_64/Release/include/actStreamCipherKit.h b/actlibrary/MacOSX-10.5-x86_64/Release/include/actStreamCipherKit.h deleted file mode 100644 index efc74fa..0000000 --- a/actlibrary/MacOSX-10.5-x86_64/Release/include/actStreamCipherKit.h +++ /dev/null @@ -1,22 +0,0 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actStreamCipherKit.h -// Product: cv act library -// Purpose: declaration of all factory functions -// -// Copyright: (c) 2001 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_StreamCipherKit_h -#define ACT_StreamCipherKit_h - -namespace act -{ - class IStreamCipher; - - IStreamCipher* CreateARC4(); -} -#endif - diff --git a/actlibrary/MacOSX-10.5-x86_64/Release/include/actSubsystemKit.h b/actlibrary/MacOSX-10.5-x86_64/Release/include/actSubsystemKit.h deleted file mode 100644 index c3452f0..0000000 --- a/actlibrary/MacOSX-10.5-x86_64/Release/include/actSubsystemKit.h +++ /dev/null @@ -1,33 +0,0 @@ -// --------------------------------------------------------------------------- -// Name: actSubsystemKit.h -// Product: cv act library -// Purpose: registry for factory functions to create subsystem -// -// Copyright: (c) 2002 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -// -// Autor: Dr. Xiangdong Wang (XWG) -// Date: 05/13/2002 -// --------------------------------------------------------------------------- - -#ifndef ACT_SubsystemKit_h -#define ACT_SubsystemKit_h - -namespace act -{ - class ISubsystem; - class ISubsystemConfig; - - ISubsystem* CreateCTAPISystem(const char*); - - ISubsystem* CreatePCSCSystem(const char*); - ISubsystem* CreatePCSCSystemEx(ISubsystemConfig*); - - ISubsystem* CreateCSPSystem(const char*); - ISubsystem* CreatePKCS11System(const char*); - -} // namespace act - -#endif // ACT_SubsystemKit_h diff --git a/actlibrary/MacOSX-10.5-x86_64/Release/include/actSubsystemReg.h b/actlibrary/MacOSX-10.5-x86_64/Release/include/actSubsystemReg.h deleted file mode 100644 index 7a82df8..0000000 --- a/actlibrary/MacOSX-10.5-x86_64/Release/include/actSubsystemReg.h +++ /dev/null @@ -1,53 +0,0 @@ -// --------------------------------------------------------------------------- -// Name: actSubsystemReg.h -// Product: cv act library -// Purpose: factory functions registry to create Subsystem objects. -// -// Copyright: (c) 2002 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -// -// Autor: Dr. Xiangdong Wang (XWG) -// Markus Tesche -// Date: 05/14/2002 -// --------------------------------------------------------------------------- - -#ifndef ACT_SubsystemReg_h -#define ACT_SubsystemReg_h - -namespace act -{ - class ISubsystem; - class ISubsystemConfig; - - typedef ISubsystem* (*CreateSubsystemPtr)(const char*); - typedef ISubsystem* (*CreateSubsystemExPtr)(ISubsystemConfig*); - - struct SubsystemMapEntry - { - const char* Name; - CreateSubsystemPtr CreatePtr; - CreateSubsystemExPtr CreateExPtr; - }; - - class SubsystemReg - { - public: - static ISubsystem* CreateSubsystem(ISubsystemConfig* config); - static ISubsystem* CreateSubsystem(const char* name, const char* dll_name = 0); - - static CreateSubsystemPtr GetCreatePointer(const char* name); - static CreateSubsystemExPtr GetCreateExPointer(const char* name); - - static const char* GetName(void* createptr); - static const char* GetNextName(const char* name); - - static void Insert(const char* name, CreateSubsystemPtr createptr); - static void Insert(const char* name, CreateSubsystemExPtr createexptr); - static void Insert(const SubsystemMapEntry* map); - }; - -} // namespace act - -#endif // ACT_SubsystemReg_h diff --git a/actlibrary/MacOSX-10.5-x86_64/Release/include/actTokenAuthProtocolReg.h b/actlibrary/MacOSX-10.5-x86_64/Release/include/actTokenAuthProtocolReg.h deleted file mode 100644 index 9f2924d..0000000 --- a/actlibrary/MacOSX-10.5-x86_64/Release/include/actTokenAuthProtocolReg.h +++ /dev/null @@ -1,33 +0,0 @@ -// --------------------------------------------------------------------------- -// Name: actTokenAuthProtocolReg.h -// Product: cv act library -// Purpose: factory functions registry to create ITokenAuthProtocol objects. -// -// Copyright: (c) 2009 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -// -// Autor: Markus Tesche -// Date: 14/10/2009 -// --------------------------------------------------------------------------- - -#ifndef ACT_TokenAuthProtocolReg_h -#define ACT_TokenAuthProtocolReg_h - -#include "actFactoryReg.h" - -namespace act -{ - class ITokenAuthProtocol; - - typedef ITokenAuthProtocol* (*CreateTokenAuthProtocolPtr)(const char*); - typedef FactoryMapEntry TokenAuthProtocolMapEntry; - - typedef FactoryReg - < ITokenAuthProtocol, CreateTokenAuthProtocolPtr, TokenAuthProtocolMapEntry - > TokenAuthProtocolReg; - -} // namespace act - -#endif // ACT_TokenAuthProtocolReg_h diff --git a/actlibrary/MacOSX-10.5-x86_64/Release/include/actTokenBase.h b/actlibrary/MacOSX-10.5-x86_64/Release/include/actTokenBase.h deleted file mode 100644 index d31b0e7..0000000 --- a/actlibrary/MacOSX-10.5-x86_64/Release/include/actTokenBase.h +++ /dev/null @@ -1,200 +0,0 @@ -// --------------------------------------------------------------------------- -// Name: actTokenBase.h -// Product: cv act library -// Purpose: Declares common token enums and constants. -// -// Copyright: (c) 2010 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -// -// Autor: Markus Tesche -// Date: 03/24/2010 -// --------------------------------------------------------------------------- - -#ifndef ACT_TokenBase_h -#define ACT_TokenBase_h - -namespace act -{ - enum TokenError - { - TOKEN_SUCCESS = 0, - TOKEN_FUNCTION_NOT_SUPPORTED = -1, - TOKEN_FUNCTION_FAILED = -2, - TOKEN_LOCKED = -3 - }; - - enum TokenType - { - TOKEN_RSA = 0x0001, - TOKEN_DSA = 0x0002, - TOKEN_DH = 0x0004, - TOKEN_ECDSA = 0x0008, - TOKEN_ECDH = 0x0010, - TOKEN_SECRET = 0x0080, - - TOKEN_BAC = 0x0100, - TOKEN_EAC = 0x0200, - TOKEN_EPA = 0x0400, - }; - - enum TokenStatusCode - { - TOKEN_EMPTY = 0x0000, - TOKEN_INITIALIZED = 0x0001, - TOKEN_PERSONALIZED = 0x0002 - }; - - enum ProfileType - { - PROFILE_EMPTY = 0x00, - PROFILE_CV = 0x01, - PROFILE_CNS = 0x02, - PROFILE_GDO = 0x03, - PROFILE_CVEC = 0x04, - PROFILE_SIGG = 0x05, - PROFILE_JC = 0x06, - PROFILE_MICARDOEC = 0x07, - PROFILE_STARCOS = 0x08, - PROFILE_NETKEY = 0x09, - PROFILE_CVMOC = 0x0a, - - PROFILE_PKCS15 = 0x0f, - PROFILE_PKCS15_mEAC = 0x10, // includes PACE-Pin's - PROFILE_PKCS15_mEAC_TA = 0x11, // includes PACE-Pin's and TA-IS, TA-ST, TA-AT - - PROFILE_BAC = 0x80, - PROFILE_EAC = 0x81, - PROFILE_EAC201 = 0x82, - PROFILE_EPA = 0x83, - - PROFILE_PKCS11 = 0xa0, - PROFILE_CSP = 0xa1, - PROFILE_MD = 0xa2, - - PROFILE_ANY = 0xfe, - PROFILE_UNKNOWN = 0xff - }; - - // usage of key, pin - enum KeyUsage - { - KEY_EMPTY = 0x0000, - SIGN_DATA = 0x0001, - DEC_DATA = 0x0002, - AGREE_KEY = 0x0004, - AUTH_DATA = 0x0008, - BLOCKCIPHER_KEY = 0x0010, - VERIFY_DATA = 0x0020, - ENC_DATA = 0x0040, - UNLOCK_PIN = 0x0100, - UPDATE_BINARY = 0x0200, - DELETE_BINARY = 0x0400, - ALL_USAGE = 0xffff, - - // custom usage - SIGN_HASH = 0x00010000, - CUSTOM_USAGE_MASK = 0xffff0000, - - // combined usage - ENC_DEC_DATA = DEC_DATA | ENC_DATA, - SIGN_DEC_DATA = DEC_DATA | SIGN_DATA, - SIGN_HASH_DATA = SIGN_HASH | SIGN_DATA, - }; - - enum KeyType - { // NOTE: Never change (!), used for serialization. - KEY_UNKNOWN = 0xffff, - - KEY_RSA = 0x0000, - KEY_DSA = 0x0001, - KEY_DH = 0x0002, - KEY_ECDSA = 0x0003, - KEY_ECDH = 0x0004, - - KEY_SECRET = 0x0010, - KEY_DES = 0x0001 + KEY_SECRET, - KEY_2DES = 0x0002 + KEY_SECRET, - KEY_3DES = 0x0003 + KEY_SECRET, - KEY_AES = 0x0004 + KEY_SECRET, - - KEY_TYPE_MASK = 0x001f - }; - - enum CertificateType - { // NOTE: Never change (!), used for serialization. - CERT_UNKNOWN = 0xffff, - - CERT_X509 = 0x0000, - CERT_CV = 0x0001 - }; - - enum CertificateUsage - { - EMPTY_CERT = 0x0000, - SIGN_CERT = 0x0001, - DEC_CERT = 0x0002, - ROOT_CERT = 0x0004, - AUTH_CERT = 0x0008, - CA_CERT = 0x0010, - SMARTCARD_LOGON_CERT = 0x0100, // lib version >= 1.5 - UNSPECIFIED_CERT = 0xffff - }; - - enum SecStatus - { - SS_INVALID = 0x0000, - SS_AUTHENTICATED = 0x0001, - SS_UNKNOWN = 0xffff, - }; - - enum AUTH_OBJ_TYPE - { - AUTH_OBJ_PIN = 0xff, // -1 - AUTH_OBJ_BIOMETRIC = 0xfe, // -2 - }; - - typedef ulong IDType; - typedef ushort FIDType; - - const IDType ID_INVALID = 0; - const FIDType FID_INVALID = 0x0000; - - // - // FileInfo - struct FileInfo - { - explicit FileInfo(FIDType val_fid = FID_INVALID, IDType val_rec_nr = ID_INVALID) - : fid(val_fid) - , rec_nr(val_rec_nr) - { } - - FIDType fid; - IDType rec_nr; - }; - - // LengthInfo - struct LengthInfo - { - LengthInfo(ulong _minLen = 0, ulong _maxLen = 0, ulong _storedLen = 0) - : minLen(_minLen) - , maxLen(_maxLen) - , storedLen(_storedLen) - { } - - void swap(LengthInfo& other) - { - std::swap(minLen, other.minLen); - std::swap(storedLen, other.storedLen); - std::swap(maxLen, other.maxLen); - } - - ulong minLen; - ulong storedLen; - ulong maxLen; - }; - -} // namespace act - -#endif // ACT_TokenBase_h diff --git a/actlibrary/MacOSX-10.5-x86_64/Release/include/actTokenConfig.h b/actlibrary/MacOSX-10.5-x86_64/Release/include/actTokenConfig.h deleted file mode 100644 index 45844c1..0000000 --- a/actlibrary/MacOSX-10.5-x86_64/Release/include/actTokenConfig.h +++ /dev/null @@ -1,104 +0,0 @@ -// --------------------------------------------------------------------------- -// Name: actTokenConfig.h -// Product: cv act library -// Purpose: Declares all availabl param_id's for ITokenCofing. -// -// Copyright: (c) 2009 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -// -// Autor: Markus Tesche -// Date: 05/07/2009 -// --------------------------------------------------------------------------- - -#ifndef ACT_TokenConfig_h -#define ACT_TokenConfig_h - -#include "actMode.h" -#include "actIParam.h" - -namespace act -{ - // according to ISO 24727-3, definition of supported Data Set's - enum DataSetList - { - DATA_SET_NONE = 0, - DATA_SET_PUBLIC_DATA = (1 << 0), - DATA_SET_PRIVATE_DATA = (1 << 1), - DATA_SET_CERTIFICATES = (1 << 2), - DATA_SET_USEFUL_CERTIFICATES = (1 << 3), - DATA_SET_TRUSTED_CERTIFICATES = (1 << 4), - DATA_SET_TRUSTED_PUBLIC_KEYS = (1 << 5), - // - // ... - DATA_SET_NEXT = (1 << 6), - DATA_SET_MASK = DATA_SET_NEXT - 1, - DATA_SET_ALL = PARAM_INVALID_VALUE, - }; - - enum ObjectTypeList - { - OBJECT_TYPE_NONE = 0, - OBJECT_TYPE_KEY_DES = (1 << 0), - OBJECT_TYPE_KEY_2DES = (1 << 1), - OBJECT_TYPE_KEY_3DES = (1 << 2), - OBJECT_TYPE_KEY_AES = (1 << 3), - OBJECT_TYPE_KEY_RSA = (1 << 4), - OBJECT_TYPE_KEY_DSA = (1 << 5), - OBJECT_TYPE_KEY_DH = (1 << 6), - OBJECT_TYPE_KEY_ECC = (1 << 7), - OBJECT_TYPE_DATA = (1 << 8), - OBJECT_TYPE_CERTIFICATE = (1 << 9), - OBJECT_TYPE_USEFUL_CERTIFICATE = (1 << 10), - OBJECT_TYPE_TRUSTED_CERTIFICATE = (1 << 11), - OBJECT_TYPE_TRUSTED_PUBLIC_KEY = (1 << 12), - // - // Mark an object as private - OBJECT_TYPE_PRVIVATE = (1 << 13), - // - // ... - OBJECT_TYPE_NEXT = (1 << 14), - OBJECT_TYPE_MASK = OBJECT_TYPE_NEXT - 1, - OBJECT_TYPE_ALL = PARAM_INVALID_VALUE, - }; - - enum ObjectAttributeList - { - OBJECT_ATTR_LABEL_P = OBJECT_TYPE_NEXT, - OBJECT_ATTR_LABEL_P_PUB = OBJECT_ATTR_LABEL_P, - OBJECT_ATTR_LABEL_P_PRV = OBJECT_ATTR_LABEL_P | OBJECT_TYPE_PRVIVATE, - }; - - enum - { - TC_TYPE = TOKEN_CONFIG, - TC_HAS_TOKEN_CAPABILITIES, - TC_HAS_WRITABLE_AODF, - TC_IS_MOC_ENABLED, - TC_IS_MINIDRIVER_ENABLED, - TC_IS_PROFILE_ERASABLE, - TC_PINPAD_CHAR, - TC_DATA_SET_LIST, - TC_OBJECT_TYPE_LIST, - // - // Object naming - Label Prefix - TC_LABEL_P_PRV_DES = OBJECT_ATTR_LABEL_P_PRV + OBJECT_TYPE_KEY_DES, - TC_LABEL_P_PRV_2DES = OBJECT_ATTR_LABEL_P_PRV + OBJECT_TYPE_KEY_2DES, - TC_LABEL_P_PRV_3DES = OBJECT_ATTR_LABEL_P_PRV + OBJECT_TYPE_KEY_3DES, - TC_LABEL_P_PRV_AES = OBJECT_ATTR_LABEL_P_PRV + OBJECT_TYPE_KEY_AES, - TC_LABEL_P_PUB_RSA = OBJECT_ATTR_LABEL_P_PUB + OBJECT_TYPE_KEY_RSA, - TC_LABEL_P_PRV_RSA = OBJECT_ATTR_LABEL_P_PRV + OBJECT_TYPE_KEY_RSA, - TC_LABEL_P_PUB_ECC = OBJECT_ATTR_LABEL_P_PUB + OBJECT_TYPE_KEY_ECC, - TC_LABEL_P_PRV_ECC = OBJECT_ATTR_LABEL_P_PRV + OBJECT_TYPE_KEY_ECC, - TC_LABEL_P_PUB_DATA = OBJECT_ATTR_LABEL_P_PUB + OBJECT_TYPE_DATA, - TC_LABEL_P_PRV_DATA = OBJECT_ATTR_LABEL_P_PRV + OBJECT_TYPE_DATA, - TC_LABEL_P_PUB_CERTIFICATE = OBJECT_ATTR_LABEL_P_PUB + OBJECT_TYPE_CERTIFICATE, - TC_LABEL_P_PUB_USEFUL_CERTIFICATE = OBJECT_ATTR_LABEL_P_PUB + OBJECT_TYPE_USEFUL_CERTIFICATE, - TC_LABEL_P_PUB_TRUSTED_CERTIFICATE = OBJECT_ATTR_LABEL_P_PUB + OBJECT_TYPE_TRUSTED_CERTIFICATE, - TC_LABEL_P_PUB_TRUSTED_PUBLIC_KEY = OBJECT_ATTR_LABEL_P_PUB + OBJECT_TYPE_TRUSTED_PUBLIC_KEY, - }; - -} // namespace act - -#endif // ACT_TokenConfig_h diff --git a/actlibrary/MacOSX-10.5-x86_64/Release/include/actTokenExtensionReg.h b/actlibrary/MacOSX-10.5-x86_64/Release/include/actTokenExtensionReg.h deleted file mode 100644 index f961078..0000000 --- a/actlibrary/MacOSX-10.5-x86_64/Release/include/actTokenExtensionReg.h +++ /dev/null @@ -1,34 +0,0 @@ -// --------------------------------------------------------------------------- -// Name: actTokenExtensionReg.h -// Product: cv act library -// Purpose: factory functions registry to create ITokenExtension objects. -// -// Copyright: (c) 2008 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -// -// Autor: Markus Tesche -// Date: 12/02/2008 -// --------------------------------------------------------------------------- - -#ifndef ACT_TokenExtensionReg_h -#define ACT_TokenExtensionReg_h - -#include "actFactoryReg.h" - -namespace act -{ - class IToken; - class ITokenExtension; - - typedef ITokenExtension* (*CreateTokenExtensionPtr)(const char*, IToken*); - typedef FactoryMapEntry TokenExtensionMapEntry; - - typedef FactoryReg - < ITokenExtension, CreateTokenExtensionPtr, TokenExtensionMapEntry - > TokenExtensionReg; - -} // namespace act - -#endif // ACT_TokenExtensionReg_h diff --git a/actlibrary/MacOSX-10.5-x86_64/Release/include/actTools.h b/actlibrary/MacOSX-10.5-x86_64/Release/include/actTools.h deleted file mode 100644 index c22c455..0000000 --- a/actlibrary/MacOSX-10.5-x86_64/Release/include/actTools.h +++ /dev/null @@ -1,93 +0,0 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actTools.h -// Product: cv act library -// Purpose: useful global functions -// -// Copyright: (c) 2000 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_Tools_h -#define ACT_Tools_h - -#include "actMode.h" -#include "actBlob.h" - -namespace act -{ - class IKey; - - // Functions for RSA public key and private key operation. - // Both functions return the plain result of the modular - // exponentiation using the public or private exponent. - // - // 1) Calculate m^e mod n, where e is the public exponent - Blob RSAPublicKeyOperation(IKey* rsa_key, const Blob& m); - // 2) Calculate c^d mod n, where d is the private exponent - Blob RSAPrivateKeyOperation(IKey* rsa_key, const Blob& c); - - - // Function for PKCS#3 Diffie-Hellman. - // The function initializes an act::IKey Diffie-Hellman key object - // from PKCS#3 DH parameters p and g (prime and generator). - void PKCS3DHKeyToDHKey(const Blob& prime, const Blob& generator, IKey *dhKey); - - - // Read pfx file and get private key - Blob getPKCS8Key(const Blob& pfx_data, const char* password); - // Read pfx file and get the own (user) certificate - Blob getOwnCertificateFromPfx(const Blob& pfx_data, const char* password); - - - // Function to encode an ASN1 object identifier in binary form - // example EncodeOID("0.2.262.1.10.1.3.8") = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x01, 0x03, 0x08 } - Blob EncodeOID(const char* oid); - - - // Converts a signed decimal number or hexadecimal number (with prefix "0x" / "-0x") - // into a Blob (Twos-Complement representation for negative numbers) - Blob EncodeNumber(const char* number); - Blob EncodeNumber(int number); - - - // CRC functions - - // CRC-16 (direct mode, no zero bit augmentation) - // - // Poly : 0x8005 (x^16 + x^15 + x^2 + 1) - // RefIn : True (bit reflection on the input bytes) - // RefOut : True (bit reflection on the final CRC value) - // XorOut : 0x0000 (no XOR on the returned CRC value) - unsigned long CalculateCRC16(const act::byte* message, size_t message_len, - unsigned long crc_init_value = 0x0000); - unsigned long CalculateCRC16(const act::Blob& message, - unsigned long crc_init_value = 0x0000); - - // CRC-16 CCIT (direct mode, no zero bit augmentation) - // - // Poly : 0x1021 (x^16 + x^12 + x^5 + 1) - // RefIn : False (no bit reflection on the input bytes) - // RefOut : False (no bit reflection on the final CRC value) - // XorOut : 0x0000 (no XOR on the returned CRC value) - unsigned long CalculateCRC16CCITT(const act::byte* message, size_t message_len, - unsigned long crc_init_value = 0xFFFF); - unsigned long CalculateCRC16CCITT(const act::Blob& message, - unsigned long crc_init_value = 0xFFFF); - - // CRC-32 (direct mode, no zero bit augmentation) - // - // Poly : 0x04C11DB7 (x^32 + x^26 + x^23 + x^22 + x^16 + x^12 + x^11 + ... - // ... + x^10 + x^8 + x^7 + x^5 + x^4 + x^2 + x^ + 1) - // RefIn : True (bit reflection on the input bytes) - // RefOut : True (bit reflection on the final CRC value) - // XorOut : 0xFFFFFFFF (XOR on the returned CRC value) - unsigned long CalculateCRC32(const act::byte* message, size_t message_len, - unsigned long crc_init_value = 0xFFFFFFFF); - unsigned long CalculateCRC32(const act::Blob& message, - unsigned long crc_init_value = 0xFFFFFFFF); - -} // namespace act - -#endif // ACT_Tools_h diff --git a/actlibrary/MacOSX-10.5-x86_64/Release/include/actToolsECC.h b/actlibrary/MacOSX-10.5-x86_64/Release/include/actToolsECC.h deleted file mode 100644 index 246b99f..0000000 --- a/actlibrary/MacOSX-10.5-x86_64/Release/include/actToolsECC.h +++ /dev/null @@ -1,99 +0,0 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actToolsECC.h -// Product: cv act library -// Purpose: useful ECC functions -// -// Copyright: (c) 2009 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_ToolsECC_h -#define ACT_ToolsECC_h - -#include "actMode.h" -#include "actBlob.h" -#include "actIKey.h" - -namespace act -{ - // Functions for ECC scalar multiplication, addition of points. - // Input points must be in ASN.1 point representation (uncompressed, - // compressed or hybrid). The output point will be in ASN.1 representation - // as indicated in 'output_format'. - // - // 1) Calculate s * Q, s unsigned in ASN.1 OCTET STRING representation - // (leading zeros will be ignored) - Blob ECMultiplyPoint(IKey* ec_key, const Blob& s, const Blob& Q, - int output_format = UNCOMPRESSED); - // 2) Calculate Q1 + Q2 - Blob ECAddPoints(IKey* ec_key, const Blob& Q1, const Blob& Q2, - int output_format = UNCOMPRESSED); - - - // Functions to encode an (EC-)DSA signature (r, s) in ASN1 format and backwards. - // - // 1) Plain signature I/O as string - // - for encode: r and s must be in hex notation - // - for decode: the user has to allocate r and s buffers - void EncodeSignature(const char* r, const char* s, Blob& signature_ASN1); - void DecodeSignature(const Blob& signature_ASN1, char* r, char* s); - // 2) Plain signature I/O as byte array (Blob) - // - r and s I/O in big endian representation - void EncodeSignature(const Blob& r, const Blob& s, Blob& signature_ASN1); - void DecodeSignature(const Blob& signature_ASN1, Blob& r, Blob& s); - // 3) Plain signature I/O as byte array (Blob) - // - r_s length even, left haft = r, right half = s - // - if order_bytes is non zero, decode output length is 2 * order_bytes - void EncodeSignature(const Blob& r_s, Blob& signature_ASN1); - void DecodeSignature(const Blob& signature_ASN1, Blob& r_s, size_t order_bytes = 0); - - - // Tools for elliptic curves over GF(P). - // The basepoint can be given by it's coordinates (Gx, Gy) or as - // COMPRESSED, UNCOMPRESSED or HYBRID octetstring G corresponding - // to ANSI X9.62/63 standard. - // By default, the basepoint will be encoded in UNCOMPRESSED format. - - Blob EncodePrimeCurveParam(const Blob& p, const Blob& a, const Blob& b, - const Blob& Gx, const Blob& Gy, const Blob& n, const Blob& h, - int output_type = UNCOMPRESSED); - - Blob EncodePrimeCurveParam(const Blob& p, const Blob& a, const Blob& b, - const Blob& G, const Blob& n, const Blob& h, int output_type = UNCOMPRESSED); - - // dto. for elliptic curves over GF(2^m), tri- or pentanomial basis. - - // tri- or pentanomial in hex presentation - Blob EncodeGF2CurveParam(const Blob& p, const Blob& a, const Blob& b, - const Blob& Gx, const Blob& Gy, const Blob& n, const Blob& h, - int output_type = UNCOMPRESSED); - - // tri- or pentanomial in hex presentation - Blob EncodeGF2CurveParam(const Blob& p, const Blob& a, const Blob& b, - const Blob& G, const Blob& n, const Blob& h, int output_type = UNCOMPRESSED); - - // f(t) = t^m + t^k + 1 - Blob EncodeTrinomialCurveParam(const int m, const int k, - const Blob& a, const Blob& b, const Blob& Gx, const Blob& Gy, - const Blob& n, const Blob& h, int output_type = UNCOMPRESSED); - - // f(t) = t^m + t^k + 1 - Blob EncodeTrinomialCurveParam(const int m, const int k, - const Blob& a, const Blob& b, const Blob& G, const Blob& n, - const Blob& h, int output_type = UNCOMPRESSED); - - // f(t) = t^m + t^k3 + t^k2 + t^k1 + 1 - Blob EncodePentanomialCurveParam(const int m, const int k3, const int k2, - const int k1, const Blob& a, const Blob& b, const Blob& Gx, const Blob& Gy, - const Blob& n, const Blob& h, int output_type = UNCOMPRESSED); - - // f(t) = t^m + t^k3 + t^k2 + t^k1 + 1 - Blob EncodePentanomialCurveParam(const int m, const int k3, const int k2, - const int k1, const Blob& a, const Blob& b, const Blob& G, - const Blob& n, const Blob& h, int output_type = UNCOMPRESSED); - -} // namespace act - -#endif // ACT_ToolsECC_h diff --git a/actlibrary/MacOSX-10.5-x86_64/Release/include/actToolsRSA.h b/actlibrary/MacOSX-10.5-x86_64/Release/include/actToolsRSA.h deleted file mode 100644 index b79c55b..0000000 --- a/actlibrary/MacOSX-10.5-x86_64/Release/include/actToolsRSA.h +++ /dev/null @@ -1,19 +0,0 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actToolsRSA.h -// Product: cv act library -// Purpose: useful RSA functions -// -// Copyright: (c) 2000 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_TOOLS_RSA_H -#define ACT_TOOLS_RSA_H - -#include "actTools.h" - -// TODO: MTE: Move all RSA functions from "actTools.h" to here! include inside "actTools.h" - -#endif // ACT_TOOLS_RSA_H diff --git a/actlibrary/MacOSX-10.5-x86_64/Release/include/actTypeTags.h b/actlibrary/MacOSX-10.5-x86_64/Release/include/actTypeTags.h deleted file mode 100644 index a844a0d..0000000 --- a/actlibrary/MacOSX-10.5-x86_64/Release/include/actTypeTags.h +++ /dev/null @@ -1,32 +0,0 @@ -// --------------------------------------------------------------------------- -// Name: actTypeTags.h -// Product: cv act library -// Purpose: TypeTag<> and usibility forward declarations. -// -// Copyright: (c) 2010 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -// -// Autor: Markus Tesche -// Date: 09/10/2010 -// --------------------------------------------------------------------------- - -#ifndef ACT_TypeTags_h -#define ACT_TypeTags_h - -namespace act -{ - // - // TypeTag<> - template - struct TypeTag { typedef TypeT Type; }; - - // - // CloneFactory<> - template - struct CloneFactory; - -} // namespace act - -#endif // ACT_TypeTags_h diff --git a/actlibrary/MacOSX-10.5-x86_64/Release/include/actX509Extension.h b/actlibrary/MacOSX-10.5-x86_64/Release/include/actX509Extension.h deleted file mode 100644 index 51f59f0..0000000 --- a/actlibrary/MacOSX-10.5-x86_64/Release/include/actX509Extension.h +++ /dev/null @@ -1,50 +0,0 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actX509Extension.h -// Product: cv act library -// Purpose: -// -// Copyright: (c) 2000 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_X509Extension_H -#define ACT_X509Extension_H - -#include "actBlob.h" - -namespace act -{ - class X509Extension - { - public: - X509Extension(); - X509Extension(const Blob& oid, const Blob& value, bool critflag); - X509Extension(const char* oid, const Blob& value, bool critflag); - - void GetOID(Blob& oid) const; - void GetOIDString(Blob& oid) const; - void SetOID(const Blob& oid); - void SetOIDString(const char* oid); - - void GetValue(Blob& value) const; - void SetValue(const Blob& value); - - bool IsCritical() const; - void SetCritical(bool crit = true); - - void GetDER(Blob& der) const; - void SetDER(const Blob& der); - - bool IsPresent() { return mValue.size() > 0; } - - private: - Blob mOID; - Blob mValue; - bool mCrit; - }; - -} // namespace act - -#endif // ACT_X509Extension_H diff --git a/actlibrary/MacOSX-10.5-x86_64/Release/include/actX509Kit.h b/actlibrary/MacOSX-10.5-x86_64/Release/include/actX509Kit.h deleted file mode 100644 index bb0affb..0000000 --- a/actlibrary/MacOSX-10.5-x86_64/Release/include/actX509Kit.h +++ /dev/null @@ -1,45 +0,0 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actX509Kit.h -// Product: cv act library -// Purpose: declaration of all factory functions -// -// Copyright: (c) 2000 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_X509Kit_h -#define ACT_X509Kit_h - -namespace act -{ - class Blob; - class IKey; - - void X509ToRSA(const Blob& pkinfo, IKey* key); - void RSAToX509(const IKey* key, Blob& pkinfo); - void RSAGetAlgID(const IKey* key, Blob& algid); - void RSASetAlgID(const Blob& algid, IKey* key ); - - void X509ToDSA(const Blob& pkinfo, IKey* key); - void DSAToX509(const IKey* key, Blob& pkinfo); - void DSAGetAlgID(const IKey* key, Blob& algid); - void DSASetAlgID(const Blob& algid, IKey* key ); - - void X509ToECDSA(const Blob& pkinfo, IKey* key); - void ECDSAToX509(const IKey* key, Blob& pkinfo); - void ECDSAGetAlgID(const IKey* key, Blob& algid); - void ECDSASetAlgID(const Blob& algid, IKey* key ); - - void X509ToDH(const Blob& pkinfo, IKey* key); - void DHToX509(const IKey* key, Blob& pkinfo); - void DHGetAlgID(const IKey* key, Blob& algid); - void DHSetAlgID(const Blob& algid, IKey* key ); - - void ECDHGetAlgID(const IKey* key, Blob& algid); - void ECDHSetAlgID(const Blob& algid, IKey* key ); - -} -#endif - diff --git a/actlibrary/MacOSX-10.5-x86_64/Release/include/actX509SignHashReg.h b/actlibrary/MacOSX-10.5-x86_64/Release/include/actX509SignHashReg.h deleted file mode 100644 index d4a01d5..0000000 --- a/actlibrary/MacOSX-10.5-x86_64/Release/include/actX509SignHashReg.h +++ /dev/null @@ -1,40 +0,0 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actX509SignHashReg.h -// Product: cv act library -// Purpose: registry for factory functions in actX509Kit.h -// -// Copyright: (c) 2000-2001 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_X509SignHashReg_h -#define ACT_X509SignHashReg_h - -namespace act -{ - class Blob; - - // ------------------------------------------------------------------------ - struct X509SignHashMapEntry { - const char* OID; - const char* HashAlg; - const char* SignAlg; - }; - - // ------------------------------------------------------------------------ - class X509SignHashReg - { - public: - static void GetOID(const char* algo, const char* sign_algo, Blob& algid); - static const char* GetHashAlg(const Blob& algid); - static const char* GetSignAlg(const Blob& algid); - static void Insert(const X509SignHashMapEntry* map); - - static const char* GetHashAlg(const Blob& algid, const char* sign_algo); // deprecated - }; - -} -#endif - diff --git a/actlibrary/MacOSX-10.6-x86_64/Release/include/actAlgorithm.h b/actlibrary/MacOSX-10.6-x86_64/Release/include/actAlgorithm.h deleted file mode 100644 index 035471e..0000000 --- a/actlibrary/MacOSX-10.6-x86_64/Release/include/actAlgorithm.h +++ /dev/null @@ -1,73 +0,0 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actAlgorithm.h -// Product: cv act library -// Purpose: The class Algorithm generates algorithms for encryption and signing. -// The class Key defined these algorithms. By using this handle the -// necessary methods (e.g. hash-algorithms, verifying-primitiva, etc.) -// can be generated. -// -// Copyright: (c) 2000 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_Algorithm_h -#define ACT_Algorithm_h - -#include "actBasics.h" - -namespace act -{ - class IAlgorithm; - class IKey; - class Blob; - - class Algorithm - { - private: - Algorithm(const Algorithm&); - Algorithm &operator=(const Algorithm&); - - public: - Algorithm(IAlgorithm* alg); - Algorithm(const IKey* key, mode_t mode); - Algorithm(const IKey* key, mode_t mode, const Blob& data); - Algorithm(const char* name); - ~Algorithm(); - - void Write(const Blob& indata); - void Write(const byte* indata, size_t insize); - - void Finalize(); - - size_t Read(Blob& outdata, size_t max = 0); - size_t Read(byte* outbuffer, size_t buffersize); - - size_t GetAvailableSize() const; - status_t GetStatus() const; - - Algorithm& operator<<(const Blob& indata) { Write(indata); return *this; } - Algorithm& operator<<(Algorithm& (*manipulator)(Algorithm &alg)) { return manipulator(*this); } - Algorithm& operator>>(Blob& outdata) { Read(outdata); return *this; } - - operator IAlgorithm*(); - operator const IAlgorithm* () const; - IAlgorithm* GetPointer(); - const IAlgorithm* GetPointer() const; - - IAlgorithm* ReleasePointer(); - - private: - IAlgorithm* mAlg; - }; - - inline Algorithm& final(Algorithm& alg) - { - alg.Finalize(); - return alg; - } - -} // namespace act - -#endif // ACT_Algorithm_h diff --git a/actlibrary/MacOSX-10.6-x86_64/Release/include/actBasics.h b/actlibrary/MacOSX-10.6-x86_64/Release/include/actBasics.h deleted file mode 100644 index 39057d6..0000000 --- a/actlibrary/MacOSX-10.6-x86_64/Release/include/actBasics.h +++ /dev/null @@ -1,93 +0,0 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actBasics.h -// Product: cv act library -// Purpose: integration of globally available identifiers -// -// Copyright: (c) 2000 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_Basics_h -#define ACT_Basics_h - -#include "actEnv.h" - -#ifndef ACT_LITTLE_ENDIAN -# define ACT_LITTLE_ENDIAN -#endif - -#if defined(__BIG_ENDIAN__) || \ - defined(__sun__) || \ - defined(__sparc) || \ - defined(__sparc__) || \ - defined(__ppc__) || \ - defined(__ppc64__) -# undef ACT_LITTLE_ENDIAN -#endif // __sun__ - - -#ifndef NO_STL_SUPPORT -# include // used for ptrdiff_t,size_t -#else -# ifndef _PTRDIFF_T_DEFINED - typedef int ptrdiff_t; -# define _PTRDIFF_T_DEFINED -# endif - - -# ifndef _SIZE_T_DEFINED - typedef unsigned int size_t; -# define _SIZE_T_DEFINED -# endif -#endif // NO_STL_SUPPORT - -namespace act -{ - typedef unsigned long ulong; - typedef unsigned int uint; - typedef unsigned short ushort; - typedef unsigned char uchar; - typedef unsigned char byte; - typedef unsigned short word; - typedef unsigned int dword; - -#if defined(_MSC_VER) & !defined(__MWERKS__) - using ::size_t; - using ::ptrdiff_t; -#else - using std::size_t; - using std::ptrdiff_t; -#endif - - typedef int paramid_t; - typedef int status_t; - typedef int mode_t; - typedef int export_t; - - typedef ushort uint16; - typedef uint uint32; -#if defined(__GNUC__) || defined(__MWERKS__) - typedef unsigned long long uint64; -# define U64(x) x##ULL -#else - //#ifdef _MSC_EXTENSIONS - typedef unsigned __int64 uint64; -# define U64(x) x##ui64 -#endif - -#if defined(__GNUC__) -# define GCC_VERSION (__GNUC__ * 10000 + __GNUC_MINOR__ * 100 + __GNUC_PATCHLEVEL__) -#endif - - const export_t DEFAULT = 0; - - // - // scoped_delete<> - template - struct scoped_delete { }; - -} // namespace act - -#endif // ACT_Basics_h diff --git a/actlibrary/MacOSX-10.6-x86_64/Release/include/actBlockCipherKit.h b/actlibrary/MacOSX-10.6-x86_64/Release/include/actBlockCipherKit.h deleted file mode 100644 index e89cc2a..0000000 --- a/actlibrary/MacOSX-10.6-x86_64/Release/include/actBlockCipherKit.h +++ /dev/null @@ -1,31 +0,0 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actBlockCipherKit.h -// Product: cv act library -// Purpose: declaration of all factory functions -// -// Copyright: (c) 2000 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_BlockCipherKit_h -#define ACT_BlockCipherKit_h - -namespace act -{ - class IBlockCipher; - - IBlockCipher* CreateDES(); - IBlockCipher* CreateTripleDES(); - IBlockCipher* CreateCAST128(); - IBlockCipher* CreateBlowFish(); - IBlockCipher* CreateTwoFish(); - IBlockCipher* CreateMars(); - IBlockCipher* CreateRijndael(); - IBlockCipher* CreateSerpent(); - IBlockCipher* CreateRC2(); - //IBlockCipher* CreateRC6(); -} -#endif - diff --git a/actlibrary/MacOSX-10.6-x86_64/Release/include/actBlockCipherModeReg.h b/actlibrary/MacOSX-10.6-x86_64/Release/include/actBlockCipherModeReg.h deleted file mode 100644 index 6ce7d63..0000000 --- a/actlibrary/MacOSX-10.6-x86_64/Release/include/actBlockCipherModeReg.h +++ /dev/null @@ -1,40 +0,0 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actBlockCipherModeReg.h -// Product: cv act library -// Purpose: registry for factory functions in actBlockCipherModeKit.h -// -// Copyright: (c) 2000 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_BlockCipherModeReg_h -#define ACT_BlockCipherModeReg_h - -namespace act -{ - class IBlockCipherMode; - - typedef IBlockCipherMode* (*CreateBlockCipherModePtr)(); - - struct BlockCipherModeMapEntry - { - const char* Name; - CreateBlockCipherModePtr CreatePtr; - }; - - class BlockCipherModeReg - { - public: - static IBlockCipherMode* CreateBlockCipherMode(const char* name); - static CreateBlockCipherModePtr GetCreatePointer(const char* name); - static const char* GetName(void* createptr); - static const char* GetNextName(const char* name); - static void Insert(const char* name, CreateBlockCipherModePtr createptr); - static void Insert(const BlockCipherModeMapEntry* map); - }; - -} // namespace act - -#endif // ACT_BlockCipherModeReg_h diff --git a/actlibrary/MacOSX-10.6-x86_64/Release/include/actBlockCipherReg.h b/actlibrary/MacOSX-10.6-x86_64/Release/include/actBlockCipherReg.h deleted file mode 100644 index 7f96a90..0000000 --- a/actlibrary/MacOSX-10.6-x86_64/Release/include/actBlockCipherReg.h +++ /dev/null @@ -1,39 +0,0 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actBlockCipherReg.h -// Product: cv act library -// Purpose: registry for factory functions in actBlockCipherKit.h -// -// Copyright: (c) 2000 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_BlockCipherReg_h -#define ACT_BlockCipherReg_h - -namespace act -{ - class IBlockCipher; - - typedef IBlockCipher* (*CreateBlockCipherPtr)(); - - struct BlockCipherMapEntry { - const char* Name; - CreateBlockCipherPtr CreatePtr; - }; - - class BlockCipherReg - { - public: - static IBlockCipher* CreateBlockCipher(const char* name); - static CreateBlockCipherPtr GetCreatePointer(const char* name); - static const char* GetName(void* createptr); - static const char* GetNextName(const char* name); - static void Insert(const char* name,CreateBlockCipherPtr createptr); - static void Insert(const BlockCipherMapEntry* map); - }; -} - -#endif - diff --git a/actlibrary/MacOSX-10.6-x86_64/Release/include/actCertificate.h b/actlibrary/MacOSX-10.6-x86_64/Release/include/actCertificate.h deleted file mode 100644 index f8d063b..0000000 --- a/actlibrary/MacOSX-10.6-x86_64/Release/include/actCertificate.h +++ /dev/null @@ -1,67 +0,0 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actCertificate.h -// Product: cv act library -// Purpose: The concrete class Certificate enables direct access to a certificate, -// e.g. its public key and the corresponding validity. -// -// Copyright: (c) 2000 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_Certificate_h -#define ACT_Certificate_h - -#include "actBasics.h" - -namespace act -{ - class IKey; - class Blob; - class ICertificate; - - class Certificate - { - public: - Certificate(); - Certificate(const char* type); - Certificate(const char* type, const Blob& certblob); - Certificate(const Certificate& cert); - - void SetParam(paramid_t id, const Blob& blob); - void SetParam(paramid_t id, int val); - void SetParam(paramid_t id, const char* cstr); - void GetParam(paramid_t id, Blob& blob) const; - int GetParam(paramid_t id) const; - - void Import(const Blob& certblob); - void Export(Blob& certblob) const; - - void SetPublicKey(const IKey* pubkey); - IKey* CreatePublicKey(const char* = 0) const; - - void Sign(const IKey* privkey); - int Verify(const IKey* pubkey) const; - - const ICertificate* GetPointer() const; - ICertificate* GetPointer(); - - operator const ICertificate*() const; - operator ICertificate*(); - - ICertificate* ReleasePointer(); - - Certificate& operator=(const Certificate& cert); - Certificate& Reset(ICertificate* cert); - Certificate& Required(const char* where = 0); - - ~Certificate(); - - private: - ICertificate* mCert; - }; - -}; // namespace act - -#endif // ACT_Certificate_h diff --git a/actlibrary/MacOSX-10.6-x86_64/Release/include/actDebug.h b/actlibrary/MacOSX-10.6-x86_64/Release/include/actDebug.h deleted file mode 100644 index 623c00a..0000000 --- a/actlibrary/MacOSX-10.6-x86_64/Release/include/actDebug.h +++ /dev/null @@ -1,295 +0,0 @@ -////////////////////////////////////////////////////////////////////////// -// Name: actDebug.h -// Product: cv act library -// Purpose: Integration of globally available debug macros and functions -// -// Copyright: (c) 2005 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -// -// Autor: Markus Tesche (MTE) -// Date: 12/15/2005 -////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_Debug_h -#define ACT_Debug_h - -#include "actEnv.h" -#include "actBasics.h" -#include "actException.h" - -// -// ACT_NOOP use for semicolon terminated non operating macros. -#ifdef _MSC_VER -# if _MSC_VER >= 1210 -# define ACT_NOOP __noop -# else -# define ACT_NOOP ((void) 0) -# endif -// MSVC specific -# if !defined(DEBUG_NEW) -# if defined(_DEBUG) && !defined(_WIN32_WCE) -# include -# define DEBUG_NEW new(_NORMAL_BLOCK, __FILE__, __LINE__) -# else -# define DEBUG_NEW new -# endif -# endif -#else -# define ACT_NOOP ((void) 0) -# define DEBUG_NEW new -#endif - -// -// Declare all debug macros for release builds. -#ifdef _DEBUG -# ifdef UNDER_CE -# define ACT_ASSERT ACT_NOOP -# define ACT_ASSERT_ALWAYS(m, l, f) ACT_NOOP -# endif -# define ACT_DEBUG 1 -# define ACT_DEBUG_PARAM(p) p -# define ACT_DEBUG_SOURCE() act::FileAndLine(__FILE__, __LINE__) -# define ACT_NOT_IMPLEMENTED(m, w) throw act::NotImplementedException(m, w) << ACT_DEBUG_SOURCE() -#else -# define ACT_DEBUG 0 -# define ACT_DEBUG_SOURCE() act::FileAndLine() -# define ACT_NOT_IMPLEMENTED(m, w) throw act::NotImplementedException(m, w) -# if defined(_MSC_VER) && _MSC_VER < 1210 -# define ACT_DEBUG_PARAM(p) p -# define ACT_TRACE ACT_NOOP -# define ACT_TRACELOG ACT_NOOP -# define ACT_ASSERT ACT_NOOP -# else -# define ACT_DEBUG_PARAM(p) -# define ACT_TRACE(...) ACT_NOOP -# define ACT_TRACELOG(...) ACT_NOOP -# define ACT_ASSERT(e) ACT_NOOP -# endif -# define ACT_ASSERT_ALWAYS(m, l, f) ACT_NOOP -# define ACT_ASSERT_ON_THROW(m) ACT_NOOP -#endif // _DEBUG - -// -// ACT_ASSERT -#ifndef ACT_ASSERT -# if defined(_MSC_VER) -# include -# define ACT_ASSERT _ASSERTE -# else -# include -# define ACT_ASSERT assert -# endif -#endif // ACT_ASSERT - -// -// ACT_ASSERT_ALWAYS -#ifndef ACT_ASSERT_ALWAYS -# if defined(_MSC_VER) -# include -# define ACT_ASSERT_ALWAYS(m, f, l) _RPT_BASE((_CRT_ASSERT, f, l, 0, m)) -# else -# include -# define ACT_ASSERT_ALWAYS(m, f, l) assert(f == 0) -# endif -#endif // ACT_ASSERT_ALWAYS - -// -// ACT_ASSERT_ON_THROW -#ifndef ACT_ASSERT_ON_THROW -namespace act -{ - class CheckForNoThrow : public FileAndLine - { - public: - CheckForNoThrow(const char* msg, const char* file = 0, int line = 0) - : FileAndLine(file, line) - , m_msg(msg) - { } - - ~CheckForNoThrow() - { - const bool uc = ::std::uncaught_exception(); - if(uc == true) ACT_ASSERT_ALWAYS(m_msg, file(), line()); - } - - private: - const char* m_msg; - }; - -} // namespace act - -#define ACT_ASSERT_ON_THROW(m) act::CheckForNoThrow __dbg_check_for_nothrow(m, __FILE__, __LINE__) -#endif // ACT_ASSERT_ON_THROW - -// -// ACT_ENABLE_TRACE -#ifdef ACT_ENABLE_TRACE -# ifdef ACT_TRACE -# undef ACT_TRACE -# endif -# ifdef ACT_TRACELOG -# undef ACT_TRACELOG -# endif -#endif - -// -// ACT_TRACE -#ifndef ACT_TRACE - -#ifndef ACT_TRACE_BUFFER -#define ACT_TRACE_BUFFER 1024 -#endif - -#include -#include -#include - -#if defined(ACT_WIN32) || defined(ACT_WIN32_WCE) -#include - -namespace act -{ - struct Trace - { - void __cdecl operator()(const char* pFormat, va_list ptr, const char* pFileName = 0, int nLine = 0) const - { - char szBuf[ACT_TRACE_BUFFER] = {'\0'}; - int nLen = 0; - - if(pFileName != 0) { - int nTemp = _snprintf(szBuf + nLen, ACT_TRACE_BUFFER - nLen, "%s(%d) : ", pFileName, nLine); - if(nTemp < 0) - nLen = ACT_TRACE_BUFFER; - else nLen += nTemp; - } - - _vsnprintf(szBuf + nLen, ACT_TRACE_BUFFER - nLen, pFormat, ptr); - szBuf[ACT_TRACE_BUFFER - 1] = 0; -#ifndef UNDER_CE - ::OutputDebugStringA(szBuf); -#else - { - wchar_t wtmp[ACT_TRACE_BUFFER]; - mbstowcs(wtmp, szBuf, ACT_TRACE_BUFFER); - ::OutputDebugStringW(wtmp); - } -#endif - } - }; - -} // namespace act - -#elif defined(ACT_POSIX) -#include - -namespace act -{ - struct Trace - { - void operator()(const char* pFormat, va_list ptr, const char* pFileName = 0, int nLine = 0) const - { - char szBuf[ACT_TRACE_BUFFER] = {'\0'}; - int nLen = 0; - - if(pFileName != 0) { - int nTemp = snprintf(szBuf + nLen, ACT_TRACE_BUFFER - nLen, "%s(%d) : ", pFileName, nLine); - if(nTemp < 0) - nLen = ACT_TRACE_BUFFER; - else nLen += nTemp; - } - - vsnprintf(szBuf + nLen, ACT_TRACE_BUFFER - nLen, pFormat, ptr); - szBuf[ACT_TRACE_BUFFER - 1] = 0; - - syslog(LOG_DEBUG, "%s", szBuf); - } - }; - -} // namespace act - -#else -# error act::Trace not implemented for this platform - -#endif - -// -// act::TraceFileAndLine -namespace act -{ - class TraceFileAndLine : public FileAndLine - { - public: - TraceFileAndLine() { } - TraceFileAndLine(const FileAndLine& fl) : FileAndLine(fl) { } - TraceFileAndLine(const char * file, int line) : FileAndLine(file, line) { } - - inline void setFileAndLine(const FileAndLine* fl) - { - if(fl != 0) *static_cast(this) = *fl; - } - - inline TraceFileAndLine& operator<<(const FileAndLine& fl) - { - *static_cast(this) = fl; - return *this; - } - - // - // default va_list based trace. - void operator()(const char* pFormat, ...) - { - va_list ptr; va_start(ptr, pFormat); - Trace()(pFormat, ptr, file(), line()); - va_end(ptr); - } - - // - // Exception trace. - void operator()(const Exception& e) - { - setFileAndLine(dynamic_cast(&e)); - switch(e.GetId()) - { - case eiNoSuchAlgorithmException: - (*this)("%s['0x%08x', '%&s', '%s', '%s']\n", - typeid(e).name(), - static_cast(e).algorithm(), - e.code(), e.what(), e.where()); - break; - - default: - (*this)("%s['0x%08x', '%s', '%s']\n", - typeid(e).name(), e.code(), e.what(), e.where()); - } - } - - void operator()(const Exception& e, const char* pName) - { - setFileAndLine(dynamic_cast(&e)); - switch(e.GetId()) - { - case eiNoSuchAlgorithmException: - (*this)("%s : %s['0x%08x', '%s', '%s', '%s']\n", pName, - typeid(e).name(), - e.code(), - static_cast(e).algorithm(), - e.what(), e.where()); - break; - - default: - (*this)("%s : %s['0x%08x', '%s', '%s']\n", pName, - typeid(e).name(), - e.code(), e.what(), e.where()); - } - } - }; - -} // namespace act - -#define ACT_TRACE act::TraceFileAndLine(__FILE__, __LINE__) -#define ACT_TRACELOG act::TraceFileAndLine() - -#endif // ACT_TRACE -#endif // ACT_Debug_h diff --git a/actlibrary/MacOSX-10.6-x86_64/Release/include/actDefaultRNG.h b/actlibrary/MacOSX-10.6-x86_64/Release/include/actDefaultRNG.h deleted file mode 100644 index 6d44af6..0000000 --- a/actlibrary/MacOSX-10.6-x86_64/Release/include/actDefaultRNG.h +++ /dev/null @@ -1,24 +0,0 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actDefaultRNG.h -// Product: cv act library -// Purpose: actDefaultRNG.h provides defaults for the class IRNGAlg. -// -// Copyright: (c) 2000 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_DefaultRNG_h -#define ACT_DefaultRNG_h -namespace act -{ - class IRNGAlg; - typedef IRNGAlg* (*CreateRNGPtr)(); - - extern CreateRNGPtr CreateFastRNG; - extern CreateRNGPtr CreateStrongRNG; -} - -#endif - diff --git a/actlibrary/MacOSX-10.6-x86_64/Release/include/actDerivatorKit.h b/actlibrary/MacOSX-10.6-x86_64/Release/include/actDerivatorKit.h deleted file mode 100644 index 8339d09..0000000 --- a/actlibrary/MacOSX-10.6-x86_64/Release/include/actDerivatorKit.h +++ /dev/null @@ -1,27 +0,0 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actDerivatorKit.h -// Product: cv act library -// Purpose: declaration of all factory functions -// -// Copyright: (c) 2006 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_DerivatorKit_h -#define ACT_DerivatorKit_h - -namespace act -{ - class IDerivator; - class Blob; - - IDerivator* CreateKDF1(); - IDerivator* CreateX963KDF(); - IDerivator* CreatePBKDF1(); - IDerivator* CreatePBKDF2(); - IDerivator* CreateEACKDF(); -} -#endif - diff --git a/actlibrary/MacOSX-10.6-x86_64/Release/include/actEMSAKit.h b/actlibrary/MacOSX-10.6-x86_64/Release/include/actEMSAKit.h deleted file mode 100644 index 460f614..0000000 --- a/actlibrary/MacOSX-10.6-x86_64/Release/include/actEMSAKit.h +++ /dev/null @@ -1,28 +0,0 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actEMSAKit.h -// Product: cv act library -// Purpose: declaration of all factory functions -// -// Copyright: (c) 2000 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_EMSAKit_h -#define ACT_EMSAKit_h - -namespace act -{ - class IEMSAAlg; - - IEMSAAlg* CreateEMSA1(); - IEMSAAlg* CreatePKCS1V1_5EMSA(); - IEMSAAlg* CreateTLS_EMSA(); - IEMSAAlg* CreatePKCS1_PSS_EMSA(); - - IEMSAAlg* CreateDummyEMSA(); - -} -#endif - diff --git a/actlibrary/MacOSX-10.6-x86_64/Release/include/actEnv.h b/actlibrary/MacOSX-10.6-x86_64/Release/include/actEnv.h deleted file mode 100644 index 6a319b8..0000000 --- a/actlibrary/MacOSX-10.6-x86_64/Release/include/actEnv.h +++ /dev/null @@ -1,126 +0,0 @@ -////////////////////////////////////////////////////////////////////////// -// Name: actEnv.h -// Product: cv act library -// Purpose: Operating System environment -// -// Copyright: (c) 2009 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -// -// Autor: Markus Tesche -// Date: 04/23/2009 -////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_Env_h -#define ACT_Env_h - -// 64Bit detection ... -#if defined(_WIN64) || \ - defined(__LP64__) || \ - defined(__alpha__) || \ - defined(__ia64__) || \ - defined(__ppc64__) || \ - defined(__s390x__) || \ - defined(__x86_64__) -# define ACT_64 -#endif - -// cygwin -#if defined(__CYGWIN__) -# define ACT_CYGWIN -#endif - -// mingw -#if defined(__MINGW32__) -# define ACT_MINGW -#endif - -// Platform detection ... -#if defined(ACT_WIN32) || \ - defined(ACT_POSIX) || \ - defined(ACT_SOLARIS) || \ - defined(ACT_MACOSX) || \ - defined(ACT_WIN32_WCE) -// do nothing - -#elif defined(_WIN32_WCE) && _WIN32_WCE >= 0x500 -# define ACT_WIN32 -# define ACT_WIN32_WCE - -#elif defined(WIN32) && !defined(__CYGWIN__) -# define ACT_WIN32 - -#elif defined(_MSC_VER) || \ - defined(__BORLANDC__) || \ - defined(__BCPLUSPLUS__) || \ - defined(__MINGW32__) -# define ACT_WIN32 - -#elif defined(__linux__) || \ - defined(__CYGWIN__) || \ - defined(__FreeBSD__) || defined(__NetBSD__) || defined(__OpenBSD__) || \ - defined(__hpux) || \ - defined(__sgi) -# define ACT_POSIX - -#elif defined(_POSIX_SOURCE) || \ - defined(_XOPEN_SOURCE) -# define ACT_POSIX - -#elif defined(__sun) -# define ACT_POSIX -# define ACT_SOLARIS - -#elif defined(__APPLE__) && defined(__MACH__) -# define ACT_POSIX -# define ACT_MACOSX - -#else -# error unable to deteced system environment - -#endif - -// -// ACT_DEPRECATED definition -#if defined(_MSC_VER) -# define ACT_MSC -# if _MSC_FULL_VER >= 140050320 -# define ACT_DEPRECATED(msg) __declspec(deprecated("is deprecated: " msg)) -# else -# define ACT_DEPRECATED(msg) __declspec(deprecated) -# endif -# define ACT_STDEXT_NS std -# define ACT_STDEXT_INC(file) - -#elif defined(__GNUC__) -# define ACT_GCC -# if (__GNUC__ > 3) || (__GNUC__ == 3 && __GNUC_MINOR__ >= 1) -# define ACT_DEPRECATED(msg) __attribute__((__deprecated__)) -# endif -# define ACT_STDEXT_NS __gnu_cxx -# define ACT_STDEXT_INC(file) - -#endif - -#if !defined(ACT_DEPRECATED) -# define ACT_DEPRECATED(msg) -#endif - -// -// DLL/Shared Object symbol export/import attribte -#if defined(ACT_MSC) -# define ACT_DYNLIB_EXPORT _declspec(dllexport) -# define ACT_DYNLIB_IMPORT _declspec(dllimport) - -#elif defined(ACT_GCC) && !defined(ACT_MINGW) -# define ACT_DYNLIB_EXPORT __attribute__((visibility("default"))) -# define ACT_DYNLIB_IMPORT - -#else -# define ACT_DYNLIB_EXPORT -# define ACT_DYNLIB_IMPORT - -#endif - -#endif // ACT_Env_h diff --git a/actlibrary/MacOSX-10.6-x86_64/Release/include/actException.h b/actlibrary/MacOSX-10.6-x86_64/Release/include/actException.h deleted file mode 100644 index caa9636..0000000 --- a/actlibrary/MacOSX-10.6-x86_64/Release/include/actException.h +++ /dev/null @@ -1,1112 +0,0 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actException.h -// Product: cv act library -// Purpose: exception hierarchy -// -// Copyright: (c) 2000 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_Exception_h -#define ACT_Exception_h - -#include -#include - -#include "actMove.h" -#include "actBlob.h" - -namespace act -{ - // --------------------------------------------------------------------------- - enum ExceptionId - { - eiException = 0, - eiBadException = eiException + 1, - eiNullPointerException, - eiOutOfRangeException, - - eiBadCastException = eiException + 10, - eiBadNumericCast, - eiNegativeOverflow, - eiPositiveOverflow, - - eiRuntimeException = eiException + 20, - eiBadAllocException, - eiNotSupportedException, - eiNotImplementedException, - eiInvalidParameterException, - eiSynchronizationException, - - eiLogicalException = eiException + 40, - eiASN1Exception, - eiNoSuchDLLException, - eiPasswordException, - eiArithmeticException, - eiMessageDigestException, - eiPaddingException, - eiSignatureException, - - eiAlgorithmException = eiException + 80, - eiInvalidAlgorithmParameterException, - eiNoSuchAlgorithmException, - - eiCertificateException = eiException + 80, - eiInvalidCertificateException, - eiCertificateEncodingException, - eiCertificateExpiredException, - eiCertificateNotYetValidException, - eiCertificateParsingException, - - eiKeyException = eiException + 100, - eiInvalidKeyException, - eiKeyManagementException, - - eiEACException = eiException + 120, - eiEACDataException, - eiEACMRZException, - eiEACCVCertException, - - eiSmartcardException = eiException + 140, - eiCardOutOfMemoryException, - eiInvalidPinException, - eiPinLockedException, - eiPinExpiredException, - eiPinLenRangeException, - eiInvalidCRKeyException, - eiInvalidCardException, - eiInvalidAuthException, - eiInvalidAuthObjectException, - eiAuthProtocolException, - eiAuthConstrainedException, - eiSecureMessagingException, - eiSMWrapException, - eiSMUnwrapException, - - eiSubsystemException = eiException + 180, - eiNoSuchSubsystemException, - }; - -#ifndef UNDER_CE_30 - - // --------------------------------------------------------------------------- - class FileAndLine - { - public: - FileAndLine(const char* file = 0, int line = 0) - : m_line(line) - , m_file(file) - { } - - FileAndLine(const FileAndLine& other) - : m_line(other.line()) - , m_file(other.file()) - { } - - int line() const { return m_line; } - const char* file() const { return m_file; } - - // assignment operators. - FileAndLine& operator=(const FileAndLine& other) - { - m_line = other.line(); - m_file = other.file(); - return *this; - } - - private: - int m_line; - const char* m_file; - }; - - // - // base class for all exceptions thrown by cv act library - // --------------------------------------------------------------------------- - class Exception - { - public: - typedef Exception Type; - - explicit Exception(const char* msg = 0, const char* where = 0, ulong code = 0) - : m_what(msg) - , m_where(where) - , m_code(code) - { } - - explicit Exception(const std::exception& other) - : m_what(other.what()) - , m_where(0) - , m_code(0) - { } - - template - explicit Exception(const T& other) - : m_what(other.what()) - , m_where(other.where()) - , m_code(0) - { } - - virtual ~Exception() - { } - - template - _ExceptionT* TypedClone() const - { - return new(std::nothrow) _ExceptionT(m_what, m_where, m_code); - } - - template - _ExceptionT* TypedClone(const ParamT& param) const - { - return new(std::nothrow) _ExceptionT(m_what, m_where, param); - } - - template - void TypedThrow() const { throw _ExceptionT(m_what, m_where, m_code); } - - template - void TypedThrow(const ParamT& param) const { throw _ExceptionT(m_what, m_where, param); } - - virtual Exception* Clone() const { return new(std::nothrow) Exception(*this); } - virtual int GetId() const { return eiException; } - virtual void Throw() const { throw Exception(*this); } - - const char* what() const { return m_what != 0 ? m_what : ""; } - const char* where() const { return m_where != 0 ? m_where : ""; } - ulong code() const { return m_code; } - - template - friend ExceptionT& modify(ExceptionT& e, const char* what, const char* where) - { - if(what != 0) e.m_what = what; - if(where != 0) e.m_where = where; - return e; - } - - protected: - const char* m_what; - const char* m_where; - ulong m_code; - }; - - // - // ExceptionType<> - // --------------------------------------------------------------------------- - template - < - const int _exceptionId, - class ExceptionT, - class BaseT, - typename OtherT = void - > - class ExceptionType : public BaseT, public OtherT - { - protected: - typedef BaseT BaseType; - typedef OtherT OtherType; - enum { exceptionId = _exceptionId }; - - public: - ExceptionType(const char* msg, const char* where, ulong code) - : BaseType(msg, where, code) - , OtherT() - { } - - ExceptionT& operator<<(const OtherType& other) - { - *static_cast(this) = other; - return *static_cast(this); - } - - template - _ExceptionT* TypedClone() const - { - _ExceptionT* e = new(std::nothrow) _ExceptionT(BaseT::m_what, BaseT::m_where, BaseT::m_code); - if(e != 0) *e << *this; - return e; - } - - virtual void Throw() const { throw ExceptionT(BaseT::m_what, BaseT::m_where, BaseT::m_code); } - virtual int GetId() const { return exceptionId; } - }; - - template - < - const int _exceptionId, - class ExceptionT, - class BaseT - > - class ExceptionType<_exceptionId, ExceptionT, BaseT, void> : public BaseT - { - protected: - typedef BaseT BaseType; - enum { exceptionId = _exceptionId }; - - public: - ExceptionType(const char* msg, const char* where, ulong code) - : BaseType(msg, where, code) - { } - - virtual void Throw() const { throw ExceptionT(BaseT::m_what, BaseT::m_where, BaseT::m_code); } - virtual int GetId() const { return exceptionId; } - }; - - // --------------------------------------------------------------------------- - class BadException : - public ExceptionType - { - public: - typedef ExceptionType BaseType; - typedef BadException Type; - using BaseType::exceptionId; - - BadException(const char* msg = 0, const char* where = 0, ulong code = 0) - : BaseType(msg, where, code) - { } - }; - - class NullPointerException : - public ExceptionType - { - public: - typedef ExceptionType BaseType; - typedef NullPointerException Type; - using BaseType::exceptionId; - - NullPointerException(const char* msg = 0, const char* where = 0, ulong code = 0) - : BaseType(msg, where, code) - { } - }; - - class OutOfRangeException : - public ExceptionType - { - public: - typedef ExceptionType BaseType; - typedef OutOfRangeException Type; - using BaseType::exceptionId; - - OutOfRangeException(const char* msg = 0, const char* where = 0, ulong code = 0) - : BaseType(msg, where, code) - { } - }; - - // --------------------------------------------------------------------------- - class BadCastException : - public ExceptionType - { - public: - typedef ExceptionType BaseType; - typedef BadCastException Type; - using BaseType::exceptionId; - - BadCastException(const char* msg = 0, const char* where = 0, ulong code = 0) - : BaseType(msg, where, code) - { } - }; - - class BadNumericCast : - public ExceptionType - { - public: - typedef ExceptionType BaseType; - typedef BadNumericCast Type; - using BaseType::exceptionId; - - BadNumericCast(const char* msg = 0, const char* where = 0, ulong code = 0) - : BaseType(msg, where, code) - { } - - template - void operator()(overflow_type overflow) - { - switch(eiBadNumericCast + overflow) - { - case eiNegativeOverflow: TypedThrow >(); - case eiPositiveOverflow: TypedThrow >(); - default: /* do nothing */; - } - } - }; - - // --------------------------------------------------------------------------- - class RuntimeException : - public ExceptionType - { - public: - typedef ExceptionType BaseType; - typedef RuntimeException Type; - using BaseType::exceptionId; - - RuntimeException(const char* msg = 0, const char* where = 0, ulong code = 0) - : BaseType(msg, where, code) - { } - }; - - class BadAllocException : - public ExceptionType - { - public: - typedef ExceptionType BaseType; - typedef BadAllocException Type; - using BaseType::exceptionId; - - BadAllocException(const char* msg = 0, const char* where = 0, ulong code = 0) - : BaseType(msg, where, code) - { } - }; - - class NotSupportedException : - public ExceptionType - { - public: - typedef ExceptionType BaseType; - typedef NotSupportedException Type; - using BaseType::exceptionId; - using BaseType::operator<<; - - explicit NotSupportedException(const char* msg = 0, const char* where = 0, ulong code = 0) - : BaseType(msg, where, code) - { } - - virtual Type* Clone() const { return TypedClone(); } - }; - - class NotImplementedException : - public ExceptionType - { - public: - typedef ExceptionType BaseType; - typedef NotImplementedException Type; - using BaseType::exceptionId; - using BaseType::operator<<; - - NotImplementedException(const char* msg = 0, const char* where = 0, ulong code = 0) - : BaseType(msg, where, code) - { } - - virtual Type* Clone() const { return TypedClone(); } - }; - - class InvalidParameterException : - public ExceptionType - { - public: - typedef ExceptionType BaseType; - typedef InvalidParameterException Type; - using BaseType::exceptionId; - using BaseType::operator<<; - - InvalidParameterException(const char* msg = 0, const char* where = 0, ulong code = 0) - : BaseType(msg, where, code) - { } - - virtual Type* Clone() const { return TypedClone(); } - }; - - class SynchronizationException : - public ExceptionType - { - public: - typedef ExceptionType BaseType; - typedef SynchronizationException Type; - using BaseType::exceptionId; - using BaseType::operator<<; - - SynchronizationException(const char* msg = 0, const char* where = 0, ulong code = 0) - : BaseType(msg, where, code) - { } - - virtual Type* Clone() const { return TypedClone(); } - }; - - // --------------------------------------------------------------------------- - class LogicalException : public Exception - { - public: - typedef Exception BaseType; - typedef LogicalException Type; - - LogicalException(const char* msg = 0, const char* where = 0, ulong code = 0) - : Exception(msg, where, code) - { } - - virtual Type* Clone() const { return TypedClone(); } - virtual void Throw() const { throw Type(m_what, m_where, m_code); } - virtual int GetId() const { return eiLogicalException; } - }; - - class ASN1Exception : public LogicalException - { - public: - typedef LogicalException BaseType; - typedef ASN1Exception Type; - - ASN1Exception(const char* msg = 0, const char* where = 0, ulong code = 0) - : LogicalException(msg, where, code) - { } - - virtual Type* Clone() const { return TypedClone(); } - virtual void Throw() const { throw Type(m_what, m_where, m_code); } - virtual int GetId() const { return eiASN1Exception; } - }; - - class NoSuchDLLException : public LogicalException - { - public: - typedef LogicalException BaseType; - typedef NoSuchDLLException Type; - - NoSuchDLLException(const char* msg = 0, const char* where = 0, ulong code = 0) - : LogicalException(msg, where, code) - { } - - virtual Type* Clone() const { return TypedClone(); } - virtual void Throw() const { throw Type(m_what, m_where, m_code); } - virtual int GetId() const { return eiNoSuchDLLException; } - }; - - class PasswordException : public LogicalException - { - public: - typedef LogicalException BaseType; - typedef PasswordException Type; - - PasswordException(const char* msg = 0, const char* where = 0, ulong code = 0) - : LogicalException(msg, where, code) - { } - - virtual Type* Clone() const { return TypedClone(); } - virtual void Throw() const { throw Type(m_what, m_where, m_code); } - virtual int GetId() const { return eiPasswordException; } - }; - - class ArithmeticException : public LogicalException - { - public: - typedef LogicalException BaseType; - typedef ArithmeticException Type; - - ArithmeticException(const char* msg = 0, const char* where = 0, ulong code = 0) - : LogicalException(msg, where, code) - { } - - virtual Type* Clone() const { return TypedClone(); } - virtual void Throw() const { throw Type(m_what, m_where, m_code); } - virtual int GetId() const { return eiArithmeticException; } - }; - - class MessageDigestException : public LogicalException - { - public: - typedef LogicalException BaseType; - typedef MessageDigestException Type; - - MessageDigestException(const char* msg = 0, const char* where = 0, ulong code = 0) - : LogicalException(msg, where, code) - { } - - virtual Type* Clone() const { return TypedClone(); } - virtual void Throw() const { throw Type(m_what, m_where, m_code); } - virtual int GetId() const { return eiMessageDigestException; } - }; - - class PaddingException : public LogicalException - { - public: - typedef LogicalException BaseType; - typedef PaddingException Type; - - PaddingException(const char* msg = 0, const char* where = 0, ulong code = 0) - : LogicalException(msg, where, code) - { } - - virtual Type* Clone() const { return TypedClone(); } - virtual void Throw() const { throw Type(m_what, m_where, m_code); } - virtual int GetId() const { return eiPaddingException; } - }; - - class SignatureException : public LogicalException - { - public: - typedef LogicalException BaseType; - typedef SignatureException Type; - - SignatureException(const char* msg = 0, const char* where = 0, ulong code = 0) - : LogicalException(msg, where, code) - { } - - virtual Type* Clone() const { return TypedClone(); } - virtual void Throw() const { throw Type(m_what, m_where, m_code); } - virtual int GetId() const { return eiSignatureException; } - }; - - // --------------------------------------------------------------------------- - class AlgorithmException : public LogicalException - { - public: - typedef LogicalException BaseType; - typedef AlgorithmException Type; - - AlgorithmException(const char* msg = 0, const char* where = 0, ulong code = 0) - : LogicalException(msg, where, code) - { } - - virtual Type* Clone() const { return TypedClone(); } - virtual void Throw() const { throw Type(m_what, m_where, m_code); } - virtual int GetId() const { return eiAlgorithmException; } - }; - - class InvalidAlgorithmParameterException : public AlgorithmException - { - public: - typedef AlgorithmException BaseType; - typedef InvalidAlgorithmParameterException Type; - - InvalidAlgorithmParameterException(const char* msg = 0, const char* where = 0, ulong code = 0) - : AlgorithmException(msg, where, code) - { } - - virtual Type* Clone() const { return TypedClone(); } - virtual void Throw() const { throw Type(m_what, m_where, m_code); } - virtual int GetId() const { return eiInvalidAlgorithmParameterException; } - }; - - class NoSuchAlgorithmException : public AlgorithmException - { - public: - typedef AlgorithmException BaseType; - typedef NoSuchAlgorithmException Type; - - NoSuchAlgorithmException(const char* msg = 0, const char* where = 0, const char* algorithm = 0) - : AlgorithmException(msg, where) - , m_algorithm(algorithm) - { - m_algorithm.push_back(0); - } - - // GCC 4.2.1 whats to have it - virtual ~NoSuchAlgorithmException() - { } - - virtual Type* Clone() const { return TypedClone(algorithm()); } - virtual void Throw() const { throw Type(m_what, m_where, algorithm()); } - virtual int GetId() const { return eiNoSuchAlgorithmException; } - - const char* algorithm() const { return reinterpret_cast(&m_algorithm[0]); } - - protected: - mutable Blob m_algorithm; - }; - - // --------------------------------------------------------------------------- - class CertificateException : public LogicalException - { - public: - typedef LogicalException BaseType; - typedef CertificateException Type; - - CertificateException(const char* msg = 0, const char* where = 0, ulong code = 0) - : LogicalException(msg, where, code) - { } - - virtual Type* Clone() const { return TypedClone(); } - virtual void Throw() const { throw Type(m_what, m_where, m_code); } - virtual int GetId() const { return eiCertificateException; } - }; - - class InvalidCertificateException : public CertificateException - { - public: - typedef CertificateException BaseType; - typedef InvalidCertificateException Type; - - InvalidCertificateException(const char* msg = 0, const char* where = 0, ulong code = 0) - : CertificateException(msg, where, code) - { } - - virtual Type* Clone() const { return TypedClone(); } - virtual void Throw() const { throw Type(m_what, m_where, m_code); } - virtual int GetId() const { return eiInvalidCertificateException; } - }; - - class CertificateEncodingException : public CertificateException - { - public: - typedef CertificateException BaseType; - typedef CertificateEncodingException Type; - - CertificateEncodingException(const char* msg = 0, const char* where = 0, ulong code = 0) - : CertificateException(msg, where, code) - { } - - virtual Type* Clone() const { return TypedClone(); } - virtual void Throw() const { throw Type(m_what, m_where, m_code); } - virtual int GetId() const { return eiCertificateEncodingException; } - }; - - class CertificateExpiredException : public CertificateException - { - public: - typedef CertificateException BaseType; - typedef CertificateExpiredException Type; - - CertificateExpiredException(const char* msg = 0, const char* where = 0, ulong code = 0) - : CertificateException(msg, where, code) - { } - - virtual Type* Clone() const { return TypedClone(); } - virtual void Throw() const { throw Type(m_what, m_where, m_code); } - virtual int GetId() const { return eiCertificateExpiredException; } - }; - - class CertificateNotYetValidException : public CertificateException - { - public: - typedef CertificateException BaseType; - typedef CertificateNotYetValidException Type; - - CertificateNotYetValidException(const char* msg = 0, const char* where = 0, ulong code = 0) - : CertificateException(msg, where, code) - { } - - virtual Type* Clone() const { return TypedClone(); } - virtual void Throw() const { throw Type(m_what, m_where, m_code); } - virtual int GetId() const { return eiCertificateNotYetValidException; } - }; - - class CertificateParsingException : public CertificateException - { - public: - typedef CertificateException BaseType; - typedef CertificateParsingException Type; - - CertificateParsingException(const char* msg = 0, const char* where = 0, ulong code = 0) - : CertificateException(msg, where, code) - { } - - virtual Type* Clone() const { return TypedClone(); } - virtual void Throw() const { throw Type(m_what, m_where, m_code); } - virtual int GetId() const { return eiCertificateParsingException; } - }; - - // --------------------------------------------------------------------------- - class KeyException : public LogicalException - { - public: - typedef LogicalException BaseType; - typedef KeyException Type; - - KeyException(const char* msg = 0, const char* where = 0, ulong code = 0) - : LogicalException(msg, where, code) - { } - - virtual Type* Clone() const { return TypedClone(); } - virtual void Throw() const { throw Type(m_what, m_where, m_code); } - virtual int GetId() const { return eiKeyException; } - }; - - class InvalidKeyException : public KeyException - { - public: - typedef KeyException BaseType; - typedef InvalidKeyException Type; - - InvalidKeyException(const char* msg = 0, const char* where = 0, ulong code = 0) - : KeyException(msg, where, code) - { } - - virtual Type* Clone() const { return TypedClone(); } - virtual void Throw() const { throw Type(m_what, m_where, m_code); } - virtual int GetId() const { return eiInvalidKeyException; } - }; - - class KeyManagementException : public KeyException - { - public: - typedef KeyException BaseType; - typedef KeyManagementException Type; - - KeyManagementException(const char* msg = 0, const char* where = 0, ulong code = 0) - : KeyException(msg, where, code) - { } - - virtual Type* Clone() const { return TypedClone(); } - virtual void Throw() const { throw Type(m_what, m_where, m_code); } - virtual int GetId() const { return eiKeyManagementException; } - }; - - // --------------------------------------------------------------------------- - class EACException : public LogicalException - { - public: - typedef LogicalException BaseType; - typedef EACException Type; - - EACException(const char* msg = 0, const char* where = 0, ulong code = 0) - : LogicalException(msg, where, code) - { } - - virtual Type* Clone() const { return TypedClone(); } - virtual void Throw() const { throw Type(m_what, m_where, m_code); } - virtual int GetId() const { return eiEACException; } - }; - - class EACDataException : public EACException - { - public: - typedef EACException BaseType; - typedef EACDataException Type; - - EACDataException(const char* msg = 0, const char* where = 0, ulong code = 0) - : EACException(msg, where, code) - { } - - virtual Type* Clone() const { return TypedClone(); } - virtual void Throw() const { throw Type(m_what, m_where, m_code); } - virtual int GetId() const { return eiEACDataException; } - }; - - class EACMRZException : public EACDataException - { - public: - typedef EACDataException BaseType; - typedef EACMRZException Type; - - EACMRZException(const char* msg = 0, const char* where = 0, ulong code = 0) - : EACDataException(msg, where, code) - { } - - virtual Type* Clone() const { return TypedClone(); } - virtual void Throw() const { throw Type(m_what, m_where, m_code); } - virtual int GetId() const { return eiEACMRZException; } - }; - - class EACCVCertException : public EACDataException - { - public: - typedef EACDataException BaseType; - typedef EACCVCertException Type; - - EACCVCertException(const char* msg = 0, const char* where = 0, ulong code = 0) - : EACDataException(msg, where, code) - { } - - virtual Type* Clone() const { return TypedClone(); } - virtual void Throw() const { throw Type(m_what, m_where, m_code); } - virtual int GetId() const { return eiEACCVCertException; } - }; - - // --------------------------------------------------------------------------- - class SmartcardException : public LogicalException - { - public: - typedef LogicalException BaseType; - typedef SmartcardException Type; - - SmartcardException(const char* msg = 0, const char* where = 0, ulong code = 0) - : LogicalException(msg, where, code) - { } - - virtual Type* Clone() const { return TypedClone(); } - virtual void Throw() const { throw Type(m_what, m_where, m_code); } - virtual int GetId() const { return eiSmartcardException; } - }; - - class CardOutOfMemoryException : public SmartcardException - { - public: - typedef SmartcardException BaseType; - typedef CardOutOfMemoryException Type; - - CardOutOfMemoryException(const char* msg = 0, const char* where = 0, ulong code = 0) - : SmartcardException(msg, where, code) - { } - - virtual Type* Clone() const { return TypedClone(); } - virtual void Throw() const { throw Type(m_what, m_where, m_code); } - virtual int GetId() const { return eiCardOutOfMemoryException; } - }; - - class InvalidPinException : public SmartcardException - { - public: - typedef SmartcardException BaseType; - typedef InvalidPinException Type; - - InvalidPinException(const char* msg = 0, const char* where = 0, ulong code = 0) - : SmartcardException(msg, where, code) - { } - - virtual Type* Clone() const { return TypedClone(); } - virtual void Throw() const { throw Type(m_what, m_where, m_code); } - virtual int GetId() const { return eiInvalidPinException; } - }; - - class PinLockedException : public SmartcardException - { - public: - typedef SmartcardException BaseType; - typedef PinLockedException Type; - - PinLockedException(const char* msg = 0, const char* where = 0, ulong code = 0) - : SmartcardException(msg, where, code) - { } - - virtual Type* Clone() const { return TypedClone(); } - virtual void Throw() const { throw Type(m_what, m_where, m_code); } - virtual int GetId() const { return eiPinLockedException; } - }; - - class PinExpiredException : public SmartcardException - { - public: - typedef SmartcardException BaseType; - typedef PinExpiredException Type; - - PinExpiredException(const char* msg = 0, const char* where = 0, ulong code = 0) - : SmartcardException(msg, where, code) - { } - - virtual Type* Clone() const { return TypedClone(); } - virtual void Throw() const { throw Type(m_what, m_where, m_code); } - virtual int GetId() const { return eiPinExpiredException; } - }; - - class PinLenRangeException : public SmartcardException - { - public: - typedef SmartcardException BaseType; - typedef PinLenRangeException Type; - - PinLenRangeException(const char* msg = 0, const char* where = 0, ulong code = 0) - : SmartcardException(msg, where, code) - { } - - virtual Type* Clone() const { return TypedClone(); } - virtual void Throw() const { throw Type(m_what, m_where, m_code); } - virtual int GetId() const { return eiPinLenRangeException; } - }; - - class InvalidCRKeyException : public SmartcardException - { - public: - typedef SmartcardException BaseType; - typedef InvalidCRKeyException Type; - - InvalidCRKeyException(const char* msg = 0, const char* where = 0, ulong code = 0) - : SmartcardException(msg, where, code) - { } - - virtual Type* Clone() const { return TypedClone(); } - virtual void Throw() const { throw Type(m_what, m_where, m_code); } - virtual int GetId() const { return eiInvalidCRKeyException; } - }; - - class InvalidCardException : public SmartcardException - { - public: - typedef SmartcardException BaseType; - typedef InvalidCardException Type; - - InvalidCardException(const char* msg = 0, const char* where = 0, ulong code = 0) - : SmartcardException(msg, where, code) - { } - - virtual Type* Clone() const { return TypedClone(); } - virtual void Throw() const { throw Type(m_what, m_where, m_code); } - virtual int GetId() const { return eiInvalidCardException; } - }; - - class InvalidAuthException : public SmartcardException - { - public: - typedef SmartcardException BaseType; - typedef InvalidAuthException Type; - - InvalidAuthException(const char* msg = 0, const char* where = 0, ulong code = 0) - : SmartcardException(msg, where, code) - { } - - virtual Type* Clone() const { return TypedClone(); } - virtual void Throw() const { throw Type(m_what, m_where, m_code); } - virtual int GetId() const { return eiInvalidAuthException; } - }; - - class InvalidAuthObjectException : public SmartcardException - { - public: - typedef SmartcardException BaseType; - typedef InvalidAuthObjectException Type; - - InvalidAuthObjectException(const char* msg = 0, const char* where = 0, ulong code = 0) - : SmartcardException(msg, where, code) - { } - - virtual Type* Clone() const { return TypedClone(); } - virtual void Throw() const { throw Type(m_what, m_where, m_code); } - virtual int GetId() const { return eiInvalidAuthObjectException; } - }; - - class AuthProtocolException : public SmartcardException - { - public: - typedef SmartcardException BaseType; - typedef AuthProtocolException Type; - - AuthProtocolException(const char* msg = 0, const char* where = 0, ulong code = 0) - : SmartcardException(msg, where, code) - { } - - virtual Type* Clone() const { return TypedClone(); } - virtual void Throw() const { throw Type(m_what, m_where, m_code); } - virtual int GetId() const { return eiAuthProtocolException; } - }; - - class AuthConstrainedException : public SmartcardException - { - public: - typedef SmartcardException BaseType; - typedef AuthConstrainedException Type; - - AuthConstrainedException(const char* msg = 0, const char* where = 0, ulong code = 0) - : SmartcardException(msg, where, code) - { } - - virtual Type* Clone() const { return TypedClone(); } - virtual void Throw() const { throw Type(m_what, m_where, m_code); } - virtual int GetId() const { return eiAuthConstrainedException; } - }; - - class SecureMessagingException : public SmartcardException - { - public: - typedef SmartcardException BaseType; - typedef SecureMessagingException Type; - - SecureMessagingException(const char* msg = 0, const char* where = 0, ulong code = 0) - : SmartcardException(msg, where, code) - { } - - virtual Type* Clone() const { return TypedClone(); } - virtual void Throw() const { throw Type(m_what, m_where, m_code); } - virtual int GetId() const { return eiSecureMessagingException; } - }; - - class SMWrapException : public SecureMessagingException - { - public: - typedef SecureMessagingException BaseType; - typedef SMWrapException Type; - - SMWrapException(const char* msg = 0, const char* where = 0, ulong code = 0) - : SecureMessagingException(msg, where, code) - { } - - virtual Type* Clone() const { return TypedClone(); } - virtual void Throw() const { throw Type(m_what, m_where, m_code); } - virtual int GetId() const { return eiSMWrapException; } - }; - - class SMUnwrapException : public SecureMessagingException - { - public: - typedef SecureMessagingException BaseType; - typedef SMUnwrapException Type; - - SMUnwrapException(const char* msg = 0, const char* where = 0, ulong code = 0) - : SecureMessagingException(msg, where, code) - { } - - virtual Type* Clone() const { return TypedClone(); } - virtual void Throw() const { throw Type(m_what, m_where, m_code); } - virtual int GetId() const { return eiSMUnwrapException; } - }; - - // --------------------------------------------------------------------------- - class SubsystemException : public LogicalException - { - public: - typedef LogicalException BaseType; - typedef SubsystemException Type; - - SubsystemException(const char* msg = 0, const char* where = 0, ulong code = 0) - : LogicalException(msg, where, code) - { } - - virtual Type* Clone() const { return TypedClone(); } - virtual void Throw() const { throw Type(m_what, m_where, m_code); } - virtual int GetId() const { return eiSubsystemException; } - }; - - class NoSuchSubsystemException : public SubsystemException - { - public: - typedef SubsystemException BaseType; - typedef NoSuchSubsystemException Type; - - NoSuchSubsystemException(const char* msg = 0, const char* where = 0, ulong code = 0) - : SubsystemException(msg, where, code) - { } - - virtual Type* Clone() const { return TypedClone(); } - virtual void Throw() const { throw Type(m_what, m_where, m_code); } - virtual int GetId() const { return eiNoSuchSubsystemException; } - }; - -#else - - #define throw(_x) _exit(_x) - - int Exception(const char* msg = 0, const char* where = 0, ulong code = 0); - int BadException(const char* msg = 0, const char* where = 0, ulong code = 0); - int NullPointerException(const char* msg = 0, const char* where = 0, ulong code = 0); - int OutOfRangeException(const char* msg = 0, const char* where = 0, ulong code = 0); - int BadCastException(const char* msg = 0, const char* where = 0, ulong code = 0); - int BadNumericCast(const char* msg = 0, const char* where = 0, ulong code = 0); - int RuntimeException(const char* msg = 0, const char* where = 0, ulong code = 0); - int BadAllocException(const char* msg = 0, const char* where = 0, ulong code = 0); - int NotSupportedException(const char* msg = 0, const char* where = 0, ulong code = 0); - int NotImplementedException(const char* msg = 0, const char* where = 0, ulong code = 0); - int InvalidParameterException(const char* msg = 0, const char* where = 0, ulong code = 0); - int SynchronizationException(const char* msg = 0, const char* where = 0, ulong code = 0); - int LogicalException(const char* msg = 0, const char* where = 0, ulong code = 0); - int AlgorithmException(const char* msg = 0, const char* where = 0, ulong code = 0); - int InvalidAlgorithmParameterException(const char* msg = 0, const char* where = 0, ulong code = 0); - int NoSuchAlgorithmException(const char* msg = 0, const char* where = 0, const char* algorithm); - int ArithmeticException(const char* msg = 0, const char* where = 0, ulong code = 0); - int CertificateException(const char* msg = 0, const char* where = 0, ulong code = 0); - int CertificateEncodingException(const char* msg = 0, const char* where = 0, ulong code = 0); - int CertificateExpiredException(const char* msg = 0, const char* where = 0, ulong code = 0); - int CertificateNotYetValidException(const char* msg = 0, const char* where = 0, ulong code = 0); - int CertificateParsingException(const char* msg = 0, const char* where = 0, ulong code = 0); - int KeyException(const char* msg = 0, const char* where = 0, ulong code = 0); - int InvalidKeyException(const char* msg = 0, const char* where = 0, ulong code = 0); - int KeyManagementException(const char* msg = 0, const char* where = 0, ulong code = 0); - int MessageDigestException(const char* msg = 0, const char* where = 0, ulong code = 0); - int PaddingException(const char* msg = 0, const char* where = 0, ulong code = 0); - int SignatureException(const char* msg = 0, const char* where = 0, ulong code = 0); - int EACException(const char* msg = 0, const char* where = 0, ulong code = 0); - int EACDataException(const char* msg = 0, const char* where = 0, ulong code = 0); - int EACMRZException(const char* msg = 0, const char* where = 0, ulong code = 0); - int EACCVCertException(const char* msg = 0, const char* where = 0, ulong code = 0); - int SmartcardException(const char* msg = 0, const char* where = 0, ulong code = 0); - int CardOutOfMemoryException(const char* msg = 0, const char* where = 0, ulong code = 0); - int InvalidPinException(const char* msg = 0, const char* where = 0, ulong code = 0); - int InvalidCardException(const char* msg = 0, const char* where = 0, ulong code = 0); - int InvalidAuthObjectException(const char* msg = 0, const char* where = 0, ulong code = 0); - int AuthProtocolException(const char* msg = 0, const char* where = 0, ulong code = 0); - int AuthConstrainedException(const char* msg = 0, const char* where = 0, ulong code = 0); - int SecureMessagingException(const char* msg = 0, const char* where = 0, ulong code = 0); - int SMWrapException(const char* msg = 0, const char* where = 0, ulong code = 0); - int SMUnwrapException(const char* msg = 0, const char* where = 0, ulong code = 0); - int SubsystemException(const char* msg = 0, const char* where = 0, ulong code = 0); - int NoSuchSubsystemException(const char* msg = 0, const char* where = 0, ulong code = 0); - -#endif // UNDER_CE_30 - -}// namespace act - -#endif // ACT_Exception_h diff --git a/actlibrary/MacOSX-10.6-x86_64/Release/include/actHandle.h b/actlibrary/MacOSX-10.6-x86_64/Release/include/actHandle.h deleted file mode 100644 index fb01279..0000000 --- a/actlibrary/MacOSX-10.6-x86_64/Release/include/actHandle.h +++ /dev/null @@ -1,98 +0,0 @@ -////////////////////////////////////////////////////////////////////////// -// Name: actHandle.h -// Product: cv act library -// Purpose: Handle helper templates -// -// Copyright: (c) 2010 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -// -// Autor: Markus Tesche -// Date: 07/27/2010 -////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_Handle_h -#define ACT_Handle_h - -#include "actMove.h" -#include "actException.h" - -namespace act -{ - // - // Handle - class Handle - { - public: - virtual ~Handle() { /* essential */ } - - template TypeT* as() const; - template TypeT& requiredAs() const; - - template - friend inline TypeT& getPointer(const Handle& handle) - { - return handle.as(); - } - - template - friend inline TypeT& getRef(const Handle& handle) - { - return handle.requiredAs(); - } - }; - - // - // ValueHandle<> - template - class ValueHandle : public Handle - { - public: - typedef TypeT value_type; - - ValueHandle() : m_val() { } - explicit ValueHandle(const TypeT& other) : m_val(other) { } - - template - explicit ValueHandle(move_from other) : m_val() { other.move(m_val); } - - template void operator=(const O& other) { m_val = other; } - template void operator=(move_from other) { other.move(m_val); } - - inline TypeT& valueRef() const { return m_val; } - - inline operator TypeT&() const { return m_val; } - - inline TypeT& operator*() const { return m_val; } - inline TypeT* operator->() const { return &m_val; } - - private: - mutable TypeT m_val; - - private: - friend class Handle; - }; - - // - // Handle::as<> - template - inline TypeT* Handle::as() const - { - const ValueHandle* self = dynamic_cast*>(this); - return self != 0 ? &self->m_val : 0; - } - - // - // Handle::requiredAs<> - template - inline TypeT& Handle::requiredAs() const - { - TypeT* value = as(); - if(value != 0) return *value; - throw NullPointerException("invalid handle value type"); - } - -} // namespace act - -#endif // ACT_Handle_h diff --git a/actlibrary/MacOSX-10.6-x86_64/Release/include/actHashKit.h b/actlibrary/MacOSX-10.6-x86_64/Release/include/actHashKit.h deleted file mode 100644 index d2a817b..0000000 --- a/actlibrary/MacOSX-10.6-x86_64/Release/include/actHashKit.h +++ /dev/null @@ -1,32 +0,0 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actHashKit.h -// Product: cv act library -// Purpose: declaration of all factory functions -// -// Copyright: (c) 2000 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_HASHKIT_H -#define ACT_HASHKIT_H - -namespace act -{ - class IHashAlg; - IHashAlg* CreateMD2(); - IHashAlg* CreateMD4(); - IHashAlg* CreateMD5(); - IHashAlg* CreateRipemd128(); - IHashAlg* CreateRipemd160(); - IHashAlg* CreateSHA0(); - IHashAlg* CreateSHA1(); - IHashAlg* CreateSHA224(); - IHashAlg* CreateSHA256(); - IHashAlg* CreateSHA384(); - IHashAlg* CreateSHA512(); - IHashAlg* CreateDummyHash(); -} -#endif - diff --git a/actlibrary/MacOSX-10.6-x86_64/Release/include/actHashReg.h b/actlibrary/MacOSX-10.6-x86_64/Release/include/actHashReg.h deleted file mode 100644 index 896039d..0000000 --- a/actlibrary/MacOSX-10.6-x86_64/Release/include/actHashReg.h +++ /dev/null @@ -1,40 +0,0 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actHashReg.h -// Product: cv act library -// Purpose: registry for factory functions in actHashKit.h -// -// Copyright: (c) 2000 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_HashReg_H -#define ACT_HashReg_H - -namespace act -{ - class IHashAlg; - - typedef IHashAlg* (*CreateHashPtr)(); - - struct HashMapEntry - { - const char* Name; - CreateHashPtr CreatePtr; - }; - - class HashReg - { - public: - static IHashAlg* CreateHashAlg(const char* name); - static CreateHashPtr GetCreatePointer(const char* name); - static const char* GetName(void* createptr); - static const char* GetNextName(const char* name); - static void Insert(const char* name, CreateHashPtr createptr); - static void Insert(const HashMapEntry* hashmap); - }; - -} // namespace act - -#endif // ACT_HashReg_H diff --git a/actlibrary/MacOSX-10.6-x86_64/Release/include/actIAlgorithm.h b/actlibrary/MacOSX-10.6-x86_64/Release/include/actIAlgorithm.h deleted file mode 100644 index 23cdb2c..0000000 --- a/actlibrary/MacOSX-10.6-x86_64/Release/include/actIAlgorithm.h +++ /dev/null @@ -1,38 +0,0 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actIAlgorithm.h -// Product: cv act library -// Purpose: IAlgorithm is an abstract base. All concrete algorithm-classes are -// derived from IAlgorithm. -// -// Copyright: (c) 2000 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_IAlgorithm_h -#define ACT_IAlgorithm_h - -#include "actBasics.h" - -namespace act -{ - class Blob; - - class IAlgorithm - { - public: - virtual ~IAlgorithm() { } - - virtual void Write(const Blob& input) = 0; - virtual void Write(const byte* input, size_t insize) = 0; - virtual void Finalize() = 0; - virtual size_t GetAvailableSize() const = 0; - virtual size_t Read(Blob& output, size_t max = 0) = 0; - virtual size_t Read(byte* outbuffer, size_t buffersize) = 0; - virtual status_t GetStatus() const = 0; - }; - -} // namespace act - -#endif // ACT_IAlgorithm_h diff --git a/actlibrary/MacOSX-10.6-x86_64/Release/include/actIBlockCipher.h b/actlibrary/MacOSX-10.6-x86_64/Release/include/actIBlockCipher.h deleted file mode 100644 index 10338cd..0000000 --- a/actlibrary/MacOSX-10.6-x86_64/Release/include/actIBlockCipher.h +++ /dev/null @@ -1,53 +0,0 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actIBlockCipher.h -// Product: cv act library -// Purpose: The class IBlockCipher creates the symmetric BlockCypher, which is -// defined by IBockCipherKey and IBlockCipherMode. It offers operations -// like encrypt, decrypt and queries involving validity or keylength etc. -// -// Copyright: (c) 2000 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_IBlockCipher_h -#define ACT_IBlockCipher_h - -#include "actBasics.h" -#include - -namespace act -{ - - class Blob; - - class IBlockCipher - { - public: - virtual IBlockCipher* Clone() const =0; - virtual void Import( const Blob& indata ) =0; - virtual void Export( Blob& outdata ) const =0; - - virtual void SetRawKey( const Blob& keyblob ) =0; - virtual void GetRawKey( Blob& keyblob ) const =0; - - virtual void Encrypt(const byte* in,byte* out) const =0; - virtual void Decrypt(const byte* in,byte* out) const =0; - - virtual size_t GetKeySize(size_t keysize=0) const =0; - virtual size_t GetMinKeySize() const =0; - virtual size_t GetMaxKeySize() const =0; - virtual size_t GetNextKeySize(size_t prevsize) const =0; - virtual size_t GetBlockSize() const =0; - - virtual void* GetCreatePointer() const =0; - - virtual ~IBlockCipher() {}; - }; - - -}// namespace act - -#endif - diff --git a/actlibrary/MacOSX-10.6-x86_64/Release/include/actIBlockCipherMode.h b/actlibrary/MacOSX-10.6-x86_64/Release/include/actIBlockCipherMode.h deleted file mode 100644 index c6f5267..0000000 --- a/actlibrary/MacOSX-10.6-x86_64/Release/include/actIBlockCipherMode.h +++ /dev/null @@ -1,45 +0,0 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actIBlockCipherMode.h -// Product: cv act library -// Purpose: By using this interface every blockcipher-algorithm can be run in -// the modes CBC or ECB. Other modes e.g. OFB or CFB are supported. -// -// Copyright: (c) 2000 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_IBlockCipherMode_h -#define ACT_IBlockCipherMode_h - -#include "actBasics.h" - -namespace act -{ - class IBlockCipher; - class IAlgorithm; - class IPadding; - class Blob; - - class IBlockCipherMode - { - public: - virtual IBlockCipherMode* Clone() const =0; - virtual void Import(const Blob& indata) =0; - virtual void Export(Blob& outdata) const =0; - virtual void SetParam(paramid_t id, const Blob &blob) =0; - virtual void SetParam(paramid_t id, int val) =0; - virtual void SetParam(paramid_t id, const char* cstr) =0; - virtual int GetParam(paramid_t) const =0; - virtual void GetParam(paramid_t, Blob &blob) const =0; - virtual IAlgorithm* CreateEncAlgorithm(IBlockCipher* cipher, IPadding* padding, const Blob& iv) const=0; - virtual IAlgorithm* CreateDecAlgorithm(IBlockCipher* cipher, IPadding* padding) const=0; - virtual void* GetCreatePointer() const=0; - virtual ~IBlockCipherMode() {} - }; -} // namespace act - -#endif - - diff --git a/actlibrary/MacOSX-10.6-x86_64/Release/include/actICBCMACKey.h b/actlibrary/MacOSX-10.6-x86_64/Release/include/actICBCMACKey.h deleted file mode 100644 index d8dbe6c..0000000 --- a/actlibrary/MacOSX-10.6-x86_64/Release/include/actICBCMACKey.h +++ /dev/null @@ -1,31 +0,0 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actICBCMACKey.h -// Product: cv act library -// Purpose: interface for the class CBCMAC. -// -// Copyright: (c) 2000 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_ICBCMACKey_h -#define ACT_ICBCMACKey_h - -#include "actIMACKey.h" - -namespace act -{ - class IBlockCipher; - - class ICBCMACKey : public IMACKey - { - public: - virtual void SetCipher(IBlockCipher* cipher) = 0; - virtual const IBlockCipher* GetCipher() const = 0; - virtual IBlockCipher* GetCipher() = 0; - }; - -} // namespace act - -#endif // ACT_ICBCMACKey_h diff --git a/actlibrary/MacOSX-10.6-x86_64/Release/include/actICRL.h b/actlibrary/MacOSX-10.6-x86_64/Release/include/actICRL.h deleted file mode 100644 index 2bb598b..0000000 --- a/actlibrary/MacOSX-10.6-x86_64/Release/include/actICRL.h +++ /dev/null @@ -1,51 +0,0 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actICRL.h -// Product: cv act library -// Purpose: The abstract class ICRL (Certificate Revocation List) can be used -// to check whether a certificate has been revoked. -// -// Copyright: (c) 2000 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_ICRL_h -#define ACT_ICRL_h - -namespace act -{ - class IKey; - class ICertificate; - class Blob; - - class ICRL - { - public: - - virtual ICRL* Clone() const=0; - virtual void Import(const Blob& crlblob)=0; - virtual void Export(Blob& crlblob) const =0; - virtual void SetParam(paramid_t id,const Blob& blob) =0; - virtual void SetParam(paramid_t id,int val) =0; - virtual void SetParam(paramid_t id,const char* cstr) =0; - virtual void GetParam(paramid_t id,Blob& blob) const =0; - virtual int GetParam(paramid_t) const =0; - - virtual void Revoke(const ICertificate* cert) =0; - virtual bool IsRevoked(const ICertificate* Cert) const =0; - virtual void RemoveRevokation(const ICertificate* cert) =0; - - virtual void Revoke(const Blob& blob) = 0; - virtual bool IsRevoked(const Blob& blob) const = 0; - virtual void RemoveRevokation(const Blob& blob) = 0; - - virtual void Sign(const IKey* privkey) =0; - virtual int Verify(const IKey* pubkey) const =0; - virtual void* GetCreatePointer() const=0; - virtual ~ICRL() {}; - }; -} // namespace act - -#endif - diff --git a/actlibrary/MacOSX-10.6-x86_64/Release/include/actICertificate.h b/actlibrary/MacOSX-10.6-x86_64/Release/include/actICertificate.h deleted file mode 100644 index eadfe0b..0000000 --- a/actlibrary/MacOSX-10.6-x86_64/Release/include/actICertificate.h +++ /dev/null @@ -1,44 +0,0 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actICertificate.h -// Product: cv act library -// Purpose: The abstract class ICertificate enables access to a certificate, e.g. -// its public key and the corresponding validity. -// -// Copyright: (c) 2000 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_ICertificate_h -#define ACT_ICertificate_h - -#include "actBasics.h" -#include "actIParam.h" - -namespace act -{ - class IKey; - class Blob; - - class ICertificate : public IParam - { - public: - virtual ~ICertificate() { }; - - virtual ICertificate* Clone() const = 0; - virtual void Import(const Blob& certblob) = 0; - virtual void Export(Blob& certblob) const = 0; - - virtual void SetPublicKey(const IKey* pubkey) = 0; - virtual IKey* CreatePublicKey(const char* = 0) const = 0; - - virtual void Sign(const IKey* privkey) = 0; - virtual int Verify(const IKey* pubkey) const = 0; - - virtual void* GetCreatePointer() const = 0; - }; - -} // namespace act - -#endif // ACT_ICertificate_h diff --git a/actlibrary/MacOSX-10.6-x86_64/Release/include/actIDerivator.h b/actlibrary/MacOSX-10.6-x86_64/Release/include/actIDerivator.h deleted file mode 100644 index e8b7140..0000000 --- a/actlibrary/MacOSX-10.6-x86_64/Release/include/actIDerivator.h +++ /dev/null @@ -1,45 +0,0 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actIDerivator.h -// Product: cv act library -// Purpose: This interface provides a shared secret key (the last step in -// a Key Agreement Scheme). -// -// Copyright: (c) 2006 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_IDerivator_h -#define ACT_IDerivator_h - -#include"actBasics.h" - -namespace act -{ - class Blob; - - class IDerivator - { - public: - virtual IDerivator* Clone() const=0; - - virtual void Import(const Blob &blob)=0; - virtual void Export(Blob &blob) const=0; - - virtual void SetParam(paramid_t id,const Blob &blob)=0; - virtual void SetParam(paramid_t id,int val)=0; - virtual void SetParam(paramid_t id,const char* cstr)=0; - virtual void GetParam(paramid_t id,Blob &blob) const=0; - virtual int GetParam(paramid_t) const=0; - - virtual void Derive(const Blob& secret, const Blob& salt, Blob& keymat) const=0; - - virtual void* GetCreatePointer() const =0; - virtual ~IDerivator() {} - }; -} // namespace act - -#endif - - diff --git a/actlibrary/MacOSX-10.6-x86_64/Release/include/actIDerivatorWithHash.h b/actlibrary/MacOSX-10.6-x86_64/Release/include/actIDerivatorWithHash.h deleted file mode 100644 index b1bdaf9..0000000 --- a/actlibrary/MacOSX-10.6-x86_64/Release/include/actIDerivatorWithHash.h +++ /dev/null @@ -1,33 +0,0 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actIDerivatorWithHash.h -// Product: cv act library -// Purpose: The abstract class IDerivatorWithHash is derived from IDerivator and -// uses hash algorithms. -// -// Copyright: (c) 2000 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_IDerivatorWithHash_h -#define ACT_IDerivatorWithHash_h - -#include "actIDerivator.h" - -namespace act -{ - class IHashAlg; - - class IDerivatorWithHash : public IDerivator - { - public: - virtual void SetHash(IHashAlg* hash) =0; - virtual const IHashAlg* GetHash() const =0; - virtual IHashAlg* GetHash() =0; - }; -} // namespace act - -#endif - - diff --git a/actlibrary/MacOSX-10.6-x86_64/Release/include/actIEventMonitoring.h b/actlibrary/MacOSX-10.6-x86_64/Release/include/actIEventMonitoring.h deleted file mode 100644 index 0aee7db..0000000 --- a/actlibrary/MacOSX-10.6-x86_64/Release/include/actIEventMonitoring.h +++ /dev/null @@ -1,36 +0,0 @@ -// --------------------------------------------------------------------------- -// Name: actIEventMonitoring.h -// Product: cv act library -// Purpose: Interface for event monitoring enabled objects. -// -// Copyright: (c) 2010 cv cryptovision GmbH -// all rights reserved. -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -// -// Autor: Markus Tesche (MTE) -// Date: 08/20/2010 -// --------------------------------------------------------------------------- - -#ifndef ACT_IEventMonitoring_h -#define ACT_IEventMonitoring_h - -namespace act -{ - class IEventHandler; - - // - // IEventMonitoring - class IEventMonitoring - { - public: - virtual ~IEventMonitoring() { } - - virtual bool IsMonitored() const = 0; - virtual void StopMonitor(bool force = false) = 0; - virtual void StartMonitor(IEventHandler* cmd) = 0; - }; - -} // namespace act - -#endif // ACT_IEventMonitoring_h diff --git a/actlibrary/MacOSX-10.6-x86_64/Release/include/actIHashAlg.h b/actlibrary/MacOSX-10.6-x86_64/Release/include/actIHashAlg.h deleted file mode 100644 index 8620c51..0000000 --- a/actlibrary/MacOSX-10.6-x86_64/Release/include/actIHashAlg.h +++ /dev/null @@ -1,42 +0,0 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actIHashAlg.h -// Product: cv act library -// Purpose: IHashAlg is an abstract base class, which provides the interface -// of all hash-algorithms. -// -// Copyright: (c) 2000 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_IHASHALG_H -#define ACT_IHASHALG_H - -#include "actIAlgorithm.h" - -namespace act -{ - - class IHashAlg : public IAlgorithm - { - public: - virtual IHashAlg* Clone() const =0; - virtual void Import(const Blob& indata) =0; - virtual void Export(Blob& outdata) const =0; - virtual void SetParam(paramid_t id,const Blob &blob) =0; - virtual void SetParam(paramid_t id,int val) =0; - virtual void SetParam(paramid_t id,const char* cstr) =0; - virtual void GetParam(paramid_t id,Blob &blob) const =0; - virtual int GetParam(paramid_t) const =0; - virtual size_t GetBlockSize() const = 0; - virtual size_t GetHashSize() const = 0; - virtual void Reset() =0; - virtual void* GetCreatePointer() const =0; - virtual ~IHashAlg() {} - }; - -} // namespace act -#endif - - diff --git a/actlibrary/MacOSX-10.6-x86_64/Release/include/actIHashMACKey.h b/actlibrary/MacOSX-10.6-x86_64/Release/include/actIHashMACKey.h deleted file mode 100644 index 29719fe..0000000 --- a/actlibrary/MacOSX-10.6-x86_64/Release/include/actIHashMACKey.h +++ /dev/null @@ -1,32 +0,0 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actIHashMacKey.h -// Product: cv act library -// Purpose: interface for the class HashMAC -// -// Copyright: (c) 2000 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_IHashMACKey_h -#define ACT_IHashMACKey_h - -#include "actIMACKey.h" - -namespace act -{ - class IHashAlg; - - class IHashMACKey : public IMACKey - { - public: - virtual void SetHash(IHashAlg* cipher) =0; - virtual const IHashAlg* GetHash() const =0; - virtual IHashAlg* GetHash() =0; - }; - -} // namespace act - -#endif - diff --git a/actlibrary/MacOSX-10.6-x86_64/Release/include/actIIESKey.h b/actlibrary/MacOSX-10.6-x86_64/Release/include/actIIESKey.h deleted file mode 100644 index e54a7f4..0000000 --- a/actlibrary/MacOSX-10.6-x86_64/Release/include/actIIESKey.h +++ /dev/null @@ -1,35 +0,0 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actIIESKey.h -// Product: cv act library -// Purpose: The interface IIESKey enables access to the aggregated objects of -// an IES-key, like DL-IES or EC-IES. -// -// Copyright: (c) 2000 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_IIESKey_H -#define ACT_IIESKey_H - -#include "actIKey.h" - -namespace act -{ - class IAgreementKey; - class IMACKey; - - class IIESKey : public IKey - { - public: - virtual void SetMAC(IMACKey* mac) =0; - virtual const IMACKey* GetMAC() const =0; - virtual IMACKey* GetMAC() =0; - virtual void SetAgreement(IAgreementKey* derivator) =0; - virtual const IAgreementKey* GetAgreement() const =0; - virtual IAgreementKey* GetAgreement() =0; - }; -} // act -#endif - diff --git a/actlibrary/MacOSX-10.6-x86_64/Release/include/actIKeyDerivation.h b/actlibrary/MacOSX-10.6-x86_64/Release/include/actIKeyDerivation.h deleted file mode 100644 index f8909eb..0000000 --- a/actlibrary/MacOSX-10.6-x86_64/Release/include/actIKeyDerivation.h +++ /dev/null @@ -1,70 +0,0 @@ -// --------------------------------------------------------------------------- -// Name: actIKeyDerivation.h -// Product: cv act library -// Purpose: IKeyDerivation for general prupose -// -// Copyright: (c) 2003-2010 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -// -// Autor: Ulrich Birkenhauer -// Markus Tesche -// Date: 07/05/2010 -// --------------------------------------------------------------------------- - -#ifndef ACT_IKeyDerivation_h -#define ACT_IKeyDerivation_h - -#include "actMove.h" -#include "actMode.h" - -#include "actIParam.h" -#include "actIRefCounted.h" - -namespace act -{ - enum KDParam - { - KD_DATA = SALT, - KD_HASH = HASH, - KD_SERIAL = SERIALNR, - KD_DERIVATOR = DERIVATOR, - KD_MODE = BCMODE, // key configuration - KD_PADDING = PADDING, // key configuration - }; - - enum KDMode - { - KD_MODE_DEFAULT = 0, - KD_MODE_CARD_MANAGER, - - KD_MODE_LAST - }; - - class IKeyDerivation; - class IBlockCipherKey; - - typedef void (*DerivationFunc)(IKeyDerivation* owner, const Blob& data, - Blob& k_enc, Blob& k_mac, Blob& k_kek); - - // - // IKeyDerivation - class IKeyDerivation - : public IParam - , public IRefCounted - { - public: - virtual Blob Derive(const Blob& deriveData) = 0; - virtual void Derive(uint mode, const Blob& data, Blob& k_enc, Blob& k_mac) = 0; - virtual void Derive(uint mode, const Blob& data, Blob& k_enc, Blob& k_mac, Blob& k_kek) = 0; - - virtual void SetKey(IBlockCipherKey* key) = 0; - // - // If mode already registered, it will be overwritten and the previous will be returned. - virtual DerivationFunc Register(uint mode, DerivationFunc df) = 0; - }; - -} // namespace act - -#endif // ACT_IKeyDerivation_h diff --git a/actlibrary/MacOSX-10.6-x86_64/Release/include/actIKeyFactory.h b/actlibrary/MacOSX-10.6-x86_64/Release/include/actIKeyFactory.h deleted file mode 100644 index 711d883..0000000 --- a/actlibrary/MacOSX-10.6-x86_64/Release/include/actIKeyFactory.h +++ /dev/null @@ -1,48 +0,0 @@ -// --------------------------------------------------------------------------- -// Name: actIKeyFactory.h -// Product: cv act library -// Purpose: IKeyFactory and IKeyFactoryChain interface -// -// Copyright: (c) 2008 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -// -// Autor: Markus Tesche -// Date: 05/18/2008 -// --------------------------------------------------------------------------- - -#ifndef ACT_IKeyFactory_h -#define ACT_IKeyFactory_h - -#include "actTokenBase.h" - -namespace act -{ - class ITokenKey; - class ITokenBlockCipher; - class ITokenBlockCipherKey; - - class IKeyFactory - { - protected: - virtual ~IKeyFactory() - { } - - public: - virtual ITokenKey* CreateKey(int type, FileInfo& fi, int usage, bool cleartoken) = 0; - - virtual ITokenBlockCipher* CreateBlockCipher(FileInfo& fi) = 0; - virtual ITokenBlockCipherKey* CreateBlockCipherKey(ITokenBlockCipher* cipher, bool cleartoken) = 0; - virtual ITokenBlockCipherKey* CreateBlockCipherAndKey(FileInfo& fi, bool cleartoken) = 0; - }; - - class IKeyFactoryChain : public IKeyFactory - { - public: - virtual void SetNext(IKeyFactoryChain* next) = 0; - }; - -} // namespace act - -#endif // ACT_IKeyFactory_h diff --git a/actlibrary/MacOSX-10.6-x86_64/Release/include/actIPKCS15Behavior.h b/actlibrary/MacOSX-10.6-x86_64/Release/include/actIPKCS15Behavior.h deleted file mode 100644 index 174cd51..0000000 --- a/actlibrary/MacOSX-10.6-x86_64/Release/include/actIPKCS15Behavior.h +++ /dev/null @@ -1,89 +0,0 @@ -// --------------------------------------------------------------------------- -// Name: actIPKCS15Behavior.h -// Product: cv act library -// Purpose: IPKCS15Behavior interface, encapsulates Manufacturer specific logic -// for PKCS15 to cvProfile mapping. -// -// Copyright: (c) 2002-2008 cv cryptovision GmbH all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -// -// Autor: Markus Tesche -// Date: 06/02/2008 -// --------------------------------------------------------------------------- - -#ifndef ACT_IPKCS15Behavior_h -#define ACT_IPKCS15Behavior_h - -#include "actISCardOSBehavior.h" - -#include "cvProfileInfos.h" - -namespace act -{ - class IAuthIdRef; - - class IToken; - class ITokenPIN; - class ITokenKey; - class ITokenFile; - class ITokenFileMap; - class ISecurityManager; - class ITokenBlockCipherKey; - - class PKCS15Container; - struct PKCS15Path; - struct PKCS15Object; - - // - // IPKCS15Behavior - class IPKCS15Behavior : public ISCardOSBehavior - { - public: - virtual void Init(IToken* token) = 0; - - virtual int GetTokenType(const IToken* token) const throw() = 0; - virtual void GetProfileCapabilities(ITokenConfig* tkcfg) const = 0; - - virtual bool IsReadOnly() const = 0; - virtual const Blob& GetMID() const = 0; - - // Returns a valid instance or throws ! - virtual ITokenFile* GetPath() const = 0; - virtual ITokenFile* GetTokenFile(const Blob& p15path) = 0; - virtual ITokenFile* GetTokenFile(const PKCS15Path& p15path) = 0; - - virtual ITokenPIN* GetPin(IToken* token, const PKCS15Object& p15object, bool use_obj_ref = false) = 0; - - // NOTE: If one of these functions return false, the object gets destroyed - // and is not added to the corresponding collection, therefore not accessable! - virtual bool InitTokenPIN(ITokenPIN* pin, const PKCS15Object& p15object) = 0; - virtual bool InitTokenKey(ITokenKey* key, const FileInfo& fi, int usage, const PKCS15Object& p15object) = 0; - virtual bool InitTokenKey(ITokenBlockCipherKey* key, const FileInfo& fi, const PKCS15Object& p15object) = 0; - - virtual FIDType GetFirstFID(byte obj_type, size_t key_size = 0) const = 0; - virtual void GetObjectInfo(FIDType fid, Blob& object_path, byte* obj_ref, byte obj_type, size_t key_size = 0) const = 0; - - virtual FIDType TransformKeyReference(FIDType id, bool to_on_card_reference = false, bool* bReference = 0) const = 0; - - virtual FIDType GetNativeFID(byte obj_type, const FIDType fid, byte object_reference = 0) const = 0; - - virtual void GetRelativeFilePath(Blob& absolute_filepath) const = 0; - - virtual const Blob& GetACTokenRights() const = 0; - virtual Blob GetAccessRights(const ITokenPIN* pin, byte obj_type) const = 0; - virtual Blob GetAccessRights(IAuthIdRef* authIdRef, IAuthIdRef* parentAuthIdRef, byte obj_type) const = 0; - - virtual ISecurityManager* SecurityManager(IToken* token, int authManagerType) const = 0; - virtual void CreateAuthObj(ITokenPIN* pin, byte obj_type) const = 0; - - virtual bool GetNativePubKeySupport() const = 0; - virtual Blob ReadNativePublicKey(ISCardOS* os, FIDType fid) const = 0; - virtual Blob ReadNativeECPublicKey(ISCardOS* os, FIDType fid) const = 0; - virtual FIDType GetNativePubKeyInfo(FIDType priv_key_fid, const PublicKeyInfo& info, - PKCS15Object& p15object) const = 0; - }; - -} // namespace act - -#endif // ACT_IPKCS15Behavior_h diff --git a/actlibrary/MacOSX-10.6-x86_64/Release/include/actIPadding.h b/actlibrary/MacOSX-10.6-x86_64/Release/include/actIPadding.h deleted file mode 100644 index c916e21..0000000 --- a/actlibrary/MacOSX-10.6-x86_64/Release/include/actIPadding.h +++ /dev/null @@ -1,47 +0,0 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actIPadding.h -// Product: cv act library -// Purpose: With the abstract class IPadding input data can be filled to obtain -// a certain length and also to invert this process. E.g. PKCS1-v1_5 is -// a padding. -// -// Copyright: (c) 2000 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_IPadding_h -#define ACT_IPadding_h -#include "actBasics.h" - -namespace act -{ - - class Blob; - - class IPadding - { - public: - - virtual IPadding* Clone() const=0; - - virtual void Import(const Blob& indata) =0; - virtual void Export(Blob& outdata) const =0; - virtual void SetParam(paramid_t id,const Blob &blob) =0; - virtual void SetParam(paramid_t id,int val) =0; - virtual void SetParam(paramid_t id,const char* cstr) =0; - virtual void GetParam(paramid_t id,Blob &blob) const =0; - virtual int GetParam(paramid_t) const =0; - - virtual void Pad(Blob& Buffer, size_t len) const =0; - virtual size_t Unpad(Blob& Buffer) const =0; - - virtual void* GetCreatePointer() const =0; - virtual ~IPadding() {} - }; - - -} //namespace act -#endif - diff --git a/actlibrary/MacOSX-10.6-x86_64/Release/include/actIParam.h b/actlibrary/MacOSX-10.6-x86_64/Release/include/actIParam.h deleted file mode 100644 index ee8d26b..0000000 --- a/actlibrary/MacOSX-10.6-x86_64/Release/include/actIParam.h +++ /dev/null @@ -1,67 +0,0 @@ -// --------------------------------------------------------------------------- -// Name: actIParam.h -// Product: cv act library -// Purpose: Declares act::IParam interface. -// -// Copyright: (c) 2006 cv cryptovision GmbH -// all rights reserved. -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -// -// Autor: Markus Tesche (MTE) -// Date: 3/1/2006 -// --------------------------------------------------------------------------- - -#ifndef ACT_IParam_h -#define ACT_IParam_h - -#include "actBasics.h" - -namespace act -{ - class Blob; - - enum - { - PARAM_ANY = -3, - PARAM_UNKNOWN_SIZE = -2, - PARAM_INVALID_VALUE = -1, - PARAM_FALSE = 0, - PARAM_TRUE = 1 - }; - - static inline int param_bool(bool value) - { - return value == true ? PARAM_TRUE : PARAM_FALSE; - } - - // - // IParam - class IParam - { - public: - virtual ~IParam() { } - - virtual void SetParam(paramid_t id, int value) = 0; - virtual void SetParam(paramid_t id, const char* value) = 0; - virtual void SetParam(paramid_t id, const Blob& value) = 0; - - // - // Get value for id, otherwise PARAM_INVALID_VALUE. - // NOTE: May throws an act::Exception derived exception. - virtual int GetParam(paramid_t id) const = 0; - - // - // Get value for id, returns size[PARAM_UNKNOWN_SIZE|0-n] or PARAM_INVALID_VALUE. - // NOTE: May throws an act::Exception derived exception. - virtual size_t GetParam(paramid_t id, const char** value) const = 0; - - // - // Get value for id, returns size[PARAM_UNKNOWN_SIZE|0-n] or PARAM_INVALID_VALUE. - // NOTE: May throws an act::Exception derived exception. - virtual size_t GetParam(paramid_t id, Blob& value) const = 0; - }; - -} // namespace act - -#endif // ACT_IParam_h diff --git a/actlibrary/MacOSX-10.6-x86_64/Release/include/actIRSAKey.h b/actlibrary/MacOSX-10.6-x86_64/Release/include/actIRSAKey.h deleted file mode 100644 index 96bcdac..0000000 --- a/actlibrary/MacOSX-10.6-x86_64/Release/include/actIRSAKey.h +++ /dev/null @@ -1,32 +0,0 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actIRSAKey.h -// Product: cv act library -// Purpose: IRSAKey is the interface for the class IRSAKey enabling access to -// the aggregated padding-object of an RSAKeys. -// -// Copyright: (c) 2000 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_IRSAKey_h -#define ACT_IRSAKey_h - -#include "actISignatureKey.h" - -namespace act -{ - class IPadding; - - class IRSAKey : public ISignatureKey - { - public: - virtual void SetPadding(IPadding* padding) = 0; - virtual const IPadding* GetPadding() const = 0; - virtual IPadding* GetPadding() = 0; - }; - -} // namespace act - -#endif // ACT_IRSAKey_h diff --git a/actlibrary/MacOSX-10.6-x86_64/Release/include/actISCardOSBehavior.h b/actlibrary/MacOSX-10.6-x86_64/Release/include/actISCardOSBehavior.h deleted file mode 100644 index da9c27c..0000000 --- a/actlibrary/MacOSX-10.6-x86_64/Release/include/actISCardOSBehavior.h +++ /dev/null @@ -1,79 +0,0 @@ -// --------------------------------------------------------------------------- -// Name: actISCardOSBehavior.h -// Product: cv act library -// Purpose: ISCardOSBehavior interface, encapsulates CardOS specific logic -// for security operations. -// -// Copyright: (c) 2002-2008 cv cryptovision GmbH all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -// -// Autor: Markus Tesche -// Date: 06/03/2008 -// --------------------------------------------------------------------------- - -#ifndef ACT_ISCardOSBehavior_h -#define ACT_ISCardOSBehavior_h - -#include "actIRefCounted.h" - -namespace act -{ - class Blob; - class IEMSAAlg; - class ISCardOS; - class ITokenPIN; - - enum OSBehavior - { - NONE_BEHAVIOR = 0x00000000, - - // algorithm behaviors - SIGN_BEHAVIOR = 0x00000001, - VERIFY_BEHAVIOR = 0x00000002, - DECRYPT_BEHAVIOR = 0x00000004, - ENCRYPT_BEHAVIOR = 0x00000008, - AGREEMENT_BEHAVIOR = 0x00000010, - ALGORITHM_BEHAVIOR_MASK = 0x000000FF, - - // key behaviors - GENERATE_KEY_BEHAVIOR = 0x00000100, - IMPORT_KEY_BEHAVIOR = 0x00000200, - DELETE_PRIVKEY_BEHAVIOR = 0x00000400, - KEY_BEHAVIOR_MASK = 0x0000FF00, - - // PIN behaviors - VERIFY_PIN_BEHAVIOR = 0x00010000, - CHANGE_PIN_BEHAVIOR = 0x00020000, - SET_PIN_BEHAVIOR = 0x00040000, - UNLOCK_PIN_BEHAVIOR = 0x00080000, - PIN_BEHAVIOR_MASK = 0x00FF0000 - }; - - // - // ISCardOSBehavior - class ISCardOSBehavior : public IRefCounted - { - public: - virtual bool Supports(int behavior) const throw() = 0; - - virtual Blob ComputeDigitalSignature(ISCardOS* os, const Blob& data, int mode) = 0; - virtual Blob ComputeDigitalSignature(ISCardOS* os, IEMSAAlg* emsa, int mode) = 0; - virtual Blob Encipher(ISCardOS* os, const Blob& plaintext) = 0; - virtual Blob Decipher(ISCardOS* os, const Blob& encrypted_data) = 0; - virtual Blob AgreeKey(ISCardOS* os, const Blob& pubkey) = 0; - - virtual void GenerateRSAKeyPair(ISCardOS* os, byte key_num, size_t key_size) = 0; - virtual void ImportRSAKeyPair(ISCardOS* os, int key_id, const Blob& prime_p, const Blob& prime_q, - const Blob& priv_exp, Blob& pubkey) = 0; - virtual void DeletePrivateKeyObj(ISCardOS* os, unsigned short fid) = 0; - - virtual void doVerifyPinCmd(const ITokenPIN* token_pin, const Blob& pin_value) = 0; - virtual void doChangePinCmd(const ITokenPIN* token_pin, const Blob& oldnew_value) = 0; - virtual void doSetPinValueCmd(const ITokenPIN* token_pin, const Blob& newpin_value) = 0; - virtual void UnlockPin(const ITokenPIN* token_pin, const Blob& new_pin) = 0; - }; - -} // namespace act - -#endif // ACT_ISCardOSBehavior_h diff --git a/actlibrary/MacOSX-10.6-x86_64/Release/include/actISecurityManager.h b/actlibrary/MacOSX-10.6-x86_64/Release/include/actISecurityManager.h deleted file mode 100644 index ecaccd8..0000000 --- a/actlibrary/MacOSX-10.6-x86_64/Release/include/actISecurityManager.h +++ /dev/null @@ -1,60 +0,0 @@ -// --------------------------------------------------------------------------- -// Name: actISecurityManager.h -// Product: cv act library -// Purpose: ISecurityManager used to manage the token authentication objects. -// -// Copyright: (c) 2008 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -// -// Autor: Markus Tesche (MTE) -// Date: 08/05/2008 -// --------------------------------------------------------------------------- - -#ifndef ACT_ISecurityManager_h -#define ACT_ISecurityManager_h - -#include "actBasics.h" -#include "actIRefCounted.h" - -namespace act -{ - class ITokenPIN; - class IAuthIdRef; - - enum SecManType - { - SecManUnknown = 0, - SecManPIN, - SecManBio, - }; - - // - // ISecurityManager - // TODO: MTE: Add access control management - class ISecurityManager : public IRefCounted - { - public: - virtual SecManType GetType() const = 0; - virtual void Delete(ITokenPIN* auth_obj) = 0; - }; - - class IPINManager : public ISecurityManager - { - public: - // NOTE: MTE: pin can be empty! - virtual ITokenPIN* Create(IAuthIdRef* authIdRef, IAuthIdRef* parentAuthIdRef, - int retryCount, const Blob& pin) = 0; - }; - - class IBioManager : public ISecurityManager - { - public: - virtual ITokenPIN* Create(IAuthIdRef* authIdRef, IAuthIdRef* parentAuthIdRef, - int retryCount, int bioFinger) = 0; - }; - -} // namespace act - -#endif // ACT_ISecurityManager_h diff --git a/actlibrary/MacOSX-10.6-x86_64/Release/include/actIStreamCipher.h b/actlibrary/MacOSX-10.6-x86_64/Release/include/actIStreamCipher.h deleted file mode 100644 index 4c53d98..0000000 --- a/actlibrary/MacOSX-10.6-x86_64/Release/include/actIStreamCipher.h +++ /dev/null @@ -1,51 +0,0 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actIStreamCipher.h -// Product: cv act library -// Purpose: The class IStreamCipher creates the symmetric StreamCipher, which is -// defined by IStreamCipherKey. It offers operations like encrypt, decrypt -// and queries involving validity or keylength etc. -// -// Copyright: (c) 2001 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_IStreamCipher_h -#define ACT_IStreamCipher_h - -#include "actBasics.h" - -namespace act -{ - - class Blob; - - class IStreamCipher - { - public: - - virtual IStreamCipher* Clone() const =0; - virtual void Import( const Blob& indata ) =0; - virtual void Export( Blob& outdata ) const =0; - - virtual void SetRawKey( const Blob& keyblob ) =0; - virtual void GetRawKey( Blob& keyblob ) const =0; - - virtual void Process(const byte* input, byte* output, size_t input_len) const =0; - - virtual size_t GetKeySize(size_t keysize=0) const =0; - virtual size_t GetMinKeySize() const =0; - virtual size_t GetMaxKeySize() const =0; - virtual size_t GetNextKeySize(size_t prevsize) const =0; - - virtual void* GetCreatePointer() const =0; - - virtual ~IStreamCipher() {}; - }; - - -}// namespace act - -#endif - diff --git a/actlibrary/MacOSX-10.6-x86_64/Release/include/actISubsystem.h b/actlibrary/MacOSX-10.6-x86_64/Release/include/actISubsystem.h deleted file mode 100644 index 731b4cd..0000000 --- a/actlibrary/MacOSX-10.6-x86_64/Release/include/actISubsystem.h +++ /dev/null @@ -1,54 +0,0 @@ -// --------------------------------------------------------------------------- -// Name: actISubsystem.h -// Product: cv act library -// Purpose: The class ISubsystem detects and manages the slots -// -// Copyright: (c) 2002 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -// -// Autor: Dr. Xiangdong Wang (XWG) -// Date: 03/26/2002 -// --------------------------------------------------------------------------- - -#ifndef ACT_ISubsystem_h -#define ACT_ISubsystem_h - -#include "actBasics.h" -#include "actIRefCounted.h" -#include "actISynchronize.h" -#include "actIEventMonitoring.h" - -namespace act -{ - class ISlot; - class ITokenConfig; - - // - // ISubsystem - class ISubsystem - : public IRefCounted - , public ISynchronize - , public IEventMonitoring - { - public: - virtual void Refresh() = 0; - virtual bool Disconnect() = 0; - virtual bool Install(size_t port) = 0; - virtual const char* GetName() const = 0; - - // SlotList - virtual int GetSlotNumber() const = 0; - virtual const ISlot* GetSlot(int pos) const = 0; - virtual ISlot* CreateSlot(const char* name) = 0; - - virtual void SetTokenConfig(ITokenConfig* tkcfg) = 0; - - protected: - virtual ~ISubsystem() { } - }; - -} // namespace act - -#endif // ACT_ISubsystem_h diff --git a/actlibrary/MacOSX-10.6-x86_64/Release/include/actISynchronize.h b/actlibrary/MacOSX-10.6-x86_64/Release/include/actISynchronize.h deleted file mode 100644 index c8f1ef6..0000000 --- a/actlibrary/MacOSX-10.6-x86_64/Release/include/actISynchronize.h +++ /dev/null @@ -1,43 +0,0 @@ -////////////////////////////////////////////////////////////////////////// -// Name: actISynchronize.h -// Product: cv act library -// Purpose: Implemented by types supporting multithreading synchronization. -// -// Copyright: (c) 2010 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -// -// Autor: Markus Tesche -// Date: 07/27/2010 -////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_ISynchronize_h -#define ACT_ISynchronize_h - -namespace act -{ - class Handle; - - // - // ISynchronize - class ISynchronize - { - protected: - virtual ~ISynchronize() { } - - public: - virtual void Lock() = 0; - virtual void Unlock() = 0; - virtual long LockCount() const = 0; - - virtual const Handle& syncHandle() const = 0; - }; - - inline void Lock(ISynchronize& object) { object.Lock(); } - inline void Unlock(ISynchronize& object) { object.Unlock(); } - inline long LockCount(const ISynchronize& object) { return object.LockCount(); } - -} // namespace act - -#endif // ACT_ISynchronize_h diff --git a/actlibrary/MacOSX-10.6-x86_64/Release/include/actITokenAuthOwner.h b/actlibrary/MacOSX-10.6-x86_64/Release/include/actITokenAuthOwner.h deleted file mode 100644 index c53eccc..0000000 --- a/actlibrary/MacOSX-10.6-x86_64/Release/include/actITokenAuthOwner.h +++ /dev/null @@ -1,39 +0,0 @@ -// --------------------------------------------------------------------------- -// Name: actITokenAuthOwner.h -// Product: cv act library -// Purpose: The ITokenAuthOwner interface is used by objects which requires -// authentication like token keys. -// -// Copyright: (c) 2008 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -// -// Autor: Markus Tesche -// Date: 08/10/2008 -// --------------------------------------------------------------------------- - -#ifndef ACT_ITokenAuthOwner_h -#define ACT_ITokenAuthOwner_h - -namespace act -{ - class ITokenPIN; - class IAuthIdRef; - - // - // ITokenAuthOwner - class ITokenAuthOwner - { - public: - virtual void SetPin(ITokenPIN* pin) = 0; - virtual ITokenPIN* GetPin() const = 0; - virtual IAuthIdRef* GetAuthIdRef() const = 0; - - protected: - virtual ~ITokenAuthOwner() { } - }; - -} // namespace act - -#endif // ACT_ITokenAuthOwner_h diff --git a/actlibrary/MacOSX-10.6-x86_64/Release/include/actITokenBlockCipher.h b/actlibrary/MacOSX-10.6-x86_64/Release/include/actITokenBlockCipher.h deleted file mode 100644 index 014efe1..0000000 --- a/actlibrary/MacOSX-10.6-x86_64/Release/include/actITokenBlockCipher.h +++ /dev/null @@ -1,45 +0,0 @@ -// --------------------------------------------------------------------------- -// Name: actITokenBlockCipher.h -// Product: cv act library -// Purpose: The interface ITokenBlockCipher encapsulates operations using a -// symmetric key stored on a secure token. -// -// Copyright: (c) 2008 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -// -// Autor: Markus Tesche -// Date: 05/15/2008 -// --------------------------------------------------------------------------- - -#ifndef ACT_ITokenBlockCipher_h -#define ACT_ITokenBlockCipher_h - -#include "actBlob.h" -#include "actIBlockCipher.h" - -namespace act -{ - class IToken; - class ITokenConfig; - - // - // ITokenBlockCipher - class ITokenBlockCipher : public IBlockCipher - { - public: - virtual ITokenBlockCipher* Clone() const = 0; - - virtual void Configure(ITokenConfig* tkcfg) = 0; - virtual Blob GetCipherName() const = 0; - virtual Blob GetLabel() const = 0; - - virtual int GetKeyNumber() const = 0; - - virtual IToken* GetToken() const = 0; - }; - -} // namespace act - -#endif // ACT_ITokenBlockCipher_h diff --git a/actlibrary/MacOSX-10.6-x86_64/Release/include/actITokenBlockCipherKey.h b/actlibrary/MacOSX-10.6-x86_64/Release/include/actITokenBlockCipherKey.h deleted file mode 100644 index 3f13e59..0000000 --- a/actlibrary/MacOSX-10.6-x86_64/Release/include/actITokenBlockCipherKey.h +++ /dev/null @@ -1,59 +0,0 @@ -// --------------------------------------------------------------------------- -// Name: actITokenBlockCipherKey.h -// Product: cv act library -// Purpose: The interface ITokenBlockCipherKey enables access to a key stored -// on a secure token. -// -// Copyright: (c) 2008 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -// -// Autor: Markus Tesche -// Date: 05/15/2008 -// --------------------------------------------------------------------------- - -#ifndef ACT_ITokenBlockCipherKey_h -#define ACT_ITokenBlockCipherKey_h - -#include "actTokenBase.h" - -#include "actIBlockCipherKey.h" - -#include "actITokenAuthOwner.h" -#include "actITokenFileOwner.h" -#include "actITokenBlockCipher.h" - -namespace act -{ - class IToken; - class ITokenConfig; - - // - // ITokenBlockCipherKey - class ITokenBlockCipherKey - : public IBlockCipherKey - , public ITokenAuthOwner - , public ITokenFileOwner - { - public: - virtual ITokenBlockCipherKey* Clone() const = 0; - - virtual ITokenBlockCipher* GetCipher() = 0; - virtual const ITokenBlockCipher* GetCipher() const = 0; - - virtual KeyType GetType() const = 0; - virtual IToken* GetToken() const = 0; - virtual const char* GetName() const = 0; - virtual void Configure(ITokenConfig* tkcfg) = 0; - - virtual void SetRawKey(const Blob& raw_key) = 0; - virtual void GetRawKey(Blob& raw_key) const = 0; - - virtual void SetMode(const char* modename) = 0; - virtual void SetPadding(const char* padname) = 0; - }; - -} // namespace act - -#endif // ACT_ITokenBlockCipherKey_h diff --git a/actlibrary/MacOSX-10.6-x86_64/Release/include/actITokenFile.h b/actlibrary/MacOSX-10.6-x86_64/Release/include/actITokenFile.h deleted file mode 100644 index 4f42757..0000000 --- a/actlibrary/MacOSX-10.6-x86_64/Release/include/actITokenFile.h +++ /dev/null @@ -1,71 +0,0 @@ -// --------------------------------------------------------------------------- -// Name: actITokenFile.h -// Product: cv act library -// Purpose: ITokenFile represents a simple smartcard file with path. -// -// Copyright: (c) 2008 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -// -// Autor: Markus Tesche -// Date: 09/02/2008 -// --------------------------------------------------------------------------- - -#ifndef ACT_TokenFile_h -#define ACT_TokenFile_h - -#include "actBlob.h" -#include "actIRefCounted.h" - -namespace act -{ - class ISCardOS; - - enum FILETYPE - { - UKType = -1 - }; - - // - // ITokenFile - class ITokenFile : public IRefCounted - { - public: - virtual ITokenFile* Clone() const = 0; - - virtual bool IsValid() const = 0; - - virtual bool Equals(const Blob& path) const = 0; - virtual bool Equals(const ISCardOS* os) const = 0; - virtual bool Equals(const ITokenFile* other) const = 0; - virtual bool IsParent(const ITokenFile* other, size_t* mismatch = 0) const = 0; - - virtual Blob& RefFCI() = 0; - virtual const Blob& GetFCI() const = 0; - - virtual Blob& RefAID() = 0; - virtual const Blob& GetAID() const = 0; - - virtual int GetFileType() const = 0; - virtual size_t GetFileLength() const = 0; - virtual const Blob& GetFilePath() const = 0; - virtual size_t GetFullLength() const = 0; - virtual size_t GetFullPath(Blob& path) const = 0; - - virtual ITokenFile* GetRelativeTo() const = 0; - virtual void SetRelativeTo(ITokenFile* parent) = 0; - virtual ITokenFile* MakeRelativeTo(ITokenFile* parent) = 0; - - virtual void SetFilePath(const Blob& filepath, int filetype) = 0; - virtual void SetFilePath(move_from filepath, int filetype) = 0; - - virtual const Blob& SelectApp(ISCardOS* os, int selectmode) = 0; - virtual const Blob& SelectFile(ISCardOS* os, int selectmode) = 0; - - virtual bool ProbeFilePath(ISCardOS* os, bool cut_non_existing) = 0; - }; - -} // namespace act - -#endif // ACT_TokenFile_h diff --git a/actlibrary/MacOSX-10.6-x86_64/Release/include/actITokenFileOwner.h b/actlibrary/MacOSX-10.6-x86_64/Release/include/actITokenFileOwner.h deleted file mode 100644 index 1762d31..0000000 --- a/actlibrary/MacOSX-10.6-x86_64/Release/include/actITokenFileOwner.h +++ /dev/null @@ -1,37 +0,0 @@ -// --------------------------------------------------------------------------- -// Name: actITokenFileOwner.h -// Product: cv act library -// Purpose: The ITokenFileOwner interface is implemented by objects which -// refer to a specific location on token represented by ITokenFile. -// -// Copyright: (c) 2010 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -// -// Autor: Markus Tesche -// Date: 28/03/2010 -// --------------------------------------------------------------------------- - -#ifndef ACT_ITokenFileOwner_h -#define ACT_ITokenFileOwner_h - -namespace act -{ - class ITokenFile; - - // - // ITokenFileOwner - class ITokenFileOwner - { - public: - virtual ITokenFile* GetPath() const = 0; - virtual void SetPath(ITokenFile* file) = 0; - - protected: - virtual ~ITokenFileOwner() { } - }; - -} // namespace act - -#endif // ACT_ITokenFileOwner_h diff --git a/actlibrary/MacOSX-10.6-x86_64/Release/include/actIX509CRL.h b/actlibrary/MacOSX-10.6-x86_64/Release/include/actIX509CRL.h deleted file mode 100644 index 750ddd6..0000000 --- a/actlibrary/MacOSX-10.6-x86_64/Release/include/actIX509CRL.h +++ /dev/null @@ -1,48 +0,0 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actIX509CRL.h -// Product: cv act library -// Purpose: -// -// Copyright: (c) 2000 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_IX509CRL_h -#define ACT_IX509CRL_h -#include "actICRL.h" -#include "actX509Extension.h" - -namespace act -{ - - class IX509CRL: public ICRL - { - public: - virtual void SetThisUpdate(const Date &date )=0; - virtual void SetNextUpdate(const Date &date )=0; - virtual void GetThisUpdate(Date &date ) const=0; - virtual void GetNextUpdate(Date &date ) const=0; - - virtual X509Extension GetExtension(const char* oid) const=0; - virtual X509Extension GetExtension(const act::Blob& oidbl) const=0; - virtual void SetExtension(const X509Extension &ext)=0; - virtual X509Extension GetNextExtension(const X509Extension& ext) const=0; - virtual void RemoveExtension(const char* oid)=0; - - virtual Blob GetNextEntry(const Blob& certsernr) const=0; - - virtual void SetEntryRevocationDate(const Blob& certsn, const Date &vnbefore )=0; - virtual void GetEntryRevocationDate(const Blob& certsn, Date &vnbefore ) const=0; - - virtual X509Extension GetEntryExtension(const Blob& certsn, const char* oid) const=0; - virtual void SetEntryExtension(const Blob& certsn, const X509Extension &ext)=0; - virtual X509Extension GetNextEntryExtension(const Blob& certsn,const X509Extension& ext) const=0; - virtual void RemoveEntryExtension(const Blob& certsn,const char* oid)=0; - - }; -} // namespace act - -#endif - diff --git a/actlibrary/MacOSX-10.6-x86_64/Release/include/actJCAppletKit.h b/actlibrary/MacOSX-10.6-x86_64/Release/include/actJCAppletKit.h deleted file mode 100644 index 0d48e6d..0000000 --- a/actlibrary/MacOSX-10.6-x86_64/Release/include/actJCAppletKit.h +++ /dev/null @@ -1,30 +0,0 @@ -// --------------------------------------------------------------------------- -// Name: actAppletKit.h -// Product: cv act library -// Purpose: registry for factory functions to create JavaCard Applet -// -// Copyright: (c) 2002 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -// -// Autor: -// Date: 02/10/2003 -// --------------------------------------------------------------------------- - -#ifndef ACT_AppletKit_h -#define ACT_AppletKit_h - -#include "actBlob.h" - -namespace act -{ - class IToken; - class JavaCardOS; - - bool IsJCProfileApplet(JavaCardOS* os, const Blob& aid); - IToken* CreateJCProfileApplet(JavaCardOS* os, const Blob& aid); - -} // namespace act - -#endif // ACT_AppletKit_h diff --git a/actlibrary/MacOSX-10.6-x86_64/Release/include/actJCSecureChannelReg.h b/actlibrary/MacOSX-10.6-x86_64/Release/include/actJCSecureChannelReg.h deleted file mode 100644 index 1eb4b32..0000000 --- a/actlibrary/MacOSX-10.6-x86_64/Release/include/actJCSecureChannelReg.h +++ /dev/null @@ -1,43 +0,0 @@ -//----------------------------------------------------------------------------- -// Name: actJCSecureChannelReg.h -// Product: cv act library -// Purpose: -// -// Copyright: (c) 2003 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for use of this software are regulated -// in the cv act libary licence agreement. -// -// Autor: -// Data: 08.10.2003 15:53:14 -//----------------------------------------------------------------------------- - -#ifndef __ACTJCSECURECHANNELREG_H__ -#define __ACTJCSECURECHANNELREG_H__ - -namespace act -{ - class Blob; - - struct JCSecureChannelEntry { - const char* hexvalue; - }; - - - class JCardSecureChannelReg - { - public: - static Blob GetValue(int i); - static int GetNumber(); - - - static void Insert(const char* hexvalue); - static void Insert(const JCSecureChannelEntry* entry); - - }; - -} - - - -#endif //__ACTJCSECURECHANNELREG_H__ diff --git a/actlibrary/MacOSX-10.6-x86_64/Release/include/actKeyKit.h b/actlibrary/MacOSX-10.6-x86_64/Release/include/actKeyKit.h deleted file mode 100644 index e8a7730..0000000 --- a/actlibrary/MacOSX-10.6-x86_64/Release/include/actKeyKit.h +++ /dev/null @@ -1,43 +0,0 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actKeyKit.h -// Product: cv act library -// Purpose: declaration of all factory functions -// -// Copyright: (c) 2000 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_KeyKit_h -#define ACT_KeyKit_h - -namespace act -{ - class IKey; - - IKey* CreateBlockCipherKey(); - - IKey* CreateStreamCipherKey(); - - IKey* CreateHashMACKey(); - IKey* CreateCBCMACKey(); - IKey* CreateSecretKeyMACKey(); - IKey* CreateRetailCFBMACKey(); - IKey* Create_iMAC3Key(); - IKey* CreateCMACKey(); - - IKey* CreateRSAKey(); - - IKey* CreateDSAKey(); - IKey* CreateECDSAKey(); - IKey* CreateECGDSAKey(); - - IKey* CreateDHKey(); - IKey* CreateECDHKey(); - - IKey* CreateIESKey(); - -} // namespace act - -#endif // ACT_KeyKit_h diff --git a/actlibrary/MacOSX-10.6-x86_64/Release/include/actKeyReg.h b/actlibrary/MacOSX-10.6-x86_64/Release/include/actKeyReg.h deleted file mode 100644 index 14caa8c..0000000 --- a/actlibrary/MacOSX-10.6-x86_64/Release/include/actKeyReg.h +++ /dev/null @@ -1,40 +0,0 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actKeyReg.h -// Product: cv act library -// Purpose: registry for factory functions in actKeyKit.h -// -// Copyright: (c) 2000 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_KeyReg_h -#define ACT_KeyReg_h - -namespace act -{ - class IKey; - - typedef IKey* (*CreateKeyPtr)(); - - struct KeyMapEntry - { - const char* Name; - CreateKeyPtr CreatePtr; - }; - - class KeyReg - { - public: - static IKey* CreateKey(const char* name); - static CreateKeyPtr GetCreatePointer(const char* name); - static const char* GetName(void* createptr); - static const char* GetNextName(const char* name); - static void Insert(const char* name, CreateKeyPtr createptr); - static void Insert(const KeyMapEntry* keymap); - }; - -} // namespace act - -#endif // ACT_KeyReg_h diff --git a/actlibrary/MacOSX-10.6-x86_64/Release/include/actLogger.h b/actlibrary/MacOSX-10.6-x86_64/Release/include/actLogger.h deleted file mode 100644 index 103b1ed..0000000 --- a/actlibrary/MacOSX-10.6-x86_64/Release/include/actLogger.h +++ /dev/null @@ -1,110 +0,0 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actLogger.h -// Product: cv act library -// Purpose: Logger -// -// Copyright: (c) 2000-2001 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_Logger_h -#define ACT_Logger_h - -#include "actDebug.h" -#include "actBlob.h" - -#include "SyncObject.h" - -// for convenience: -#ifdef _MSC_VER -# define ACT_SNPRINTF _snprintf -#else -# include -# define ACT_SNPRINTF snprintf -#endif - -// -// MTE [11/1/2006]: Added addtional accessing macros. -// NOTE: Redefine to use another Logger. -#define ACT_LOGGER(x) act::Logger::x - -// -// MTE [11/1/2006]: Added to replace direct usage of ACT_LOGGER(LogInit)(). -#define ACT_LOGISENABLED() (ACT_DEBUG != 0 || ACT_LOGGER(LogInit)()) - -// -// MTE [11/1/2006]: Changed to use ACT_LOGISENABLED(). -#define ACT_LOGINFO(info) { if(ACT_LOGISENABLED()) ACT_LOGGER(Log)(ACT_LOGGER(LEVEL_INFO), info); } -#define ACT_LOGWARN(warn) { if(ACT_LOGISENABLED()) ACT_LOGGER(Log)(ACT_LOGGER(LEVEL_WARN), warn); } -#define ACT_LOGERROR(error) { if(ACT_LOGISENABLED()) ACT_LOGGER(Log)(ACT_LOGGER(LEVEL_ERROR), error); } -#define ACT_LOGEXCEPTION(e) { if(ACT_LOGISENABLED()) { char buf[1024]; ACT_SNPRINTF(buf, 1024, "Exception:\t '%s' in '%s'", e.what(), e.where()); ACT_LOGERROR(buf) }} - -#define ACT_LOGINFODATA(info, data) { if(ACT_LOGISENABLED()) ACT_LOGGER(Log)(ACT_LOGGER(LEVEL_INFO), info, data); } -#define ACT_LOGWARNDATA(warn, data) { if(ACT_LOGISENABLED()) ACT_LOGGER(Log)(ACT_LOGGER(LEVEL_WARN), warn, data); } -#define ACT_LOGERRORDATA(error, data) { if(ACT_LOGISENABLED()) ACT_LOGGER(Log)(ACT_LOGGER(LEVEL_ERROR), error, data); } -#define ACT_LOGBLOB(blob) { if(ACT_LOGISENABLED()) ACT_LOGGER(Log)(ACT_LOGGER(LEVEL_INFO), #blob, blob); } - -#define ACT_LOGVALUE(name, value, format) { if(ACT_LOGISENABLED()) { char buf[256]; ACT_SNPRINTF(buf, 256, name " :\t " format, value); ACT_LOGINFO(buf) }} - -#define ACT_LOGINT(value) ACT_LOGVALUE(#value, int(value), "%i") -#define ACT_LOGHEX(value) ACT_LOGVALUE(#value, act::ulong(value), "0x%08x") -#define ACT_LOGSTRING(value) ACT_LOGVALUE(#value, value, "%s") - -#define ACT_LOGNAMEDINT(name, value) ACT_LOGVALUE(name, int(value), "%i") -#define ACT_LOGNAMEDHEX(name, value) ACT_LOGVALUE(name, act::ulong(value), "0x%08x") -#define ACT_LOGNAMEDSTRING(name, value) ACT_LOGVALUE(name, value, "%s") - -#ifdef WIN32 -#define ACT_LOGPTR(value) ACT_LOGINT(value) -#else -#define ACT_LOGPTR(value) ACT_LOGVALUE(#value, value, "%lp") -#endif - -// TODO: MTE: What about this "nice" construct ? -#define ACT_LOGPOINTER(p) { if(ACT_LOGISENABLED()) { if(p != 0) ACT_LOGINT(*p) else ACT_LOGHEX(p) }} -#define ACT_LOGISNULL(p) { if(ACT_LOGISENABLED()) { char buf[256]; if(p != 0) ACT_SNPRINTF(buf, 256, #p " :\t *"); else ACT_SNPRINTF(buf, 256, #p " :\t 0"); ACT_LOGINFO(buf) }} - - -namespace act -{ - class Logger - { - public: - enum Levels - { - LEVEL_OFF = 0, - LEVEL_ERROR = 30, - LEVEL_WARNING = 50, - LEVEL_WARN = LEVEL_WARNING, - LEVEL_INFO = 80, - LEVEL_MAX = 99 - }; - - static void SetLogger(Logger* pLogger); - static void FreeLogger(); - static void Log(short level, const char* msg); - static void Log(short level, const Blob& blobmsg); - static void Log(short level, const char* msg, const Blob& blobmsg); - static void SetLoglevel(short level); - static bool LogInit() - { - return(s_pLogger != 0 ? true : false); - } - - protected: - Logger(){} - virtual ~Logger(){} - virtual void doLog(short level, const char* msg) = 0; - virtual void doSetLoglevel(short level) = 0; - - private: - static Logger* s_pLogger; - static SyncObject m_sync; - }; - -} // namespace act - -#endif // ACT_Logger_h - diff --git a/actlibrary/MacOSX-10.6-x86_64/Release/include/actMode.h b/actlibrary/MacOSX-10.6-x86_64/Release/include/actMode.h deleted file mode 100644 index 3c4bdb9..0000000 --- a/actlibrary/MacOSX-10.6-x86_64/Release/include/actMode.h +++ /dev/null @@ -1,269 +0,0 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actMode.h -// Product: cv act library -// Purpose: enumerations -// -// Copyright: (c) 2006 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_Mode_h -#define ACT_Mode_h - -namespace act -{ - enum - { - MODE_RANGE_BEGIN = 100, - - ENCRYPT = 100, - DECRYPT, - SIGN, - VERIFY, - MAC, - - PRIVATE =200, - PUBLIC, - SECRET, - DOMAINPARAMS, - PKCS8_TYPE, - - CIPHER = 300, - PADDING, - DERIVATOR, - BCMODE, - KEYSIZE, - RAWKEY, - IV, - BLOCKSIZE, - CHAINING_VALUE, - CHAINING_BITCOUNT, - EFFECTIVE_KEYSIZE, - SHAREDDATA_1, - SHAREDDATA_2, - KEYDATALEN, - ITERATIONCOUNT, - COUNTER, - OUTDATALEN, - - ENCODER=400, - PRIVATEKEY, - PUBLICKEY, - PUBLICSIZE, - KEY, - SIGNATURE, - AGREEMENT, - - MODULO=500, - PRIME_P, - PRIME_Q, - MODULOSIZE, - PRIME_P_SIZE, - PRIME_Q_SIZE, - CRT_EXPONENT_1, - CRT_EXPONENT_2, - CRT_COEFFICIENT, - PKCS1_PRIVATEKEY, - PKCS1_PUBLICKEY, - - CURVE=600, - PUBLIC_X, - PUBLIC_Y, - STATICPUBLIC_X, - STATICPUBLIC_Y, - EPHEMERALPUBLIC_X, - EPHEMERALPUBLIC_Y, - CURVEPARAM, - PUBLICKEY_EXPORT_TYPE, - BASEPOINT_EXPORT_TYPE, - COMPRESSED, - UNCOMPRESSED, - HYBRID, - IMPLICITLYCA, - GF2CURVE, - PRIMECURVE, - ENCODE_SIGNATURE, - PLAIN_SECRET, - - RING = 700, - RINGORDER, - RINGGENERATOR, - COFACTOR, - COMPATIBLE, - NEWEPHEMERAL, - CHECKDOMAINPARAMS, - - STATICPRIVATEKEY, - STATICPUBLICKEY, - EPHEMERALPRIVATEKEY, - EPHEMERALPUBLICKEY, - - PIN = 800, - CARDTYPE, - CARDPORTTYPE, - PORTNR, - DLLNAME, - READERNAME, - CHANGEMASTERPIN, - CHANGEPIN, - USERPIN, - MASTERPIN, - PINPAD, - USERNAME, - INFOTEXT, - SIGNKEY, - ENCKEY, - SIGNCERTIFICATE, - ENCCERTIFICATE, - ROOTCERTIFICATE, - LOCK_KEY, - DHKEY, - DHCERTIFICATE, - PERSONALIZED, - READERNAMES, - AID, - PATH, - NULLPIN, - SELECTKEY, - ALLCERTIFICATE, - APPLICATION, - KEYUSAGE, - MECHANISM, - CERTIFICATE, - DATA, - KEYTYPE, - LABEL, - ID, - - CTAPI_PORT = 900, - PCSC_PORT, - - CARDOS_CARD = 1000, - TCOS_CARD, - CVACT_CARD, - PKCS11_CARD, - MICARDOEC_CARD, - STARCOSPK_CARD, - ETRUST_CARD, -// MICARDOPUBLIC_CARD, - CARDOSM4_CARD, - MICARDOP21_CARD, - - HASH=1100, - SALT, - SALT_LENGTH, - EMLEN, - - X = 1200, - SEED, - MULTIPLIER, - - VERSION = 1300, - ISSUER, - SUBJECT, - SERIALNR, - ISSUER_DER, - SUBJECT_DER, - ISSUER_UID, - SUBJECT_UID, - NOTBEFORE_DER, - NOTAFTER_DER, - THISUPDATE_DER, - NEXTUPDATE_DER, - TBS, - - CVPROFILEID = 1400, - CVCAREFERENCE, - CVHOLDERREFERENCE, - CVHATEMPLATE, - CVEACTEMPLATE, - CVEFFECTIVEDATE, - CVEXPIRATIONDATE, - CVPUBLICKEY_TLV, - CVPUBLICKEY_MECHANISM, - - // GF(P)-Curves - SECGp112r1 = 0x1000, - SECGp112r2, - SECGp128r1, - SECGp128r2, - SECGp160r1, - SECGp160r2, - SECGp160k1, - ANSIp192r1, - ANSIp192r2, - ANSIp192r3, - NISTp192r1, - SECGp192r1, - SECGp192k1, - NISTp224r1, - SECGp224r1, - SECGp224k1, - ANSIp239r1, - ANSIp239r2, - ANSIp239r3, - ANSIp256r1, - NISTp256r1, - SECGp256r1, - SECGp256k1, - NISTp384r1, - NISTp521r1, - brainpoolP256r1, - brainpoolP256t1, - - // GF(2^m)-Curves - SECGz113r1 = 0x1200, - SECGz113r2, - SECGz131r1, - SECGz131r2, - ANSIz163r1, - ANSIz163r2, - ANSIz163r3, - NISTz163r1, - NISTz163k1, - SECGz163r1, - SECGz163r2, - SECGz163k1, - ANSIz176w1, - ANSIz191r1, - ANSIz191r2, - ANSIz191r3, - SECGz193r1, - SECGz193r2, - ANSIz208w1, - NISTz233r1, - NISTz233k1, - SECGz233r1, - SECGz233k1, - ANSIz239r1, - ANSIz239r2, - ANSIz239r3, - SECGz239k1, - ANSIz272w1, - NISTz283r1, - NISTz283k1, - SECGz283r1, - SECGz283k1, - ANSIz304w1, - ANSIz359r1, - ANSIz368w1, - NISTz409r1, - NISTz409k1, - SECGz409r1, - SECGz409k1, - ANSIz431r1, - NISTz571r1, - NISTz571k1, - SECGz571r1, - SECGz571k1, - - MODE_RANGE_LAST = 0x1400, // insert new elements here - - TOKEN_CONFIG = 0x2000, // token config start - }; - -} // namespace act - -#endif // ACT_Mode_h diff --git a/actlibrary/MacOSX-10.6-x86_64/Release/include/actMove.h b/actlibrary/MacOSX-10.6-x86_64/Release/include/actMove.h deleted file mode 100644 index ebf1d6f..0000000 --- a/actlibrary/MacOSX-10.6-x86_64/Release/include/actMove.h +++ /dev/null @@ -1,133 +0,0 @@ -////////////////////////////////////////////////////////////////////////// -// Name: actMove.h -// Product: cv act library -// Purpose: template<>'s to implement move semantics -// -// Copyright: (c) 2010 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -// -// Autor: Markus Tesche -// Date: 07/25/2010 -////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_Move_h -#define ACT_Move_h - -namespace act -{ - // - // type_of used to dismantle T resulting in T' - // -------------------------------------------------------------------------------- - template struct type_of { typedef T type; }; - template struct type_of { typedef T type; }; - template struct type_of { typedef T type; }; - template struct type_of { typedef T type; }; - template struct type_of { typedef T type; }; - template struct type_of { typedef T type; }; - - // - // is_const - // -------------------------------------------------------------------------------- - template struct is_const { enum { value = 0 }; }; - template struct is_const { enum { value = 1 }; }; - template struct is_const { enum { value = 0 }; }; - template struct is_const { enum { value = 1 }; }; - template struct is_const { enum { value = 0 }; }; - template struct is_const { enum { value = 1 }; }; - - // - // /brief move_from<...> used to implement move semantics - // -------------------------------------------------------------------------------- - template - class move_from; - - // - // /brief move_from default spcialization, holds reference to type T - // -------------------------------------------------------------------------------- - template - class move_from - { - public: - typedef typename type_of::type type_t; - - explicit move_from(type_t& ref) - : m_ref(ref) - { } - - template - move_from(const move_from& other) - : m_ref(other.source()) - { } - - inline type_t& source() const { return m_ref; } - template O& source() const { return m_ref; } - - template void swap(O& other) { m_ref.swap(other); } - template O& move(O& other) { m_ref.swap(other); return other; } - - private: - type_t& m_ref; - - private: - template - friend class move_from; - }; - - // - // /brief move_from spcialization takes ownership of 'swapped-in' source data - // -------------------------------------------------------------------------------- - template - class move_from : public move_from - { - public: - typedef typename type_of::type type_t; - - explicit move_from(type_t& ref) - : move_from(m_value) - { - ref.swap(m_value); - } - - template - move_from(move_from other) - : move_from(m_value) - { - other.swap(m_value); - } - - private: - typename move_from::type_t m_value; - }; - - // - // /brief move_empty used as default move_from<...> function parameter - // -------------------------------------------------------------------------------- - template - class move_empty : public move_from - { - public: - move_empty() - : move_from(m_empty) - { } - - move_empty(const move_empty&) - : move_from(m_empty) - { } - - inline move_empty& operator=(const move_empty&) { return *this; } - - private: - T m_empty; - }; - - // - // /brief move<> helper function - // -------------------------------------------------------------------------------- - template - move_from move(T& ref) { return move_from(ref); } - -} // namespace act - -#endif // ACT_Move_h diff --git a/actlibrary/MacOSX-10.6-x86_64/Release/include/actOID.h b/actlibrary/MacOSX-10.6-x86_64/Release/include/actOID.h deleted file mode 100644 index 527f660..0000000 --- a/actlibrary/MacOSX-10.6-x86_64/Release/include/actOID.h +++ /dev/null @@ -1,2103 +0,0 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actOID.h -// Product: cv act library -// Purpose: -// -// -// Copyright: (c) 2000 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_OID_H -#define ACT_OID_H - -#define CV_OID_DEF(x) (act::Blob((x),(x)+sizeof((x)))) - -#ifdef _MSC_VER -#pragma warning(disable : 4305) //Verkuerzung von 'static const int' in 'static const unsigned char' -#pragma warning(disable : 4309) //Verkuerzung eines konstanten Wertes -#endif - -//1.2.840.10045.4.1 ECDSA cvECDSA -static const unsigned char cvOID_cvECDSA[] = {0x2a, 0x86, 0x48, 0xce, 0x3d, 0x04, 0x01}; -//1.2.840.113549.1.9.1 Alternate Name cvAlternateName -static const unsigned char cvOID_cvAlternateName[] = {0x2a, 0x86, 0x48, 0x86, 0xf7, 0x0d, 0x01, 0x09, 0x01}; - -//0.2.262.1.10 Deutsche Telekom Telesec -static const unsigned char cvOID_Telesec [] = { 0x02, 0x82, 0x06, 0x01, 0x0A}; -//0.2.262.1.10.0 Telesec extension -static const unsigned char cvOID_extension [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x00}; -//0.2.262.1.10.1 Telesec mechanism -static const unsigned char cvOID_mechanism [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x01}; -//0.2.262.1.10.1.0 Telesec mechanism authentication -static const unsigned char cvOID_authentication [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x01, 0x00}; -//0.2.262.1.10.1.0.1 Telesec authentication passwordAuthentication -static const unsigned char cvOID_passwordAuthentication [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x01, 0x00, 0x01}; -//0.2.262.1.10.1.0.2 Telesec authentication protectedPasswordAuthentication -static const unsigned char cvOID_protectedPasswordAuthentication [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x01, 0x00, 0x02}; -//0.2.262.1.10.1.0.3 Telesec authentication oneWayX509Authentication -static const unsigned char cvOID_oneWayX509Authentication [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x01, 0x00, 0x03}; -//0.2.262.1.10.1.0.4 Telesec authentication twoWayX509Authentication -static const unsigned char cvOID_twoWayX509Authentication [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x01, 0x00, 0x04}; -//0.2.262.1.10.1.0.5 Telesec authentication threeWayX509Authentication -static const unsigned char cvOID_threeWayX509Authentication [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x01, 0x00, 0x05}; -//0.2.262.1.10.1.0.6 Telesec authentication oneWayISO9798Authentication -static const unsigned char cvOID_oneWayISO9798Authentication [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x01, 0x00, 0x06}; -//0.2.262.1.10.1.0.7 Telesec authentication twoWayISO9798Authentication -static const unsigned char cvOID_twoWayISO9798Authentication [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x01, 0x00, 0x07}; -//0.2.262.1.10.1.0.8 Telesec authentication telekomAuthentication -static const unsigned char cvOID_telekomAuthentication [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x01, 0x00, 0x08}; -//0.2.262.1.10.1.1 Telesec mechanism signature -static const unsigned char cvOID_signature [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x01, 0x01}; -//0.2.262.1.10.1.1.1 Telesec mechanism md4WithRSAAndISO9697 -static const unsigned char cvOID_md4WithRSAAndISO9697 [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x01, 0x01, 0x01}; -//0.2.262.1.10.1.1.2 Telesec mechanism md4WithRSAAndTelesecSignatureStandard -static const unsigned char cvOID_md4WithRSAAndTelesecSignatureStandard [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x01, 0x01, 0x02}; -//0.2.262.1.10.1.1.3 Telesec mechanism md5WithRSAAndISO9697 -static const unsigned char cvOID_md5WithRSAAndISO9697 [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x01, 0x01, 0x03}; -//0.2.262.1.10.1.1.4 Telesec mechanism md5WithRSAAndTelesecSignatureStandard -static const unsigned char cvOID_md5WithRSAAndTelesecSignatureStandard [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x01, 0x01, 0x04}; -//0.2.262.1.10.1.1.5 Telesec mechanism ripemd160WithRSAAndTelekomSignatureStandard -static const unsigned char cvOID_ripemd160WithRSAAndTelekomSignatureStandard [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x01, 0x01, 0x05}; -//0.2.262.1.10.1.1.9 Telesec signature hbciRsaSignature -static const unsigned char cvOID_hbciRsaSignature [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x01, 0x01, 0x09}; -//0.2.262.1.10.1.2 Telesec mechanism encryption -static const unsigned char cvOID_encryption [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x01, 0x02}; -//0.2.262.1.10.1.2.0 Telesec encryption none -static const unsigned char cvOID_none [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x01, 0x02, 0x00}; -//0.2.262.1.10.1.2.1 Telesec encryption rsaTelesec -static const unsigned char cvOID_rsaTelesec [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x01, 0x02, 0x01}; -//0.2.262.1.10.1.2.2 Telesec encryption des -static const unsigned char cvOID_des [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x01, 0x02, 0x02}; -//0.2.262.1.10.1.2.2.1 Telesec encryption desECB -static const unsigned char cvOID_desECB [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x01, 0x02, 0x02, 0x01}; -//0.2.262.1.10.1.2.2.2 Telesec encryption desCBC -static const unsigned char cvOID_desCBC [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x01, 0x02, 0x02, 0x02}; -//0.2.262.1.10.1.2.2.3 Telesec encryption desOFB -static const unsigned char cvOID_desOFB [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x01, 0x02, 0x02, 0x03}; -//0.2.262.1.10.1.2.2.4 Telesec encryption desCFB8 -static const unsigned char cvOID_desCFB8 [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x01, 0x02, 0x02, 0x04}; -//0.2.262.1.10.1.2.2.5 Telesec encryption desCFB64 -static const unsigned char cvOID_desCFB64 [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x01, 0x02, 0x02, 0x05}; -//0.2.262.1.10.1.2.3 Telesec encryption des3 -static const unsigned char cvOID_des3 [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x01, 0x02, 0x03}; -//0.2.262.1.10.1.2.3.1 Telesec encryption des3ECB -static const unsigned char cvOID_des3ECB [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x01, 0x02, 0x03, 0x01}; -//0.2.262.1.10.1.2.3.2 Telesec encryption des3CBC -static const unsigned char cvOID_des3CBC [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x01, 0x02, 0x03, 0x02}; -//0.2.262.1.10.1.2.3.3 Telesec encryption des3OFB -static const unsigned char cvOID_des3OFB [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x01, 0x02, 0x03, 0x03}; -//0.2.262.1.10.1.2.3.4 Telesec encryption des3CFB8 -static const unsigned char cvOID_des3CFB8 [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x01, 0x02, 0x03, 0x04}; -//0.2.262.1.10.1.2.3.5 Telesec encryption des3CFB64 -static const unsigned char cvOID_des3CFB64 [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x01, 0x02, 0x03, 0x05}; -//0.2.262.1.10.1.2.4 Telesec encryption magenta -static const unsigned char cvOID_magenta [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x01, 0x02, 0x04}; -//0.2.262.1.10.1.2.5 Telesec encryption idea -static const unsigned char cvOID_idea [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x01, 0x02, 0x05}; -//0.2.262.1.10.1.2.5.1 Telesec encryption ideaECB -static const unsigned char cvOID_ideaECB_Telesec [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x01, 0x02, 0x05, 0x01}; -//0.2.262.1.10.1.2.5.2 Telesec encryption ideaCBC -static const unsigned char cvOID_ideaCBC_Telesec [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x01, 0x02, 0x05, 0x02}; -//0.2.262.1.10.1.2.5.3 Telesec encryption ideaOFB -static const unsigned char cvOID_ideaOFB_Telesec [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x01, 0x02, 0x05, 0x03}; -//0.2.262.1.10.1.2.5.4 Telesec encryption ideaCFB8 -static const unsigned char cvOID_ideaCFB8_Telesec [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x01, 0x02, 0x05, 0x04}; -//0.2.262.1.10.1.2.5.5 Telesec encryption ideaCFB64 -static const unsigned char cvOID_ideaCFB64_Telesec [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x01, 0x02, 0x05, 0x05}; -//0.2.262.1.10.1.3 Telesec mechanism oneWayFunction -static const unsigned char cvOID_oneWayFunction [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x01, 0x03}; -//0.2.262.1.10.1.3.1 Telesec one-way function md4 -static const unsigned char cvOID_md4_Telesec [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x01, 0x03, 0x01}; -//0.2.262.1.10.1.3.2 Telesec one-way function md5 -static const unsigned char cvOID_md5_Telesec [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x01, 0x03, 0x02}; -//0.2.262.1.10.1.3.3 Telesec one-way function sqModNX509 -static const unsigned char cvOID_sqModNX509 [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x01, 0x03, 0x03}; -//0.2.262.1.10.1.3.4 Telesec one-way function sqModNISO -static const unsigned char cvOID_sqModNISO [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x01, 0x03, 0x04}; -//0.2.262.1.10.1.3.5 Telesec one-way function ripemd128 -static const unsigned char cvOID_ripemd128 [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x01, 0x03, 0x05}; -//0.2.262.1.10.1.3.6 Telesec one-way function hashUsingBlockCipher -static const unsigned char cvOID_hashUsingBlockCipher [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x01, 0x03, 0x06}; -//0.2.262.1.10.1.3.7 Telesec one-way function mac -static const unsigned char cvOID_mac [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x01, 0x03, 0x07}; -//0.2.262.1.10.1.3.8 Telesec one-way function ripemd160 -static const unsigned char cvOID_ripemd160 [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x01, 0x03, 0x08}; -//0.2.262.1.10.1.4 Telesec mechanism fecFunction -static const unsigned char cvOID_fecFunction [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x01, 0x04}; -//0.2.262.1.10.1.4.1 Telesec mechanism reedSolomon -static const unsigned char cvOID_reedSolomon [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x01, 0x04, 0x01}; -//0.2.262.1.10.2 Telesec module -static const unsigned char cvOID_module_Telesec [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x02}; -//0.2.262.1.10.2.0 Telesec module algorithms -static const unsigned char cvOID_algorithms [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x02, 0x00}; -//0.2.262.1.10.2.1 Telesec module attributeTypes -static const unsigned char cvOID_attributeTypes [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x02, 0x01}; -//0.2.262.1.10.2.2 Telesec module certificateTypes -static const unsigned char cvOID_certificateTypes [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x02, 0x02}; -//0.2.262.1.10.2.3).. Telesec module messageTypes -static const unsigned char cvOID_messageTypes [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x02, 0x03}; -//0.2.262.1.10.2.4 Telesec module plProtocol -static const unsigned char cvOID_plProtocol [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x02, 0x04}; -//0.2.262.1.10.2.5 Telesec module smeAndComponentsOfSme -static const unsigned char cvOID_smeAndComponentsOfSme [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x02, 0x05}; -//0.2.262.1.10.2.6 Telesec module fec -static const unsigned char cvOID_fec [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x02, 0x06}; -//0.2.262.1.10.2.7 Telesec module usefulDefinitions -static const unsigned char cvOID_usefulDefinitions [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x02, 0x07}; -//0.2.262.1.10.2.8 Telesec module stefiles -static const unsigned char cvOID_stefiles [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x02, 0x08}; -//0.2.262.1.10.2.9 Telesec module sadmib -static const unsigned char cvOID_sadmib [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x02, 0x09}; -//0.2.262.1.10.2.10 Telesec module electronicOrder -static const unsigned char cvOID_electronicOrder [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x02, 0x0A}; -//0.2.262.1.10.2.11 Telesec module telesecTtpAsymmetricApplication -static const unsigned char cvOID_telesecTtpAsymmetricApplication [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x02, 0x0B}; -//0.2.262.1.10.2.12)..... Telesec module telesecTtpBasisApplication -static const unsigned char cvOID_telesecTtpBasisApplication [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x02, 0x0C}; -//0.2.262.1.10.2.13)....... Telesec module telesecTtpMessages -static const unsigned char cvOID_telesecTtpMessages [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x02, 0x0D}; -//0.2.262.1.10.2.14)....... Telesec module telesecTtpTimeStampApplication -static const unsigned char cvOID_telesecTtpTimeStampApplication [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x02, 0x0E}; -//0.2.262.1.10.3 Telesec objectClass -static const unsigned char cvOID_objectClass_Telesec [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x03}; -//0.2.262.1.10.3.0 Telesec object class telesecOtherName -static const unsigned char cvOID_telesecOtherName_Telesec [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x03, 0x00}; -//0.2.262.1.10.3.1 Telesec object class directory -static const unsigned char cvOID_directory_Telesec [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x03, 0x01}; -//0.2.262.1.10.3.2 Telesec object class directoryType -static const unsigned char cvOID_directoryType_Telesec [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x03, 0x02}; -//0.2.262.1.10.3.3 Telesec object class directroyGroup -static const unsigned char cvOID_directroyGroup_Telesec [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x03, 0x03}; -//0.2.262.1.10.3.4 Telesec object class directoryUser -static const unsigned char cvOID_directoryUser_Telesec [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x03, 0x04}; -//0.2.262.1.10.3.5 Telesec object class symmetricKeyEntry -static const unsigned char cvOID_symmetricKeyEntry [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x03, 0x05}; -//0.2.262.1.10.4 Telesec package -static const unsigned char cvOID_package [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x04}; -//0.2.262.1.10.5 Telesec parameter -static const unsigned char cvOID_parameter [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x05}; -//0.2.262.1.10.6 Telesec nameBinding -static const unsigned char cvOID_nameBinding [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x06}; -//0.2.262.1.10.7 Telesec attribute -static const unsigned char cvOID_attribute_Telesec [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x07}; -//0.2.262.1.10.7.0 Telesec attribute applicationGroupIdentifier -static const unsigned char cvOID_applicationGroupIdentifier [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x07, 0x00}; -//0.2.262.1.10.7.1 Telesec attribute certificateType -static const unsigned char cvOID_certificateType [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x07, 0x01}; -//0.2.262.1.10.7.2 Telesec attribute telesecCertificate -static const unsigned char cvOID_Certificate_Telesec [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x07, 0x02}; -//0.2.262.1.10.7.3 Telesec attribute certificateNumber -static const unsigned char cvOID_certificateNumber [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x07, 0x03}; -//0.2.262.1.10.7.4 Telesec attribute certificateRevocationList -static const unsigned char cvOID_certificateRevocationList_Telesec [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x07, 0x04}; -//0.2.262.1.10.7.5 Telesec attribute creationDate -static const unsigned char cvOID_creationDate [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x07, 0x05}; -//0.2.262.1.10.7.6).... Telesec attribute issuer -static const unsigned char cvOID_issuer [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x07, 0x06}; -//0.2.262.1.10.7.7 Telesec attribute namingAuthority -static const unsigned char cvOID_namingAuthority [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x07, 0x07}; -//0.2.262.1.10.7.8 Telesec attribute publicKeyDirectory -static const unsigned char cvOID_publicKeyDirectory [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x07, 0x08}; -//0.2.262.1.10.7.9).. Telesec attribute securityDomain -static const unsigned char cvOID_securityDomain [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x07, 0x09}; -//0.2.262.1.10.7.10)..... Telesec attribute subject -static const unsigned char cvOID_subject [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x07, 0x0A}; -//0.2.262.1.10.7.11 Telesec attribute timeOfRevocation -static const unsigned char cvOID_timeOfRevocation [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x07, 0x0B}; -//0.2.262.1.10.7.12 Telesec attribute userGroupReference -static const unsigned char cvOID_userGroupReference [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x07, 0x0C}; -//0.2.262.1.10.7.13 Telesec attribute validity -static const unsigned char cvOID_validity [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x07, 0x0D}; -//0.2.262.1.10.7.14 Telesec attribute zert93 -static const unsigned char cvOID_zert93 [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x07, 0x0E}; -//0.2.262.1.10.7.15 Telesec attribute securityMessEnv -static const unsigned char cvOID_securityMessEnv [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x07, 0x0F}; -//0.2.262.1.10.7.16 Telesec attribute anonymizedPublicKeyDirectory -static const unsigned char cvOID_anonymizedPublicKeyDirectory [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x07, 0x10}; -//0.2.262.1.10.7.17 Telesec attribute telesecGivenName -static const unsigned char cvOID_telesecGivenName [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x07, 0x11}; -//0.2.262.1.10.7.18). Telesec attribute nameAdditions -static const unsigned char cvOID_nameAdditions [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x07, 0x12}; -//0.2.262.1.10.7.19 Telesec attribute telesecPostalCode -static const unsigned char cvOID_telesecPostalCode [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x07, 0x13}; -//0.2.262.1.10.7.20 Telesec attribute nameDistinguisher -static const unsigned char cvOID_nameDistinguisher [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x07, 0x14}; -//0.2.262.1.10.7.21 Telesec attribute telesecCertificateList -static const unsigned char cvOID_telesecCertificateList [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x07, 0x15}; -//0.2.262.1.10.7.22 Telesec attribute teletrustCertificateList -static const unsigned char cvOID_teletrustCertificateList [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x07, 0x16}; -//0.2.262.1.10.7.23)... Telesec attribute x509CertificateList -static const unsigned char cvOID_x509CertificateList [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x07, 0x17}; -//0.2.262.1.10.7.24 Telesec attribute timeOfIssue -static const unsigned char cvOID_timeOfIssue [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x07, 0x18}; -//0.2.262.1.10.7.25 Telesec attribute physicalCardNumber -static const unsigned char cvOID_physicalCardNumber [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x07, 0x19}; -//0.2.262.1.10.7.26)........ Telesec attribute fileType -static const unsigned char cvOID_fileType [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x07, 0x1A}; -//0.2.262.1.10.7.27 Telesec attribute ctlFileIsArchive -static const unsigned char cvOID_ctlFileIsArchive [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x07, 0x1B}; -//0.2.262.1.10.7.28)........ Telesec attribute emailAddress -static const unsigned char cvOID_emailAddress [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x07, 0x1C}; -//0.2.262.1.10.7.29)........ Telesec attribute certificateTemplateList -static const unsigned char cvOID_certificateTemplateList [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x07, 0x1D}; -//0.2.262.1.10.7.30)........ Telesec attribute directoryName -static const unsigned char cvOID_directoryName [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x07, 0x1E}; -//0.2.262.1.10.7.31)........ Telesec attribute directoryTypeName -static const unsigned char cvOID_directoryTypeName [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x07, 0x1F}; -//0.2.262.1.10.7.32 Telesec attribute directoryGroupName -static const unsigned char cvOID_directoryGroupName [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x07, 0x20}; -//0.2.262.1.10.7.33 Telesec attribute directoryUserName -static const unsigned char cvOID_directoryUserName [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x07, 0x21}; -//0.2.262.1.10.7.34 Telesec attribute revocationFlag -static const unsigned char cvOID_revocationFlag [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x07, 0x22}; -//0.2.262.1.10.7.35 Telesec attribute symmetricKeyEntryName -static const unsigned char cvOID_symmetricKeyEntryName [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x07, 0x23}; -//0.2.262.1.10.7.36 Telesec attribute glNumber -static const unsigned char cvOID_glNumber [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x07, 0x24}; -//0.2.262.1.10.7.37 Telesec attribute goNumber -static const unsigned char cvOID_goNumber [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x07, 0x25}; -//0.2.262.1.10.7.38 Telesec attribute gKeyData -static const unsigned char cvOID_gKeyData [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x07, 0x26}; -//0.2.262.1.10.7.39 Telesec attribute zKeyData -static const unsigned char cvOID_zKeyData [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x07, 0x27}; -//0.2.262.1.10.7.40 Telesec attribute ktKeyData -static const unsigned char cvOID_ktKeyData [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x07, 0x28}; -//0.2.262.1.10.7.41 Telesec attribute ktKeyNumber -static const unsigned char cvOID_ktKeyNumber [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x07, 0x2A}; -//0.2.262.1.10.7.51 Telesec attribute timeOfRevocationGen -static const unsigned char cvOID_timeOfRevocationGen [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x07, 0x33}; -//0.2.262.1.10.7.52).... Telesec attribute liabilityText -static const unsigned char cvOID_liabilityText [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x07, 0x34}; -//0.2.262.1.10.8 Telesec attributeGroup -static const unsigned char cvOID_attributeGroup [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x08}; -//0.2.262.1.10.9 Telesec action -static const unsigned char cvOID_action [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x09}; -//0.2.262.1.10.10 Telesec notification -static const unsigned char cvOID_notification [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x0A}; -//0.2.262.1.10.11 Telesec snmp-mibs -static const unsigned char cvOID_snmp_mibs [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x0B}; -//0.2.262.1.10.11.1 Telesec SNMP MIBs securityApplication -static const unsigned char cvOID_securityApplication [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x0B, 0x01}; -//0.2.262.1.10.12 Telesec certAndCrlExtensionDefinitions -static const unsigned char cvOID_certAndCrlExtensionDefinitions [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x0C}; -//0.2.262.1.10.12.0 Telesec cert/CRL extension certExtensionLiabilityLimitationExt -static const unsigned char cvOID_certExtensionLiabilityLimitationExt [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x0C, 0x00}; -//0.2.262.1.10.12.1 Telesec cert/CRL extension telesecCertIdExt -static const unsigned char cvOID_telesecCertIdExt [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x0C, 0x01}; -//0.2.262.1.10.12.2 Telesec cert/CRL extension telesecPolicyIdentifier -static const unsigned char cvOID_telesecPolicyIdentifier [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x0C, 0x02}; -//0.2.262.1.10.12.3 Telesec cert/CRL extension telesecPolicyQualifierID -static const unsigned char cvOID_telesecPolicyQualifierID [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x0C, 0x03}; -//0.2.262.1.10.12.4 Telesec cert/CRL extension telesecCRLFilteredExt -static const unsigned char cvOID_telesecCRLFilteredExt [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x0C, 0x04}; -//0.2.262.1.10.12.5 Telesec cert/CRL extension telesecCRLFilterExt -static const unsigned char cvOID_telesecCRLFilterExt [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x0C, 0x05}; -//0.2.262.1.10.12.6 Telesec cert/CRL extension telesecNamingAuthorityExt -static const unsigned char cvOID_telesecNamingAuthorityExt [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x0C, 0x06}; -//0.9.2342.19200300.1.3 Some oddball X.500 attribute collection rfc822Mailbox -static const unsigned char cvOID_rfc822Mailbox [] = { 0x09, 0x92, 0x26, 0x89, 0x93, 0xF2, 0x2C, 0x01, 0x03}; -//0.9.2342.19200300.100.1.25 Men are from Mars, this OID is from Pluto domainComponent -static const unsigned char cvOID_domainComponent [] = { 0x09, 0x92, 0x26, 0x89, 0x93, 0xF2, 0x2C, 0x64, 0x01, 0x019}; -//1.2.36.75878867.1.100.1.1 Certificates Australia CA Certificates Australia policyIdentifier -static const unsigned char cvOID_Certificates_Australia_policyIdentifier [] = { 0x2A, 0x24, 0xA4, 0x97, 0xA3, 0x53, 0x01, 0x64, 0x01, 0x01}; -//1.2.36.68980861.1.1.2 Signet CA Signet personal -static const unsigned char cvOID_Signet_personal [] = { 0x2A, 0x24, 0xA0, 0xF2, 0xA0, 0x7D, 0x01, 0x01, 0x02}; -//1.2.36.68980861.1.1.3 Signet CA Signet business -static const unsigned char cvOID_Signet_business [] = { 0x2A, 0x24, 0xA0, 0xF2, 0xA0, 0x7D, 0x01, 0x01, 0x03}; -//1.2.36.68980861.1.1.4 Signet CA Signet legal -static const unsigned char cvOID_Signet_legal [] = { 0x2A, 0x24, 0xA0, 0xF2, 0xA0, 0x7D, 0x01, 0x01, 0x04}; -//1.2.36.68980861.1.1.10 Signet CA Signet pilot -static const unsigned char cvOID_Signet_pilot [] = { 0x2A, 0x24, 0xA0, 0xF2, 0xA0, 0x7D, 0x01, 0x01, 0x0A}; -//1.2.36.68980861.1.1.11 Signet CA Signet intraNet -static const unsigned char cvOID_Signet_intraNet [] = { 0x2A, 0x24, 0xA0, 0xF2, 0xA0, 0x7D, 0x01, 0x01, 0x0B}; -//1.2.36.68980861.1.1.20 Signet CA Signet securityPolicy -static const unsigned char cvOID_Signet_securityPolicy [] = { 0x2A, 0x24, 0xA0, 0xF2, 0xA0, 0x7D, 0x01, 0x01, 0x14}; -//1.2.392.200011.61.1.1.1 Mitsubishi security algorithm symmetric-encryption-algorithm -static const unsigned char cvOID_symmetric_encryption_algorithm [] = { 0x2A, 0x83, 0x08, 0x8C, 0x1A, 0x4B, 0x3D, 0x01, 0x01, 0x01}; -//1.2.392.200011.61.1.1.1.1 Mitsubishi security algorithm misty1-cbc -static const unsigned char cvOID_misty1_cbc [] = { 0x2A, 0x83, 0x08, 0x8C, 0x9A, 0x4B, 0x3D, 0x01, 0x01, 0x01, 0x01}; -//1.2.752.34.1 SEIS Project seis-cp -static const unsigned char cvOID_seis_cp [] = { 0x2A, 0x85, 0x70, 0x22, 0x01}; -//1.2.752.34.1.1 SEIS Project certificate policies SEIS high-assurnace certificatePolicy -static const unsigned char cvOID_SEIS_high_assurnace_certificatePolicy [] = { 0x2A, 0x85, 0x70, 0x22, 0x01, 0x01}; -//1.2.752.34.1.2 SEIS Project certificate policies SEIS GAK certificatePolicy -static const unsigned char cvOID_SEIS_GAK_certificatePolicy [] = { 0x2A, 0x85, 0x70, 0x22, 0x01, 0x02}; -//1.2.752.34.2 SEIS Project SEIS pe -static const unsigned char cvOID_SEIS_pe [] = { 0x2A, 0x85, 0x70, 0x22, 0x02}; -//1.2.752.34.3 SEIS Project SEIS at -static const unsigned char cvOID_SEIS_at [] = { 0x2A, 0x85, 0x70, 0x22, 0x03}; -//1.2.752.34.3.1 SEIS Project attribute SEIS at-personalIdentifier -static const unsigned char cvOID_SEIS_at_personalIdentifier [] = { 0x2A, 0x85, 0x70, 0x22, 0x03, 0x01}; -//1.2.840.10040.1 ANSI X9.57 module -static const unsigned char cvOID_module [] = { 0x2A, 0x86, 0x48, 0xCE, 0x38, 0x01}; -//1.2.840.10040.1.1 ANSI X9.57 module x9f1-cert-mgmt -static const unsigned char cvOID_x9f1_cert_mgmt [] = { 0x2A, 0x86, 0x48, 0xCE, 0x38, 0x01, 0x01}; -//1.2.840.10040.2 ANSI X9.57 holdinstruction -static const unsigned char cvOID_holdinstruction [] = { 0x2A, 0x86, 0x48, 0xCE, 0x38, 0x02}; -//1.2.840.10040.2.1 ANSI X9.57 hold instruction holdinstruction-none -static const unsigned char cvOID_holdinstruction_none [] = { 0x2A, 0x86, 0x48, 0xCE, 0x38, 0x02, 0x01}; -//1.2.840.10040.2.2 ANSI X9.57 hold instruction callissuer -static const unsigned char cvOID_callissuer [] = { 0x2A, 0x86, 0x48, 0xCE, 0x38, 0x02, 0x02}; -//1.2.840.10040.2.3 ANSI X9.57 hold instruction reject -static const unsigned char cvOID_reject [] = { 0x2A, 0x86, 0x48, 0xCE, 0x38, 0x02, 0x03}; -//1.2.840.10040.2.4 ANSI X9.57 hold instruction pickupToken -static const unsigned char cvOID_pickupToken [] = { 0x2A, 0x86, 0x48, 0xCE, 0x38, 0x02, 0x04}; -//1.2.840.10040.3 ANSI X9.57 attribute -static const unsigned char cvOID_attribute [] = { 0x2A, 0x86, 0x48, 0xCE, 0x38, 0x03}; -//1.2.840.10040.3.1 ANSI X9.57 attribute countersignature -static const unsigned char cvOID_countersignature [] = { 0x2A, 0x86, 0x48, 0xCE, 0x38, 0x03, 0x01}; -//1.2.840.10040.3.2 ANSI X9.57 attribute attribute-cert -static const unsigned char cvOID_attribute_cert [] = { 0x2A, 0x86, 0x48, 0xCE, 0x38, 0x03, 0x02}; -//1.2.840.10040.4 ANSI X9.57 algorithm -static const unsigned char cvOID_algorithm [] = { 0x2A, 0x86, 0x48, 0xCE, 0x38, 0x04}; -//1.2.840.10040.4.1 ANSI X9.57 algorithm dsa -static const unsigned char cvOID_dsa [] = { 0x2A, 0x86, 0x48, 0xCE, 0x38, 0x04, 0x01}; -//1.2.840.10040.4.2 ANSI X9.57 algorithm dsa-match -static const unsigned char cvOID_dsa_match [] = { 0x2A, 0x86, 0x48, 0xCE, 0x38, 0x04, 0x02}; -//1.2.840.10040.4.3 ANSI X9.57 algorithm dsaWithSha1 -static const unsigned char cvOID_dsaWithSha1 [] = { 0x2A, 0x86, 0x48, 0xCE, 0x38, 0x04, 0x03}; -//1.2.840.10045.1 ANSI X9.62. This OID is also assigned as ecdsa-with-SHA1 fieldType -static const unsigned char cvOID_fieldType [] = { 0x2A, 0x86, 0x48, 0xCE, 0x3D, 0x01}; -//1.2.840.10045.1.1 ANSI X9.62 field type prime-field -static const unsigned char cvOID_prime_field [] = { 0x2A, 0x86, 0x48, 0xCE, 0x3D, 0x01, 0x01}; -//1.2.840.10045.1.2 ANSI X9.62 field type characteristic-two-field -static const unsigned char cvOID_characteristic_two_field [] = { 0x2A, 0x86, 0x48, 0xCE, 0x3D, 0x01, 0x02}; -//1.2.840.10045.1.2.3 ANSI X9.62 field type characteristic-two-basis -static const unsigned char cvOID_characteristic_two_basis [] = { 0x2A, 0x86, 0x48, 0xCE, 0x3D, 0x01, 0x02, 0x03}; -//1.2.840.10045.1.2.3.1 ANSI X9.62 field basis onBasis -static const unsigned char cvOID_onBasis [] = { 0x2A, 0x86, 0x48, 0xCE, 0x3D, 0x01, 0x02, 0x03, 0x01}; -//1.2.840.10045.1.2.3.2 ANSI X9.62 field basis tpBasis -static const unsigned char cvOID_tpBasis [] = { 0x2A, 0x86, 0x48, 0xCE, 0x3D, 0x01, 0x02, 0x03, 0x02}; -//1.2.840.10045.1.2.3.3 ANSI X9.62 field basis ppBasis -static const unsigned char cvOID_ppBasis [] = { 0x2A, 0x86, 0x48, 0xCE, 0x3D, 0x01, 0x02, 0x03, 0x03}; -//1.2.840.10045.2 ANSI X9.62 publicKeyType -static const unsigned char cvOID_publicKeyType [] = { 0x2A, 0x86, 0x48, 0xCE, 0x3D, 0x02}; -//1.2.840.10045.2.1 ANSI X9.62 public key type ecPublicKey -static const unsigned char cvOID_ecPublicKey [] = { 0x2A, 0x86, 0x48, 0xCE, 0x3D, 0x02, 0x01}; -//1.2.840.10046.1 ANSI X9.42 fieldType -static const unsigned char cvOID_fieldType42 [] = { 0x2A, 0x86, 0x48, 0xCE, 0x3E, 0x01}; -//1.2.840.10046.1.1 ANSI X9.42 field type gf-prime -static const unsigned char cvOID_gf_prime [] = { 0x2A, 0x86, 0x48, 0xCE, 0x3E, 0x01, 0x01}; -//1.2.840.10046.2 ANSI X9.42 numberType -static const unsigned char cvOID_numberType [] = { 0x2A, 0x86, 0x48, 0xCE, 0x3E, 0x02}; -//1.2.840.10046.2.1 ANSI X9.42 number type dhPublicKey -static const unsigned char cvOID_dhPublicKey [] = { 0x2A, 0x86, 0x48, 0xCE, 0x3E, 0x02, 0x01}; -//1.2.840.10046.3 ANSI X9.42 scheme -static const unsigned char cvOID_scheme [] = { 0x2A, 0x86, 0x48, 0xCE, 0x3E, 0x03}; -//1.2.840.10046.3.1 ANSI X9.42 scheme dhStatic -static const unsigned char cvOID_dhStatic [] = { 0x2A, 0x86, 0x48, 0xCE, 0x3E, 0x03, 0x01}; -//1.2.840.10046.3.2 ANSI X9.42 scheme dhEphem -static const unsigned char cvOID_dhEphem [] = { 0x2A, 0x86, 0x48, 0xCE, 0x3E, 0x03, 0x02}; -//1.2.840.10046.3.3 ANSI X9.42 scheme dhHybrid1 -static const unsigned char cvOID_dhHybrid1 [] = { 0x2A, 0x86, 0x48, 0xCE, 0x3E, 0x03, 0x03}; -//1.2.840.10046.3.4 ANSI X9.42 scheme dhHybrid2 -static const unsigned char cvOID_dhHybrid2 [] = { 0x2A, 0x86, 0x48, 0xCE, 0x3E, 0x03, 0x04}; -//1.2.840.10046.3.5 ANSI X9.42 scheme mqv2 -static const unsigned char cvOID_mqv2 [] = { 0x2A, 0x86, 0x48, 0xCE, 0x3E, 0x03, 0x05}; -//1.2.840.10046.3.6 ANSI X9.42 scheme mqv1 -static const unsigned char cvOID_mqv1 [] = { 0x2A, 0x86, 0x48, 0xCE, 0x3E, 0x03, 0x06}; -//1.2.840.113533.7.65.0 Nortel Secure Networks ce (1 2 840 113533 7 65) entrustVersInfo -static const unsigned char cvOID_entrustVersInfo [] = { 0x2A, 0x86, 0x48, 0x86, 0xF6, 0x7D, 0x07, 0x41, 0x00}; -//1.2.840.113533.7.66.3 Nortel Secure Networks alg (1 2 840 113533 7 66) cast3CBC -static const unsigned char cvOID_cast3CBC [] = { 0x2A, 0x86, 0x48, 0x86, 0xF6, 0x7D, 0x07, 0x42, 0x03}; -//1.2.840.113533.7.66.10 Nortel Secure Networks alg (1 2 840 113533 7 66) cast5CBC -static const unsigned char cvOID_cast5CBC [] = { 0x2A, 0x86, 0x48, 0x86, 0xF6, 0x7D, 0x07, 0x42, 0x0A}; -//1.2.840.113533.7.66.11 Nortel Secure Networks alg (1 2 840 113533 7 66) cast5MAC -static const unsigned char cvOID_cast5MAC [] = { 0x2A, 0x86, 0x48, 0x86, 0xF6, 0x7D, 0x07, 0x42, 0x0B}; -//1.2.840.113533.7.66.12 Nortel Secure Networks alg (1 2 840 113533 7 66) pbeWithMD5AndCAST5-CBC -static const unsigned char cvOID_pbeWithMD5AndCAST5_CBC [] = { 0x2A, 0x86, 0x48, 0x86, 0xF6, 0x7D, 0x07, 0x42, 0x0C}; -//1.2.840.113533.7.66.13 Nortel Secure Networks alg (1 2 840 113533 7 66) passwordBasedMac -static const unsigned char cvOID_passwordBasedMac [] = { 0x2A, 0x86, 0x48, 0x86, 0xF6, 0x7D, 0x07, 0x42, 0x0D}; -//1.2.840.113 -static const unsigned char cvOID_entrustUser [] = { 0x2A, 0x86, 0x48, 0x86, 0xF6, 0x7D, 0x07, 0x43, 0x0C}; -//1.2.840.113533.7.68.0 Nortel Secure Networks at (1 2 840 113533 7 68) entrustCAInfo -static const unsigned char cvOID_entrustCAInfo [] = { 0x2A, 0x86, 0x48, 0x86, 0xF6, 0x7D, 0x07, 0x44, 0x00}; -//1.2.840.113533.7.68.10 Nortel Secure Networks at (1 2 840 113533 7 68) attributeCertificate -static const unsigned char cvOID_attributeCertificate [] = { 0x2A, 0x86, 0x48, 0x86, 0xF6, 0x7D, 0x07, 0x44, 0x0A}; -//1.2.840.113549.1.1.1 PKCS #1 rsaEncryption -static const unsigned char cvOID_rsaEncryption [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x01, 0x01}; -//1.2.840.113549.1.1.2 PKCS #1 md2withRSAEncryption -static const unsigned char cvOID_md2withRSAEncryption [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x01, 0x02}; -//1.2.840.113549.1.1.3 PKCS #1 md4withRSAEncryption -static const unsigned char cvOID_md4withRSAEncryption [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x01, 0x03}; -//1.2.840.113549.1.1.4 PKCS #1 md5withRSAEncryption -static const unsigned char cvOID_md5withRSAEncryption [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x01, 0x04}; -//1.2.840.113549.1.1.5 PKCS #1 sha1withRSAEncryption -static const unsigned char cvOID_sha1withRSAEncryption [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x01, 0x05}; -//1.2.840.113549.1.1.6 PKCS #1. This OID may also be assigned as ripemd160WithRSAEncryption rsaOAEPEncryptionSET -static const unsigned char cvOID_rsaOAEPEncryptionSET [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x01, 0x06}; -//1.2.840.113549.1.1.8 PKCS #1. id-mgf1 (0x2A864886F70D010108) -static const unsigned char cvOID_mgf1 [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x01, 0x08}; -//1.2.840.113549.1.1.10 PKCS #1. id-RSASSA-PSS (0x2A864886F70D01010A) -static const unsigned char cvOID_rsaSSA_PSS [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x01, 0x0A}; -//1.2.840.113549.1.2 Obsolete BSAFE OID bsafeRsaEncr -static const unsigned char cvOID_bsafeRsaEncr [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x01}; -//1.2.840.113549.1.3.1 PKCS #3 dhKeyAgreement -static const unsigned char cvOID_dhKeyAgreement [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x03, 0x01}; -//1.2.840.113549.1.5.1 PKCS #5 pbeWithMD2AndDES-CBC -static const unsigned char cvOID_pbeWithMD2AndDES_CBC [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x05, 0x01}; -//1.2.840.113549.1.5.3 PKCS #5 pbeWithMD5AndDES-CBC -static const unsigned char cvOID_pbeWithMD5AndDES_CBC [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x05, 0x03}; -//1.2.840.113549.1.5.4 PKCS #5 pbeWithMD2AndRC2-CBC -static const unsigned char cvOID_pbeWithMD2AndRC2_CBC [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x05, 0x04}; -//1.2.840.113549.1.5.6 PKCS #5 pbeWithMD5AndRC2-CBC -static const unsigned char cvOID_pbeWithMD5AndRC2_CBC [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x05, 0x06}; -//1.2.840.113549.1.5.9 PKCS #5, used in BSAFE only pbeWithMD5AndXOR -static const unsigned char cvOID_pbeWithMD5AndXOR [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x05, 0x09}; -//1.2.840.113549.1.5.10 PKCS #5 pbeWithSHAAndDES-CBC -static const unsigned char cvOID_pbeWithSHAAndDES_CBC [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x05, 0x0A}; -//1.2.840.113549.1.5.12 PKCS #5 v2.0 id-PBKDF2 -static const unsigned char cvOID_id_PBKDF2 [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x05, 0x0C}; -//1.2.840.113549.1.5.13 PKCS #5 v2.0 id-PBES2 -static const unsigned char cvOID_id_PBES2 [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x05, 0x0D}; -//1.2.840.113549.1.5.14 PKCS #5 v2.0 id-PBMAC1 -static const unsigned char cvOID_id_PBMAC1 [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x05, 0x0E}; -//1.2.840.113549.1.7.1 PKCS #7 data -static const unsigned char cvOID_data [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x07, 0x01}; -//1.2.840.113549.1.7.2 PKCS #7 signedData -static const unsigned char cvOID_signedData [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x07, 0x02}; -//1.2.840.113549.1.7.3 PKCS #7 envelopedData -static const unsigned char cvOID_envelopedData [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x07, 0x03}; -//1.2.840.113549.1.7.4 PKCS #7 signedAndEnvelopedData -static const unsigned char cvOID_signedAndEnvelopedData [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x07, 0x04}; -//1.2.840.113549.1.7.5 PKCS #7 digestedData -static const unsigned char cvOID_digestedData [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x07, 0x05}; -//1.2.840.113549.1.7.6 PKCS #7 encryptedData -static const unsigned char cvOID_encryptedData [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x07, 0x06}; -//1.2.840.113549.1.7.7 PKCS #7 experimental dataWithAttributes -static const unsigned char cvOID_dataWithAttributes [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x07, 0x07}; -//1.2.840.113549.1.7.8 PKCS #7 experimental encryptedPrivateKeyInfo -static const unsigned char cvOID_encryptedPrivateKeyInfo [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x07, 0x08}; -//1.2.840.113549.1.9.1 PKCS #9 (1 2 840 113549 1 9). Deprecated, use an altName extension instead emailAddress -static const unsigned char cvOID_emailAddress_PKCS9 [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x09, 0x01}; -//1.2.840.113549.1.9.2 PKCS #9 (1 2 840 113549 1 9) unstructuredName -static const unsigned char cvOID_unstructuredName [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x09, 0x02}; -//1.2.840.113549.1.9.3 PKCS #9 (1 2 840 113549 1 9) contentType -static const unsigned char cvOID_contentType [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x09, 0x03}; -//1.2.840.113549.1.9.4 PKCS #9 (1 2 840 113549 1 9) messageDigest -static const unsigned char cvOID_messageDigest [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x09, 0x04}; -//1.2.840.113549.1.9.5 PKCS #9 (1 2 840 113549 1 9) signingTime -static const unsigned char cvOID_signingTime [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x09, 0x05}; -//1.2.840.113549.1.9.6 PKCS #9 (1 2 840 113549 1 9) countersignature -static const unsigned char cvOID_countersignature_PKCS9 [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x09, 0x06}; -//1.2.840.113549.1.9.7 PKCS #9 (1 2 840 113549 1 9) challengePassword -static const unsigned char cvOID_challengePassword [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x09, 0x07}; -//1.2.840.113549.1.9.8 PKCS #9 (1 2 840 113549 1 9) unstructuredAddress -static const unsigned char cvOID_unstructuredAddress [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x09, 0x08}; -//1.2.840.113549.1.9.9 PKCS #9 (1 2 840 113549 1 9) extendedCertificateAttributes -static const unsigned char cvOID_extendedCertificateAttributes [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x09, 0x09}; -//1.2.840.113549.1.9.10 PKCS #9 (1 2 840 113549 1 9) experimental issuerAndSerialNumber -static const unsigned char cvOID_issuerAndSerialNumber [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x09, 0x0A}; -//1.2.840.113549.1.9.11 PKCS #9 (1 2 840 113549 1 9) experimental passwordCheck -static const unsigned char cvOID_passwordCheck [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x09, 0x0B}; -//1.2.840.113549.1.9.12 PKCS #9 (1 2 840 113549 1 9) experimental publicKey -static const unsigned char cvOID_publicKey [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x09, 0x0C}; -//1.2.840.113549.1.9.13 PKCS #9 (1 2 840 113549 1 9) experimental signingDescription -static const unsigned char cvOID_signingDescription [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x09, 0x0D}; -//1.2.840.113549.1.9.14 PKCS #9 (1 2 840 113549 1 9) experimental extensionReq -static const unsigned char cvOID_extensionReq [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x09, 0x0E}; -//1.2.840.113549.1.9.15 PKCS #9 (1 2 840 113549 1 9). This OID was formerly assigned as symmetricCapabilities, then reassigned as SMIMECapabilities, then renamed to the current name sMIMECapabilities -static const unsigned char cvOID_sMIMECapabilities [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x09, 0x0F}; -//1.2.840.113549.1.9.15.1 sMIMECapabilities (1 2 840 113549 1 9 15) preferSignedData -static const unsigned char cvOID_preferSignedData [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x09, 0x0F, 0x01}; -//1.2.840.113549.1.9.15.2 sMIMECapabilities (1 2 840 113549 1 9 15) canNotDecryptAny -static const unsigned char cvOID_canNotDecryptAny [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x09, 0x0F, 0x02}; -//1.2.840.113549.1.9.15.3 sMIMECapabilities (1 2 840 113549 1 9 15). Deprecated, use (1 2 840 113549 1 9 16 2 1) instead receiptRequest -static const unsigned char cvOID_receiptRequest [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x09, 0x0F, 0x03}; -//1.2.840.113549.1.9.15.4 sMIMECapabilities (1 2 840 113549 1 9 15). Deprecated, use (1 2 840 113549 1 9 16 1 1) instead receipt -static const unsigned char cvOID_receipt [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x09, 0x0F, 0x04}; -//1.2.840.113549.1.9.15.5 sMIMECapabilities (1 2 840 113549 1 9 15). Deprecated, use (1 2 840 113549 1 9 16 2 4) instead contentHints -static const unsigned char cvOID_contentHints [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x09, 0x0F, 0x05}; -//1.2.840.113549.1.9.15.6 sMIMECapabilities (1 2 840 113549 1 9 15). Deprecated, use (1 2 840 113549 1 9 16 2 3) instead mlExpansionHistory -static const unsigned char cvOID_mlExpansionHistory [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x09, 0x0F, 0x06}; -//1.2.840.113549.1.9.16 PKCS #9 (1 2 840 113549 1 9) id-sMIME -static const unsigned char cvOID_id_sMIME [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x09, 0x10}; -//1.2.840.113549.1.9.16.0 id-sMIME (1 2 840 113549 1 9 16) id-mod -static const unsigned char cvOID_id_mod [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x09, 0x10, 0x00}; -//1.2.840.113549.1.9.16.0.1 S/MIME Modules (1 2 840 113549 1 9 16 0) id-mod-cms -static const unsigned char cvOID_id_mod_cms [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x09, 0x10, 0x00, 0x01}; -//1.2.840.113549.1.9.16.0.2 S/MIME Modules (1 2 840 113549 1 9 16 0) id-mod-ess -static const unsigned char cvOID_id_mod_ess [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x09, 0x10, 0x00, 0x02}; -//1.2.840.113549.1.9.16.1 id-sMIME (1 2 840 113549 1 9 16) id-ct -static const unsigned char cvOID_id_ct [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x09, 0x10, 0x01}; -//1.2.840.113549.1.9.16.1.1 S/MIME Content Types (1 2 840 113549 1 9 16 1) id-ct-receipt -static const unsigned char cvOID_id_ct_receipt [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x09, 0x10, 0x01, 0x01}; -//1.2.840.113549.1.9.16.1.2 S/MIME Content Types (1 2 840 113549 1 9 16 1) id-ct-authData -static const unsigned char cvOID_id_ct_authData [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x09, 0x10, 0x01, 0x02}; -//1.2.840.113549.1.9.16.1.3 S/MIME Content Types (1 2 840 113549 1 9 16 1) id-ct-compressedData -static const unsigned char cvOID_id_ct_compressedData [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x09, 0x10, 0x01, 0x03}; -//1.2.840.113549.1.9.16.2 id-sMIME (1 2 840 113549 1 9 16) id-aa -static const unsigned char cvOID_id_aa [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x09, 0x10, 0x02}; -//1.2.840.113549.1.9.16.2.1 S/MIME Authenticated Attributes (1 2 840 113549 1 9 16 2) id-aa-receiptRequest -static const unsigned char cvOID_id_aa_receiptRequest [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x09, 0x10, 0x02, 0x01}; -//1.2.840.113549.1.9.16.2.2 S/MIME Authenticated Attributes (1 2 840 113549 1 9 16 2) id-aa-securityLabel -static const unsigned char cvOID_id_aa_securityLabel [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x09, 0x10, 0x02, 0x02}; -//1.2.840.113549.1.9.16.2.3 S/MIME Authenticated Attributes (1 2 840 113549 1 9 16 2) id-aa-mlExpandHistory -static const unsigned char cvOID_id_aa_mlExpandHistory [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x09, 0x10, 0x02, 0x03}; -//1.2.840.113549.1.9.16.2.4 S/MIME Authenticated Attributes (1 2 840 113549 1 9 16 2) id-aa-contentHint -static const unsigned char cvOID_id_aa_contentHint [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x09, 0x10, 0x02, 0x04}; -//1.2.840.113549.1.9.16.2.5 S/MIME Authenticated Attributes (1 2 840 113549 1 9 16 2) id-aa-msgSigDigest -static const unsigned char cvOID_id_aa_msgSigDigest [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x09, 0x10, 0x02, 0x05}; -//1.2.840.113549.1.9.16.2.7 S/MIME Authenticated Attributes (1 2 840 113549 1 9 16 2) id-aa-contentIdentifier -static const unsigned char cvOID_id_aa_contentIdentifier [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x09, 0x10, 0x02, 0x07}; -//1.2.840.113549.1.9.16.2.8 S/MIME Authenticated Attributes (1 2 840 113549 1 9 16 2) id-aa-macValue -static const unsigned char cvOID_id_aa_macValue [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x09, 0x10, 0x02, 0x08}; -//1.2.840.113549.1.9.16.2.9 S/MIME Authenticated Attributes (1 2 840 113549 1 9 16 2) id-aa-equivalentLabels -static const unsigned char cvOID_id_aa_equivalentLabels [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x09, 0x10, 0x02, 0x09}; -//1.2.840.113549.1.9.16.2.10 S/MIME Authenticated Attributes (1 2 840 113549 1 9 16 2) id-aa-contentReference -static const unsigned char cvOID_id_aa_contentReference [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x09, 0x10, 0x02, 0x0A}; -//1.2.840.113549.1.9.16.3.5 S/MIME Algorithms (1 2 840 113549 1 9 16 3) id-alg-ESDH -static const unsigned char cvOID_id_alg_ESDH [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x09, 0x10, 0x03, 0x05}; -//1.2.840.113549.1.9.16.3.6 S/MIME Algorithms (1 2 840 113549 1 9 16 3) id-alg-CMS3DESwrap -static const unsigned char cvOID_id_alg_CMS3DESwrap [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x09, 0x10, 0x03, 0x06}; -//1.2.840.113549.1.9.16.3.7 S/MIME Algorithms (1 2 840 113549 1 9 16 3) id-alg-CMSRC2wrap -static const unsigned char cvOID_id_alg_CMSRC2wrap [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x09, 0x10, 0x03, 0x07}; -//1.2.840.113549.1.9.16.3.8 S/MIME Algorithms (1 2 840 113549 1 9 16 3) id-alg-zlib -static const unsigned char cvOID_id_alg_zlib [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x09, 0x10, 0x03, 0x08}; -//1.2.840.113549.1.9.20 PKCS #9 (1 2 840 113549 1 9) friendlyName (for PKCS #12) -static const unsigned char cvOID_friendlyName [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x09, 0x14}; -//1.2.840.113549.1.9.21 PKCS #9 (1 2 840 113549 1 9) localKeyID (for PKCS #12) -static const unsigned char cvOID_localKeyID[] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x09, 0x15}; -//1.2.840.113549.1.9.22 PKCS #9 (1 2 840 113549 1 9) certTypes (for PKCS #12) -static const unsigned char cvOID_certTypes[] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x09, 0x16}; -//1.2.840.113549.1.9.22.1 PKCS #9 (1 2 840 113549 1 9) x509Certificate (for PKCS #12) -static const unsigned char cvOID_x509Certificate[] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x09, 0x16, 0x01}; -//1.2.840.113549.1.9.22.2 PKCS #9 (1 2 840 113549 1 9) sdsiCertificate (for PKCS #12) -static const unsigned char cvOID_sdsiCertificate [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x09, 0x16, 0x02}; -//1.2.840.113549.1.9.23 PKCS #9 (1 2 840 113549 1 9) crlTypes (for PKCS #12) -static const unsigned char cvOID_crlTypes[] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x09, 0x17}; -//1.2.840.113549.1.9.23.1 PKCS #9 (1 2 840 113549 1 9) x509Crl (for PKCS #12) -static const unsigned char cvOID_x509Crl[] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x09, 0x17, 0x01}; -//1.2.840.113549.1.12.1 This OID was formerly assigned as PKCS #12 modeID pkcs-12-PbeIds -static const unsigned char cvOID_pkcs_12_PbeIds [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x0C, 0x01}; -//1.2.840.113549.1.12.1.1 PKCS #12 PbeIds (1 2 840 113549 1 12 1). This OID was formerly assigned as pkcs-12-OfflineTransportMode pbeWithSHAAnd128BitRC4 -static const unsigned char cvOID_pbeWithSHAAnd128BitRC4 [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x0C, 0x01, 0x01}; -//1.2.840.113549.1.12.1.2 PKCS #12 PbeIds (1 2 840 113549 1 12 2). This OID was formerly assigned as pkcs-12-OnlineTransportMode pbeWithSHAAnd40BitRC4 -static const unsigned char cvOID_pbeWithSHAAnd40BitRC4 [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x0C, 0x01, 0x02}; -//1.2.840.113549.1.12.1.3 PKCS #12 PbeIds (1 2 840 113549 1 12 3) pbeWithSHAAnd3-KeyTripleDES-CBC -static const unsigned char cvOID_pbeWithSHAAnd3_KeyTripleDES_CBC [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x0C, 0x01, 0x03}; -//1.2.840.113549.1.12.1.4 PKCS #12 PbeIds (1 2 840 113549 1 12 3) pbeWithSHAAnd2-KeyTripleDES-CBC -static const unsigned char cvOID_pbeWithSHAAnd2_KeyTripleDES_CBC [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x0C, 0x01, 0x04}; -//1.2.840.113549.1.12.1.5 PKCS #12 PbeIds (1 2 840 113549 1 12 3) pbeWithSHAAnd128BitRC2-CBC -static const unsigned char cvOID_pbeWithSHAAnd128BitRC2_CBC [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x0C, 0x01, 0x05}; -//1.2.840.113549.1.12.1.6 PKCS #12 PbeIds (1 2 840 113549 1 12 3) pbeWithSHAAnd40BitRC2-CBC -static const unsigned char cvOID_pbeWithSHAAnd40BitRC2_CBC [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x0C, 0x01, 0x06}; -//1.2.840.113549.1.12.2 Deprecated pkcs-12-ESPVKID -static const unsigned char cvOID_pkcs_12_ESPVKID [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x0C, 0x02}; -//1.2.840.113549.1.12.2.1 PKCS #12 ESPVKID (1 2 840 113549 1 12 2). Deprecated, use (1 2 840 113549 1 12 3 5) instead pkcs-12-PKCS8KeyShrouding -static const unsigned char cvOID_pkcs_12_PKCS8KeyShrouding [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x0C, 0x02, 0x01}; -//1.2.840.113549.1.12.3.1 PKCS #12 BagIds (1 2 840 113549 1 12 3) pkcs-12-keyBagId -static const unsigned char cvOID_pkcs_12_keyBagId [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x0C, 0x03, 0x01}; -//1.2.840.113549.1.12.3.2 PKCS #12 BagIds (1 2 840 113549 1 12 3) pkcs-12-certAndCRLBagId -static const unsigned char cvOID_pkcs_12_certAndCRLBagId [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x0C, 0x03, 0x02}; -//1.2.840.113549.1.12.3.3 PKCS #12 BagIds (1 2 840 113549 1 12 3) pkcs-12-secretBagId -static const unsigned char cvOID_pkcs_12_secretBagId [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x0C, 0x03, 0x03}; -//1.2.840.113549.1.12.3.4 PKCS #12 BagIds (1 2 840 113549 1 12 3) pkcs-12-safeContentsId -static const unsigned char cvOID_pkcs_12_safeContentsId [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x0C, 0x03, 0x04}; -//1.2.840.113549.1.12.3.5 PKCS #12 BagIds (1 2 840 113549 1 12 3) pkcs-12-pkcs-8ShroudedKeyBagId -static const unsigned char cvOID_pkcs_12_pkcs_8ShroudedKeyBagId [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x0C, 0x03, 0x05}; -//1.2.840.113549.1.12.4 Deprecated pkcs-12-CertBagID -static const unsigned char cvOID_pkcs_12_CertBagID [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x0C, 0x04}; -//1.2.840.113549.1.12.4.1 PKCS #12 CertBagID (1 2 840 113549 1 12 4). This OID was formerly assigned as pkcs-12-X509CertCRLBag pkcs-12-X509CertCRLBagID -static const unsigned char cvOID_pkcs_12_X509CertCRLBagID [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x0C, 0x04, 0x01}; -//1.2.840.113549.1.12.4.2 PKCS #12 CertBagID (1 2 840 113549 1 12 4). This OID was formerly assigned as pkcs-12-SDSICertBag pkcs-12-SDSICertBagID -static const unsigned char cvOID_pkcs_12_SDSICertBagID [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x0C, 0x04, 0x02}; -//1.2.840.113549.1.12.5.1 PKCS #12 OID (1 2 840 113549 1 12 5). Deprecated, use the partially compatible (1 2 840 113549 1 12 1) OIDs instead pkcs-12-PBEID -static const unsigned char cvOID_pkcs_12_PBEID [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x0C, 0x05, 0x01}; -//1.2.840.113549.1.12.5.1.1 PKCS #12 OID PBEID (1 2 840 113549 1 12 5 1). Deprecated, use (1 2 840 113549 1 12 1 1) instead pkcs-12-PBEWithSha1And128BitRC4 -static const unsigned char cvOID_pkcs_12_PBEWithSha1And128BitRC4 [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x0C, 0x05, 0x01, 0x01}; -//1.2.840.113549.1.12.5.1.2 PKCS #12 OID PBEID (1 2 840 113549 1 12 5 1). Deprecated, use (1 2 840 113549 1 12 1 2) instead pkcs-12-PBEWithSha1And40BitRC4 -static const unsigned char cvOID_pkcs_12_PBEWithSha1And40BitRC4 [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x0C, 0x05, 0x01, 0x02}; -//1.2.840.113549.1.12.5.1.3 PKCS #12 OID PBEID (1 2 840 113549 1 12 5 1). Deprecated, use the incompatible but similar (1 2 840 113549 1 12 1 3) or (1 2 840 113549 1 12 1 4) instead pkcs-12-PBEWithSha1AndTripleDESCBC -static const unsigned char cvOID_pkcs_12_PBEWithSha1AndTripleDESCBC [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x0C, 0x05, 0x01, 0x03}; -//1.2.840.113549.1.12.5.1.4 PKCS #12 OID PBEID (1 2 840 113549 1 12 5 1). Deprecated, use (1 2 840 113549 1 12 1 5) instead pkcs-12-PBEWithSha1And128BitRC2CBC -static const unsigned char cvOID_pkcs_12_PBEWithSha1And128BitRC2CBC [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x0C, 0x05, 0x01, 0x04}; -//1.2.840.113549.1.12.5.1.5 PKCS #12 OID PBEID (1 2 840 113549 1 12 5 1). Deprecated, use (1 2 840 113549 1 12 1 6) instead pkcs-12-PBEWithSha1And40BitRC2CBC -static const unsigned char cvOID_pkcs_12_PBEWithSha1And40BitRC2CBC [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x0C, 0x05, 0x01, 0x05}; -//1.2.840.113549.1.12.5.1.6 PKCS #12 OID PBEID (1 2 840 113549 1 12 5 1). Deprecated, use the incompatible but similar (1 2 840 113549 1 12 1 1) or (1 2 840 113549 1 12 1 2) instead pkcs-12-PBEWithSha1AndRC4 -static const unsigned char cvOID_pkcs_12_PBEWithSha1AndRC4 [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x0C, 0x05, 0x01, 0x06}; -//1.2.840.113549.1.12.5.1.7 PKCS #12 OID PBEID (1 2 840 113549 1 12 5 1). Deprecated, use the incompatible but similar (1 2 840 113549 1 12 1 5) or (1 2 840 113549 1 12 1 6) instead pkcs-12-PBEWithSha1AndRC2CBC -static const unsigned char cvOID_pkcs_12_PBEWithSha1AndRC2CBC [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x0C, 0x05, 0x01, 0x07}; -//1.2.840.113549.1.12.5.2.1 PKCS #12 OID EnvelopingID (1 2 840 113549 1 12 5 2). Deprecated, use the conventional PKCS #1 OIDs instead pkcs-12-RSAEncryptionWith128BitRC4 -static const unsigned char cvOID_pkcs_12_RSAEncryptionWith128BitRC4 [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x0C, 0x05, 0x02, 0x01}; -//1.2.840.113549.1.12.5.2.2 PKCS #12 OID EnvelopingID (1 2 840 113549 1 12 5 2). Deprecated, use the conventional PKCS #1 OIDs instead pkcs-12-RSAEncryptionWith40BitRC4 -static const unsigned char cvOID_pkcs_12_RSAEncryptionWith40BitRC4 [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x0C, 0x05, 0x02, 0x02}; -//1.2.840.113549.1.12.5.2.3 PKCS #12 OID EnvelopingID (1 2 840 113549 1 12 5 2). Deprecated, use the conventional PKCS #1 OIDs instead pkcs-12-RSAEncryptionWithTripleDES -static const unsigned char cvOID_pkcs_12_RSAEncryptionWithTripleDES [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x0C, 0x05, 0x02, 0x03}; -//1.2.840.113549.1.12.5.3.1 PKCS #12 OID SignatureID (1 2 840 113549 1 12 5 3). Deprecated, use the conventional PKCS #1 OIDs instead pkcs-12-RSASignatureWithSHA1Digest -static const unsigned char cvOID_pkcs_12_RSASignatureWithSHA1Digest [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x0C, 0x05, 0x03, 0x01}; -//1.2.840.113549.1.12.10.1.1 PKCS #12 BagIds (1 2 840 113549 1 12 10 1) pkcs-12-keyBag -static const unsigned char cvOID_pkcs_12_keyBag [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x0C, 0x0A, 0x01, 0x01}; -//1.2.840.113549.1.12.10.1.2 PKCS #12 BagIds (1 2 840 113549 1 12 10 1) pkcs-12-pkcs-8ShroudedKeyBag -static const unsigned char cvOID_pkcs_12_pkcs_8ShroudedKeyBag [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x0C, 0x0A, 0x01, 0x02}; -//1.2.840.113549.1.12.10.1.3 PKCS #12 BagIds (1 2 840 113549 1 12 10 1) pkcs-12-certBag -static const unsigned char cvOID_pkcs_12_certBag [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x0C, 0x0A, 0x01, 0x03}; -//1.2.840.113549.1.12.10.1.4 PKCS #12 BagIds (1 2 840 113549 1 12 10 1) pkcs-12-crlBag -static const unsigned char cvOID_pkcs_12_crlBag [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x0C, 0x0A, 0x01, 0x04}; -//1.2.840.113549.1.12.10.1.5 PKCS #12 BagIds (1 2 840 113549 1 12 10 1) pkcs-12-secretBag -static const unsigned char cvOID_pkcs_12_secretBag [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x0C, 0x0A, 0x01, 0x05}; -//1.2.840.113549.1.12.10.1.6 PKCS #12 BagIds (1 2 840 113549 1 12 10 1) pkcs-12-safeContentsBag -static const unsigned char cvOID_pkcs_12_safeContentsBag [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x0C, 0x0A, 0x01, 0x06}; -//1.2.840.113549.2.2 RSADSI digestAlgorithm (1 2 840 113549 2) md2 -static const unsigned char cvOID_md2 [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x02, 0x02}; -//1.2.840.113549.2.4 RSADSI digestAlgorithm (1 2 840 113549 2) md4 -static const unsigned char cvOID_md4 [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x02, 0x04}; -//1.2.840.113549.2.5 RSADSI digestAlgorithm (1 2 840 113549 2) md5 -static const unsigned char cvOID_md5 [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x02, 0x05}; -//1.2.840.113549.3.2 RSADSI encryptionAlgorithm (1 2 840 113549 3) rc2CBC -static const unsigned char cvOID_rc2CBC [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x03, 0x02}; -//1.2.840.113549.3.3 RSADSI encryptionAlgorithm (1 2 840 113549 3) rc2ECB -static const unsigned char cvOID_rc2ECB [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x03, 0x03}; -//1.2.840.113549.3.4 RSADSI encryptionAlgorithm (1 2 840 113549 3) rc4 -static const unsigned char cvOID_rc4 [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x03, 0x04}; -//1.2.840.113549.3.5 RSADSI encryptionAlgorithm (1 2 840 113549 3) rc4WithMAC -static const unsigned char cvOID_rc4WithMAC [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x03, 0x05}; -//1.2.840.113549.3.6 RSADSI encryptionAlgorithm (1 2 840 113549 3) desx-CBC -static const unsigned char cvOID_desx_CBC [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x03, 0x06}; -//1.2.840.113549.3.7 RSADSI encryptionAlgorithm (1 2 840 113549 3) des-EDE3-CBC -static const unsigned char cvOID_des_EDE3_CBC [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x03, 0x07}; -//1.2.840.113549.3.8 RSADSI encryptionAlgorithm (1 2 840 113549 3) rc5CBC -static const unsigned char cvOID_rc5CBC [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x03, 0x08}; -//1.2.840.113549.3.9 RSADSI encryptionAlgorithm (1 2 840 113549 3) rc5-CBCPad -static const unsigned char cvOID_rc5_CBCPad [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x03, 0x09}; -//1.2.840.113549.3.10 RSADSI encryptionAlgorithm (1 2 840 113549 3). Formerly called CDMFCBCPad desCDMF -static const unsigned char cvOID_desCDMF [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x03, 0x0A}; -//1.3.6.1.4.1.188.7.1.1 Ascom Systech ascom -static const unsigned char cvOID_ascom [] = { 0x2B, 0x06, 0x01, 0x04, 0x01, 0x81, 0x3C, 0x07, 0x01, 0x01}; -//1.3.6.1.4.1.188.7.1.1.1 Ascom Systech ideaECB -static const unsigned char cvOID_ideaECB [] = { 0x2B, 0x06, 0x01, 0x04, 0x01, 0x81, 0x3C, 0x07, 0x01, 0x01, 0x01}; -//1.3.6.1.4.1.188.7.1.1.2 Ascom Systech ideaCBC -static const unsigned char cvOID_ideaCBC [] = { 0x2B, 0x06, 0x01, 0x04, 0x01, 0x81, 0x3C, 0x07, 0x01, 0x01, 0x02}; -//1.3.6.1.4.1.188.7.1.1.3 Ascom Systech ideaCFB -static const unsigned char cvOID_ideaCFB [] = { 0x2B, 0x06, 0x01, 0x04, 0x01, 0x81, 0x3C, 0x07, 0x01, 0x01, 0x03}; -//1.3.6.1.4.1.188.7.1.1.4 Ascom Systech ideaOFB -static const unsigned char cvOID_ideaOFB [] = { 0x2B, 0x06, 0x01, 0x04, 0x01, 0x81, 0x3C, 0x07, 0x01, 0x01, 0x04}; -//1.2.840.113556.4.3 Microsoft microsoftExcel -static const unsigned char cvOID_microsoftExcel [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x14, 0x04, 0x03}; -//1.2.840.113556.4.4 Microsoft titledWithOID -static const unsigned char cvOID_titledWithOID [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x14, 0x04, 0x04}; -//1.2.840.113556.4.5 Microsoft microsoftPowerPoint -static const unsigned char cvOID_microsoftPowerPoint [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x14, 0x04, 0x05}; -//1.3.6.1.4.1.311.2.1.4 Microsoft code signing spcIndirectDataContext -static const unsigned char cvOID_spcIndirectDataContext [] = { 0x2B, 0x06, 0x01, 0x04, 0x01, 0x82, 0x37, 0x02, 0x01, 0x04}; -//1.3.6.1.4.1.311.2.1.10 Microsoft code signing. Also known as policyLink spcAgencyInfo -static const unsigned char cvOID_spcAgencyInfo [] = { 0x2B, 0x06, 0x01, 0x04, 0x01, 0x82, 0x37, 0x02, 0x01, 0x0A}; -//1.3.6.1.4.1.311.2.1.11 Microsoft code signing spcStatementType -static const unsigned char cvOID_spcStatementType [] = { 0x2B, 0x06, 0x01, 0x04, 0x01, 0x82, 0x37, 0x02, 0x01, 0x0B}; -//1.3.6.1.4.1.311.2.1.12 Microsoft code signing spcSpOpusInfo -static const unsigned char cvOID_spcSpOpusInfo [] = { 0x2B, 0x06, 0x01, 0x04, 0x01, 0x82, 0x37, 0x02, 0x01, 0x0C}; -//1.3.6.1.4.1.311.2.1.14 Microsoft certReqExtensions -static const unsigned char cvOID_certReqExtensions [] = { 0x2B, 0x06, 0x01, 0x04, 0x01, 0x82, 0x37, 0x02, 0x01, 0x0E}; -//1.3.6.1.4.1.311.2.1.15 Microsoft code signing spcPelmageData -static const unsigned char cvOID_spcPelmageData [] = { 0x2B, 0x06, 0x01, 0x04, 0x01, 0x82, 0x37, 0x02, 0x01, 0x0F}; -//1.3.6.1.4.1.311.2.1.20 Microsoft code signing. Also known as "glue extension" spcLink (type 1) -static const unsigned char cvOID_spcLink_1[] = { 0x2B, 0x06, 0x01, 0x04, 0x01, 0x82, 0x37, 0x02, 0x01, 0x14}; -//1.3.6.1.4.1.311.2.1.21 Microsoft individualCodeSigning -static const unsigned char cvOID_individualCodeSigning [] = { 0x2B, 0x06, 0x01, 0x04, 0x01, 0x82, 0x37, 0x02, 0x01, 0x15}; -//1.3.6.1.4.1.311.2.1.22 Microsoft commercialCodeSigning -static const unsigned char cvOID_commercialCodeSigning [] = { 0x2B, 0x06, 0x01, 0x04, 0x01, 0x82, 0x37, 0x02, 0x01, 0x16}; -//1.3.6.1.4.1.311.2.1.25 Microsoft code signing. Also known as "glue extension" spcLink (type 2) -static const unsigned char cvOID_spcLink_2[] = { 0x2B, 0x06, 0x01, 0x04, 0x01, 0x82, 0x37, 0x02, 0x01, 0x19}; -//1.3.6.1.4.1.311.2.1.26 Microsoft code signing spcMinimalCriteriaInfo -static const unsigned char cvOID_spcMinimalCriteriaInfo [] = { 0x2B, 0x06, 0x01, 0x04, 0x01, 0x82, 0x37, 0x02, 0x01, 0x1A}; -//1.3.6.1.4.1.311.2.1.27 Microsoft code signing spcFinancialCriteriaInfo -static const unsigned char cvOID_spcFinancialCriteriaInfo [] = { 0x2B, 0x06, 0x01, 0x04, 0x01, 0x82, 0x37, 0x02, 0x01, 0x1B}; -//1.3.6.1.4.1.311.2.1.28 Microsoft code signing. Also known as "glue extension" spcLink (type 3) -static const unsigned char cvOID_spcLink_3[] = { 0x2B, 0x06, 0x01, 0x04, 0x01, 0x82, 0x37, 0x02, 0x01, 0x1C}; -//1.3.6.1.4.1.311.3.2.1 Microsoft code signing timestampCountersignature -static const unsigned char cvOID_timestampCountersignature [] = { 0x2B, 0x06, 0x01, 0x04, 0x01, 0x82, 0x37, 0x03, 0x02, 0x01}; -//1.3.6.1.4.1.311.10.1 Microsoft PKCS #7 contentType certTrustList -static const unsigned char cvOID_certTrustList [] = { 0x2B, 0x06, 0x01, 0x04, 0x01, 0x82, 0x37, 0x0A, 0x01}; -//1.3.6.1.4.1.311.10.2 Microsoft nextUpdateLocation -static const unsigned char cvOID_nextUpdateLocation [] = { 0x2B, 0x06, 0x01, 0x04, 0x01, 0x82, 0x37, 0x0A, 0x02}; -//1.3.6.1.4.1.311.10.3.1 Microsoft enhanced key usage certTrustListSigning -static const unsigned char cvOID_certTrustListSigning [] = { 0x2B, 0x06, 0x01, 0x04, 0x01, 0x82, 0x37, 0x0A, 0x03, 0x01}; -//1.3.6.1.4.1.311.10.3.2 Microsoft enhanced key usage timeStampSigning -static const unsigned char cvOID_timeStampSigning [] = { 0x2B, 0x06, 0x01, 0x04, 0x01, 0x82, 0x37, 0x0A, 0x03, 0x02}; -//1.3.6.1.4.1.311.10.3.3 Microsoft enhanced key usage serverGatedCrypto -static const unsigned char cvOID_serverGatedCrypto [] = { 0x2B, 0x06, 0x01, 0x04, 0x01, 0x82, 0x37, 0x0A, 0x03, 0x03}; -//1.3.6.1.4.1.311.10.3.4 Microsoft enhanced key usage encryptedFileSystem -static const unsigned char cvOID_encryptedFileSystem [] = { 0x2B, 0x06, 0x01, 0x04, 0x01, 0x82, 0x37, 0x0A, 0x03, 0x04}; -//1.3.6.1.4.1.311.10.4.1 Microsoft attribute yesnoTrustAttr -static const unsigned char cvOID_yesnoTrustAttr [] = { 0x2B, 0x06, 0x01, 0x04, 0x01, 0x82, 0x37, 0x0A, 0x04, 0x01}; -//1.3.6.1.4.1.311.16.4 Microsoft S/MIME cert attribute microsoftEncryptionCert -static const unsigned char cvOID_microsoftEncryptionCert [] = { 0x2B, 0x06, 0x01, 0x04, 0x01, 0x82, 0x37, 0x10, 0x04}; -//1.3.6.1.4.1.311.20.2.2 Microsoft enhanced key usage smartcardLogon -static const unsigned char cvOID_smartcardLogon [] = { 0x2B, 0x06, 0x01, 0x04, 0x01, 0x82, 0x37, 0x14, 0x02, 0x02}; -//1.3.6.1.4.1.311.21.1 Microsoft attribute cAKeyCertIndexPair -static const unsigned char cvOID_cAKeyCertIndexPair [] = { 0x2B, 0x06, 0x01, 0x04, 0x01, 0x82, 0x37, 0x15, 0x01}; -//1.3.6.1.4.1.311.13.2.2 Microsoft attribute Unknown MS CryptoAPI-related extension -static const unsigned char cvOID_Unknown_MS_CryptoAPI_related_extension [] = { 0x2B, 0x06, 0x01, 0x04, 0x01, 0x82, 0x37, 0x0D, 0x02, 0x02}; -//1.3.6.1.4.1.311.16.4 Microsoft attribute microsoftRecipientInfo -static const unsigned char cvOID_microsoftRecipientInfo [] = { 0x2B, 0x06, 0x01, 0x04, 0x01, 0x82, 0x37, 0x10, 0x04}; -//1.3.6.1.4.1.2428.10.1.1 UNINETT PCA UNINETT policyIdentifier -static const unsigned char cvOID_UNINETT_policyIdentifier [] = { 0x2B, 0x06, 0x01, 0x04, 0x01, 0x92, 0x7C, 0x0A, 0x01, 0x01}; -//1.3.6.1.4.1.2712.10 ICE-TEL CA ICE-TEL policyIdentifier -static const unsigned char cvOID_ICE_TEL_policyIdentifier [] = { 0x2B, 0x06, 0x01, 0x04, 0x01, 0x95, 0x18, 0x0A}; -//1.3.6.1.4.1.2786.1.1.1 ICE-TEL CA policy ICE-TEL Italian policyIdentifier -static const unsigned char cvOID_ICE_TEL_Italian_policyIdentifier [] = { 0x2B, 0x06, 0x01, 0x04, 0x01, 0x95, 0x62, 0x01, 0x01, 0x01}; -//1.3.6.1.4.1.3029.1.1 cryptlib encryption algorithm blowfishECB -static const unsigned char cvOID_blowfishECB [] = { 0x2B, 0x06, 0x01, 0x04, 0x01, 0x97, 0x55, 0x01, 0x01}; -//1.3.6.1.4.1.3029.1.2 cryptlib encr -static const unsigned char cvOID_blowfishCBC [] = { 0x2B, 0x06, 0x01, 0x04, 0x01, 0x97, 0x55, 0x01, 0x02}; -//1.3.6.1.4.1.3029.1.3 cryptlib encryption algorithm blowfishCFB -static const unsigned char cvOID_blowfishCFB [] = { 0x2B, 0x06, 0x01, 0x04, 0x01, 0x97, 0x55, 0x01, 0x03}; -//1.3.6.1.4.1.3029.1.4 cryptlib encryption algorithm blowfishOFB -static const unsigned char cvOID_blowfishOFB [] = { 0x2B, 0x06, 0x01, 0x04, 0x01, 0x97, 0x55, 0x01, 0x04}; -//1.3.6.1.4.1.3029.3.1 cryptlib public-key algorithm elgamal -static const unsigned char cvOID_elgamal [] = { 0x2B, 0x06, 0x01, 0x04, 0x01, 0x97, 0x55, 0x03, 0x01}; -//1.3.6.1.4.1.3029.3.1.1 cryptlib public-key algorithm elgamalWithSHA-1 -static const unsigned char cvOID_elgamalWithSHA_1 [] = { 0x2B, 0x06, 0x01, 0x04, 0x01, 0x97, 0x55, 0x03, 0x01, 0x01}; -//1.3.6.1.4.1.3029.3.1.2 cryptlib public-key algorithm elgamalWithRIPEMD-160 -static const unsigned char cvOID_elgamalWithRIPEMD_160 [] = { 0x2B, 0x06, 0x01, 0x04, 0x01, 0x97, 0x55, 0x03, 0x01, 0x02}; -//1.3.6.1.4.1.3029.32.1 cryptlib cryptlibPrivateKey -static const unsigned char cvOID_cryptlibPrivateKey [] = { 0x2B, 0x06, 0x01, 0x04, 0x01, 0x97, 0x55, 0x20, 0x01}; -//1.3.6.1.4.1.3029.42.11172.1 cryptlib special MPEG-of-cat OID mpeg-1 -static const unsigned char cvOID_mpeg_1 [] = { 0x2B, 0x06, 0x01, 0x04, 0x01, 0x97, 0x55, 0x2A, 0xD7, 0x24, 0x01}; -//1.3.6.1.5.5.7.1 PKIX privateExtension -static const unsigned char cvOID_privateExtension [] = { 0x2B, 0x06, 0x01, 0x05, 0x05, 0x07, 0x01}; -//1.3.6.1.5.5.7.1.1 PKIX private extension authorityInfoAccess -static const unsigned char cvOID_authorityInfoAccess [] = { 0x2B, 0x06, 0x01, 0x05, 0x05, 0x07, 0x01, 0x01}; - -//ame -//1.3.6.1.5.5.7.1.11 PKIX private extension subjectInfoAccess -static const unsigned char cvOID_subjectInfoAccess [] = { 0x2B, 0x06, 0x01, 0x05, 0x05, 0x07, 0x01, 0x0a}; - -//1.3.6.1.5.5.7.2 PKIX policyQualifierIds -static const unsigned char cvOID_policyQualifierIds [] = { 0x2B, 0x06, 0x01, 0x05, 0x05, 0x07, 0x02}; -//1.3.6.1.5.5.7.2.1 PKIX policy qualifier cps -static const unsigned char cvOID_cps [] = { 0x2B, 0x06, 0x01, 0x05, 0x05, 0x07, 0x02, 0x01}; -//1.3.6.1.5.5.7.2.2 PKIX policy qualifier unotice -static const unsigned char cvOID_unotice [] = { 0x2B, 0x06, 0x01, 0x05, 0x05, 0x07, 0x02, 0x02}; -//1.3.6.1.5.5.7.3 PKIX keyPurpose -static const unsigned char cvOID_keyPurpose [] = { 0x2B, 0x06, 0x01, 0x05, 0x05, 0x07, 0x03}; -//1.3.6.1.5.5.7.3.1 PKIX key purpose serverAuth -static const unsigned char cvOID_serverAuth [] = { 0x2B, 0x06, 0x01, 0x05, 0x05, 0x07, 0x03, 0x01}; -//1.3.6.1.5.5.7.3.2 PKIX key purpose clientAuth -static const unsigned char cvOID_clientAuth [] = { 0x2B, 0x06, 0x01, 0x05, 0x05, 0x07, 0x03, 0x02}; -//1.3.6.1.5.5.7.3.3 PKIX key purpose codeSigning -static const unsigned char cvOID_codeSigning [] = { 0x2B, 0x06, 0x01, 0x05, 0x05, 0x07, 0x03, 0x03}; -//1.3.6.1.5.5.7.3.4 PKIX key purpose emailProtection -static const unsigned char cvOID_emailProtection [] = { 0x2B, 0x06, 0x01, 0x05, 0x05, 0x07, 0x03, 0x04}; -//1.3.6.1.5.5.7.3.5 PKIX key purpose ipsecEndSystem -static const unsigned char cvOID_ipsecEndSystem [] = { 0x2B, 0x06, 0x01, 0x05, 0x05, 0x07, 0x03, 0x05}; -//1.3.6.1.5.5.7.3.6 PKIX key purpose ipsecTunnel -static const unsigned char cvOID_ipsecTunnel [] = { 0x2B, 0x06, 0x01, 0x05, 0x05, 0x07, 0x03, 0x06}; -//1.3.6.1.5.5.7.3.7 PKIX key purpose ipsecUser -static const unsigned char cvOID_ipsecUser [] = { 0x2B, 0x06, 0x01, 0x05, 0x05, 0x07, 0x03, 0x07}; -//1.3.6.1.5.5.7.3.8 PKIX key purpose timeStamping -static const unsigned char cvOID_timeStamping [] = { 0x2B, 0x06, 0x01, 0x05, 0x05, 0x07, 0x03, 0x08}; -//ame -//1.3.6.1.5.5.7.3.9 PKIX key purpose OCSPSigning -static const unsigned char cvOID_OCSPSigning [] = { 0x2B, 0x06, 0x01, 0x05, 0x05, 0x07, 0x03, 0x09}; -//1.3.6.1.5.5.7.4 PKIX cmpInformationTypes -static const unsigned char cvOID_cmpInformationTypes [] = { 0x2B, 0x06, 0x01, 0x05, 0x05, 0x07, 0x04}; -//1.3.6.1.5.5.7.4.1 PKIX CMP information caProtEncCert -static const unsigned char cvOID_caProtEncCert [] = { 0x2B, 0x06, 0x01, 0x05, 0x05, 0x07, 0x04, 0x01}; -//1.3.6.1.5.5.7.4.2 PKIX CMP information signKeyPairTypes -static const unsigned char cvOID_signKeyPairTypes [] = { 0x2B, 0x06, 0x01, 0x05, 0x05, 0x07, 0x04, 0x02}; -//1.3.6.1.5.5.7.4.3 PKIX CMP information encKeyPairTypes -static const unsigned char cvOID_encKeyPairTypes [] = { 0x2B, 0x06, 0x01, 0x05, 0x05, 0x07, 0x04, 0x03}; -//1.3.6.1.5.5.7.4.4 PKIX CMP information preferredSymmAlg -static const unsigned char cvOID_preferredSymmAlg [] = { 0x2B, 0x06, 0x01, 0x05, 0x05, 0x07, 0x04, 0x04}; -//1.3.6.1.5.5.7.4.5 PKIX CMP information caKeyUpdateInfo -static const unsigned char cvOID_caKeyUpdateInfo [] = { 0x2B, 0x06, 0x01, 0x05, 0x05, 0x07, 0x04, 0x05}; -//1.3.6.1.5.5.7.4.6 PKIX CMP information currentCRL -static const unsigned char cvOID_currentCRL [] = { 0x2B, 0x06, 0x01, 0x05, 0x05, 0x07, 0x04, 0x06}; -//1.3.6.1.5.5.7.6.3 PKIX algorithm dh-sig-hmac-sha1 -static const unsigned char cvOID_dh_sig_hmac_sha1 [] = { 0x2B, 0x06, 0x01, 0x05, 0x05, 0x07, 0x06, 0x03}; -//1.3.6.1.5.5.7.6.4 PKIX algorithm dh-pop -static const unsigned char cvOID_dh_pop [] = { 0x2B, 0x06, 0x01, 0x05, 0x05, 0x07, 0x06, 0x04}; -//1.3.6.1.5.5.7.48.1 PKIX authority info access descriptor ocsp -static const unsigned char cvOID_ocsp [] = { 0x2B, 0x06, 0x01, 0x05, 0x05, 0x07, 0x30, 0x01}; -//1.3.6.1.5.5.7.48.2 PKIX authority info access descriptor caIssuers -static const unsigned char cvOID_caIssuers [] = { 0x2B, 0x06, 0x01, 0x05, 0x05, 0x07, 0x30, 0x02}; - -//ame -//1.3.6.1.5.5.7.48.3 PKIX subject info access descriptor timeStamping -static const unsigned char cvOID_info_timeStamping [] = { 0x2B, 0x06, 0x01, 0x05, 0x05, 0x07, 0x30, 0x03}; -//1.3.6.1.5.5.7.48.5 PKIX subject info access descriptor caRepository -static const unsigned char cvOID_caRepository [] = { 0x2B, 0x06, 0x01, 0x05, 0x05, 0x07, 0x30, 0x05}; - -//1.3.6.1.5.5.8.1.1 ISAKMP HMAC algorithm HMAC-MD5 -static const unsigned char cvOID_HMAC_MD5 [] = { 0x2B, 0x06, 0x01, 0x05, 0x05, 0x08, 0x01, 0x01}; -//1.3.6.1.5.5.8.1.2 ISAKMP HMAC algorithm HMAC-SHA -static const unsigned char cvOID_HMAC_SHA [] = { 0x2B, 0x06, 0x01, 0x05, 0x05, 0x08, 0x01, 0x02}; -//1.3.6.1.5.5.8.1.3 ISAKMP HMAC algorithm HMAC-Tiger -static const unsigned char cvOID_HMAC_Tiger [] = { 0x2B, 0x06, 0x01, 0x05, 0x05, 0x08, 0x01, 0x03}; -//1.3.6.1.5.5.8.2.2 ipsec_kp_ike_intermediate -static const unsigned char cvOID_iKEIntermediate[] = { 0x2B, 0x06, 0x01, 0x05, 0x05, 0x08, 0x02, 0x02}; - -//1.3.12.2.1011.7.1 DASS algorithm decEncryptionAlgorithm -static const unsigned char cvOID_decEncryptionAlgorithm [] = { 0x2B, 0x0C, 0x02, 0x87, 0x73, 0x07, 0x01}; -//1.3.12.2.1011.7.1.2 DASS encryption algorithm decDEA -static const unsigned char cvOID_decDEA [] = { 0x2B, 0x0C, 0x02, 0x87, 0x73, 0x07, 0x01, 0x02}; -//1.3.12.2.1011.7.2 DASS algorithm decHashAlgorithm -static const unsigned char cvOID_decHashAlgorithm [] = { 0x2B, 0x0C, 0x02, 0x87, 0x73, 0x07, 0x02}; -//1.3.12.2.1011.7.2.1 DASS hash algorithm decMD2 -static const unsigned char cvOID_decMD2 [] = { 0x2B, 0x0C, 0x02, 0x87, 0x73, 0x07, 0x02, 0x01}; -//1.3.12.2.1011.7.2.2 DASS hash algorithm decMD4 -static const unsigned char cvOID_decMD4 [] = { 0x2B, 0x0C, 0x02, 0x87, 0x73, 0x07, 0x02, 0x02}; -//1.3.12.2.1011.7.3 DASS algorithm decSignatureAlgorithm -static const unsigned char cvOID_decSignatureAlgorithm [] = { 0x2B, 0x0C, 0x02, 0x87, 0x73, 0x07, 0x03}; -//1.3.12.2.1011.7.3.1 DASS signature algorithm decMD2withRSA -static const unsigned char cvOID_decMD2withRSA [] = { 0x2B, 0x0C, 0x02, 0x87, 0x73, 0x07, 0x03, 0x01}; -//1.3.12.2.1011.7.3.2 DASS signature algorithm decMD4withRSA -static const unsigned char cvOID_decMD4withRSA [] = { 0x2B, 0x0C, 0x02, 0x87, 0x73, 0x07, 0x03, 0x02}; -//1.3.12.2.1011.7.3.3 DASS signature algorithm decDEAMAC -static const unsigned char cvOID_decDEAMAC [] = { 0x2B, 0x0C, 0x02, 0x87, 0x73, 0x07, 0x03, 0x03}; -//1.3.14.2.26.5 Unsure about this OID sha -static const unsigned char cvOID_sha [] = { 0x2B, 0x0E, 0x02, 0x1A, 0x05}; -//1.3.14.3.2.1.1 X.509. Unsure about this OID rsa -static const unsigned char cvOID_rsa [] = { 0x2B, 0x0E, 0x03, 0x02, 0x01, 0x01}; -//1.3.14.3.2.2 Oddball OIW OID md4WitRSA -static const unsigned char cvOID_md4WitRSA [] = { 0x2B, 0x0E, 0x03, 0x02, 0x02}; -//1.3.14.3.2.3 Oddball OIW OID md5WithRSA -static const unsigned char cvOID_md5WithRSA [] = { 0x2B, 0x0E, 0x03, 0x02, 0x03}; -//1.3.14.3.2.4 Oddball OIW OID md4WithRSAEncryption -static const unsigned char cvOID_md4WithRSAEncryption [] = { 0x2B, 0x0E, 0x03, 0x02, 0x04}; -//1.3.14.3.2.2.1 X.509. Deprecated sqmod-N -static const unsigned char cvOID_sqmod_N [] = { 0x2B, 0x0E, 0x03, 0x02, 0x02, 0x01}; -//1.3.14.3.2.3.1 X.509. Deprecated sqmod-NwithRSA -static const unsigned char cvOID_sqmod_NwithRSA [] = { 0x2B, 0x0E, 0x03, 0x02, 0x03, 0x01}; -//1.3.14.3.2.11 ISO 9796-2, also X9.31 Part 1 rsaSignature -static const unsigned char cvOID_rsaSignature [] = { 0x2B, 0x0E, 0x03, 0x02, 0x0B}; -////1.3.14.3.2.12 OIW?, supposedly from an incomplete version of SDN.701 (doesn't match final SDN.701) dsa -//static const unsigned char cvOID_dsa [] = { 0x2B, 0x0E, 0x03, 0x02, 0x0C}; -//1.3.14.3.2.14 Oddball OIW OID using 9796-2 padding rules mdc2WithRSASignature -static const unsigned char cvOID_mdc2WithRSASignature [] = { 0x2B, 0x0E, 0x03, 0x02, 0x0E}; -//1.3.14.3.2.15 Oddball OIW OID using 9796-2 padding rules shaWithRSASignature -static const unsigned char cvOID_shaWithRSASignature [] = { 0x2B, 0x0E, 0x03, 0x02, 0x0F}; -//1.3.14.3.2.16 Oddball OIW OID. Deprecated, use a plain DH OID instead dhWithCommonModulus -static const unsigned char cvOID_dhWithCommonModulus [] = { 0x2B, 0x0E, 0x03, 0x02, 0x10}; -//1.3.14.3.2.17 Oddball OIW OID. Mode is ECB desEDE -static const unsigned char cvOID_desEDE [] = { 0x2B, 0x0E, 0x03, 0x02, 0x11}; -////1.3.14.3.2.18 Oddball OIW OID sha -//static const unsigned char cvOID_sha [] = { 0x2B, 0x0E, 0x03, 0x02, 0x12}; -//1.3.14.3.2.19 Oddball OIW OID, DES-based hash, planned for X9.31 Part 2 mdc-2 -static const unsigned char cvOID_mdc_2 [] = { 0x2B, 0x0E, 0x03, 0x02, 0x13}; -//1.3.14.3.2.20 Oddball OIW OID. Deprecated, use a plain DSA OID instead dsaCommon -static const unsigned char cvOID_dsaCommon [] = { 0x2B, 0x0E, 0x03, 0x02, 0x14}; -//1.3.14.3.2.21 Oddball OIW OID. Deprecated, use a plain dsaWithSHA OID instead dsaCommonWithSHA -static const unsigned char cvOID_dsaCommonWithSHA [] = { 0x2B, 0x0E, 0x03, 0x02, 0x15}; -//1.3.14.3.2.22 Oddball OIW OID rsaKeyTransport -static const unsigned char cvOID_rsaKeyTransport [] = { 0x2B, 0x0E, 0x03, 0x02, 0x16}; -//1.3.14.3.2.23 Oddball OIW OID keyed-hash-seal -static const unsigned char cvOID_keyed_hash_seal [] = { 0x2B, 0x0E, 0x03, 0x02, 0x17}; -//1.3.14.3.2.24 Oddball OIW OID using 9796-2 padding rules md2WithRSASignature -static const unsigned char cvOID_md2WithRSASignature [] = { 0x2B, 0x0E, 0x03, 0x02, 0x18}; -//1.3.14.3.2.25 Oddball OIW OID using 9796-2 padding rules md5WithRSASignature -static const unsigned char cvOID_md5WithRSASignature [] = { 0x2B, 0x0E, 0x03, 0x02, 0x19}; -//1.3.14.3.2.26 OIW sha1 -static const unsigned char cvOID_sha1 [] = { 0x2B, 0x0E, 0x03, 0x02, 0x1A}; -//1.3.14.3.2.27 OIW. This OID may also be assigned as ripemd-160 dsaWithSHA1 -static const unsigned char cvOID_dsaWithSHA1 [] = { 0x2B, 0x0E, 0x03, 0x02, 0x1B}; -//1.3.14.3.2.28 OIW dsaWithCommonSHA1 -static const unsigned char cvOID_dsaWithCommonSHA1 [] = { 0x2B, 0x0E, 0x03, 0x02, 0x1C}; -//1.3.14.3.2.29 Oddball OIW OID sha-1WithRSAEncryption -static const unsigned char cvOID_sha_1WithRSAEncryption [] = { 0x2B, 0x0E, 0x03, 0x02, 0x1D}; -//1.3.14.3.3.1 Oddball OIW OID simple-strong-auth-mechanism -static const unsigned char cvOID_simple_strong_auth_mechanism [] = { 0x2B, 0x0E, 0x03, 0x03, 0x01}; -//1.3.14.7.2.1.1 Unsure about this OID ElGamal -static const unsigned char cvOID_ElGamal [] = { 0x2B, 0x0E, 0x07, 0x02, 0x01, 0x01}; -//1.3.14.7.2.3.1 Unsure about this OID md2WithRSA -static const unsigned char cvOID_md2WithRSA [] = { 0x2B, 0x0E, 0x07, 0x02, 0x03, 0x01}; -//1.3.14.7.2.3.2 Unsure about this OID md2WithElGamal -static const unsigned char cvOID_md2WithElGamal [] = { 0x2B, 0x0E, 0x07, 0x02, 0x03, 0x02}; -//1.3.36.1 Teletrust document document -static const unsigned char cvOID_document [] = { 0x2B, 0x24, 0x01}; -//1.3.36.1.1 Teletrust document finalVersion -static const unsigned char cvOID_finalVersion [] = { 0x2B, 0x24, 0x01, 0x01}; -//1.3.36.1.2 Teletrust document draft -static const unsigned char cvOID_draft [] = { 0x2B, 0x24, 0x01, 0x02}; -//1.3.36.2 Teletrust sio sio -static const unsigned char cvOID_sio [] = { 0x2B, 0x24, 0x02}; -//1.3.36.2.1 Teletrust sio sedu -static const unsigned char cvOID_sedu [] = { 0x2B, 0x24, 0x02, 0x01}; -//1.3.36.3 Teletrust algorithm algorithm -static const unsigned char cvOID_algorithm_Teletrust[] = { 0x2B, 0x24, 0x03}; -//1.3.36.3.1 Teletrust algorithm encryptionAlgorithm -static const unsigned char cvOID_encryptionAlgorithm_Teletrust [] = { 0x2B, 0x24, 0x03, 0x01}; -//1.3.36.3.1.1 Teletrust encryption algorithm des -static const unsigned char cvOID_des_Teletrust [] = { 0x2B, 0x24, 0x03, 0x01, 0x01}; -//1.3.36.3.1.1.1 Teletrust encryption algorithm desECB_pad -static const unsigned char cvOID_desECB_pad [] = { 0x2B, 0x24, 0x03, 0x01, 0x01, 0x01}; -//1.3.36.3.1.1.1.1 Teletrust encryption algorithm desECB_ISOpad -static const unsigned char cvOID_desECB_ISOpad [] = { 0x2B, 0x24, 0x03, 0x01, 0x01, 0x01, 0x01}; -//1.3.36.3.1.1.2.1 Teletrust encryption algorithm desCBC_pad -static const unsigned char cvOID_desCBC_pad [] = { 0x2B, 0x24, 0x03, 0x01, 0x01, 0x02, 0x01}; -//1.3.36.3.1.1.2.1.1 Teletrust encryption algorithm desCBC_ISOpad -static const unsigned char cvOID_desCBC_ISOpad [] = { 0x2B, 0x24, 0x03, 0x01, 0x01, 0x02, 0x01, 0x01}; -//1.3.36.3.1.3 Teletrust encryption algorithm des_3 -static const unsigned char cvOID_des_3 [] = { 0x2B, 0x24, 0x03, 0x01, 0x03}; -//1.3.36.3.1.3.1.1 Teletrust encryption algorithm. EDE triple DES des_3ECB_pad -static const unsigned char cvOID_des_3ECB_pad [] = { 0x2B, 0x24, 0x03, 0x01, 0x03, 0x01, 0x01}; -//1.3.36.3.1.3.1.1.1 Teletrust encryption algorithm. EDE triple DES des_3ECB_ISOpad -static const unsigned char cvOID_des_3ECB_ISOpad [] = { 0x2B, 0x24, 0x03, 0x01, 0x03, 0x01, 0x01, 0x01}; -//1.3.36.3.1.3.2.1 Teletrust encryption algorithm. EDE triple DES des_3CBC_pad -static const unsigned char cvOID_des_3CBC_pad [] = { 0x2B, 0x24, 0x03, 0x01, 0x03, 0x02, 0x01}; -//1.3.36.3.1.3.2.1.1 Teletrust encryption algorithm. EDE triple DES des_3CBC_ISOpad -static const unsigned char cvOID_des_3CBC_ISOpad [] = { 0x2B, 0x24, 0x03, 0x01, 0x03, 0x02, 0x01, 0x01}; -//1.3.36.3.1.2 Teletrust encryption algorithm idea -static const unsigned char cvOID_idea_Teletrust [] = { 0x2B, 0x24, 0x03, 0x01, 0x02}; -//1.3.36.3.1.2.1 Teletrust encryption algorithm ideaECB -static const unsigned char cvOID_ideaECB_Teletrust [] = { 0x2B, 0x24, 0x03, 0x01, 0x02, 0x01}; -//1.3.36.3.1.2.1.1 Teletrust encryption algorithm ideaECB_pad -static const unsigned char cvOID_ideaECB_pad [] = { 0x2B, 0x24, 0x03, 0x01, 0x02, 0x01, 0x01}; -//1.3.36.3.1.2.1.1.1 Teletrust encryption algorithm ideaECB_ISOpad -static const unsigned char cvOID_ideaECB_ISOpad [] = { 0x2B, 0x24, 0x03, 0x01, 0x02, 0x01, 0x01, 0x01}; -//1.3.36.3.1.2.2 Teletrust encryption algorithm ideaCBC -static const unsigned char cvOID_ideaCBC_Teletrust [] = { 0x2B, 0x24, 0x03, 0x01, 0x02, 0x02}; -//1.3.36.3.1.2.2.1 Teletrust encryption algorithm ideaCBC_pad -static const unsigned char cvOID_ideaCBC_pad [] = { 0x2B, 0x24, 0x03, 0x01, 0x02, 0x02, 0x01}; -//1.3.36.3.1.2.2.1.1 Teletrust encryption algorithm ideaCBC_ISOpad -static const unsigned char cvOID_ideaCBC_ISOpad [] = { 0x2B, 0x24, 0x03, 0x01, 0x02, 0x02, 0x01, 0x01}; -//1.3.36.3.1.2.3 Teletrust encryption algorithm ideaOFB -static const unsigned char cvOID_ideaOFB_Teletrust [] = { 0x2B, 0x24, 0x03, 0x01, 0x02, 0x03}; -//1.3.36.3.1.2.4 Teletrust encryption algorithm ideaCFB -static const unsigned char cvOID_ideaCFB_Teletrust [] = { 0x2B, 0x24, 0x03, 0x01, 0x02, 0x04}; -//1.3.36.3.1.4 Teletrust encryption algorithm rsaEncryption -static const unsigned char cvOID_rsaEncryption_Teletrust [] = { 0x2B, 0x24, 0x03, 0x01, 0x04}; -//1.3.36.3.1.4.512.17 Teletrust encryption algorithm rsaEncryptionWithlmod512expe17 -static const unsigned char cvOID_rsaEncryptionWithlmod512expe17 [] = { 0x2B, 0x24, 0x03, 0x01, 0x04, 0x84, 0x00, 0x11}; -//1.3.36.3.1.5 Teletrust encryption algorithm bsi-1 -static const unsigned char cvOID_bsi_1 [] = { 0x2B, 0x24, 0x03, 0x01, 0x05}; -//1.3.36.3.1.5.1 Teletrust encryption algorithm bsi_1ECB_pad -static const unsigned char cvOID_bsi_1ECB_pad [] = { 0x2B, 0x24, 0x03, 0x01, 0x05, 0x01}; -//1.3.36.3.1.5.2 Teletrust encryption algorithm bsi_1CBC_pad -static const unsigned char cvOID_bsi_1CBC_pad [] = { 0x2B, 0x24, 0x03, 0x01, 0x05, 0x02}; -//1.3.36.3.1.5.2.1 Teletrust encryption algorithm bsi_1CBC_PEMpad -static const unsigned char cvOID_bsi_1CBC_PEMpad [] = { 0x2B, 0x24, 0x03, 0x01, 0x05, 0x02, 0x01}; -//1.3.36.3.2 Teletrust algorithm hashAlgorithm -static const unsigned char cvOID_hashAlgorithm [] = { 0x2B, 0x24, 0x03, 0x02}; -//1.3.36.3.2.1 Teletrust hash algorithm ripemd160 -static const unsigned char cvOID_ripemd160_Teletrust [] = { 0x2B, 0x24, 0x03, 0x02, 0x01}; -//1.3.36.3.2.2 Teletrust hash algorithm ripemd128 -static const unsigned char cvOID_ripemd128_Teletrust [] = { 0x2B, 0x24, 0x03, 0x02, 0x02}; -//1.3.36.3.2.3 Teletrust hash algorithm ripemd256 -static const unsigned char cvOID_ripemd256 [] = { 0x2B, 0x24, 0x03, 0x02, 0x03}; -//1.3.36.3.2.4 Teletrust hash algorithm mdc2singleLength -static const unsigned char cvOID_mdc2singleLength [] = { 0x2B, 0x24, 0x03, 0x02, 0x04}; -//1.3.36.3.2.5 Teletrust hash algorithm mdc2doubleLength -static const unsigned char cvOID_mdc2doubleLength [] = { 0x2B, 0x24, 0x03, 0x02, 0x05}; -//1.3.36.3.3 Teletrust algorithm signatureAlgorithm -static const unsigned char cvOID_signatureAlgorithm [] = { 0x2B, 0x24, 0x03, 0x03}; -//1.3.36.3.3.1 Teletrust signature algorithm rsaSignature -static const unsigned char cvOID_rsaSignature_Teletrust [] = { 0x2B, 0x24, 0x03, 0x03, 0x01}; -//1.3.36.3.3.1.1 Teletrust signature algorithm rsaSignatureWithsha1 -static const unsigned char cvOID_rsaSignatureWithsha1 [] = { 0x2B, 0x24, 0x03, 0x03, 0x01, 0x01}; -//1.3.36.3.3.1.1.512.2 Teletrust signature algorithm rsaSignatureWithsha1_l512_l2 -static const unsigned char cvOID_rsaSignatureWithsha1_l512_l2 [] = { 0x2B, 0x24, 0x03, 0x03, 0x01, 0x01, 0x84, 0x00, 0x02}; -//1.3.36.3.3.1.1.640.2 Teletrust signature algorithm rsaSignatureWithsha1_l640_l2 -static const unsigned char cvOID_rsaSignatureWithsha1_l640_l2 [] = { 0x2B, 0x24, 0x03, 0x03, 0x01, 0x01, 0x85, 0x00, 0x02}; -//1.3.36.3.3.1.1.768.2 Teletrust signature algorithm rsaSignatureWithsha1_l768_l2 -static const unsigned char cvOID_rsaSignatureWithsha1_l768_l2 [] = { 0x2B, 0x24, 0x03, 0x03, 0x01, 0x01, 0x86, 0x00, 0x02}; -//1.3.36.3.3.1.1.892.2 Teletrust signature algorithm rsaSignatureWithsha1_l896_l2 -static const unsigned char cvOID_rsaSignatureWithsha1_l896_l2 [] = { 0x2B, 0x24, 0x03, 0x03, 0x01, 0x01, 0x87, 0x00, 0x02}; -//1.3.36.3.3.1.1.1024.2 Teletrust signature algorithm rsaSignatureWithsha1_l1024_l2 -static const unsigned char cvOID_rsaSignatureWithsha1_l1024_l2 [] = { 0x2B, 0x24, 0x03, 0x03, 0x01, 0x01, 0x88, 0x00, 0x02}; -//1.3.36.3.3.1.1.512.3 Teletrust signature algorithm rsaSignatureWithsha1_l512_l3 -static const unsigned char cvOID_rsaSignatureWithsha1_l512_l3 [] = { 0x2B, 0x24, 0x03, 0x03, 0x01, 0x01, 0x84, 0x00, 0x03}; -//1.3.36.3.3.1.1.640.3 Teletrust signature algorithm rsaSignatureWithsha1_l640_l3 -static const unsigned char cvOID_rsaSignatureWithsha1_l640_l3 [] = { 0x2B, 0x24, 0x03, 0x03, 0x01, 0x01, 0x85, 0x00, 0x03}; -//1.3.36.3.3.1.1.768.3 Teletrust signature algorithm rsaSignatureWithsha1_l768_l3 -static const unsigned char cvOID_rsaSignatureWithsha1_l768_l3 [] = { 0x2B, 0x24, 0x03, 0x03, 0x01, 0x01, 0x86, 0x00, 0x03}; -//1.3.36.3.3.1.1.896.3 Teletrust signature algorithm rsaSignatureWithsha1_l896_l3 -static const unsigned char cvOID_rsaSignatureWithsha1_l896_l3 [] = { 0x2B, 0x24, 0x03, 0x03, 0x01, 0x01, 0x87, 0x00, 0x03}; -//1.3.36.3.3.1.1.1024.3 Teletrust signature algorithm rsaSignatureWithsha1_l1024_l3 -static const unsigned char cvOID_rsaSignatureWithsha1_l1024_l3 [] = { 0x2B, 0x24, 0x03, 0x03, 0x01, 0x01, 0x88, 0x00, 0x03}; -//1.3.36.3.3.1.1.512.5 Teletrust signature algorithm rsaSignatureWithsha1_l512_l5 -static const unsigned char cvOID_rsaSignatureWithsha1_l512_l5 [] = { 0x2B, 0x24, 0x03, 0x03, 0x01, 0x01, 0x84, 0x00, 0x05}; -//1.3.36.3.3.1.1.640.5 Teletrust signature algorithm rsaSignatureWithsha1_l640_l5 -static const unsigned char cvOID_rsaSignatureWithsha1_l640_l5 [] = { 0x2B, 0x24, 0x03, 0x03, 0x01, 0x01, 0x85, 0x00, 0x05}; -//1.3.36.3.3.1.1.768.5 Teletrust signature algorithm rsaSignatureWithsha1_l768_l5 -static const unsigned char cvOID_rsaSignatureWithsha1_l768_l5 [] = { 0x2B, 0x24, 0x03, 0x03, 0x01, 0x01, 0x86, 0x00, 0x05}; -//1.3.36.3.3.1.1.896.5 Teletrust signature algorithm rsaSignatureWithsha1_l896_l5 -static const unsigned char cvOID_rsaSignatureWithsha1_l896_l5 [] = { 0x2B, 0x24, 0x03, 0x03, 0x01, 0x01, 0x87, 0x00, 0x05}; -//1.3.36.3.3.1.1.1024.5 Teletrust signature algorithm rsaSignatureWithsha1_l1024_l5 -static const unsigned char cvOID_rsaSignatureWithsha1_l1024_l5 [] = { 0x2B, 0x24, 0x03, 0x03, 0x01, 0x01, 0x88, 0x00, 0x05}; -//1.3.36.3.3.1.1.512.9 Teletrust signature algorithm rsaSignatureWithsha1_l512_l9 -static const unsigned char cvOID_rsaSignatureWithsha1_l512_l9 [] = { 0x2B, 0x24, 0x03, 0x03, 0x01, 0x01, 0x84, 0x00, 0x09}; -//1.3.36.3.3.1.1.640.9 Teletrust signature algorithm rsaSignatureWithsha1_l640_l9 -static const unsigned char cvOID_rsaSignatureWithsha1_l640_l9 [] = { 0x2B, 0x24, 0x03, 0x03, 0x01, 0x01, 0x85, 0x00, 0x09}; -//1.3.36.3.3.1.1.768.9 Teletrust signature algorithm rsaSignatureWithsha1_l768_l9 -static const unsigned char cvOID_rsaSignatureWithsha1_l768_l9 [] = { 0x2B, 0x24, 0x03, 0x03, 0x01, 0x01, 0x86, 0x00, 0x09}; -//1.3.36.3.3.1.1.896.9 Teletrust signature algorithm rsaSignatureWithsha1_l896_l9 -static const unsigned char cvOID_rsaSignatureWithsha1_l896_l9 [] = { 0x2B, 0x24, 0x03, 0x03, 0x01, 0x01, 0x87, 0x00, 0x09}; -//1.3.36.3.3.1.1.1024.9 Teletrust signature algorithm rsaSignatureWithsha1_l1024_l9 -static const unsigned char cvOID_rsaSignatureWithsha1_l1024_l9 [] = { 0x2B, 0x24, 0x03, 0x03, 0x01, 0x01, 0x88, 0x00, 0x09}; -//1.3.36.3.3.1.1.512.11 Teletrust signature algorithm rsaSignatureWithsha1_l512_l11 -static const unsigned char cvOID_rsaSignatureWithsha1_l512_l11 [] = { 0x2B, 0x24, 0x03, 0x03, 0x01, 0x01, 0x84, 0x00, 0x11}; -//1.3.36.3.3.1.1.640.11 Teletrust signature algorithm rsaSignatureWithsha1_l640_l11 -static const unsigned char cvOID_rsaSignatureWithsha1_l640_l11 [] = { 0x2B, 0x24, 0x03, 0x03, 0x01, 0x01, 0x85, 0x00, 0x11}; -//1.3.36.3.3.1.1.768.11 Teletrust signature algorithm rsaSignatureWithsha1_l768_l11 -static const unsigned char cvOID_rsaSignatureWithsha1_l768_l11 [] = { 0x2B, 0x24, 0x03, 0x03, 0x01, 0x01, 0x86, 0x00, 0x11}; -//1.3.36.3.3.1.1.896.11 Teletrust signature algorithm rsaSignatureWithsha1_l896_l11 -static const unsigned char cvOID_rsaSignatureWithsha1_l896_l11 [] = { 0x2B, 0x24, 0x03, 0x03, 0x01, 0x01, 0x87, 0x00, 0x11}; -//1.3.36.3.3.1.1.1024.11 Teletrust signature algorithm rsaSignatureWithsha1_l1024_l11 -static const unsigned char cvOID_rsaSignatureWithsha1_l1024_l11 [] = { 0x2B, 0x24, 0x03, 0x03, 0x01, 0x01, 0x88, 0x00, 0x11}; -//1.3.36.3.3.1.2 Teletrust signature algorithm rsaSignatureWithripemd160 -static const unsigned char cvOID_rsaSignatureWithripemd160 [] = { 0x2B, 0x24, 0x03, 0x03, 0x01, 0x02}; -//1.3.36.3.3.1.2.512.2 Teletrust signature algorithm rsaSignatureWithripemd160_l512_l2 -static const unsigned char cvOID_rsaSignatureWithripemd160_l512_l2 [] = { 0x2B, 0x24, 0x03, 0x03, 0x01, 0x02, 0x84, 0x00, 0x02}; -//1.3.36.3.3.1.2.640.2 Teletrust signature algorithm rsaSignatureWithripemd160_l640_l2 -static const unsigned char cvOID_rsaSignatureWithripemd160_l640_l2 [] = { 0x2B, 0x24, 0x03, 0x03, 0x01, 0x02, 0x85, 0x00, 0x02}; -//1.3.36.3.3.1.2.768.2 Teletrust signature algorithm rsaSignatureWithripemd160_l768_l2 -static const unsigned char cvOID_rsaSignatureWithripemd160_l768_l2 [] = { 0x2B, 0x24, 0x03, 0x03, 0x01, 0x02, 0x86, 0x00, 0x02}; -//1.3.36.3.3.1.2.892.2 Teletrust signature algorithm rsaSignatureWithripemd160_l896_l2 -static const unsigned char cvOID_rsaSignatureWithripemd160_l896_l2 [] = { 0x2B, 0x24, 0x03, 0x03, 0x01, 0x02, 0x87, 0x00, 0x02}; -//1.3.36.3.3.1.2.1024.2 Teletrust signature algorithm rsaSignatureWithripemd160_l1024_l2 -static const unsigned char cvOID_rsaSignatureWithripemd160_l1024_l2 [] = { 0x2B, 0x24, 0x03, 0x03, 0x01, 0x02, 0x88, 0x00, 0x02}; -//1.3.36.3.3.1.2.512.3 Teletrust signature algorithm rsaSignatureWithripemd160_l512_l3 -static const unsigned char cvOID_rsaSignatureWithripemd160_l512_l3 [] = { 0x2B, 0x24, 0x03, 0x03, 0x01, 0x02, 0x84, 0x00, 0x03}; -//1.3.36.3.3.1.2.640.3 Teletrust signature algorithm rsaSignatureWithripemd160_l640_l3 -static const unsigned char cvOID_rsaSignatureWithripemd160_l640_l3 [] = { 0x2B, 0x24, 0x03, 0x03, 0x01, 0x02, 0x85, 0x00, 0x03}; -//1.3.36.3.3.1.2.768.3 Teletrust signature algorithm rsaSignatureWithripemd160_l768_l3 -static const unsigned char cvOID_rsaSignatureWithripemd160_l768_l3 [] = { 0x2B, 0x24, 0x03, 0x03, 0x01, 0x02, 0x86, 0x00, 0x03}; -//1.3.36.3.3.1.2.896.3 Teletrust signature algorithm rsaSignatureWithripemd160_l896_l3 -static const unsigned char cvOID_rsaSignatureWithripemd160_l896_l3 [] = { 0x2B, 0x24, 0x03, 0x03, 0x01, 0x02, 0x87, 0x00, 0x03}; -//1.3.36.3.3.1.2.1024.3 Teletrust signature algorithm rsaSignatureWithripemd160_l1024_l3 -static const unsigned char cvOID_rsaSignatureWithripemd160_l1024_l3 [] = { 0x2B, 0x24, 0x03, 0x03, 0x01, 0x02, 0x88, 0x00, 0x03}; -//1.3.36.3.3.1.2.512.5 Teletrust signature algorithm rsaSignatureWithripemd160_l512_l5 -static const unsigned char cvOID_rsaSignatureWithripemd160_l512_l5 [] = { 0x2B, 0x24, 0x03, 0x03, 0x01, 0x02, 0x84, 0x00, 0x05}; -//1.3.36.3.3.1.2.640.5 Teletrust signature algorithm rsaSignatureWithripemd160_l640_l5 -static const unsigned char cvOID_rsaSignatureWithripemd160_l640_l5 [] = { 0x2B, 0x24, 0x03, 0x03, 0x01, 0x02, 0x85, 0x00, 0x05}; -//1.3.36.3.3.1.2.768.5 Teletrust signature algorithm rsaSignatureWithripemd160_l768_l5 -static const unsigned char cvOID_rsaSignatureWithripemd160_l768_l5 [] = { 0x2B, 0x24, 0x03, 0x03, 0x01, 0x02, 0x86, 0x00, 0x05}; -//1.3.36.3.3.1.2.896.5 Teletrust signature algorithm rsaSignatureWithripemd160_l896_l5 -static const unsigned char cvOID_rsaSignatureWithripemd160_l896_l5 [] = { 0x2B, 0x24, 0x03, 0x03, 0x01, 0x02, 0x87, 0x00, 0x05}; -//1.3.36.3.3.1.2.1024.5 Teletrust signature algorithm rsaSignatureWithripemd160_l1024_l5 -static const unsigned char cvOID_rsaSignatureWithripemd160_l1024_l5 [] = { 0x2B, 0x24, 0x03, 0x03, 0x01, 0x02, 0x88, 0x00, 0x05}; -//1.3.36.3.3.1.2.512.9 Teletrust signature algorithm rsaSignatureWithripemd160_l512_l9 -static const unsigned char cvOID_rsaSignatureWithripemd160_l512_l9 [] = { 0x2B, 0x24, 0x03, 0x03, 0x01, 0x02, 0x84, 0x00, 0x09}; -//1.3.36.3.3.1.2.640.9 Teletrust signature algorithm rsaSignatureWithripemd160_l640_l9 -static const unsigned char cvOID_rsaSignatureWithripemd160_l640_l9 [] = { 0x2B, 0x24, 0x03, 0x03, 0x01, 0x02, 0x85, 0x00, 0x09}; -//1.3.36.3.3.1.2.768.9 Teletrust signature algorithm rsaSignatureWithripemd160_l768_l9 -static const unsigned char cvOID_rsaSignatureWithripemd160_l768_l9 [] = { 0x2B, 0x24, 0x03, 0x03, 0x01, 0x02, 0x86, 0x00, 0x09}; -//1.3.36.3.3.1.2.896.9 Teletrust signature algorithm rsaSignatureWithripemd160_l896_l9 -static const unsigned char cvOID_rsaSignatureWithripemd160_l896_l9 [] = { 0x2B, 0x24, 0x03, 0x03, 0x01, 0x02, 0x87, 0x00, 0x09}; -//1.3.36.3.3.1.2.1024.9 Teletrust signature algorithm rsaSignatureWithripemd160_l1024_l9 -static const unsigned char cvOID_rsaSignatureWithripemd160_l1024_l9 [] = { 0x2B, 0x24, 0x03, 0x03, 0x01, 0x02, 0x88, 0x00, 0x09}; -//1.3.36.3.3.1.2.512.11 Teletrust signature algorithm rsaSignatureWithripemd160_l512_l11 -static const unsigned char cvOID_rsaSignatureWithripemd160_l512_l11 [] = { 0x2B, 0x24, 0x03, 0x03, 0x01, 0x02, 0x84, 0x00, 0x11}; -//1.3.36.3.3.1.2.640.11 Teletrust signature algorithm rsaSignatureWithripemd160_l640_l11 -static const unsigned char cvOID_rsaSignatureWithripemd160_l640_l11 [] = { 0x2B, 0x24, 0x03, 0x03, 0x01, 0x02, 0x85, 0x00, 0x11}; -//1.3.36.3.3.1.2.768.11 Teletrust signature algorithm rsaSignatureWithripemd160_l768_l11 -static const unsigned char cvOID_rsaSignatureWithripemd160_l768_l11 [] = { 0x2B, 0x24, 0x03, 0x03, 0x01, 0x02, 0x86, 0x00, 0x11}; -//1.3.36.3.3.1.2.896.11 Teletrust signature algorithm rsaSignatureWithripemd160_l896_l11 -static const unsigned char cvOID_rsaSignatureWithripemd160_l896_l11 [] = { 0x2B, 0x24, 0x03, 0x03, 0x01, 0x02, 0x87, 0x00, 0x11}; -//1.3.36.3.3.1.2.1024.11 Teletrust signature algorithm rsaSignatureWithripemd160_l1024_l11 -static const unsigned char cvOID_rsaSignatureWithripemd160_l1024_l11 [] = { 0x2B, 0x24, 0x03, 0x03, 0x01, 0x02, 0x88, 0x00, 0x11}; -//1.3.36.3.3.1.3 Teletrust signature algorithm rsaSignatureWithrimpemd128 -static const unsigned char cvOID_rsaSignatureWithrimpemd128 [] = { 0x2B, 0x24, 0x03, 0x03, 0x01, 0x03}; -//1.3.36.3.3.1.4 Teletrust signature algorithm rsaSignatureWithrimpemd256 -static const unsigned char cvOID_rsaSignatureWithrimpemd256 [] = { 0x2B, 0x24, 0x03, 0x03, 0x01, 0x04}; -//1.3.36.3.3.2 Teletrust signature algorithm ecsieSign -static const unsigned char cvOID_ecsieSign [] = { 0x2B, 0x24, 0x03, 0x03, 0x02}; -//1.3.36.3.3.2.1 Teletrust signature algorithm ecsieSignWithsha1 -static const unsigned char cvOID_ecsieSignWithsha1 [] = { 0x2B, 0x24, 0x03, 0x03, 0x02, 0x01}; -//1.3.36.3.3.2.2 Teletrust signature algorithm ecsieSignWithripemd160 -static const unsigned char cvOID_ecsieSignWithripemd160 [] = { 0x2B, 0x24, 0x03, 0x03, 0x02, 0x02}; -//1.3.36.3.3.2.3 Teletrust signature algorithm ecsieSignWithmd2 -static const unsigned char cvOID_ecsieSignWithmd2 [] = { 0x2B, 0x24, 0x03, 0x03, 0x02, 0x03}; -//1.3.36.3.3.2.4 Teletrust signature algorithm ecsieSignWithmd5 -static const unsigned char cvOID_ecsieSignWithmd5 [] = { 0x2B, 0x24, 0x03, 0x03, 0x02, 0x04}; -//1.3.36.3.4 Teletrust algorithm signatureScheme -static const unsigned char cvOID_signatureScheme [] = { 0x2B, 0x24, 0x03, 0x04}; -//1.3.36.3.4.1 Teletrust signature scheme sigS_ISO9796-1 -static const unsigned char cvOID_sigS_ISO9796_1 [] = { 0x2B, 0x24, 0x03, 0x04, 0x01}; -//1.3.36.3.4.2 Teletrust signature scheme sigS_ISO9796-2 -static const unsigned char cvOID_sigS_ISO9796_2 [] = { 0x2B, 0x24, 0x03, 0x04, 0x02}; -//1.3.36.3.4.2.1 Teletrust signature scheme. Unsure what this is supposed to be sigS_ISO9796-2Withred -static const unsigned char cvOID_sigS_ISO9796_2Withred [] = { 0x2B, 0x24, 0x03, 0x04, 0x02, 0x01}; -//1.3.36.3.4.2.2 Teletrust signature scheme. Unsure what this is supposed to be sigS_ISO9796-2Withrsa -static const unsigned char cvOID_sigS_ISO9796_2Withrsa [] = { 0x2B, 0x24, 0x03, 0x04, 0x02, 0x02}; -//1.3.36.3.4.2.3 Teletrust signature scheme. 9796-2 with random number in padding field sigS_ISO9796-2Withrnd -static const unsigned char cvOID_sigS_ISO9796_2Withrnd [] = { 0x2B, 0x24, 0x03, 0x04, 0x02, 0x03}; -//1.3.36.4 Teletrust attribute attribute -static const unsigned char cvOID_attribute_Teletrust [] = { 0x2B, 0x24, 0x04}; -//1.3.36.5 Teletrust policy policy -static const unsigned char cvOID_policy [] = { 0x2B, 0x24, 0x05}; -//1.3.36.6 Teletrust API api -static const unsigned char cvOID_api [] = { 0x2B, 0x24, 0x06}; -//1.3.36.6.1 Teletrust API manufacturer-specific_api -static const unsigned char cvOID_manufacturer_specific_api [] = { 0x2B, 0x24, 0x06, 0x01}; -//1.3.36.6.1.1 Teletrust API utimaco-api -static const unsigned char cvOID_utimaco_api [] = { 0x2B, 0x24, 0x06, 0x01, 0x01}; -//1.3.36.6.2 Teletrust API functionality-specific_api -static const unsigned char cvOID_functionality_specific_api [] = { 0x2B, 0x24, 0x06, 0x02}; -//1.3.36.7 Teletrust key management keymgmnt -static const unsigned char cvOID_keymgmnt [] = { 0x2B, 0x24, 0x07}; -//1.3.36.7.1 Teletrust key management keyagree -static const unsigned char cvOID_keyagree [] = { 0x2B, 0x24, 0x07, 0x01}; -//1.3.36.7.1.1 Teletrust key management bsiPKE -static const unsigned char cvOID_bsiPKE [] = { 0x2B, 0x24, 0x07, 0x01, 0x01}; -//1.3.36.7.2 Teletrust key management keytrans -static const unsigned char cvOID_keytrans [] = { 0x2B, 0x24, 0x07, 0x02}; -//1.3.36.7.2.1 Teletrust key management. 9796-2 with key stored in hash field encISO9796-2Withrsa -static const unsigned char cvOID_encISO9796_2Withrsa [] = { 0x2B, 0x24, 0x07, 0x02, 0x01}; -//1.3.36.8.1.1 Teletrust policy sigiSigConform -static const unsigned char cvOID_sigiSigConform [] = { 0x2B, 0x24, 0x08, 0x01, 0x01}; -//1.3.36.8.2.1 Teletrust extended key usage directoryService -static const unsigned char cvOID_directoryService [] = { 0x2B, 0x24, 0x08, 0x02, 0x01}; -//1.3.36.8.3.1 Teletrust attribute dateOfCertGen -static const unsigned char cvOID_dateOfCertGen [] = { 0x2B, 0x24, 0x08, 0x03, 0x01}; -//1.3.36.8.3.2 Teletrust attribute procuration -static const unsigned char cvOID_procuration [] = { 0x2B, 0x24, 0x08, 0x03, 0x02}; -//1.3.36.8.3.3 Teletrust attribute admission -static const unsigned char cvOID_admission [] = { 0x2B, 0x24, 0x08, 0x03, 0x03}; -//1.3.36.8.3.4 Teletrust attribute monetaryLimit -static const unsigned char cvOID_monetaryLimit [] = { 0x2B, 0x24, 0x08, 0x03, 0x04}; -//1.3.36.8.3.5 Teletrust attribute declarationOfMajority -static const unsigned char cvOID_declarationOfMajority [] = { 0x2B, 0x24, 0x08, 0x03, 0x05}; -//1.3.36.8.3.6 Teletrust attribute integratedCircuitCardSerialNumber -static const unsigned char cvOID_integratedCircuitCardSerialNumber [] = { 0x2B, 0x24, 0x08, 0x03, 0x06}; -//1.3.36.8.3.7 Teletrust attribute pKReference -static const unsigned char cvOID_pKReference [] = { 0x2B, 0x24, 0x08, 0x03, 0x07}; -//1.3.36.8.3.8 Teletrust attribute restriction -static const unsigned char cvOID_restriction_1 [] = { 0x2B, 0x24, 0x08, 0x03, 0x08}; -//1.3.36.8.3.9 Teletrust attribute retrieveIfAllowed -static const unsigned char cvOID_retrieveIfAllowed [] = { 0x2B, 0x24, 0x08, 0x03, 0x09}; -//1.3.36.8.3.10 Teletrust attribute requestedCertificate -static const unsigned char cvOID_requestedCertificate [] = { 0x2B, 0x24, 0x08, 0x03, 0x0A}; -//1.3.36.8.3.11 Teletrust attribute namingAuthorities -static const unsigned char cvOID_namingAuthorities [] = { 0x2B, 0x24, 0x08, 0x03, 0x0B}; -//1.3.36.8.3.12 Teletrust attribute certInDirSince -static const unsigned char cvOID_certInDirSince [] = { 0x2B, 0x24, 0x08, 0x03, 0x0C}; -//1.3.36.8.3.13 Teletrust attribute certHash -static const unsigned char cvOID_certHash [] = { 0x2B, 0x24, 0x08, 0x03, 0x0D}; -//1.3.36.8.4.1 Teletrust OtherName attribute personalData -static const unsigned char cvOID_personalData [] = { 0x2B, 0x24, 0x08, 0x04, 0x01}; -//1.3.36.8.4.8 Teletrust attribute certificate attribute restriction -static const unsigned char cvOID_restriction_2 [] = { 0x2B, 0x24, 0x08, 0x04, 0x08}; -//1.3.36.8.5.1.1.1 Teletrust signature algorithm rsaIndicateSHA1 -static const unsigned char cvOID_rsaIndicateSHA1 [] = { 0x2B, 0x24, 0x08, 0x05, 0x01, 0x01, 0x01}; -//1.3.36.8.5.1.1.2 Teletrust signature algorithm rsaIndicateRIPEMD160 -static const unsigned char cvOID_rsaIndicateRIPEMD160 [] = { 0x2B, 0x24, 0x08, 0x05, 0x01, 0x01, 0x02}; -//1.3.36.8.5.1.1.3 Teletrust signature algorithm rsaWithSHA1 -static const unsigned char cvOID_rsaWithSHA1 [] = { 0x2B, 0x24, 0x08, 0x05, 0x01, 0x01, 0x03}; -//1.3.36.8.5.1.1.4 Teletrust signature algorithm rsaWithRIPEMD160 -static const unsigned char cvOID_rsaWithRIPEMD160 [] = { 0x2B, 0x24, 0x08, 0x05, 0x01, 0x01, 0x04}; -//1.3.36.8.5.1.2.1 Teletrust signature algorithm dsaExtended -static const unsigned char cvOID_dsaExtended [] = { 0x2B, 0x24, 0x08, 0x05, 0x01, 0x02, 0x01}; -//1.3.36.8.5.1.2.2 Teletrust signature algorithm dsaWithRIPEMD160 -static const unsigned char cvOID_dsaWithRIPEMD160 [] = { 0x2B, 0x24, 0x08, 0x05, 0x01, 0x02, 0x02}; -//1.3.36.8.6.1 Teletrust signature attributes cert -static const unsigned char cvOID_cert [] = { 0x2B, 0x24, 0x08, 0x06, 0x01}; -//1.3.36.8.6.2 Teletrust signature attributes certRef -static const unsigned char cvOID_certRef [] = { 0x2B, 0x24, 0x08, 0x06, 0x02}; -//1.3.36.8.6.3 Teletrust signature attributes attrCert -static const unsigned char cvOID_attrCert [] = { 0x2B, 0x24, 0x08, 0x06, 0x03}; -//1.3.36.8.6.4 Teletrust signature attributes attrRef -static const unsigned char cvOID_attrRef [] = { 0x2B, 0x24, 0x08, 0x06, 0x04}; -//1.3.36.8.6.5 Teletrust signature attributes fileName -static const unsigned char cvOID_fileName [] = { 0x2B, 0x24, 0x08, 0x06, 0x05}; -//1.3.36.8.6.6 Teletrust signature attributes storageTime -static const unsigned char cvOID_storageTime [] = { 0x2B, 0x24, 0x08, 0x06, 0x06}; -//1.3.36.8.6.7 Teletrust signature attributes fileSize -static const unsigned char cvOID_fileSize [] = { 0x2B, 0x24, 0x08, 0x06, 0x07}; -//1.3.36.8.6.8 Teletrust signature attributes location -static const unsigned char cvOID_location [] = { 0x2B, 0x24, 0x08, 0x06, 0x08}; -//1.3.36.8.6.9 Teletrust signature attributes sigNumber -static const unsigned char cvOID_sigNumber [] = { 0x2B, 0x24, 0x08, 0x06, 0x09}; -//1.3.36.8.6.10 Teletrust signature attributes autoGen -static const unsigned char cvOID_autoGen [] = { 0x2B, 0x24, 0x08, 0x06, 0x0A}; -//1.3.36.8.7.1.1 Teletrust presentation types ptAdobeILL -static const unsigned char cvOID_ptAdobeILL [] = { 0x2B, 0x24, 0x08, 0x07, 0x01, 0x01}; -//1.3.36.8.7.1.2 Teletrust presentation types ptAmiPro -static const unsigned char cvOID_ptAmiPro [] = { 0x2B, 0x24, 0x08, 0x07, 0x01, 0x02}; -//1.3.36.8.7.1.3 Teletrust presentation types ptAutoCAD -static const unsigned char cvOID_ptAutoCAD [] = { 0x2B, 0x24, 0x08, 0x07, 0x01, 0x03}; -//1.3.36.8.7.1.4 Teletrust presentation types ptBinary -static const unsigned char cvOID_ptBinary [] = { 0x2B, 0x24, 0x08, 0x07, 0x01, 0x04}; -//1.3.36.8.7.1.5 Teletrust presentation types ptBMP -static const unsigned char cvOID_ptBMP [] = { 0x2B, 0x24, 0x08, 0x07, 0x01, 0x05}; -//1.3.36.8.7.1.6 Teletrust presentation types ptCGM -static const unsigned char cvOID_ptCGM [] = { 0x2B, 0x24, 0x08, 0x07, 0x01, 0x06}; -//1.3.36.8.7.1.7 Teletrust presentation types ptCorelCRT -static const unsigned char cvOID_ptCorelCRT [] = { 0x2B, 0x24, 0x08, 0x07, 0x01, 0x07}; -//1.3.36.8.7.1.8 Teletrust presentation types ptCorelDRW -static const unsigned char cvOID_ptCorelDRW [] = { 0x2B, 0x24, 0x08, 0x07, 0x01, 0x08}; -//1.3.36.8.7.1.9 Teletrust presentation types ptCorelEXC -static const unsigned char cvOID_ptCorelEXC [] = { 0x2B, 0x24, 0x08, 0x07, 0x01, 0x09}; -//1.3.36.8.7.1.10 Teletrust presentation types ptCorelPHT -static const unsigned char cvOID_ptCorelPHT [] = { 0x2B, 0x24, 0x08, 0x07, 0x01, 0x0A}; -//1.3.36.8.7.1.11 Teletrust presentation types ptDraw -static const unsigned char cvOID_ptDraw [] = { 0x2B, 0x24, 0x08, 0x07, 0x01, 0x0B}; -//1.3.36.8.7.1.12 Teletrust presentation types ptDVI -static const unsigned char cvOID_ptDVI [] = { 0x2B, 0x24, 0x08, 0x07, 0x01, 0x0C}; -//1.3.36.8.7.1.13 Teletrust presentation types ptEPS -static const unsigned char cvOID_ptEPS [] = { 0x2B, 0x24, 0x08, 0x07, 0x01, 0x0D}; -//1.3.36.8.7.1.14 Teletrust presentation types ptExcel -static const unsigned char cvOID_ptExcel [] = { 0x2B, 0x24, 0x08, 0x07, 0x01, 0x0E}; -//1.3.36.8.7.1.15 Teletrust presentation types ptGEM -static const unsigned char cvOID_ptGEM [] = { 0x2B, 0x24, 0x08, 0x07, 0x01, 0x0F}; -//1.3.36.8.7.1.16 Teletrust presentation types ptGIF -static const unsigned char cvOID_ptGIF [] = { 0x2B, 0x24, 0x08, 0x07, 0x01, 0x10}; -//1.3.36.8.7.1.17 Teletrust presentation types ptHPGL -static const unsigned char cvOID_ptHPGL [] = { 0x2B, 0x24, 0x08, 0x07, 0x01, 0x11}; -//1.3.36.8.7.1.18 Teletrust presentation types ptJPEG -static const unsigned char cvOID_ptJPEG [] = { 0x2B, 0x24, 0x08, 0x07, 0x01, 0x12}; -//1.3.36.8.7.1.19 Teletrust presentation types ptKodak -static const unsigned char cvOID_ptKodak [] = { 0x2B, 0x24, 0x08, 0x07, 0x01, 0x13}; -//1.3.36.8.7.1.20 Teletrust presentation types ptLaTeX -static const unsigned char cvOID_ptLaTeX [] = { 0x2B, 0x24, 0x08, 0x07, 0x01, 0x14}; -//1.3.36.8.7.1.21 Teletrust presentation types ptLotus -static const unsigned char cvOID_ptLotus [] = { 0x2B, 0x24, 0x08, 0x07, 0x01, 0x15}; -//1.3.36.8.7.1.22 Teletrust presentation types ptLotusPIC -static const unsigned char cvOID_ptLotusPIC [] = { 0x2B, 0x24, 0x08, 0x07, 0x01, 0x16}; -//1.3.36.8.7.1.23 Teletrust presentation types ptMacPICT -static const unsigned char cvOID_ptMacPICT [] = { 0x2B, 0x24, 0x08, 0x07, 0x01, 0x17}; -//1.3.36.8.7.1.24 Teletrust presentation types ptMacWord -static const unsigned char cvOID_ptMacWord [] = { 0x2B, 0x24, 0x08, 0x07, 0x01, 0x18}; -//1.3.36.8.7.1.25 Teletrust presentation types ptMSWfD -static const unsigned char cvOID_ptMSWfD [] = { 0x2B, 0x24, 0x08, 0x07, 0x01, 0x19}; -//1.3.36.8.7.1.26 Teletrust presentation types ptMSWord -static const unsigned char cvOID_ptMSWord [] = { 0x2B, 0x24, 0x08, 0x07, 0x01, 0x1A}; -//1.3.36.8.7.1.27 Teletrust presentation types ptMSWord2 -static const unsigned char cvOID_ptMSWord2 [] = { 0x2B, 0x24, 0x08, 0x07, 0x01, 0x1B}; -//1.3.36.8.7.1.28 Teletrust presentation types ptMSWord6 -static const unsigned char cvOID_ptMSWord6 [] = { 0x2B, 0x24, 0x08, 0x07, 0x01, 0x1C}; -//1.3.36.8.7.1.29 Teletrust presentation types ptMSWord8 -static const unsigned char cvOID_ptMSWord8 [] = { 0x2B, 0x24, 0x08, 0x07, 0x01, 0x1D}; -//1.3.36.8.7.1.30 Teletrust presentation types ptPDF -static const unsigned char cvOID_ptPDF [] = { 0x2B, 0x24, 0x08, 0x07, 0x01, 0x1E}; -//1.3.36.8.7.1.31 Teletrust presentation types ptPIF -static const unsigned char cvOID_ptPIF [] = { 0x2B, 0x24, 0x08, 0x07, 0x01, 0x1F}; -//1.3.36.8.7.1.32 Teletrust presentation types ptPostscript -static const unsigned char cvOID_ptPostscript [] = { 0x2B, 0x24, 0x08, 0x07, 0x01, 0x20}; -//1.3.36.8.7.1.33 Teletrust presentation types ptRTF -static const unsigned char cvOID_ptRTF [] = { 0x2B, 0x24, 0x08, 0x07, 0x01, 0x21}; -//1.3.36.8.7.1.34 Teletrust presentation types ptSCITEX -static const unsigned char cvOID_ptSCITEX [] = { 0x2B, 0x24, 0x08, 0x07, 0x01, 0x22}; -//1.3.36.8.7.1.35 Teletrust presentation types ptTAR -static const unsigned char cvOID_ptTAR [] = { 0x2B, 0x24, 0x08, 0x07, 0x01, 0x23}; -//1.3.36.8.7.1.36 Teletrust presentation types ptTarga -static const unsigned char cvOID_ptTarga [] = { 0x2B, 0x24, 0x08, 0x07, 0x01, 0x24}; -//1.3.36.8.7.1.37 Teletrust presentation types ptTeX -static const unsigned char cvOID_ptTeX [] = { 0x2B, 0x24, 0x08, 0x07, 0x01, 0x25}; -//1.3.36.8.7.1.38 Teletrust presentation types ptText -static const unsigned char cvOID_ptText [] = { 0x2B, 0x24, 0x08, 0x07, 0x01, 0x26}; -//1.3.36.8.7.1.39 Teletrust presentation types ptTIFF -static const unsigned char cvOID_ptTIFF [] = { 0x2B, 0x24, 0x08, 0x07, 0x01, 0x27}; -//1.3.36.8.7.1.40 Teletrust presentation types ptTIFF-FC -static const unsigned char cvOID_ptTIFF_FC [] = { 0x2B, 0x24, 0x08, 0x07, 0x01, 0x28}; -//1.3.36.8.7.1.41 Teletrust presentation types ptUID -static const unsigned char cvOID_ptUID [] = { 0x2B, 0x24, 0x08, 0x07, 0x01, 0x29}; -//1.3.36.8.7.1.42 Teletrust presentation types ptUUEncode -static const unsigned char cvOID_ptUUEncode [] = { 0x2B, 0x24, 0x08, 0x07, 0x01, 0x2A}; -//1.3.36.8.7.1.43 Teletrust presentation types ptWMF -static const unsigned char cvOID_ptWMF [] = { 0x2B, 0x24, 0x08, 0x07, 0x01, 0x2B}; -//1.3.36.8.7.1.44 Teletrust presentation types ptWordPerfect -static const unsigned char cvOID_ptWordPerfect [] = { 0x2B, 0x24, 0x08, 0x07, 0x01, 0x2C}; -//1.3.36.8.7.1.45 Teletrust presentation types ptWPGrph -static const unsigned char cvOID_ptWPGrph [] = { 0x2B, 0x24, 0x08, 0x07, 0x01, 0x2D}; -//1.3.101.1.4 Thawte thawte-ce -static const unsigned char cvOID_thawte_ce [] = { 0x2B, 0x65, 0x01, 0x04}; -//1.3.101.1.4.1 Thawte certificate extension strongExtranet -static const unsigned char cvOID_strongExtranet [] = { 0x2B, 0x65, 0x01, 0x04, 0x01}; -//2.5.4.0 X.520 id-at (2 5 4) objectClass -static const unsigned char cvOID_objectClass [] = { 0x55, 0x04, 0x00}; -//2.5.4.1 X.520 id-at (2 5 4) aliasedEntryName -static const unsigned char cvOID_aliasedEntryName [] = { 0x55, 0x04, 0x01}; -//2.5.4.2 X.520 id-at (2 5 4) knowledgeInformation -static const unsigned char cvOID_knowledgeInformation [] = { 0x55, 0x04, 0x02}; -//2.5.4.3 X.520 id-at (2 5 4) commonName -static const unsigned char cvOID_commonName [] = { 0x55, 0x04, 0x03}; -//2.5.4.4 X.520 id-at (2 5 4) surname -static const unsigned char cvOID_surname [] = { 0x55, 0x04, 0x04}; -//2.5.4.5 X.520 id-at (2 5 4) serialNumber -static const unsigned char cvOID_serialNumber [] = { 0x55, 0x04, 0x05}; -//2.5.4.6 X.520 id-at (2 5 4) countryName -static const unsigned char cvOID_countryName [] = { 0x55, 0x04, 0x06}; -//2.5.4.7 X.520 id-at (2 5 4) localityName -static const unsigned char cvOID_localityName [] = { 0x55, 0x04, 0x07}; -//2.5.4.7.1 X.520 id-at (2 5 4) collectiveLocalityName -static const unsigned char cvOID_collectiveLocalityName [] = { 0x55, 0x04, 0x07, 0x01}; -//2.5.4.8 X.520 id-at (2 5 4) stateOrProvinceName -static const unsigned char cvOID_stateOrProvinceName [] = { 0x55, 0x04, 0x08}; -//2.5.4.8.1 X.520 id-at (2 5 4) collectiveStateOrProvinceName -static const unsigned char cvOID_collectiveStateOrProvinceName [] = { 0x55, 0x04, 0x08, 0x01}; -//2.5.4.9 X.520 id-at (2 5 4) streetAddress -static const unsigned char cvOID_streetAddress [] = { 0x55, 0x04, 0x09}; -//2.5.4.9.1 X.520 id-at (2 5 4) collectiveStreetAddress -static const unsigned char cvOID_collectiveStreetAddress [] = { 0x55, 0x04, 0x09, 0x01}; -//2.5.4.10 X.520 id-at (2 5 4) organizationName -static const unsigned char cvOID_organizationName [] = { 0x55, 0x04, 0x0A}; -//2.5.4.10.1 X.520 id-at (2 5 4) collectiveOrganizationName -static const unsigned char cvOID_collectiveOrganizationName [] = { 0x55, 0x04, 0x0A, 0x01}; -//2.5.4.11 X.520 id-at (2 5 4) organizationalUnitName -static const unsigned char cvOID_organizationalUnitName [] = { 0x55, 0x04, 0x0B}; -//2.5.4.11.1 X.520 id-at (2 5 4) collectiveOrganizationalUnitName -static const unsigned char cvOID_collectiveOrganizationalUnitName [] = { 0x55, 0x04, 0x0B, 0x01}; -//2.5.4.12 X.520 id-at (2 5 4) title -static const unsigned char cvOID_title [] = { 0x55, 0x04, 0x0C}; -//2.5.4.13 X.520 id-at (2 5 4) description -static const unsigned char cvOID_description [] = { 0x55, 0x04, 0x0D}; -//2.5.4.14 X.520 id-at (2 5 4) searchGuide -static const unsigned char cvOID_searchGuide [] = { 0x55, 0x04, 0x0E}; -//2.5.4.15 X.520 id-at (2 5 4) businessCategory -static const unsigned char cvOID_businessCategory [] = { 0x55, 0x04, 0x0F}; -//2.5.4.16 X.520 id-at (2 5 4) postalAddress -static const unsigned char cvOID_postalAddress [] = { 0x55, 0x04, 0x10}; -//2.5.4.16.1 X.520 id-at (2 5 4) collectivePostalAddress -static const unsigned char cvOID_collectivePostalAddress [] = { 0x55, 0x04, 0x10, 0x01}; -//2.5.4.17 X.520 id-at (2 5 4) postalCode -static const unsigned char cvOID_postalCode [] = { 0x55, 0x04, 0x11}; -//2.5.4.17.1 X.520 id-at (2 5 4) collectivePostalCode -static const unsigned char cvOID_collectivePostalCode [] = { 0x55, 0x04, 0x11, 0x01}; -//2.5.4.18 X.520 id-at (2 5 4) postOfficeBox -static const unsigned char cvOID_postOfficeBox [] = { 0x55, 0x04, 0x12}; -//2.5.4.18.1 X.520 id-at (2 5 4) collectivePostOfficeBox -static const unsigned char cvOID_collectivePostOfficeBox [] = { 0x55, 0x04, 0x12, 0x01}; -//2.5.4.19 X.520 id-at (2 5 4) physicalDeliveryOfficeName -static const unsigned char cvOID_physicalDeliveryOfficeName [] = { 0x55, 0x04, 0x13}; -//2.5.4.19.1 X.520 id-at (2 5 4) collectivePhysicalDeliveryOfficeName -static const unsigned char cvOID_collectivePhysicalDeliveryOfficeName [] = { 0x55, 0x04, 0x13, 0x01}; -//2.5.4.20 X.520 id-at (2 5 4) telephoneNumber -static const unsigned char cvOID_telephoneNumber [] = { 0x55, 0x04, 0x14}; -//2.5.4.20.1 X.520 id-at (2 5 4) collectiveTelephoneNumber -static const unsigned char cvOID_collectiveTelephoneNumber [] = { 0x55, 0x04, 0x14, 0x01}; -//2.5.4.21 X.520 id-at (2 5 4) telexNumber -static const unsigned char cvOID_telexNumber [] = { 0x55, 0x04, 0x15}; -//2.5.4.21.1 X.520 id-at (2 5 4) collectiveTelexNumber -static const unsigned char cvOID_collectiveTelexNumber [] = { 0x55, 0x04, 0x15, 0x01}; -//2.5.4.22 X.520 id-at (2 5 4) teletexTerminalIdentifier -static const unsigned char cvOID_teletexTerminalIdentifier [] = { 0x55, 0x04, 0x16}; -//2.5.4.22.1 X.520 id-at (2 5 4) collectiveTeletexTerminalIdentifier -static const unsigned char cvOID_collectiveTeletexTerminalIdentifier [] = { 0x55, 0x04, 0x16, 0x01}; -//2.5.4.23 X.520 id-at (2 5 4) facsimileTelephoneNumber -static const unsigned char cvOID_facsimileTelephoneNumber [] = { 0x55, 0x04, 0x17}; -//2.5.4.23.1 X.520 id-at (2 5 4) collectiveFacsimileTelephoneNumber -static const unsigned char cvOID_collectiveFacsimileTelephoneNumber [] = { 0x55, 0x04, 0x17, 0x01}; -//2.5.4.24 X.520 id-at (2 5 4) x121Address -static const unsigned char cvOID_x121Address [] = { 0x55, 0x04, 0x18}; -//2.5.4.25 X.520 id-at (2 5 4) internationalISDNNumber -static const unsigned char cvOID_internationalISDNNumber [] = { 0x55, 0x04, 0x19}; -//2.5.4.25.1 X.520 id-at (2 5 4) collectiveInternationalISDNNumber -static const unsigned char cvOID_collectiveInternationalISDNNumber [] = { 0x55, 0x04, 0x19, 0x01}; -//2.5.4.26 X.520 id-at (2 5 4) registeredAddress -static const unsigned char cvOID_registeredAddress [] = { 0x55, 0x04, 0x1A}; -//2.5.4.27 X.520 id-at (2 5 4) destinationIndicator -static const unsigned char cvOID_destinationIndicator [] = { 0x55, 0x04, 0x1B}; -//2.5.4.28 X.520 id-at (2 5 4) preferredDeliveryMehtod -static const unsigned char cvOID_preferredDeliveryMehtod [] = { 0x55, 0x04, 0x1C}; -//2.5.4.29 X.520 id-at (2 5 4) presentationAddress -static const unsigned char cvOID_presentationAddress [] = { 0x55, 0x04, 0x1D}; -//2.5.4.30 X.520 id-at (2 5 4) supportedApplicationContext -static const unsigned char cvOID_supportedApplicationContext [] = { 0x55, 0x04, 0x1E}; -//2.5.4.31 X.520 id-at (2 5 4) member -static const unsigned char cvOID_member [] = { 0x55, 0x04, 0x1F}; -//2.5.4.32 X.520 id-at (2 5 4) owner -static const unsigned char cvOID_owner [] = { 0x55, 0x04, 0x20}; -//2.5.4.33 X.520 id-at (2 5 4) roleOccupant -static const unsigned char cvOID_roleOccupant [] = { 0x55, 0x04, 0x21}; -//2.5.4.34 X.520 id-at (2 5 4) seeAlso -static const unsigned char cvOID_seeAlso [] = { 0x55, 0x04, 0x22}; -//2.5.4.35 X.520 id-at (2 5 4) userPassword -static const unsigned char cvOID_userPassword [] = { 0x55, 0x04, 0x23}; -//2.5.4.36 X.520 id-at (2 5 4) userCertificate -static const unsigned char cvOID_userCertificate [] = { 0x55, 0x04, 0x24}; -//2.5.4.37 X.520 id-at (2 5 4) caCertificate -static const unsigned char cvOID_caCertificate [] = { 0x55, 0x04, 0x25}; -//2.5.4.38 X.520 id-at (2 5 4) authorityRevocationList -static const unsigned char cvOID_authorityRevocationList [] = { 0x55, 0x04, 0x26}; -//2.5.4.39 X.520 id-at (2 5 4) certificateRevocationList -static const unsigned char cvOID_certificateRevocationList [] = { 0x55, 0x04, 0x27}; -//2.5.4.40 X.520 id-at (2 5 4) crossCertificatePair -static const unsigned char cvOID_crossCertificatePair_2 [] = { 0x55, 0x04, 0x28}; -//2.5.4.41 X.520 id-at (2 5 4) name -static const unsigned char cvOID_name [] = { 0x55, 0x04, 0x29}; -//2.5.4.42 X.520 id-at (2 5 4) givenName -static const unsigned char cvOID_givenName [] = { 0x55, 0x04, 0x2A}; -//2.5.4.43 X.520 id-at (2 5 4) initials -static const unsigned char cvOID_initials [] = { 0x55, 0x04, 0x2B}; -//2.5.4.44 X.520 id-at (2 5 4) generationQualifier -static const unsigned char cvOID_generationQualifier [] = { 0x55, 0x04, 0x2C}; -//2.5.4.45 X.520 id-at (2 5 4) uniqueIdentifier -static const unsigned char cvOID_uniqueIdentifier [] = { 0x55, 0x04, 0x2D}; -//2.5.4.46 X.520 id-at (2 5 4) dnQualifier -static const unsigned char cvOID_dnQualifier [] = { 0x55, 0x04, 0x2E}; -//2.5.4.47 X.520 id-at (2 5 4) enhancedSearchGuide -static const unsigned char cvOID_enhancedSearchGuide [] = { 0x55, 0x04, 0x2F}; -//2.5.4.48 X.520 id-at (2 5 4) protocolInformation -static const unsigned char cvOID_protocolInformation [] = { 0x55, 0x04, 0x30}; -//2.5.4.49 X.520 id-at (2 5 4) distinguishedName -static const unsigned char cvOID_distinguishedName [] = { 0x55, 0x04, 0x31}; -//2.5.4.50 X.520 id-at (2 5 4) uniqueMember -static const unsigned char cvOID_uniqueMember [] = { 0x55, 0x04, 0x32}; -//2.5.4.51 X.520 id-at (2 5 4) houseIdentifier -static const unsigned char cvOID_houseIdentifier [] = { 0x55, 0x04, 0x33}; -//2.5.4.52 X.520 id-at (2 5 4) supportedAlgorithms -static const unsigned char cvOID_supportedAlgorithms [] = { 0x55, 0x04, 0x34}; -//2.5.4.53 X.520 id-at (2 5 4) deltaRevocationList -static const unsigned char cvOID_deltaRevocationList [] = { 0x55, 0x04, 0x35}; -//2.5.4.55 X.520 id-at (2 5 4) clearance -static const unsigned char cvOID_clearance [] = { 0x55, 0x04, 0x36}; -//2.5.4.58 X.520 id-at (2 5 4) crossCertificatePair -static const unsigned char cvOID_crossCertificatePair_1 [] = { 0x55, 0x04, 0x3A}; -//2.5.4.65 Naming attributes of type X520Pseudonym -static const unsigned char cvOID_pseudonym[] = { 0x55, 0x04, 0x41}; -//2.5.8.1.1 X.500 algorithms. Ambiguous, since no padding rules specified rsa -static const unsigned char cvOID_rsa_X500 [] = { 0x55, 0x08, 0x01, 0x01}; -//2.5.29.1 X.509 id-ce (2 5 29). Deprecated, use (2 5 29 35) instead authorityKeyIdentifier -static const unsigned char cvOID_authorityKeyIdentifier_old[] = { 0x55, 0x1D, 0x01}; -//2.5.29.2 X.509 id-ce (2 5 29). Obsolete, use keyUsage/extKeyUsage instead keyAttributes -static const unsigned char cvOID_keyAttributes [] = { 0x55, 0x1D, 0x02}; -//2.5.29.3 X.509 id-ce (2 5 29). Deprecated, use (2 5 29 32) instead certificatePolicies -static const unsigned char cvOID_certificatePolicies_old [] = { 0x55, 0x1D, 0x03}; -//2.5.29.4 X.509 id-ce (2 5 29). Obsolete, use keyUsage/extKeyUsage instead keyUsageRestriction -static const unsigned char cvOID_keyUsageRestriction [] = { 0x55, 0x1D, 0x04}; -//2.5.29.5 X.509 id-ce (2 5 29). Deprecated, use (2 5 29 33) instead policyMapping -static const unsigned char cvOID_policyMapping [] = { 0x55, 0x1D, 0x05}; -//2.5.29.6 X.509 id-ce (2 5 29). Obsolete, use namestatic constraints instead subtreesstatic constraint -static const unsigned char cvOID_subtreesconstraint [] = { 0x55, 0x1D, 0x06}; -//2.5.29.7 X.509 id-ce (2 5 29). Deprecated, use (2 5 29 17) instead subjectAltName -static const unsigned char cvOID_subjectAltName_old [] = { 0x55, 0x1D, 0x07}; -//2.5.29.8 X.509 id-ce (2 5 29). Deprecated, use (2 5 29 18) instead issuerAltName -static const unsigned char cvOID_issuerAltName_old [] = { 0x55, 0x1D, 0x08}; -//2.5.29.9 X.509 id-ce (2 5 29) subjectDirectoryAttributes -static const unsigned char cvOID_subjectDirectoryAttributes [] = { 0x55, 0x1D, 0x09}; -//2.5.29.10 X.509 id-ce (2 5 29). Deprecated, use (2 5 29 19) instead basicstatic constraints -static const unsigned char cvOID_basicconstraints_old [] = { 0x55, 0x1D, 0x0A}; -//2.5.29.11 X.509 id-ce (2 5 29). Deprecated, use (2 5 29 30) instead namestatic constraints -static const unsigned char cvOID_nameconstraints_old [] = { 0x55, 0x1D, 0x0B}; -//2.5.29.12 X.509 id-ce (2 5 29). Deprecated, use (2 5 29 36) instead policystatic constraints -static const unsigned char cvOID_policyconstraints_old_1 [] = { 0x55, 0x1D, 0x0C}; -//2.5.29.13 X.509 id-ce (2 5 29). Deprecated, use (2 5 29 19) instead basicstatic constraints -static const unsigned char cvOID_basicconstraints_2 [] = { 0x55, 0x1D, 0x0D}; -//2.5.29.14 X.509 id-ce (2 5 29) subjectKeyIdentifier -static const unsigned char cvOID_subjectKeyIdentifier[] = { 0x55, 0x1D, 0x0E}; -//2.5.29.15 X.509 id-ce (2 5 29) keyUsage -static const unsigned char cvOID_keyUsage[] = { 0x55, 0x1D, 0x0F}; -//2.5.29.16 X.509 id-ce (2 5 29) privateKeyUsagePeriod -static const unsigned char cvOID_privateKeyUsagePeriod [] = { 0x55, 0x1D, 0x10}; -//2.5.29.17 X.509 id-ce (2 5 29) subjectAltName -static const unsigned char cvOID_subjectAltName [] = { 0x55, 0x1D, 0x11}; -//2.5.29.18 X.509 id-ce (2 5 29) issuerAltName -static const unsigned char cvOID_issuerAltName [] = { 0x55, 0x1D, 0x12}; -//2.5.29.19 X.509 id-ce (2 5 29) basicstatic constraints -static const unsigned char cvOID_basicconstraints[] = { 0x55, 0x1D, 0x13}; -//2.5.29.20 X.509 id-ce (2 5 29) cRLNumber -static const unsigned char cvOID_cRLNumber [] = { 0x55, 0x1D, 0x14}; -//2.5.29.21 X.509 id-ce (2 5 29) cRLReason -static const unsigned char cvOID_cRLReason [] = { 0x55, 0x1D, 0x15}; -//2.5.29.22 X.509 id-ce (2 5 29). Deprecated, alternative OID uncertain expirationDate -static const unsigned char cvOID_expirationDate [] = { 0x55, 0x1D, 0x16}; -//2.5.29.23 X.509 id-ce (2 5 29) instructionCode -static const unsigned char cvOID_instructionCode [] = { 0x55, 0x1D, 0x17}; -//2.5.29.24 X.509 id-ce (2 5 29) invalidityDate -static const unsigned char cvOID_invalidityDate [] = { 0x55, 0x1D, 0x18}; -//2.5.29.25 X.509 id-ce (2 5 29). Deprecated, use (2 5 29 31) instead cRLDistributionPoints -static const unsigned char cvOID_cRLDistributionPoints_old [] = { 0x55, 0x1D, 0x19}; -//2.5.29.26 X.509 id-ce (2 5 29). Deprecated, use (2 5 29 28) instead issuingDistributionPoint -static const unsigned char cvOID_issuingDistributionPoint_old [] = { 0x55, 0x1D, 0x1A}; -//2.5.29.27 X.509 id-ce (2 5 29) deltaCRLIndicator -static const unsigned char cvOID_deltaCRLIndicator [] = { 0x55, 0x1D, 0x1B}; -//2.5.29.28 X.509 id-ce (2 5 29) issuingDistributionPoint -static const unsigned char cvOID_issuingDistributionPoint [] = { 0x55, 0x1D, 0x1C}; -//2.5.29.29 X.509 id-ce (2 5 29) certificateIssuer -static const unsigned char cvOID_certificateIssuer [] = { 0x55, 0x1D, 0x1D}; -//2.5.29.30 X.509 id-ce (2 5 29) namestatic constraints -static const unsigned char cvOID_nameconstraints [] = { 0x55, 0x1D, 0x1E}; -//2.5.29.31 X.509 id-ce (2 5 29) cRLDistributionPoints -static const unsigned char cvOID_cRLDistributionPoints[] = { 0x55, 0x1D, 0x1F}; -//2.5.29.32 X.509 id-ce (2 5 29) certificatePolicies -static const unsigned char cvOID_certificatePolicies [] = { 0x55, 0x1D, 0x20}; -//2.5.29.32.0 X.509 id-ce (2 5 29.0) anyPolicies -static const unsigned char cvOID_anyPolicies [] = { 0x55, 0x1D, 0x20, 0x00}; -//2.5.29.33 X.509 id-ce (2 5 29) policyMappings -static const unsigned char cvOID_policyMappings [] = { 0x55, 0x1D, 0x21}; -//2.5.29.34 X.509 id-ce (2 5 29). Deprecated, use (2 5 29 36) instead policystatic constraints -static const unsigned char cvOID_policyconstraints_old_2 [] = { 0x55, 0x1D, 0x22}; -//2.5.29.35 X.509 id-ce (2 5 29) authorityKeyIdentifier -static const unsigned char cvOID_authorityKeyIdentifier [] = { 0x55, 0x1D, 0x23}; -//2.5.29.36 X.509 id-ce (2 5 29) policystatic constraints -static const unsigned char cvOID_policyconstraints [] = { 0x55, 0x1D, 0x24}; -//2.5.29.37 X.509 id-ce (2 5 29) extKeyUsage -static const unsigned char cvOID_extKeyUsage [] = { 0x55, 0x1D, 0x25}; -//2.5.29.37.0 anyExtendedKeyUsage id-ce-extKeyUsage 0 -static const unsigned char cvOID_anyExtendedKeyUsage [] = { 0x55, 0x1D, 0x25, 0x00}; -//ame -//2.5.29.46 X.509 id-ce (2 5 29) id-ce-freshestCRL -static const unsigned char cvOID_freshestCRL [] = { 0x55, 0x1D, 0x2E}; -//2.5.29.54 X.509 id-ce (2 5 29) inhibitAnyPolicy -static const unsigned char cvOID_inhibitAnyPolicy [] = { 0x55, 0x1D, 0x36}; - -//2.16.840.1.101.2.1.1.1 SDN.700 INFOSEC algorithms sdnsSignatureAlgorithm -static const unsigned char cvOID_sdnsSignatureAlgorithm [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x01, 0x01}; -//2.16.840.1.101.2.1.1.2 SDN.700 INFOSEC algorithms. Formerly known as mosaicSignatureAlgorithm, this OID is better known as dsaWithSHA-1. fortezzaSignatureAlgorithm -static const unsigned char cvOID_fortezzaSignatureAlgorithm [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x01, 0x02}; -//2.16.840.1.101.2.1.1.3 SDN.700 INFOSEC algorithms sdnsConfidentialityAlgorithm -static const unsigned char cvOID_sdnsConfidentialityAlgorithm [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x01, 0x03}; -//2.16.840.1.101.2.1.1.4 SDN.700 INFOSEC algorithms. Formerly known as mosaicConfidentialityAlgorithm fortezzaConfidentialityAlgorithm -static const unsigned char cvOID_fortezzaConfidentialityAlgorithm [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x01, 0x04}; -//2.16.840.1.101.2.1.1.5 SDN.700 INFOSEC algorithms sdnsIntegrityAlgorithm -static const unsigned char cvOID_sdnsIntegrityAlgorithm [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x01, 0x05}; -//2.16.840.1.101.2.1.1.6 SDN.700 INFOSEC algorithms. Formerly known as mosaicIntegrityAlgorithm fortezzaIntegrityAlgorithm -static const unsigned char cvOID_fortezzaIntegrityAlgorithm [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x01, 0x06}; -//2.16.840.1.101.2.1.1.7 SDN.700 INFOSEC algorithms sdnsTokenProtectionAlgorithm -static const unsigned char cvOID_sdnsTokenProtectionAlgorithm [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x01, 0x07}; -//2.16.840.1.101.2.1.1.8 SDN.700 INFOSEC algorithms. Formerly know as mosaicTokenProtectionAlgorithm fortezzaTokenProtectionAlgorithm -static const unsigned char cvOID_fortezzaTokenProtectionAlgorithm [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x01, 0x08}; -//2.16.840.1.101.2.1.1.9 SDN.700 INFOSEC algorithms sdnsKeyManagementAlgorithm -static const unsigned char cvOID_sdnsKeyManagementAlgorithm [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x01, 0x09}; -//2.16.840.1.101.2.1.1.10 SDN.700 INFOSEC algorithms. Formerly known as mosaicKeyManagementAlgorithm fortezzaKeyManagementAlgorithm -static const unsigned char cvOID_fortezzaKeyManagementAlgorithm [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x01, 0x0A}; -//2.16.840.1.101.2.1.1.11 SDN.700 INFOSEC algorithms sdnsKMandSigAlgorithm -static const unsigned char cvOID_sdnsKMandSigAlgorithm [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x01, 0x0B}; -//2.16.840.1.101.2.1.1.12 SDN.700 INFOSEC algorithms. Formerly known as mosaicKMandSigAlgorithm fortezzaKMandSigAlgorithm -static const unsigned char cvOID_fortezzaKMandSigAlgorithm [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x01, 0x0C}; -//2.16.840.1.101.2.1.1.13 SDN.700 INFOSEC algorithms suiteASignatureAlgorithm -static const unsigned char cvOID_suiteASignatureAlgorithm [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x01, 0x0D}; -//2.16.840.1.101.2.1.1.14 SDN.700 INFOSEC algorithms suiteAConfidentialityAlgorithm -static const unsigned char cvOID_suiteAConfidentialityAlgorithm [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x01, 0x0E}; -//2.16.840.1.101.2.1.1.15 SDN.700 INFOSEC algorithms suiteAIntegrityAlgorithm -static const unsigned char cvOID_suiteAIntegrityAlgorithm [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x01, 0x0F}; -//2.16.840.1.101.2.1.1.16 SDN.700 INFOSEC algorithms suiteATokenProtectionAlgorithm -static const unsigned char cvOID_suiteATokenProtectionAlgorithm [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x01, 0x10}; -//2.16.840.1.101.2.1.1.17 SDN.700 INFOSEC algorithms suiteAKeyManagementAlgorithm -static const unsigned char cvOID_suiteAKeyManagementAlgorithm [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x01, 0x11}; -//2.16.840.1.101.2.1.1.18 SDN.700 INFOSEC algorithms suiteAKMandSigAlgorithm -static const unsigned char cvOID_suiteAKMandSigAlgorithm [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x01, 0x12}; -//2.16.840.1.101.2.1.1.19 SDN.700 INFOSEC algorithms. Formerly known as mosaicUpdatedSigAlgorithm fortezzaUpdatedSigAlgorithm -static const unsigned char cvOID_fortezzaUpdatedSigAlgorithm [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x01, 0x13}; -//2.16.840.1.101.2.1.1.20 SDN.700 INFOSEC algorithms. Formerly known as mosaicKMandUpdSigAlgorithms fortezzaKMandUpdSigAlgorithms -static const unsigned char cvOID_fortezzaKMandUpdSigAlgorithms [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x01, 0x14}; -//2.16.840.1.101.2.1.1.21 SDN.700 INFOSEC algorithms. Formerly known as mosaicUpdatedIntegAlgorithm fortezzaUpdatedIntegAlgorithm -static const unsigned char cvOID_fortezzaUpdatedIntegAlgorithm [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x01, 0x15}; -//2.16.840.1.101.2.1.1.22 SDN.700 INFOSEC algorithms. Formerly known as mosaicKeyEncryptionAlgorithm keyExchangeAlgorithm -static const unsigned char cvOID_keyExchangeAlgorithm [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x01, 0x16}; -//2.16.840.1.101.2.1.1.23 SDN.700 INFOSEC algorithms fortezzaWrap80Algorithm -static const unsigned char cvOID_fortezzaWrap80Algorithm [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x01, 0x17}; -//2.16.840.1.101.2.1.1.24 SDN.700 INFOSEC algorithms kEAKeyEncryptionAlgorithm -static const unsigned char cvOID_kEAKeyEncryptionAlgorithm [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x01, 0x18}; -//2.16.840.1.101.2.1.2.1 SDN.700 INFOSEC format rfc822MessageFormat -static const unsigned char cvOID_rfc822MessageFormat [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x02, 0x01}; -//2.16.840.1.101.2.1.2.2 SDN.700 INFOSEC format emptyContent -static const unsigned char cvOID_emptyContent [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x02, 0x02}; -//2.16.840.1.101.2.1.2.3 SDN.700 INFOSEC format cspContentType -static const unsigned char cvOID_cspContentType [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x02, 0x03}; -//2.16.840.1.101.2.1.2.42 SDN.700 INFOSEC format mspRev3ContentType -static const unsigned char cvOID_mspRev3ContentType [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x02, 0x2A}; -//2.16.840.1.101.2.1.2.48 SDN.700 INFOSEC format mspContentType -static const unsigned char cvOID_mspContentType [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x02, 0x30}; -//2.16.840.1.101.2.1.2.49 SDN.700 INFOSEC format mspRekeyAgentProtocol -static const unsigned char cvOID_mspRekeyAgentProtocol [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x02, 0x31}; -//2.16.840.1.101.2.1.2.50 SDN.700 INFOSEC format mspMMP -static const unsigned char cvOID_mspMMP [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x02, 0x32}; -//2.16.840.1.101.2.1.2.66 SDN.700 INFOSEC format mspRev3-1ContentType -static const unsigned char cvOID_mspRev3_1ContentType [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x02, 0x42}; -//2.16.840.1.101.2.1.2.72 SDN.700 INFOSEC format forwardedMSPMessageBodyPart -static const unsigned char cvOID_forwardedMSPMessageBodyPart [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x02, 0x48}; -//2.16.840.1.101.2.1.2.73 SDN.700 INFOSEC format mspForwardedMessageParameters -static const unsigned char cvOID_mspForwardedMessageParameters [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x02, 0x49}; -//2.16.840.1.101.2.1.2.74 SDN.700 INFOSEC format forwardedCSPMsgBodyPart -static const unsigned char cvOID_forwardedCSPMsgBodyPart [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x02, 0x50}; -//2.16.840.1.101.2.1.2.75 SDN.700 INFOSEC format cspForwardedMessageParameters -static const unsigned char cvOID_cspForwardedMessageParameters [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x02, 0x51}; -//2.16.840.1.101.2.1.2.76 SDN.700 INFOSEC format mspMMP2 -static const unsigned char cvOID_mspMMP2 [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x02, 0x52}; -//2.16.840.1.101.2.1.3.1 SDN.700 INFOSEC policy sdnsSecurityPolicy -static const unsigned char cvOID_sdnsSecurityPolicy [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x03, 0x01}; -//2.16.840.1.101.2.1.3.2 SDN.700 INFOSEC policy sdnsPRBAC -static const unsigned char cvOID_sdnsPRBAC [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x03, 0x02}; -//2.16.840.1.101.2.1.3.3 SDN.700 INFOSEC policy mosaicPRBAC -static const unsigned char cvOID_mosaicPRBAC [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x03, 0x03}; -//2.16.840.1.101.2.1.3.10 SDN.700 INFOSEC policy siSecurityPolicy -static const unsigned char cvOID_siSecurityPolicy [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x03, 0x0A}; -//2.16.840.1.101.2.1.3.10.0 SDN.700 INFOSEC policy (obsolete) siNASP -static const unsigned char cvOID_siNASP [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x03, 0x0A, 0x00}; -//2.16.840.1.101.2.1.3.10.1 SDN.700 INFOSEC policy (obsolete) siELCO -static const unsigned char cvOID_siELCO [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x03, 0x0A, 0x01}; -//2.16.840.1.101.2.1.3.10.2 SDN.700 INFOSEC policy (obsolete) siTK -static const unsigned char cvOID_siTK [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x03, 0x0A, 0x02}; -//2.16.840.1.101.2.1.3.10.3 SDN.700 INFOSEC policy (obsolete) siDSAP -static const unsigned char cvOID_siDSAP [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x03, 0x0A, 0x03}; -//2.16.840.1.101.2.1.3.10.4 SDN.700 INFOSEC policy (obsolete) siSSSS -static const unsigned char cvOID_siSSSS [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x03, 0x0A, 0x04}; -//2.16.840.1.101.2.1.3.10.5 SDN.700 INFOSEC policy (obsolete) siDNASP -static const unsigned char cvOID_siDNASP [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x03, 0x0A, 0x05}; -//2.16.840.1.101.2.1.3.10.6 SDN.700 INFOSEC policy (obsolete) siBYEMAN -static const unsigned char cvOID_siBYEMAN [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x03, 0x0A, 0x06}; -//2.16.840.1.101.2.1.3.10.7 SDN.700 INFOSEC policy (obsolete) siREL-US -static const unsigned char cvOID_siREL_US [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x03, 0x0A, 0x07}; -//2.16.840.1.101.2.1.3.10.8 SDN.700 INFOSEC policy (obsolete) siREL-AUS -static const unsigned char cvOID_siREL_AUS [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x03, 0x0A, 0x08}; -//2.16.840.1.101.2.1.3.10.9 SDN.700 INFOSEC policy (obsolete) siREL-CAN -static const unsigned char cvOID_siREL_CAN [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x03, 0x0A, 0x09}; -//2.16.840.1.101.2.1.3.10.10 SDN.700 INFOSEC policy (obsolete) siREL_UK -static const unsigned char cvOID_siREL_UK [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x03, 0x0A, 0x0A}; -//2.16.840.1.101.2.1.3.10.11 SDN.700 INFOSEC policy (obsolete) siREL-NZ -static const unsigned char cvOID_siREL_NZ [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x03, 0x0A, 0x0B}; -//2.16.840.1.101.2.1.3.10.12 SDN.700 INFOSEC policy (obsolete) siGeneric -static const unsigned char cvOID_siGeneric [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x03, 0x0A, 0x0C}; -//2.16.840.1.101.2.1.3.11 SDN.700 INFOSEC policy genser -static const unsigned char cvOID_genser [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x03, 0x0B}; -//2.16.840.1.101.2.1.3.11.0 SDN.700 INFOSEC policy (obsolete) genserNations -static const unsigned char cvOID_genserNations [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x03, 0x0B, 0x00}; -//2.16.840.1.101.2.1.3.11.1 SDN.700 INFOSEC policy (obsolete) genserComsec -static const unsigned char cvOID_genserComsec [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x03, 0x0B, 0x01}; -//2.16.840.1.101.2.1.3.11.2 SDN.700 INFOSEC policy (obsolete) genserAcquisition -static const unsigned char cvOID_genserAcquisition [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x03, 0x0B, 0x02}; -//2.16.840.1.101.2.1.3.11.3 SDN.700 INFOSEC policy genserSecurityCategories -static const unsigned char cvOID_genserSecurityCategories [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x03, 0x0B, 0x03}; -//2.16.840.1.101.2.1.3.11.3.0 SDN.700 INFOSEC GENSER policy genserTagSetName -static const unsigned char cvOID_genserTagSetName [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x03, 0x0B, 0x03, 0x00}; -//2.16.840.1.101.2.1.3.12 SDN.700 INFOSEC policy defaultSecurityPolicy -static const unsigned char cvOID_defaultSecurityPolicy [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x03, 0x0C}; -//2.16.840.1.101.2.1.3.13 SDN.700 INFOSEC policy capcoMarkings -static const unsigned char cvOID_capcoMarkings [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x03, 0x0D}; -//2.16.840.1.101.2.1.3.13.0 SDN.700 INFOSEC policy CAPCO markings capcoSecurityCategories -static const unsigned char cvOID_capcoSecurityCategories [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x03, 0x0D, 0x00}; -//2.16.840.1.101.2.1.3.13.0.1 SDN.700 INFOSEC policy CAPCO markings capcoTagSetName1 -static const unsigned char cvOID_capcoTagSetName1 [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x03, 0x0D, 0x00, 0x01}; -//2.16.840.1.101.2.1.3.13.0.2 SDN.700 INFOSEC policy CAPCO markings capcoTagSetName2 -static const unsigned char cvOID_capcoTagSetName2 [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x03, 0x0D, 0x00, 0x02}; -//2.16.840.1.101.2.1.3.13.0.3 SDN.700 INFOSEC policy CAPCO markings capcoTagSetName3 -static const unsigned char cvOID_capcoTagSetName3 [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x03, 0x0D, 0x00, 0x03}; -//2.16.840.1.101.2.1.3.13.0.4 SDN.700 INFOSEC policy CAPCO markings capcoTagSetName4 -static const unsigned char cvOID_capcoTagSetName4 [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x03, 0x0D, 0x00, 0x04}; -//2.16.840.1.101.2.1.5.1 SDN.700 INFOSEC attributes (superseded) sdnsKeyManagementCertificate -static const unsigned char cvOID_sdnsKeyManagementCertificate [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x05, 0x01}; -//2.16.840.1.101.2.1.5.2 SDN.700 INFOSEC attributes (superseded) sdnsUserSignatureCertificate -static const unsigned char cvOID_sdnsUserSignatureCertificate [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x05, 0x02}; -//2.16.840.1.101.2.1.5.3 SDN.700 INFOSEC attributes (superseded) sdnsKMandSigCertificate -static const unsigned char cvOID_sdnsKMandSigCertificate [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x05, 0x03}; -//2.16.840.1.101.2.1.5.4 SDN.700 INFOSEC attributes (superseded) fortezzaKeyManagementCertificate -static const unsigned char cvOID_fortezzaKeyManagementCertificate [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x05, 0x04}; -//2.16.840.1.101.2.1.5.5 SDN.700 INFOSEC attributes (superseded) fortezzaKMandSigCertificate -static const unsigned char cvOID_fortezzaKMandSigCertificate [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x05, 0x05}; -//2.16.840.1.101.2.1.5.6 SDN.700 INFOSEC attributes (superseded) fortezzaUserSignatureCertificate -static const unsigned char cvOID_fortezzaUserSignatureCertificate [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x05, 0x06}; -//2.16.840.1.101.2.1.5.7 SDN.700 INFOSEC attributes (superseded) fortezzaCASignatureCertificate -static const unsigned char cvOID_fortezzaCASignatureCertificate [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x05, 0x07}; -//2.16.840.1.101.2.1.5.8 SDN.700 INFOSEC attributes (superseded) sdnsCASignatureCertificate -static const unsigned char cvOID_sdnsCASignatureCertificate [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x05, 0x08}; -//2.16.840.1.101.2.1.5.10 SDN.700 INFOSEC attributes (superseded) auxiliaryVector -static const unsigned char cvOID_auxiliaryVector [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x05, 0x0A}; -//2.16.840.1.101.2.1.5.11 SDN.700 INFOSEC attributes mlReceiptPolicy -static const unsigned char cvOID_mlReceiptPolicy [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x05, 0x0B}; -//2.16.840.1.101.2.1.5.12 SDN.700 INFOSEC attributes mlMembership -static const unsigned char cvOID_mlMembership [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x05, 0x0C}; -//2.16.840.1.101.2.1.5.13 SDN.700 INFOSEC attributes mlAdministrators -static const unsigned char cvOID_mlAdministrators [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x05, 0x0D}; -//2.16.840.1.101.2.1.5.14 SDN.700 INFOSEC attributes alid -static const unsigned char cvOID_alid [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x05, 0x0E}; -//2.16.840.1.101.2.1.5.20 SDN.700 INFOSEC attributes janUKMs -static const unsigned char cvOID_janUKMs [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x05, 0x14}; -//2.16.840.1.101.2.1.5.21 SDN.700 INFOSEC attributes febUKMs -static const unsigned char cvOID_febUKMs [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x05, 0x15}; -//2.16.840.1.101.2.1.5.22 SDN.700 INFOSEC attributes marUKMs -static const unsigned char cvOID_marUKMs [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x05, 0x16}; -//2.16.840.1.101.2.1.5.23 SDN.700 INFOSEC attributes aprUKMs -static const unsigned char cvOID_aprUKMs [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x05, 0x17}; -//2.16.840.1.101.2.1.5.24 SDN.700 INFOSEC attributes mayUKMs -static const unsigned char cvOID_mayUKMs [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x05, 0x18}; -//2.16.840.1.101.2.1.5.25 SDN.700 INFOSEC attributes junUKMs -static const unsigned char cvOID_junUKMs [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x05, 0x19}; -//2.16.840.1.101.2.1.5.26 SDN.700 INFOSEC attributes julUKMs -static const unsigned char cvOID_julUKMs [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x05, 0x1A}; -//2.16.840.1.101.2.1.5.27 SDN.700 INFOSEC attributes augUKMs -static const unsigned char cvOID_augUKMs [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x05, 0x1B}; -//2.16.840.1.101.2.1.5.28 SDN.700 INFOSEC attributes sepUKMs -static const unsigned char cvOID_sepUKMs [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x05, 0x1C}; -//2.16.840.1.101.2.1.5.29 SDN.700 INFOSEC attributes octUKMs -static const unsigned char cvOID_octUKMs [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x05, 0x1D}; -//2.16.840.1.101.2.1.5.30 SDN.700 INFOSEC attributes novUKMs -static const unsigned char cvOID_novUKMs [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x05, 0x1E}; -//2.16.840.1.101.2.1.5.21 SDN.700 INFOSEC attributes decUKMs -static const unsigned char cvOID_decUKMs [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x05, 0x1F}; -//2.16.840.1.101.2.1.5.40 SDN.700 INFOSEC attributes metaSDNSckl -static const unsigned char cvOID_metaSDNSckl [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x05, 0x28}; -//2.16.840.1.101.2.1.5.41 SDN.700 INFOSEC attributes sdnsCKL -static const unsigned char cvOID_sdnsCKL [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x05, 0x29}; -//2.16.840.1.101.2.1.5.42 SDN.700 INFOSEC attributes metaSDNSsignatureCKL -static const unsigned char cvOID_metaSDNSsignatureCKL [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x05, 0x2A}; -//2.16.840.1.101.2.1.5.43 SDN.700 INFOSEC attributes sdnsSignatureCKL -static const unsigned char cvOID_sdnsSignatureCKL [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x05, 0x2B}; -//2.16.840.1.101.2.1.5.44 SDN.700 INFOSEC attributes sdnsCertificateRevocationList -static const unsigned char cvOID_sdnsCertificateRevocationList [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x05, 0x2C}; -//2.16.840.1.101.2.1.5.45 SDN.700 INFOSEC attributes (superseded) fortezzaCertificateRevocationList -static const unsigned char cvOID_fortezzaCertificateRevocationList [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x05, 0x2D}; -//2.16.840.1.101.2.1.5.46 SDN.700 INFOSEC attributes fortezzaCKL -static const unsigned char cvOID_fortezzaCKL [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x05, 0x2E}; -//2.16.840.1.101.2.1.5.47 SDN.700 INFOSEC attributes alExemptedAddressProcessor -static const unsigned char cvOID_alExemptedAddressProcessor [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x05, 0x2F}; -//2.16.840.1.101.2.1.5.48 SDN.700 INFOSEC attributes (obsolete) guard -static const unsigned char cvOID_guard [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x05, 0x30}; -//2.16.840.1.101.2.1.5.49 SDN.700 INFOSEC attributes (obsolete) algorithmsSupported -static const unsigned char cvOID_algorithmsSupported [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x05, 0x31}; -//2.16.840.1.101.2.1.5.50 SDN.700 INFOSEC attributes (obsolete) suiteAKeyManagementCertificate -static const unsigned char cvOID_suiteAKeyManagementCertificate [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x05, 0x32}; -//2.16.840.1.101.2.1.5.51 SDN.700 INFOSEC attributes (obsolete) suiteAKMandSigCertificate -static const unsigned char cvOID_suiteAKMandSigCertificate [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x05, 0x33}; -//2.16.840.1.101.2.1.5.52 SDN.700 INFOSEC attributes (obsolete) suiteAUserSignatureCertificate -static const unsigned char cvOID_suiteAUserSignatureCertificate [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x05, 0x34}; -//2.16.840.1.101.2.1.5.53 SDN.700 INFOSEC attributes prbacInfo -static const unsigned char cvOID_prbacInfo [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x05, 0x35}; -//2.16.840.1.101.2.1.5.54 SDN.700 INFOSEC attributes prbacCAstatic constraints -static const unsigned char cvOID_prbacCAconstraints [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x05, 0x36}; -//2.16.840.1.101.2.1.5.55 SDN.700 INFOSEC attributes sigOrKMPrivileges -static const unsigned char cvOID_sigOrKMPrivileges [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x05, 0x37}; -//2.16.840.1.101.2.1.5.56 SDN.700 INFOSEC attributes commPrivileges -static const unsigned char cvOID_commPrivileges [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x05, 0x38}; -//2.16.840.1.101.2.1.5.57 SDN.700 INFOSEC attributes labeledAttribute -static const unsigned char cvOID_labeledAttribute [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x05, 0x39}; -//2.16.840.1.101.2.1.5.58 SDN.700 INFOSEC attributes (obsolete) policyInformationFile -static const unsigned char cvOID_policyInformationFile [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x05, 0x3A}; -//2.16.840.1.101.2.1.5.59 SDN.700 INFOSEC attributes secPolicyInformationFile -static const unsigned char cvOID_secPolicyInformationFile [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x05, 0x3B}; -//2.16.840.1.101.2.1.5.60 SDN.700 INFOSEC attributes cAClearancestatic constraint -static const unsigned char cvOID_cAClearanceconstraint [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x05, 0x3C}; -//2.16.840.1.101.2.1.7.1 SDN.700 INFOSEC extensions cspExtns -static const unsigned char cvOID_cspExtns [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x07, 0x01}; -//2.16.840.1.101.2.1.7.1.0 SDN.700 INFOSEC extensions cspCsExtn -static const unsigned char cvOID_cspCsExtn [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x07, 0x01, 0x00}; -//2.16.840.1.101.2.1.8.1 SDN.700 INFOSEC security category mISSISecurityCategories -static const unsigned char cvOID_mISSISecurityCategories [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x08, 0x01}; -//2.16.840.1.101.2.1.8.2 SDN.700 INFOSEC security category standardSecurityLabelPrivileges -static const unsigned char cvOID_standardSecurityLabelPrivileges [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x08, 0x02}; -//2.16.840.1.101.2.1.10.1 SDN.700 INFOSEC privileges sigPrivileges -static const unsigned char cvOID_sigPrivileges [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x0A, 0x01}; -//2.16.840.1.101.2.1.10.2 SDN.700 INFOSEC privileges kmPrivileges -static const unsigned char cvOID_kmPrivileges [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x0A, 0x02}; -//2.16.840.1.101.2.1.10.3 SDN.700 INFOSEC privileges namedTagSetPrivilege -static const unsigned char cvOID_namedTagSetPrivilege [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x0A, 0x03}; -//2.16.840.1.101.2.1.11.1 SDN.700 INFOSEC certificate policy ukDemo -static const unsigned char cvOID_ukDemo [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x0B, 0x01}; -//2.16.840.1.101.2.1.11.2 SDN.700 INFOSEC certificate policy usDODClass2 -static const unsigned char cvOID_usDODClass2 [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x0B, 0x02}; -//2.16.840.1.101.2.1.11.3 SDN.700 INFOSEC certificate policy usMediumPilot -static const unsigned char cvOID_usMediumPilot [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x0B, 0x03}; -//2.16.840.1.101.2.1.11.4 SDN.700 INFOSEC certificate policy usDODClass4 -static const unsigned char cvOID_usDODClass4 [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x0B, 0x04}; -//2.16.840.1.101.2.1.11.5 SDN.700 INFOSEC certificate policy usDODClass3 -static const unsigned char cvOID_usDODClass3 [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x0B, 0x05}; -//2.16.840.1.101.2.1.11.6 SDN.700 INFOSEC certificate policy usDODClass5 -static const unsigned char cvOID_usDODClass5 [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x0B, 0x06}; -//2.16.840.1.101.2.1.12.0 SDN.700 INFOSEC test objects testSecurityPolicy -static const unsigned char cvOID_testSecurityPolicy [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x0C, 0x00}; -//2.16.840.1.101.2.1.12.0.1 SDN.700 INFOSEC test objects tsp1 -static const unsigned char cvOID_tsp1 [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x0C, 0x00, 0x01}; -//2.16.840.1.101.2.1.12.0.1.0 SDN.700 INFOSEC test objects tsp1SecurityCategories -static const unsigned char cvOID_tsp1SecurityCategories [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x0C, 0x00, 0x01, 0x00}; -//2.16.840.1.101.2.1.12.0.1.0.0 SDN.700 INFOSEC test objects tsp1TagSetZero -static const unsigned char cvOID_tsp1TagSetZero [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x0C, 0x00, 0x01, 0x00, 0x00}; -//2.16.840.1.101.2.1.12.0.1.0.1 SDN.700 INFOSEC test objects tsp1TagSetOne -static const unsigned char cvOID_tsp1TagSetOne [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x0C, 0x00, 0x01, 0x00, 0x01}; -//2.16.840.1.101.2.1.12.0.1.0.2 SDN.700 INFOSEC test objects tsp1TagSetTwo -static const unsigned char cvOID_tsp1TagSetTwo [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x0C, 0x00, 0x01, 0x00, 0x02}; -//2.16.840.1.101.2.1.12.0.2 SDN.700 INFOSEC test objects tsp2 -static const unsigned char cvOID_tsp2 [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x0C, 0x00, 0x02}; -//2.16.840.1.101.2.1.12.0.2.0 SDN.700 INFOSEC test objects tsp2SecurityCategories -static const unsigned char cvOID_tsp2SecurityCategories [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x0C, 0x00, 0x02, 0x00}; -//2.16.840.1.101.2.1.12.0.2.0.0 SDN.700 INFOSEC test objects tsp2TagSetZero -static const unsigned char cvOID_tsp2TagSetZero [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x0C, 0x00, 0x02, 0x00, 0x00}; -//2.16.840.1.101.2.1.12.0.2.0.1 SDN.700 INFOSEC test objects tsp2TagSetOne -static const unsigned char cvOID_tsp2TagSetOne [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x0C, 0x00, 0x02, 0x00, 0x01}; -//2.16.840.1.101.2.1.12.0.2.0.2 SDN.700 INFOSEC test objects tsp2TagSetTwo -static const unsigned char cvOID_tsp2TagSetTwo [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x0C, 0x00, 0x02, 0x00, 0x02}; -//2.16.840.1.101.2.1.12.0.3 SDN.700 INFOSEC test objects kafka -static const unsigned char cvOID_kafka [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x0C, 0x00, 0x03}; -//2.16.840.1.101.2.1.12.0.3.0 SDN.700 INFOSEC test objects kafkaSecurityCategories -static const unsigned char cvOID_kafkaSecurityCategories [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x0C, 0x00, 0x03, 0x00}; -//2.16.840.1.101.2.1.12.0.3.0.1 SDN.700 INFOSEC test objects kafkaTagSetName1 -static const unsigned char cvOID_kafkaTagSetName1 [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x0C, 0x00, 0x03, 0x00, 0x01}; -//2.16.840.1.101.2.1.12.0.3.0.2 SDN.700 INFOSEC test objects kafkaTagSetName2 -static const unsigned char cvOID_kafkaTagSetName2 [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x0C, 0x00, 0x03, 0x00, 0x02}; -//2.16.840.1.101.2.1.12.0.3.0.3 SDN.700 INFOSEC test objects kafkaTagSetName3 -static const unsigned char cvOID_kafkaTagSetName3 [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x0C, 0x00, 0x03, 0x00, 0x03}; -//2.16.840.1.101.2.1.12.1.1 SDN.700 INFOSEC test objects tcp1 -static const unsigned char cvOID_tcp1 [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x0C, 0x01, 0x01}; -//2.16.840.1.101.3.1 CSOR GAK slabel -static const unsigned char cvOID_slabel [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x03, 0x01}; -//2.16.840.1.101.3.2 CSOR GAK pki -static const unsigned char cvOID_pki [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x03, 0x02}; -//2.16.840.1.101.3.2.1 CSOR GAK policy GAK policyIdentifier -static const unsigned char cvOID_GAK_policyIdentifier [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x03, 0x02, 0x01}; -//2.16.840.1.101.3.2.2 CSOR GAK extended key usage GAK -static const unsigned char cvOID_GAK [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x03, 0x02, 0x02}; -//2.16.840.1.101.3.2.2.1 CSOR GAK extended key usage kRAKey -static const unsigned char cvOID_kRAKey [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x03, 0x02, 0x02, 0x01}; -//2.16.840.1.101.3.2.3 CSOR GAK extensions extensions -static const unsigned char cvOID_extensions [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x03, 0x02, 0x03}; -//2.16.840.1.101.3.2.3.1 CSOR GAK extensions kRTechnique -static const unsigned char cvOID_kRTechnique [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x03, 0x02, 0x03, 0x01}; -//2.16.840.1.101.3.2.3.2 CSOR GAK extensions kRecoveryCapable -static const unsigned char cvOID_kRecoveryCapable [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x03, 0x02, 0x03, 0x02}; -//2.16.840.1.101.3.2.3.3 CSOR GAK extensions kR -static const unsigned char cvOID_kR [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x03, 0x02, 0x03, 0x03}; -//2.16.840.1.101.3.2.4 CSOR GAK keyrecoveryschemes -static const unsigned char cvOID_keyrecoveryschemes [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x03, 0x02, 0x04}; -//2.16.840.1.101.3.2.5 CSOR GAK krapola -static const unsigned char cvOID_krapola [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x03, 0x02, 0x05}; -//2.16.840.1.101.3.3 CSOR GAK arpa -static const unsigned char cvOID_arpa [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x03, 0x03}; -//2.16.840.1.113719.1.9 Novell pki -static const unsigned char cvOID_pki_Novell [] = { 0x60, 0x86, 0x48, 0x01, 0x86, 0xF8, 0x37, 0x01, 0x09}; -//2.16.840.1.113719.1.9.4 Novell PKI pkiAttributeType -static const unsigned char cvOID_pkiAttributeType [] = { 0x60, 0x86, 0x48, 0x01, 0x86, 0xF8, 0x37, 0x01, 0x09, 0x04}; -//2.16.840.1.113719.1.9.4.1 Novell PKI attribute type registeredAttributes -static const unsigned char cvOID_registeredAttributes [] = { 0x60, 0x86, 0x48, 0x01, 0x86, 0xF8, 0x37, 0x01, 0x09, 0x04, 0x01}; -//2.16.840.1.113719.1.9.4.2 Novell PKI attribute type relianceLimit -static const unsigned char cvOID_relianceLimit [] = { 0x60, 0x86, 0x48, 0x01, 0x86, 0xF8, 0x37, 0x01, 0x09, 0x04, 0x02}; -//2.16.840.1.113730.1 Netscape cert-extension -static const unsigned char cvOID_cert_extension [] = { 0x60, 0x86, 0x48, 0x01, 0x86, 0xF8, 0x42, 0x01}; -//2.16.840.1.113730.1.1 Netscape certificate extension netscape-cert-type -static const unsigned char cvOID_netscape_cert_type [] = { 0x60, 0x86, 0x48, 0x01, 0x86, 0xF8, 0x42, 0x01, 0x01}; -//2.16.840.1.113730.1.2 Netscape certificate extension netscape-base-url -static const unsigned char cvOID_netscape_base_url [] = { 0x60, 0x86, 0x48, 0x01, 0x86, 0xF8, 0x42, 0x01, 0x02}; -//2.16.840.1.113730.1.3 Netscape certificate extension netscape-revocation-url -static const unsigned char cvOID_netscape_revocation_url [] = { 0x60, 0x86, 0x48, 0x01, 0x86, 0xF8, 0x42, 0x01, 0x03}; -//2.16.840.1.113730.1.4 Netscape certificate extension netscape-ca-revocation-url -static const unsigned char cvOID_netscape_ca_revocation_url [] = { 0x60, 0x86, 0x48, 0x01, 0x86, 0xF8, 0x42, 0x01, 0x04}; -//2.16.840.1.113730.1.7 Netscape certificate extension netscape-cert-renewal-url -static const unsigned char cvOID_netscape_cert_renewal_url [] = { 0x60, 0x86, 0x48, 0x01, 0x86, 0xF8, 0x42, 0x01, 0x07}; -//2.16.840.1.113730.1.8 Netscape certificate extension netscape-ca-policy-url -static const unsigned char cvOID_netscape_ca_policy_url [] = { 0x60, 0x86, 0x48, 0x01, 0x86, 0xF8, 0x42, 0x01, 0x08}; -//2.16.840.1.113730.1.9 Netscape certificate extension HomePage-url -static const unsigned char cvOID_HomePage_url [] = { 0x60, 0x86, 0x48, 0x01, 0x86, 0xF8, 0x42, 0x01, 0x09}; -//2.16.840.1.113730.1.10 Netscape certificate extension EntityLogo -static const unsigned char cvOID_EntityLogo [] = { 0x60, 0x86, 0x48, 0x01, 0x86, 0xF8, 0x42, 0x01, 0x0A}; -//2.16.840.1.113730.1.11 Netscape certificate extension UserPicture -static const unsigned char cvOID_UserPicture [] = { 0x60, 0x86, 0x48, 0x01, 0x86, 0xF8, 0x42, 0x01, 0x0B}; -//2.16.840.1.113730.1.12 Netscape certificate extension netscape-ssl-server-name -static const unsigned char cvOID_netscape_ssl_server_name [] = { 0x60, 0x86, 0x48, 0x01, 0x86, 0xF8, 0x42, 0x01, 0x0C}; -//2.16.840.1.113730.1.13 Netscape certificate extension netscape-comment -static const unsigned char cvOID_netscape_comment [] = { 0x60, 0x86, 0x48, 0x01, 0x86, 0xF8, 0x42, 0x01, 0x0D}; -//2.16.840.1.113730.2 Netscape data-type -static const unsigned char cvOID_data_type [] = { 0x60, 0x86, 0x48, 0x01, 0x86, 0xF8, 0x42, 0x02}; -//2.16.840.1.113730.2.1 Netscape data type dataGIF -static const unsigned char cvOID_dataGIF [] = { 0x60, 0x86, 0x48, 0x01, 0x86, 0xF8, 0x42, 0x02, 0x01}; -//2.16.840.1.113730.2.2 Netscape data type dataJPEG -static const unsigned char cvOID_dataJPEG [] = { 0x60, 0x86, 0x48, 0x01, 0x86, 0xF8, 0x42, 0x02, 0x02}; -//2.16.840.1.113730.2.3 Netscape data type dataURL -static const unsigned char cvOID_dataURL [] = { 0x60, 0x86, 0x48, 0x01, 0x86, 0xF8, 0x42, 0x02, 0x03}; -//2.16.840.1.113730.2.4 Netscape data type dataHTML -static const unsigned char cvOID_dataHTML [] = { 0x60, 0x86, 0x48, 0x01, 0x86, 0xF8, 0x42, 0x02, 0x04}; -//2.16.840.1.113730.2.5 Netscape data type certSequence -static const unsigned char cvOID_certSequence [] = { 0x60, 0x86, 0x48, 0x01, 0x86, 0xF8, 0x42, 0x02, 0x05}; -//2.16.840.1.113730.2.6 Netscape certificate extension certURL -static const unsigned char cvOID_certURL [] = { 0x60, 0x86, 0x48, 0x01, 0x86, 0xF8, 0x42, 0x02, 0x06}; -//2.16.840.1.113730.3 Netscape directory -static const unsigned char cvOID_directory [] = { 0x60, 0x86, 0x48, 0x01, 0x86, 0xF8, 0x42, 0x03}; -//2.16.840.1.113730.3.1 Netscape directory ldapDefinitions -static const unsigned char cvOID_ldapDefinitions [] = { 0x60, 0x86, 0x48, 0x01, 0x86, 0xF8, 0x42, 0x03, 0x01}; -//2.16.840.1.113730.3.1.1 Netscape LDAP definitions carLicense -static const unsigned char cvOID_carLicense [] = { 0x60, 0x86, 0x48, 0x01, 0x86, 0xF8, 0x42, 0x03, 0x01, 0x01}; -//2.16.840.1.113730.3.1.2 Netscape LDAP definitions departmentNumber -static const unsigned char cvOID_departmentNumber [] = { 0x60, 0x86, 0x48, 0x01, 0x86, 0xF8, 0x42, 0x03, 0x01, 0x02}; -//2.16.840.1.113730.3.1.3 Netscape LDAP definitions employeeNumber -static const unsigned char cvOID_employeeNumber [] = { 0x60, 0x86, 0x48, 0x01, 0x86, 0xF8, 0x42, 0x03, 0x01, 0x03}; -//2.16.840.1.113730.3.1.4 Netscape LDAP definitions employeeType -static const unsigned char cvOID_employeeType [] = { 0x60, 0x86, 0x48, 0x01, 0x86, 0xF8, 0x42, 0x03, 0x01, 0x04}; -//2.16.840.1.113730.3.2.2 Netscape LDAP definitions inetOrgPerson -static const unsigned char cvOID_inetOrgPerson [] = { 0x60, 0x86, 0x48, 0x01, 0x86, 0xF8, 0x42, 0x03, 0x02, 0x02}; -//2.16.840.1.113730.4.1 Netscape serverGatedCrypto -static const unsigned char cvOID_serverGatedCrypto_Netscape [] = { 0x60, 0x86, 0x48, 0x01, 0x86, 0xF8, 0x42, 0x04, 0x01}; -//2.16.840.1.113733.1.6.3 Verisign Unknown Verisign extension -static const unsigned char cvOID_Unknown_Verisign_extension_1 [] = { 0x60, 0x86, 0x48, 0x01, 0x86, 0xF8, 0x45, 0x01, 0x06, 0x03}; -//2.16.840.1.113733.1.6.6 Verisign Unknown Verisign extension -static const unsigned char cvOID_Unknown_Verisign_extension_2 [] = { 0x60, 0x86, 0x48, 0x01, 0x86, 0xF8, 0x45, 0x01, 0x06, 0x06}; -//2.16.840.1.113733.1.7.1.1 Verisign Verisign certificatePolicy -static const unsigned char cvOID_Verisign_certificatePolicy [] = { 0x60, 0x86, 0x48, 0x01, 0x86, 0xF8, 0x45, 0x01, 0x07, 0x01, 0x01}; -//2.16.840.1.113733.1.7.1.1.1 Verisign Unknown Verisign policy qualifier -static const unsigned char cvOID_Unknown_Verisign_policy_qualifier_1 [] = { 0x60, 0x86, 0x48, 0x01, 0x86, 0xF8, 0x45, 0x01, 0x07, 0x01, 0x01, 0x01}; -//2.16.840.1.113733.1.7.1.1.2 Verisign Unknown Verisign policy qualifier -static const unsigned char cvOID_Unknown_Verisign_policy_qualifier_2 [] = { 0x60, 0x86, 0x48, 0x01, 0x86, 0xF8, 0x45, 0x01, 0x07, 0x01, 0x01, 0x02}; -//2.16.840.1.113733.1.8.1 Verisign Verisign SGC CA? -static const unsigned char cvOID_Verisign_SGC_CA [] = { 0x60, 0x86, 0x48, 0x01, 0x86, 0xF8, 0x45, 0x01, 0x08, 0x01}; -//2.23.42.0 SET contentType -static const unsigned char cvOID_contentType_SET [] = { 0x67, 0x2A, 0x00}; -//2.23.42.0.0 SET contentType PANData -static const unsigned char cvOID_PANData [] = { 0x67, 0x2A, 0x00, 0x00}; -//2.23.42.0.1 SET contentType PANToken -static const unsigned char cvOID_PANToken [] = { 0x67, 0x2A, 0x00, 0x01}; -//2.23.42.0.2 SET contentType PANOnly -static const unsigned char cvOID_PANOnly [] = { 0x67, 0x2A, 0x00, 0x02}; -//2.23.42.1 SET msgExt -static const unsigned char cvOID_msgExt [] = { 0x67, 0x2A, 0x01}; -//2.23.42.2 SET field -static const unsigned char cvOID_field [] = { 0x67, 0x2A, 0x02}; -//2.23.42.2.0 SET field fullName -static const unsigned char cvOID_fullName [] = { 0x67, 0x2A, 0x02, 0x00}; -//2.23.42.2.1 SET field givenName -static const unsigned char cvOID_givenName_SET [] = { 0x67, 0x2A, 0x02, 0x01}; -//2.23.42.2.2 SET field familyName -static const unsigned char cvOID_familyName [] = { 0x67, 0x2A, 0x02, 0x02}; -//2.23.42.2.3 SET field birthFamilyName -static const unsigned char cvOID_birthFamilyName [] = { 0x67, 0x2A, 0x02, 0x03}; -//2.23.42.2.4 SET field placeName -static const unsigned char cvOID_placeName [] = { 0x67, 0x2A, 0x02, 0x04}; -//2.23.42.2.5 SET field identificationNumber -static const unsigned char cvOID_identificationNumber [] = { 0x67, 0x2A, 0x02, 0x05}; -//2.23.42.2.6 SET field month -static const unsigned char cvOID_month [] = { 0x67, 0x2A, 0x02, 0x06}; -//2.23.42.2.7 SET field date -static const unsigned char cvOID_date [] = { 0x67, 0x2A, 0x02, 0x07}; -//2.23.42.2.8 SET field address -static const unsigned char cvOID_address [] = { 0x67, 0x2A, 0x02, 0x08}; -//2.23.42.2.9 SET field telephone -static const unsigned char cvOID_telephone [] = { 0x67, 0x2A, 0x02, 0x09}; -//2.23.42.2.10 SET field amount -static const unsigned char cvOID_amount [] = { 0x67, 0x2A, 0x02, 0x0A}; -//2.23.42.2.7.11 SET field accountNumber -static const unsigned char cvOID_accountNumber [] = { 0x67, 0x2A, 0x02, 0x0B}; -//2.23.42.2.7.12 SET field passPhrase -static const unsigned char cvOID_passPhrase [] = { 0x67, 0x2A, 0x02, 0x0C}; -//2.23.42.3 SET attribute -static const unsigned char cvOID_attribute_SET [] = { 0x67, 0x2A, 0x03}; -//2.23.42.3.0 SET attribute cert -static const unsigned char cvOID_cert_SET [] = { 0x67, 0x2A, 0x03, 0x00}; -//2.23.42.3.0.0 SET cert attribute rootKeyThumb -static const unsigned char cvOID_rootKeyThumb [] = { 0x67, 0x2A, 0x03, 0x00, 0x00}; -//2.23.42.3.0.1 SET cert attribute additionalPolicy -static const unsigned char cvOID_additionalPolicy [] = { 0x67, 0x2A, 0x03, 0x00, 0x01}; -//2.23.42.4 SET algorithm -static const unsigned char cvOID_algorithm_SET [] = { 0x67, 0x2A, 0x04}; -//2.23.42.5 SET policy -static const unsigned char cvOID_policy_SET [] = { 0x67, 0x2A, 0x05}; -//2.23.42.5.0 SET policy root -static const unsigned char cvOID_root [] = { 0x67, 0x2A, 0x05, 0x00}; -//2.23.42.6 SET module -static const unsigned char cvOID_module_SET [] = { 0x67, 0x2A, 0x06}; -//2.23.42.7 SET certExt -static const unsigned char cvOID_certExt [] = { 0x67, 0x2A, 0x07}; -//2.23.42.7.0 SET cert extension hashedRootKey -static const unsigned char cvOID_hashedRootKey [] = { 0x67, 0x2A, 0x07, 0x00}; -//2.23.42.7.1 SET cert extension certificateType -static const unsigned char cvOID_certificateType_SET [] = { 0x67, 0x2A, 0x07, 0x01}; -//2.23.42.7.2 SET cert extension merchantData -static const unsigned char cvOID_merchantData [] = { 0x67, 0x2A, 0x07, 0x02}; -//2.23.42.7.3 SET cert extension cardCertRequired -static const unsigned char cvOID_cardCertRequired [] = { 0x67, 0x2A, 0x07, 0x03}; -//2.23.42.7.4 SET cert extension tunneling -static const unsigned char cvOID_tunneling [] = { 0x67, 0x2A, 0x07, 0x04}; -//2.23.42.7.5 SET cert extension setExtensions -static const unsigned char cvOID_setExtensions [] = { 0x67, 0x2A, 0x07, 0x05}; -//2.23.42.7.6 SET cert extension setQualifier -static const unsigned char cvOID_setQualifier [] = { 0x67, 0x2A, 0x07, 0x06}; -//2.23.42.8 SET brand -static const unsigned char cvOID_brand [] = { 0x67, 0x2A, 0x08}; -//2.23.42.8.1 SET brand IATA-ATA -static const unsigned char cvOID_IATA_ATA [] = { 0x67, 0x2A, 0x08, 0x01}; -//2.23.42.8.4 SET brand VISA -static const unsigned char cvOID_VISA [] = { 0x67, 0x2A, 0x08, 0x04}; -//2.23.42.8.5 SET brand MasterCard -static const unsigned char cvOID_MasterCard [] = { 0x67, 0x2A, 0x08, 0x05}; -//2.23.42.8.30 SET brand Diners -static const unsigned char cvOID_Diners [] = { 0x67, 0x2A, 0x08, 0x1E}; -//2.23.42.8.34 SET brand AmericanExpress -static const unsigned char cvOID_AmericanExpress [] = { 0x67, 0x2A, 0x08, 0x22}; -//2.23.42.8.6011 SET brand Novus -static const unsigned char cvOID_Novus [] = { 0x67, 0x2A, 0x08, 0xAE, 0x7B}; -//2.23.42.9 SET vendor -static const unsigned char cvOID_vendor [] = { 0x67, 0x2A, 0x09}; -//2.23.42.9.0 SET vendor GlobeSet -static const unsigned char cvOID_GlobeSet [] = { 0x67, 0x2A, 0x09, 0x00}; -//2.23.42.9.1 SET vendor IBM -static const unsigned char cvOID_IBM [] = { 0x67, 0x2A, 0x09, 0x01}; -//2.23.42.9.2 SET vendor CyberCash -static const unsigned char cvOID_CyberCash [] = { 0x67, 0x2A, 0x09, 0x02}; -//2.23.42.9.3 SET vendor Terisa -static const unsigned char cvOID_Terisa [] = { 0x67, 0x2A, 0x09, 0x03}; -//2.23.42.9.4 SET vendor RSADSI -static const unsigned char cvOID_RSADSI [] = { 0x67, 0x2A, 0x09, 0x04}; -//2.23.42.9.5 SET vendor VeriFone -static const unsigned char cvOID_VeriFone [] = { 0x67, 0x2A, 0x09, 0x05}; -//2.23.42.9.6 SET vendor TrinTech -static const unsigned char cvOID_TrinTech [] = { 0x67, 0x2A, 0x09, 0x06}; -//2.23.42.9.7 SET vendor BankGate -static const unsigned char cvOID_BankGate [] = { 0x67, 0x2A, 0x09, 0x07}; -//2.23.42.9.8 SET vendor GTE -static const unsigned char cvOID_GTE [] = { 0x67, 0x2A, 0x09, 0x08}; -//2.23.42.9.9 SET vendor CompuSource -static const unsigned char cvOID_CompuSource [] = { 0x67, 0x2A, 0x09, 0x09}; -//2.23.42.9.10 SET vendor Griffin -static const unsigned char cvOID_Griffin [] = { 0x67, 0x2A, 0x09, 0x0A}; -//2.23.42.9.11 SET vendor Certicom -static const unsigned char cvOID_Certicom [] = { 0x67, 0x2A, 0x09, 0x0B}; -//2.23.42.9.12 SET vendor OSS -static const unsigned char cvOID_OSS [] = { 0x67, 0x2A, 0x09, 0x0C}; -//2.23.42.9.13 SET vendor TenthMountain -static const unsigned char cvOID_TenthMountain [] = { 0x67, 0x2A, 0x09, 0x0D}; -//2.23.42.9.14 SET vendor Antares -static const unsigned char cvOID_Antares [] = { 0x67, 0x2A, 0x09, 0x0E}; -//2.23.42.9.15 SET vendor ECC -static const unsigned char cvOID_ECC [] = { 0x67, 0x2A, 0x09, 0x0F}; -//2.23.42.9.16 SET vendor Maithean -static const unsigned char cvOID_Maithean [] = { 0x67, 0x2A, 0x09, 0x10}; -//2.23.42.9.17 SET vendor Netscape -static const unsigned char cvOID_Netscape [] = { 0x67, 0x2A, 0x09, 0x11}; -//2.23.42.9.18 SET vendor Verisign -static const unsigned char cvOID_Verisign [] = { 0x67, 0x2A, 0x09, 0x12}; -//2.23.42.9.19 SET vendor BlueMoney -static const unsigned char cvOID_BlueMoney [] = { 0x67, 0x2A, 0x09, 0x13}; -//2.23.42.9.20 SET vendor Lacerte -static const unsigned char cvOID_Lacerte [] = { 0x67, 0x2A, 0x09, 0x14}; -//2.23.42.9.21 SET vendor Fujitsu -static const unsigned char cvOID_Fujitsu [] = { 0x67, 0x2A, 0x09, 0x15}; -//2.23.42.9.22 SET vendor eLab -static const unsigned char cvOID_eLab [] = { 0x67, 0x2A, 0x09, 0x16}; -//2.23.42.9.23 SET vendor Entrust -static const unsigned char cvOID_Entrust [] = { 0x67, 0x2A, 0x09, 0x17}; -//2.23.42.9.24 SET vendor VIAnet -static const unsigned char cvOID_VIAnet [] = { 0x67, 0x2A, 0x09, 0x18}; -//2.23.42.9.25 SET vendor III -static const unsigned char cvOID_III [] = { 0x67, 0x2A, 0x09, 0x19}; -//2.23.42.9.26 SET vendor OpenMarket -static const unsigned char cvOID_OpenMarket [] = { 0x67, 0x2A, 0x09, 0x1A}; -//2.23.42.9.27 SET vendor Lexem -static const unsigned char cvOID_Lexem [] = { 0x67, 0x2A, 0x09, 0x1B}; -//2.23.42.9.28 SET vendor Intertrader -static const unsigned char cvOID_Intertrader [] = { 0x67, 0x2A, 0x09, 0x1C}; -//2.23.42.9.29 SET vendor Persimmon -static const unsigned char cvOID_Persimmon [] = { 0x67, 0x2A, 0x09, 0x1D}; -//2.23.42.9.30 SET vendor NABLE -static const unsigned char cvOID_NABLE [] = { 0x67, 0x2A, 0x09, 0x1E}; -//2.23.42.9.31 SET vendor espace-net -static const unsigned char cvOID_espace_net [] = { 0x67, 0x2A, 0x09, 0x1F}; -//2.23.42.9.32 SET vendor Hitachi -static const unsigned char cvOID_Hitachi [] = { 0x67, 0x2A, 0x09, 0x20}; -//2.23.42.9.33 SET vendor Microsoft -static const unsigned char cvOID_Microsoft [] = { 0x67, 0x2A, 0x09, 0x21}; -//2.23.42.9.34 SET vendor NEC -static const unsigned char cvOID_NEC [] = { 0x67, 0x2A, 0x09, 0x22}; -//2.23.42.9.35 SET vendor Mitsubishi -static const unsigned char cvOID_Mitsubishi [] = { 0x67, 0x2A, 0x09, 0x23}; -//2.23.42.9.36 SET vendor NCR -static const unsigned char cvOID_NCR [] = { 0x67, 0x2A, 0x09, 0x24}; -//2.23.42.9.37 SET vendor e-COMM -static const unsigned char cvOID_e_COMM [] = { 0x67, 0x2A, 0x09, 0x25}; -//2.23.42.9.38 SET vendor Gemplus -static const unsigned char cvOID_Gemplus [] = { 0x67, 0x2A, 0x09, 0x26}; -//2.23.42.10 SET national -static const unsigned char cvOID_national [] = { 0x67, 0x2A, 0x0A}; -//2.23.42.10.192 SET national Japan -static const unsigned char cvOID_Japan [] = { 0x67, 0x2A, 0x0A, 0x81, 0x40}; -//2.54.1775.2 SET. Deprecated, use (2 23 42 7 0) instead hashedRootKey -static const unsigned char cvOID_hashedRootKey_old [] = { 0x86, 0x8D, 0x6F, 0x02}; -//2.54.1775.3 SET. Deprecated, use (2 23 42 7 0) instead certificateType -static const unsigned char cvOID_certificateType_old [] = { 0x86, 0x8D, 0x6F, 0x03}; -//2.54.1775.4 SET. Deprecated, use (2 23 42 7 0) instead merchantData -static const unsigned char cvOID_merchantData_old [] = { 0x86, 0x8D, 0x6F, 0x04}; -//2.54.1775.5 SET. Deprecated, use (2 23 42 7 0) instead cardCertRequired -static const unsigned char cvOID_cardCertRequired_old [] = { 0x86, 0x8D, 0x6F, 0x05}; -//2.54.1775.6 SET. Deprecated, use (2 23 42 7 0) instead tunneling -static const unsigned char cvOID_tunneling_old [] = { 0x86, 0x8D, 0x6F, 0x06}; -//2.54.1775.7 SET. Deprecated, use (2 23 42 7 0) instead setQualifier -static const unsigned char cvOID_setQualifier_old [] = { 0x86, 0x8D, 0x6F, 0x07}; -//2.54.1775.99 SET. Deprecated, use (2 23 42 7 0) instead set-data -static const unsigned char cvOID_set_data_old [] = { 0x86, 0x8D, 0x6F, 0x63}; - -#ifdef _MSC_VER -#pragma warning(default : 4305) -#pragma warning(default : 4309) -#endif - -#endif - diff --git a/actlibrary/MacOSX-10.6-x86_64/Release/include/actPKCS15BehaviorKit.h b/actlibrary/MacOSX-10.6-x86_64/Release/include/actPKCS15BehaviorKit.h deleted file mode 100644 index cdac8da..0000000 --- a/actlibrary/MacOSX-10.6-x86_64/Release/include/actPKCS15BehaviorKit.h +++ /dev/null @@ -1,43 +0,0 @@ -// --------------------------------------------------------------------------- -// Name: actPKCS15BehaviorKit.h -// Product: cv act library -// Purpose: Factory functions to create specific PKCS15Behavior objects. -// -// Copyright: (c) 2008 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -// -// Autor: Markus Tesche -// Date: 06/02/2008 -// --------------------------------------------------------------------------- - -#ifndef ACT_PKCS15BehaviorKit_h -#define ACT_PKCS15BehaviorKit_h - -#include - -namespace act -{ - class IToken; - class IPKCS15Behavior; - - // default behavior, does nothing - IPKCS15Behavior* CreatePKCS15Behavior(const char* mid, IToken* token); - - // specialized behavior - IPKCS15Behavior* CreateSafeSignBehavior(const char* mid, IToken* token); - IPKCS15Behavior* CreateStarSignBehavior(const char* mid, IToken* token); - IPKCS15Behavior* CreateJCPKCS15Behavior(const char* mid, IToken* token); - IPKCS15Behavior* CreateJCPKCS15mEACBehavior(const char* mid, IToken* token); - IPKCS15Behavior* CreateHiPathBehavior(const char* mid, IToken* token); - IPKCS15Behavior* CreateV4PKCS15Behavior(const char* mid, IToken* token); - IPKCS15Behavior* CreateACOSPKCS15Behavior(const char* mid, IToken* token); - IPKCS15Behavior* CreateStarCOSPKCS15Behavior(const char* mid, IToken* token); - IPKCS15Behavior* CreateNexusBehavior(const char* mid, IToken* token); - IPKCS15Behavior* CreateVWBehavior(const char* mid, IToken* token); // Nexus derived - IPKCS15Behavior* CreateDTRUSTBehavior(const char* mid, IToken* token); // Nexus derived - -} // namespace act - -#endif // ACT_PKCS15BehaviorKit_h diff --git a/actlibrary/MacOSX-10.6-x86_64/Release/include/actPaddingReg.h b/actlibrary/MacOSX-10.6-x86_64/Release/include/actPaddingReg.h deleted file mode 100644 index 4cad768..0000000 --- a/actlibrary/MacOSX-10.6-x86_64/Release/include/actPaddingReg.h +++ /dev/null @@ -1,41 +0,0 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actPaddingReg.h -// Product: cv act library -// Purpose: registry for the factory functions in actPaddingKit.h -// -// Copyright: (c) 2000 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_PaddingReg_h -#define ACT_PaddingReg_h - -namespace act -{ - class IPadding; - class Blob; - - typedef IPadding* (*CreatePaddingPtr)(); - - struct PaddingMapEntry - { - const char* Name; - CreatePaddingPtr CreatePtr; - }; - - class PaddingReg - { - public: - static IPadding* CreatePadding(const char* name); - static CreatePaddingPtr GetCreatePointer(const char* name); - static const char* GetName(void* createptr); - static const char* GetNextName(const char* name); - static void Insert(const char* name, CreatePaddingPtr createptr); - static void Insert(const PaddingMapEntry* paddingmap); - }; - -} // namespace act - -#endif // ACT_PaddingReg_h diff --git a/actlibrary/MacOSX-10.6-x86_64/Release/include/actProfileGeneratorReg.h b/actlibrary/MacOSX-10.6-x86_64/Release/include/actProfileGeneratorReg.h deleted file mode 100644 index 0a8f6be..0000000 --- a/actlibrary/MacOSX-10.6-x86_64/Release/include/actProfileGeneratorReg.h +++ /dev/null @@ -1,33 +0,0 @@ -// --------------------------------------------------------------------------- -// Name: actProfileGeneratorReg.h -// Product: cv act library -// Purpose: factory functions registry to create IProfileGenerator objects. -// -// Copyright: (c) 2009 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -// -// Autor: Markus Tesche -// Date: 12/18/2009 -// --------------------------------------------------------------------------- - -#ifndef ACT_ProfileGeneratorReg_h -#define ACT_ProfileGeneratorReg_h - -#include "actFactoryReg.h" - -namespace act -{ - class IProfileGenerator; - - typedef IProfileGenerator* (*CreateProfileGeneratorPtr)(const char*); - typedef FactoryMapEntry ProfileGeneratorMapEntry; - - typedef FactoryReg - < IProfileGenerator, CreateProfileGeneratorPtr, ProfileGeneratorMapEntry - > ProfileGeneratorReg; - -} // namespace act - -#endif // ACT_ProfileGeneratorReg_h diff --git a/actlibrary/MacOSX-10.6-x86_64/Release/include/actSCardLock.h b/actlibrary/MacOSX-10.6-x86_64/Release/include/actSCardLock.h deleted file mode 100644 index 3bc753e..0000000 --- a/actlibrary/MacOSX-10.6-x86_64/Release/include/actSCardLock.h +++ /dev/null @@ -1,51 +0,0 @@ -// --------------------------------------------------------------------------- -// Name: actSCardLock.h -// Product: cv act library -// Purpose: Smartcard transaction lock -// -// Copyright: (c) 2009 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -// -// Autor: Markus Tesche -// Date: 07/10/2009 -// --------------------------------------------------------------------------- - -#ifndef ACT_SCardLock_H -#define ACT_SCardLock_H - -#include "actEnv.h" - -#if defined(ACT_64) -# define LOCK_SIZE 32 -#else -# define LOCK_SIZE 16 -#endif - -namespace act -{ - class ISCardOS; - - class SCardLock - { - private: - SCardLock() { } - SCardLock(const SCardLock&) { } - - public: - SCardLock(ISCardOS* os); - ~SCardLock(); - - void Lock(ISCardOS* os); - void Unlock(); - - private: - byte m_lock[LOCK_SIZE]; - }; - -} // namespace act - -#undef LOCK_SIZE - -#endif // ACT_SCardLock_H diff --git a/actlibrary/MacOSX-10.6-x86_64/Release/include/actSCardOSReg.h b/actlibrary/MacOSX-10.6-x86_64/Release/include/actSCardOSReg.h deleted file mode 100644 index 4156615..0000000 --- a/actlibrary/MacOSX-10.6-x86_64/Release/include/actSCardOSReg.h +++ /dev/null @@ -1,46 +0,0 @@ -// --------------------------------------------------------------------------- -// Name: actSCardOSReg.h -// Product: cv act library -// Purpose: factory functions registry to create SCardOS objects. -// -// Copyright: (c) 2002 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -// -// Autor: Dr. Xiangdong Wang (XWG) -// Date: 04/09/2002 -// --------------------------------------------------------------------------- - -#ifndef ACT_SCardOSReg_h -#define ACT_SCardOSReg_h - -namespace act -{ -# define ACT_ISO7816OS_NAME "ISO7816OS" - - class ISCardOS; - class ISCardAccess; - - typedef ISCardOS* (*CreateSCardOSPtr)(ISCardAccess*); - - struct SCardOSMapEntry - { - const char* Name; - CreateSCardOSPtr CreatePtr; - }; - - class SCardOSReg - { - public: - static ISCardOS* CreateSCardOS(const char* name, ISCardAccess* ac); - static CreateSCardOSPtr GetCreatePointer(const char* name); - static const char* GetName(void* createptr); - static const char* GetNextName(const char* name); - static void Insert(const char* name, CreateSCardOSPtr createptr); - static void Insert(const SCardOSMapEntry* entry); - }; - -} // namespace act - -#endif // ACT_SCardOSReg_h diff --git a/actlibrary/MacOSX-10.6-x86_64/Release/include/actSCardUtil.h b/actlibrary/MacOSX-10.6-x86_64/Release/include/actSCardUtil.h deleted file mode 100644 index 2b890d0..0000000 --- a/actlibrary/MacOSX-10.6-x86_64/Release/include/actSCardUtil.h +++ /dev/null @@ -1,27 +0,0 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actSCardUtil.h -// Product: cv act library -// Purpose: useful global functions -// -// Copyright: (c) 2008 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef actSCardUtil_h -#define actSCardUtil_h - -namespace act -{ - // --------------------------------------------------------------------------- - template - inline BlobT short2blob(unsigned short n) - { - byte data[2] = { byte((n >> 8) & 0xff), byte(n & 0xff) }; - return BlobT(&data[0], &data[0] + sizeof(data)); - } - -} // namespace act - -#endif // actSCardUtil_h diff --git a/actlibrary/MacOSX-10.6-x86_64/Release/include/actSlotManager.h b/actlibrary/MacOSX-10.6-x86_64/Release/include/actSlotManager.h deleted file mode 100644 index 63875f2..0000000 --- a/actlibrary/MacOSX-10.6-x86_64/Release/include/actSlotManager.h +++ /dev/null @@ -1,81 +0,0 @@ -// --------------------------------------------------------------------------- -// Name: actSlotManager.h -// Product: cv act library -// Purpose: The class SlotManager detects and manages the subsystems and the slots -// -// Copyright: (c) 2002 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -// -// Autor: Dr. Xiangdong Wang -// Markus Tesche -// Date: 03/26/2002 -// --------------------------------------------------------------------------- - -#ifndef ACT_SlotManager_h -#define ACT_SlotManager_h - -#include "actIEventMonitoring.h" - -namespace act -{ - class ISubsystem; - class ISubsystemConfig; - - class ISlot; - class ITokenConfig; - - // - // SlotManager - class SlotManager : public IEventMonitoring - { - private: - struct SubsystemList - { - SubsystemList(ISubsystem* system, SubsystemList* next = 0); - ~SubsystemList(); - - SubsystemList* insert(SubsystemList* prev); - SubsystemList* remove(SubsystemList* prev); - - ISubsystem* system; - SubsystemList* next; - }; - - public: - SlotManager(ITokenConfig* tkcfg = 0); - ~SlotManager(); - - bool Install(ISubsystem* system); - bool Install(ISubsystemConfig* config); - - void Refresh(); - void Disconnect(); - ISubsystem* GetSystem(size_t pos = 0) const; - - // SlotList - int GetSlotNumber() const; - const ISlot* GetSlot(int pos) const; - ISlot* CreateSlot(const char* name) const; - - // IEventMonitoring functions - virtual bool IsMonitored() const; - virtual void StopMonitor(bool force = false); - virtual void StartMonitor(IEventHandler* cmd); - - protected: - IEventHandler* SetMonitor(SubsystemList* begin, IEventHandler* cmd, bool force); - - private: - int m_total; - ITokenConfig* m_tkcfg; - SubsystemList* m_begin; - SubsystemList* m_current; - IEventHandler* m_cmd_root; - IEventHandler* m_cmd_current; - }; - -} // namespace act - -#endif // ACT_SlotManager_h diff --git a/actlibrary/MacOSX-10.6-x86_64/Release/include/actSlotMonitorKit.h b/actlibrary/MacOSX-10.6-x86_64/Release/include/actSlotMonitorKit.h deleted file mode 100644 index 043e5c9..0000000 --- a/actlibrary/MacOSX-10.6-x86_64/Release/include/actSlotMonitorKit.h +++ /dev/null @@ -1,32 +0,0 @@ -// --------------------------------------------------------------------------- -// Name: actSlotMonitorKit.h -// Product: cv act library -// Purpose: registry for factory functions to create slot monitors -// -// Copyright: (c) 2009 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -// -// Autor: Markus Tesche -// Date: 04/12/2009 -// --------------------------------------------------------------------------- - -#ifndef ACT_SlotMonitorKit_h -#define ACT_SlotMonitorKit_h - -namespace act -{ - class ISubsystem; - class ISlot; - class ISlotMonitor; - - // default polling slot monitor - ISlotMonitor* CreateSlotMonitor(ISlot*); - - ISlotMonitor* CreatePCSCSlotMonitor(ISlot*); - ISlotMonitor* CreatePCSCSystemSlotMonitor(ISubsystem*); - -} // namespace act - -#endif // ACT_SlotMonitorKit_h diff --git a/actlibrary/MacOSX-10.6-x86_64/Release/include/actSlotMonitorReg.h b/actlibrary/MacOSX-10.6-x86_64/Release/include/actSlotMonitorReg.h deleted file mode 100644 index 60a8d7e..0000000 --- a/actlibrary/MacOSX-10.6-x86_64/Release/include/actSlotMonitorReg.h +++ /dev/null @@ -1,54 +0,0 @@ -// --------------------------------------------------------------------------- -// Name: actSlotMonitorReg.h -// Product: cv act library -// Purpose: factory functions registry to create Slot-Monitor objects. -// -// Copyright: (c) 2009 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -// -// Autor: Markus Tesche -// Date: 04/12/2009 -// --------------------------------------------------------------------------- - -#ifndef ACT_SlotMonitoReg_h -#define ACT_SlotMonitoReg_h - -#include "actFactoryReg.h" - -namespace act -{ - class ISubsystem; - class ISlot; - class ISlotMonitor; - - typedef ISlotMonitor* (*CreateSlotMonitorPtr)(ISlot*); - typedef ISlotMonitor* (*CreateSystemSlotMonitorPtr)(ISubsystem*); - - struct SlotMonitorRegCreatePtr - { - ISlotMonitor* operator()(const char*, ISlot* slot) const - { - return createSlotMonitor != 0 ? createSlotMonitor(slot) : 0; - } - - ISlotMonitor* operator()(const char*, ISubsystem* system) const - { - return createSystemSlotMonitor != 0 ? createSystemSlotMonitor(system) : 0; - } - - CreateSlotMonitorPtr createSlotMonitor; - CreateSystemSlotMonitorPtr createSystemSlotMonitor; - }; - - - typedef FactoryMapEntry SlotMonitorRegEntry; - - typedef FactoryReg - < ISlotMonitor, SlotMonitorRegCreatePtr, SlotMonitorRegEntry - > SlotMonitorReg; - -} // namespace act - -#endif // ACT_SlotMonitoReg_h diff --git a/actlibrary/MacOSX-10.6-x86_64/Release/include/actStreamCipherReg.h b/actlibrary/MacOSX-10.6-x86_64/Release/include/actStreamCipherReg.h deleted file mode 100644 index 4cc5b22..0000000 --- a/actlibrary/MacOSX-10.6-x86_64/Release/include/actStreamCipherReg.h +++ /dev/null @@ -1,39 +0,0 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actStreamCipherReg.h -// Product: cv act library -// Purpose: registry for factory functions in actStreamCipherKit.h -// -// Copyright: (c) 2001 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_StreamCipherReg_h -#define ACT_StreamCipherReg_h - -namespace act -{ - class IStreamCipher; - - typedef IStreamCipher* (*CreateStreamCipherPtr)(); - - struct StreamCipherMapEntry { - const char* Name; - CreateStreamCipherPtr CreatePtr; - }; - - class StreamCipherReg - { - public: - static IStreamCipher* CreateStreamCipher(const char* name); - static CreateStreamCipherPtr GetCreatePointer(const char* name); - static const char* GetName(void* createptr); - static const char* GetNextName(const char* name); - static void Insert(const char* name,CreateStreamCipherPtr createptr); - static void Insert(const StreamCipherMapEntry* map); - }; -} - -#endif - diff --git a/actlibrary/MacOSX-10.6-x86_64/Release/include/actSubsystemKit.h b/actlibrary/MacOSX-10.6-x86_64/Release/include/actSubsystemKit.h deleted file mode 100644 index c3452f0..0000000 --- a/actlibrary/MacOSX-10.6-x86_64/Release/include/actSubsystemKit.h +++ /dev/null @@ -1,33 +0,0 @@ -// --------------------------------------------------------------------------- -// Name: actSubsystemKit.h -// Product: cv act library -// Purpose: registry for factory functions to create subsystem -// -// Copyright: (c) 2002 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -// -// Autor: Dr. Xiangdong Wang (XWG) -// Date: 05/13/2002 -// --------------------------------------------------------------------------- - -#ifndef ACT_SubsystemKit_h -#define ACT_SubsystemKit_h - -namespace act -{ - class ISubsystem; - class ISubsystemConfig; - - ISubsystem* CreateCTAPISystem(const char*); - - ISubsystem* CreatePCSCSystem(const char*); - ISubsystem* CreatePCSCSystemEx(ISubsystemConfig*); - - ISubsystem* CreateCSPSystem(const char*); - ISubsystem* CreatePKCS11System(const char*); - -} // namespace act - -#endif // ACT_SubsystemKit_h diff --git a/actlibrary/MacOSX-10.6-x86_64/Release/include/actTokenAuthProtocolKit.h b/actlibrary/MacOSX-10.6-x86_64/Release/include/actTokenAuthProtocolKit.h deleted file mode 100644 index d528776..0000000 --- a/actlibrary/MacOSX-10.6-x86_64/Release/include/actTokenAuthProtocolKit.h +++ /dev/null @@ -1,30 +0,0 @@ -// --------------------------------------------------------------------------- -// Name: actTokenAuthProtocolKit.h -// Product: cv act library -// Purpose: Factory functions to create specific ITokenAuthProtocol objects. -// -// Copyright: (c) 2009 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -// -// Autor: Markus Tesche -// Date: 14/10/2008 -// --------------------------------------------------------------------------- - -#ifndef ACT_TokenAuthProtocolKit_h -#define ACT_TokenAuthProtocolKit_h - -namespace act -{ - class ITokenAuthProtocol; - - ITokenAuthProtocol* CreateTokenAuthPACE(const char* name); // EACv2-PACE - ITokenAuthProtocol* CreateTokenAuthTA(const char* name); // EACv2-TA - ITokenAuthProtocol* CreateTokenAuthCA(const char* name); // EACv2-CA - - ITokenAuthProtocol* CreateTokenAuthBAC(const char* name); // EACv1-BAC - -} // namespace act - -#endif // ACT_TokenAuthProtocolKit_h diff --git a/actlibrary/MacOSX-10.6-x86_64/Release/include/actTokenAuthProtocolReg.h b/actlibrary/MacOSX-10.6-x86_64/Release/include/actTokenAuthProtocolReg.h deleted file mode 100644 index 9f2924d..0000000 --- a/actlibrary/MacOSX-10.6-x86_64/Release/include/actTokenAuthProtocolReg.h +++ /dev/null @@ -1,33 +0,0 @@ -// --------------------------------------------------------------------------- -// Name: actTokenAuthProtocolReg.h -// Product: cv act library -// Purpose: factory functions registry to create ITokenAuthProtocol objects. -// -// Copyright: (c) 2009 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -// -// Autor: Markus Tesche -// Date: 14/10/2009 -// --------------------------------------------------------------------------- - -#ifndef ACT_TokenAuthProtocolReg_h -#define ACT_TokenAuthProtocolReg_h - -#include "actFactoryReg.h" - -namespace act -{ - class ITokenAuthProtocol; - - typedef ITokenAuthProtocol* (*CreateTokenAuthProtocolPtr)(const char*); - typedef FactoryMapEntry TokenAuthProtocolMapEntry; - - typedef FactoryReg - < ITokenAuthProtocol, CreateTokenAuthProtocolPtr, TokenAuthProtocolMapEntry - > TokenAuthProtocolReg; - -} // namespace act - -#endif // ACT_TokenAuthProtocolReg_h diff --git a/actlibrary/MacOSX-10.6-x86_64/Release/include/actTokenExtensionKit.h b/actlibrary/MacOSX-10.6-x86_64/Release/include/actTokenExtensionKit.h deleted file mode 100644 index f087bdc..0000000 --- a/actlibrary/MacOSX-10.6-x86_64/Release/include/actTokenExtensionKit.h +++ /dev/null @@ -1,28 +0,0 @@ -// --------------------------------------------------------------------------- -// Name: actTokenExtensionKit.h -// Product: cv act library -// Purpose: Factory functions to create specific ITokenExtension objects. -// -// Copyright: (c) 2008 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -// -// Autor: Markus Tesche -// Date: 12/02/2008 -// --------------------------------------------------------------------------- - -#ifndef ACT_TokenExtensionKit_h -#define ACT_TokenExtensionKit_h - -namespace act -{ - class IToken; - class ITokenExtension; - - ITokenExtension* CreateMDProfileExt(const char* name, IToken*); // Minidriver - ITokenExtension* CreateEACTAwithCAPI(const char* name, IToken*); // EACv2-TA with CAPI - -} // namespace act - -#endif // ACT_TokenExtensionKit_h diff --git a/actlibrary/MacOSX-10.6-x86_64/Release/include/actTools.h b/actlibrary/MacOSX-10.6-x86_64/Release/include/actTools.h deleted file mode 100644 index c22c455..0000000 --- a/actlibrary/MacOSX-10.6-x86_64/Release/include/actTools.h +++ /dev/null @@ -1,93 +0,0 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actTools.h -// Product: cv act library -// Purpose: useful global functions -// -// Copyright: (c) 2000 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_Tools_h -#define ACT_Tools_h - -#include "actMode.h" -#include "actBlob.h" - -namespace act -{ - class IKey; - - // Functions for RSA public key and private key operation. - // Both functions return the plain result of the modular - // exponentiation using the public or private exponent. - // - // 1) Calculate m^e mod n, where e is the public exponent - Blob RSAPublicKeyOperation(IKey* rsa_key, const Blob& m); - // 2) Calculate c^d mod n, where d is the private exponent - Blob RSAPrivateKeyOperation(IKey* rsa_key, const Blob& c); - - - // Function for PKCS#3 Diffie-Hellman. - // The function initializes an act::IKey Diffie-Hellman key object - // from PKCS#3 DH parameters p and g (prime and generator). - void PKCS3DHKeyToDHKey(const Blob& prime, const Blob& generator, IKey *dhKey); - - - // Read pfx file and get private key - Blob getPKCS8Key(const Blob& pfx_data, const char* password); - // Read pfx file and get the own (user) certificate - Blob getOwnCertificateFromPfx(const Blob& pfx_data, const char* password); - - - // Function to encode an ASN1 object identifier in binary form - // example EncodeOID("0.2.262.1.10.1.3.8") = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x01, 0x03, 0x08 } - Blob EncodeOID(const char* oid); - - - // Converts a signed decimal number or hexadecimal number (with prefix "0x" / "-0x") - // into a Blob (Twos-Complement representation for negative numbers) - Blob EncodeNumber(const char* number); - Blob EncodeNumber(int number); - - - // CRC functions - - // CRC-16 (direct mode, no zero bit augmentation) - // - // Poly : 0x8005 (x^16 + x^15 + x^2 + 1) - // RefIn : True (bit reflection on the input bytes) - // RefOut : True (bit reflection on the final CRC value) - // XorOut : 0x0000 (no XOR on the returned CRC value) - unsigned long CalculateCRC16(const act::byte* message, size_t message_len, - unsigned long crc_init_value = 0x0000); - unsigned long CalculateCRC16(const act::Blob& message, - unsigned long crc_init_value = 0x0000); - - // CRC-16 CCIT (direct mode, no zero bit augmentation) - // - // Poly : 0x1021 (x^16 + x^12 + x^5 + 1) - // RefIn : False (no bit reflection on the input bytes) - // RefOut : False (no bit reflection on the final CRC value) - // XorOut : 0x0000 (no XOR on the returned CRC value) - unsigned long CalculateCRC16CCITT(const act::byte* message, size_t message_len, - unsigned long crc_init_value = 0xFFFF); - unsigned long CalculateCRC16CCITT(const act::Blob& message, - unsigned long crc_init_value = 0xFFFF); - - // CRC-32 (direct mode, no zero bit augmentation) - // - // Poly : 0x04C11DB7 (x^32 + x^26 + x^23 + x^22 + x^16 + x^12 + x^11 + ... - // ... + x^10 + x^8 + x^7 + x^5 + x^4 + x^2 + x^ + 1) - // RefIn : True (bit reflection on the input bytes) - // RefOut : True (bit reflection on the final CRC value) - // XorOut : 0xFFFFFFFF (XOR on the returned CRC value) - unsigned long CalculateCRC32(const act::byte* message, size_t message_len, - unsigned long crc_init_value = 0xFFFFFFFF); - unsigned long CalculateCRC32(const act::Blob& message, - unsigned long crc_init_value = 0xFFFFFFFF); - -} // namespace act - -#endif // ACT_Tools_h diff --git a/actlibrary/MacOSX-10.6-x86_64/Release/include/actX509KeyReg.h b/actlibrary/MacOSX-10.6-x86_64/Release/include/actX509KeyReg.h deleted file mode 100644 index 619a17d..0000000 --- a/actlibrary/MacOSX-10.6-x86_64/Release/include/actX509KeyReg.h +++ /dev/null @@ -1,48 +0,0 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actX509KeyReg.h -// Product: cv act library -// Purpose: registry for factory functions in actX509Kit.h -// -// Copyright: (c) 2000 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_X509KeyReg_h -#define ACT_X509KeyReg_h - -namespace act -{ - class IKey; - class Blob; - - typedef IKey* (*CreateKeyPtr)(); - typedef void (*X509ToKeyPtr)(const Blob& pkinfo, IKey* key); - typedef void (*KeyToX509Ptr)(const IKey* key, Blob& pkinfo ); - - struct X509KeyMapEntry - { - const char* OID; - CreateKeyPtr CreatePtr; - X509ToKeyPtr X509ToKey; - KeyToX509Ptr KeyToX509; - }; - - class X509KeyReg - { - public: - static IKey* CreateX509Key(const Blob& pkInfo); - static void GetX509KeyInfo(const IKey* key, Blob& pkInfo); - - static CreateKeyPtr GetCreatePointer(const char* oid); - static const char* GetOID(void* createptr); - static const char* GetNextOID(const char* oid); - - static void Insert(const char* name, CreateKeyPtr createptr, X509ToKeyPtr x509tokey, KeyToX509Ptr keytox509); - static void Insert(const X509KeyMapEntry* keymap); - }; - -} // namespace act - -#endif // ACT_X509KeyReg_h diff --git a/actlibrary/MacOSX-10.6-x86_64/Release/include/actX509SignReg.h b/actlibrary/MacOSX-10.6-x86_64/Release/include/actX509SignReg.h deleted file mode 100644 index 74b48a2..0000000 --- a/actlibrary/MacOSX-10.6-x86_64/Release/include/actX509SignReg.h +++ /dev/null @@ -1,41 +0,0 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actX509SignReg.h -// Product: cv act library -// Purpose: registry for factory functions in actX509Kit.h -// -// Copyright: (c) 2000 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_X509SignReg_h -#define ACT_X509SignReg_h - -namespace act -{ - class IKey; - class Blob; - - typedef IKey* (*CreateKeyPtr)(); - typedef void (*GetX509AlgIDPtr)(const IKey* key, Blob& algid); - typedef void (*SetX509AlgIDPtr)(const Blob& algid, IKey* key); - - struct X509SignMapEntry { - CreateKeyPtr CreatePtr; - GetX509AlgIDPtr GetAlgID; - SetX509AlgIDPtr SetAlgID; - }; - - class X509SignReg - { - public: - static void GetAlgID(const IKey* key, Blob& algid); - static void SetAlgID(const Blob& algid, IKey* key); - - static void Insert(CreateKeyPtr createptr, GetX509AlgIDPtr getalgid, SetX509AlgIDPtr setalgid ); - static void Insert(const X509SignMapEntry* keymap); - }; -} -#endif - diff --git a/actlibrary/OpenSUSE-11-x86_64/Release/include/actAlgorithm.h b/actlibrary/OpenSUSE-11-x86_64/Release/include/actAlgorithm.h deleted file mode 100644 index 035471e..0000000 --- a/actlibrary/OpenSUSE-11-x86_64/Release/include/actAlgorithm.h +++ /dev/null @@ -1,73 +0,0 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actAlgorithm.h -// Product: cv act library -// Purpose: The class Algorithm generates algorithms for encryption and signing. -// The class Key defined these algorithms. By using this handle the -// necessary methods (e.g. hash-algorithms, verifying-primitiva, etc.) -// can be generated. -// -// Copyright: (c) 2000 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_Algorithm_h -#define ACT_Algorithm_h - -#include "actBasics.h" - -namespace act -{ - class IAlgorithm; - class IKey; - class Blob; - - class Algorithm - { - private: - Algorithm(const Algorithm&); - Algorithm &operator=(const Algorithm&); - - public: - Algorithm(IAlgorithm* alg); - Algorithm(const IKey* key, mode_t mode); - Algorithm(const IKey* key, mode_t mode, const Blob& data); - Algorithm(const char* name); - ~Algorithm(); - - void Write(const Blob& indata); - void Write(const byte* indata, size_t insize); - - void Finalize(); - - size_t Read(Blob& outdata, size_t max = 0); - size_t Read(byte* outbuffer, size_t buffersize); - - size_t GetAvailableSize() const; - status_t GetStatus() const; - - Algorithm& operator<<(const Blob& indata) { Write(indata); return *this; } - Algorithm& operator<<(Algorithm& (*manipulator)(Algorithm &alg)) { return manipulator(*this); } - Algorithm& operator>>(Blob& outdata) { Read(outdata); return *this; } - - operator IAlgorithm*(); - operator const IAlgorithm* () const; - IAlgorithm* GetPointer(); - const IAlgorithm* GetPointer() const; - - IAlgorithm* ReleasePointer(); - - private: - IAlgorithm* mAlg; - }; - - inline Algorithm& final(Algorithm& alg) - { - alg.Finalize(); - return alg; - } - -} // namespace act - -#endif // ACT_Algorithm_h diff --git a/actlibrary/OpenSUSE-11-x86_64/Release/include/actAllocator.h b/actlibrary/OpenSUSE-11-x86_64/Release/include/actAllocator.h deleted file mode 100644 index ce0bfb2..0000000 --- a/actlibrary/OpenSUSE-11-x86_64/Release/include/actAllocator.h +++ /dev/null @@ -1,107 +0,0 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actAllocator.h -// Product: cv act library -// Purpose: -// -// Copyright: (c) 2008 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -// -// Autor: Markus Tesche (MTE) -// Date: 09/29/2008 -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_Allocator_h -#define ACT_Allocator_h - -#include "actBasics.h" - -// -------------------------------------------------------------------------------- -namespace act -{ - // - // Allocator<> - template - class Allocator - { - public: - typedef SizeT size_type; - typedef TypeT value_type; - typedef value_type* pointer; - typedef value_type& reference; - typedef const value_type* const_pointer; - typedef const value_type& const_reference; - - protected: - typedef Allocator ThisT; - typedef pointer (*fptr_allocate)(ThisT*, size_type n, const void* hint); - typedef void (*fptr_deallocate)(ThisT*, pointer p, size_type n); - - private: - Allocator(const Allocator&); - Allocator& operator=(const Allocator&); - - protected: - Allocator(fptr_allocate pAllocate, fptr_deallocate pDeallocate) throw() - : m_pAllocate(pAllocate) - , m_pDeallocate(pDeallocate) - { } - - public: - inline pointer allocate(size_type n, const void* hint) - { - return m_pAllocate(this, n, hint); - } - - inline void deallocate(pointer p, size_type n) - { - if(p != 0) m_pDeallocate(this, p, n); - } - - protected: - fptr_allocate m_pAllocate; - fptr_deallocate m_pDeallocate; - }; - - // - // AllocatorImpl<> - template - < - class AllocatorT, - class BaseT = Allocator - > - class AllocatorImpl : public BaseT - { - public: - typedef typename BaseT::pointer pointer; - typedef typename BaseT::size_type size_type; - - protected: - typedef AllocatorImpl ThisT; - - public: - AllocatorImpl() throw() - : BaseT(_allocate, _deallocate) - { } - - AllocatorT& ref_alloc() { return m_Alloc; } - - private: - inline static pointer _allocate(BaseT* pThis, size_type n, const void* hint) - { - return static_cast(pThis)->m_Alloc.allocate(n, hint); - } - - inline static void _deallocate(BaseT* pThis, pointer p, size_type n) - { - static_cast(pThis)->m_Alloc.deallocate(p, n); - } - - private: - AllocatorT m_Alloc; - }; - -} // namespace act - -#endif // ACT_Allocator_h diff --git a/actlibrary/OpenSUSE-11-x86_64/Release/include/actBasics.h b/actlibrary/OpenSUSE-11-x86_64/Release/include/actBasics.h deleted file mode 100644 index 39057d6..0000000 --- a/actlibrary/OpenSUSE-11-x86_64/Release/include/actBasics.h +++ /dev/null @@ -1,93 +0,0 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actBasics.h -// Product: cv act library -// Purpose: integration of globally available identifiers -// -// Copyright: (c) 2000 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_Basics_h -#define ACT_Basics_h - -#include "actEnv.h" - -#ifndef ACT_LITTLE_ENDIAN -# define ACT_LITTLE_ENDIAN -#endif - -#if defined(__BIG_ENDIAN__) || \ - defined(__sun__) || \ - defined(__sparc) || \ - defined(__sparc__) || \ - defined(__ppc__) || \ - defined(__ppc64__) -# undef ACT_LITTLE_ENDIAN -#endif // __sun__ - - -#ifndef NO_STL_SUPPORT -# include // used for ptrdiff_t,size_t -#else -# ifndef _PTRDIFF_T_DEFINED - typedef int ptrdiff_t; -# define _PTRDIFF_T_DEFINED -# endif - - -# ifndef _SIZE_T_DEFINED - typedef unsigned int size_t; -# define _SIZE_T_DEFINED -# endif -#endif // NO_STL_SUPPORT - -namespace act -{ - typedef unsigned long ulong; - typedef unsigned int uint; - typedef unsigned short ushort; - typedef unsigned char uchar; - typedef unsigned char byte; - typedef unsigned short word; - typedef unsigned int dword; - -#if defined(_MSC_VER) & !defined(__MWERKS__) - using ::size_t; - using ::ptrdiff_t; -#else - using std::size_t; - using std::ptrdiff_t; -#endif - - typedef int paramid_t; - typedef int status_t; - typedef int mode_t; - typedef int export_t; - - typedef ushort uint16; - typedef uint uint32; -#if defined(__GNUC__) || defined(__MWERKS__) - typedef unsigned long long uint64; -# define U64(x) x##ULL -#else - //#ifdef _MSC_EXTENSIONS - typedef unsigned __int64 uint64; -# define U64(x) x##ui64 -#endif - -#if defined(__GNUC__) -# define GCC_VERSION (__GNUC__ * 10000 + __GNUC_MINOR__ * 100 + __GNUC_PATCHLEVEL__) -#endif - - const export_t DEFAULT = 0; - - // - // scoped_delete<> - template - struct scoped_delete { }; - -} // namespace act - -#endif // ACT_Basics_h diff --git a/actlibrary/OpenSUSE-11-x86_64/Release/include/actBlob.h b/actlibrary/OpenSUSE-11-x86_64/Release/include/actBlob.h deleted file mode 100644 index e42687d..0000000 --- a/actlibrary/OpenSUSE-11-x86_64/Release/include/actBlob.h +++ /dev/null @@ -1,644 +0,0 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actBlob.h -// Product: cv act library -// Purpose: The datatype Blob (Binary Large Object) is a universal type, which -// can be used for any data. The class Blob almost behaves like -// std::vector with the difference that freed memory -// is filled with zeros to enhance security. -// -// Copyright: (c) 2000 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_Blob_h -#define ACT_Blob_h - -#include "actMove.h" -#include "actBasics.h" -#include "actAllocator.h" - -#ifndef UNDER_CE_30 -# include -#endif // UNDER_CE_30 - -#ifndef NO_STL_SUPPORT -# include // used for reserve_iterator -# include // used for string -#else - // -------------------------------------------------------------------------------- - // if there is no STL support, we define reverse_iterator here. - // -------------------------------------------------------------------------------- - namespace std - { - // ITERATOR TAGS (from ) - struct input_iterator_tag {}; - struct output_iterator_tag {}; - struct forward_iterator_tag - : public input_iterator_tag {}; - struct bidirectional_iterator_tag - : public forward_iterator_tag {}; - struct random_access_iterator_tag - : public bidirectional_iterator_tag {}; - - // TEMPLATE CLASS iterator (from ) - template - struct iterator { - typedef _C iterator_category; - typedef _Ty value_type; - typedef _D distance_type; - }; - template - struct _Bidit : public iterator {}; - template - struct _Ranit : public iterator {}; - - // TEMPLATE CLASS iterator_traits (from ) - template - struct iterator_traits { - typedef _It::iterator_category iterator_category; - typedef _It::value_type value_type; - typedef _It::distance_type distance_type; - }; - - - // TEMPLATE CLASS reverse_iterator (from ) - template - class reverse_iterator : public _Ranit<_Ty, _D> { - public: - typedef reverse_iterator<_RI, _Ty, _Rt, _Pt, _D> _Myt; - typedef _RI iter_type; - typedef _Rt reference_type; - typedef _Pt pointer_type; - reverse_iterator() - {} - explicit reverse_iterator(_RI _X) - : current(_X) {} - _RI base() const - {return(current); } - _Rt operator*() const - {return(*(current - 1)); } - // _Pt operator->() const - // {return(&**this); } - _Myt& operator++() - {--current; - return(*this); } - _Myt operator++(int) - {_Myt _Tmp = *this; - --current; - return(_Tmp); } - _Myt& operator--() - {++current; - return(*this); } - _Myt operator--(int) - {_Myt _Tmp = *this; - ++current; - return(_Tmp); } - _Myt& operator+=(_D _N) - {current -= _N; - return(*this); } - _Myt operator+(_D _N) const - {return(_Myt(current - _N)); } - _Myt& operator-=(_D _N) - {current += _N; - return(*this); } - _Myt operator-(_D _N) const - {return(_Myt(current + _N)); } - _Rt operator[](_D _N) const - {return(*(*this + _N)); } - protected: - _RI current; - }; - template inline - bool __cdecl operator==( - const reverse_iterator<_RI, _Ty, _Rt, _Pt, _D>& _X, - const reverse_iterator<_RI, _Ty, _Rt, _Pt, _D>& _Y) - {return(get_base(_X) == get_base(_Y)); } - template inline - bool __cdecl operator!=( - const reverse_iterator<_RI, _Ty, _Rt, _Pt, _D>& _X, - const reverse_iterator<_RI, _Ty, _Rt, _Pt, _D>& _Y) - {return(!(_X == _Y)); } - template inline - bool __cdecl operator<( - const reverse_iterator<_RI, _Ty, _Rt, _Pt, _D>& _X, - const reverse_iterator<_RI, _Ty, _Rt, _Pt, _D>& _Y) - {return(get_base(_Y) < get_base(_X)); } - template inline - bool __cdecl operator>( - const reverse_iterator<_RI, _Ty, _Rt, _Pt, _D>& _X, - const reverse_iterator<_RI, _Ty, _Rt, _Pt, _D>& _Y) - {return(_Y < _X); } - template inline - bool __cdecl operator<=( - const reverse_iterator<_RI, _Ty, _Rt, _Pt, _D>& _X, - const reverse_iterator<_RI, _Ty, _Rt, _Pt, _D>& _Y) - {return(!(_Y < _X)); } - template inline - bool __cdecl operator>=( - const reverse_iterator<_RI, _Ty, _Rt, _Pt, _D>& _X, - const reverse_iterator<_RI, _Ty, _Rt, _Pt, _D>& _Y) - {return(!(_X < _Y)); } - template inline - _D __cdecl operator-( - const reverse_iterator<_RI, _Ty, _Rt, _Pt, _D>& _X, - const reverse_iterator<_RI, _Ty, _Rt, _Pt, _D>& _Y) - {return(get_base(_Y) - get_base(_X)); } - template inline - reverse_iterator<_RI, _Ty, _Rt, _Pt, _D> __cdecl operator+(_D _N, - const reverse_iterator<_RI, _Ty, _Rt, _Pt, _D>& _Y) - {return(reverse_iterator<_RI, _Ty, _Rt, _Pt, _D>( - get_base(_Y) - _N)); } - } // namespace std - -#endif //NO_STL_SUPPORT - -// -------------------------------------------------------------------------------- -namespace act -{ - // - // byte_array for fixed data - struct byte_array - { - const act::byte* value; - const size_t size; - }; - - inline byte_array make_array(const act::byte* value = 0, size_t size = 0) - { - const byte_array ba = { value, size }; - return ba; - }; - -#ifndef ACT_NO_BYTE_ARRAY_MACROS -# define _A(x) x.value, x.size -# define _B(x) act::make_array(reinterpret_cast(x), sizeof(x) - sizeof(x[0])) -# define _C(x) act::make_array(reinterpret_cast(x), sizeof(x)) -# define _H(x) { (const act::byte*) x, sizeof(x) - sizeof(x[0]) } -#endif - -#if(_MSC_VER >= 1300) - template - < - class _Ty, - class _Diff, - class _Pointer, - class _Reference, - class _Pointer2, - class _Reference2 - > - class _Ptrit : - public std::iterator - { // wrap pointer as random-access iterator - public: - typedef _Ptrit<_Ty, _Diff, _Pointer, _Reference, _Pointer2, _Reference2> _Myt; - - _Ptrit() - { // construct with uninitialized wrapped pointer - } - - _Ptrit(_Pointer _Ptr) : current(_Ptr) - { // construct wrapped pointer from _Ptr - } - - _Ptrit(const _Ptrit<_Ty, _Diff, _Pointer2, _Reference2, _Pointer2, _Reference2>& _Iter) - : current(_Iter.base()) - { // const converter or copy constructor - } - - _Pointer base() const - { // return wrapped pointer - return current; - } - - _Reference operator*() const - { // return designated value - return *current; - } - - _Pointer operator->() const - { // return pointer to class object - return &**this; - } - - _Myt& operator++() - { // preincrement - ++current; - return *this; - } - - _Myt operator++(int) - { // postincrement - _Myt _Tmp = *this; - ++current; - return _Tmp; - } - - _Myt& operator--() - { // predecrement - --current; - return *this; - } - - _Myt operator--(int) - { // postdecrement - _Myt _Tmp = *this; - --current; - return _Tmp; - } - - bool operator==(size_t _Right) const - { // test if wrapped pointer == integer (null pointer constant) - return current == (_Pointer) _Right; - } - - bool operator==(const _Myt& _Right) const - { // test for iterator equality - return current == _Right.current; - } - - bool operator!=(const _Myt& _Right) const - { // test for iterator inequality - return !(*this == _Right); - } - - _Myt& operator+=(_Diff _Off) - { // increment by integer - current += _Off; - return *this; - } - - _Myt operator+(_Diff _Off) const - { // return this + integer - return _Myt(current + _Off); - } - - _Myt& operator-=(_Diff _Off) - { // decrement by integer - current -= _Off; - return *this; - } - - _Myt operator-(_Diff _Off) const - { // return this - integer - return _Myt(current - _Off); - } - - _Reference operator[](_Diff _Off) const - { // subscript - return *(*this + _Off); - } - - bool operator<(const _Myt& _Right) const - { // test if this < _Right - return current < _Right.current; - } - - bool operator>(const _Myt& _Right) const - { // test if this > _Right - return _Right < *this; - } - - bool operator<=(const _Myt& _Right) const - { // test if this <= _Right - return !(_Right < *this); - } - - bool operator>=(const _Myt& _Right) const - { // test if this >= _Right - return !(*this < _Right); - } - - _Diff operator-(const _Myt& _Right) const - { // return difference of iterators - return current - _Right.current; - } - - protected: - _Pointer current; // the wrapped pointer - }; - -#endif // _MSC_VER >= 1300 - - // - // Blob - class Blob - { - protected: - struct flags - { - byte copy_on_write:1; - byte external_allocated:1; - - flags() throw() - : copy_on_write(0) - , external_allocated(0) - { } - }; - - public: - typedef Allocator _Alloc; - typedef _Alloc allocator_type; - typedef _Alloc::size_type size_type; - typedef _Alloc::value_type value_type; - typedef value_type* pointer; - typedef value_type& reference; - typedef const value_type* const_pointer; - typedef const value_type& const_reference; - typedef ptrdiff_t difference_type; - -#if(_MSC_VER >= 1300) - typedef _Ptrit - < value_type, difference_type, pointer, reference, pointer, reference - > iterator; - - typedef _Ptrit - < value_type, difference_type, const_pointer, const_reference, pointer, reference - > const_iterator; - - inline static pointer get_base(iterator it) { return it.base(); } - inline static const_pointer get_base(const_iterator it) { return it.base(); } - -#else - typedef byte* iterator; - typedef const byte* const_iterator; - - inline static pointer get_base(iterator it) { return it; } - inline static const_pointer get_base(const_iterator it) { return it; } - -#endif - -#if (_MSC_VER >= 1200) && (_MSC_VER < 1300) - typedef std::reverse_iterator - < iterator, value_type, reference, pointer, difference_type - > reverse_iterator; - - typedef std::reverse_iterator - < const_iterator, value_type, const_reference, const_pointer, difference_type - > const_reverse_iterator; - -#else - typedef std::reverse_iterator reverse_iterator; - typedef std::reverse_iterator const_reverse_iterator; - -#endif - // construct/copy/destroy - Blob(); - - explicit Blob(allocator_type* allocator); - explicit Blob(const char* str, allocator_type* allocator = dAllocator); - -#ifndef NO_STL_SUPPORT - explicit Blob(std::string& str, allocator_type* allocator = dAllocator); - explicit Blob(const std::string& str, allocator_type* allocator = dAllocator); -#endif // NO_STL_SUPPORT - - explicit Blob(const byte_array& ba, allocator_type* allocator = dAllocator); - explicit Blob(size_type n, byte v = byte(0), allocator_type* allocator = dAllocator); - - template - Blob(inputit f, inputit l, allocator_type* allocator = dAllocator) - : mFirst(0), mLast(0), mEnd(0), mAllocator(allocator) - { - insert(begin(), f, l); - } - - Blob(move_from other); - Blob(const Blob& other); - ~Blob(); - - Blob& operator=(const Blob& other); - Blob& operator=(move_from other); - - template - void assign(inputit f, inputit l) - { - erase(begin(), end()); - insert(begin(), f, l); - } - - void assign(const byte_array& ba); - void assign(size_type n, byte x = byte(0)); - - // capacity - bool empty() const { return size() == 0; } - size_type size() const { return mFirst == 0 ? 0 : mLast - mFirst; } - size_type capacity() const { return mFirst == 0 ? 0 : mEnd - mFirst; } - size_type max_size() const; - void reserve(size_type n); - void resize(size_type n, byte x = byte(0)); - - // iterators - iterator begin() { return mFirst; } - const_iterator begin() const { return const_iterator(mFirst); } - iterator end() { return mLast; } - const_iterator end() const { return const_iterator(mLast); } - reverse_iterator rbegin() { return reverse_iterator(end()); } - const_reverse_iterator rbegin() const { return const_reverse_iterator(end()); } - reverse_iterator rend() { return reverse_iterator(begin()); } - const_reverse_iterator rend() const { return const_reverse_iterator(begin()); } - - - // element access: - reference at(size_type p); - const_reference at(size_type p) const; - reference operator[](size_type p) { return *(begin() + p); } - const_reference operator[](size_type p) const { return *(begin() + p); } - - reference front() { return *begin(); } - const_reference front() const { return *begin(); } - reference back() { return *(end() - 1); } - const_reference back() const { return *(end() - 1); } - - // modifiers - void push_back(byte x) { insert(end(), x); } - void pop_back() { erase(end() - 1); } - - void insert(iterator p, size_type m, byte x); - iterator insert(iterator p, byte x = byte(0)); - - template - void insert(iterator p, inputit f, inputit l) - { - size_type m = 0; - _distance(f, l, m); - if(size_type(mEnd - mLast) < m) - { - size_type n = size(); - n = aligned_size(n + (m < n ? n : m)); - iterator s = allocate(n, (void*) 0); - iterator q = ucopy(mFirst, p, s); - q = ucopy(f, l, q); - ucopy(p, mLast, q); - _destroy(mFirst, mLast); - deallocate(get_base(mFirst), mEnd - mFirst); - mEnd = s + n; - mLast = s + size() + m; - mFirst = s; - } - else if(size_type(mLast - p) < m) - { - ucopy(p, mLast, p + m); - ucopy(f + (mLast - p), l, mLast); - copy(f, f + (mLast - p), p); - mLast += m; - } - else if(0 < m) - { - ucopy(mLast - m, mLast, mLast); - copy_backward(p, mLast - m, mLast); - copy(f, l, p); - mLast += m; - } - } - - Blob& append(const Blob& x) - { - insert(end(), x.begin(), x.end()); - return *this; - } - - Blob& append(size_type m, byte x) - { - insert(end(), m, x); - return *this; - } - - template - Blob& append(inputit f, inputit l) - { - insert(end(), f, l); - return *this; - } - - iterator erase(iterator p); - iterator erase(iterator f, iterator l); - void clear(); - void swap(Blob& x); - - // used by compare operators - bool _eq(const Blob& x) const; - bool _lt(const Blob& x) const; - - allocator_type* get_allocator() const { return mAllocator; } - static allocator_type* set_default_allocator(allocator_type* allocator) - { - std::swap(dAllocator, allocator); - return allocator; - } - - private: - template - outputit copy(inputit f, inputit l, outputit x) - { - for(; f != l; ++x, ++f) - *x = *f; - return x; - } - - iterator copy_backward(const_iterator f, const_iterator l, iterator x); - - template - outputit ucopy(inputit f, inputit l, outputit p) - { - for(; f != l; ++p, ++f) - construct(get_base(p), *f); - return p; - } - - void fill(iterator f, const_iterator l, byte x); - void ufill(iterator f, size_type n, byte x); - - size_type distance(const_iterator f, const_iterator l) const; - - template - void _distance(inputit f, inputit l, size_type& n) const - { - for(; f != l; ++f) - ++n; - } - - bool equal(const_iterator f, const_iterator l, const_iterator x) const; - bool lexicographical_compare(const_iterator f1, const_iterator l1, const_iterator f2, const_iterator l2) const; - - byte* allocate(size_type n, const void* hint); - void deallocate(pointer p, size_type n); - - void construct(byte* p, const_reference v) { *p = v; } - void destroy(byte* p) { *p = 0; } - - void _destroy(iterator f, iterator l); - - void outofrange() const; - - static size_type aligned_size(size_type size); - - protected: - flags mFlags; - iterator mFirst, mLast, mEnd; - allocator_type* mAllocator; - static allocator_type* dAllocator; - }; - -#ifndef UNDER_CE_30 - std::ostream &operator<<(std::ostream& os, const Blob& blob); -#endif // UNDER_CE_30 - - - // -------------------------------------------------------------------------------- - inline bool operator==(const Blob& x, const Blob&y) - { - return x._eq(y); - } - - inline bool operator!=(const Blob& x, const Blob&y) - { - return !(x._eq(y)); - } - - inline bool operator<(const Blob& x, const Blob&y) - { - return x._lt(y); - } - - inline bool operator>=(const Blob& x, const Blob&y) - { - return !(x._lt(y)); - } - - inline bool operator<=(const Blob& x, const Blob&y) - { - return x._eq(y) || x._lt(y); - } - - inline bool operator>(const Blob& x, const Blob&y) - { - return !(x._eq(y) || x._lt(y)); - } - -} // namespace act - -// -------------------------------------------------------------------------------- -namespace std -{ - // --------------------------------------------------------------------------- - inline void swap(act::Blob& left, act::Blob& right) { left.swap(right); } - -} // namespace std - -#endif // ACT_Blob_h diff --git a/actlibrary/OpenSUSE-11-x86_64/Release/include/actBlockCipherKit.h b/actlibrary/OpenSUSE-11-x86_64/Release/include/actBlockCipherKit.h deleted file mode 100644 index e89cc2a..0000000 --- a/actlibrary/OpenSUSE-11-x86_64/Release/include/actBlockCipherKit.h +++ /dev/null @@ -1,31 +0,0 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actBlockCipherKit.h -// Product: cv act library -// Purpose: declaration of all factory functions -// -// Copyright: (c) 2000 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_BlockCipherKit_h -#define ACT_BlockCipherKit_h - -namespace act -{ - class IBlockCipher; - - IBlockCipher* CreateDES(); - IBlockCipher* CreateTripleDES(); - IBlockCipher* CreateCAST128(); - IBlockCipher* CreateBlowFish(); - IBlockCipher* CreateTwoFish(); - IBlockCipher* CreateMars(); - IBlockCipher* CreateRijndael(); - IBlockCipher* CreateSerpent(); - IBlockCipher* CreateRC2(); - //IBlockCipher* CreateRC6(); -} -#endif - diff --git a/actlibrary/OpenSUSE-11-x86_64/Release/include/actBlockCipherModeKit.h b/actlibrary/OpenSUSE-11-x86_64/Release/include/actBlockCipherModeKit.h deleted file mode 100644 index ee2bd0a..0000000 --- a/actlibrary/OpenSUSE-11-x86_64/Release/include/actBlockCipherModeKit.h +++ /dev/null @@ -1,27 +0,0 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actBlockCipherModeKit.h -// Product: cv act library -// Purpose: declaration of all factory functions -// -// Copyright: (c) 2000 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - - -#ifndef ACT_BlockCipherModeKit_h -#define ACT_BlockCipherModeKit_h - -namespace act -{ - class IBlockCipherMode; - - IBlockCipherMode* CreateECBMode(); - IBlockCipherMode* CreateCBCMode(); - IBlockCipherMode* CreateCFBMode(); - IBlockCipherMode* CreateOFBMode(); - IBlockCipherMode* CreateCTRMode(); -} -#endif - diff --git a/actlibrary/OpenSUSE-11-x86_64/Release/include/actBlockCipherModeReg.h b/actlibrary/OpenSUSE-11-x86_64/Release/include/actBlockCipherModeReg.h deleted file mode 100644 index 6ce7d63..0000000 --- a/actlibrary/OpenSUSE-11-x86_64/Release/include/actBlockCipherModeReg.h +++ /dev/null @@ -1,40 +0,0 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actBlockCipherModeReg.h -// Product: cv act library -// Purpose: registry for factory functions in actBlockCipherModeKit.h -// -// Copyright: (c) 2000 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_BlockCipherModeReg_h -#define ACT_BlockCipherModeReg_h - -namespace act -{ - class IBlockCipherMode; - - typedef IBlockCipherMode* (*CreateBlockCipherModePtr)(); - - struct BlockCipherModeMapEntry - { - const char* Name; - CreateBlockCipherModePtr CreatePtr; - }; - - class BlockCipherModeReg - { - public: - static IBlockCipherMode* CreateBlockCipherMode(const char* name); - static CreateBlockCipherModePtr GetCreatePointer(const char* name); - static const char* GetName(void* createptr); - static const char* GetNextName(const char* name); - static void Insert(const char* name, CreateBlockCipherModePtr createptr); - static void Insert(const BlockCipherModeMapEntry* map); - }; - -} // namespace act - -#endif // ACT_BlockCipherModeReg_h diff --git a/actlibrary/OpenSUSE-11-x86_64/Release/include/actBlockCipherReg.h b/actlibrary/OpenSUSE-11-x86_64/Release/include/actBlockCipherReg.h deleted file mode 100644 index 7f96a90..0000000 --- a/actlibrary/OpenSUSE-11-x86_64/Release/include/actBlockCipherReg.h +++ /dev/null @@ -1,39 +0,0 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actBlockCipherReg.h -// Product: cv act library -// Purpose: registry for factory functions in actBlockCipherKit.h -// -// Copyright: (c) 2000 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_BlockCipherReg_h -#define ACT_BlockCipherReg_h - -namespace act -{ - class IBlockCipher; - - typedef IBlockCipher* (*CreateBlockCipherPtr)(); - - struct BlockCipherMapEntry { - const char* Name; - CreateBlockCipherPtr CreatePtr; - }; - - class BlockCipherReg - { - public: - static IBlockCipher* CreateBlockCipher(const char* name); - static CreateBlockCipherPtr GetCreatePointer(const char* name); - static const char* GetName(void* createptr); - static const char* GetNextName(const char* name); - static void Insert(const char* name,CreateBlockCipherPtr createptr); - static void Insert(const BlockCipherMapEntry* map); - }; -} - -#endif - diff --git a/actlibrary/OpenSUSE-11-x86_64/Release/include/actCRL.h b/actlibrary/OpenSUSE-11-x86_64/Release/include/actCRL.h deleted file mode 100644 index 9922439..0000000 --- a/actlibrary/OpenSUSE-11-x86_64/Release/include/actCRL.h +++ /dev/null @@ -1,68 +0,0 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actCRL.h -// Product: cv act library -// Purpose: -// -// Copyright: (c) 2000 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_CRL_h -#define ACT_CRL_h -#include "actBasics.h" - -namespace act -{ - class IKey; - class Blob; - class ICertificate; - class ICRL; - class CRL - { - public: - CRL(const char* type); - CRL(const char* type, const Blob& crlblob); - CRL(const CRL& crl); - - void SetParam(paramid_t id,const Blob& blob); - void SetParam(paramid_t id,int val); - void SetParam(paramid_t id,const char* cstr); - void GetParam(paramid_t id,Blob& blob) const; - int GetParam(paramid_t) const; - - void Import(const Blob& crl); - void Export(Blob& crl) const; - - void Revoke(const ICertificate* cert); - bool IsRevoked(const ICertificate* Cert) const; - void RemoveRevokation(const ICertificate* cert); - - void Revoke(const Blob& blob); - bool IsRevoked(const Blob& blob) const; - void RemoveRevokation(const Blob& blob); - - void Sign(const IKey* privkey); - int Verify(const IKey* pubkey) const; - - const ICRL* GetPointer() const; - ICRL* GetPointer(); - - operator const ICRL* () const; - operator ICRL* (); - - - ICRL* ReleasePointer(); - - CRL& operator= (const CRL& crl); - - ~CRL(); - private: - ICRL* mCRL; - }; - -}; // namespace act - -#endif - diff --git a/actlibrary/OpenSUSE-11-x86_64/Release/include/actCertificate.h b/actlibrary/OpenSUSE-11-x86_64/Release/include/actCertificate.h deleted file mode 100644 index f8d063b..0000000 --- a/actlibrary/OpenSUSE-11-x86_64/Release/include/actCertificate.h +++ /dev/null @@ -1,67 +0,0 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actCertificate.h -// Product: cv act library -// Purpose: The concrete class Certificate enables direct access to a certificate, -// e.g. its public key and the corresponding validity. -// -// Copyright: (c) 2000 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_Certificate_h -#define ACT_Certificate_h - -#include "actBasics.h" - -namespace act -{ - class IKey; - class Blob; - class ICertificate; - - class Certificate - { - public: - Certificate(); - Certificate(const char* type); - Certificate(const char* type, const Blob& certblob); - Certificate(const Certificate& cert); - - void SetParam(paramid_t id, const Blob& blob); - void SetParam(paramid_t id, int val); - void SetParam(paramid_t id, const char* cstr); - void GetParam(paramid_t id, Blob& blob) const; - int GetParam(paramid_t id) const; - - void Import(const Blob& certblob); - void Export(Blob& certblob) const; - - void SetPublicKey(const IKey* pubkey); - IKey* CreatePublicKey(const char* = 0) const; - - void Sign(const IKey* privkey); - int Verify(const IKey* pubkey) const; - - const ICertificate* GetPointer() const; - ICertificate* GetPointer(); - - operator const ICertificate*() const; - operator ICertificate*(); - - ICertificate* ReleasePointer(); - - Certificate& operator=(const Certificate& cert); - Certificate& Reset(ICertificate* cert); - Certificate& Required(const char* where = 0); - - ~Certificate(); - - private: - ICertificate* mCert; - }; - -}; // namespace act - -#endif // ACT_Certificate_h diff --git a/actlibrary/OpenSUSE-11-x86_64/Release/include/actCertificateKit.h b/actlibrary/OpenSUSE-11-x86_64/Release/include/actCertificateKit.h deleted file mode 100644 index 9387a39..0000000 --- a/actlibrary/OpenSUSE-11-x86_64/Release/include/actCertificateKit.h +++ /dev/null @@ -1,28 +0,0 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actCertificateKit.h -// Product: cv act library -// Purpose: declaration of all factory functions -// -// Copyright: (c) 2000 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_CERTIFICATEKIT_H -#define ACT_CERTIFICATEKIT_H - -namespace act -{ - class ICertificate; - class ICRL; - class ICVCertRequest; - - ICertificate* CreateX509Certificate(); - ICRL* CreateX509CRL(); - - ICertificate* CreateCVCertificate(); - ICVCertRequest* CreateCVCertRequest(); -} -#endif - diff --git a/actlibrary/OpenSUSE-11-x86_64/Release/include/actCertificateReg.h b/actlibrary/OpenSUSE-11-x86_64/Release/include/actCertificateReg.h deleted file mode 100644 index afd7a75..0000000 --- a/actlibrary/OpenSUSE-11-x86_64/Release/include/actCertificateReg.h +++ /dev/null @@ -1,56 +0,0 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actCertificateReg.h -// Product: cv act library -// Purpose: -// -// Copyright: (c) 2000 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_CERTIFICATEREG_H -#define ACT_CERTIFICATEREG_H - -namespace act -{ - class ICertificate; - class ICRL; - - typedef ICertificate* (*CreateCertificatePtr)(); - typedef ICRL* (*CreateCRLPtr)(); - - struct CertificateMapEntry { - const char* Name; - CreateCertificatePtr CreatePtr; - }; - - struct CRLMapEntry { - const char* Name; - CreateCRLPtr CreatePtr; - }; - - class CertificateReg - { - public: - static ICertificate* CreateCertificate(const char* name); - static CreateCertificatePtr GetCreatePointer(const char* name); - static const char* GetName(void* createptr); - static const char* GetNextName(const char* name); - static void Insert(const char* name, CreateCertificatePtr createptr); - static void Insert(const CertificateMapEntry* certmap); - }; - - class CRLReg - { - public: - static ICRL* CreateCRL(const char* name); - static CreateCRLPtr GetCreatePointer(const char* name); - static const char* GetName(void* createptr); - static const char* GetNextName(const char* name); - static void Insert(const char* name, CreateCRLPtr createptr); - static void Insert(const CRLMapEntry* certmap); - }; -} -#endif - diff --git a/actlibrary/OpenSUSE-11-x86_64/Release/include/actDate.h b/actlibrary/OpenSUSE-11-x86_64/Release/include/actDate.h deleted file mode 100644 index 5d08c74..0000000 --- a/actlibrary/OpenSUSE-11-x86_64/Release/include/actDate.h +++ /dev/null @@ -1,109 +0,0 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actDate.h -// Product: cv act library -// Purpose: The Date function used in act Library -// -// Copyright: (c) 2000 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_Date_h -#define ACT_Date_h - -#include "actBasics.h" - -#if defined(ACT_POSIX) -# include -#endif - -namespace act -{ - class Blob; - - class Date - { - public: - Date(); //today - Date(int day, int month ,int year); - Date(int day, int month, int year, int hour, int minute, int sec); - Date(const Blob& der); - - Date(const unsigned char* ch, const unsigned int size); - - Date& SetToday(); - - int GetDay() const { return m_day; } - int GetMonth() const { return m_month; } - int GetYear() const { return m_year; } - int GetHour() const { return m_hour; } - int GetMinute() const { return m_min; } - int GetSecond() const { return m_sec; } - - void IgnoreTime(bool b); // ignore time(hour, min,sec) in the operators - const Date& operator=(const Date&); - bool operator>(const Date&) const; - bool operator>=(const Date&) const; - bool operator<(const Date&) const; - bool operator<=(const Date&) const; - bool operator==(const Date&) const; - bool operator!=(const Date&) const; - - const Date& AddMonths(int m); - const Date& SubMonths(int m); - const Date& AddYears(int y); - const Date& SubYears(int y); - const Date& AddDays(int d); - const Date& SubDays(int d); - const Date& AddHours(int h); - const Date& SubHours(int h); - const Date& AddMinutes(int m); - const Date& SubMinutes(int m); - const Date& AddSecond(int m); - const Date& SubSecond(int m); - - int DayOfWeek() const; // 0:Sunday, 1=Monday ... 6=Saturday - int IsLeap(int y) const; // 1:leapyear, 0:else - int DaysPerMonth(int m, int y) const; - long GetDifference(const Date& d2) const; - - long GetJulian() const; - long GetJulian(int d, int m, int y) const; - void ConvertFromJulian(long jd, int& d, int& m, int& y); - - Blob Encode() const; - size_t Encode(Blob& encoded) const; - - Blob EncodeToGeneralizedTime() const; - Blob GetGeneralizedTimeString() const; - Blob GetLocalTimeString() const; // fixed format: "DD/MM/YYYY HH:MM:SS" - - operator Blob() const; - - int GetDayFromWeekDay (int weekday, int year, int month, int which); - -#if defined(ACT_POSIX) - static void copyDatetm(act::Date a, struct tm& b); - static void copytmDate(struct tm a, act::Date& b); -#endif - - private: - Date& SetYear(int year) { m_year = year; return *this; } - Date& SetMonth(int month) { m_month = month; return *this; } - Date& SetDay(int day) { m_day = day; return *this; } - Date& SetHour(int hour) { m_hour = hour; return *this; } - Date& SetMinute(int minute) { m_min = minute; return *this; } - Date& SetSecond(int sec) { m_sec = sec; return *this; } - bool IsValid() const; - void AdjustDays(); - - private: - int m_day, m_month, m_year; - int m_hour, m_min, m_sec; - bool m_ignore_time; - }; - -} // namespace act - -#endif // ACT_Date_h diff --git a/actlibrary/OpenSUSE-11-x86_64/Release/include/actDebug.h b/actlibrary/OpenSUSE-11-x86_64/Release/include/actDebug.h deleted file mode 100644 index 623c00a..0000000 --- a/actlibrary/OpenSUSE-11-x86_64/Release/include/actDebug.h +++ /dev/null @@ -1,295 +0,0 @@ -////////////////////////////////////////////////////////////////////////// -// Name: actDebug.h -// Product: cv act library -// Purpose: Integration of globally available debug macros and functions -// -// Copyright: (c) 2005 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -// -// Autor: Markus Tesche (MTE) -// Date: 12/15/2005 -////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_Debug_h -#define ACT_Debug_h - -#include "actEnv.h" -#include "actBasics.h" -#include "actException.h" - -// -// ACT_NOOP use for semicolon terminated non operating macros. -#ifdef _MSC_VER -# if _MSC_VER >= 1210 -# define ACT_NOOP __noop -# else -# define ACT_NOOP ((void) 0) -# endif -// MSVC specific -# if !defined(DEBUG_NEW) -# if defined(_DEBUG) && !defined(_WIN32_WCE) -# include -# define DEBUG_NEW new(_NORMAL_BLOCK, __FILE__, __LINE__) -# else -# define DEBUG_NEW new -# endif -# endif -#else -# define ACT_NOOP ((void) 0) -# define DEBUG_NEW new -#endif - -// -// Declare all debug macros for release builds. -#ifdef _DEBUG -# ifdef UNDER_CE -# define ACT_ASSERT ACT_NOOP -# define ACT_ASSERT_ALWAYS(m, l, f) ACT_NOOP -# endif -# define ACT_DEBUG 1 -# define ACT_DEBUG_PARAM(p) p -# define ACT_DEBUG_SOURCE() act::FileAndLine(__FILE__, __LINE__) -# define ACT_NOT_IMPLEMENTED(m, w) throw act::NotImplementedException(m, w) << ACT_DEBUG_SOURCE() -#else -# define ACT_DEBUG 0 -# define ACT_DEBUG_SOURCE() act::FileAndLine() -# define ACT_NOT_IMPLEMENTED(m, w) throw act::NotImplementedException(m, w) -# if defined(_MSC_VER) && _MSC_VER < 1210 -# define ACT_DEBUG_PARAM(p) p -# define ACT_TRACE ACT_NOOP -# define ACT_TRACELOG ACT_NOOP -# define ACT_ASSERT ACT_NOOP -# else -# define ACT_DEBUG_PARAM(p) -# define ACT_TRACE(...) ACT_NOOP -# define ACT_TRACELOG(...) ACT_NOOP -# define ACT_ASSERT(e) ACT_NOOP -# endif -# define ACT_ASSERT_ALWAYS(m, l, f) ACT_NOOP -# define ACT_ASSERT_ON_THROW(m) ACT_NOOP -#endif // _DEBUG - -// -// ACT_ASSERT -#ifndef ACT_ASSERT -# if defined(_MSC_VER) -# include -# define ACT_ASSERT _ASSERTE -# else -# include -# define ACT_ASSERT assert -# endif -#endif // ACT_ASSERT - -// -// ACT_ASSERT_ALWAYS -#ifndef ACT_ASSERT_ALWAYS -# if defined(_MSC_VER) -# include -# define ACT_ASSERT_ALWAYS(m, f, l) _RPT_BASE((_CRT_ASSERT, f, l, 0, m)) -# else -# include -# define ACT_ASSERT_ALWAYS(m, f, l) assert(f == 0) -# endif -#endif // ACT_ASSERT_ALWAYS - -// -// ACT_ASSERT_ON_THROW -#ifndef ACT_ASSERT_ON_THROW -namespace act -{ - class CheckForNoThrow : public FileAndLine - { - public: - CheckForNoThrow(const char* msg, const char* file = 0, int line = 0) - : FileAndLine(file, line) - , m_msg(msg) - { } - - ~CheckForNoThrow() - { - const bool uc = ::std::uncaught_exception(); - if(uc == true) ACT_ASSERT_ALWAYS(m_msg, file(), line()); - } - - private: - const char* m_msg; - }; - -} // namespace act - -#define ACT_ASSERT_ON_THROW(m) act::CheckForNoThrow __dbg_check_for_nothrow(m, __FILE__, __LINE__) -#endif // ACT_ASSERT_ON_THROW - -// -// ACT_ENABLE_TRACE -#ifdef ACT_ENABLE_TRACE -# ifdef ACT_TRACE -# undef ACT_TRACE -# endif -# ifdef ACT_TRACELOG -# undef ACT_TRACELOG -# endif -#endif - -// -// ACT_TRACE -#ifndef ACT_TRACE - -#ifndef ACT_TRACE_BUFFER -#define ACT_TRACE_BUFFER 1024 -#endif - -#include -#include -#include - -#if defined(ACT_WIN32) || defined(ACT_WIN32_WCE) -#include - -namespace act -{ - struct Trace - { - void __cdecl operator()(const char* pFormat, va_list ptr, const char* pFileName = 0, int nLine = 0) const - { - char szBuf[ACT_TRACE_BUFFER] = {'\0'}; - int nLen = 0; - - if(pFileName != 0) { - int nTemp = _snprintf(szBuf + nLen, ACT_TRACE_BUFFER - nLen, "%s(%d) : ", pFileName, nLine); - if(nTemp < 0) - nLen = ACT_TRACE_BUFFER; - else nLen += nTemp; - } - - _vsnprintf(szBuf + nLen, ACT_TRACE_BUFFER - nLen, pFormat, ptr); - szBuf[ACT_TRACE_BUFFER - 1] = 0; -#ifndef UNDER_CE - ::OutputDebugStringA(szBuf); -#else - { - wchar_t wtmp[ACT_TRACE_BUFFER]; - mbstowcs(wtmp, szBuf, ACT_TRACE_BUFFER); - ::OutputDebugStringW(wtmp); - } -#endif - } - }; - -} // namespace act - -#elif defined(ACT_POSIX) -#include - -namespace act -{ - struct Trace - { - void operator()(const char* pFormat, va_list ptr, const char* pFileName = 0, int nLine = 0) const - { - char szBuf[ACT_TRACE_BUFFER] = {'\0'}; - int nLen = 0; - - if(pFileName != 0) { - int nTemp = snprintf(szBuf + nLen, ACT_TRACE_BUFFER - nLen, "%s(%d) : ", pFileName, nLine); - if(nTemp < 0) - nLen = ACT_TRACE_BUFFER; - else nLen += nTemp; - } - - vsnprintf(szBuf + nLen, ACT_TRACE_BUFFER - nLen, pFormat, ptr); - szBuf[ACT_TRACE_BUFFER - 1] = 0; - - syslog(LOG_DEBUG, "%s", szBuf); - } - }; - -} // namespace act - -#else -# error act::Trace not implemented for this platform - -#endif - -// -// act::TraceFileAndLine -namespace act -{ - class TraceFileAndLine : public FileAndLine - { - public: - TraceFileAndLine() { } - TraceFileAndLine(const FileAndLine& fl) : FileAndLine(fl) { } - TraceFileAndLine(const char * file, int line) : FileAndLine(file, line) { } - - inline void setFileAndLine(const FileAndLine* fl) - { - if(fl != 0) *static_cast(this) = *fl; - } - - inline TraceFileAndLine& operator<<(const FileAndLine& fl) - { - *static_cast(this) = fl; - return *this; - } - - // - // default va_list based trace. - void operator()(const char* pFormat, ...) - { - va_list ptr; va_start(ptr, pFormat); - Trace()(pFormat, ptr, file(), line()); - va_end(ptr); - } - - // - // Exception trace. - void operator()(const Exception& e) - { - setFileAndLine(dynamic_cast(&e)); - switch(e.GetId()) - { - case eiNoSuchAlgorithmException: - (*this)("%s['0x%08x', '%&s', '%s', '%s']\n", - typeid(e).name(), - static_cast(e).algorithm(), - e.code(), e.what(), e.where()); - break; - - default: - (*this)("%s['0x%08x', '%s', '%s']\n", - typeid(e).name(), e.code(), e.what(), e.where()); - } - } - - void operator()(const Exception& e, const char* pName) - { - setFileAndLine(dynamic_cast(&e)); - switch(e.GetId()) - { - case eiNoSuchAlgorithmException: - (*this)("%s : %s['0x%08x', '%s', '%s', '%s']\n", pName, - typeid(e).name(), - e.code(), - static_cast(e).algorithm(), - e.what(), e.where()); - break; - - default: - (*this)("%s : %s['0x%08x', '%s', '%s']\n", pName, - typeid(e).name(), - e.code(), e.what(), e.where()); - } - } - }; - -} // namespace act - -#define ACT_TRACE act::TraceFileAndLine(__FILE__, __LINE__) -#define ACT_TRACELOG act::TraceFileAndLine() - -#endif // ACT_TRACE -#endif // ACT_Debug_h diff --git a/actlibrary/OpenSUSE-11-x86_64/Release/include/actDefaultRNG.h b/actlibrary/OpenSUSE-11-x86_64/Release/include/actDefaultRNG.h deleted file mode 100644 index 6d44af6..0000000 --- a/actlibrary/OpenSUSE-11-x86_64/Release/include/actDefaultRNG.h +++ /dev/null @@ -1,24 +0,0 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actDefaultRNG.h -// Product: cv act library -// Purpose: actDefaultRNG.h provides defaults for the class IRNGAlg. -// -// Copyright: (c) 2000 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_DefaultRNG_h -#define ACT_DefaultRNG_h -namespace act -{ - class IRNGAlg; - typedef IRNGAlg* (*CreateRNGPtr)(); - - extern CreateRNGPtr CreateFastRNG; - extern CreateRNGPtr CreateStrongRNG; -} - -#endif - diff --git a/actlibrary/OpenSUSE-11-x86_64/Release/include/actDerivatorKit.h b/actlibrary/OpenSUSE-11-x86_64/Release/include/actDerivatorKit.h deleted file mode 100644 index 8339d09..0000000 --- a/actlibrary/OpenSUSE-11-x86_64/Release/include/actDerivatorKit.h +++ /dev/null @@ -1,27 +0,0 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actDerivatorKit.h -// Product: cv act library -// Purpose: declaration of all factory functions -// -// Copyright: (c) 2006 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_DerivatorKit_h -#define ACT_DerivatorKit_h - -namespace act -{ - class IDerivator; - class Blob; - - IDerivator* CreateKDF1(); - IDerivator* CreateX963KDF(); - IDerivator* CreatePBKDF1(); - IDerivator* CreatePBKDF2(); - IDerivator* CreateEACKDF(); -} -#endif - diff --git a/actlibrary/OpenSUSE-11-x86_64/Release/include/actDerivatorReg.h b/actlibrary/OpenSUSE-11-x86_64/Release/include/actDerivatorReg.h deleted file mode 100644 index 32fe672..0000000 --- a/actlibrary/OpenSUSE-11-x86_64/Release/include/actDerivatorReg.h +++ /dev/null @@ -1,41 +0,0 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actDerivatorReg.h -// Product: cv act library -// Purpose: registry for the factory functions in actDerivatorKit.h -// -// Copyright: (c) 2000 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_DerivatorReg_h -#define ACT_DerivatorReg_h - -namespace act -{ - class IDerivator; - class Blob; - - typedef IDerivator* (*CreateDerivatorPtr)(); - - struct DerivatorMapEntry - { - const char* Name; - CreateDerivatorPtr CreatePtr; - }; - - class DerivatorReg - { - public: - static IDerivator* CreateDerivator(const char* name); - static CreateDerivatorPtr GetCreatePointer(const char* name); - static const char* GetName(void* createptr); - static const char* GetNextName(const char* name); - static void Insert(const char* name, CreateDerivatorPtr createptr); - static void Insert(const DerivatorMapEntry* derivatormap); - }; - -} // namespace act - -#endif // ACT_DerivatorReg_h diff --git a/actlibrary/OpenSUSE-11-x86_64/Release/include/actEMSAKit.h b/actlibrary/OpenSUSE-11-x86_64/Release/include/actEMSAKit.h deleted file mode 100644 index 460f614..0000000 --- a/actlibrary/OpenSUSE-11-x86_64/Release/include/actEMSAKit.h +++ /dev/null @@ -1,28 +0,0 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actEMSAKit.h -// Product: cv act library -// Purpose: declaration of all factory functions -// -// Copyright: (c) 2000 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_EMSAKit_h -#define ACT_EMSAKit_h - -namespace act -{ - class IEMSAAlg; - - IEMSAAlg* CreateEMSA1(); - IEMSAAlg* CreatePKCS1V1_5EMSA(); - IEMSAAlg* CreateTLS_EMSA(); - IEMSAAlg* CreatePKCS1_PSS_EMSA(); - - IEMSAAlg* CreateDummyEMSA(); - -} -#endif - diff --git a/actlibrary/OpenSUSE-11-x86_64/Release/include/actEMSAReg.h b/actlibrary/OpenSUSE-11-x86_64/Release/include/actEMSAReg.h deleted file mode 100644 index c5e92f0..0000000 --- a/actlibrary/OpenSUSE-11-x86_64/Release/include/actEMSAReg.h +++ /dev/null @@ -1,40 +0,0 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actEMSAReg.h -// Product: cv act library -// Purpose: registry for factory functions in actEMSAKit.h -// -// Copyright: (c) 2000 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_EMSAReg_h -#define ACT_EMSAReg_h - -namespace act -{ - class IEMSAAlg; - - typedef IEMSAAlg* (*CreateEMSAPtr)(); - - struct EMSAMapEntry - { - const char* Name; - CreateEMSAPtr CreatePtr; - }; - - class EMSAReg - { - public: - static IEMSAAlg* CreateEMSAAlg(const char* name); - static CreateEMSAPtr GetCreatePointer(const char* name); - static const char* GetName(void* createptr); - static const char* GetNextName(const char* name); - static void Insert(const char* name, CreateEMSAPtr createptr); - static void Insert(const EMSAMapEntry* map); - }; - -} // namespace act - -#endif // ACT_EMSAReg_h diff --git a/actlibrary/OpenSUSE-11-x86_64/Release/include/actEnv.h b/actlibrary/OpenSUSE-11-x86_64/Release/include/actEnv.h deleted file mode 100644 index 6a319b8..0000000 --- a/actlibrary/OpenSUSE-11-x86_64/Release/include/actEnv.h +++ /dev/null @@ -1,126 +0,0 @@ -////////////////////////////////////////////////////////////////////////// -// Name: actEnv.h -// Product: cv act library -// Purpose: Operating System environment -// -// Copyright: (c) 2009 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -// -// Autor: Markus Tesche -// Date: 04/23/2009 -////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_Env_h -#define ACT_Env_h - -// 64Bit detection ... -#if defined(_WIN64) || \ - defined(__LP64__) || \ - defined(__alpha__) || \ - defined(__ia64__) || \ - defined(__ppc64__) || \ - defined(__s390x__) || \ - defined(__x86_64__) -# define ACT_64 -#endif - -// cygwin -#if defined(__CYGWIN__) -# define ACT_CYGWIN -#endif - -// mingw -#if defined(__MINGW32__) -# define ACT_MINGW -#endif - -// Platform detection ... -#if defined(ACT_WIN32) || \ - defined(ACT_POSIX) || \ - defined(ACT_SOLARIS) || \ - defined(ACT_MACOSX) || \ - defined(ACT_WIN32_WCE) -// do nothing - -#elif defined(_WIN32_WCE) && _WIN32_WCE >= 0x500 -# define ACT_WIN32 -# define ACT_WIN32_WCE - -#elif defined(WIN32) && !defined(__CYGWIN__) -# define ACT_WIN32 - -#elif defined(_MSC_VER) || \ - defined(__BORLANDC__) || \ - defined(__BCPLUSPLUS__) || \ - defined(__MINGW32__) -# define ACT_WIN32 - -#elif defined(__linux__) || \ - defined(__CYGWIN__) || \ - defined(__FreeBSD__) || defined(__NetBSD__) || defined(__OpenBSD__) || \ - defined(__hpux) || \ - defined(__sgi) -# define ACT_POSIX - -#elif defined(_POSIX_SOURCE) || \ - defined(_XOPEN_SOURCE) -# define ACT_POSIX - -#elif defined(__sun) -# define ACT_POSIX -# define ACT_SOLARIS - -#elif defined(__APPLE__) && defined(__MACH__) -# define ACT_POSIX -# define ACT_MACOSX - -#else -# error unable to deteced system environment - -#endif - -// -// ACT_DEPRECATED definition -#if defined(_MSC_VER) -# define ACT_MSC -# if _MSC_FULL_VER >= 140050320 -# define ACT_DEPRECATED(msg) __declspec(deprecated("is deprecated: " msg)) -# else -# define ACT_DEPRECATED(msg) __declspec(deprecated) -# endif -# define ACT_STDEXT_NS std -# define ACT_STDEXT_INC(file) - -#elif defined(__GNUC__) -# define ACT_GCC -# if (__GNUC__ > 3) || (__GNUC__ == 3 && __GNUC_MINOR__ >= 1) -# define ACT_DEPRECATED(msg) __attribute__((__deprecated__)) -# endif -# define ACT_STDEXT_NS __gnu_cxx -# define ACT_STDEXT_INC(file) - -#endif - -#if !defined(ACT_DEPRECATED) -# define ACT_DEPRECATED(msg) -#endif - -// -// DLL/Shared Object symbol export/import attribte -#if defined(ACT_MSC) -# define ACT_DYNLIB_EXPORT _declspec(dllexport) -# define ACT_DYNLIB_IMPORT _declspec(dllimport) - -#elif defined(ACT_GCC) && !defined(ACT_MINGW) -# define ACT_DYNLIB_EXPORT __attribute__((visibility("default"))) -# define ACT_DYNLIB_IMPORT - -#else -# define ACT_DYNLIB_EXPORT -# define ACT_DYNLIB_IMPORT - -#endif - -#endif // ACT_Env_h diff --git a/actlibrary/OpenSUSE-11-x86_64/Release/include/actException.h b/actlibrary/OpenSUSE-11-x86_64/Release/include/actException.h deleted file mode 100644 index caa9636..0000000 --- a/actlibrary/OpenSUSE-11-x86_64/Release/include/actException.h +++ /dev/null @@ -1,1112 +0,0 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actException.h -// Product: cv act library -// Purpose: exception hierarchy -// -// Copyright: (c) 2000 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_Exception_h -#define ACT_Exception_h - -#include -#include - -#include "actMove.h" -#include "actBlob.h" - -namespace act -{ - // --------------------------------------------------------------------------- - enum ExceptionId - { - eiException = 0, - eiBadException = eiException + 1, - eiNullPointerException, - eiOutOfRangeException, - - eiBadCastException = eiException + 10, - eiBadNumericCast, - eiNegativeOverflow, - eiPositiveOverflow, - - eiRuntimeException = eiException + 20, - eiBadAllocException, - eiNotSupportedException, - eiNotImplementedException, - eiInvalidParameterException, - eiSynchronizationException, - - eiLogicalException = eiException + 40, - eiASN1Exception, - eiNoSuchDLLException, - eiPasswordException, - eiArithmeticException, - eiMessageDigestException, - eiPaddingException, - eiSignatureException, - - eiAlgorithmException = eiException + 80, - eiInvalidAlgorithmParameterException, - eiNoSuchAlgorithmException, - - eiCertificateException = eiException + 80, - eiInvalidCertificateException, - eiCertificateEncodingException, - eiCertificateExpiredException, - eiCertificateNotYetValidException, - eiCertificateParsingException, - - eiKeyException = eiException + 100, - eiInvalidKeyException, - eiKeyManagementException, - - eiEACException = eiException + 120, - eiEACDataException, - eiEACMRZException, - eiEACCVCertException, - - eiSmartcardException = eiException + 140, - eiCardOutOfMemoryException, - eiInvalidPinException, - eiPinLockedException, - eiPinExpiredException, - eiPinLenRangeException, - eiInvalidCRKeyException, - eiInvalidCardException, - eiInvalidAuthException, - eiInvalidAuthObjectException, - eiAuthProtocolException, - eiAuthConstrainedException, - eiSecureMessagingException, - eiSMWrapException, - eiSMUnwrapException, - - eiSubsystemException = eiException + 180, - eiNoSuchSubsystemException, - }; - -#ifndef UNDER_CE_30 - - // --------------------------------------------------------------------------- - class FileAndLine - { - public: - FileAndLine(const char* file = 0, int line = 0) - : m_line(line) - , m_file(file) - { } - - FileAndLine(const FileAndLine& other) - : m_line(other.line()) - , m_file(other.file()) - { } - - int line() const { return m_line; } - const char* file() const { return m_file; } - - // assignment operators. - FileAndLine& operator=(const FileAndLine& other) - { - m_line = other.line(); - m_file = other.file(); - return *this; - } - - private: - int m_line; - const char* m_file; - }; - - // - // base class for all exceptions thrown by cv act library - // --------------------------------------------------------------------------- - class Exception - { - public: - typedef Exception Type; - - explicit Exception(const char* msg = 0, const char* where = 0, ulong code = 0) - : m_what(msg) - , m_where(where) - , m_code(code) - { } - - explicit Exception(const std::exception& other) - : m_what(other.what()) - , m_where(0) - , m_code(0) - { } - - template - explicit Exception(const T& other) - : m_what(other.what()) - , m_where(other.where()) - , m_code(0) - { } - - virtual ~Exception() - { } - - template - _ExceptionT* TypedClone() const - { - return new(std::nothrow) _ExceptionT(m_what, m_where, m_code); - } - - template - _ExceptionT* TypedClone(const ParamT& param) const - { - return new(std::nothrow) _ExceptionT(m_what, m_where, param); - } - - template - void TypedThrow() const { throw _ExceptionT(m_what, m_where, m_code); } - - template - void TypedThrow(const ParamT& param) const { throw _ExceptionT(m_what, m_where, param); } - - virtual Exception* Clone() const { return new(std::nothrow) Exception(*this); } - virtual int GetId() const { return eiException; } - virtual void Throw() const { throw Exception(*this); } - - const char* what() const { return m_what != 0 ? m_what : ""; } - const char* where() const { return m_where != 0 ? m_where : ""; } - ulong code() const { return m_code; } - - template - friend ExceptionT& modify(ExceptionT& e, const char* what, const char* where) - { - if(what != 0) e.m_what = what; - if(where != 0) e.m_where = where; - return e; - } - - protected: - const char* m_what; - const char* m_where; - ulong m_code; - }; - - // - // ExceptionType<> - // --------------------------------------------------------------------------- - template - < - const int _exceptionId, - class ExceptionT, - class BaseT, - typename OtherT = void - > - class ExceptionType : public BaseT, public OtherT - { - protected: - typedef BaseT BaseType; - typedef OtherT OtherType; - enum { exceptionId = _exceptionId }; - - public: - ExceptionType(const char* msg, const char* where, ulong code) - : BaseType(msg, where, code) - , OtherT() - { } - - ExceptionT& operator<<(const OtherType& other) - { - *static_cast(this) = other; - return *static_cast(this); - } - - template - _ExceptionT* TypedClone() const - { - _ExceptionT* e = new(std::nothrow) _ExceptionT(BaseT::m_what, BaseT::m_where, BaseT::m_code); - if(e != 0) *e << *this; - return e; - } - - virtual void Throw() const { throw ExceptionT(BaseT::m_what, BaseT::m_where, BaseT::m_code); } - virtual int GetId() const { return exceptionId; } - }; - - template - < - const int _exceptionId, - class ExceptionT, - class BaseT - > - class ExceptionType<_exceptionId, ExceptionT, BaseT, void> : public BaseT - { - protected: - typedef BaseT BaseType; - enum { exceptionId = _exceptionId }; - - public: - ExceptionType(const char* msg, const char* where, ulong code) - : BaseType(msg, where, code) - { } - - virtual void Throw() const { throw ExceptionT(BaseT::m_what, BaseT::m_where, BaseT::m_code); } - virtual int GetId() const { return exceptionId; } - }; - - // --------------------------------------------------------------------------- - class BadException : - public ExceptionType - { - public: - typedef ExceptionType BaseType; - typedef BadException Type; - using BaseType::exceptionId; - - BadException(const char* msg = 0, const char* where = 0, ulong code = 0) - : BaseType(msg, where, code) - { } - }; - - class NullPointerException : - public ExceptionType - { - public: - typedef ExceptionType BaseType; - typedef NullPointerException Type; - using BaseType::exceptionId; - - NullPointerException(const char* msg = 0, const char* where = 0, ulong code = 0) - : BaseType(msg, where, code) - { } - }; - - class OutOfRangeException : - public ExceptionType - { - public: - typedef ExceptionType BaseType; - typedef OutOfRangeException Type; - using BaseType::exceptionId; - - OutOfRangeException(const char* msg = 0, const char* where = 0, ulong code = 0) - : BaseType(msg, where, code) - { } - }; - - // --------------------------------------------------------------------------- - class BadCastException : - public ExceptionType - { - public: - typedef ExceptionType BaseType; - typedef BadCastException Type; - using BaseType::exceptionId; - - BadCastException(const char* msg = 0, const char* where = 0, ulong code = 0) - : BaseType(msg, where, code) - { } - }; - - class BadNumericCast : - public ExceptionType - { - public: - typedef ExceptionType BaseType; - typedef BadNumericCast Type; - using BaseType::exceptionId; - - BadNumericCast(const char* msg = 0, const char* where = 0, ulong code = 0) - : BaseType(msg, where, code) - { } - - template - void operator()(overflow_type overflow) - { - switch(eiBadNumericCast + overflow) - { - case eiNegativeOverflow: TypedThrow >(); - case eiPositiveOverflow: TypedThrow >(); - default: /* do nothing */; - } - } - }; - - // --------------------------------------------------------------------------- - class RuntimeException : - public ExceptionType - { - public: - typedef ExceptionType BaseType; - typedef RuntimeException Type; - using BaseType::exceptionId; - - RuntimeException(const char* msg = 0, const char* where = 0, ulong code = 0) - : BaseType(msg, where, code) - { } - }; - - class BadAllocException : - public ExceptionType - { - public: - typedef ExceptionType BaseType; - typedef BadAllocException Type; - using BaseType::exceptionId; - - BadAllocException(const char* msg = 0, const char* where = 0, ulong code = 0) - : BaseType(msg, where, code) - { } - }; - - class NotSupportedException : - public ExceptionType - { - public: - typedef ExceptionType BaseType; - typedef NotSupportedException Type; - using BaseType::exceptionId; - using BaseType::operator<<; - - explicit NotSupportedException(const char* msg = 0, const char* where = 0, ulong code = 0) - : BaseType(msg, where, code) - { } - - virtual Type* Clone() const { return TypedClone(); } - }; - - class NotImplementedException : - public ExceptionType - { - public: - typedef ExceptionType BaseType; - typedef NotImplementedException Type; - using BaseType::exceptionId; - using BaseType::operator<<; - - NotImplementedException(const char* msg = 0, const char* where = 0, ulong code = 0) - : BaseType(msg, where, code) - { } - - virtual Type* Clone() const { return TypedClone(); } - }; - - class InvalidParameterException : - public ExceptionType - { - public: - typedef ExceptionType BaseType; - typedef InvalidParameterException Type; - using BaseType::exceptionId; - using BaseType::operator<<; - - InvalidParameterException(const char* msg = 0, const char* where = 0, ulong code = 0) - : BaseType(msg, where, code) - { } - - virtual Type* Clone() const { return TypedClone(); } - }; - - class SynchronizationException : - public ExceptionType - { - public: - typedef ExceptionType BaseType; - typedef SynchronizationException Type; - using BaseType::exceptionId; - using BaseType::operator<<; - - SynchronizationException(const char* msg = 0, const char* where = 0, ulong code = 0) - : BaseType(msg, where, code) - { } - - virtual Type* Clone() const { return TypedClone(); } - }; - - // --------------------------------------------------------------------------- - class LogicalException : public Exception - { - public: - typedef Exception BaseType; - typedef LogicalException Type; - - LogicalException(const char* msg = 0, const char* where = 0, ulong code = 0) - : Exception(msg, where, code) - { } - - virtual Type* Clone() const { return TypedClone(); } - virtual void Throw() const { throw Type(m_what, m_where, m_code); } - virtual int GetId() const { return eiLogicalException; } - }; - - class ASN1Exception : public LogicalException - { - public: - typedef LogicalException BaseType; - typedef ASN1Exception Type; - - ASN1Exception(const char* msg = 0, const char* where = 0, ulong code = 0) - : LogicalException(msg, where, code) - { } - - virtual Type* Clone() const { return TypedClone(); } - virtual void Throw() const { throw Type(m_what, m_where, m_code); } - virtual int GetId() const { return eiASN1Exception; } - }; - - class NoSuchDLLException : public LogicalException - { - public: - typedef LogicalException BaseType; - typedef NoSuchDLLException Type; - - NoSuchDLLException(const char* msg = 0, const char* where = 0, ulong code = 0) - : LogicalException(msg, where, code) - { } - - virtual Type* Clone() const { return TypedClone(); } - virtual void Throw() const { throw Type(m_what, m_where, m_code); } - virtual int GetId() const { return eiNoSuchDLLException; } - }; - - class PasswordException : public LogicalException - { - public: - typedef LogicalException BaseType; - typedef PasswordException Type; - - PasswordException(const char* msg = 0, const char* where = 0, ulong code = 0) - : LogicalException(msg, where, code) - { } - - virtual Type* Clone() const { return TypedClone(); } - virtual void Throw() const { throw Type(m_what, m_where, m_code); } - virtual int GetId() const { return eiPasswordException; } - }; - - class ArithmeticException : public LogicalException - { - public: - typedef LogicalException BaseType; - typedef ArithmeticException Type; - - ArithmeticException(const char* msg = 0, const char* where = 0, ulong code = 0) - : LogicalException(msg, where, code) - { } - - virtual Type* Clone() const { return TypedClone(); } - virtual void Throw() const { throw Type(m_what, m_where, m_code); } - virtual int GetId() const { return eiArithmeticException; } - }; - - class MessageDigestException : public LogicalException - { - public: - typedef LogicalException BaseType; - typedef MessageDigestException Type; - - MessageDigestException(const char* msg = 0, const char* where = 0, ulong code = 0) - : LogicalException(msg, where, code) - { } - - virtual Type* Clone() const { return TypedClone(); } - virtual void Throw() const { throw Type(m_what, m_where, m_code); } - virtual int GetId() const { return eiMessageDigestException; } - }; - - class PaddingException : public LogicalException - { - public: - typedef LogicalException BaseType; - typedef PaddingException Type; - - PaddingException(const char* msg = 0, const char* where = 0, ulong code = 0) - : LogicalException(msg, where, code) - { } - - virtual Type* Clone() const { return TypedClone(); } - virtual void Throw() const { throw Type(m_what, m_where, m_code); } - virtual int GetId() const { return eiPaddingException; } - }; - - class SignatureException : public LogicalException - { - public: - typedef LogicalException BaseType; - typedef SignatureException Type; - - SignatureException(const char* msg = 0, const char* where = 0, ulong code = 0) - : LogicalException(msg, where, code) - { } - - virtual Type* Clone() const { return TypedClone(); } - virtual void Throw() const { throw Type(m_what, m_where, m_code); } - virtual int GetId() const { return eiSignatureException; } - }; - - // --------------------------------------------------------------------------- - class AlgorithmException : public LogicalException - { - public: - typedef LogicalException BaseType; - typedef AlgorithmException Type; - - AlgorithmException(const char* msg = 0, const char* where = 0, ulong code = 0) - : LogicalException(msg, where, code) - { } - - virtual Type* Clone() const { return TypedClone(); } - virtual void Throw() const { throw Type(m_what, m_where, m_code); } - virtual int GetId() const { return eiAlgorithmException; } - }; - - class InvalidAlgorithmParameterException : public AlgorithmException - { - public: - typedef AlgorithmException BaseType; - typedef InvalidAlgorithmParameterException Type; - - InvalidAlgorithmParameterException(const char* msg = 0, const char* where = 0, ulong code = 0) - : AlgorithmException(msg, where, code) - { } - - virtual Type* Clone() const { return TypedClone(); } - virtual void Throw() const { throw Type(m_what, m_where, m_code); } - virtual int GetId() const { return eiInvalidAlgorithmParameterException; } - }; - - class NoSuchAlgorithmException : public AlgorithmException - { - public: - typedef AlgorithmException BaseType; - typedef NoSuchAlgorithmException Type; - - NoSuchAlgorithmException(const char* msg = 0, const char* where = 0, const char* algorithm = 0) - : AlgorithmException(msg, where) - , m_algorithm(algorithm) - { - m_algorithm.push_back(0); - } - - // GCC 4.2.1 whats to have it - virtual ~NoSuchAlgorithmException() - { } - - virtual Type* Clone() const { return TypedClone(algorithm()); } - virtual void Throw() const { throw Type(m_what, m_where, algorithm()); } - virtual int GetId() const { return eiNoSuchAlgorithmException; } - - const char* algorithm() const { return reinterpret_cast(&m_algorithm[0]); } - - protected: - mutable Blob m_algorithm; - }; - - // --------------------------------------------------------------------------- - class CertificateException : public LogicalException - { - public: - typedef LogicalException BaseType; - typedef CertificateException Type; - - CertificateException(const char* msg = 0, const char* where = 0, ulong code = 0) - : LogicalException(msg, where, code) - { } - - virtual Type* Clone() const { return TypedClone(); } - virtual void Throw() const { throw Type(m_what, m_where, m_code); } - virtual int GetId() const { return eiCertificateException; } - }; - - class InvalidCertificateException : public CertificateException - { - public: - typedef CertificateException BaseType; - typedef InvalidCertificateException Type; - - InvalidCertificateException(const char* msg = 0, const char* where = 0, ulong code = 0) - : CertificateException(msg, where, code) - { } - - virtual Type* Clone() const { return TypedClone(); } - virtual void Throw() const { throw Type(m_what, m_where, m_code); } - virtual int GetId() const { return eiInvalidCertificateException; } - }; - - class CertificateEncodingException : public CertificateException - { - public: - typedef CertificateException BaseType; - typedef CertificateEncodingException Type; - - CertificateEncodingException(const char* msg = 0, const char* where = 0, ulong code = 0) - : CertificateException(msg, where, code) - { } - - virtual Type* Clone() const { return TypedClone(); } - virtual void Throw() const { throw Type(m_what, m_where, m_code); } - virtual int GetId() const { return eiCertificateEncodingException; } - }; - - class CertificateExpiredException : public CertificateException - { - public: - typedef CertificateException BaseType; - typedef CertificateExpiredException Type; - - CertificateExpiredException(const char* msg = 0, const char* where = 0, ulong code = 0) - : CertificateException(msg, where, code) - { } - - virtual Type* Clone() const { return TypedClone(); } - virtual void Throw() const { throw Type(m_what, m_where, m_code); } - virtual int GetId() const { return eiCertificateExpiredException; } - }; - - class CertificateNotYetValidException : public CertificateException - { - public: - typedef CertificateException BaseType; - typedef CertificateNotYetValidException Type; - - CertificateNotYetValidException(const char* msg = 0, const char* where = 0, ulong code = 0) - : CertificateException(msg, where, code) - { } - - virtual Type* Clone() const { return TypedClone(); } - virtual void Throw() const { throw Type(m_what, m_where, m_code); } - virtual int GetId() const { return eiCertificateNotYetValidException; } - }; - - class CertificateParsingException : public CertificateException - { - public: - typedef CertificateException BaseType; - typedef CertificateParsingException Type; - - CertificateParsingException(const char* msg = 0, const char* where = 0, ulong code = 0) - : CertificateException(msg, where, code) - { } - - virtual Type* Clone() const { return TypedClone(); } - virtual void Throw() const { throw Type(m_what, m_where, m_code); } - virtual int GetId() const { return eiCertificateParsingException; } - }; - - // --------------------------------------------------------------------------- - class KeyException : public LogicalException - { - public: - typedef LogicalException BaseType; - typedef KeyException Type; - - KeyException(const char* msg = 0, const char* where = 0, ulong code = 0) - : LogicalException(msg, where, code) - { } - - virtual Type* Clone() const { return TypedClone(); } - virtual void Throw() const { throw Type(m_what, m_where, m_code); } - virtual int GetId() const { return eiKeyException; } - }; - - class InvalidKeyException : public KeyException - { - public: - typedef KeyException BaseType; - typedef InvalidKeyException Type; - - InvalidKeyException(const char* msg = 0, const char* where = 0, ulong code = 0) - : KeyException(msg, where, code) - { } - - virtual Type* Clone() const { return TypedClone(); } - virtual void Throw() const { throw Type(m_what, m_where, m_code); } - virtual int GetId() const { return eiInvalidKeyException; } - }; - - class KeyManagementException : public KeyException - { - public: - typedef KeyException BaseType; - typedef KeyManagementException Type; - - KeyManagementException(const char* msg = 0, const char* where = 0, ulong code = 0) - : KeyException(msg, where, code) - { } - - virtual Type* Clone() const { return TypedClone(); } - virtual void Throw() const { throw Type(m_what, m_where, m_code); } - virtual int GetId() const { return eiKeyManagementException; } - }; - - // --------------------------------------------------------------------------- - class EACException : public LogicalException - { - public: - typedef LogicalException BaseType; - typedef EACException Type; - - EACException(const char* msg = 0, const char* where = 0, ulong code = 0) - : LogicalException(msg, where, code) - { } - - virtual Type* Clone() const { return TypedClone(); } - virtual void Throw() const { throw Type(m_what, m_where, m_code); } - virtual int GetId() const { return eiEACException; } - }; - - class EACDataException : public EACException - { - public: - typedef EACException BaseType; - typedef EACDataException Type; - - EACDataException(const char* msg = 0, const char* where = 0, ulong code = 0) - : EACException(msg, where, code) - { } - - virtual Type* Clone() const { return TypedClone(); } - virtual void Throw() const { throw Type(m_what, m_where, m_code); } - virtual int GetId() const { return eiEACDataException; } - }; - - class EACMRZException : public EACDataException - { - public: - typedef EACDataException BaseType; - typedef EACMRZException Type; - - EACMRZException(const char* msg = 0, const char* where = 0, ulong code = 0) - : EACDataException(msg, where, code) - { } - - virtual Type* Clone() const { return TypedClone(); } - virtual void Throw() const { throw Type(m_what, m_where, m_code); } - virtual int GetId() const { return eiEACMRZException; } - }; - - class EACCVCertException : public EACDataException - { - public: - typedef EACDataException BaseType; - typedef EACCVCertException Type; - - EACCVCertException(const char* msg = 0, const char* where = 0, ulong code = 0) - : EACDataException(msg, where, code) - { } - - virtual Type* Clone() const { return TypedClone(); } - virtual void Throw() const { throw Type(m_what, m_where, m_code); } - virtual int GetId() const { return eiEACCVCertException; } - }; - - // --------------------------------------------------------------------------- - class SmartcardException : public LogicalException - { - public: - typedef LogicalException BaseType; - typedef SmartcardException Type; - - SmartcardException(const char* msg = 0, const char* where = 0, ulong code = 0) - : LogicalException(msg, where, code) - { } - - virtual Type* Clone() const { return TypedClone(); } - virtual void Throw() const { throw Type(m_what, m_where, m_code); } - virtual int GetId() const { return eiSmartcardException; } - }; - - class CardOutOfMemoryException : public SmartcardException - { - public: - typedef SmartcardException BaseType; - typedef CardOutOfMemoryException Type; - - CardOutOfMemoryException(const char* msg = 0, const char* where = 0, ulong code = 0) - : SmartcardException(msg, where, code) - { } - - virtual Type* Clone() const { return TypedClone(); } - virtual void Throw() const { throw Type(m_what, m_where, m_code); } - virtual int GetId() const { return eiCardOutOfMemoryException; } - }; - - class InvalidPinException : public SmartcardException - { - public: - typedef SmartcardException BaseType; - typedef InvalidPinException Type; - - InvalidPinException(const char* msg = 0, const char* where = 0, ulong code = 0) - : SmartcardException(msg, where, code) - { } - - virtual Type* Clone() const { return TypedClone(); } - virtual void Throw() const { throw Type(m_what, m_where, m_code); } - virtual int GetId() const { return eiInvalidPinException; } - }; - - class PinLockedException : public SmartcardException - { - public: - typedef SmartcardException BaseType; - typedef PinLockedException Type; - - PinLockedException(const char* msg = 0, const char* where = 0, ulong code = 0) - : SmartcardException(msg, where, code) - { } - - virtual Type* Clone() const { return TypedClone(); } - virtual void Throw() const { throw Type(m_what, m_where, m_code); } - virtual int GetId() const { return eiPinLockedException; } - }; - - class PinExpiredException : public SmartcardException - { - public: - typedef SmartcardException BaseType; - typedef PinExpiredException Type; - - PinExpiredException(const char* msg = 0, const char* where = 0, ulong code = 0) - : SmartcardException(msg, where, code) - { } - - virtual Type* Clone() const { return TypedClone(); } - virtual void Throw() const { throw Type(m_what, m_where, m_code); } - virtual int GetId() const { return eiPinExpiredException; } - }; - - class PinLenRangeException : public SmartcardException - { - public: - typedef SmartcardException BaseType; - typedef PinLenRangeException Type; - - PinLenRangeException(const char* msg = 0, const char* where = 0, ulong code = 0) - : SmartcardException(msg, where, code) - { } - - virtual Type* Clone() const { return TypedClone(); } - virtual void Throw() const { throw Type(m_what, m_where, m_code); } - virtual int GetId() const { return eiPinLenRangeException; } - }; - - class InvalidCRKeyException : public SmartcardException - { - public: - typedef SmartcardException BaseType; - typedef InvalidCRKeyException Type; - - InvalidCRKeyException(const char* msg = 0, const char* where = 0, ulong code = 0) - : SmartcardException(msg, where, code) - { } - - virtual Type* Clone() const { return TypedClone(); } - virtual void Throw() const { throw Type(m_what, m_where, m_code); } - virtual int GetId() const { return eiInvalidCRKeyException; } - }; - - class InvalidCardException : public SmartcardException - { - public: - typedef SmartcardException BaseType; - typedef InvalidCardException Type; - - InvalidCardException(const char* msg = 0, const char* where = 0, ulong code = 0) - : SmartcardException(msg, where, code) - { } - - virtual Type* Clone() const { return TypedClone(); } - virtual void Throw() const { throw Type(m_what, m_where, m_code); } - virtual int GetId() const { return eiInvalidCardException; } - }; - - class InvalidAuthException : public SmartcardException - { - public: - typedef SmartcardException BaseType; - typedef InvalidAuthException Type; - - InvalidAuthException(const char* msg = 0, const char* where = 0, ulong code = 0) - : SmartcardException(msg, where, code) - { } - - virtual Type* Clone() const { return TypedClone(); } - virtual void Throw() const { throw Type(m_what, m_where, m_code); } - virtual int GetId() const { return eiInvalidAuthException; } - }; - - class InvalidAuthObjectException : public SmartcardException - { - public: - typedef SmartcardException BaseType; - typedef InvalidAuthObjectException Type; - - InvalidAuthObjectException(const char* msg = 0, const char* where = 0, ulong code = 0) - : SmartcardException(msg, where, code) - { } - - virtual Type* Clone() const { return TypedClone(); } - virtual void Throw() const { throw Type(m_what, m_where, m_code); } - virtual int GetId() const { return eiInvalidAuthObjectException; } - }; - - class AuthProtocolException : public SmartcardException - { - public: - typedef SmartcardException BaseType; - typedef AuthProtocolException Type; - - AuthProtocolException(const char* msg = 0, const char* where = 0, ulong code = 0) - : SmartcardException(msg, where, code) - { } - - virtual Type* Clone() const { return TypedClone(); } - virtual void Throw() const { throw Type(m_what, m_where, m_code); } - virtual int GetId() const { return eiAuthProtocolException; } - }; - - class AuthConstrainedException : public SmartcardException - { - public: - typedef SmartcardException BaseType; - typedef AuthConstrainedException Type; - - AuthConstrainedException(const char* msg = 0, const char* where = 0, ulong code = 0) - : SmartcardException(msg, where, code) - { } - - virtual Type* Clone() const { return TypedClone(); } - virtual void Throw() const { throw Type(m_what, m_where, m_code); } - virtual int GetId() const { return eiAuthConstrainedException; } - }; - - class SecureMessagingException : public SmartcardException - { - public: - typedef SmartcardException BaseType; - typedef SecureMessagingException Type; - - SecureMessagingException(const char* msg = 0, const char* where = 0, ulong code = 0) - : SmartcardException(msg, where, code) - { } - - virtual Type* Clone() const { return TypedClone(); } - virtual void Throw() const { throw Type(m_what, m_where, m_code); } - virtual int GetId() const { return eiSecureMessagingException; } - }; - - class SMWrapException : public SecureMessagingException - { - public: - typedef SecureMessagingException BaseType; - typedef SMWrapException Type; - - SMWrapException(const char* msg = 0, const char* where = 0, ulong code = 0) - : SecureMessagingException(msg, where, code) - { } - - virtual Type* Clone() const { return TypedClone(); } - virtual void Throw() const { throw Type(m_what, m_where, m_code); } - virtual int GetId() const { return eiSMWrapException; } - }; - - class SMUnwrapException : public SecureMessagingException - { - public: - typedef SecureMessagingException BaseType; - typedef SMUnwrapException Type; - - SMUnwrapException(const char* msg = 0, const char* where = 0, ulong code = 0) - : SecureMessagingException(msg, where, code) - { } - - virtual Type* Clone() const { return TypedClone(); } - virtual void Throw() const { throw Type(m_what, m_where, m_code); } - virtual int GetId() const { return eiSMUnwrapException; } - }; - - // --------------------------------------------------------------------------- - class SubsystemException : public LogicalException - { - public: - typedef LogicalException BaseType; - typedef SubsystemException Type; - - SubsystemException(const char* msg = 0, const char* where = 0, ulong code = 0) - : LogicalException(msg, where, code) - { } - - virtual Type* Clone() const { return TypedClone(); } - virtual void Throw() const { throw Type(m_what, m_where, m_code); } - virtual int GetId() const { return eiSubsystemException; } - }; - - class NoSuchSubsystemException : public SubsystemException - { - public: - typedef SubsystemException BaseType; - typedef NoSuchSubsystemException Type; - - NoSuchSubsystemException(const char* msg = 0, const char* where = 0, ulong code = 0) - : SubsystemException(msg, where, code) - { } - - virtual Type* Clone() const { return TypedClone(); } - virtual void Throw() const { throw Type(m_what, m_where, m_code); } - virtual int GetId() const { return eiNoSuchSubsystemException; } - }; - -#else - - #define throw(_x) _exit(_x) - - int Exception(const char* msg = 0, const char* where = 0, ulong code = 0); - int BadException(const char* msg = 0, const char* where = 0, ulong code = 0); - int NullPointerException(const char* msg = 0, const char* where = 0, ulong code = 0); - int OutOfRangeException(const char* msg = 0, const char* where = 0, ulong code = 0); - int BadCastException(const char* msg = 0, const char* where = 0, ulong code = 0); - int BadNumericCast(const char* msg = 0, const char* where = 0, ulong code = 0); - int RuntimeException(const char* msg = 0, const char* where = 0, ulong code = 0); - int BadAllocException(const char* msg = 0, const char* where = 0, ulong code = 0); - int NotSupportedException(const char* msg = 0, const char* where = 0, ulong code = 0); - int NotImplementedException(const char* msg = 0, const char* where = 0, ulong code = 0); - int InvalidParameterException(const char* msg = 0, const char* where = 0, ulong code = 0); - int SynchronizationException(const char* msg = 0, const char* where = 0, ulong code = 0); - int LogicalException(const char* msg = 0, const char* where = 0, ulong code = 0); - int AlgorithmException(const char* msg = 0, const char* where = 0, ulong code = 0); - int InvalidAlgorithmParameterException(const char* msg = 0, const char* where = 0, ulong code = 0); - int NoSuchAlgorithmException(const char* msg = 0, const char* where = 0, const char* algorithm); - int ArithmeticException(const char* msg = 0, const char* where = 0, ulong code = 0); - int CertificateException(const char* msg = 0, const char* where = 0, ulong code = 0); - int CertificateEncodingException(const char* msg = 0, const char* where = 0, ulong code = 0); - int CertificateExpiredException(const char* msg = 0, const char* where = 0, ulong code = 0); - int CertificateNotYetValidException(const char* msg = 0, const char* where = 0, ulong code = 0); - int CertificateParsingException(const char* msg = 0, const char* where = 0, ulong code = 0); - int KeyException(const char* msg = 0, const char* where = 0, ulong code = 0); - int InvalidKeyException(const char* msg = 0, const char* where = 0, ulong code = 0); - int KeyManagementException(const char* msg = 0, const char* where = 0, ulong code = 0); - int MessageDigestException(const char* msg = 0, const char* where = 0, ulong code = 0); - int PaddingException(const char* msg = 0, const char* where = 0, ulong code = 0); - int SignatureException(const char* msg = 0, const char* where = 0, ulong code = 0); - int EACException(const char* msg = 0, const char* where = 0, ulong code = 0); - int EACDataException(const char* msg = 0, const char* where = 0, ulong code = 0); - int EACMRZException(const char* msg = 0, const char* where = 0, ulong code = 0); - int EACCVCertException(const char* msg = 0, const char* where = 0, ulong code = 0); - int SmartcardException(const char* msg = 0, const char* where = 0, ulong code = 0); - int CardOutOfMemoryException(const char* msg = 0, const char* where = 0, ulong code = 0); - int InvalidPinException(const char* msg = 0, const char* where = 0, ulong code = 0); - int InvalidCardException(const char* msg = 0, const char* where = 0, ulong code = 0); - int InvalidAuthObjectException(const char* msg = 0, const char* where = 0, ulong code = 0); - int AuthProtocolException(const char* msg = 0, const char* where = 0, ulong code = 0); - int AuthConstrainedException(const char* msg = 0, const char* where = 0, ulong code = 0); - int SecureMessagingException(const char* msg = 0, const char* where = 0, ulong code = 0); - int SMWrapException(const char* msg = 0, const char* where = 0, ulong code = 0); - int SMUnwrapException(const char* msg = 0, const char* where = 0, ulong code = 0); - int SubsystemException(const char* msg = 0, const char* where = 0, ulong code = 0); - int NoSuchSubsystemException(const char* msg = 0, const char* where = 0, ulong code = 0); - -#endif // UNDER_CE_30 - -}// namespace act - -#endif // ACT_Exception_h diff --git a/actlibrary/OpenSUSE-11-x86_64/Release/include/actFactoryReg.h b/actlibrary/OpenSUSE-11-x86_64/Release/include/actFactoryReg.h deleted file mode 100644 index 175da36..0000000 --- a/actlibrary/OpenSUSE-11-x86_64/Release/include/actFactoryReg.h +++ /dev/null @@ -1,146 +0,0 @@ -// --------------------------------------------------------------------------- -// Name: actFactoryReg.h -// Product: cv act library -// Purpose: Templates for simple factory-registry implementation. -// -// Copyright: (c) 2008 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -// -// Autor: Markus Tesche -// Date: 06/02/2008 -// --------------------------------------------------------------------------- - -#ifndef ACT_FactoryReg_h -#define ACT_FactoryReg_h - -#include -#include - -namespace act -{ - // - // FactoryMapEntry<> - template - struct FactoryMapEntry - { - typedef char KeyType; - - struct KeyLessPredicate - : public std::binary_function - { - bool operator()(const KeyType* left, const KeyType* right) const - { - if(left == 0) return false; - if(right == 0) return true; - return strcmp(left, right) < 0; - } - }; - - typedef std::map - < const KeyType*, CreatePtrT, KeyLessPredicate - > MapType; - - static const KeyType* Empty; - - const KeyType* Name; - CreatePtrT createPtr; - }; - - template - const typename FactoryMapEntry::KeyType* - FactoryMapEntry::Empty = ""; - - - // - // FactoryReg<> - template - < - class ResultT, - class CreatePtrT, - class MapEntryT, - class MapT = typename MapEntryT::MapType - > - class FactoryReg - { - public: - typedef typename MapEntryT::KeyType KeyType; - typedef MapEntryT MapEntryType; - typedef MapT MapType; - - // Creates default ... - static ResultT* Create(const KeyType* name) - { - if(name == 0) name = MapEntryType::Empty; - typename MapType::const_iterator result(g_map.find(name)); - return result != g_map.end() ? result->second(name) : 0; - } - - template - static ResultT* Create(const KeyType* name, ParamT* param) - { - if(name == 0) name = MapEntryType::Empty; - typename MapType::const_iterator result(g_map.find(name)); - return result != g_map.end() ? result->second(name, param) : 0; - } - - template - static ResultT* Create(ParamT* param) { return Create(0, param); } - static ResultT* Create() { return Create(0); } - - static const KeyType* GetName(void* createptr) - { - if(createptr == 0) return 0; - for(typename MapType::const_iterator i(g_map.begin()), - end(g_map.end()); i != end; ++i) - if(i->second == createptr) - return i->first; - - return 0; - } - - static const KeyType* GetNextName(const KeyType* name) - { - if(name == 0) - return g_map.empty() == true ? 0 : g_map.begin()->first; - - typename MapType::const_iterator result(g_map.find(name)); - return result == g_map.end() || ++result == g_map.end() ? 0 : result->first; - } - - static CreatePtrT GetCreatePointer(const KeyType* name) - { - if(name != 0) - { - typename MapType::const_iterator result(g_map.find(name)); - return result != g_map.end() ? result->second : 0; - } - return 0; - } - - static void Insert(const KeyType* name, CreatePtrT createPtr) - { - std::pair - result(g_map.insert(typename MapType::value_type(name, createPtr))); - } - - static void Insert(const MapEntryType* entry) - { - while(entry->Name != 0) - { - Insert(entry->Name, entry->createPtr); - ++entry; - } - } - - protected: - static MapT g_map; - }; - - template - MapT FactoryReg::g_map; - -} // namespace act - -#endif // ACT_FactoryReg_h diff --git a/actlibrary/OpenSUSE-11-x86_64/Release/include/actHandle.h b/actlibrary/OpenSUSE-11-x86_64/Release/include/actHandle.h deleted file mode 100644 index fb01279..0000000 --- a/actlibrary/OpenSUSE-11-x86_64/Release/include/actHandle.h +++ /dev/null @@ -1,98 +0,0 @@ -////////////////////////////////////////////////////////////////////////// -// Name: actHandle.h -// Product: cv act library -// Purpose: Handle helper templates -// -// Copyright: (c) 2010 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -// -// Autor: Markus Tesche -// Date: 07/27/2010 -////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_Handle_h -#define ACT_Handle_h - -#include "actMove.h" -#include "actException.h" - -namespace act -{ - // - // Handle - class Handle - { - public: - virtual ~Handle() { /* essential */ } - - template TypeT* as() const; - template TypeT& requiredAs() const; - - template - friend inline TypeT& getPointer(const Handle& handle) - { - return handle.as(); - } - - template - friend inline TypeT& getRef(const Handle& handle) - { - return handle.requiredAs(); - } - }; - - // - // ValueHandle<> - template - class ValueHandle : public Handle - { - public: - typedef TypeT value_type; - - ValueHandle() : m_val() { } - explicit ValueHandle(const TypeT& other) : m_val(other) { } - - template - explicit ValueHandle(move_from other) : m_val() { other.move(m_val); } - - template void operator=(const O& other) { m_val = other; } - template void operator=(move_from other) { other.move(m_val); } - - inline TypeT& valueRef() const { return m_val; } - - inline operator TypeT&() const { return m_val; } - - inline TypeT& operator*() const { return m_val; } - inline TypeT* operator->() const { return &m_val; } - - private: - mutable TypeT m_val; - - private: - friend class Handle; - }; - - // - // Handle::as<> - template - inline TypeT* Handle::as() const - { - const ValueHandle* self = dynamic_cast*>(this); - return self != 0 ? &self->m_val : 0; - } - - // - // Handle::requiredAs<> - template - inline TypeT& Handle::requiredAs() const - { - TypeT* value = as(); - if(value != 0) return *value; - throw NullPointerException("invalid handle value type"); - } - -} // namespace act - -#endif // ACT_Handle_h diff --git a/actlibrary/OpenSUSE-11-x86_64/Release/include/actHashKit.h b/actlibrary/OpenSUSE-11-x86_64/Release/include/actHashKit.h deleted file mode 100644 index d2a817b..0000000 --- a/actlibrary/OpenSUSE-11-x86_64/Release/include/actHashKit.h +++ /dev/null @@ -1,32 +0,0 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actHashKit.h -// Product: cv act library -// Purpose: declaration of all factory functions -// -// Copyright: (c) 2000 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_HASHKIT_H -#define ACT_HASHKIT_H - -namespace act -{ - class IHashAlg; - IHashAlg* CreateMD2(); - IHashAlg* CreateMD4(); - IHashAlg* CreateMD5(); - IHashAlg* CreateRipemd128(); - IHashAlg* CreateRipemd160(); - IHashAlg* CreateSHA0(); - IHashAlg* CreateSHA1(); - IHashAlg* CreateSHA224(); - IHashAlg* CreateSHA256(); - IHashAlg* CreateSHA384(); - IHashAlg* CreateSHA512(); - IHashAlg* CreateDummyHash(); -} -#endif - diff --git a/actlibrary/OpenSUSE-11-x86_64/Release/include/actHashReg.h b/actlibrary/OpenSUSE-11-x86_64/Release/include/actHashReg.h deleted file mode 100644 index 896039d..0000000 --- a/actlibrary/OpenSUSE-11-x86_64/Release/include/actHashReg.h +++ /dev/null @@ -1,40 +0,0 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actHashReg.h -// Product: cv act library -// Purpose: registry for factory functions in actHashKit.h -// -// Copyright: (c) 2000 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_HashReg_H -#define ACT_HashReg_H - -namespace act -{ - class IHashAlg; - - typedef IHashAlg* (*CreateHashPtr)(); - - struct HashMapEntry - { - const char* Name; - CreateHashPtr CreatePtr; - }; - - class HashReg - { - public: - static IHashAlg* CreateHashAlg(const char* name); - static CreateHashPtr GetCreatePointer(const char* name); - static const char* GetName(void* createptr); - static const char* GetNextName(const char* name); - static void Insert(const char* name, CreateHashPtr createptr); - static void Insert(const HashMapEntry* hashmap); - }; - -} // namespace act - -#endif // ACT_HashReg_H diff --git a/actlibrary/OpenSUSE-11-x86_64/Release/include/actIAccessCondition.h b/actlibrary/OpenSUSE-11-x86_64/Release/include/actIAccessCondition.h deleted file mode 100644 index a6d9da3..0000000 --- a/actlibrary/OpenSUSE-11-x86_64/Release/include/actIAccessCondition.h +++ /dev/null @@ -1,163 +0,0 @@ -// --------------------------------------------------------------------------- -// Name: actIAccessConditions.h -// Product: cv act library -// Purpose: The IAccessCondition interface is used to map access conditions for -// Files, Keys etc. on specific smartcard's -// -// Copyright: (c) 2008 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -// -// Autor: Markus Tesche -// Date: 10/29/2008 -// --------------------------------------------------------------------------- - -#ifndef ACT_IAccessConditions_h -#define ACT_IAccessConditions_h - -#include "actBlob.h" -#include "actIRefCounted.h" - -namespace act -{ - class IToken; - class ISCardOS; - - enum - { - AC_AUTH_ID_MASK = 0x7f, - }; - - enum ACType - { - AC_TYPE_UNKNOWN = 0, - AC_TYPE_RAW = 1, // Already transformed for specific OS - AC_TYPE_GENERIC = 2 // OS independant, requires to be transformed before used - }; - - // SCard object specific rights by type - enum ACSCardObjType - { - // { AC_TOKEN_USER, AC_TOKEN_SO, AC_TOKEN_USER_OR_SO } - AC_OBJ_MAP = 0x00, // Used for access condition (f.e. tag 0x86) - AC_OBJREF_MAP = 0x01, // Used as object reference for access condition - - AC_RIGHTS_EF = 0x02, // Access Rights for EF's - AC_RIGHTS_DF = 0x03, // Access Rights for DF's - AC_RIGHTS_KEY = 0x04, // Access Rights for Key Objects - AC_RIGHTS_AUTH = 0x05, // Access Rights for Authentication Objects - // ... add additional types here - }; - - // SCard specific rights - enum ACSCard - { - AC_ALWAYS = 0x00, - // Any other from 0x01..0x7f - AC_NEVER = 0xff - }; - - // Token specific rights - enum ACToken - { - AC_TOKEN_USER = 0x80, - AC_TOKEN_SO = 0x81, - AC_TOKEN_USER_OR_SO = 0x82, - AC_TOKEN_USER_AND_SO = 0x83, - AC_TOKEN_ADMIN = 0x84, - - AC_TOKEN_FLAG = 0x80, - }; - - // AuthId Index - enum AIIndex - { - AI_INVALID = -1, - AI_USER = AC_TOKEN_USER & ~AC_TOKEN_FLAG, - AI_SO = AC_TOKEN_SO & ~AC_TOKEN_FLAG, - AI_USER_OR_SO = AC_TOKEN_USER_OR_SO & ~AC_TOKEN_FLAG, - AI_USER_AND_SO = AC_TOKEN_USER_AND_SO & ~AC_TOKEN_FLAG, - AI_ADMIN = AC_TOKEN_ADMIN & ~AC_TOKEN_FLAG, - }; - - enum ACOperation - { - AC_OR = 0x00, - AC_AND = 0x01, - }; - - enum ACMode - { - AC_MODE_READ = 0, - AC_MODE_UPDATE = 1, - AC_MODE_EXECUTE = 2, - AC_MODE_DELETE = 3, - }; - - enum ACRight - { - // Used for EF/DF - AC_READ = 0x00, - AC_WRITE = 0x01, - AC_UPDATE = 0x01, - AC_APPEND = 0x02, - AC_DEACTIVATE = 0x03, - AC_LOCK = 0x03, - AC_ACTIVATE = 0x04, - AC_UNLOCK = 0x04, - AC_DELETE = 0x05, - AC_ADMIN = 0x06, - AC_CREATE = 0x07, - AC_INCREASE = 0x08, - AC_DECREASE = 0x09, - AC_TERMINATE = 0x0a, - - // Used for Objects - AC_USE = 0x00, - AC_CHANGE = 0x01, - AC_UNBLOCK = 0x02, - AC_GENKEY = 0x07, - AC_SIGN = 0x08, - AC_DEC = 0x09, - AC_ENC = 0x0a, - }; - - enum ACRange - { - AC_FIRST = AC_READ, - AC_LAST = AC_ENC, - }; - - // - // IAccessCondition - class IAccessCondition : public IRefCounted - { - public: - virtual IAccessCondition* Clone() const = 0; - - virtual const char* GetName() const = 0; - virtual ACType GetAcType() const = 0; - - virtual Blob& GetAccessRights() = 0; - virtual const Blob& GetAccessRights() const = 0; - - virtual IAccessCondition* ConvertAc(const IToken* token, ACType acdest) const = 0; - }; - - // - // IAcConverter - class IAcConverter - { - protected: - virtual ~IAcConverter() { } - - public: - virtual IAccessCondition* ConvertAc(const IAccessCondition* ac, ACType acdest) const = 0; - virtual Blob ConvertAc(const IAccessCondition* ac) const = 0; - virtual IAccessCondition* ConvertAc(const Blob& ac) const = 0; - }; - -} // namespace act - -#endif // ACT_IAccessConditions_h diff --git a/actlibrary/OpenSUSE-11-x86_64/Release/include/actIAgreementKey.h b/actlibrary/OpenSUSE-11-x86_64/Release/include/actIAgreementKey.h deleted file mode 100644 index 7ff4ef1..0000000 --- a/actlibrary/OpenSUSE-11-x86_64/Release/include/actIAgreementKey.h +++ /dev/null @@ -1,32 +0,0 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actIAgreementKey.h -// Product: cv act library -// Purpose: The abstract class IAgreementKey derived from IKey is the -// interface to all key agreements. -// -// Copyright: (c) 2000 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_IAgreementKey_H -#define ACT_IAgreementKey_H - -#include "actIKey.h" - -namespace act -{ - class IDerivator; - - class IAgreementKey : public IKey - { - public: - virtual void SetDerivator(IDerivator* derivator) = 0; - virtual const IDerivator* GetDerivator() const = 0; - virtual IDerivator* GetDerivator() = 0; - }; - -} // namespace act - -#endif // ACT_IAgreementKey_H diff --git a/actlibrary/OpenSUSE-11-x86_64/Release/include/actIAlgorithm.h b/actlibrary/OpenSUSE-11-x86_64/Release/include/actIAlgorithm.h deleted file mode 100644 index 23cdb2c..0000000 --- a/actlibrary/OpenSUSE-11-x86_64/Release/include/actIAlgorithm.h +++ /dev/null @@ -1,38 +0,0 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actIAlgorithm.h -// Product: cv act library -// Purpose: IAlgorithm is an abstract base. All concrete algorithm-classes are -// derived from IAlgorithm. -// -// Copyright: (c) 2000 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_IAlgorithm_h -#define ACT_IAlgorithm_h - -#include "actBasics.h" - -namespace act -{ - class Blob; - - class IAlgorithm - { - public: - virtual ~IAlgorithm() { } - - virtual void Write(const Blob& input) = 0; - virtual void Write(const byte* input, size_t insize) = 0; - virtual void Finalize() = 0; - virtual size_t GetAvailableSize() const = 0; - virtual size_t Read(Blob& output, size_t max = 0) = 0; - virtual size_t Read(byte* outbuffer, size_t buffersize) = 0; - virtual status_t GetStatus() const = 0; - }; - -} // namespace act - -#endif // ACT_IAlgorithm_h diff --git a/actlibrary/OpenSUSE-11-x86_64/Release/include/actIBlockCipher.h b/actlibrary/OpenSUSE-11-x86_64/Release/include/actIBlockCipher.h deleted file mode 100644 index 10338cd..0000000 --- a/actlibrary/OpenSUSE-11-x86_64/Release/include/actIBlockCipher.h +++ /dev/null @@ -1,53 +0,0 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actIBlockCipher.h -// Product: cv act library -// Purpose: The class IBlockCipher creates the symmetric BlockCypher, which is -// defined by IBockCipherKey and IBlockCipherMode. It offers operations -// like encrypt, decrypt and queries involving validity or keylength etc. -// -// Copyright: (c) 2000 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_IBlockCipher_h -#define ACT_IBlockCipher_h - -#include "actBasics.h" -#include - -namespace act -{ - - class Blob; - - class IBlockCipher - { - public: - virtual IBlockCipher* Clone() const =0; - virtual void Import( const Blob& indata ) =0; - virtual void Export( Blob& outdata ) const =0; - - virtual void SetRawKey( const Blob& keyblob ) =0; - virtual void GetRawKey( Blob& keyblob ) const =0; - - virtual void Encrypt(const byte* in,byte* out) const =0; - virtual void Decrypt(const byte* in,byte* out) const =0; - - virtual size_t GetKeySize(size_t keysize=0) const =0; - virtual size_t GetMinKeySize() const =0; - virtual size_t GetMaxKeySize() const =0; - virtual size_t GetNextKeySize(size_t prevsize) const =0; - virtual size_t GetBlockSize() const =0; - - virtual void* GetCreatePointer() const =0; - - virtual ~IBlockCipher() {}; - }; - - -}// namespace act - -#endif - diff --git a/actlibrary/OpenSUSE-11-x86_64/Release/include/actIBlockCipherKey.h b/actlibrary/OpenSUSE-11-x86_64/Release/include/actIBlockCipherKey.h deleted file mode 100644 index 3b93cd7..0000000 --- a/actlibrary/OpenSUSE-11-x86_64/Release/include/actIBlockCipherKey.h +++ /dev/null @@ -1,48 +0,0 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actIBlockCipherKey.h -// Product: cv act library -// Purpose: The class IBlockCipherKey extends the interface of the class IKey -// and supports the peculiarities of symmetric keys. -// -// -// Copyright: (c) 2000 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_IBlockCipherKey_h -#define ACT_IBlockCipherKey_h - -#include "actIKey.h" - -namespace act -{ - class IPadding; - class IBlockCipher; - class IBlockCipherMode; - class IDerivator; - - class IBlockCipherKey : public IKey - { - public: - virtual void SetPadding(IPadding* padding) = 0; - virtual const IPadding* GetPadding() const = 0; - virtual IPadding* GetPadding() = 0; - - virtual void SetCipher(IBlockCipher* cipher) = 0; - virtual const IBlockCipher* GetCipher() const = 0; - virtual IBlockCipher* GetCipher() = 0; - - virtual void SetMode(IBlockCipherMode* mode) = 0; - virtual const IBlockCipherMode* GetMode() const = 0; - virtual IBlockCipherMode* GetMode() = 0; - - virtual void SetDerivator(IDerivator* derive) = 0; - virtual const IDerivator* GetDerivator() const = 0; - virtual IDerivator* GetDerivator() = 0; - }; - -} //namespace act - -#endif // ACT_IBlockCipherKey_h diff --git a/actlibrary/OpenSUSE-11-x86_64/Release/include/actIBlockCipherMode.h b/actlibrary/OpenSUSE-11-x86_64/Release/include/actIBlockCipherMode.h deleted file mode 100644 index c6f5267..0000000 --- a/actlibrary/OpenSUSE-11-x86_64/Release/include/actIBlockCipherMode.h +++ /dev/null @@ -1,45 +0,0 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actIBlockCipherMode.h -// Product: cv act library -// Purpose: By using this interface every blockcipher-algorithm can be run in -// the modes CBC or ECB. Other modes e.g. OFB or CFB are supported. -// -// Copyright: (c) 2000 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_IBlockCipherMode_h -#define ACT_IBlockCipherMode_h - -#include "actBasics.h" - -namespace act -{ - class IBlockCipher; - class IAlgorithm; - class IPadding; - class Blob; - - class IBlockCipherMode - { - public: - virtual IBlockCipherMode* Clone() const =0; - virtual void Import(const Blob& indata) =0; - virtual void Export(Blob& outdata) const =0; - virtual void SetParam(paramid_t id, const Blob &blob) =0; - virtual void SetParam(paramid_t id, int val) =0; - virtual void SetParam(paramid_t id, const char* cstr) =0; - virtual int GetParam(paramid_t) const =0; - virtual void GetParam(paramid_t, Blob &blob) const =0; - virtual IAlgorithm* CreateEncAlgorithm(IBlockCipher* cipher, IPadding* padding, const Blob& iv) const=0; - virtual IAlgorithm* CreateDecAlgorithm(IBlockCipher* cipher, IPadding* padding) const=0; - virtual void* GetCreatePointer() const=0; - virtual ~IBlockCipherMode() {} - }; -} // namespace act - -#endif - - diff --git a/actlibrary/OpenSUSE-11-x86_64/Release/include/actICBCMACKey.h b/actlibrary/OpenSUSE-11-x86_64/Release/include/actICBCMACKey.h deleted file mode 100644 index d8dbe6c..0000000 --- a/actlibrary/OpenSUSE-11-x86_64/Release/include/actICBCMACKey.h +++ /dev/null @@ -1,31 +0,0 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actICBCMACKey.h -// Product: cv act library -// Purpose: interface for the class CBCMAC. -// -// Copyright: (c) 2000 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_ICBCMACKey_h -#define ACT_ICBCMACKey_h - -#include "actIMACKey.h" - -namespace act -{ - class IBlockCipher; - - class ICBCMACKey : public IMACKey - { - public: - virtual void SetCipher(IBlockCipher* cipher) = 0; - virtual const IBlockCipher* GetCipher() const = 0; - virtual IBlockCipher* GetCipher() = 0; - }; - -} // namespace act - -#endif // ACT_ICBCMACKey_h diff --git a/actlibrary/OpenSUSE-11-x86_64/Release/include/actICRL.h b/actlibrary/OpenSUSE-11-x86_64/Release/include/actICRL.h deleted file mode 100644 index 2bb598b..0000000 --- a/actlibrary/OpenSUSE-11-x86_64/Release/include/actICRL.h +++ /dev/null @@ -1,51 +0,0 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actICRL.h -// Product: cv act library -// Purpose: The abstract class ICRL (Certificate Revocation List) can be used -// to check whether a certificate has been revoked. -// -// Copyright: (c) 2000 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_ICRL_h -#define ACT_ICRL_h - -namespace act -{ - class IKey; - class ICertificate; - class Blob; - - class ICRL - { - public: - - virtual ICRL* Clone() const=0; - virtual void Import(const Blob& crlblob)=0; - virtual void Export(Blob& crlblob) const =0; - virtual void SetParam(paramid_t id,const Blob& blob) =0; - virtual void SetParam(paramid_t id,int val) =0; - virtual void SetParam(paramid_t id,const char* cstr) =0; - virtual void GetParam(paramid_t id,Blob& blob) const =0; - virtual int GetParam(paramid_t) const =0; - - virtual void Revoke(const ICertificate* cert) =0; - virtual bool IsRevoked(const ICertificate* Cert) const =0; - virtual void RemoveRevokation(const ICertificate* cert) =0; - - virtual void Revoke(const Blob& blob) = 0; - virtual bool IsRevoked(const Blob& blob) const = 0; - virtual void RemoveRevokation(const Blob& blob) = 0; - - virtual void Sign(const IKey* privkey) =0; - virtual int Verify(const IKey* pubkey) const =0; - virtual void* GetCreatePointer() const=0; - virtual ~ICRL() {}; - }; -} // namespace act - -#endif - diff --git a/actlibrary/OpenSUSE-11-x86_64/Release/include/actICertificate.h b/actlibrary/OpenSUSE-11-x86_64/Release/include/actICertificate.h deleted file mode 100644 index eadfe0b..0000000 --- a/actlibrary/OpenSUSE-11-x86_64/Release/include/actICertificate.h +++ /dev/null @@ -1,44 +0,0 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actICertificate.h -// Product: cv act library -// Purpose: The abstract class ICertificate enables access to a certificate, e.g. -// its public key and the corresponding validity. -// -// Copyright: (c) 2000 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_ICertificate_h -#define ACT_ICertificate_h - -#include "actBasics.h" -#include "actIParam.h" - -namespace act -{ - class IKey; - class Blob; - - class ICertificate : public IParam - { - public: - virtual ~ICertificate() { }; - - virtual ICertificate* Clone() const = 0; - virtual void Import(const Blob& certblob) = 0; - virtual void Export(Blob& certblob) const = 0; - - virtual void SetPublicKey(const IKey* pubkey) = 0; - virtual IKey* CreatePublicKey(const char* = 0) const = 0; - - virtual void Sign(const IKey* privkey) = 0; - virtual int Verify(const IKey* pubkey) const = 0; - - virtual void* GetCreatePointer() const = 0; - }; - -} // namespace act - -#endif // ACT_ICertificate_h diff --git a/actlibrary/OpenSUSE-11-x86_64/Release/include/actIDerivator.h b/actlibrary/OpenSUSE-11-x86_64/Release/include/actIDerivator.h deleted file mode 100644 index e8b7140..0000000 --- a/actlibrary/OpenSUSE-11-x86_64/Release/include/actIDerivator.h +++ /dev/null @@ -1,45 +0,0 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actIDerivator.h -// Product: cv act library -// Purpose: This interface provides a shared secret key (the last step in -// a Key Agreement Scheme). -// -// Copyright: (c) 2006 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_IDerivator_h -#define ACT_IDerivator_h - -#include"actBasics.h" - -namespace act -{ - class Blob; - - class IDerivator - { - public: - virtual IDerivator* Clone() const=0; - - virtual void Import(const Blob &blob)=0; - virtual void Export(Blob &blob) const=0; - - virtual void SetParam(paramid_t id,const Blob &blob)=0; - virtual void SetParam(paramid_t id,int val)=0; - virtual void SetParam(paramid_t id,const char* cstr)=0; - virtual void GetParam(paramid_t id,Blob &blob) const=0; - virtual int GetParam(paramid_t) const=0; - - virtual void Derive(const Blob& secret, const Blob& salt, Blob& keymat) const=0; - - virtual void* GetCreatePointer() const =0; - virtual ~IDerivator() {} - }; -} // namespace act - -#endif - - diff --git a/actlibrary/OpenSUSE-11-x86_64/Release/include/actIDerivatorWithHash.h b/actlibrary/OpenSUSE-11-x86_64/Release/include/actIDerivatorWithHash.h deleted file mode 100644 index b1bdaf9..0000000 --- a/actlibrary/OpenSUSE-11-x86_64/Release/include/actIDerivatorWithHash.h +++ /dev/null @@ -1,33 +0,0 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actIDerivatorWithHash.h -// Product: cv act library -// Purpose: The abstract class IDerivatorWithHash is derived from IDerivator and -// uses hash algorithms. -// -// Copyright: (c) 2000 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_IDerivatorWithHash_h -#define ACT_IDerivatorWithHash_h - -#include "actIDerivator.h" - -namespace act -{ - class IHashAlg; - - class IDerivatorWithHash : public IDerivator - { - public: - virtual void SetHash(IHashAlg* hash) =0; - virtual const IHashAlg* GetHash() const =0; - virtual IHashAlg* GetHash() =0; - }; -} // namespace act - -#endif - - diff --git a/actlibrary/OpenSUSE-11-x86_64/Release/include/actIEMSAAlg.h b/actlibrary/OpenSUSE-11-x86_64/Release/include/actIEMSAAlg.h deleted file mode 100644 index 0aaec1d..0000000 --- a/actlibrary/OpenSUSE-11-x86_64/Release/include/actIEMSAAlg.h +++ /dev/null @@ -1,49 +0,0 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actIEMSAAlg.h -// Product: cv act library -// Purpose: IEMSAAlg (Encoding Methods for Signatures with Appendix) is an -// abstract class derived from IAlgorithm. Encoding methods do not -// use keys. These algorithms prepare the data to sign. They can be -// implemented with or without hash functions. -// -// Copyright: (c) 2000 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_IEMSAAlg_h -#define ACT_IEMSAAlg_h - -#include "actBasics.h" -#include "actIAlgorithm.h" - -namespace act -{ - - class IEMSAAlg : public IAlgorithm - { - public: - virtual IEMSAAlg* Clone() const =0; - - virtual void Import(const Blob &blob) =0; - virtual void Export(Blob &blob) const =0; - virtual void SetParam(paramid_t id,const Blob &blob) =0; - virtual void SetParam(paramid_t id,int val) =0; - virtual void SetParam(paramid_t id,const char* cstr) =0; - virtual void GetParam(paramid_t id,Blob &blob) const =0; - virtual int GetParam(paramid_t) const =0; - - virtual void Reset(size_t sizeinbits) =0; - - virtual void* GetCreatePointer() const =0; - - virtual bool Verify(const Blob &em, const Blob &sig_inv) =0; - - virtual ~IEMSAAlg(){} - }; -} // namespace act - -#endif - - diff --git a/actlibrary/OpenSUSE-11-x86_64/Release/include/actIEMSAWithHashAlg.h b/actlibrary/OpenSUSE-11-x86_64/Release/include/actIEMSAWithHashAlg.h deleted file mode 100644 index 9a928c1..0000000 --- a/actlibrary/OpenSUSE-11-x86_64/Release/include/actIEMSAWithHashAlg.h +++ /dev/null @@ -1,34 +0,0 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actIEMSAWithHashAlg.h -// Product: cv act library -// Purpose: IEMSAWithHashAlg is the abstract class derived from IEMSAAlg -// which provides access on the aggregated hashobject of an -// EMSA-object. -// -// Copyright: (c) 2000 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_IEMSAWithHashAlg_h -#define ACT_IEMSAWithHashAlg_h - -#include "actIEMSAAlg.h" - -namespace act -{ - class IHashAlg; - - class IEMSAWithHashAlg : public IEMSAAlg - { - public: - virtual void SetHash(IHashAlg* hash) =0; - virtual const IHashAlg* GetHash() const =0; - virtual IHashAlg* GetHash() =0; - }; -} // namespace act - -#endif - - diff --git a/actlibrary/OpenSUSE-11-x86_64/Release/include/actIEventHandler.h b/actlibrary/OpenSUSE-11-x86_64/Release/include/actIEventHandler.h deleted file mode 100644 index 115662f..0000000 --- a/actlibrary/OpenSUSE-11-x86_64/Release/include/actIEventHandler.h +++ /dev/null @@ -1,54 +0,0 @@ -// --------------------------------------------------------------------------- -// Name: actIEventHandler.h -// Product: cv act library -// Purpose: Interfaces required to receive token, slot or subsystem events -// -// Copyright: (c) 2002 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -// -// Autor: Dr. Xiangdong Wang (XWG) -// Markus Tesche -// Date: 03/26/2002 -// --------------------------------------------------------------------------- - -#ifndef ACT_IEventHandler_h -#define ACT_IEventHandler_h - -#include "actTypeTags.h" -#include "actIRefCounted.h" - -namespace act -{ - enum EventCode - { - TOKEN_REMOVED = 0x00000010, - TOKEN_INSERTED = 0x00000020, - SLOT_REMOVED = 0x00000040, - SLOT_INSERTED = 0x00000080, - SUBSYSTEM_STOPPED = 0x00000100, - SUBSYSTEM_STARTED = 0x00000200, - MONITORING_STOPPED = 0x00000400, - MONITORING_STARTED = 0x00000800, - MONITORING_ERROR = 0x80000000, - }; - - class ISubsystem; - class IEventMonitoring; - - // - // IEventHandler - class IEventHandler : public IRefCounted - { - public: - virtual IEventHandler* Clone() = 0; - virtual void Source(IEventMonitoring* source) = 0; - virtual void OnEvent(int event, ISubsystem* source) = 0; - }; - - typedef TypeTag TagEH; - -} // namespace act - -#endif // ACT_IEventHandler_h diff --git a/actlibrary/OpenSUSE-11-x86_64/Release/include/actIEventMonitoring.h b/actlibrary/OpenSUSE-11-x86_64/Release/include/actIEventMonitoring.h deleted file mode 100644 index 0aee7db..0000000 --- a/actlibrary/OpenSUSE-11-x86_64/Release/include/actIEventMonitoring.h +++ /dev/null @@ -1,36 +0,0 @@ -// --------------------------------------------------------------------------- -// Name: actIEventMonitoring.h -// Product: cv act library -// Purpose: Interface for event monitoring enabled objects. -// -// Copyright: (c) 2010 cv cryptovision GmbH -// all rights reserved. -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -// -// Autor: Markus Tesche (MTE) -// Date: 08/20/2010 -// --------------------------------------------------------------------------- - -#ifndef ACT_IEventMonitoring_h -#define ACT_IEventMonitoring_h - -namespace act -{ - class IEventHandler; - - // - // IEventMonitoring - class IEventMonitoring - { - public: - virtual ~IEventMonitoring() { } - - virtual bool IsMonitored() const = 0; - virtual void StopMonitor(bool force = false) = 0; - virtual void StartMonitor(IEventHandler* cmd) = 0; - }; - -} // namespace act - -#endif // ACT_IEventMonitoring_h diff --git a/actlibrary/OpenSUSE-11-x86_64/Release/include/actIHashAlg.h b/actlibrary/OpenSUSE-11-x86_64/Release/include/actIHashAlg.h deleted file mode 100644 index 8620c51..0000000 --- a/actlibrary/OpenSUSE-11-x86_64/Release/include/actIHashAlg.h +++ /dev/null @@ -1,42 +0,0 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actIHashAlg.h -// Product: cv act library -// Purpose: IHashAlg is an abstract base class, which provides the interface -// of all hash-algorithms. -// -// Copyright: (c) 2000 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_IHASHALG_H -#define ACT_IHASHALG_H - -#include "actIAlgorithm.h" - -namespace act -{ - - class IHashAlg : public IAlgorithm - { - public: - virtual IHashAlg* Clone() const =0; - virtual void Import(const Blob& indata) =0; - virtual void Export(Blob& outdata) const =0; - virtual void SetParam(paramid_t id,const Blob &blob) =0; - virtual void SetParam(paramid_t id,int val) =0; - virtual void SetParam(paramid_t id,const char* cstr) =0; - virtual void GetParam(paramid_t id,Blob &blob) const =0; - virtual int GetParam(paramid_t) const =0; - virtual size_t GetBlockSize() const = 0; - virtual size_t GetHashSize() const = 0; - virtual void Reset() =0; - virtual void* GetCreatePointer() const =0; - virtual ~IHashAlg() {} - }; - -} // namespace act -#endif - - diff --git a/actlibrary/OpenSUSE-11-x86_64/Release/include/actIHashMACKey.h b/actlibrary/OpenSUSE-11-x86_64/Release/include/actIHashMACKey.h deleted file mode 100644 index 29719fe..0000000 --- a/actlibrary/OpenSUSE-11-x86_64/Release/include/actIHashMACKey.h +++ /dev/null @@ -1,32 +0,0 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actIHashMacKey.h -// Product: cv act library -// Purpose: interface for the class HashMAC -// -// Copyright: (c) 2000 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_IHashMACKey_h -#define ACT_IHashMACKey_h - -#include "actIMACKey.h" - -namespace act -{ - class IHashAlg; - - class IHashMACKey : public IMACKey - { - public: - virtual void SetHash(IHashAlg* cipher) =0; - virtual const IHashAlg* GetHash() const =0; - virtual IHashAlg* GetHash() =0; - }; - -} // namespace act - -#endif - diff --git a/actlibrary/OpenSUSE-11-x86_64/Release/include/actIIESKey.h b/actlibrary/OpenSUSE-11-x86_64/Release/include/actIIESKey.h deleted file mode 100644 index e54a7f4..0000000 --- a/actlibrary/OpenSUSE-11-x86_64/Release/include/actIIESKey.h +++ /dev/null @@ -1,35 +0,0 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actIIESKey.h -// Product: cv act library -// Purpose: The interface IIESKey enables access to the aggregated objects of -// an IES-key, like DL-IES or EC-IES. -// -// Copyright: (c) 2000 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_IIESKey_H -#define ACT_IIESKey_H - -#include "actIKey.h" - -namespace act -{ - class IAgreementKey; - class IMACKey; - - class IIESKey : public IKey - { - public: - virtual void SetMAC(IMACKey* mac) =0; - virtual const IMACKey* GetMAC() const =0; - virtual IMACKey* GetMAC() =0; - virtual void SetAgreement(IAgreementKey* derivator) =0; - virtual const IAgreementKey* GetAgreement() const =0; - virtual IAgreementKey* GetAgreement() =0; - }; -} // act -#endif - diff --git a/actlibrary/OpenSUSE-11-x86_64/Release/include/actIKey.h b/actlibrary/OpenSUSE-11-x86_64/Release/include/actIKey.h deleted file mode 100644 index 3ed1a9e..0000000 --- a/actlibrary/OpenSUSE-11-x86_64/Release/include/actIKey.h +++ /dev/null @@ -1,45 +0,0 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actIKey.h -// Product: cv act library -// Purpose: IKey is an abstract base class. All concrete Key-classes are -// derived from IKey. -// -// Copyright: (c) 2000 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_IKey_h -#define ACT_IKey_h - -#include "actIParam.h" -#include "actBlob.h" - -namespace act -{ - class IAlgorithm; - class IRNGAlg; - - class IKey : public IParam - { - public: - virtual ~IKey() { } - - virtual IKey* Clone() const = 0; - - virtual void Import(const Blob& keyblob) = 0; - virtual void Export(Blob& keyblob, export_t type = DEFAULT) const = 0; - - virtual void Generate(IRNGAlg* prng = 0) = 0; - virtual void Derive(const Blob& data, const Blob& salt = Blob()) = 0; - - virtual IAlgorithm* CreateAlgorithm(mode_t Mode) const = 0; - virtual IAlgorithm* CreateAlgorithm(mode_t Mode, const Blob& data) const = 0; - - virtual void* GetCreatePointer() const = 0; - }; - -} // namespace act - -#endif // ACT_IKey_h diff --git a/actlibrary/OpenSUSE-11-x86_64/Release/include/actIKeyDerivation.h b/actlibrary/OpenSUSE-11-x86_64/Release/include/actIKeyDerivation.h deleted file mode 100644 index f8909eb..0000000 --- a/actlibrary/OpenSUSE-11-x86_64/Release/include/actIKeyDerivation.h +++ /dev/null @@ -1,70 +0,0 @@ -// --------------------------------------------------------------------------- -// Name: actIKeyDerivation.h -// Product: cv act library -// Purpose: IKeyDerivation for general prupose -// -// Copyright: (c) 2003-2010 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -// -// Autor: Ulrich Birkenhauer -// Markus Tesche -// Date: 07/05/2010 -// --------------------------------------------------------------------------- - -#ifndef ACT_IKeyDerivation_h -#define ACT_IKeyDerivation_h - -#include "actMove.h" -#include "actMode.h" - -#include "actIParam.h" -#include "actIRefCounted.h" - -namespace act -{ - enum KDParam - { - KD_DATA = SALT, - KD_HASH = HASH, - KD_SERIAL = SERIALNR, - KD_DERIVATOR = DERIVATOR, - KD_MODE = BCMODE, // key configuration - KD_PADDING = PADDING, // key configuration - }; - - enum KDMode - { - KD_MODE_DEFAULT = 0, - KD_MODE_CARD_MANAGER, - - KD_MODE_LAST - }; - - class IKeyDerivation; - class IBlockCipherKey; - - typedef void (*DerivationFunc)(IKeyDerivation* owner, const Blob& data, - Blob& k_enc, Blob& k_mac, Blob& k_kek); - - // - // IKeyDerivation - class IKeyDerivation - : public IParam - , public IRefCounted - { - public: - virtual Blob Derive(const Blob& deriveData) = 0; - virtual void Derive(uint mode, const Blob& data, Blob& k_enc, Blob& k_mac) = 0; - virtual void Derive(uint mode, const Blob& data, Blob& k_enc, Blob& k_mac, Blob& k_kek) = 0; - - virtual void SetKey(IBlockCipherKey* key) = 0; - // - // If mode already registered, it will be overwritten and the previous will be returned. - virtual DerivationFunc Register(uint mode, DerivationFunc df) = 0; - }; - -} // namespace act - -#endif // ACT_IKeyDerivation_h diff --git a/actlibrary/OpenSUSE-11-x86_64/Release/include/actIKeyFactory.h b/actlibrary/OpenSUSE-11-x86_64/Release/include/actIKeyFactory.h deleted file mode 100644 index 711d883..0000000 --- a/actlibrary/OpenSUSE-11-x86_64/Release/include/actIKeyFactory.h +++ /dev/null @@ -1,48 +0,0 @@ -// --------------------------------------------------------------------------- -// Name: actIKeyFactory.h -// Product: cv act library -// Purpose: IKeyFactory and IKeyFactoryChain interface -// -// Copyright: (c) 2008 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -// -// Autor: Markus Tesche -// Date: 05/18/2008 -// --------------------------------------------------------------------------- - -#ifndef ACT_IKeyFactory_h -#define ACT_IKeyFactory_h - -#include "actTokenBase.h" - -namespace act -{ - class ITokenKey; - class ITokenBlockCipher; - class ITokenBlockCipherKey; - - class IKeyFactory - { - protected: - virtual ~IKeyFactory() - { } - - public: - virtual ITokenKey* CreateKey(int type, FileInfo& fi, int usage, bool cleartoken) = 0; - - virtual ITokenBlockCipher* CreateBlockCipher(FileInfo& fi) = 0; - virtual ITokenBlockCipherKey* CreateBlockCipherKey(ITokenBlockCipher* cipher, bool cleartoken) = 0; - virtual ITokenBlockCipherKey* CreateBlockCipherAndKey(FileInfo& fi, bool cleartoken) = 0; - }; - - class IKeyFactoryChain : public IKeyFactory - { - public: - virtual void SetNext(IKeyFactoryChain* next) = 0; - }; - -} // namespace act - -#endif // ACT_IKeyFactory_h diff --git a/actlibrary/OpenSUSE-11-x86_64/Release/include/actIMACKey.h b/actlibrary/OpenSUSE-11-x86_64/Release/include/actIMACKey.h deleted file mode 100644 index b630e74..0000000 --- a/actlibrary/OpenSUSE-11-x86_64/Release/include/actIMACKey.h +++ /dev/null @@ -1,27 +0,0 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actIMACKEY.h -// Product: cv act library -// Purpose: interface for the class CBCMAC -// -// Copyright: (c) 2000 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_IMACKey_h -#define ACT_IMACKey_h - -#include "actIKey.h" - -namespace act -{ - class IMACKey : public IKey - { - public: - virtual const char* KeyName() const = 0; - }; - -} // namespace act - -#endif // ACT_IMACKey_h diff --git a/actlibrary/OpenSUSE-11-x86_64/Release/include/actIPKCS15Behavior.h b/actlibrary/OpenSUSE-11-x86_64/Release/include/actIPKCS15Behavior.h deleted file mode 100644 index 174cd51..0000000 --- a/actlibrary/OpenSUSE-11-x86_64/Release/include/actIPKCS15Behavior.h +++ /dev/null @@ -1,89 +0,0 @@ -// --------------------------------------------------------------------------- -// Name: actIPKCS15Behavior.h -// Product: cv act library -// Purpose: IPKCS15Behavior interface, encapsulates Manufacturer specific logic -// for PKCS15 to cvProfile mapping. -// -// Copyright: (c) 2002-2008 cv cryptovision GmbH all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -// -// Autor: Markus Tesche -// Date: 06/02/2008 -// --------------------------------------------------------------------------- - -#ifndef ACT_IPKCS15Behavior_h -#define ACT_IPKCS15Behavior_h - -#include "actISCardOSBehavior.h" - -#include "cvProfileInfos.h" - -namespace act -{ - class IAuthIdRef; - - class IToken; - class ITokenPIN; - class ITokenKey; - class ITokenFile; - class ITokenFileMap; - class ISecurityManager; - class ITokenBlockCipherKey; - - class PKCS15Container; - struct PKCS15Path; - struct PKCS15Object; - - // - // IPKCS15Behavior - class IPKCS15Behavior : public ISCardOSBehavior - { - public: - virtual void Init(IToken* token) = 0; - - virtual int GetTokenType(const IToken* token) const throw() = 0; - virtual void GetProfileCapabilities(ITokenConfig* tkcfg) const = 0; - - virtual bool IsReadOnly() const = 0; - virtual const Blob& GetMID() const = 0; - - // Returns a valid instance or throws ! - virtual ITokenFile* GetPath() const = 0; - virtual ITokenFile* GetTokenFile(const Blob& p15path) = 0; - virtual ITokenFile* GetTokenFile(const PKCS15Path& p15path) = 0; - - virtual ITokenPIN* GetPin(IToken* token, const PKCS15Object& p15object, bool use_obj_ref = false) = 0; - - // NOTE: If one of these functions return false, the object gets destroyed - // and is not added to the corresponding collection, therefore not accessable! - virtual bool InitTokenPIN(ITokenPIN* pin, const PKCS15Object& p15object) = 0; - virtual bool InitTokenKey(ITokenKey* key, const FileInfo& fi, int usage, const PKCS15Object& p15object) = 0; - virtual bool InitTokenKey(ITokenBlockCipherKey* key, const FileInfo& fi, const PKCS15Object& p15object) = 0; - - virtual FIDType GetFirstFID(byte obj_type, size_t key_size = 0) const = 0; - virtual void GetObjectInfo(FIDType fid, Blob& object_path, byte* obj_ref, byte obj_type, size_t key_size = 0) const = 0; - - virtual FIDType TransformKeyReference(FIDType id, bool to_on_card_reference = false, bool* bReference = 0) const = 0; - - virtual FIDType GetNativeFID(byte obj_type, const FIDType fid, byte object_reference = 0) const = 0; - - virtual void GetRelativeFilePath(Blob& absolute_filepath) const = 0; - - virtual const Blob& GetACTokenRights() const = 0; - virtual Blob GetAccessRights(const ITokenPIN* pin, byte obj_type) const = 0; - virtual Blob GetAccessRights(IAuthIdRef* authIdRef, IAuthIdRef* parentAuthIdRef, byte obj_type) const = 0; - - virtual ISecurityManager* SecurityManager(IToken* token, int authManagerType) const = 0; - virtual void CreateAuthObj(ITokenPIN* pin, byte obj_type) const = 0; - - virtual bool GetNativePubKeySupport() const = 0; - virtual Blob ReadNativePublicKey(ISCardOS* os, FIDType fid) const = 0; - virtual Blob ReadNativeECPublicKey(ISCardOS* os, FIDType fid) const = 0; - virtual FIDType GetNativePubKeyInfo(FIDType priv_key_fid, const PublicKeyInfo& info, - PKCS15Object& p15object) const = 0; - }; - -} // namespace act - -#endif // ACT_IPKCS15Behavior_h diff --git a/actlibrary/OpenSUSE-11-x86_64/Release/include/actIPadding.h b/actlibrary/OpenSUSE-11-x86_64/Release/include/actIPadding.h deleted file mode 100644 index c916e21..0000000 --- a/actlibrary/OpenSUSE-11-x86_64/Release/include/actIPadding.h +++ /dev/null @@ -1,47 +0,0 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actIPadding.h -// Product: cv act library -// Purpose: With the abstract class IPadding input data can be filled to obtain -// a certain length and also to invert this process. E.g. PKCS1-v1_5 is -// a padding. -// -// Copyright: (c) 2000 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_IPadding_h -#define ACT_IPadding_h -#include "actBasics.h" - -namespace act -{ - - class Blob; - - class IPadding - { - public: - - virtual IPadding* Clone() const=0; - - virtual void Import(const Blob& indata) =0; - virtual void Export(Blob& outdata) const =0; - virtual void SetParam(paramid_t id,const Blob &blob) =0; - virtual void SetParam(paramid_t id,int val) =0; - virtual void SetParam(paramid_t id,const char* cstr) =0; - virtual void GetParam(paramid_t id,Blob &blob) const =0; - virtual int GetParam(paramid_t) const =0; - - virtual void Pad(Blob& Buffer, size_t len) const =0; - virtual size_t Unpad(Blob& Buffer) const =0; - - virtual void* GetCreatePointer() const =0; - virtual ~IPadding() {} - }; - - -} //namespace act -#endif - diff --git a/actlibrary/OpenSUSE-11-x86_64/Release/include/actIParam.h b/actlibrary/OpenSUSE-11-x86_64/Release/include/actIParam.h deleted file mode 100644 index ee8d26b..0000000 --- a/actlibrary/OpenSUSE-11-x86_64/Release/include/actIParam.h +++ /dev/null @@ -1,67 +0,0 @@ -// --------------------------------------------------------------------------- -// Name: actIParam.h -// Product: cv act library -// Purpose: Declares act::IParam interface. -// -// Copyright: (c) 2006 cv cryptovision GmbH -// all rights reserved. -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -// -// Autor: Markus Tesche (MTE) -// Date: 3/1/2006 -// --------------------------------------------------------------------------- - -#ifndef ACT_IParam_h -#define ACT_IParam_h - -#include "actBasics.h" - -namespace act -{ - class Blob; - - enum - { - PARAM_ANY = -3, - PARAM_UNKNOWN_SIZE = -2, - PARAM_INVALID_VALUE = -1, - PARAM_FALSE = 0, - PARAM_TRUE = 1 - }; - - static inline int param_bool(bool value) - { - return value == true ? PARAM_TRUE : PARAM_FALSE; - } - - // - // IParam - class IParam - { - public: - virtual ~IParam() { } - - virtual void SetParam(paramid_t id, int value) = 0; - virtual void SetParam(paramid_t id, const char* value) = 0; - virtual void SetParam(paramid_t id, const Blob& value) = 0; - - // - // Get value for id, otherwise PARAM_INVALID_VALUE. - // NOTE: May throws an act::Exception derived exception. - virtual int GetParam(paramid_t id) const = 0; - - // - // Get value for id, returns size[PARAM_UNKNOWN_SIZE|0-n] or PARAM_INVALID_VALUE. - // NOTE: May throws an act::Exception derived exception. - virtual size_t GetParam(paramid_t id, const char** value) const = 0; - - // - // Get value for id, returns size[PARAM_UNKNOWN_SIZE|0-n] or PARAM_INVALID_VALUE. - // NOTE: May throws an act::Exception derived exception. - virtual size_t GetParam(paramid_t id, Blob& value) const = 0; - }; - -} // namespace act - -#endif // ACT_IParam_h diff --git a/actlibrary/OpenSUSE-11-x86_64/Release/include/actIRNGAlg.h b/actlibrary/OpenSUSE-11-x86_64/Release/include/actIRNGAlg.h deleted file mode 100644 index 521be1d..0000000 --- a/actlibrary/OpenSUSE-11-x86_64/Release/include/actIRNGAlg.h +++ /dev/null @@ -1,38 +0,0 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actIRNGAlg.h -// Product: cv act library -// Purpose: IRNGAlg is the interface for Random Number Generators. -// -// Copyright: (c) 2000 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_IRNGAlg_h -#define ACT_IRNGAlg_h - -#include "actIAlgorithm.h" - -namespace act -{ - class Blob; - - class IRNGAlg : public IAlgorithm - { - public: - virtual IRNGAlg* Clone() const = 0; - virtual void Import(const Blob& keyblob) = 0; - virtual void Export(Blob& keyblob) const = 0; - virtual void SetParam(paramid_t id, const Blob& blob) = 0; - virtual void SetParam(paramid_t id, int val) = 0; - virtual void SetParam(paramid_t id, const char* cstr) = 0; - virtual int GetParam(paramid_t id) const = 0; - virtual void GetParam(paramid_t id, Blob& blob) const = 0; - - virtual void* GetCreatePointer() const = 0; - }; - -} // namespace act - -#endif // ACT_IRNGAlg_h diff --git a/actlibrary/OpenSUSE-11-x86_64/Release/include/actIRSAKey.h b/actlibrary/OpenSUSE-11-x86_64/Release/include/actIRSAKey.h deleted file mode 100644 index 96bcdac..0000000 --- a/actlibrary/OpenSUSE-11-x86_64/Release/include/actIRSAKey.h +++ /dev/null @@ -1,32 +0,0 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actIRSAKey.h -// Product: cv act library -// Purpose: IRSAKey is the interface for the class IRSAKey enabling access to -// the aggregated padding-object of an RSAKeys. -// -// Copyright: (c) 2000 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_IRSAKey_h -#define ACT_IRSAKey_h - -#include "actISignatureKey.h" - -namespace act -{ - class IPadding; - - class IRSAKey : public ISignatureKey - { - public: - virtual void SetPadding(IPadding* padding) = 0; - virtual const IPadding* GetPadding() const = 0; - virtual IPadding* GetPadding() = 0; - }; - -} // namespace act - -#endif // ACT_IRSAKey_h diff --git a/actlibrary/OpenSUSE-11-x86_64/Release/include/actIRefCounted.h b/actlibrary/OpenSUSE-11-x86_64/Release/include/actIRefCounted.h deleted file mode 100644 index 5c66ef0..0000000 --- a/actlibrary/OpenSUSE-11-x86_64/Release/include/actIRefCounted.h +++ /dev/null @@ -1,33 +0,0 @@ -// --------------------------------------------------------------------------- -// Name: actIRefCounted.h -// Product: cv act library -// Purpose: The IRefCounted interface. -// -// Copyright: (c) 2006 cv cryptovision GmbH -// all rights reserved. -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -// -// Autor: Markus Tesche (MTE) -// Date: 1/18/2006 -// --------------------------------------------------------------------------- - -#ifndef ACT_IRefCounted_h -#define ACT_IRefCounted_h - -namespace act -{ - // - // IRefCounted, methods for reference counting. - class IRefCounted - { - public: - virtual ~IRefCounted() { } - - virtual void AddRef() = 0; - virtual void Release() = 0; - }; - -} // namespace act - -#endif // ACT_IRefCounted_h diff --git a/actlibrary/OpenSUSE-11-x86_64/Release/include/actISCardAccess.h b/actlibrary/OpenSUSE-11-x86_64/Release/include/actISCardAccess.h deleted file mode 100644 index 3f59b31..0000000 --- a/actlibrary/OpenSUSE-11-x86_64/Release/include/actISCardAccess.h +++ /dev/null @@ -1,198 +0,0 @@ -// --------------------------------------------------------------------------- -// Name: actISCardAccess.h -// Product: cv act library -// Purpose: The class ISCardAccess manages the operations with the smartcards and readers -// -// Copyright: (c) 2002 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -// -// Autor: Dr. Xiangdong Wang (XWG) -// Date: 03/21/2002 -// --------------------------------------------------------------------------- - -#ifndef ACT_ISCardAccess_h -#define ACT_ISCardAccess_h - -#include "actBlob.h" -#include "actIRefCounted.h" -#include "actISynchronize.h" - -namespace act -{ - class SyncObject; - - const ushort RESPONSE_MAXLEN = 2048; - - enum ReturnCode - { - APDU_RESPONSE_MASK = 0xffff, - - APDU_OK = 0x9000, - APDU_OK1 = 0x9001, - - // error codes defined in ISO7816-4 - APDU_STATE_UNCHANGED = 0x6200, - APDU_RETURN_CORRUPTED = 0x6281, - APDU_END_REACHED = 0x6282, - APDU_SELECTFILE_INVALID = 0x6283, - APDU_FCI_FORMAT = 0x6284, - - APDU_AUTHEN_FAILED = 0x6300, - APDU_RETRY_COUNTER = 0x63C0, - APDU_FILE_FILLED_UP = 0x6381, - - APDU_STATE_UNCHANGED2 = 0x6400, - - APDU_STATE_CHANGED = 0x6500, - APDU_MEMORY_FAILURE = 0x6581, - - APDU_SECURITY_ERROR = 0x6600, // not defined in ISO7816 - - APDU_WRONG_LEN = 0x6700, - - APDU_NO_CLA_FUNCTION = 0x6800, - APDU_NO_LOGICAL_CHANNEL = 0x6881, - APDU_NO_SM = 0x6882, - - APDU_CMD_NOT_ALLOWED = 0x6900, - APDU_CMD_INCOMPATIBLE = 0x6981, - APDU_SECURITY_STATE = 0x6982, - APDU_AUTHEN_BLOCKED = 0x6983, - APDU_REF_DATA_INVALID = 0x6984, - APDU_NO_CONDITION = 0x6985, - APDU_CMD_EF_NOT_ALLOWED = 0x6986, - APDU_SM_DATA_MISSING = 0x6987, - APDU_SM_DATA_INCORRECT = 0x6988, - - APDU_WRONG_PARAMETER = 0x6A00, - APDU_WRONG_DATA = 0x6A80, - APDU_FUNCTION_NOT_SUPPORTED = 0x6A81, - APDU_FILE_NOT_FOUND = 0x6A82, - APDU_RECORD_NOT_FOUND = 0x6A83, - APDU_NOT_ENOUGH_MEMORY = 0x6A84, - APDU_LC_TLV_INCONSISTENT = 0x6A85, - APDU_INVALID_P1P2 = 0x6A86, - APDU_LC_P1P2_INCONSISTENT = 0x6A87, - APDU_REF_DATA_NOT_FOUND = 0x6A88, - APDU_FILE_ALREADY_EXISTS = 0x6A89, - - APDU_WRONG_PARAMETER2 = 0x6B00, - - APDU_WRONG_LE = 0x6C00, - - APDU_INS_INVALID = 0x6D00, - - APDU_CLA_INVALID = 0x6E00, - - APDU_TECHNICAL_ERROR = 0x6F00, - - - // other error codes depend on card OS - APDU_NO_ICC = 0x64A1, - APDU_PROTOCOL_ERROR = 0x64A8, - - APDU_NO_AC_RIGHT = 0x6982, - APDU_PIN_LOCKED = 0x6983, - APDU_PIN_FORMAT_ERROR = 0x6984, - - APDU_OBJECT_NOT_FOUND = 0x6A88, - - APDU_KEYGEN_FAILED = 0x6F83, // ACOS - - - // JavaCardOS - APDU_MORE_DATA_AVAILABLE = 0x6310, - APDU_APPLET_SELECTION_FAILED = 0x6999, - APDU_PIN_FAILED = 0x69C0, - APDU_ASSERT = 0x6FFF, - APDU_ASSERT_NOTRANSACTION = 0x6FFE, - }; - - enum ProtocolType - { - PROTOCOL_UNDEFINED = 0x00000, // There is no active protocol. - PROTOCOL_T0 = 0x00001, // T=0 is the active protocol. - PROTOCOL_T1 = 0x00002, // T=1 is the active protocol. - PROTOCOL_RAW = 0x10000 // Raw is the active protocol. - }; - - enum DispositionType - { - LEAVE_CARD = 0, // Don't do anything special. - RESET_CARD = 1, // Reset the card. - UNPOWER_CARD = 2, // Power down the card. - EJECT_CARD = 3 // Eject the card. - }; - - inline bool APDUSUCCESS(word sw1sw2) - { - return sw1sw2 == act::APDU_OK - || sw1sw2 == act::APDU_OK1; - } - - // extract - template - inline word apdu_response(const ExceptionT& e) - { - return word(e.code() & APDU_RESPONSE_MASK); - } - - // LengthInfo - struct LengthInfo; - typedef LengthInfo VerifyInfo; - - class ISlot; - class ISCardSM; - - // --------------------------------------------------------------------------- - class ISCardAccess - : public IRefCounted - , public ISynchronize - { - public: - virtual ~ISCardAccess() - { } - - virtual long GetProtocol() const = 0; - virtual void SetProtocol(long protocol) = 0; - - virtual ulong GetTimeout() const = 0; - virtual bool SetTimeout(ulong timeout_msec) = 0; - - virtual void Open() = 0; - virtual void Close() = 0; - virtual void ResetCard() = 0; - virtual long CancelCardOperation() = 0; - - virtual void BeginTransaction() = 0; - virtual void EndTransaction(DispositionType disposition = LEAVE_CARD) = 0; - virtual ulong GetTransactionDepth() const = 0; - - virtual const ISlot* GetSlot() const = 0; - - virtual word SendCard(const Blob& cmd, Blob& response, ushort response_len = RESPONSE_MAXLEN) = 0; - - virtual Blob GetResponse() const = 0; - virtual Blob& GetResponse(Blob& response) const = 0; - - virtual word Send(const Blob& cmd) = 0; - virtual word Send(const Blob& header, const Blob& data) = 0; - virtual word Send(const Blob& header, const Blob& data, byte le) = 0; - - // Extended APDU - virtual word SendX(const Blob& header, const Blob& data) = 0; - virtual word SendX(const Blob& header, const Blob& data, ushort le) = 0; - - // Secure Pin Entry - virtual word SendVerifyToReader(const Blob& apdu, const VerifyInfo& info) = 0; - - // Secure Messaging - virtual ISCardSM* GetSM() const = 0; - virtual void SetSM(ISCardSM* sm) = 0; - }; - -} // namespace act - -#endif // ACT_ISCardAccess_h diff --git a/actlibrary/OpenSUSE-11-x86_64/Release/include/actISCardOS.h b/actlibrary/OpenSUSE-11-x86_64/Release/include/actISCardOS.h deleted file mode 100644 index 53f2d62..0000000 --- a/actlibrary/OpenSUSE-11-x86_64/Release/include/actISCardOS.h +++ /dev/null @@ -1,262 +0,0 @@ -// --------------------------------------------------------------------------- -// Name: actISCardOS.h -// Product: cv act library -// Purpose: The class ISCardOS accesses the card operating system -// -// Copyright: (c) 2002 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -// -// Autor: Dr. Xiangdong Wang (XWG) -// Date: 03/21/2002 -// --------------------------------------------------------------------------- - -#ifndef ACT_ISCardOS_h -#define ACT_ISCardOS_h - -#include "actBlob.h" -#include "actTokenBase.h" - -#include "actITokenPIN.h" -#include "actITokenConfig.h" -#include "actITokenInitializer.h" - -#include "actIRefCounted.h" -#include "actIAccessCondition.h" - -namespace act -{ - class IKey; - class IEMSAAlg; - class ITokenFile; - class ISCardAccess; - class ISCardOSBehavior; - class IKeyDerivation; - - class EFDIR; - - const FIDType FID_EF_DIR = 0x2F00; - const FIDType FID_EF_ATR = 0x2F01; - - // - // ISO 7816-4 - enum SCardFileType - { - BINARY = 0x01, - LINEAR_FIXED = 0x02, - LINEAR_TLV = 0x05, - LINEAR_VARIABLE = 0x04, - CYCLIC_FIXED = 0x06, - DF = 0x38 - }; - - // - // ISO 7816-4 - enum SCardRecordMode - { - ABSOLUTE_MODE = 0x04 - }; - - // - // ISO 7816-4 - enum SCardSelectType - { - MFType = 0x00, - DFType = 0x01, - EFType = 0x02, - AIDType = 0x04, - PathType = 0x08 - }; - - enum SCardSelectMode - { - FCI = 0x00, // FCI template - FCP = 0x04, // FCP template - FMD = 0x08, // FMD template - NoData = 0x0c, // No response data - }; - - enum SCardError - { - SCARD_SUCCESS = 0, - SCARD_FUNCTION_NOT_SUPPORTED = -1, - SCARD_FUNCTION_FAILED = -2 - }; - - // - // ISCardOS - class ISCardOS - : public IRefCounted - , public IAcConverter - { - public: - virtual ~ISCardOS() { } - - // ISCardOS - virtual ISCardOS* Clone() const = 0; - - virtual bool IsMoC() = 0; - virtual const char* GetName() const = 0; - virtual Blob GetSerialNumber() const = 0; // hardware serial number - virtual Blob GetCardId(unsigned short fid_card_id) = 0; - virtual Blob GetCardCF(unsigned short fid_card_cf) = 0; - - virtual ISCardAccess* GetAccess() const = 0; - - virtual Blob ComputeDigitalSignature(const Blob& data, int mode = SIGN_DATA) = 0; - virtual Blob ComputeDigitalSignature(IEMSAAlg* emsa, int mode = SIGN_DATA) = 0; - virtual Blob Encipher(const Blob& plaintext) = 0; - virtual Blob Decipher(const Blob& encrypted_data) = 0; - virtual Blob AgreeKey(const Blob& pubkey) = 0; - - virtual void ComputeECDigitalSignature(const Blob& data, Blob& signature) = 0; - - virtual Blob SelectFile(const int filetype, const char* filepath) = 0; // return file control information - virtual Blob SelectFile(const int filetype, const Blob& filepath) = 0; // return file control information - virtual Blob SelectFile(const int filetype, FIDType fid) = 0; // return file control information - virtual Blob SelectApp(const Blob& aid, SCardSelectMode mode = NoData) = 0; - - // EF.DIR - virtual EFDIR* GetEFDIR(ushort fid = FID_INVALID) = 0; - - virtual int GetEFSize(FIDType fid) = 0; - virtual int GetEFSize(const Blob& filepath, Blob& fci) = 0; - virtual void GetFCI(FIDType fid, Blob& fci) = 0; - virtual Blob GetFCIValue(const Blob& fci, const byte tag) = 0; - virtual byte GetFileInfo(const Blob& fc_data, unsigned short& ef_size, size_t& num_of_records) = 0; - - // select and read binary - virtual Blob ReadBinary(const char* filepath) = 0; - virtual Blob ReadBinary(const Blob& filepath) = 0; - virtual Blob ReadBinary(FIDType fid) = 0; - - // read/update binary, file is selected, file size is known - virtual Blob ReadSelectedBinary(size_t file_size, unsigned short offset = 0) = 0; - virtual void UpdateSelectedBinary(const Blob& data, unsigned short offset = 0) = 0; - - // select and update binary - virtual void UpdateBinary(const Blob& filepath, const Blob& data, unsigned short offset = 0) = 0; - virtual void UpdateBinary(FIDType fid, const Blob& data, unsigned short offset = 0) = 0; - - // read binary with XL-APDUs - virtual Blob ReadBinaryX(const char* filepath) = 0; - virtual Blob ReadBinaryX(const Blob& filepath) = 0; - virtual Blob ReadBinaryX(FIDType fid) = 0; - virtual Blob ReadSelectedBinaryX(size_t file_size, unsigned short offset = 0) = 0; - - // update binary with XL-APDUs - virtual void UpdateBinaryX(const Blob& filepath, const Blob& data, unsigned short offset = 0) = 0; - virtual void UpdateBinaryX(FIDType fid, const Blob& data, unsigned short offset = 0) = 0; - virtual void UpdateSelectedBinaryX(const Blob& data, unsigned short offset = 0) = 0; - - // record read/write (file must be selected) - virtual Blob ReadRecord(byte mode) = 0; // p2 - virtual Blob ReadRecord(byte rec_id, byte mode) = 0; // p1, p2 - virtual void UpdateRecord(const Blob& data, byte rec_id, byte mode) = 0; // data, p1, p2 - virtual void AppendRecord(const Blob& data, byte ef_id = 0) = 0; // data, p2 - - // record write (includes file selection and resize) - virtual void UpdateRecord(const Blob& filepath, const Blob& data, byte rec_id, byte mode) = 0; - virtual void AppendRecord(const Blob& filepath, const Blob& data) = 0; - - virtual void DeleteEF(const Blob& fid) = 0; - virtual void DeleteEF(FIDType fid) = 0; - - virtual void CreateEF(const Blob& fcp) = 0; - virtual void CreateEF(const Blob& fid, unsigned short len, bool secure = false) = 0; - virtual void CreateEF(FIDType fid, unsigned short len, bool secure = false) = 0; - - virtual void CreateEF_TLV(FIDType fid, unsigned short len, unsigned short num_of_records = 1) = 0; - virtual void CreateEF_TLV(const Blob& fid, unsigned short len, unsigned short num_of_records = 1) = 0; - - virtual unsigned short GetOSFileOffset() const = 0; - - // get/put dat - virtual Blob GetData(ushort tag, ushort le = 0) const = 0; // INS=CA - virtual void PutData(ushort tag, const Blob& data) = 0; // INS=DA - - // MSE/PSO functions - virtual void ManageSecurityEnvironment(byte p1, byte p2, const Blob& data = Blob()) = 0; - virtual void PerformSecurityOperation(Blob& response, byte p1, byte p2, const Blob& data, bool chaining = false) = 0; - virtual void PerformSecurityOperationX(Blob& response, byte p1, byte p2, const Blob& data) = 0; // explicit extended APDU - - // ISO authentication functions - virtual void ExternalAuthenticate(byte key_id, const Blob& response, bool odd_INS = false) = 0; // INS=82/83, P1=00, P2=key_id - virtual Blob InternalAuthenticate(byte key_id, const Blob& challenge, bool odd_INS = false) = 0; // INS=88/89, P1=00, P2=key_id - virtual Blob MutualAuthenticate(byte key_id, const Blob& auth_data, bool odd_INS = false) = 0; // INS=82/83, P1=00, P2=key_id - virtual Blob GeneralAuthenticate(byte key_id, const Blob& auth_data, bool chaining = false, bool odd_INS = false) = 0; // INS=86/87, P1=00, P2=key_id - - virtual void ResetRetryCounter(byte p1, byte p2, const Blob& data) = 0; - virtual void Verify(byte p1, byte p2, const Blob& data, bool odd_INS = false) = 0; // INS=20/21 - - // random functions - virtual Blob GetChallenge(byte le = byte(8)) const = 0; - virtual Blob GetRandom(const unsigned long count) const = 0; - - // token type / config - virtual ProfileType GetProfileType(bool refresh = false) = 0; - - virtual void SetTokenConfig(ITokenConfig* tkcfg) = 0; - virtual ITokenConfig* GetTokenConfig() const = 0; - - // set/get behavior - virtual void SetBehavior(ISCardOSBehavior* behave) = 0; - virtual ISCardOSBehavior* GetBehavior() = 0; - - // access rights - virtual void SetAccessRights(const Blob& access_rights) = 0; - virtual void SetAccessRights(move_from access_rights) = 0; - virtual void SetExplicitRights(IAccessCondition* ac, size_t ac_cnt = 1) = 0; - - virtual bool HasExplicitRights() const = 0; - - virtual Blob GetAccessRights() = 0; - virtual IAccessCondition* GetAccessRights(const Blob& fci) = 0; - virtual Blob GetAccessRights(ACSCardObjType ac_obj_type, bool tagged) const = 0; - - // selected path - virtual void SetSelectedPath(ITokenFile* selected_path) const = 0; - virtual ITokenFile* GetSelectedPath() const = 0; - - // key derivation - virtual void SetKeyDerivation(IKeyDerivation* key_derivation) = 0; - virtual IKeyDerivation* GetKeyDerivation() const = 0; - - // key handling - virtual void GenerateRSAKeyPair(int key_id, size_t key_size, // in bits - Blob& pubkey) = 0; - - virtual void ImportRSAKeyPair(int key_id, const Blob& prime_p, - const Blob& prime_q, const Blob& priv_exp, Blob& pubkey) = 0; - - virtual void GenerateECKeyPair(Blob& pubkey) = 0; - - virtual void GenerateECKeyPair(int key_id, const Blob& curve_oid, - const Blob& curve_param, Blob& pubkey) = 0; - - virtual void ImportECKeyPair(int key_nr, const Blob& curve_oid, - const Blob& curve_param, const Blob& privkey, const Blob& pubkey) = 0; - - virtual void ImportDESKey(int key_id, const Blob& keyblob) = 0; - - virtual void DeletePrivateKeyObj(FIDType fid) = 0; - virtual void DeleteECPrivateKeyObj(FIDType fid) = 0; - virtual void DeleteBlockCipherKeyObj(FIDType fid) = 0; - virtual void SelectKey(int key_id) = 0; - - // authentication functions - virtual Blob ComputeResponse(const Blob& auth_key, const Blob& challenge) const = 0; - virtual void UpdateExternalAuthenticateKey(byte key_id, const Blob& auth_key) = 0; - - virtual void ResetSecurityStatus() = 0; - virtual SecStatus GetSecurityStatus(byte obj_ref, Blob& context) const = 0; - - // token initialization - virtual void SetDefaultLabel(move_from label) = 0; - virtual ITokenInitializer* GetTokenInitializer() = 0; - }; - -} // namespace act - -#endif // ACT_ISCardOS_h diff --git a/actlibrary/OpenSUSE-11-x86_64/Release/include/actISCardOSBehavior.h b/actlibrary/OpenSUSE-11-x86_64/Release/include/actISCardOSBehavior.h deleted file mode 100644 index da9c27c..0000000 --- a/actlibrary/OpenSUSE-11-x86_64/Release/include/actISCardOSBehavior.h +++ /dev/null @@ -1,79 +0,0 @@ -// --------------------------------------------------------------------------- -// Name: actISCardOSBehavior.h -// Product: cv act library -// Purpose: ISCardOSBehavior interface, encapsulates CardOS specific logic -// for security operations. -// -// Copyright: (c) 2002-2008 cv cryptovision GmbH all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -// -// Autor: Markus Tesche -// Date: 06/03/2008 -// --------------------------------------------------------------------------- - -#ifndef ACT_ISCardOSBehavior_h -#define ACT_ISCardOSBehavior_h - -#include "actIRefCounted.h" - -namespace act -{ - class Blob; - class IEMSAAlg; - class ISCardOS; - class ITokenPIN; - - enum OSBehavior - { - NONE_BEHAVIOR = 0x00000000, - - // algorithm behaviors - SIGN_BEHAVIOR = 0x00000001, - VERIFY_BEHAVIOR = 0x00000002, - DECRYPT_BEHAVIOR = 0x00000004, - ENCRYPT_BEHAVIOR = 0x00000008, - AGREEMENT_BEHAVIOR = 0x00000010, - ALGORITHM_BEHAVIOR_MASK = 0x000000FF, - - // key behaviors - GENERATE_KEY_BEHAVIOR = 0x00000100, - IMPORT_KEY_BEHAVIOR = 0x00000200, - DELETE_PRIVKEY_BEHAVIOR = 0x00000400, - KEY_BEHAVIOR_MASK = 0x0000FF00, - - // PIN behaviors - VERIFY_PIN_BEHAVIOR = 0x00010000, - CHANGE_PIN_BEHAVIOR = 0x00020000, - SET_PIN_BEHAVIOR = 0x00040000, - UNLOCK_PIN_BEHAVIOR = 0x00080000, - PIN_BEHAVIOR_MASK = 0x00FF0000 - }; - - // - // ISCardOSBehavior - class ISCardOSBehavior : public IRefCounted - { - public: - virtual bool Supports(int behavior) const throw() = 0; - - virtual Blob ComputeDigitalSignature(ISCardOS* os, const Blob& data, int mode) = 0; - virtual Blob ComputeDigitalSignature(ISCardOS* os, IEMSAAlg* emsa, int mode) = 0; - virtual Blob Encipher(ISCardOS* os, const Blob& plaintext) = 0; - virtual Blob Decipher(ISCardOS* os, const Blob& encrypted_data) = 0; - virtual Blob AgreeKey(ISCardOS* os, const Blob& pubkey) = 0; - - virtual void GenerateRSAKeyPair(ISCardOS* os, byte key_num, size_t key_size) = 0; - virtual void ImportRSAKeyPair(ISCardOS* os, int key_id, const Blob& prime_p, const Blob& prime_q, - const Blob& priv_exp, Blob& pubkey) = 0; - virtual void DeletePrivateKeyObj(ISCardOS* os, unsigned short fid) = 0; - - virtual void doVerifyPinCmd(const ITokenPIN* token_pin, const Blob& pin_value) = 0; - virtual void doChangePinCmd(const ITokenPIN* token_pin, const Blob& oldnew_value) = 0; - virtual void doSetPinValueCmd(const ITokenPIN* token_pin, const Blob& newpin_value) = 0; - virtual void UnlockPin(const ITokenPIN* token_pin, const Blob& new_pin) = 0; - }; - -} // namespace act - -#endif // ACT_ISCardOSBehavior_h diff --git a/actlibrary/OpenSUSE-11-x86_64/Release/include/actISecurityManager.h b/actlibrary/OpenSUSE-11-x86_64/Release/include/actISecurityManager.h deleted file mode 100644 index ecaccd8..0000000 --- a/actlibrary/OpenSUSE-11-x86_64/Release/include/actISecurityManager.h +++ /dev/null @@ -1,60 +0,0 @@ -// --------------------------------------------------------------------------- -// Name: actISecurityManager.h -// Product: cv act library -// Purpose: ISecurityManager used to manage the token authentication objects. -// -// Copyright: (c) 2008 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -// -// Autor: Markus Tesche (MTE) -// Date: 08/05/2008 -// --------------------------------------------------------------------------- - -#ifndef ACT_ISecurityManager_h -#define ACT_ISecurityManager_h - -#include "actBasics.h" -#include "actIRefCounted.h" - -namespace act -{ - class ITokenPIN; - class IAuthIdRef; - - enum SecManType - { - SecManUnknown = 0, - SecManPIN, - SecManBio, - }; - - // - // ISecurityManager - // TODO: MTE: Add access control management - class ISecurityManager : public IRefCounted - { - public: - virtual SecManType GetType() const = 0; - virtual void Delete(ITokenPIN* auth_obj) = 0; - }; - - class IPINManager : public ISecurityManager - { - public: - // NOTE: MTE: pin can be empty! - virtual ITokenPIN* Create(IAuthIdRef* authIdRef, IAuthIdRef* parentAuthIdRef, - int retryCount, const Blob& pin) = 0; - }; - - class IBioManager : public ISecurityManager - { - public: - virtual ITokenPIN* Create(IAuthIdRef* authIdRef, IAuthIdRef* parentAuthIdRef, - int retryCount, int bioFinger) = 0; - }; - -} // namespace act - -#endif // ACT_ISecurityManager_h diff --git a/actlibrary/OpenSUSE-11-x86_64/Release/include/actISignatureKey.h b/actlibrary/OpenSUSE-11-x86_64/Release/include/actISignatureKey.h deleted file mode 100644 index 2538580..0000000 --- a/actlibrary/OpenSUSE-11-x86_64/Release/include/actISignatureKey.h +++ /dev/null @@ -1,32 +0,0 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actISignatureKey.h -// Product: cv act library -// Purpose: The interface ISignatureKey enables access to the aggregated -// EMSA-object of the SignatureKeys. -// -// Copyright: (c) 2000 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_ISignatureKey_h -#define ACT_ISignatureKey_h - -#include "actIKey.h" - -namespace act -{ - class IEMSAAlg; - - class ISignatureKey : public IKey - { - public: - virtual void SetEncoder(IEMSAAlg* padding) = 0; - virtual const IEMSAAlg* GetEncoder() const = 0; - virtual IEMSAAlg* GetEncoder() = 0; - }; - -} // namespace act - -#endif // ACT_ISignatureKey_h diff --git a/actlibrary/OpenSUSE-11-x86_64/Release/include/actISlot.h b/actlibrary/OpenSUSE-11-x86_64/Release/include/actISlot.h deleted file mode 100644 index b3a2efd..0000000 --- a/actlibrary/OpenSUSE-11-x86_64/Release/include/actISlot.h +++ /dev/null @@ -1,82 +0,0 @@ -// --------------------------------------------------------------------------- -// Name: actISlot.h -// Product: cv act library -// Purpose: The class ISlot manages the Tokens -// -// Copyright: (c) 2002 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -// -// Autor: Dr. Xiangdong Wang (XWG) -// Date: 03/26/2002 -// --------------------------------------------------------------------------- - -#ifndef ACT_ISlot_h -#define ACT_ISlot_h - -#include "actBasics.h" -#include "actBlob.h" - -#include "actIRefCounted.h" -#include "actISynchronize.h" -#include "actIEventMonitoring.h" - -namespace act -{ - class IToken; - class ITokenConfig; - class ISCardOS; - class ISCardAccess; - class ISubsystem; - - // --------------------------------------------------------------------------- - class ISlot - : public IRefCounted - , public ISynchronize - , public IEventMonitoring - { - protected: - virtual ~ISlot() { } - - public: - virtual ISlot* Clone() const = 0; - - virtual bool IsTokenPresent() const = 0; - virtual const char* GetName() const = 0; - virtual ISubsystem* GetSystem() const = 0; - - virtual Blob GetATR() const = 0; - virtual Blob GetHistoricalBytes() const = 0; - - virtual ISCardOS* CreateOS(const Blob& historical_bytes = Blob()) = 0; - virtual IToken* CreateToken(ISCardOS* os = 0) = 0; - virtual ISCardAccess* CreateAccess() = 0; - - virtual void SetTokenConfig(ITokenConfig* tkcfg) = 0; - - virtual bool HasSecurePinEntry(ISCardAccess* ac = 0) const = 0; - virtual bool HasSecurePinChange(ISCardAccess* ac = 0) const = 0; - - virtual void SetParam(paramid_t id,int val) = 0; - virtual int GetParam(paramid_t id) const = 0; - }; - - // --------------------------------------------------------------------------- - struct ATRCardInfo - { - const char* name; - const char* atr; - const char* atr_mask; - }; - - // --------------------------------------------------------------------------- - void InitCardInfoMap(const ATRCardInfo* mapCardInfo); - const ATRCardInfo* GetATRCardInfo(const Blob& atr); - const char* GetOSName(const Blob& atr); - Blob GetHistoricalBytes(const Blob& atr); - bool GetATRStructInfo(const Blob& atr, size_t& his_pos, size_t& his_len, bool& has_tck); - -} // namespace act - -#endif // ACT_ISlot_h diff --git a/actlibrary/OpenSUSE-11-x86_64/Release/include/actISlotMonitor.h b/actlibrary/OpenSUSE-11-x86_64/Release/include/actISlotMonitor.h deleted file mode 100644 index 358abc0..0000000 --- a/actlibrary/OpenSUSE-11-x86_64/Release/include/actISlotMonitor.h +++ /dev/null @@ -1,39 +0,0 @@ -// --------------------------------------------------------------------------- -// Name: actISlotMonitor.h -// Product: cv act library -// Purpose: The class SlotMonitor notifies the slot events -// -// Copyright: (c) 2002 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -// -// Autor: Dr. Xiangdong Wang (XWG) -// Date: 05/27/2002 -// --------------------------------------------------------------------------- - -#ifndef ACT_ISlotMonitor_h -#define ACT_ISlotMonitor_h - -#include "actIRefCounted.h" - -namespace act -{ - class IEventHandler; - - // - // ISlotMonitor - class ISlotMonitor : public IRefCounted - { - public: - virtual void Stop() = 0; - virtual void Start(IEventHandler* cmd) = 0; - virtual bool Interrupted() const = 0; - - protected: - virtual void Run() = 0; - }; - -} // namespace act - -#endif // ACT_ISlotMonitor_h diff --git a/actlibrary/OpenSUSE-11-x86_64/Release/include/actIStreamCipher.h b/actlibrary/OpenSUSE-11-x86_64/Release/include/actIStreamCipher.h deleted file mode 100644 index 4c53d98..0000000 --- a/actlibrary/OpenSUSE-11-x86_64/Release/include/actIStreamCipher.h +++ /dev/null @@ -1,51 +0,0 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actIStreamCipher.h -// Product: cv act library -// Purpose: The class IStreamCipher creates the symmetric StreamCipher, which is -// defined by IStreamCipherKey. It offers operations like encrypt, decrypt -// and queries involving validity or keylength etc. -// -// Copyright: (c) 2001 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_IStreamCipher_h -#define ACT_IStreamCipher_h - -#include "actBasics.h" - -namespace act -{ - - class Blob; - - class IStreamCipher - { - public: - - virtual IStreamCipher* Clone() const =0; - virtual void Import( const Blob& indata ) =0; - virtual void Export( Blob& outdata ) const =0; - - virtual void SetRawKey( const Blob& keyblob ) =0; - virtual void GetRawKey( Blob& keyblob ) const =0; - - virtual void Process(const byte* input, byte* output, size_t input_len) const =0; - - virtual size_t GetKeySize(size_t keysize=0) const =0; - virtual size_t GetMinKeySize() const =0; - virtual size_t GetMaxKeySize() const =0; - virtual size_t GetNextKeySize(size_t prevsize) const =0; - - virtual void* GetCreatePointer() const =0; - - virtual ~IStreamCipher() {}; - }; - - -}// namespace act - -#endif - diff --git a/actlibrary/OpenSUSE-11-x86_64/Release/include/actIStreamCipherKey.h b/actlibrary/OpenSUSE-11-x86_64/Release/include/actIStreamCipherKey.h deleted file mode 100644 index 7282893..0000000 --- a/actlibrary/OpenSUSE-11-x86_64/Release/include/actIStreamCipherKey.h +++ /dev/null @@ -1,39 +0,0 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actIStreamCipherKey.h -// Product: cv act library -// Purpose: The class IStreamCipherKey extends the interface of the class IKey -// and supports the peculiarities of symmetric keys. -// -// -// Copyright: (c) 2001 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_IStreamCipherKey_h -#define ACT_IStreamCipherKey_h - -#include "actIKey.h" - -namespace act -{ - class IStreamCipher; - class IDerivator; - - class IStreamCipherKey : public IKey - { - public: - - virtual void SetCipher(IStreamCipher* cipher) = 0; - virtual const IStreamCipher* GetCipher() const = 0; - virtual IStreamCipher* GetCipher() = 0; - - virtual void SetDerivator(IDerivator* derive) = 0; - virtual const IDerivator* GetDerivator() const = 0; - virtual IDerivator* GetDerivator() = 0; - }; - -} //namespace act - -#endif // ACT_IStreamCipherKey_h diff --git a/actlibrary/OpenSUSE-11-x86_64/Release/include/actISubsystem.h b/actlibrary/OpenSUSE-11-x86_64/Release/include/actISubsystem.h deleted file mode 100644 index 731b4cd..0000000 --- a/actlibrary/OpenSUSE-11-x86_64/Release/include/actISubsystem.h +++ /dev/null @@ -1,54 +0,0 @@ -// --------------------------------------------------------------------------- -// Name: actISubsystem.h -// Product: cv act library -// Purpose: The class ISubsystem detects and manages the slots -// -// Copyright: (c) 2002 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -// -// Autor: Dr. Xiangdong Wang (XWG) -// Date: 03/26/2002 -// --------------------------------------------------------------------------- - -#ifndef ACT_ISubsystem_h -#define ACT_ISubsystem_h - -#include "actBasics.h" -#include "actIRefCounted.h" -#include "actISynchronize.h" -#include "actIEventMonitoring.h" - -namespace act -{ - class ISlot; - class ITokenConfig; - - // - // ISubsystem - class ISubsystem - : public IRefCounted - , public ISynchronize - , public IEventMonitoring - { - public: - virtual void Refresh() = 0; - virtual bool Disconnect() = 0; - virtual bool Install(size_t port) = 0; - virtual const char* GetName() const = 0; - - // SlotList - virtual int GetSlotNumber() const = 0; - virtual const ISlot* GetSlot(int pos) const = 0; - virtual ISlot* CreateSlot(const char* name) = 0; - - virtual void SetTokenConfig(ITokenConfig* tkcfg) = 0; - - protected: - virtual ~ISubsystem() { } - }; - -} // namespace act - -#endif // ACT_ISubsystem_h diff --git a/actlibrary/OpenSUSE-11-x86_64/Release/include/actISubsystemConfig.h b/actlibrary/OpenSUSE-11-x86_64/Release/include/actISubsystemConfig.h deleted file mode 100644 index 165ac6e..0000000 --- a/actlibrary/OpenSUSE-11-x86_64/Release/include/actISubsystemConfig.h +++ /dev/null @@ -1,38 +0,0 @@ -// --------------------------------------------------------------------------- -// Name: actISubsystemConfig.h -// Product: cv act library -// Purpose: The Subsystem configuration. -// -// Copyright: (c) 2006 cv cryptovision GmbH -// all rights reserved. -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -// -// Autor: Markus Tesche (MTE) -// Date: 1/12/2006 -// --------------------------------------------------------------------------- - -#ifndef ACT_ISubsystemConfig_h -#define ACT_ISubsystemConfig_h - -#include "actIRefCounted.h" - -namespace act -{ - class ISubsystem; - - // - // ISubsystemConfig - class ISubsystemConfig : public IRefCounted - { - public: - // Returns the Subsystem name. - virtual const char* GetName() const = 0; - - // Configures the Subsystem, if fails throws an Exception. - virtual void ConfigureSubsystem(ISubsystem*) = 0; - }; - -} // namespace act - -#endif // ACT_ISubsystemConfig_h diff --git a/actlibrary/OpenSUSE-11-x86_64/Release/include/actISynchronize.h b/actlibrary/OpenSUSE-11-x86_64/Release/include/actISynchronize.h deleted file mode 100644 index c8f1ef6..0000000 --- a/actlibrary/OpenSUSE-11-x86_64/Release/include/actISynchronize.h +++ /dev/null @@ -1,43 +0,0 @@ -////////////////////////////////////////////////////////////////////////// -// Name: actISynchronize.h -// Product: cv act library -// Purpose: Implemented by types supporting multithreading synchronization. -// -// Copyright: (c) 2010 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -// -// Autor: Markus Tesche -// Date: 07/27/2010 -////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_ISynchronize_h -#define ACT_ISynchronize_h - -namespace act -{ - class Handle; - - // - // ISynchronize - class ISynchronize - { - protected: - virtual ~ISynchronize() { } - - public: - virtual void Lock() = 0; - virtual void Unlock() = 0; - virtual long LockCount() const = 0; - - virtual const Handle& syncHandle() const = 0; - }; - - inline void Lock(ISynchronize& object) { object.Lock(); } - inline void Unlock(ISynchronize& object) { object.Unlock(); } - inline long LockCount(const ISynchronize& object) { return object.LockCount(); } - -} // namespace act - -#endif // ACT_ISynchronize_h diff --git a/actlibrary/OpenSUSE-11-x86_64/Release/include/actIToken.h b/actlibrary/OpenSUSE-11-x86_64/Release/include/actIToken.h deleted file mode 100644 index 15d0ac2..0000000 --- a/actlibrary/OpenSUSE-11-x86_64/Release/include/actIToken.h +++ /dev/null @@ -1,165 +0,0 @@ -// --------------------------------------------------------------------------- -// Name: actIToken.h -// Product: cv act library -// Purpose: The IToken interface represents the profile and the application -// supported by a token. -// -// Copyright: (c) 2002 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -// -// Autor: Dr. Xiangdong Wang (XWG) -// Date: 03/22/2002 -// --------------------------------------------------------------------------- - -#ifndef ACT_IToken_h -#define ACT_IToken_h - -#include "actBlob.h" -#include "actBasics.h" -#include "actTokenBase.h" - -#include "actISynchronize.h" -#include "actITokenFileCache.h" -#include "actIAccessCondition.h" - -namespace act -{ - class IKey; - class IEMSAAlg; - class ICertificate; - class IAuthIdRef; - class ITokenPIN; - class ITokenAuth; - class ITokenFile; - class ITokenFileMap; - class ITokenConfig; - class ITokenKeyIterator; - class ISecurityManager; - class ITokenAuthIterator; - - struct CertEntry - { - int usage; - Blob certblob; - }; - - // - // ITokenView - class ITokenView - { - protected: - virtual ~ITokenView() { } - - public: - virtual IToken* GetToken() = 0; - - virtual ITokenView* GetPrev() const = 0; - virtual ITokenView* GetNext() const = 0; - - virtual ITokenFile* GetPath() const = 0; - virtual ITokenFileMap* GetFileMap() const = 0; - - virtual bool Equals(const ITokenView* other) const = 0; - - // Divide view into partitions, based on type[PATH|PIN] - virtual size_t Split(paramid_t type) = 0; - virtual ITokenView* SetDefault() = 0; - }; - - // - // IToken - class IToken - : public IRefCounted - , public IAcConverter - , public ISynchronize - { - protected: - virtual ~IToken() { } - - public: - virtual ITokenView* GetView() const = 0; - virtual ITokenConfig* GetConfig() const = 0; - virtual ITokenFile* GetTokenFile(const Blob& path) = 0; - - virtual int GetStatus() const = 0; - virtual int GetType() const = 0; - virtual ProfileType GetProfileType() = 0; - virtual const char* GetName() const = 0; - - // Returns the serial number, which may (!) be empty or equal the hardware serial! - virtual Blob GetSerialNumber() const = 0; - virtual Blob GetCardholderName() const = 0; - virtual Blob GetRandom(const unsigned long count) const = 0; - virtual void SetSeed(const Blob& seed) = 0; - - // Generate a new key - virtual IKey* NewKey(int key_type) = 0; - - // Add key to token, takes ownership - even on exception! - virtual void AddKey(IKey* key) = 0; - virtual bool RemoveKey(IKey* key) = 0; - - // Write/Import a (soft) key to token - virtual IKey* WriteKey(const IKey* key) = 0; - - // Get a token key instance from matching certificate - virtual IKey* CreateKey(const Blob& cert) const = 0; - virtual IKey* CreateKey(const ICertificate* cert) const = 0; - - // Key Objects - virtual int GetKeyNumber() const = 0; - virtual IKey* GetKey(int pos) const = 0; - virtual ITokenKeyIterator* GetKeyIterator(KeyType type, const Blob& authId = Blob()) = 0; - - // Certificate Objects - virtual int GetCertificateNumber() const = 0; - virtual CertEntry GetCertificate(int pos) const = 0; - - // Write/Delete a certificate (corresponding to a key) to token - virtual void WriteCertificate(const Blob& cert, IKey* key = 0) = 0; - virtual void DeleteCertificate(const Blob& cert, IKey* key = 0) = 0; - - // Authentication Objects - virtual ITokenAuth* GetAuth() const = 0; - virtual ISecurityManager* SecurityManager(int authManagerType) = 0; - virtual ITokenAuthIterator* GetAuthIterator(int type, const Blob& authId = Blob()) = 0; - - virtual int GetPinNumber() const = 0; - virtual ITokenPIN* GetPin(const IAuthIdRef* authIdRef, const ITokenFile* location) const = 0; - virtual ITokenPIN* GetPin(int pos, const ITokenFile* location) const = 0; - virtual ITokenPIN* GetPin(const char* pin_name) const = 0; - virtual ITokenPIN* GetPin(const Blob& authId) const = 0; - - virtual ITokenPIN* GetUserPin() const = 0; - virtual ITokenPIN* GetSOPin() const = 0; - virtual void VerifyUserPin(const Blob& pinvalue) = 0; - virtual void ChangeUserPin(const Blob& oldpin, const Blob& newpin) = 0; - virtual void UnlockUserPin(const Blob& so_pin, const Blob& new_userpin) = 0; - virtual void VerifySOPin(const Blob& pinvalue) = 0; - virtual void ChangeSOPin(const Blob& oldpin, const Blob& newpin) = 0; - - virtual bool ResetSecurityState() const = 0; - - // Token specific - virtual void SelectDataPath() const = 0; // TODO: MTE: To be removed soon! - virtual ISCardOS* GetOS() const = 0; // TODO: MTE: To be removed soon! - - // Delete a key pair from token with matching token key or certificate - virtual void DeleteKeyPair(const IKey* key) = 0; - virtual void DeleteKeyPair(const Blob& cert) = 0; - - virtual bool IsPKCS15() const = 0; - virtual bool IsReadOnly() const = 0; - virtual bool LoginRequired() const = 0; - - virtual bool IsLocked() const = 0; - - virtual Blob GetCardId() const = 0; - virtual Blob GetCardCF() const = 0; - }; - -} // namespace act - -#endif // ACT_IToken_h diff --git a/actlibrary/OpenSUSE-11-x86_64/Release/include/actITokenAuth.h b/actlibrary/OpenSUSE-11-x86_64/Release/include/actITokenAuth.h deleted file mode 100644 index cd6d150..0000000 --- a/actlibrary/OpenSUSE-11-x86_64/Release/include/actITokenAuth.h +++ /dev/null @@ -1,139 +0,0 @@ -// --------------------------------------------------------------------------- -// Name: actITokenAuth.h -// Product: cv act library -// Purpose: The ITokenAuth interface represents a IToken authentication state -// using one the ITokenPIN objects owned by a token. -// -// Copyright: (c) 2007 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -// -// Autor: Markus Tesche (MTE) -// Date: 11/09/2007 -// --------------------------------------------------------------------------- - -#ifndef ACT_ITokenAuth_h -#define ACT_ITokenAuth_h - -#include "actBlob.h" -#include "actBasics.h" -#include "actIRefCounted.h" - -namespace act -{ - class AuthInfo; - - class IToken; - class ITokenPIN; - class ITokenFile; - class IAuthIdRef; - class IAuthConstrained; - - enum AuthConstrainedType - { - AUTH_CONSTRAINED_ALWAYS = 0, - AUTH_CONSTRAINED_NOT, - AUTH_CONSTRAINED_AND, - AUTH_CONSTRAINED_OR, - }; - - // - // IAuthFactory - class IAuthFactory - { - public: - virtual IAuthIdRef* CreateAuthIdRef(const Blob& authId, ITokenFile* path, - byte constrained_mode = AUTH_CONSTRAINED_ALWAYS) = 0; - - virtual ITokenPIN* CreatePin(const AuthInfo& ai, byte objRef, ITokenFile* path, - IAuthIdRef* authIdRef, IAuthIdRef* parentAuthIdRef) = 0; - - // TODO: MTE: deprecated, use CreatePin(const AuthInfo&...) instead - virtual ITokenPIN* CreatePin(int type, int usage, byte objRef, int minLen, - int maxLen, IAuthIdRef* authIdRef, const char* name = 0) = 0; - - protected: - virtual ~IAuthFactory() { } - }; - - - // - // IAuthIdRef - class IAuthIdRef : public IRefCounted - { - public: - virtual byte GetAuthIdByte() const = 0; - virtual const Blob& GetAuthId() const = 0; - virtual IAuthConstrained* GetAuthConstrained() = 0; - - virtual bool Equals(const Blob& authId) const = 0; - }; - - // - // IAuthIdRefIterator - class IAuthIdRefIterator : public IRefCounted - { - public: - virtual void Reset() = 0; - virtual IAuthIdRef* Next() = 0; - }; - - - // - // ITokenAuthIterator - class ITokenAuthIterator : public IRefCounted - { - public: - virtual void Reset(ITokenFile* parent = 0) = 0; - virtual ITokenPIN* Next() = 0; - }; - - // - // ITokenAuth - class ITokenAuth : public IRefCounted - { - public: - virtual bool Login(ITokenPIN* auth_obj, const Blob& pin) = 0; - - virtual bool Logout() = 0; - virtual bool Logout(const ITokenPIN* auth_obj) = 0; - virtual bool LogoutEx(bool reset_security_state) = 0; - - virtual Blob GetChallenge(const ITokenPIN* auth_obj) = 0; - - virtual IToken* GetToken() const = 0; - virtual ITokenPIN* GetAuthenticated() const = 0; - virtual ITokenPIN* GetAuthenticated(size_t index) const = 0; - - virtual bool NeedsPINValue() const = 0; - virtual bool HasChallenge() const = 0; - virtual bool HasChallenge(const ITokenPIN* auth_obj) const = 0; - virtual bool IsAuthenticated(const ITokenPIN* auth_obj) const = 0; - virtual bool IsAuthenticated(bool verify_security_state = false) const = 0; - - /*! - * Clears the internal authentication state for given auth_obj. - * - * If auth_obj is not authenticated: - * - do nothing - * - return false - * - * If auth_obj is authenticated: - * - remove auth_obj from authenticated-list. - * - return true - * - * \note does NOT reset the card's authentication state! - * - * \param auth_obj \ref ITokenPIN - * \return true if succeeded, false if not - */ - virtual bool Invalidate(ITokenPIN* auth_obj) = 0; - virtual bool Select(const ITokenPIN* auth_obj, bool force) = 0; - - virtual ITokenAuthIterator* Iterator(int type, const Blob& authId = Blob()) const = 0; - }; - -} // namespace act - -#endif // ACT_ITokenAuth_h diff --git a/actlibrary/OpenSUSE-11-x86_64/Release/include/actITokenAuthOwner.h b/actlibrary/OpenSUSE-11-x86_64/Release/include/actITokenAuthOwner.h deleted file mode 100644 index c53eccc..0000000 --- a/actlibrary/OpenSUSE-11-x86_64/Release/include/actITokenAuthOwner.h +++ /dev/null @@ -1,39 +0,0 @@ -// --------------------------------------------------------------------------- -// Name: actITokenAuthOwner.h -// Product: cv act library -// Purpose: The ITokenAuthOwner interface is used by objects which requires -// authentication like token keys. -// -// Copyright: (c) 2008 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -// -// Autor: Markus Tesche -// Date: 08/10/2008 -// --------------------------------------------------------------------------- - -#ifndef ACT_ITokenAuthOwner_h -#define ACT_ITokenAuthOwner_h - -namespace act -{ - class ITokenPIN; - class IAuthIdRef; - - // - // ITokenAuthOwner - class ITokenAuthOwner - { - public: - virtual void SetPin(ITokenPIN* pin) = 0; - virtual ITokenPIN* GetPin() const = 0; - virtual IAuthIdRef* GetAuthIdRef() const = 0; - - protected: - virtual ~ITokenAuthOwner() { } - }; - -} // namespace act - -#endif // ACT_ITokenAuthOwner_h diff --git a/actlibrary/OpenSUSE-11-x86_64/Release/include/actITokenBlockCipher.h b/actlibrary/OpenSUSE-11-x86_64/Release/include/actITokenBlockCipher.h deleted file mode 100644 index 014efe1..0000000 --- a/actlibrary/OpenSUSE-11-x86_64/Release/include/actITokenBlockCipher.h +++ /dev/null @@ -1,45 +0,0 @@ -// --------------------------------------------------------------------------- -// Name: actITokenBlockCipher.h -// Product: cv act library -// Purpose: The interface ITokenBlockCipher encapsulates operations using a -// symmetric key stored on a secure token. -// -// Copyright: (c) 2008 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -// -// Autor: Markus Tesche -// Date: 05/15/2008 -// --------------------------------------------------------------------------- - -#ifndef ACT_ITokenBlockCipher_h -#define ACT_ITokenBlockCipher_h - -#include "actBlob.h" -#include "actIBlockCipher.h" - -namespace act -{ - class IToken; - class ITokenConfig; - - // - // ITokenBlockCipher - class ITokenBlockCipher : public IBlockCipher - { - public: - virtual ITokenBlockCipher* Clone() const = 0; - - virtual void Configure(ITokenConfig* tkcfg) = 0; - virtual Blob GetCipherName() const = 0; - virtual Blob GetLabel() const = 0; - - virtual int GetKeyNumber() const = 0; - - virtual IToken* GetToken() const = 0; - }; - -} // namespace act - -#endif // ACT_ITokenBlockCipher_h diff --git a/actlibrary/OpenSUSE-11-x86_64/Release/include/actITokenBlockCipherKey.h b/actlibrary/OpenSUSE-11-x86_64/Release/include/actITokenBlockCipherKey.h deleted file mode 100644 index 3f13e59..0000000 --- a/actlibrary/OpenSUSE-11-x86_64/Release/include/actITokenBlockCipherKey.h +++ /dev/null @@ -1,59 +0,0 @@ -// --------------------------------------------------------------------------- -// Name: actITokenBlockCipherKey.h -// Product: cv act library -// Purpose: The interface ITokenBlockCipherKey enables access to a key stored -// on a secure token. -// -// Copyright: (c) 2008 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -// -// Autor: Markus Tesche -// Date: 05/15/2008 -// --------------------------------------------------------------------------- - -#ifndef ACT_ITokenBlockCipherKey_h -#define ACT_ITokenBlockCipherKey_h - -#include "actTokenBase.h" - -#include "actIBlockCipherKey.h" - -#include "actITokenAuthOwner.h" -#include "actITokenFileOwner.h" -#include "actITokenBlockCipher.h" - -namespace act -{ - class IToken; - class ITokenConfig; - - // - // ITokenBlockCipherKey - class ITokenBlockCipherKey - : public IBlockCipherKey - , public ITokenAuthOwner - , public ITokenFileOwner - { - public: - virtual ITokenBlockCipherKey* Clone() const = 0; - - virtual ITokenBlockCipher* GetCipher() = 0; - virtual const ITokenBlockCipher* GetCipher() const = 0; - - virtual KeyType GetType() const = 0; - virtual IToken* GetToken() const = 0; - virtual const char* GetName() const = 0; - virtual void Configure(ITokenConfig* tkcfg) = 0; - - virtual void SetRawKey(const Blob& raw_key) = 0; - virtual void GetRawKey(Blob& raw_key) const = 0; - - virtual void SetMode(const char* modename) = 0; - virtual void SetPadding(const char* padname) = 0; - }; - -} // namespace act - -#endif // ACT_ITokenBlockCipherKey_h diff --git a/actlibrary/OpenSUSE-11-x86_64/Release/include/actITokenConfig.h b/actlibrary/OpenSUSE-11-x86_64/Release/include/actITokenConfig.h deleted file mode 100644 index cecaa7e..0000000 --- a/actlibrary/OpenSUSE-11-x86_64/Release/include/actITokenConfig.h +++ /dev/null @@ -1,60 +0,0 @@ -// --------------------------------------------------------------------------- -// Name: actITokenConfig.h -// Product: cv act library -// Purpose: IToken configuration. -// -// Copyright: (c) 2008 cv cryptovision GmbH -// all rights reserved. -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -// -// Autor: Markus Tesche -// Date: 11/07/2008 -// --------------------------------------------------------------------------- - -#ifndef ACT_ITokenConfig_h -#define ACT_ITokenConfig_h - -#include "actIParam.h" -#include "actIRefCounted.h" - -namespace act -{ - class ISCardOS; - class IToken; - class ITokenPIN; - class ITokenAuth; - class ITokenKey; - class ITokenBlockCipher; - class ITokenBlockCipherKey; - class ITokenFileMap; - class ITokenFileCache; - - // - // ITokenConfig - class ITokenConfig - : public IParam - , virtual public IRefCounted - { - public: - virtual ITokenConfig* Clone() const = 0; - - // Individual card detection - virtual bool IsSupported(ISCardOS* os) const = 0; - - // Configures the token, if fails throws an Exception - virtual void Configure(IToken* token) const = 0; - virtual void Configure(ITokenPIN* auth_obj) const = 0; - virtual void Configure(ITokenKey* key) const = 0; - virtual void Configure(ITokenBlockCipher* cipher) const = 0; - virtual void Configure(ITokenBlockCipherKey* key) const = 0; - - // Factory's for token helper objects - virtual ITokenAuth* CreateAuth(IToken* token) = 0; - virtual ITokenFileMap* CreateFileMap(const IToken* token) = 0; - virtual ITokenFileCache* CreateFileCache(IToken* token) = 0; - }; - -} // namespace act - -#endif // ACT_ITokenConfig_h diff --git a/actlibrary/OpenSUSE-11-x86_64/Release/include/actITokenExtension.h b/actlibrary/OpenSUSE-11-x86_64/Release/include/actITokenExtension.h deleted file mode 100644 index 784c418..0000000 --- a/actlibrary/OpenSUSE-11-x86_64/Release/include/actITokenExtension.h +++ /dev/null @@ -1,39 +0,0 @@ -// --------------------------------------------------------------------------- -// Name: actITokenExtension.h -// Product: cv act library -// Purpose: Interface ITokenExtension provides functionality to register extensions to -// IToken derived objects. -// -// Copyright: (c) 2008 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -// -// Autor: Markus Tesche -// Date: 12/02/2008 -// --------------------------------------------------------------------------- - -#ifndef ACT_ITokenExtension_h -#define ACT_ITokenExtension_h - -#include "actIRefCounted.h" - -namespace act -{ - class IToken; - - // - // ITokenExtension - class ITokenExtension : public IRefCounted - { - protected: - virtual ~ITokenExtension() { } - - public: - virtual void* GetCreatePtr() throw() = 0; - virtual bool Register(IToken* token) = 0; - }; - -} // namespace act - -#endif // ACT_ITokenExtension_h diff --git a/actlibrary/OpenSUSE-11-x86_64/Release/include/actITokenFile.h b/actlibrary/OpenSUSE-11-x86_64/Release/include/actITokenFile.h deleted file mode 100644 index 4f42757..0000000 --- a/actlibrary/OpenSUSE-11-x86_64/Release/include/actITokenFile.h +++ /dev/null @@ -1,71 +0,0 @@ -// --------------------------------------------------------------------------- -// Name: actITokenFile.h -// Product: cv act library -// Purpose: ITokenFile represents a simple smartcard file with path. -// -// Copyright: (c) 2008 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -// -// Autor: Markus Tesche -// Date: 09/02/2008 -// --------------------------------------------------------------------------- - -#ifndef ACT_TokenFile_h -#define ACT_TokenFile_h - -#include "actBlob.h" -#include "actIRefCounted.h" - -namespace act -{ - class ISCardOS; - - enum FILETYPE - { - UKType = -1 - }; - - // - // ITokenFile - class ITokenFile : public IRefCounted - { - public: - virtual ITokenFile* Clone() const = 0; - - virtual bool IsValid() const = 0; - - virtual bool Equals(const Blob& path) const = 0; - virtual bool Equals(const ISCardOS* os) const = 0; - virtual bool Equals(const ITokenFile* other) const = 0; - virtual bool IsParent(const ITokenFile* other, size_t* mismatch = 0) const = 0; - - virtual Blob& RefFCI() = 0; - virtual const Blob& GetFCI() const = 0; - - virtual Blob& RefAID() = 0; - virtual const Blob& GetAID() const = 0; - - virtual int GetFileType() const = 0; - virtual size_t GetFileLength() const = 0; - virtual const Blob& GetFilePath() const = 0; - virtual size_t GetFullLength() const = 0; - virtual size_t GetFullPath(Blob& path) const = 0; - - virtual ITokenFile* GetRelativeTo() const = 0; - virtual void SetRelativeTo(ITokenFile* parent) = 0; - virtual ITokenFile* MakeRelativeTo(ITokenFile* parent) = 0; - - virtual void SetFilePath(const Blob& filepath, int filetype) = 0; - virtual void SetFilePath(move_from filepath, int filetype) = 0; - - virtual const Blob& SelectApp(ISCardOS* os, int selectmode) = 0; - virtual const Blob& SelectFile(ISCardOS* os, int selectmode) = 0; - - virtual bool ProbeFilePath(ISCardOS* os, bool cut_non_existing) = 0; - }; - -} // namespace act - -#endif // ACT_TokenFile_h diff --git a/actlibrary/OpenSUSE-11-x86_64/Release/include/actITokenFileCache.h b/actlibrary/OpenSUSE-11-x86_64/Release/include/actITokenFileCache.h deleted file mode 100644 index 0991040..0000000 --- a/actlibrary/OpenSUSE-11-x86_64/Release/include/actITokenFileCache.h +++ /dev/null @@ -1,42 +0,0 @@ -// --------------------------------------------------------------------------- -// Name: actITokenFileCache.h -// Product: cv act library -// Purpose: Interface used for FID based binary cache. -// -// Copyright: (c) 2008 cv cryptovision GmbH -// all rights reserved. -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -// -// Autor: Markus Tesche -// Date: 11/07/2008 -// --------------------------------------------------------------------------- - -#ifndef ACT_ITokenFileCache_h -#define ACT_ITokenFileCache_h - -#include "actIRefCounted.h" - -#include - -namespace act -{ - class Blob; - class IToken; - - // - // ITokenFileCache - class ITokenFileCache : public IRefCounted - { - protected: - typedef std::map CacheMap; - - public: - virtual bool InitCache(IToken* token) = 0; - virtual Blob GetCache(const Blob& filepath) const = 0; - virtual void PutCache(const Blob& filepath, const Blob& memory) const = 0; - }; - -} // namespace act - -#endif // ACT_ITokenFileCache_h diff --git a/actlibrary/OpenSUSE-11-x86_64/Release/include/actITokenFileOwner.h b/actlibrary/OpenSUSE-11-x86_64/Release/include/actITokenFileOwner.h deleted file mode 100644 index 1762d31..0000000 --- a/actlibrary/OpenSUSE-11-x86_64/Release/include/actITokenFileOwner.h +++ /dev/null @@ -1,37 +0,0 @@ -// --------------------------------------------------------------------------- -// Name: actITokenFileOwner.h -// Product: cv act library -// Purpose: The ITokenFileOwner interface is implemented by objects which -// refer to a specific location on token represented by ITokenFile. -// -// Copyright: (c) 2010 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -// -// Autor: Markus Tesche -// Date: 28/03/2010 -// --------------------------------------------------------------------------- - -#ifndef ACT_ITokenFileOwner_h -#define ACT_ITokenFileOwner_h - -namespace act -{ - class ITokenFile; - - // - // ITokenFileOwner - class ITokenFileOwner - { - public: - virtual ITokenFile* GetPath() const = 0; - virtual void SetPath(ITokenFile* file) = 0; - - protected: - virtual ~ITokenFileOwner() { } - }; - -} // namespace act - -#endif // ACT_ITokenFileOwner_h diff --git a/actlibrary/OpenSUSE-11-x86_64/Release/include/actITokenInitializer.h b/actlibrary/OpenSUSE-11-x86_64/Release/include/actITokenInitializer.h deleted file mode 100644 index 0de6aef..0000000 --- a/actlibrary/OpenSUSE-11-x86_64/Release/include/actITokenInitializer.h +++ /dev/null @@ -1,131 +0,0 @@ -// --------------------------------------------------------------------------- -// Name: actITokenInitializer.h -// Product: cv act library -// Purpose: ITokenInitializer interface declares common token profile initialization functionality. -// -// Copyright: (c) 2009 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -// -// Autor: Markus Tesche -// Date: 04/20/2009 -// --------------------------------------------------------------------------- - -#ifndef ACT_ITokenInitializer_h -#define ACT_ITokenInitializer_h - -#include "actBlob.h" -#include "actTokenBase.h" -#include "actIRefCounted.h" - -namespace act -{ - extern const byte PIN_PAD_CHAR; - - struct TIData - { - private: - TIData(const TIData&) throw(); - TIData& operator=(const TIData&) throw(); - - public: - TIData(const char* _profile_name = 0) - : profile_name(_profile_name) - , profile_type(PROFILE_UNKNOWN) - , retry_counter(3) - , pin_pad_byte(PIN_PAD_CHAR) - , enable_pin_padding(false) - , enable_pin_pce_so(false) - , enable_pin_pce_user(false) - , enable_minidriver(false) - , enable_minidriver_pnp(false) - , enable_biometric(false) - , enable_biometric_pins(false) - , load_only(false) - , load_package_MoC(false) - , load_package_2048(false) - , load_package_ecc(false) - { } - - Blob atr_historical_bytes; - Blob atr_historical_bytes_suffix; - Blob card_pin; - Blob so_pin; - Blob user_pin; - Blob serial_number; - Blob last_update_pin_utc; - Blob challenge_response_key; - Blob binary_data; - - const char* profile_name; - ProfileType profile_type; - - short retry_counter; - byte pin_pad_byte; - - bool enable_pin_padding; - bool enable_pin_pce_so; - bool enable_pin_pce_user; - bool enable_minidriver; - bool enable_minidriver_pnp; - bool enable_biometric; - bool enable_biometric_pins; - - bool load_only; - bool load_package_MoC; - bool load_package_2048; - bool load_package_ecc; - }; - - struct TITokenInfo - { - TITokenInfo(size_t pin_len_max, size_t pin_len_min, size_t _key_len_cr) - : serial_number_len(16) - , key_len_cr(_key_len_cr) - { - pin_len_max_admin = pin_len_max_so = pin_len_max_user = pin_len_max; - pin_len_min_admin = pin_len_min_so = pin_len_min_user = pin_len_min; - } - - size_t serial_number_len; - - size_t key_len_cr; - - size_t pin_len_max_admin; - size_t pin_len_max_so; - size_t pin_len_max_user; - - size_t pin_len_min_admin; - size_t pin_len_min_so; - size_t pin_len_min_user; - }; - - class ISCardOS; - class IProfileGenerator; - class ISCardCmdObserver; - - // - // ITokenInitializer - class ITokenInitializer : public IRefCounted - { - public: - virtual ISCardOS* GetOS() const= 0; - virtual const TITokenInfo& GetTokenInfo() const = 0; - virtual const ProfileType* GetSupportedProfileList() const = 0; - - virtual bool SupportsProfile(ProfileType profile_type) const = 0; - virtual void SetGenerator(IProfileGenerator* generator) = 0; - virtual void SetObserver(ISCardCmdObserver* observer) = 0; - - virtual bool EraseProfile(const Blob& card_pin) = 0; - virtual bool ExistProfile(bool& is_pkcs15, bool& requires_adminpin) = 0; - virtual void CreateProfile(TIData& data, ProfileType profile_type) = 0; - virtual void FinalizeProfile(TIData& data) = 0; - - virtual void PinChangeReminder(TIData& data, bool enable) = 0; - }; - -} // namespace act - -#endif // ACT_ITokenInitializer_h diff --git a/actlibrary/OpenSUSE-11-x86_64/Release/include/actITokenKey.h b/actlibrary/OpenSUSE-11-x86_64/Release/include/actITokenKey.h deleted file mode 100644 index 47e21bb..0000000 --- a/actlibrary/OpenSUSE-11-x86_64/Release/include/actITokenKey.h +++ /dev/null @@ -1,64 +0,0 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actITokenKey.h -// Product: cv act library -// Purpose: The interface ITokenKey enables access to a key stored in a secure token. -// -// Copyright: (c) 2003 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_ITokenKey_h -#define ACT_ITokenKey_h - -#include "actIRefCounted.h" -#include "actISignatureKey.h" -#include "actITokenAuthOwner.h" -#include "actITokenFileOwner.h" - -#include "actTokenBase.h" - -namespace act -{ - class IToken; - class ITokenConfig; - - // - // ITokenKeyIterator - class ITokenKeyIterator : public IRefCounted - { - public: - virtual void Reset(ITokenFile* parent = 0) = 0; - virtual IKey* Next() = 0; - }; - - // - // ITokenKey - class ITokenKey - : public ISignatureKey - , public ITokenAuthOwner - , public ITokenFileOwner - { - public: - virtual ITokenKey* Clone() const = 0; - - virtual KeyType GetType() const = 0; - virtual IToken* GetToken() const = 0; - virtual const char* GetName() const = 0; - virtual void Configure(ITokenConfig* tkcfg) = 0; - - virtual Blob GetCertificate() const = 0; - virtual IKey* GetPublicKey() const = 0; - - virtual void VerifyPin(const Blob& pin) = 0; - - virtual Blob GetID() const = 0; - virtual Blob GetSubject() const = 0; - - virtual ITokenKeyIterator* Iterator(KeyType type, const Blob& authId = Blob()) const = 0; - }; - -} // namespace act - -#endif // ACT_ITokenKey_h diff --git a/actlibrary/OpenSUSE-11-x86_64/Release/include/actITokenPIN.h b/actlibrary/OpenSUSE-11-x86_64/Release/include/actITokenPIN.h deleted file mode 100644 index 3da8440..0000000 --- a/actlibrary/OpenSUSE-11-x86_64/Release/include/actITokenPIN.h +++ /dev/null @@ -1,221 +0,0 @@ -// --------------------------------------------------------------------------- -// Name: actITokenPIN.h -// Product: cv act library -// Purpose: The class ITokenPIN defines the interfaces of the PIN operations -// -// Copyright: (c) 2002 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -// -// Autor: Dr. Xiangdong Wang (XWG) -// Date: 04/05/2002 -// --------------------------------------------------------------------------- - -#ifndef ACT_ITokenPIN_h -#define ACT_ITokenPIN_h - -#include "actBasics.h" -#include "actDate.h" -#include "actBlob.h" - -#include "actITokenAuth.h" -#include "actITokenFileOwner.h" -#include "actIRefCounted.h" - -#include "actTokenBase.h" - -namespace act -{ - enum PINType - { - UNKNOWN_PIN = 0x0000, - SO_PIN = 0x0001, - USER_PIN = 0x0002, - UNBLOCK_PIN = 0x0003, - - PIN_MASK = 0x000F, - - EXAUTH_PIN = 0x0010, - BIOMETRIC_PIN = 0x0020, - CERTBASED_PIN = 0x0040, - - BAC_PIN = 0x0100, - ICAO_PIN = 0x0200, - - EAC_PACE_PIN = 0x0400, - EAC_TA_PIN = 0x0800, - EAC_CA_PIN = 0x1000, - - PIN_TYPE_MASK = 0x7fff, - - AUTHENTICATED_PIN = 0x8000, // Current authenticated PIN - - // combined types - EXAUTH_SO_PIN = EXAUTH_PIN | SO_PIN, - EXAUTH_UNBLOCK_PIN = EXAUTH_PIN | UNBLOCK_PIN, - - BIOMETRIC_USER_PIN = BIOMETRIC_PIN | USER_PIN, - BIOMETRIC_SO_PIN = BIOMETRIC_PIN | SO_PIN, - - EAC_PACE_UNKNOWN_PIN = EAC_PACE_PIN | UNKNOWN_PIN, - EAC_PACE_SO_PIN = EAC_PACE_PIN | SO_PIN, - EAC_PACE_USER_PIN = EAC_PACE_PIN | USER_PIN, - EAC_PACE_UNBLOCK_PIN = EAC_PACE_PIN | UNBLOCK_PIN, - - EAC_TA_UNKNOWN_PIN = EAC_TA_PIN | UNKNOWN_PIN, - EAC_TA_USER_PIN = EAC_TA_PIN | USER_PIN, - - EAC_CA_UNKNOWN_PIN = EAC_CA_PIN | UNKNOWN_PIN, - EAC_CA_USER_PIN = EAC_CA_PIN | USER_PIN, - }; - - enum PINFlags - { - PIN_INITIALIZED = (1 << 0), - PIN_IS_LOCAL = (1 << 1), - PIN_CASE_SENSITIVE = (1 << 2), - PIN_CHANGE_DISABLED = (1 << 3), - PIN_UNBLOCK_DISABLED = (1 << 4), - PIN_DISABLE_ALLOWED = (1 << 5), - PIN_NEEDS_PADDING = (1 << 6), - PIN_NEEDS_UPDATE = (1 << 7), - PIN_REQUIRES_SM = (1 << 8), - PIN_REQUIRES_NO_DATA = (1 << 9), - PIN_REQUIRES_ENCRYPTION = (1 << 10), - PIN_CHANGE_REQUIRES_OLD = (1 << 11), - PIN_IS_DEFAULT = (1 << 12), // marks the one and only default pin - - PIN_FLAGS_MASK = (1 << 13) - 1, - - // combined flags - PIN_FLAGS = PIN_INITIALIZED | PIN_IS_LOCAL | PIN_CASE_SENSITIVE, - PIN_FLAGS_DEFAULT = PIN_IS_DEFAULT | PIN_FLAGS, - PIN_FLAGS_SO = PIN_INITIALIZED | PIN_IS_LOCAL | PIN_CASE_SENSITIVE | PIN_UNBLOCK_DISABLED, - PIN_FLAGS_EXAUTH = PIN_INITIALIZED | PIN_IS_LOCAL, - PIN_FLAGS_BIOMETRIC = PIN_INITIALIZED | PIN_IS_LOCAL, - PIN_FLAGS_CERTBASED = PIN_INITIALIZED | PIN_IS_LOCAL | PIN_REQUIRES_NO_DATA | PIN_CHANGE_DISABLED | PIN_UNBLOCK_DISABLED, - }; - - enum AuthDataEncoding - { - PIN_ENCODING_UNKNOWN = -1, - PIN_ENCODING_BINARY = 0, - PIN_ENCODING_ASCII_NUMERIC, - PIN_ENCODING_UTF8, - PIN_ENCODING_BCD, - PIN_ENCODING_HALF_NIBBLE_BCD, - PIN_ENCODING_ISO9564_1, - - PIN_ENCODING = PIN_ENCODING_ASCII_NUMERIC, - }; - - enum AuthId - { - AUTHID_INVALID = 0x00, - }; - - enum BioFinger - { - FINGER_UNKNOWN = 0, - FINGER_RIGHT_THUMB = 1, - FINGER_RIGHT_INDEX = 2, - FINGER_RIGHT_MIDDLE = 3, - FINGER_RIGHT_RING = 4, - FINGER_RIGHT_LITTLE = 5, - FINGER_LEFT_THUMB = 6, - FINGER_LEFT_INDEX = 7, - FINGER_LEFT_MIDDLE = 8, - FINGER_LEFT_RING = 9, - FINGER_LEFT_LITTLE = 10 - }; - - class IAuthIdRef; - class ITokenFile; - class IToken; - class ISCardOS; - class AuthInfo; - - // - // ITokenPIN - class ITokenPIN - : public IRefCounted - , public ITokenFileOwner - { - public: - virtual ITokenPIN* Clone() const = 0; - virtual bool Equals(const ITokenPIN* other) const = 0; - virtual int Compare(const ITokenPIN* other) const = 0; - - virtual int GetType() const = 0; - virtual int GetUsage() const = 0; - virtual byte GetObjRef() const = 0; - virtual IToken* GetToken() const = 0; - virtual const char* GetName() const = 0; - virtual AuthDataEncoding GetEncoding() const = 0; - - virtual const AuthInfo* GetInfo() const = 0; - virtual void SetInfo(const AuthInfo* ai) = 0; - - virtual void SetDefault(bool is_default) = 0; - virtual bool IsDefault() const = 0; - - virtual bool IsInitialized() const = 0; - virtual bool IsAuthenticated() const = 0; - - virtual bool NeedsUpdate() const = 0; - virtual bool NeedsPINValue() const = 0; - - virtual bool GetLengthInfo(LengthInfo& info) const = 0; - virtual bool CheckPinLength(const Blob& pin) const = 0; - virtual bool GetLastChange(Date& date, bool& supported) const = 0; - - virtual void VerifyPin(const Blob& pin) = 0; - - // NOTE: ChangePin preserves the authentication state if successfull - // TODO: MTE: Describe in detail! - virtual void ChangePin(const Blob& oldpin, const Blob& newpin) = 0; - - // NOTE: UnlockPin preserves the authentication state if successfull - // TODO: MTE: Describe in detail! - virtual void UnlockPin(ITokenPIN* so, const Blob& pin, const Blob& newpin) = 0; - - // NOTE: SetPinValue preserves the authentication state if successfull - // TODO: MTE: Describe in detail! - virtual void SetPinValue(ITokenPIN* so, const Blob& so_pin, const Blob& newpin) = 0; - - virtual void Select(ISCardOS* os = 0) const = 0; - - virtual ITokenPIN* GetParent() const = 0; - - virtual IAuthIdRef* GetAuthIdRef() const = 0; - virtual IAuthIdRef* GetParentAuthIdRef() const = 0; - - // Bio extensions - virtual byte GetFinger() const = 0; - virtual bool GetBioHeader(Blob& bioheader) = 0; - - // ExternalAuth Key extensions - virtual Blob GetChallenge() const = 0; - virtual void ResetChallenge() = 0; - virtual Blob ComputeResponse(const Blob& auth_key, const Blob& challenge) const = 0; - - // Certificate based authentication extensions - virtual void SetCHAT(const Blob& chat) = 0; - virtual void SetCHAT(move_from chat) = 0; - virtual Blob GetCHAT() const = 0; - - protected: - // SCard Functionality - virtual Blob doGetChallenge() const = 0; - virtual void doResetChallenge() const = 0; - virtual void doVerify(const Blob& pin) const = 0; - virtual SecStatus doGetSecurityStatus(Blob& context) const = 0; - - private: - friend class TokenAuth; - }; - -} // namespace act - -#endif // ACT_ITokenPIN_h diff --git a/actlibrary/OpenSUSE-11-x86_64/Release/include/actIX509CRL.h b/actlibrary/OpenSUSE-11-x86_64/Release/include/actIX509CRL.h deleted file mode 100644 index 750ddd6..0000000 --- a/actlibrary/OpenSUSE-11-x86_64/Release/include/actIX509CRL.h +++ /dev/null @@ -1,48 +0,0 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actIX509CRL.h -// Product: cv act library -// Purpose: -// -// Copyright: (c) 2000 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_IX509CRL_h -#define ACT_IX509CRL_h -#include "actICRL.h" -#include "actX509Extension.h" - -namespace act -{ - - class IX509CRL: public ICRL - { - public: - virtual void SetThisUpdate(const Date &date )=0; - virtual void SetNextUpdate(const Date &date )=0; - virtual void GetThisUpdate(Date &date ) const=0; - virtual void GetNextUpdate(Date &date ) const=0; - - virtual X509Extension GetExtension(const char* oid) const=0; - virtual X509Extension GetExtension(const act::Blob& oidbl) const=0; - virtual void SetExtension(const X509Extension &ext)=0; - virtual X509Extension GetNextExtension(const X509Extension& ext) const=0; - virtual void RemoveExtension(const char* oid)=0; - - virtual Blob GetNextEntry(const Blob& certsernr) const=0; - - virtual void SetEntryRevocationDate(const Blob& certsn, const Date &vnbefore )=0; - virtual void GetEntryRevocationDate(const Blob& certsn, Date &vnbefore ) const=0; - - virtual X509Extension GetEntryExtension(const Blob& certsn, const char* oid) const=0; - virtual void SetEntryExtension(const Blob& certsn, const X509Extension &ext)=0; - virtual X509Extension GetNextEntryExtension(const Blob& certsn,const X509Extension& ext) const=0; - virtual void RemoveEntryExtension(const Blob& certsn,const char* oid)=0; - - }; -} // namespace act - -#endif - diff --git a/actlibrary/OpenSUSE-11-x86_64/Release/include/actIX509Certificate.h b/actlibrary/OpenSUSE-11-x86_64/Release/include/actIX509Certificate.h deleted file mode 100644 index 85d6907..0000000 --- a/actlibrary/OpenSUSE-11-x86_64/Release/include/actIX509Certificate.h +++ /dev/null @@ -1,46 +0,0 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actIX509Certificate.h -// Product: cv act library -// Purpose: The abstract class IX509Certificate enables access to a certificate, -// e.g. its public key and the corresponding validity. -// -// Copyright: (c) 2000 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_IX509Certificate_h -#define ACT_IX509Certificate_h - -#include "actBasics.h" -#include "actDate.h" -#include "actICertificate.h" -#include "actX509Extension.h" - -namespace act -{ - class IKey; - class Blob; - - class IX509Certificate : public ICertificate - { - public: - - virtual void SetValidityNotBefore(const Date &vnbefore ) =0; - virtual void SetValidityNotAfter(const Date &vnafter ) =0; - virtual void GetValidityNotBefore(Date &vnbefore ) const =0; - virtual void GetValidityNotAfter(Date &vnafter ) const =0; - - virtual bool CheckValidity(const Date& date = Date() ) const =0; - - virtual X509Extension GetExtension(const char* oid) const=0; - virtual X509Extension GetExtension(const act::Blob& oidbl) const=0; - virtual void SetExtension(const X509Extension &ext)=0; - virtual X509Extension GetNextExtension(const X509Extension& ext) const=0; - virtual void RemoveExtension(const char* oid)=0; - }; -} // namespace act - -#endif - diff --git a/actlibrary/OpenSUSE-11-x86_64/Release/include/actInit.h b/actlibrary/OpenSUSE-11-x86_64/Release/include/actInit.h deleted file mode 100644 index 36f0099..0000000 --- a/actlibrary/OpenSUSE-11-x86_64/Release/include/actInit.h +++ /dev/null @@ -1,578 +0,0 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actInit.h -// Product: cv act library -// Purpose: initialize the map entries of the objects -// -// Copyright: (c) 2007 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -// remarks: -// declare NO_SMARTCARD: no smartcard support required. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef actInit_h -#define actInit_h - -#include "actEnv.h" -#include "actKeyKit.h" -#include "actKeyReg.h" -#include "actBlockCipherKit.h" -#include "actBlockCipherReg.h" -#include "actBlockCipherModeReg.h" -#include "actBlockCipherModeKit.h" -#include "actStreamCipherKit.h" -#include "actStreamCipherReg.h" -#include "actHashKit.h" -#include "actHashReg.h" -#include "actEMSAReg.h" -#include "actEMSAKit.h" -#include "actDerivatorReg.h" -#include "actDerivatorKit.h" -#include "actPaddingReg.h" -#include "actPaddingKit.h" -#include "actCertificateReg.h" -#include "actCertificateKit.h" -#include "actX509KeyReg.h" -#include "actX509SignReg.h" -#include "actX509SignHashReg.h" -#include "actX509Kit.h" -#include "actDefaultRNG.h" -#include "actRNGKit.h" - -#ifndef NO_SMARTCARD -// NOTE: To Enable support for additional smartcards / profiles define: -// ACT_SUPPORT_TCOS_NETKEY30 -# include "actSCardOSReg.h" -# include "actSCardOSKit.h" -# include "actSCardTokenReg.h" -# include "actSCardTokenKit.h" -# include "actSubsystemReg.h" -# include "actSubsystemKit.h" -# include "actSlotMonitorReg.h" -# include "actSlotMonitorKit.h" -# include "actTokenExtensionReg.h" -# include "actTokenExtensionKit.h" -# include "actTokenAuthProtocolReg.h" -# include "actTokenAuthProtocolKit.h" -# include "actJCAppletKit.h" -# include "actJCAppletReg.h" -# include "actPKCS15BehaviorReg.h" -# include "actPKCS15BehaviorKit.h" -# include "actProfileGeneratorReg.h" -# include "actProfileGeneratorKit.h" -#endif // NO_SMARTCARD - -namespace act -{ - // ------------------------------------------------------------------------ - const KeyMapEntry KeyMap[] = - { - { "BlockCipher", CreateBlockCipherKey }, - { "StreamCipher", CreateStreamCipherKey }, - - { "IES", CreateIESKey }, - { "DSA", CreateDSAKey }, - { "RSA", CreateRSAKey }, - { "ECDSA", CreateECDSAKey }, - { "ECGDSA", CreateECGDSAKey }, - - { "DH", CreateDHKey }, - { "ECDH", CreateECDHKey }, - - { "HashMAC", CreateHashMACKey }, - { "CBCMAC", CreateCBCMACKey }, - { "SecretKeyMAC", CreateSecretKeyMACKey }, - { "RetailCFBMAC", CreateRetailCFBMACKey }, - { "iMAC3", Create_iMAC3Key }, // ISO9797-1 M2 Alg 3 MAC8 - { "CMAC", CreateCMACKey }, // NIST 800-38B CMAC - { 0, 0 } - }; - - // ------------------------------------------------------------------------ - const BlockCipherMapEntry BlockCipherMap[] = - { - { "AES", CreateRijndael }, - { "DES", CreateDES }, - { "TripleDES", CreateTripleDES }, - { "CAST128", CreateCAST128 }, - { "BlowFish", CreateBlowFish }, - { "Mars", CreateMars }, - { "Serpent", CreateSerpent }, - { "Rijndael", CreateRijndael }, - { "TwoFish", CreateTwoFish }, - { "RC2", CreateRC2 }, - //{ "RC6", CreateRC6 }, - { 0, 0 } - }; - - // ------------------------------------------------------------------------ - const BlockCipherModeMapEntry BlockCipherModeMap[] = - { - { "ECB", CreateECBMode }, - { "CBC", CreateCBCMode }, - { "CFB", CreateCFBMode }, - { "OFB", CreateOFBMode }, - { "CTR", CreateCTRMode }, - { 0, 0 } - }; - - // ------------------------------------------------------------------------ - const StreamCipherMapEntry StreamCipherMap[] = - { - { "ARC4", CreateARC4 }, - { 0, 0 } - }; - - // ------------------------------------------------------------------------ - const HashMapEntry HashMap[] = - { - { "MD2", CreateMD2 }, - { "MD4", CreateMD4 }, - { "MD5", CreateMD5 }, - { "RIPEMD128", CreateRipemd128 }, - { "RIPEMD160", CreateRipemd160 }, - { "SHA0", CreateSHA0 }, - { "SHA1", CreateSHA1 }, - { "SHA224", CreateSHA224 }, - { "SHA256", CreateSHA256 }, - { "SHA384", CreateSHA384 }, - { "SHA512", CreateSHA512 }, - { "DummyHash", CreateDummyHash }, - { 0, 0 } - }; - - // ------------------------------------------------------------------------ - const EMSAMapEntry EMSAMap[] = - { - { "EMSA1", CreateEMSA1 }, - { "PKCS1V1_5EMSA", CreatePKCS1V1_5EMSA }, - { "TLS_EMSA", CreateTLS_EMSA}, - { "PKCS1_PSS_EMSA", CreatePKCS1_PSS_EMSA }, - { "DummyEMSA", CreateDummyEMSA }, // Used for "Hash on Card" - { 0, 0 } - }; - - // ------------------------------------------------------------------------ - const DerivatorMapEntry DerivatorMap[] = - { - { "KDF1", CreateKDF1 }, // IEEE P1363 KDF1 - { "KDF2", CreateX963KDF }, // IEEE P1363 KDF2 (= X963KDF) - { "X963KDF", CreateX963KDF }, // ANSI X9.63 KDF - { "PBKDF1", CreatePBKDF1 }, // PKCS#5 PBKDF1 - { "PBKDF2", CreatePBKDF2 }, // PKCS#5 PBKDF2 - { "EACKDF", CreateEACKDF }, // EAC 2.01, BSI TR-03110 A.2.3 - { "SessionKDF", CreateEACKDF }, // BSI TR-03111 (= EACKDF) - { 0, 0 } - }; - - // ------------------------------------------------------------------------ - const PaddingMapEntry PaddingMap[] = - { - { "PKCS5", CreatePKCS5Pad }, - { "RSAES", CreatePKCS1V1_5EMEPad }, - { "ISO", CreateOneAndZerosPad }, - { "ISO9796", CreateISO9796Pad }, - { "NOPAD", CreateNoPad }, - { 0, 0 } - }; - - // ------------------------------------------------------------------------ - const CertificateMapEntry CertificateMap[] = - { - { "X509", CreateX509Certificate }, - { "CV", CreateCVCertificate }, - { 0, 0 } - }; - - // ------------------------------------------------------------------------ - const CRLMapEntry CRLMap[] = - { - { "X509", CreateX509CRL }, - { 0, 0 } - }; - - // ------------------------------------------------------------------------ - const X509KeyMapEntry X509KeyMap[] = - { - { "1.2.840.113549.1.1.1", CreateRSAKey, X509ToRSA, RSAToX509 }, - { "2.5.8.1.1", CreateRSAKey, X509ToRSA, RSAToX509 }, - { "1.2.840.10040.4.1", CreateDSAKey, X509ToDSA, DSAToX509 }, - { "1.3.14.3.2.20", CreateDSAKey, X509ToDSA, DSAToX509 }, - { "1.3.14.3.2.12", CreateDSAKey, X509ToDSA, DSAToX509 }, // secude DSA oid - { "1.2.840.10046.2.1", CreateDHKey, X509ToDH, DHToX509 }, - { "1.2.840.10045.2.1", CreateECDSAKey, X509ToECDSA, ECDSAToX509 }, - { "1.2.840.10045.2.1", CreateECDHKey, X509ToECDSA, ECDSAToX509 }, - { 0, 0, 0, 0 } - }; - - // ------------------------------------------------------------------------ - const X509SignMapEntry X509SignMap[] = - { - { CreateRSAKey, RSAGetAlgID, RSASetAlgID }, - { CreateDSAKey, DSAGetAlgID, DSASetAlgID }, - { CreateECDSAKey, ECDSAGetAlgID, ECDSASetAlgID }, - { CreateDHKey, DHGetAlgID, DHSetAlgID }, - { CreateECDHKey, ECDHGetAlgID, ECDHSetAlgID }, - { 0, 0, 0 } - }; - - // ------------------------------------------------------------------------ - const X509SignHashMapEntry X509SignHashMap[] = - { - // RSA - { "1.2.840.113549.1.1.2", "MD2", "RSA" }, // md2WithRSAEncryption - { "1.2.840.113549.1.1.3", "MD4", "RSA" }, // md4WithRSAEncryption - { "1.2.840.113549.1.1.4", "MD5", "RSA" }, // md5WithRSAEncryption - { "1.2.840.113549.1.1.5", "SHA1", "RSA" }, // shaWithRSAEncryption - { "1.3.14.3.2.29", "SHA1", "RSA" }, - { "1.2.840.113549.1.1.11", "SHA256", "RSA" }, // sha256WithRSAEncryption - { "1.2.840.113549.1.1.12", "SHA384", "RSA" }, // sha384WithRSAEncryption - { "1.2.840.113549.1.1.13", "SHA512", "RSA" }, // sha512WithRSAEncryption - { "1.2.840.113549.1.1.14", "SHA224", "RSA" }, // sha224WithRSAEncryption - { "1.3.36.3.3.1.2", "RIPEMD160", "RSA" }, - { "1.3.36.3.3.1.3", "RIPEMD128", "RSA" }, - // DSA - { "1.2.840.10040.4.3", "SHA1", "DSA" }, - { "1.3.14.3.2.28", "SHA1", "DSA" }, - { "1.3.14.3.2.27", "SHA1", "DSA" }, // secude DSA oid - // ECDSA - { "1.2.840.10045.4.1", "SHA1", "ECDSA" }, // ecdsa-with-Sha1 - { "1.2.840.10045.2.1", "SHA1", "ECDSA" }, // ecdsa-with-Sha1 (deprecated) - { "1.2.840.10045.4.3.1", "SHA224", "ECDSA" }, // ecdsa-with-Sha224 - { "1.2.840.10045.4.3.2", "SHA256", "ECDSA" }, // ecdsa-with-Sha256 - { "1.2.840.10045.4.3.3", "SHA384", "ECDSA" }, // ecdsa-with-Sha384 - { "1.2.840.10045.4.3.4", "SHA512", "ECDSA" }, // ecdsa-with-Sha512 - // DH - { "1.3.6.1.5.5.7.6.4", "SHA1", "DH" }, // DH-POP - // ECDH - { "1.2.840.10045.2.1", "SHA1", "ECDH" }, // "ECDH-POP" - { 0, 0, 0 } - }; - -#ifndef NO_SMARTCARD - // ------------------------------------------------------------------------ - const SCardOSMapEntry SCardOSMap[] = - { - // NOTE: Only lower case historical bytes ! - /* - { "0064050a020131809000", CreateTCOS }, // NetKey (TCOS V2R1) - { "00640560020331809000", CreateTCOS }, // NetKey (TCOS V2R3) - { "0064057b020331809000", CreateTCOS }, // NetKey (TCOS V2R?) - { "00640514020231809000", CreateTCOS }, // etrust (TCOS V2R2) - { "00640561020331809000", CreateTCOS }, // TCOS USB Crypt Token - { "0068d276000028ff051e3180009000", CreateMicardOS }, // Micardo P2.1 - { "4d4943323045", CreateMicardo20E }, // Micardo EC 2.0 - { "0068d276000028ff05233180009000", CreateMicardo23E }, // Micardo EC 2.3 - */ - - // ACOS - { "454d56203033202006", CreateACOS_D01 }, // Austria Card ACOS EMV-D01 - { "44492030324d", CreateACOS_D01 }, // Austria Card ACOS EMV-D01 contactless - { "455041000000000228505900000000", CreateACOS_A04 }, // Austria Card ACOS EMV-A04/A05 - { "455041000000000000000000000000", CreateACOS_A04 }, // Austria Card ACOS EMV-A04/A05 - - // CardOS - { "c802", CreateCardOS_M4 }, // CardOS M4.0 siemens profile - { "c803", CreateCardOS_M4 }, // CardOS M4.01 siemens profile - { "c804", CreateCardOS_M4 }, // CardOS M4.01a siemens profile - { "4d346376", CreateCardOS_M4 }, // CardOS M4.01(a) cv profile - { "4d3463765f4d", CreateCardOS_M4_MoC }, // CardOS M4.01_M cv profile - { "4d3463765f45", CreateCardOS_M4_ECC }, // CardOS M4.01_E cv profile - { "c806", CreateCardOS_V4 }, // CardOS V4.2 - { "c807", CreateCardOS_V4 }, // CardOS V4.3 - { "c808", CreateCardOS_V4 }, // CardOS V4.3B - { "c809", CreateCardOS_V4 }, // CardOS V4.2B - { "c80a", CreateCardOS_V4 }, // CardOS V4.2B DI - { "0000c80a3381b100", CreateCardOS_V4 }, // CardOS V4.2B DI contactless - { "c80b", CreateCardOS_V4 }, // CardOS V4.2C - { "c80d", CreateCardOS_V4 }, // CardOS V4.4 - { "56346376", CreateCardOS_V4 }, // CardOS V4.2/4.3/4.3B cv profile - { "563432626376", CreateCardOS_V4 }, // CardOS V4.2b cv profile - { "5634326244496376", CreateCardOS_V4 }, // CardOS V4.2b DI cv profile - { "563432636376", CreateCardOS_V4 }, // CardOS V4.2c cv profile - { "5634346376", CreateCardOS_V4 }, // CardOS V4.4 cv profile - { "563463765f45", CreateCardOS_V4_ECC }, // CardOS V4.3B ECC cv profile - { "006b0508c806012101434e53103180", CreateCardOS_V4 }, // CardOS V4.2 CNS profile, 2004.02.20 - { "006b0508c807012101434e53103180", CreateCardOS_V4 }, // CardOS V4.3 CNS profile, 2004.02.20 - { "006b0508c808012101434e53103180", CreateCardOS_V4 }, // CardOS V4.3B CNS profile, 2004.02.20 - { "006b0508c806011101434e53103180", CreateCardOS_V4 }, // CardOS V4.2 CNS profile, 2005.03.11 - { "006b0508c807011101434e53103180", CreateCardOS_V4 }, // CardOS V4.3 CNS profile, 2005.03.11 - { "006b0508c808011101434e53103180", CreateCardOS_V4 }, // CardOS V4.3B CNS profile, 2005.03.11 - { "006b0508c808011101434e53103180", CreateCardOS_V4 }, // CardOS V4.3B CNS profile, 2005.03.11 - { "4b53776973735369676e", CreateCardOS_V4 }, // CardOS V4.3B/V4.4 ATR by SwissSign - - // STARCOS - //{ "53504b32339000", CreateStarCOS_3_0}, // G&D STARCOS SPK 2.3 - { "80670412b0030300008101", CreateStarCOS_3_0 }, // G&D STARCOS 3.0 (creational state) - { "80670412b0030300008105", CreateStarCOS_3_0 }, // G&D STARCOS 3.0 - { "80670412b003030000", CreateStarCOS_3_0 }, // G&D STARCOS 3.0 contactless - { "80655343010d067394211b8101", CreateStarCOS_3_0 }, // G&D STARCOS 3.1 (creational state) - { "80655343010d067394211b8105", CreateStarCOS_3_0 }, // G&D STARCOS 3.1 - { "0064051eb20031b0739621db019000", CreateStarCOS_3_2 }, // G&D STARCOS 3.2 (creational state) - { "0064051eb20031b0739621db059000", CreateStarCOS_3_2 }, // G&D STARCOS 3.2 - - // TCOS -#ifdef ACT_SUPPORT_TCOS_NETKEY30 - { "00640411030131c073f701d0009000", CreateTCOS_3_0 }, // NetKey (TCOS 3.0) -#endif - // JavaCards - { "8073002113574a544861314a00", CreateJavaCardOS_2_2 }, // G&D SmartCafe Expert 64 (cfg1) - { "8073002113574a544861314700", CreateJavaCardOS_2_2 }, // G&D SmartCafe Expert 64 (cfg2) - { "8073002113574a544861314800", CreateJavaCardOS_2_2 }, // G&D SmartCafe Expert 64 (cfg3) - { "8073002113574a544861314b00", CreateJavaCardOS_2_2 }, // G&D SmartCafe Expert 64 (cfg4) - { "8073002113574a544861314c00", CreateJavaCardOS_2_2 }, // G&D SmartCafe Expert 64 (cfg5) - { "8073002113574a544861314900", CreateJavaCardOS_2_2 }, // G&D SmartCafe Expert 64 (cfg8) - { "404d4f504153530000000000000000", CreateJavaCardOS_2_2 }, // G&D SmartCafe Expert 64 (XMC2) - - { "534653452d43583332322d56180308", CreateJavaCardOS_2_1_1 },// G&D SmartCafe Expert 2.0 - { "0073c84013009000", CreateJavaCardOS_2_2_1 }, // G&D SmartCafe Expert 3.0 / 3.1 / 3.1 contactless - { "4138004133b1020073c840130090", CreateJavaCardOS_2_2_1 }, // G&D SmartCafe Expert 3.1 contactless (SCM SDI010, Firmware V6.28) - { "4138004133b10073c84013009000", CreateJavaCardOS_2_2_1 }, // G&D SmartCafe Expert 3.1 contactless (SCM SDI010, Firmware V6.32) - { "73667465206364313434", CreateJavaCardOS_2_2_1 }, // G&D SmartCafe Expert 3.2 PIV 144 KB - { "736674652D6364303830", CreateJavaCardOS_2_2_1 }, // G&D SmartCafe Expert 3.2 PIV 80 KB - { "73667465", CreateJavaCardOS_2_2_1 }, // G&D SmartCafe Expert 3.2 (sfte) - { "736674652d6e66", CreateJavaCardOS_2_2_1 }, // G&D SmartCafe Expert 3.2 (sfte-nf) - { "73c840130090009b", CreateJavaCardOS_2_2_1 }, // G&D SmartCafe Expert 3.2 USB Token - { "736674652063643038302d6e66", CreateJavaCardOS_2_2_1 }, // G&D SmartCafe Expert 3.2 (sfte cd080-nf) - { "53462d3443432d3031", CreateJavaCardOS_2_2_1 }, // G&D SmartCafe Expert 5.0 - { "53504b323544499000", CreateJavaCardOS_2_2_1 }, // G&D Mobile Security Card 3.x - { "4d5343", CreateJavaCardOS_2_2_1 }, // G&D Mobile Security Card 3.x - - //{ "4a434f503230", CreateJavaCardOS_2_1 }, // JCOP 20 - { "4a434f503231563232", CreateJavaCardOS_2_2_1 }, // JCOP 21 V2.2 - { "4a434f50323156323331", CreateJavaCardOS_2_2_1 }, // JCOP 21 V2.3.1 - { "4a434f503331563231", CreateJavaCardOS_2_1 }, // JCOP 31 V2.1 - { "4a434f503331563232", CreateJavaCardOS_2_2_1 }, // JCOP 31 V2.2 - { "4a434f50333156323331", CreateJavaCardOS_2_2_1 }, // JCOP 31 V2.3.1 - { "4a434f503331563234", CreateJavaCardOS_2_2_1 }, // JCOP 31 V2.4 - //{ "4a434f5033313336474454", CreateJavaCardOS_2_2_1 }, // JCOP 31 36GDT - { "4a434f503431563232", CreateJavaCardOS_2_2_1 }, // JCOP 41 V2.2 / V2.2 contactless - { "4128001133b04a434f5034315632", CreateJavaCardOS_2_2_1 }, // JCOP 41 V2.2 contactless (SCM SDI010, Firmware V6.32) - { "4a434f50343156323231", CreateJavaCardOS_2_2_1 }, // JCOP 41 V2.2.1 - { "4138001133b04a434f5034315632", CreateJavaCardOS_2_2_1 }, // JCOP 41 V2.2.1 contactless - { "4a434f50343156323331", CreateJavaCardOS_2_2_1 }, // JCOP 41 V2.3.1 - { "4a434f50343156323332", CreateJavaCardOS_2_2_1 }, // JCOP 41 V2.3.2 - { "4a434f503431563234", CreateJavaCardOS_2_2_1 }, // JCOP 41 V2.4 - { "4a434f5076323431", CreateJavaCardOS_2_2_2 }, // JCOP v2.4.1 - { "434f50343156323231ff", CreateJavaCardOS_2_2_1 }, // JCOP 41 V2.2.1 (IDptoken 200) - { "4a434f507632343262657461", CreateJavaCardOS_2_2_2 }, // JCOP v2.4.2 beta - { "0073c84000009000", CreateJavaCardOS_2_2_1 }, // JCOP V2.3.2 - - { "4a434f50563231", CreateJavaCardOS_2_1 }, // JCOP V2.1 - { "4a434f50563232", CreateJavaCardOS_2_2_1 }, // JCOP V2.2 - { "4a434f5056323231", CreateJavaCardOS_2_2_1 }, // JCOP V2.2.1 - { "4a434f50563233", CreateJavaCardOS_2_2_1 }, // JCOP V2.3 - { "4a434f5056323331", CreateJavaCardOS_2_2_1 }, // JCOP V2.3.1 - { "4a434f5056323332", CreateJavaCardOS_2_2_1 }, // JCOP V2.3.2 - { "4a434f50563234", CreateJavaCardOS_2_2_1 }, // JCOP V2.4 - { "4a434f5056323431", CreateJavaCardOS_2_2_2 }, // JCOP V2.4.1 - { "4a434f5056323432", CreateJavaCardOS_2_2_2 }, // JCOP V2.4.2 - - { "4a434f5033314d34", CreateJavaCardOS_2_2_1 }, // Austriacard JCOP31M4 - { "4a434f5032315632325f", CreateJavaCardOS_2_2_1 }, // AustriaCard JCOP 21 V2.2, T0, T1 - { "4a434f5033315632325f", CreateJavaCardOS_2_2_1 }, // AustriaCard JCOP 31 V2.2, T0, T1 - { "4a434f5034315632345f", CreateJavaCardOS_2_2_1 }, // AustriaCard JCOP 41 V2.4, T0, T1 - { "4a434f50563234314143", CreateJavaCardOS_2_2_1 }, // AustriaCard JCOP V2.4.1, T0, T1 - - { "5257414e44415f4944", CreateJavaCardOS_2_2_1 }, // AustriaCard JCOP V2.4.1 'RWANDA_ID' - { "44654c61527565", CreateJavaCardOS_2_2_1 }, // AustriaCard JCOP V2.4.1 'DeLaRue' - - { "803180664090a4561b1183019000", CreateJavaCardOS_2_2_1 }, // Infineon jTOP 20ID - - { "80318065b0831148c883009000", CreateJavaCardOS_2_2_1 }, // Gemalto TOP IM GX4 - //{ "80318065b08301029083009000", CreateJavaCardOS_2_2_1 }, // Gemalto I-DENTITY CARD - { "8065b08301017483009000", CreateJavaCardOS_2_1_1 }, // Gemplus GemXpresso Pro R3 - { "8065b08301037483009000", CreateJavaCardOS_2_1_1 }, // Gemplus GemXpresso Pro R3 - //{ "8065a20101013d72d643", CreateJavaCardOS_2_1_1 }, // Gemplus GemXpresso Pro R3 E32 PK - - { "0031c06477e30300829000", CreateJavaCardOS_2_1_1 }, // Oberthur CosmopolIC 64K v5.2D - - { "8059017f4849444a43327300011b", CreateJavaCardOS_2_2_2 }, // HID Crescendo C700 (JC2s) ("Standard JavaCard, T0/1, Platform Default Packages") - { "804f0ca0000003060a001d00000000", CreateJavaCardOS_2_2_2 },// HID Crescendo C700 (JC2s) contactless - - { ACT_ISO7816OS_NAME, CreateISO7816OS }, // use act::ISO7816OS as fallback - { 0, 0 } - }; - - // ------------------------------------------------------------------------ - const SCardTokenMapEntry SCardTokenMap[] = - { - // Passport - { IsEPAProfile, CreateEPAProfile }, - - // PKCS#15 - { IsM4PKCS15Profile, CreateM4PKCS15Profile }, - { IsV4PKCS15ECProfile, CreateV4PKCS15ECProfile }, - { IsV4PKCS15Profile, CreateV4PKCS15Profile }, - { IsJCPKCS15ECProfile, CreateJCPKCS15ECProfile }, - { IsJCPKCS15Profile, CreateJCPKCS15Profile }, - { IsACOSPKCS15Profile, CreateACOSPKCS15Profile }, - { IsStarCOSPKCS15Profile, CreateStarCOSPKCS15Profile }, - - // ACOS - { IsACOScvProfile, CreateACOScvProfile }, - - // CardOS - { IsM4cvMoCProfile, CreateM4cvMoCProfile }, - { IsM4cvECProfile, CreateM4cvECProfile }, - { IsV4cvECProfile, CreateV4cvECProfile }, - { IsV4cvProfile, CreateV4cvProfile }, - { IsM4cvProfile, CreateM4cvProfile }, - // { IsV4CNSProfile, CreateV4CNSProfile }, - - // TCOS -#ifdef ACT_SUPPORT_TCOS_NETKEY30 - { IsNetKey30Token, CreateNetKey30Token }, -#endif - - // JavaCardOS - { IsJCProfile, CreateJCProfile }, - // { IsJavaCardAppletManager, CreateJavaCardAppletManager }, - - /* - { IsStarCOSToken, CreateStarCOSToken }, - { IsNetKey2000Token, CreateNetKey2000Token }, - { IsNetKeyE4Token, CreateNetKeyE4Token }, - { IsNetKeyPKSToken, CreateNetKeyPKSToken }, - { IsNetKeyOldToken, CreateNetKeyOldToken }, - { IseTrustToken, CreateeTrustToken }, - { IsMicardoECToken, CreateMicardoECToken }, - { IsM4SiemensProfile, CreateM4SiemensProfile }, - */ - { 0, 0 } - }; - - // ------------------------------------------------------------------------ - const ProfileGeneratorMapEntry ProfileGeneratorMap[] = - { - { "JavaCardOS", CreateJCPKCS15Generator }, - { 0, 0 } - }; - - // ------------------------------------------------------------------------ - const PKCS15BehaviorMapEntry PKCS15BehaviorMap[] = - { - { "cv cryptovision gmbh (c) v1.0j", CreateJCPKCS15Behavior }, - { "cv cryptovision gmbh (c) v1.0jEAC", CreateJCPKCS15mEACBehavior }, - { "cv cryptovision gmbh (c) v1.0n", CreateV4PKCS15Behavior }, - { "cv cryptovision gmbh (c) v1.0na", CreateACOSPKCS15Behavior }, - { "cv cryptovision gmbh (c) v1.0ns", CreateStarCOSPKCS15Behavior }, - { "A.E.T. Europe B.V.", CreateSafeSignBehavior }, - { "Giesecke&Devrient GmbH", CreateStarSignBehavior }, - { "D-TRUST GmbH (C)", CreateDTRUSTBehavior }, - { "Siemens AG (C)", CreateHiPathBehavior }, - { "Technology Nexus", CreateNexusBehavior }, - { "Volkswagen AG", CreateVWBehavior }, - { "", CreatePKCS15Behavior }, // default - { 0, 0 } - }; - - // ------------------------------------------------------------------------ - const TokenExtensionMapEntry TokenExtensionMap[] = - { - { "MDProfileExt", CreateMDProfileExt }, // Minidriver FS Profile Extension - -# if defined(ACT_WIN32) && !defined(ACT_MINGW) - { "EAC 2.01 TA", CreateEACTAwithCAPI }, - -# endif - { 0, 0 } - }; - - // ------------------------------------------------------------------------ - const TokenAuthProtocolMapEntry TokenAuthProtocolMap[] = - { - { "EAC 2.01 PACE", CreateTokenAuthPACE }, - { "EAC 2.01 TA", CreateTokenAuthTA }, - { "EAC 2.01 CA", CreateTokenAuthCA }, - { "BAC", CreateTokenAuthBAC }, - { 0, 0 } - }; - - // ------------------------------------------------------------------------ - const SubsystemMapEntry SubsystemMap[] = - { - { "PCSC", CreatePCSCSystem, CreatePCSCSystemEx }, - { "CTAPI", CreateCTAPISystem, 0 }, - { "PKCS11", CreatePKCS11System, 0 }, - -# if defined(ACT_WIN32) && !defined(ACT_MINGW) - { "CSP", CreateCSPSystem, 0 }, - -# endif - { 0, 0, 0 } - }; - - // ------------------------------------------------------------------------ - const SlotMonitorRegEntry SlotMonitorMap[] = - { - { "PCSC", { CreatePCSCSlotMonitor, CreatePCSCSystemSlotMonitor } }, - { "CTAPI", { CreateSlotMonitor, 0 } }, - { "PKCS11", { CreateSlotMonitor, 0 } }, - -# if defined(ACT_WIN32) && !defined(ACT_MINGW) - { "CSP", { CreateSlotMonitor, 0 } }, - -# endif - { 0, { 0, 0 } } - }; - - // ------------------------------------------------------------------------ - const JCardAppletEntry JCardAppletMap[] = - { - // AID if it is equal to 0 then all AID are able - // function returns true if the Applet can used - // creates an new applet - // number of PIN's Key's Certificate's - // if they are -1 then it will be checked - // if they are biger or equal to 0 they are const - { "D276000098C00000", IsJCProfileApplet, CreateJCProfileApplet, 1, 1, 0 }, - { 0, 0, 0, 0, 0, 0 } - }; -#endif // NO_SMARTCARD - - // ------------------------------------------------------------------------ - // Version: V1R4M4 - const char* GetVersion(); - - // ------------------------------------------------------------------------ - inline void Init(bool bAlwaysInit = false) - { - static bool loaded = false; - if(loaded == true && bAlwaysInit == false) - return; - - KeyReg::Insert(KeyMap); - BlockCipherReg::Insert(BlockCipherMap); - BlockCipherModeReg::Insert(BlockCipherModeMap); - StreamCipherReg::Insert(StreamCipherMap); - HashReg::Insert(HashMap); - EMSAReg::Insert(EMSAMap); - DerivatorReg::Insert(DerivatorMap); - PaddingReg::Insert(PaddingMap); - CertificateReg::Insert(CertificateMap); - CRLReg::Insert(CRLMap); - X509KeyReg::Insert(X509KeyMap); - X509SignReg::Insert(X509SignMap); - X509SignHashReg::Insert(X509SignHashMap); - -#ifndef NO_SMARTCARD - SubsystemReg::Insert(SubsystemMap); - SlotMonitorReg::Insert(SlotMonitorMap); - SCardOSReg::Insert(SCardOSMap); - SCardTokenReg::Insert(SCardTokenMap); - ProfileGeneratorReg::Insert(ProfileGeneratorMap); - PKCS15BehaviorReg::Insert(PKCS15BehaviorMap); - TokenExtensionReg::Insert(TokenExtensionMap); - TokenAuthProtocolReg::Insert(TokenAuthProtocolMap); - JCardAppletReg::Insert(JCardAppletMap); -#endif - CreateFastRNG = CreateFIPS186; - CreateStrongRNG = CreateBBS; - loaded = true; - } - -} // namespace act - -#endif // actInit_h diff --git a/actlibrary/OpenSUSE-11-x86_64/Release/include/actJCAppletKit.h b/actlibrary/OpenSUSE-11-x86_64/Release/include/actJCAppletKit.h deleted file mode 100644 index 0d48e6d..0000000 --- a/actlibrary/OpenSUSE-11-x86_64/Release/include/actJCAppletKit.h +++ /dev/null @@ -1,30 +0,0 @@ -// --------------------------------------------------------------------------- -// Name: actAppletKit.h -// Product: cv act library -// Purpose: registry for factory functions to create JavaCard Applet -// -// Copyright: (c) 2002 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -// -// Autor: -// Date: 02/10/2003 -// --------------------------------------------------------------------------- - -#ifndef ACT_AppletKit_h -#define ACT_AppletKit_h - -#include "actBlob.h" - -namespace act -{ - class IToken; - class JavaCardOS; - - bool IsJCProfileApplet(JavaCardOS* os, const Blob& aid); - IToken* CreateJCProfileApplet(JavaCardOS* os, const Blob& aid); - -} // namespace act - -#endif // ACT_AppletKit_h diff --git a/actlibrary/OpenSUSE-11-x86_64/Release/include/actJCAppletReg.h b/actlibrary/OpenSUSE-11-x86_64/Release/include/actJCAppletReg.h deleted file mode 100644 index a8dfa8f..0000000 --- a/actlibrary/OpenSUSE-11-x86_64/Release/include/actJCAppletReg.h +++ /dev/null @@ -1,62 +0,0 @@ -// --------------------------------------------------------------------------- -// Name: actAppletReg.h -// Product: cv act library -// Purpose: registry for factory functions to create JavaCardApplet object -// -// Copyright: (c) 2002 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -// -// Autor: -// Date: 02/10/2003 -// --------------------------------------------------------------------------- - -#ifndef ACT_AppletReg_h -#define ACT_AppletReg_h - -#ifdef _MSC_VER -#pragma warning (disable:4786) -#endif - -namespace act -{ - class JavaCardOS; - class IToken; - class Blob; - - typedef IToken* (*CreateJCardAppletPtr)(JavaCardOS*, const Blob& aid); - typedef bool (*CheckJCardAppletPtr)(JavaCardOS*, const Blob& aid); - - struct JCardAppletEntry - { - const char* hexid; - CheckJCardAppletPtr CheckPtr; - CreateJCardAppletPtr CreatePtr; - int keys; - int certs; - int auth_objs; - }; - - struct JCardAppletInfoEntry - { - int keys; - int certs; - int auth_objs; - }; - - class JCardAppletReg - { - public: - static IToken* CreateJCardApplet(JavaCardOS* os, const Blob& aid); - static JCardAppletInfoEntry GetJCardAppletInfo(JavaCardOS* os, const Blob& aid); - static bool IsJCardApplet(JavaCardOS* os, const Blob& aid); - - static void Insert(const JCardAppletEntry* entry); - static void Insert(const char* id, CheckJCardAppletPtr checkptr, CreateJCardAppletPtr createptr, - int keys = -1, int auth_objs = -1, int certs = -1); - }; - -} // namespace act - -#endif // ACT_AppletReg_h diff --git a/actlibrary/OpenSUSE-11-x86_64/Release/include/actJCSecureChannelReg.h b/actlibrary/OpenSUSE-11-x86_64/Release/include/actJCSecureChannelReg.h deleted file mode 100644 index 1eb4b32..0000000 --- a/actlibrary/OpenSUSE-11-x86_64/Release/include/actJCSecureChannelReg.h +++ /dev/null @@ -1,43 +0,0 @@ -//----------------------------------------------------------------------------- -// Name: actJCSecureChannelReg.h -// Product: cv act library -// Purpose: -// -// Copyright: (c) 2003 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for use of this software are regulated -// in the cv act libary licence agreement. -// -// Autor: -// Data: 08.10.2003 15:53:14 -//----------------------------------------------------------------------------- - -#ifndef __ACTJCSECURECHANNELREG_H__ -#define __ACTJCSECURECHANNELREG_H__ - -namespace act -{ - class Blob; - - struct JCSecureChannelEntry { - const char* hexvalue; - }; - - - class JCardSecureChannelReg - { - public: - static Blob GetValue(int i); - static int GetNumber(); - - - static void Insert(const char* hexvalue); - static void Insert(const JCSecureChannelEntry* entry); - - }; - -} - - - -#endif //__ACTJCSECURECHANNELREG_H__ diff --git a/actlibrary/OpenSUSE-11-x86_64/Release/include/actKey.h b/actlibrary/OpenSUSE-11-x86_64/Release/include/actKey.h deleted file mode 100644 index 5030c0c..0000000 --- a/actlibrary/OpenSUSE-11-x86_64/Release/include/actKey.h +++ /dev/null @@ -1,82 +0,0 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actKey.h -// Product: cv act library -// Purpose: The class Key manages information relevant to keys (e.g. -// domain parameters or the key itself). In the case of symmetric -// encryption only a (the) secret key is generated. In the case of -// of asymetric encryption a private and a public key are generated. -// This handle allows a universal approach for different families of -// algorithms. -// -// -// Copyright: (c) 2000 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_Key_h -#define ACT_Key_h - -#include "actBasics.h" -#include "actBlob.h" - -namespace act -{ - class IRNGAlg; - class IAlgorithm; - class IKey; - class ICertificate; - - class Key - { - public: - Key(); - Key(const Key& key); - Key(IKey* keyptr); - Key(const Blob& keyblob); - Key(const ICertificate* cert); - Key(const char* keytype); - - void Import(const Blob& keyblob); - void Export(Blob& keyblob, export_t type = DEFAULT) const; - - void SetParam(paramid_t id, const Blob& blob); - void SetParam(paramid_t id, int val); - void SetParam(paramid_t id, const char* cstr); - - int GetParam(paramid_t id) const; - void GetParam(paramid_t id, Blob& blob) const; - - void Generate(IAlgorithm* prng = 0); - void Derive(const Blob& data, const Blob& salt = Blob()); - - IAlgorithm* CreateAlgorithm(mode_t Mode) const; - IAlgorithm* CreateAlgorithm(mode_t Mode, const Blob& data) const; - - IKey* GetPointer(); - const IKey* GetPointer() const; - operator IKey*(); - operator const IKey*() const; - - IKey* ReleasePointer(); - - template - inline KeyTypeT* As() { return static_cast(GetPointer()); } - - template - inline const KeyTypeT* As() const { return static_cast(GetPointer()); } - - Key& operator=(const Key& key); - Key& Reset(IKey* key); - Key& Required(const char* where = 0); - - ~Key(); - - private: - IKey *mKey; - }; - -} // namespace act - -#endif // ACT_Key_h diff --git a/actlibrary/OpenSUSE-11-x86_64/Release/include/actKeyKit.h b/actlibrary/OpenSUSE-11-x86_64/Release/include/actKeyKit.h deleted file mode 100644 index e8a7730..0000000 --- a/actlibrary/OpenSUSE-11-x86_64/Release/include/actKeyKit.h +++ /dev/null @@ -1,43 +0,0 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actKeyKit.h -// Product: cv act library -// Purpose: declaration of all factory functions -// -// Copyright: (c) 2000 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_KeyKit_h -#define ACT_KeyKit_h - -namespace act -{ - class IKey; - - IKey* CreateBlockCipherKey(); - - IKey* CreateStreamCipherKey(); - - IKey* CreateHashMACKey(); - IKey* CreateCBCMACKey(); - IKey* CreateSecretKeyMACKey(); - IKey* CreateRetailCFBMACKey(); - IKey* Create_iMAC3Key(); - IKey* CreateCMACKey(); - - IKey* CreateRSAKey(); - - IKey* CreateDSAKey(); - IKey* CreateECDSAKey(); - IKey* CreateECGDSAKey(); - - IKey* CreateDHKey(); - IKey* CreateECDHKey(); - - IKey* CreateIESKey(); - -} // namespace act - -#endif // ACT_KeyKit_h diff --git a/actlibrary/OpenSUSE-11-x86_64/Release/include/actKeyReg.h b/actlibrary/OpenSUSE-11-x86_64/Release/include/actKeyReg.h deleted file mode 100644 index 14caa8c..0000000 --- a/actlibrary/OpenSUSE-11-x86_64/Release/include/actKeyReg.h +++ /dev/null @@ -1,40 +0,0 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actKeyReg.h -// Product: cv act library -// Purpose: registry for factory functions in actKeyKit.h -// -// Copyright: (c) 2000 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_KeyReg_h -#define ACT_KeyReg_h - -namespace act -{ - class IKey; - - typedef IKey* (*CreateKeyPtr)(); - - struct KeyMapEntry - { - const char* Name; - CreateKeyPtr CreatePtr; - }; - - class KeyReg - { - public: - static IKey* CreateKey(const char* name); - static CreateKeyPtr GetCreatePointer(const char* name); - static const char* GetName(void* createptr); - static const char* GetNextName(const char* name); - static void Insert(const char* name, CreateKeyPtr createptr); - static void Insert(const KeyMapEntry* keymap); - }; - -} // namespace act - -#endif // ACT_KeyReg_h diff --git a/actlibrary/OpenSUSE-11-x86_64/Release/include/actLogger.h b/actlibrary/OpenSUSE-11-x86_64/Release/include/actLogger.h deleted file mode 100644 index 103b1ed..0000000 --- a/actlibrary/OpenSUSE-11-x86_64/Release/include/actLogger.h +++ /dev/null @@ -1,110 +0,0 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actLogger.h -// Product: cv act library -// Purpose: Logger -// -// Copyright: (c) 2000-2001 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_Logger_h -#define ACT_Logger_h - -#include "actDebug.h" -#include "actBlob.h" - -#include "SyncObject.h" - -// for convenience: -#ifdef _MSC_VER -# define ACT_SNPRINTF _snprintf -#else -# include -# define ACT_SNPRINTF snprintf -#endif - -// -// MTE [11/1/2006]: Added addtional accessing macros. -// NOTE: Redefine to use another Logger. -#define ACT_LOGGER(x) act::Logger::x - -// -// MTE [11/1/2006]: Added to replace direct usage of ACT_LOGGER(LogInit)(). -#define ACT_LOGISENABLED() (ACT_DEBUG != 0 || ACT_LOGGER(LogInit)()) - -// -// MTE [11/1/2006]: Changed to use ACT_LOGISENABLED(). -#define ACT_LOGINFO(info) { if(ACT_LOGISENABLED()) ACT_LOGGER(Log)(ACT_LOGGER(LEVEL_INFO), info); } -#define ACT_LOGWARN(warn) { if(ACT_LOGISENABLED()) ACT_LOGGER(Log)(ACT_LOGGER(LEVEL_WARN), warn); } -#define ACT_LOGERROR(error) { if(ACT_LOGISENABLED()) ACT_LOGGER(Log)(ACT_LOGGER(LEVEL_ERROR), error); } -#define ACT_LOGEXCEPTION(e) { if(ACT_LOGISENABLED()) { char buf[1024]; ACT_SNPRINTF(buf, 1024, "Exception:\t '%s' in '%s'", e.what(), e.where()); ACT_LOGERROR(buf) }} - -#define ACT_LOGINFODATA(info, data) { if(ACT_LOGISENABLED()) ACT_LOGGER(Log)(ACT_LOGGER(LEVEL_INFO), info, data); } -#define ACT_LOGWARNDATA(warn, data) { if(ACT_LOGISENABLED()) ACT_LOGGER(Log)(ACT_LOGGER(LEVEL_WARN), warn, data); } -#define ACT_LOGERRORDATA(error, data) { if(ACT_LOGISENABLED()) ACT_LOGGER(Log)(ACT_LOGGER(LEVEL_ERROR), error, data); } -#define ACT_LOGBLOB(blob) { if(ACT_LOGISENABLED()) ACT_LOGGER(Log)(ACT_LOGGER(LEVEL_INFO), #blob, blob); } - -#define ACT_LOGVALUE(name, value, format) { if(ACT_LOGISENABLED()) { char buf[256]; ACT_SNPRINTF(buf, 256, name " :\t " format, value); ACT_LOGINFO(buf) }} - -#define ACT_LOGINT(value) ACT_LOGVALUE(#value, int(value), "%i") -#define ACT_LOGHEX(value) ACT_LOGVALUE(#value, act::ulong(value), "0x%08x") -#define ACT_LOGSTRING(value) ACT_LOGVALUE(#value, value, "%s") - -#define ACT_LOGNAMEDINT(name, value) ACT_LOGVALUE(name, int(value), "%i") -#define ACT_LOGNAMEDHEX(name, value) ACT_LOGVALUE(name, act::ulong(value), "0x%08x") -#define ACT_LOGNAMEDSTRING(name, value) ACT_LOGVALUE(name, value, "%s") - -#ifdef WIN32 -#define ACT_LOGPTR(value) ACT_LOGINT(value) -#else -#define ACT_LOGPTR(value) ACT_LOGVALUE(#value, value, "%lp") -#endif - -// TODO: MTE: What about this "nice" construct ? -#define ACT_LOGPOINTER(p) { if(ACT_LOGISENABLED()) { if(p != 0) ACT_LOGINT(*p) else ACT_LOGHEX(p) }} -#define ACT_LOGISNULL(p) { if(ACT_LOGISENABLED()) { char buf[256]; if(p != 0) ACT_SNPRINTF(buf, 256, #p " :\t *"); else ACT_SNPRINTF(buf, 256, #p " :\t 0"); ACT_LOGINFO(buf) }} - - -namespace act -{ - class Logger - { - public: - enum Levels - { - LEVEL_OFF = 0, - LEVEL_ERROR = 30, - LEVEL_WARNING = 50, - LEVEL_WARN = LEVEL_WARNING, - LEVEL_INFO = 80, - LEVEL_MAX = 99 - }; - - static void SetLogger(Logger* pLogger); - static void FreeLogger(); - static void Log(short level, const char* msg); - static void Log(short level, const Blob& blobmsg); - static void Log(short level, const char* msg, const Blob& blobmsg); - static void SetLoglevel(short level); - static bool LogInit() - { - return(s_pLogger != 0 ? true : false); - } - - protected: - Logger(){} - virtual ~Logger(){} - virtual void doLog(short level, const char* msg) = 0; - virtual void doSetLoglevel(short level) = 0; - - private: - static Logger* s_pLogger; - static SyncObject m_sync; - }; - -} // namespace act - -#endif // ACT_Logger_h - diff --git a/actlibrary/OpenSUSE-11-x86_64/Release/include/actMode.h b/actlibrary/OpenSUSE-11-x86_64/Release/include/actMode.h deleted file mode 100644 index 3c4bdb9..0000000 --- a/actlibrary/OpenSUSE-11-x86_64/Release/include/actMode.h +++ /dev/null @@ -1,269 +0,0 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actMode.h -// Product: cv act library -// Purpose: enumerations -// -// Copyright: (c) 2006 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_Mode_h -#define ACT_Mode_h - -namespace act -{ - enum - { - MODE_RANGE_BEGIN = 100, - - ENCRYPT = 100, - DECRYPT, - SIGN, - VERIFY, - MAC, - - PRIVATE =200, - PUBLIC, - SECRET, - DOMAINPARAMS, - PKCS8_TYPE, - - CIPHER = 300, - PADDING, - DERIVATOR, - BCMODE, - KEYSIZE, - RAWKEY, - IV, - BLOCKSIZE, - CHAINING_VALUE, - CHAINING_BITCOUNT, - EFFECTIVE_KEYSIZE, - SHAREDDATA_1, - SHAREDDATA_2, - KEYDATALEN, - ITERATIONCOUNT, - COUNTER, - OUTDATALEN, - - ENCODER=400, - PRIVATEKEY, - PUBLICKEY, - PUBLICSIZE, - KEY, - SIGNATURE, - AGREEMENT, - - MODULO=500, - PRIME_P, - PRIME_Q, - MODULOSIZE, - PRIME_P_SIZE, - PRIME_Q_SIZE, - CRT_EXPONENT_1, - CRT_EXPONENT_2, - CRT_COEFFICIENT, - PKCS1_PRIVATEKEY, - PKCS1_PUBLICKEY, - - CURVE=600, - PUBLIC_X, - PUBLIC_Y, - STATICPUBLIC_X, - STATICPUBLIC_Y, - EPHEMERALPUBLIC_X, - EPHEMERALPUBLIC_Y, - CURVEPARAM, - PUBLICKEY_EXPORT_TYPE, - BASEPOINT_EXPORT_TYPE, - COMPRESSED, - UNCOMPRESSED, - HYBRID, - IMPLICITLYCA, - GF2CURVE, - PRIMECURVE, - ENCODE_SIGNATURE, - PLAIN_SECRET, - - RING = 700, - RINGORDER, - RINGGENERATOR, - COFACTOR, - COMPATIBLE, - NEWEPHEMERAL, - CHECKDOMAINPARAMS, - - STATICPRIVATEKEY, - STATICPUBLICKEY, - EPHEMERALPRIVATEKEY, - EPHEMERALPUBLICKEY, - - PIN = 800, - CARDTYPE, - CARDPORTTYPE, - PORTNR, - DLLNAME, - READERNAME, - CHANGEMASTERPIN, - CHANGEPIN, - USERPIN, - MASTERPIN, - PINPAD, - USERNAME, - INFOTEXT, - SIGNKEY, - ENCKEY, - SIGNCERTIFICATE, - ENCCERTIFICATE, - ROOTCERTIFICATE, - LOCK_KEY, - DHKEY, - DHCERTIFICATE, - PERSONALIZED, - READERNAMES, - AID, - PATH, - NULLPIN, - SELECTKEY, - ALLCERTIFICATE, - APPLICATION, - KEYUSAGE, - MECHANISM, - CERTIFICATE, - DATA, - KEYTYPE, - LABEL, - ID, - - CTAPI_PORT = 900, - PCSC_PORT, - - CARDOS_CARD = 1000, - TCOS_CARD, - CVACT_CARD, - PKCS11_CARD, - MICARDOEC_CARD, - STARCOSPK_CARD, - ETRUST_CARD, -// MICARDOPUBLIC_CARD, - CARDOSM4_CARD, - MICARDOP21_CARD, - - HASH=1100, - SALT, - SALT_LENGTH, - EMLEN, - - X = 1200, - SEED, - MULTIPLIER, - - VERSION = 1300, - ISSUER, - SUBJECT, - SERIALNR, - ISSUER_DER, - SUBJECT_DER, - ISSUER_UID, - SUBJECT_UID, - NOTBEFORE_DER, - NOTAFTER_DER, - THISUPDATE_DER, - NEXTUPDATE_DER, - TBS, - - CVPROFILEID = 1400, - CVCAREFERENCE, - CVHOLDERREFERENCE, - CVHATEMPLATE, - CVEACTEMPLATE, - CVEFFECTIVEDATE, - CVEXPIRATIONDATE, - CVPUBLICKEY_TLV, - CVPUBLICKEY_MECHANISM, - - // GF(P)-Curves - SECGp112r1 = 0x1000, - SECGp112r2, - SECGp128r1, - SECGp128r2, - SECGp160r1, - SECGp160r2, - SECGp160k1, - ANSIp192r1, - ANSIp192r2, - ANSIp192r3, - NISTp192r1, - SECGp192r1, - SECGp192k1, - NISTp224r1, - SECGp224r1, - SECGp224k1, - ANSIp239r1, - ANSIp239r2, - ANSIp239r3, - ANSIp256r1, - NISTp256r1, - SECGp256r1, - SECGp256k1, - NISTp384r1, - NISTp521r1, - brainpoolP256r1, - brainpoolP256t1, - - // GF(2^m)-Curves - SECGz113r1 = 0x1200, - SECGz113r2, - SECGz131r1, - SECGz131r2, - ANSIz163r1, - ANSIz163r2, - ANSIz163r3, - NISTz163r1, - NISTz163k1, - SECGz163r1, - SECGz163r2, - SECGz163k1, - ANSIz176w1, - ANSIz191r1, - ANSIz191r2, - ANSIz191r3, - SECGz193r1, - SECGz193r2, - ANSIz208w1, - NISTz233r1, - NISTz233k1, - SECGz233r1, - SECGz233k1, - ANSIz239r1, - ANSIz239r2, - ANSIz239r3, - SECGz239k1, - ANSIz272w1, - NISTz283r1, - NISTz283k1, - SECGz283r1, - SECGz283k1, - ANSIz304w1, - ANSIz359r1, - ANSIz368w1, - NISTz409r1, - NISTz409k1, - SECGz409r1, - SECGz409k1, - ANSIz431r1, - NISTz571r1, - NISTz571k1, - SECGz571r1, - SECGz571k1, - - MODE_RANGE_LAST = 0x1400, // insert new elements here - - TOKEN_CONFIG = 0x2000, // token config start - }; - -} // namespace act - -#endif // ACT_Mode_h diff --git a/actlibrary/OpenSUSE-11-x86_64/Release/include/actMove.h b/actlibrary/OpenSUSE-11-x86_64/Release/include/actMove.h deleted file mode 100644 index ebf1d6f..0000000 --- a/actlibrary/OpenSUSE-11-x86_64/Release/include/actMove.h +++ /dev/null @@ -1,133 +0,0 @@ -////////////////////////////////////////////////////////////////////////// -// Name: actMove.h -// Product: cv act library -// Purpose: template<>'s to implement move semantics -// -// Copyright: (c) 2010 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -// -// Autor: Markus Tesche -// Date: 07/25/2010 -////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_Move_h -#define ACT_Move_h - -namespace act -{ - // - // type_of used to dismantle T resulting in T' - // -------------------------------------------------------------------------------- - template struct type_of { typedef T type; }; - template struct type_of { typedef T type; }; - template struct type_of { typedef T type; }; - template struct type_of { typedef T type; }; - template struct type_of { typedef T type; }; - template struct type_of { typedef T type; }; - - // - // is_const - // -------------------------------------------------------------------------------- - template struct is_const { enum { value = 0 }; }; - template struct is_const { enum { value = 1 }; }; - template struct is_const { enum { value = 0 }; }; - template struct is_const { enum { value = 1 }; }; - template struct is_const { enum { value = 0 }; }; - template struct is_const { enum { value = 1 }; }; - - // - // /brief move_from<...> used to implement move semantics - // -------------------------------------------------------------------------------- - template - class move_from; - - // - // /brief move_from default spcialization, holds reference to type T - // -------------------------------------------------------------------------------- - template - class move_from - { - public: - typedef typename type_of::type type_t; - - explicit move_from(type_t& ref) - : m_ref(ref) - { } - - template - move_from(const move_from& other) - : m_ref(other.source()) - { } - - inline type_t& source() const { return m_ref; } - template O& source() const { return m_ref; } - - template void swap(O& other) { m_ref.swap(other); } - template O& move(O& other) { m_ref.swap(other); return other; } - - private: - type_t& m_ref; - - private: - template - friend class move_from; - }; - - // - // /brief move_from spcialization takes ownership of 'swapped-in' source data - // -------------------------------------------------------------------------------- - template - class move_from : public move_from - { - public: - typedef typename type_of::type type_t; - - explicit move_from(type_t& ref) - : move_from(m_value) - { - ref.swap(m_value); - } - - template - move_from(move_from other) - : move_from(m_value) - { - other.swap(m_value); - } - - private: - typename move_from::type_t m_value; - }; - - // - // /brief move_empty used as default move_from<...> function parameter - // -------------------------------------------------------------------------------- - template - class move_empty : public move_from - { - public: - move_empty() - : move_from(m_empty) - { } - - move_empty(const move_empty&) - : move_from(m_empty) - { } - - inline move_empty& operator=(const move_empty&) { return *this; } - - private: - T m_empty; - }; - - // - // /brief move<> helper function - // -------------------------------------------------------------------------------- - template - move_from move(T& ref) { return move_from(ref); } - -} // namespace act - -#endif // ACT_Move_h diff --git a/actlibrary/OpenSUSE-11-x86_64/Release/include/actOID.h b/actlibrary/OpenSUSE-11-x86_64/Release/include/actOID.h deleted file mode 100644 index 527f660..0000000 --- a/actlibrary/OpenSUSE-11-x86_64/Release/include/actOID.h +++ /dev/null @@ -1,2103 +0,0 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actOID.h -// Product: cv act library -// Purpose: -// -// -// Copyright: (c) 2000 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_OID_H -#define ACT_OID_H - -#define CV_OID_DEF(x) (act::Blob((x),(x)+sizeof((x)))) - -#ifdef _MSC_VER -#pragma warning(disable : 4305) //Verkuerzung von 'static const int' in 'static const unsigned char' -#pragma warning(disable : 4309) //Verkuerzung eines konstanten Wertes -#endif - -//1.2.840.10045.4.1 ECDSA cvECDSA -static const unsigned char cvOID_cvECDSA[] = {0x2a, 0x86, 0x48, 0xce, 0x3d, 0x04, 0x01}; -//1.2.840.113549.1.9.1 Alternate Name cvAlternateName -static const unsigned char cvOID_cvAlternateName[] = {0x2a, 0x86, 0x48, 0x86, 0xf7, 0x0d, 0x01, 0x09, 0x01}; - -//0.2.262.1.10 Deutsche Telekom Telesec -static const unsigned char cvOID_Telesec [] = { 0x02, 0x82, 0x06, 0x01, 0x0A}; -//0.2.262.1.10.0 Telesec extension -static const unsigned char cvOID_extension [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x00}; -//0.2.262.1.10.1 Telesec mechanism -static const unsigned char cvOID_mechanism [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x01}; -//0.2.262.1.10.1.0 Telesec mechanism authentication -static const unsigned char cvOID_authentication [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x01, 0x00}; -//0.2.262.1.10.1.0.1 Telesec authentication passwordAuthentication -static const unsigned char cvOID_passwordAuthentication [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x01, 0x00, 0x01}; -//0.2.262.1.10.1.0.2 Telesec authentication protectedPasswordAuthentication -static const unsigned char cvOID_protectedPasswordAuthentication [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x01, 0x00, 0x02}; -//0.2.262.1.10.1.0.3 Telesec authentication oneWayX509Authentication -static const unsigned char cvOID_oneWayX509Authentication [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x01, 0x00, 0x03}; -//0.2.262.1.10.1.0.4 Telesec authentication twoWayX509Authentication -static const unsigned char cvOID_twoWayX509Authentication [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x01, 0x00, 0x04}; -//0.2.262.1.10.1.0.5 Telesec authentication threeWayX509Authentication -static const unsigned char cvOID_threeWayX509Authentication [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x01, 0x00, 0x05}; -//0.2.262.1.10.1.0.6 Telesec authentication oneWayISO9798Authentication -static const unsigned char cvOID_oneWayISO9798Authentication [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x01, 0x00, 0x06}; -//0.2.262.1.10.1.0.7 Telesec authentication twoWayISO9798Authentication -static const unsigned char cvOID_twoWayISO9798Authentication [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x01, 0x00, 0x07}; -//0.2.262.1.10.1.0.8 Telesec authentication telekomAuthentication -static const unsigned char cvOID_telekomAuthentication [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x01, 0x00, 0x08}; -//0.2.262.1.10.1.1 Telesec mechanism signature -static const unsigned char cvOID_signature [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x01, 0x01}; -//0.2.262.1.10.1.1.1 Telesec mechanism md4WithRSAAndISO9697 -static const unsigned char cvOID_md4WithRSAAndISO9697 [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x01, 0x01, 0x01}; -//0.2.262.1.10.1.1.2 Telesec mechanism md4WithRSAAndTelesecSignatureStandard -static const unsigned char cvOID_md4WithRSAAndTelesecSignatureStandard [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x01, 0x01, 0x02}; -//0.2.262.1.10.1.1.3 Telesec mechanism md5WithRSAAndISO9697 -static const unsigned char cvOID_md5WithRSAAndISO9697 [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x01, 0x01, 0x03}; -//0.2.262.1.10.1.1.4 Telesec mechanism md5WithRSAAndTelesecSignatureStandard -static const unsigned char cvOID_md5WithRSAAndTelesecSignatureStandard [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x01, 0x01, 0x04}; -//0.2.262.1.10.1.1.5 Telesec mechanism ripemd160WithRSAAndTelekomSignatureStandard -static const unsigned char cvOID_ripemd160WithRSAAndTelekomSignatureStandard [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x01, 0x01, 0x05}; -//0.2.262.1.10.1.1.9 Telesec signature hbciRsaSignature -static const unsigned char cvOID_hbciRsaSignature [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x01, 0x01, 0x09}; -//0.2.262.1.10.1.2 Telesec mechanism encryption -static const unsigned char cvOID_encryption [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x01, 0x02}; -//0.2.262.1.10.1.2.0 Telesec encryption none -static const unsigned char cvOID_none [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x01, 0x02, 0x00}; -//0.2.262.1.10.1.2.1 Telesec encryption rsaTelesec -static const unsigned char cvOID_rsaTelesec [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x01, 0x02, 0x01}; -//0.2.262.1.10.1.2.2 Telesec encryption des -static const unsigned char cvOID_des [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x01, 0x02, 0x02}; -//0.2.262.1.10.1.2.2.1 Telesec encryption desECB -static const unsigned char cvOID_desECB [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x01, 0x02, 0x02, 0x01}; -//0.2.262.1.10.1.2.2.2 Telesec encryption desCBC -static const unsigned char cvOID_desCBC [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x01, 0x02, 0x02, 0x02}; -//0.2.262.1.10.1.2.2.3 Telesec encryption desOFB -static const unsigned char cvOID_desOFB [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x01, 0x02, 0x02, 0x03}; -//0.2.262.1.10.1.2.2.4 Telesec encryption desCFB8 -static const unsigned char cvOID_desCFB8 [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x01, 0x02, 0x02, 0x04}; -//0.2.262.1.10.1.2.2.5 Telesec encryption desCFB64 -static const unsigned char cvOID_desCFB64 [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x01, 0x02, 0x02, 0x05}; -//0.2.262.1.10.1.2.3 Telesec encryption des3 -static const unsigned char cvOID_des3 [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x01, 0x02, 0x03}; -//0.2.262.1.10.1.2.3.1 Telesec encryption des3ECB -static const unsigned char cvOID_des3ECB [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x01, 0x02, 0x03, 0x01}; -//0.2.262.1.10.1.2.3.2 Telesec encryption des3CBC -static const unsigned char cvOID_des3CBC [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x01, 0x02, 0x03, 0x02}; -//0.2.262.1.10.1.2.3.3 Telesec encryption des3OFB -static const unsigned char cvOID_des3OFB [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x01, 0x02, 0x03, 0x03}; -//0.2.262.1.10.1.2.3.4 Telesec encryption des3CFB8 -static const unsigned char cvOID_des3CFB8 [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x01, 0x02, 0x03, 0x04}; -//0.2.262.1.10.1.2.3.5 Telesec encryption des3CFB64 -static const unsigned char cvOID_des3CFB64 [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x01, 0x02, 0x03, 0x05}; -//0.2.262.1.10.1.2.4 Telesec encryption magenta -static const unsigned char cvOID_magenta [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x01, 0x02, 0x04}; -//0.2.262.1.10.1.2.5 Telesec encryption idea -static const unsigned char cvOID_idea [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x01, 0x02, 0x05}; -//0.2.262.1.10.1.2.5.1 Telesec encryption ideaECB -static const unsigned char cvOID_ideaECB_Telesec [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x01, 0x02, 0x05, 0x01}; -//0.2.262.1.10.1.2.5.2 Telesec encryption ideaCBC -static const unsigned char cvOID_ideaCBC_Telesec [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x01, 0x02, 0x05, 0x02}; -//0.2.262.1.10.1.2.5.3 Telesec encryption ideaOFB -static const unsigned char cvOID_ideaOFB_Telesec [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x01, 0x02, 0x05, 0x03}; -//0.2.262.1.10.1.2.5.4 Telesec encryption ideaCFB8 -static const unsigned char cvOID_ideaCFB8_Telesec [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x01, 0x02, 0x05, 0x04}; -//0.2.262.1.10.1.2.5.5 Telesec encryption ideaCFB64 -static const unsigned char cvOID_ideaCFB64_Telesec [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x01, 0x02, 0x05, 0x05}; -//0.2.262.1.10.1.3 Telesec mechanism oneWayFunction -static const unsigned char cvOID_oneWayFunction [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x01, 0x03}; -//0.2.262.1.10.1.3.1 Telesec one-way function md4 -static const unsigned char cvOID_md4_Telesec [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x01, 0x03, 0x01}; -//0.2.262.1.10.1.3.2 Telesec one-way function md5 -static const unsigned char cvOID_md5_Telesec [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x01, 0x03, 0x02}; -//0.2.262.1.10.1.3.3 Telesec one-way function sqModNX509 -static const unsigned char cvOID_sqModNX509 [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x01, 0x03, 0x03}; -//0.2.262.1.10.1.3.4 Telesec one-way function sqModNISO -static const unsigned char cvOID_sqModNISO [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x01, 0x03, 0x04}; -//0.2.262.1.10.1.3.5 Telesec one-way function ripemd128 -static const unsigned char cvOID_ripemd128 [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x01, 0x03, 0x05}; -//0.2.262.1.10.1.3.6 Telesec one-way function hashUsingBlockCipher -static const unsigned char cvOID_hashUsingBlockCipher [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x01, 0x03, 0x06}; -//0.2.262.1.10.1.3.7 Telesec one-way function mac -static const unsigned char cvOID_mac [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x01, 0x03, 0x07}; -//0.2.262.1.10.1.3.8 Telesec one-way function ripemd160 -static const unsigned char cvOID_ripemd160 [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x01, 0x03, 0x08}; -//0.2.262.1.10.1.4 Telesec mechanism fecFunction -static const unsigned char cvOID_fecFunction [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x01, 0x04}; -//0.2.262.1.10.1.4.1 Telesec mechanism reedSolomon -static const unsigned char cvOID_reedSolomon [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x01, 0x04, 0x01}; -//0.2.262.1.10.2 Telesec module -static const unsigned char cvOID_module_Telesec [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x02}; -//0.2.262.1.10.2.0 Telesec module algorithms -static const unsigned char cvOID_algorithms [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x02, 0x00}; -//0.2.262.1.10.2.1 Telesec module attributeTypes -static const unsigned char cvOID_attributeTypes [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x02, 0x01}; -//0.2.262.1.10.2.2 Telesec module certificateTypes -static const unsigned char cvOID_certificateTypes [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x02, 0x02}; -//0.2.262.1.10.2.3).. Telesec module messageTypes -static const unsigned char cvOID_messageTypes [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x02, 0x03}; -//0.2.262.1.10.2.4 Telesec module plProtocol -static const unsigned char cvOID_plProtocol [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x02, 0x04}; -//0.2.262.1.10.2.5 Telesec module smeAndComponentsOfSme -static const unsigned char cvOID_smeAndComponentsOfSme [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x02, 0x05}; -//0.2.262.1.10.2.6 Telesec module fec -static const unsigned char cvOID_fec [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x02, 0x06}; -//0.2.262.1.10.2.7 Telesec module usefulDefinitions -static const unsigned char cvOID_usefulDefinitions [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x02, 0x07}; -//0.2.262.1.10.2.8 Telesec module stefiles -static const unsigned char cvOID_stefiles [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x02, 0x08}; -//0.2.262.1.10.2.9 Telesec module sadmib -static const unsigned char cvOID_sadmib [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x02, 0x09}; -//0.2.262.1.10.2.10 Telesec module electronicOrder -static const unsigned char cvOID_electronicOrder [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x02, 0x0A}; -//0.2.262.1.10.2.11 Telesec module telesecTtpAsymmetricApplication -static const unsigned char cvOID_telesecTtpAsymmetricApplication [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x02, 0x0B}; -//0.2.262.1.10.2.12)..... Telesec module telesecTtpBasisApplication -static const unsigned char cvOID_telesecTtpBasisApplication [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x02, 0x0C}; -//0.2.262.1.10.2.13)....... Telesec module telesecTtpMessages -static const unsigned char cvOID_telesecTtpMessages [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x02, 0x0D}; -//0.2.262.1.10.2.14)....... Telesec module telesecTtpTimeStampApplication -static const unsigned char cvOID_telesecTtpTimeStampApplication [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x02, 0x0E}; -//0.2.262.1.10.3 Telesec objectClass -static const unsigned char cvOID_objectClass_Telesec [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x03}; -//0.2.262.1.10.3.0 Telesec object class telesecOtherName -static const unsigned char cvOID_telesecOtherName_Telesec [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x03, 0x00}; -//0.2.262.1.10.3.1 Telesec object class directory -static const unsigned char cvOID_directory_Telesec [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x03, 0x01}; -//0.2.262.1.10.3.2 Telesec object class directoryType -static const unsigned char cvOID_directoryType_Telesec [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x03, 0x02}; -//0.2.262.1.10.3.3 Telesec object class directroyGroup -static const unsigned char cvOID_directroyGroup_Telesec [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x03, 0x03}; -//0.2.262.1.10.3.4 Telesec object class directoryUser -static const unsigned char cvOID_directoryUser_Telesec [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x03, 0x04}; -//0.2.262.1.10.3.5 Telesec object class symmetricKeyEntry -static const unsigned char cvOID_symmetricKeyEntry [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x03, 0x05}; -//0.2.262.1.10.4 Telesec package -static const unsigned char cvOID_package [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x04}; -//0.2.262.1.10.5 Telesec parameter -static const unsigned char cvOID_parameter [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x05}; -//0.2.262.1.10.6 Telesec nameBinding -static const unsigned char cvOID_nameBinding [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x06}; -//0.2.262.1.10.7 Telesec attribute -static const unsigned char cvOID_attribute_Telesec [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x07}; -//0.2.262.1.10.7.0 Telesec attribute applicationGroupIdentifier -static const unsigned char cvOID_applicationGroupIdentifier [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x07, 0x00}; -//0.2.262.1.10.7.1 Telesec attribute certificateType -static const unsigned char cvOID_certificateType [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x07, 0x01}; -//0.2.262.1.10.7.2 Telesec attribute telesecCertificate -static const unsigned char cvOID_Certificate_Telesec [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x07, 0x02}; -//0.2.262.1.10.7.3 Telesec attribute certificateNumber -static const unsigned char cvOID_certificateNumber [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x07, 0x03}; -//0.2.262.1.10.7.4 Telesec attribute certificateRevocationList -static const unsigned char cvOID_certificateRevocationList_Telesec [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x07, 0x04}; -//0.2.262.1.10.7.5 Telesec attribute creationDate -static const unsigned char cvOID_creationDate [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x07, 0x05}; -//0.2.262.1.10.7.6).... Telesec attribute issuer -static const unsigned char cvOID_issuer [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x07, 0x06}; -//0.2.262.1.10.7.7 Telesec attribute namingAuthority -static const unsigned char cvOID_namingAuthority [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x07, 0x07}; -//0.2.262.1.10.7.8 Telesec attribute publicKeyDirectory -static const unsigned char cvOID_publicKeyDirectory [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x07, 0x08}; -//0.2.262.1.10.7.9).. Telesec attribute securityDomain -static const unsigned char cvOID_securityDomain [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x07, 0x09}; -//0.2.262.1.10.7.10)..... Telesec attribute subject -static const unsigned char cvOID_subject [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x07, 0x0A}; -//0.2.262.1.10.7.11 Telesec attribute timeOfRevocation -static const unsigned char cvOID_timeOfRevocation [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x07, 0x0B}; -//0.2.262.1.10.7.12 Telesec attribute userGroupReference -static const unsigned char cvOID_userGroupReference [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x07, 0x0C}; -//0.2.262.1.10.7.13 Telesec attribute validity -static const unsigned char cvOID_validity [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x07, 0x0D}; -//0.2.262.1.10.7.14 Telesec attribute zert93 -static const unsigned char cvOID_zert93 [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x07, 0x0E}; -//0.2.262.1.10.7.15 Telesec attribute securityMessEnv -static const unsigned char cvOID_securityMessEnv [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x07, 0x0F}; -//0.2.262.1.10.7.16 Telesec attribute anonymizedPublicKeyDirectory -static const unsigned char cvOID_anonymizedPublicKeyDirectory [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x07, 0x10}; -//0.2.262.1.10.7.17 Telesec attribute telesecGivenName -static const unsigned char cvOID_telesecGivenName [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x07, 0x11}; -//0.2.262.1.10.7.18). Telesec attribute nameAdditions -static const unsigned char cvOID_nameAdditions [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x07, 0x12}; -//0.2.262.1.10.7.19 Telesec attribute telesecPostalCode -static const unsigned char cvOID_telesecPostalCode [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x07, 0x13}; -//0.2.262.1.10.7.20 Telesec attribute nameDistinguisher -static const unsigned char cvOID_nameDistinguisher [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x07, 0x14}; -//0.2.262.1.10.7.21 Telesec attribute telesecCertificateList -static const unsigned char cvOID_telesecCertificateList [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x07, 0x15}; -//0.2.262.1.10.7.22 Telesec attribute teletrustCertificateList -static const unsigned char cvOID_teletrustCertificateList [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x07, 0x16}; -//0.2.262.1.10.7.23)... Telesec attribute x509CertificateList -static const unsigned char cvOID_x509CertificateList [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x07, 0x17}; -//0.2.262.1.10.7.24 Telesec attribute timeOfIssue -static const unsigned char cvOID_timeOfIssue [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x07, 0x18}; -//0.2.262.1.10.7.25 Telesec attribute physicalCardNumber -static const unsigned char cvOID_physicalCardNumber [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x07, 0x19}; -//0.2.262.1.10.7.26)........ Telesec attribute fileType -static const unsigned char cvOID_fileType [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x07, 0x1A}; -//0.2.262.1.10.7.27 Telesec attribute ctlFileIsArchive -static const unsigned char cvOID_ctlFileIsArchive [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x07, 0x1B}; -//0.2.262.1.10.7.28)........ Telesec attribute emailAddress -static const unsigned char cvOID_emailAddress [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x07, 0x1C}; -//0.2.262.1.10.7.29)........ Telesec attribute certificateTemplateList -static const unsigned char cvOID_certificateTemplateList [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x07, 0x1D}; -//0.2.262.1.10.7.30)........ Telesec attribute directoryName -static const unsigned char cvOID_directoryName [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x07, 0x1E}; -//0.2.262.1.10.7.31)........ Telesec attribute directoryTypeName -static const unsigned char cvOID_directoryTypeName [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x07, 0x1F}; -//0.2.262.1.10.7.32 Telesec attribute directoryGroupName -static const unsigned char cvOID_directoryGroupName [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x07, 0x20}; -//0.2.262.1.10.7.33 Telesec attribute directoryUserName -static const unsigned char cvOID_directoryUserName [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x07, 0x21}; -//0.2.262.1.10.7.34 Telesec attribute revocationFlag -static const unsigned char cvOID_revocationFlag [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x07, 0x22}; -//0.2.262.1.10.7.35 Telesec attribute symmetricKeyEntryName -static const unsigned char cvOID_symmetricKeyEntryName [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x07, 0x23}; -//0.2.262.1.10.7.36 Telesec attribute glNumber -static const unsigned char cvOID_glNumber [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x07, 0x24}; -//0.2.262.1.10.7.37 Telesec attribute goNumber -static const unsigned char cvOID_goNumber [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x07, 0x25}; -//0.2.262.1.10.7.38 Telesec attribute gKeyData -static const unsigned char cvOID_gKeyData [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x07, 0x26}; -//0.2.262.1.10.7.39 Telesec attribute zKeyData -static const unsigned char cvOID_zKeyData [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x07, 0x27}; -//0.2.262.1.10.7.40 Telesec attribute ktKeyData -static const unsigned char cvOID_ktKeyData [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x07, 0x28}; -//0.2.262.1.10.7.41 Telesec attribute ktKeyNumber -static const unsigned char cvOID_ktKeyNumber [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x07, 0x2A}; -//0.2.262.1.10.7.51 Telesec attribute timeOfRevocationGen -static const unsigned char cvOID_timeOfRevocationGen [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x07, 0x33}; -//0.2.262.1.10.7.52).... Telesec attribute liabilityText -static const unsigned char cvOID_liabilityText [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x07, 0x34}; -//0.2.262.1.10.8 Telesec attributeGroup -static const unsigned char cvOID_attributeGroup [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x08}; -//0.2.262.1.10.9 Telesec action -static const unsigned char cvOID_action [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x09}; -//0.2.262.1.10.10 Telesec notification -static const unsigned char cvOID_notification [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x0A}; -//0.2.262.1.10.11 Telesec snmp-mibs -static const unsigned char cvOID_snmp_mibs [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x0B}; -//0.2.262.1.10.11.1 Telesec SNMP MIBs securityApplication -static const unsigned char cvOID_securityApplication [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x0B, 0x01}; -//0.2.262.1.10.12 Telesec certAndCrlExtensionDefinitions -static const unsigned char cvOID_certAndCrlExtensionDefinitions [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x0C}; -//0.2.262.1.10.12.0 Telesec cert/CRL extension certExtensionLiabilityLimitationExt -static const unsigned char cvOID_certExtensionLiabilityLimitationExt [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x0C, 0x00}; -//0.2.262.1.10.12.1 Telesec cert/CRL extension telesecCertIdExt -static const unsigned char cvOID_telesecCertIdExt [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x0C, 0x01}; -//0.2.262.1.10.12.2 Telesec cert/CRL extension telesecPolicyIdentifier -static const unsigned char cvOID_telesecPolicyIdentifier [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x0C, 0x02}; -//0.2.262.1.10.12.3 Telesec cert/CRL extension telesecPolicyQualifierID -static const unsigned char cvOID_telesecPolicyQualifierID [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x0C, 0x03}; -//0.2.262.1.10.12.4 Telesec cert/CRL extension telesecCRLFilteredExt -static const unsigned char cvOID_telesecCRLFilteredExt [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x0C, 0x04}; -//0.2.262.1.10.12.5 Telesec cert/CRL extension telesecCRLFilterExt -static const unsigned char cvOID_telesecCRLFilterExt [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x0C, 0x05}; -//0.2.262.1.10.12.6 Telesec cert/CRL extension telesecNamingAuthorityExt -static const unsigned char cvOID_telesecNamingAuthorityExt [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x0C, 0x06}; -//0.9.2342.19200300.1.3 Some oddball X.500 attribute collection rfc822Mailbox -static const unsigned char cvOID_rfc822Mailbox [] = { 0x09, 0x92, 0x26, 0x89, 0x93, 0xF2, 0x2C, 0x01, 0x03}; -//0.9.2342.19200300.100.1.25 Men are from Mars, this OID is from Pluto domainComponent -static const unsigned char cvOID_domainComponent [] = { 0x09, 0x92, 0x26, 0x89, 0x93, 0xF2, 0x2C, 0x64, 0x01, 0x019}; -//1.2.36.75878867.1.100.1.1 Certificates Australia CA Certificates Australia policyIdentifier -static const unsigned char cvOID_Certificates_Australia_policyIdentifier [] = { 0x2A, 0x24, 0xA4, 0x97, 0xA3, 0x53, 0x01, 0x64, 0x01, 0x01}; -//1.2.36.68980861.1.1.2 Signet CA Signet personal -static const unsigned char cvOID_Signet_personal [] = { 0x2A, 0x24, 0xA0, 0xF2, 0xA0, 0x7D, 0x01, 0x01, 0x02}; -//1.2.36.68980861.1.1.3 Signet CA Signet business -static const unsigned char cvOID_Signet_business [] = { 0x2A, 0x24, 0xA0, 0xF2, 0xA0, 0x7D, 0x01, 0x01, 0x03}; -//1.2.36.68980861.1.1.4 Signet CA Signet legal -static const unsigned char cvOID_Signet_legal [] = { 0x2A, 0x24, 0xA0, 0xF2, 0xA0, 0x7D, 0x01, 0x01, 0x04}; -//1.2.36.68980861.1.1.10 Signet CA Signet pilot -static const unsigned char cvOID_Signet_pilot [] = { 0x2A, 0x24, 0xA0, 0xF2, 0xA0, 0x7D, 0x01, 0x01, 0x0A}; -//1.2.36.68980861.1.1.11 Signet CA Signet intraNet -static const unsigned char cvOID_Signet_intraNet [] = { 0x2A, 0x24, 0xA0, 0xF2, 0xA0, 0x7D, 0x01, 0x01, 0x0B}; -//1.2.36.68980861.1.1.20 Signet CA Signet securityPolicy -static const unsigned char cvOID_Signet_securityPolicy [] = { 0x2A, 0x24, 0xA0, 0xF2, 0xA0, 0x7D, 0x01, 0x01, 0x14}; -//1.2.392.200011.61.1.1.1 Mitsubishi security algorithm symmetric-encryption-algorithm -static const unsigned char cvOID_symmetric_encryption_algorithm [] = { 0x2A, 0x83, 0x08, 0x8C, 0x1A, 0x4B, 0x3D, 0x01, 0x01, 0x01}; -//1.2.392.200011.61.1.1.1.1 Mitsubishi security algorithm misty1-cbc -static const unsigned char cvOID_misty1_cbc [] = { 0x2A, 0x83, 0x08, 0x8C, 0x9A, 0x4B, 0x3D, 0x01, 0x01, 0x01, 0x01}; -//1.2.752.34.1 SEIS Project seis-cp -static const unsigned char cvOID_seis_cp [] = { 0x2A, 0x85, 0x70, 0x22, 0x01}; -//1.2.752.34.1.1 SEIS Project certificate policies SEIS high-assurnace certificatePolicy -static const unsigned char cvOID_SEIS_high_assurnace_certificatePolicy [] = { 0x2A, 0x85, 0x70, 0x22, 0x01, 0x01}; -//1.2.752.34.1.2 SEIS Project certificate policies SEIS GAK certificatePolicy -static const unsigned char cvOID_SEIS_GAK_certificatePolicy [] = { 0x2A, 0x85, 0x70, 0x22, 0x01, 0x02}; -//1.2.752.34.2 SEIS Project SEIS pe -static const unsigned char cvOID_SEIS_pe [] = { 0x2A, 0x85, 0x70, 0x22, 0x02}; -//1.2.752.34.3 SEIS Project SEIS at -static const unsigned char cvOID_SEIS_at [] = { 0x2A, 0x85, 0x70, 0x22, 0x03}; -//1.2.752.34.3.1 SEIS Project attribute SEIS at-personalIdentifier -static const unsigned char cvOID_SEIS_at_personalIdentifier [] = { 0x2A, 0x85, 0x70, 0x22, 0x03, 0x01}; -//1.2.840.10040.1 ANSI X9.57 module -static const unsigned char cvOID_module [] = { 0x2A, 0x86, 0x48, 0xCE, 0x38, 0x01}; -//1.2.840.10040.1.1 ANSI X9.57 module x9f1-cert-mgmt -static const unsigned char cvOID_x9f1_cert_mgmt [] = { 0x2A, 0x86, 0x48, 0xCE, 0x38, 0x01, 0x01}; -//1.2.840.10040.2 ANSI X9.57 holdinstruction -static const unsigned char cvOID_holdinstruction [] = { 0x2A, 0x86, 0x48, 0xCE, 0x38, 0x02}; -//1.2.840.10040.2.1 ANSI X9.57 hold instruction holdinstruction-none -static const unsigned char cvOID_holdinstruction_none [] = { 0x2A, 0x86, 0x48, 0xCE, 0x38, 0x02, 0x01}; -//1.2.840.10040.2.2 ANSI X9.57 hold instruction callissuer -static const unsigned char cvOID_callissuer [] = { 0x2A, 0x86, 0x48, 0xCE, 0x38, 0x02, 0x02}; -//1.2.840.10040.2.3 ANSI X9.57 hold instruction reject -static const unsigned char cvOID_reject [] = { 0x2A, 0x86, 0x48, 0xCE, 0x38, 0x02, 0x03}; -//1.2.840.10040.2.4 ANSI X9.57 hold instruction pickupToken -static const unsigned char cvOID_pickupToken [] = { 0x2A, 0x86, 0x48, 0xCE, 0x38, 0x02, 0x04}; -//1.2.840.10040.3 ANSI X9.57 attribute -static const unsigned char cvOID_attribute [] = { 0x2A, 0x86, 0x48, 0xCE, 0x38, 0x03}; -//1.2.840.10040.3.1 ANSI X9.57 attribute countersignature -static const unsigned char cvOID_countersignature [] = { 0x2A, 0x86, 0x48, 0xCE, 0x38, 0x03, 0x01}; -//1.2.840.10040.3.2 ANSI X9.57 attribute attribute-cert -static const unsigned char cvOID_attribute_cert [] = { 0x2A, 0x86, 0x48, 0xCE, 0x38, 0x03, 0x02}; -//1.2.840.10040.4 ANSI X9.57 algorithm -static const unsigned char cvOID_algorithm [] = { 0x2A, 0x86, 0x48, 0xCE, 0x38, 0x04}; -//1.2.840.10040.4.1 ANSI X9.57 algorithm dsa -static const unsigned char cvOID_dsa [] = { 0x2A, 0x86, 0x48, 0xCE, 0x38, 0x04, 0x01}; -//1.2.840.10040.4.2 ANSI X9.57 algorithm dsa-match -static const unsigned char cvOID_dsa_match [] = { 0x2A, 0x86, 0x48, 0xCE, 0x38, 0x04, 0x02}; -//1.2.840.10040.4.3 ANSI X9.57 algorithm dsaWithSha1 -static const unsigned char cvOID_dsaWithSha1 [] = { 0x2A, 0x86, 0x48, 0xCE, 0x38, 0x04, 0x03}; -//1.2.840.10045.1 ANSI X9.62. This OID is also assigned as ecdsa-with-SHA1 fieldType -static const unsigned char cvOID_fieldType [] = { 0x2A, 0x86, 0x48, 0xCE, 0x3D, 0x01}; -//1.2.840.10045.1.1 ANSI X9.62 field type prime-field -static const unsigned char cvOID_prime_field [] = { 0x2A, 0x86, 0x48, 0xCE, 0x3D, 0x01, 0x01}; -//1.2.840.10045.1.2 ANSI X9.62 field type characteristic-two-field -static const unsigned char cvOID_characteristic_two_field [] = { 0x2A, 0x86, 0x48, 0xCE, 0x3D, 0x01, 0x02}; -//1.2.840.10045.1.2.3 ANSI X9.62 field type characteristic-two-basis -static const unsigned char cvOID_characteristic_two_basis [] = { 0x2A, 0x86, 0x48, 0xCE, 0x3D, 0x01, 0x02, 0x03}; -//1.2.840.10045.1.2.3.1 ANSI X9.62 field basis onBasis -static const unsigned char cvOID_onBasis [] = { 0x2A, 0x86, 0x48, 0xCE, 0x3D, 0x01, 0x02, 0x03, 0x01}; -//1.2.840.10045.1.2.3.2 ANSI X9.62 field basis tpBasis -static const unsigned char cvOID_tpBasis [] = { 0x2A, 0x86, 0x48, 0xCE, 0x3D, 0x01, 0x02, 0x03, 0x02}; -//1.2.840.10045.1.2.3.3 ANSI X9.62 field basis ppBasis -static const unsigned char cvOID_ppBasis [] = { 0x2A, 0x86, 0x48, 0xCE, 0x3D, 0x01, 0x02, 0x03, 0x03}; -//1.2.840.10045.2 ANSI X9.62 publicKeyType -static const unsigned char cvOID_publicKeyType [] = { 0x2A, 0x86, 0x48, 0xCE, 0x3D, 0x02}; -//1.2.840.10045.2.1 ANSI X9.62 public key type ecPublicKey -static const unsigned char cvOID_ecPublicKey [] = { 0x2A, 0x86, 0x48, 0xCE, 0x3D, 0x02, 0x01}; -//1.2.840.10046.1 ANSI X9.42 fieldType -static const unsigned char cvOID_fieldType42 [] = { 0x2A, 0x86, 0x48, 0xCE, 0x3E, 0x01}; -//1.2.840.10046.1.1 ANSI X9.42 field type gf-prime -static const unsigned char cvOID_gf_prime [] = { 0x2A, 0x86, 0x48, 0xCE, 0x3E, 0x01, 0x01}; -//1.2.840.10046.2 ANSI X9.42 numberType -static const unsigned char cvOID_numberType [] = { 0x2A, 0x86, 0x48, 0xCE, 0x3E, 0x02}; -//1.2.840.10046.2.1 ANSI X9.42 number type dhPublicKey -static const unsigned char cvOID_dhPublicKey [] = { 0x2A, 0x86, 0x48, 0xCE, 0x3E, 0x02, 0x01}; -//1.2.840.10046.3 ANSI X9.42 scheme -static const unsigned char cvOID_scheme [] = { 0x2A, 0x86, 0x48, 0xCE, 0x3E, 0x03}; -//1.2.840.10046.3.1 ANSI X9.42 scheme dhStatic -static const unsigned char cvOID_dhStatic [] = { 0x2A, 0x86, 0x48, 0xCE, 0x3E, 0x03, 0x01}; -//1.2.840.10046.3.2 ANSI X9.42 scheme dhEphem -static const unsigned char cvOID_dhEphem [] = { 0x2A, 0x86, 0x48, 0xCE, 0x3E, 0x03, 0x02}; -//1.2.840.10046.3.3 ANSI X9.42 scheme dhHybrid1 -static const unsigned char cvOID_dhHybrid1 [] = { 0x2A, 0x86, 0x48, 0xCE, 0x3E, 0x03, 0x03}; -//1.2.840.10046.3.4 ANSI X9.42 scheme dhHybrid2 -static const unsigned char cvOID_dhHybrid2 [] = { 0x2A, 0x86, 0x48, 0xCE, 0x3E, 0x03, 0x04}; -//1.2.840.10046.3.5 ANSI X9.42 scheme mqv2 -static const unsigned char cvOID_mqv2 [] = { 0x2A, 0x86, 0x48, 0xCE, 0x3E, 0x03, 0x05}; -//1.2.840.10046.3.6 ANSI X9.42 scheme mqv1 -static const unsigned char cvOID_mqv1 [] = { 0x2A, 0x86, 0x48, 0xCE, 0x3E, 0x03, 0x06}; -//1.2.840.113533.7.65.0 Nortel Secure Networks ce (1 2 840 113533 7 65) entrustVersInfo -static const unsigned char cvOID_entrustVersInfo [] = { 0x2A, 0x86, 0x48, 0x86, 0xF6, 0x7D, 0x07, 0x41, 0x00}; -//1.2.840.113533.7.66.3 Nortel Secure Networks alg (1 2 840 113533 7 66) cast3CBC -static const unsigned char cvOID_cast3CBC [] = { 0x2A, 0x86, 0x48, 0x86, 0xF6, 0x7D, 0x07, 0x42, 0x03}; -//1.2.840.113533.7.66.10 Nortel Secure Networks alg (1 2 840 113533 7 66) cast5CBC -static const unsigned char cvOID_cast5CBC [] = { 0x2A, 0x86, 0x48, 0x86, 0xF6, 0x7D, 0x07, 0x42, 0x0A}; -//1.2.840.113533.7.66.11 Nortel Secure Networks alg (1 2 840 113533 7 66) cast5MAC -static const unsigned char cvOID_cast5MAC [] = { 0x2A, 0x86, 0x48, 0x86, 0xF6, 0x7D, 0x07, 0x42, 0x0B}; -//1.2.840.113533.7.66.12 Nortel Secure Networks alg (1 2 840 113533 7 66) pbeWithMD5AndCAST5-CBC -static const unsigned char cvOID_pbeWithMD5AndCAST5_CBC [] = { 0x2A, 0x86, 0x48, 0x86, 0xF6, 0x7D, 0x07, 0x42, 0x0C}; -//1.2.840.113533.7.66.13 Nortel Secure Networks alg (1 2 840 113533 7 66) passwordBasedMac -static const unsigned char cvOID_passwordBasedMac [] = { 0x2A, 0x86, 0x48, 0x86, 0xF6, 0x7D, 0x07, 0x42, 0x0D}; -//1.2.840.113 -static const unsigned char cvOID_entrustUser [] = { 0x2A, 0x86, 0x48, 0x86, 0xF6, 0x7D, 0x07, 0x43, 0x0C}; -//1.2.840.113533.7.68.0 Nortel Secure Networks at (1 2 840 113533 7 68) entrustCAInfo -static const unsigned char cvOID_entrustCAInfo [] = { 0x2A, 0x86, 0x48, 0x86, 0xF6, 0x7D, 0x07, 0x44, 0x00}; -//1.2.840.113533.7.68.10 Nortel Secure Networks at (1 2 840 113533 7 68) attributeCertificate -static const unsigned char cvOID_attributeCertificate [] = { 0x2A, 0x86, 0x48, 0x86, 0xF6, 0x7D, 0x07, 0x44, 0x0A}; -//1.2.840.113549.1.1.1 PKCS #1 rsaEncryption -static const unsigned char cvOID_rsaEncryption [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x01, 0x01}; -//1.2.840.113549.1.1.2 PKCS #1 md2withRSAEncryption -static const unsigned char cvOID_md2withRSAEncryption [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x01, 0x02}; -//1.2.840.113549.1.1.3 PKCS #1 md4withRSAEncryption -static const unsigned char cvOID_md4withRSAEncryption [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x01, 0x03}; -//1.2.840.113549.1.1.4 PKCS #1 md5withRSAEncryption -static const unsigned char cvOID_md5withRSAEncryption [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x01, 0x04}; -//1.2.840.113549.1.1.5 PKCS #1 sha1withRSAEncryption -static const unsigned char cvOID_sha1withRSAEncryption [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x01, 0x05}; -//1.2.840.113549.1.1.6 PKCS #1. This OID may also be assigned as ripemd160WithRSAEncryption rsaOAEPEncryptionSET -static const unsigned char cvOID_rsaOAEPEncryptionSET [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x01, 0x06}; -//1.2.840.113549.1.1.8 PKCS #1. id-mgf1 (0x2A864886F70D010108) -static const unsigned char cvOID_mgf1 [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x01, 0x08}; -//1.2.840.113549.1.1.10 PKCS #1. id-RSASSA-PSS (0x2A864886F70D01010A) -static const unsigned char cvOID_rsaSSA_PSS [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x01, 0x0A}; -//1.2.840.113549.1.2 Obsolete BSAFE OID bsafeRsaEncr -static const unsigned char cvOID_bsafeRsaEncr [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x01}; -//1.2.840.113549.1.3.1 PKCS #3 dhKeyAgreement -static const unsigned char cvOID_dhKeyAgreement [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x03, 0x01}; -//1.2.840.113549.1.5.1 PKCS #5 pbeWithMD2AndDES-CBC -static const unsigned char cvOID_pbeWithMD2AndDES_CBC [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x05, 0x01}; -//1.2.840.113549.1.5.3 PKCS #5 pbeWithMD5AndDES-CBC -static const unsigned char cvOID_pbeWithMD5AndDES_CBC [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x05, 0x03}; -//1.2.840.113549.1.5.4 PKCS #5 pbeWithMD2AndRC2-CBC -static const unsigned char cvOID_pbeWithMD2AndRC2_CBC [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x05, 0x04}; -//1.2.840.113549.1.5.6 PKCS #5 pbeWithMD5AndRC2-CBC -static const unsigned char cvOID_pbeWithMD5AndRC2_CBC [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x05, 0x06}; -//1.2.840.113549.1.5.9 PKCS #5, used in BSAFE only pbeWithMD5AndXOR -static const unsigned char cvOID_pbeWithMD5AndXOR [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x05, 0x09}; -//1.2.840.113549.1.5.10 PKCS #5 pbeWithSHAAndDES-CBC -static const unsigned char cvOID_pbeWithSHAAndDES_CBC [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x05, 0x0A}; -//1.2.840.113549.1.5.12 PKCS #5 v2.0 id-PBKDF2 -static const unsigned char cvOID_id_PBKDF2 [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x05, 0x0C}; -//1.2.840.113549.1.5.13 PKCS #5 v2.0 id-PBES2 -static const unsigned char cvOID_id_PBES2 [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x05, 0x0D}; -//1.2.840.113549.1.5.14 PKCS #5 v2.0 id-PBMAC1 -static const unsigned char cvOID_id_PBMAC1 [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x05, 0x0E}; -//1.2.840.113549.1.7.1 PKCS #7 data -static const unsigned char cvOID_data [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x07, 0x01}; -//1.2.840.113549.1.7.2 PKCS #7 signedData -static const unsigned char cvOID_signedData [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x07, 0x02}; -//1.2.840.113549.1.7.3 PKCS #7 envelopedData -static const unsigned char cvOID_envelopedData [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x07, 0x03}; -//1.2.840.113549.1.7.4 PKCS #7 signedAndEnvelopedData -static const unsigned char cvOID_signedAndEnvelopedData [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x07, 0x04}; -//1.2.840.113549.1.7.5 PKCS #7 digestedData -static const unsigned char cvOID_digestedData [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x07, 0x05}; -//1.2.840.113549.1.7.6 PKCS #7 encryptedData -static const unsigned char cvOID_encryptedData [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x07, 0x06}; -//1.2.840.113549.1.7.7 PKCS #7 experimental dataWithAttributes -static const unsigned char cvOID_dataWithAttributes [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x07, 0x07}; -//1.2.840.113549.1.7.8 PKCS #7 experimental encryptedPrivateKeyInfo -static const unsigned char cvOID_encryptedPrivateKeyInfo [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x07, 0x08}; -//1.2.840.113549.1.9.1 PKCS #9 (1 2 840 113549 1 9). Deprecated, use an altName extension instead emailAddress -static const unsigned char cvOID_emailAddress_PKCS9 [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x09, 0x01}; -//1.2.840.113549.1.9.2 PKCS #9 (1 2 840 113549 1 9) unstructuredName -static const unsigned char cvOID_unstructuredName [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x09, 0x02}; -//1.2.840.113549.1.9.3 PKCS #9 (1 2 840 113549 1 9) contentType -static const unsigned char cvOID_contentType [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x09, 0x03}; -//1.2.840.113549.1.9.4 PKCS #9 (1 2 840 113549 1 9) messageDigest -static const unsigned char cvOID_messageDigest [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x09, 0x04}; -//1.2.840.113549.1.9.5 PKCS #9 (1 2 840 113549 1 9) signingTime -static const unsigned char cvOID_signingTime [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x09, 0x05}; -//1.2.840.113549.1.9.6 PKCS #9 (1 2 840 113549 1 9) countersignature -static const unsigned char cvOID_countersignature_PKCS9 [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x09, 0x06}; -//1.2.840.113549.1.9.7 PKCS #9 (1 2 840 113549 1 9) challengePassword -static const unsigned char cvOID_challengePassword [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x09, 0x07}; -//1.2.840.113549.1.9.8 PKCS #9 (1 2 840 113549 1 9) unstructuredAddress -static const unsigned char cvOID_unstructuredAddress [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x09, 0x08}; -//1.2.840.113549.1.9.9 PKCS #9 (1 2 840 113549 1 9) extendedCertificateAttributes -static const unsigned char cvOID_extendedCertificateAttributes [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x09, 0x09}; -//1.2.840.113549.1.9.10 PKCS #9 (1 2 840 113549 1 9) experimental issuerAndSerialNumber -static const unsigned char cvOID_issuerAndSerialNumber [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x09, 0x0A}; -//1.2.840.113549.1.9.11 PKCS #9 (1 2 840 113549 1 9) experimental passwordCheck -static const unsigned char cvOID_passwordCheck [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x09, 0x0B}; -//1.2.840.113549.1.9.12 PKCS #9 (1 2 840 113549 1 9) experimental publicKey -static const unsigned char cvOID_publicKey [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x09, 0x0C}; -//1.2.840.113549.1.9.13 PKCS #9 (1 2 840 113549 1 9) experimental signingDescription -static const unsigned char cvOID_signingDescription [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x09, 0x0D}; -//1.2.840.113549.1.9.14 PKCS #9 (1 2 840 113549 1 9) experimental extensionReq -static const unsigned char cvOID_extensionReq [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x09, 0x0E}; -//1.2.840.113549.1.9.15 PKCS #9 (1 2 840 113549 1 9). This OID was formerly assigned as symmetricCapabilities, then reassigned as SMIMECapabilities, then renamed to the current name sMIMECapabilities -static const unsigned char cvOID_sMIMECapabilities [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x09, 0x0F}; -//1.2.840.113549.1.9.15.1 sMIMECapabilities (1 2 840 113549 1 9 15) preferSignedData -static const unsigned char cvOID_preferSignedData [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x09, 0x0F, 0x01}; -//1.2.840.113549.1.9.15.2 sMIMECapabilities (1 2 840 113549 1 9 15) canNotDecryptAny -static const unsigned char cvOID_canNotDecryptAny [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x09, 0x0F, 0x02}; -//1.2.840.113549.1.9.15.3 sMIMECapabilities (1 2 840 113549 1 9 15). Deprecated, use (1 2 840 113549 1 9 16 2 1) instead receiptRequest -static const unsigned char cvOID_receiptRequest [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x09, 0x0F, 0x03}; -//1.2.840.113549.1.9.15.4 sMIMECapabilities (1 2 840 113549 1 9 15). Deprecated, use (1 2 840 113549 1 9 16 1 1) instead receipt -static const unsigned char cvOID_receipt [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x09, 0x0F, 0x04}; -//1.2.840.113549.1.9.15.5 sMIMECapabilities (1 2 840 113549 1 9 15). Deprecated, use (1 2 840 113549 1 9 16 2 4) instead contentHints -static const unsigned char cvOID_contentHints [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x09, 0x0F, 0x05}; -//1.2.840.113549.1.9.15.6 sMIMECapabilities (1 2 840 113549 1 9 15). Deprecated, use (1 2 840 113549 1 9 16 2 3) instead mlExpansionHistory -static const unsigned char cvOID_mlExpansionHistory [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x09, 0x0F, 0x06}; -//1.2.840.113549.1.9.16 PKCS #9 (1 2 840 113549 1 9) id-sMIME -static const unsigned char cvOID_id_sMIME [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x09, 0x10}; -//1.2.840.113549.1.9.16.0 id-sMIME (1 2 840 113549 1 9 16) id-mod -static const unsigned char cvOID_id_mod [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x09, 0x10, 0x00}; -//1.2.840.113549.1.9.16.0.1 S/MIME Modules (1 2 840 113549 1 9 16 0) id-mod-cms -static const unsigned char cvOID_id_mod_cms [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x09, 0x10, 0x00, 0x01}; -//1.2.840.113549.1.9.16.0.2 S/MIME Modules (1 2 840 113549 1 9 16 0) id-mod-ess -static const unsigned char cvOID_id_mod_ess [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x09, 0x10, 0x00, 0x02}; -//1.2.840.113549.1.9.16.1 id-sMIME (1 2 840 113549 1 9 16) id-ct -static const unsigned char cvOID_id_ct [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x09, 0x10, 0x01}; -//1.2.840.113549.1.9.16.1.1 S/MIME Content Types (1 2 840 113549 1 9 16 1) id-ct-receipt -static const unsigned char cvOID_id_ct_receipt [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x09, 0x10, 0x01, 0x01}; -//1.2.840.113549.1.9.16.1.2 S/MIME Content Types (1 2 840 113549 1 9 16 1) id-ct-authData -static const unsigned char cvOID_id_ct_authData [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x09, 0x10, 0x01, 0x02}; -//1.2.840.113549.1.9.16.1.3 S/MIME Content Types (1 2 840 113549 1 9 16 1) id-ct-compressedData -static const unsigned char cvOID_id_ct_compressedData [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x09, 0x10, 0x01, 0x03}; -//1.2.840.113549.1.9.16.2 id-sMIME (1 2 840 113549 1 9 16) id-aa -static const unsigned char cvOID_id_aa [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x09, 0x10, 0x02}; -//1.2.840.113549.1.9.16.2.1 S/MIME Authenticated Attributes (1 2 840 113549 1 9 16 2) id-aa-receiptRequest -static const unsigned char cvOID_id_aa_receiptRequest [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x09, 0x10, 0x02, 0x01}; -//1.2.840.113549.1.9.16.2.2 S/MIME Authenticated Attributes (1 2 840 113549 1 9 16 2) id-aa-securityLabel -static const unsigned char cvOID_id_aa_securityLabel [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x09, 0x10, 0x02, 0x02}; -//1.2.840.113549.1.9.16.2.3 S/MIME Authenticated Attributes (1 2 840 113549 1 9 16 2) id-aa-mlExpandHistory -static const unsigned char cvOID_id_aa_mlExpandHistory [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x09, 0x10, 0x02, 0x03}; -//1.2.840.113549.1.9.16.2.4 S/MIME Authenticated Attributes (1 2 840 113549 1 9 16 2) id-aa-contentHint -static const unsigned char cvOID_id_aa_contentHint [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x09, 0x10, 0x02, 0x04}; -//1.2.840.113549.1.9.16.2.5 S/MIME Authenticated Attributes (1 2 840 113549 1 9 16 2) id-aa-msgSigDigest -static const unsigned char cvOID_id_aa_msgSigDigest [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x09, 0x10, 0x02, 0x05}; -//1.2.840.113549.1.9.16.2.7 S/MIME Authenticated Attributes (1 2 840 113549 1 9 16 2) id-aa-contentIdentifier -static const unsigned char cvOID_id_aa_contentIdentifier [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x09, 0x10, 0x02, 0x07}; -//1.2.840.113549.1.9.16.2.8 S/MIME Authenticated Attributes (1 2 840 113549 1 9 16 2) id-aa-macValue -static const unsigned char cvOID_id_aa_macValue [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x09, 0x10, 0x02, 0x08}; -//1.2.840.113549.1.9.16.2.9 S/MIME Authenticated Attributes (1 2 840 113549 1 9 16 2) id-aa-equivalentLabels -static const unsigned char cvOID_id_aa_equivalentLabels [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x09, 0x10, 0x02, 0x09}; -//1.2.840.113549.1.9.16.2.10 S/MIME Authenticated Attributes (1 2 840 113549 1 9 16 2) id-aa-contentReference -static const unsigned char cvOID_id_aa_contentReference [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x09, 0x10, 0x02, 0x0A}; -//1.2.840.113549.1.9.16.3.5 S/MIME Algorithms (1 2 840 113549 1 9 16 3) id-alg-ESDH -static const unsigned char cvOID_id_alg_ESDH [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x09, 0x10, 0x03, 0x05}; -//1.2.840.113549.1.9.16.3.6 S/MIME Algorithms (1 2 840 113549 1 9 16 3) id-alg-CMS3DESwrap -static const unsigned char cvOID_id_alg_CMS3DESwrap [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x09, 0x10, 0x03, 0x06}; -//1.2.840.113549.1.9.16.3.7 S/MIME Algorithms (1 2 840 113549 1 9 16 3) id-alg-CMSRC2wrap -static const unsigned char cvOID_id_alg_CMSRC2wrap [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x09, 0x10, 0x03, 0x07}; -//1.2.840.113549.1.9.16.3.8 S/MIME Algorithms (1 2 840 113549 1 9 16 3) id-alg-zlib -static const unsigned char cvOID_id_alg_zlib [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x09, 0x10, 0x03, 0x08}; -//1.2.840.113549.1.9.20 PKCS #9 (1 2 840 113549 1 9) friendlyName (for PKCS #12) -static const unsigned char cvOID_friendlyName [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x09, 0x14}; -//1.2.840.113549.1.9.21 PKCS #9 (1 2 840 113549 1 9) localKeyID (for PKCS #12) -static const unsigned char cvOID_localKeyID[] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x09, 0x15}; -//1.2.840.113549.1.9.22 PKCS #9 (1 2 840 113549 1 9) certTypes (for PKCS #12) -static const unsigned char cvOID_certTypes[] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x09, 0x16}; -//1.2.840.113549.1.9.22.1 PKCS #9 (1 2 840 113549 1 9) x509Certificate (for PKCS #12) -static const unsigned char cvOID_x509Certificate[] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x09, 0x16, 0x01}; -//1.2.840.113549.1.9.22.2 PKCS #9 (1 2 840 113549 1 9) sdsiCertificate (for PKCS #12) -static const unsigned char cvOID_sdsiCertificate [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x09, 0x16, 0x02}; -//1.2.840.113549.1.9.23 PKCS #9 (1 2 840 113549 1 9) crlTypes (for PKCS #12) -static const unsigned char cvOID_crlTypes[] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x09, 0x17}; -//1.2.840.113549.1.9.23.1 PKCS #9 (1 2 840 113549 1 9) x509Crl (for PKCS #12) -static const unsigned char cvOID_x509Crl[] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x09, 0x17, 0x01}; -//1.2.840.113549.1.12.1 This OID was formerly assigned as PKCS #12 modeID pkcs-12-PbeIds -static const unsigned char cvOID_pkcs_12_PbeIds [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x0C, 0x01}; -//1.2.840.113549.1.12.1.1 PKCS #12 PbeIds (1 2 840 113549 1 12 1). This OID was formerly assigned as pkcs-12-OfflineTransportMode pbeWithSHAAnd128BitRC4 -static const unsigned char cvOID_pbeWithSHAAnd128BitRC4 [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x0C, 0x01, 0x01}; -//1.2.840.113549.1.12.1.2 PKCS #12 PbeIds (1 2 840 113549 1 12 2). This OID was formerly assigned as pkcs-12-OnlineTransportMode pbeWithSHAAnd40BitRC4 -static const unsigned char cvOID_pbeWithSHAAnd40BitRC4 [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x0C, 0x01, 0x02}; -//1.2.840.113549.1.12.1.3 PKCS #12 PbeIds (1 2 840 113549 1 12 3) pbeWithSHAAnd3-KeyTripleDES-CBC -static const unsigned char cvOID_pbeWithSHAAnd3_KeyTripleDES_CBC [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x0C, 0x01, 0x03}; -//1.2.840.113549.1.12.1.4 PKCS #12 PbeIds (1 2 840 113549 1 12 3) pbeWithSHAAnd2-KeyTripleDES-CBC -static const unsigned char cvOID_pbeWithSHAAnd2_KeyTripleDES_CBC [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x0C, 0x01, 0x04}; -//1.2.840.113549.1.12.1.5 PKCS #12 PbeIds (1 2 840 113549 1 12 3) pbeWithSHAAnd128BitRC2-CBC -static const unsigned char cvOID_pbeWithSHAAnd128BitRC2_CBC [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x0C, 0x01, 0x05}; -//1.2.840.113549.1.12.1.6 PKCS #12 PbeIds (1 2 840 113549 1 12 3) pbeWithSHAAnd40BitRC2-CBC -static const unsigned char cvOID_pbeWithSHAAnd40BitRC2_CBC [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x0C, 0x01, 0x06}; -//1.2.840.113549.1.12.2 Deprecated pkcs-12-ESPVKID -static const unsigned char cvOID_pkcs_12_ESPVKID [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x0C, 0x02}; -//1.2.840.113549.1.12.2.1 PKCS #12 ESPVKID (1 2 840 113549 1 12 2). Deprecated, use (1 2 840 113549 1 12 3 5) instead pkcs-12-PKCS8KeyShrouding -static const unsigned char cvOID_pkcs_12_PKCS8KeyShrouding [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x0C, 0x02, 0x01}; -//1.2.840.113549.1.12.3.1 PKCS #12 BagIds (1 2 840 113549 1 12 3) pkcs-12-keyBagId -static const unsigned char cvOID_pkcs_12_keyBagId [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x0C, 0x03, 0x01}; -//1.2.840.113549.1.12.3.2 PKCS #12 BagIds (1 2 840 113549 1 12 3) pkcs-12-certAndCRLBagId -static const unsigned char cvOID_pkcs_12_certAndCRLBagId [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x0C, 0x03, 0x02}; -//1.2.840.113549.1.12.3.3 PKCS #12 BagIds (1 2 840 113549 1 12 3) pkcs-12-secretBagId -static const unsigned char cvOID_pkcs_12_secretBagId [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x0C, 0x03, 0x03}; -//1.2.840.113549.1.12.3.4 PKCS #12 BagIds (1 2 840 113549 1 12 3) pkcs-12-safeContentsId -static const unsigned char cvOID_pkcs_12_safeContentsId [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x0C, 0x03, 0x04}; -//1.2.840.113549.1.12.3.5 PKCS #12 BagIds (1 2 840 113549 1 12 3) pkcs-12-pkcs-8ShroudedKeyBagId -static const unsigned char cvOID_pkcs_12_pkcs_8ShroudedKeyBagId [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x0C, 0x03, 0x05}; -//1.2.840.113549.1.12.4 Deprecated pkcs-12-CertBagID -static const unsigned char cvOID_pkcs_12_CertBagID [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x0C, 0x04}; -//1.2.840.113549.1.12.4.1 PKCS #12 CertBagID (1 2 840 113549 1 12 4). This OID was formerly assigned as pkcs-12-X509CertCRLBag pkcs-12-X509CertCRLBagID -static const unsigned char cvOID_pkcs_12_X509CertCRLBagID [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x0C, 0x04, 0x01}; -//1.2.840.113549.1.12.4.2 PKCS #12 CertBagID (1 2 840 113549 1 12 4). This OID was formerly assigned as pkcs-12-SDSICertBag pkcs-12-SDSICertBagID -static const unsigned char cvOID_pkcs_12_SDSICertBagID [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x0C, 0x04, 0x02}; -//1.2.840.113549.1.12.5.1 PKCS #12 OID (1 2 840 113549 1 12 5). Deprecated, use the partially compatible (1 2 840 113549 1 12 1) OIDs instead pkcs-12-PBEID -static const unsigned char cvOID_pkcs_12_PBEID [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x0C, 0x05, 0x01}; -//1.2.840.113549.1.12.5.1.1 PKCS #12 OID PBEID (1 2 840 113549 1 12 5 1). Deprecated, use (1 2 840 113549 1 12 1 1) instead pkcs-12-PBEWithSha1And128BitRC4 -static const unsigned char cvOID_pkcs_12_PBEWithSha1And128BitRC4 [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x0C, 0x05, 0x01, 0x01}; -//1.2.840.113549.1.12.5.1.2 PKCS #12 OID PBEID (1 2 840 113549 1 12 5 1). Deprecated, use (1 2 840 113549 1 12 1 2) instead pkcs-12-PBEWithSha1And40BitRC4 -static const unsigned char cvOID_pkcs_12_PBEWithSha1And40BitRC4 [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x0C, 0x05, 0x01, 0x02}; -//1.2.840.113549.1.12.5.1.3 PKCS #12 OID PBEID (1 2 840 113549 1 12 5 1). Deprecated, use the incompatible but similar (1 2 840 113549 1 12 1 3) or (1 2 840 113549 1 12 1 4) instead pkcs-12-PBEWithSha1AndTripleDESCBC -static const unsigned char cvOID_pkcs_12_PBEWithSha1AndTripleDESCBC [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x0C, 0x05, 0x01, 0x03}; -//1.2.840.113549.1.12.5.1.4 PKCS #12 OID PBEID (1 2 840 113549 1 12 5 1). Deprecated, use (1 2 840 113549 1 12 1 5) instead pkcs-12-PBEWithSha1And128BitRC2CBC -static const unsigned char cvOID_pkcs_12_PBEWithSha1And128BitRC2CBC [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x0C, 0x05, 0x01, 0x04}; -//1.2.840.113549.1.12.5.1.5 PKCS #12 OID PBEID (1 2 840 113549 1 12 5 1). Deprecated, use (1 2 840 113549 1 12 1 6) instead pkcs-12-PBEWithSha1And40BitRC2CBC -static const unsigned char cvOID_pkcs_12_PBEWithSha1And40BitRC2CBC [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x0C, 0x05, 0x01, 0x05}; -//1.2.840.113549.1.12.5.1.6 PKCS #12 OID PBEID (1 2 840 113549 1 12 5 1). Deprecated, use the incompatible but similar (1 2 840 113549 1 12 1 1) or (1 2 840 113549 1 12 1 2) instead pkcs-12-PBEWithSha1AndRC4 -static const unsigned char cvOID_pkcs_12_PBEWithSha1AndRC4 [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x0C, 0x05, 0x01, 0x06}; -//1.2.840.113549.1.12.5.1.7 PKCS #12 OID PBEID (1 2 840 113549 1 12 5 1). Deprecated, use the incompatible but similar (1 2 840 113549 1 12 1 5) or (1 2 840 113549 1 12 1 6) instead pkcs-12-PBEWithSha1AndRC2CBC -static const unsigned char cvOID_pkcs_12_PBEWithSha1AndRC2CBC [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x0C, 0x05, 0x01, 0x07}; -//1.2.840.113549.1.12.5.2.1 PKCS #12 OID EnvelopingID (1 2 840 113549 1 12 5 2). Deprecated, use the conventional PKCS #1 OIDs instead pkcs-12-RSAEncryptionWith128BitRC4 -static const unsigned char cvOID_pkcs_12_RSAEncryptionWith128BitRC4 [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x0C, 0x05, 0x02, 0x01}; -//1.2.840.113549.1.12.5.2.2 PKCS #12 OID EnvelopingID (1 2 840 113549 1 12 5 2). Deprecated, use the conventional PKCS #1 OIDs instead pkcs-12-RSAEncryptionWith40BitRC4 -static const unsigned char cvOID_pkcs_12_RSAEncryptionWith40BitRC4 [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x0C, 0x05, 0x02, 0x02}; -//1.2.840.113549.1.12.5.2.3 PKCS #12 OID EnvelopingID (1 2 840 113549 1 12 5 2). Deprecated, use the conventional PKCS #1 OIDs instead pkcs-12-RSAEncryptionWithTripleDES -static const unsigned char cvOID_pkcs_12_RSAEncryptionWithTripleDES [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x0C, 0x05, 0x02, 0x03}; -//1.2.840.113549.1.12.5.3.1 PKCS #12 OID SignatureID (1 2 840 113549 1 12 5 3). Deprecated, use the conventional PKCS #1 OIDs instead pkcs-12-RSASignatureWithSHA1Digest -static const unsigned char cvOID_pkcs_12_RSASignatureWithSHA1Digest [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x0C, 0x05, 0x03, 0x01}; -//1.2.840.113549.1.12.10.1.1 PKCS #12 BagIds (1 2 840 113549 1 12 10 1) pkcs-12-keyBag -static const unsigned char cvOID_pkcs_12_keyBag [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x0C, 0x0A, 0x01, 0x01}; -//1.2.840.113549.1.12.10.1.2 PKCS #12 BagIds (1 2 840 113549 1 12 10 1) pkcs-12-pkcs-8ShroudedKeyBag -static const unsigned char cvOID_pkcs_12_pkcs_8ShroudedKeyBag [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x0C, 0x0A, 0x01, 0x02}; -//1.2.840.113549.1.12.10.1.3 PKCS #12 BagIds (1 2 840 113549 1 12 10 1) pkcs-12-certBag -static const unsigned char cvOID_pkcs_12_certBag [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x0C, 0x0A, 0x01, 0x03}; -//1.2.840.113549.1.12.10.1.4 PKCS #12 BagIds (1 2 840 113549 1 12 10 1) pkcs-12-crlBag -static const unsigned char cvOID_pkcs_12_crlBag [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x0C, 0x0A, 0x01, 0x04}; -//1.2.840.113549.1.12.10.1.5 PKCS #12 BagIds (1 2 840 113549 1 12 10 1) pkcs-12-secretBag -static const unsigned char cvOID_pkcs_12_secretBag [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x0C, 0x0A, 0x01, 0x05}; -//1.2.840.113549.1.12.10.1.6 PKCS #12 BagIds (1 2 840 113549 1 12 10 1) pkcs-12-safeContentsBag -static const unsigned char cvOID_pkcs_12_safeContentsBag [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x0C, 0x0A, 0x01, 0x06}; -//1.2.840.113549.2.2 RSADSI digestAlgorithm (1 2 840 113549 2) md2 -static const unsigned char cvOID_md2 [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x02, 0x02}; -//1.2.840.113549.2.4 RSADSI digestAlgorithm (1 2 840 113549 2) md4 -static const unsigned char cvOID_md4 [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x02, 0x04}; -//1.2.840.113549.2.5 RSADSI digestAlgorithm (1 2 840 113549 2) md5 -static const unsigned char cvOID_md5 [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x02, 0x05}; -//1.2.840.113549.3.2 RSADSI encryptionAlgorithm (1 2 840 113549 3) rc2CBC -static const unsigned char cvOID_rc2CBC [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x03, 0x02}; -//1.2.840.113549.3.3 RSADSI encryptionAlgorithm (1 2 840 113549 3) rc2ECB -static const unsigned char cvOID_rc2ECB [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x03, 0x03}; -//1.2.840.113549.3.4 RSADSI encryptionAlgorithm (1 2 840 113549 3) rc4 -static const unsigned char cvOID_rc4 [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x03, 0x04}; -//1.2.840.113549.3.5 RSADSI encryptionAlgorithm (1 2 840 113549 3) rc4WithMAC -static const unsigned char cvOID_rc4WithMAC [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x03, 0x05}; -//1.2.840.113549.3.6 RSADSI encryptionAlgorithm (1 2 840 113549 3) desx-CBC -static const unsigned char cvOID_desx_CBC [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x03, 0x06}; -//1.2.840.113549.3.7 RSADSI encryptionAlgorithm (1 2 840 113549 3) des-EDE3-CBC -static const unsigned char cvOID_des_EDE3_CBC [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x03, 0x07}; -//1.2.840.113549.3.8 RSADSI encryptionAlgorithm (1 2 840 113549 3) rc5CBC -static const unsigned char cvOID_rc5CBC [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x03, 0x08}; -//1.2.840.113549.3.9 RSADSI encryptionAlgorithm (1 2 840 113549 3) rc5-CBCPad -static const unsigned char cvOID_rc5_CBCPad [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x03, 0x09}; -//1.2.840.113549.3.10 RSADSI encryptionAlgorithm (1 2 840 113549 3). Formerly called CDMFCBCPad desCDMF -static const unsigned char cvOID_desCDMF [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x03, 0x0A}; -//1.3.6.1.4.1.188.7.1.1 Ascom Systech ascom -static const unsigned char cvOID_ascom [] = { 0x2B, 0x06, 0x01, 0x04, 0x01, 0x81, 0x3C, 0x07, 0x01, 0x01}; -//1.3.6.1.4.1.188.7.1.1.1 Ascom Systech ideaECB -static const unsigned char cvOID_ideaECB [] = { 0x2B, 0x06, 0x01, 0x04, 0x01, 0x81, 0x3C, 0x07, 0x01, 0x01, 0x01}; -//1.3.6.1.4.1.188.7.1.1.2 Ascom Systech ideaCBC -static const unsigned char cvOID_ideaCBC [] = { 0x2B, 0x06, 0x01, 0x04, 0x01, 0x81, 0x3C, 0x07, 0x01, 0x01, 0x02}; -//1.3.6.1.4.1.188.7.1.1.3 Ascom Systech ideaCFB -static const unsigned char cvOID_ideaCFB [] = { 0x2B, 0x06, 0x01, 0x04, 0x01, 0x81, 0x3C, 0x07, 0x01, 0x01, 0x03}; -//1.3.6.1.4.1.188.7.1.1.4 Ascom Systech ideaOFB -static const unsigned char cvOID_ideaOFB [] = { 0x2B, 0x06, 0x01, 0x04, 0x01, 0x81, 0x3C, 0x07, 0x01, 0x01, 0x04}; -//1.2.840.113556.4.3 Microsoft microsoftExcel -static const unsigned char cvOID_microsoftExcel [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x14, 0x04, 0x03}; -//1.2.840.113556.4.4 Microsoft titledWithOID -static const unsigned char cvOID_titledWithOID [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x14, 0x04, 0x04}; -//1.2.840.113556.4.5 Microsoft microsoftPowerPoint -static const unsigned char cvOID_microsoftPowerPoint [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x14, 0x04, 0x05}; -//1.3.6.1.4.1.311.2.1.4 Microsoft code signing spcIndirectDataContext -static const unsigned char cvOID_spcIndirectDataContext [] = { 0x2B, 0x06, 0x01, 0x04, 0x01, 0x82, 0x37, 0x02, 0x01, 0x04}; -//1.3.6.1.4.1.311.2.1.10 Microsoft code signing. Also known as policyLink spcAgencyInfo -static const unsigned char cvOID_spcAgencyInfo [] = { 0x2B, 0x06, 0x01, 0x04, 0x01, 0x82, 0x37, 0x02, 0x01, 0x0A}; -//1.3.6.1.4.1.311.2.1.11 Microsoft code signing spcStatementType -static const unsigned char cvOID_spcStatementType [] = { 0x2B, 0x06, 0x01, 0x04, 0x01, 0x82, 0x37, 0x02, 0x01, 0x0B}; -//1.3.6.1.4.1.311.2.1.12 Microsoft code signing spcSpOpusInfo -static const unsigned char cvOID_spcSpOpusInfo [] = { 0x2B, 0x06, 0x01, 0x04, 0x01, 0x82, 0x37, 0x02, 0x01, 0x0C}; -//1.3.6.1.4.1.311.2.1.14 Microsoft certReqExtensions -static const unsigned char cvOID_certReqExtensions [] = { 0x2B, 0x06, 0x01, 0x04, 0x01, 0x82, 0x37, 0x02, 0x01, 0x0E}; -//1.3.6.1.4.1.311.2.1.15 Microsoft code signing spcPelmageData -static const unsigned char cvOID_spcPelmageData [] = { 0x2B, 0x06, 0x01, 0x04, 0x01, 0x82, 0x37, 0x02, 0x01, 0x0F}; -//1.3.6.1.4.1.311.2.1.20 Microsoft code signing. Also known as "glue extension" spcLink (type 1) -static const unsigned char cvOID_spcLink_1[] = { 0x2B, 0x06, 0x01, 0x04, 0x01, 0x82, 0x37, 0x02, 0x01, 0x14}; -//1.3.6.1.4.1.311.2.1.21 Microsoft individualCodeSigning -static const unsigned char cvOID_individualCodeSigning [] = { 0x2B, 0x06, 0x01, 0x04, 0x01, 0x82, 0x37, 0x02, 0x01, 0x15}; -//1.3.6.1.4.1.311.2.1.22 Microsoft commercialCodeSigning -static const unsigned char cvOID_commercialCodeSigning [] = { 0x2B, 0x06, 0x01, 0x04, 0x01, 0x82, 0x37, 0x02, 0x01, 0x16}; -//1.3.6.1.4.1.311.2.1.25 Microsoft code signing. Also known as "glue extension" spcLink (type 2) -static const unsigned char cvOID_spcLink_2[] = { 0x2B, 0x06, 0x01, 0x04, 0x01, 0x82, 0x37, 0x02, 0x01, 0x19}; -//1.3.6.1.4.1.311.2.1.26 Microsoft code signing spcMinimalCriteriaInfo -static const unsigned char cvOID_spcMinimalCriteriaInfo [] = { 0x2B, 0x06, 0x01, 0x04, 0x01, 0x82, 0x37, 0x02, 0x01, 0x1A}; -//1.3.6.1.4.1.311.2.1.27 Microsoft code signing spcFinancialCriteriaInfo -static const unsigned char cvOID_spcFinancialCriteriaInfo [] = { 0x2B, 0x06, 0x01, 0x04, 0x01, 0x82, 0x37, 0x02, 0x01, 0x1B}; -//1.3.6.1.4.1.311.2.1.28 Microsoft code signing. Also known as "glue extension" spcLink (type 3) -static const unsigned char cvOID_spcLink_3[] = { 0x2B, 0x06, 0x01, 0x04, 0x01, 0x82, 0x37, 0x02, 0x01, 0x1C}; -//1.3.6.1.4.1.311.3.2.1 Microsoft code signing timestampCountersignature -static const unsigned char cvOID_timestampCountersignature [] = { 0x2B, 0x06, 0x01, 0x04, 0x01, 0x82, 0x37, 0x03, 0x02, 0x01}; -//1.3.6.1.4.1.311.10.1 Microsoft PKCS #7 contentType certTrustList -static const unsigned char cvOID_certTrustList [] = { 0x2B, 0x06, 0x01, 0x04, 0x01, 0x82, 0x37, 0x0A, 0x01}; -//1.3.6.1.4.1.311.10.2 Microsoft nextUpdateLocation -static const unsigned char cvOID_nextUpdateLocation [] = { 0x2B, 0x06, 0x01, 0x04, 0x01, 0x82, 0x37, 0x0A, 0x02}; -//1.3.6.1.4.1.311.10.3.1 Microsoft enhanced key usage certTrustListSigning -static const unsigned char cvOID_certTrustListSigning [] = { 0x2B, 0x06, 0x01, 0x04, 0x01, 0x82, 0x37, 0x0A, 0x03, 0x01}; -//1.3.6.1.4.1.311.10.3.2 Microsoft enhanced key usage timeStampSigning -static const unsigned char cvOID_timeStampSigning [] = { 0x2B, 0x06, 0x01, 0x04, 0x01, 0x82, 0x37, 0x0A, 0x03, 0x02}; -//1.3.6.1.4.1.311.10.3.3 Microsoft enhanced key usage serverGatedCrypto -static const unsigned char cvOID_serverGatedCrypto [] = { 0x2B, 0x06, 0x01, 0x04, 0x01, 0x82, 0x37, 0x0A, 0x03, 0x03}; -//1.3.6.1.4.1.311.10.3.4 Microsoft enhanced key usage encryptedFileSystem -static const unsigned char cvOID_encryptedFileSystem [] = { 0x2B, 0x06, 0x01, 0x04, 0x01, 0x82, 0x37, 0x0A, 0x03, 0x04}; -//1.3.6.1.4.1.311.10.4.1 Microsoft attribute yesnoTrustAttr -static const unsigned char cvOID_yesnoTrustAttr [] = { 0x2B, 0x06, 0x01, 0x04, 0x01, 0x82, 0x37, 0x0A, 0x04, 0x01}; -//1.3.6.1.4.1.311.16.4 Microsoft S/MIME cert attribute microsoftEncryptionCert -static const unsigned char cvOID_microsoftEncryptionCert [] = { 0x2B, 0x06, 0x01, 0x04, 0x01, 0x82, 0x37, 0x10, 0x04}; -//1.3.6.1.4.1.311.20.2.2 Microsoft enhanced key usage smartcardLogon -static const unsigned char cvOID_smartcardLogon [] = { 0x2B, 0x06, 0x01, 0x04, 0x01, 0x82, 0x37, 0x14, 0x02, 0x02}; -//1.3.6.1.4.1.311.21.1 Microsoft attribute cAKeyCertIndexPair -static const unsigned char cvOID_cAKeyCertIndexPair [] = { 0x2B, 0x06, 0x01, 0x04, 0x01, 0x82, 0x37, 0x15, 0x01}; -//1.3.6.1.4.1.311.13.2.2 Microsoft attribute Unknown MS CryptoAPI-related extension -static const unsigned char cvOID_Unknown_MS_CryptoAPI_related_extension [] = { 0x2B, 0x06, 0x01, 0x04, 0x01, 0x82, 0x37, 0x0D, 0x02, 0x02}; -//1.3.6.1.4.1.311.16.4 Microsoft attribute microsoftRecipientInfo -static const unsigned char cvOID_microsoftRecipientInfo [] = { 0x2B, 0x06, 0x01, 0x04, 0x01, 0x82, 0x37, 0x10, 0x04}; -//1.3.6.1.4.1.2428.10.1.1 UNINETT PCA UNINETT policyIdentifier -static const unsigned char cvOID_UNINETT_policyIdentifier [] = { 0x2B, 0x06, 0x01, 0x04, 0x01, 0x92, 0x7C, 0x0A, 0x01, 0x01}; -//1.3.6.1.4.1.2712.10 ICE-TEL CA ICE-TEL policyIdentifier -static const unsigned char cvOID_ICE_TEL_policyIdentifier [] = { 0x2B, 0x06, 0x01, 0x04, 0x01, 0x95, 0x18, 0x0A}; -//1.3.6.1.4.1.2786.1.1.1 ICE-TEL CA policy ICE-TEL Italian policyIdentifier -static const unsigned char cvOID_ICE_TEL_Italian_policyIdentifier [] = { 0x2B, 0x06, 0x01, 0x04, 0x01, 0x95, 0x62, 0x01, 0x01, 0x01}; -//1.3.6.1.4.1.3029.1.1 cryptlib encryption algorithm blowfishECB -static const unsigned char cvOID_blowfishECB [] = { 0x2B, 0x06, 0x01, 0x04, 0x01, 0x97, 0x55, 0x01, 0x01}; -//1.3.6.1.4.1.3029.1.2 cryptlib encr -static const unsigned char cvOID_blowfishCBC [] = { 0x2B, 0x06, 0x01, 0x04, 0x01, 0x97, 0x55, 0x01, 0x02}; -//1.3.6.1.4.1.3029.1.3 cryptlib encryption algorithm blowfishCFB -static const unsigned char cvOID_blowfishCFB [] = { 0x2B, 0x06, 0x01, 0x04, 0x01, 0x97, 0x55, 0x01, 0x03}; -//1.3.6.1.4.1.3029.1.4 cryptlib encryption algorithm blowfishOFB -static const unsigned char cvOID_blowfishOFB [] = { 0x2B, 0x06, 0x01, 0x04, 0x01, 0x97, 0x55, 0x01, 0x04}; -//1.3.6.1.4.1.3029.3.1 cryptlib public-key algorithm elgamal -static const unsigned char cvOID_elgamal [] = { 0x2B, 0x06, 0x01, 0x04, 0x01, 0x97, 0x55, 0x03, 0x01}; -//1.3.6.1.4.1.3029.3.1.1 cryptlib public-key algorithm elgamalWithSHA-1 -static const unsigned char cvOID_elgamalWithSHA_1 [] = { 0x2B, 0x06, 0x01, 0x04, 0x01, 0x97, 0x55, 0x03, 0x01, 0x01}; -//1.3.6.1.4.1.3029.3.1.2 cryptlib public-key algorithm elgamalWithRIPEMD-160 -static const unsigned char cvOID_elgamalWithRIPEMD_160 [] = { 0x2B, 0x06, 0x01, 0x04, 0x01, 0x97, 0x55, 0x03, 0x01, 0x02}; -//1.3.6.1.4.1.3029.32.1 cryptlib cryptlibPrivateKey -static const unsigned char cvOID_cryptlibPrivateKey [] = { 0x2B, 0x06, 0x01, 0x04, 0x01, 0x97, 0x55, 0x20, 0x01}; -//1.3.6.1.4.1.3029.42.11172.1 cryptlib special MPEG-of-cat OID mpeg-1 -static const unsigned char cvOID_mpeg_1 [] = { 0x2B, 0x06, 0x01, 0x04, 0x01, 0x97, 0x55, 0x2A, 0xD7, 0x24, 0x01}; -//1.3.6.1.5.5.7.1 PKIX privateExtension -static const unsigned char cvOID_privateExtension [] = { 0x2B, 0x06, 0x01, 0x05, 0x05, 0x07, 0x01}; -//1.3.6.1.5.5.7.1.1 PKIX private extension authorityInfoAccess -static const unsigned char cvOID_authorityInfoAccess [] = { 0x2B, 0x06, 0x01, 0x05, 0x05, 0x07, 0x01, 0x01}; - -//ame -//1.3.6.1.5.5.7.1.11 PKIX private extension subjectInfoAccess -static const unsigned char cvOID_subjectInfoAccess [] = { 0x2B, 0x06, 0x01, 0x05, 0x05, 0x07, 0x01, 0x0a}; - -//1.3.6.1.5.5.7.2 PKIX policyQualifierIds -static const unsigned char cvOID_policyQualifierIds [] = { 0x2B, 0x06, 0x01, 0x05, 0x05, 0x07, 0x02}; -//1.3.6.1.5.5.7.2.1 PKIX policy qualifier cps -static const unsigned char cvOID_cps [] = { 0x2B, 0x06, 0x01, 0x05, 0x05, 0x07, 0x02, 0x01}; -//1.3.6.1.5.5.7.2.2 PKIX policy qualifier unotice -static const unsigned char cvOID_unotice [] = { 0x2B, 0x06, 0x01, 0x05, 0x05, 0x07, 0x02, 0x02}; -//1.3.6.1.5.5.7.3 PKIX keyPurpose -static const unsigned char cvOID_keyPurpose [] = { 0x2B, 0x06, 0x01, 0x05, 0x05, 0x07, 0x03}; -//1.3.6.1.5.5.7.3.1 PKIX key purpose serverAuth -static const unsigned char cvOID_serverAuth [] = { 0x2B, 0x06, 0x01, 0x05, 0x05, 0x07, 0x03, 0x01}; -//1.3.6.1.5.5.7.3.2 PKIX key purpose clientAuth -static const unsigned char cvOID_clientAuth [] = { 0x2B, 0x06, 0x01, 0x05, 0x05, 0x07, 0x03, 0x02}; -//1.3.6.1.5.5.7.3.3 PKIX key purpose codeSigning -static const unsigned char cvOID_codeSigning [] = { 0x2B, 0x06, 0x01, 0x05, 0x05, 0x07, 0x03, 0x03}; -//1.3.6.1.5.5.7.3.4 PKIX key purpose emailProtection -static const unsigned char cvOID_emailProtection [] = { 0x2B, 0x06, 0x01, 0x05, 0x05, 0x07, 0x03, 0x04}; -//1.3.6.1.5.5.7.3.5 PKIX key purpose ipsecEndSystem -static const unsigned char cvOID_ipsecEndSystem [] = { 0x2B, 0x06, 0x01, 0x05, 0x05, 0x07, 0x03, 0x05}; -//1.3.6.1.5.5.7.3.6 PKIX key purpose ipsecTunnel -static const unsigned char cvOID_ipsecTunnel [] = { 0x2B, 0x06, 0x01, 0x05, 0x05, 0x07, 0x03, 0x06}; -//1.3.6.1.5.5.7.3.7 PKIX key purpose ipsecUser -static const unsigned char cvOID_ipsecUser [] = { 0x2B, 0x06, 0x01, 0x05, 0x05, 0x07, 0x03, 0x07}; -//1.3.6.1.5.5.7.3.8 PKIX key purpose timeStamping -static const unsigned char cvOID_timeStamping [] = { 0x2B, 0x06, 0x01, 0x05, 0x05, 0x07, 0x03, 0x08}; -//ame -//1.3.6.1.5.5.7.3.9 PKIX key purpose OCSPSigning -static const unsigned char cvOID_OCSPSigning [] = { 0x2B, 0x06, 0x01, 0x05, 0x05, 0x07, 0x03, 0x09}; -//1.3.6.1.5.5.7.4 PKIX cmpInformationTypes -static const unsigned char cvOID_cmpInformationTypes [] = { 0x2B, 0x06, 0x01, 0x05, 0x05, 0x07, 0x04}; -//1.3.6.1.5.5.7.4.1 PKIX CMP information caProtEncCert -static const unsigned char cvOID_caProtEncCert [] = { 0x2B, 0x06, 0x01, 0x05, 0x05, 0x07, 0x04, 0x01}; -//1.3.6.1.5.5.7.4.2 PKIX CMP information signKeyPairTypes -static const unsigned char cvOID_signKeyPairTypes [] = { 0x2B, 0x06, 0x01, 0x05, 0x05, 0x07, 0x04, 0x02}; -//1.3.6.1.5.5.7.4.3 PKIX CMP information encKeyPairTypes -static const unsigned char cvOID_encKeyPairTypes [] = { 0x2B, 0x06, 0x01, 0x05, 0x05, 0x07, 0x04, 0x03}; -//1.3.6.1.5.5.7.4.4 PKIX CMP information preferredSymmAlg -static const unsigned char cvOID_preferredSymmAlg [] = { 0x2B, 0x06, 0x01, 0x05, 0x05, 0x07, 0x04, 0x04}; -//1.3.6.1.5.5.7.4.5 PKIX CMP information caKeyUpdateInfo -static const unsigned char cvOID_caKeyUpdateInfo [] = { 0x2B, 0x06, 0x01, 0x05, 0x05, 0x07, 0x04, 0x05}; -//1.3.6.1.5.5.7.4.6 PKIX CMP information currentCRL -static const unsigned char cvOID_currentCRL [] = { 0x2B, 0x06, 0x01, 0x05, 0x05, 0x07, 0x04, 0x06}; -//1.3.6.1.5.5.7.6.3 PKIX algorithm dh-sig-hmac-sha1 -static const unsigned char cvOID_dh_sig_hmac_sha1 [] = { 0x2B, 0x06, 0x01, 0x05, 0x05, 0x07, 0x06, 0x03}; -//1.3.6.1.5.5.7.6.4 PKIX algorithm dh-pop -static const unsigned char cvOID_dh_pop [] = { 0x2B, 0x06, 0x01, 0x05, 0x05, 0x07, 0x06, 0x04}; -//1.3.6.1.5.5.7.48.1 PKIX authority info access descriptor ocsp -static const unsigned char cvOID_ocsp [] = { 0x2B, 0x06, 0x01, 0x05, 0x05, 0x07, 0x30, 0x01}; -//1.3.6.1.5.5.7.48.2 PKIX authority info access descriptor caIssuers -static const unsigned char cvOID_caIssuers [] = { 0x2B, 0x06, 0x01, 0x05, 0x05, 0x07, 0x30, 0x02}; - -//ame -//1.3.6.1.5.5.7.48.3 PKIX subject info access descriptor timeStamping -static const unsigned char cvOID_info_timeStamping [] = { 0x2B, 0x06, 0x01, 0x05, 0x05, 0x07, 0x30, 0x03}; -//1.3.6.1.5.5.7.48.5 PKIX subject info access descriptor caRepository -static const unsigned char cvOID_caRepository [] = { 0x2B, 0x06, 0x01, 0x05, 0x05, 0x07, 0x30, 0x05}; - -//1.3.6.1.5.5.8.1.1 ISAKMP HMAC algorithm HMAC-MD5 -static const unsigned char cvOID_HMAC_MD5 [] = { 0x2B, 0x06, 0x01, 0x05, 0x05, 0x08, 0x01, 0x01}; -//1.3.6.1.5.5.8.1.2 ISAKMP HMAC algorithm HMAC-SHA -static const unsigned char cvOID_HMAC_SHA [] = { 0x2B, 0x06, 0x01, 0x05, 0x05, 0x08, 0x01, 0x02}; -//1.3.6.1.5.5.8.1.3 ISAKMP HMAC algorithm HMAC-Tiger -static const unsigned char cvOID_HMAC_Tiger [] = { 0x2B, 0x06, 0x01, 0x05, 0x05, 0x08, 0x01, 0x03}; -//1.3.6.1.5.5.8.2.2 ipsec_kp_ike_intermediate -static const unsigned char cvOID_iKEIntermediate[] = { 0x2B, 0x06, 0x01, 0x05, 0x05, 0x08, 0x02, 0x02}; - -//1.3.12.2.1011.7.1 DASS algorithm decEncryptionAlgorithm -static const unsigned char cvOID_decEncryptionAlgorithm [] = { 0x2B, 0x0C, 0x02, 0x87, 0x73, 0x07, 0x01}; -//1.3.12.2.1011.7.1.2 DASS encryption algorithm decDEA -static const unsigned char cvOID_decDEA [] = { 0x2B, 0x0C, 0x02, 0x87, 0x73, 0x07, 0x01, 0x02}; -//1.3.12.2.1011.7.2 DASS algorithm decHashAlgorithm -static const unsigned char cvOID_decHashAlgorithm [] = { 0x2B, 0x0C, 0x02, 0x87, 0x73, 0x07, 0x02}; -//1.3.12.2.1011.7.2.1 DASS hash algorithm decMD2 -static const unsigned char cvOID_decMD2 [] = { 0x2B, 0x0C, 0x02, 0x87, 0x73, 0x07, 0x02, 0x01}; -//1.3.12.2.1011.7.2.2 DASS hash algorithm decMD4 -static const unsigned char cvOID_decMD4 [] = { 0x2B, 0x0C, 0x02, 0x87, 0x73, 0x07, 0x02, 0x02}; -//1.3.12.2.1011.7.3 DASS algorithm decSignatureAlgorithm -static const unsigned char cvOID_decSignatureAlgorithm [] = { 0x2B, 0x0C, 0x02, 0x87, 0x73, 0x07, 0x03}; -//1.3.12.2.1011.7.3.1 DASS signature algorithm decMD2withRSA -static const unsigned char cvOID_decMD2withRSA [] = { 0x2B, 0x0C, 0x02, 0x87, 0x73, 0x07, 0x03, 0x01}; -//1.3.12.2.1011.7.3.2 DASS signature algorithm decMD4withRSA -static const unsigned char cvOID_decMD4withRSA [] = { 0x2B, 0x0C, 0x02, 0x87, 0x73, 0x07, 0x03, 0x02}; -//1.3.12.2.1011.7.3.3 DASS signature algorithm decDEAMAC -static const unsigned char cvOID_decDEAMAC [] = { 0x2B, 0x0C, 0x02, 0x87, 0x73, 0x07, 0x03, 0x03}; -//1.3.14.2.26.5 Unsure about this OID sha -static const unsigned char cvOID_sha [] = { 0x2B, 0x0E, 0x02, 0x1A, 0x05}; -//1.3.14.3.2.1.1 X.509. Unsure about this OID rsa -static const unsigned char cvOID_rsa [] = { 0x2B, 0x0E, 0x03, 0x02, 0x01, 0x01}; -//1.3.14.3.2.2 Oddball OIW OID md4WitRSA -static const unsigned char cvOID_md4WitRSA [] = { 0x2B, 0x0E, 0x03, 0x02, 0x02}; -//1.3.14.3.2.3 Oddball OIW OID md5WithRSA -static const unsigned char cvOID_md5WithRSA [] = { 0x2B, 0x0E, 0x03, 0x02, 0x03}; -//1.3.14.3.2.4 Oddball OIW OID md4WithRSAEncryption -static const unsigned char cvOID_md4WithRSAEncryption [] = { 0x2B, 0x0E, 0x03, 0x02, 0x04}; -//1.3.14.3.2.2.1 X.509. Deprecated sqmod-N -static const unsigned char cvOID_sqmod_N [] = { 0x2B, 0x0E, 0x03, 0x02, 0x02, 0x01}; -//1.3.14.3.2.3.1 X.509. Deprecated sqmod-NwithRSA -static const unsigned char cvOID_sqmod_NwithRSA [] = { 0x2B, 0x0E, 0x03, 0x02, 0x03, 0x01}; -//1.3.14.3.2.11 ISO 9796-2, also X9.31 Part 1 rsaSignature -static const unsigned char cvOID_rsaSignature [] = { 0x2B, 0x0E, 0x03, 0x02, 0x0B}; -////1.3.14.3.2.12 OIW?, supposedly from an incomplete version of SDN.701 (doesn't match final SDN.701) dsa -//static const unsigned char cvOID_dsa [] = { 0x2B, 0x0E, 0x03, 0x02, 0x0C}; -//1.3.14.3.2.14 Oddball OIW OID using 9796-2 padding rules mdc2WithRSASignature -static const unsigned char cvOID_mdc2WithRSASignature [] = { 0x2B, 0x0E, 0x03, 0x02, 0x0E}; -//1.3.14.3.2.15 Oddball OIW OID using 9796-2 padding rules shaWithRSASignature -static const unsigned char cvOID_shaWithRSASignature [] = { 0x2B, 0x0E, 0x03, 0x02, 0x0F}; -//1.3.14.3.2.16 Oddball OIW OID. Deprecated, use a plain DH OID instead dhWithCommonModulus -static const unsigned char cvOID_dhWithCommonModulus [] = { 0x2B, 0x0E, 0x03, 0x02, 0x10}; -//1.3.14.3.2.17 Oddball OIW OID. Mode is ECB desEDE -static const unsigned char cvOID_desEDE [] = { 0x2B, 0x0E, 0x03, 0x02, 0x11}; -////1.3.14.3.2.18 Oddball OIW OID sha -//static const unsigned char cvOID_sha [] = { 0x2B, 0x0E, 0x03, 0x02, 0x12}; -//1.3.14.3.2.19 Oddball OIW OID, DES-based hash, planned for X9.31 Part 2 mdc-2 -static const unsigned char cvOID_mdc_2 [] = { 0x2B, 0x0E, 0x03, 0x02, 0x13}; -//1.3.14.3.2.20 Oddball OIW OID. Deprecated, use a plain DSA OID instead dsaCommon -static const unsigned char cvOID_dsaCommon [] = { 0x2B, 0x0E, 0x03, 0x02, 0x14}; -//1.3.14.3.2.21 Oddball OIW OID. Deprecated, use a plain dsaWithSHA OID instead dsaCommonWithSHA -static const unsigned char cvOID_dsaCommonWithSHA [] = { 0x2B, 0x0E, 0x03, 0x02, 0x15}; -//1.3.14.3.2.22 Oddball OIW OID rsaKeyTransport -static const unsigned char cvOID_rsaKeyTransport [] = { 0x2B, 0x0E, 0x03, 0x02, 0x16}; -//1.3.14.3.2.23 Oddball OIW OID keyed-hash-seal -static const unsigned char cvOID_keyed_hash_seal [] = { 0x2B, 0x0E, 0x03, 0x02, 0x17}; -//1.3.14.3.2.24 Oddball OIW OID using 9796-2 padding rules md2WithRSASignature -static const unsigned char cvOID_md2WithRSASignature [] = { 0x2B, 0x0E, 0x03, 0x02, 0x18}; -//1.3.14.3.2.25 Oddball OIW OID using 9796-2 padding rules md5WithRSASignature -static const unsigned char cvOID_md5WithRSASignature [] = { 0x2B, 0x0E, 0x03, 0x02, 0x19}; -//1.3.14.3.2.26 OIW sha1 -static const unsigned char cvOID_sha1 [] = { 0x2B, 0x0E, 0x03, 0x02, 0x1A}; -//1.3.14.3.2.27 OIW. This OID may also be assigned as ripemd-160 dsaWithSHA1 -static const unsigned char cvOID_dsaWithSHA1 [] = { 0x2B, 0x0E, 0x03, 0x02, 0x1B}; -//1.3.14.3.2.28 OIW dsaWithCommonSHA1 -static const unsigned char cvOID_dsaWithCommonSHA1 [] = { 0x2B, 0x0E, 0x03, 0x02, 0x1C}; -//1.3.14.3.2.29 Oddball OIW OID sha-1WithRSAEncryption -static const unsigned char cvOID_sha_1WithRSAEncryption [] = { 0x2B, 0x0E, 0x03, 0x02, 0x1D}; -//1.3.14.3.3.1 Oddball OIW OID simple-strong-auth-mechanism -static const unsigned char cvOID_simple_strong_auth_mechanism [] = { 0x2B, 0x0E, 0x03, 0x03, 0x01}; -//1.3.14.7.2.1.1 Unsure about this OID ElGamal -static const unsigned char cvOID_ElGamal [] = { 0x2B, 0x0E, 0x07, 0x02, 0x01, 0x01}; -//1.3.14.7.2.3.1 Unsure about this OID md2WithRSA -static const unsigned char cvOID_md2WithRSA [] = { 0x2B, 0x0E, 0x07, 0x02, 0x03, 0x01}; -//1.3.14.7.2.3.2 Unsure about this OID md2WithElGamal -static const unsigned char cvOID_md2WithElGamal [] = { 0x2B, 0x0E, 0x07, 0x02, 0x03, 0x02}; -//1.3.36.1 Teletrust document document -static const unsigned char cvOID_document [] = { 0x2B, 0x24, 0x01}; -//1.3.36.1.1 Teletrust document finalVersion -static const unsigned char cvOID_finalVersion [] = { 0x2B, 0x24, 0x01, 0x01}; -//1.3.36.1.2 Teletrust document draft -static const unsigned char cvOID_draft [] = { 0x2B, 0x24, 0x01, 0x02}; -//1.3.36.2 Teletrust sio sio -static const unsigned char cvOID_sio [] = { 0x2B, 0x24, 0x02}; -//1.3.36.2.1 Teletrust sio sedu -static const unsigned char cvOID_sedu [] = { 0x2B, 0x24, 0x02, 0x01}; -//1.3.36.3 Teletrust algorithm algorithm -static const unsigned char cvOID_algorithm_Teletrust[] = { 0x2B, 0x24, 0x03}; -//1.3.36.3.1 Teletrust algorithm encryptionAlgorithm -static const unsigned char cvOID_encryptionAlgorithm_Teletrust [] = { 0x2B, 0x24, 0x03, 0x01}; -//1.3.36.3.1.1 Teletrust encryption algorithm des -static const unsigned char cvOID_des_Teletrust [] = { 0x2B, 0x24, 0x03, 0x01, 0x01}; -//1.3.36.3.1.1.1 Teletrust encryption algorithm desECB_pad -static const unsigned char cvOID_desECB_pad [] = { 0x2B, 0x24, 0x03, 0x01, 0x01, 0x01}; -//1.3.36.3.1.1.1.1 Teletrust encryption algorithm desECB_ISOpad -static const unsigned char cvOID_desECB_ISOpad [] = { 0x2B, 0x24, 0x03, 0x01, 0x01, 0x01, 0x01}; -//1.3.36.3.1.1.2.1 Teletrust encryption algorithm desCBC_pad -static const unsigned char cvOID_desCBC_pad [] = { 0x2B, 0x24, 0x03, 0x01, 0x01, 0x02, 0x01}; -//1.3.36.3.1.1.2.1.1 Teletrust encryption algorithm desCBC_ISOpad -static const unsigned char cvOID_desCBC_ISOpad [] = { 0x2B, 0x24, 0x03, 0x01, 0x01, 0x02, 0x01, 0x01}; -//1.3.36.3.1.3 Teletrust encryption algorithm des_3 -static const unsigned char cvOID_des_3 [] = { 0x2B, 0x24, 0x03, 0x01, 0x03}; -//1.3.36.3.1.3.1.1 Teletrust encryption algorithm. EDE triple DES des_3ECB_pad -static const unsigned char cvOID_des_3ECB_pad [] = { 0x2B, 0x24, 0x03, 0x01, 0x03, 0x01, 0x01}; -//1.3.36.3.1.3.1.1.1 Teletrust encryption algorithm. EDE triple DES des_3ECB_ISOpad -static const unsigned char cvOID_des_3ECB_ISOpad [] = { 0x2B, 0x24, 0x03, 0x01, 0x03, 0x01, 0x01, 0x01}; -//1.3.36.3.1.3.2.1 Teletrust encryption algorithm. EDE triple DES des_3CBC_pad -static const unsigned char cvOID_des_3CBC_pad [] = { 0x2B, 0x24, 0x03, 0x01, 0x03, 0x02, 0x01}; -//1.3.36.3.1.3.2.1.1 Teletrust encryption algorithm. EDE triple DES des_3CBC_ISOpad -static const unsigned char cvOID_des_3CBC_ISOpad [] = { 0x2B, 0x24, 0x03, 0x01, 0x03, 0x02, 0x01, 0x01}; -//1.3.36.3.1.2 Teletrust encryption algorithm idea -static const unsigned char cvOID_idea_Teletrust [] = { 0x2B, 0x24, 0x03, 0x01, 0x02}; -//1.3.36.3.1.2.1 Teletrust encryption algorithm ideaECB -static const unsigned char cvOID_ideaECB_Teletrust [] = { 0x2B, 0x24, 0x03, 0x01, 0x02, 0x01}; -//1.3.36.3.1.2.1.1 Teletrust encryption algorithm ideaECB_pad -static const unsigned char cvOID_ideaECB_pad [] = { 0x2B, 0x24, 0x03, 0x01, 0x02, 0x01, 0x01}; -//1.3.36.3.1.2.1.1.1 Teletrust encryption algorithm ideaECB_ISOpad -static const unsigned char cvOID_ideaECB_ISOpad [] = { 0x2B, 0x24, 0x03, 0x01, 0x02, 0x01, 0x01, 0x01}; -//1.3.36.3.1.2.2 Teletrust encryption algorithm ideaCBC -static const unsigned char cvOID_ideaCBC_Teletrust [] = { 0x2B, 0x24, 0x03, 0x01, 0x02, 0x02}; -//1.3.36.3.1.2.2.1 Teletrust encryption algorithm ideaCBC_pad -static const unsigned char cvOID_ideaCBC_pad [] = { 0x2B, 0x24, 0x03, 0x01, 0x02, 0x02, 0x01}; -//1.3.36.3.1.2.2.1.1 Teletrust encryption algorithm ideaCBC_ISOpad -static const unsigned char cvOID_ideaCBC_ISOpad [] = { 0x2B, 0x24, 0x03, 0x01, 0x02, 0x02, 0x01, 0x01}; -//1.3.36.3.1.2.3 Teletrust encryption algorithm ideaOFB -static const unsigned char cvOID_ideaOFB_Teletrust [] = { 0x2B, 0x24, 0x03, 0x01, 0x02, 0x03}; -//1.3.36.3.1.2.4 Teletrust encryption algorithm ideaCFB -static const unsigned char cvOID_ideaCFB_Teletrust [] = { 0x2B, 0x24, 0x03, 0x01, 0x02, 0x04}; -//1.3.36.3.1.4 Teletrust encryption algorithm rsaEncryption -static const unsigned char cvOID_rsaEncryption_Teletrust [] = { 0x2B, 0x24, 0x03, 0x01, 0x04}; -//1.3.36.3.1.4.512.17 Teletrust encryption algorithm rsaEncryptionWithlmod512expe17 -static const unsigned char cvOID_rsaEncryptionWithlmod512expe17 [] = { 0x2B, 0x24, 0x03, 0x01, 0x04, 0x84, 0x00, 0x11}; -//1.3.36.3.1.5 Teletrust encryption algorithm bsi-1 -static const unsigned char cvOID_bsi_1 [] = { 0x2B, 0x24, 0x03, 0x01, 0x05}; -//1.3.36.3.1.5.1 Teletrust encryption algorithm bsi_1ECB_pad -static const unsigned char cvOID_bsi_1ECB_pad [] = { 0x2B, 0x24, 0x03, 0x01, 0x05, 0x01}; -//1.3.36.3.1.5.2 Teletrust encryption algorithm bsi_1CBC_pad -static const unsigned char cvOID_bsi_1CBC_pad [] = { 0x2B, 0x24, 0x03, 0x01, 0x05, 0x02}; -//1.3.36.3.1.5.2.1 Teletrust encryption algorithm bsi_1CBC_PEMpad -static const unsigned char cvOID_bsi_1CBC_PEMpad [] = { 0x2B, 0x24, 0x03, 0x01, 0x05, 0x02, 0x01}; -//1.3.36.3.2 Teletrust algorithm hashAlgorithm -static const unsigned char cvOID_hashAlgorithm [] = { 0x2B, 0x24, 0x03, 0x02}; -//1.3.36.3.2.1 Teletrust hash algorithm ripemd160 -static const unsigned char cvOID_ripemd160_Teletrust [] = { 0x2B, 0x24, 0x03, 0x02, 0x01}; -//1.3.36.3.2.2 Teletrust hash algorithm ripemd128 -static const unsigned char cvOID_ripemd128_Teletrust [] = { 0x2B, 0x24, 0x03, 0x02, 0x02}; -//1.3.36.3.2.3 Teletrust hash algorithm ripemd256 -static const unsigned char cvOID_ripemd256 [] = { 0x2B, 0x24, 0x03, 0x02, 0x03}; -//1.3.36.3.2.4 Teletrust hash algorithm mdc2singleLength -static const unsigned char cvOID_mdc2singleLength [] = { 0x2B, 0x24, 0x03, 0x02, 0x04}; -//1.3.36.3.2.5 Teletrust hash algorithm mdc2doubleLength -static const unsigned char cvOID_mdc2doubleLength [] = { 0x2B, 0x24, 0x03, 0x02, 0x05}; -//1.3.36.3.3 Teletrust algorithm signatureAlgorithm -static const unsigned char cvOID_signatureAlgorithm [] = { 0x2B, 0x24, 0x03, 0x03}; -//1.3.36.3.3.1 Teletrust signature algorithm rsaSignature -static const unsigned char cvOID_rsaSignature_Teletrust [] = { 0x2B, 0x24, 0x03, 0x03, 0x01}; -//1.3.36.3.3.1.1 Teletrust signature algorithm rsaSignatureWithsha1 -static const unsigned char cvOID_rsaSignatureWithsha1 [] = { 0x2B, 0x24, 0x03, 0x03, 0x01, 0x01}; -//1.3.36.3.3.1.1.512.2 Teletrust signature algorithm rsaSignatureWithsha1_l512_l2 -static const unsigned char cvOID_rsaSignatureWithsha1_l512_l2 [] = { 0x2B, 0x24, 0x03, 0x03, 0x01, 0x01, 0x84, 0x00, 0x02}; -//1.3.36.3.3.1.1.640.2 Teletrust signature algorithm rsaSignatureWithsha1_l640_l2 -static const unsigned char cvOID_rsaSignatureWithsha1_l640_l2 [] = { 0x2B, 0x24, 0x03, 0x03, 0x01, 0x01, 0x85, 0x00, 0x02}; -//1.3.36.3.3.1.1.768.2 Teletrust signature algorithm rsaSignatureWithsha1_l768_l2 -static const unsigned char cvOID_rsaSignatureWithsha1_l768_l2 [] = { 0x2B, 0x24, 0x03, 0x03, 0x01, 0x01, 0x86, 0x00, 0x02}; -//1.3.36.3.3.1.1.892.2 Teletrust signature algorithm rsaSignatureWithsha1_l896_l2 -static const unsigned char cvOID_rsaSignatureWithsha1_l896_l2 [] = { 0x2B, 0x24, 0x03, 0x03, 0x01, 0x01, 0x87, 0x00, 0x02}; -//1.3.36.3.3.1.1.1024.2 Teletrust signature algorithm rsaSignatureWithsha1_l1024_l2 -static const unsigned char cvOID_rsaSignatureWithsha1_l1024_l2 [] = { 0x2B, 0x24, 0x03, 0x03, 0x01, 0x01, 0x88, 0x00, 0x02}; -//1.3.36.3.3.1.1.512.3 Teletrust signature algorithm rsaSignatureWithsha1_l512_l3 -static const unsigned char cvOID_rsaSignatureWithsha1_l512_l3 [] = { 0x2B, 0x24, 0x03, 0x03, 0x01, 0x01, 0x84, 0x00, 0x03}; -//1.3.36.3.3.1.1.640.3 Teletrust signature algorithm rsaSignatureWithsha1_l640_l3 -static const unsigned char cvOID_rsaSignatureWithsha1_l640_l3 [] = { 0x2B, 0x24, 0x03, 0x03, 0x01, 0x01, 0x85, 0x00, 0x03}; -//1.3.36.3.3.1.1.768.3 Teletrust signature algorithm rsaSignatureWithsha1_l768_l3 -static const unsigned char cvOID_rsaSignatureWithsha1_l768_l3 [] = { 0x2B, 0x24, 0x03, 0x03, 0x01, 0x01, 0x86, 0x00, 0x03}; -//1.3.36.3.3.1.1.896.3 Teletrust signature algorithm rsaSignatureWithsha1_l896_l3 -static const unsigned char cvOID_rsaSignatureWithsha1_l896_l3 [] = { 0x2B, 0x24, 0x03, 0x03, 0x01, 0x01, 0x87, 0x00, 0x03}; -//1.3.36.3.3.1.1.1024.3 Teletrust signature algorithm rsaSignatureWithsha1_l1024_l3 -static const unsigned char cvOID_rsaSignatureWithsha1_l1024_l3 [] = { 0x2B, 0x24, 0x03, 0x03, 0x01, 0x01, 0x88, 0x00, 0x03}; -//1.3.36.3.3.1.1.512.5 Teletrust signature algorithm rsaSignatureWithsha1_l512_l5 -static const unsigned char cvOID_rsaSignatureWithsha1_l512_l5 [] = { 0x2B, 0x24, 0x03, 0x03, 0x01, 0x01, 0x84, 0x00, 0x05}; -//1.3.36.3.3.1.1.640.5 Teletrust signature algorithm rsaSignatureWithsha1_l640_l5 -static const unsigned char cvOID_rsaSignatureWithsha1_l640_l5 [] = { 0x2B, 0x24, 0x03, 0x03, 0x01, 0x01, 0x85, 0x00, 0x05}; -//1.3.36.3.3.1.1.768.5 Teletrust signature algorithm rsaSignatureWithsha1_l768_l5 -static const unsigned char cvOID_rsaSignatureWithsha1_l768_l5 [] = { 0x2B, 0x24, 0x03, 0x03, 0x01, 0x01, 0x86, 0x00, 0x05}; -//1.3.36.3.3.1.1.896.5 Teletrust signature algorithm rsaSignatureWithsha1_l896_l5 -static const unsigned char cvOID_rsaSignatureWithsha1_l896_l5 [] = { 0x2B, 0x24, 0x03, 0x03, 0x01, 0x01, 0x87, 0x00, 0x05}; -//1.3.36.3.3.1.1.1024.5 Teletrust signature algorithm rsaSignatureWithsha1_l1024_l5 -static const unsigned char cvOID_rsaSignatureWithsha1_l1024_l5 [] = { 0x2B, 0x24, 0x03, 0x03, 0x01, 0x01, 0x88, 0x00, 0x05}; -//1.3.36.3.3.1.1.512.9 Teletrust signature algorithm rsaSignatureWithsha1_l512_l9 -static const unsigned char cvOID_rsaSignatureWithsha1_l512_l9 [] = { 0x2B, 0x24, 0x03, 0x03, 0x01, 0x01, 0x84, 0x00, 0x09}; -//1.3.36.3.3.1.1.640.9 Teletrust signature algorithm rsaSignatureWithsha1_l640_l9 -static const unsigned char cvOID_rsaSignatureWithsha1_l640_l9 [] = { 0x2B, 0x24, 0x03, 0x03, 0x01, 0x01, 0x85, 0x00, 0x09}; -//1.3.36.3.3.1.1.768.9 Teletrust signature algorithm rsaSignatureWithsha1_l768_l9 -static const unsigned char cvOID_rsaSignatureWithsha1_l768_l9 [] = { 0x2B, 0x24, 0x03, 0x03, 0x01, 0x01, 0x86, 0x00, 0x09}; -//1.3.36.3.3.1.1.896.9 Teletrust signature algorithm rsaSignatureWithsha1_l896_l9 -static const unsigned char cvOID_rsaSignatureWithsha1_l896_l9 [] = { 0x2B, 0x24, 0x03, 0x03, 0x01, 0x01, 0x87, 0x00, 0x09}; -//1.3.36.3.3.1.1.1024.9 Teletrust signature algorithm rsaSignatureWithsha1_l1024_l9 -static const unsigned char cvOID_rsaSignatureWithsha1_l1024_l9 [] = { 0x2B, 0x24, 0x03, 0x03, 0x01, 0x01, 0x88, 0x00, 0x09}; -//1.3.36.3.3.1.1.512.11 Teletrust signature algorithm rsaSignatureWithsha1_l512_l11 -static const unsigned char cvOID_rsaSignatureWithsha1_l512_l11 [] = { 0x2B, 0x24, 0x03, 0x03, 0x01, 0x01, 0x84, 0x00, 0x11}; -//1.3.36.3.3.1.1.640.11 Teletrust signature algorithm rsaSignatureWithsha1_l640_l11 -static const unsigned char cvOID_rsaSignatureWithsha1_l640_l11 [] = { 0x2B, 0x24, 0x03, 0x03, 0x01, 0x01, 0x85, 0x00, 0x11}; -//1.3.36.3.3.1.1.768.11 Teletrust signature algorithm rsaSignatureWithsha1_l768_l11 -static const unsigned char cvOID_rsaSignatureWithsha1_l768_l11 [] = { 0x2B, 0x24, 0x03, 0x03, 0x01, 0x01, 0x86, 0x00, 0x11}; -//1.3.36.3.3.1.1.896.11 Teletrust signature algorithm rsaSignatureWithsha1_l896_l11 -static const unsigned char cvOID_rsaSignatureWithsha1_l896_l11 [] = { 0x2B, 0x24, 0x03, 0x03, 0x01, 0x01, 0x87, 0x00, 0x11}; -//1.3.36.3.3.1.1.1024.11 Teletrust signature algorithm rsaSignatureWithsha1_l1024_l11 -static const unsigned char cvOID_rsaSignatureWithsha1_l1024_l11 [] = { 0x2B, 0x24, 0x03, 0x03, 0x01, 0x01, 0x88, 0x00, 0x11}; -//1.3.36.3.3.1.2 Teletrust signature algorithm rsaSignatureWithripemd160 -static const unsigned char cvOID_rsaSignatureWithripemd160 [] = { 0x2B, 0x24, 0x03, 0x03, 0x01, 0x02}; -//1.3.36.3.3.1.2.512.2 Teletrust signature algorithm rsaSignatureWithripemd160_l512_l2 -static const unsigned char cvOID_rsaSignatureWithripemd160_l512_l2 [] = { 0x2B, 0x24, 0x03, 0x03, 0x01, 0x02, 0x84, 0x00, 0x02}; -//1.3.36.3.3.1.2.640.2 Teletrust signature algorithm rsaSignatureWithripemd160_l640_l2 -static const unsigned char cvOID_rsaSignatureWithripemd160_l640_l2 [] = { 0x2B, 0x24, 0x03, 0x03, 0x01, 0x02, 0x85, 0x00, 0x02}; -//1.3.36.3.3.1.2.768.2 Teletrust signature algorithm rsaSignatureWithripemd160_l768_l2 -static const unsigned char cvOID_rsaSignatureWithripemd160_l768_l2 [] = { 0x2B, 0x24, 0x03, 0x03, 0x01, 0x02, 0x86, 0x00, 0x02}; -//1.3.36.3.3.1.2.892.2 Teletrust signature algorithm rsaSignatureWithripemd160_l896_l2 -static const unsigned char cvOID_rsaSignatureWithripemd160_l896_l2 [] = { 0x2B, 0x24, 0x03, 0x03, 0x01, 0x02, 0x87, 0x00, 0x02}; -//1.3.36.3.3.1.2.1024.2 Teletrust signature algorithm rsaSignatureWithripemd160_l1024_l2 -static const unsigned char cvOID_rsaSignatureWithripemd160_l1024_l2 [] = { 0x2B, 0x24, 0x03, 0x03, 0x01, 0x02, 0x88, 0x00, 0x02}; -//1.3.36.3.3.1.2.512.3 Teletrust signature algorithm rsaSignatureWithripemd160_l512_l3 -static const unsigned char cvOID_rsaSignatureWithripemd160_l512_l3 [] = { 0x2B, 0x24, 0x03, 0x03, 0x01, 0x02, 0x84, 0x00, 0x03}; -//1.3.36.3.3.1.2.640.3 Teletrust signature algorithm rsaSignatureWithripemd160_l640_l3 -static const unsigned char cvOID_rsaSignatureWithripemd160_l640_l3 [] = { 0x2B, 0x24, 0x03, 0x03, 0x01, 0x02, 0x85, 0x00, 0x03}; -//1.3.36.3.3.1.2.768.3 Teletrust signature algorithm rsaSignatureWithripemd160_l768_l3 -static const unsigned char cvOID_rsaSignatureWithripemd160_l768_l3 [] = { 0x2B, 0x24, 0x03, 0x03, 0x01, 0x02, 0x86, 0x00, 0x03}; -//1.3.36.3.3.1.2.896.3 Teletrust signature algorithm rsaSignatureWithripemd160_l896_l3 -static const unsigned char cvOID_rsaSignatureWithripemd160_l896_l3 [] = { 0x2B, 0x24, 0x03, 0x03, 0x01, 0x02, 0x87, 0x00, 0x03}; -//1.3.36.3.3.1.2.1024.3 Teletrust signature algorithm rsaSignatureWithripemd160_l1024_l3 -static const unsigned char cvOID_rsaSignatureWithripemd160_l1024_l3 [] = { 0x2B, 0x24, 0x03, 0x03, 0x01, 0x02, 0x88, 0x00, 0x03}; -//1.3.36.3.3.1.2.512.5 Teletrust signature algorithm rsaSignatureWithripemd160_l512_l5 -static const unsigned char cvOID_rsaSignatureWithripemd160_l512_l5 [] = { 0x2B, 0x24, 0x03, 0x03, 0x01, 0x02, 0x84, 0x00, 0x05}; -//1.3.36.3.3.1.2.640.5 Teletrust signature algorithm rsaSignatureWithripemd160_l640_l5 -static const unsigned char cvOID_rsaSignatureWithripemd160_l640_l5 [] = { 0x2B, 0x24, 0x03, 0x03, 0x01, 0x02, 0x85, 0x00, 0x05}; -//1.3.36.3.3.1.2.768.5 Teletrust signature algorithm rsaSignatureWithripemd160_l768_l5 -static const unsigned char cvOID_rsaSignatureWithripemd160_l768_l5 [] = { 0x2B, 0x24, 0x03, 0x03, 0x01, 0x02, 0x86, 0x00, 0x05}; -//1.3.36.3.3.1.2.896.5 Teletrust signature algorithm rsaSignatureWithripemd160_l896_l5 -static const unsigned char cvOID_rsaSignatureWithripemd160_l896_l5 [] = { 0x2B, 0x24, 0x03, 0x03, 0x01, 0x02, 0x87, 0x00, 0x05}; -//1.3.36.3.3.1.2.1024.5 Teletrust signature algorithm rsaSignatureWithripemd160_l1024_l5 -static const unsigned char cvOID_rsaSignatureWithripemd160_l1024_l5 [] = { 0x2B, 0x24, 0x03, 0x03, 0x01, 0x02, 0x88, 0x00, 0x05}; -//1.3.36.3.3.1.2.512.9 Teletrust signature algorithm rsaSignatureWithripemd160_l512_l9 -static const unsigned char cvOID_rsaSignatureWithripemd160_l512_l9 [] = { 0x2B, 0x24, 0x03, 0x03, 0x01, 0x02, 0x84, 0x00, 0x09}; -//1.3.36.3.3.1.2.640.9 Teletrust signature algorithm rsaSignatureWithripemd160_l640_l9 -static const unsigned char cvOID_rsaSignatureWithripemd160_l640_l9 [] = { 0x2B, 0x24, 0x03, 0x03, 0x01, 0x02, 0x85, 0x00, 0x09}; -//1.3.36.3.3.1.2.768.9 Teletrust signature algorithm rsaSignatureWithripemd160_l768_l9 -static const unsigned char cvOID_rsaSignatureWithripemd160_l768_l9 [] = { 0x2B, 0x24, 0x03, 0x03, 0x01, 0x02, 0x86, 0x00, 0x09}; -//1.3.36.3.3.1.2.896.9 Teletrust signature algorithm rsaSignatureWithripemd160_l896_l9 -static const unsigned char cvOID_rsaSignatureWithripemd160_l896_l9 [] = { 0x2B, 0x24, 0x03, 0x03, 0x01, 0x02, 0x87, 0x00, 0x09}; -//1.3.36.3.3.1.2.1024.9 Teletrust signature algorithm rsaSignatureWithripemd160_l1024_l9 -static const unsigned char cvOID_rsaSignatureWithripemd160_l1024_l9 [] = { 0x2B, 0x24, 0x03, 0x03, 0x01, 0x02, 0x88, 0x00, 0x09}; -//1.3.36.3.3.1.2.512.11 Teletrust signature algorithm rsaSignatureWithripemd160_l512_l11 -static const unsigned char cvOID_rsaSignatureWithripemd160_l512_l11 [] = { 0x2B, 0x24, 0x03, 0x03, 0x01, 0x02, 0x84, 0x00, 0x11}; -//1.3.36.3.3.1.2.640.11 Teletrust signature algorithm rsaSignatureWithripemd160_l640_l11 -static const unsigned char cvOID_rsaSignatureWithripemd160_l640_l11 [] = { 0x2B, 0x24, 0x03, 0x03, 0x01, 0x02, 0x85, 0x00, 0x11}; -//1.3.36.3.3.1.2.768.11 Teletrust signature algorithm rsaSignatureWithripemd160_l768_l11 -static const unsigned char cvOID_rsaSignatureWithripemd160_l768_l11 [] = { 0x2B, 0x24, 0x03, 0x03, 0x01, 0x02, 0x86, 0x00, 0x11}; -//1.3.36.3.3.1.2.896.11 Teletrust signature algorithm rsaSignatureWithripemd160_l896_l11 -static const unsigned char cvOID_rsaSignatureWithripemd160_l896_l11 [] = { 0x2B, 0x24, 0x03, 0x03, 0x01, 0x02, 0x87, 0x00, 0x11}; -//1.3.36.3.3.1.2.1024.11 Teletrust signature algorithm rsaSignatureWithripemd160_l1024_l11 -static const unsigned char cvOID_rsaSignatureWithripemd160_l1024_l11 [] = { 0x2B, 0x24, 0x03, 0x03, 0x01, 0x02, 0x88, 0x00, 0x11}; -//1.3.36.3.3.1.3 Teletrust signature algorithm rsaSignatureWithrimpemd128 -static const unsigned char cvOID_rsaSignatureWithrimpemd128 [] = { 0x2B, 0x24, 0x03, 0x03, 0x01, 0x03}; -//1.3.36.3.3.1.4 Teletrust signature algorithm rsaSignatureWithrimpemd256 -static const unsigned char cvOID_rsaSignatureWithrimpemd256 [] = { 0x2B, 0x24, 0x03, 0x03, 0x01, 0x04}; -//1.3.36.3.3.2 Teletrust signature algorithm ecsieSign -static const unsigned char cvOID_ecsieSign [] = { 0x2B, 0x24, 0x03, 0x03, 0x02}; -//1.3.36.3.3.2.1 Teletrust signature algorithm ecsieSignWithsha1 -static const unsigned char cvOID_ecsieSignWithsha1 [] = { 0x2B, 0x24, 0x03, 0x03, 0x02, 0x01}; -//1.3.36.3.3.2.2 Teletrust signature algorithm ecsieSignWithripemd160 -static const unsigned char cvOID_ecsieSignWithripemd160 [] = { 0x2B, 0x24, 0x03, 0x03, 0x02, 0x02}; -//1.3.36.3.3.2.3 Teletrust signature algorithm ecsieSignWithmd2 -static const unsigned char cvOID_ecsieSignWithmd2 [] = { 0x2B, 0x24, 0x03, 0x03, 0x02, 0x03}; -//1.3.36.3.3.2.4 Teletrust signature algorithm ecsieSignWithmd5 -static const unsigned char cvOID_ecsieSignWithmd5 [] = { 0x2B, 0x24, 0x03, 0x03, 0x02, 0x04}; -//1.3.36.3.4 Teletrust algorithm signatureScheme -static const unsigned char cvOID_signatureScheme [] = { 0x2B, 0x24, 0x03, 0x04}; -//1.3.36.3.4.1 Teletrust signature scheme sigS_ISO9796-1 -static const unsigned char cvOID_sigS_ISO9796_1 [] = { 0x2B, 0x24, 0x03, 0x04, 0x01}; -//1.3.36.3.4.2 Teletrust signature scheme sigS_ISO9796-2 -static const unsigned char cvOID_sigS_ISO9796_2 [] = { 0x2B, 0x24, 0x03, 0x04, 0x02}; -//1.3.36.3.4.2.1 Teletrust signature scheme. Unsure what this is supposed to be sigS_ISO9796-2Withred -static const unsigned char cvOID_sigS_ISO9796_2Withred [] = { 0x2B, 0x24, 0x03, 0x04, 0x02, 0x01}; -//1.3.36.3.4.2.2 Teletrust signature scheme. Unsure what this is supposed to be sigS_ISO9796-2Withrsa -static const unsigned char cvOID_sigS_ISO9796_2Withrsa [] = { 0x2B, 0x24, 0x03, 0x04, 0x02, 0x02}; -//1.3.36.3.4.2.3 Teletrust signature scheme. 9796-2 with random number in padding field sigS_ISO9796-2Withrnd -static const unsigned char cvOID_sigS_ISO9796_2Withrnd [] = { 0x2B, 0x24, 0x03, 0x04, 0x02, 0x03}; -//1.3.36.4 Teletrust attribute attribute -static const unsigned char cvOID_attribute_Teletrust [] = { 0x2B, 0x24, 0x04}; -//1.3.36.5 Teletrust policy policy -static const unsigned char cvOID_policy [] = { 0x2B, 0x24, 0x05}; -//1.3.36.6 Teletrust API api -static const unsigned char cvOID_api [] = { 0x2B, 0x24, 0x06}; -//1.3.36.6.1 Teletrust API manufacturer-specific_api -static const unsigned char cvOID_manufacturer_specific_api [] = { 0x2B, 0x24, 0x06, 0x01}; -//1.3.36.6.1.1 Teletrust API utimaco-api -static const unsigned char cvOID_utimaco_api [] = { 0x2B, 0x24, 0x06, 0x01, 0x01}; -//1.3.36.6.2 Teletrust API functionality-specific_api -static const unsigned char cvOID_functionality_specific_api [] = { 0x2B, 0x24, 0x06, 0x02}; -//1.3.36.7 Teletrust key management keymgmnt -static const unsigned char cvOID_keymgmnt [] = { 0x2B, 0x24, 0x07}; -//1.3.36.7.1 Teletrust key management keyagree -static const unsigned char cvOID_keyagree [] = { 0x2B, 0x24, 0x07, 0x01}; -//1.3.36.7.1.1 Teletrust key management bsiPKE -static const unsigned char cvOID_bsiPKE [] = { 0x2B, 0x24, 0x07, 0x01, 0x01}; -//1.3.36.7.2 Teletrust key management keytrans -static const unsigned char cvOID_keytrans [] = { 0x2B, 0x24, 0x07, 0x02}; -//1.3.36.7.2.1 Teletrust key management. 9796-2 with key stored in hash field encISO9796-2Withrsa -static const unsigned char cvOID_encISO9796_2Withrsa [] = { 0x2B, 0x24, 0x07, 0x02, 0x01}; -//1.3.36.8.1.1 Teletrust policy sigiSigConform -static const unsigned char cvOID_sigiSigConform [] = { 0x2B, 0x24, 0x08, 0x01, 0x01}; -//1.3.36.8.2.1 Teletrust extended key usage directoryService -static const unsigned char cvOID_directoryService [] = { 0x2B, 0x24, 0x08, 0x02, 0x01}; -//1.3.36.8.3.1 Teletrust attribute dateOfCertGen -static const unsigned char cvOID_dateOfCertGen [] = { 0x2B, 0x24, 0x08, 0x03, 0x01}; -//1.3.36.8.3.2 Teletrust attribute procuration -static const unsigned char cvOID_procuration [] = { 0x2B, 0x24, 0x08, 0x03, 0x02}; -//1.3.36.8.3.3 Teletrust attribute admission -static const unsigned char cvOID_admission [] = { 0x2B, 0x24, 0x08, 0x03, 0x03}; -//1.3.36.8.3.4 Teletrust attribute monetaryLimit -static const unsigned char cvOID_monetaryLimit [] = { 0x2B, 0x24, 0x08, 0x03, 0x04}; -//1.3.36.8.3.5 Teletrust attribute declarationOfMajority -static const unsigned char cvOID_declarationOfMajority [] = { 0x2B, 0x24, 0x08, 0x03, 0x05}; -//1.3.36.8.3.6 Teletrust attribute integratedCircuitCardSerialNumber -static const unsigned char cvOID_integratedCircuitCardSerialNumber [] = { 0x2B, 0x24, 0x08, 0x03, 0x06}; -//1.3.36.8.3.7 Teletrust attribute pKReference -static const unsigned char cvOID_pKReference [] = { 0x2B, 0x24, 0x08, 0x03, 0x07}; -//1.3.36.8.3.8 Teletrust attribute restriction -static const unsigned char cvOID_restriction_1 [] = { 0x2B, 0x24, 0x08, 0x03, 0x08}; -//1.3.36.8.3.9 Teletrust attribute retrieveIfAllowed -static const unsigned char cvOID_retrieveIfAllowed [] = { 0x2B, 0x24, 0x08, 0x03, 0x09}; -//1.3.36.8.3.10 Teletrust attribute requestedCertificate -static const unsigned char cvOID_requestedCertificate [] = { 0x2B, 0x24, 0x08, 0x03, 0x0A}; -//1.3.36.8.3.11 Teletrust attribute namingAuthorities -static const unsigned char cvOID_namingAuthorities [] = { 0x2B, 0x24, 0x08, 0x03, 0x0B}; -//1.3.36.8.3.12 Teletrust attribute certInDirSince -static const unsigned char cvOID_certInDirSince [] = { 0x2B, 0x24, 0x08, 0x03, 0x0C}; -//1.3.36.8.3.13 Teletrust attribute certHash -static const unsigned char cvOID_certHash [] = { 0x2B, 0x24, 0x08, 0x03, 0x0D}; -//1.3.36.8.4.1 Teletrust OtherName attribute personalData -static const unsigned char cvOID_personalData [] = { 0x2B, 0x24, 0x08, 0x04, 0x01}; -//1.3.36.8.4.8 Teletrust attribute certificate attribute restriction -static const unsigned char cvOID_restriction_2 [] = { 0x2B, 0x24, 0x08, 0x04, 0x08}; -//1.3.36.8.5.1.1.1 Teletrust signature algorithm rsaIndicateSHA1 -static const unsigned char cvOID_rsaIndicateSHA1 [] = { 0x2B, 0x24, 0x08, 0x05, 0x01, 0x01, 0x01}; -//1.3.36.8.5.1.1.2 Teletrust signature algorithm rsaIndicateRIPEMD160 -static const unsigned char cvOID_rsaIndicateRIPEMD160 [] = { 0x2B, 0x24, 0x08, 0x05, 0x01, 0x01, 0x02}; -//1.3.36.8.5.1.1.3 Teletrust signature algorithm rsaWithSHA1 -static const unsigned char cvOID_rsaWithSHA1 [] = { 0x2B, 0x24, 0x08, 0x05, 0x01, 0x01, 0x03}; -//1.3.36.8.5.1.1.4 Teletrust signature algorithm rsaWithRIPEMD160 -static const unsigned char cvOID_rsaWithRIPEMD160 [] = { 0x2B, 0x24, 0x08, 0x05, 0x01, 0x01, 0x04}; -//1.3.36.8.5.1.2.1 Teletrust signature algorithm dsaExtended -static const unsigned char cvOID_dsaExtended [] = { 0x2B, 0x24, 0x08, 0x05, 0x01, 0x02, 0x01}; -//1.3.36.8.5.1.2.2 Teletrust signature algorithm dsaWithRIPEMD160 -static const unsigned char cvOID_dsaWithRIPEMD160 [] = { 0x2B, 0x24, 0x08, 0x05, 0x01, 0x02, 0x02}; -//1.3.36.8.6.1 Teletrust signature attributes cert -static const unsigned char cvOID_cert [] = { 0x2B, 0x24, 0x08, 0x06, 0x01}; -//1.3.36.8.6.2 Teletrust signature attributes certRef -static const unsigned char cvOID_certRef [] = { 0x2B, 0x24, 0x08, 0x06, 0x02}; -//1.3.36.8.6.3 Teletrust signature attributes attrCert -static const unsigned char cvOID_attrCert [] = { 0x2B, 0x24, 0x08, 0x06, 0x03}; -//1.3.36.8.6.4 Teletrust signature attributes attrRef -static const unsigned char cvOID_attrRef [] = { 0x2B, 0x24, 0x08, 0x06, 0x04}; -//1.3.36.8.6.5 Teletrust signature attributes fileName -static const unsigned char cvOID_fileName [] = { 0x2B, 0x24, 0x08, 0x06, 0x05}; -//1.3.36.8.6.6 Teletrust signature attributes storageTime -static const unsigned char cvOID_storageTime [] = { 0x2B, 0x24, 0x08, 0x06, 0x06}; -//1.3.36.8.6.7 Teletrust signature attributes fileSize -static const unsigned char cvOID_fileSize [] = { 0x2B, 0x24, 0x08, 0x06, 0x07}; -//1.3.36.8.6.8 Teletrust signature attributes location -static const unsigned char cvOID_location [] = { 0x2B, 0x24, 0x08, 0x06, 0x08}; -//1.3.36.8.6.9 Teletrust signature attributes sigNumber -static const unsigned char cvOID_sigNumber [] = { 0x2B, 0x24, 0x08, 0x06, 0x09}; -//1.3.36.8.6.10 Teletrust signature attributes autoGen -static const unsigned char cvOID_autoGen [] = { 0x2B, 0x24, 0x08, 0x06, 0x0A}; -//1.3.36.8.7.1.1 Teletrust presentation types ptAdobeILL -static const unsigned char cvOID_ptAdobeILL [] = { 0x2B, 0x24, 0x08, 0x07, 0x01, 0x01}; -//1.3.36.8.7.1.2 Teletrust presentation types ptAmiPro -static const unsigned char cvOID_ptAmiPro [] = { 0x2B, 0x24, 0x08, 0x07, 0x01, 0x02}; -//1.3.36.8.7.1.3 Teletrust presentation types ptAutoCAD -static const unsigned char cvOID_ptAutoCAD [] = { 0x2B, 0x24, 0x08, 0x07, 0x01, 0x03}; -//1.3.36.8.7.1.4 Teletrust presentation types ptBinary -static const unsigned char cvOID_ptBinary [] = { 0x2B, 0x24, 0x08, 0x07, 0x01, 0x04}; -//1.3.36.8.7.1.5 Teletrust presentation types ptBMP -static const unsigned char cvOID_ptBMP [] = { 0x2B, 0x24, 0x08, 0x07, 0x01, 0x05}; -//1.3.36.8.7.1.6 Teletrust presentation types ptCGM -static const unsigned char cvOID_ptCGM [] = { 0x2B, 0x24, 0x08, 0x07, 0x01, 0x06}; -//1.3.36.8.7.1.7 Teletrust presentation types ptCorelCRT -static const unsigned char cvOID_ptCorelCRT [] = { 0x2B, 0x24, 0x08, 0x07, 0x01, 0x07}; -//1.3.36.8.7.1.8 Teletrust presentation types ptCorelDRW -static const unsigned char cvOID_ptCorelDRW [] = { 0x2B, 0x24, 0x08, 0x07, 0x01, 0x08}; -//1.3.36.8.7.1.9 Teletrust presentation types ptCorelEXC -static const unsigned char cvOID_ptCorelEXC [] = { 0x2B, 0x24, 0x08, 0x07, 0x01, 0x09}; -//1.3.36.8.7.1.10 Teletrust presentation types ptCorelPHT -static const unsigned char cvOID_ptCorelPHT [] = { 0x2B, 0x24, 0x08, 0x07, 0x01, 0x0A}; -//1.3.36.8.7.1.11 Teletrust presentation types ptDraw -static const unsigned char cvOID_ptDraw [] = { 0x2B, 0x24, 0x08, 0x07, 0x01, 0x0B}; -//1.3.36.8.7.1.12 Teletrust presentation types ptDVI -static const unsigned char cvOID_ptDVI [] = { 0x2B, 0x24, 0x08, 0x07, 0x01, 0x0C}; -//1.3.36.8.7.1.13 Teletrust presentation types ptEPS -static const unsigned char cvOID_ptEPS [] = { 0x2B, 0x24, 0x08, 0x07, 0x01, 0x0D}; -//1.3.36.8.7.1.14 Teletrust presentation types ptExcel -static const unsigned char cvOID_ptExcel [] = { 0x2B, 0x24, 0x08, 0x07, 0x01, 0x0E}; -//1.3.36.8.7.1.15 Teletrust presentation types ptGEM -static const unsigned char cvOID_ptGEM [] = { 0x2B, 0x24, 0x08, 0x07, 0x01, 0x0F}; -//1.3.36.8.7.1.16 Teletrust presentation types ptGIF -static const unsigned char cvOID_ptGIF [] = { 0x2B, 0x24, 0x08, 0x07, 0x01, 0x10}; -//1.3.36.8.7.1.17 Teletrust presentation types ptHPGL -static const unsigned char cvOID_ptHPGL [] = { 0x2B, 0x24, 0x08, 0x07, 0x01, 0x11}; -//1.3.36.8.7.1.18 Teletrust presentation types ptJPEG -static const unsigned char cvOID_ptJPEG [] = { 0x2B, 0x24, 0x08, 0x07, 0x01, 0x12}; -//1.3.36.8.7.1.19 Teletrust presentation types ptKodak -static const unsigned char cvOID_ptKodak [] = { 0x2B, 0x24, 0x08, 0x07, 0x01, 0x13}; -//1.3.36.8.7.1.20 Teletrust presentation types ptLaTeX -static const unsigned char cvOID_ptLaTeX [] = { 0x2B, 0x24, 0x08, 0x07, 0x01, 0x14}; -//1.3.36.8.7.1.21 Teletrust presentation types ptLotus -static const unsigned char cvOID_ptLotus [] = { 0x2B, 0x24, 0x08, 0x07, 0x01, 0x15}; -//1.3.36.8.7.1.22 Teletrust presentation types ptLotusPIC -static const unsigned char cvOID_ptLotusPIC [] = { 0x2B, 0x24, 0x08, 0x07, 0x01, 0x16}; -//1.3.36.8.7.1.23 Teletrust presentation types ptMacPICT -static const unsigned char cvOID_ptMacPICT [] = { 0x2B, 0x24, 0x08, 0x07, 0x01, 0x17}; -//1.3.36.8.7.1.24 Teletrust presentation types ptMacWord -static const unsigned char cvOID_ptMacWord [] = { 0x2B, 0x24, 0x08, 0x07, 0x01, 0x18}; -//1.3.36.8.7.1.25 Teletrust presentation types ptMSWfD -static const unsigned char cvOID_ptMSWfD [] = { 0x2B, 0x24, 0x08, 0x07, 0x01, 0x19}; -//1.3.36.8.7.1.26 Teletrust presentation types ptMSWord -static const unsigned char cvOID_ptMSWord [] = { 0x2B, 0x24, 0x08, 0x07, 0x01, 0x1A}; -//1.3.36.8.7.1.27 Teletrust presentation types ptMSWord2 -static const unsigned char cvOID_ptMSWord2 [] = { 0x2B, 0x24, 0x08, 0x07, 0x01, 0x1B}; -//1.3.36.8.7.1.28 Teletrust presentation types ptMSWord6 -static const unsigned char cvOID_ptMSWord6 [] = { 0x2B, 0x24, 0x08, 0x07, 0x01, 0x1C}; -//1.3.36.8.7.1.29 Teletrust presentation types ptMSWord8 -static const unsigned char cvOID_ptMSWord8 [] = { 0x2B, 0x24, 0x08, 0x07, 0x01, 0x1D}; -//1.3.36.8.7.1.30 Teletrust presentation types ptPDF -static const unsigned char cvOID_ptPDF [] = { 0x2B, 0x24, 0x08, 0x07, 0x01, 0x1E}; -//1.3.36.8.7.1.31 Teletrust presentation types ptPIF -static const unsigned char cvOID_ptPIF [] = { 0x2B, 0x24, 0x08, 0x07, 0x01, 0x1F}; -//1.3.36.8.7.1.32 Teletrust presentation types ptPostscript -static const unsigned char cvOID_ptPostscript [] = { 0x2B, 0x24, 0x08, 0x07, 0x01, 0x20}; -//1.3.36.8.7.1.33 Teletrust presentation types ptRTF -static const unsigned char cvOID_ptRTF [] = { 0x2B, 0x24, 0x08, 0x07, 0x01, 0x21}; -//1.3.36.8.7.1.34 Teletrust presentation types ptSCITEX -static const unsigned char cvOID_ptSCITEX [] = { 0x2B, 0x24, 0x08, 0x07, 0x01, 0x22}; -//1.3.36.8.7.1.35 Teletrust presentation types ptTAR -static const unsigned char cvOID_ptTAR [] = { 0x2B, 0x24, 0x08, 0x07, 0x01, 0x23}; -//1.3.36.8.7.1.36 Teletrust presentation types ptTarga -static const unsigned char cvOID_ptTarga [] = { 0x2B, 0x24, 0x08, 0x07, 0x01, 0x24}; -//1.3.36.8.7.1.37 Teletrust presentation types ptTeX -static const unsigned char cvOID_ptTeX [] = { 0x2B, 0x24, 0x08, 0x07, 0x01, 0x25}; -//1.3.36.8.7.1.38 Teletrust presentation types ptText -static const unsigned char cvOID_ptText [] = { 0x2B, 0x24, 0x08, 0x07, 0x01, 0x26}; -//1.3.36.8.7.1.39 Teletrust presentation types ptTIFF -static const unsigned char cvOID_ptTIFF [] = { 0x2B, 0x24, 0x08, 0x07, 0x01, 0x27}; -//1.3.36.8.7.1.40 Teletrust presentation types ptTIFF-FC -static const unsigned char cvOID_ptTIFF_FC [] = { 0x2B, 0x24, 0x08, 0x07, 0x01, 0x28}; -//1.3.36.8.7.1.41 Teletrust presentation types ptUID -static const unsigned char cvOID_ptUID [] = { 0x2B, 0x24, 0x08, 0x07, 0x01, 0x29}; -//1.3.36.8.7.1.42 Teletrust presentation types ptUUEncode -static const unsigned char cvOID_ptUUEncode [] = { 0x2B, 0x24, 0x08, 0x07, 0x01, 0x2A}; -//1.3.36.8.7.1.43 Teletrust presentation types ptWMF -static const unsigned char cvOID_ptWMF [] = { 0x2B, 0x24, 0x08, 0x07, 0x01, 0x2B}; -//1.3.36.8.7.1.44 Teletrust presentation types ptWordPerfect -static const unsigned char cvOID_ptWordPerfect [] = { 0x2B, 0x24, 0x08, 0x07, 0x01, 0x2C}; -//1.3.36.8.7.1.45 Teletrust presentation types ptWPGrph -static const unsigned char cvOID_ptWPGrph [] = { 0x2B, 0x24, 0x08, 0x07, 0x01, 0x2D}; -//1.3.101.1.4 Thawte thawte-ce -static const unsigned char cvOID_thawte_ce [] = { 0x2B, 0x65, 0x01, 0x04}; -//1.3.101.1.4.1 Thawte certificate extension strongExtranet -static const unsigned char cvOID_strongExtranet [] = { 0x2B, 0x65, 0x01, 0x04, 0x01}; -//2.5.4.0 X.520 id-at (2 5 4) objectClass -static const unsigned char cvOID_objectClass [] = { 0x55, 0x04, 0x00}; -//2.5.4.1 X.520 id-at (2 5 4) aliasedEntryName -static const unsigned char cvOID_aliasedEntryName [] = { 0x55, 0x04, 0x01}; -//2.5.4.2 X.520 id-at (2 5 4) knowledgeInformation -static const unsigned char cvOID_knowledgeInformation [] = { 0x55, 0x04, 0x02}; -//2.5.4.3 X.520 id-at (2 5 4) commonName -static const unsigned char cvOID_commonName [] = { 0x55, 0x04, 0x03}; -//2.5.4.4 X.520 id-at (2 5 4) surname -static const unsigned char cvOID_surname [] = { 0x55, 0x04, 0x04}; -//2.5.4.5 X.520 id-at (2 5 4) serialNumber -static const unsigned char cvOID_serialNumber [] = { 0x55, 0x04, 0x05}; -//2.5.4.6 X.520 id-at (2 5 4) countryName -static const unsigned char cvOID_countryName [] = { 0x55, 0x04, 0x06}; -//2.5.4.7 X.520 id-at (2 5 4) localityName -static const unsigned char cvOID_localityName [] = { 0x55, 0x04, 0x07}; -//2.5.4.7.1 X.520 id-at (2 5 4) collectiveLocalityName -static const unsigned char cvOID_collectiveLocalityName [] = { 0x55, 0x04, 0x07, 0x01}; -//2.5.4.8 X.520 id-at (2 5 4) stateOrProvinceName -static const unsigned char cvOID_stateOrProvinceName [] = { 0x55, 0x04, 0x08}; -//2.5.4.8.1 X.520 id-at (2 5 4) collectiveStateOrProvinceName -static const unsigned char cvOID_collectiveStateOrProvinceName [] = { 0x55, 0x04, 0x08, 0x01}; -//2.5.4.9 X.520 id-at (2 5 4) streetAddress -static const unsigned char cvOID_streetAddress [] = { 0x55, 0x04, 0x09}; -//2.5.4.9.1 X.520 id-at (2 5 4) collectiveStreetAddress -static const unsigned char cvOID_collectiveStreetAddress [] = { 0x55, 0x04, 0x09, 0x01}; -//2.5.4.10 X.520 id-at (2 5 4) organizationName -static const unsigned char cvOID_organizationName [] = { 0x55, 0x04, 0x0A}; -//2.5.4.10.1 X.520 id-at (2 5 4) collectiveOrganizationName -static const unsigned char cvOID_collectiveOrganizationName [] = { 0x55, 0x04, 0x0A, 0x01}; -//2.5.4.11 X.520 id-at (2 5 4) organizationalUnitName -static const unsigned char cvOID_organizationalUnitName [] = { 0x55, 0x04, 0x0B}; -//2.5.4.11.1 X.520 id-at (2 5 4) collectiveOrganizationalUnitName -static const unsigned char cvOID_collectiveOrganizationalUnitName [] = { 0x55, 0x04, 0x0B, 0x01}; -//2.5.4.12 X.520 id-at (2 5 4) title -static const unsigned char cvOID_title [] = { 0x55, 0x04, 0x0C}; -//2.5.4.13 X.520 id-at (2 5 4) description -static const unsigned char cvOID_description [] = { 0x55, 0x04, 0x0D}; -//2.5.4.14 X.520 id-at (2 5 4) searchGuide -static const unsigned char cvOID_searchGuide [] = { 0x55, 0x04, 0x0E}; -//2.5.4.15 X.520 id-at (2 5 4) businessCategory -static const unsigned char cvOID_businessCategory [] = { 0x55, 0x04, 0x0F}; -//2.5.4.16 X.520 id-at (2 5 4) postalAddress -static const unsigned char cvOID_postalAddress [] = { 0x55, 0x04, 0x10}; -//2.5.4.16.1 X.520 id-at (2 5 4) collectivePostalAddress -static const unsigned char cvOID_collectivePostalAddress [] = { 0x55, 0x04, 0x10, 0x01}; -//2.5.4.17 X.520 id-at (2 5 4) postalCode -static const unsigned char cvOID_postalCode [] = { 0x55, 0x04, 0x11}; -//2.5.4.17.1 X.520 id-at (2 5 4) collectivePostalCode -static const unsigned char cvOID_collectivePostalCode [] = { 0x55, 0x04, 0x11, 0x01}; -//2.5.4.18 X.520 id-at (2 5 4) postOfficeBox -static const unsigned char cvOID_postOfficeBox [] = { 0x55, 0x04, 0x12}; -//2.5.4.18.1 X.520 id-at (2 5 4) collectivePostOfficeBox -static const unsigned char cvOID_collectivePostOfficeBox [] = { 0x55, 0x04, 0x12, 0x01}; -//2.5.4.19 X.520 id-at (2 5 4) physicalDeliveryOfficeName -static const unsigned char cvOID_physicalDeliveryOfficeName [] = { 0x55, 0x04, 0x13}; -//2.5.4.19.1 X.520 id-at (2 5 4) collectivePhysicalDeliveryOfficeName -static const unsigned char cvOID_collectivePhysicalDeliveryOfficeName [] = { 0x55, 0x04, 0x13, 0x01}; -//2.5.4.20 X.520 id-at (2 5 4) telephoneNumber -static const unsigned char cvOID_telephoneNumber [] = { 0x55, 0x04, 0x14}; -//2.5.4.20.1 X.520 id-at (2 5 4) collectiveTelephoneNumber -static const unsigned char cvOID_collectiveTelephoneNumber [] = { 0x55, 0x04, 0x14, 0x01}; -//2.5.4.21 X.520 id-at (2 5 4) telexNumber -static const unsigned char cvOID_telexNumber [] = { 0x55, 0x04, 0x15}; -//2.5.4.21.1 X.520 id-at (2 5 4) collectiveTelexNumber -static const unsigned char cvOID_collectiveTelexNumber [] = { 0x55, 0x04, 0x15, 0x01}; -//2.5.4.22 X.520 id-at (2 5 4) teletexTerminalIdentifier -static const unsigned char cvOID_teletexTerminalIdentifier [] = { 0x55, 0x04, 0x16}; -//2.5.4.22.1 X.520 id-at (2 5 4) collectiveTeletexTerminalIdentifier -static const unsigned char cvOID_collectiveTeletexTerminalIdentifier [] = { 0x55, 0x04, 0x16, 0x01}; -//2.5.4.23 X.520 id-at (2 5 4) facsimileTelephoneNumber -static const unsigned char cvOID_facsimileTelephoneNumber [] = { 0x55, 0x04, 0x17}; -//2.5.4.23.1 X.520 id-at (2 5 4) collectiveFacsimileTelephoneNumber -static const unsigned char cvOID_collectiveFacsimileTelephoneNumber [] = { 0x55, 0x04, 0x17, 0x01}; -//2.5.4.24 X.520 id-at (2 5 4) x121Address -static const unsigned char cvOID_x121Address [] = { 0x55, 0x04, 0x18}; -//2.5.4.25 X.520 id-at (2 5 4) internationalISDNNumber -static const unsigned char cvOID_internationalISDNNumber [] = { 0x55, 0x04, 0x19}; -//2.5.4.25.1 X.520 id-at (2 5 4) collectiveInternationalISDNNumber -static const unsigned char cvOID_collectiveInternationalISDNNumber [] = { 0x55, 0x04, 0x19, 0x01}; -//2.5.4.26 X.520 id-at (2 5 4) registeredAddress -static const unsigned char cvOID_registeredAddress [] = { 0x55, 0x04, 0x1A}; -//2.5.4.27 X.520 id-at (2 5 4) destinationIndicator -static const unsigned char cvOID_destinationIndicator [] = { 0x55, 0x04, 0x1B}; -//2.5.4.28 X.520 id-at (2 5 4) preferredDeliveryMehtod -static const unsigned char cvOID_preferredDeliveryMehtod [] = { 0x55, 0x04, 0x1C}; -//2.5.4.29 X.520 id-at (2 5 4) presentationAddress -static const unsigned char cvOID_presentationAddress [] = { 0x55, 0x04, 0x1D}; -//2.5.4.30 X.520 id-at (2 5 4) supportedApplicationContext -static const unsigned char cvOID_supportedApplicationContext [] = { 0x55, 0x04, 0x1E}; -//2.5.4.31 X.520 id-at (2 5 4) member -static const unsigned char cvOID_member [] = { 0x55, 0x04, 0x1F}; -//2.5.4.32 X.520 id-at (2 5 4) owner -static const unsigned char cvOID_owner [] = { 0x55, 0x04, 0x20}; -//2.5.4.33 X.520 id-at (2 5 4) roleOccupant -static const unsigned char cvOID_roleOccupant [] = { 0x55, 0x04, 0x21}; -//2.5.4.34 X.520 id-at (2 5 4) seeAlso -static const unsigned char cvOID_seeAlso [] = { 0x55, 0x04, 0x22}; -//2.5.4.35 X.520 id-at (2 5 4) userPassword -static const unsigned char cvOID_userPassword [] = { 0x55, 0x04, 0x23}; -//2.5.4.36 X.520 id-at (2 5 4) userCertificate -static const unsigned char cvOID_userCertificate [] = { 0x55, 0x04, 0x24}; -//2.5.4.37 X.520 id-at (2 5 4) caCertificate -static const unsigned char cvOID_caCertificate [] = { 0x55, 0x04, 0x25}; -//2.5.4.38 X.520 id-at (2 5 4) authorityRevocationList -static const unsigned char cvOID_authorityRevocationList [] = { 0x55, 0x04, 0x26}; -//2.5.4.39 X.520 id-at (2 5 4) certificateRevocationList -static const unsigned char cvOID_certificateRevocationList [] = { 0x55, 0x04, 0x27}; -//2.5.4.40 X.520 id-at (2 5 4) crossCertificatePair -static const unsigned char cvOID_crossCertificatePair_2 [] = { 0x55, 0x04, 0x28}; -//2.5.4.41 X.520 id-at (2 5 4) name -static const unsigned char cvOID_name [] = { 0x55, 0x04, 0x29}; -//2.5.4.42 X.520 id-at (2 5 4) givenName -static const unsigned char cvOID_givenName [] = { 0x55, 0x04, 0x2A}; -//2.5.4.43 X.520 id-at (2 5 4) initials -static const unsigned char cvOID_initials [] = { 0x55, 0x04, 0x2B}; -//2.5.4.44 X.520 id-at (2 5 4) generationQualifier -static const unsigned char cvOID_generationQualifier [] = { 0x55, 0x04, 0x2C}; -//2.5.4.45 X.520 id-at (2 5 4) uniqueIdentifier -static const unsigned char cvOID_uniqueIdentifier [] = { 0x55, 0x04, 0x2D}; -//2.5.4.46 X.520 id-at (2 5 4) dnQualifier -static const unsigned char cvOID_dnQualifier [] = { 0x55, 0x04, 0x2E}; -//2.5.4.47 X.520 id-at (2 5 4) enhancedSearchGuide -static const unsigned char cvOID_enhancedSearchGuide [] = { 0x55, 0x04, 0x2F}; -//2.5.4.48 X.520 id-at (2 5 4) protocolInformation -static const unsigned char cvOID_protocolInformation [] = { 0x55, 0x04, 0x30}; -//2.5.4.49 X.520 id-at (2 5 4) distinguishedName -static const unsigned char cvOID_distinguishedName [] = { 0x55, 0x04, 0x31}; -//2.5.4.50 X.520 id-at (2 5 4) uniqueMember -static const unsigned char cvOID_uniqueMember [] = { 0x55, 0x04, 0x32}; -//2.5.4.51 X.520 id-at (2 5 4) houseIdentifier -static const unsigned char cvOID_houseIdentifier [] = { 0x55, 0x04, 0x33}; -//2.5.4.52 X.520 id-at (2 5 4) supportedAlgorithms -static const unsigned char cvOID_supportedAlgorithms [] = { 0x55, 0x04, 0x34}; -//2.5.4.53 X.520 id-at (2 5 4) deltaRevocationList -static const unsigned char cvOID_deltaRevocationList [] = { 0x55, 0x04, 0x35}; -//2.5.4.55 X.520 id-at (2 5 4) clearance -static const unsigned char cvOID_clearance [] = { 0x55, 0x04, 0x36}; -//2.5.4.58 X.520 id-at (2 5 4) crossCertificatePair -static const unsigned char cvOID_crossCertificatePair_1 [] = { 0x55, 0x04, 0x3A}; -//2.5.4.65 Naming attributes of type X520Pseudonym -static const unsigned char cvOID_pseudonym[] = { 0x55, 0x04, 0x41}; -//2.5.8.1.1 X.500 algorithms. Ambiguous, since no padding rules specified rsa -static const unsigned char cvOID_rsa_X500 [] = { 0x55, 0x08, 0x01, 0x01}; -//2.5.29.1 X.509 id-ce (2 5 29). Deprecated, use (2 5 29 35) instead authorityKeyIdentifier -static const unsigned char cvOID_authorityKeyIdentifier_old[] = { 0x55, 0x1D, 0x01}; -//2.5.29.2 X.509 id-ce (2 5 29). Obsolete, use keyUsage/extKeyUsage instead keyAttributes -static const unsigned char cvOID_keyAttributes [] = { 0x55, 0x1D, 0x02}; -//2.5.29.3 X.509 id-ce (2 5 29). Deprecated, use (2 5 29 32) instead certificatePolicies -static const unsigned char cvOID_certificatePolicies_old [] = { 0x55, 0x1D, 0x03}; -//2.5.29.4 X.509 id-ce (2 5 29). Obsolete, use keyUsage/extKeyUsage instead keyUsageRestriction -static const unsigned char cvOID_keyUsageRestriction [] = { 0x55, 0x1D, 0x04}; -//2.5.29.5 X.509 id-ce (2 5 29). Deprecated, use (2 5 29 33) instead policyMapping -static const unsigned char cvOID_policyMapping [] = { 0x55, 0x1D, 0x05}; -//2.5.29.6 X.509 id-ce (2 5 29). Obsolete, use namestatic constraints instead subtreesstatic constraint -static const unsigned char cvOID_subtreesconstraint [] = { 0x55, 0x1D, 0x06}; -//2.5.29.7 X.509 id-ce (2 5 29). Deprecated, use (2 5 29 17) instead subjectAltName -static const unsigned char cvOID_subjectAltName_old [] = { 0x55, 0x1D, 0x07}; -//2.5.29.8 X.509 id-ce (2 5 29). Deprecated, use (2 5 29 18) instead issuerAltName -static const unsigned char cvOID_issuerAltName_old [] = { 0x55, 0x1D, 0x08}; -//2.5.29.9 X.509 id-ce (2 5 29) subjectDirectoryAttributes -static const unsigned char cvOID_subjectDirectoryAttributes [] = { 0x55, 0x1D, 0x09}; -//2.5.29.10 X.509 id-ce (2 5 29). Deprecated, use (2 5 29 19) instead basicstatic constraints -static const unsigned char cvOID_basicconstraints_old [] = { 0x55, 0x1D, 0x0A}; -//2.5.29.11 X.509 id-ce (2 5 29). Deprecated, use (2 5 29 30) instead namestatic constraints -static const unsigned char cvOID_nameconstraints_old [] = { 0x55, 0x1D, 0x0B}; -//2.5.29.12 X.509 id-ce (2 5 29). Deprecated, use (2 5 29 36) instead policystatic constraints -static const unsigned char cvOID_policyconstraints_old_1 [] = { 0x55, 0x1D, 0x0C}; -//2.5.29.13 X.509 id-ce (2 5 29). Deprecated, use (2 5 29 19) instead basicstatic constraints -static const unsigned char cvOID_basicconstraints_2 [] = { 0x55, 0x1D, 0x0D}; -//2.5.29.14 X.509 id-ce (2 5 29) subjectKeyIdentifier -static const unsigned char cvOID_subjectKeyIdentifier[] = { 0x55, 0x1D, 0x0E}; -//2.5.29.15 X.509 id-ce (2 5 29) keyUsage -static const unsigned char cvOID_keyUsage[] = { 0x55, 0x1D, 0x0F}; -//2.5.29.16 X.509 id-ce (2 5 29) privateKeyUsagePeriod -static const unsigned char cvOID_privateKeyUsagePeriod [] = { 0x55, 0x1D, 0x10}; -//2.5.29.17 X.509 id-ce (2 5 29) subjectAltName -static const unsigned char cvOID_subjectAltName [] = { 0x55, 0x1D, 0x11}; -//2.5.29.18 X.509 id-ce (2 5 29) issuerAltName -static const unsigned char cvOID_issuerAltName [] = { 0x55, 0x1D, 0x12}; -//2.5.29.19 X.509 id-ce (2 5 29) basicstatic constraints -static const unsigned char cvOID_basicconstraints[] = { 0x55, 0x1D, 0x13}; -//2.5.29.20 X.509 id-ce (2 5 29) cRLNumber -static const unsigned char cvOID_cRLNumber [] = { 0x55, 0x1D, 0x14}; -//2.5.29.21 X.509 id-ce (2 5 29) cRLReason -static const unsigned char cvOID_cRLReason [] = { 0x55, 0x1D, 0x15}; -//2.5.29.22 X.509 id-ce (2 5 29). Deprecated, alternative OID uncertain expirationDate -static const unsigned char cvOID_expirationDate [] = { 0x55, 0x1D, 0x16}; -//2.5.29.23 X.509 id-ce (2 5 29) instructionCode -static const unsigned char cvOID_instructionCode [] = { 0x55, 0x1D, 0x17}; -//2.5.29.24 X.509 id-ce (2 5 29) invalidityDate -static const unsigned char cvOID_invalidityDate [] = { 0x55, 0x1D, 0x18}; -//2.5.29.25 X.509 id-ce (2 5 29). Deprecated, use (2 5 29 31) instead cRLDistributionPoints -static const unsigned char cvOID_cRLDistributionPoints_old [] = { 0x55, 0x1D, 0x19}; -//2.5.29.26 X.509 id-ce (2 5 29). Deprecated, use (2 5 29 28) instead issuingDistributionPoint -static const unsigned char cvOID_issuingDistributionPoint_old [] = { 0x55, 0x1D, 0x1A}; -//2.5.29.27 X.509 id-ce (2 5 29) deltaCRLIndicator -static const unsigned char cvOID_deltaCRLIndicator [] = { 0x55, 0x1D, 0x1B}; -//2.5.29.28 X.509 id-ce (2 5 29) issuingDistributionPoint -static const unsigned char cvOID_issuingDistributionPoint [] = { 0x55, 0x1D, 0x1C}; -//2.5.29.29 X.509 id-ce (2 5 29) certificateIssuer -static const unsigned char cvOID_certificateIssuer [] = { 0x55, 0x1D, 0x1D}; -//2.5.29.30 X.509 id-ce (2 5 29) namestatic constraints -static const unsigned char cvOID_nameconstraints [] = { 0x55, 0x1D, 0x1E}; -//2.5.29.31 X.509 id-ce (2 5 29) cRLDistributionPoints -static const unsigned char cvOID_cRLDistributionPoints[] = { 0x55, 0x1D, 0x1F}; -//2.5.29.32 X.509 id-ce (2 5 29) certificatePolicies -static const unsigned char cvOID_certificatePolicies [] = { 0x55, 0x1D, 0x20}; -//2.5.29.32.0 X.509 id-ce (2 5 29.0) anyPolicies -static const unsigned char cvOID_anyPolicies [] = { 0x55, 0x1D, 0x20, 0x00}; -//2.5.29.33 X.509 id-ce (2 5 29) policyMappings -static const unsigned char cvOID_policyMappings [] = { 0x55, 0x1D, 0x21}; -//2.5.29.34 X.509 id-ce (2 5 29). Deprecated, use (2 5 29 36) instead policystatic constraints -static const unsigned char cvOID_policyconstraints_old_2 [] = { 0x55, 0x1D, 0x22}; -//2.5.29.35 X.509 id-ce (2 5 29) authorityKeyIdentifier -static const unsigned char cvOID_authorityKeyIdentifier [] = { 0x55, 0x1D, 0x23}; -//2.5.29.36 X.509 id-ce (2 5 29) policystatic constraints -static const unsigned char cvOID_policyconstraints [] = { 0x55, 0x1D, 0x24}; -//2.5.29.37 X.509 id-ce (2 5 29) extKeyUsage -static const unsigned char cvOID_extKeyUsage [] = { 0x55, 0x1D, 0x25}; -//2.5.29.37.0 anyExtendedKeyUsage id-ce-extKeyUsage 0 -static const unsigned char cvOID_anyExtendedKeyUsage [] = { 0x55, 0x1D, 0x25, 0x00}; -//ame -//2.5.29.46 X.509 id-ce (2 5 29) id-ce-freshestCRL -static const unsigned char cvOID_freshestCRL [] = { 0x55, 0x1D, 0x2E}; -//2.5.29.54 X.509 id-ce (2 5 29) inhibitAnyPolicy -static const unsigned char cvOID_inhibitAnyPolicy [] = { 0x55, 0x1D, 0x36}; - -//2.16.840.1.101.2.1.1.1 SDN.700 INFOSEC algorithms sdnsSignatureAlgorithm -static const unsigned char cvOID_sdnsSignatureAlgorithm [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x01, 0x01}; -//2.16.840.1.101.2.1.1.2 SDN.700 INFOSEC algorithms. Formerly known as mosaicSignatureAlgorithm, this OID is better known as dsaWithSHA-1. fortezzaSignatureAlgorithm -static const unsigned char cvOID_fortezzaSignatureAlgorithm [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x01, 0x02}; -//2.16.840.1.101.2.1.1.3 SDN.700 INFOSEC algorithms sdnsConfidentialityAlgorithm -static const unsigned char cvOID_sdnsConfidentialityAlgorithm [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x01, 0x03}; -//2.16.840.1.101.2.1.1.4 SDN.700 INFOSEC algorithms. Formerly known as mosaicConfidentialityAlgorithm fortezzaConfidentialityAlgorithm -static const unsigned char cvOID_fortezzaConfidentialityAlgorithm [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x01, 0x04}; -//2.16.840.1.101.2.1.1.5 SDN.700 INFOSEC algorithms sdnsIntegrityAlgorithm -static const unsigned char cvOID_sdnsIntegrityAlgorithm [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x01, 0x05}; -//2.16.840.1.101.2.1.1.6 SDN.700 INFOSEC algorithms. Formerly known as mosaicIntegrityAlgorithm fortezzaIntegrityAlgorithm -static const unsigned char cvOID_fortezzaIntegrityAlgorithm [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x01, 0x06}; -//2.16.840.1.101.2.1.1.7 SDN.700 INFOSEC algorithms sdnsTokenProtectionAlgorithm -static const unsigned char cvOID_sdnsTokenProtectionAlgorithm [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x01, 0x07}; -//2.16.840.1.101.2.1.1.8 SDN.700 INFOSEC algorithms. Formerly know as mosaicTokenProtectionAlgorithm fortezzaTokenProtectionAlgorithm -static const unsigned char cvOID_fortezzaTokenProtectionAlgorithm [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x01, 0x08}; -//2.16.840.1.101.2.1.1.9 SDN.700 INFOSEC algorithms sdnsKeyManagementAlgorithm -static const unsigned char cvOID_sdnsKeyManagementAlgorithm [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x01, 0x09}; -//2.16.840.1.101.2.1.1.10 SDN.700 INFOSEC algorithms. Formerly known as mosaicKeyManagementAlgorithm fortezzaKeyManagementAlgorithm -static const unsigned char cvOID_fortezzaKeyManagementAlgorithm [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x01, 0x0A}; -//2.16.840.1.101.2.1.1.11 SDN.700 INFOSEC algorithms sdnsKMandSigAlgorithm -static const unsigned char cvOID_sdnsKMandSigAlgorithm [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x01, 0x0B}; -//2.16.840.1.101.2.1.1.12 SDN.700 INFOSEC algorithms. Formerly known as mosaicKMandSigAlgorithm fortezzaKMandSigAlgorithm -static const unsigned char cvOID_fortezzaKMandSigAlgorithm [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x01, 0x0C}; -//2.16.840.1.101.2.1.1.13 SDN.700 INFOSEC algorithms suiteASignatureAlgorithm -static const unsigned char cvOID_suiteASignatureAlgorithm [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x01, 0x0D}; -//2.16.840.1.101.2.1.1.14 SDN.700 INFOSEC algorithms suiteAConfidentialityAlgorithm -static const unsigned char cvOID_suiteAConfidentialityAlgorithm [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x01, 0x0E}; -//2.16.840.1.101.2.1.1.15 SDN.700 INFOSEC algorithms suiteAIntegrityAlgorithm -static const unsigned char cvOID_suiteAIntegrityAlgorithm [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x01, 0x0F}; -//2.16.840.1.101.2.1.1.16 SDN.700 INFOSEC algorithms suiteATokenProtectionAlgorithm -static const unsigned char cvOID_suiteATokenProtectionAlgorithm [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x01, 0x10}; -//2.16.840.1.101.2.1.1.17 SDN.700 INFOSEC algorithms suiteAKeyManagementAlgorithm -static const unsigned char cvOID_suiteAKeyManagementAlgorithm [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x01, 0x11}; -//2.16.840.1.101.2.1.1.18 SDN.700 INFOSEC algorithms suiteAKMandSigAlgorithm -static const unsigned char cvOID_suiteAKMandSigAlgorithm [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x01, 0x12}; -//2.16.840.1.101.2.1.1.19 SDN.700 INFOSEC algorithms. Formerly known as mosaicUpdatedSigAlgorithm fortezzaUpdatedSigAlgorithm -static const unsigned char cvOID_fortezzaUpdatedSigAlgorithm [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x01, 0x13}; -//2.16.840.1.101.2.1.1.20 SDN.700 INFOSEC algorithms. Formerly known as mosaicKMandUpdSigAlgorithms fortezzaKMandUpdSigAlgorithms -static const unsigned char cvOID_fortezzaKMandUpdSigAlgorithms [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x01, 0x14}; -//2.16.840.1.101.2.1.1.21 SDN.700 INFOSEC algorithms. Formerly known as mosaicUpdatedIntegAlgorithm fortezzaUpdatedIntegAlgorithm -static const unsigned char cvOID_fortezzaUpdatedIntegAlgorithm [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x01, 0x15}; -//2.16.840.1.101.2.1.1.22 SDN.700 INFOSEC algorithms. Formerly known as mosaicKeyEncryptionAlgorithm keyExchangeAlgorithm -static const unsigned char cvOID_keyExchangeAlgorithm [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x01, 0x16}; -//2.16.840.1.101.2.1.1.23 SDN.700 INFOSEC algorithms fortezzaWrap80Algorithm -static const unsigned char cvOID_fortezzaWrap80Algorithm [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x01, 0x17}; -//2.16.840.1.101.2.1.1.24 SDN.700 INFOSEC algorithms kEAKeyEncryptionAlgorithm -static const unsigned char cvOID_kEAKeyEncryptionAlgorithm [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x01, 0x18}; -//2.16.840.1.101.2.1.2.1 SDN.700 INFOSEC format rfc822MessageFormat -static const unsigned char cvOID_rfc822MessageFormat [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x02, 0x01}; -//2.16.840.1.101.2.1.2.2 SDN.700 INFOSEC format emptyContent -static const unsigned char cvOID_emptyContent [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x02, 0x02}; -//2.16.840.1.101.2.1.2.3 SDN.700 INFOSEC format cspContentType -static const unsigned char cvOID_cspContentType [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x02, 0x03}; -//2.16.840.1.101.2.1.2.42 SDN.700 INFOSEC format mspRev3ContentType -static const unsigned char cvOID_mspRev3ContentType [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x02, 0x2A}; -//2.16.840.1.101.2.1.2.48 SDN.700 INFOSEC format mspContentType -static const unsigned char cvOID_mspContentType [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x02, 0x30}; -//2.16.840.1.101.2.1.2.49 SDN.700 INFOSEC format mspRekeyAgentProtocol -static const unsigned char cvOID_mspRekeyAgentProtocol [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x02, 0x31}; -//2.16.840.1.101.2.1.2.50 SDN.700 INFOSEC format mspMMP -static const unsigned char cvOID_mspMMP [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x02, 0x32}; -//2.16.840.1.101.2.1.2.66 SDN.700 INFOSEC format mspRev3-1ContentType -static const unsigned char cvOID_mspRev3_1ContentType [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x02, 0x42}; -//2.16.840.1.101.2.1.2.72 SDN.700 INFOSEC format forwardedMSPMessageBodyPart -static const unsigned char cvOID_forwardedMSPMessageBodyPart [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x02, 0x48}; -//2.16.840.1.101.2.1.2.73 SDN.700 INFOSEC format mspForwardedMessageParameters -static const unsigned char cvOID_mspForwardedMessageParameters [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x02, 0x49}; -//2.16.840.1.101.2.1.2.74 SDN.700 INFOSEC format forwardedCSPMsgBodyPart -static const unsigned char cvOID_forwardedCSPMsgBodyPart [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x02, 0x50}; -//2.16.840.1.101.2.1.2.75 SDN.700 INFOSEC format cspForwardedMessageParameters -static const unsigned char cvOID_cspForwardedMessageParameters [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x02, 0x51}; -//2.16.840.1.101.2.1.2.76 SDN.700 INFOSEC format mspMMP2 -static const unsigned char cvOID_mspMMP2 [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x02, 0x52}; -//2.16.840.1.101.2.1.3.1 SDN.700 INFOSEC policy sdnsSecurityPolicy -static const unsigned char cvOID_sdnsSecurityPolicy [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x03, 0x01}; -//2.16.840.1.101.2.1.3.2 SDN.700 INFOSEC policy sdnsPRBAC -static const unsigned char cvOID_sdnsPRBAC [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x03, 0x02}; -//2.16.840.1.101.2.1.3.3 SDN.700 INFOSEC policy mosaicPRBAC -static const unsigned char cvOID_mosaicPRBAC [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x03, 0x03}; -//2.16.840.1.101.2.1.3.10 SDN.700 INFOSEC policy siSecurityPolicy -static const unsigned char cvOID_siSecurityPolicy [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x03, 0x0A}; -//2.16.840.1.101.2.1.3.10.0 SDN.700 INFOSEC policy (obsolete) siNASP -static const unsigned char cvOID_siNASP [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x03, 0x0A, 0x00}; -//2.16.840.1.101.2.1.3.10.1 SDN.700 INFOSEC policy (obsolete) siELCO -static const unsigned char cvOID_siELCO [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x03, 0x0A, 0x01}; -//2.16.840.1.101.2.1.3.10.2 SDN.700 INFOSEC policy (obsolete) siTK -static const unsigned char cvOID_siTK [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x03, 0x0A, 0x02}; -//2.16.840.1.101.2.1.3.10.3 SDN.700 INFOSEC policy (obsolete) siDSAP -static const unsigned char cvOID_siDSAP [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x03, 0x0A, 0x03}; -//2.16.840.1.101.2.1.3.10.4 SDN.700 INFOSEC policy (obsolete) siSSSS -static const unsigned char cvOID_siSSSS [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x03, 0x0A, 0x04}; -//2.16.840.1.101.2.1.3.10.5 SDN.700 INFOSEC policy (obsolete) siDNASP -static const unsigned char cvOID_siDNASP [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x03, 0x0A, 0x05}; -//2.16.840.1.101.2.1.3.10.6 SDN.700 INFOSEC policy (obsolete) siBYEMAN -static const unsigned char cvOID_siBYEMAN [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x03, 0x0A, 0x06}; -//2.16.840.1.101.2.1.3.10.7 SDN.700 INFOSEC policy (obsolete) siREL-US -static const unsigned char cvOID_siREL_US [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x03, 0x0A, 0x07}; -//2.16.840.1.101.2.1.3.10.8 SDN.700 INFOSEC policy (obsolete) siREL-AUS -static const unsigned char cvOID_siREL_AUS [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x03, 0x0A, 0x08}; -//2.16.840.1.101.2.1.3.10.9 SDN.700 INFOSEC policy (obsolete) siREL-CAN -static const unsigned char cvOID_siREL_CAN [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x03, 0x0A, 0x09}; -//2.16.840.1.101.2.1.3.10.10 SDN.700 INFOSEC policy (obsolete) siREL_UK -static const unsigned char cvOID_siREL_UK [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x03, 0x0A, 0x0A}; -//2.16.840.1.101.2.1.3.10.11 SDN.700 INFOSEC policy (obsolete) siREL-NZ -static const unsigned char cvOID_siREL_NZ [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x03, 0x0A, 0x0B}; -//2.16.840.1.101.2.1.3.10.12 SDN.700 INFOSEC policy (obsolete) siGeneric -static const unsigned char cvOID_siGeneric [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x03, 0x0A, 0x0C}; -//2.16.840.1.101.2.1.3.11 SDN.700 INFOSEC policy genser -static const unsigned char cvOID_genser [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x03, 0x0B}; -//2.16.840.1.101.2.1.3.11.0 SDN.700 INFOSEC policy (obsolete) genserNations -static const unsigned char cvOID_genserNations [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x03, 0x0B, 0x00}; -//2.16.840.1.101.2.1.3.11.1 SDN.700 INFOSEC policy (obsolete) genserComsec -static const unsigned char cvOID_genserComsec [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x03, 0x0B, 0x01}; -//2.16.840.1.101.2.1.3.11.2 SDN.700 INFOSEC policy (obsolete) genserAcquisition -static const unsigned char cvOID_genserAcquisition [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x03, 0x0B, 0x02}; -//2.16.840.1.101.2.1.3.11.3 SDN.700 INFOSEC policy genserSecurityCategories -static const unsigned char cvOID_genserSecurityCategories [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x03, 0x0B, 0x03}; -//2.16.840.1.101.2.1.3.11.3.0 SDN.700 INFOSEC GENSER policy genserTagSetName -static const unsigned char cvOID_genserTagSetName [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x03, 0x0B, 0x03, 0x00}; -//2.16.840.1.101.2.1.3.12 SDN.700 INFOSEC policy defaultSecurityPolicy -static const unsigned char cvOID_defaultSecurityPolicy [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x03, 0x0C}; -//2.16.840.1.101.2.1.3.13 SDN.700 INFOSEC policy capcoMarkings -static const unsigned char cvOID_capcoMarkings [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x03, 0x0D}; -//2.16.840.1.101.2.1.3.13.0 SDN.700 INFOSEC policy CAPCO markings capcoSecurityCategories -static const unsigned char cvOID_capcoSecurityCategories [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x03, 0x0D, 0x00}; -//2.16.840.1.101.2.1.3.13.0.1 SDN.700 INFOSEC policy CAPCO markings capcoTagSetName1 -static const unsigned char cvOID_capcoTagSetName1 [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x03, 0x0D, 0x00, 0x01}; -//2.16.840.1.101.2.1.3.13.0.2 SDN.700 INFOSEC policy CAPCO markings capcoTagSetName2 -static const unsigned char cvOID_capcoTagSetName2 [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x03, 0x0D, 0x00, 0x02}; -//2.16.840.1.101.2.1.3.13.0.3 SDN.700 INFOSEC policy CAPCO markings capcoTagSetName3 -static const unsigned char cvOID_capcoTagSetName3 [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x03, 0x0D, 0x00, 0x03}; -//2.16.840.1.101.2.1.3.13.0.4 SDN.700 INFOSEC policy CAPCO markings capcoTagSetName4 -static const unsigned char cvOID_capcoTagSetName4 [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x03, 0x0D, 0x00, 0x04}; -//2.16.840.1.101.2.1.5.1 SDN.700 INFOSEC attributes (superseded) sdnsKeyManagementCertificate -static const unsigned char cvOID_sdnsKeyManagementCertificate [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x05, 0x01}; -//2.16.840.1.101.2.1.5.2 SDN.700 INFOSEC attributes (superseded) sdnsUserSignatureCertificate -static const unsigned char cvOID_sdnsUserSignatureCertificate [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x05, 0x02}; -//2.16.840.1.101.2.1.5.3 SDN.700 INFOSEC attributes (superseded) sdnsKMandSigCertificate -static const unsigned char cvOID_sdnsKMandSigCertificate [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x05, 0x03}; -//2.16.840.1.101.2.1.5.4 SDN.700 INFOSEC attributes (superseded) fortezzaKeyManagementCertificate -static const unsigned char cvOID_fortezzaKeyManagementCertificate [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x05, 0x04}; -//2.16.840.1.101.2.1.5.5 SDN.700 INFOSEC attributes (superseded) fortezzaKMandSigCertificate -static const unsigned char cvOID_fortezzaKMandSigCertificate [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x05, 0x05}; -//2.16.840.1.101.2.1.5.6 SDN.700 INFOSEC attributes (superseded) fortezzaUserSignatureCertificate -static const unsigned char cvOID_fortezzaUserSignatureCertificate [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x05, 0x06}; -//2.16.840.1.101.2.1.5.7 SDN.700 INFOSEC attributes (superseded) fortezzaCASignatureCertificate -static const unsigned char cvOID_fortezzaCASignatureCertificate [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x05, 0x07}; -//2.16.840.1.101.2.1.5.8 SDN.700 INFOSEC attributes (superseded) sdnsCASignatureCertificate -static const unsigned char cvOID_sdnsCASignatureCertificate [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x05, 0x08}; -//2.16.840.1.101.2.1.5.10 SDN.700 INFOSEC attributes (superseded) auxiliaryVector -static const unsigned char cvOID_auxiliaryVector [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x05, 0x0A}; -//2.16.840.1.101.2.1.5.11 SDN.700 INFOSEC attributes mlReceiptPolicy -static const unsigned char cvOID_mlReceiptPolicy [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x05, 0x0B}; -//2.16.840.1.101.2.1.5.12 SDN.700 INFOSEC attributes mlMembership -static const unsigned char cvOID_mlMembership [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x05, 0x0C}; -//2.16.840.1.101.2.1.5.13 SDN.700 INFOSEC attributes mlAdministrators -static const unsigned char cvOID_mlAdministrators [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x05, 0x0D}; -//2.16.840.1.101.2.1.5.14 SDN.700 INFOSEC attributes alid -static const unsigned char cvOID_alid [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x05, 0x0E}; -//2.16.840.1.101.2.1.5.20 SDN.700 INFOSEC attributes janUKMs -static const unsigned char cvOID_janUKMs [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x05, 0x14}; -//2.16.840.1.101.2.1.5.21 SDN.700 INFOSEC attributes febUKMs -static const unsigned char cvOID_febUKMs [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x05, 0x15}; -//2.16.840.1.101.2.1.5.22 SDN.700 INFOSEC attributes marUKMs -static const unsigned char cvOID_marUKMs [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x05, 0x16}; -//2.16.840.1.101.2.1.5.23 SDN.700 INFOSEC attributes aprUKMs -static const unsigned char cvOID_aprUKMs [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x05, 0x17}; -//2.16.840.1.101.2.1.5.24 SDN.700 INFOSEC attributes mayUKMs -static const unsigned char cvOID_mayUKMs [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x05, 0x18}; -//2.16.840.1.101.2.1.5.25 SDN.700 INFOSEC attributes junUKMs -static const unsigned char cvOID_junUKMs [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x05, 0x19}; -//2.16.840.1.101.2.1.5.26 SDN.700 INFOSEC attributes julUKMs -static const unsigned char cvOID_julUKMs [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x05, 0x1A}; -//2.16.840.1.101.2.1.5.27 SDN.700 INFOSEC attributes augUKMs -static const unsigned char cvOID_augUKMs [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x05, 0x1B}; -//2.16.840.1.101.2.1.5.28 SDN.700 INFOSEC attributes sepUKMs -static const unsigned char cvOID_sepUKMs [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x05, 0x1C}; -//2.16.840.1.101.2.1.5.29 SDN.700 INFOSEC attributes octUKMs -static const unsigned char cvOID_octUKMs [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x05, 0x1D}; -//2.16.840.1.101.2.1.5.30 SDN.700 INFOSEC attributes novUKMs -static const unsigned char cvOID_novUKMs [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x05, 0x1E}; -//2.16.840.1.101.2.1.5.21 SDN.700 INFOSEC attributes decUKMs -static const unsigned char cvOID_decUKMs [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x05, 0x1F}; -//2.16.840.1.101.2.1.5.40 SDN.700 INFOSEC attributes metaSDNSckl -static const unsigned char cvOID_metaSDNSckl [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x05, 0x28}; -//2.16.840.1.101.2.1.5.41 SDN.700 INFOSEC attributes sdnsCKL -static const unsigned char cvOID_sdnsCKL [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x05, 0x29}; -//2.16.840.1.101.2.1.5.42 SDN.700 INFOSEC attributes metaSDNSsignatureCKL -static const unsigned char cvOID_metaSDNSsignatureCKL [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x05, 0x2A}; -//2.16.840.1.101.2.1.5.43 SDN.700 INFOSEC attributes sdnsSignatureCKL -static const unsigned char cvOID_sdnsSignatureCKL [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x05, 0x2B}; -//2.16.840.1.101.2.1.5.44 SDN.700 INFOSEC attributes sdnsCertificateRevocationList -static const unsigned char cvOID_sdnsCertificateRevocationList [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x05, 0x2C}; -//2.16.840.1.101.2.1.5.45 SDN.700 INFOSEC attributes (superseded) fortezzaCertificateRevocationList -static const unsigned char cvOID_fortezzaCertificateRevocationList [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x05, 0x2D}; -//2.16.840.1.101.2.1.5.46 SDN.700 INFOSEC attributes fortezzaCKL -static const unsigned char cvOID_fortezzaCKL [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x05, 0x2E}; -//2.16.840.1.101.2.1.5.47 SDN.700 INFOSEC attributes alExemptedAddressProcessor -static const unsigned char cvOID_alExemptedAddressProcessor [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x05, 0x2F}; -//2.16.840.1.101.2.1.5.48 SDN.700 INFOSEC attributes (obsolete) guard -static const unsigned char cvOID_guard [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x05, 0x30}; -//2.16.840.1.101.2.1.5.49 SDN.700 INFOSEC attributes (obsolete) algorithmsSupported -static const unsigned char cvOID_algorithmsSupported [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x05, 0x31}; -//2.16.840.1.101.2.1.5.50 SDN.700 INFOSEC attributes (obsolete) suiteAKeyManagementCertificate -static const unsigned char cvOID_suiteAKeyManagementCertificate [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x05, 0x32}; -//2.16.840.1.101.2.1.5.51 SDN.700 INFOSEC attributes (obsolete) suiteAKMandSigCertificate -static const unsigned char cvOID_suiteAKMandSigCertificate [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x05, 0x33}; -//2.16.840.1.101.2.1.5.52 SDN.700 INFOSEC attributes (obsolete) suiteAUserSignatureCertificate -static const unsigned char cvOID_suiteAUserSignatureCertificate [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x05, 0x34}; -//2.16.840.1.101.2.1.5.53 SDN.700 INFOSEC attributes prbacInfo -static const unsigned char cvOID_prbacInfo [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x05, 0x35}; -//2.16.840.1.101.2.1.5.54 SDN.700 INFOSEC attributes prbacCAstatic constraints -static const unsigned char cvOID_prbacCAconstraints [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x05, 0x36}; -//2.16.840.1.101.2.1.5.55 SDN.700 INFOSEC attributes sigOrKMPrivileges -static const unsigned char cvOID_sigOrKMPrivileges [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x05, 0x37}; -//2.16.840.1.101.2.1.5.56 SDN.700 INFOSEC attributes commPrivileges -static const unsigned char cvOID_commPrivileges [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x05, 0x38}; -//2.16.840.1.101.2.1.5.57 SDN.700 INFOSEC attributes labeledAttribute -static const unsigned char cvOID_labeledAttribute [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x05, 0x39}; -//2.16.840.1.101.2.1.5.58 SDN.700 INFOSEC attributes (obsolete) policyInformationFile -static const unsigned char cvOID_policyInformationFile [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x05, 0x3A}; -//2.16.840.1.101.2.1.5.59 SDN.700 INFOSEC attributes secPolicyInformationFile -static const unsigned char cvOID_secPolicyInformationFile [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x05, 0x3B}; -//2.16.840.1.101.2.1.5.60 SDN.700 INFOSEC attributes cAClearancestatic constraint -static const unsigned char cvOID_cAClearanceconstraint [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x05, 0x3C}; -//2.16.840.1.101.2.1.7.1 SDN.700 INFOSEC extensions cspExtns -static const unsigned char cvOID_cspExtns [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x07, 0x01}; -//2.16.840.1.101.2.1.7.1.0 SDN.700 INFOSEC extensions cspCsExtn -static const unsigned char cvOID_cspCsExtn [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x07, 0x01, 0x00}; -//2.16.840.1.101.2.1.8.1 SDN.700 INFOSEC security category mISSISecurityCategories -static const unsigned char cvOID_mISSISecurityCategories [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x08, 0x01}; -//2.16.840.1.101.2.1.8.2 SDN.700 INFOSEC security category standardSecurityLabelPrivileges -static const unsigned char cvOID_standardSecurityLabelPrivileges [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x08, 0x02}; -//2.16.840.1.101.2.1.10.1 SDN.700 INFOSEC privileges sigPrivileges -static const unsigned char cvOID_sigPrivileges [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x0A, 0x01}; -//2.16.840.1.101.2.1.10.2 SDN.700 INFOSEC privileges kmPrivileges -static const unsigned char cvOID_kmPrivileges [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x0A, 0x02}; -//2.16.840.1.101.2.1.10.3 SDN.700 INFOSEC privileges namedTagSetPrivilege -static const unsigned char cvOID_namedTagSetPrivilege [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x0A, 0x03}; -//2.16.840.1.101.2.1.11.1 SDN.700 INFOSEC certificate policy ukDemo -static const unsigned char cvOID_ukDemo [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x0B, 0x01}; -//2.16.840.1.101.2.1.11.2 SDN.700 INFOSEC certificate policy usDODClass2 -static const unsigned char cvOID_usDODClass2 [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x0B, 0x02}; -//2.16.840.1.101.2.1.11.3 SDN.700 INFOSEC certificate policy usMediumPilot -static const unsigned char cvOID_usMediumPilot [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x0B, 0x03}; -//2.16.840.1.101.2.1.11.4 SDN.700 INFOSEC certificate policy usDODClass4 -static const unsigned char cvOID_usDODClass4 [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x0B, 0x04}; -//2.16.840.1.101.2.1.11.5 SDN.700 INFOSEC certificate policy usDODClass3 -static const unsigned char cvOID_usDODClass3 [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x0B, 0x05}; -//2.16.840.1.101.2.1.11.6 SDN.700 INFOSEC certificate policy usDODClass5 -static const unsigned char cvOID_usDODClass5 [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x0B, 0x06}; -//2.16.840.1.101.2.1.12.0 SDN.700 INFOSEC test objects testSecurityPolicy -static const unsigned char cvOID_testSecurityPolicy [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x0C, 0x00}; -//2.16.840.1.101.2.1.12.0.1 SDN.700 INFOSEC test objects tsp1 -static const unsigned char cvOID_tsp1 [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x0C, 0x00, 0x01}; -//2.16.840.1.101.2.1.12.0.1.0 SDN.700 INFOSEC test objects tsp1SecurityCategories -static const unsigned char cvOID_tsp1SecurityCategories [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x0C, 0x00, 0x01, 0x00}; -//2.16.840.1.101.2.1.12.0.1.0.0 SDN.700 INFOSEC test objects tsp1TagSetZero -static const unsigned char cvOID_tsp1TagSetZero [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x0C, 0x00, 0x01, 0x00, 0x00}; -//2.16.840.1.101.2.1.12.0.1.0.1 SDN.700 INFOSEC test objects tsp1TagSetOne -static const unsigned char cvOID_tsp1TagSetOne [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x0C, 0x00, 0x01, 0x00, 0x01}; -//2.16.840.1.101.2.1.12.0.1.0.2 SDN.700 INFOSEC test objects tsp1TagSetTwo -static const unsigned char cvOID_tsp1TagSetTwo [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x0C, 0x00, 0x01, 0x00, 0x02}; -//2.16.840.1.101.2.1.12.0.2 SDN.700 INFOSEC test objects tsp2 -static const unsigned char cvOID_tsp2 [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x0C, 0x00, 0x02}; -//2.16.840.1.101.2.1.12.0.2.0 SDN.700 INFOSEC test objects tsp2SecurityCategories -static const unsigned char cvOID_tsp2SecurityCategories [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x0C, 0x00, 0x02, 0x00}; -//2.16.840.1.101.2.1.12.0.2.0.0 SDN.700 INFOSEC test objects tsp2TagSetZero -static const unsigned char cvOID_tsp2TagSetZero [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x0C, 0x00, 0x02, 0x00, 0x00}; -//2.16.840.1.101.2.1.12.0.2.0.1 SDN.700 INFOSEC test objects tsp2TagSetOne -static const unsigned char cvOID_tsp2TagSetOne [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x0C, 0x00, 0x02, 0x00, 0x01}; -//2.16.840.1.101.2.1.12.0.2.0.2 SDN.700 INFOSEC test objects tsp2TagSetTwo -static const unsigned char cvOID_tsp2TagSetTwo [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x0C, 0x00, 0x02, 0x00, 0x02}; -//2.16.840.1.101.2.1.12.0.3 SDN.700 INFOSEC test objects kafka -static const unsigned char cvOID_kafka [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x0C, 0x00, 0x03}; -//2.16.840.1.101.2.1.12.0.3.0 SDN.700 INFOSEC test objects kafkaSecurityCategories -static const unsigned char cvOID_kafkaSecurityCategories [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x0C, 0x00, 0x03, 0x00}; -//2.16.840.1.101.2.1.12.0.3.0.1 SDN.700 INFOSEC test objects kafkaTagSetName1 -static const unsigned char cvOID_kafkaTagSetName1 [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x0C, 0x00, 0x03, 0x00, 0x01}; -//2.16.840.1.101.2.1.12.0.3.0.2 SDN.700 INFOSEC test objects kafkaTagSetName2 -static const unsigned char cvOID_kafkaTagSetName2 [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x0C, 0x00, 0x03, 0x00, 0x02}; -//2.16.840.1.101.2.1.12.0.3.0.3 SDN.700 INFOSEC test objects kafkaTagSetName3 -static const unsigned char cvOID_kafkaTagSetName3 [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x0C, 0x00, 0x03, 0x00, 0x03}; -//2.16.840.1.101.2.1.12.1.1 SDN.700 INFOSEC test objects tcp1 -static const unsigned char cvOID_tcp1 [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x0C, 0x01, 0x01}; -//2.16.840.1.101.3.1 CSOR GAK slabel -static const unsigned char cvOID_slabel [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x03, 0x01}; -//2.16.840.1.101.3.2 CSOR GAK pki -static const unsigned char cvOID_pki [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x03, 0x02}; -//2.16.840.1.101.3.2.1 CSOR GAK policy GAK policyIdentifier -static const unsigned char cvOID_GAK_policyIdentifier [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x03, 0x02, 0x01}; -//2.16.840.1.101.3.2.2 CSOR GAK extended key usage GAK -static const unsigned char cvOID_GAK [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x03, 0x02, 0x02}; -//2.16.840.1.101.3.2.2.1 CSOR GAK extended key usage kRAKey -static const unsigned char cvOID_kRAKey [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x03, 0x02, 0x02, 0x01}; -//2.16.840.1.101.3.2.3 CSOR GAK extensions extensions -static const unsigned char cvOID_extensions [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x03, 0x02, 0x03}; -//2.16.840.1.101.3.2.3.1 CSOR GAK extensions kRTechnique -static const unsigned char cvOID_kRTechnique [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x03, 0x02, 0x03, 0x01}; -//2.16.840.1.101.3.2.3.2 CSOR GAK extensions kRecoveryCapable -static const unsigned char cvOID_kRecoveryCapable [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x03, 0x02, 0x03, 0x02}; -//2.16.840.1.101.3.2.3.3 CSOR GAK extensions kR -static const unsigned char cvOID_kR [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x03, 0x02, 0x03, 0x03}; -//2.16.840.1.101.3.2.4 CSOR GAK keyrecoveryschemes -static const unsigned char cvOID_keyrecoveryschemes [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x03, 0x02, 0x04}; -//2.16.840.1.101.3.2.5 CSOR GAK krapola -static const unsigned char cvOID_krapola [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x03, 0x02, 0x05}; -//2.16.840.1.101.3.3 CSOR GAK arpa -static const unsigned char cvOID_arpa [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x03, 0x03}; -//2.16.840.1.113719.1.9 Novell pki -static const unsigned char cvOID_pki_Novell [] = { 0x60, 0x86, 0x48, 0x01, 0x86, 0xF8, 0x37, 0x01, 0x09}; -//2.16.840.1.113719.1.9.4 Novell PKI pkiAttributeType -static const unsigned char cvOID_pkiAttributeType [] = { 0x60, 0x86, 0x48, 0x01, 0x86, 0xF8, 0x37, 0x01, 0x09, 0x04}; -//2.16.840.1.113719.1.9.4.1 Novell PKI attribute type registeredAttributes -static const unsigned char cvOID_registeredAttributes [] = { 0x60, 0x86, 0x48, 0x01, 0x86, 0xF8, 0x37, 0x01, 0x09, 0x04, 0x01}; -//2.16.840.1.113719.1.9.4.2 Novell PKI attribute type relianceLimit -static const unsigned char cvOID_relianceLimit [] = { 0x60, 0x86, 0x48, 0x01, 0x86, 0xF8, 0x37, 0x01, 0x09, 0x04, 0x02}; -//2.16.840.1.113730.1 Netscape cert-extension -static const unsigned char cvOID_cert_extension [] = { 0x60, 0x86, 0x48, 0x01, 0x86, 0xF8, 0x42, 0x01}; -//2.16.840.1.113730.1.1 Netscape certificate extension netscape-cert-type -static const unsigned char cvOID_netscape_cert_type [] = { 0x60, 0x86, 0x48, 0x01, 0x86, 0xF8, 0x42, 0x01, 0x01}; -//2.16.840.1.113730.1.2 Netscape certificate extension netscape-base-url -static const unsigned char cvOID_netscape_base_url [] = { 0x60, 0x86, 0x48, 0x01, 0x86, 0xF8, 0x42, 0x01, 0x02}; -//2.16.840.1.113730.1.3 Netscape certificate extension netscape-revocation-url -static const unsigned char cvOID_netscape_revocation_url [] = { 0x60, 0x86, 0x48, 0x01, 0x86, 0xF8, 0x42, 0x01, 0x03}; -//2.16.840.1.113730.1.4 Netscape certificate extension netscape-ca-revocation-url -static const unsigned char cvOID_netscape_ca_revocation_url [] = { 0x60, 0x86, 0x48, 0x01, 0x86, 0xF8, 0x42, 0x01, 0x04}; -//2.16.840.1.113730.1.7 Netscape certificate extension netscape-cert-renewal-url -static const unsigned char cvOID_netscape_cert_renewal_url [] = { 0x60, 0x86, 0x48, 0x01, 0x86, 0xF8, 0x42, 0x01, 0x07}; -//2.16.840.1.113730.1.8 Netscape certificate extension netscape-ca-policy-url -static const unsigned char cvOID_netscape_ca_policy_url [] = { 0x60, 0x86, 0x48, 0x01, 0x86, 0xF8, 0x42, 0x01, 0x08}; -//2.16.840.1.113730.1.9 Netscape certificate extension HomePage-url -static const unsigned char cvOID_HomePage_url [] = { 0x60, 0x86, 0x48, 0x01, 0x86, 0xF8, 0x42, 0x01, 0x09}; -//2.16.840.1.113730.1.10 Netscape certificate extension EntityLogo -static const unsigned char cvOID_EntityLogo [] = { 0x60, 0x86, 0x48, 0x01, 0x86, 0xF8, 0x42, 0x01, 0x0A}; -//2.16.840.1.113730.1.11 Netscape certificate extension UserPicture -static const unsigned char cvOID_UserPicture [] = { 0x60, 0x86, 0x48, 0x01, 0x86, 0xF8, 0x42, 0x01, 0x0B}; -//2.16.840.1.113730.1.12 Netscape certificate extension netscape-ssl-server-name -static const unsigned char cvOID_netscape_ssl_server_name [] = { 0x60, 0x86, 0x48, 0x01, 0x86, 0xF8, 0x42, 0x01, 0x0C}; -//2.16.840.1.113730.1.13 Netscape certificate extension netscape-comment -static const unsigned char cvOID_netscape_comment [] = { 0x60, 0x86, 0x48, 0x01, 0x86, 0xF8, 0x42, 0x01, 0x0D}; -//2.16.840.1.113730.2 Netscape data-type -static const unsigned char cvOID_data_type [] = { 0x60, 0x86, 0x48, 0x01, 0x86, 0xF8, 0x42, 0x02}; -//2.16.840.1.113730.2.1 Netscape data type dataGIF -static const unsigned char cvOID_dataGIF [] = { 0x60, 0x86, 0x48, 0x01, 0x86, 0xF8, 0x42, 0x02, 0x01}; -//2.16.840.1.113730.2.2 Netscape data type dataJPEG -static const unsigned char cvOID_dataJPEG [] = { 0x60, 0x86, 0x48, 0x01, 0x86, 0xF8, 0x42, 0x02, 0x02}; -//2.16.840.1.113730.2.3 Netscape data type dataURL -static const unsigned char cvOID_dataURL [] = { 0x60, 0x86, 0x48, 0x01, 0x86, 0xF8, 0x42, 0x02, 0x03}; -//2.16.840.1.113730.2.4 Netscape data type dataHTML -static const unsigned char cvOID_dataHTML [] = { 0x60, 0x86, 0x48, 0x01, 0x86, 0xF8, 0x42, 0x02, 0x04}; -//2.16.840.1.113730.2.5 Netscape data type certSequence -static const unsigned char cvOID_certSequence [] = { 0x60, 0x86, 0x48, 0x01, 0x86, 0xF8, 0x42, 0x02, 0x05}; -//2.16.840.1.113730.2.6 Netscape certificate extension certURL -static const unsigned char cvOID_certURL [] = { 0x60, 0x86, 0x48, 0x01, 0x86, 0xF8, 0x42, 0x02, 0x06}; -//2.16.840.1.113730.3 Netscape directory -static const unsigned char cvOID_directory [] = { 0x60, 0x86, 0x48, 0x01, 0x86, 0xF8, 0x42, 0x03}; -//2.16.840.1.113730.3.1 Netscape directory ldapDefinitions -static const unsigned char cvOID_ldapDefinitions [] = { 0x60, 0x86, 0x48, 0x01, 0x86, 0xF8, 0x42, 0x03, 0x01}; -//2.16.840.1.113730.3.1.1 Netscape LDAP definitions carLicense -static const unsigned char cvOID_carLicense [] = { 0x60, 0x86, 0x48, 0x01, 0x86, 0xF8, 0x42, 0x03, 0x01, 0x01}; -//2.16.840.1.113730.3.1.2 Netscape LDAP definitions departmentNumber -static const unsigned char cvOID_departmentNumber [] = { 0x60, 0x86, 0x48, 0x01, 0x86, 0xF8, 0x42, 0x03, 0x01, 0x02}; -//2.16.840.1.113730.3.1.3 Netscape LDAP definitions employeeNumber -static const unsigned char cvOID_employeeNumber [] = { 0x60, 0x86, 0x48, 0x01, 0x86, 0xF8, 0x42, 0x03, 0x01, 0x03}; -//2.16.840.1.113730.3.1.4 Netscape LDAP definitions employeeType -static const unsigned char cvOID_employeeType [] = { 0x60, 0x86, 0x48, 0x01, 0x86, 0xF8, 0x42, 0x03, 0x01, 0x04}; -//2.16.840.1.113730.3.2.2 Netscape LDAP definitions inetOrgPerson -static const unsigned char cvOID_inetOrgPerson [] = { 0x60, 0x86, 0x48, 0x01, 0x86, 0xF8, 0x42, 0x03, 0x02, 0x02}; -//2.16.840.1.113730.4.1 Netscape serverGatedCrypto -static const unsigned char cvOID_serverGatedCrypto_Netscape [] = { 0x60, 0x86, 0x48, 0x01, 0x86, 0xF8, 0x42, 0x04, 0x01}; -//2.16.840.1.113733.1.6.3 Verisign Unknown Verisign extension -static const unsigned char cvOID_Unknown_Verisign_extension_1 [] = { 0x60, 0x86, 0x48, 0x01, 0x86, 0xF8, 0x45, 0x01, 0x06, 0x03}; -//2.16.840.1.113733.1.6.6 Verisign Unknown Verisign extension -static const unsigned char cvOID_Unknown_Verisign_extension_2 [] = { 0x60, 0x86, 0x48, 0x01, 0x86, 0xF8, 0x45, 0x01, 0x06, 0x06}; -//2.16.840.1.113733.1.7.1.1 Verisign Verisign certificatePolicy -static const unsigned char cvOID_Verisign_certificatePolicy [] = { 0x60, 0x86, 0x48, 0x01, 0x86, 0xF8, 0x45, 0x01, 0x07, 0x01, 0x01}; -//2.16.840.1.113733.1.7.1.1.1 Verisign Unknown Verisign policy qualifier -static const unsigned char cvOID_Unknown_Verisign_policy_qualifier_1 [] = { 0x60, 0x86, 0x48, 0x01, 0x86, 0xF8, 0x45, 0x01, 0x07, 0x01, 0x01, 0x01}; -//2.16.840.1.113733.1.7.1.1.2 Verisign Unknown Verisign policy qualifier -static const unsigned char cvOID_Unknown_Verisign_policy_qualifier_2 [] = { 0x60, 0x86, 0x48, 0x01, 0x86, 0xF8, 0x45, 0x01, 0x07, 0x01, 0x01, 0x02}; -//2.16.840.1.113733.1.8.1 Verisign Verisign SGC CA? -static const unsigned char cvOID_Verisign_SGC_CA [] = { 0x60, 0x86, 0x48, 0x01, 0x86, 0xF8, 0x45, 0x01, 0x08, 0x01}; -//2.23.42.0 SET contentType -static const unsigned char cvOID_contentType_SET [] = { 0x67, 0x2A, 0x00}; -//2.23.42.0.0 SET contentType PANData -static const unsigned char cvOID_PANData [] = { 0x67, 0x2A, 0x00, 0x00}; -//2.23.42.0.1 SET contentType PANToken -static const unsigned char cvOID_PANToken [] = { 0x67, 0x2A, 0x00, 0x01}; -//2.23.42.0.2 SET contentType PANOnly -static const unsigned char cvOID_PANOnly [] = { 0x67, 0x2A, 0x00, 0x02}; -//2.23.42.1 SET msgExt -static const unsigned char cvOID_msgExt [] = { 0x67, 0x2A, 0x01}; -//2.23.42.2 SET field -static const unsigned char cvOID_field [] = { 0x67, 0x2A, 0x02}; -//2.23.42.2.0 SET field fullName -static const unsigned char cvOID_fullName [] = { 0x67, 0x2A, 0x02, 0x00}; -//2.23.42.2.1 SET field givenName -static const unsigned char cvOID_givenName_SET [] = { 0x67, 0x2A, 0x02, 0x01}; -//2.23.42.2.2 SET field familyName -static const unsigned char cvOID_familyName [] = { 0x67, 0x2A, 0x02, 0x02}; -//2.23.42.2.3 SET field birthFamilyName -static const unsigned char cvOID_birthFamilyName [] = { 0x67, 0x2A, 0x02, 0x03}; -//2.23.42.2.4 SET field placeName -static const unsigned char cvOID_placeName [] = { 0x67, 0x2A, 0x02, 0x04}; -//2.23.42.2.5 SET field identificationNumber -static const unsigned char cvOID_identificationNumber [] = { 0x67, 0x2A, 0x02, 0x05}; -//2.23.42.2.6 SET field month -static const unsigned char cvOID_month [] = { 0x67, 0x2A, 0x02, 0x06}; -//2.23.42.2.7 SET field date -static const unsigned char cvOID_date [] = { 0x67, 0x2A, 0x02, 0x07}; -//2.23.42.2.8 SET field address -static const unsigned char cvOID_address [] = { 0x67, 0x2A, 0x02, 0x08}; -//2.23.42.2.9 SET field telephone -static const unsigned char cvOID_telephone [] = { 0x67, 0x2A, 0x02, 0x09}; -//2.23.42.2.10 SET field amount -static const unsigned char cvOID_amount [] = { 0x67, 0x2A, 0x02, 0x0A}; -//2.23.42.2.7.11 SET field accountNumber -static const unsigned char cvOID_accountNumber [] = { 0x67, 0x2A, 0x02, 0x0B}; -//2.23.42.2.7.12 SET field passPhrase -static const unsigned char cvOID_passPhrase [] = { 0x67, 0x2A, 0x02, 0x0C}; -//2.23.42.3 SET attribute -static const unsigned char cvOID_attribute_SET [] = { 0x67, 0x2A, 0x03}; -//2.23.42.3.0 SET attribute cert -static const unsigned char cvOID_cert_SET [] = { 0x67, 0x2A, 0x03, 0x00}; -//2.23.42.3.0.0 SET cert attribute rootKeyThumb -static const unsigned char cvOID_rootKeyThumb [] = { 0x67, 0x2A, 0x03, 0x00, 0x00}; -//2.23.42.3.0.1 SET cert attribute additionalPolicy -static const unsigned char cvOID_additionalPolicy [] = { 0x67, 0x2A, 0x03, 0x00, 0x01}; -//2.23.42.4 SET algorithm -static const unsigned char cvOID_algorithm_SET [] = { 0x67, 0x2A, 0x04}; -//2.23.42.5 SET policy -static const unsigned char cvOID_policy_SET [] = { 0x67, 0x2A, 0x05}; -//2.23.42.5.0 SET policy root -static const unsigned char cvOID_root [] = { 0x67, 0x2A, 0x05, 0x00}; -//2.23.42.6 SET module -static const unsigned char cvOID_module_SET [] = { 0x67, 0x2A, 0x06}; -//2.23.42.7 SET certExt -static const unsigned char cvOID_certExt [] = { 0x67, 0x2A, 0x07}; -//2.23.42.7.0 SET cert extension hashedRootKey -static const unsigned char cvOID_hashedRootKey [] = { 0x67, 0x2A, 0x07, 0x00}; -//2.23.42.7.1 SET cert extension certificateType -static const unsigned char cvOID_certificateType_SET [] = { 0x67, 0x2A, 0x07, 0x01}; -//2.23.42.7.2 SET cert extension merchantData -static const unsigned char cvOID_merchantData [] = { 0x67, 0x2A, 0x07, 0x02}; -//2.23.42.7.3 SET cert extension cardCertRequired -static const unsigned char cvOID_cardCertRequired [] = { 0x67, 0x2A, 0x07, 0x03}; -//2.23.42.7.4 SET cert extension tunneling -static const unsigned char cvOID_tunneling [] = { 0x67, 0x2A, 0x07, 0x04}; -//2.23.42.7.5 SET cert extension setExtensions -static const unsigned char cvOID_setExtensions [] = { 0x67, 0x2A, 0x07, 0x05}; -//2.23.42.7.6 SET cert extension setQualifier -static const unsigned char cvOID_setQualifier [] = { 0x67, 0x2A, 0x07, 0x06}; -//2.23.42.8 SET brand -static const unsigned char cvOID_brand [] = { 0x67, 0x2A, 0x08}; -//2.23.42.8.1 SET brand IATA-ATA -static const unsigned char cvOID_IATA_ATA [] = { 0x67, 0x2A, 0x08, 0x01}; -//2.23.42.8.4 SET brand VISA -static const unsigned char cvOID_VISA [] = { 0x67, 0x2A, 0x08, 0x04}; -//2.23.42.8.5 SET brand MasterCard -static const unsigned char cvOID_MasterCard [] = { 0x67, 0x2A, 0x08, 0x05}; -//2.23.42.8.30 SET brand Diners -static const unsigned char cvOID_Diners [] = { 0x67, 0x2A, 0x08, 0x1E}; -//2.23.42.8.34 SET brand AmericanExpress -static const unsigned char cvOID_AmericanExpress [] = { 0x67, 0x2A, 0x08, 0x22}; -//2.23.42.8.6011 SET brand Novus -static const unsigned char cvOID_Novus [] = { 0x67, 0x2A, 0x08, 0xAE, 0x7B}; -//2.23.42.9 SET vendor -static const unsigned char cvOID_vendor [] = { 0x67, 0x2A, 0x09}; -//2.23.42.9.0 SET vendor GlobeSet -static const unsigned char cvOID_GlobeSet [] = { 0x67, 0x2A, 0x09, 0x00}; -//2.23.42.9.1 SET vendor IBM -static const unsigned char cvOID_IBM [] = { 0x67, 0x2A, 0x09, 0x01}; -//2.23.42.9.2 SET vendor CyberCash -static const unsigned char cvOID_CyberCash [] = { 0x67, 0x2A, 0x09, 0x02}; -//2.23.42.9.3 SET vendor Terisa -static const unsigned char cvOID_Terisa [] = { 0x67, 0x2A, 0x09, 0x03}; -//2.23.42.9.4 SET vendor RSADSI -static const unsigned char cvOID_RSADSI [] = { 0x67, 0x2A, 0x09, 0x04}; -//2.23.42.9.5 SET vendor VeriFone -static const unsigned char cvOID_VeriFone [] = { 0x67, 0x2A, 0x09, 0x05}; -//2.23.42.9.6 SET vendor TrinTech -static const unsigned char cvOID_TrinTech [] = { 0x67, 0x2A, 0x09, 0x06}; -//2.23.42.9.7 SET vendor BankGate -static const unsigned char cvOID_BankGate [] = { 0x67, 0x2A, 0x09, 0x07}; -//2.23.42.9.8 SET vendor GTE -static const unsigned char cvOID_GTE [] = { 0x67, 0x2A, 0x09, 0x08}; -//2.23.42.9.9 SET vendor CompuSource -static const unsigned char cvOID_CompuSource [] = { 0x67, 0x2A, 0x09, 0x09}; -//2.23.42.9.10 SET vendor Griffin -static const unsigned char cvOID_Griffin [] = { 0x67, 0x2A, 0x09, 0x0A}; -//2.23.42.9.11 SET vendor Certicom -static const unsigned char cvOID_Certicom [] = { 0x67, 0x2A, 0x09, 0x0B}; -//2.23.42.9.12 SET vendor OSS -static const unsigned char cvOID_OSS [] = { 0x67, 0x2A, 0x09, 0x0C}; -//2.23.42.9.13 SET vendor TenthMountain -static const unsigned char cvOID_TenthMountain [] = { 0x67, 0x2A, 0x09, 0x0D}; -//2.23.42.9.14 SET vendor Antares -static const unsigned char cvOID_Antares [] = { 0x67, 0x2A, 0x09, 0x0E}; -//2.23.42.9.15 SET vendor ECC -static const unsigned char cvOID_ECC [] = { 0x67, 0x2A, 0x09, 0x0F}; -//2.23.42.9.16 SET vendor Maithean -static const unsigned char cvOID_Maithean [] = { 0x67, 0x2A, 0x09, 0x10}; -//2.23.42.9.17 SET vendor Netscape -static const unsigned char cvOID_Netscape [] = { 0x67, 0x2A, 0x09, 0x11}; -//2.23.42.9.18 SET vendor Verisign -static const unsigned char cvOID_Verisign [] = { 0x67, 0x2A, 0x09, 0x12}; -//2.23.42.9.19 SET vendor BlueMoney -static const unsigned char cvOID_BlueMoney [] = { 0x67, 0x2A, 0x09, 0x13}; -//2.23.42.9.20 SET vendor Lacerte -static const unsigned char cvOID_Lacerte [] = { 0x67, 0x2A, 0x09, 0x14}; -//2.23.42.9.21 SET vendor Fujitsu -static const unsigned char cvOID_Fujitsu [] = { 0x67, 0x2A, 0x09, 0x15}; -//2.23.42.9.22 SET vendor eLab -static const unsigned char cvOID_eLab [] = { 0x67, 0x2A, 0x09, 0x16}; -//2.23.42.9.23 SET vendor Entrust -static const unsigned char cvOID_Entrust [] = { 0x67, 0x2A, 0x09, 0x17}; -//2.23.42.9.24 SET vendor VIAnet -static const unsigned char cvOID_VIAnet [] = { 0x67, 0x2A, 0x09, 0x18}; -//2.23.42.9.25 SET vendor III -static const unsigned char cvOID_III [] = { 0x67, 0x2A, 0x09, 0x19}; -//2.23.42.9.26 SET vendor OpenMarket -static const unsigned char cvOID_OpenMarket [] = { 0x67, 0x2A, 0x09, 0x1A}; -//2.23.42.9.27 SET vendor Lexem -static const unsigned char cvOID_Lexem [] = { 0x67, 0x2A, 0x09, 0x1B}; -//2.23.42.9.28 SET vendor Intertrader -static const unsigned char cvOID_Intertrader [] = { 0x67, 0x2A, 0x09, 0x1C}; -//2.23.42.9.29 SET vendor Persimmon -static const unsigned char cvOID_Persimmon [] = { 0x67, 0x2A, 0x09, 0x1D}; -//2.23.42.9.30 SET vendor NABLE -static const unsigned char cvOID_NABLE [] = { 0x67, 0x2A, 0x09, 0x1E}; -//2.23.42.9.31 SET vendor espace-net -static const unsigned char cvOID_espace_net [] = { 0x67, 0x2A, 0x09, 0x1F}; -//2.23.42.9.32 SET vendor Hitachi -static const unsigned char cvOID_Hitachi [] = { 0x67, 0x2A, 0x09, 0x20}; -//2.23.42.9.33 SET vendor Microsoft -static const unsigned char cvOID_Microsoft [] = { 0x67, 0x2A, 0x09, 0x21}; -//2.23.42.9.34 SET vendor NEC -static const unsigned char cvOID_NEC [] = { 0x67, 0x2A, 0x09, 0x22}; -//2.23.42.9.35 SET vendor Mitsubishi -static const unsigned char cvOID_Mitsubishi [] = { 0x67, 0x2A, 0x09, 0x23}; -//2.23.42.9.36 SET vendor NCR -static const unsigned char cvOID_NCR [] = { 0x67, 0x2A, 0x09, 0x24}; -//2.23.42.9.37 SET vendor e-COMM -static const unsigned char cvOID_e_COMM [] = { 0x67, 0x2A, 0x09, 0x25}; -//2.23.42.9.38 SET vendor Gemplus -static const unsigned char cvOID_Gemplus [] = { 0x67, 0x2A, 0x09, 0x26}; -//2.23.42.10 SET national -static const unsigned char cvOID_national [] = { 0x67, 0x2A, 0x0A}; -//2.23.42.10.192 SET national Japan -static const unsigned char cvOID_Japan [] = { 0x67, 0x2A, 0x0A, 0x81, 0x40}; -//2.54.1775.2 SET. Deprecated, use (2 23 42 7 0) instead hashedRootKey -static const unsigned char cvOID_hashedRootKey_old [] = { 0x86, 0x8D, 0x6F, 0x02}; -//2.54.1775.3 SET. Deprecated, use (2 23 42 7 0) instead certificateType -static const unsigned char cvOID_certificateType_old [] = { 0x86, 0x8D, 0x6F, 0x03}; -//2.54.1775.4 SET. Deprecated, use (2 23 42 7 0) instead merchantData -static const unsigned char cvOID_merchantData_old [] = { 0x86, 0x8D, 0x6F, 0x04}; -//2.54.1775.5 SET. Deprecated, use (2 23 42 7 0) instead cardCertRequired -static const unsigned char cvOID_cardCertRequired_old [] = { 0x86, 0x8D, 0x6F, 0x05}; -//2.54.1775.6 SET. Deprecated, use (2 23 42 7 0) instead tunneling -static const unsigned char cvOID_tunneling_old [] = { 0x86, 0x8D, 0x6F, 0x06}; -//2.54.1775.7 SET. Deprecated, use (2 23 42 7 0) instead setQualifier -static const unsigned char cvOID_setQualifier_old [] = { 0x86, 0x8D, 0x6F, 0x07}; -//2.54.1775.99 SET. Deprecated, use (2 23 42 7 0) instead set-data -static const unsigned char cvOID_set_data_old [] = { 0x86, 0x8D, 0x6F, 0x63}; - -#ifdef _MSC_VER -#pragma warning(default : 4305) -#pragma warning(default : 4309) -#endif - -#endif - diff --git a/actlibrary/OpenSUSE-11-x86_64/Release/include/actPKCS15BehaviorKit.h b/actlibrary/OpenSUSE-11-x86_64/Release/include/actPKCS15BehaviorKit.h deleted file mode 100644 index cdac8da..0000000 --- a/actlibrary/OpenSUSE-11-x86_64/Release/include/actPKCS15BehaviorKit.h +++ /dev/null @@ -1,43 +0,0 @@ -// --------------------------------------------------------------------------- -// Name: actPKCS15BehaviorKit.h -// Product: cv act library -// Purpose: Factory functions to create specific PKCS15Behavior objects. -// -// Copyright: (c) 2008 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -// -// Autor: Markus Tesche -// Date: 06/02/2008 -// --------------------------------------------------------------------------- - -#ifndef ACT_PKCS15BehaviorKit_h -#define ACT_PKCS15BehaviorKit_h - -#include - -namespace act -{ - class IToken; - class IPKCS15Behavior; - - // default behavior, does nothing - IPKCS15Behavior* CreatePKCS15Behavior(const char* mid, IToken* token); - - // specialized behavior - IPKCS15Behavior* CreateSafeSignBehavior(const char* mid, IToken* token); - IPKCS15Behavior* CreateStarSignBehavior(const char* mid, IToken* token); - IPKCS15Behavior* CreateJCPKCS15Behavior(const char* mid, IToken* token); - IPKCS15Behavior* CreateJCPKCS15mEACBehavior(const char* mid, IToken* token); - IPKCS15Behavior* CreateHiPathBehavior(const char* mid, IToken* token); - IPKCS15Behavior* CreateV4PKCS15Behavior(const char* mid, IToken* token); - IPKCS15Behavior* CreateACOSPKCS15Behavior(const char* mid, IToken* token); - IPKCS15Behavior* CreateStarCOSPKCS15Behavior(const char* mid, IToken* token); - IPKCS15Behavior* CreateNexusBehavior(const char* mid, IToken* token); - IPKCS15Behavior* CreateVWBehavior(const char* mid, IToken* token); // Nexus derived - IPKCS15Behavior* CreateDTRUSTBehavior(const char* mid, IToken* token); // Nexus derived - -} // namespace act - -#endif // ACT_PKCS15BehaviorKit_h diff --git a/actlibrary/OpenSUSE-11-x86_64/Release/include/actPKCS15BehaviorReg.h b/actlibrary/OpenSUSE-11-x86_64/Release/include/actPKCS15BehaviorReg.h deleted file mode 100644 index 56f39a2..0000000 --- a/actlibrary/OpenSUSE-11-x86_64/Release/include/actPKCS15BehaviorReg.h +++ /dev/null @@ -1,34 +0,0 @@ -// --------------------------------------------------------------------------- -// Name: actPKCS15BehaviorReg.h -// Product: cv act library -// Purpose: Registry for factory functions to create specific PKCS15Behavior objects. -// -// Copyright: (c) 2008 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -// -// Autor: Markus Tesche -// Date: 06/02/2008 -// --------------------------------------------------------------------------- - -#ifndef ACT_PKCS15BehaviorReg_h -#define ACT_PKCS15BehaviorReg_h - -#include "actFactoryReg.h" - -namespace act -{ - class IToken; - class IPKCS15Behavior; - - typedef IPKCS15Behavior* (*CreatePKCS15BehaviorPtr)(const char* mid, IToken* token); - typedef FactoryMapEntry PKCS15BehaviorMapEntry; - - typedef FactoryReg - < IPKCS15Behavior, CreatePKCS15BehaviorPtr, PKCS15BehaviorMapEntry - > PKCS15BehaviorReg; - -} // namespace act - -#endif // ACT_PKCS15BehaviorReg_h diff --git a/actlibrary/OpenSUSE-11-x86_64/Release/include/actPaddingKit.h b/actlibrary/OpenSUSE-11-x86_64/Release/include/actPaddingKit.h deleted file mode 100644 index 01fb93e..0000000 --- a/actlibrary/OpenSUSE-11-x86_64/Release/include/actPaddingKit.h +++ /dev/null @@ -1,26 +0,0 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actPaddingKit.h -// Product: cv act library -// Purpose: declaration of all factory functions -// -// Copyright: (c) 2000 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_PaddingKit_h -#define ACT_PaddingKit_h - -namespace act -{ - class IPadding; - - IPadding* CreatePKCS5Pad(); - IPadding* CreatePKCS1V1_5EMEPad(); - IPadding* CreateOneAndZerosPad(); - IPadding* CreateISO9796Pad(); - IPadding* CreateNoPad(); -} -#endif - diff --git a/actlibrary/OpenSUSE-11-x86_64/Release/include/actPaddingReg.h b/actlibrary/OpenSUSE-11-x86_64/Release/include/actPaddingReg.h deleted file mode 100644 index 4cad768..0000000 --- a/actlibrary/OpenSUSE-11-x86_64/Release/include/actPaddingReg.h +++ /dev/null @@ -1,41 +0,0 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actPaddingReg.h -// Product: cv act library -// Purpose: registry for the factory functions in actPaddingKit.h -// -// Copyright: (c) 2000 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_PaddingReg_h -#define ACT_PaddingReg_h - -namespace act -{ - class IPadding; - class Blob; - - typedef IPadding* (*CreatePaddingPtr)(); - - struct PaddingMapEntry - { - const char* Name; - CreatePaddingPtr CreatePtr; - }; - - class PaddingReg - { - public: - static IPadding* CreatePadding(const char* name); - static CreatePaddingPtr GetCreatePointer(const char* name); - static const char* GetName(void* createptr); - static const char* GetNextName(const char* name); - static void Insert(const char* name, CreatePaddingPtr createptr); - static void Insert(const PaddingMapEntry* paddingmap); - }; - -} // namespace act - -#endif // ACT_PaddingReg_h diff --git a/actlibrary/OpenSUSE-11-x86_64/Release/include/actProfileGeneratorKit.h b/actlibrary/OpenSUSE-11-x86_64/Release/include/actProfileGeneratorKit.h deleted file mode 100644 index 1992c43..0000000 --- a/actlibrary/OpenSUSE-11-x86_64/Release/include/actProfileGeneratorKit.h +++ /dev/null @@ -1,26 +0,0 @@ -// --------------------------------------------------------------------------- -// Name: actProfileGeneratorKit.h -// Product: cv act library -// Purpose: Factory functions for smartcard profile generators. -// -// Copyright: (c) 2009 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -// -// Autor: Markus Tesche -// Date: 12/18/2009 -// --------------------------------------------------------------------------- - -#ifndef ACT_ProfileGeneratorKit_h -#define ACT_ProfileGeneratorKit_h - -namespace act -{ - class IProfileGenerator; - - IProfileGenerator* CreateJCPKCS15Generator(const char* name); - -} // namespace act - -#endif // ACT_ProfileGeneratorKit_h diff --git a/actlibrary/OpenSUSE-11-x86_64/Release/include/actProfileGeneratorReg.h b/actlibrary/OpenSUSE-11-x86_64/Release/include/actProfileGeneratorReg.h deleted file mode 100644 index 0a8f6be..0000000 --- a/actlibrary/OpenSUSE-11-x86_64/Release/include/actProfileGeneratorReg.h +++ /dev/null @@ -1,33 +0,0 @@ -// --------------------------------------------------------------------------- -// Name: actProfileGeneratorReg.h -// Product: cv act library -// Purpose: factory functions registry to create IProfileGenerator objects. -// -// Copyright: (c) 2009 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -// -// Autor: Markus Tesche -// Date: 12/18/2009 -// --------------------------------------------------------------------------- - -#ifndef ACT_ProfileGeneratorReg_h -#define ACT_ProfileGeneratorReg_h - -#include "actFactoryReg.h" - -namespace act -{ - class IProfileGenerator; - - typedef IProfileGenerator* (*CreateProfileGeneratorPtr)(const char*); - typedef FactoryMapEntry ProfileGeneratorMapEntry; - - typedef FactoryReg - < IProfileGenerator, CreateProfileGeneratorPtr, ProfileGeneratorMapEntry - > ProfileGeneratorReg; - -} // namespace act - -#endif // ACT_ProfileGeneratorReg_h diff --git a/actlibrary/OpenSUSE-11-x86_64/Release/include/actRNGKit.h b/actlibrary/OpenSUSE-11-x86_64/Release/include/actRNGKit.h deleted file mode 100644 index 6a8b886..0000000 --- a/actlibrary/OpenSUSE-11-x86_64/Release/include/actRNGKit.h +++ /dev/null @@ -1,44 +0,0 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actRNGKit.h -// Product: cv act library -// Purpose: declaration of all factory functions -// -// Copyright: (c) 2010 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_RNGKit_h -#define ACT_RNGKit_h -namespace act -{ - class IRNGAlg; - - // Dummy PRNG (uses rand() / srand(time(0))) - IRNGAlg* CreateDummyPRNG(); - - // Deterministic PRNGs - IRNGAlg* CreateARC4RNG(); - IRNGAlg* CreateBBS(); - IRNGAlg* CreateFIPS186(); - IRNGAlg* CreateFIPS186DES(); - IRNGAlg* CreateLCG(); - - // AIS 20, K1 - K4 evaluated deterministic PRNG - IRNGAlg* CreateFIPS186K4(); - - // 'True' RNGs - IRNGAlg* CreateDevRandomRNG(); -#ifndef UNDER_CE_30 - IRNGAlg* CreateWinRNG(); -#endif - - // Token RNG (uses IToken::GetRandom()) -#ifndef NO_SMARTCARD - IRNGAlg* CreateTokenRNG(); -#endif -} - -#endif - diff --git a/actlibrary/OpenSUSE-11-x86_64/Release/include/actSCardLock.h b/actlibrary/OpenSUSE-11-x86_64/Release/include/actSCardLock.h deleted file mode 100644 index 3bc753e..0000000 --- a/actlibrary/OpenSUSE-11-x86_64/Release/include/actSCardLock.h +++ /dev/null @@ -1,51 +0,0 @@ -// --------------------------------------------------------------------------- -// Name: actSCardLock.h -// Product: cv act library -// Purpose: Smartcard transaction lock -// -// Copyright: (c) 2009 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -// -// Autor: Markus Tesche -// Date: 07/10/2009 -// --------------------------------------------------------------------------- - -#ifndef ACT_SCardLock_H -#define ACT_SCardLock_H - -#include "actEnv.h" - -#if defined(ACT_64) -# define LOCK_SIZE 32 -#else -# define LOCK_SIZE 16 -#endif - -namespace act -{ - class ISCardOS; - - class SCardLock - { - private: - SCardLock() { } - SCardLock(const SCardLock&) { } - - public: - SCardLock(ISCardOS* os); - ~SCardLock(); - - void Lock(ISCardOS* os); - void Unlock(); - - private: - byte m_lock[LOCK_SIZE]; - }; - -} // namespace act - -#undef LOCK_SIZE - -#endif // ACT_SCardLock_H diff --git a/actlibrary/OpenSUSE-11-x86_64/Release/include/actSCardOSKit.h b/actlibrary/OpenSUSE-11-x86_64/Release/include/actSCardOSKit.h deleted file mode 100644 index 79ae7b0..0000000 --- a/actlibrary/OpenSUSE-11-x86_64/Release/include/actSCardOSKit.h +++ /dev/null @@ -1,170 +0,0 @@ -// --------------------------------------------------------------------------- -// Name: actSCardOSKit.h -// Product: cv act library -// Purpose: registry for factory functions to create SCardOS object -// -// Copyright: (c) 2002 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -// -// Autor: Dr. Xiangdong Wang (XWG) -// Date: 05/13/2002 -// --------------------------------------------------------------------------- - -#ifndef ACT_SCardOSKit_h -#define ACT_SCardOSKit_h - -namespace act -{ - class ISCardOS; - class ISCardAccess; - - /* - ISCardOS* CreateMicardOS(ISCardAccess*); - ISCardOS* CreateMicardo20E(ISCardAccess*); - ISCardOS* CreateMicardo23E(ISCardAccess* ac); - */ - - bool IsACOS(CreateSCardOSPtr ptr); - ISCardOS* CreateACOS_D01(ISCardAccess*); - ISCardOS* CreateACOS_A04(ISCardAccess*); - - bool IsCardOS_M4(CreateSCardOSPtr ptr); - ISCardOS* CreateCardOS_M4(ISCardAccess*); - ISCardOS* CreateCardOS_M4_MoC(ISCardAccess*); - - bool IsCardOS_M4_ECC(CreateSCardOSPtr ptr); - ISCardOS* CreateCardOS_M4_ECC(ISCardAccess*); - - bool IsCardOS_V4(CreateSCardOSPtr ptr); - ISCardOS* CreateCardOS_V4(ISCardAccess*); - - bool IsCardOS_V4_ECC(CreateSCardOSPtr ptr); - ISCardOS* CreateCardOS_V4_ECC(ISCardAccess*); - - bool IsStarCOS(CreateSCardOSPtr ptr); - ISCardOS* CreateStarCOS_3_0(ISCardAccess*); - ISCardOS* CreateStarCOS_3_2(ISCardAccess*); - - bool IsTCOS(CreateSCardOSPtr ptr); - ISCardOS* CreateTCOS_3_0(ISCardAccess*); - - bool IsJavaCardOS(CreateSCardOSPtr ptr); - ISCardOS* CreateJavaCardOS_2_2_2(ISCardAccess*); - ISCardOS* CreateJavaCardOS_2_2_1(ISCardAccess*); - ISCardOS* CreateJavaCardOS_2_2(ISCardAccess*); - ISCardOS* CreateJavaCardOS_2_1_2(ISCardAccess*); - ISCardOS* CreateJavaCardOS_2_1_1(ISCardAccess*); - ISCardOS* CreateJavaCardOS_2_1(ISCardAccess*); - - bool IsISO7816OS(CreateSCardOSPtr ptr); - ISCardOS* CreateISO7816OS(ISCardAccess*); - - // - // Passport OS - // --------------------------------------------------------------------------- - bool IsBACOS(CreateSCardOSPtr ptr); - ISCardOS* CreateBACOS(ISCardAccess* ac); - - bool IsEACOS(CreateSCardOSPtr ptr); - ISCardOS* CreateEACOS(ISCardAccess* ac); - - bool IsEACOS201(CreateSCardOSPtr ptr); - ISCardOS* CreateEACOS201(ISCardAccess* ac); - - bool IsEPAOS(CreateSCardOSPtr ptr); - ISCardOS* CreateEPAOS(ISCardAccess* ac); - - - // --------------------------------------------------------------------------- - inline bool IsACOS(CreateSCardOSPtr ptr) - { - return ptr == CreateACOS_D01 - || ptr == CreateACOS_A04; - } - - // --------------------------------------------------------------------------- - inline bool IsCardOS_M4(CreateSCardOSPtr ptr) - { - return ptr == CreateCardOS_M4 - || ptr == CreateCardOS_M4_MoC; - } - - // --------------------------------------------------------------------------- - inline bool IsCardOS_M4_ECC(CreateSCardOSPtr ptr) - { - return ptr == CreateCardOS_M4_ECC; - } - - // --------------------------------------------------------------------------- - inline bool IsCardOS_V4(CreateSCardOSPtr ptr) - { - return ptr == CreateCardOS_V4; - } - - // --------------------------------------------------------------------------- - inline bool IsCardOS_V4_ECC(CreateSCardOSPtr ptr) - { - return ptr == CreateCardOS_V4_ECC; - } - - // --------------------------------------------------------------------------- - inline bool IsStarCOS(CreateSCardOSPtr ptr) - { - return ptr == CreateStarCOS_3_0 - || ptr == CreateStarCOS_3_2; - } - - // --------------------------------------------------------------------------- - inline bool IsTCOS(CreateSCardOSPtr ptr) - { - return ptr == CreateTCOS_3_0; - } - - // --------------------------------------------------------------------------- - inline bool IsJavaCardOS(CreateSCardOSPtr ptr) - { - return ptr == CreateJavaCardOS_2_2_2 - || ptr == CreateJavaCardOS_2_2_1 - || ptr == CreateJavaCardOS_2_2 - || ptr == CreateJavaCardOS_2_1_2 - || ptr == CreateJavaCardOS_2_1_1 - || ptr == CreateJavaCardOS_2_1; - } - - // --------------------------------------------------------------------------- - inline bool IsISO7816OS(CreateSCardOSPtr ptr) - { - return ptr == CreateISO7816OS; - } - - // - // Passport OS - // --------------------------------------------------------------------------- - inline bool IsBACOS(CreateSCardOSPtr ptr) - { - return ptr == CreateBACOS; - } - - // --------------------------------------------------------------------------- - inline bool IsEACOS(CreateSCardOSPtr ptr) - { - return ptr == CreateEACOS; - } - - // --------------------------------------------------------------------------- - inline bool IsEACOS201(CreateSCardOSPtr ptr) - { - return ptr == CreateEACOS201; - } - - // --------------------------------------------------------------------------- - inline bool IsEPAOS(CreateSCardOSPtr ptr) - { - return ptr == CreateEPAOS; - } - -} // namespace act - -#endif // ACT_SCardOSKit_h diff --git a/actlibrary/OpenSUSE-11-x86_64/Release/include/actSCardOSReg.h b/actlibrary/OpenSUSE-11-x86_64/Release/include/actSCardOSReg.h deleted file mode 100644 index 4156615..0000000 --- a/actlibrary/OpenSUSE-11-x86_64/Release/include/actSCardOSReg.h +++ /dev/null @@ -1,46 +0,0 @@ -// --------------------------------------------------------------------------- -// Name: actSCardOSReg.h -// Product: cv act library -// Purpose: factory functions registry to create SCardOS objects. -// -// Copyright: (c) 2002 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -// -// Autor: Dr. Xiangdong Wang (XWG) -// Date: 04/09/2002 -// --------------------------------------------------------------------------- - -#ifndef ACT_SCardOSReg_h -#define ACT_SCardOSReg_h - -namespace act -{ -# define ACT_ISO7816OS_NAME "ISO7816OS" - - class ISCardOS; - class ISCardAccess; - - typedef ISCardOS* (*CreateSCardOSPtr)(ISCardAccess*); - - struct SCardOSMapEntry - { - const char* Name; - CreateSCardOSPtr CreatePtr; - }; - - class SCardOSReg - { - public: - static ISCardOS* CreateSCardOS(const char* name, ISCardAccess* ac); - static CreateSCardOSPtr GetCreatePointer(const char* name); - static const char* GetName(void* createptr); - static const char* GetNextName(const char* name); - static void Insert(const char* name, CreateSCardOSPtr createptr); - static void Insert(const SCardOSMapEntry* entry); - }; - -} // namespace act - -#endif // ACT_SCardOSReg_h diff --git a/actlibrary/OpenSUSE-11-x86_64/Release/include/actSCardTokenKit.h b/actlibrary/OpenSUSE-11-x86_64/Release/include/actSCardTokenKit.h deleted file mode 100644 index 90cb011..0000000 --- a/actlibrary/OpenSUSE-11-x86_64/Release/include/actSCardTokenKit.h +++ /dev/null @@ -1,105 +0,0 @@ -// --------------------------------------------------------------------------- -// Name: actSCardTokenKit.h -// Product: cv act library -// Purpose: registry for factory functions to create SCardOS and SCardToken objects -// -// Copyright: (c) 2002 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -// -// Autor: Dr. Xiangdong Wang (XWG) -// Date: 05/14/2002 -// --------------------------------------------------------------------------- - -#ifndef ACT_SCardTokenKit_h -#define ACT_SCardTokenKit_h - -namespace act -{ - class ISCardOS; - class SCardToken; - - bool IsStarCOSToken(ISCardOS* os); - SCardToken* CreateStarCOSToken(ISCardOS* os); - - bool IsV4cvProfile(ISCardOS* os); - SCardToken* CreateV4cvProfile(ISCardOS* os); - - bool IsV4cvECProfile(ISCardOS* os); - SCardToken* CreateV4cvECProfile(ISCardOS* os); - - bool IsV4CNSProfile(ISCardOS* os); - SCardToken* CreateV4CNSProfile(ISCardOS* os); - - bool IsNetKey2000Token(ISCardOS* os); - SCardToken* CreateNetKey2000Token(ISCardOS* os); - - bool IsNetKeyE4Token(ISCardOS* os); - SCardToken* CreateNetKeyE4Token(ISCardOS* os); - - bool IsNetKey30Token(ISCardOS* os); - SCardToken* CreateNetKey30Token(ISCardOS* os); - - bool IsNetKeyPKSToken(ISCardOS* os); - SCardToken* CreateNetKeyPKSToken(ISCardOS* os); - - bool IsNetKeyOldToken(ISCardOS* os); - SCardToken* CreateNetKeyOldToken(ISCardOS* os); - - bool IseTrustToken(ISCardOS* os); - SCardToken* CreateeTrustToken(ISCardOS* os); - - bool IsMicardoECToken(ISCardOS* os); - SCardToken* CreateMicardoECToken(ISCardOS* os); - - bool IsM4cvProfile(ISCardOS* os); - SCardToken* CreateM4cvProfile(ISCardOS* os); - - bool IsACOScvProfile(ISCardOS* os); - SCardToken* CreateACOScvProfile(ISCardOS* os); - - bool IsM4SiemensProfile(ISCardOS* os); - SCardToken* CreateM4SiemensProfile(ISCardOS* os); - - bool IsM4cvECProfile(ISCardOS* os); - SCardToken* CreateM4cvECProfile(ISCardOS* os); - - bool IsM4cvMoCProfile(ISCardOS* os); - SCardToken* CreateM4cvMoCProfile(ISCardOS* os); - - bool IsJavaCardAppletManager(ISCardOS* os); - SCardToken* CreateJavaCardAppletManager(ISCardOS* os); - - bool IsJCProfile(ISCardOS* os); - SCardToken* CreateJCProfile(ISCardOS* os); - - // PKCS#15 Profiles - bool IsM4PKCS15Profile(ISCardOS* os); - SCardToken* CreateM4PKCS15Profile(ISCardOS* os); - - bool IsV4PKCS15Profile(ISCardOS* os); - SCardToken* CreateV4PKCS15Profile(ISCardOS* os); - - bool IsV4PKCS15ECProfile(ISCardOS* os); - SCardToken* CreateV4PKCS15ECProfile(ISCardOS* os); - - bool IsJCPKCS15Profile(ISCardOS* os); - SCardToken* CreateJCPKCS15Profile(ISCardOS* os); - - bool IsJCPKCS15ECProfile(ISCardOS* os); - SCardToken* CreateJCPKCS15ECProfile(ISCardOS* os); - - bool IsACOSPKCS15Profile(ISCardOS* os); - SCardToken* CreateACOSPKCS15Profile(ISCardOS* os); - - bool IsStarCOSPKCS15Profile(ISCardOS* os); - SCardToken* CreateStarCOSPKCS15Profile(ISCardOS* os); - - // Passport - bool IsEPAProfile(ISCardOS* os); - SCardToken* CreateEPAProfile(ISCardOS* os); - -} // namespace act - -#endif // ACT_SCardTokenKit_h diff --git a/actlibrary/OpenSUSE-11-x86_64/Release/include/actSCardTokenReg.h b/actlibrary/OpenSUSE-11-x86_64/Release/include/actSCardTokenReg.h deleted file mode 100644 index 3f26385..0000000 --- a/actlibrary/OpenSUSE-11-x86_64/Release/include/actSCardTokenReg.h +++ /dev/null @@ -1,42 +0,0 @@ -// --------------------------------------------------------------------------- -// Name: actSCardTokenReg.h -// Product: cv act library -// Purpose: factory functions registry to create SCardToken objects. -// -// Copyright: (c) 2002 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -// -// Autor: Dr. Xiangdong Wang (XWG) -// Date: 05/13/2002 -// --------------------------------------------------------------------------- - -#ifndef ACT_SCardTokenReg_h -#define ACT_SCardTokenReg_h - -namespace act -{ - class ISCardOS; - class SCardToken; - - typedef bool (*CheckSCardTokenPtr)(ISCardOS*); - typedef SCardToken* (*CreateSCardTokenPtr)(ISCardOS*); - - struct SCardTokenMapEntry - { - CheckSCardTokenPtr CheckPtr; - CreateSCardTokenPtr CreatePtr; - }; - - class SCardTokenReg - { - public: - static SCardToken* CreateSCardToken(ISCardOS* os); - static void Insert(CheckSCardTokenPtr checkptr, CreateSCardTokenPtr createptr); - static void Insert(const SCardTokenMapEntry* entry); - }; - -} // namespace act - -#endif // ACT_SCardTokenReg_h diff --git a/actlibrary/OpenSUSE-11-x86_64/Release/include/actSCardUtil.h b/actlibrary/OpenSUSE-11-x86_64/Release/include/actSCardUtil.h deleted file mode 100644 index 2b890d0..0000000 --- a/actlibrary/OpenSUSE-11-x86_64/Release/include/actSCardUtil.h +++ /dev/null @@ -1,27 +0,0 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actSCardUtil.h -// Product: cv act library -// Purpose: useful global functions -// -// Copyright: (c) 2008 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef actSCardUtil_h -#define actSCardUtil_h - -namespace act -{ - // --------------------------------------------------------------------------- - template - inline BlobT short2blob(unsigned short n) - { - byte data[2] = { byte((n >> 8) & 0xff), byte(n & 0xff) }; - return BlobT(&data[0], &data[0] + sizeof(data)); - } - -} // namespace act - -#endif // actSCardUtil_h diff --git a/actlibrary/OpenSUSE-11-x86_64/Release/include/actSlotManager.h b/actlibrary/OpenSUSE-11-x86_64/Release/include/actSlotManager.h deleted file mode 100644 index 63875f2..0000000 --- a/actlibrary/OpenSUSE-11-x86_64/Release/include/actSlotManager.h +++ /dev/null @@ -1,81 +0,0 @@ -// --------------------------------------------------------------------------- -// Name: actSlotManager.h -// Product: cv act library -// Purpose: The class SlotManager detects and manages the subsystems and the slots -// -// Copyright: (c) 2002 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -// -// Autor: Dr. Xiangdong Wang -// Markus Tesche -// Date: 03/26/2002 -// --------------------------------------------------------------------------- - -#ifndef ACT_SlotManager_h -#define ACT_SlotManager_h - -#include "actIEventMonitoring.h" - -namespace act -{ - class ISubsystem; - class ISubsystemConfig; - - class ISlot; - class ITokenConfig; - - // - // SlotManager - class SlotManager : public IEventMonitoring - { - private: - struct SubsystemList - { - SubsystemList(ISubsystem* system, SubsystemList* next = 0); - ~SubsystemList(); - - SubsystemList* insert(SubsystemList* prev); - SubsystemList* remove(SubsystemList* prev); - - ISubsystem* system; - SubsystemList* next; - }; - - public: - SlotManager(ITokenConfig* tkcfg = 0); - ~SlotManager(); - - bool Install(ISubsystem* system); - bool Install(ISubsystemConfig* config); - - void Refresh(); - void Disconnect(); - ISubsystem* GetSystem(size_t pos = 0) const; - - // SlotList - int GetSlotNumber() const; - const ISlot* GetSlot(int pos) const; - ISlot* CreateSlot(const char* name) const; - - // IEventMonitoring functions - virtual bool IsMonitored() const; - virtual void StopMonitor(bool force = false); - virtual void StartMonitor(IEventHandler* cmd); - - protected: - IEventHandler* SetMonitor(SubsystemList* begin, IEventHandler* cmd, bool force); - - private: - int m_total; - ITokenConfig* m_tkcfg; - SubsystemList* m_begin; - SubsystemList* m_current; - IEventHandler* m_cmd_root; - IEventHandler* m_cmd_current; - }; - -} // namespace act - -#endif // ACT_SlotManager_h diff --git a/actlibrary/OpenSUSE-11-x86_64/Release/include/actSlotMonitorKit.h b/actlibrary/OpenSUSE-11-x86_64/Release/include/actSlotMonitorKit.h deleted file mode 100644 index 043e5c9..0000000 --- a/actlibrary/OpenSUSE-11-x86_64/Release/include/actSlotMonitorKit.h +++ /dev/null @@ -1,32 +0,0 @@ -// --------------------------------------------------------------------------- -// Name: actSlotMonitorKit.h -// Product: cv act library -// Purpose: registry for factory functions to create slot monitors -// -// Copyright: (c) 2009 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -// -// Autor: Markus Tesche -// Date: 04/12/2009 -// --------------------------------------------------------------------------- - -#ifndef ACT_SlotMonitorKit_h -#define ACT_SlotMonitorKit_h - -namespace act -{ - class ISubsystem; - class ISlot; - class ISlotMonitor; - - // default polling slot monitor - ISlotMonitor* CreateSlotMonitor(ISlot*); - - ISlotMonitor* CreatePCSCSlotMonitor(ISlot*); - ISlotMonitor* CreatePCSCSystemSlotMonitor(ISubsystem*); - -} // namespace act - -#endif // ACT_SlotMonitorKit_h diff --git a/actlibrary/OpenSUSE-11-x86_64/Release/include/actSlotMonitorReg.h b/actlibrary/OpenSUSE-11-x86_64/Release/include/actSlotMonitorReg.h deleted file mode 100644 index 60a8d7e..0000000 --- a/actlibrary/OpenSUSE-11-x86_64/Release/include/actSlotMonitorReg.h +++ /dev/null @@ -1,54 +0,0 @@ -// --------------------------------------------------------------------------- -// Name: actSlotMonitorReg.h -// Product: cv act library -// Purpose: factory functions registry to create Slot-Monitor objects. -// -// Copyright: (c) 2009 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -// -// Autor: Markus Tesche -// Date: 04/12/2009 -// --------------------------------------------------------------------------- - -#ifndef ACT_SlotMonitoReg_h -#define ACT_SlotMonitoReg_h - -#include "actFactoryReg.h" - -namespace act -{ - class ISubsystem; - class ISlot; - class ISlotMonitor; - - typedef ISlotMonitor* (*CreateSlotMonitorPtr)(ISlot*); - typedef ISlotMonitor* (*CreateSystemSlotMonitorPtr)(ISubsystem*); - - struct SlotMonitorRegCreatePtr - { - ISlotMonitor* operator()(const char*, ISlot* slot) const - { - return createSlotMonitor != 0 ? createSlotMonitor(slot) : 0; - } - - ISlotMonitor* operator()(const char*, ISubsystem* system) const - { - return createSystemSlotMonitor != 0 ? createSystemSlotMonitor(system) : 0; - } - - CreateSlotMonitorPtr createSlotMonitor; - CreateSystemSlotMonitorPtr createSystemSlotMonitor; - }; - - - typedef FactoryMapEntry SlotMonitorRegEntry; - - typedef FactoryReg - < ISlotMonitor, SlotMonitorRegCreatePtr, SlotMonitorRegEntry - > SlotMonitorReg; - -} // namespace act - -#endif // ACT_SlotMonitoReg_h diff --git a/actlibrary/OpenSUSE-11-x86_64/Release/include/actState.h b/actlibrary/OpenSUSE-11-x86_64/Release/include/actState.h deleted file mode 100644 index c7e1cbf..0000000 --- a/actlibrary/OpenSUSE-11-x86_64/Release/include/actState.h +++ /dev/null @@ -1,29 +0,0 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actState.h -// Product: cv act library -// Purpose: -// -// Copyright: (c) 2000 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_STATE_H -#define ACT_STATE_H - -namespace act -{ - - const int READY=0; - const int SIGNATURE_OK=1; - const int IS_FINALIZED=2; - const int DECRYPT_ERROR=3; - const int CERTIFICATE_OK=4; - const int CERTIFICATE_ERROR=5; - const int VERIFY_ERROR=6; - -} // namspace act - -#endif - diff --git a/actlibrary/OpenSUSE-11-x86_64/Release/include/actStreamCipherKit.h b/actlibrary/OpenSUSE-11-x86_64/Release/include/actStreamCipherKit.h deleted file mode 100644 index efc74fa..0000000 --- a/actlibrary/OpenSUSE-11-x86_64/Release/include/actStreamCipherKit.h +++ /dev/null @@ -1,22 +0,0 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actStreamCipherKit.h -// Product: cv act library -// Purpose: declaration of all factory functions -// -// Copyright: (c) 2001 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_StreamCipherKit_h -#define ACT_StreamCipherKit_h - -namespace act -{ - class IStreamCipher; - - IStreamCipher* CreateARC4(); -} -#endif - diff --git a/actlibrary/OpenSUSE-11-x86_64/Release/include/actStreamCipherReg.h b/actlibrary/OpenSUSE-11-x86_64/Release/include/actStreamCipherReg.h deleted file mode 100644 index 4cc5b22..0000000 --- a/actlibrary/OpenSUSE-11-x86_64/Release/include/actStreamCipherReg.h +++ /dev/null @@ -1,39 +0,0 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actStreamCipherReg.h -// Product: cv act library -// Purpose: registry for factory functions in actStreamCipherKit.h -// -// Copyright: (c) 2001 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_StreamCipherReg_h -#define ACT_StreamCipherReg_h - -namespace act -{ - class IStreamCipher; - - typedef IStreamCipher* (*CreateStreamCipherPtr)(); - - struct StreamCipherMapEntry { - const char* Name; - CreateStreamCipherPtr CreatePtr; - }; - - class StreamCipherReg - { - public: - static IStreamCipher* CreateStreamCipher(const char* name); - static CreateStreamCipherPtr GetCreatePointer(const char* name); - static const char* GetName(void* createptr); - static const char* GetNextName(const char* name); - static void Insert(const char* name,CreateStreamCipherPtr createptr); - static void Insert(const StreamCipherMapEntry* map); - }; -} - -#endif - diff --git a/actlibrary/OpenSUSE-11-x86_64/Release/include/actSubsystemKit.h b/actlibrary/OpenSUSE-11-x86_64/Release/include/actSubsystemKit.h deleted file mode 100644 index c3452f0..0000000 --- a/actlibrary/OpenSUSE-11-x86_64/Release/include/actSubsystemKit.h +++ /dev/null @@ -1,33 +0,0 @@ -// --------------------------------------------------------------------------- -// Name: actSubsystemKit.h -// Product: cv act library -// Purpose: registry for factory functions to create subsystem -// -// Copyright: (c) 2002 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -// -// Autor: Dr. Xiangdong Wang (XWG) -// Date: 05/13/2002 -// --------------------------------------------------------------------------- - -#ifndef ACT_SubsystemKit_h -#define ACT_SubsystemKit_h - -namespace act -{ - class ISubsystem; - class ISubsystemConfig; - - ISubsystem* CreateCTAPISystem(const char*); - - ISubsystem* CreatePCSCSystem(const char*); - ISubsystem* CreatePCSCSystemEx(ISubsystemConfig*); - - ISubsystem* CreateCSPSystem(const char*); - ISubsystem* CreatePKCS11System(const char*); - -} // namespace act - -#endif // ACT_SubsystemKit_h diff --git a/actlibrary/OpenSUSE-11-x86_64/Release/include/actSubsystemReg.h b/actlibrary/OpenSUSE-11-x86_64/Release/include/actSubsystemReg.h deleted file mode 100644 index 7a82df8..0000000 --- a/actlibrary/OpenSUSE-11-x86_64/Release/include/actSubsystemReg.h +++ /dev/null @@ -1,53 +0,0 @@ -// --------------------------------------------------------------------------- -// Name: actSubsystemReg.h -// Product: cv act library -// Purpose: factory functions registry to create Subsystem objects. -// -// Copyright: (c) 2002 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -// -// Autor: Dr. Xiangdong Wang (XWG) -// Markus Tesche -// Date: 05/14/2002 -// --------------------------------------------------------------------------- - -#ifndef ACT_SubsystemReg_h -#define ACT_SubsystemReg_h - -namespace act -{ - class ISubsystem; - class ISubsystemConfig; - - typedef ISubsystem* (*CreateSubsystemPtr)(const char*); - typedef ISubsystem* (*CreateSubsystemExPtr)(ISubsystemConfig*); - - struct SubsystemMapEntry - { - const char* Name; - CreateSubsystemPtr CreatePtr; - CreateSubsystemExPtr CreateExPtr; - }; - - class SubsystemReg - { - public: - static ISubsystem* CreateSubsystem(ISubsystemConfig* config); - static ISubsystem* CreateSubsystem(const char* name, const char* dll_name = 0); - - static CreateSubsystemPtr GetCreatePointer(const char* name); - static CreateSubsystemExPtr GetCreateExPointer(const char* name); - - static const char* GetName(void* createptr); - static const char* GetNextName(const char* name); - - static void Insert(const char* name, CreateSubsystemPtr createptr); - static void Insert(const char* name, CreateSubsystemExPtr createexptr); - static void Insert(const SubsystemMapEntry* map); - }; - -} // namespace act - -#endif // ACT_SubsystemReg_h diff --git a/actlibrary/OpenSUSE-11-x86_64/Release/include/actTokenAuthProtocolKit.h b/actlibrary/OpenSUSE-11-x86_64/Release/include/actTokenAuthProtocolKit.h deleted file mode 100644 index d528776..0000000 --- a/actlibrary/OpenSUSE-11-x86_64/Release/include/actTokenAuthProtocolKit.h +++ /dev/null @@ -1,30 +0,0 @@ -// --------------------------------------------------------------------------- -// Name: actTokenAuthProtocolKit.h -// Product: cv act library -// Purpose: Factory functions to create specific ITokenAuthProtocol objects. -// -// Copyright: (c) 2009 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -// -// Autor: Markus Tesche -// Date: 14/10/2008 -// --------------------------------------------------------------------------- - -#ifndef ACT_TokenAuthProtocolKit_h -#define ACT_TokenAuthProtocolKit_h - -namespace act -{ - class ITokenAuthProtocol; - - ITokenAuthProtocol* CreateTokenAuthPACE(const char* name); // EACv2-PACE - ITokenAuthProtocol* CreateTokenAuthTA(const char* name); // EACv2-TA - ITokenAuthProtocol* CreateTokenAuthCA(const char* name); // EACv2-CA - - ITokenAuthProtocol* CreateTokenAuthBAC(const char* name); // EACv1-BAC - -} // namespace act - -#endif // ACT_TokenAuthProtocolKit_h diff --git a/actlibrary/OpenSUSE-11-x86_64/Release/include/actTokenAuthProtocolReg.h b/actlibrary/OpenSUSE-11-x86_64/Release/include/actTokenAuthProtocolReg.h deleted file mode 100644 index 9f2924d..0000000 --- a/actlibrary/OpenSUSE-11-x86_64/Release/include/actTokenAuthProtocolReg.h +++ /dev/null @@ -1,33 +0,0 @@ -// --------------------------------------------------------------------------- -// Name: actTokenAuthProtocolReg.h -// Product: cv act library -// Purpose: factory functions registry to create ITokenAuthProtocol objects. -// -// Copyright: (c) 2009 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -// -// Autor: Markus Tesche -// Date: 14/10/2009 -// --------------------------------------------------------------------------- - -#ifndef ACT_TokenAuthProtocolReg_h -#define ACT_TokenAuthProtocolReg_h - -#include "actFactoryReg.h" - -namespace act -{ - class ITokenAuthProtocol; - - typedef ITokenAuthProtocol* (*CreateTokenAuthProtocolPtr)(const char*); - typedef FactoryMapEntry TokenAuthProtocolMapEntry; - - typedef FactoryReg - < ITokenAuthProtocol, CreateTokenAuthProtocolPtr, TokenAuthProtocolMapEntry - > TokenAuthProtocolReg; - -} // namespace act - -#endif // ACT_TokenAuthProtocolReg_h diff --git a/actlibrary/OpenSUSE-11-x86_64/Release/include/actTokenBase.h b/actlibrary/OpenSUSE-11-x86_64/Release/include/actTokenBase.h deleted file mode 100644 index d31b0e7..0000000 --- a/actlibrary/OpenSUSE-11-x86_64/Release/include/actTokenBase.h +++ /dev/null @@ -1,200 +0,0 @@ -// --------------------------------------------------------------------------- -// Name: actTokenBase.h -// Product: cv act library -// Purpose: Declares common token enums and constants. -// -// Copyright: (c) 2010 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -// -// Autor: Markus Tesche -// Date: 03/24/2010 -// --------------------------------------------------------------------------- - -#ifndef ACT_TokenBase_h -#define ACT_TokenBase_h - -namespace act -{ - enum TokenError - { - TOKEN_SUCCESS = 0, - TOKEN_FUNCTION_NOT_SUPPORTED = -1, - TOKEN_FUNCTION_FAILED = -2, - TOKEN_LOCKED = -3 - }; - - enum TokenType - { - TOKEN_RSA = 0x0001, - TOKEN_DSA = 0x0002, - TOKEN_DH = 0x0004, - TOKEN_ECDSA = 0x0008, - TOKEN_ECDH = 0x0010, - TOKEN_SECRET = 0x0080, - - TOKEN_BAC = 0x0100, - TOKEN_EAC = 0x0200, - TOKEN_EPA = 0x0400, - }; - - enum TokenStatusCode - { - TOKEN_EMPTY = 0x0000, - TOKEN_INITIALIZED = 0x0001, - TOKEN_PERSONALIZED = 0x0002 - }; - - enum ProfileType - { - PROFILE_EMPTY = 0x00, - PROFILE_CV = 0x01, - PROFILE_CNS = 0x02, - PROFILE_GDO = 0x03, - PROFILE_CVEC = 0x04, - PROFILE_SIGG = 0x05, - PROFILE_JC = 0x06, - PROFILE_MICARDOEC = 0x07, - PROFILE_STARCOS = 0x08, - PROFILE_NETKEY = 0x09, - PROFILE_CVMOC = 0x0a, - - PROFILE_PKCS15 = 0x0f, - PROFILE_PKCS15_mEAC = 0x10, // includes PACE-Pin's - PROFILE_PKCS15_mEAC_TA = 0x11, // includes PACE-Pin's and TA-IS, TA-ST, TA-AT - - PROFILE_BAC = 0x80, - PROFILE_EAC = 0x81, - PROFILE_EAC201 = 0x82, - PROFILE_EPA = 0x83, - - PROFILE_PKCS11 = 0xa0, - PROFILE_CSP = 0xa1, - PROFILE_MD = 0xa2, - - PROFILE_ANY = 0xfe, - PROFILE_UNKNOWN = 0xff - }; - - // usage of key, pin - enum KeyUsage - { - KEY_EMPTY = 0x0000, - SIGN_DATA = 0x0001, - DEC_DATA = 0x0002, - AGREE_KEY = 0x0004, - AUTH_DATA = 0x0008, - BLOCKCIPHER_KEY = 0x0010, - VERIFY_DATA = 0x0020, - ENC_DATA = 0x0040, - UNLOCK_PIN = 0x0100, - UPDATE_BINARY = 0x0200, - DELETE_BINARY = 0x0400, - ALL_USAGE = 0xffff, - - // custom usage - SIGN_HASH = 0x00010000, - CUSTOM_USAGE_MASK = 0xffff0000, - - // combined usage - ENC_DEC_DATA = DEC_DATA | ENC_DATA, - SIGN_DEC_DATA = DEC_DATA | SIGN_DATA, - SIGN_HASH_DATA = SIGN_HASH | SIGN_DATA, - }; - - enum KeyType - { // NOTE: Never change (!), used for serialization. - KEY_UNKNOWN = 0xffff, - - KEY_RSA = 0x0000, - KEY_DSA = 0x0001, - KEY_DH = 0x0002, - KEY_ECDSA = 0x0003, - KEY_ECDH = 0x0004, - - KEY_SECRET = 0x0010, - KEY_DES = 0x0001 + KEY_SECRET, - KEY_2DES = 0x0002 + KEY_SECRET, - KEY_3DES = 0x0003 + KEY_SECRET, - KEY_AES = 0x0004 + KEY_SECRET, - - KEY_TYPE_MASK = 0x001f - }; - - enum CertificateType - { // NOTE: Never change (!), used for serialization. - CERT_UNKNOWN = 0xffff, - - CERT_X509 = 0x0000, - CERT_CV = 0x0001 - }; - - enum CertificateUsage - { - EMPTY_CERT = 0x0000, - SIGN_CERT = 0x0001, - DEC_CERT = 0x0002, - ROOT_CERT = 0x0004, - AUTH_CERT = 0x0008, - CA_CERT = 0x0010, - SMARTCARD_LOGON_CERT = 0x0100, // lib version >= 1.5 - UNSPECIFIED_CERT = 0xffff - }; - - enum SecStatus - { - SS_INVALID = 0x0000, - SS_AUTHENTICATED = 0x0001, - SS_UNKNOWN = 0xffff, - }; - - enum AUTH_OBJ_TYPE - { - AUTH_OBJ_PIN = 0xff, // -1 - AUTH_OBJ_BIOMETRIC = 0xfe, // -2 - }; - - typedef ulong IDType; - typedef ushort FIDType; - - const IDType ID_INVALID = 0; - const FIDType FID_INVALID = 0x0000; - - // - // FileInfo - struct FileInfo - { - explicit FileInfo(FIDType val_fid = FID_INVALID, IDType val_rec_nr = ID_INVALID) - : fid(val_fid) - , rec_nr(val_rec_nr) - { } - - FIDType fid; - IDType rec_nr; - }; - - // LengthInfo - struct LengthInfo - { - LengthInfo(ulong _minLen = 0, ulong _maxLen = 0, ulong _storedLen = 0) - : minLen(_minLen) - , maxLen(_maxLen) - , storedLen(_storedLen) - { } - - void swap(LengthInfo& other) - { - std::swap(minLen, other.minLen); - std::swap(storedLen, other.storedLen); - std::swap(maxLen, other.maxLen); - } - - ulong minLen; - ulong storedLen; - ulong maxLen; - }; - -} // namespace act - -#endif // ACT_TokenBase_h diff --git a/actlibrary/OpenSUSE-11-x86_64/Release/include/actTokenConfig.h b/actlibrary/OpenSUSE-11-x86_64/Release/include/actTokenConfig.h deleted file mode 100644 index 45844c1..0000000 --- a/actlibrary/OpenSUSE-11-x86_64/Release/include/actTokenConfig.h +++ /dev/null @@ -1,104 +0,0 @@ -// --------------------------------------------------------------------------- -// Name: actTokenConfig.h -// Product: cv act library -// Purpose: Declares all availabl param_id's for ITokenCofing. -// -// Copyright: (c) 2009 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -// -// Autor: Markus Tesche -// Date: 05/07/2009 -// --------------------------------------------------------------------------- - -#ifndef ACT_TokenConfig_h -#define ACT_TokenConfig_h - -#include "actMode.h" -#include "actIParam.h" - -namespace act -{ - // according to ISO 24727-3, definition of supported Data Set's - enum DataSetList - { - DATA_SET_NONE = 0, - DATA_SET_PUBLIC_DATA = (1 << 0), - DATA_SET_PRIVATE_DATA = (1 << 1), - DATA_SET_CERTIFICATES = (1 << 2), - DATA_SET_USEFUL_CERTIFICATES = (1 << 3), - DATA_SET_TRUSTED_CERTIFICATES = (1 << 4), - DATA_SET_TRUSTED_PUBLIC_KEYS = (1 << 5), - // - // ... - DATA_SET_NEXT = (1 << 6), - DATA_SET_MASK = DATA_SET_NEXT - 1, - DATA_SET_ALL = PARAM_INVALID_VALUE, - }; - - enum ObjectTypeList - { - OBJECT_TYPE_NONE = 0, - OBJECT_TYPE_KEY_DES = (1 << 0), - OBJECT_TYPE_KEY_2DES = (1 << 1), - OBJECT_TYPE_KEY_3DES = (1 << 2), - OBJECT_TYPE_KEY_AES = (1 << 3), - OBJECT_TYPE_KEY_RSA = (1 << 4), - OBJECT_TYPE_KEY_DSA = (1 << 5), - OBJECT_TYPE_KEY_DH = (1 << 6), - OBJECT_TYPE_KEY_ECC = (1 << 7), - OBJECT_TYPE_DATA = (1 << 8), - OBJECT_TYPE_CERTIFICATE = (1 << 9), - OBJECT_TYPE_USEFUL_CERTIFICATE = (1 << 10), - OBJECT_TYPE_TRUSTED_CERTIFICATE = (1 << 11), - OBJECT_TYPE_TRUSTED_PUBLIC_KEY = (1 << 12), - // - // Mark an object as private - OBJECT_TYPE_PRVIVATE = (1 << 13), - // - // ... - OBJECT_TYPE_NEXT = (1 << 14), - OBJECT_TYPE_MASK = OBJECT_TYPE_NEXT - 1, - OBJECT_TYPE_ALL = PARAM_INVALID_VALUE, - }; - - enum ObjectAttributeList - { - OBJECT_ATTR_LABEL_P = OBJECT_TYPE_NEXT, - OBJECT_ATTR_LABEL_P_PUB = OBJECT_ATTR_LABEL_P, - OBJECT_ATTR_LABEL_P_PRV = OBJECT_ATTR_LABEL_P | OBJECT_TYPE_PRVIVATE, - }; - - enum - { - TC_TYPE = TOKEN_CONFIG, - TC_HAS_TOKEN_CAPABILITIES, - TC_HAS_WRITABLE_AODF, - TC_IS_MOC_ENABLED, - TC_IS_MINIDRIVER_ENABLED, - TC_IS_PROFILE_ERASABLE, - TC_PINPAD_CHAR, - TC_DATA_SET_LIST, - TC_OBJECT_TYPE_LIST, - // - // Object naming - Label Prefix - TC_LABEL_P_PRV_DES = OBJECT_ATTR_LABEL_P_PRV + OBJECT_TYPE_KEY_DES, - TC_LABEL_P_PRV_2DES = OBJECT_ATTR_LABEL_P_PRV + OBJECT_TYPE_KEY_2DES, - TC_LABEL_P_PRV_3DES = OBJECT_ATTR_LABEL_P_PRV + OBJECT_TYPE_KEY_3DES, - TC_LABEL_P_PRV_AES = OBJECT_ATTR_LABEL_P_PRV + OBJECT_TYPE_KEY_AES, - TC_LABEL_P_PUB_RSA = OBJECT_ATTR_LABEL_P_PUB + OBJECT_TYPE_KEY_RSA, - TC_LABEL_P_PRV_RSA = OBJECT_ATTR_LABEL_P_PRV + OBJECT_TYPE_KEY_RSA, - TC_LABEL_P_PUB_ECC = OBJECT_ATTR_LABEL_P_PUB + OBJECT_TYPE_KEY_ECC, - TC_LABEL_P_PRV_ECC = OBJECT_ATTR_LABEL_P_PRV + OBJECT_TYPE_KEY_ECC, - TC_LABEL_P_PUB_DATA = OBJECT_ATTR_LABEL_P_PUB + OBJECT_TYPE_DATA, - TC_LABEL_P_PRV_DATA = OBJECT_ATTR_LABEL_P_PRV + OBJECT_TYPE_DATA, - TC_LABEL_P_PUB_CERTIFICATE = OBJECT_ATTR_LABEL_P_PUB + OBJECT_TYPE_CERTIFICATE, - TC_LABEL_P_PUB_USEFUL_CERTIFICATE = OBJECT_ATTR_LABEL_P_PUB + OBJECT_TYPE_USEFUL_CERTIFICATE, - TC_LABEL_P_PUB_TRUSTED_CERTIFICATE = OBJECT_ATTR_LABEL_P_PUB + OBJECT_TYPE_TRUSTED_CERTIFICATE, - TC_LABEL_P_PUB_TRUSTED_PUBLIC_KEY = OBJECT_ATTR_LABEL_P_PUB + OBJECT_TYPE_TRUSTED_PUBLIC_KEY, - }; - -} // namespace act - -#endif // ACT_TokenConfig_h diff --git a/actlibrary/OpenSUSE-11-x86_64/Release/include/actTokenExtensionKit.h b/actlibrary/OpenSUSE-11-x86_64/Release/include/actTokenExtensionKit.h deleted file mode 100644 index f087bdc..0000000 --- a/actlibrary/OpenSUSE-11-x86_64/Release/include/actTokenExtensionKit.h +++ /dev/null @@ -1,28 +0,0 @@ -// --------------------------------------------------------------------------- -// Name: actTokenExtensionKit.h -// Product: cv act library -// Purpose: Factory functions to create specific ITokenExtension objects. -// -// Copyright: (c) 2008 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -// -// Autor: Markus Tesche -// Date: 12/02/2008 -// --------------------------------------------------------------------------- - -#ifndef ACT_TokenExtensionKit_h -#define ACT_TokenExtensionKit_h - -namespace act -{ - class IToken; - class ITokenExtension; - - ITokenExtension* CreateMDProfileExt(const char* name, IToken*); // Minidriver - ITokenExtension* CreateEACTAwithCAPI(const char* name, IToken*); // EACv2-TA with CAPI - -} // namespace act - -#endif // ACT_TokenExtensionKit_h diff --git a/actlibrary/OpenSUSE-11-x86_64/Release/include/actTokenExtensionReg.h b/actlibrary/OpenSUSE-11-x86_64/Release/include/actTokenExtensionReg.h deleted file mode 100644 index f961078..0000000 --- a/actlibrary/OpenSUSE-11-x86_64/Release/include/actTokenExtensionReg.h +++ /dev/null @@ -1,34 +0,0 @@ -// --------------------------------------------------------------------------- -// Name: actTokenExtensionReg.h -// Product: cv act library -// Purpose: factory functions registry to create ITokenExtension objects. -// -// Copyright: (c) 2008 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -// -// Autor: Markus Tesche -// Date: 12/02/2008 -// --------------------------------------------------------------------------- - -#ifndef ACT_TokenExtensionReg_h -#define ACT_TokenExtensionReg_h - -#include "actFactoryReg.h" - -namespace act -{ - class IToken; - class ITokenExtension; - - typedef ITokenExtension* (*CreateTokenExtensionPtr)(const char*, IToken*); - typedef FactoryMapEntry TokenExtensionMapEntry; - - typedef FactoryReg - < ITokenExtension, CreateTokenExtensionPtr, TokenExtensionMapEntry - > TokenExtensionReg; - -} // namespace act - -#endif // ACT_TokenExtensionReg_h diff --git a/actlibrary/OpenSUSE-11-x86_64/Release/include/actTools.h b/actlibrary/OpenSUSE-11-x86_64/Release/include/actTools.h deleted file mode 100644 index c22c455..0000000 --- a/actlibrary/OpenSUSE-11-x86_64/Release/include/actTools.h +++ /dev/null @@ -1,93 +0,0 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actTools.h -// Product: cv act library -// Purpose: useful global functions -// -// Copyright: (c) 2000 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_Tools_h -#define ACT_Tools_h - -#include "actMode.h" -#include "actBlob.h" - -namespace act -{ - class IKey; - - // Functions for RSA public key and private key operation. - // Both functions return the plain result of the modular - // exponentiation using the public or private exponent. - // - // 1) Calculate m^e mod n, where e is the public exponent - Blob RSAPublicKeyOperation(IKey* rsa_key, const Blob& m); - // 2) Calculate c^d mod n, where d is the private exponent - Blob RSAPrivateKeyOperation(IKey* rsa_key, const Blob& c); - - - // Function for PKCS#3 Diffie-Hellman. - // The function initializes an act::IKey Diffie-Hellman key object - // from PKCS#3 DH parameters p and g (prime and generator). - void PKCS3DHKeyToDHKey(const Blob& prime, const Blob& generator, IKey *dhKey); - - - // Read pfx file and get private key - Blob getPKCS8Key(const Blob& pfx_data, const char* password); - // Read pfx file and get the own (user) certificate - Blob getOwnCertificateFromPfx(const Blob& pfx_data, const char* password); - - - // Function to encode an ASN1 object identifier in binary form - // example EncodeOID("0.2.262.1.10.1.3.8") = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x01, 0x03, 0x08 } - Blob EncodeOID(const char* oid); - - - // Converts a signed decimal number or hexadecimal number (with prefix "0x" / "-0x") - // into a Blob (Twos-Complement representation for negative numbers) - Blob EncodeNumber(const char* number); - Blob EncodeNumber(int number); - - - // CRC functions - - // CRC-16 (direct mode, no zero bit augmentation) - // - // Poly : 0x8005 (x^16 + x^15 + x^2 + 1) - // RefIn : True (bit reflection on the input bytes) - // RefOut : True (bit reflection on the final CRC value) - // XorOut : 0x0000 (no XOR on the returned CRC value) - unsigned long CalculateCRC16(const act::byte* message, size_t message_len, - unsigned long crc_init_value = 0x0000); - unsigned long CalculateCRC16(const act::Blob& message, - unsigned long crc_init_value = 0x0000); - - // CRC-16 CCIT (direct mode, no zero bit augmentation) - // - // Poly : 0x1021 (x^16 + x^12 + x^5 + 1) - // RefIn : False (no bit reflection on the input bytes) - // RefOut : False (no bit reflection on the final CRC value) - // XorOut : 0x0000 (no XOR on the returned CRC value) - unsigned long CalculateCRC16CCITT(const act::byte* message, size_t message_len, - unsigned long crc_init_value = 0xFFFF); - unsigned long CalculateCRC16CCITT(const act::Blob& message, - unsigned long crc_init_value = 0xFFFF); - - // CRC-32 (direct mode, no zero bit augmentation) - // - // Poly : 0x04C11DB7 (x^32 + x^26 + x^23 + x^22 + x^16 + x^12 + x^11 + ... - // ... + x^10 + x^8 + x^7 + x^5 + x^4 + x^2 + x^ + 1) - // RefIn : True (bit reflection on the input bytes) - // RefOut : True (bit reflection on the final CRC value) - // XorOut : 0xFFFFFFFF (XOR on the returned CRC value) - unsigned long CalculateCRC32(const act::byte* message, size_t message_len, - unsigned long crc_init_value = 0xFFFFFFFF); - unsigned long CalculateCRC32(const act::Blob& message, - unsigned long crc_init_value = 0xFFFFFFFF); - -} // namespace act - -#endif // ACT_Tools_h diff --git a/actlibrary/OpenSUSE-11-x86_64/Release/include/actToolsECC.h b/actlibrary/OpenSUSE-11-x86_64/Release/include/actToolsECC.h deleted file mode 100644 index 246b99f..0000000 --- a/actlibrary/OpenSUSE-11-x86_64/Release/include/actToolsECC.h +++ /dev/null @@ -1,99 +0,0 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actToolsECC.h -// Product: cv act library -// Purpose: useful ECC functions -// -// Copyright: (c) 2009 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_ToolsECC_h -#define ACT_ToolsECC_h - -#include "actMode.h" -#include "actBlob.h" -#include "actIKey.h" - -namespace act -{ - // Functions for ECC scalar multiplication, addition of points. - // Input points must be in ASN.1 point representation (uncompressed, - // compressed or hybrid). The output point will be in ASN.1 representation - // as indicated in 'output_format'. - // - // 1) Calculate s * Q, s unsigned in ASN.1 OCTET STRING representation - // (leading zeros will be ignored) - Blob ECMultiplyPoint(IKey* ec_key, const Blob& s, const Blob& Q, - int output_format = UNCOMPRESSED); - // 2) Calculate Q1 + Q2 - Blob ECAddPoints(IKey* ec_key, const Blob& Q1, const Blob& Q2, - int output_format = UNCOMPRESSED); - - - // Functions to encode an (EC-)DSA signature (r, s) in ASN1 format and backwards. - // - // 1) Plain signature I/O as string - // - for encode: r and s must be in hex notation - // - for decode: the user has to allocate r and s buffers - void EncodeSignature(const char* r, const char* s, Blob& signature_ASN1); - void DecodeSignature(const Blob& signature_ASN1, char* r, char* s); - // 2) Plain signature I/O as byte array (Blob) - // - r and s I/O in big endian representation - void EncodeSignature(const Blob& r, const Blob& s, Blob& signature_ASN1); - void DecodeSignature(const Blob& signature_ASN1, Blob& r, Blob& s); - // 3) Plain signature I/O as byte array (Blob) - // - r_s length even, left haft = r, right half = s - // - if order_bytes is non zero, decode output length is 2 * order_bytes - void EncodeSignature(const Blob& r_s, Blob& signature_ASN1); - void DecodeSignature(const Blob& signature_ASN1, Blob& r_s, size_t order_bytes = 0); - - - // Tools for elliptic curves over GF(P). - // The basepoint can be given by it's coordinates (Gx, Gy) or as - // COMPRESSED, UNCOMPRESSED or HYBRID octetstring G corresponding - // to ANSI X9.62/63 standard. - // By default, the basepoint will be encoded in UNCOMPRESSED format. - - Blob EncodePrimeCurveParam(const Blob& p, const Blob& a, const Blob& b, - const Blob& Gx, const Blob& Gy, const Blob& n, const Blob& h, - int output_type = UNCOMPRESSED); - - Blob EncodePrimeCurveParam(const Blob& p, const Blob& a, const Blob& b, - const Blob& G, const Blob& n, const Blob& h, int output_type = UNCOMPRESSED); - - // dto. for elliptic curves over GF(2^m), tri- or pentanomial basis. - - // tri- or pentanomial in hex presentation - Blob EncodeGF2CurveParam(const Blob& p, const Blob& a, const Blob& b, - const Blob& Gx, const Blob& Gy, const Blob& n, const Blob& h, - int output_type = UNCOMPRESSED); - - // tri- or pentanomial in hex presentation - Blob EncodeGF2CurveParam(const Blob& p, const Blob& a, const Blob& b, - const Blob& G, const Blob& n, const Blob& h, int output_type = UNCOMPRESSED); - - // f(t) = t^m + t^k + 1 - Blob EncodeTrinomialCurveParam(const int m, const int k, - const Blob& a, const Blob& b, const Blob& Gx, const Blob& Gy, - const Blob& n, const Blob& h, int output_type = UNCOMPRESSED); - - // f(t) = t^m + t^k + 1 - Blob EncodeTrinomialCurveParam(const int m, const int k, - const Blob& a, const Blob& b, const Blob& G, const Blob& n, - const Blob& h, int output_type = UNCOMPRESSED); - - // f(t) = t^m + t^k3 + t^k2 + t^k1 + 1 - Blob EncodePentanomialCurveParam(const int m, const int k3, const int k2, - const int k1, const Blob& a, const Blob& b, const Blob& Gx, const Blob& Gy, - const Blob& n, const Blob& h, int output_type = UNCOMPRESSED); - - // f(t) = t^m + t^k3 + t^k2 + t^k1 + 1 - Blob EncodePentanomialCurveParam(const int m, const int k3, const int k2, - const int k1, const Blob& a, const Blob& b, const Blob& G, - const Blob& n, const Blob& h, int output_type = UNCOMPRESSED); - -} // namespace act - -#endif // ACT_ToolsECC_h diff --git a/actlibrary/OpenSUSE-11-x86_64/Release/include/actToolsRSA.h b/actlibrary/OpenSUSE-11-x86_64/Release/include/actToolsRSA.h deleted file mode 100644 index b79c55b..0000000 --- a/actlibrary/OpenSUSE-11-x86_64/Release/include/actToolsRSA.h +++ /dev/null @@ -1,19 +0,0 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actToolsRSA.h -// Product: cv act library -// Purpose: useful RSA functions -// -// Copyright: (c) 2000 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_TOOLS_RSA_H -#define ACT_TOOLS_RSA_H - -#include "actTools.h" - -// TODO: MTE: Move all RSA functions from "actTools.h" to here! include inside "actTools.h" - -#endif // ACT_TOOLS_RSA_H diff --git a/actlibrary/OpenSUSE-11-x86_64/Release/include/actTypeTags.h b/actlibrary/OpenSUSE-11-x86_64/Release/include/actTypeTags.h deleted file mode 100644 index a844a0d..0000000 --- a/actlibrary/OpenSUSE-11-x86_64/Release/include/actTypeTags.h +++ /dev/null @@ -1,32 +0,0 @@ -// --------------------------------------------------------------------------- -// Name: actTypeTags.h -// Product: cv act library -// Purpose: TypeTag<> and usibility forward declarations. -// -// Copyright: (c) 2010 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -// -// Autor: Markus Tesche -// Date: 09/10/2010 -// --------------------------------------------------------------------------- - -#ifndef ACT_TypeTags_h -#define ACT_TypeTags_h - -namespace act -{ - // - // TypeTag<> - template - struct TypeTag { typedef TypeT Type; }; - - // - // CloneFactory<> - template - struct CloneFactory; - -} // namespace act - -#endif // ACT_TypeTags_h diff --git a/actlibrary/OpenSUSE-11-x86_64/Release/include/actX509Extension.h b/actlibrary/OpenSUSE-11-x86_64/Release/include/actX509Extension.h deleted file mode 100644 index 51f59f0..0000000 --- a/actlibrary/OpenSUSE-11-x86_64/Release/include/actX509Extension.h +++ /dev/null @@ -1,50 +0,0 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actX509Extension.h -// Product: cv act library -// Purpose: -// -// Copyright: (c) 2000 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_X509Extension_H -#define ACT_X509Extension_H - -#include "actBlob.h" - -namespace act -{ - class X509Extension - { - public: - X509Extension(); - X509Extension(const Blob& oid, const Blob& value, bool critflag); - X509Extension(const char* oid, const Blob& value, bool critflag); - - void GetOID(Blob& oid) const; - void GetOIDString(Blob& oid) const; - void SetOID(const Blob& oid); - void SetOIDString(const char* oid); - - void GetValue(Blob& value) const; - void SetValue(const Blob& value); - - bool IsCritical() const; - void SetCritical(bool crit = true); - - void GetDER(Blob& der) const; - void SetDER(const Blob& der); - - bool IsPresent() { return mValue.size() > 0; } - - private: - Blob mOID; - Blob mValue; - bool mCrit; - }; - -} // namespace act - -#endif // ACT_X509Extension_H diff --git a/actlibrary/OpenSUSE-11-x86_64/Release/include/actX509KeyReg.h b/actlibrary/OpenSUSE-11-x86_64/Release/include/actX509KeyReg.h deleted file mode 100644 index 619a17d..0000000 --- a/actlibrary/OpenSUSE-11-x86_64/Release/include/actX509KeyReg.h +++ /dev/null @@ -1,48 +0,0 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actX509KeyReg.h -// Product: cv act library -// Purpose: registry for factory functions in actX509Kit.h -// -// Copyright: (c) 2000 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_X509KeyReg_h -#define ACT_X509KeyReg_h - -namespace act -{ - class IKey; - class Blob; - - typedef IKey* (*CreateKeyPtr)(); - typedef void (*X509ToKeyPtr)(const Blob& pkinfo, IKey* key); - typedef void (*KeyToX509Ptr)(const IKey* key, Blob& pkinfo ); - - struct X509KeyMapEntry - { - const char* OID; - CreateKeyPtr CreatePtr; - X509ToKeyPtr X509ToKey; - KeyToX509Ptr KeyToX509; - }; - - class X509KeyReg - { - public: - static IKey* CreateX509Key(const Blob& pkInfo); - static void GetX509KeyInfo(const IKey* key, Blob& pkInfo); - - static CreateKeyPtr GetCreatePointer(const char* oid); - static const char* GetOID(void* createptr); - static const char* GetNextOID(const char* oid); - - static void Insert(const char* name, CreateKeyPtr createptr, X509ToKeyPtr x509tokey, KeyToX509Ptr keytox509); - static void Insert(const X509KeyMapEntry* keymap); - }; - -} // namespace act - -#endif // ACT_X509KeyReg_h diff --git a/actlibrary/OpenSUSE-11-x86_64/Release/include/actX509Kit.h b/actlibrary/OpenSUSE-11-x86_64/Release/include/actX509Kit.h deleted file mode 100644 index bb0affb..0000000 --- a/actlibrary/OpenSUSE-11-x86_64/Release/include/actX509Kit.h +++ /dev/null @@ -1,45 +0,0 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actX509Kit.h -// Product: cv act library -// Purpose: declaration of all factory functions -// -// Copyright: (c) 2000 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_X509Kit_h -#define ACT_X509Kit_h - -namespace act -{ - class Blob; - class IKey; - - void X509ToRSA(const Blob& pkinfo, IKey* key); - void RSAToX509(const IKey* key, Blob& pkinfo); - void RSAGetAlgID(const IKey* key, Blob& algid); - void RSASetAlgID(const Blob& algid, IKey* key ); - - void X509ToDSA(const Blob& pkinfo, IKey* key); - void DSAToX509(const IKey* key, Blob& pkinfo); - void DSAGetAlgID(const IKey* key, Blob& algid); - void DSASetAlgID(const Blob& algid, IKey* key ); - - void X509ToECDSA(const Blob& pkinfo, IKey* key); - void ECDSAToX509(const IKey* key, Blob& pkinfo); - void ECDSAGetAlgID(const IKey* key, Blob& algid); - void ECDSASetAlgID(const Blob& algid, IKey* key ); - - void X509ToDH(const Blob& pkinfo, IKey* key); - void DHToX509(const IKey* key, Blob& pkinfo); - void DHGetAlgID(const IKey* key, Blob& algid); - void DHSetAlgID(const Blob& algid, IKey* key ); - - void ECDHGetAlgID(const IKey* key, Blob& algid); - void ECDHSetAlgID(const Blob& algid, IKey* key ); - -} -#endif - diff --git a/actlibrary/OpenSUSE-11-x86_64/Release/include/actX509SignHashReg.h b/actlibrary/OpenSUSE-11-x86_64/Release/include/actX509SignHashReg.h deleted file mode 100644 index d4a01d5..0000000 --- a/actlibrary/OpenSUSE-11-x86_64/Release/include/actX509SignHashReg.h +++ /dev/null @@ -1,40 +0,0 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actX509SignHashReg.h -// Product: cv act library -// Purpose: registry for factory functions in actX509Kit.h -// -// Copyright: (c) 2000-2001 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_X509SignHashReg_h -#define ACT_X509SignHashReg_h - -namespace act -{ - class Blob; - - // ------------------------------------------------------------------------ - struct X509SignHashMapEntry { - const char* OID; - const char* HashAlg; - const char* SignAlg; - }; - - // ------------------------------------------------------------------------ - class X509SignHashReg - { - public: - static void GetOID(const char* algo, const char* sign_algo, Blob& algid); - static const char* GetHashAlg(const Blob& algid); - static const char* GetSignAlg(const Blob& algid); - static void Insert(const X509SignHashMapEntry* map); - - static const char* GetHashAlg(const Blob& algid, const char* sign_algo); // deprecated - }; - -} -#endif - diff --git a/actlibrary/OpenSUSE-11-x86_64/Release/include/actX509SignReg.h b/actlibrary/OpenSUSE-11-x86_64/Release/include/actX509SignReg.h deleted file mode 100644 index 74b48a2..0000000 --- a/actlibrary/OpenSUSE-11-x86_64/Release/include/actX509SignReg.h +++ /dev/null @@ -1,41 +0,0 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actX509SignReg.h -// Product: cv act library -// Purpose: registry for factory functions in actX509Kit.h -// -// Copyright: (c) 2000 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_X509SignReg_h -#define ACT_X509SignReg_h - -namespace act -{ - class IKey; - class Blob; - - typedef IKey* (*CreateKeyPtr)(); - typedef void (*GetX509AlgIDPtr)(const IKey* key, Blob& algid); - typedef void (*SetX509AlgIDPtr)(const Blob& algid, IKey* key); - - struct X509SignMapEntry { - CreateKeyPtr CreatePtr; - GetX509AlgIDPtr GetAlgID; - SetX509AlgIDPtr SetAlgID; - }; - - class X509SignReg - { - public: - static void GetAlgID(const IKey* key, Blob& algid); - static void SetAlgID(const Blob& algid, IKey* key); - - static void Insert(CreateKeyPtr createptr, GetX509AlgIDPtr getalgid, SetX509AlgIDPtr setalgid ); - static void Insert(const X509SignMapEntry* keymap); - }; -} -#endif - diff --git a/actlibrary/README.txt b/actlibrary/README.txt index 4deabd2..d64ffbe 100644 --- a/actlibrary/README.txt +++ b/actlibrary/README.txt @@ -1,8 +1,8 @@ -Sämtliche Builds/Architekturen wurden mit den "Standard"-Compilern der -jeweiligen Distribution durchgeführt (i.d.R. GCC 4.x), die -MinGW-Distribution wurde mit einem Cross-GCC 4.5.0 compiliert. - -Vorhandene Binary-Formate in den MacOSX-Builds: -MacOSX 10.4: ppc -MacOSX 10.5: ppc i386 x86_64 -MacOSX 10.6: i386 x86_64 +Sämtliche Builds/Architekturen wurden mit den "Standard"-Compilern der +jeweiligen Distribution durchgeführt (i.d.R. GCC 4.x), die +MinGW-Distribution wurde mit einem Cross-GCC 4.5.0 compiliert. + +Vorhandene Binary-Formate in den MacOSX-Builds: +MacOSX 10.4: ppc +MacOSX 10.5: ppc i386 x86_64 +MacOSX 10.6: i386 x86_64 diff --git a/actlibrary/SLES-10-i686/Release/include/actAlgorithm.h b/actlibrary/SLES-10-i686/Release/include/actAlgorithm.h deleted file mode 100644 index 035471e..0000000 --- a/actlibrary/SLES-10-i686/Release/include/actAlgorithm.h +++ /dev/null @@ -1,73 +0,0 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actAlgorithm.h -// Product: cv act library -// Purpose: The class Algorithm generates algorithms for encryption and signing. -// The class Key defined these algorithms. By using this handle the -// necessary methods (e.g. hash-algorithms, verifying-primitiva, etc.) -// can be generated. -// -// Copyright: (c) 2000 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_Algorithm_h -#define ACT_Algorithm_h - -#include "actBasics.h" - -namespace act -{ - class IAlgorithm; - class IKey; - class Blob; - - class Algorithm - { - private: - Algorithm(const Algorithm&); - Algorithm &operator=(const Algorithm&); - - public: - Algorithm(IAlgorithm* alg); - Algorithm(const IKey* key, mode_t mode); - Algorithm(const IKey* key, mode_t mode, const Blob& data); - Algorithm(const char* name); - ~Algorithm(); - - void Write(const Blob& indata); - void Write(const byte* indata, size_t insize); - - void Finalize(); - - size_t Read(Blob& outdata, size_t max = 0); - size_t Read(byte* outbuffer, size_t buffersize); - - size_t GetAvailableSize() const; - status_t GetStatus() const; - - Algorithm& operator<<(const Blob& indata) { Write(indata); return *this; } - Algorithm& operator<<(Algorithm& (*manipulator)(Algorithm &alg)) { return manipulator(*this); } - Algorithm& operator>>(Blob& outdata) { Read(outdata); return *this; } - - operator IAlgorithm*(); - operator const IAlgorithm* () const; - IAlgorithm* GetPointer(); - const IAlgorithm* GetPointer() const; - - IAlgorithm* ReleasePointer(); - - private: - IAlgorithm* mAlg; - }; - - inline Algorithm& final(Algorithm& alg) - { - alg.Finalize(); - return alg; - } - -} // namespace act - -#endif // ACT_Algorithm_h diff --git a/actlibrary/SLES-10-i686/Release/include/actAllocator.h b/actlibrary/SLES-10-i686/Release/include/actAllocator.h deleted file mode 100644 index ce0bfb2..0000000 --- a/actlibrary/SLES-10-i686/Release/include/actAllocator.h +++ /dev/null @@ -1,107 +0,0 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actAllocator.h -// Product: cv act library -// Purpose: -// -// Copyright: (c) 2008 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -// -// Autor: Markus Tesche (MTE) -// Date: 09/29/2008 -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_Allocator_h -#define ACT_Allocator_h - -#include "actBasics.h" - -// -------------------------------------------------------------------------------- -namespace act -{ - // - // Allocator<> - template - class Allocator - { - public: - typedef SizeT size_type; - typedef TypeT value_type; - typedef value_type* pointer; - typedef value_type& reference; - typedef const value_type* const_pointer; - typedef const value_type& const_reference; - - protected: - typedef Allocator ThisT; - typedef pointer (*fptr_allocate)(ThisT*, size_type n, const void* hint); - typedef void (*fptr_deallocate)(ThisT*, pointer p, size_type n); - - private: - Allocator(const Allocator&); - Allocator& operator=(const Allocator&); - - protected: - Allocator(fptr_allocate pAllocate, fptr_deallocate pDeallocate) throw() - : m_pAllocate(pAllocate) - , m_pDeallocate(pDeallocate) - { } - - public: - inline pointer allocate(size_type n, const void* hint) - { - return m_pAllocate(this, n, hint); - } - - inline void deallocate(pointer p, size_type n) - { - if(p != 0) m_pDeallocate(this, p, n); - } - - protected: - fptr_allocate m_pAllocate; - fptr_deallocate m_pDeallocate; - }; - - // - // AllocatorImpl<> - template - < - class AllocatorT, - class BaseT = Allocator - > - class AllocatorImpl : public BaseT - { - public: - typedef typename BaseT::pointer pointer; - typedef typename BaseT::size_type size_type; - - protected: - typedef AllocatorImpl ThisT; - - public: - AllocatorImpl() throw() - : BaseT(_allocate, _deallocate) - { } - - AllocatorT& ref_alloc() { return m_Alloc; } - - private: - inline static pointer _allocate(BaseT* pThis, size_type n, const void* hint) - { - return static_cast(pThis)->m_Alloc.allocate(n, hint); - } - - inline static void _deallocate(BaseT* pThis, pointer p, size_type n) - { - static_cast(pThis)->m_Alloc.deallocate(p, n); - } - - private: - AllocatorT m_Alloc; - }; - -} // namespace act - -#endif // ACT_Allocator_h diff --git a/actlibrary/SLES-10-i686/Release/include/actBasics.h b/actlibrary/SLES-10-i686/Release/include/actBasics.h deleted file mode 100644 index 39057d6..0000000 --- a/actlibrary/SLES-10-i686/Release/include/actBasics.h +++ /dev/null @@ -1,93 +0,0 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actBasics.h -// Product: cv act library -// Purpose: integration of globally available identifiers -// -// Copyright: (c) 2000 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_Basics_h -#define ACT_Basics_h - -#include "actEnv.h" - -#ifndef ACT_LITTLE_ENDIAN -# define ACT_LITTLE_ENDIAN -#endif - -#if defined(__BIG_ENDIAN__) || \ - defined(__sun__) || \ - defined(__sparc) || \ - defined(__sparc__) || \ - defined(__ppc__) || \ - defined(__ppc64__) -# undef ACT_LITTLE_ENDIAN -#endif // __sun__ - - -#ifndef NO_STL_SUPPORT -# include // used for ptrdiff_t,size_t -#else -# ifndef _PTRDIFF_T_DEFINED - typedef int ptrdiff_t; -# define _PTRDIFF_T_DEFINED -# endif - - -# ifndef _SIZE_T_DEFINED - typedef unsigned int size_t; -# define _SIZE_T_DEFINED -# endif -#endif // NO_STL_SUPPORT - -namespace act -{ - typedef unsigned long ulong; - typedef unsigned int uint; - typedef unsigned short ushort; - typedef unsigned char uchar; - typedef unsigned char byte; - typedef unsigned short word; - typedef unsigned int dword; - -#if defined(_MSC_VER) & !defined(__MWERKS__) - using ::size_t; - using ::ptrdiff_t; -#else - using std::size_t; - using std::ptrdiff_t; -#endif - - typedef int paramid_t; - typedef int status_t; - typedef int mode_t; - typedef int export_t; - - typedef ushort uint16; - typedef uint uint32; -#if defined(__GNUC__) || defined(__MWERKS__) - typedef unsigned long long uint64; -# define U64(x) x##ULL -#else - //#ifdef _MSC_EXTENSIONS - typedef unsigned __int64 uint64; -# define U64(x) x##ui64 -#endif - -#if defined(__GNUC__) -# define GCC_VERSION (__GNUC__ * 10000 + __GNUC_MINOR__ * 100 + __GNUC_PATCHLEVEL__) -#endif - - const export_t DEFAULT = 0; - - // - // scoped_delete<> - template - struct scoped_delete { }; - -} // namespace act - -#endif // ACT_Basics_h diff --git a/actlibrary/SLES-10-i686/Release/include/actBlob.h b/actlibrary/SLES-10-i686/Release/include/actBlob.h deleted file mode 100644 index e42687d..0000000 --- a/actlibrary/SLES-10-i686/Release/include/actBlob.h +++ /dev/null @@ -1,644 +0,0 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actBlob.h -// Product: cv act library -// Purpose: The datatype Blob (Binary Large Object) is a universal type, which -// can be used for any data. The class Blob almost behaves like -// std::vector with the difference that freed memory -// is filled with zeros to enhance security. -// -// Copyright: (c) 2000 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_Blob_h -#define ACT_Blob_h - -#include "actMove.h" -#include "actBasics.h" -#include "actAllocator.h" - -#ifndef UNDER_CE_30 -# include -#endif // UNDER_CE_30 - -#ifndef NO_STL_SUPPORT -# include // used for reserve_iterator -# include // used for string -#else - // -------------------------------------------------------------------------------- - // if there is no STL support, we define reverse_iterator here. - // -------------------------------------------------------------------------------- - namespace std - { - // ITERATOR TAGS (from ) - struct input_iterator_tag {}; - struct output_iterator_tag {}; - struct forward_iterator_tag - : public input_iterator_tag {}; - struct bidirectional_iterator_tag - : public forward_iterator_tag {}; - struct random_access_iterator_tag - : public bidirectional_iterator_tag {}; - - // TEMPLATE CLASS iterator (from ) - template - struct iterator { - typedef _C iterator_category; - typedef _Ty value_type; - typedef _D distance_type; - }; - template - struct _Bidit : public iterator {}; - template - struct _Ranit : public iterator {}; - - // TEMPLATE CLASS iterator_traits (from ) - template - struct iterator_traits { - typedef _It::iterator_category iterator_category; - typedef _It::value_type value_type; - typedef _It::distance_type distance_type; - }; - - - // TEMPLATE CLASS reverse_iterator (from ) - template - class reverse_iterator : public _Ranit<_Ty, _D> { - public: - typedef reverse_iterator<_RI, _Ty, _Rt, _Pt, _D> _Myt; - typedef _RI iter_type; - typedef _Rt reference_type; - typedef _Pt pointer_type; - reverse_iterator() - {} - explicit reverse_iterator(_RI _X) - : current(_X) {} - _RI base() const - {return(current); } - _Rt operator*() const - {return(*(current - 1)); } - // _Pt operator->() const - // {return(&**this); } - _Myt& operator++() - {--current; - return(*this); } - _Myt operator++(int) - {_Myt _Tmp = *this; - --current; - return(_Tmp); } - _Myt& operator--() - {++current; - return(*this); } - _Myt operator--(int) - {_Myt _Tmp = *this; - ++current; - return(_Tmp); } - _Myt& operator+=(_D _N) - {current -= _N; - return(*this); } - _Myt operator+(_D _N) const - {return(_Myt(current - _N)); } - _Myt& operator-=(_D _N) - {current += _N; - return(*this); } - _Myt operator-(_D _N) const - {return(_Myt(current + _N)); } - _Rt operator[](_D _N) const - {return(*(*this + _N)); } - protected: - _RI current; - }; - template inline - bool __cdecl operator==( - const reverse_iterator<_RI, _Ty, _Rt, _Pt, _D>& _X, - const reverse_iterator<_RI, _Ty, _Rt, _Pt, _D>& _Y) - {return(get_base(_X) == get_base(_Y)); } - template inline - bool __cdecl operator!=( - const reverse_iterator<_RI, _Ty, _Rt, _Pt, _D>& _X, - const reverse_iterator<_RI, _Ty, _Rt, _Pt, _D>& _Y) - {return(!(_X == _Y)); } - template inline - bool __cdecl operator<( - const reverse_iterator<_RI, _Ty, _Rt, _Pt, _D>& _X, - const reverse_iterator<_RI, _Ty, _Rt, _Pt, _D>& _Y) - {return(get_base(_Y) < get_base(_X)); } - template inline - bool __cdecl operator>( - const reverse_iterator<_RI, _Ty, _Rt, _Pt, _D>& _X, - const reverse_iterator<_RI, _Ty, _Rt, _Pt, _D>& _Y) - {return(_Y < _X); } - template inline - bool __cdecl operator<=( - const reverse_iterator<_RI, _Ty, _Rt, _Pt, _D>& _X, - const reverse_iterator<_RI, _Ty, _Rt, _Pt, _D>& _Y) - {return(!(_Y < _X)); } - template inline - bool __cdecl operator>=( - const reverse_iterator<_RI, _Ty, _Rt, _Pt, _D>& _X, - const reverse_iterator<_RI, _Ty, _Rt, _Pt, _D>& _Y) - {return(!(_X < _Y)); } - template inline - _D __cdecl operator-( - const reverse_iterator<_RI, _Ty, _Rt, _Pt, _D>& _X, - const reverse_iterator<_RI, _Ty, _Rt, _Pt, _D>& _Y) - {return(get_base(_Y) - get_base(_X)); } - template inline - reverse_iterator<_RI, _Ty, _Rt, _Pt, _D> __cdecl operator+(_D _N, - const reverse_iterator<_RI, _Ty, _Rt, _Pt, _D>& _Y) - {return(reverse_iterator<_RI, _Ty, _Rt, _Pt, _D>( - get_base(_Y) - _N)); } - } // namespace std - -#endif //NO_STL_SUPPORT - -// -------------------------------------------------------------------------------- -namespace act -{ - // - // byte_array for fixed data - struct byte_array - { - const act::byte* value; - const size_t size; - }; - - inline byte_array make_array(const act::byte* value = 0, size_t size = 0) - { - const byte_array ba = { value, size }; - return ba; - }; - -#ifndef ACT_NO_BYTE_ARRAY_MACROS -# define _A(x) x.value, x.size -# define _B(x) act::make_array(reinterpret_cast(x), sizeof(x) - sizeof(x[0])) -# define _C(x) act::make_array(reinterpret_cast(x), sizeof(x)) -# define _H(x) { (const act::byte*) x, sizeof(x) - sizeof(x[0]) } -#endif - -#if(_MSC_VER >= 1300) - template - < - class _Ty, - class _Diff, - class _Pointer, - class _Reference, - class _Pointer2, - class _Reference2 - > - class _Ptrit : - public std::iterator - { // wrap pointer as random-access iterator - public: - typedef _Ptrit<_Ty, _Diff, _Pointer, _Reference, _Pointer2, _Reference2> _Myt; - - _Ptrit() - { // construct with uninitialized wrapped pointer - } - - _Ptrit(_Pointer _Ptr) : current(_Ptr) - { // construct wrapped pointer from _Ptr - } - - _Ptrit(const _Ptrit<_Ty, _Diff, _Pointer2, _Reference2, _Pointer2, _Reference2>& _Iter) - : current(_Iter.base()) - { // const converter or copy constructor - } - - _Pointer base() const - { // return wrapped pointer - return current; - } - - _Reference operator*() const - { // return designated value - return *current; - } - - _Pointer operator->() const - { // return pointer to class object - return &**this; - } - - _Myt& operator++() - { // preincrement - ++current; - return *this; - } - - _Myt operator++(int) - { // postincrement - _Myt _Tmp = *this; - ++current; - return _Tmp; - } - - _Myt& operator--() - { // predecrement - --current; - return *this; - } - - _Myt operator--(int) - { // postdecrement - _Myt _Tmp = *this; - --current; - return _Tmp; - } - - bool operator==(size_t _Right) const - { // test if wrapped pointer == integer (null pointer constant) - return current == (_Pointer) _Right; - } - - bool operator==(const _Myt& _Right) const - { // test for iterator equality - return current == _Right.current; - } - - bool operator!=(const _Myt& _Right) const - { // test for iterator inequality - return !(*this == _Right); - } - - _Myt& operator+=(_Diff _Off) - { // increment by integer - current += _Off; - return *this; - } - - _Myt operator+(_Diff _Off) const - { // return this + integer - return _Myt(current + _Off); - } - - _Myt& operator-=(_Diff _Off) - { // decrement by integer - current -= _Off; - return *this; - } - - _Myt operator-(_Diff _Off) const - { // return this - integer - return _Myt(current - _Off); - } - - _Reference operator[](_Diff _Off) const - { // subscript - return *(*this + _Off); - } - - bool operator<(const _Myt& _Right) const - { // test if this < _Right - return current < _Right.current; - } - - bool operator>(const _Myt& _Right) const - { // test if this > _Right - return _Right < *this; - } - - bool operator<=(const _Myt& _Right) const - { // test if this <= _Right - return !(_Right < *this); - } - - bool operator>=(const _Myt& _Right) const - { // test if this >= _Right - return !(*this < _Right); - } - - _Diff operator-(const _Myt& _Right) const - { // return difference of iterators - return current - _Right.current; - } - - protected: - _Pointer current; // the wrapped pointer - }; - -#endif // _MSC_VER >= 1300 - - // - // Blob - class Blob - { - protected: - struct flags - { - byte copy_on_write:1; - byte external_allocated:1; - - flags() throw() - : copy_on_write(0) - , external_allocated(0) - { } - }; - - public: - typedef Allocator _Alloc; - typedef _Alloc allocator_type; - typedef _Alloc::size_type size_type; - typedef _Alloc::value_type value_type; - typedef value_type* pointer; - typedef value_type& reference; - typedef const value_type* const_pointer; - typedef const value_type& const_reference; - typedef ptrdiff_t difference_type; - -#if(_MSC_VER >= 1300) - typedef _Ptrit - < value_type, difference_type, pointer, reference, pointer, reference - > iterator; - - typedef _Ptrit - < value_type, difference_type, const_pointer, const_reference, pointer, reference - > const_iterator; - - inline static pointer get_base(iterator it) { return it.base(); } - inline static const_pointer get_base(const_iterator it) { return it.base(); } - -#else - typedef byte* iterator; - typedef const byte* const_iterator; - - inline static pointer get_base(iterator it) { return it; } - inline static const_pointer get_base(const_iterator it) { return it; } - -#endif - -#if (_MSC_VER >= 1200) && (_MSC_VER < 1300) - typedef std::reverse_iterator - < iterator, value_type, reference, pointer, difference_type - > reverse_iterator; - - typedef std::reverse_iterator - < const_iterator, value_type, const_reference, const_pointer, difference_type - > const_reverse_iterator; - -#else - typedef std::reverse_iterator reverse_iterator; - typedef std::reverse_iterator const_reverse_iterator; - -#endif - // construct/copy/destroy - Blob(); - - explicit Blob(allocator_type* allocator); - explicit Blob(const char* str, allocator_type* allocator = dAllocator); - -#ifndef NO_STL_SUPPORT - explicit Blob(std::string& str, allocator_type* allocator = dAllocator); - explicit Blob(const std::string& str, allocator_type* allocator = dAllocator); -#endif // NO_STL_SUPPORT - - explicit Blob(const byte_array& ba, allocator_type* allocator = dAllocator); - explicit Blob(size_type n, byte v = byte(0), allocator_type* allocator = dAllocator); - - template - Blob(inputit f, inputit l, allocator_type* allocator = dAllocator) - : mFirst(0), mLast(0), mEnd(0), mAllocator(allocator) - { - insert(begin(), f, l); - } - - Blob(move_from other); - Blob(const Blob& other); - ~Blob(); - - Blob& operator=(const Blob& other); - Blob& operator=(move_from other); - - template - void assign(inputit f, inputit l) - { - erase(begin(), end()); - insert(begin(), f, l); - } - - void assign(const byte_array& ba); - void assign(size_type n, byte x = byte(0)); - - // capacity - bool empty() const { return size() == 0; } - size_type size() const { return mFirst == 0 ? 0 : mLast - mFirst; } - size_type capacity() const { return mFirst == 0 ? 0 : mEnd - mFirst; } - size_type max_size() const; - void reserve(size_type n); - void resize(size_type n, byte x = byte(0)); - - // iterators - iterator begin() { return mFirst; } - const_iterator begin() const { return const_iterator(mFirst); } - iterator end() { return mLast; } - const_iterator end() const { return const_iterator(mLast); } - reverse_iterator rbegin() { return reverse_iterator(end()); } - const_reverse_iterator rbegin() const { return const_reverse_iterator(end()); } - reverse_iterator rend() { return reverse_iterator(begin()); } - const_reverse_iterator rend() const { return const_reverse_iterator(begin()); } - - - // element access: - reference at(size_type p); - const_reference at(size_type p) const; - reference operator[](size_type p) { return *(begin() + p); } - const_reference operator[](size_type p) const { return *(begin() + p); } - - reference front() { return *begin(); } - const_reference front() const { return *begin(); } - reference back() { return *(end() - 1); } - const_reference back() const { return *(end() - 1); } - - // modifiers - void push_back(byte x) { insert(end(), x); } - void pop_back() { erase(end() - 1); } - - void insert(iterator p, size_type m, byte x); - iterator insert(iterator p, byte x = byte(0)); - - template - void insert(iterator p, inputit f, inputit l) - { - size_type m = 0; - _distance(f, l, m); - if(size_type(mEnd - mLast) < m) - { - size_type n = size(); - n = aligned_size(n + (m < n ? n : m)); - iterator s = allocate(n, (void*) 0); - iterator q = ucopy(mFirst, p, s); - q = ucopy(f, l, q); - ucopy(p, mLast, q); - _destroy(mFirst, mLast); - deallocate(get_base(mFirst), mEnd - mFirst); - mEnd = s + n; - mLast = s + size() + m; - mFirst = s; - } - else if(size_type(mLast - p) < m) - { - ucopy(p, mLast, p + m); - ucopy(f + (mLast - p), l, mLast); - copy(f, f + (mLast - p), p); - mLast += m; - } - else if(0 < m) - { - ucopy(mLast - m, mLast, mLast); - copy_backward(p, mLast - m, mLast); - copy(f, l, p); - mLast += m; - } - } - - Blob& append(const Blob& x) - { - insert(end(), x.begin(), x.end()); - return *this; - } - - Blob& append(size_type m, byte x) - { - insert(end(), m, x); - return *this; - } - - template - Blob& append(inputit f, inputit l) - { - insert(end(), f, l); - return *this; - } - - iterator erase(iterator p); - iterator erase(iterator f, iterator l); - void clear(); - void swap(Blob& x); - - // used by compare operators - bool _eq(const Blob& x) const; - bool _lt(const Blob& x) const; - - allocator_type* get_allocator() const { return mAllocator; } - static allocator_type* set_default_allocator(allocator_type* allocator) - { - std::swap(dAllocator, allocator); - return allocator; - } - - private: - template - outputit copy(inputit f, inputit l, outputit x) - { - for(; f != l; ++x, ++f) - *x = *f; - return x; - } - - iterator copy_backward(const_iterator f, const_iterator l, iterator x); - - template - outputit ucopy(inputit f, inputit l, outputit p) - { - for(; f != l; ++p, ++f) - construct(get_base(p), *f); - return p; - } - - void fill(iterator f, const_iterator l, byte x); - void ufill(iterator f, size_type n, byte x); - - size_type distance(const_iterator f, const_iterator l) const; - - template - void _distance(inputit f, inputit l, size_type& n) const - { - for(; f != l; ++f) - ++n; - } - - bool equal(const_iterator f, const_iterator l, const_iterator x) const; - bool lexicographical_compare(const_iterator f1, const_iterator l1, const_iterator f2, const_iterator l2) const; - - byte* allocate(size_type n, const void* hint); - void deallocate(pointer p, size_type n); - - void construct(byte* p, const_reference v) { *p = v; } - void destroy(byte* p) { *p = 0; } - - void _destroy(iterator f, iterator l); - - void outofrange() const; - - static size_type aligned_size(size_type size); - - protected: - flags mFlags; - iterator mFirst, mLast, mEnd; - allocator_type* mAllocator; - static allocator_type* dAllocator; - }; - -#ifndef UNDER_CE_30 - std::ostream &operator<<(std::ostream& os, const Blob& blob); -#endif // UNDER_CE_30 - - - // -------------------------------------------------------------------------------- - inline bool operator==(const Blob& x, const Blob&y) - { - return x._eq(y); - } - - inline bool operator!=(const Blob& x, const Blob&y) - { - return !(x._eq(y)); - } - - inline bool operator<(const Blob& x, const Blob&y) - { - return x._lt(y); - } - - inline bool operator>=(const Blob& x, const Blob&y) - { - return !(x._lt(y)); - } - - inline bool operator<=(const Blob& x, const Blob&y) - { - return x._eq(y) || x._lt(y); - } - - inline bool operator>(const Blob& x, const Blob&y) - { - return !(x._eq(y) || x._lt(y)); - } - -} // namespace act - -// -------------------------------------------------------------------------------- -namespace std -{ - // --------------------------------------------------------------------------- - inline void swap(act::Blob& left, act::Blob& right) { left.swap(right); } - -} // namespace std - -#endif // ACT_Blob_h diff --git a/actlibrary/SLES-10-i686/Release/include/actBlockCipherKit.h b/actlibrary/SLES-10-i686/Release/include/actBlockCipherKit.h deleted file mode 100644 index e89cc2a..0000000 --- a/actlibrary/SLES-10-i686/Release/include/actBlockCipherKit.h +++ /dev/null @@ -1,31 +0,0 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actBlockCipherKit.h -// Product: cv act library -// Purpose: declaration of all factory functions -// -// Copyright: (c) 2000 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_BlockCipherKit_h -#define ACT_BlockCipherKit_h - -namespace act -{ - class IBlockCipher; - - IBlockCipher* CreateDES(); - IBlockCipher* CreateTripleDES(); - IBlockCipher* CreateCAST128(); - IBlockCipher* CreateBlowFish(); - IBlockCipher* CreateTwoFish(); - IBlockCipher* CreateMars(); - IBlockCipher* CreateRijndael(); - IBlockCipher* CreateSerpent(); - IBlockCipher* CreateRC2(); - //IBlockCipher* CreateRC6(); -} -#endif - diff --git a/actlibrary/SLES-10-i686/Release/include/actBlockCipherModeKit.h b/actlibrary/SLES-10-i686/Release/include/actBlockCipherModeKit.h deleted file mode 100644 index ee2bd0a..0000000 --- a/actlibrary/SLES-10-i686/Release/include/actBlockCipherModeKit.h +++ /dev/null @@ -1,27 +0,0 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actBlockCipherModeKit.h -// Product: cv act library -// Purpose: declaration of all factory functions -// -// Copyright: (c) 2000 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - - -#ifndef ACT_BlockCipherModeKit_h -#define ACT_BlockCipherModeKit_h - -namespace act -{ - class IBlockCipherMode; - - IBlockCipherMode* CreateECBMode(); - IBlockCipherMode* CreateCBCMode(); - IBlockCipherMode* CreateCFBMode(); - IBlockCipherMode* CreateOFBMode(); - IBlockCipherMode* CreateCTRMode(); -} -#endif - diff --git a/actlibrary/SLES-10-i686/Release/include/actBlockCipherModeReg.h b/actlibrary/SLES-10-i686/Release/include/actBlockCipherModeReg.h deleted file mode 100644 index 6ce7d63..0000000 --- a/actlibrary/SLES-10-i686/Release/include/actBlockCipherModeReg.h +++ /dev/null @@ -1,40 +0,0 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actBlockCipherModeReg.h -// Product: cv act library -// Purpose: registry for factory functions in actBlockCipherModeKit.h -// -// Copyright: (c) 2000 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_BlockCipherModeReg_h -#define ACT_BlockCipherModeReg_h - -namespace act -{ - class IBlockCipherMode; - - typedef IBlockCipherMode* (*CreateBlockCipherModePtr)(); - - struct BlockCipherModeMapEntry - { - const char* Name; - CreateBlockCipherModePtr CreatePtr; - }; - - class BlockCipherModeReg - { - public: - static IBlockCipherMode* CreateBlockCipherMode(const char* name); - static CreateBlockCipherModePtr GetCreatePointer(const char* name); - static const char* GetName(void* createptr); - static const char* GetNextName(const char* name); - static void Insert(const char* name, CreateBlockCipherModePtr createptr); - static void Insert(const BlockCipherModeMapEntry* map); - }; - -} // namespace act - -#endif // ACT_BlockCipherModeReg_h diff --git a/actlibrary/SLES-10-i686/Release/include/actBlockCipherReg.h b/actlibrary/SLES-10-i686/Release/include/actBlockCipherReg.h deleted file mode 100644 index 7f96a90..0000000 --- a/actlibrary/SLES-10-i686/Release/include/actBlockCipherReg.h +++ /dev/null @@ -1,39 +0,0 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actBlockCipherReg.h -// Product: cv act library -// Purpose: registry for factory functions in actBlockCipherKit.h -// -// Copyright: (c) 2000 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_BlockCipherReg_h -#define ACT_BlockCipherReg_h - -namespace act -{ - class IBlockCipher; - - typedef IBlockCipher* (*CreateBlockCipherPtr)(); - - struct BlockCipherMapEntry { - const char* Name; - CreateBlockCipherPtr CreatePtr; - }; - - class BlockCipherReg - { - public: - static IBlockCipher* CreateBlockCipher(const char* name); - static CreateBlockCipherPtr GetCreatePointer(const char* name); - static const char* GetName(void* createptr); - static const char* GetNextName(const char* name); - static void Insert(const char* name,CreateBlockCipherPtr createptr); - static void Insert(const BlockCipherMapEntry* map); - }; -} - -#endif - diff --git a/actlibrary/SLES-10-i686/Release/include/actCRL.h b/actlibrary/SLES-10-i686/Release/include/actCRL.h deleted file mode 100644 index 9922439..0000000 --- a/actlibrary/SLES-10-i686/Release/include/actCRL.h +++ /dev/null @@ -1,68 +0,0 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actCRL.h -// Product: cv act library -// Purpose: -// -// Copyright: (c) 2000 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_CRL_h -#define ACT_CRL_h -#include "actBasics.h" - -namespace act -{ - class IKey; - class Blob; - class ICertificate; - class ICRL; - class CRL - { - public: - CRL(const char* type); - CRL(const char* type, const Blob& crlblob); - CRL(const CRL& crl); - - void SetParam(paramid_t id,const Blob& blob); - void SetParam(paramid_t id,int val); - void SetParam(paramid_t id,const char* cstr); - void GetParam(paramid_t id,Blob& blob) const; - int GetParam(paramid_t) const; - - void Import(const Blob& crl); - void Export(Blob& crl) const; - - void Revoke(const ICertificate* cert); - bool IsRevoked(const ICertificate* Cert) const; - void RemoveRevokation(const ICertificate* cert); - - void Revoke(const Blob& blob); - bool IsRevoked(const Blob& blob) const; - void RemoveRevokation(const Blob& blob); - - void Sign(const IKey* privkey); - int Verify(const IKey* pubkey) const; - - const ICRL* GetPointer() const; - ICRL* GetPointer(); - - operator const ICRL* () const; - operator ICRL* (); - - - ICRL* ReleasePointer(); - - CRL& operator= (const CRL& crl); - - ~CRL(); - private: - ICRL* mCRL; - }; - -}; // namespace act - -#endif - diff --git a/actlibrary/SLES-10-i686/Release/include/actCertificate.h b/actlibrary/SLES-10-i686/Release/include/actCertificate.h deleted file mode 100644 index f8d063b..0000000 --- a/actlibrary/SLES-10-i686/Release/include/actCertificate.h +++ /dev/null @@ -1,67 +0,0 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actCertificate.h -// Product: cv act library -// Purpose: The concrete class Certificate enables direct access to a certificate, -// e.g. its public key and the corresponding validity. -// -// Copyright: (c) 2000 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_Certificate_h -#define ACT_Certificate_h - -#include "actBasics.h" - -namespace act -{ - class IKey; - class Blob; - class ICertificate; - - class Certificate - { - public: - Certificate(); - Certificate(const char* type); - Certificate(const char* type, const Blob& certblob); - Certificate(const Certificate& cert); - - void SetParam(paramid_t id, const Blob& blob); - void SetParam(paramid_t id, int val); - void SetParam(paramid_t id, const char* cstr); - void GetParam(paramid_t id, Blob& blob) const; - int GetParam(paramid_t id) const; - - void Import(const Blob& certblob); - void Export(Blob& certblob) const; - - void SetPublicKey(const IKey* pubkey); - IKey* CreatePublicKey(const char* = 0) const; - - void Sign(const IKey* privkey); - int Verify(const IKey* pubkey) const; - - const ICertificate* GetPointer() const; - ICertificate* GetPointer(); - - operator const ICertificate*() const; - operator ICertificate*(); - - ICertificate* ReleasePointer(); - - Certificate& operator=(const Certificate& cert); - Certificate& Reset(ICertificate* cert); - Certificate& Required(const char* where = 0); - - ~Certificate(); - - private: - ICertificate* mCert; - }; - -}; // namespace act - -#endif // ACT_Certificate_h diff --git a/actlibrary/SLES-10-i686/Release/include/actCertificateKit.h b/actlibrary/SLES-10-i686/Release/include/actCertificateKit.h deleted file mode 100644 index 9387a39..0000000 --- a/actlibrary/SLES-10-i686/Release/include/actCertificateKit.h +++ /dev/null @@ -1,28 +0,0 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actCertificateKit.h -// Product: cv act library -// Purpose: declaration of all factory functions -// -// Copyright: (c) 2000 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_CERTIFICATEKIT_H -#define ACT_CERTIFICATEKIT_H - -namespace act -{ - class ICertificate; - class ICRL; - class ICVCertRequest; - - ICertificate* CreateX509Certificate(); - ICRL* CreateX509CRL(); - - ICertificate* CreateCVCertificate(); - ICVCertRequest* CreateCVCertRequest(); -} -#endif - diff --git a/actlibrary/SLES-10-i686/Release/include/actCertificateReg.h b/actlibrary/SLES-10-i686/Release/include/actCertificateReg.h deleted file mode 100644 index afd7a75..0000000 --- a/actlibrary/SLES-10-i686/Release/include/actCertificateReg.h +++ /dev/null @@ -1,56 +0,0 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actCertificateReg.h -// Product: cv act library -// Purpose: -// -// Copyright: (c) 2000 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_CERTIFICATEREG_H -#define ACT_CERTIFICATEREG_H - -namespace act -{ - class ICertificate; - class ICRL; - - typedef ICertificate* (*CreateCertificatePtr)(); - typedef ICRL* (*CreateCRLPtr)(); - - struct CertificateMapEntry { - const char* Name; - CreateCertificatePtr CreatePtr; - }; - - struct CRLMapEntry { - const char* Name; - CreateCRLPtr CreatePtr; - }; - - class CertificateReg - { - public: - static ICertificate* CreateCertificate(const char* name); - static CreateCertificatePtr GetCreatePointer(const char* name); - static const char* GetName(void* createptr); - static const char* GetNextName(const char* name); - static void Insert(const char* name, CreateCertificatePtr createptr); - static void Insert(const CertificateMapEntry* certmap); - }; - - class CRLReg - { - public: - static ICRL* CreateCRL(const char* name); - static CreateCRLPtr GetCreatePointer(const char* name); - static const char* GetName(void* createptr); - static const char* GetNextName(const char* name); - static void Insert(const char* name, CreateCRLPtr createptr); - static void Insert(const CRLMapEntry* certmap); - }; -} -#endif - diff --git a/actlibrary/SLES-10-i686/Release/include/actDate.h b/actlibrary/SLES-10-i686/Release/include/actDate.h deleted file mode 100644 index 5d08c74..0000000 --- a/actlibrary/SLES-10-i686/Release/include/actDate.h +++ /dev/null @@ -1,109 +0,0 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actDate.h -// Product: cv act library -// Purpose: The Date function used in act Library -// -// Copyright: (c) 2000 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_Date_h -#define ACT_Date_h - -#include "actBasics.h" - -#if defined(ACT_POSIX) -# include -#endif - -namespace act -{ - class Blob; - - class Date - { - public: - Date(); //today - Date(int day, int month ,int year); - Date(int day, int month, int year, int hour, int minute, int sec); - Date(const Blob& der); - - Date(const unsigned char* ch, const unsigned int size); - - Date& SetToday(); - - int GetDay() const { return m_day; } - int GetMonth() const { return m_month; } - int GetYear() const { return m_year; } - int GetHour() const { return m_hour; } - int GetMinute() const { return m_min; } - int GetSecond() const { return m_sec; } - - void IgnoreTime(bool b); // ignore time(hour, min,sec) in the operators - const Date& operator=(const Date&); - bool operator>(const Date&) const; - bool operator>=(const Date&) const; - bool operator<(const Date&) const; - bool operator<=(const Date&) const; - bool operator==(const Date&) const; - bool operator!=(const Date&) const; - - const Date& AddMonths(int m); - const Date& SubMonths(int m); - const Date& AddYears(int y); - const Date& SubYears(int y); - const Date& AddDays(int d); - const Date& SubDays(int d); - const Date& AddHours(int h); - const Date& SubHours(int h); - const Date& AddMinutes(int m); - const Date& SubMinutes(int m); - const Date& AddSecond(int m); - const Date& SubSecond(int m); - - int DayOfWeek() const; // 0:Sunday, 1=Monday ... 6=Saturday - int IsLeap(int y) const; // 1:leapyear, 0:else - int DaysPerMonth(int m, int y) const; - long GetDifference(const Date& d2) const; - - long GetJulian() const; - long GetJulian(int d, int m, int y) const; - void ConvertFromJulian(long jd, int& d, int& m, int& y); - - Blob Encode() const; - size_t Encode(Blob& encoded) const; - - Blob EncodeToGeneralizedTime() const; - Blob GetGeneralizedTimeString() const; - Blob GetLocalTimeString() const; // fixed format: "DD/MM/YYYY HH:MM:SS" - - operator Blob() const; - - int GetDayFromWeekDay (int weekday, int year, int month, int which); - -#if defined(ACT_POSIX) - static void copyDatetm(act::Date a, struct tm& b); - static void copytmDate(struct tm a, act::Date& b); -#endif - - private: - Date& SetYear(int year) { m_year = year; return *this; } - Date& SetMonth(int month) { m_month = month; return *this; } - Date& SetDay(int day) { m_day = day; return *this; } - Date& SetHour(int hour) { m_hour = hour; return *this; } - Date& SetMinute(int minute) { m_min = minute; return *this; } - Date& SetSecond(int sec) { m_sec = sec; return *this; } - bool IsValid() const; - void AdjustDays(); - - private: - int m_day, m_month, m_year; - int m_hour, m_min, m_sec; - bool m_ignore_time; - }; - -} // namespace act - -#endif // ACT_Date_h diff --git a/actlibrary/SLES-10-i686/Release/include/actDebug.h b/actlibrary/SLES-10-i686/Release/include/actDebug.h deleted file mode 100644 index 623c00a..0000000 --- a/actlibrary/SLES-10-i686/Release/include/actDebug.h +++ /dev/null @@ -1,295 +0,0 @@ -////////////////////////////////////////////////////////////////////////// -// Name: actDebug.h -// Product: cv act library -// Purpose: Integration of globally available debug macros and functions -// -// Copyright: (c) 2005 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -// -// Autor: Markus Tesche (MTE) -// Date: 12/15/2005 -////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_Debug_h -#define ACT_Debug_h - -#include "actEnv.h" -#include "actBasics.h" -#include "actException.h" - -// -// ACT_NOOP use for semicolon terminated non operating macros. -#ifdef _MSC_VER -# if _MSC_VER >= 1210 -# define ACT_NOOP __noop -# else -# define ACT_NOOP ((void) 0) -# endif -// MSVC specific -# if !defined(DEBUG_NEW) -# if defined(_DEBUG) && !defined(_WIN32_WCE) -# include -# define DEBUG_NEW new(_NORMAL_BLOCK, __FILE__, __LINE__) -# else -# define DEBUG_NEW new -# endif -# endif -#else -# define ACT_NOOP ((void) 0) -# define DEBUG_NEW new -#endif - -// -// Declare all debug macros for release builds. -#ifdef _DEBUG -# ifdef UNDER_CE -# define ACT_ASSERT ACT_NOOP -# define ACT_ASSERT_ALWAYS(m, l, f) ACT_NOOP -# endif -# define ACT_DEBUG 1 -# define ACT_DEBUG_PARAM(p) p -# define ACT_DEBUG_SOURCE() act::FileAndLine(__FILE__, __LINE__) -# define ACT_NOT_IMPLEMENTED(m, w) throw act::NotImplementedException(m, w) << ACT_DEBUG_SOURCE() -#else -# define ACT_DEBUG 0 -# define ACT_DEBUG_SOURCE() act::FileAndLine() -# define ACT_NOT_IMPLEMENTED(m, w) throw act::NotImplementedException(m, w) -# if defined(_MSC_VER) && _MSC_VER < 1210 -# define ACT_DEBUG_PARAM(p) p -# define ACT_TRACE ACT_NOOP -# define ACT_TRACELOG ACT_NOOP -# define ACT_ASSERT ACT_NOOP -# else -# define ACT_DEBUG_PARAM(p) -# define ACT_TRACE(...) ACT_NOOP -# define ACT_TRACELOG(...) ACT_NOOP -# define ACT_ASSERT(e) ACT_NOOP -# endif -# define ACT_ASSERT_ALWAYS(m, l, f) ACT_NOOP -# define ACT_ASSERT_ON_THROW(m) ACT_NOOP -#endif // _DEBUG - -// -// ACT_ASSERT -#ifndef ACT_ASSERT -# if defined(_MSC_VER) -# include -# define ACT_ASSERT _ASSERTE -# else -# include -# define ACT_ASSERT assert -# endif -#endif // ACT_ASSERT - -// -// ACT_ASSERT_ALWAYS -#ifndef ACT_ASSERT_ALWAYS -# if defined(_MSC_VER) -# include -# define ACT_ASSERT_ALWAYS(m, f, l) _RPT_BASE((_CRT_ASSERT, f, l, 0, m)) -# else -# include -# define ACT_ASSERT_ALWAYS(m, f, l) assert(f == 0) -# endif -#endif // ACT_ASSERT_ALWAYS - -// -// ACT_ASSERT_ON_THROW -#ifndef ACT_ASSERT_ON_THROW -namespace act -{ - class CheckForNoThrow : public FileAndLine - { - public: - CheckForNoThrow(const char* msg, const char* file = 0, int line = 0) - : FileAndLine(file, line) - , m_msg(msg) - { } - - ~CheckForNoThrow() - { - const bool uc = ::std::uncaught_exception(); - if(uc == true) ACT_ASSERT_ALWAYS(m_msg, file(), line()); - } - - private: - const char* m_msg; - }; - -} // namespace act - -#define ACT_ASSERT_ON_THROW(m) act::CheckForNoThrow __dbg_check_for_nothrow(m, __FILE__, __LINE__) -#endif // ACT_ASSERT_ON_THROW - -// -// ACT_ENABLE_TRACE -#ifdef ACT_ENABLE_TRACE -# ifdef ACT_TRACE -# undef ACT_TRACE -# endif -# ifdef ACT_TRACELOG -# undef ACT_TRACELOG -# endif -#endif - -// -// ACT_TRACE -#ifndef ACT_TRACE - -#ifndef ACT_TRACE_BUFFER -#define ACT_TRACE_BUFFER 1024 -#endif - -#include -#include -#include - -#if defined(ACT_WIN32) || defined(ACT_WIN32_WCE) -#include - -namespace act -{ - struct Trace - { - void __cdecl operator()(const char* pFormat, va_list ptr, const char* pFileName = 0, int nLine = 0) const - { - char szBuf[ACT_TRACE_BUFFER] = {'\0'}; - int nLen = 0; - - if(pFileName != 0) { - int nTemp = _snprintf(szBuf + nLen, ACT_TRACE_BUFFER - nLen, "%s(%d) : ", pFileName, nLine); - if(nTemp < 0) - nLen = ACT_TRACE_BUFFER; - else nLen += nTemp; - } - - _vsnprintf(szBuf + nLen, ACT_TRACE_BUFFER - nLen, pFormat, ptr); - szBuf[ACT_TRACE_BUFFER - 1] = 0; -#ifndef UNDER_CE - ::OutputDebugStringA(szBuf); -#else - { - wchar_t wtmp[ACT_TRACE_BUFFER]; - mbstowcs(wtmp, szBuf, ACT_TRACE_BUFFER); - ::OutputDebugStringW(wtmp); - } -#endif - } - }; - -} // namespace act - -#elif defined(ACT_POSIX) -#include - -namespace act -{ - struct Trace - { - void operator()(const char* pFormat, va_list ptr, const char* pFileName = 0, int nLine = 0) const - { - char szBuf[ACT_TRACE_BUFFER] = {'\0'}; - int nLen = 0; - - if(pFileName != 0) { - int nTemp = snprintf(szBuf + nLen, ACT_TRACE_BUFFER - nLen, "%s(%d) : ", pFileName, nLine); - if(nTemp < 0) - nLen = ACT_TRACE_BUFFER; - else nLen += nTemp; - } - - vsnprintf(szBuf + nLen, ACT_TRACE_BUFFER - nLen, pFormat, ptr); - szBuf[ACT_TRACE_BUFFER - 1] = 0; - - syslog(LOG_DEBUG, "%s", szBuf); - } - }; - -} // namespace act - -#else -# error act::Trace not implemented for this platform - -#endif - -// -// act::TraceFileAndLine -namespace act -{ - class TraceFileAndLine : public FileAndLine - { - public: - TraceFileAndLine() { } - TraceFileAndLine(const FileAndLine& fl) : FileAndLine(fl) { } - TraceFileAndLine(const char * file, int line) : FileAndLine(file, line) { } - - inline void setFileAndLine(const FileAndLine* fl) - { - if(fl != 0) *static_cast(this) = *fl; - } - - inline TraceFileAndLine& operator<<(const FileAndLine& fl) - { - *static_cast(this) = fl; - return *this; - } - - // - // default va_list based trace. - void operator()(const char* pFormat, ...) - { - va_list ptr; va_start(ptr, pFormat); - Trace()(pFormat, ptr, file(), line()); - va_end(ptr); - } - - // - // Exception trace. - void operator()(const Exception& e) - { - setFileAndLine(dynamic_cast(&e)); - switch(e.GetId()) - { - case eiNoSuchAlgorithmException: - (*this)("%s['0x%08x', '%&s', '%s', '%s']\n", - typeid(e).name(), - static_cast(e).algorithm(), - e.code(), e.what(), e.where()); - break; - - default: - (*this)("%s['0x%08x', '%s', '%s']\n", - typeid(e).name(), e.code(), e.what(), e.where()); - } - } - - void operator()(const Exception& e, const char* pName) - { - setFileAndLine(dynamic_cast(&e)); - switch(e.GetId()) - { - case eiNoSuchAlgorithmException: - (*this)("%s : %s['0x%08x', '%s', '%s', '%s']\n", pName, - typeid(e).name(), - e.code(), - static_cast(e).algorithm(), - e.what(), e.where()); - break; - - default: - (*this)("%s : %s['0x%08x', '%s', '%s']\n", pName, - typeid(e).name(), - e.code(), e.what(), e.where()); - } - } - }; - -} // namespace act - -#define ACT_TRACE act::TraceFileAndLine(__FILE__, __LINE__) -#define ACT_TRACELOG act::TraceFileAndLine() - -#endif // ACT_TRACE -#endif // ACT_Debug_h diff --git a/actlibrary/SLES-10-i686/Release/include/actDefaultRNG.h b/actlibrary/SLES-10-i686/Release/include/actDefaultRNG.h deleted file mode 100644 index 6d44af6..0000000 --- a/actlibrary/SLES-10-i686/Release/include/actDefaultRNG.h +++ /dev/null @@ -1,24 +0,0 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actDefaultRNG.h -// Product: cv act library -// Purpose: actDefaultRNG.h provides defaults for the class IRNGAlg. -// -// Copyright: (c) 2000 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_DefaultRNG_h -#define ACT_DefaultRNG_h -namespace act -{ - class IRNGAlg; - typedef IRNGAlg* (*CreateRNGPtr)(); - - extern CreateRNGPtr CreateFastRNG; - extern CreateRNGPtr CreateStrongRNG; -} - -#endif - diff --git a/actlibrary/SLES-10-i686/Release/include/actDerivatorKit.h b/actlibrary/SLES-10-i686/Release/include/actDerivatorKit.h deleted file mode 100644 index 8339d09..0000000 --- a/actlibrary/SLES-10-i686/Release/include/actDerivatorKit.h +++ /dev/null @@ -1,27 +0,0 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actDerivatorKit.h -// Product: cv act library -// Purpose: declaration of all factory functions -// -// Copyright: (c) 2006 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_DerivatorKit_h -#define ACT_DerivatorKit_h - -namespace act -{ - class IDerivator; - class Blob; - - IDerivator* CreateKDF1(); - IDerivator* CreateX963KDF(); - IDerivator* CreatePBKDF1(); - IDerivator* CreatePBKDF2(); - IDerivator* CreateEACKDF(); -} -#endif - diff --git a/actlibrary/SLES-10-i686/Release/include/actDerivatorReg.h b/actlibrary/SLES-10-i686/Release/include/actDerivatorReg.h deleted file mode 100644 index 32fe672..0000000 --- a/actlibrary/SLES-10-i686/Release/include/actDerivatorReg.h +++ /dev/null @@ -1,41 +0,0 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actDerivatorReg.h -// Product: cv act library -// Purpose: registry for the factory functions in actDerivatorKit.h -// -// Copyright: (c) 2000 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_DerivatorReg_h -#define ACT_DerivatorReg_h - -namespace act -{ - class IDerivator; - class Blob; - - typedef IDerivator* (*CreateDerivatorPtr)(); - - struct DerivatorMapEntry - { - const char* Name; - CreateDerivatorPtr CreatePtr; - }; - - class DerivatorReg - { - public: - static IDerivator* CreateDerivator(const char* name); - static CreateDerivatorPtr GetCreatePointer(const char* name); - static const char* GetName(void* createptr); - static const char* GetNextName(const char* name); - static void Insert(const char* name, CreateDerivatorPtr createptr); - static void Insert(const DerivatorMapEntry* derivatormap); - }; - -} // namespace act - -#endif // ACT_DerivatorReg_h diff --git a/actlibrary/SLES-10-i686/Release/include/actEMSAKit.h b/actlibrary/SLES-10-i686/Release/include/actEMSAKit.h deleted file mode 100644 index 460f614..0000000 --- a/actlibrary/SLES-10-i686/Release/include/actEMSAKit.h +++ /dev/null @@ -1,28 +0,0 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actEMSAKit.h -// Product: cv act library -// Purpose: declaration of all factory functions -// -// Copyright: (c) 2000 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_EMSAKit_h -#define ACT_EMSAKit_h - -namespace act -{ - class IEMSAAlg; - - IEMSAAlg* CreateEMSA1(); - IEMSAAlg* CreatePKCS1V1_5EMSA(); - IEMSAAlg* CreateTLS_EMSA(); - IEMSAAlg* CreatePKCS1_PSS_EMSA(); - - IEMSAAlg* CreateDummyEMSA(); - -} -#endif - diff --git a/actlibrary/SLES-10-i686/Release/include/actEMSAReg.h b/actlibrary/SLES-10-i686/Release/include/actEMSAReg.h deleted file mode 100644 index c5e92f0..0000000 --- a/actlibrary/SLES-10-i686/Release/include/actEMSAReg.h +++ /dev/null @@ -1,40 +0,0 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actEMSAReg.h -// Product: cv act library -// Purpose: registry for factory functions in actEMSAKit.h -// -// Copyright: (c) 2000 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_EMSAReg_h -#define ACT_EMSAReg_h - -namespace act -{ - class IEMSAAlg; - - typedef IEMSAAlg* (*CreateEMSAPtr)(); - - struct EMSAMapEntry - { - const char* Name; - CreateEMSAPtr CreatePtr; - }; - - class EMSAReg - { - public: - static IEMSAAlg* CreateEMSAAlg(const char* name); - static CreateEMSAPtr GetCreatePointer(const char* name); - static const char* GetName(void* createptr); - static const char* GetNextName(const char* name); - static void Insert(const char* name, CreateEMSAPtr createptr); - static void Insert(const EMSAMapEntry* map); - }; - -} // namespace act - -#endif // ACT_EMSAReg_h diff --git a/actlibrary/SLES-10-i686/Release/include/actEnv.h b/actlibrary/SLES-10-i686/Release/include/actEnv.h deleted file mode 100644 index 6a319b8..0000000 --- a/actlibrary/SLES-10-i686/Release/include/actEnv.h +++ /dev/null @@ -1,126 +0,0 @@ -////////////////////////////////////////////////////////////////////////// -// Name: actEnv.h -// Product: cv act library -// Purpose: Operating System environment -// -// Copyright: (c) 2009 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -// -// Autor: Markus Tesche -// Date: 04/23/2009 -////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_Env_h -#define ACT_Env_h - -// 64Bit detection ... -#if defined(_WIN64) || \ - defined(__LP64__) || \ - defined(__alpha__) || \ - defined(__ia64__) || \ - defined(__ppc64__) || \ - defined(__s390x__) || \ - defined(__x86_64__) -# define ACT_64 -#endif - -// cygwin -#if defined(__CYGWIN__) -# define ACT_CYGWIN -#endif - -// mingw -#if defined(__MINGW32__) -# define ACT_MINGW -#endif - -// Platform detection ... -#if defined(ACT_WIN32) || \ - defined(ACT_POSIX) || \ - defined(ACT_SOLARIS) || \ - defined(ACT_MACOSX) || \ - defined(ACT_WIN32_WCE) -// do nothing - -#elif defined(_WIN32_WCE) && _WIN32_WCE >= 0x500 -# define ACT_WIN32 -# define ACT_WIN32_WCE - -#elif defined(WIN32) && !defined(__CYGWIN__) -# define ACT_WIN32 - -#elif defined(_MSC_VER) || \ - defined(__BORLANDC__) || \ - defined(__BCPLUSPLUS__) || \ - defined(__MINGW32__) -# define ACT_WIN32 - -#elif defined(__linux__) || \ - defined(__CYGWIN__) || \ - defined(__FreeBSD__) || defined(__NetBSD__) || defined(__OpenBSD__) || \ - defined(__hpux) || \ - defined(__sgi) -# define ACT_POSIX - -#elif defined(_POSIX_SOURCE) || \ - defined(_XOPEN_SOURCE) -# define ACT_POSIX - -#elif defined(__sun) -# define ACT_POSIX -# define ACT_SOLARIS - -#elif defined(__APPLE__) && defined(__MACH__) -# define ACT_POSIX -# define ACT_MACOSX - -#else -# error unable to deteced system environment - -#endif - -// -// ACT_DEPRECATED definition -#if defined(_MSC_VER) -# define ACT_MSC -# if _MSC_FULL_VER >= 140050320 -# define ACT_DEPRECATED(msg) __declspec(deprecated("is deprecated: " msg)) -# else -# define ACT_DEPRECATED(msg) __declspec(deprecated) -# endif -# define ACT_STDEXT_NS std -# define ACT_STDEXT_INC(file) - -#elif defined(__GNUC__) -# define ACT_GCC -# if (__GNUC__ > 3) || (__GNUC__ == 3 && __GNUC_MINOR__ >= 1) -# define ACT_DEPRECATED(msg) __attribute__((__deprecated__)) -# endif -# define ACT_STDEXT_NS __gnu_cxx -# define ACT_STDEXT_INC(file) - -#endif - -#if !defined(ACT_DEPRECATED) -# define ACT_DEPRECATED(msg) -#endif - -// -// DLL/Shared Object symbol export/import attribte -#if defined(ACT_MSC) -# define ACT_DYNLIB_EXPORT _declspec(dllexport) -# define ACT_DYNLIB_IMPORT _declspec(dllimport) - -#elif defined(ACT_GCC) && !defined(ACT_MINGW) -# define ACT_DYNLIB_EXPORT __attribute__((visibility("default"))) -# define ACT_DYNLIB_IMPORT - -#else -# define ACT_DYNLIB_EXPORT -# define ACT_DYNLIB_IMPORT - -#endif - -#endif // ACT_Env_h diff --git a/actlibrary/SLES-10-i686/Release/include/actException.h b/actlibrary/SLES-10-i686/Release/include/actException.h deleted file mode 100644 index caa9636..0000000 --- a/actlibrary/SLES-10-i686/Release/include/actException.h +++ /dev/null @@ -1,1112 +0,0 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actException.h -// Product: cv act library -// Purpose: exception hierarchy -// -// Copyright: (c) 2000 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_Exception_h -#define ACT_Exception_h - -#include -#include - -#include "actMove.h" -#include "actBlob.h" - -namespace act -{ - // --------------------------------------------------------------------------- - enum ExceptionId - { - eiException = 0, - eiBadException = eiException + 1, - eiNullPointerException, - eiOutOfRangeException, - - eiBadCastException = eiException + 10, - eiBadNumericCast, - eiNegativeOverflow, - eiPositiveOverflow, - - eiRuntimeException = eiException + 20, - eiBadAllocException, - eiNotSupportedException, - eiNotImplementedException, - eiInvalidParameterException, - eiSynchronizationException, - - eiLogicalException = eiException + 40, - eiASN1Exception, - eiNoSuchDLLException, - eiPasswordException, - eiArithmeticException, - eiMessageDigestException, - eiPaddingException, - eiSignatureException, - - eiAlgorithmException = eiException + 80, - eiInvalidAlgorithmParameterException, - eiNoSuchAlgorithmException, - - eiCertificateException = eiException + 80, - eiInvalidCertificateException, - eiCertificateEncodingException, - eiCertificateExpiredException, - eiCertificateNotYetValidException, - eiCertificateParsingException, - - eiKeyException = eiException + 100, - eiInvalidKeyException, - eiKeyManagementException, - - eiEACException = eiException + 120, - eiEACDataException, - eiEACMRZException, - eiEACCVCertException, - - eiSmartcardException = eiException + 140, - eiCardOutOfMemoryException, - eiInvalidPinException, - eiPinLockedException, - eiPinExpiredException, - eiPinLenRangeException, - eiInvalidCRKeyException, - eiInvalidCardException, - eiInvalidAuthException, - eiInvalidAuthObjectException, - eiAuthProtocolException, - eiAuthConstrainedException, - eiSecureMessagingException, - eiSMWrapException, - eiSMUnwrapException, - - eiSubsystemException = eiException + 180, - eiNoSuchSubsystemException, - }; - -#ifndef UNDER_CE_30 - - // --------------------------------------------------------------------------- - class FileAndLine - { - public: - FileAndLine(const char* file = 0, int line = 0) - : m_line(line) - , m_file(file) - { } - - FileAndLine(const FileAndLine& other) - : m_line(other.line()) - , m_file(other.file()) - { } - - int line() const { return m_line; } - const char* file() const { return m_file; } - - // assignment operators. - FileAndLine& operator=(const FileAndLine& other) - { - m_line = other.line(); - m_file = other.file(); - return *this; - } - - private: - int m_line; - const char* m_file; - }; - - // - // base class for all exceptions thrown by cv act library - // --------------------------------------------------------------------------- - class Exception - { - public: - typedef Exception Type; - - explicit Exception(const char* msg = 0, const char* where = 0, ulong code = 0) - : m_what(msg) - , m_where(where) - , m_code(code) - { } - - explicit Exception(const std::exception& other) - : m_what(other.what()) - , m_where(0) - , m_code(0) - { } - - template - explicit Exception(const T& other) - : m_what(other.what()) - , m_where(other.where()) - , m_code(0) - { } - - virtual ~Exception() - { } - - template - _ExceptionT* TypedClone() const - { - return new(std::nothrow) _ExceptionT(m_what, m_where, m_code); - } - - template - _ExceptionT* TypedClone(const ParamT& param) const - { - return new(std::nothrow) _ExceptionT(m_what, m_where, param); - } - - template - void TypedThrow() const { throw _ExceptionT(m_what, m_where, m_code); } - - template - void TypedThrow(const ParamT& param) const { throw _ExceptionT(m_what, m_where, param); } - - virtual Exception* Clone() const { return new(std::nothrow) Exception(*this); } - virtual int GetId() const { return eiException; } - virtual void Throw() const { throw Exception(*this); } - - const char* what() const { return m_what != 0 ? m_what : ""; } - const char* where() const { return m_where != 0 ? m_where : ""; } - ulong code() const { return m_code; } - - template - friend ExceptionT& modify(ExceptionT& e, const char* what, const char* where) - { - if(what != 0) e.m_what = what; - if(where != 0) e.m_where = where; - return e; - } - - protected: - const char* m_what; - const char* m_where; - ulong m_code; - }; - - // - // ExceptionType<> - // --------------------------------------------------------------------------- - template - < - const int _exceptionId, - class ExceptionT, - class BaseT, - typename OtherT = void - > - class ExceptionType : public BaseT, public OtherT - { - protected: - typedef BaseT BaseType; - typedef OtherT OtherType; - enum { exceptionId = _exceptionId }; - - public: - ExceptionType(const char* msg, const char* where, ulong code) - : BaseType(msg, where, code) - , OtherT() - { } - - ExceptionT& operator<<(const OtherType& other) - { - *static_cast(this) = other; - return *static_cast(this); - } - - template - _ExceptionT* TypedClone() const - { - _ExceptionT* e = new(std::nothrow) _ExceptionT(BaseT::m_what, BaseT::m_where, BaseT::m_code); - if(e != 0) *e << *this; - return e; - } - - virtual void Throw() const { throw ExceptionT(BaseT::m_what, BaseT::m_where, BaseT::m_code); } - virtual int GetId() const { return exceptionId; } - }; - - template - < - const int _exceptionId, - class ExceptionT, - class BaseT - > - class ExceptionType<_exceptionId, ExceptionT, BaseT, void> : public BaseT - { - protected: - typedef BaseT BaseType; - enum { exceptionId = _exceptionId }; - - public: - ExceptionType(const char* msg, const char* where, ulong code) - : BaseType(msg, where, code) - { } - - virtual void Throw() const { throw ExceptionT(BaseT::m_what, BaseT::m_where, BaseT::m_code); } - virtual int GetId() const { return exceptionId; } - }; - - // --------------------------------------------------------------------------- - class BadException : - public ExceptionType - { - public: - typedef ExceptionType BaseType; - typedef BadException Type; - using BaseType::exceptionId; - - BadException(const char* msg = 0, const char* where = 0, ulong code = 0) - : BaseType(msg, where, code) - { } - }; - - class NullPointerException : - public ExceptionType - { - public: - typedef ExceptionType BaseType; - typedef NullPointerException Type; - using BaseType::exceptionId; - - NullPointerException(const char* msg = 0, const char* where = 0, ulong code = 0) - : BaseType(msg, where, code) - { } - }; - - class OutOfRangeException : - public ExceptionType - { - public: - typedef ExceptionType BaseType; - typedef OutOfRangeException Type; - using BaseType::exceptionId; - - OutOfRangeException(const char* msg = 0, const char* where = 0, ulong code = 0) - : BaseType(msg, where, code) - { } - }; - - // --------------------------------------------------------------------------- - class BadCastException : - public ExceptionType - { - public: - typedef ExceptionType BaseType; - typedef BadCastException Type; - using BaseType::exceptionId; - - BadCastException(const char* msg = 0, const char* where = 0, ulong code = 0) - : BaseType(msg, where, code) - { } - }; - - class BadNumericCast : - public ExceptionType - { - public: - typedef ExceptionType BaseType; - typedef BadNumericCast Type; - using BaseType::exceptionId; - - BadNumericCast(const char* msg = 0, const char* where = 0, ulong code = 0) - : BaseType(msg, where, code) - { } - - template - void operator()(overflow_type overflow) - { - switch(eiBadNumericCast + overflow) - { - case eiNegativeOverflow: TypedThrow >(); - case eiPositiveOverflow: TypedThrow >(); - default: /* do nothing */; - } - } - }; - - // --------------------------------------------------------------------------- - class RuntimeException : - public ExceptionType - { - public: - typedef ExceptionType BaseType; - typedef RuntimeException Type; - using BaseType::exceptionId; - - RuntimeException(const char* msg = 0, const char* where = 0, ulong code = 0) - : BaseType(msg, where, code) - { } - }; - - class BadAllocException : - public ExceptionType - { - public: - typedef ExceptionType BaseType; - typedef BadAllocException Type; - using BaseType::exceptionId; - - BadAllocException(const char* msg = 0, const char* where = 0, ulong code = 0) - : BaseType(msg, where, code) - { } - }; - - class NotSupportedException : - public ExceptionType - { - public: - typedef ExceptionType BaseType; - typedef NotSupportedException Type; - using BaseType::exceptionId; - using BaseType::operator<<; - - explicit NotSupportedException(const char* msg = 0, const char* where = 0, ulong code = 0) - : BaseType(msg, where, code) - { } - - virtual Type* Clone() const { return TypedClone(); } - }; - - class NotImplementedException : - public ExceptionType - { - public: - typedef ExceptionType BaseType; - typedef NotImplementedException Type; - using BaseType::exceptionId; - using BaseType::operator<<; - - NotImplementedException(const char* msg = 0, const char* where = 0, ulong code = 0) - : BaseType(msg, where, code) - { } - - virtual Type* Clone() const { return TypedClone(); } - }; - - class InvalidParameterException : - public ExceptionType - { - public: - typedef ExceptionType BaseType; - typedef InvalidParameterException Type; - using BaseType::exceptionId; - using BaseType::operator<<; - - InvalidParameterException(const char* msg = 0, const char* where = 0, ulong code = 0) - : BaseType(msg, where, code) - { } - - virtual Type* Clone() const { return TypedClone(); } - }; - - class SynchronizationException : - public ExceptionType - { - public: - typedef ExceptionType BaseType; - typedef SynchronizationException Type; - using BaseType::exceptionId; - using BaseType::operator<<; - - SynchronizationException(const char* msg = 0, const char* where = 0, ulong code = 0) - : BaseType(msg, where, code) - { } - - virtual Type* Clone() const { return TypedClone(); } - }; - - // --------------------------------------------------------------------------- - class LogicalException : public Exception - { - public: - typedef Exception BaseType; - typedef LogicalException Type; - - LogicalException(const char* msg = 0, const char* where = 0, ulong code = 0) - : Exception(msg, where, code) - { } - - virtual Type* Clone() const { return TypedClone(); } - virtual void Throw() const { throw Type(m_what, m_where, m_code); } - virtual int GetId() const { return eiLogicalException; } - }; - - class ASN1Exception : public LogicalException - { - public: - typedef LogicalException BaseType; - typedef ASN1Exception Type; - - ASN1Exception(const char* msg = 0, const char* where = 0, ulong code = 0) - : LogicalException(msg, where, code) - { } - - virtual Type* Clone() const { return TypedClone(); } - virtual void Throw() const { throw Type(m_what, m_where, m_code); } - virtual int GetId() const { return eiASN1Exception; } - }; - - class NoSuchDLLException : public LogicalException - { - public: - typedef LogicalException BaseType; - typedef NoSuchDLLException Type; - - NoSuchDLLException(const char* msg = 0, const char* where = 0, ulong code = 0) - : LogicalException(msg, where, code) - { } - - virtual Type* Clone() const { return TypedClone(); } - virtual void Throw() const { throw Type(m_what, m_where, m_code); } - virtual int GetId() const { return eiNoSuchDLLException; } - }; - - class PasswordException : public LogicalException - { - public: - typedef LogicalException BaseType; - typedef PasswordException Type; - - PasswordException(const char* msg = 0, const char* where = 0, ulong code = 0) - : LogicalException(msg, where, code) - { } - - virtual Type* Clone() const { return TypedClone(); } - virtual void Throw() const { throw Type(m_what, m_where, m_code); } - virtual int GetId() const { return eiPasswordException; } - }; - - class ArithmeticException : public LogicalException - { - public: - typedef LogicalException BaseType; - typedef ArithmeticException Type; - - ArithmeticException(const char* msg = 0, const char* where = 0, ulong code = 0) - : LogicalException(msg, where, code) - { } - - virtual Type* Clone() const { return TypedClone(); } - virtual void Throw() const { throw Type(m_what, m_where, m_code); } - virtual int GetId() const { return eiArithmeticException; } - }; - - class MessageDigestException : public LogicalException - { - public: - typedef LogicalException BaseType; - typedef MessageDigestException Type; - - MessageDigestException(const char* msg = 0, const char* where = 0, ulong code = 0) - : LogicalException(msg, where, code) - { } - - virtual Type* Clone() const { return TypedClone(); } - virtual void Throw() const { throw Type(m_what, m_where, m_code); } - virtual int GetId() const { return eiMessageDigestException; } - }; - - class PaddingException : public LogicalException - { - public: - typedef LogicalException BaseType; - typedef PaddingException Type; - - PaddingException(const char* msg = 0, const char* where = 0, ulong code = 0) - : LogicalException(msg, where, code) - { } - - virtual Type* Clone() const { return TypedClone(); } - virtual void Throw() const { throw Type(m_what, m_where, m_code); } - virtual int GetId() const { return eiPaddingException; } - }; - - class SignatureException : public LogicalException - { - public: - typedef LogicalException BaseType; - typedef SignatureException Type; - - SignatureException(const char* msg = 0, const char* where = 0, ulong code = 0) - : LogicalException(msg, where, code) - { } - - virtual Type* Clone() const { return TypedClone(); } - virtual void Throw() const { throw Type(m_what, m_where, m_code); } - virtual int GetId() const { return eiSignatureException; } - }; - - // --------------------------------------------------------------------------- - class AlgorithmException : public LogicalException - { - public: - typedef LogicalException BaseType; - typedef AlgorithmException Type; - - AlgorithmException(const char* msg = 0, const char* where = 0, ulong code = 0) - : LogicalException(msg, where, code) - { } - - virtual Type* Clone() const { return TypedClone(); } - virtual void Throw() const { throw Type(m_what, m_where, m_code); } - virtual int GetId() const { return eiAlgorithmException; } - }; - - class InvalidAlgorithmParameterException : public AlgorithmException - { - public: - typedef AlgorithmException BaseType; - typedef InvalidAlgorithmParameterException Type; - - InvalidAlgorithmParameterException(const char* msg = 0, const char* where = 0, ulong code = 0) - : AlgorithmException(msg, where, code) - { } - - virtual Type* Clone() const { return TypedClone(); } - virtual void Throw() const { throw Type(m_what, m_where, m_code); } - virtual int GetId() const { return eiInvalidAlgorithmParameterException; } - }; - - class NoSuchAlgorithmException : public AlgorithmException - { - public: - typedef AlgorithmException BaseType; - typedef NoSuchAlgorithmException Type; - - NoSuchAlgorithmException(const char* msg = 0, const char* where = 0, const char* algorithm = 0) - : AlgorithmException(msg, where) - , m_algorithm(algorithm) - { - m_algorithm.push_back(0); - } - - // GCC 4.2.1 whats to have it - virtual ~NoSuchAlgorithmException() - { } - - virtual Type* Clone() const { return TypedClone(algorithm()); } - virtual void Throw() const { throw Type(m_what, m_where, algorithm()); } - virtual int GetId() const { return eiNoSuchAlgorithmException; } - - const char* algorithm() const { return reinterpret_cast(&m_algorithm[0]); } - - protected: - mutable Blob m_algorithm; - }; - - // --------------------------------------------------------------------------- - class CertificateException : public LogicalException - { - public: - typedef LogicalException BaseType; - typedef CertificateException Type; - - CertificateException(const char* msg = 0, const char* where = 0, ulong code = 0) - : LogicalException(msg, where, code) - { } - - virtual Type* Clone() const { return TypedClone(); } - virtual void Throw() const { throw Type(m_what, m_where, m_code); } - virtual int GetId() const { return eiCertificateException; } - }; - - class InvalidCertificateException : public CertificateException - { - public: - typedef CertificateException BaseType; - typedef InvalidCertificateException Type; - - InvalidCertificateException(const char* msg = 0, const char* where = 0, ulong code = 0) - : CertificateException(msg, where, code) - { } - - virtual Type* Clone() const { return TypedClone(); } - virtual void Throw() const { throw Type(m_what, m_where, m_code); } - virtual int GetId() const { return eiInvalidCertificateException; } - }; - - class CertificateEncodingException : public CertificateException - { - public: - typedef CertificateException BaseType; - typedef CertificateEncodingException Type; - - CertificateEncodingException(const char* msg = 0, const char* where = 0, ulong code = 0) - : CertificateException(msg, where, code) - { } - - virtual Type* Clone() const { return TypedClone(); } - virtual void Throw() const { throw Type(m_what, m_where, m_code); } - virtual int GetId() const { return eiCertificateEncodingException; } - }; - - class CertificateExpiredException : public CertificateException - { - public: - typedef CertificateException BaseType; - typedef CertificateExpiredException Type; - - CertificateExpiredException(const char* msg = 0, const char* where = 0, ulong code = 0) - : CertificateException(msg, where, code) - { } - - virtual Type* Clone() const { return TypedClone(); } - virtual void Throw() const { throw Type(m_what, m_where, m_code); } - virtual int GetId() const { return eiCertificateExpiredException; } - }; - - class CertificateNotYetValidException : public CertificateException - { - public: - typedef CertificateException BaseType; - typedef CertificateNotYetValidException Type; - - CertificateNotYetValidException(const char* msg = 0, const char* where = 0, ulong code = 0) - : CertificateException(msg, where, code) - { } - - virtual Type* Clone() const { return TypedClone(); } - virtual void Throw() const { throw Type(m_what, m_where, m_code); } - virtual int GetId() const { return eiCertificateNotYetValidException; } - }; - - class CertificateParsingException : public CertificateException - { - public: - typedef CertificateException BaseType; - typedef CertificateParsingException Type; - - CertificateParsingException(const char* msg = 0, const char* where = 0, ulong code = 0) - : CertificateException(msg, where, code) - { } - - virtual Type* Clone() const { return TypedClone(); } - virtual void Throw() const { throw Type(m_what, m_where, m_code); } - virtual int GetId() const { return eiCertificateParsingException; } - }; - - // --------------------------------------------------------------------------- - class KeyException : public LogicalException - { - public: - typedef LogicalException BaseType; - typedef KeyException Type; - - KeyException(const char* msg = 0, const char* where = 0, ulong code = 0) - : LogicalException(msg, where, code) - { } - - virtual Type* Clone() const { return TypedClone(); } - virtual void Throw() const { throw Type(m_what, m_where, m_code); } - virtual int GetId() const { return eiKeyException; } - }; - - class InvalidKeyException : public KeyException - { - public: - typedef KeyException BaseType; - typedef InvalidKeyException Type; - - InvalidKeyException(const char* msg = 0, const char* where = 0, ulong code = 0) - : KeyException(msg, where, code) - { } - - virtual Type* Clone() const { return TypedClone(); } - virtual void Throw() const { throw Type(m_what, m_where, m_code); } - virtual int GetId() const { return eiInvalidKeyException; } - }; - - class KeyManagementException : public KeyException - { - public: - typedef KeyException BaseType; - typedef KeyManagementException Type; - - KeyManagementException(const char* msg = 0, const char* where = 0, ulong code = 0) - : KeyException(msg, where, code) - { } - - virtual Type* Clone() const { return TypedClone(); } - virtual void Throw() const { throw Type(m_what, m_where, m_code); } - virtual int GetId() const { return eiKeyManagementException; } - }; - - // --------------------------------------------------------------------------- - class EACException : public LogicalException - { - public: - typedef LogicalException BaseType; - typedef EACException Type; - - EACException(const char* msg = 0, const char* where = 0, ulong code = 0) - : LogicalException(msg, where, code) - { } - - virtual Type* Clone() const { return TypedClone(); } - virtual void Throw() const { throw Type(m_what, m_where, m_code); } - virtual int GetId() const { return eiEACException; } - }; - - class EACDataException : public EACException - { - public: - typedef EACException BaseType; - typedef EACDataException Type; - - EACDataException(const char* msg = 0, const char* where = 0, ulong code = 0) - : EACException(msg, where, code) - { } - - virtual Type* Clone() const { return TypedClone(); } - virtual void Throw() const { throw Type(m_what, m_where, m_code); } - virtual int GetId() const { return eiEACDataException; } - }; - - class EACMRZException : public EACDataException - { - public: - typedef EACDataException BaseType; - typedef EACMRZException Type; - - EACMRZException(const char* msg = 0, const char* where = 0, ulong code = 0) - : EACDataException(msg, where, code) - { } - - virtual Type* Clone() const { return TypedClone(); } - virtual void Throw() const { throw Type(m_what, m_where, m_code); } - virtual int GetId() const { return eiEACMRZException; } - }; - - class EACCVCertException : public EACDataException - { - public: - typedef EACDataException BaseType; - typedef EACCVCertException Type; - - EACCVCertException(const char* msg = 0, const char* where = 0, ulong code = 0) - : EACDataException(msg, where, code) - { } - - virtual Type* Clone() const { return TypedClone(); } - virtual void Throw() const { throw Type(m_what, m_where, m_code); } - virtual int GetId() const { return eiEACCVCertException; } - }; - - // --------------------------------------------------------------------------- - class SmartcardException : public LogicalException - { - public: - typedef LogicalException BaseType; - typedef SmartcardException Type; - - SmartcardException(const char* msg = 0, const char* where = 0, ulong code = 0) - : LogicalException(msg, where, code) - { } - - virtual Type* Clone() const { return TypedClone(); } - virtual void Throw() const { throw Type(m_what, m_where, m_code); } - virtual int GetId() const { return eiSmartcardException; } - }; - - class CardOutOfMemoryException : public SmartcardException - { - public: - typedef SmartcardException BaseType; - typedef CardOutOfMemoryException Type; - - CardOutOfMemoryException(const char* msg = 0, const char* where = 0, ulong code = 0) - : SmartcardException(msg, where, code) - { } - - virtual Type* Clone() const { return TypedClone(); } - virtual void Throw() const { throw Type(m_what, m_where, m_code); } - virtual int GetId() const { return eiCardOutOfMemoryException; } - }; - - class InvalidPinException : public SmartcardException - { - public: - typedef SmartcardException BaseType; - typedef InvalidPinException Type; - - InvalidPinException(const char* msg = 0, const char* where = 0, ulong code = 0) - : SmartcardException(msg, where, code) - { } - - virtual Type* Clone() const { return TypedClone(); } - virtual void Throw() const { throw Type(m_what, m_where, m_code); } - virtual int GetId() const { return eiInvalidPinException; } - }; - - class PinLockedException : public SmartcardException - { - public: - typedef SmartcardException BaseType; - typedef PinLockedException Type; - - PinLockedException(const char* msg = 0, const char* where = 0, ulong code = 0) - : SmartcardException(msg, where, code) - { } - - virtual Type* Clone() const { return TypedClone(); } - virtual void Throw() const { throw Type(m_what, m_where, m_code); } - virtual int GetId() const { return eiPinLockedException; } - }; - - class PinExpiredException : public SmartcardException - { - public: - typedef SmartcardException BaseType; - typedef PinExpiredException Type; - - PinExpiredException(const char* msg = 0, const char* where = 0, ulong code = 0) - : SmartcardException(msg, where, code) - { } - - virtual Type* Clone() const { return TypedClone(); } - virtual void Throw() const { throw Type(m_what, m_where, m_code); } - virtual int GetId() const { return eiPinExpiredException; } - }; - - class PinLenRangeException : public SmartcardException - { - public: - typedef SmartcardException BaseType; - typedef PinLenRangeException Type; - - PinLenRangeException(const char* msg = 0, const char* where = 0, ulong code = 0) - : SmartcardException(msg, where, code) - { } - - virtual Type* Clone() const { return TypedClone(); } - virtual void Throw() const { throw Type(m_what, m_where, m_code); } - virtual int GetId() const { return eiPinLenRangeException; } - }; - - class InvalidCRKeyException : public SmartcardException - { - public: - typedef SmartcardException BaseType; - typedef InvalidCRKeyException Type; - - InvalidCRKeyException(const char* msg = 0, const char* where = 0, ulong code = 0) - : SmartcardException(msg, where, code) - { } - - virtual Type* Clone() const { return TypedClone(); } - virtual void Throw() const { throw Type(m_what, m_where, m_code); } - virtual int GetId() const { return eiInvalidCRKeyException; } - }; - - class InvalidCardException : public SmartcardException - { - public: - typedef SmartcardException BaseType; - typedef InvalidCardException Type; - - InvalidCardException(const char* msg = 0, const char* where = 0, ulong code = 0) - : SmartcardException(msg, where, code) - { } - - virtual Type* Clone() const { return TypedClone(); } - virtual void Throw() const { throw Type(m_what, m_where, m_code); } - virtual int GetId() const { return eiInvalidCardException; } - }; - - class InvalidAuthException : public SmartcardException - { - public: - typedef SmartcardException BaseType; - typedef InvalidAuthException Type; - - InvalidAuthException(const char* msg = 0, const char* where = 0, ulong code = 0) - : SmartcardException(msg, where, code) - { } - - virtual Type* Clone() const { return TypedClone(); } - virtual void Throw() const { throw Type(m_what, m_where, m_code); } - virtual int GetId() const { return eiInvalidAuthException; } - }; - - class InvalidAuthObjectException : public SmartcardException - { - public: - typedef SmartcardException BaseType; - typedef InvalidAuthObjectException Type; - - InvalidAuthObjectException(const char* msg = 0, const char* where = 0, ulong code = 0) - : SmartcardException(msg, where, code) - { } - - virtual Type* Clone() const { return TypedClone(); } - virtual void Throw() const { throw Type(m_what, m_where, m_code); } - virtual int GetId() const { return eiInvalidAuthObjectException; } - }; - - class AuthProtocolException : public SmartcardException - { - public: - typedef SmartcardException BaseType; - typedef AuthProtocolException Type; - - AuthProtocolException(const char* msg = 0, const char* where = 0, ulong code = 0) - : SmartcardException(msg, where, code) - { } - - virtual Type* Clone() const { return TypedClone(); } - virtual void Throw() const { throw Type(m_what, m_where, m_code); } - virtual int GetId() const { return eiAuthProtocolException; } - }; - - class AuthConstrainedException : public SmartcardException - { - public: - typedef SmartcardException BaseType; - typedef AuthConstrainedException Type; - - AuthConstrainedException(const char* msg = 0, const char* where = 0, ulong code = 0) - : SmartcardException(msg, where, code) - { } - - virtual Type* Clone() const { return TypedClone(); } - virtual void Throw() const { throw Type(m_what, m_where, m_code); } - virtual int GetId() const { return eiAuthConstrainedException; } - }; - - class SecureMessagingException : public SmartcardException - { - public: - typedef SmartcardException BaseType; - typedef SecureMessagingException Type; - - SecureMessagingException(const char* msg = 0, const char* where = 0, ulong code = 0) - : SmartcardException(msg, where, code) - { } - - virtual Type* Clone() const { return TypedClone(); } - virtual void Throw() const { throw Type(m_what, m_where, m_code); } - virtual int GetId() const { return eiSecureMessagingException; } - }; - - class SMWrapException : public SecureMessagingException - { - public: - typedef SecureMessagingException BaseType; - typedef SMWrapException Type; - - SMWrapException(const char* msg = 0, const char* where = 0, ulong code = 0) - : SecureMessagingException(msg, where, code) - { } - - virtual Type* Clone() const { return TypedClone(); } - virtual void Throw() const { throw Type(m_what, m_where, m_code); } - virtual int GetId() const { return eiSMWrapException; } - }; - - class SMUnwrapException : public SecureMessagingException - { - public: - typedef SecureMessagingException BaseType; - typedef SMUnwrapException Type; - - SMUnwrapException(const char* msg = 0, const char* where = 0, ulong code = 0) - : SecureMessagingException(msg, where, code) - { } - - virtual Type* Clone() const { return TypedClone(); } - virtual void Throw() const { throw Type(m_what, m_where, m_code); } - virtual int GetId() const { return eiSMUnwrapException; } - }; - - // --------------------------------------------------------------------------- - class SubsystemException : public LogicalException - { - public: - typedef LogicalException BaseType; - typedef SubsystemException Type; - - SubsystemException(const char* msg = 0, const char* where = 0, ulong code = 0) - : LogicalException(msg, where, code) - { } - - virtual Type* Clone() const { return TypedClone(); } - virtual void Throw() const { throw Type(m_what, m_where, m_code); } - virtual int GetId() const { return eiSubsystemException; } - }; - - class NoSuchSubsystemException : public SubsystemException - { - public: - typedef SubsystemException BaseType; - typedef NoSuchSubsystemException Type; - - NoSuchSubsystemException(const char* msg = 0, const char* where = 0, ulong code = 0) - : SubsystemException(msg, where, code) - { } - - virtual Type* Clone() const { return TypedClone(); } - virtual void Throw() const { throw Type(m_what, m_where, m_code); } - virtual int GetId() const { return eiNoSuchSubsystemException; } - }; - -#else - - #define throw(_x) _exit(_x) - - int Exception(const char* msg = 0, const char* where = 0, ulong code = 0); - int BadException(const char* msg = 0, const char* where = 0, ulong code = 0); - int NullPointerException(const char* msg = 0, const char* where = 0, ulong code = 0); - int OutOfRangeException(const char* msg = 0, const char* where = 0, ulong code = 0); - int BadCastException(const char* msg = 0, const char* where = 0, ulong code = 0); - int BadNumericCast(const char* msg = 0, const char* where = 0, ulong code = 0); - int RuntimeException(const char* msg = 0, const char* where = 0, ulong code = 0); - int BadAllocException(const char* msg = 0, const char* where = 0, ulong code = 0); - int NotSupportedException(const char* msg = 0, const char* where = 0, ulong code = 0); - int NotImplementedException(const char* msg = 0, const char* where = 0, ulong code = 0); - int InvalidParameterException(const char* msg = 0, const char* where = 0, ulong code = 0); - int SynchronizationException(const char* msg = 0, const char* where = 0, ulong code = 0); - int LogicalException(const char* msg = 0, const char* where = 0, ulong code = 0); - int AlgorithmException(const char* msg = 0, const char* where = 0, ulong code = 0); - int InvalidAlgorithmParameterException(const char* msg = 0, const char* where = 0, ulong code = 0); - int NoSuchAlgorithmException(const char* msg = 0, const char* where = 0, const char* algorithm); - int ArithmeticException(const char* msg = 0, const char* where = 0, ulong code = 0); - int CertificateException(const char* msg = 0, const char* where = 0, ulong code = 0); - int CertificateEncodingException(const char* msg = 0, const char* where = 0, ulong code = 0); - int CertificateExpiredException(const char* msg = 0, const char* where = 0, ulong code = 0); - int CertificateNotYetValidException(const char* msg = 0, const char* where = 0, ulong code = 0); - int CertificateParsingException(const char* msg = 0, const char* where = 0, ulong code = 0); - int KeyException(const char* msg = 0, const char* where = 0, ulong code = 0); - int InvalidKeyException(const char* msg = 0, const char* where = 0, ulong code = 0); - int KeyManagementException(const char* msg = 0, const char* where = 0, ulong code = 0); - int MessageDigestException(const char* msg = 0, const char* where = 0, ulong code = 0); - int PaddingException(const char* msg = 0, const char* where = 0, ulong code = 0); - int SignatureException(const char* msg = 0, const char* where = 0, ulong code = 0); - int EACException(const char* msg = 0, const char* where = 0, ulong code = 0); - int EACDataException(const char* msg = 0, const char* where = 0, ulong code = 0); - int EACMRZException(const char* msg = 0, const char* where = 0, ulong code = 0); - int EACCVCertException(const char* msg = 0, const char* where = 0, ulong code = 0); - int SmartcardException(const char* msg = 0, const char* where = 0, ulong code = 0); - int CardOutOfMemoryException(const char* msg = 0, const char* where = 0, ulong code = 0); - int InvalidPinException(const char* msg = 0, const char* where = 0, ulong code = 0); - int InvalidCardException(const char* msg = 0, const char* where = 0, ulong code = 0); - int InvalidAuthObjectException(const char* msg = 0, const char* where = 0, ulong code = 0); - int AuthProtocolException(const char* msg = 0, const char* where = 0, ulong code = 0); - int AuthConstrainedException(const char* msg = 0, const char* where = 0, ulong code = 0); - int SecureMessagingException(const char* msg = 0, const char* where = 0, ulong code = 0); - int SMWrapException(const char* msg = 0, const char* where = 0, ulong code = 0); - int SMUnwrapException(const char* msg = 0, const char* where = 0, ulong code = 0); - int SubsystemException(const char* msg = 0, const char* where = 0, ulong code = 0); - int NoSuchSubsystemException(const char* msg = 0, const char* where = 0, ulong code = 0); - -#endif // UNDER_CE_30 - -}// namespace act - -#endif // ACT_Exception_h diff --git a/actlibrary/SLES-10-i686/Release/include/actFactoryReg.h b/actlibrary/SLES-10-i686/Release/include/actFactoryReg.h deleted file mode 100644 index 175da36..0000000 --- a/actlibrary/SLES-10-i686/Release/include/actFactoryReg.h +++ /dev/null @@ -1,146 +0,0 @@ -// --------------------------------------------------------------------------- -// Name: actFactoryReg.h -// Product: cv act library -// Purpose: Templates for simple factory-registry implementation. -// -// Copyright: (c) 2008 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -// -// Autor: Markus Tesche -// Date: 06/02/2008 -// --------------------------------------------------------------------------- - -#ifndef ACT_FactoryReg_h -#define ACT_FactoryReg_h - -#include -#include - -namespace act -{ - // - // FactoryMapEntry<> - template - struct FactoryMapEntry - { - typedef char KeyType; - - struct KeyLessPredicate - : public std::binary_function - { - bool operator()(const KeyType* left, const KeyType* right) const - { - if(left == 0) return false; - if(right == 0) return true; - return strcmp(left, right) < 0; - } - }; - - typedef std::map - < const KeyType*, CreatePtrT, KeyLessPredicate - > MapType; - - static const KeyType* Empty; - - const KeyType* Name; - CreatePtrT createPtr; - }; - - template - const typename FactoryMapEntry::KeyType* - FactoryMapEntry::Empty = ""; - - - // - // FactoryReg<> - template - < - class ResultT, - class CreatePtrT, - class MapEntryT, - class MapT = typename MapEntryT::MapType - > - class FactoryReg - { - public: - typedef typename MapEntryT::KeyType KeyType; - typedef MapEntryT MapEntryType; - typedef MapT MapType; - - // Creates default ... - static ResultT* Create(const KeyType* name) - { - if(name == 0) name = MapEntryType::Empty; - typename MapType::const_iterator result(g_map.find(name)); - return result != g_map.end() ? result->second(name) : 0; - } - - template - static ResultT* Create(const KeyType* name, ParamT* param) - { - if(name == 0) name = MapEntryType::Empty; - typename MapType::const_iterator result(g_map.find(name)); - return result != g_map.end() ? result->second(name, param) : 0; - } - - template - static ResultT* Create(ParamT* param) { return Create(0, param); } - static ResultT* Create() { return Create(0); } - - static const KeyType* GetName(void* createptr) - { - if(createptr == 0) return 0; - for(typename MapType::const_iterator i(g_map.begin()), - end(g_map.end()); i != end; ++i) - if(i->second == createptr) - return i->first; - - return 0; - } - - static const KeyType* GetNextName(const KeyType* name) - { - if(name == 0) - return g_map.empty() == true ? 0 : g_map.begin()->first; - - typename MapType::const_iterator result(g_map.find(name)); - return result == g_map.end() || ++result == g_map.end() ? 0 : result->first; - } - - static CreatePtrT GetCreatePointer(const KeyType* name) - { - if(name != 0) - { - typename MapType::const_iterator result(g_map.find(name)); - return result != g_map.end() ? result->second : 0; - } - return 0; - } - - static void Insert(const KeyType* name, CreatePtrT createPtr) - { - std::pair - result(g_map.insert(typename MapType::value_type(name, createPtr))); - } - - static void Insert(const MapEntryType* entry) - { - while(entry->Name != 0) - { - Insert(entry->Name, entry->createPtr); - ++entry; - } - } - - protected: - static MapT g_map; - }; - - template - MapT FactoryReg::g_map; - -} // namespace act - -#endif // ACT_FactoryReg_h diff --git a/actlibrary/SLES-10-i686/Release/include/actHandle.h b/actlibrary/SLES-10-i686/Release/include/actHandle.h deleted file mode 100644 index fb01279..0000000 --- a/actlibrary/SLES-10-i686/Release/include/actHandle.h +++ /dev/null @@ -1,98 +0,0 @@ -////////////////////////////////////////////////////////////////////////// -// Name: actHandle.h -// Product: cv act library -// Purpose: Handle helper templates -// -// Copyright: (c) 2010 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -// -// Autor: Markus Tesche -// Date: 07/27/2010 -////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_Handle_h -#define ACT_Handle_h - -#include "actMove.h" -#include "actException.h" - -namespace act -{ - // - // Handle - class Handle - { - public: - virtual ~Handle() { /* essential */ } - - template TypeT* as() const; - template TypeT& requiredAs() const; - - template - friend inline TypeT& getPointer(const Handle& handle) - { - return handle.as(); - } - - template - friend inline TypeT& getRef(const Handle& handle) - { - return handle.requiredAs(); - } - }; - - // - // ValueHandle<> - template - class ValueHandle : public Handle - { - public: - typedef TypeT value_type; - - ValueHandle() : m_val() { } - explicit ValueHandle(const TypeT& other) : m_val(other) { } - - template - explicit ValueHandle(move_from other) : m_val() { other.move(m_val); } - - template void operator=(const O& other) { m_val = other; } - template void operator=(move_from other) { other.move(m_val); } - - inline TypeT& valueRef() const { return m_val; } - - inline operator TypeT&() const { return m_val; } - - inline TypeT& operator*() const { return m_val; } - inline TypeT* operator->() const { return &m_val; } - - private: - mutable TypeT m_val; - - private: - friend class Handle; - }; - - // - // Handle::as<> - template - inline TypeT* Handle::as() const - { - const ValueHandle* self = dynamic_cast*>(this); - return self != 0 ? &self->m_val : 0; - } - - // - // Handle::requiredAs<> - template - inline TypeT& Handle::requiredAs() const - { - TypeT* value = as(); - if(value != 0) return *value; - throw NullPointerException("invalid handle value type"); - } - -} // namespace act - -#endif // ACT_Handle_h diff --git a/actlibrary/SLES-10-i686/Release/include/actHashKit.h b/actlibrary/SLES-10-i686/Release/include/actHashKit.h deleted file mode 100644 index d2a817b..0000000 --- a/actlibrary/SLES-10-i686/Release/include/actHashKit.h +++ /dev/null @@ -1,32 +0,0 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actHashKit.h -// Product: cv act library -// Purpose: declaration of all factory functions -// -// Copyright: (c) 2000 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_HASHKIT_H -#define ACT_HASHKIT_H - -namespace act -{ - class IHashAlg; - IHashAlg* CreateMD2(); - IHashAlg* CreateMD4(); - IHashAlg* CreateMD5(); - IHashAlg* CreateRipemd128(); - IHashAlg* CreateRipemd160(); - IHashAlg* CreateSHA0(); - IHashAlg* CreateSHA1(); - IHashAlg* CreateSHA224(); - IHashAlg* CreateSHA256(); - IHashAlg* CreateSHA384(); - IHashAlg* CreateSHA512(); - IHashAlg* CreateDummyHash(); -} -#endif - diff --git a/actlibrary/SLES-10-i686/Release/include/actHashReg.h b/actlibrary/SLES-10-i686/Release/include/actHashReg.h deleted file mode 100644 index 896039d..0000000 --- a/actlibrary/SLES-10-i686/Release/include/actHashReg.h +++ /dev/null @@ -1,40 +0,0 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actHashReg.h -// Product: cv act library -// Purpose: registry for factory functions in actHashKit.h -// -// Copyright: (c) 2000 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_HashReg_H -#define ACT_HashReg_H - -namespace act -{ - class IHashAlg; - - typedef IHashAlg* (*CreateHashPtr)(); - - struct HashMapEntry - { - const char* Name; - CreateHashPtr CreatePtr; - }; - - class HashReg - { - public: - static IHashAlg* CreateHashAlg(const char* name); - static CreateHashPtr GetCreatePointer(const char* name); - static const char* GetName(void* createptr); - static const char* GetNextName(const char* name); - static void Insert(const char* name, CreateHashPtr createptr); - static void Insert(const HashMapEntry* hashmap); - }; - -} // namespace act - -#endif // ACT_HashReg_H diff --git a/actlibrary/SLES-10-i686/Release/include/actIAccessCondition.h b/actlibrary/SLES-10-i686/Release/include/actIAccessCondition.h deleted file mode 100644 index a6d9da3..0000000 --- a/actlibrary/SLES-10-i686/Release/include/actIAccessCondition.h +++ /dev/null @@ -1,163 +0,0 @@ -// --------------------------------------------------------------------------- -// Name: actIAccessConditions.h -// Product: cv act library -// Purpose: The IAccessCondition interface is used to map access conditions for -// Files, Keys etc. on specific smartcard's -// -// Copyright: (c) 2008 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -// -// Autor: Markus Tesche -// Date: 10/29/2008 -// --------------------------------------------------------------------------- - -#ifndef ACT_IAccessConditions_h -#define ACT_IAccessConditions_h - -#include "actBlob.h" -#include "actIRefCounted.h" - -namespace act -{ - class IToken; - class ISCardOS; - - enum - { - AC_AUTH_ID_MASK = 0x7f, - }; - - enum ACType - { - AC_TYPE_UNKNOWN = 0, - AC_TYPE_RAW = 1, // Already transformed for specific OS - AC_TYPE_GENERIC = 2 // OS independant, requires to be transformed before used - }; - - // SCard object specific rights by type - enum ACSCardObjType - { - // { AC_TOKEN_USER, AC_TOKEN_SO, AC_TOKEN_USER_OR_SO } - AC_OBJ_MAP = 0x00, // Used for access condition (f.e. tag 0x86) - AC_OBJREF_MAP = 0x01, // Used as object reference for access condition - - AC_RIGHTS_EF = 0x02, // Access Rights for EF's - AC_RIGHTS_DF = 0x03, // Access Rights for DF's - AC_RIGHTS_KEY = 0x04, // Access Rights for Key Objects - AC_RIGHTS_AUTH = 0x05, // Access Rights for Authentication Objects - // ... add additional types here - }; - - // SCard specific rights - enum ACSCard - { - AC_ALWAYS = 0x00, - // Any other from 0x01..0x7f - AC_NEVER = 0xff - }; - - // Token specific rights - enum ACToken - { - AC_TOKEN_USER = 0x80, - AC_TOKEN_SO = 0x81, - AC_TOKEN_USER_OR_SO = 0x82, - AC_TOKEN_USER_AND_SO = 0x83, - AC_TOKEN_ADMIN = 0x84, - - AC_TOKEN_FLAG = 0x80, - }; - - // AuthId Index - enum AIIndex - { - AI_INVALID = -1, - AI_USER = AC_TOKEN_USER & ~AC_TOKEN_FLAG, - AI_SO = AC_TOKEN_SO & ~AC_TOKEN_FLAG, - AI_USER_OR_SO = AC_TOKEN_USER_OR_SO & ~AC_TOKEN_FLAG, - AI_USER_AND_SO = AC_TOKEN_USER_AND_SO & ~AC_TOKEN_FLAG, - AI_ADMIN = AC_TOKEN_ADMIN & ~AC_TOKEN_FLAG, - }; - - enum ACOperation - { - AC_OR = 0x00, - AC_AND = 0x01, - }; - - enum ACMode - { - AC_MODE_READ = 0, - AC_MODE_UPDATE = 1, - AC_MODE_EXECUTE = 2, - AC_MODE_DELETE = 3, - }; - - enum ACRight - { - // Used for EF/DF - AC_READ = 0x00, - AC_WRITE = 0x01, - AC_UPDATE = 0x01, - AC_APPEND = 0x02, - AC_DEACTIVATE = 0x03, - AC_LOCK = 0x03, - AC_ACTIVATE = 0x04, - AC_UNLOCK = 0x04, - AC_DELETE = 0x05, - AC_ADMIN = 0x06, - AC_CREATE = 0x07, - AC_INCREASE = 0x08, - AC_DECREASE = 0x09, - AC_TERMINATE = 0x0a, - - // Used for Objects - AC_USE = 0x00, - AC_CHANGE = 0x01, - AC_UNBLOCK = 0x02, - AC_GENKEY = 0x07, - AC_SIGN = 0x08, - AC_DEC = 0x09, - AC_ENC = 0x0a, - }; - - enum ACRange - { - AC_FIRST = AC_READ, - AC_LAST = AC_ENC, - }; - - // - // IAccessCondition - class IAccessCondition : public IRefCounted - { - public: - virtual IAccessCondition* Clone() const = 0; - - virtual const char* GetName() const = 0; - virtual ACType GetAcType() const = 0; - - virtual Blob& GetAccessRights() = 0; - virtual const Blob& GetAccessRights() const = 0; - - virtual IAccessCondition* ConvertAc(const IToken* token, ACType acdest) const = 0; - }; - - // - // IAcConverter - class IAcConverter - { - protected: - virtual ~IAcConverter() { } - - public: - virtual IAccessCondition* ConvertAc(const IAccessCondition* ac, ACType acdest) const = 0; - virtual Blob ConvertAc(const IAccessCondition* ac) const = 0; - virtual IAccessCondition* ConvertAc(const Blob& ac) const = 0; - }; - -} // namespace act - -#endif // ACT_IAccessConditions_h diff --git a/actlibrary/SLES-10-i686/Release/include/actIAgreementKey.h b/actlibrary/SLES-10-i686/Release/include/actIAgreementKey.h deleted file mode 100644 index 7ff4ef1..0000000 --- a/actlibrary/SLES-10-i686/Release/include/actIAgreementKey.h +++ /dev/null @@ -1,32 +0,0 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actIAgreementKey.h -// Product: cv act library -// Purpose: The abstract class IAgreementKey derived from IKey is the -// interface to all key agreements. -// -// Copyright: (c) 2000 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_IAgreementKey_H -#define ACT_IAgreementKey_H - -#include "actIKey.h" - -namespace act -{ - class IDerivator; - - class IAgreementKey : public IKey - { - public: - virtual void SetDerivator(IDerivator* derivator) = 0; - virtual const IDerivator* GetDerivator() const = 0; - virtual IDerivator* GetDerivator() = 0; - }; - -} // namespace act - -#endif // ACT_IAgreementKey_H diff --git a/actlibrary/SLES-10-i686/Release/include/actIAlgorithm.h b/actlibrary/SLES-10-i686/Release/include/actIAlgorithm.h deleted file mode 100644 index 23cdb2c..0000000 --- a/actlibrary/SLES-10-i686/Release/include/actIAlgorithm.h +++ /dev/null @@ -1,38 +0,0 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actIAlgorithm.h -// Product: cv act library -// Purpose: IAlgorithm is an abstract base. All concrete algorithm-classes are -// derived from IAlgorithm. -// -// Copyright: (c) 2000 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_IAlgorithm_h -#define ACT_IAlgorithm_h - -#include "actBasics.h" - -namespace act -{ - class Blob; - - class IAlgorithm - { - public: - virtual ~IAlgorithm() { } - - virtual void Write(const Blob& input) = 0; - virtual void Write(const byte* input, size_t insize) = 0; - virtual void Finalize() = 0; - virtual size_t GetAvailableSize() const = 0; - virtual size_t Read(Blob& output, size_t max = 0) = 0; - virtual size_t Read(byte* outbuffer, size_t buffersize) = 0; - virtual status_t GetStatus() const = 0; - }; - -} // namespace act - -#endif // ACT_IAlgorithm_h diff --git a/actlibrary/SLES-10-i686/Release/include/actIBlockCipher.h b/actlibrary/SLES-10-i686/Release/include/actIBlockCipher.h deleted file mode 100644 index 10338cd..0000000 --- a/actlibrary/SLES-10-i686/Release/include/actIBlockCipher.h +++ /dev/null @@ -1,53 +0,0 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actIBlockCipher.h -// Product: cv act library -// Purpose: The class IBlockCipher creates the symmetric BlockCypher, which is -// defined by IBockCipherKey and IBlockCipherMode. It offers operations -// like encrypt, decrypt and queries involving validity or keylength etc. -// -// Copyright: (c) 2000 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_IBlockCipher_h -#define ACT_IBlockCipher_h - -#include "actBasics.h" -#include - -namespace act -{ - - class Blob; - - class IBlockCipher - { - public: - virtual IBlockCipher* Clone() const =0; - virtual void Import( const Blob& indata ) =0; - virtual void Export( Blob& outdata ) const =0; - - virtual void SetRawKey( const Blob& keyblob ) =0; - virtual void GetRawKey( Blob& keyblob ) const =0; - - virtual void Encrypt(const byte* in,byte* out) const =0; - virtual void Decrypt(const byte* in,byte* out) const =0; - - virtual size_t GetKeySize(size_t keysize=0) const =0; - virtual size_t GetMinKeySize() const =0; - virtual size_t GetMaxKeySize() const =0; - virtual size_t GetNextKeySize(size_t prevsize) const =0; - virtual size_t GetBlockSize() const =0; - - virtual void* GetCreatePointer() const =0; - - virtual ~IBlockCipher() {}; - }; - - -}// namespace act - -#endif - diff --git a/actlibrary/SLES-10-i686/Release/include/actIBlockCipherKey.h b/actlibrary/SLES-10-i686/Release/include/actIBlockCipherKey.h deleted file mode 100644 index 3b93cd7..0000000 --- a/actlibrary/SLES-10-i686/Release/include/actIBlockCipherKey.h +++ /dev/null @@ -1,48 +0,0 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actIBlockCipherKey.h -// Product: cv act library -// Purpose: The class IBlockCipherKey extends the interface of the class IKey -// and supports the peculiarities of symmetric keys. -// -// -// Copyright: (c) 2000 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_IBlockCipherKey_h -#define ACT_IBlockCipherKey_h - -#include "actIKey.h" - -namespace act -{ - class IPadding; - class IBlockCipher; - class IBlockCipherMode; - class IDerivator; - - class IBlockCipherKey : public IKey - { - public: - virtual void SetPadding(IPadding* padding) = 0; - virtual const IPadding* GetPadding() const = 0; - virtual IPadding* GetPadding() = 0; - - virtual void SetCipher(IBlockCipher* cipher) = 0; - virtual const IBlockCipher* GetCipher() const = 0; - virtual IBlockCipher* GetCipher() = 0; - - virtual void SetMode(IBlockCipherMode* mode) = 0; - virtual const IBlockCipherMode* GetMode() const = 0; - virtual IBlockCipherMode* GetMode() = 0; - - virtual void SetDerivator(IDerivator* derive) = 0; - virtual const IDerivator* GetDerivator() const = 0; - virtual IDerivator* GetDerivator() = 0; - }; - -} //namespace act - -#endif // ACT_IBlockCipherKey_h diff --git a/actlibrary/SLES-10-i686/Release/include/actIBlockCipherMode.h b/actlibrary/SLES-10-i686/Release/include/actIBlockCipherMode.h deleted file mode 100644 index c6f5267..0000000 --- a/actlibrary/SLES-10-i686/Release/include/actIBlockCipherMode.h +++ /dev/null @@ -1,45 +0,0 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actIBlockCipherMode.h -// Product: cv act library -// Purpose: By using this interface every blockcipher-algorithm can be run in -// the modes CBC or ECB. Other modes e.g. OFB or CFB are supported. -// -// Copyright: (c) 2000 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_IBlockCipherMode_h -#define ACT_IBlockCipherMode_h - -#include "actBasics.h" - -namespace act -{ - class IBlockCipher; - class IAlgorithm; - class IPadding; - class Blob; - - class IBlockCipherMode - { - public: - virtual IBlockCipherMode* Clone() const =0; - virtual void Import(const Blob& indata) =0; - virtual void Export(Blob& outdata) const =0; - virtual void SetParam(paramid_t id, const Blob &blob) =0; - virtual void SetParam(paramid_t id, int val) =0; - virtual void SetParam(paramid_t id, const char* cstr) =0; - virtual int GetParam(paramid_t) const =0; - virtual void GetParam(paramid_t, Blob &blob) const =0; - virtual IAlgorithm* CreateEncAlgorithm(IBlockCipher* cipher, IPadding* padding, const Blob& iv) const=0; - virtual IAlgorithm* CreateDecAlgorithm(IBlockCipher* cipher, IPadding* padding) const=0; - virtual void* GetCreatePointer() const=0; - virtual ~IBlockCipherMode() {} - }; -} // namespace act - -#endif - - diff --git a/actlibrary/SLES-10-i686/Release/include/actICBCMACKey.h b/actlibrary/SLES-10-i686/Release/include/actICBCMACKey.h deleted file mode 100644 index d8dbe6c..0000000 --- a/actlibrary/SLES-10-i686/Release/include/actICBCMACKey.h +++ /dev/null @@ -1,31 +0,0 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actICBCMACKey.h -// Product: cv act library -// Purpose: interface for the class CBCMAC. -// -// Copyright: (c) 2000 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_ICBCMACKey_h -#define ACT_ICBCMACKey_h - -#include "actIMACKey.h" - -namespace act -{ - class IBlockCipher; - - class ICBCMACKey : public IMACKey - { - public: - virtual void SetCipher(IBlockCipher* cipher) = 0; - virtual const IBlockCipher* GetCipher() const = 0; - virtual IBlockCipher* GetCipher() = 0; - }; - -} // namespace act - -#endif // ACT_ICBCMACKey_h diff --git a/actlibrary/SLES-10-i686/Release/include/actICRL.h b/actlibrary/SLES-10-i686/Release/include/actICRL.h deleted file mode 100644 index 2bb598b..0000000 --- a/actlibrary/SLES-10-i686/Release/include/actICRL.h +++ /dev/null @@ -1,51 +0,0 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actICRL.h -// Product: cv act library -// Purpose: The abstract class ICRL (Certificate Revocation List) can be used -// to check whether a certificate has been revoked. -// -// Copyright: (c) 2000 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_ICRL_h -#define ACT_ICRL_h - -namespace act -{ - class IKey; - class ICertificate; - class Blob; - - class ICRL - { - public: - - virtual ICRL* Clone() const=0; - virtual void Import(const Blob& crlblob)=0; - virtual void Export(Blob& crlblob) const =0; - virtual void SetParam(paramid_t id,const Blob& blob) =0; - virtual void SetParam(paramid_t id,int val) =0; - virtual void SetParam(paramid_t id,const char* cstr) =0; - virtual void GetParam(paramid_t id,Blob& blob) const =0; - virtual int GetParam(paramid_t) const =0; - - virtual void Revoke(const ICertificate* cert) =0; - virtual bool IsRevoked(const ICertificate* Cert) const =0; - virtual void RemoveRevokation(const ICertificate* cert) =0; - - virtual void Revoke(const Blob& blob) = 0; - virtual bool IsRevoked(const Blob& blob) const = 0; - virtual void RemoveRevokation(const Blob& blob) = 0; - - virtual void Sign(const IKey* privkey) =0; - virtual int Verify(const IKey* pubkey) const =0; - virtual void* GetCreatePointer() const=0; - virtual ~ICRL() {}; - }; -} // namespace act - -#endif - diff --git a/actlibrary/SLES-10-i686/Release/include/actICertificate.h b/actlibrary/SLES-10-i686/Release/include/actICertificate.h deleted file mode 100644 index eadfe0b..0000000 --- a/actlibrary/SLES-10-i686/Release/include/actICertificate.h +++ /dev/null @@ -1,44 +0,0 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actICertificate.h -// Product: cv act library -// Purpose: The abstract class ICertificate enables access to a certificate, e.g. -// its public key and the corresponding validity. -// -// Copyright: (c) 2000 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_ICertificate_h -#define ACT_ICertificate_h - -#include "actBasics.h" -#include "actIParam.h" - -namespace act -{ - class IKey; - class Blob; - - class ICertificate : public IParam - { - public: - virtual ~ICertificate() { }; - - virtual ICertificate* Clone() const = 0; - virtual void Import(const Blob& certblob) = 0; - virtual void Export(Blob& certblob) const = 0; - - virtual void SetPublicKey(const IKey* pubkey) = 0; - virtual IKey* CreatePublicKey(const char* = 0) const = 0; - - virtual void Sign(const IKey* privkey) = 0; - virtual int Verify(const IKey* pubkey) const = 0; - - virtual void* GetCreatePointer() const = 0; - }; - -} // namespace act - -#endif // ACT_ICertificate_h diff --git a/actlibrary/SLES-10-i686/Release/include/actIDerivator.h b/actlibrary/SLES-10-i686/Release/include/actIDerivator.h deleted file mode 100644 index e8b7140..0000000 --- a/actlibrary/SLES-10-i686/Release/include/actIDerivator.h +++ /dev/null @@ -1,45 +0,0 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actIDerivator.h -// Product: cv act library -// Purpose: This interface provides a shared secret key (the last step in -// a Key Agreement Scheme). -// -// Copyright: (c) 2006 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_IDerivator_h -#define ACT_IDerivator_h - -#include"actBasics.h" - -namespace act -{ - class Blob; - - class IDerivator - { - public: - virtual IDerivator* Clone() const=0; - - virtual void Import(const Blob &blob)=0; - virtual void Export(Blob &blob) const=0; - - virtual void SetParam(paramid_t id,const Blob &blob)=0; - virtual void SetParam(paramid_t id,int val)=0; - virtual void SetParam(paramid_t id,const char* cstr)=0; - virtual void GetParam(paramid_t id,Blob &blob) const=0; - virtual int GetParam(paramid_t) const=0; - - virtual void Derive(const Blob& secret, const Blob& salt, Blob& keymat) const=0; - - virtual void* GetCreatePointer() const =0; - virtual ~IDerivator() {} - }; -} // namespace act - -#endif - - diff --git a/actlibrary/SLES-10-i686/Release/include/actIDerivatorWithHash.h b/actlibrary/SLES-10-i686/Release/include/actIDerivatorWithHash.h deleted file mode 100644 index b1bdaf9..0000000 --- a/actlibrary/SLES-10-i686/Release/include/actIDerivatorWithHash.h +++ /dev/null @@ -1,33 +0,0 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actIDerivatorWithHash.h -// Product: cv act library -// Purpose: The abstract class IDerivatorWithHash is derived from IDerivator and -// uses hash algorithms. -// -// Copyright: (c) 2000 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_IDerivatorWithHash_h -#define ACT_IDerivatorWithHash_h - -#include "actIDerivator.h" - -namespace act -{ - class IHashAlg; - - class IDerivatorWithHash : public IDerivator - { - public: - virtual void SetHash(IHashAlg* hash) =0; - virtual const IHashAlg* GetHash() const =0; - virtual IHashAlg* GetHash() =0; - }; -} // namespace act - -#endif - - diff --git a/actlibrary/SLES-10-i686/Release/include/actIEMSAAlg.h b/actlibrary/SLES-10-i686/Release/include/actIEMSAAlg.h deleted file mode 100644 index 0aaec1d..0000000 --- a/actlibrary/SLES-10-i686/Release/include/actIEMSAAlg.h +++ /dev/null @@ -1,49 +0,0 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actIEMSAAlg.h -// Product: cv act library -// Purpose: IEMSAAlg (Encoding Methods for Signatures with Appendix) is an -// abstract class derived from IAlgorithm. Encoding methods do not -// use keys. These algorithms prepare the data to sign. They can be -// implemented with or without hash functions. -// -// Copyright: (c) 2000 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_IEMSAAlg_h -#define ACT_IEMSAAlg_h - -#include "actBasics.h" -#include "actIAlgorithm.h" - -namespace act -{ - - class IEMSAAlg : public IAlgorithm - { - public: - virtual IEMSAAlg* Clone() const =0; - - virtual void Import(const Blob &blob) =0; - virtual void Export(Blob &blob) const =0; - virtual void SetParam(paramid_t id,const Blob &blob) =0; - virtual void SetParam(paramid_t id,int val) =0; - virtual void SetParam(paramid_t id,const char* cstr) =0; - virtual void GetParam(paramid_t id,Blob &blob) const =0; - virtual int GetParam(paramid_t) const =0; - - virtual void Reset(size_t sizeinbits) =0; - - virtual void* GetCreatePointer() const =0; - - virtual bool Verify(const Blob &em, const Blob &sig_inv) =0; - - virtual ~IEMSAAlg(){} - }; -} // namespace act - -#endif - - diff --git a/actlibrary/SLES-10-i686/Release/include/actIEMSAWithHashAlg.h b/actlibrary/SLES-10-i686/Release/include/actIEMSAWithHashAlg.h deleted file mode 100644 index 9a928c1..0000000 --- a/actlibrary/SLES-10-i686/Release/include/actIEMSAWithHashAlg.h +++ /dev/null @@ -1,34 +0,0 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actIEMSAWithHashAlg.h -// Product: cv act library -// Purpose: IEMSAWithHashAlg is the abstract class derived from IEMSAAlg -// which provides access on the aggregated hashobject of an -// EMSA-object. -// -// Copyright: (c) 2000 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_IEMSAWithHashAlg_h -#define ACT_IEMSAWithHashAlg_h - -#include "actIEMSAAlg.h" - -namespace act -{ - class IHashAlg; - - class IEMSAWithHashAlg : public IEMSAAlg - { - public: - virtual void SetHash(IHashAlg* hash) =0; - virtual const IHashAlg* GetHash() const =0; - virtual IHashAlg* GetHash() =0; - }; -} // namespace act - -#endif - - diff --git a/actlibrary/SLES-10-i686/Release/include/actIEventHandler.h b/actlibrary/SLES-10-i686/Release/include/actIEventHandler.h deleted file mode 100644 index 115662f..0000000 --- a/actlibrary/SLES-10-i686/Release/include/actIEventHandler.h +++ /dev/null @@ -1,54 +0,0 @@ -// --------------------------------------------------------------------------- -// Name: actIEventHandler.h -// Product: cv act library -// Purpose: Interfaces required to receive token, slot or subsystem events -// -// Copyright: (c) 2002 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -// -// Autor: Dr. Xiangdong Wang (XWG) -// Markus Tesche -// Date: 03/26/2002 -// --------------------------------------------------------------------------- - -#ifndef ACT_IEventHandler_h -#define ACT_IEventHandler_h - -#include "actTypeTags.h" -#include "actIRefCounted.h" - -namespace act -{ - enum EventCode - { - TOKEN_REMOVED = 0x00000010, - TOKEN_INSERTED = 0x00000020, - SLOT_REMOVED = 0x00000040, - SLOT_INSERTED = 0x00000080, - SUBSYSTEM_STOPPED = 0x00000100, - SUBSYSTEM_STARTED = 0x00000200, - MONITORING_STOPPED = 0x00000400, - MONITORING_STARTED = 0x00000800, - MONITORING_ERROR = 0x80000000, - }; - - class ISubsystem; - class IEventMonitoring; - - // - // IEventHandler - class IEventHandler : public IRefCounted - { - public: - virtual IEventHandler* Clone() = 0; - virtual void Source(IEventMonitoring* source) = 0; - virtual void OnEvent(int event, ISubsystem* source) = 0; - }; - - typedef TypeTag TagEH; - -} // namespace act - -#endif // ACT_IEventHandler_h diff --git a/actlibrary/SLES-10-i686/Release/include/actIEventMonitoring.h b/actlibrary/SLES-10-i686/Release/include/actIEventMonitoring.h deleted file mode 100644 index 0aee7db..0000000 --- a/actlibrary/SLES-10-i686/Release/include/actIEventMonitoring.h +++ /dev/null @@ -1,36 +0,0 @@ -// --------------------------------------------------------------------------- -// Name: actIEventMonitoring.h -// Product: cv act library -// Purpose: Interface for event monitoring enabled objects. -// -// Copyright: (c) 2010 cv cryptovision GmbH -// all rights reserved. -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -// -// Autor: Markus Tesche (MTE) -// Date: 08/20/2010 -// --------------------------------------------------------------------------- - -#ifndef ACT_IEventMonitoring_h -#define ACT_IEventMonitoring_h - -namespace act -{ - class IEventHandler; - - // - // IEventMonitoring - class IEventMonitoring - { - public: - virtual ~IEventMonitoring() { } - - virtual bool IsMonitored() const = 0; - virtual void StopMonitor(bool force = false) = 0; - virtual void StartMonitor(IEventHandler* cmd) = 0; - }; - -} // namespace act - -#endif // ACT_IEventMonitoring_h diff --git a/actlibrary/SLES-10-i686/Release/include/actIHashAlg.h b/actlibrary/SLES-10-i686/Release/include/actIHashAlg.h deleted file mode 100644 index 8620c51..0000000 --- a/actlibrary/SLES-10-i686/Release/include/actIHashAlg.h +++ /dev/null @@ -1,42 +0,0 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actIHashAlg.h -// Product: cv act library -// Purpose: IHashAlg is an abstract base class, which provides the interface -// of all hash-algorithms. -// -// Copyright: (c) 2000 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_IHASHALG_H -#define ACT_IHASHALG_H - -#include "actIAlgorithm.h" - -namespace act -{ - - class IHashAlg : public IAlgorithm - { - public: - virtual IHashAlg* Clone() const =0; - virtual void Import(const Blob& indata) =0; - virtual void Export(Blob& outdata) const =0; - virtual void SetParam(paramid_t id,const Blob &blob) =0; - virtual void SetParam(paramid_t id,int val) =0; - virtual void SetParam(paramid_t id,const char* cstr) =0; - virtual void GetParam(paramid_t id,Blob &blob) const =0; - virtual int GetParam(paramid_t) const =0; - virtual size_t GetBlockSize() const = 0; - virtual size_t GetHashSize() const = 0; - virtual void Reset() =0; - virtual void* GetCreatePointer() const =0; - virtual ~IHashAlg() {} - }; - -} // namespace act -#endif - - diff --git a/actlibrary/SLES-10-i686/Release/include/actIHashMACKey.h b/actlibrary/SLES-10-i686/Release/include/actIHashMACKey.h deleted file mode 100644 index 29719fe..0000000 --- a/actlibrary/SLES-10-i686/Release/include/actIHashMACKey.h +++ /dev/null @@ -1,32 +0,0 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actIHashMacKey.h -// Product: cv act library -// Purpose: interface for the class HashMAC -// -// Copyright: (c) 2000 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_IHashMACKey_h -#define ACT_IHashMACKey_h - -#include "actIMACKey.h" - -namespace act -{ - class IHashAlg; - - class IHashMACKey : public IMACKey - { - public: - virtual void SetHash(IHashAlg* cipher) =0; - virtual const IHashAlg* GetHash() const =0; - virtual IHashAlg* GetHash() =0; - }; - -} // namespace act - -#endif - diff --git a/actlibrary/SLES-10-i686/Release/include/actIIESKey.h b/actlibrary/SLES-10-i686/Release/include/actIIESKey.h deleted file mode 100644 index e54a7f4..0000000 --- a/actlibrary/SLES-10-i686/Release/include/actIIESKey.h +++ /dev/null @@ -1,35 +0,0 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actIIESKey.h -// Product: cv act library -// Purpose: The interface IIESKey enables access to the aggregated objects of -// an IES-key, like DL-IES or EC-IES. -// -// Copyright: (c) 2000 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_IIESKey_H -#define ACT_IIESKey_H - -#include "actIKey.h" - -namespace act -{ - class IAgreementKey; - class IMACKey; - - class IIESKey : public IKey - { - public: - virtual void SetMAC(IMACKey* mac) =0; - virtual const IMACKey* GetMAC() const =0; - virtual IMACKey* GetMAC() =0; - virtual void SetAgreement(IAgreementKey* derivator) =0; - virtual const IAgreementKey* GetAgreement() const =0; - virtual IAgreementKey* GetAgreement() =0; - }; -} // act -#endif - diff --git a/actlibrary/SLES-10-i686/Release/include/actIKey.h b/actlibrary/SLES-10-i686/Release/include/actIKey.h deleted file mode 100644 index 3ed1a9e..0000000 --- a/actlibrary/SLES-10-i686/Release/include/actIKey.h +++ /dev/null @@ -1,45 +0,0 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actIKey.h -// Product: cv act library -// Purpose: IKey is an abstract base class. All concrete Key-classes are -// derived from IKey. -// -// Copyright: (c) 2000 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_IKey_h -#define ACT_IKey_h - -#include "actIParam.h" -#include "actBlob.h" - -namespace act -{ - class IAlgorithm; - class IRNGAlg; - - class IKey : public IParam - { - public: - virtual ~IKey() { } - - virtual IKey* Clone() const = 0; - - virtual void Import(const Blob& keyblob) = 0; - virtual void Export(Blob& keyblob, export_t type = DEFAULT) const = 0; - - virtual void Generate(IRNGAlg* prng = 0) = 0; - virtual void Derive(const Blob& data, const Blob& salt = Blob()) = 0; - - virtual IAlgorithm* CreateAlgorithm(mode_t Mode) const = 0; - virtual IAlgorithm* CreateAlgorithm(mode_t Mode, const Blob& data) const = 0; - - virtual void* GetCreatePointer() const = 0; - }; - -} // namespace act - -#endif // ACT_IKey_h diff --git a/actlibrary/SLES-10-i686/Release/include/actIKeyDerivation.h b/actlibrary/SLES-10-i686/Release/include/actIKeyDerivation.h deleted file mode 100644 index f8909eb..0000000 --- a/actlibrary/SLES-10-i686/Release/include/actIKeyDerivation.h +++ /dev/null @@ -1,70 +0,0 @@ -// --------------------------------------------------------------------------- -// Name: actIKeyDerivation.h -// Product: cv act library -// Purpose: IKeyDerivation for general prupose -// -// Copyright: (c) 2003-2010 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -// -// Autor: Ulrich Birkenhauer -// Markus Tesche -// Date: 07/05/2010 -// --------------------------------------------------------------------------- - -#ifndef ACT_IKeyDerivation_h -#define ACT_IKeyDerivation_h - -#include "actMove.h" -#include "actMode.h" - -#include "actIParam.h" -#include "actIRefCounted.h" - -namespace act -{ - enum KDParam - { - KD_DATA = SALT, - KD_HASH = HASH, - KD_SERIAL = SERIALNR, - KD_DERIVATOR = DERIVATOR, - KD_MODE = BCMODE, // key configuration - KD_PADDING = PADDING, // key configuration - }; - - enum KDMode - { - KD_MODE_DEFAULT = 0, - KD_MODE_CARD_MANAGER, - - KD_MODE_LAST - }; - - class IKeyDerivation; - class IBlockCipherKey; - - typedef void (*DerivationFunc)(IKeyDerivation* owner, const Blob& data, - Blob& k_enc, Blob& k_mac, Blob& k_kek); - - // - // IKeyDerivation - class IKeyDerivation - : public IParam - , public IRefCounted - { - public: - virtual Blob Derive(const Blob& deriveData) = 0; - virtual void Derive(uint mode, const Blob& data, Blob& k_enc, Blob& k_mac) = 0; - virtual void Derive(uint mode, const Blob& data, Blob& k_enc, Blob& k_mac, Blob& k_kek) = 0; - - virtual void SetKey(IBlockCipherKey* key) = 0; - // - // If mode already registered, it will be overwritten and the previous will be returned. - virtual DerivationFunc Register(uint mode, DerivationFunc df) = 0; - }; - -} // namespace act - -#endif // ACT_IKeyDerivation_h diff --git a/actlibrary/SLES-10-i686/Release/include/actIKeyFactory.h b/actlibrary/SLES-10-i686/Release/include/actIKeyFactory.h deleted file mode 100644 index 711d883..0000000 --- a/actlibrary/SLES-10-i686/Release/include/actIKeyFactory.h +++ /dev/null @@ -1,48 +0,0 @@ -// --------------------------------------------------------------------------- -// Name: actIKeyFactory.h -// Product: cv act library -// Purpose: IKeyFactory and IKeyFactoryChain interface -// -// Copyright: (c) 2008 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -// -// Autor: Markus Tesche -// Date: 05/18/2008 -// --------------------------------------------------------------------------- - -#ifndef ACT_IKeyFactory_h -#define ACT_IKeyFactory_h - -#include "actTokenBase.h" - -namespace act -{ - class ITokenKey; - class ITokenBlockCipher; - class ITokenBlockCipherKey; - - class IKeyFactory - { - protected: - virtual ~IKeyFactory() - { } - - public: - virtual ITokenKey* CreateKey(int type, FileInfo& fi, int usage, bool cleartoken) = 0; - - virtual ITokenBlockCipher* CreateBlockCipher(FileInfo& fi) = 0; - virtual ITokenBlockCipherKey* CreateBlockCipherKey(ITokenBlockCipher* cipher, bool cleartoken) = 0; - virtual ITokenBlockCipherKey* CreateBlockCipherAndKey(FileInfo& fi, bool cleartoken) = 0; - }; - - class IKeyFactoryChain : public IKeyFactory - { - public: - virtual void SetNext(IKeyFactoryChain* next) = 0; - }; - -} // namespace act - -#endif // ACT_IKeyFactory_h diff --git a/actlibrary/SLES-10-i686/Release/include/actIMACKey.h b/actlibrary/SLES-10-i686/Release/include/actIMACKey.h deleted file mode 100644 index b630e74..0000000 --- a/actlibrary/SLES-10-i686/Release/include/actIMACKey.h +++ /dev/null @@ -1,27 +0,0 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actIMACKEY.h -// Product: cv act library -// Purpose: interface for the class CBCMAC -// -// Copyright: (c) 2000 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_IMACKey_h -#define ACT_IMACKey_h - -#include "actIKey.h" - -namespace act -{ - class IMACKey : public IKey - { - public: - virtual const char* KeyName() const = 0; - }; - -} // namespace act - -#endif // ACT_IMACKey_h diff --git a/actlibrary/SLES-10-i686/Release/include/actIPKCS15Behavior.h b/actlibrary/SLES-10-i686/Release/include/actIPKCS15Behavior.h deleted file mode 100644 index 174cd51..0000000 --- a/actlibrary/SLES-10-i686/Release/include/actIPKCS15Behavior.h +++ /dev/null @@ -1,89 +0,0 @@ -// --------------------------------------------------------------------------- -// Name: actIPKCS15Behavior.h -// Product: cv act library -// Purpose: IPKCS15Behavior interface, encapsulates Manufacturer specific logic -// for PKCS15 to cvProfile mapping. -// -// Copyright: (c) 2002-2008 cv cryptovision GmbH all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -// -// Autor: Markus Tesche -// Date: 06/02/2008 -// --------------------------------------------------------------------------- - -#ifndef ACT_IPKCS15Behavior_h -#define ACT_IPKCS15Behavior_h - -#include "actISCardOSBehavior.h" - -#include "cvProfileInfos.h" - -namespace act -{ - class IAuthIdRef; - - class IToken; - class ITokenPIN; - class ITokenKey; - class ITokenFile; - class ITokenFileMap; - class ISecurityManager; - class ITokenBlockCipherKey; - - class PKCS15Container; - struct PKCS15Path; - struct PKCS15Object; - - // - // IPKCS15Behavior - class IPKCS15Behavior : public ISCardOSBehavior - { - public: - virtual void Init(IToken* token) = 0; - - virtual int GetTokenType(const IToken* token) const throw() = 0; - virtual void GetProfileCapabilities(ITokenConfig* tkcfg) const = 0; - - virtual bool IsReadOnly() const = 0; - virtual const Blob& GetMID() const = 0; - - // Returns a valid instance or throws ! - virtual ITokenFile* GetPath() const = 0; - virtual ITokenFile* GetTokenFile(const Blob& p15path) = 0; - virtual ITokenFile* GetTokenFile(const PKCS15Path& p15path) = 0; - - virtual ITokenPIN* GetPin(IToken* token, const PKCS15Object& p15object, bool use_obj_ref = false) = 0; - - // NOTE: If one of these functions return false, the object gets destroyed - // and is not added to the corresponding collection, therefore not accessable! - virtual bool InitTokenPIN(ITokenPIN* pin, const PKCS15Object& p15object) = 0; - virtual bool InitTokenKey(ITokenKey* key, const FileInfo& fi, int usage, const PKCS15Object& p15object) = 0; - virtual bool InitTokenKey(ITokenBlockCipherKey* key, const FileInfo& fi, const PKCS15Object& p15object) = 0; - - virtual FIDType GetFirstFID(byte obj_type, size_t key_size = 0) const = 0; - virtual void GetObjectInfo(FIDType fid, Blob& object_path, byte* obj_ref, byte obj_type, size_t key_size = 0) const = 0; - - virtual FIDType TransformKeyReference(FIDType id, bool to_on_card_reference = false, bool* bReference = 0) const = 0; - - virtual FIDType GetNativeFID(byte obj_type, const FIDType fid, byte object_reference = 0) const = 0; - - virtual void GetRelativeFilePath(Blob& absolute_filepath) const = 0; - - virtual const Blob& GetACTokenRights() const = 0; - virtual Blob GetAccessRights(const ITokenPIN* pin, byte obj_type) const = 0; - virtual Blob GetAccessRights(IAuthIdRef* authIdRef, IAuthIdRef* parentAuthIdRef, byte obj_type) const = 0; - - virtual ISecurityManager* SecurityManager(IToken* token, int authManagerType) const = 0; - virtual void CreateAuthObj(ITokenPIN* pin, byte obj_type) const = 0; - - virtual bool GetNativePubKeySupport() const = 0; - virtual Blob ReadNativePublicKey(ISCardOS* os, FIDType fid) const = 0; - virtual Blob ReadNativeECPublicKey(ISCardOS* os, FIDType fid) const = 0; - virtual FIDType GetNativePubKeyInfo(FIDType priv_key_fid, const PublicKeyInfo& info, - PKCS15Object& p15object) const = 0; - }; - -} // namespace act - -#endif // ACT_IPKCS15Behavior_h diff --git a/actlibrary/SLES-10-i686/Release/include/actIPadding.h b/actlibrary/SLES-10-i686/Release/include/actIPadding.h deleted file mode 100644 index c916e21..0000000 --- a/actlibrary/SLES-10-i686/Release/include/actIPadding.h +++ /dev/null @@ -1,47 +0,0 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actIPadding.h -// Product: cv act library -// Purpose: With the abstract class IPadding input data can be filled to obtain -// a certain length and also to invert this process. E.g. PKCS1-v1_5 is -// a padding. -// -// Copyright: (c) 2000 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_IPadding_h -#define ACT_IPadding_h -#include "actBasics.h" - -namespace act -{ - - class Blob; - - class IPadding - { - public: - - virtual IPadding* Clone() const=0; - - virtual void Import(const Blob& indata) =0; - virtual void Export(Blob& outdata) const =0; - virtual void SetParam(paramid_t id,const Blob &blob) =0; - virtual void SetParam(paramid_t id,int val) =0; - virtual void SetParam(paramid_t id,const char* cstr) =0; - virtual void GetParam(paramid_t id,Blob &blob) const =0; - virtual int GetParam(paramid_t) const =0; - - virtual void Pad(Blob& Buffer, size_t len) const =0; - virtual size_t Unpad(Blob& Buffer) const =0; - - virtual void* GetCreatePointer() const =0; - virtual ~IPadding() {} - }; - - -} //namespace act -#endif - diff --git a/actlibrary/SLES-10-i686/Release/include/actIParam.h b/actlibrary/SLES-10-i686/Release/include/actIParam.h deleted file mode 100644 index ee8d26b..0000000 --- a/actlibrary/SLES-10-i686/Release/include/actIParam.h +++ /dev/null @@ -1,67 +0,0 @@ -// --------------------------------------------------------------------------- -// Name: actIParam.h -// Product: cv act library -// Purpose: Declares act::IParam interface. -// -// Copyright: (c) 2006 cv cryptovision GmbH -// all rights reserved. -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -// -// Autor: Markus Tesche (MTE) -// Date: 3/1/2006 -// --------------------------------------------------------------------------- - -#ifndef ACT_IParam_h -#define ACT_IParam_h - -#include "actBasics.h" - -namespace act -{ - class Blob; - - enum - { - PARAM_ANY = -3, - PARAM_UNKNOWN_SIZE = -2, - PARAM_INVALID_VALUE = -1, - PARAM_FALSE = 0, - PARAM_TRUE = 1 - }; - - static inline int param_bool(bool value) - { - return value == true ? PARAM_TRUE : PARAM_FALSE; - } - - // - // IParam - class IParam - { - public: - virtual ~IParam() { } - - virtual void SetParam(paramid_t id, int value) = 0; - virtual void SetParam(paramid_t id, const char* value) = 0; - virtual void SetParam(paramid_t id, const Blob& value) = 0; - - // - // Get value for id, otherwise PARAM_INVALID_VALUE. - // NOTE: May throws an act::Exception derived exception. - virtual int GetParam(paramid_t id) const = 0; - - // - // Get value for id, returns size[PARAM_UNKNOWN_SIZE|0-n] or PARAM_INVALID_VALUE. - // NOTE: May throws an act::Exception derived exception. - virtual size_t GetParam(paramid_t id, const char** value) const = 0; - - // - // Get value for id, returns size[PARAM_UNKNOWN_SIZE|0-n] or PARAM_INVALID_VALUE. - // NOTE: May throws an act::Exception derived exception. - virtual size_t GetParam(paramid_t id, Blob& value) const = 0; - }; - -} // namespace act - -#endif // ACT_IParam_h diff --git a/actlibrary/SLES-10-i686/Release/include/actIRNGAlg.h b/actlibrary/SLES-10-i686/Release/include/actIRNGAlg.h deleted file mode 100644 index 521be1d..0000000 --- a/actlibrary/SLES-10-i686/Release/include/actIRNGAlg.h +++ /dev/null @@ -1,38 +0,0 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actIRNGAlg.h -// Product: cv act library -// Purpose: IRNGAlg is the interface for Random Number Generators. -// -// Copyright: (c) 2000 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_IRNGAlg_h -#define ACT_IRNGAlg_h - -#include "actIAlgorithm.h" - -namespace act -{ - class Blob; - - class IRNGAlg : public IAlgorithm - { - public: - virtual IRNGAlg* Clone() const = 0; - virtual void Import(const Blob& keyblob) = 0; - virtual void Export(Blob& keyblob) const = 0; - virtual void SetParam(paramid_t id, const Blob& blob) = 0; - virtual void SetParam(paramid_t id, int val) = 0; - virtual void SetParam(paramid_t id, const char* cstr) = 0; - virtual int GetParam(paramid_t id) const = 0; - virtual void GetParam(paramid_t id, Blob& blob) const = 0; - - virtual void* GetCreatePointer() const = 0; - }; - -} // namespace act - -#endif // ACT_IRNGAlg_h diff --git a/actlibrary/SLES-10-i686/Release/include/actIRSAKey.h b/actlibrary/SLES-10-i686/Release/include/actIRSAKey.h deleted file mode 100644 index 96bcdac..0000000 --- a/actlibrary/SLES-10-i686/Release/include/actIRSAKey.h +++ /dev/null @@ -1,32 +0,0 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actIRSAKey.h -// Product: cv act library -// Purpose: IRSAKey is the interface for the class IRSAKey enabling access to -// the aggregated padding-object of an RSAKeys. -// -// Copyright: (c) 2000 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_IRSAKey_h -#define ACT_IRSAKey_h - -#include "actISignatureKey.h" - -namespace act -{ - class IPadding; - - class IRSAKey : public ISignatureKey - { - public: - virtual void SetPadding(IPadding* padding) = 0; - virtual const IPadding* GetPadding() const = 0; - virtual IPadding* GetPadding() = 0; - }; - -} // namespace act - -#endif // ACT_IRSAKey_h diff --git a/actlibrary/SLES-10-i686/Release/include/actIRefCounted.h b/actlibrary/SLES-10-i686/Release/include/actIRefCounted.h deleted file mode 100644 index 5c66ef0..0000000 --- a/actlibrary/SLES-10-i686/Release/include/actIRefCounted.h +++ /dev/null @@ -1,33 +0,0 @@ -// --------------------------------------------------------------------------- -// Name: actIRefCounted.h -// Product: cv act library -// Purpose: The IRefCounted interface. -// -// Copyright: (c) 2006 cv cryptovision GmbH -// all rights reserved. -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -// -// Autor: Markus Tesche (MTE) -// Date: 1/18/2006 -// --------------------------------------------------------------------------- - -#ifndef ACT_IRefCounted_h -#define ACT_IRefCounted_h - -namespace act -{ - // - // IRefCounted, methods for reference counting. - class IRefCounted - { - public: - virtual ~IRefCounted() { } - - virtual void AddRef() = 0; - virtual void Release() = 0; - }; - -} // namespace act - -#endif // ACT_IRefCounted_h diff --git a/actlibrary/SLES-10-i686/Release/include/actISCardAccess.h b/actlibrary/SLES-10-i686/Release/include/actISCardAccess.h deleted file mode 100644 index 3f59b31..0000000 --- a/actlibrary/SLES-10-i686/Release/include/actISCardAccess.h +++ /dev/null @@ -1,198 +0,0 @@ -// --------------------------------------------------------------------------- -// Name: actISCardAccess.h -// Product: cv act library -// Purpose: The class ISCardAccess manages the operations with the smartcards and readers -// -// Copyright: (c) 2002 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -// -// Autor: Dr. Xiangdong Wang (XWG) -// Date: 03/21/2002 -// --------------------------------------------------------------------------- - -#ifndef ACT_ISCardAccess_h -#define ACT_ISCardAccess_h - -#include "actBlob.h" -#include "actIRefCounted.h" -#include "actISynchronize.h" - -namespace act -{ - class SyncObject; - - const ushort RESPONSE_MAXLEN = 2048; - - enum ReturnCode - { - APDU_RESPONSE_MASK = 0xffff, - - APDU_OK = 0x9000, - APDU_OK1 = 0x9001, - - // error codes defined in ISO7816-4 - APDU_STATE_UNCHANGED = 0x6200, - APDU_RETURN_CORRUPTED = 0x6281, - APDU_END_REACHED = 0x6282, - APDU_SELECTFILE_INVALID = 0x6283, - APDU_FCI_FORMAT = 0x6284, - - APDU_AUTHEN_FAILED = 0x6300, - APDU_RETRY_COUNTER = 0x63C0, - APDU_FILE_FILLED_UP = 0x6381, - - APDU_STATE_UNCHANGED2 = 0x6400, - - APDU_STATE_CHANGED = 0x6500, - APDU_MEMORY_FAILURE = 0x6581, - - APDU_SECURITY_ERROR = 0x6600, // not defined in ISO7816 - - APDU_WRONG_LEN = 0x6700, - - APDU_NO_CLA_FUNCTION = 0x6800, - APDU_NO_LOGICAL_CHANNEL = 0x6881, - APDU_NO_SM = 0x6882, - - APDU_CMD_NOT_ALLOWED = 0x6900, - APDU_CMD_INCOMPATIBLE = 0x6981, - APDU_SECURITY_STATE = 0x6982, - APDU_AUTHEN_BLOCKED = 0x6983, - APDU_REF_DATA_INVALID = 0x6984, - APDU_NO_CONDITION = 0x6985, - APDU_CMD_EF_NOT_ALLOWED = 0x6986, - APDU_SM_DATA_MISSING = 0x6987, - APDU_SM_DATA_INCORRECT = 0x6988, - - APDU_WRONG_PARAMETER = 0x6A00, - APDU_WRONG_DATA = 0x6A80, - APDU_FUNCTION_NOT_SUPPORTED = 0x6A81, - APDU_FILE_NOT_FOUND = 0x6A82, - APDU_RECORD_NOT_FOUND = 0x6A83, - APDU_NOT_ENOUGH_MEMORY = 0x6A84, - APDU_LC_TLV_INCONSISTENT = 0x6A85, - APDU_INVALID_P1P2 = 0x6A86, - APDU_LC_P1P2_INCONSISTENT = 0x6A87, - APDU_REF_DATA_NOT_FOUND = 0x6A88, - APDU_FILE_ALREADY_EXISTS = 0x6A89, - - APDU_WRONG_PARAMETER2 = 0x6B00, - - APDU_WRONG_LE = 0x6C00, - - APDU_INS_INVALID = 0x6D00, - - APDU_CLA_INVALID = 0x6E00, - - APDU_TECHNICAL_ERROR = 0x6F00, - - - // other error codes depend on card OS - APDU_NO_ICC = 0x64A1, - APDU_PROTOCOL_ERROR = 0x64A8, - - APDU_NO_AC_RIGHT = 0x6982, - APDU_PIN_LOCKED = 0x6983, - APDU_PIN_FORMAT_ERROR = 0x6984, - - APDU_OBJECT_NOT_FOUND = 0x6A88, - - APDU_KEYGEN_FAILED = 0x6F83, // ACOS - - - // JavaCardOS - APDU_MORE_DATA_AVAILABLE = 0x6310, - APDU_APPLET_SELECTION_FAILED = 0x6999, - APDU_PIN_FAILED = 0x69C0, - APDU_ASSERT = 0x6FFF, - APDU_ASSERT_NOTRANSACTION = 0x6FFE, - }; - - enum ProtocolType - { - PROTOCOL_UNDEFINED = 0x00000, // There is no active protocol. - PROTOCOL_T0 = 0x00001, // T=0 is the active protocol. - PROTOCOL_T1 = 0x00002, // T=1 is the active protocol. - PROTOCOL_RAW = 0x10000 // Raw is the active protocol. - }; - - enum DispositionType - { - LEAVE_CARD = 0, // Don't do anything special. - RESET_CARD = 1, // Reset the card. - UNPOWER_CARD = 2, // Power down the card. - EJECT_CARD = 3 // Eject the card. - }; - - inline bool APDUSUCCESS(word sw1sw2) - { - return sw1sw2 == act::APDU_OK - || sw1sw2 == act::APDU_OK1; - } - - // extract - template - inline word apdu_response(const ExceptionT& e) - { - return word(e.code() & APDU_RESPONSE_MASK); - } - - // LengthInfo - struct LengthInfo; - typedef LengthInfo VerifyInfo; - - class ISlot; - class ISCardSM; - - // --------------------------------------------------------------------------- - class ISCardAccess - : public IRefCounted - , public ISynchronize - { - public: - virtual ~ISCardAccess() - { } - - virtual long GetProtocol() const = 0; - virtual void SetProtocol(long protocol) = 0; - - virtual ulong GetTimeout() const = 0; - virtual bool SetTimeout(ulong timeout_msec) = 0; - - virtual void Open() = 0; - virtual void Close() = 0; - virtual void ResetCard() = 0; - virtual long CancelCardOperation() = 0; - - virtual void BeginTransaction() = 0; - virtual void EndTransaction(DispositionType disposition = LEAVE_CARD) = 0; - virtual ulong GetTransactionDepth() const = 0; - - virtual const ISlot* GetSlot() const = 0; - - virtual word SendCard(const Blob& cmd, Blob& response, ushort response_len = RESPONSE_MAXLEN) = 0; - - virtual Blob GetResponse() const = 0; - virtual Blob& GetResponse(Blob& response) const = 0; - - virtual word Send(const Blob& cmd) = 0; - virtual word Send(const Blob& header, const Blob& data) = 0; - virtual word Send(const Blob& header, const Blob& data, byte le) = 0; - - // Extended APDU - virtual word SendX(const Blob& header, const Blob& data) = 0; - virtual word SendX(const Blob& header, const Blob& data, ushort le) = 0; - - // Secure Pin Entry - virtual word SendVerifyToReader(const Blob& apdu, const VerifyInfo& info) = 0; - - // Secure Messaging - virtual ISCardSM* GetSM() const = 0; - virtual void SetSM(ISCardSM* sm) = 0; - }; - -} // namespace act - -#endif // ACT_ISCardAccess_h diff --git a/actlibrary/SLES-10-i686/Release/include/actISCardOS.h b/actlibrary/SLES-10-i686/Release/include/actISCardOS.h deleted file mode 100644 index 53f2d62..0000000 --- a/actlibrary/SLES-10-i686/Release/include/actISCardOS.h +++ /dev/null @@ -1,262 +0,0 @@ -// --------------------------------------------------------------------------- -// Name: actISCardOS.h -// Product: cv act library -// Purpose: The class ISCardOS accesses the card operating system -// -// Copyright: (c) 2002 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -// -// Autor: Dr. Xiangdong Wang (XWG) -// Date: 03/21/2002 -// --------------------------------------------------------------------------- - -#ifndef ACT_ISCardOS_h -#define ACT_ISCardOS_h - -#include "actBlob.h" -#include "actTokenBase.h" - -#include "actITokenPIN.h" -#include "actITokenConfig.h" -#include "actITokenInitializer.h" - -#include "actIRefCounted.h" -#include "actIAccessCondition.h" - -namespace act -{ - class IKey; - class IEMSAAlg; - class ITokenFile; - class ISCardAccess; - class ISCardOSBehavior; - class IKeyDerivation; - - class EFDIR; - - const FIDType FID_EF_DIR = 0x2F00; - const FIDType FID_EF_ATR = 0x2F01; - - // - // ISO 7816-4 - enum SCardFileType - { - BINARY = 0x01, - LINEAR_FIXED = 0x02, - LINEAR_TLV = 0x05, - LINEAR_VARIABLE = 0x04, - CYCLIC_FIXED = 0x06, - DF = 0x38 - }; - - // - // ISO 7816-4 - enum SCardRecordMode - { - ABSOLUTE_MODE = 0x04 - }; - - // - // ISO 7816-4 - enum SCardSelectType - { - MFType = 0x00, - DFType = 0x01, - EFType = 0x02, - AIDType = 0x04, - PathType = 0x08 - }; - - enum SCardSelectMode - { - FCI = 0x00, // FCI template - FCP = 0x04, // FCP template - FMD = 0x08, // FMD template - NoData = 0x0c, // No response data - }; - - enum SCardError - { - SCARD_SUCCESS = 0, - SCARD_FUNCTION_NOT_SUPPORTED = -1, - SCARD_FUNCTION_FAILED = -2 - }; - - // - // ISCardOS - class ISCardOS - : public IRefCounted - , public IAcConverter - { - public: - virtual ~ISCardOS() { } - - // ISCardOS - virtual ISCardOS* Clone() const = 0; - - virtual bool IsMoC() = 0; - virtual const char* GetName() const = 0; - virtual Blob GetSerialNumber() const = 0; // hardware serial number - virtual Blob GetCardId(unsigned short fid_card_id) = 0; - virtual Blob GetCardCF(unsigned short fid_card_cf) = 0; - - virtual ISCardAccess* GetAccess() const = 0; - - virtual Blob ComputeDigitalSignature(const Blob& data, int mode = SIGN_DATA) = 0; - virtual Blob ComputeDigitalSignature(IEMSAAlg* emsa, int mode = SIGN_DATA) = 0; - virtual Blob Encipher(const Blob& plaintext) = 0; - virtual Blob Decipher(const Blob& encrypted_data) = 0; - virtual Blob AgreeKey(const Blob& pubkey) = 0; - - virtual void ComputeECDigitalSignature(const Blob& data, Blob& signature) = 0; - - virtual Blob SelectFile(const int filetype, const char* filepath) = 0; // return file control information - virtual Blob SelectFile(const int filetype, const Blob& filepath) = 0; // return file control information - virtual Blob SelectFile(const int filetype, FIDType fid) = 0; // return file control information - virtual Blob SelectApp(const Blob& aid, SCardSelectMode mode = NoData) = 0; - - // EF.DIR - virtual EFDIR* GetEFDIR(ushort fid = FID_INVALID) = 0; - - virtual int GetEFSize(FIDType fid) = 0; - virtual int GetEFSize(const Blob& filepath, Blob& fci) = 0; - virtual void GetFCI(FIDType fid, Blob& fci) = 0; - virtual Blob GetFCIValue(const Blob& fci, const byte tag) = 0; - virtual byte GetFileInfo(const Blob& fc_data, unsigned short& ef_size, size_t& num_of_records) = 0; - - // select and read binary - virtual Blob ReadBinary(const char* filepath) = 0; - virtual Blob ReadBinary(const Blob& filepath) = 0; - virtual Blob ReadBinary(FIDType fid) = 0; - - // read/update binary, file is selected, file size is known - virtual Blob ReadSelectedBinary(size_t file_size, unsigned short offset = 0) = 0; - virtual void UpdateSelectedBinary(const Blob& data, unsigned short offset = 0) = 0; - - // select and update binary - virtual void UpdateBinary(const Blob& filepath, const Blob& data, unsigned short offset = 0) = 0; - virtual void UpdateBinary(FIDType fid, const Blob& data, unsigned short offset = 0) = 0; - - // read binary with XL-APDUs - virtual Blob ReadBinaryX(const char* filepath) = 0; - virtual Blob ReadBinaryX(const Blob& filepath) = 0; - virtual Blob ReadBinaryX(FIDType fid) = 0; - virtual Blob ReadSelectedBinaryX(size_t file_size, unsigned short offset = 0) = 0; - - // update binary with XL-APDUs - virtual void UpdateBinaryX(const Blob& filepath, const Blob& data, unsigned short offset = 0) = 0; - virtual void UpdateBinaryX(FIDType fid, const Blob& data, unsigned short offset = 0) = 0; - virtual void UpdateSelectedBinaryX(const Blob& data, unsigned short offset = 0) = 0; - - // record read/write (file must be selected) - virtual Blob ReadRecord(byte mode) = 0; // p2 - virtual Blob ReadRecord(byte rec_id, byte mode) = 0; // p1, p2 - virtual void UpdateRecord(const Blob& data, byte rec_id, byte mode) = 0; // data, p1, p2 - virtual void AppendRecord(const Blob& data, byte ef_id = 0) = 0; // data, p2 - - // record write (includes file selection and resize) - virtual void UpdateRecord(const Blob& filepath, const Blob& data, byte rec_id, byte mode) = 0; - virtual void AppendRecord(const Blob& filepath, const Blob& data) = 0; - - virtual void DeleteEF(const Blob& fid) = 0; - virtual void DeleteEF(FIDType fid) = 0; - - virtual void CreateEF(const Blob& fcp) = 0; - virtual void CreateEF(const Blob& fid, unsigned short len, bool secure = false) = 0; - virtual void CreateEF(FIDType fid, unsigned short len, bool secure = false) = 0; - - virtual void CreateEF_TLV(FIDType fid, unsigned short len, unsigned short num_of_records = 1) = 0; - virtual void CreateEF_TLV(const Blob& fid, unsigned short len, unsigned short num_of_records = 1) = 0; - - virtual unsigned short GetOSFileOffset() const = 0; - - // get/put dat - virtual Blob GetData(ushort tag, ushort le = 0) const = 0; // INS=CA - virtual void PutData(ushort tag, const Blob& data) = 0; // INS=DA - - // MSE/PSO functions - virtual void ManageSecurityEnvironment(byte p1, byte p2, const Blob& data = Blob()) = 0; - virtual void PerformSecurityOperation(Blob& response, byte p1, byte p2, const Blob& data, bool chaining = false) = 0; - virtual void PerformSecurityOperationX(Blob& response, byte p1, byte p2, const Blob& data) = 0; // explicit extended APDU - - // ISO authentication functions - virtual void ExternalAuthenticate(byte key_id, const Blob& response, bool odd_INS = false) = 0; // INS=82/83, P1=00, P2=key_id - virtual Blob InternalAuthenticate(byte key_id, const Blob& challenge, bool odd_INS = false) = 0; // INS=88/89, P1=00, P2=key_id - virtual Blob MutualAuthenticate(byte key_id, const Blob& auth_data, bool odd_INS = false) = 0; // INS=82/83, P1=00, P2=key_id - virtual Blob GeneralAuthenticate(byte key_id, const Blob& auth_data, bool chaining = false, bool odd_INS = false) = 0; // INS=86/87, P1=00, P2=key_id - - virtual void ResetRetryCounter(byte p1, byte p2, const Blob& data) = 0; - virtual void Verify(byte p1, byte p2, const Blob& data, bool odd_INS = false) = 0; // INS=20/21 - - // random functions - virtual Blob GetChallenge(byte le = byte(8)) const = 0; - virtual Blob GetRandom(const unsigned long count) const = 0; - - // token type / config - virtual ProfileType GetProfileType(bool refresh = false) = 0; - - virtual void SetTokenConfig(ITokenConfig* tkcfg) = 0; - virtual ITokenConfig* GetTokenConfig() const = 0; - - // set/get behavior - virtual void SetBehavior(ISCardOSBehavior* behave) = 0; - virtual ISCardOSBehavior* GetBehavior() = 0; - - // access rights - virtual void SetAccessRights(const Blob& access_rights) = 0; - virtual void SetAccessRights(move_from access_rights) = 0; - virtual void SetExplicitRights(IAccessCondition* ac, size_t ac_cnt = 1) = 0; - - virtual bool HasExplicitRights() const = 0; - - virtual Blob GetAccessRights() = 0; - virtual IAccessCondition* GetAccessRights(const Blob& fci) = 0; - virtual Blob GetAccessRights(ACSCardObjType ac_obj_type, bool tagged) const = 0; - - // selected path - virtual void SetSelectedPath(ITokenFile* selected_path) const = 0; - virtual ITokenFile* GetSelectedPath() const = 0; - - // key derivation - virtual void SetKeyDerivation(IKeyDerivation* key_derivation) = 0; - virtual IKeyDerivation* GetKeyDerivation() const = 0; - - // key handling - virtual void GenerateRSAKeyPair(int key_id, size_t key_size, // in bits - Blob& pubkey) = 0; - - virtual void ImportRSAKeyPair(int key_id, const Blob& prime_p, - const Blob& prime_q, const Blob& priv_exp, Blob& pubkey) = 0; - - virtual void GenerateECKeyPair(Blob& pubkey) = 0; - - virtual void GenerateECKeyPair(int key_id, const Blob& curve_oid, - const Blob& curve_param, Blob& pubkey) = 0; - - virtual void ImportECKeyPair(int key_nr, const Blob& curve_oid, - const Blob& curve_param, const Blob& privkey, const Blob& pubkey) = 0; - - virtual void ImportDESKey(int key_id, const Blob& keyblob) = 0; - - virtual void DeletePrivateKeyObj(FIDType fid) = 0; - virtual void DeleteECPrivateKeyObj(FIDType fid) = 0; - virtual void DeleteBlockCipherKeyObj(FIDType fid) = 0; - virtual void SelectKey(int key_id) = 0; - - // authentication functions - virtual Blob ComputeResponse(const Blob& auth_key, const Blob& challenge) const = 0; - virtual void UpdateExternalAuthenticateKey(byte key_id, const Blob& auth_key) = 0; - - virtual void ResetSecurityStatus() = 0; - virtual SecStatus GetSecurityStatus(byte obj_ref, Blob& context) const = 0; - - // token initialization - virtual void SetDefaultLabel(move_from label) = 0; - virtual ITokenInitializer* GetTokenInitializer() = 0; - }; - -} // namespace act - -#endif // ACT_ISCardOS_h diff --git a/actlibrary/SLES-10-i686/Release/include/actISCardOSBehavior.h b/actlibrary/SLES-10-i686/Release/include/actISCardOSBehavior.h deleted file mode 100644 index da9c27c..0000000 --- a/actlibrary/SLES-10-i686/Release/include/actISCardOSBehavior.h +++ /dev/null @@ -1,79 +0,0 @@ -// --------------------------------------------------------------------------- -// Name: actISCardOSBehavior.h -// Product: cv act library -// Purpose: ISCardOSBehavior interface, encapsulates CardOS specific logic -// for security operations. -// -// Copyright: (c) 2002-2008 cv cryptovision GmbH all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -// -// Autor: Markus Tesche -// Date: 06/03/2008 -// --------------------------------------------------------------------------- - -#ifndef ACT_ISCardOSBehavior_h -#define ACT_ISCardOSBehavior_h - -#include "actIRefCounted.h" - -namespace act -{ - class Blob; - class IEMSAAlg; - class ISCardOS; - class ITokenPIN; - - enum OSBehavior - { - NONE_BEHAVIOR = 0x00000000, - - // algorithm behaviors - SIGN_BEHAVIOR = 0x00000001, - VERIFY_BEHAVIOR = 0x00000002, - DECRYPT_BEHAVIOR = 0x00000004, - ENCRYPT_BEHAVIOR = 0x00000008, - AGREEMENT_BEHAVIOR = 0x00000010, - ALGORITHM_BEHAVIOR_MASK = 0x000000FF, - - // key behaviors - GENERATE_KEY_BEHAVIOR = 0x00000100, - IMPORT_KEY_BEHAVIOR = 0x00000200, - DELETE_PRIVKEY_BEHAVIOR = 0x00000400, - KEY_BEHAVIOR_MASK = 0x0000FF00, - - // PIN behaviors - VERIFY_PIN_BEHAVIOR = 0x00010000, - CHANGE_PIN_BEHAVIOR = 0x00020000, - SET_PIN_BEHAVIOR = 0x00040000, - UNLOCK_PIN_BEHAVIOR = 0x00080000, - PIN_BEHAVIOR_MASK = 0x00FF0000 - }; - - // - // ISCardOSBehavior - class ISCardOSBehavior : public IRefCounted - { - public: - virtual bool Supports(int behavior) const throw() = 0; - - virtual Blob ComputeDigitalSignature(ISCardOS* os, const Blob& data, int mode) = 0; - virtual Blob ComputeDigitalSignature(ISCardOS* os, IEMSAAlg* emsa, int mode) = 0; - virtual Blob Encipher(ISCardOS* os, const Blob& plaintext) = 0; - virtual Blob Decipher(ISCardOS* os, const Blob& encrypted_data) = 0; - virtual Blob AgreeKey(ISCardOS* os, const Blob& pubkey) = 0; - - virtual void GenerateRSAKeyPair(ISCardOS* os, byte key_num, size_t key_size) = 0; - virtual void ImportRSAKeyPair(ISCardOS* os, int key_id, const Blob& prime_p, const Blob& prime_q, - const Blob& priv_exp, Blob& pubkey) = 0; - virtual void DeletePrivateKeyObj(ISCardOS* os, unsigned short fid) = 0; - - virtual void doVerifyPinCmd(const ITokenPIN* token_pin, const Blob& pin_value) = 0; - virtual void doChangePinCmd(const ITokenPIN* token_pin, const Blob& oldnew_value) = 0; - virtual void doSetPinValueCmd(const ITokenPIN* token_pin, const Blob& newpin_value) = 0; - virtual void UnlockPin(const ITokenPIN* token_pin, const Blob& new_pin) = 0; - }; - -} // namespace act - -#endif // ACT_ISCardOSBehavior_h diff --git a/actlibrary/SLES-10-i686/Release/include/actISecurityManager.h b/actlibrary/SLES-10-i686/Release/include/actISecurityManager.h deleted file mode 100644 index ecaccd8..0000000 --- a/actlibrary/SLES-10-i686/Release/include/actISecurityManager.h +++ /dev/null @@ -1,60 +0,0 @@ -// --------------------------------------------------------------------------- -// Name: actISecurityManager.h -// Product: cv act library -// Purpose: ISecurityManager used to manage the token authentication objects. -// -// Copyright: (c) 2008 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -// -// Autor: Markus Tesche (MTE) -// Date: 08/05/2008 -// --------------------------------------------------------------------------- - -#ifndef ACT_ISecurityManager_h -#define ACT_ISecurityManager_h - -#include "actBasics.h" -#include "actIRefCounted.h" - -namespace act -{ - class ITokenPIN; - class IAuthIdRef; - - enum SecManType - { - SecManUnknown = 0, - SecManPIN, - SecManBio, - }; - - // - // ISecurityManager - // TODO: MTE: Add access control management - class ISecurityManager : public IRefCounted - { - public: - virtual SecManType GetType() const = 0; - virtual void Delete(ITokenPIN* auth_obj) = 0; - }; - - class IPINManager : public ISecurityManager - { - public: - // NOTE: MTE: pin can be empty! - virtual ITokenPIN* Create(IAuthIdRef* authIdRef, IAuthIdRef* parentAuthIdRef, - int retryCount, const Blob& pin) = 0; - }; - - class IBioManager : public ISecurityManager - { - public: - virtual ITokenPIN* Create(IAuthIdRef* authIdRef, IAuthIdRef* parentAuthIdRef, - int retryCount, int bioFinger) = 0; - }; - -} // namespace act - -#endif // ACT_ISecurityManager_h diff --git a/actlibrary/SLES-10-i686/Release/include/actISignatureKey.h b/actlibrary/SLES-10-i686/Release/include/actISignatureKey.h deleted file mode 100644 index 2538580..0000000 --- a/actlibrary/SLES-10-i686/Release/include/actISignatureKey.h +++ /dev/null @@ -1,32 +0,0 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actISignatureKey.h -// Product: cv act library -// Purpose: The interface ISignatureKey enables access to the aggregated -// EMSA-object of the SignatureKeys. -// -// Copyright: (c) 2000 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_ISignatureKey_h -#define ACT_ISignatureKey_h - -#include "actIKey.h" - -namespace act -{ - class IEMSAAlg; - - class ISignatureKey : public IKey - { - public: - virtual void SetEncoder(IEMSAAlg* padding) = 0; - virtual const IEMSAAlg* GetEncoder() const = 0; - virtual IEMSAAlg* GetEncoder() = 0; - }; - -} // namespace act - -#endif // ACT_ISignatureKey_h diff --git a/actlibrary/SLES-10-i686/Release/include/actISlot.h b/actlibrary/SLES-10-i686/Release/include/actISlot.h deleted file mode 100644 index b3a2efd..0000000 --- a/actlibrary/SLES-10-i686/Release/include/actISlot.h +++ /dev/null @@ -1,82 +0,0 @@ -// --------------------------------------------------------------------------- -// Name: actISlot.h -// Product: cv act library -// Purpose: The class ISlot manages the Tokens -// -// Copyright: (c) 2002 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -// -// Autor: Dr. Xiangdong Wang (XWG) -// Date: 03/26/2002 -// --------------------------------------------------------------------------- - -#ifndef ACT_ISlot_h -#define ACT_ISlot_h - -#include "actBasics.h" -#include "actBlob.h" - -#include "actIRefCounted.h" -#include "actISynchronize.h" -#include "actIEventMonitoring.h" - -namespace act -{ - class IToken; - class ITokenConfig; - class ISCardOS; - class ISCardAccess; - class ISubsystem; - - // --------------------------------------------------------------------------- - class ISlot - : public IRefCounted - , public ISynchronize - , public IEventMonitoring - { - protected: - virtual ~ISlot() { } - - public: - virtual ISlot* Clone() const = 0; - - virtual bool IsTokenPresent() const = 0; - virtual const char* GetName() const = 0; - virtual ISubsystem* GetSystem() const = 0; - - virtual Blob GetATR() const = 0; - virtual Blob GetHistoricalBytes() const = 0; - - virtual ISCardOS* CreateOS(const Blob& historical_bytes = Blob()) = 0; - virtual IToken* CreateToken(ISCardOS* os = 0) = 0; - virtual ISCardAccess* CreateAccess() = 0; - - virtual void SetTokenConfig(ITokenConfig* tkcfg) = 0; - - virtual bool HasSecurePinEntry(ISCardAccess* ac = 0) const = 0; - virtual bool HasSecurePinChange(ISCardAccess* ac = 0) const = 0; - - virtual void SetParam(paramid_t id,int val) = 0; - virtual int GetParam(paramid_t id) const = 0; - }; - - // --------------------------------------------------------------------------- - struct ATRCardInfo - { - const char* name; - const char* atr; - const char* atr_mask; - }; - - // --------------------------------------------------------------------------- - void InitCardInfoMap(const ATRCardInfo* mapCardInfo); - const ATRCardInfo* GetATRCardInfo(const Blob& atr); - const char* GetOSName(const Blob& atr); - Blob GetHistoricalBytes(const Blob& atr); - bool GetATRStructInfo(const Blob& atr, size_t& his_pos, size_t& his_len, bool& has_tck); - -} // namespace act - -#endif // ACT_ISlot_h diff --git a/actlibrary/SLES-10-i686/Release/include/actISlotMonitor.h b/actlibrary/SLES-10-i686/Release/include/actISlotMonitor.h deleted file mode 100644 index 358abc0..0000000 --- a/actlibrary/SLES-10-i686/Release/include/actISlotMonitor.h +++ /dev/null @@ -1,39 +0,0 @@ -// --------------------------------------------------------------------------- -// Name: actISlotMonitor.h -// Product: cv act library -// Purpose: The class SlotMonitor notifies the slot events -// -// Copyright: (c) 2002 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -// -// Autor: Dr. Xiangdong Wang (XWG) -// Date: 05/27/2002 -// --------------------------------------------------------------------------- - -#ifndef ACT_ISlotMonitor_h -#define ACT_ISlotMonitor_h - -#include "actIRefCounted.h" - -namespace act -{ - class IEventHandler; - - // - // ISlotMonitor - class ISlotMonitor : public IRefCounted - { - public: - virtual void Stop() = 0; - virtual void Start(IEventHandler* cmd) = 0; - virtual bool Interrupted() const = 0; - - protected: - virtual void Run() = 0; - }; - -} // namespace act - -#endif // ACT_ISlotMonitor_h diff --git a/actlibrary/SLES-10-i686/Release/include/actIStreamCipher.h b/actlibrary/SLES-10-i686/Release/include/actIStreamCipher.h deleted file mode 100644 index 4c53d98..0000000 --- a/actlibrary/SLES-10-i686/Release/include/actIStreamCipher.h +++ /dev/null @@ -1,51 +0,0 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actIStreamCipher.h -// Product: cv act library -// Purpose: The class IStreamCipher creates the symmetric StreamCipher, which is -// defined by IStreamCipherKey. It offers operations like encrypt, decrypt -// and queries involving validity or keylength etc. -// -// Copyright: (c) 2001 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_IStreamCipher_h -#define ACT_IStreamCipher_h - -#include "actBasics.h" - -namespace act -{ - - class Blob; - - class IStreamCipher - { - public: - - virtual IStreamCipher* Clone() const =0; - virtual void Import( const Blob& indata ) =0; - virtual void Export( Blob& outdata ) const =0; - - virtual void SetRawKey( const Blob& keyblob ) =0; - virtual void GetRawKey( Blob& keyblob ) const =0; - - virtual void Process(const byte* input, byte* output, size_t input_len) const =0; - - virtual size_t GetKeySize(size_t keysize=0) const =0; - virtual size_t GetMinKeySize() const =0; - virtual size_t GetMaxKeySize() const =0; - virtual size_t GetNextKeySize(size_t prevsize) const =0; - - virtual void* GetCreatePointer() const =0; - - virtual ~IStreamCipher() {}; - }; - - -}// namespace act - -#endif - diff --git a/actlibrary/SLES-10-i686/Release/include/actIStreamCipherKey.h b/actlibrary/SLES-10-i686/Release/include/actIStreamCipherKey.h deleted file mode 100644 index 7282893..0000000 --- a/actlibrary/SLES-10-i686/Release/include/actIStreamCipherKey.h +++ /dev/null @@ -1,39 +0,0 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actIStreamCipherKey.h -// Product: cv act library -// Purpose: The class IStreamCipherKey extends the interface of the class IKey -// and supports the peculiarities of symmetric keys. -// -// -// Copyright: (c) 2001 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_IStreamCipherKey_h -#define ACT_IStreamCipherKey_h - -#include "actIKey.h" - -namespace act -{ - class IStreamCipher; - class IDerivator; - - class IStreamCipherKey : public IKey - { - public: - - virtual void SetCipher(IStreamCipher* cipher) = 0; - virtual const IStreamCipher* GetCipher() const = 0; - virtual IStreamCipher* GetCipher() = 0; - - virtual void SetDerivator(IDerivator* derive) = 0; - virtual const IDerivator* GetDerivator() const = 0; - virtual IDerivator* GetDerivator() = 0; - }; - -} //namespace act - -#endif // ACT_IStreamCipherKey_h diff --git a/actlibrary/SLES-10-i686/Release/include/actISubsystem.h b/actlibrary/SLES-10-i686/Release/include/actISubsystem.h deleted file mode 100644 index 731b4cd..0000000 --- a/actlibrary/SLES-10-i686/Release/include/actISubsystem.h +++ /dev/null @@ -1,54 +0,0 @@ -// --------------------------------------------------------------------------- -// Name: actISubsystem.h -// Product: cv act library -// Purpose: The class ISubsystem detects and manages the slots -// -// Copyright: (c) 2002 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -// -// Autor: Dr. Xiangdong Wang (XWG) -// Date: 03/26/2002 -// --------------------------------------------------------------------------- - -#ifndef ACT_ISubsystem_h -#define ACT_ISubsystem_h - -#include "actBasics.h" -#include "actIRefCounted.h" -#include "actISynchronize.h" -#include "actIEventMonitoring.h" - -namespace act -{ - class ISlot; - class ITokenConfig; - - // - // ISubsystem - class ISubsystem - : public IRefCounted - , public ISynchronize - , public IEventMonitoring - { - public: - virtual void Refresh() = 0; - virtual bool Disconnect() = 0; - virtual bool Install(size_t port) = 0; - virtual const char* GetName() const = 0; - - // SlotList - virtual int GetSlotNumber() const = 0; - virtual const ISlot* GetSlot(int pos) const = 0; - virtual ISlot* CreateSlot(const char* name) = 0; - - virtual void SetTokenConfig(ITokenConfig* tkcfg) = 0; - - protected: - virtual ~ISubsystem() { } - }; - -} // namespace act - -#endif // ACT_ISubsystem_h diff --git a/actlibrary/SLES-10-i686/Release/include/actISubsystemConfig.h b/actlibrary/SLES-10-i686/Release/include/actISubsystemConfig.h deleted file mode 100644 index 165ac6e..0000000 --- a/actlibrary/SLES-10-i686/Release/include/actISubsystemConfig.h +++ /dev/null @@ -1,38 +0,0 @@ -// --------------------------------------------------------------------------- -// Name: actISubsystemConfig.h -// Product: cv act library -// Purpose: The Subsystem configuration. -// -// Copyright: (c) 2006 cv cryptovision GmbH -// all rights reserved. -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -// -// Autor: Markus Tesche (MTE) -// Date: 1/12/2006 -// --------------------------------------------------------------------------- - -#ifndef ACT_ISubsystemConfig_h -#define ACT_ISubsystemConfig_h - -#include "actIRefCounted.h" - -namespace act -{ - class ISubsystem; - - // - // ISubsystemConfig - class ISubsystemConfig : public IRefCounted - { - public: - // Returns the Subsystem name. - virtual const char* GetName() const = 0; - - // Configures the Subsystem, if fails throws an Exception. - virtual void ConfigureSubsystem(ISubsystem*) = 0; - }; - -} // namespace act - -#endif // ACT_ISubsystemConfig_h diff --git a/actlibrary/SLES-10-i686/Release/include/actISynchronize.h b/actlibrary/SLES-10-i686/Release/include/actISynchronize.h deleted file mode 100644 index c8f1ef6..0000000 --- a/actlibrary/SLES-10-i686/Release/include/actISynchronize.h +++ /dev/null @@ -1,43 +0,0 @@ -////////////////////////////////////////////////////////////////////////// -// Name: actISynchronize.h -// Product: cv act library -// Purpose: Implemented by types supporting multithreading synchronization. -// -// Copyright: (c) 2010 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -// -// Autor: Markus Tesche -// Date: 07/27/2010 -////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_ISynchronize_h -#define ACT_ISynchronize_h - -namespace act -{ - class Handle; - - // - // ISynchronize - class ISynchronize - { - protected: - virtual ~ISynchronize() { } - - public: - virtual void Lock() = 0; - virtual void Unlock() = 0; - virtual long LockCount() const = 0; - - virtual const Handle& syncHandle() const = 0; - }; - - inline void Lock(ISynchronize& object) { object.Lock(); } - inline void Unlock(ISynchronize& object) { object.Unlock(); } - inline long LockCount(const ISynchronize& object) { return object.LockCount(); } - -} // namespace act - -#endif // ACT_ISynchronize_h diff --git a/actlibrary/SLES-10-i686/Release/include/actIToken.h b/actlibrary/SLES-10-i686/Release/include/actIToken.h deleted file mode 100644 index 15d0ac2..0000000 --- a/actlibrary/SLES-10-i686/Release/include/actIToken.h +++ /dev/null @@ -1,165 +0,0 @@ -// --------------------------------------------------------------------------- -// Name: actIToken.h -// Product: cv act library -// Purpose: The IToken interface represents the profile and the application -// supported by a token. -// -// Copyright: (c) 2002 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -// -// Autor: Dr. Xiangdong Wang (XWG) -// Date: 03/22/2002 -// --------------------------------------------------------------------------- - -#ifndef ACT_IToken_h -#define ACT_IToken_h - -#include "actBlob.h" -#include "actBasics.h" -#include "actTokenBase.h" - -#include "actISynchronize.h" -#include "actITokenFileCache.h" -#include "actIAccessCondition.h" - -namespace act -{ - class IKey; - class IEMSAAlg; - class ICertificate; - class IAuthIdRef; - class ITokenPIN; - class ITokenAuth; - class ITokenFile; - class ITokenFileMap; - class ITokenConfig; - class ITokenKeyIterator; - class ISecurityManager; - class ITokenAuthIterator; - - struct CertEntry - { - int usage; - Blob certblob; - }; - - // - // ITokenView - class ITokenView - { - protected: - virtual ~ITokenView() { } - - public: - virtual IToken* GetToken() = 0; - - virtual ITokenView* GetPrev() const = 0; - virtual ITokenView* GetNext() const = 0; - - virtual ITokenFile* GetPath() const = 0; - virtual ITokenFileMap* GetFileMap() const = 0; - - virtual bool Equals(const ITokenView* other) const = 0; - - // Divide view into partitions, based on type[PATH|PIN] - virtual size_t Split(paramid_t type) = 0; - virtual ITokenView* SetDefault() = 0; - }; - - // - // IToken - class IToken - : public IRefCounted - , public IAcConverter - , public ISynchronize - { - protected: - virtual ~IToken() { } - - public: - virtual ITokenView* GetView() const = 0; - virtual ITokenConfig* GetConfig() const = 0; - virtual ITokenFile* GetTokenFile(const Blob& path) = 0; - - virtual int GetStatus() const = 0; - virtual int GetType() const = 0; - virtual ProfileType GetProfileType() = 0; - virtual const char* GetName() const = 0; - - // Returns the serial number, which may (!) be empty or equal the hardware serial! - virtual Blob GetSerialNumber() const = 0; - virtual Blob GetCardholderName() const = 0; - virtual Blob GetRandom(const unsigned long count) const = 0; - virtual void SetSeed(const Blob& seed) = 0; - - // Generate a new key - virtual IKey* NewKey(int key_type) = 0; - - // Add key to token, takes ownership - even on exception! - virtual void AddKey(IKey* key) = 0; - virtual bool RemoveKey(IKey* key) = 0; - - // Write/Import a (soft) key to token - virtual IKey* WriteKey(const IKey* key) = 0; - - // Get a token key instance from matching certificate - virtual IKey* CreateKey(const Blob& cert) const = 0; - virtual IKey* CreateKey(const ICertificate* cert) const = 0; - - // Key Objects - virtual int GetKeyNumber() const = 0; - virtual IKey* GetKey(int pos) const = 0; - virtual ITokenKeyIterator* GetKeyIterator(KeyType type, const Blob& authId = Blob()) = 0; - - // Certificate Objects - virtual int GetCertificateNumber() const = 0; - virtual CertEntry GetCertificate(int pos) const = 0; - - // Write/Delete a certificate (corresponding to a key) to token - virtual void WriteCertificate(const Blob& cert, IKey* key = 0) = 0; - virtual void DeleteCertificate(const Blob& cert, IKey* key = 0) = 0; - - // Authentication Objects - virtual ITokenAuth* GetAuth() const = 0; - virtual ISecurityManager* SecurityManager(int authManagerType) = 0; - virtual ITokenAuthIterator* GetAuthIterator(int type, const Blob& authId = Blob()) = 0; - - virtual int GetPinNumber() const = 0; - virtual ITokenPIN* GetPin(const IAuthIdRef* authIdRef, const ITokenFile* location) const = 0; - virtual ITokenPIN* GetPin(int pos, const ITokenFile* location) const = 0; - virtual ITokenPIN* GetPin(const char* pin_name) const = 0; - virtual ITokenPIN* GetPin(const Blob& authId) const = 0; - - virtual ITokenPIN* GetUserPin() const = 0; - virtual ITokenPIN* GetSOPin() const = 0; - virtual void VerifyUserPin(const Blob& pinvalue) = 0; - virtual void ChangeUserPin(const Blob& oldpin, const Blob& newpin) = 0; - virtual void UnlockUserPin(const Blob& so_pin, const Blob& new_userpin) = 0; - virtual void VerifySOPin(const Blob& pinvalue) = 0; - virtual void ChangeSOPin(const Blob& oldpin, const Blob& newpin) = 0; - - virtual bool ResetSecurityState() const = 0; - - // Token specific - virtual void SelectDataPath() const = 0; // TODO: MTE: To be removed soon! - virtual ISCardOS* GetOS() const = 0; // TODO: MTE: To be removed soon! - - // Delete a key pair from token with matching token key or certificate - virtual void DeleteKeyPair(const IKey* key) = 0; - virtual void DeleteKeyPair(const Blob& cert) = 0; - - virtual bool IsPKCS15() const = 0; - virtual bool IsReadOnly() const = 0; - virtual bool LoginRequired() const = 0; - - virtual bool IsLocked() const = 0; - - virtual Blob GetCardId() const = 0; - virtual Blob GetCardCF() const = 0; - }; - -} // namespace act - -#endif // ACT_IToken_h diff --git a/actlibrary/SLES-10-i686/Release/include/actITokenAuth.h b/actlibrary/SLES-10-i686/Release/include/actITokenAuth.h deleted file mode 100644 index cd6d150..0000000 --- a/actlibrary/SLES-10-i686/Release/include/actITokenAuth.h +++ /dev/null @@ -1,139 +0,0 @@ -// --------------------------------------------------------------------------- -// Name: actITokenAuth.h -// Product: cv act library -// Purpose: The ITokenAuth interface represents a IToken authentication state -// using one the ITokenPIN objects owned by a token. -// -// Copyright: (c) 2007 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -// -// Autor: Markus Tesche (MTE) -// Date: 11/09/2007 -// --------------------------------------------------------------------------- - -#ifndef ACT_ITokenAuth_h -#define ACT_ITokenAuth_h - -#include "actBlob.h" -#include "actBasics.h" -#include "actIRefCounted.h" - -namespace act -{ - class AuthInfo; - - class IToken; - class ITokenPIN; - class ITokenFile; - class IAuthIdRef; - class IAuthConstrained; - - enum AuthConstrainedType - { - AUTH_CONSTRAINED_ALWAYS = 0, - AUTH_CONSTRAINED_NOT, - AUTH_CONSTRAINED_AND, - AUTH_CONSTRAINED_OR, - }; - - // - // IAuthFactory - class IAuthFactory - { - public: - virtual IAuthIdRef* CreateAuthIdRef(const Blob& authId, ITokenFile* path, - byte constrained_mode = AUTH_CONSTRAINED_ALWAYS) = 0; - - virtual ITokenPIN* CreatePin(const AuthInfo& ai, byte objRef, ITokenFile* path, - IAuthIdRef* authIdRef, IAuthIdRef* parentAuthIdRef) = 0; - - // TODO: MTE: deprecated, use CreatePin(const AuthInfo&...) instead - virtual ITokenPIN* CreatePin(int type, int usage, byte objRef, int minLen, - int maxLen, IAuthIdRef* authIdRef, const char* name = 0) = 0; - - protected: - virtual ~IAuthFactory() { } - }; - - - // - // IAuthIdRef - class IAuthIdRef : public IRefCounted - { - public: - virtual byte GetAuthIdByte() const = 0; - virtual const Blob& GetAuthId() const = 0; - virtual IAuthConstrained* GetAuthConstrained() = 0; - - virtual bool Equals(const Blob& authId) const = 0; - }; - - // - // IAuthIdRefIterator - class IAuthIdRefIterator : public IRefCounted - { - public: - virtual void Reset() = 0; - virtual IAuthIdRef* Next() = 0; - }; - - - // - // ITokenAuthIterator - class ITokenAuthIterator : public IRefCounted - { - public: - virtual void Reset(ITokenFile* parent = 0) = 0; - virtual ITokenPIN* Next() = 0; - }; - - // - // ITokenAuth - class ITokenAuth : public IRefCounted - { - public: - virtual bool Login(ITokenPIN* auth_obj, const Blob& pin) = 0; - - virtual bool Logout() = 0; - virtual bool Logout(const ITokenPIN* auth_obj) = 0; - virtual bool LogoutEx(bool reset_security_state) = 0; - - virtual Blob GetChallenge(const ITokenPIN* auth_obj) = 0; - - virtual IToken* GetToken() const = 0; - virtual ITokenPIN* GetAuthenticated() const = 0; - virtual ITokenPIN* GetAuthenticated(size_t index) const = 0; - - virtual bool NeedsPINValue() const = 0; - virtual bool HasChallenge() const = 0; - virtual bool HasChallenge(const ITokenPIN* auth_obj) const = 0; - virtual bool IsAuthenticated(const ITokenPIN* auth_obj) const = 0; - virtual bool IsAuthenticated(bool verify_security_state = false) const = 0; - - /*! - * Clears the internal authentication state for given auth_obj. - * - * If auth_obj is not authenticated: - * - do nothing - * - return false - * - * If auth_obj is authenticated: - * - remove auth_obj from authenticated-list. - * - return true - * - * \note does NOT reset the card's authentication state! - * - * \param auth_obj \ref ITokenPIN - * \return true if succeeded, false if not - */ - virtual bool Invalidate(ITokenPIN* auth_obj) = 0; - virtual bool Select(const ITokenPIN* auth_obj, bool force) = 0; - - virtual ITokenAuthIterator* Iterator(int type, const Blob& authId = Blob()) const = 0; - }; - -} // namespace act - -#endif // ACT_ITokenAuth_h diff --git a/actlibrary/SLES-10-i686/Release/include/actITokenAuthOwner.h b/actlibrary/SLES-10-i686/Release/include/actITokenAuthOwner.h deleted file mode 100644 index c53eccc..0000000 --- a/actlibrary/SLES-10-i686/Release/include/actITokenAuthOwner.h +++ /dev/null @@ -1,39 +0,0 @@ -// --------------------------------------------------------------------------- -// Name: actITokenAuthOwner.h -// Product: cv act library -// Purpose: The ITokenAuthOwner interface is used by objects which requires -// authentication like token keys. -// -// Copyright: (c) 2008 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -// -// Autor: Markus Tesche -// Date: 08/10/2008 -// --------------------------------------------------------------------------- - -#ifndef ACT_ITokenAuthOwner_h -#define ACT_ITokenAuthOwner_h - -namespace act -{ - class ITokenPIN; - class IAuthIdRef; - - // - // ITokenAuthOwner - class ITokenAuthOwner - { - public: - virtual void SetPin(ITokenPIN* pin) = 0; - virtual ITokenPIN* GetPin() const = 0; - virtual IAuthIdRef* GetAuthIdRef() const = 0; - - protected: - virtual ~ITokenAuthOwner() { } - }; - -} // namespace act - -#endif // ACT_ITokenAuthOwner_h diff --git a/actlibrary/SLES-10-i686/Release/include/actITokenBlockCipher.h b/actlibrary/SLES-10-i686/Release/include/actITokenBlockCipher.h deleted file mode 100644 index 014efe1..0000000 --- a/actlibrary/SLES-10-i686/Release/include/actITokenBlockCipher.h +++ /dev/null @@ -1,45 +0,0 @@ -// --------------------------------------------------------------------------- -// Name: actITokenBlockCipher.h -// Product: cv act library -// Purpose: The interface ITokenBlockCipher encapsulates operations using a -// symmetric key stored on a secure token. -// -// Copyright: (c) 2008 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -// -// Autor: Markus Tesche -// Date: 05/15/2008 -// --------------------------------------------------------------------------- - -#ifndef ACT_ITokenBlockCipher_h -#define ACT_ITokenBlockCipher_h - -#include "actBlob.h" -#include "actIBlockCipher.h" - -namespace act -{ - class IToken; - class ITokenConfig; - - // - // ITokenBlockCipher - class ITokenBlockCipher : public IBlockCipher - { - public: - virtual ITokenBlockCipher* Clone() const = 0; - - virtual void Configure(ITokenConfig* tkcfg) = 0; - virtual Blob GetCipherName() const = 0; - virtual Blob GetLabel() const = 0; - - virtual int GetKeyNumber() const = 0; - - virtual IToken* GetToken() const = 0; - }; - -} // namespace act - -#endif // ACT_ITokenBlockCipher_h diff --git a/actlibrary/SLES-10-i686/Release/include/actITokenBlockCipherKey.h b/actlibrary/SLES-10-i686/Release/include/actITokenBlockCipherKey.h deleted file mode 100644 index 3f13e59..0000000 --- a/actlibrary/SLES-10-i686/Release/include/actITokenBlockCipherKey.h +++ /dev/null @@ -1,59 +0,0 @@ -// --------------------------------------------------------------------------- -// Name: actITokenBlockCipherKey.h -// Product: cv act library -// Purpose: The interface ITokenBlockCipherKey enables access to a key stored -// on a secure token. -// -// Copyright: (c) 2008 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -// -// Autor: Markus Tesche -// Date: 05/15/2008 -// --------------------------------------------------------------------------- - -#ifndef ACT_ITokenBlockCipherKey_h -#define ACT_ITokenBlockCipherKey_h - -#include "actTokenBase.h" - -#include "actIBlockCipherKey.h" - -#include "actITokenAuthOwner.h" -#include "actITokenFileOwner.h" -#include "actITokenBlockCipher.h" - -namespace act -{ - class IToken; - class ITokenConfig; - - // - // ITokenBlockCipherKey - class ITokenBlockCipherKey - : public IBlockCipherKey - , public ITokenAuthOwner - , public ITokenFileOwner - { - public: - virtual ITokenBlockCipherKey* Clone() const = 0; - - virtual ITokenBlockCipher* GetCipher() = 0; - virtual const ITokenBlockCipher* GetCipher() const = 0; - - virtual KeyType GetType() const = 0; - virtual IToken* GetToken() const = 0; - virtual const char* GetName() const = 0; - virtual void Configure(ITokenConfig* tkcfg) = 0; - - virtual void SetRawKey(const Blob& raw_key) = 0; - virtual void GetRawKey(Blob& raw_key) const = 0; - - virtual void SetMode(const char* modename) = 0; - virtual void SetPadding(const char* padname) = 0; - }; - -} // namespace act - -#endif // ACT_ITokenBlockCipherKey_h diff --git a/actlibrary/SLES-10-i686/Release/include/actITokenConfig.h b/actlibrary/SLES-10-i686/Release/include/actITokenConfig.h deleted file mode 100644 index cecaa7e..0000000 --- a/actlibrary/SLES-10-i686/Release/include/actITokenConfig.h +++ /dev/null @@ -1,60 +0,0 @@ -// --------------------------------------------------------------------------- -// Name: actITokenConfig.h -// Product: cv act library -// Purpose: IToken configuration. -// -// Copyright: (c) 2008 cv cryptovision GmbH -// all rights reserved. -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -// -// Autor: Markus Tesche -// Date: 11/07/2008 -// --------------------------------------------------------------------------- - -#ifndef ACT_ITokenConfig_h -#define ACT_ITokenConfig_h - -#include "actIParam.h" -#include "actIRefCounted.h" - -namespace act -{ - class ISCardOS; - class IToken; - class ITokenPIN; - class ITokenAuth; - class ITokenKey; - class ITokenBlockCipher; - class ITokenBlockCipherKey; - class ITokenFileMap; - class ITokenFileCache; - - // - // ITokenConfig - class ITokenConfig - : public IParam - , virtual public IRefCounted - { - public: - virtual ITokenConfig* Clone() const = 0; - - // Individual card detection - virtual bool IsSupported(ISCardOS* os) const = 0; - - // Configures the token, if fails throws an Exception - virtual void Configure(IToken* token) const = 0; - virtual void Configure(ITokenPIN* auth_obj) const = 0; - virtual void Configure(ITokenKey* key) const = 0; - virtual void Configure(ITokenBlockCipher* cipher) const = 0; - virtual void Configure(ITokenBlockCipherKey* key) const = 0; - - // Factory's for token helper objects - virtual ITokenAuth* CreateAuth(IToken* token) = 0; - virtual ITokenFileMap* CreateFileMap(const IToken* token) = 0; - virtual ITokenFileCache* CreateFileCache(IToken* token) = 0; - }; - -} // namespace act - -#endif // ACT_ITokenConfig_h diff --git a/actlibrary/SLES-10-i686/Release/include/actITokenExtension.h b/actlibrary/SLES-10-i686/Release/include/actITokenExtension.h deleted file mode 100644 index 784c418..0000000 --- a/actlibrary/SLES-10-i686/Release/include/actITokenExtension.h +++ /dev/null @@ -1,39 +0,0 @@ -// --------------------------------------------------------------------------- -// Name: actITokenExtension.h -// Product: cv act library -// Purpose: Interface ITokenExtension provides functionality to register extensions to -// IToken derived objects. -// -// Copyright: (c) 2008 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -// -// Autor: Markus Tesche -// Date: 12/02/2008 -// --------------------------------------------------------------------------- - -#ifndef ACT_ITokenExtension_h -#define ACT_ITokenExtension_h - -#include "actIRefCounted.h" - -namespace act -{ - class IToken; - - // - // ITokenExtension - class ITokenExtension : public IRefCounted - { - protected: - virtual ~ITokenExtension() { } - - public: - virtual void* GetCreatePtr() throw() = 0; - virtual bool Register(IToken* token) = 0; - }; - -} // namespace act - -#endif // ACT_ITokenExtension_h diff --git a/actlibrary/SLES-10-i686/Release/include/actITokenFile.h b/actlibrary/SLES-10-i686/Release/include/actITokenFile.h deleted file mode 100644 index 4f42757..0000000 --- a/actlibrary/SLES-10-i686/Release/include/actITokenFile.h +++ /dev/null @@ -1,71 +0,0 @@ -// --------------------------------------------------------------------------- -// Name: actITokenFile.h -// Product: cv act library -// Purpose: ITokenFile represents a simple smartcard file with path. -// -// Copyright: (c) 2008 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -// -// Autor: Markus Tesche -// Date: 09/02/2008 -// --------------------------------------------------------------------------- - -#ifndef ACT_TokenFile_h -#define ACT_TokenFile_h - -#include "actBlob.h" -#include "actIRefCounted.h" - -namespace act -{ - class ISCardOS; - - enum FILETYPE - { - UKType = -1 - }; - - // - // ITokenFile - class ITokenFile : public IRefCounted - { - public: - virtual ITokenFile* Clone() const = 0; - - virtual bool IsValid() const = 0; - - virtual bool Equals(const Blob& path) const = 0; - virtual bool Equals(const ISCardOS* os) const = 0; - virtual bool Equals(const ITokenFile* other) const = 0; - virtual bool IsParent(const ITokenFile* other, size_t* mismatch = 0) const = 0; - - virtual Blob& RefFCI() = 0; - virtual const Blob& GetFCI() const = 0; - - virtual Blob& RefAID() = 0; - virtual const Blob& GetAID() const = 0; - - virtual int GetFileType() const = 0; - virtual size_t GetFileLength() const = 0; - virtual const Blob& GetFilePath() const = 0; - virtual size_t GetFullLength() const = 0; - virtual size_t GetFullPath(Blob& path) const = 0; - - virtual ITokenFile* GetRelativeTo() const = 0; - virtual void SetRelativeTo(ITokenFile* parent) = 0; - virtual ITokenFile* MakeRelativeTo(ITokenFile* parent) = 0; - - virtual void SetFilePath(const Blob& filepath, int filetype) = 0; - virtual void SetFilePath(move_from filepath, int filetype) = 0; - - virtual const Blob& SelectApp(ISCardOS* os, int selectmode) = 0; - virtual const Blob& SelectFile(ISCardOS* os, int selectmode) = 0; - - virtual bool ProbeFilePath(ISCardOS* os, bool cut_non_existing) = 0; - }; - -} // namespace act - -#endif // ACT_TokenFile_h diff --git a/actlibrary/SLES-10-i686/Release/include/actITokenFileCache.h b/actlibrary/SLES-10-i686/Release/include/actITokenFileCache.h deleted file mode 100644 index 0991040..0000000 --- a/actlibrary/SLES-10-i686/Release/include/actITokenFileCache.h +++ /dev/null @@ -1,42 +0,0 @@ -// --------------------------------------------------------------------------- -// Name: actITokenFileCache.h -// Product: cv act library -// Purpose: Interface used for FID based binary cache. -// -// Copyright: (c) 2008 cv cryptovision GmbH -// all rights reserved. -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -// -// Autor: Markus Tesche -// Date: 11/07/2008 -// --------------------------------------------------------------------------- - -#ifndef ACT_ITokenFileCache_h -#define ACT_ITokenFileCache_h - -#include "actIRefCounted.h" - -#include - -namespace act -{ - class Blob; - class IToken; - - // - // ITokenFileCache - class ITokenFileCache : public IRefCounted - { - protected: - typedef std::map CacheMap; - - public: - virtual bool InitCache(IToken* token) = 0; - virtual Blob GetCache(const Blob& filepath) const = 0; - virtual void PutCache(const Blob& filepath, const Blob& memory) const = 0; - }; - -} // namespace act - -#endif // ACT_ITokenFileCache_h diff --git a/actlibrary/SLES-10-i686/Release/include/actITokenFileOwner.h b/actlibrary/SLES-10-i686/Release/include/actITokenFileOwner.h deleted file mode 100644 index 1762d31..0000000 --- a/actlibrary/SLES-10-i686/Release/include/actITokenFileOwner.h +++ /dev/null @@ -1,37 +0,0 @@ -// --------------------------------------------------------------------------- -// Name: actITokenFileOwner.h -// Product: cv act library -// Purpose: The ITokenFileOwner interface is implemented by objects which -// refer to a specific location on token represented by ITokenFile. -// -// Copyright: (c) 2010 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -// -// Autor: Markus Tesche -// Date: 28/03/2010 -// --------------------------------------------------------------------------- - -#ifndef ACT_ITokenFileOwner_h -#define ACT_ITokenFileOwner_h - -namespace act -{ - class ITokenFile; - - // - // ITokenFileOwner - class ITokenFileOwner - { - public: - virtual ITokenFile* GetPath() const = 0; - virtual void SetPath(ITokenFile* file) = 0; - - protected: - virtual ~ITokenFileOwner() { } - }; - -} // namespace act - -#endif // ACT_ITokenFileOwner_h diff --git a/actlibrary/SLES-10-i686/Release/include/actITokenInitializer.h b/actlibrary/SLES-10-i686/Release/include/actITokenInitializer.h deleted file mode 100644 index 0de6aef..0000000 --- a/actlibrary/SLES-10-i686/Release/include/actITokenInitializer.h +++ /dev/null @@ -1,131 +0,0 @@ -// --------------------------------------------------------------------------- -// Name: actITokenInitializer.h -// Product: cv act library -// Purpose: ITokenInitializer interface declares common token profile initialization functionality. -// -// Copyright: (c) 2009 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -// -// Autor: Markus Tesche -// Date: 04/20/2009 -// --------------------------------------------------------------------------- - -#ifndef ACT_ITokenInitializer_h -#define ACT_ITokenInitializer_h - -#include "actBlob.h" -#include "actTokenBase.h" -#include "actIRefCounted.h" - -namespace act -{ - extern const byte PIN_PAD_CHAR; - - struct TIData - { - private: - TIData(const TIData&) throw(); - TIData& operator=(const TIData&) throw(); - - public: - TIData(const char* _profile_name = 0) - : profile_name(_profile_name) - , profile_type(PROFILE_UNKNOWN) - , retry_counter(3) - , pin_pad_byte(PIN_PAD_CHAR) - , enable_pin_padding(false) - , enable_pin_pce_so(false) - , enable_pin_pce_user(false) - , enable_minidriver(false) - , enable_minidriver_pnp(false) - , enable_biometric(false) - , enable_biometric_pins(false) - , load_only(false) - , load_package_MoC(false) - , load_package_2048(false) - , load_package_ecc(false) - { } - - Blob atr_historical_bytes; - Blob atr_historical_bytes_suffix; - Blob card_pin; - Blob so_pin; - Blob user_pin; - Blob serial_number; - Blob last_update_pin_utc; - Blob challenge_response_key; - Blob binary_data; - - const char* profile_name; - ProfileType profile_type; - - short retry_counter; - byte pin_pad_byte; - - bool enable_pin_padding; - bool enable_pin_pce_so; - bool enable_pin_pce_user; - bool enable_minidriver; - bool enable_minidriver_pnp; - bool enable_biometric; - bool enable_biometric_pins; - - bool load_only; - bool load_package_MoC; - bool load_package_2048; - bool load_package_ecc; - }; - - struct TITokenInfo - { - TITokenInfo(size_t pin_len_max, size_t pin_len_min, size_t _key_len_cr) - : serial_number_len(16) - , key_len_cr(_key_len_cr) - { - pin_len_max_admin = pin_len_max_so = pin_len_max_user = pin_len_max; - pin_len_min_admin = pin_len_min_so = pin_len_min_user = pin_len_min; - } - - size_t serial_number_len; - - size_t key_len_cr; - - size_t pin_len_max_admin; - size_t pin_len_max_so; - size_t pin_len_max_user; - - size_t pin_len_min_admin; - size_t pin_len_min_so; - size_t pin_len_min_user; - }; - - class ISCardOS; - class IProfileGenerator; - class ISCardCmdObserver; - - // - // ITokenInitializer - class ITokenInitializer : public IRefCounted - { - public: - virtual ISCardOS* GetOS() const= 0; - virtual const TITokenInfo& GetTokenInfo() const = 0; - virtual const ProfileType* GetSupportedProfileList() const = 0; - - virtual bool SupportsProfile(ProfileType profile_type) const = 0; - virtual void SetGenerator(IProfileGenerator* generator) = 0; - virtual void SetObserver(ISCardCmdObserver* observer) = 0; - - virtual bool EraseProfile(const Blob& card_pin) = 0; - virtual bool ExistProfile(bool& is_pkcs15, bool& requires_adminpin) = 0; - virtual void CreateProfile(TIData& data, ProfileType profile_type) = 0; - virtual void FinalizeProfile(TIData& data) = 0; - - virtual void PinChangeReminder(TIData& data, bool enable) = 0; - }; - -} // namespace act - -#endif // ACT_ITokenInitializer_h diff --git a/actlibrary/SLES-10-i686/Release/include/actITokenKey.h b/actlibrary/SLES-10-i686/Release/include/actITokenKey.h deleted file mode 100644 index 47e21bb..0000000 --- a/actlibrary/SLES-10-i686/Release/include/actITokenKey.h +++ /dev/null @@ -1,64 +0,0 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actITokenKey.h -// Product: cv act library -// Purpose: The interface ITokenKey enables access to a key stored in a secure token. -// -// Copyright: (c) 2003 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_ITokenKey_h -#define ACT_ITokenKey_h - -#include "actIRefCounted.h" -#include "actISignatureKey.h" -#include "actITokenAuthOwner.h" -#include "actITokenFileOwner.h" - -#include "actTokenBase.h" - -namespace act -{ - class IToken; - class ITokenConfig; - - // - // ITokenKeyIterator - class ITokenKeyIterator : public IRefCounted - { - public: - virtual void Reset(ITokenFile* parent = 0) = 0; - virtual IKey* Next() = 0; - }; - - // - // ITokenKey - class ITokenKey - : public ISignatureKey - , public ITokenAuthOwner - , public ITokenFileOwner - { - public: - virtual ITokenKey* Clone() const = 0; - - virtual KeyType GetType() const = 0; - virtual IToken* GetToken() const = 0; - virtual const char* GetName() const = 0; - virtual void Configure(ITokenConfig* tkcfg) = 0; - - virtual Blob GetCertificate() const = 0; - virtual IKey* GetPublicKey() const = 0; - - virtual void VerifyPin(const Blob& pin) = 0; - - virtual Blob GetID() const = 0; - virtual Blob GetSubject() const = 0; - - virtual ITokenKeyIterator* Iterator(KeyType type, const Blob& authId = Blob()) const = 0; - }; - -} // namespace act - -#endif // ACT_ITokenKey_h diff --git a/actlibrary/SLES-10-i686/Release/include/actITokenPIN.h b/actlibrary/SLES-10-i686/Release/include/actITokenPIN.h deleted file mode 100644 index 3da8440..0000000 --- a/actlibrary/SLES-10-i686/Release/include/actITokenPIN.h +++ /dev/null @@ -1,221 +0,0 @@ -// --------------------------------------------------------------------------- -// Name: actITokenPIN.h -// Product: cv act library -// Purpose: The class ITokenPIN defines the interfaces of the PIN operations -// -// Copyright: (c) 2002 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -// -// Autor: Dr. Xiangdong Wang (XWG) -// Date: 04/05/2002 -// --------------------------------------------------------------------------- - -#ifndef ACT_ITokenPIN_h -#define ACT_ITokenPIN_h - -#include "actBasics.h" -#include "actDate.h" -#include "actBlob.h" - -#include "actITokenAuth.h" -#include "actITokenFileOwner.h" -#include "actIRefCounted.h" - -#include "actTokenBase.h" - -namespace act -{ - enum PINType - { - UNKNOWN_PIN = 0x0000, - SO_PIN = 0x0001, - USER_PIN = 0x0002, - UNBLOCK_PIN = 0x0003, - - PIN_MASK = 0x000F, - - EXAUTH_PIN = 0x0010, - BIOMETRIC_PIN = 0x0020, - CERTBASED_PIN = 0x0040, - - BAC_PIN = 0x0100, - ICAO_PIN = 0x0200, - - EAC_PACE_PIN = 0x0400, - EAC_TA_PIN = 0x0800, - EAC_CA_PIN = 0x1000, - - PIN_TYPE_MASK = 0x7fff, - - AUTHENTICATED_PIN = 0x8000, // Current authenticated PIN - - // combined types - EXAUTH_SO_PIN = EXAUTH_PIN | SO_PIN, - EXAUTH_UNBLOCK_PIN = EXAUTH_PIN | UNBLOCK_PIN, - - BIOMETRIC_USER_PIN = BIOMETRIC_PIN | USER_PIN, - BIOMETRIC_SO_PIN = BIOMETRIC_PIN | SO_PIN, - - EAC_PACE_UNKNOWN_PIN = EAC_PACE_PIN | UNKNOWN_PIN, - EAC_PACE_SO_PIN = EAC_PACE_PIN | SO_PIN, - EAC_PACE_USER_PIN = EAC_PACE_PIN | USER_PIN, - EAC_PACE_UNBLOCK_PIN = EAC_PACE_PIN | UNBLOCK_PIN, - - EAC_TA_UNKNOWN_PIN = EAC_TA_PIN | UNKNOWN_PIN, - EAC_TA_USER_PIN = EAC_TA_PIN | USER_PIN, - - EAC_CA_UNKNOWN_PIN = EAC_CA_PIN | UNKNOWN_PIN, - EAC_CA_USER_PIN = EAC_CA_PIN | USER_PIN, - }; - - enum PINFlags - { - PIN_INITIALIZED = (1 << 0), - PIN_IS_LOCAL = (1 << 1), - PIN_CASE_SENSITIVE = (1 << 2), - PIN_CHANGE_DISABLED = (1 << 3), - PIN_UNBLOCK_DISABLED = (1 << 4), - PIN_DISABLE_ALLOWED = (1 << 5), - PIN_NEEDS_PADDING = (1 << 6), - PIN_NEEDS_UPDATE = (1 << 7), - PIN_REQUIRES_SM = (1 << 8), - PIN_REQUIRES_NO_DATA = (1 << 9), - PIN_REQUIRES_ENCRYPTION = (1 << 10), - PIN_CHANGE_REQUIRES_OLD = (1 << 11), - PIN_IS_DEFAULT = (1 << 12), // marks the one and only default pin - - PIN_FLAGS_MASK = (1 << 13) - 1, - - // combined flags - PIN_FLAGS = PIN_INITIALIZED | PIN_IS_LOCAL | PIN_CASE_SENSITIVE, - PIN_FLAGS_DEFAULT = PIN_IS_DEFAULT | PIN_FLAGS, - PIN_FLAGS_SO = PIN_INITIALIZED | PIN_IS_LOCAL | PIN_CASE_SENSITIVE | PIN_UNBLOCK_DISABLED, - PIN_FLAGS_EXAUTH = PIN_INITIALIZED | PIN_IS_LOCAL, - PIN_FLAGS_BIOMETRIC = PIN_INITIALIZED | PIN_IS_LOCAL, - PIN_FLAGS_CERTBASED = PIN_INITIALIZED | PIN_IS_LOCAL | PIN_REQUIRES_NO_DATA | PIN_CHANGE_DISABLED | PIN_UNBLOCK_DISABLED, - }; - - enum AuthDataEncoding - { - PIN_ENCODING_UNKNOWN = -1, - PIN_ENCODING_BINARY = 0, - PIN_ENCODING_ASCII_NUMERIC, - PIN_ENCODING_UTF8, - PIN_ENCODING_BCD, - PIN_ENCODING_HALF_NIBBLE_BCD, - PIN_ENCODING_ISO9564_1, - - PIN_ENCODING = PIN_ENCODING_ASCII_NUMERIC, - }; - - enum AuthId - { - AUTHID_INVALID = 0x00, - }; - - enum BioFinger - { - FINGER_UNKNOWN = 0, - FINGER_RIGHT_THUMB = 1, - FINGER_RIGHT_INDEX = 2, - FINGER_RIGHT_MIDDLE = 3, - FINGER_RIGHT_RING = 4, - FINGER_RIGHT_LITTLE = 5, - FINGER_LEFT_THUMB = 6, - FINGER_LEFT_INDEX = 7, - FINGER_LEFT_MIDDLE = 8, - FINGER_LEFT_RING = 9, - FINGER_LEFT_LITTLE = 10 - }; - - class IAuthIdRef; - class ITokenFile; - class IToken; - class ISCardOS; - class AuthInfo; - - // - // ITokenPIN - class ITokenPIN - : public IRefCounted - , public ITokenFileOwner - { - public: - virtual ITokenPIN* Clone() const = 0; - virtual bool Equals(const ITokenPIN* other) const = 0; - virtual int Compare(const ITokenPIN* other) const = 0; - - virtual int GetType() const = 0; - virtual int GetUsage() const = 0; - virtual byte GetObjRef() const = 0; - virtual IToken* GetToken() const = 0; - virtual const char* GetName() const = 0; - virtual AuthDataEncoding GetEncoding() const = 0; - - virtual const AuthInfo* GetInfo() const = 0; - virtual void SetInfo(const AuthInfo* ai) = 0; - - virtual void SetDefault(bool is_default) = 0; - virtual bool IsDefault() const = 0; - - virtual bool IsInitialized() const = 0; - virtual bool IsAuthenticated() const = 0; - - virtual bool NeedsUpdate() const = 0; - virtual bool NeedsPINValue() const = 0; - - virtual bool GetLengthInfo(LengthInfo& info) const = 0; - virtual bool CheckPinLength(const Blob& pin) const = 0; - virtual bool GetLastChange(Date& date, bool& supported) const = 0; - - virtual void VerifyPin(const Blob& pin) = 0; - - // NOTE: ChangePin preserves the authentication state if successfull - // TODO: MTE: Describe in detail! - virtual void ChangePin(const Blob& oldpin, const Blob& newpin) = 0; - - // NOTE: UnlockPin preserves the authentication state if successfull - // TODO: MTE: Describe in detail! - virtual void UnlockPin(ITokenPIN* so, const Blob& pin, const Blob& newpin) = 0; - - // NOTE: SetPinValue preserves the authentication state if successfull - // TODO: MTE: Describe in detail! - virtual void SetPinValue(ITokenPIN* so, const Blob& so_pin, const Blob& newpin) = 0; - - virtual void Select(ISCardOS* os = 0) const = 0; - - virtual ITokenPIN* GetParent() const = 0; - - virtual IAuthIdRef* GetAuthIdRef() const = 0; - virtual IAuthIdRef* GetParentAuthIdRef() const = 0; - - // Bio extensions - virtual byte GetFinger() const = 0; - virtual bool GetBioHeader(Blob& bioheader) = 0; - - // ExternalAuth Key extensions - virtual Blob GetChallenge() const = 0; - virtual void ResetChallenge() = 0; - virtual Blob ComputeResponse(const Blob& auth_key, const Blob& challenge) const = 0; - - // Certificate based authentication extensions - virtual void SetCHAT(const Blob& chat) = 0; - virtual void SetCHAT(move_from chat) = 0; - virtual Blob GetCHAT() const = 0; - - protected: - // SCard Functionality - virtual Blob doGetChallenge() const = 0; - virtual void doResetChallenge() const = 0; - virtual void doVerify(const Blob& pin) const = 0; - virtual SecStatus doGetSecurityStatus(Blob& context) const = 0; - - private: - friend class TokenAuth; - }; - -} // namespace act - -#endif // ACT_ITokenPIN_h diff --git a/actlibrary/SLES-10-i686/Release/include/actIX509CRL.h b/actlibrary/SLES-10-i686/Release/include/actIX509CRL.h deleted file mode 100644 index 750ddd6..0000000 --- a/actlibrary/SLES-10-i686/Release/include/actIX509CRL.h +++ /dev/null @@ -1,48 +0,0 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actIX509CRL.h -// Product: cv act library -// Purpose: -// -// Copyright: (c) 2000 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_IX509CRL_h -#define ACT_IX509CRL_h -#include "actICRL.h" -#include "actX509Extension.h" - -namespace act -{ - - class IX509CRL: public ICRL - { - public: - virtual void SetThisUpdate(const Date &date )=0; - virtual void SetNextUpdate(const Date &date )=0; - virtual void GetThisUpdate(Date &date ) const=0; - virtual void GetNextUpdate(Date &date ) const=0; - - virtual X509Extension GetExtension(const char* oid) const=0; - virtual X509Extension GetExtension(const act::Blob& oidbl) const=0; - virtual void SetExtension(const X509Extension &ext)=0; - virtual X509Extension GetNextExtension(const X509Extension& ext) const=0; - virtual void RemoveExtension(const char* oid)=0; - - virtual Blob GetNextEntry(const Blob& certsernr) const=0; - - virtual void SetEntryRevocationDate(const Blob& certsn, const Date &vnbefore )=0; - virtual void GetEntryRevocationDate(const Blob& certsn, Date &vnbefore ) const=0; - - virtual X509Extension GetEntryExtension(const Blob& certsn, const char* oid) const=0; - virtual void SetEntryExtension(const Blob& certsn, const X509Extension &ext)=0; - virtual X509Extension GetNextEntryExtension(const Blob& certsn,const X509Extension& ext) const=0; - virtual void RemoveEntryExtension(const Blob& certsn,const char* oid)=0; - - }; -} // namespace act - -#endif - diff --git a/actlibrary/SLES-10-i686/Release/include/actIX509Certificate.h b/actlibrary/SLES-10-i686/Release/include/actIX509Certificate.h deleted file mode 100644 index 85d6907..0000000 --- a/actlibrary/SLES-10-i686/Release/include/actIX509Certificate.h +++ /dev/null @@ -1,46 +0,0 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actIX509Certificate.h -// Product: cv act library -// Purpose: The abstract class IX509Certificate enables access to a certificate, -// e.g. its public key and the corresponding validity. -// -// Copyright: (c) 2000 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_IX509Certificate_h -#define ACT_IX509Certificate_h - -#include "actBasics.h" -#include "actDate.h" -#include "actICertificate.h" -#include "actX509Extension.h" - -namespace act -{ - class IKey; - class Blob; - - class IX509Certificate : public ICertificate - { - public: - - virtual void SetValidityNotBefore(const Date &vnbefore ) =0; - virtual void SetValidityNotAfter(const Date &vnafter ) =0; - virtual void GetValidityNotBefore(Date &vnbefore ) const =0; - virtual void GetValidityNotAfter(Date &vnafter ) const =0; - - virtual bool CheckValidity(const Date& date = Date() ) const =0; - - virtual X509Extension GetExtension(const char* oid) const=0; - virtual X509Extension GetExtension(const act::Blob& oidbl) const=0; - virtual void SetExtension(const X509Extension &ext)=0; - virtual X509Extension GetNextExtension(const X509Extension& ext) const=0; - virtual void RemoveExtension(const char* oid)=0; - }; -} // namespace act - -#endif - diff --git a/actlibrary/SLES-10-i686/Release/include/actInit.h b/actlibrary/SLES-10-i686/Release/include/actInit.h deleted file mode 100644 index 36f0099..0000000 --- a/actlibrary/SLES-10-i686/Release/include/actInit.h +++ /dev/null @@ -1,578 +0,0 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actInit.h -// Product: cv act library -// Purpose: initialize the map entries of the objects -// -// Copyright: (c) 2007 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -// remarks: -// declare NO_SMARTCARD: no smartcard support required. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef actInit_h -#define actInit_h - -#include "actEnv.h" -#include "actKeyKit.h" -#include "actKeyReg.h" -#include "actBlockCipherKit.h" -#include "actBlockCipherReg.h" -#include "actBlockCipherModeReg.h" -#include "actBlockCipherModeKit.h" -#include "actStreamCipherKit.h" -#include "actStreamCipherReg.h" -#include "actHashKit.h" -#include "actHashReg.h" -#include "actEMSAReg.h" -#include "actEMSAKit.h" -#include "actDerivatorReg.h" -#include "actDerivatorKit.h" -#include "actPaddingReg.h" -#include "actPaddingKit.h" -#include "actCertificateReg.h" -#include "actCertificateKit.h" -#include "actX509KeyReg.h" -#include "actX509SignReg.h" -#include "actX509SignHashReg.h" -#include "actX509Kit.h" -#include "actDefaultRNG.h" -#include "actRNGKit.h" - -#ifndef NO_SMARTCARD -// NOTE: To Enable support for additional smartcards / profiles define: -// ACT_SUPPORT_TCOS_NETKEY30 -# include "actSCardOSReg.h" -# include "actSCardOSKit.h" -# include "actSCardTokenReg.h" -# include "actSCardTokenKit.h" -# include "actSubsystemReg.h" -# include "actSubsystemKit.h" -# include "actSlotMonitorReg.h" -# include "actSlotMonitorKit.h" -# include "actTokenExtensionReg.h" -# include "actTokenExtensionKit.h" -# include "actTokenAuthProtocolReg.h" -# include "actTokenAuthProtocolKit.h" -# include "actJCAppletKit.h" -# include "actJCAppletReg.h" -# include "actPKCS15BehaviorReg.h" -# include "actPKCS15BehaviorKit.h" -# include "actProfileGeneratorReg.h" -# include "actProfileGeneratorKit.h" -#endif // NO_SMARTCARD - -namespace act -{ - // ------------------------------------------------------------------------ - const KeyMapEntry KeyMap[] = - { - { "BlockCipher", CreateBlockCipherKey }, - { "StreamCipher", CreateStreamCipherKey }, - - { "IES", CreateIESKey }, - { "DSA", CreateDSAKey }, - { "RSA", CreateRSAKey }, - { "ECDSA", CreateECDSAKey }, - { "ECGDSA", CreateECGDSAKey }, - - { "DH", CreateDHKey }, - { "ECDH", CreateECDHKey }, - - { "HashMAC", CreateHashMACKey }, - { "CBCMAC", CreateCBCMACKey }, - { "SecretKeyMAC", CreateSecretKeyMACKey }, - { "RetailCFBMAC", CreateRetailCFBMACKey }, - { "iMAC3", Create_iMAC3Key }, // ISO9797-1 M2 Alg 3 MAC8 - { "CMAC", CreateCMACKey }, // NIST 800-38B CMAC - { 0, 0 } - }; - - // ------------------------------------------------------------------------ - const BlockCipherMapEntry BlockCipherMap[] = - { - { "AES", CreateRijndael }, - { "DES", CreateDES }, - { "TripleDES", CreateTripleDES }, - { "CAST128", CreateCAST128 }, - { "BlowFish", CreateBlowFish }, - { "Mars", CreateMars }, - { "Serpent", CreateSerpent }, - { "Rijndael", CreateRijndael }, - { "TwoFish", CreateTwoFish }, - { "RC2", CreateRC2 }, - //{ "RC6", CreateRC6 }, - { 0, 0 } - }; - - // ------------------------------------------------------------------------ - const BlockCipherModeMapEntry BlockCipherModeMap[] = - { - { "ECB", CreateECBMode }, - { "CBC", CreateCBCMode }, - { "CFB", CreateCFBMode }, - { "OFB", CreateOFBMode }, - { "CTR", CreateCTRMode }, - { 0, 0 } - }; - - // ------------------------------------------------------------------------ - const StreamCipherMapEntry StreamCipherMap[] = - { - { "ARC4", CreateARC4 }, - { 0, 0 } - }; - - // ------------------------------------------------------------------------ - const HashMapEntry HashMap[] = - { - { "MD2", CreateMD2 }, - { "MD4", CreateMD4 }, - { "MD5", CreateMD5 }, - { "RIPEMD128", CreateRipemd128 }, - { "RIPEMD160", CreateRipemd160 }, - { "SHA0", CreateSHA0 }, - { "SHA1", CreateSHA1 }, - { "SHA224", CreateSHA224 }, - { "SHA256", CreateSHA256 }, - { "SHA384", CreateSHA384 }, - { "SHA512", CreateSHA512 }, - { "DummyHash", CreateDummyHash }, - { 0, 0 } - }; - - // ------------------------------------------------------------------------ - const EMSAMapEntry EMSAMap[] = - { - { "EMSA1", CreateEMSA1 }, - { "PKCS1V1_5EMSA", CreatePKCS1V1_5EMSA }, - { "TLS_EMSA", CreateTLS_EMSA}, - { "PKCS1_PSS_EMSA", CreatePKCS1_PSS_EMSA }, - { "DummyEMSA", CreateDummyEMSA }, // Used for "Hash on Card" - { 0, 0 } - }; - - // ------------------------------------------------------------------------ - const DerivatorMapEntry DerivatorMap[] = - { - { "KDF1", CreateKDF1 }, // IEEE P1363 KDF1 - { "KDF2", CreateX963KDF }, // IEEE P1363 KDF2 (= X963KDF) - { "X963KDF", CreateX963KDF }, // ANSI X9.63 KDF - { "PBKDF1", CreatePBKDF1 }, // PKCS#5 PBKDF1 - { "PBKDF2", CreatePBKDF2 }, // PKCS#5 PBKDF2 - { "EACKDF", CreateEACKDF }, // EAC 2.01, BSI TR-03110 A.2.3 - { "SessionKDF", CreateEACKDF }, // BSI TR-03111 (= EACKDF) - { 0, 0 } - }; - - // ------------------------------------------------------------------------ - const PaddingMapEntry PaddingMap[] = - { - { "PKCS5", CreatePKCS5Pad }, - { "RSAES", CreatePKCS1V1_5EMEPad }, - { "ISO", CreateOneAndZerosPad }, - { "ISO9796", CreateISO9796Pad }, - { "NOPAD", CreateNoPad }, - { 0, 0 } - }; - - // ------------------------------------------------------------------------ - const CertificateMapEntry CertificateMap[] = - { - { "X509", CreateX509Certificate }, - { "CV", CreateCVCertificate }, - { 0, 0 } - }; - - // ------------------------------------------------------------------------ - const CRLMapEntry CRLMap[] = - { - { "X509", CreateX509CRL }, - { 0, 0 } - }; - - // ------------------------------------------------------------------------ - const X509KeyMapEntry X509KeyMap[] = - { - { "1.2.840.113549.1.1.1", CreateRSAKey, X509ToRSA, RSAToX509 }, - { "2.5.8.1.1", CreateRSAKey, X509ToRSA, RSAToX509 }, - { "1.2.840.10040.4.1", CreateDSAKey, X509ToDSA, DSAToX509 }, - { "1.3.14.3.2.20", CreateDSAKey, X509ToDSA, DSAToX509 }, - { "1.3.14.3.2.12", CreateDSAKey, X509ToDSA, DSAToX509 }, // secude DSA oid - { "1.2.840.10046.2.1", CreateDHKey, X509ToDH, DHToX509 }, - { "1.2.840.10045.2.1", CreateECDSAKey, X509ToECDSA, ECDSAToX509 }, - { "1.2.840.10045.2.1", CreateECDHKey, X509ToECDSA, ECDSAToX509 }, - { 0, 0, 0, 0 } - }; - - // ------------------------------------------------------------------------ - const X509SignMapEntry X509SignMap[] = - { - { CreateRSAKey, RSAGetAlgID, RSASetAlgID }, - { CreateDSAKey, DSAGetAlgID, DSASetAlgID }, - { CreateECDSAKey, ECDSAGetAlgID, ECDSASetAlgID }, - { CreateDHKey, DHGetAlgID, DHSetAlgID }, - { CreateECDHKey, ECDHGetAlgID, ECDHSetAlgID }, - { 0, 0, 0 } - }; - - // ------------------------------------------------------------------------ - const X509SignHashMapEntry X509SignHashMap[] = - { - // RSA - { "1.2.840.113549.1.1.2", "MD2", "RSA" }, // md2WithRSAEncryption - { "1.2.840.113549.1.1.3", "MD4", "RSA" }, // md4WithRSAEncryption - { "1.2.840.113549.1.1.4", "MD5", "RSA" }, // md5WithRSAEncryption - { "1.2.840.113549.1.1.5", "SHA1", "RSA" }, // shaWithRSAEncryption - { "1.3.14.3.2.29", "SHA1", "RSA" }, - { "1.2.840.113549.1.1.11", "SHA256", "RSA" }, // sha256WithRSAEncryption - { "1.2.840.113549.1.1.12", "SHA384", "RSA" }, // sha384WithRSAEncryption - { "1.2.840.113549.1.1.13", "SHA512", "RSA" }, // sha512WithRSAEncryption - { "1.2.840.113549.1.1.14", "SHA224", "RSA" }, // sha224WithRSAEncryption - { "1.3.36.3.3.1.2", "RIPEMD160", "RSA" }, - { "1.3.36.3.3.1.3", "RIPEMD128", "RSA" }, - // DSA - { "1.2.840.10040.4.3", "SHA1", "DSA" }, - { "1.3.14.3.2.28", "SHA1", "DSA" }, - { "1.3.14.3.2.27", "SHA1", "DSA" }, // secude DSA oid - // ECDSA - { "1.2.840.10045.4.1", "SHA1", "ECDSA" }, // ecdsa-with-Sha1 - { "1.2.840.10045.2.1", "SHA1", "ECDSA" }, // ecdsa-with-Sha1 (deprecated) - { "1.2.840.10045.4.3.1", "SHA224", "ECDSA" }, // ecdsa-with-Sha224 - { "1.2.840.10045.4.3.2", "SHA256", "ECDSA" }, // ecdsa-with-Sha256 - { "1.2.840.10045.4.3.3", "SHA384", "ECDSA" }, // ecdsa-with-Sha384 - { "1.2.840.10045.4.3.4", "SHA512", "ECDSA" }, // ecdsa-with-Sha512 - // DH - { "1.3.6.1.5.5.7.6.4", "SHA1", "DH" }, // DH-POP - // ECDH - { "1.2.840.10045.2.1", "SHA1", "ECDH" }, // "ECDH-POP" - { 0, 0, 0 } - }; - -#ifndef NO_SMARTCARD - // ------------------------------------------------------------------------ - const SCardOSMapEntry SCardOSMap[] = - { - // NOTE: Only lower case historical bytes ! - /* - { "0064050a020131809000", CreateTCOS }, // NetKey (TCOS V2R1) - { "00640560020331809000", CreateTCOS }, // NetKey (TCOS V2R3) - { "0064057b020331809000", CreateTCOS }, // NetKey (TCOS V2R?) - { "00640514020231809000", CreateTCOS }, // etrust (TCOS V2R2) - { "00640561020331809000", CreateTCOS }, // TCOS USB Crypt Token - { "0068d276000028ff051e3180009000", CreateMicardOS }, // Micardo P2.1 - { "4d4943323045", CreateMicardo20E }, // Micardo EC 2.0 - { "0068d276000028ff05233180009000", CreateMicardo23E }, // Micardo EC 2.3 - */ - - // ACOS - { "454d56203033202006", CreateACOS_D01 }, // Austria Card ACOS EMV-D01 - { "44492030324d", CreateACOS_D01 }, // Austria Card ACOS EMV-D01 contactless - { "455041000000000228505900000000", CreateACOS_A04 }, // Austria Card ACOS EMV-A04/A05 - { "455041000000000000000000000000", CreateACOS_A04 }, // Austria Card ACOS EMV-A04/A05 - - // CardOS - { "c802", CreateCardOS_M4 }, // CardOS M4.0 siemens profile - { "c803", CreateCardOS_M4 }, // CardOS M4.01 siemens profile - { "c804", CreateCardOS_M4 }, // CardOS M4.01a siemens profile - { "4d346376", CreateCardOS_M4 }, // CardOS M4.01(a) cv profile - { "4d3463765f4d", CreateCardOS_M4_MoC }, // CardOS M4.01_M cv profile - { "4d3463765f45", CreateCardOS_M4_ECC }, // CardOS M4.01_E cv profile - { "c806", CreateCardOS_V4 }, // CardOS V4.2 - { "c807", CreateCardOS_V4 }, // CardOS V4.3 - { "c808", CreateCardOS_V4 }, // CardOS V4.3B - { "c809", CreateCardOS_V4 }, // CardOS V4.2B - { "c80a", CreateCardOS_V4 }, // CardOS V4.2B DI - { "0000c80a3381b100", CreateCardOS_V4 }, // CardOS V4.2B DI contactless - { "c80b", CreateCardOS_V4 }, // CardOS V4.2C - { "c80d", CreateCardOS_V4 }, // CardOS V4.4 - { "56346376", CreateCardOS_V4 }, // CardOS V4.2/4.3/4.3B cv profile - { "563432626376", CreateCardOS_V4 }, // CardOS V4.2b cv profile - { "5634326244496376", CreateCardOS_V4 }, // CardOS V4.2b DI cv profile - { "563432636376", CreateCardOS_V4 }, // CardOS V4.2c cv profile - { "5634346376", CreateCardOS_V4 }, // CardOS V4.4 cv profile - { "563463765f45", CreateCardOS_V4_ECC }, // CardOS V4.3B ECC cv profile - { "006b0508c806012101434e53103180", CreateCardOS_V4 }, // CardOS V4.2 CNS profile, 2004.02.20 - { "006b0508c807012101434e53103180", CreateCardOS_V4 }, // CardOS V4.3 CNS profile, 2004.02.20 - { "006b0508c808012101434e53103180", CreateCardOS_V4 }, // CardOS V4.3B CNS profile, 2004.02.20 - { "006b0508c806011101434e53103180", CreateCardOS_V4 }, // CardOS V4.2 CNS profile, 2005.03.11 - { "006b0508c807011101434e53103180", CreateCardOS_V4 }, // CardOS V4.3 CNS profile, 2005.03.11 - { "006b0508c808011101434e53103180", CreateCardOS_V4 }, // CardOS V4.3B CNS profile, 2005.03.11 - { "006b0508c808011101434e53103180", CreateCardOS_V4 }, // CardOS V4.3B CNS profile, 2005.03.11 - { "4b53776973735369676e", CreateCardOS_V4 }, // CardOS V4.3B/V4.4 ATR by SwissSign - - // STARCOS - //{ "53504b32339000", CreateStarCOS_3_0}, // G&D STARCOS SPK 2.3 - { "80670412b0030300008101", CreateStarCOS_3_0 }, // G&D STARCOS 3.0 (creational state) - { "80670412b0030300008105", CreateStarCOS_3_0 }, // G&D STARCOS 3.0 - { "80670412b003030000", CreateStarCOS_3_0 }, // G&D STARCOS 3.0 contactless - { "80655343010d067394211b8101", CreateStarCOS_3_0 }, // G&D STARCOS 3.1 (creational state) - { "80655343010d067394211b8105", CreateStarCOS_3_0 }, // G&D STARCOS 3.1 - { "0064051eb20031b0739621db019000", CreateStarCOS_3_2 }, // G&D STARCOS 3.2 (creational state) - { "0064051eb20031b0739621db059000", CreateStarCOS_3_2 }, // G&D STARCOS 3.2 - - // TCOS -#ifdef ACT_SUPPORT_TCOS_NETKEY30 - { "00640411030131c073f701d0009000", CreateTCOS_3_0 }, // NetKey (TCOS 3.0) -#endif - // JavaCards - { "8073002113574a544861314a00", CreateJavaCardOS_2_2 }, // G&D SmartCafe Expert 64 (cfg1) - { "8073002113574a544861314700", CreateJavaCardOS_2_2 }, // G&D SmartCafe Expert 64 (cfg2) - { "8073002113574a544861314800", CreateJavaCardOS_2_2 }, // G&D SmartCafe Expert 64 (cfg3) - { "8073002113574a544861314b00", CreateJavaCardOS_2_2 }, // G&D SmartCafe Expert 64 (cfg4) - { "8073002113574a544861314c00", CreateJavaCardOS_2_2 }, // G&D SmartCafe Expert 64 (cfg5) - { "8073002113574a544861314900", CreateJavaCardOS_2_2 }, // G&D SmartCafe Expert 64 (cfg8) - { "404d4f504153530000000000000000", CreateJavaCardOS_2_2 }, // G&D SmartCafe Expert 64 (XMC2) - - { "534653452d43583332322d56180308", CreateJavaCardOS_2_1_1 },// G&D SmartCafe Expert 2.0 - { "0073c84013009000", CreateJavaCardOS_2_2_1 }, // G&D SmartCafe Expert 3.0 / 3.1 / 3.1 contactless - { "4138004133b1020073c840130090", CreateJavaCardOS_2_2_1 }, // G&D SmartCafe Expert 3.1 contactless (SCM SDI010, Firmware V6.28) - { "4138004133b10073c84013009000", CreateJavaCardOS_2_2_1 }, // G&D SmartCafe Expert 3.1 contactless (SCM SDI010, Firmware V6.32) - { "73667465206364313434", CreateJavaCardOS_2_2_1 }, // G&D SmartCafe Expert 3.2 PIV 144 KB - { "736674652D6364303830", CreateJavaCardOS_2_2_1 }, // G&D SmartCafe Expert 3.2 PIV 80 KB - { "73667465", CreateJavaCardOS_2_2_1 }, // G&D SmartCafe Expert 3.2 (sfte) - { "736674652d6e66", CreateJavaCardOS_2_2_1 }, // G&D SmartCafe Expert 3.2 (sfte-nf) - { "73c840130090009b", CreateJavaCardOS_2_2_1 }, // G&D SmartCafe Expert 3.2 USB Token - { "736674652063643038302d6e66", CreateJavaCardOS_2_2_1 }, // G&D SmartCafe Expert 3.2 (sfte cd080-nf) - { "53462d3443432d3031", CreateJavaCardOS_2_2_1 }, // G&D SmartCafe Expert 5.0 - { "53504b323544499000", CreateJavaCardOS_2_2_1 }, // G&D Mobile Security Card 3.x - { "4d5343", CreateJavaCardOS_2_2_1 }, // G&D Mobile Security Card 3.x - - //{ "4a434f503230", CreateJavaCardOS_2_1 }, // JCOP 20 - { "4a434f503231563232", CreateJavaCardOS_2_2_1 }, // JCOP 21 V2.2 - { "4a434f50323156323331", CreateJavaCardOS_2_2_1 }, // JCOP 21 V2.3.1 - { "4a434f503331563231", CreateJavaCardOS_2_1 }, // JCOP 31 V2.1 - { "4a434f503331563232", CreateJavaCardOS_2_2_1 }, // JCOP 31 V2.2 - { "4a434f50333156323331", CreateJavaCardOS_2_2_1 }, // JCOP 31 V2.3.1 - { "4a434f503331563234", CreateJavaCardOS_2_2_1 }, // JCOP 31 V2.4 - //{ "4a434f5033313336474454", CreateJavaCardOS_2_2_1 }, // JCOP 31 36GDT - { "4a434f503431563232", CreateJavaCardOS_2_2_1 }, // JCOP 41 V2.2 / V2.2 contactless - { "4128001133b04a434f5034315632", CreateJavaCardOS_2_2_1 }, // JCOP 41 V2.2 contactless (SCM SDI010, Firmware V6.32) - { "4a434f50343156323231", CreateJavaCardOS_2_2_1 }, // JCOP 41 V2.2.1 - { "4138001133b04a434f5034315632", CreateJavaCardOS_2_2_1 }, // JCOP 41 V2.2.1 contactless - { "4a434f50343156323331", CreateJavaCardOS_2_2_1 }, // JCOP 41 V2.3.1 - { "4a434f50343156323332", CreateJavaCardOS_2_2_1 }, // JCOP 41 V2.3.2 - { "4a434f503431563234", CreateJavaCardOS_2_2_1 }, // JCOP 41 V2.4 - { "4a434f5076323431", CreateJavaCardOS_2_2_2 }, // JCOP v2.4.1 - { "434f50343156323231ff", CreateJavaCardOS_2_2_1 }, // JCOP 41 V2.2.1 (IDptoken 200) - { "4a434f507632343262657461", CreateJavaCardOS_2_2_2 }, // JCOP v2.4.2 beta - { "0073c84000009000", CreateJavaCardOS_2_2_1 }, // JCOP V2.3.2 - - { "4a434f50563231", CreateJavaCardOS_2_1 }, // JCOP V2.1 - { "4a434f50563232", CreateJavaCardOS_2_2_1 }, // JCOP V2.2 - { "4a434f5056323231", CreateJavaCardOS_2_2_1 }, // JCOP V2.2.1 - { "4a434f50563233", CreateJavaCardOS_2_2_1 }, // JCOP V2.3 - { "4a434f5056323331", CreateJavaCardOS_2_2_1 }, // JCOP V2.3.1 - { "4a434f5056323332", CreateJavaCardOS_2_2_1 }, // JCOP V2.3.2 - { "4a434f50563234", CreateJavaCardOS_2_2_1 }, // JCOP V2.4 - { "4a434f5056323431", CreateJavaCardOS_2_2_2 }, // JCOP V2.4.1 - { "4a434f5056323432", CreateJavaCardOS_2_2_2 }, // JCOP V2.4.2 - - { "4a434f5033314d34", CreateJavaCardOS_2_2_1 }, // Austriacard JCOP31M4 - { "4a434f5032315632325f", CreateJavaCardOS_2_2_1 }, // AustriaCard JCOP 21 V2.2, T0, T1 - { "4a434f5033315632325f", CreateJavaCardOS_2_2_1 }, // AustriaCard JCOP 31 V2.2, T0, T1 - { "4a434f5034315632345f", CreateJavaCardOS_2_2_1 }, // AustriaCard JCOP 41 V2.4, T0, T1 - { "4a434f50563234314143", CreateJavaCardOS_2_2_1 }, // AustriaCard JCOP V2.4.1, T0, T1 - - { "5257414e44415f4944", CreateJavaCardOS_2_2_1 }, // AustriaCard JCOP V2.4.1 'RWANDA_ID' - { "44654c61527565", CreateJavaCardOS_2_2_1 }, // AustriaCard JCOP V2.4.1 'DeLaRue' - - { "803180664090a4561b1183019000", CreateJavaCardOS_2_2_1 }, // Infineon jTOP 20ID - - { "80318065b0831148c883009000", CreateJavaCardOS_2_2_1 }, // Gemalto TOP IM GX4 - //{ "80318065b08301029083009000", CreateJavaCardOS_2_2_1 }, // Gemalto I-DENTITY CARD - { "8065b08301017483009000", CreateJavaCardOS_2_1_1 }, // Gemplus GemXpresso Pro R3 - { "8065b08301037483009000", CreateJavaCardOS_2_1_1 }, // Gemplus GemXpresso Pro R3 - //{ "8065a20101013d72d643", CreateJavaCardOS_2_1_1 }, // Gemplus GemXpresso Pro R3 E32 PK - - { "0031c06477e30300829000", CreateJavaCardOS_2_1_1 }, // Oberthur CosmopolIC 64K v5.2D - - { "8059017f4849444a43327300011b", CreateJavaCardOS_2_2_2 }, // HID Crescendo C700 (JC2s) ("Standard JavaCard, T0/1, Platform Default Packages") - { "804f0ca0000003060a001d00000000", CreateJavaCardOS_2_2_2 },// HID Crescendo C700 (JC2s) contactless - - { ACT_ISO7816OS_NAME, CreateISO7816OS }, // use act::ISO7816OS as fallback - { 0, 0 } - }; - - // ------------------------------------------------------------------------ - const SCardTokenMapEntry SCardTokenMap[] = - { - // Passport - { IsEPAProfile, CreateEPAProfile }, - - // PKCS#15 - { IsM4PKCS15Profile, CreateM4PKCS15Profile }, - { IsV4PKCS15ECProfile, CreateV4PKCS15ECProfile }, - { IsV4PKCS15Profile, CreateV4PKCS15Profile }, - { IsJCPKCS15ECProfile, CreateJCPKCS15ECProfile }, - { IsJCPKCS15Profile, CreateJCPKCS15Profile }, - { IsACOSPKCS15Profile, CreateACOSPKCS15Profile }, - { IsStarCOSPKCS15Profile, CreateStarCOSPKCS15Profile }, - - // ACOS - { IsACOScvProfile, CreateACOScvProfile }, - - // CardOS - { IsM4cvMoCProfile, CreateM4cvMoCProfile }, - { IsM4cvECProfile, CreateM4cvECProfile }, - { IsV4cvECProfile, CreateV4cvECProfile }, - { IsV4cvProfile, CreateV4cvProfile }, - { IsM4cvProfile, CreateM4cvProfile }, - // { IsV4CNSProfile, CreateV4CNSProfile }, - - // TCOS -#ifdef ACT_SUPPORT_TCOS_NETKEY30 - { IsNetKey30Token, CreateNetKey30Token }, -#endif - - // JavaCardOS - { IsJCProfile, CreateJCProfile }, - // { IsJavaCardAppletManager, CreateJavaCardAppletManager }, - - /* - { IsStarCOSToken, CreateStarCOSToken }, - { IsNetKey2000Token, CreateNetKey2000Token }, - { IsNetKeyE4Token, CreateNetKeyE4Token }, - { IsNetKeyPKSToken, CreateNetKeyPKSToken }, - { IsNetKeyOldToken, CreateNetKeyOldToken }, - { IseTrustToken, CreateeTrustToken }, - { IsMicardoECToken, CreateMicardoECToken }, - { IsM4SiemensProfile, CreateM4SiemensProfile }, - */ - { 0, 0 } - }; - - // ------------------------------------------------------------------------ - const ProfileGeneratorMapEntry ProfileGeneratorMap[] = - { - { "JavaCardOS", CreateJCPKCS15Generator }, - { 0, 0 } - }; - - // ------------------------------------------------------------------------ - const PKCS15BehaviorMapEntry PKCS15BehaviorMap[] = - { - { "cv cryptovision gmbh (c) v1.0j", CreateJCPKCS15Behavior }, - { "cv cryptovision gmbh (c) v1.0jEAC", CreateJCPKCS15mEACBehavior }, - { "cv cryptovision gmbh (c) v1.0n", CreateV4PKCS15Behavior }, - { "cv cryptovision gmbh (c) v1.0na", CreateACOSPKCS15Behavior }, - { "cv cryptovision gmbh (c) v1.0ns", CreateStarCOSPKCS15Behavior }, - { "A.E.T. Europe B.V.", CreateSafeSignBehavior }, - { "Giesecke&Devrient GmbH", CreateStarSignBehavior }, - { "D-TRUST GmbH (C)", CreateDTRUSTBehavior }, - { "Siemens AG (C)", CreateHiPathBehavior }, - { "Technology Nexus", CreateNexusBehavior }, - { "Volkswagen AG", CreateVWBehavior }, - { "", CreatePKCS15Behavior }, // default - { 0, 0 } - }; - - // ------------------------------------------------------------------------ - const TokenExtensionMapEntry TokenExtensionMap[] = - { - { "MDProfileExt", CreateMDProfileExt }, // Minidriver FS Profile Extension - -# if defined(ACT_WIN32) && !defined(ACT_MINGW) - { "EAC 2.01 TA", CreateEACTAwithCAPI }, - -# endif - { 0, 0 } - }; - - // ------------------------------------------------------------------------ - const TokenAuthProtocolMapEntry TokenAuthProtocolMap[] = - { - { "EAC 2.01 PACE", CreateTokenAuthPACE }, - { "EAC 2.01 TA", CreateTokenAuthTA }, - { "EAC 2.01 CA", CreateTokenAuthCA }, - { "BAC", CreateTokenAuthBAC }, - { 0, 0 } - }; - - // ------------------------------------------------------------------------ - const SubsystemMapEntry SubsystemMap[] = - { - { "PCSC", CreatePCSCSystem, CreatePCSCSystemEx }, - { "CTAPI", CreateCTAPISystem, 0 }, - { "PKCS11", CreatePKCS11System, 0 }, - -# if defined(ACT_WIN32) && !defined(ACT_MINGW) - { "CSP", CreateCSPSystem, 0 }, - -# endif - { 0, 0, 0 } - }; - - // ------------------------------------------------------------------------ - const SlotMonitorRegEntry SlotMonitorMap[] = - { - { "PCSC", { CreatePCSCSlotMonitor, CreatePCSCSystemSlotMonitor } }, - { "CTAPI", { CreateSlotMonitor, 0 } }, - { "PKCS11", { CreateSlotMonitor, 0 } }, - -# if defined(ACT_WIN32) && !defined(ACT_MINGW) - { "CSP", { CreateSlotMonitor, 0 } }, - -# endif - { 0, { 0, 0 } } - }; - - // ------------------------------------------------------------------------ - const JCardAppletEntry JCardAppletMap[] = - { - // AID if it is equal to 0 then all AID are able - // function returns true if the Applet can used - // creates an new applet - // number of PIN's Key's Certificate's - // if they are -1 then it will be checked - // if they are biger or equal to 0 they are const - { "D276000098C00000", IsJCProfileApplet, CreateJCProfileApplet, 1, 1, 0 }, - { 0, 0, 0, 0, 0, 0 } - }; -#endif // NO_SMARTCARD - - // ------------------------------------------------------------------------ - // Version: V1R4M4 - const char* GetVersion(); - - // ------------------------------------------------------------------------ - inline void Init(bool bAlwaysInit = false) - { - static bool loaded = false; - if(loaded == true && bAlwaysInit == false) - return; - - KeyReg::Insert(KeyMap); - BlockCipherReg::Insert(BlockCipherMap); - BlockCipherModeReg::Insert(BlockCipherModeMap); - StreamCipherReg::Insert(StreamCipherMap); - HashReg::Insert(HashMap); - EMSAReg::Insert(EMSAMap); - DerivatorReg::Insert(DerivatorMap); - PaddingReg::Insert(PaddingMap); - CertificateReg::Insert(CertificateMap); - CRLReg::Insert(CRLMap); - X509KeyReg::Insert(X509KeyMap); - X509SignReg::Insert(X509SignMap); - X509SignHashReg::Insert(X509SignHashMap); - -#ifndef NO_SMARTCARD - SubsystemReg::Insert(SubsystemMap); - SlotMonitorReg::Insert(SlotMonitorMap); - SCardOSReg::Insert(SCardOSMap); - SCardTokenReg::Insert(SCardTokenMap); - ProfileGeneratorReg::Insert(ProfileGeneratorMap); - PKCS15BehaviorReg::Insert(PKCS15BehaviorMap); - TokenExtensionReg::Insert(TokenExtensionMap); - TokenAuthProtocolReg::Insert(TokenAuthProtocolMap); - JCardAppletReg::Insert(JCardAppletMap); -#endif - CreateFastRNG = CreateFIPS186; - CreateStrongRNG = CreateBBS; - loaded = true; - } - -} // namespace act - -#endif // actInit_h diff --git a/actlibrary/SLES-10-i686/Release/include/actJCAppletKit.h b/actlibrary/SLES-10-i686/Release/include/actJCAppletKit.h deleted file mode 100644 index 0d48e6d..0000000 --- a/actlibrary/SLES-10-i686/Release/include/actJCAppletKit.h +++ /dev/null @@ -1,30 +0,0 @@ -// --------------------------------------------------------------------------- -// Name: actAppletKit.h -// Product: cv act library -// Purpose: registry for factory functions to create JavaCard Applet -// -// Copyright: (c) 2002 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -// -// Autor: -// Date: 02/10/2003 -// --------------------------------------------------------------------------- - -#ifndef ACT_AppletKit_h -#define ACT_AppletKit_h - -#include "actBlob.h" - -namespace act -{ - class IToken; - class JavaCardOS; - - bool IsJCProfileApplet(JavaCardOS* os, const Blob& aid); - IToken* CreateJCProfileApplet(JavaCardOS* os, const Blob& aid); - -} // namespace act - -#endif // ACT_AppletKit_h diff --git a/actlibrary/SLES-10-i686/Release/include/actJCAppletReg.h b/actlibrary/SLES-10-i686/Release/include/actJCAppletReg.h deleted file mode 100644 index a8dfa8f..0000000 --- a/actlibrary/SLES-10-i686/Release/include/actJCAppletReg.h +++ /dev/null @@ -1,62 +0,0 @@ -// --------------------------------------------------------------------------- -// Name: actAppletReg.h -// Product: cv act library -// Purpose: registry for factory functions to create JavaCardApplet object -// -// Copyright: (c) 2002 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -// -// Autor: -// Date: 02/10/2003 -// --------------------------------------------------------------------------- - -#ifndef ACT_AppletReg_h -#define ACT_AppletReg_h - -#ifdef _MSC_VER -#pragma warning (disable:4786) -#endif - -namespace act -{ - class JavaCardOS; - class IToken; - class Blob; - - typedef IToken* (*CreateJCardAppletPtr)(JavaCardOS*, const Blob& aid); - typedef bool (*CheckJCardAppletPtr)(JavaCardOS*, const Blob& aid); - - struct JCardAppletEntry - { - const char* hexid; - CheckJCardAppletPtr CheckPtr; - CreateJCardAppletPtr CreatePtr; - int keys; - int certs; - int auth_objs; - }; - - struct JCardAppletInfoEntry - { - int keys; - int certs; - int auth_objs; - }; - - class JCardAppletReg - { - public: - static IToken* CreateJCardApplet(JavaCardOS* os, const Blob& aid); - static JCardAppletInfoEntry GetJCardAppletInfo(JavaCardOS* os, const Blob& aid); - static bool IsJCardApplet(JavaCardOS* os, const Blob& aid); - - static void Insert(const JCardAppletEntry* entry); - static void Insert(const char* id, CheckJCardAppletPtr checkptr, CreateJCardAppletPtr createptr, - int keys = -1, int auth_objs = -1, int certs = -1); - }; - -} // namespace act - -#endif // ACT_AppletReg_h diff --git a/actlibrary/SLES-10-i686/Release/include/actJCSecureChannelReg.h b/actlibrary/SLES-10-i686/Release/include/actJCSecureChannelReg.h deleted file mode 100644 index 1eb4b32..0000000 --- a/actlibrary/SLES-10-i686/Release/include/actJCSecureChannelReg.h +++ /dev/null @@ -1,43 +0,0 @@ -//----------------------------------------------------------------------------- -// Name: actJCSecureChannelReg.h -// Product: cv act library -// Purpose: -// -// Copyright: (c) 2003 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for use of this software are regulated -// in the cv act libary licence agreement. -// -// Autor: -// Data: 08.10.2003 15:53:14 -//----------------------------------------------------------------------------- - -#ifndef __ACTJCSECURECHANNELREG_H__ -#define __ACTJCSECURECHANNELREG_H__ - -namespace act -{ - class Blob; - - struct JCSecureChannelEntry { - const char* hexvalue; - }; - - - class JCardSecureChannelReg - { - public: - static Blob GetValue(int i); - static int GetNumber(); - - - static void Insert(const char* hexvalue); - static void Insert(const JCSecureChannelEntry* entry); - - }; - -} - - - -#endif //__ACTJCSECURECHANNELREG_H__ diff --git a/actlibrary/SLES-10-i686/Release/include/actKey.h b/actlibrary/SLES-10-i686/Release/include/actKey.h deleted file mode 100644 index 5030c0c..0000000 --- a/actlibrary/SLES-10-i686/Release/include/actKey.h +++ /dev/null @@ -1,82 +0,0 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actKey.h -// Product: cv act library -// Purpose: The class Key manages information relevant to keys (e.g. -// domain parameters or the key itself). In the case of symmetric -// encryption only a (the) secret key is generated. In the case of -// of asymetric encryption a private and a public key are generated. -// This handle allows a universal approach for different families of -// algorithms. -// -// -// Copyright: (c) 2000 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_Key_h -#define ACT_Key_h - -#include "actBasics.h" -#include "actBlob.h" - -namespace act -{ - class IRNGAlg; - class IAlgorithm; - class IKey; - class ICertificate; - - class Key - { - public: - Key(); - Key(const Key& key); - Key(IKey* keyptr); - Key(const Blob& keyblob); - Key(const ICertificate* cert); - Key(const char* keytype); - - void Import(const Blob& keyblob); - void Export(Blob& keyblob, export_t type = DEFAULT) const; - - void SetParam(paramid_t id, const Blob& blob); - void SetParam(paramid_t id, int val); - void SetParam(paramid_t id, const char* cstr); - - int GetParam(paramid_t id) const; - void GetParam(paramid_t id, Blob& blob) const; - - void Generate(IAlgorithm* prng = 0); - void Derive(const Blob& data, const Blob& salt = Blob()); - - IAlgorithm* CreateAlgorithm(mode_t Mode) const; - IAlgorithm* CreateAlgorithm(mode_t Mode, const Blob& data) const; - - IKey* GetPointer(); - const IKey* GetPointer() const; - operator IKey*(); - operator const IKey*() const; - - IKey* ReleasePointer(); - - template - inline KeyTypeT* As() { return static_cast(GetPointer()); } - - template - inline const KeyTypeT* As() const { return static_cast(GetPointer()); } - - Key& operator=(const Key& key); - Key& Reset(IKey* key); - Key& Required(const char* where = 0); - - ~Key(); - - private: - IKey *mKey; - }; - -} // namespace act - -#endif // ACT_Key_h diff --git a/actlibrary/SLES-10-i686/Release/include/actKeyKit.h b/actlibrary/SLES-10-i686/Release/include/actKeyKit.h deleted file mode 100644 index e8a7730..0000000 --- a/actlibrary/SLES-10-i686/Release/include/actKeyKit.h +++ /dev/null @@ -1,43 +0,0 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actKeyKit.h -// Product: cv act library -// Purpose: declaration of all factory functions -// -// Copyright: (c) 2000 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_KeyKit_h -#define ACT_KeyKit_h - -namespace act -{ - class IKey; - - IKey* CreateBlockCipherKey(); - - IKey* CreateStreamCipherKey(); - - IKey* CreateHashMACKey(); - IKey* CreateCBCMACKey(); - IKey* CreateSecretKeyMACKey(); - IKey* CreateRetailCFBMACKey(); - IKey* Create_iMAC3Key(); - IKey* CreateCMACKey(); - - IKey* CreateRSAKey(); - - IKey* CreateDSAKey(); - IKey* CreateECDSAKey(); - IKey* CreateECGDSAKey(); - - IKey* CreateDHKey(); - IKey* CreateECDHKey(); - - IKey* CreateIESKey(); - -} // namespace act - -#endif // ACT_KeyKit_h diff --git a/actlibrary/SLES-10-i686/Release/include/actKeyReg.h b/actlibrary/SLES-10-i686/Release/include/actKeyReg.h deleted file mode 100644 index 14caa8c..0000000 --- a/actlibrary/SLES-10-i686/Release/include/actKeyReg.h +++ /dev/null @@ -1,40 +0,0 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actKeyReg.h -// Product: cv act library -// Purpose: registry for factory functions in actKeyKit.h -// -// Copyright: (c) 2000 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_KeyReg_h -#define ACT_KeyReg_h - -namespace act -{ - class IKey; - - typedef IKey* (*CreateKeyPtr)(); - - struct KeyMapEntry - { - const char* Name; - CreateKeyPtr CreatePtr; - }; - - class KeyReg - { - public: - static IKey* CreateKey(const char* name); - static CreateKeyPtr GetCreatePointer(const char* name); - static const char* GetName(void* createptr); - static const char* GetNextName(const char* name); - static void Insert(const char* name, CreateKeyPtr createptr); - static void Insert(const KeyMapEntry* keymap); - }; - -} // namespace act - -#endif // ACT_KeyReg_h diff --git a/actlibrary/SLES-10-i686/Release/include/actLogger.h b/actlibrary/SLES-10-i686/Release/include/actLogger.h deleted file mode 100644 index 103b1ed..0000000 --- a/actlibrary/SLES-10-i686/Release/include/actLogger.h +++ /dev/null @@ -1,110 +0,0 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actLogger.h -// Product: cv act library -// Purpose: Logger -// -// Copyright: (c) 2000-2001 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_Logger_h -#define ACT_Logger_h - -#include "actDebug.h" -#include "actBlob.h" - -#include "SyncObject.h" - -// for convenience: -#ifdef _MSC_VER -# define ACT_SNPRINTF _snprintf -#else -# include -# define ACT_SNPRINTF snprintf -#endif - -// -// MTE [11/1/2006]: Added addtional accessing macros. -// NOTE: Redefine to use another Logger. -#define ACT_LOGGER(x) act::Logger::x - -// -// MTE [11/1/2006]: Added to replace direct usage of ACT_LOGGER(LogInit)(). -#define ACT_LOGISENABLED() (ACT_DEBUG != 0 || ACT_LOGGER(LogInit)()) - -// -// MTE [11/1/2006]: Changed to use ACT_LOGISENABLED(). -#define ACT_LOGINFO(info) { if(ACT_LOGISENABLED()) ACT_LOGGER(Log)(ACT_LOGGER(LEVEL_INFO), info); } -#define ACT_LOGWARN(warn) { if(ACT_LOGISENABLED()) ACT_LOGGER(Log)(ACT_LOGGER(LEVEL_WARN), warn); } -#define ACT_LOGERROR(error) { if(ACT_LOGISENABLED()) ACT_LOGGER(Log)(ACT_LOGGER(LEVEL_ERROR), error); } -#define ACT_LOGEXCEPTION(e) { if(ACT_LOGISENABLED()) { char buf[1024]; ACT_SNPRINTF(buf, 1024, "Exception:\t '%s' in '%s'", e.what(), e.where()); ACT_LOGERROR(buf) }} - -#define ACT_LOGINFODATA(info, data) { if(ACT_LOGISENABLED()) ACT_LOGGER(Log)(ACT_LOGGER(LEVEL_INFO), info, data); } -#define ACT_LOGWARNDATA(warn, data) { if(ACT_LOGISENABLED()) ACT_LOGGER(Log)(ACT_LOGGER(LEVEL_WARN), warn, data); } -#define ACT_LOGERRORDATA(error, data) { if(ACT_LOGISENABLED()) ACT_LOGGER(Log)(ACT_LOGGER(LEVEL_ERROR), error, data); } -#define ACT_LOGBLOB(blob) { if(ACT_LOGISENABLED()) ACT_LOGGER(Log)(ACT_LOGGER(LEVEL_INFO), #blob, blob); } - -#define ACT_LOGVALUE(name, value, format) { if(ACT_LOGISENABLED()) { char buf[256]; ACT_SNPRINTF(buf, 256, name " :\t " format, value); ACT_LOGINFO(buf) }} - -#define ACT_LOGINT(value) ACT_LOGVALUE(#value, int(value), "%i") -#define ACT_LOGHEX(value) ACT_LOGVALUE(#value, act::ulong(value), "0x%08x") -#define ACT_LOGSTRING(value) ACT_LOGVALUE(#value, value, "%s") - -#define ACT_LOGNAMEDINT(name, value) ACT_LOGVALUE(name, int(value), "%i") -#define ACT_LOGNAMEDHEX(name, value) ACT_LOGVALUE(name, act::ulong(value), "0x%08x") -#define ACT_LOGNAMEDSTRING(name, value) ACT_LOGVALUE(name, value, "%s") - -#ifdef WIN32 -#define ACT_LOGPTR(value) ACT_LOGINT(value) -#else -#define ACT_LOGPTR(value) ACT_LOGVALUE(#value, value, "%lp") -#endif - -// TODO: MTE: What about this "nice" construct ? -#define ACT_LOGPOINTER(p) { if(ACT_LOGISENABLED()) { if(p != 0) ACT_LOGINT(*p) else ACT_LOGHEX(p) }} -#define ACT_LOGISNULL(p) { if(ACT_LOGISENABLED()) { char buf[256]; if(p != 0) ACT_SNPRINTF(buf, 256, #p " :\t *"); else ACT_SNPRINTF(buf, 256, #p " :\t 0"); ACT_LOGINFO(buf) }} - - -namespace act -{ - class Logger - { - public: - enum Levels - { - LEVEL_OFF = 0, - LEVEL_ERROR = 30, - LEVEL_WARNING = 50, - LEVEL_WARN = LEVEL_WARNING, - LEVEL_INFO = 80, - LEVEL_MAX = 99 - }; - - static void SetLogger(Logger* pLogger); - static void FreeLogger(); - static void Log(short level, const char* msg); - static void Log(short level, const Blob& blobmsg); - static void Log(short level, const char* msg, const Blob& blobmsg); - static void SetLoglevel(short level); - static bool LogInit() - { - return(s_pLogger != 0 ? true : false); - } - - protected: - Logger(){} - virtual ~Logger(){} - virtual void doLog(short level, const char* msg) = 0; - virtual void doSetLoglevel(short level) = 0; - - private: - static Logger* s_pLogger; - static SyncObject m_sync; - }; - -} // namespace act - -#endif // ACT_Logger_h - diff --git a/actlibrary/SLES-10-i686/Release/include/actMode.h b/actlibrary/SLES-10-i686/Release/include/actMode.h deleted file mode 100644 index 3c4bdb9..0000000 --- a/actlibrary/SLES-10-i686/Release/include/actMode.h +++ /dev/null @@ -1,269 +0,0 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actMode.h -// Product: cv act library -// Purpose: enumerations -// -// Copyright: (c) 2006 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_Mode_h -#define ACT_Mode_h - -namespace act -{ - enum - { - MODE_RANGE_BEGIN = 100, - - ENCRYPT = 100, - DECRYPT, - SIGN, - VERIFY, - MAC, - - PRIVATE =200, - PUBLIC, - SECRET, - DOMAINPARAMS, - PKCS8_TYPE, - - CIPHER = 300, - PADDING, - DERIVATOR, - BCMODE, - KEYSIZE, - RAWKEY, - IV, - BLOCKSIZE, - CHAINING_VALUE, - CHAINING_BITCOUNT, - EFFECTIVE_KEYSIZE, - SHAREDDATA_1, - SHAREDDATA_2, - KEYDATALEN, - ITERATIONCOUNT, - COUNTER, - OUTDATALEN, - - ENCODER=400, - PRIVATEKEY, - PUBLICKEY, - PUBLICSIZE, - KEY, - SIGNATURE, - AGREEMENT, - - MODULO=500, - PRIME_P, - PRIME_Q, - MODULOSIZE, - PRIME_P_SIZE, - PRIME_Q_SIZE, - CRT_EXPONENT_1, - CRT_EXPONENT_2, - CRT_COEFFICIENT, - PKCS1_PRIVATEKEY, - PKCS1_PUBLICKEY, - - CURVE=600, - PUBLIC_X, - PUBLIC_Y, - STATICPUBLIC_X, - STATICPUBLIC_Y, - EPHEMERALPUBLIC_X, - EPHEMERALPUBLIC_Y, - CURVEPARAM, - PUBLICKEY_EXPORT_TYPE, - BASEPOINT_EXPORT_TYPE, - COMPRESSED, - UNCOMPRESSED, - HYBRID, - IMPLICITLYCA, - GF2CURVE, - PRIMECURVE, - ENCODE_SIGNATURE, - PLAIN_SECRET, - - RING = 700, - RINGORDER, - RINGGENERATOR, - COFACTOR, - COMPATIBLE, - NEWEPHEMERAL, - CHECKDOMAINPARAMS, - - STATICPRIVATEKEY, - STATICPUBLICKEY, - EPHEMERALPRIVATEKEY, - EPHEMERALPUBLICKEY, - - PIN = 800, - CARDTYPE, - CARDPORTTYPE, - PORTNR, - DLLNAME, - READERNAME, - CHANGEMASTERPIN, - CHANGEPIN, - USERPIN, - MASTERPIN, - PINPAD, - USERNAME, - INFOTEXT, - SIGNKEY, - ENCKEY, - SIGNCERTIFICATE, - ENCCERTIFICATE, - ROOTCERTIFICATE, - LOCK_KEY, - DHKEY, - DHCERTIFICATE, - PERSONALIZED, - READERNAMES, - AID, - PATH, - NULLPIN, - SELECTKEY, - ALLCERTIFICATE, - APPLICATION, - KEYUSAGE, - MECHANISM, - CERTIFICATE, - DATA, - KEYTYPE, - LABEL, - ID, - - CTAPI_PORT = 900, - PCSC_PORT, - - CARDOS_CARD = 1000, - TCOS_CARD, - CVACT_CARD, - PKCS11_CARD, - MICARDOEC_CARD, - STARCOSPK_CARD, - ETRUST_CARD, -// MICARDOPUBLIC_CARD, - CARDOSM4_CARD, - MICARDOP21_CARD, - - HASH=1100, - SALT, - SALT_LENGTH, - EMLEN, - - X = 1200, - SEED, - MULTIPLIER, - - VERSION = 1300, - ISSUER, - SUBJECT, - SERIALNR, - ISSUER_DER, - SUBJECT_DER, - ISSUER_UID, - SUBJECT_UID, - NOTBEFORE_DER, - NOTAFTER_DER, - THISUPDATE_DER, - NEXTUPDATE_DER, - TBS, - - CVPROFILEID = 1400, - CVCAREFERENCE, - CVHOLDERREFERENCE, - CVHATEMPLATE, - CVEACTEMPLATE, - CVEFFECTIVEDATE, - CVEXPIRATIONDATE, - CVPUBLICKEY_TLV, - CVPUBLICKEY_MECHANISM, - - // GF(P)-Curves - SECGp112r1 = 0x1000, - SECGp112r2, - SECGp128r1, - SECGp128r2, - SECGp160r1, - SECGp160r2, - SECGp160k1, - ANSIp192r1, - ANSIp192r2, - ANSIp192r3, - NISTp192r1, - SECGp192r1, - SECGp192k1, - NISTp224r1, - SECGp224r1, - SECGp224k1, - ANSIp239r1, - ANSIp239r2, - ANSIp239r3, - ANSIp256r1, - NISTp256r1, - SECGp256r1, - SECGp256k1, - NISTp384r1, - NISTp521r1, - brainpoolP256r1, - brainpoolP256t1, - - // GF(2^m)-Curves - SECGz113r1 = 0x1200, - SECGz113r2, - SECGz131r1, - SECGz131r2, - ANSIz163r1, - ANSIz163r2, - ANSIz163r3, - NISTz163r1, - NISTz163k1, - SECGz163r1, - SECGz163r2, - SECGz163k1, - ANSIz176w1, - ANSIz191r1, - ANSIz191r2, - ANSIz191r3, - SECGz193r1, - SECGz193r2, - ANSIz208w1, - NISTz233r1, - NISTz233k1, - SECGz233r1, - SECGz233k1, - ANSIz239r1, - ANSIz239r2, - ANSIz239r3, - SECGz239k1, - ANSIz272w1, - NISTz283r1, - NISTz283k1, - SECGz283r1, - SECGz283k1, - ANSIz304w1, - ANSIz359r1, - ANSIz368w1, - NISTz409r1, - NISTz409k1, - SECGz409r1, - SECGz409k1, - ANSIz431r1, - NISTz571r1, - NISTz571k1, - SECGz571r1, - SECGz571k1, - - MODE_RANGE_LAST = 0x1400, // insert new elements here - - TOKEN_CONFIG = 0x2000, // token config start - }; - -} // namespace act - -#endif // ACT_Mode_h diff --git a/actlibrary/SLES-10-i686/Release/include/actMove.h b/actlibrary/SLES-10-i686/Release/include/actMove.h deleted file mode 100644 index ebf1d6f..0000000 --- a/actlibrary/SLES-10-i686/Release/include/actMove.h +++ /dev/null @@ -1,133 +0,0 @@ -////////////////////////////////////////////////////////////////////////// -// Name: actMove.h -// Product: cv act library -// Purpose: template<>'s to implement move semantics -// -// Copyright: (c) 2010 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -// -// Autor: Markus Tesche -// Date: 07/25/2010 -////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_Move_h -#define ACT_Move_h - -namespace act -{ - // - // type_of used to dismantle T resulting in T' - // -------------------------------------------------------------------------------- - template struct type_of { typedef T type; }; - template struct type_of { typedef T type; }; - template struct type_of { typedef T type; }; - template struct type_of { typedef T type; }; - template struct type_of { typedef T type; }; - template struct type_of { typedef T type; }; - - // - // is_const - // -------------------------------------------------------------------------------- - template struct is_const { enum { value = 0 }; }; - template struct is_const { enum { value = 1 }; }; - template struct is_const { enum { value = 0 }; }; - template struct is_const { enum { value = 1 }; }; - template struct is_const { enum { value = 0 }; }; - template struct is_const { enum { value = 1 }; }; - - // - // /brief move_from<...> used to implement move semantics - // -------------------------------------------------------------------------------- - template - class move_from; - - // - // /brief move_from default spcialization, holds reference to type T - // -------------------------------------------------------------------------------- - template - class move_from - { - public: - typedef typename type_of::type type_t; - - explicit move_from(type_t& ref) - : m_ref(ref) - { } - - template - move_from(const move_from& other) - : m_ref(other.source()) - { } - - inline type_t& source() const { return m_ref; } - template O& source() const { return m_ref; } - - template void swap(O& other) { m_ref.swap(other); } - template O& move(O& other) { m_ref.swap(other); return other; } - - private: - type_t& m_ref; - - private: - template - friend class move_from; - }; - - // - // /brief move_from spcialization takes ownership of 'swapped-in' source data - // -------------------------------------------------------------------------------- - template - class move_from : public move_from - { - public: - typedef typename type_of::type type_t; - - explicit move_from(type_t& ref) - : move_from(m_value) - { - ref.swap(m_value); - } - - template - move_from(move_from other) - : move_from(m_value) - { - other.swap(m_value); - } - - private: - typename move_from::type_t m_value; - }; - - // - // /brief move_empty used as default move_from<...> function parameter - // -------------------------------------------------------------------------------- - template - class move_empty : public move_from - { - public: - move_empty() - : move_from(m_empty) - { } - - move_empty(const move_empty&) - : move_from(m_empty) - { } - - inline move_empty& operator=(const move_empty&) { return *this; } - - private: - T m_empty; - }; - - // - // /brief move<> helper function - // -------------------------------------------------------------------------------- - template - move_from move(T& ref) { return move_from(ref); } - -} // namespace act - -#endif // ACT_Move_h diff --git a/actlibrary/SLES-10-i686/Release/include/actOID.h b/actlibrary/SLES-10-i686/Release/include/actOID.h deleted file mode 100644 index 527f660..0000000 --- a/actlibrary/SLES-10-i686/Release/include/actOID.h +++ /dev/null @@ -1,2103 +0,0 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actOID.h -// Product: cv act library -// Purpose: -// -// -// Copyright: (c) 2000 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_OID_H -#define ACT_OID_H - -#define CV_OID_DEF(x) (act::Blob((x),(x)+sizeof((x)))) - -#ifdef _MSC_VER -#pragma warning(disable : 4305) //Verkuerzung von 'static const int' in 'static const unsigned char' -#pragma warning(disable : 4309) //Verkuerzung eines konstanten Wertes -#endif - -//1.2.840.10045.4.1 ECDSA cvECDSA -static const unsigned char cvOID_cvECDSA[] = {0x2a, 0x86, 0x48, 0xce, 0x3d, 0x04, 0x01}; -//1.2.840.113549.1.9.1 Alternate Name cvAlternateName -static const unsigned char cvOID_cvAlternateName[] = {0x2a, 0x86, 0x48, 0x86, 0xf7, 0x0d, 0x01, 0x09, 0x01}; - -//0.2.262.1.10 Deutsche Telekom Telesec -static const unsigned char cvOID_Telesec [] = { 0x02, 0x82, 0x06, 0x01, 0x0A}; -//0.2.262.1.10.0 Telesec extension -static const unsigned char cvOID_extension [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x00}; -//0.2.262.1.10.1 Telesec mechanism -static const unsigned char cvOID_mechanism [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x01}; -//0.2.262.1.10.1.0 Telesec mechanism authentication -static const unsigned char cvOID_authentication [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x01, 0x00}; -//0.2.262.1.10.1.0.1 Telesec authentication passwordAuthentication -static const unsigned char cvOID_passwordAuthentication [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x01, 0x00, 0x01}; -//0.2.262.1.10.1.0.2 Telesec authentication protectedPasswordAuthentication -static const unsigned char cvOID_protectedPasswordAuthentication [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x01, 0x00, 0x02}; -//0.2.262.1.10.1.0.3 Telesec authentication oneWayX509Authentication -static const unsigned char cvOID_oneWayX509Authentication [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x01, 0x00, 0x03}; -//0.2.262.1.10.1.0.4 Telesec authentication twoWayX509Authentication -static const unsigned char cvOID_twoWayX509Authentication [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x01, 0x00, 0x04}; -//0.2.262.1.10.1.0.5 Telesec authentication threeWayX509Authentication -static const unsigned char cvOID_threeWayX509Authentication [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x01, 0x00, 0x05}; -//0.2.262.1.10.1.0.6 Telesec authentication oneWayISO9798Authentication -static const unsigned char cvOID_oneWayISO9798Authentication [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x01, 0x00, 0x06}; -//0.2.262.1.10.1.0.7 Telesec authentication twoWayISO9798Authentication -static const unsigned char cvOID_twoWayISO9798Authentication [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x01, 0x00, 0x07}; -//0.2.262.1.10.1.0.8 Telesec authentication telekomAuthentication -static const unsigned char cvOID_telekomAuthentication [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x01, 0x00, 0x08}; -//0.2.262.1.10.1.1 Telesec mechanism signature -static const unsigned char cvOID_signature [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x01, 0x01}; -//0.2.262.1.10.1.1.1 Telesec mechanism md4WithRSAAndISO9697 -static const unsigned char cvOID_md4WithRSAAndISO9697 [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x01, 0x01, 0x01}; -//0.2.262.1.10.1.1.2 Telesec mechanism md4WithRSAAndTelesecSignatureStandard -static const unsigned char cvOID_md4WithRSAAndTelesecSignatureStandard [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x01, 0x01, 0x02}; -//0.2.262.1.10.1.1.3 Telesec mechanism md5WithRSAAndISO9697 -static const unsigned char cvOID_md5WithRSAAndISO9697 [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x01, 0x01, 0x03}; -//0.2.262.1.10.1.1.4 Telesec mechanism md5WithRSAAndTelesecSignatureStandard -static const unsigned char cvOID_md5WithRSAAndTelesecSignatureStandard [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x01, 0x01, 0x04}; -//0.2.262.1.10.1.1.5 Telesec mechanism ripemd160WithRSAAndTelekomSignatureStandard -static const unsigned char cvOID_ripemd160WithRSAAndTelekomSignatureStandard [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x01, 0x01, 0x05}; -//0.2.262.1.10.1.1.9 Telesec signature hbciRsaSignature -static const unsigned char cvOID_hbciRsaSignature [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x01, 0x01, 0x09}; -//0.2.262.1.10.1.2 Telesec mechanism encryption -static const unsigned char cvOID_encryption [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x01, 0x02}; -//0.2.262.1.10.1.2.0 Telesec encryption none -static const unsigned char cvOID_none [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x01, 0x02, 0x00}; -//0.2.262.1.10.1.2.1 Telesec encryption rsaTelesec -static const unsigned char cvOID_rsaTelesec [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x01, 0x02, 0x01}; -//0.2.262.1.10.1.2.2 Telesec encryption des -static const unsigned char cvOID_des [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x01, 0x02, 0x02}; -//0.2.262.1.10.1.2.2.1 Telesec encryption desECB -static const unsigned char cvOID_desECB [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x01, 0x02, 0x02, 0x01}; -//0.2.262.1.10.1.2.2.2 Telesec encryption desCBC -static const unsigned char cvOID_desCBC [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x01, 0x02, 0x02, 0x02}; -//0.2.262.1.10.1.2.2.3 Telesec encryption desOFB -static const unsigned char cvOID_desOFB [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x01, 0x02, 0x02, 0x03}; -//0.2.262.1.10.1.2.2.4 Telesec encryption desCFB8 -static const unsigned char cvOID_desCFB8 [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x01, 0x02, 0x02, 0x04}; -//0.2.262.1.10.1.2.2.5 Telesec encryption desCFB64 -static const unsigned char cvOID_desCFB64 [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x01, 0x02, 0x02, 0x05}; -//0.2.262.1.10.1.2.3 Telesec encryption des3 -static const unsigned char cvOID_des3 [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x01, 0x02, 0x03}; -//0.2.262.1.10.1.2.3.1 Telesec encryption des3ECB -static const unsigned char cvOID_des3ECB [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x01, 0x02, 0x03, 0x01}; -//0.2.262.1.10.1.2.3.2 Telesec encryption des3CBC -static const unsigned char cvOID_des3CBC [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x01, 0x02, 0x03, 0x02}; -//0.2.262.1.10.1.2.3.3 Telesec encryption des3OFB -static const unsigned char cvOID_des3OFB [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x01, 0x02, 0x03, 0x03}; -//0.2.262.1.10.1.2.3.4 Telesec encryption des3CFB8 -static const unsigned char cvOID_des3CFB8 [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x01, 0x02, 0x03, 0x04}; -//0.2.262.1.10.1.2.3.5 Telesec encryption des3CFB64 -static const unsigned char cvOID_des3CFB64 [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x01, 0x02, 0x03, 0x05}; -//0.2.262.1.10.1.2.4 Telesec encryption magenta -static const unsigned char cvOID_magenta [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x01, 0x02, 0x04}; -//0.2.262.1.10.1.2.5 Telesec encryption idea -static const unsigned char cvOID_idea [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x01, 0x02, 0x05}; -//0.2.262.1.10.1.2.5.1 Telesec encryption ideaECB -static const unsigned char cvOID_ideaECB_Telesec [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x01, 0x02, 0x05, 0x01}; -//0.2.262.1.10.1.2.5.2 Telesec encryption ideaCBC -static const unsigned char cvOID_ideaCBC_Telesec [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x01, 0x02, 0x05, 0x02}; -//0.2.262.1.10.1.2.5.3 Telesec encryption ideaOFB -static const unsigned char cvOID_ideaOFB_Telesec [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x01, 0x02, 0x05, 0x03}; -//0.2.262.1.10.1.2.5.4 Telesec encryption ideaCFB8 -static const unsigned char cvOID_ideaCFB8_Telesec [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x01, 0x02, 0x05, 0x04}; -//0.2.262.1.10.1.2.5.5 Telesec encryption ideaCFB64 -static const unsigned char cvOID_ideaCFB64_Telesec [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x01, 0x02, 0x05, 0x05}; -//0.2.262.1.10.1.3 Telesec mechanism oneWayFunction -static const unsigned char cvOID_oneWayFunction [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x01, 0x03}; -//0.2.262.1.10.1.3.1 Telesec one-way function md4 -static const unsigned char cvOID_md4_Telesec [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x01, 0x03, 0x01}; -//0.2.262.1.10.1.3.2 Telesec one-way function md5 -static const unsigned char cvOID_md5_Telesec [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x01, 0x03, 0x02}; -//0.2.262.1.10.1.3.3 Telesec one-way function sqModNX509 -static const unsigned char cvOID_sqModNX509 [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x01, 0x03, 0x03}; -//0.2.262.1.10.1.3.4 Telesec one-way function sqModNISO -static const unsigned char cvOID_sqModNISO [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x01, 0x03, 0x04}; -//0.2.262.1.10.1.3.5 Telesec one-way function ripemd128 -static const unsigned char cvOID_ripemd128 [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x01, 0x03, 0x05}; -//0.2.262.1.10.1.3.6 Telesec one-way function hashUsingBlockCipher -static const unsigned char cvOID_hashUsingBlockCipher [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x01, 0x03, 0x06}; -//0.2.262.1.10.1.3.7 Telesec one-way function mac -static const unsigned char cvOID_mac [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x01, 0x03, 0x07}; -//0.2.262.1.10.1.3.8 Telesec one-way function ripemd160 -static const unsigned char cvOID_ripemd160 [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x01, 0x03, 0x08}; -//0.2.262.1.10.1.4 Telesec mechanism fecFunction -static const unsigned char cvOID_fecFunction [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x01, 0x04}; -//0.2.262.1.10.1.4.1 Telesec mechanism reedSolomon -static const unsigned char cvOID_reedSolomon [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x01, 0x04, 0x01}; -//0.2.262.1.10.2 Telesec module -static const unsigned char cvOID_module_Telesec [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x02}; -//0.2.262.1.10.2.0 Telesec module algorithms -static const unsigned char cvOID_algorithms [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x02, 0x00}; -//0.2.262.1.10.2.1 Telesec module attributeTypes -static const unsigned char cvOID_attributeTypes [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x02, 0x01}; -//0.2.262.1.10.2.2 Telesec module certificateTypes -static const unsigned char cvOID_certificateTypes [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x02, 0x02}; -//0.2.262.1.10.2.3).. Telesec module messageTypes -static const unsigned char cvOID_messageTypes [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x02, 0x03}; -//0.2.262.1.10.2.4 Telesec module plProtocol -static const unsigned char cvOID_plProtocol [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x02, 0x04}; -//0.2.262.1.10.2.5 Telesec module smeAndComponentsOfSme -static const unsigned char cvOID_smeAndComponentsOfSme [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x02, 0x05}; -//0.2.262.1.10.2.6 Telesec module fec -static const unsigned char cvOID_fec [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x02, 0x06}; -//0.2.262.1.10.2.7 Telesec module usefulDefinitions -static const unsigned char cvOID_usefulDefinitions [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x02, 0x07}; -//0.2.262.1.10.2.8 Telesec module stefiles -static const unsigned char cvOID_stefiles [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x02, 0x08}; -//0.2.262.1.10.2.9 Telesec module sadmib -static const unsigned char cvOID_sadmib [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x02, 0x09}; -//0.2.262.1.10.2.10 Telesec module electronicOrder -static const unsigned char cvOID_electronicOrder [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x02, 0x0A}; -//0.2.262.1.10.2.11 Telesec module telesecTtpAsymmetricApplication -static const unsigned char cvOID_telesecTtpAsymmetricApplication [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x02, 0x0B}; -//0.2.262.1.10.2.12)..... Telesec module telesecTtpBasisApplication -static const unsigned char cvOID_telesecTtpBasisApplication [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x02, 0x0C}; -//0.2.262.1.10.2.13)....... Telesec module telesecTtpMessages -static const unsigned char cvOID_telesecTtpMessages [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x02, 0x0D}; -//0.2.262.1.10.2.14)....... Telesec module telesecTtpTimeStampApplication -static const unsigned char cvOID_telesecTtpTimeStampApplication [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x02, 0x0E}; -//0.2.262.1.10.3 Telesec objectClass -static const unsigned char cvOID_objectClass_Telesec [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x03}; -//0.2.262.1.10.3.0 Telesec object class telesecOtherName -static const unsigned char cvOID_telesecOtherName_Telesec [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x03, 0x00}; -//0.2.262.1.10.3.1 Telesec object class directory -static const unsigned char cvOID_directory_Telesec [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x03, 0x01}; -//0.2.262.1.10.3.2 Telesec object class directoryType -static const unsigned char cvOID_directoryType_Telesec [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x03, 0x02}; -//0.2.262.1.10.3.3 Telesec object class directroyGroup -static const unsigned char cvOID_directroyGroup_Telesec [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x03, 0x03}; -//0.2.262.1.10.3.4 Telesec object class directoryUser -static const unsigned char cvOID_directoryUser_Telesec [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x03, 0x04}; -//0.2.262.1.10.3.5 Telesec object class symmetricKeyEntry -static const unsigned char cvOID_symmetricKeyEntry [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x03, 0x05}; -//0.2.262.1.10.4 Telesec package -static const unsigned char cvOID_package [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x04}; -//0.2.262.1.10.5 Telesec parameter -static const unsigned char cvOID_parameter [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x05}; -//0.2.262.1.10.6 Telesec nameBinding -static const unsigned char cvOID_nameBinding [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x06}; -//0.2.262.1.10.7 Telesec attribute -static const unsigned char cvOID_attribute_Telesec [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x07}; -//0.2.262.1.10.7.0 Telesec attribute applicationGroupIdentifier -static const unsigned char cvOID_applicationGroupIdentifier [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x07, 0x00}; -//0.2.262.1.10.7.1 Telesec attribute certificateType -static const unsigned char cvOID_certificateType [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x07, 0x01}; -//0.2.262.1.10.7.2 Telesec attribute telesecCertificate -static const unsigned char cvOID_Certificate_Telesec [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x07, 0x02}; -//0.2.262.1.10.7.3 Telesec attribute certificateNumber -static const unsigned char cvOID_certificateNumber [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x07, 0x03}; -//0.2.262.1.10.7.4 Telesec attribute certificateRevocationList -static const unsigned char cvOID_certificateRevocationList_Telesec [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x07, 0x04}; -//0.2.262.1.10.7.5 Telesec attribute creationDate -static const unsigned char cvOID_creationDate [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x07, 0x05}; -//0.2.262.1.10.7.6).... Telesec attribute issuer -static const unsigned char cvOID_issuer [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x07, 0x06}; -//0.2.262.1.10.7.7 Telesec attribute namingAuthority -static const unsigned char cvOID_namingAuthority [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x07, 0x07}; -//0.2.262.1.10.7.8 Telesec attribute publicKeyDirectory -static const unsigned char cvOID_publicKeyDirectory [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x07, 0x08}; -//0.2.262.1.10.7.9).. Telesec attribute securityDomain -static const unsigned char cvOID_securityDomain [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x07, 0x09}; -//0.2.262.1.10.7.10)..... Telesec attribute subject -static const unsigned char cvOID_subject [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x07, 0x0A}; -//0.2.262.1.10.7.11 Telesec attribute timeOfRevocation -static const unsigned char cvOID_timeOfRevocation [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x07, 0x0B}; -//0.2.262.1.10.7.12 Telesec attribute userGroupReference -static const unsigned char cvOID_userGroupReference [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x07, 0x0C}; -//0.2.262.1.10.7.13 Telesec attribute validity -static const unsigned char cvOID_validity [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x07, 0x0D}; -//0.2.262.1.10.7.14 Telesec attribute zert93 -static const unsigned char cvOID_zert93 [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x07, 0x0E}; -//0.2.262.1.10.7.15 Telesec attribute securityMessEnv -static const unsigned char cvOID_securityMessEnv [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x07, 0x0F}; -//0.2.262.1.10.7.16 Telesec attribute anonymizedPublicKeyDirectory -static const unsigned char cvOID_anonymizedPublicKeyDirectory [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x07, 0x10}; -//0.2.262.1.10.7.17 Telesec attribute telesecGivenName -static const unsigned char cvOID_telesecGivenName [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x07, 0x11}; -//0.2.262.1.10.7.18). Telesec attribute nameAdditions -static const unsigned char cvOID_nameAdditions [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x07, 0x12}; -//0.2.262.1.10.7.19 Telesec attribute telesecPostalCode -static const unsigned char cvOID_telesecPostalCode [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x07, 0x13}; -//0.2.262.1.10.7.20 Telesec attribute nameDistinguisher -static const unsigned char cvOID_nameDistinguisher [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x07, 0x14}; -//0.2.262.1.10.7.21 Telesec attribute telesecCertificateList -static const unsigned char cvOID_telesecCertificateList [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x07, 0x15}; -//0.2.262.1.10.7.22 Telesec attribute teletrustCertificateList -static const unsigned char cvOID_teletrustCertificateList [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x07, 0x16}; -//0.2.262.1.10.7.23)... Telesec attribute x509CertificateList -static const unsigned char cvOID_x509CertificateList [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x07, 0x17}; -//0.2.262.1.10.7.24 Telesec attribute timeOfIssue -static const unsigned char cvOID_timeOfIssue [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x07, 0x18}; -//0.2.262.1.10.7.25 Telesec attribute physicalCardNumber -static const unsigned char cvOID_physicalCardNumber [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x07, 0x19}; -//0.2.262.1.10.7.26)........ Telesec attribute fileType -static const unsigned char cvOID_fileType [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x07, 0x1A}; -//0.2.262.1.10.7.27 Telesec attribute ctlFileIsArchive -static const unsigned char cvOID_ctlFileIsArchive [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x07, 0x1B}; -//0.2.262.1.10.7.28)........ Telesec attribute emailAddress -static const unsigned char cvOID_emailAddress [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x07, 0x1C}; -//0.2.262.1.10.7.29)........ Telesec attribute certificateTemplateList -static const unsigned char cvOID_certificateTemplateList [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x07, 0x1D}; -//0.2.262.1.10.7.30)........ Telesec attribute directoryName -static const unsigned char cvOID_directoryName [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x07, 0x1E}; -//0.2.262.1.10.7.31)........ Telesec attribute directoryTypeName -static const unsigned char cvOID_directoryTypeName [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x07, 0x1F}; -//0.2.262.1.10.7.32 Telesec attribute directoryGroupName -static const unsigned char cvOID_directoryGroupName [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x07, 0x20}; -//0.2.262.1.10.7.33 Telesec attribute directoryUserName -static const unsigned char cvOID_directoryUserName [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x07, 0x21}; -//0.2.262.1.10.7.34 Telesec attribute revocationFlag -static const unsigned char cvOID_revocationFlag [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x07, 0x22}; -//0.2.262.1.10.7.35 Telesec attribute symmetricKeyEntryName -static const unsigned char cvOID_symmetricKeyEntryName [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x07, 0x23}; -//0.2.262.1.10.7.36 Telesec attribute glNumber -static const unsigned char cvOID_glNumber [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x07, 0x24}; -//0.2.262.1.10.7.37 Telesec attribute goNumber -static const unsigned char cvOID_goNumber [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x07, 0x25}; -//0.2.262.1.10.7.38 Telesec attribute gKeyData -static const unsigned char cvOID_gKeyData [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x07, 0x26}; -//0.2.262.1.10.7.39 Telesec attribute zKeyData -static const unsigned char cvOID_zKeyData [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x07, 0x27}; -//0.2.262.1.10.7.40 Telesec attribute ktKeyData -static const unsigned char cvOID_ktKeyData [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x07, 0x28}; -//0.2.262.1.10.7.41 Telesec attribute ktKeyNumber -static const unsigned char cvOID_ktKeyNumber [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x07, 0x2A}; -//0.2.262.1.10.7.51 Telesec attribute timeOfRevocationGen -static const unsigned char cvOID_timeOfRevocationGen [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x07, 0x33}; -//0.2.262.1.10.7.52).... Telesec attribute liabilityText -static const unsigned char cvOID_liabilityText [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x07, 0x34}; -//0.2.262.1.10.8 Telesec attributeGroup -static const unsigned char cvOID_attributeGroup [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x08}; -//0.2.262.1.10.9 Telesec action -static const unsigned char cvOID_action [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x09}; -//0.2.262.1.10.10 Telesec notification -static const unsigned char cvOID_notification [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x0A}; -//0.2.262.1.10.11 Telesec snmp-mibs -static const unsigned char cvOID_snmp_mibs [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x0B}; -//0.2.262.1.10.11.1 Telesec SNMP MIBs securityApplication -static const unsigned char cvOID_securityApplication [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x0B, 0x01}; -//0.2.262.1.10.12 Telesec certAndCrlExtensionDefinitions -static const unsigned char cvOID_certAndCrlExtensionDefinitions [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x0C}; -//0.2.262.1.10.12.0 Telesec cert/CRL extension certExtensionLiabilityLimitationExt -static const unsigned char cvOID_certExtensionLiabilityLimitationExt [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x0C, 0x00}; -//0.2.262.1.10.12.1 Telesec cert/CRL extension telesecCertIdExt -static const unsigned char cvOID_telesecCertIdExt [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x0C, 0x01}; -//0.2.262.1.10.12.2 Telesec cert/CRL extension telesecPolicyIdentifier -static const unsigned char cvOID_telesecPolicyIdentifier [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x0C, 0x02}; -//0.2.262.1.10.12.3 Telesec cert/CRL extension telesecPolicyQualifierID -static const unsigned char cvOID_telesecPolicyQualifierID [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x0C, 0x03}; -//0.2.262.1.10.12.4 Telesec cert/CRL extension telesecCRLFilteredExt -static const unsigned char cvOID_telesecCRLFilteredExt [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x0C, 0x04}; -//0.2.262.1.10.12.5 Telesec cert/CRL extension telesecCRLFilterExt -static const unsigned char cvOID_telesecCRLFilterExt [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x0C, 0x05}; -//0.2.262.1.10.12.6 Telesec cert/CRL extension telesecNamingAuthorityExt -static const unsigned char cvOID_telesecNamingAuthorityExt [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x0C, 0x06}; -//0.9.2342.19200300.1.3 Some oddball X.500 attribute collection rfc822Mailbox -static const unsigned char cvOID_rfc822Mailbox [] = { 0x09, 0x92, 0x26, 0x89, 0x93, 0xF2, 0x2C, 0x01, 0x03}; -//0.9.2342.19200300.100.1.25 Men are from Mars, this OID is from Pluto domainComponent -static const unsigned char cvOID_domainComponent [] = { 0x09, 0x92, 0x26, 0x89, 0x93, 0xF2, 0x2C, 0x64, 0x01, 0x019}; -//1.2.36.75878867.1.100.1.1 Certificates Australia CA Certificates Australia policyIdentifier -static const unsigned char cvOID_Certificates_Australia_policyIdentifier [] = { 0x2A, 0x24, 0xA4, 0x97, 0xA3, 0x53, 0x01, 0x64, 0x01, 0x01}; -//1.2.36.68980861.1.1.2 Signet CA Signet personal -static const unsigned char cvOID_Signet_personal [] = { 0x2A, 0x24, 0xA0, 0xF2, 0xA0, 0x7D, 0x01, 0x01, 0x02}; -//1.2.36.68980861.1.1.3 Signet CA Signet business -static const unsigned char cvOID_Signet_business [] = { 0x2A, 0x24, 0xA0, 0xF2, 0xA0, 0x7D, 0x01, 0x01, 0x03}; -//1.2.36.68980861.1.1.4 Signet CA Signet legal -static const unsigned char cvOID_Signet_legal [] = { 0x2A, 0x24, 0xA0, 0xF2, 0xA0, 0x7D, 0x01, 0x01, 0x04}; -//1.2.36.68980861.1.1.10 Signet CA Signet pilot -static const unsigned char cvOID_Signet_pilot [] = { 0x2A, 0x24, 0xA0, 0xF2, 0xA0, 0x7D, 0x01, 0x01, 0x0A}; -//1.2.36.68980861.1.1.11 Signet CA Signet intraNet -static const unsigned char cvOID_Signet_intraNet [] = { 0x2A, 0x24, 0xA0, 0xF2, 0xA0, 0x7D, 0x01, 0x01, 0x0B}; -//1.2.36.68980861.1.1.20 Signet CA Signet securityPolicy -static const unsigned char cvOID_Signet_securityPolicy [] = { 0x2A, 0x24, 0xA0, 0xF2, 0xA0, 0x7D, 0x01, 0x01, 0x14}; -//1.2.392.200011.61.1.1.1 Mitsubishi security algorithm symmetric-encryption-algorithm -static const unsigned char cvOID_symmetric_encryption_algorithm [] = { 0x2A, 0x83, 0x08, 0x8C, 0x1A, 0x4B, 0x3D, 0x01, 0x01, 0x01}; -//1.2.392.200011.61.1.1.1.1 Mitsubishi security algorithm misty1-cbc -static const unsigned char cvOID_misty1_cbc [] = { 0x2A, 0x83, 0x08, 0x8C, 0x9A, 0x4B, 0x3D, 0x01, 0x01, 0x01, 0x01}; -//1.2.752.34.1 SEIS Project seis-cp -static const unsigned char cvOID_seis_cp [] = { 0x2A, 0x85, 0x70, 0x22, 0x01}; -//1.2.752.34.1.1 SEIS Project certificate policies SEIS high-assurnace certificatePolicy -static const unsigned char cvOID_SEIS_high_assurnace_certificatePolicy [] = { 0x2A, 0x85, 0x70, 0x22, 0x01, 0x01}; -//1.2.752.34.1.2 SEIS Project certificate policies SEIS GAK certificatePolicy -static const unsigned char cvOID_SEIS_GAK_certificatePolicy [] = { 0x2A, 0x85, 0x70, 0x22, 0x01, 0x02}; -//1.2.752.34.2 SEIS Project SEIS pe -static const unsigned char cvOID_SEIS_pe [] = { 0x2A, 0x85, 0x70, 0x22, 0x02}; -//1.2.752.34.3 SEIS Project SEIS at -static const unsigned char cvOID_SEIS_at [] = { 0x2A, 0x85, 0x70, 0x22, 0x03}; -//1.2.752.34.3.1 SEIS Project attribute SEIS at-personalIdentifier -static const unsigned char cvOID_SEIS_at_personalIdentifier [] = { 0x2A, 0x85, 0x70, 0x22, 0x03, 0x01}; -//1.2.840.10040.1 ANSI X9.57 module -static const unsigned char cvOID_module [] = { 0x2A, 0x86, 0x48, 0xCE, 0x38, 0x01}; -//1.2.840.10040.1.1 ANSI X9.57 module x9f1-cert-mgmt -static const unsigned char cvOID_x9f1_cert_mgmt [] = { 0x2A, 0x86, 0x48, 0xCE, 0x38, 0x01, 0x01}; -//1.2.840.10040.2 ANSI X9.57 holdinstruction -static const unsigned char cvOID_holdinstruction [] = { 0x2A, 0x86, 0x48, 0xCE, 0x38, 0x02}; -//1.2.840.10040.2.1 ANSI X9.57 hold instruction holdinstruction-none -static const unsigned char cvOID_holdinstruction_none [] = { 0x2A, 0x86, 0x48, 0xCE, 0x38, 0x02, 0x01}; -//1.2.840.10040.2.2 ANSI X9.57 hold instruction callissuer -static const unsigned char cvOID_callissuer [] = { 0x2A, 0x86, 0x48, 0xCE, 0x38, 0x02, 0x02}; -//1.2.840.10040.2.3 ANSI X9.57 hold instruction reject -static const unsigned char cvOID_reject [] = { 0x2A, 0x86, 0x48, 0xCE, 0x38, 0x02, 0x03}; -//1.2.840.10040.2.4 ANSI X9.57 hold instruction pickupToken -static const unsigned char cvOID_pickupToken [] = { 0x2A, 0x86, 0x48, 0xCE, 0x38, 0x02, 0x04}; -//1.2.840.10040.3 ANSI X9.57 attribute -static const unsigned char cvOID_attribute [] = { 0x2A, 0x86, 0x48, 0xCE, 0x38, 0x03}; -//1.2.840.10040.3.1 ANSI X9.57 attribute countersignature -static const unsigned char cvOID_countersignature [] = { 0x2A, 0x86, 0x48, 0xCE, 0x38, 0x03, 0x01}; -//1.2.840.10040.3.2 ANSI X9.57 attribute attribute-cert -static const unsigned char cvOID_attribute_cert [] = { 0x2A, 0x86, 0x48, 0xCE, 0x38, 0x03, 0x02}; -//1.2.840.10040.4 ANSI X9.57 algorithm -static const unsigned char cvOID_algorithm [] = { 0x2A, 0x86, 0x48, 0xCE, 0x38, 0x04}; -//1.2.840.10040.4.1 ANSI X9.57 algorithm dsa -static const unsigned char cvOID_dsa [] = { 0x2A, 0x86, 0x48, 0xCE, 0x38, 0x04, 0x01}; -//1.2.840.10040.4.2 ANSI X9.57 algorithm dsa-match -static const unsigned char cvOID_dsa_match [] = { 0x2A, 0x86, 0x48, 0xCE, 0x38, 0x04, 0x02}; -//1.2.840.10040.4.3 ANSI X9.57 algorithm dsaWithSha1 -static const unsigned char cvOID_dsaWithSha1 [] = { 0x2A, 0x86, 0x48, 0xCE, 0x38, 0x04, 0x03}; -//1.2.840.10045.1 ANSI X9.62. This OID is also assigned as ecdsa-with-SHA1 fieldType -static const unsigned char cvOID_fieldType [] = { 0x2A, 0x86, 0x48, 0xCE, 0x3D, 0x01}; -//1.2.840.10045.1.1 ANSI X9.62 field type prime-field -static const unsigned char cvOID_prime_field [] = { 0x2A, 0x86, 0x48, 0xCE, 0x3D, 0x01, 0x01}; -//1.2.840.10045.1.2 ANSI X9.62 field type characteristic-two-field -static const unsigned char cvOID_characteristic_two_field [] = { 0x2A, 0x86, 0x48, 0xCE, 0x3D, 0x01, 0x02}; -//1.2.840.10045.1.2.3 ANSI X9.62 field type characteristic-two-basis -static const unsigned char cvOID_characteristic_two_basis [] = { 0x2A, 0x86, 0x48, 0xCE, 0x3D, 0x01, 0x02, 0x03}; -//1.2.840.10045.1.2.3.1 ANSI X9.62 field basis onBasis -static const unsigned char cvOID_onBasis [] = { 0x2A, 0x86, 0x48, 0xCE, 0x3D, 0x01, 0x02, 0x03, 0x01}; -//1.2.840.10045.1.2.3.2 ANSI X9.62 field basis tpBasis -static const unsigned char cvOID_tpBasis [] = { 0x2A, 0x86, 0x48, 0xCE, 0x3D, 0x01, 0x02, 0x03, 0x02}; -//1.2.840.10045.1.2.3.3 ANSI X9.62 field basis ppBasis -static const unsigned char cvOID_ppBasis [] = { 0x2A, 0x86, 0x48, 0xCE, 0x3D, 0x01, 0x02, 0x03, 0x03}; -//1.2.840.10045.2 ANSI X9.62 publicKeyType -static const unsigned char cvOID_publicKeyType [] = { 0x2A, 0x86, 0x48, 0xCE, 0x3D, 0x02}; -//1.2.840.10045.2.1 ANSI X9.62 public key type ecPublicKey -static const unsigned char cvOID_ecPublicKey [] = { 0x2A, 0x86, 0x48, 0xCE, 0x3D, 0x02, 0x01}; -//1.2.840.10046.1 ANSI X9.42 fieldType -static const unsigned char cvOID_fieldType42 [] = { 0x2A, 0x86, 0x48, 0xCE, 0x3E, 0x01}; -//1.2.840.10046.1.1 ANSI X9.42 field type gf-prime -static const unsigned char cvOID_gf_prime [] = { 0x2A, 0x86, 0x48, 0xCE, 0x3E, 0x01, 0x01}; -//1.2.840.10046.2 ANSI X9.42 numberType -static const unsigned char cvOID_numberType [] = { 0x2A, 0x86, 0x48, 0xCE, 0x3E, 0x02}; -//1.2.840.10046.2.1 ANSI X9.42 number type dhPublicKey -static const unsigned char cvOID_dhPublicKey [] = { 0x2A, 0x86, 0x48, 0xCE, 0x3E, 0x02, 0x01}; -//1.2.840.10046.3 ANSI X9.42 scheme -static const unsigned char cvOID_scheme [] = { 0x2A, 0x86, 0x48, 0xCE, 0x3E, 0x03}; -//1.2.840.10046.3.1 ANSI X9.42 scheme dhStatic -static const unsigned char cvOID_dhStatic [] = { 0x2A, 0x86, 0x48, 0xCE, 0x3E, 0x03, 0x01}; -//1.2.840.10046.3.2 ANSI X9.42 scheme dhEphem -static const unsigned char cvOID_dhEphem [] = { 0x2A, 0x86, 0x48, 0xCE, 0x3E, 0x03, 0x02}; -//1.2.840.10046.3.3 ANSI X9.42 scheme dhHybrid1 -static const unsigned char cvOID_dhHybrid1 [] = { 0x2A, 0x86, 0x48, 0xCE, 0x3E, 0x03, 0x03}; -//1.2.840.10046.3.4 ANSI X9.42 scheme dhHybrid2 -static const unsigned char cvOID_dhHybrid2 [] = { 0x2A, 0x86, 0x48, 0xCE, 0x3E, 0x03, 0x04}; -//1.2.840.10046.3.5 ANSI X9.42 scheme mqv2 -static const unsigned char cvOID_mqv2 [] = { 0x2A, 0x86, 0x48, 0xCE, 0x3E, 0x03, 0x05}; -//1.2.840.10046.3.6 ANSI X9.42 scheme mqv1 -static const unsigned char cvOID_mqv1 [] = { 0x2A, 0x86, 0x48, 0xCE, 0x3E, 0x03, 0x06}; -//1.2.840.113533.7.65.0 Nortel Secure Networks ce (1 2 840 113533 7 65) entrustVersInfo -static const unsigned char cvOID_entrustVersInfo [] = { 0x2A, 0x86, 0x48, 0x86, 0xF6, 0x7D, 0x07, 0x41, 0x00}; -//1.2.840.113533.7.66.3 Nortel Secure Networks alg (1 2 840 113533 7 66) cast3CBC -static const unsigned char cvOID_cast3CBC [] = { 0x2A, 0x86, 0x48, 0x86, 0xF6, 0x7D, 0x07, 0x42, 0x03}; -//1.2.840.113533.7.66.10 Nortel Secure Networks alg (1 2 840 113533 7 66) cast5CBC -static const unsigned char cvOID_cast5CBC [] = { 0x2A, 0x86, 0x48, 0x86, 0xF6, 0x7D, 0x07, 0x42, 0x0A}; -//1.2.840.113533.7.66.11 Nortel Secure Networks alg (1 2 840 113533 7 66) cast5MAC -static const unsigned char cvOID_cast5MAC [] = { 0x2A, 0x86, 0x48, 0x86, 0xF6, 0x7D, 0x07, 0x42, 0x0B}; -//1.2.840.113533.7.66.12 Nortel Secure Networks alg (1 2 840 113533 7 66) pbeWithMD5AndCAST5-CBC -static const unsigned char cvOID_pbeWithMD5AndCAST5_CBC [] = { 0x2A, 0x86, 0x48, 0x86, 0xF6, 0x7D, 0x07, 0x42, 0x0C}; -//1.2.840.113533.7.66.13 Nortel Secure Networks alg (1 2 840 113533 7 66) passwordBasedMac -static const unsigned char cvOID_passwordBasedMac [] = { 0x2A, 0x86, 0x48, 0x86, 0xF6, 0x7D, 0x07, 0x42, 0x0D}; -//1.2.840.113 -static const unsigned char cvOID_entrustUser [] = { 0x2A, 0x86, 0x48, 0x86, 0xF6, 0x7D, 0x07, 0x43, 0x0C}; -//1.2.840.113533.7.68.0 Nortel Secure Networks at (1 2 840 113533 7 68) entrustCAInfo -static const unsigned char cvOID_entrustCAInfo [] = { 0x2A, 0x86, 0x48, 0x86, 0xF6, 0x7D, 0x07, 0x44, 0x00}; -//1.2.840.113533.7.68.10 Nortel Secure Networks at (1 2 840 113533 7 68) attributeCertificate -static const unsigned char cvOID_attributeCertificate [] = { 0x2A, 0x86, 0x48, 0x86, 0xF6, 0x7D, 0x07, 0x44, 0x0A}; -//1.2.840.113549.1.1.1 PKCS #1 rsaEncryption -static const unsigned char cvOID_rsaEncryption [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x01, 0x01}; -//1.2.840.113549.1.1.2 PKCS #1 md2withRSAEncryption -static const unsigned char cvOID_md2withRSAEncryption [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x01, 0x02}; -//1.2.840.113549.1.1.3 PKCS #1 md4withRSAEncryption -static const unsigned char cvOID_md4withRSAEncryption [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x01, 0x03}; -//1.2.840.113549.1.1.4 PKCS #1 md5withRSAEncryption -static const unsigned char cvOID_md5withRSAEncryption [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x01, 0x04}; -//1.2.840.113549.1.1.5 PKCS #1 sha1withRSAEncryption -static const unsigned char cvOID_sha1withRSAEncryption [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x01, 0x05}; -//1.2.840.113549.1.1.6 PKCS #1. This OID may also be assigned as ripemd160WithRSAEncryption rsaOAEPEncryptionSET -static const unsigned char cvOID_rsaOAEPEncryptionSET [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x01, 0x06}; -//1.2.840.113549.1.1.8 PKCS #1. id-mgf1 (0x2A864886F70D010108) -static const unsigned char cvOID_mgf1 [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x01, 0x08}; -//1.2.840.113549.1.1.10 PKCS #1. id-RSASSA-PSS (0x2A864886F70D01010A) -static const unsigned char cvOID_rsaSSA_PSS [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x01, 0x0A}; -//1.2.840.113549.1.2 Obsolete BSAFE OID bsafeRsaEncr -static const unsigned char cvOID_bsafeRsaEncr [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x01}; -//1.2.840.113549.1.3.1 PKCS #3 dhKeyAgreement -static const unsigned char cvOID_dhKeyAgreement [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x03, 0x01}; -//1.2.840.113549.1.5.1 PKCS #5 pbeWithMD2AndDES-CBC -static const unsigned char cvOID_pbeWithMD2AndDES_CBC [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x05, 0x01}; -//1.2.840.113549.1.5.3 PKCS #5 pbeWithMD5AndDES-CBC -static const unsigned char cvOID_pbeWithMD5AndDES_CBC [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x05, 0x03}; -//1.2.840.113549.1.5.4 PKCS #5 pbeWithMD2AndRC2-CBC -static const unsigned char cvOID_pbeWithMD2AndRC2_CBC [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x05, 0x04}; -//1.2.840.113549.1.5.6 PKCS #5 pbeWithMD5AndRC2-CBC -static const unsigned char cvOID_pbeWithMD5AndRC2_CBC [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x05, 0x06}; -//1.2.840.113549.1.5.9 PKCS #5, used in BSAFE only pbeWithMD5AndXOR -static const unsigned char cvOID_pbeWithMD5AndXOR [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x05, 0x09}; -//1.2.840.113549.1.5.10 PKCS #5 pbeWithSHAAndDES-CBC -static const unsigned char cvOID_pbeWithSHAAndDES_CBC [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x05, 0x0A}; -//1.2.840.113549.1.5.12 PKCS #5 v2.0 id-PBKDF2 -static const unsigned char cvOID_id_PBKDF2 [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x05, 0x0C}; -//1.2.840.113549.1.5.13 PKCS #5 v2.0 id-PBES2 -static const unsigned char cvOID_id_PBES2 [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x05, 0x0D}; -//1.2.840.113549.1.5.14 PKCS #5 v2.0 id-PBMAC1 -static const unsigned char cvOID_id_PBMAC1 [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x05, 0x0E}; -//1.2.840.113549.1.7.1 PKCS #7 data -static const unsigned char cvOID_data [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x07, 0x01}; -//1.2.840.113549.1.7.2 PKCS #7 signedData -static const unsigned char cvOID_signedData [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x07, 0x02}; -//1.2.840.113549.1.7.3 PKCS #7 envelopedData -static const unsigned char cvOID_envelopedData [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x07, 0x03}; -//1.2.840.113549.1.7.4 PKCS #7 signedAndEnvelopedData -static const unsigned char cvOID_signedAndEnvelopedData [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x07, 0x04}; -//1.2.840.113549.1.7.5 PKCS #7 digestedData -static const unsigned char cvOID_digestedData [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x07, 0x05}; -//1.2.840.113549.1.7.6 PKCS #7 encryptedData -static const unsigned char cvOID_encryptedData [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x07, 0x06}; -//1.2.840.113549.1.7.7 PKCS #7 experimental dataWithAttributes -static const unsigned char cvOID_dataWithAttributes [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x07, 0x07}; -//1.2.840.113549.1.7.8 PKCS #7 experimental encryptedPrivateKeyInfo -static const unsigned char cvOID_encryptedPrivateKeyInfo [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x07, 0x08}; -//1.2.840.113549.1.9.1 PKCS #9 (1 2 840 113549 1 9). Deprecated, use an altName extension instead emailAddress -static const unsigned char cvOID_emailAddress_PKCS9 [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x09, 0x01}; -//1.2.840.113549.1.9.2 PKCS #9 (1 2 840 113549 1 9) unstructuredName -static const unsigned char cvOID_unstructuredName [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x09, 0x02}; -//1.2.840.113549.1.9.3 PKCS #9 (1 2 840 113549 1 9) contentType -static const unsigned char cvOID_contentType [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x09, 0x03}; -//1.2.840.113549.1.9.4 PKCS #9 (1 2 840 113549 1 9) messageDigest -static const unsigned char cvOID_messageDigest [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x09, 0x04}; -//1.2.840.113549.1.9.5 PKCS #9 (1 2 840 113549 1 9) signingTime -static const unsigned char cvOID_signingTime [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x09, 0x05}; -//1.2.840.113549.1.9.6 PKCS #9 (1 2 840 113549 1 9) countersignature -static const unsigned char cvOID_countersignature_PKCS9 [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x09, 0x06}; -//1.2.840.113549.1.9.7 PKCS #9 (1 2 840 113549 1 9) challengePassword -static const unsigned char cvOID_challengePassword [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x09, 0x07}; -//1.2.840.113549.1.9.8 PKCS #9 (1 2 840 113549 1 9) unstructuredAddress -static const unsigned char cvOID_unstructuredAddress [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x09, 0x08}; -//1.2.840.113549.1.9.9 PKCS #9 (1 2 840 113549 1 9) extendedCertificateAttributes -static const unsigned char cvOID_extendedCertificateAttributes [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x09, 0x09}; -//1.2.840.113549.1.9.10 PKCS #9 (1 2 840 113549 1 9) experimental issuerAndSerialNumber -static const unsigned char cvOID_issuerAndSerialNumber [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x09, 0x0A}; -//1.2.840.113549.1.9.11 PKCS #9 (1 2 840 113549 1 9) experimental passwordCheck -static const unsigned char cvOID_passwordCheck [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x09, 0x0B}; -//1.2.840.113549.1.9.12 PKCS #9 (1 2 840 113549 1 9) experimental publicKey -static const unsigned char cvOID_publicKey [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x09, 0x0C}; -//1.2.840.113549.1.9.13 PKCS #9 (1 2 840 113549 1 9) experimental signingDescription -static const unsigned char cvOID_signingDescription [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x09, 0x0D}; -//1.2.840.113549.1.9.14 PKCS #9 (1 2 840 113549 1 9) experimental extensionReq -static const unsigned char cvOID_extensionReq [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x09, 0x0E}; -//1.2.840.113549.1.9.15 PKCS #9 (1 2 840 113549 1 9). This OID was formerly assigned as symmetricCapabilities, then reassigned as SMIMECapabilities, then renamed to the current name sMIMECapabilities -static const unsigned char cvOID_sMIMECapabilities [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x09, 0x0F}; -//1.2.840.113549.1.9.15.1 sMIMECapabilities (1 2 840 113549 1 9 15) preferSignedData -static const unsigned char cvOID_preferSignedData [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x09, 0x0F, 0x01}; -//1.2.840.113549.1.9.15.2 sMIMECapabilities (1 2 840 113549 1 9 15) canNotDecryptAny -static const unsigned char cvOID_canNotDecryptAny [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x09, 0x0F, 0x02}; -//1.2.840.113549.1.9.15.3 sMIMECapabilities (1 2 840 113549 1 9 15). Deprecated, use (1 2 840 113549 1 9 16 2 1) instead receiptRequest -static const unsigned char cvOID_receiptRequest [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x09, 0x0F, 0x03}; -//1.2.840.113549.1.9.15.4 sMIMECapabilities (1 2 840 113549 1 9 15). Deprecated, use (1 2 840 113549 1 9 16 1 1) instead receipt -static const unsigned char cvOID_receipt [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x09, 0x0F, 0x04}; -//1.2.840.113549.1.9.15.5 sMIMECapabilities (1 2 840 113549 1 9 15). Deprecated, use (1 2 840 113549 1 9 16 2 4) instead contentHints -static const unsigned char cvOID_contentHints [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x09, 0x0F, 0x05}; -//1.2.840.113549.1.9.15.6 sMIMECapabilities (1 2 840 113549 1 9 15). Deprecated, use (1 2 840 113549 1 9 16 2 3) instead mlExpansionHistory -static const unsigned char cvOID_mlExpansionHistory [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x09, 0x0F, 0x06}; -//1.2.840.113549.1.9.16 PKCS #9 (1 2 840 113549 1 9) id-sMIME -static const unsigned char cvOID_id_sMIME [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x09, 0x10}; -//1.2.840.113549.1.9.16.0 id-sMIME (1 2 840 113549 1 9 16) id-mod -static const unsigned char cvOID_id_mod [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x09, 0x10, 0x00}; -//1.2.840.113549.1.9.16.0.1 S/MIME Modules (1 2 840 113549 1 9 16 0) id-mod-cms -static const unsigned char cvOID_id_mod_cms [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x09, 0x10, 0x00, 0x01}; -//1.2.840.113549.1.9.16.0.2 S/MIME Modules (1 2 840 113549 1 9 16 0) id-mod-ess -static const unsigned char cvOID_id_mod_ess [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x09, 0x10, 0x00, 0x02}; -//1.2.840.113549.1.9.16.1 id-sMIME (1 2 840 113549 1 9 16) id-ct -static const unsigned char cvOID_id_ct [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x09, 0x10, 0x01}; -//1.2.840.113549.1.9.16.1.1 S/MIME Content Types (1 2 840 113549 1 9 16 1) id-ct-receipt -static const unsigned char cvOID_id_ct_receipt [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x09, 0x10, 0x01, 0x01}; -//1.2.840.113549.1.9.16.1.2 S/MIME Content Types (1 2 840 113549 1 9 16 1) id-ct-authData -static const unsigned char cvOID_id_ct_authData [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x09, 0x10, 0x01, 0x02}; -//1.2.840.113549.1.9.16.1.3 S/MIME Content Types (1 2 840 113549 1 9 16 1) id-ct-compressedData -static const unsigned char cvOID_id_ct_compressedData [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x09, 0x10, 0x01, 0x03}; -//1.2.840.113549.1.9.16.2 id-sMIME (1 2 840 113549 1 9 16) id-aa -static const unsigned char cvOID_id_aa [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x09, 0x10, 0x02}; -//1.2.840.113549.1.9.16.2.1 S/MIME Authenticated Attributes (1 2 840 113549 1 9 16 2) id-aa-receiptRequest -static const unsigned char cvOID_id_aa_receiptRequest [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x09, 0x10, 0x02, 0x01}; -//1.2.840.113549.1.9.16.2.2 S/MIME Authenticated Attributes (1 2 840 113549 1 9 16 2) id-aa-securityLabel -static const unsigned char cvOID_id_aa_securityLabel [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x09, 0x10, 0x02, 0x02}; -//1.2.840.113549.1.9.16.2.3 S/MIME Authenticated Attributes (1 2 840 113549 1 9 16 2) id-aa-mlExpandHistory -static const unsigned char cvOID_id_aa_mlExpandHistory [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x09, 0x10, 0x02, 0x03}; -//1.2.840.113549.1.9.16.2.4 S/MIME Authenticated Attributes (1 2 840 113549 1 9 16 2) id-aa-contentHint -static const unsigned char cvOID_id_aa_contentHint [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x09, 0x10, 0x02, 0x04}; -//1.2.840.113549.1.9.16.2.5 S/MIME Authenticated Attributes (1 2 840 113549 1 9 16 2) id-aa-msgSigDigest -static const unsigned char cvOID_id_aa_msgSigDigest [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x09, 0x10, 0x02, 0x05}; -//1.2.840.113549.1.9.16.2.7 S/MIME Authenticated Attributes (1 2 840 113549 1 9 16 2) id-aa-contentIdentifier -static const unsigned char cvOID_id_aa_contentIdentifier [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x09, 0x10, 0x02, 0x07}; -//1.2.840.113549.1.9.16.2.8 S/MIME Authenticated Attributes (1 2 840 113549 1 9 16 2) id-aa-macValue -static const unsigned char cvOID_id_aa_macValue [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x09, 0x10, 0x02, 0x08}; -//1.2.840.113549.1.9.16.2.9 S/MIME Authenticated Attributes (1 2 840 113549 1 9 16 2) id-aa-equivalentLabels -static const unsigned char cvOID_id_aa_equivalentLabels [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x09, 0x10, 0x02, 0x09}; -//1.2.840.113549.1.9.16.2.10 S/MIME Authenticated Attributes (1 2 840 113549 1 9 16 2) id-aa-contentReference -static const unsigned char cvOID_id_aa_contentReference [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x09, 0x10, 0x02, 0x0A}; -//1.2.840.113549.1.9.16.3.5 S/MIME Algorithms (1 2 840 113549 1 9 16 3) id-alg-ESDH -static const unsigned char cvOID_id_alg_ESDH [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x09, 0x10, 0x03, 0x05}; -//1.2.840.113549.1.9.16.3.6 S/MIME Algorithms (1 2 840 113549 1 9 16 3) id-alg-CMS3DESwrap -static const unsigned char cvOID_id_alg_CMS3DESwrap [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x09, 0x10, 0x03, 0x06}; -//1.2.840.113549.1.9.16.3.7 S/MIME Algorithms (1 2 840 113549 1 9 16 3) id-alg-CMSRC2wrap -static const unsigned char cvOID_id_alg_CMSRC2wrap [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x09, 0x10, 0x03, 0x07}; -//1.2.840.113549.1.9.16.3.8 S/MIME Algorithms (1 2 840 113549 1 9 16 3) id-alg-zlib -static const unsigned char cvOID_id_alg_zlib [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x09, 0x10, 0x03, 0x08}; -//1.2.840.113549.1.9.20 PKCS #9 (1 2 840 113549 1 9) friendlyName (for PKCS #12) -static const unsigned char cvOID_friendlyName [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x09, 0x14}; -//1.2.840.113549.1.9.21 PKCS #9 (1 2 840 113549 1 9) localKeyID (for PKCS #12) -static const unsigned char cvOID_localKeyID[] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x09, 0x15}; -//1.2.840.113549.1.9.22 PKCS #9 (1 2 840 113549 1 9) certTypes (for PKCS #12) -static const unsigned char cvOID_certTypes[] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x09, 0x16}; -//1.2.840.113549.1.9.22.1 PKCS #9 (1 2 840 113549 1 9) x509Certificate (for PKCS #12) -static const unsigned char cvOID_x509Certificate[] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x09, 0x16, 0x01}; -//1.2.840.113549.1.9.22.2 PKCS #9 (1 2 840 113549 1 9) sdsiCertificate (for PKCS #12) -static const unsigned char cvOID_sdsiCertificate [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x09, 0x16, 0x02}; -//1.2.840.113549.1.9.23 PKCS #9 (1 2 840 113549 1 9) crlTypes (for PKCS #12) -static const unsigned char cvOID_crlTypes[] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x09, 0x17}; -//1.2.840.113549.1.9.23.1 PKCS #9 (1 2 840 113549 1 9) x509Crl (for PKCS #12) -static const unsigned char cvOID_x509Crl[] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x09, 0x17, 0x01}; -//1.2.840.113549.1.12.1 This OID was formerly assigned as PKCS #12 modeID pkcs-12-PbeIds -static const unsigned char cvOID_pkcs_12_PbeIds [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x0C, 0x01}; -//1.2.840.113549.1.12.1.1 PKCS #12 PbeIds (1 2 840 113549 1 12 1). This OID was formerly assigned as pkcs-12-OfflineTransportMode pbeWithSHAAnd128BitRC4 -static const unsigned char cvOID_pbeWithSHAAnd128BitRC4 [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x0C, 0x01, 0x01}; -//1.2.840.113549.1.12.1.2 PKCS #12 PbeIds (1 2 840 113549 1 12 2). This OID was formerly assigned as pkcs-12-OnlineTransportMode pbeWithSHAAnd40BitRC4 -static const unsigned char cvOID_pbeWithSHAAnd40BitRC4 [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x0C, 0x01, 0x02}; -//1.2.840.113549.1.12.1.3 PKCS #12 PbeIds (1 2 840 113549 1 12 3) pbeWithSHAAnd3-KeyTripleDES-CBC -static const unsigned char cvOID_pbeWithSHAAnd3_KeyTripleDES_CBC [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x0C, 0x01, 0x03}; -//1.2.840.113549.1.12.1.4 PKCS #12 PbeIds (1 2 840 113549 1 12 3) pbeWithSHAAnd2-KeyTripleDES-CBC -static const unsigned char cvOID_pbeWithSHAAnd2_KeyTripleDES_CBC [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x0C, 0x01, 0x04}; -//1.2.840.113549.1.12.1.5 PKCS #12 PbeIds (1 2 840 113549 1 12 3) pbeWithSHAAnd128BitRC2-CBC -static const unsigned char cvOID_pbeWithSHAAnd128BitRC2_CBC [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x0C, 0x01, 0x05}; -//1.2.840.113549.1.12.1.6 PKCS #12 PbeIds (1 2 840 113549 1 12 3) pbeWithSHAAnd40BitRC2-CBC -static const unsigned char cvOID_pbeWithSHAAnd40BitRC2_CBC [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x0C, 0x01, 0x06}; -//1.2.840.113549.1.12.2 Deprecated pkcs-12-ESPVKID -static const unsigned char cvOID_pkcs_12_ESPVKID [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x0C, 0x02}; -//1.2.840.113549.1.12.2.1 PKCS #12 ESPVKID (1 2 840 113549 1 12 2). Deprecated, use (1 2 840 113549 1 12 3 5) instead pkcs-12-PKCS8KeyShrouding -static const unsigned char cvOID_pkcs_12_PKCS8KeyShrouding [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x0C, 0x02, 0x01}; -//1.2.840.113549.1.12.3.1 PKCS #12 BagIds (1 2 840 113549 1 12 3) pkcs-12-keyBagId -static const unsigned char cvOID_pkcs_12_keyBagId [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x0C, 0x03, 0x01}; -//1.2.840.113549.1.12.3.2 PKCS #12 BagIds (1 2 840 113549 1 12 3) pkcs-12-certAndCRLBagId -static const unsigned char cvOID_pkcs_12_certAndCRLBagId [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x0C, 0x03, 0x02}; -//1.2.840.113549.1.12.3.3 PKCS #12 BagIds (1 2 840 113549 1 12 3) pkcs-12-secretBagId -static const unsigned char cvOID_pkcs_12_secretBagId [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x0C, 0x03, 0x03}; -//1.2.840.113549.1.12.3.4 PKCS #12 BagIds (1 2 840 113549 1 12 3) pkcs-12-safeContentsId -static const unsigned char cvOID_pkcs_12_safeContentsId [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x0C, 0x03, 0x04}; -//1.2.840.113549.1.12.3.5 PKCS #12 BagIds (1 2 840 113549 1 12 3) pkcs-12-pkcs-8ShroudedKeyBagId -static const unsigned char cvOID_pkcs_12_pkcs_8ShroudedKeyBagId [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x0C, 0x03, 0x05}; -//1.2.840.113549.1.12.4 Deprecated pkcs-12-CertBagID -static const unsigned char cvOID_pkcs_12_CertBagID [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x0C, 0x04}; -//1.2.840.113549.1.12.4.1 PKCS #12 CertBagID (1 2 840 113549 1 12 4). This OID was formerly assigned as pkcs-12-X509CertCRLBag pkcs-12-X509CertCRLBagID -static const unsigned char cvOID_pkcs_12_X509CertCRLBagID [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x0C, 0x04, 0x01}; -//1.2.840.113549.1.12.4.2 PKCS #12 CertBagID (1 2 840 113549 1 12 4). This OID was formerly assigned as pkcs-12-SDSICertBag pkcs-12-SDSICertBagID -static const unsigned char cvOID_pkcs_12_SDSICertBagID [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x0C, 0x04, 0x02}; -//1.2.840.113549.1.12.5.1 PKCS #12 OID (1 2 840 113549 1 12 5). Deprecated, use the partially compatible (1 2 840 113549 1 12 1) OIDs instead pkcs-12-PBEID -static const unsigned char cvOID_pkcs_12_PBEID [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x0C, 0x05, 0x01}; -//1.2.840.113549.1.12.5.1.1 PKCS #12 OID PBEID (1 2 840 113549 1 12 5 1). Deprecated, use (1 2 840 113549 1 12 1 1) instead pkcs-12-PBEWithSha1And128BitRC4 -static const unsigned char cvOID_pkcs_12_PBEWithSha1And128BitRC4 [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x0C, 0x05, 0x01, 0x01}; -//1.2.840.113549.1.12.5.1.2 PKCS #12 OID PBEID (1 2 840 113549 1 12 5 1). Deprecated, use (1 2 840 113549 1 12 1 2) instead pkcs-12-PBEWithSha1And40BitRC4 -static const unsigned char cvOID_pkcs_12_PBEWithSha1And40BitRC4 [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x0C, 0x05, 0x01, 0x02}; -//1.2.840.113549.1.12.5.1.3 PKCS #12 OID PBEID (1 2 840 113549 1 12 5 1). Deprecated, use the incompatible but similar (1 2 840 113549 1 12 1 3) or (1 2 840 113549 1 12 1 4) instead pkcs-12-PBEWithSha1AndTripleDESCBC -static const unsigned char cvOID_pkcs_12_PBEWithSha1AndTripleDESCBC [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x0C, 0x05, 0x01, 0x03}; -//1.2.840.113549.1.12.5.1.4 PKCS #12 OID PBEID (1 2 840 113549 1 12 5 1). Deprecated, use (1 2 840 113549 1 12 1 5) instead pkcs-12-PBEWithSha1And128BitRC2CBC -static const unsigned char cvOID_pkcs_12_PBEWithSha1And128BitRC2CBC [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x0C, 0x05, 0x01, 0x04}; -//1.2.840.113549.1.12.5.1.5 PKCS #12 OID PBEID (1 2 840 113549 1 12 5 1). Deprecated, use (1 2 840 113549 1 12 1 6) instead pkcs-12-PBEWithSha1And40BitRC2CBC -static const unsigned char cvOID_pkcs_12_PBEWithSha1And40BitRC2CBC [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x0C, 0x05, 0x01, 0x05}; -//1.2.840.113549.1.12.5.1.6 PKCS #12 OID PBEID (1 2 840 113549 1 12 5 1). Deprecated, use the incompatible but similar (1 2 840 113549 1 12 1 1) or (1 2 840 113549 1 12 1 2) instead pkcs-12-PBEWithSha1AndRC4 -static const unsigned char cvOID_pkcs_12_PBEWithSha1AndRC4 [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x0C, 0x05, 0x01, 0x06}; -//1.2.840.113549.1.12.5.1.7 PKCS #12 OID PBEID (1 2 840 113549 1 12 5 1). Deprecated, use the incompatible but similar (1 2 840 113549 1 12 1 5) or (1 2 840 113549 1 12 1 6) instead pkcs-12-PBEWithSha1AndRC2CBC -static const unsigned char cvOID_pkcs_12_PBEWithSha1AndRC2CBC [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x0C, 0x05, 0x01, 0x07}; -//1.2.840.113549.1.12.5.2.1 PKCS #12 OID EnvelopingID (1 2 840 113549 1 12 5 2). Deprecated, use the conventional PKCS #1 OIDs instead pkcs-12-RSAEncryptionWith128BitRC4 -static const unsigned char cvOID_pkcs_12_RSAEncryptionWith128BitRC4 [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x0C, 0x05, 0x02, 0x01}; -//1.2.840.113549.1.12.5.2.2 PKCS #12 OID EnvelopingID (1 2 840 113549 1 12 5 2). Deprecated, use the conventional PKCS #1 OIDs instead pkcs-12-RSAEncryptionWith40BitRC4 -static const unsigned char cvOID_pkcs_12_RSAEncryptionWith40BitRC4 [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x0C, 0x05, 0x02, 0x02}; -//1.2.840.113549.1.12.5.2.3 PKCS #12 OID EnvelopingID (1 2 840 113549 1 12 5 2). Deprecated, use the conventional PKCS #1 OIDs instead pkcs-12-RSAEncryptionWithTripleDES -static const unsigned char cvOID_pkcs_12_RSAEncryptionWithTripleDES [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x0C, 0x05, 0x02, 0x03}; -//1.2.840.113549.1.12.5.3.1 PKCS #12 OID SignatureID (1 2 840 113549 1 12 5 3). Deprecated, use the conventional PKCS #1 OIDs instead pkcs-12-RSASignatureWithSHA1Digest -static const unsigned char cvOID_pkcs_12_RSASignatureWithSHA1Digest [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x0C, 0x05, 0x03, 0x01}; -//1.2.840.113549.1.12.10.1.1 PKCS #12 BagIds (1 2 840 113549 1 12 10 1) pkcs-12-keyBag -static const unsigned char cvOID_pkcs_12_keyBag [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x0C, 0x0A, 0x01, 0x01}; -//1.2.840.113549.1.12.10.1.2 PKCS #12 BagIds (1 2 840 113549 1 12 10 1) pkcs-12-pkcs-8ShroudedKeyBag -static const unsigned char cvOID_pkcs_12_pkcs_8ShroudedKeyBag [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x0C, 0x0A, 0x01, 0x02}; -//1.2.840.113549.1.12.10.1.3 PKCS #12 BagIds (1 2 840 113549 1 12 10 1) pkcs-12-certBag -static const unsigned char cvOID_pkcs_12_certBag [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x0C, 0x0A, 0x01, 0x03}; -//1.2.840.113549.1.12.10.1.4 PKCS #12 BagIds (1 2 840 113549 1 12 10 1) pkcs-12-crlBag -static const unsigned char cvOID_pkcs_12_crlBag [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x0C, 0x0A, 0x01, 0x04}; -//1.2.840.113549.1.12.10.1.5 PKCS #12 BagIds (1 2 840 113549 1 12 10 1) pkcs-12-secretBag -static const unsigned char cvOID_pkcs_12_secretBag [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x0C, 0x0A, 0x01, 0x05}; -//1.2.840.113549.1.12.10.1.6 PKCS #12 BagIds (1 2 840 113549 1 12 10 1) pkcs-12-safeContentsBag -static const unsigned char cvOID_pkcs_12_safeContentsBag [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x0C, 0x0A, 0x01, 0x06}; -//1.2.840.113549.2.2 RSADSI digestAlgorithm (1 2 840 113549 2) md2 -static const unsigned char cvOID_md2 [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x02, 0x02}; -//1.2.840.113549.2.4 RSADSI digestAlgorithm (1 2 840 113549 2) md4 -static const unsigned char cvOID_md4 [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x02, 0x04}; -//1.2.840.113549.2.5 RSADSI digestAlgorithm (1 2 840 113549 2) md5 -static const unsigned char cvOID_md5 [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x02, 0x05}; -//1.2.840.113549.3.2 RSADSI encryptionAlgorithm (1 2 840 113549 3) rc2CBC -static const unsigned char cvOID_rc2CBC [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x03, 0x02}; -//1.2.840.113549.3.3 RSADSI encryptionAlgorithm (1 2 840 113549 3) rc2ECB -static const unsigned char cvOID_rc2ECB [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x03, 0x03}; -//1.2.840.113549.3.4 RSADSI encryptionAlgorithm (1 2 840 113549 3) rc4 -static const unsigned char cvOID_rc4 [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x03, 0x04}; -//1.2.840.113549.3.5 RSADSI encryptionAlgorithm (1 2 840 113549 3) rc4WithMAC -static const unsigned char cvOID_rc4WithMAC [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x03, 0x05}; -//1.2.840.113549.3.6 RSADSI encryptionAlgorithm (1 2 840 113549 3) desx-CBC -static const unsigned char cvOID_desx_CBC [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x03, 0x06}; -//1.2.840.113549.3.7 RSADSI encryptionAlgorithm (1 2 840 113549 3) des-EDE3-CBC -static const unsigned char cvOID_des_EDE3_CBC [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x03, 0x07}; -//1.2.840.113549.3.8 RSADSI encryptionAlgorithm (1 2 840 113549 3) rc5CBC -static const unsigned char cvOID_rc5CBC [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x03, 0x08}; -//1.2.840.113549.3.9 RSADSI encryptionAlgorithm (1 2 840 113549 3) rc5-CBCPad -static const unsigned char cvOID_rc5_CBCPad [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x03, 0x09}; -//1.2.840.113549.3.10 RSADSI encryptionAlgorithm (1 2 840 113549 3). Formerly called CDMFCBCPad desCDMF -static const unsigned char cvOID_desCDMF [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x03, 0x0A}; -//1.3.6.1.4.1.188.7.1.1 Ascom Systech ascom -static const unsigned char cvOID_ascom [] = { 0x2B, 0x06, 0x01, 0x04, 0x01, 0x81, 0x3C, 0x07, 0x01, 0x01}; -//1.3.6.1.4.1.188.7.1.1.1 Ascom Systech ideaECB -static const unsigned char cvOID_ideaECB [] = { 0x2B, 0x06, 0x01, 0x04, 0x01, 0x81, 0x3C, 0x07, 0x01, 0x01, 0x01}; -//1.3.6.1.4.1.188.7.1.1.2 Ascom Systech ideaCBC -static const unsigned char cvOID_ideaCBC [] = { 0x2B, 0x06, 0x01, 0x04, 0x01, 0x81, 0x3C, 0x07, 0x01, 0x01, 0x02}; -//1.3.6.1.4.1.188.7.1.1.3 Ascom Systech ideaCFB -static const unsigned char cvOID_ideaCFB [] = { 0x2B, 0x06, 0x01, 0x04, 0x01, 0x81, 0x3C, 0x07, 0x01, 0x01, 0x03}; -//1.3.6.1.4.1.188.7.1.1.4 Ascom Systech ideaOFB -static const unsigned char cvOID_ideaOFB [] = { 0x2B, 0x06, 0x01, 0x04, 0x01, 0x81, 0x3C, 0x07, 0x01, 0x01, 0x04}; -//1.2.840.113556.4.3 Microsoft microsoftExcel -static const unsigned char cvOID_microsoftExcel [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x14, 0x04, 0x03}; -//1.2.840.113556.4.4 Microsoft titledWithOID -static const unsigned char cvOID_titledWithOID [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x14, 0x04, 0x04}; -//1.2.840.113556.4.5 Microsoft microsoftPowerPoint -static const unsigned char cvOID_microsoftPowerPoint [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x14, 0x04, 0x05}; -//1.3.6.1.4.1.311.2.1.4 Microsoft code signing spcIndirectDataContext -static const unsigned char cvOID_spcIndirectDataContext [] = { 0x2B, 0x06, 0x01, 0x04, 0x01, 0x82, 0x37, 0x02, 0x01, 0x04}; -//1.3.6.1.4.1.311.2.1.10 Microsoft code signing. Also known as policyLink spcAgencyInfo -static const unsigned char cvOID_spcAgencyInfo [] = { 0x2B, 0x06, 0x01, 0x04, 0x01, 0x82, 0x37, 0x02, 0x01, 0x0A}; -//1.3.6.1.4.1.311.2.1.11 Microsoft code signing spcStatementType -static const unsigned char cvOID_spcStatementType [] = { 0x2B, 0x06, 0x01, 0x04, 0x01, 0x82, 0x37, 0x02, 0x01, 0x0B}; -//1.3.6.1.4.1.311.2.1.12 Microsoft code signing spcSpOpusInfo -static const unsigned char cvOID_spcSpOpusInfo [] = { 0x2B, 0x06, 0x01, 0x04, 0x01, 0x82, 0x37, 0x02, 0x01, 0x0C}; -//1.3.6.1.4.1.311.2.1.14 Microsoft certReqExtensions -static const unsigned char cvOID_certReqExtensions [] = { 0x2B, 0x06, 0x01, 0x04, 0x01, 0x82, 0x37, 0x02, 0x01, 0x0E}; -//1.3.6.1.4.1.311.2.1.15 Microsoft code signing spcPelmageData -static const unsigned char cvOID_spcPelmageData [] = { 0x2B, 0x06, 0x01, 0x04, 0x01, 0x82, 0x37, 0x02, 0x01, 0x0F}; -//1.3.6.1.4.1.311.2.1.20 Microsoft code signing. Also known as "glue extension" spcLink (type 1) -static const unsigned char cvOID_spcLink_1[] = { 0x2B, 0x06, 0x01, 0x04, 0x01, 0x82, 0x37, 0x02, 0x01, 0x14}; -//1.3.6.1.4.1.311.2.1.21 Microsoft individualCodeSigning -static const unsigned char cvOID_individualCodeSigning [] = { 0x2B, 0x06, 0x01, 0x04, 0x01, 0x82, 0x37, 0x02, 0x01, 0x15}; -//1.3.6.1.4.1.311.2.1.22 Microsoft commercialCodeSigning -static const unsigned char cvOID_commercialCodeSigning [] = { 0x2B, 0x06, 0x01, 0x04, 0x01, 0x82, 0x37, 0x02, 0x01, 0x16}; -//1.3.6.1.4.1.311.2.1.25 Microsoft code signing. Also known as "glue extension" spcLink (type 2) -static const unsigned char cvOID_spcLink_2[] = { 0x2B, 0x06, 0x01, 0x04, 0x01, 0x82, 0x37, 0x02, 0x01, 0x19}; -//1.3.6.1.4.1.311.2.1.26 Microsoft code signing spcMinimalCriteriaInfo -static const unsigned char cvOID_spcMinimalCriteriaInfo [] = { 0x2B, 0x06, 0x01, 0x04, 0x01, 0x82, 0x37, 0x02, 0x01, 0x1A}; -//1.3.6.1.4.1.311.2.1.27 Microsoft code signing spcFinancialCriteriaInfo -static const unsigned char cvOID_spcFinancialCriteriaInfo [] = { 0x2B, 0x06, 0x01, 0x04, 0x01, 0x82, 0x37, 0x02, 0x01, 0x1B}; -//1.3.6.1.4.1.311.2.1.28 Microsoft code signing. Also known as "glue extension" spcLink (type 3) -static const unsigned char cvOID_spcLink_3[] = { 0x2B, 0x06, 0x01, 0x04, 0x01, 0x82, 0x37, 0x02, 0x01, 0x1C}; -//1.3.6.1.4.1.311.3.2.1 Microsoft code signing timestampCountersignature -static const unsigned char cvOID_timestampCountersignature [] = { 0x2B, 0x06, 0x01, 0x04, 0x01, 0x82, 0x37, 0x03, 0x02, 0x01}; -//1.3.6.1.4.1.311.10.1 Microsoft PKCS #7 contentType certTrustList -static const unsigned char cvOID_certTrustList [] = { 0x2B, 0x06, 0x01, 0x04, 0x01, 0x82, 0x37, 0x0A, 0x01}; -//1.3.6.1.4.1.311.10.2 Microsoft nextUpdateLocation -static const unsigned char cvOID_nextUpdateLocation [] = { 0x2B, 0x06, 0x01, 0x04, 0x01, 0x82, 0x37, 0x0A, 0x02}; -//1.3.6.1.4.1.311.10.3.1 Microsoft enhanced key usage certTrustListSigning -static const unsigned char cvOID_certTrustListSigning [] = { 0x2B, 0x06, 0x01, 0x04, 0x01, 0x82, 0x37, 0x0A, 0x03, 0x01}; -//1.3.6.1.4.1.311.10.3.2 Microsoft enhanced key usage timeStampSigning -static const unsigned char cvOID_timeStampSigning [] = { 0x2B, 0x06, 0x01, 0x04, 0x01, 0x82, 0x37, 0x0A, 0x03, 0x02}; -//1.3.6.1.4.1.311.10.3.3 Microsoft enhanced key usage serverGatedCrypto -static const unsigned char cvOID_serverGatedCrypto [] = { 0x2B, 0x06, 0x01, 0x04, 0x01, 0x82, 0x37, 0x0A, 0x03, 0x03}; -//1.3.6.1.4.1.311.10.3.4 Microsoft enhanced key usage encryptedFileSystem -static const unsigned char cvOID_encryptedFileSystem [] = { 0x2B, 0x06, 0x01, 0x04, 0x01, 0x82, 0x37, 0x0A, 0x03, 0x04}; -//1.3.6.1.4.1.311.10.4.1 Microsoft attribute yesnoTrustAttr -static const unsigned char cvOID_yesnoTrustAttr [] = { 0x2B, 0x06, 0x01, 0x04, 0x01, 0x82, 0x37, 0x0A, 0x04, 0x01}; -//1.3.6.1.4.1.311.16.4 Microsoft S/MIME cert attribute microsoftEncryptionCert -static const unsigned char cvOID_microsoftEncryptionCert [] = { 0x2B, 0x06, 0x01, 0x04, 0x01, 0x82, 0x37, 0x10, 0x04}; -//1.3.6.1.4.1.311.20.2.2 Microsoft enhanced key usage smartcardLogon -static const unsigned char cvOID_smartcardLogon [] = { 0x2B, 0x06, 0x01, 0x04, 0x01, 0x82, 0x37, 0x14, 0x02, 0x02}; -//1.3.6.1.4.1.311.21.1 Microsoft attribute cAKeyCertIndexPair -static const unsigned char cvOID_cAKeyCertIndexPair [] = { 0x2B, 0x06, 0x01, 0x04, 0x01, 0x82, 0x37, 0x15, 0x01}; -//1.3.6.1.4.1.311.13.2.2 Microsoft attribute Unknown MS CryptoAPI-related extension -static const unsigned char cvOID_Unknown_MS_CryptoAPI_related_extension [] = { 0x2B, 0x06, 0x01, 0x04, 0x01, 0x82, 0x37, 0x0D, 0x02, 0x02}; -//1.3.6.1.4.1.311.16.4 Microsoft attribute microsoftRecipientInfo -static const unsigned char cvOID_microsoftRecipientInfo [] = { 0x2B, 0x06, 0x01, 0x04, 0x01, 0x82, 0x37, 0x10, 0x04}; -//1.3.6.1.4.1.2428.10.1.1 UNINETT PCA UNINETT policyIdentifier -static const unsigned char cvOID_UNINETT_policyIdentifier [] = { 0x2B, 0x06, 0x01, 0x04, 0x01, 0x92, 0x7C, 0x0A, 0x01, 0x01}; -//1.3.6.1.4.1.2712.10 ICE-TEL CA ICE-TEL policyIdentifier -static const unsigned char cvOID_ICE_TEL_policyIdentifier [] = { 0x2B, 0x06, 0x01, 0x04, 0x01, 0x95, 0x18, 0x0A}; -//1.3.6.1.4.1.2786.1.1.1 ICE-TEL CA policy ICE-TEL Italian policyIdentifier -static const unsigned char cvOID_ICE_TEL_Italian_policyIdentifier [] = { 0x2B, 0x06, 0x01, 0x04, 0x01, 0x95, 0x62, 0x01, 0x01, 0x01}; -//1.3.6.1.4.1.3029.1.1 cryptlib encryption algorithm blowfishECB -static const unsigned char cvOID_blowfishECB [] = { 0x2B, 0x06, 0x01, 0x04, 0x01, 0x97, 0x55, 0x01, 0x01}; -//1.3.6.1.4.1.3029.1.2 cryptlib encr -static const unsigned char cvOID_blowfishCBC [] = { 0x2B, 0x06, 0x01, 0x04, 0x01, 0x97, 0x55, 0x01, 0x02}; -//1.3.6.1.4.1.3029.1.3 cryptlib encryption algorithm blowfishCFB -static const unsigned char cvOID_blowfishCFB [] = { 0x2B, 0x06, 0x01, 0x04, 0x01, 0x97, 0x55, 0x01, 0x03}; -//1.3.6.1.4.1.3029.1.4 cryptlib encryption algorithm blowfishOFB -static const unsigned char cvOID_blowfishOFB [] = { 0x2B, 0x06, 0x01, 0x04, 0x01, 0x97, 0x55, 0x01, 0x04}; -//1.3.6.1.4.1.3029.3.1 cryptlib public-key algorithm elgamal -static const unsigned char cvOID_elgamal [] = { 0x2B, 0x06, 0x01, 0x04, 0x01, 0x97, 0x55, 0x03, 0x01}; -//1.3.6.1.4.1.3029.3.1.1 cryptlib public-key algorithm elgamalWithSHA-1 -static const unsigned char cvOID_elgamalWithSHA_1 [] = { 0x2B, 0x06, 0x01, 0x04, 0x01, 0x97, 0x55, 0x03, 0x01, 0x01}; -//1.3.6.1.4.1.3029.3.1.2 cryptlib public-key algorithm elgamalWithRIPEMD-160 -static const unsigned char cvOID_elgamalWithRIPEMD_160 [] = { 0x2B, 0x06, 0x01, 0x04, 0x01, 0x97, 0x55, 0x03, 0x01, 0x02}; -//1.3.6.1.4.1.3029.32.1 cryptlib cryptlibPrivateKey -static const unsigned char cvOID_cryptlibPrivateKey [] = { 0x2B, 0x06, 0x01, 0x04, 0x01, 0x97, 0x55, 0x20, 0x01}; -//1.3.6.1.4.1.3029.42.11172.1 cryptlib special MPEG-of-cat OID mpeg-1 -static const unsigned char cvOID_mpeg_1 [] = { 0x2B, 0x06, 0x01, 0x04, 0x01, 0x97, 0x55, 0x2A, 0xD7, 0x24, 0x01}; -//1.3.6.1.5.5.7.1 PKIX privateExtension -static const unsigned char cvOID_privateExtension [] = { 0x2B, 0x06, 0x01, 0x05, 0x05, 0x07, 0x01}; -//1.3.6.1.5.5.7.1.1 PKIX private extension authorityInfoAccess -static const unsigned char cvOID_authorityInfoAccess [] = { 0x2B, 0x06, 0x01, 0x05, 0x05, 0x07, 0x01, 0x01}; - -//ame -//1.3.6.1.5.5.7.1.11 PKIX private extension subjectInfoAccess -static const unsigned char cvOID_subjectInfoAccess [] = { 0x2B, 0x06, 0x01, 0x05, 0x05, 0x07, 0x01, 0x0a}; - -//1.3.6.1.5.5.7.2 PKIX policyQualifierIds -static const unsigned char cvOID_policyQualifierIds [] = { 0x2B, 0x06, 0x01, 0x05, 0x05, 0x07, 0x02}; -//1.3.6.1.5.5.7.2.1 PKIX policy qualifier cps -static const unsigned char cvOID_cps [] = { 0x2B, 0x06, 0x01, 0x05, 0x05, 0x07, 0x02, 0x01}; -//1.3.6.1.5.5.7.2.2 PKIX policy qualifier unotice -static const unsigned char cvOID_unotice [] = { 0x2B, 0x06, 0x01, 0x05, 0x05, 0x07, 0x02, 0x02}; -//1.3.6.1.5.5.7.3 PKIX keyPurpose -static const unsigned char cvOID_keyPurpose [] = { 0x2B, 0x06, 0x01, 0x05, 0x05, 0x07, 0x03}; -//1.3.6.1.5.5.7.3.1 PKIX key purpose serverAuth -static const unsigned char cvOID_serverAuth [] = { 0x2B, 0x06, 0x01, 0x05, 0x05, 0x07, 0x03, 0x01}; -//1.3.6.1.5.5.7.3.2 PKIX key purpose clientAuth -static const unsigned char cvOID_clientAuth [] = { 0x2B, 0x06, 0x01, 0x05, 0x05, 0x07, 0x03, 0x02}; -//1.3.6.1.5.5.7.3.3 PKIX key purpose codeSigning -static const unsigned char cvOID_codeSigning [] = { 0x2B, 0x06, 0x01, 0x05, 0x05, 0x07, 0x03, 0x03}; -//1.3.6.1.5.5.7.3.4 PKIX key purpose emailProtection -static const unsigned char cvOID_emailProtection [] = { 0x2B, 0x06, 0x01, 0x05, 0x05, 0x07, 0x03, 0x04}; -//1.3.6.1.5.5.7.3.5 PKIX key purpose ipsecEndSystem -static const unsigned char cvOID_ipsecEndSystem [] = { 0x2B, 0x06, 0x01, 0x05, 0x05, 0x07, 0x03, 0x05}; -//1.3.6.1.5.5.7.3.6 PKIX key purpose ipsecTunnel -static const unsigned char cvOID_ipsecTunnel [] = { 0x2B, 0x06, 0x01, 0x05, 0x05, 0x07, 0x03, 0x06}; -//1.3.6.1.5.5.7.3.7 PKIX key purpose ipsecUser -static const unsigned char cvOID_ipsecUser [] = { 0x2B, 0x06, 0x01, 0x05, 0x05, 0x07, 0x03, 0x07}; -//1.3.6.1.5.5.7.3.8 PKIX key purpose timeStamping -static const unsigned char cvOID_timeStamping [] = { 0x2B, 0x06, 0x01, 0x05, 0x05, 0x07, 0x03, 0x08}; -//ame -//1.3.6.1.5.5.7.3.9 PKIX key purpose OCSPSigning -static const unsigned char cvOID_OCSPSigning [] = { 0x2B, 0x06, 0x01, 0x05, 0x05, 0x07, 0x03, 0x09}; -//1.3.6.1.5.5.7.4 PKIX cmpInformationTypes -static const unsigned char cvOID_cmpInformationTypes [] = { 0x2B, 0x06, 0x01, 0x05, 0x05, 0x07, 0x04}; -//1.3.6.1.5.5.7.4.1 PKIX CMP information caProtEncCert -static const unsigned char cvOID_caProtEncCert [] = { 0x2B, 0x06, 0x01, 0x05, 0x05, 0x07, 0x04, 0x01}; -//1.3.6.1.5.5.7.4.2 PKIX CMP information signKeyPairTypes -static const unsigned char cvOID_signKeyPairTypes [] = { 0x2B, 0x06, 0x01, 0x05, 0x05, 0x07, 0x04, 0x02}; -//1.3.6.1.5.5.7.4.3 PKIX CMP information encKeyPairTypes -static const unsigned char cvOID_encKeyPairTypes [] = { 0x2B, 0x06, 0x01, 0x05, 0x05, 0x07, 0x04, 0x03}; -//1.3.6.1.5.5.7.4.4 PKIX CMP information preferredSymmAlg -static const unsigned char cvOID_preferredSymmAlg [] = { 0x2B, 0x06, 0x01, 0x05, 0x05, 0x07, 0x04, 0x04}; -//1.3.6.1.5.5.7.4.5 PKIX CMP information caKeyUpdateInfo -static const unsigned char cvOID_caKeyUpdateInfo [] = { 0x2B, 0x06, 0x01, 0x05, 0x05, 0x07, 0x04, 0x05}; -//1.3.6.1.5.5.7.4.6 PKIX CMP information currentCRL -static const unsigned char cvOID_currentCRL [] = { 0x2B, 0x06, 0x01, 0x05, 0x05, 0x07, 0x04, 0x06}; -//1.3.6.1.5.5.7.6.3 PKIX algorithm dh-sig-hmac-sha1 -static const unsigned char cvOID_dh_sig_hmac_sha1 [] = { 0x2B, 0x06, 0x01, 0x05, 0x05, 0x07, 0x06, 0x03}; -//1.3.6.1.5.5.7.6.4 PKIX algorithm dh-pop -static const unsigned char cvOID_dh_pop [] = { 0x2B, 0x06, 0x01, 0x05, 0x05, 0x07, 0x06, 0x04}; -//1.3.6.1.5.5.7.48.1 PKIX authority info access descriptor ocsp -static const unsigned char cvOID_ocsp [] = { 0x2B, 0x06, 0x01, 0x05, 0x05, 0x07, 0x30, 0x01}; -//1.3.6.1.5.5.7.48.2 PKIX authority info access descriptor caIssuers -static const unsigned char cvOID_caIssuers [] = { 0x2B, 0x06, 0x01, 0x05, 0x05, 0x07, 0x30, 0x02}; - -//ame -//1.3.6.1.5.5.7.48.3 PKIX subject info access descriptor timeStamping -static const unsigned char cvOID_info_timeStamping [] = { 0x2B, 0x06, 0x01, 0x05, 0x05, 0x07, 0x30, 0x03}; -//1.3.6.1.5.5.7.48.5 PKIX subject info access descriptor caRepository -static const unsigned char cvOID_caRepository [] = { 0x2B, 0x06, 0x01, 0x05, 0x05, 0x07, 0x30, 0x05}; - -//1.3.6.1.5.5.8.1.1 ISAKMP HMAC algorithm HMAC-MD5 -static const unsigned char cvOID_HMAC_MD5 [] = { 0x2B, 0x06, 0x01, 0x05, 0x05, 0x08, 0x01, 0x01}; -//1.3.6.1.5.5.8.1.2 ISAKMP HMAC algorithm HMAC-SHA -static const unsigned char cvOID_HMAC_SHA [] = { 0x2B, 0x06, 0x01, 0x05, 0x05, 0x08, 0x01, 0x02}; -//1.3.6.1.5.5.8.1.3 ISAKMP HMAC algorithm HMAC-Tiger -static const unsigned char cvOID_HMAC_Tiger [] = { 0x2B, 0x06, 0x01, 0x05, 0x05, 0x08, 0x01, 0x03}; -//1.3.6.1.5.5.8.2.2 ipsec_kp_ike_intermediate -static const unsigned char cvOID_iKEIntermediate[] = { 0x2B, 0x06, 0x01, 0x05, 0x05, 0x08, 0x02, 0x02}; - -//1.3.12.2.1011.7.1 DASS algorithm decEncryptionAlgorithm -static const unsigned char cvOID_decEncryptionAlgorithm [] = { 0x2B, 0x0C, 0x02, 0x87, 0x73, 0x07, 0x01}; -//1.3.12.2.1011.7.1.2 DASS encryption algorithm decDEA -static const unsigned char cvOID_decDEA [] = { 0x2B, 0x0C, 0x02, 0x87, 0x73, 0x07, 0x01, 0x02}; -//1.3.12.2.1011.7.2 DASS algorithm decHashAlgorithm -static const unsigned char cvOID_decHashAlgorithm [] = { 0x2B, 0x0C, 0x02, 0x87, 0x73, 0x07, 0x02}; -//1.3.12.2.1011.7.2.1 DASS hash algorithm decMD2 -static const unsigned char cvOID_decMD2 [] = { 0x2B, 0x0C, 0x02, 0x87, 0x73, 0x07, 0x02, 0x01}; -//1.3.12.2.1011.7.2.2 DASS hash algorithm decMD4 -static const unsigned char cvOID_decMD4 [] = { 0x2B, 0x0C, 0x02, 0x87, 0x73, 0x07, 0x02, 0x02}; -//1.3.12.2.1011.7.3 DASS algorithm decSignatureAlgorithm -static const unsigned char cvOID_decSignatureAlgorithm [] = { 0x2B, 0x0C, 0x02, 0x87, 0x73, 0x07, 0x03}; -//1.3.12.2.1011.7.3.1 DASS signature algorithm decMD2withRSA -static const unsigned char cvOID_decMD2withRSA [] = { 0x2B, 0x0C, 0x02, 0x87, 0x73, 0x07, 0x03, 0x01}; -//1.3.12.2.1011.7.3.2 DASS signature algorithm decMD4withRSA -static const unsigned char cvOID_decMD4withRSA [] = { 0x2B, 0x0C, 0x02, 0x87, 0x73, 0x07, 0x03, 0x02}; -//1.3.12.2.1011.7.3.3 DASS signature algorithm decDEAMAC -static const unsigned char cvOID_decDEAMAC [] = { 0x2B, 0x0C, 0x02, 0x87, 0x73, 0x07, 0x03, 0x03}; -//1.3.14.2.26.5 Unsure about this OID sha -static const unsigned char cvOID_sha [] = { 0x2B, 0x0E, 0x02, 0x1A, 0x05}; -//1.3.14.3.2.1.1 X.509. Unsure about this OID rsa -static const unsigned char cvOID_rsa [] = { 0x2B, 0x0E, 0x03, 0x02, 0x01, 0x01}; -//1.3.14.3.2.2 Oddball OIW OID md4WitRSA -static const unsigned char cvOID_md4WitRSA [] = { 0x2B, 0x0E, 0x03, 0x02, 0x02}; -//1.3.14.3.2.3 Oddball OIW OID md5WithRSA -static const unsigned char cvOID_md5WithRSA [] = { 0x2B, 0x0E, 0x03, 0x02, 0x03}; -//1.3.14.3.2.4 Oddball OIW OID md4WithRSAEncryption -static const unsigned char cvOID_md4WithRSAEncryption [] = { 0x2B, 0x0E, 0x03, 0x02, 0x04}; -//1.3.14.3.2.2.1 X.509. Deprecated sqmod-N -static const unsigned char cvOID_sqmod_N [] = { 0x2B, 0x0E, 0x03, 0x02, 0x02, 0x01}; -//1.3.14.3.2.3.1 X.509. Deprecated sqmod-NwithRSA -static const unsigned char cvOID_sqmod_NwithRSA [] = { 0x2B, 0x0E, 0x03, 0x02, 0x03, 0x01}; -//1.3.14.3.2.11 ISO 9796-2, also X9.31 Part 1 rsaSignature -static const unsigned char cvOID_rsaSignature [] = { 0x2B, 0x0E, 0x03, 0x02, 0x0B}; -////1.3.14.3.2.12 OIW?, supposedly from an incomplete version of SDN.701 (doesn't match final SDN.701) dsa -//static const unsigned char cvOID_dsa [] = { 0x2B, 0x0E, 0x03, 0x02, 0x0C}; -//1.3.14.3.2.14 Oddball OIW OID using 9796-2 padding rules mdc2WithRSASignature -static const unsigned char cvOID_mdc2WithRSASignature [] = { 0x2B, 0x0E, 0x03, 0x02, 0x0E}; -//1.3.14.3.2.15 Oddball OIW OID using 9796-2 padding rules shaWithRSASignature -static const unsigned char cvOID_shaWithRSASignature [] = { 0x2B, 0x0E, 0x03, 0x02, 0x0F}; -//1.3.14.3.2.16 Oddball OIW OID. Deprecated, use a plain DH OID instead dhWithCommonModulus -static const unsigned char cvOID_dhWithCommonModulus [] = { 0x2B, 0x0E, 0x03, 0x02, 0x10}; -//1.3.14.3.2.17 Oddball OIW OID. Mode is ECB desEDE -static const unsigned char cvOID_desEDE [] = { 0x2B, 0x0E, 0x03, 0x02, 0x11}; -////1.3.14.3.2.18 Oddball OIW OID sha -//static const unsigned char cvOID_sha [] = { 0x2B, 0x0E, 0x03, 0x02, 0x12}; -//1.3.14.3.2.19 Oddball OIW OID, DES-based hash, planned for X9.31 Part 2 mdc-2 -static const unsigned char cvOID_mdc_2 [] = { 0x2B, 0x0E, 0x03, 0x02, 0x13}; -//1.3.14.3.2.20 Oddball OIW OID. Deprecated, use a plain DSA OID instead dsaCommon -static const unsigned char cvOID_dsaCommon [] = { 0x2B, 0x0E, 0x03, 0x02, 0x14}; -//1.3.14.3.2.21 Oddball OIW OID. Deprecated, use a plain dsaWithSHA OID instead dsaCommonWithSHA -static const unsigned char cvOID_dsaCommonWithSHA [] = { 0x2B, 0x0E, 0x03, 0x02, 0x15}; -//1.3.14.3.2.22 Oddball OIW OID rsaKeyTransport -static const unsigned char cvOID_rsaKeyTransport [] = { 0x2B, 0x0E, 0x03, 0x02, 0x16}; -//1.3.14.3.2.23 Oddball OIW OID keyed-hash-seal -static const unsigned char cvOID_keyed_hash_seal [] = { 0x2B, 0x0E, 0x03, 0x02, 0x17}; -//1.3.14.3.2.24 Oddball OIW OID using 9796-2 padding rules md2WithRSASignature -static const unsigned char cvOID_md2WithRSASignature [] = { 0x2B, 0x0E, 0x03, 0x02, 0x18}; -//1.3.14.3.2.25 Oddball OIW OID using 9796-2 padding rules md5WithRSASignature -static const unsigned char cvOID_md5WithRSASignature [] = { 0x2B, 0x0E, 0x03, 0x02, 0x19}; -//1.3.14.3.2.26 OIW sha1 -static const unsigned char cvOID_sha1 [] = { 0x2B, 0x0E, 0x03, 0x02, 0x1A}; -//1.3.14.3.2.27 OIW. This OID may also be assigned as ripemd-160 dsaWithSHA1 -static const unsigned char cvOID_dsaWithSHA1 [] = { 0x2B, 0x0E, 0x03, 0x02, 0x1B}; -//1.3.14.3.2.28 OIW dsaWithCommonSHA1 -static const unsigned char cvOID_dsaWithCommonSHA1 [] = { 0x2B, 0x0E, 0x03, 0x02, 0x1C}; -//1.3.14.3.2.29 Oddball OIW OID sha-1WithRSAEncryption -static const unsigned char cvOID_sha_1WithRSAEncryption [] = { 0x2B, 0x0E, 0x03, 0x02, 0x1D}; -//1.3.14.3.3.1 Oddball OIW OID simple-strong-auth-mechanism -static const unsigned char cvOID_simple_strong_auth_mechanism [] = { 0x2B, 0x0E, 0x03, 0x03, 0x01}; -//1.3.14.7.2.1.1 Unsure about this OID ElGamal -static const unsigned char cvOID_ElGamal [] = { 0x2B, 0x0E, 0x07, 0x02, 0x01, 0x01}; -//1.3.14.7.2.3.1 Unsure about this OID md2WithRSA -static const unsigned char cvOID_md2WithRSA [] = { 0x2B, 0x0E, 0x07, 0x02, 0x03, 0x01}; -//1.3.14.7.2.3.2 Unsure about this OID md2WithElGamal -static const unsigned char cvOID_md2WithElGamal [] = { 0x2B, 0x0E, 0x07, 0x02, 0x03, 0x02}; -//1.3.36.1 Teletrust document document -static const unsigned char cvOID_document [] = { 0x2B, 0x24, 0x01}; -//1.3.36.1.1 Teletrust document finalVersion -static const unsigned char cvOID_finalVersion [] = { 0x2B, 0x24, 0x01, 0x01}; -//1.3.36.1.2 Teletrust document draft -static const unsigned char cvOID_draft [] = { 0x2B, 0x24, 0x01, 0x02}; -//1.3.36.2 Teletrust sio sio -static const unsigned char cvOID_sio [] = { 0x2B, 0x24, 0x02}; -//1.3.36.2.1 Teletrust sio sedu -static const unsigned char cvOID_sedu [] = { 0x2B, 0x24, 0x02, 0x01}; -//1.3.36.3 Teletrust algorithm algorithm -static const unsigned char cvOID_algorithm_Teletrust[] = { 0x2B, 0x24, 0x03}; -//1.3.36.3.1 Teletrust algorithm encryptionAlgorithm -static const unsigned char cvOID_encryptionAlgorithm_Teletrust [] = { 0x2B, 0x24, 0x03, 0x01}; -//1.3.36.3.1.1 Teletrust encryption algorithm des -static const unsigned char cvOID_des_Teletrust [] = { 0x2B, 0x24, 0x03, 0x01, 0x01}; -//1.3.36.3.1.1.1 Teletrust encryption algorithm desECB_pad -static const unsigned char cvOID_desECB_pad [] = { 0x2B, 0x24, 0x03, 0x01, 0x01, 0x01}; -//1.3.36.3.1.1.1.1 Teletrust encryption algorithm desECB_ISOpad -static const unsigned char cvOID_desECB_ISOpad [] = { 0x2B, 0x24, 0x03, 0x01, 0x01, 0x01, 0x01}; -//1.3.36.3.1.1.2.1 Teletrust encryption algorithm desCBC_pad -static const unsigned char cvOID_desCBC_pad [] = { 0x2B, 0x24, 0x03, 0x01, 0x01, 0x02, 0x01}; -//1.3.36.3.1.1.2.1.1 Teletrust encryption algorithm desCBC_ISOpad -static const unsigned char cvOID_desCBC_ISOpad [] = { 0x2B, 0x24, 0x03, 0x01, 0x01, 0x02, 0x01, 0x01}; -//1.3.36.3.1.3 Teletrust encryption algorithm des_3 -static const unsigned char cvOID_des_3 [] = { 0x2B, 0x24, 0x03, 0x01, 0x03}; -//1.3.36.3.1.3.1.1 Teletrust encryption algorithm. EDE triple DES des_3ECB_pad -static const unsigned char cvOID_des_3ECB_pad [] = { 0x2B, 0x24, 0x03, 0x01, 0x03, 0x01, 0x01}; -//1.3.36.3.1.3.1.1.1 Teletrust encryption algorithm. EDE triple DES des_3ECB_ISOpad -static const unsigned char cvOID_des_3ECB_ISOpad [] = { 0x2B, 0x24, 0x03, 0x01, 0x03, 0x01, 0x01, 0x01}; -//1.3.36.3.1.3.2.1 Teletrust encryption algorithm. EDE triple DES des_3CBC_pad -static const unsigned char cvOID_des_3CBC_pad [] = { 0x2B, 0x24, 0x03, 0x01, 0x03, 0x02, 0x01}; -//1.3.36.3.1.3.2.1.1 Teletrust encryption algorithm. EDE triple DES des_3CBC_ISOpad -static const unsigned char cvOID_des_3CBC_ISOpad [] = { 0x2B, 0x24, 0x03, 0x01, 0x03, 0x02, 0x01, 0x01}; -//1.3.36.3.1.2 Teletrust encryption algorithm idea -static const unsigned char cvOID_idea_Teletrust [] = { 0x2B, 0x24, 0x03, 0x01, 0x02}; -//1.3.36.3.1.2.1 Teletrust encryption algorithm ideaECB -static const unsigned char cvOID_ideaECB_Teletrust [] = { 0x2B, 0x24, 0x03, 0x01, 0x02, 0x01}; -//1.3.36.3.1.2.1.1 Teletrust encryption algorithm ideaECB_pad -static const unsigned char cvOID_ideaECB_pad [] = { 0x2B, 0x24, 0x03, 0x01, 0x02, 0x01, 0x01}; -//1.3.36.3.1.2.1.1.1 Teletrust encryption algorithm ideaECB_ISOpad -static const unsigned char cvOID_ideaECB_ISOpad [] = { 0x2B, 0x24, 0x03, 0x01, 0x02, 0x01, 0x01, 0x01}; -//1.3.36.3.1.2.2 Teletrust encryption algorithm ideaCBC -static const unsigned char cvOID_ideaCBC_Teletrust [] = { 0x2B, 0x24, 0x03, 0x01, 0x02, 0x02}; -//1.3.36.3.1.2.2.1 Teletrust encryption algorithm ideaCBC_pad -static const unsigned char cvOID_ideaCBC_pad [] = { 0x2B, 0x24, 0x03, 0x01, 0x02, 0x02, 0x01}; -//1.3.36.3.1.2.2.1.1 Teletrust encryption algorithm ideaCBC_ISOpad -static const unsigned char cvOID_ideaCBC_ISOpad [] = { 0x2B, 0x24, 0x03, 0x01, 0x02, 0x02, 0x01, 0x01}; -//1.3.36.3.1.2.3 Teletrust encryption algorithm ideaOFB -static const unsigned char cvOID_ideaOFB_Teletrust [] = { 0x2B, 0x24, 0x03, 0x01, 0x02, 0x03}; -//1.3.36.3.1.2.4 Teletrust encryption algorithm ideaCFB -static const unsigned char cvOID_ideaCFB_Teletrust [] = { 0x2B, 0x24, 0x03, 0x01, 0x02, 0x04}; -//1.3.36.3.1.4 Teletrust encryption algorithm rsaEncryption -static const unsigned char cvOID_rsaEncryption_Teletrust [] = { 0x2B, 0x24, 0x03, 0x01, 0x04}; -//1.3.36.3.1.4.512.17 Teletrust encryption algorithm rsaEncryptionWithlmod512expe17 -static const unsigned char cvOID_rsaEncryptionWithlmod512expe17 [] = { 0x2B, 0x24, 0x03, 0x01, 0x04, 0x84, 0x00, 0x11}; -//1.3.36.3.1.5 Teletrust encryption algorithm bsi-1 -static const unsigned char cvOID_bsi_1 [] = { 0x2B, 0x24, 0x03, 0x01, 0x05}; -//1.3.36.3.1.5.1 Teletrust encryption algorithm bsi_1ECB_pad -static const unsigned char cvOID_bsi_1ECB_pad [] = { 0x2B, 0x24, 0x03, 0x01, 0x05, 0x01}; -//1.3.36.3.1.5.2 Teletrust encryption algorithm bsi_1CBC_pad -static const unsigned char cvOID_bsi_1CBC_pad [] = { 0x2B, 0x24, 0x03, 0x01, 0x05, 0x02}; -//1.3.36.3.1.5.2.1 Teletrust encryption algorithm bsi_1CBC_PEMpad -static const unsigned char cvOID_bsi_1CBC_PEMpad [] = { 0x2B, 0x24, 0x03, 0x01, 0x05, 0x02, 0x01}; -//1.3.36.3.2 Teletrust algorithm hashAlgorithm -static const unsigned char cvOID_hashAlgorithm [] = { 0x2B, 0x24, 0x03, 0x02}; -//1.3.36.3.2.1 Teletrust hash algorithm ripemd160 -static const unsigned char cvOID_ripemd160_Teletrust [] = { 0x2B, 0x24, 0x03, 0x02, 0x01}; -//1.3.36.3.2.2 Teletrust hash algorithm ripemd128 -static const unsigned char cvOID_ripemd128_Teletrust [] = { 0x2B, 0x24, 0x03, 0x02, 0x02}; -//1.3.36.3.2.3 Teletrust hash algorithm ripemd256 -static const unsigned char cvOID_ripemd256 [] = { 0x2B, 0x24, 0x03, 0x02, 0x03}; -//1.3.36.3.2.4 Teletrust hash algorithm mdc2singleLength -static const unsigned char cvOID_mdc2singleLength [] = { 0x2B, 0x24, 0x03, 0x02, 0x04}; -//1.3.36.3.2.5 Teletrust hash algorithm mdc2doubleLength -static const unsigned char cvOID_mdc2doubleLength [] = { 0x2B, 0x24, 0x03, 0x02, 0x05}; -//1.3.36.3.3 Teletrust algorithm signatureAlgorithm -static const unsigned char cvOID_signatureAlgorithm [] = { 0x2B, 0x24, 0x03, 0x03}; -//1.3.36.3.3.1 Teletrust signature algorithm rsaSignature -static const unsigned char cvOID_rsaSignature_Teletrust [] = { 0x2B, 0x24, 0x03, 0x03, 0x01}; -//1.3.36.3.3.1.1 Teletrust signature algorithm rsaSignatureWithsha1 -static const unsigned char cvOID_rsaSignatureWithsha1 [] = { 0x2B, 0x24, 0x03, 0x03, 0x01, 0x01}; -//1.3.36.3.3.1.1.512.2 Teletrust signature algorithm rsaSignatureWithsha1_l512_l2 -static const unsigned char cvOID_rsaSignatureWithsha1_l512_l2 [] = { 0x2B, 0x24, 0x03, 0x03, 0x01, 0x01, 0x84, 0x00, 0x02}; -//1.3.36.3.3.1.1.640.2 Teletrust signature algorithm rsaSignatureWithsha1_l640_l2 -static const unsigned char cvOID_rsaSignatureWithsha1_l640_l2 [] = { 0x2B, 0x24, 0x03, 0x03, 0x01, 0x01, 0x85, 0x00, 0x02}; -//1.3.36.3.3.1.1.768.2 Teletrust signature algorithm rsaSignatureWithsha1_l768_l2 -static const unsigned char cvOID_rsaSignatureWithsha1_l768_l2 [] = { 0x2B, 0x24, 0x03, 0x03, 0x01, 0x01, 0x86, 0x00, 0x02}; -//1.3.36.3.3.1.1.892.2 Teletrust signature algorithm rsaSignatureWithsha1_l896_l2 -static const unsigned char cvOID_rsaSignatureWithsha1_l896_l2 [] = { 0x2B, 0x24, 0x03, 0x03, 0x01, 0x01, 0x87, 0x00, 0x02}; -//1.3.36.3.3.1.1.1024.2 Teletrust signature algorithm rsaSignatureWithsha1_l1024_l2 -static const unsigned char cvOID_rsaSignatureWithsha1_l1024_l2 [] = { 0x2B, 0x24, 0x03, 0x03, 0x01, 0x01, 0x88, 0x00, 0x02}; -//1.3.36.3.3.1.1.512.3 Teletrust signature algorithm rsaSignatureWithsha1_l512_l3 -static const unsigned char cvOID_rsaSignatureWithsha1_l512_l3 [] = { 0x2B, 0x24, 0x03, 0x03, 0x01, 0x01, 0x84, 0x00, 0x03}; -//1.3.36.3.3.1.1.640.3 Teletrust signature algorithm rsaSignatureWithsha1_l640_l3 -static const unsigned char cvOID_rsaSignatureWithsha1_l640_l3 [] = { 0x2B, 0x24, 0x03, 0x03, 0x01, 0x01, 0x85, 0x00, 0x03}; -//1.3.36.3.3.1.1.768.3 Teletrust signature algorithm rsaSignatureWithsha1_l768_l3 -static const unsigned char cvOID_rsaSignatureWithsha1_l768_l3 [] = { 0x2B, 0x24, 0x03, 0x03, 0x01, 0x01, 0x86, 0x00, 0x03}; -//1.3.36.3.3.1.1.896.3 Teletrust signature algorithm rsaSignatureWithsha1_l896_l3 -static const unsigned char cvOID_rsaSignatureWithsha1_l896_l3 [] = { 0x2B, 0x24, 0x03, 0x03, 0x01, 0x01, 0x87, 0x00, 0x03}; -//1.3.36.3.3.1.1.1024.3 Teletrust signature algorithm rsaSignatureWithsha1_l1024_l3 -static const unsigned char cvOID_rsaSignatureWithsha1_l1024_l3 [] = { 0x2B, 0x24, 0x03, 0x03, 0x01, 0x01, 0x88, 0x00, 0x03}; -//1.3.36.3.3.1.1.512.5 Teletrust signature algorithm rsaSignatureWithsha1_l512_l5 -static const unsigned char cvOID_rsaSignatureWithsha1_l512_l5 [] = { 0x2B, 0x24, 0x03, 0x03, 0x01, 0x01, 0x84, 0x00, 0x05}; -//1.3.36.3.3.1.1.640.5 Teletrust signature algorithm rsaSignatureWithsha1_l640_l5 -static const unsigned char cvOID_rsaSignatureWithsha1_l640_l5 [] = { 0x2B, 0x24, 0x03, 0x03, 0x01, 0x01, 0x85, 0x00, 0x05}; -//1.3.36.3.3.1.1.768.5 Teletrust signature algorithm rsaSignatureWithsha1_l768_l5 -static const unsigned char cvOID_rsaSignatureWithsha1_l768_l5 [] = { 0x2B, 0x24, 0x03, 0x03, 0x01, 0x01, 0x86, 0x00, 0x05}; -//1.3.36.3.3.1.1.896.5 Teletrust signature algorithm rsaSignatureWithsha1_l896_l5 -static const unsigned char cvOID_rsaSignatureWithsha1_l896_l5 [] = { 0x2B, 0x24, 0x03, 0x03, 0x01, 0x01, 0x87, 0x00, 0x05}; -//1.3.36.3.3.1.1.1024.5 Teletrust signature algorithm rsaSignatureWithsha1_l1024_l5 -static const unsigned char cvOID_rsaSignatureWithsha1_l1024_l5 [] = { 0x2B, 0x24, 0x03, 0x03, 0x01, 0x01, 0x88, 0x00, 0x05}; -//1.3.36.3.3.1.1.512.9 Teletrust signature algorithm rsaSignatureWithsha1_l512_l9 -static const unsigned char cvOID_rsaSignatureWithsha1_l512_l9 [] = { 0x2B, 0x24, 0x03, 0x03, 0x01, 0x01, 0x84, 0x00, 0x09}; -//1.3.36.3.3.1.1.640.9 Teletrust signature algorithm rsaSignatureWithsha1_l640_l9 -static const unsigned char cvOID_rsaSignatureWithsha1_l640_l9 [] = { 0x2B, 0x24, 0x03, 0x03, 0x01, 0x01, 0x85, 0x00, 0x09}; -//1.3.36.3.3.1.1.768.9 Teletrust signature algorithm rsaSignatureWithsha1_l768_l9 -static const unsigned char cvOID_rsaSignatureWithsha1_l768_l9 [] = { 0x2B, 0x24, 0x03, 0x03, 0x01, 0x01, 0x86, 0x00, 0x09}; -//1.3.36.3.3.1.1.896.9 Teletrust signature algorithm rsaSignatureWithsha1_l896_l9 -static const unsigned char cvOID_rsaSignatureWithsha1_l896_l9 [] = { 0x2B, 0x24, 0x03, 0x03, 0x01, 0x01, 0x87, 0x00, 0x09}; -//1.3.36.3.3.1.1.1024.9 Teletrust signature algorithm rsaSignatureWithsha1_l1024_l9 -static const unsigned char cvOID_rsaSignatureWithsha1_l1024_l9 [] = { 0x2B, 0x24, 0x03, 0x03, 0x01, 0x01, 0x88, 0x00, 0x09}; -//1.3.36.3.3.1.1.512.11 Teletrust signature algorithm rsaSignatureWithsha1_l512_l11 -static const unsigned char cvOID_rsaSignatureWithsha1_l512_l11 [] = { 0x2B, 0x24, 0x03, 0x03, 0x01, 0x01, 0x84, 0x00, 0x11}; -//1.3.36.3.3.1.1.640.11 Teletrust signature algorithm rsaSignatureWithsha1_l640_l11 -static const unsigned char cvOID_rsaSignatureWithsha1_l640_l11 [] = { 0x2B, 0x24, 0x03, 0x03, 0x01, 0x01, 0x85, 0x00, 0x11}; -//1.3.36.3.3.1.1.768.11 Teletrust signature algorithm rsaSignatureWithsha1_l768_l11 -static const unsigned char cvOID_rsaSignatureWithsha1_l768_l11 [] = { 0x2B, 0x24, 0x03, 0x03, 0x01, 0x01, 0x86, 0x00, 0x11}; -//1.3.36.3.3.1.1.896.11 Teletrust signature algorithm rsaSignatureWithsha1_l896_l11 -static const unsigned char cvOID_rsaSignatureWithsha1_l896_l11 [] = { 0x2B, 0x24, 0x03, 0x03, 0x01, 0x01, 0x87, 0x00, 0x11}; -//1.3.36.3.3.1.1.1024.11 Teletrust signature algorithm rsaSignatureWithsha1_l1024_l11 -static const unsigned char cvOID_rsaSignatureWithsha1_l1024_l11 [] = { 0x2B, 0x24, 0x03, 0x03, 0x01, 0x01, 0x88, 0x00, 0x11}; -//1.3.36.3.3.1.2 Teletrust signature algorithm rsaSignatureWithripemd160 -static const unsigned char cvOID_rsaSignatureWithripemd160 [] = { 0x2B, 0x24, 0x03, 0x03, 0x01, 0x02}; -//1.3.36.3.3.1.2.512.2 Teletrust signature algorithm rsaSignatureWithripemd160_l512_l2 -static const unsigned char cvOID_rsaSignatureWithripemd160_l512_l2 [] = { 0x2B, 0x24, 0x03, 0x03, 0x01, 0x02, 0x84, 0x00, 0x02}; -//1.3.36.3.3.1.2.640.2 Teletrust signature algorithm rsaSignatureWithripemd160_l640_l2 -static const unsigned char cvOID_rsaSignatureWithripemd160_l640_l2 [] = { 0x2B, 0x24, 0x03, 0x03, 0x01, 0x02, 0x85, 0x00, 0x02}; -//1.3.36.3.3.1.2.768.2 Teletrust signature algorithm rsaSignatureWithripemd160_l768_l2 -static const unsigned char cvOID_rsaSignatureWithripemd160_l768_l2 [] = { 0x2B, 0x24, 0x03, 0x03, 0x01, 0x02, 0x86, 0x00, 0x02}; -//1.3.36.3.3.1.2.892.2 Teletrust signature algorithm rsaSignatureWithripemd160_l896_l2 -static const unsigned char cvOID_rsaSignatureWithripemd160_l896_l2 [] = { 0x2B, 0x24, 0x03, 0x03, 0x01, 0x02, 0x87, 0x00, 0x02}; -//1.3.36.3.3.1.2.1024.2 Teletrust signature algorithm rsaSignatureWithripemd160_l1024_l2 -static const unsigned char cvOID_rsaSignatureWithripemd160_l1024_l2 [] = { 0x2B, 0x24, 0x03, 0x03, 0x01, 0x02, 0x88, 0x00, 0x02}; -//1.3.36.3.3.1.2.512.3 Teletrust signature algorithm rsaSignatureWithripemd160_l512_l3 -static const unsigned char cvOID_rsaSignatureWithripemd160_l512_l3 [] = { 0x2B, 0x24, 0x03, 0x03, 0x01, 0x02, 0x84, 0x00, 0x03}; -//1.3.36.3.3.1.2.640.3 Teletrust signature algorithm rsaSignatureWithripemd160_l640_l3 -static const unsigned char cvOID_rsaSignatureWithripemd160_l640_l3 [] = { 0x2B, 0x24, 0x03, 0x03, 0x01, 0x02, 0x85, 0x00, 0x03}; -//1.3.36.3.3.1.2.768.3 Teletrust signature algorithm rsaSignatureWithripemd160_l768_l3 -static const unsigned char cvOID_rsaSignatureWithripemd160_l768_l3 [] = { 0x2B, 0x24, 0x03, 0x03, 0x01, 0x02, 0x86, 0x00, 0x03}; -//1.3.36.3.3.1.2.896.3 Teletrust signature algorithm rsaSignatureWithripemd160_l896_l3 -static const unsigned char cvOID_rsaSignatureWithripemd160_l896_l3 [] = { 0x2B, 0x24, 0x03, 0x03, 0x01, 0x02, 0x87, 0x00, 0x03}; -//1.3.36.3.3.1.2.1024.3 Teletrust signature algorithm rsaSignatureWithripemd160_l1024_l3 -static const unsigned char cvOID_rsaSignatureWithripemd160_l1024_l3 [] = { 0x2B, 0x24, 0x03, 0x03, 0x01, 0x02, 0x88, 0x00, 0x03}; -//1.3.36.3.3.1.2.512.5 Teletrust signature algorithm rsaSignatureWithripemd160_l512_l5 -static const unsigned char cvOID_rsaSignatureWithripemd160_l512_l5 [] = { 0x2B, 0x24, 0x03, 0x03, 0x01, 0x02, 0x84, 0x00, 0x05}; -//1.3.36.3.3.1.2.640.5 Teletrust signature algorithm rsaSignatureWithripemd160_l640_l5 -static const unsigned char cvOID_rsaSignatureWithripemd160_l640_l5 [] = { 0x2B, 0x24, 0x03, 0x03, 0x01, 0x02, 0x85, 0x00, 0x05}; -//1.3.36.3.3.1.2.768.5 Teletrust signature algorithm rsaSignatureWithripemd160_l768_l5 -static const unsigned char cvOID_rsaSignatureWithripemd160_l768_l5 [] = { 0x2B, 0x24, 0x03, 0x03, 0x01, 0x02, 0x86, 0x00, 0x05}; -//1.3.36.3.3.1.2.896.5 Teletrust signature algorithm rsaSignatureWithripemd160_l896_l5 -static const unsigned char cvOID_rsaSignatureWithripemd160_l896_l5 [] = { 0x2B, 0x24, 0x03, 0x03, 0x01, 0x02, 0x87, 0x00, 0x05}; -//1.3.36.3.3.1.2.1024.5 Teletrust signature algorithm rsaSignatureWithripemd160_l1024_l5 -static const unsigned char cvOID_rsaSignatureWithripemd160_l1024_l5 [] = { 0x2B, 0x24, 0x03, 0x03, 0x01, 0x02, 0x88, 0x00, 0x05}; -//1.3.36.3.3.1.2.512.9 Teletrust signature algorithm rsaSignatureWithripemd160_l512_l9 -static const unsigned char cvOID_rsaSignatureWithripemd160_l512_l9 [] = { 0x2B, 0x24, 0x03, 0x03, 0x01, 0x02, 0x84, 0x00, 0x09}; -//1.3.36.3.3.1.2.640.9 Teletrust signature algorithm rsaSignatureWithripemd160_l640_l9 -static const unsigned char cvOID_rsaSignatureWithripemd160_l640_l9 [] = { 0x2B, 0x24, 0x03, 0x03, 0x01, 0x02, 0x85, 0x00, 0x09}; -//1.3.36.3.3.1.2.768.9 Teletrust signature algorithm rsaSignatureWithripemd160_l768_l9 -static const unsigned char cvOID_rsaSignatureWithripemd160_l768_l9 [] = { 0x2B, 0x24, 0x03, 0x03, 0x01, 0x02, 0x86, 0x00, 0x09}; -//1.3.36.3.3.1.2.896.9 Teletrust signature algorithm rsaSignatureWithripemd160_l896_l9 -static const unsigned char cvOID_rsaSignatureWithripemd160_l896_l9 [] = { 0x2B, 0x24, 0x03, 0x03, 0x01, 0x02, 0x87, 0x00, 0x09}; -//1.3.36.3.3.1.2.1024.9 Teletrust signature algorithm rsaSignatureWithripemd160_l1024_l9 -static const unsigned char cvOID_rsaSignatureWithripemd160_l1024_l9 [] = { 0x2B, 0x24, 0x03, 0x03, 0x01, 0x02, 0x88, 0x00, 0x09}; -//1.3.36.3.3.1.2.512.11 Teletrust signature algorithm rsaSignatureWithripemd160_l512_l11 -static const unsigned char cvOID_rsaSignatureWithripemd160_l512_l11 [] = { 0x2B, 0x24, 0x03, 0x03, 0x01, 0x02, 0x84, 0x00, 0x11}; -//1.3.36.3.3.1.2.640.11 Teletrust signature algorithm rsaSignatureWithripemd160_l640_l11 -static const unsigned char cvOID_rsaSignatureWithripemd160_l640_l11 [] = { 0x2B, 0x24, 0x03, 0x03, 0x01, 0x02, 0x85, 0x00, 0x11}; -//1.3.36.3.3.1.2.768.11 Teletrust signature algorithm rsaSignatureWithripemd160_l768_l11 -static const unsigned char cvOID_rsaSignatureWithripemd160_l768_l11 [] = { 0x2B, 0x24, 0x03, 0x03, 0x01, 0x02, 0x86, 0x00, 0x11}; -//1.3.36.3.3.1.2.896.11 Teletrust signature algorithm rsaSignatureWithripemd160_l896_l11 -static const unsigned char cvOID_rsaSignatureWithripemd160_l896_l11 [] = { 0x2B, 0x24, 0x03, 0x03, 0x01, 0x02, 0x87, 0x00, 0x11}; -//1.3.36.3.3.1.2.1024.11 Teletrust signature algorithm rsaSignatureWithripemd160_l1024_l11 -static const unsigned char cvOID_rsaSignatureWithripemd160_l1024_l11 [] = { 0x2B, 0x24, 0x03, 0x03, 0x01, 0x02, 0x88, 0x00, 0x11}; -//1.3.36.3.3.1.3 Teletrust signature algorithm rsaSignatureWithrimpemd128 -static const unsigned char cvOID_rsaSignatureWithrimpemd128 [] = { 0x2B, 0x24, 0x03, 0x03, 0x01, 0x03}; -//1.3.36.3.3.1.4 Teletrust signature algorithm rsaSignatureWithrimpemd256 -static const unsigned char cvOID_rsaSignatureWithrimpemd256 [] = { 0x2B, 0x24, 0x03, 0x03, 0x01, 0x04}; -//1.3.36.3.3.2 Teletrust signature algorithm ecsieSign -static const unsigned char cvOID_ecsieSign [] = { 0x2B, 0x24, 0x03, 0x03, 0x02}; -//1.3.36.3.3.2.1 Teletrust signature algorithm ecsieSignWithsha1 -static const unsigned char cvOID_ecsieSignWithsha1 [] = { 0x2B, 0x24, 0x03, 0x03, 0x02, 0x01}; -//1.3.36.3.3.2.2 Teletrust signature algorithm ecsieSignWithripemd160 -static const unsigned char cvOID_ecsieSignWithripemd160 [] = { 0x2B, 0x24, 0x03, 0x03, 0x02, 0x02}; -//1.3.36.3.3.2.3 Teletrust signature algorithm ecsieSignWithmd2 -static const unsigned char cvOID_ecsieSignWithmd2 [] = { 0x2B, 0x24, 0x03, 0x03, 0x02, 0x03}; -//1.3.36.3.3.2.4 Teletrust signature algorithm ecsieSignWithmd5 -static const unsigned char cvOID_ecsieSignWithmd5 [] = { 0x2B, 0x24, 0x03, 0x03, 0x02, 0x04}; -//1.3.36.3.4 Teletrust algorithm signatureScheme -static const unsigned char cvOID_signatureScheme [] = { 0x2B, 0x24, 0x03, 0x04}; -//1.3.36.3.4.1 Teletrust signature scheme sigS_ISO9796-1 -static const unsigned char cvOID_sigS_ISO9796_1 [] = { 0x2B, 0x24, 0x03, 0x04, 0x01}; -//1.3.36.3.4.2 Teletrust signature scheme sigS_ISO9796-2 -static const unsigned char cvOID_sigS_ISO9796_2 [] = { 0x2B, 0x24, 0x03, 0x04, 0x02}; -//1.3.36.3.4.2.1 Teletrust signature scheme. Unsure what this is supposed to be sigS_ISO9796-2Withred -static const unsigned char cvOID_sigS_ISO9796_2Withred [] = { 0x2B, 0x24, 0x03, 0x04, 0x02, 0x01}; -//1.3.36.3.4.2.2 Teletrust signature scheme. Unsure what this is supposed to be sigS_ISO9796-2Withrsa -static const unsigned char cvOID_sigS_ISO9796_2Withrsa [] = { 0x2B, 0x24, 0x03, 0x04, 0x02, 0x02}; -//1.3.36.3.4.2.3 Teletrust signature scheme. 9796-2 with random number in padding field sigS_ISO9796-2Withrnd -static const unsigned char cvOID_sigS_ISO9796_2Withrnd [] = { 0x2B, 0x24, 0x03, 0x04, 0x02, 0x03}; -//1.3.36.4 Teletrust attribute attribute -static const unsigned char cvOID_attribute_Teletrust [] = { 0x2B, 0x24, 0x04}; -//1.3.36.5 Teletrust policy policy -static const unsigned char cvOID_policy [] = { 0x2B, 0x24, 0x05}; -//1.3.36.6 Teletrust API api -static const unsigned char cvOID_api [] = { 0x2B, 0x24, 0x06}; -//1.3.36.6.1 Teletrust API manufacturer-specific_api -static const unsigned char cvOID_manufacturer_specific_api [] = { 0x2B, 0x24, 0x06, 0x01}; -//1.3.36.6.1.1 Teletrust API utimaco-api -static const unsigned char cvOID_utimaco_api [] = { 0x2B, 0x24, 0x06, 0x01, 0x01}; -//1.3.36.6.2 Teletrust API functionality-specific_api -static const unsigned char cvOID_functionality_specific_api [] = { 0x2B, 0x24, 0x06, 0x02}; -//1.3.36.7 Teletrust key management keymgmnt -static const unsigned char cvOID_keymgmnt [] = { 0x2B, 0x24, 0x07}; -//1.3.36.7.1 Teletrust key management keyagree -static const unsigned char cvOID_keyagree [] = { 0x2B, 0x24, 0x07, 0x01}; -//1.3.36.7.1.1 Teletrust key management bsiPKE -static const unsigned char cvOID_bsiPKE [] = { 0x2B, 0x24, 0x07, 0x01, 0x01}; -//1.3.36.7.2 Teletrust key management keytrans -static const unsigned char cvOID_keytrans [] = { 0x2B, 0x24, 0x07, 0x02}; -//1.3.36.7.2.1 Teletrust key management. 9796-2 with key stored in hash field encISO9796-2Withrsa -static const unsigned char cvOID_encISO9796_2Withrsa [] = { 0x2B, 0x24, 0x07, 0x02, 0x01}; -//1.3.36.8.1.1 Teletrust policy sigiSigConform -static const unsigned char cvOID_sigiSigConform [] = { 0x2B, 0x24, 0x08, 0x01, 0x01}; -//1.3.36.8.2.1 Teletrust extended key usage directoryService -static const unsigned char cvOID_directoryService [] = { 0x2B, 0x24, 0x08, 0x02, 0x01}; -//1.3.36.8.3.1 Teletrust attribute dateOfCertGen -static const unsigned char cvOID_dateOfCertGen [] = { 0x2B, 0x24, 0x08, 0x03, 0x01}; -//1.3.36.8.3.2 Teletrust attribute procuration -static const unsigned char cvOID_procuration [] = { 0x2B, 0x24, 0x08, 0x03, 0x02}; -//1.3.36.8.3.3 Teletrust attribute admission -static const unsigned char cvOID_admission [] = { 0x2B, 0x24, 0x08, 0x03, 0x03}; -//1.3.36.8.3.4 Teletrust attribute monetaryLimit -static const unsigned char cvOID_monetaryLimit [] = { 0x2B, 0x24, 0x08, 0x03, 0x04}; -//1.3.36.8.3.5 Teletrust attribute declarationOfMajority -static const unsigned char cvOID_declarationOfMajority [] = { 0x2B, 0x24, 0x08, 0x03, 0x05}; -//1.3.36.8.3.6 Teletrust attribute integratedCircuitCardSerialNumber -static const unsigned char cvOID_integratedCircuitCardSerialNumber [] = { 0x2B, 0x24, 0x08, 0x03, 0x06}; -//1.3.36.8.3.7 Teletrust attribute pKReference -static const unsigned char cvOID_pKReference [] = { 0x2B, 0x24, 0x08, 0x03, 0x07}; -//1.3.36.8.3.8 Teletrust attribute restriction -static const unsigned char cvOID_restriction_1 [] = { 0x2B, 0x24, 0x08, 0x03, 0x08}; -//1.3.36.8.3.9 Teletrust attribute retrieveIfAllowed -static const unsigned char cvOID_retrieveIfAllowed [] = { 0x2B, 0x24, 0x08, 0x03, 0x09}; -//1.3.36.8.3.10 Teletrust attribute requestedCertificate -static const unsigned char cvOID_requestedCertificate [] = { 0x2B, 0x24, 0x08, 0x03, 0x0A}; -//1.3.36.8.3.11 Teletrust attribute namingAuthorities -static const unsigned char cvOID_namingAuthorities [] = { 0x2B, 0x24, 0x08, 0x03, 0x0B}; -//1.3.36.8.3.12 Teletrust attribute certInDirSince -static const unsigned char cvOID_certInDirSince [] = { 0x2B, 0x24, 0x08, 0x03, 0x0C}; -//1.3.36.8.3.13 Teletrust attribute certHash -static const unsigned char cvOID_certHash [] = { 0x2B, 0x24, 0x08, 0x03, 0x0D}; -//1.3.36.8.4.1 Teletrust OtherName attribute personalData -static const unsigned char cvOID_personalData [] = { 0x2B, 0x24, 0x08, 0x04, 0x01}; -//1.3.36.8.4.8 Teletrust attribute certificate attribute restriction -static const unsigned char cvOID_restriction_2 [] = { 0x2B, 0x24, 0x08, 0x04, 0x08}; -//1.3.36.8.5.1.1.1 Teletrust signature algorithm rsaIndicateSHA1 -static const unsigned char cvOID_rsaIndicateSHA1 [] = { 0x2B, 0x24, 0x08, 0x05, 0x01, 0x01, 0x01}; -//1.3.36.8.5.1.1.2 Teletrust signature algorithm rsaIndicateRIPEMD160 -static const unsigned char cvOID_rsaIndicateRIPEMD160 [] = { 0x2B, 0x24, 0x08, 0x05, 0x01, 0x01, 0x02}; -//1.3.36.8.5.1.1.3 Teletrust signature algorithm rsaWithSHA1 -static const unsigned char cvOID_rsaWithSHA1 [] = { 0x2B, 0x24, 0x08, 0x05, 0x01, 0x01, 0x03}; -//1.3.36.8.5.1.1.4 Teletrust signature algorithm rsaWithRIPEMD160 -static const unsigned char cvOID_rsaWithRIPEMD160 [] = { 0x2B, 0x24, 0x08, 0x05, 0x01, 0x01, 0x04}; -//1.3.36.8.5.1.2.1 Teletrust signature algorithm dsaExtended -static const unsigned char cvOID_dsaExtended [] = { 0x2B, 0x24, 0x08, 0x05, 0x01, 0x02, 0x01}; -//1.3.36.8.5.1.2.2 Teletrust signature algorithm dsaWithRIPEMD160 -static const unsigned char cvOID_dsaWithRIPEMD160 [] = { 0x2B, 0x24, 0x08, 0x05, 0x01, 0x02, 0x02}; -//1.3.36.8.6.1 Teletrust signature attributes cert -static const unsigned char cvOID_cert [] = { 0x2B, 0x24, 0x08, 0x06, 0x01}; -//1.3.36.8.6.2 Teletrust signature attributes certRef -static const unsigned char cvOID_certRef [] = { 0x2B, 0x24, 0x08, 0x06, 0x02}; -//1.3.36.8.6.3 Teletrust signature attributes attrCert -static const unsigned char cvOID_attrCert [] = { 0x2B, 0x24, 0x08, 0x06, 0x03}; -//1.3.36.8.6.4 Teletrust signature attributes attrRef -static const unsigned char cvOID_attrRef [] = { 0x2B, 0x24, 0x08, 0x06, 0x04}; -//1.3.36.8.6.5 Teletrust signature attributes fileName -static const unsigned char cvOID_fileName [] = { 0x2B, 0x24, 0x08, 0x06, 0x05}; -//1.3.36.8.6.6 Teletrust signature attributes storageTime -static const unsigned char cvOID_storageTime [] = { 0x2B, 0x24, 0x08, 0x06, 0x06}; -//1.3.36.8.6.7 Teletrust signature attributes fileSize -static const unsigned char cvOID_fileSize [] = { 0x2B, 0x24, 0x08, 0x06, 0x07}; -//1.3.36.8.6.8 Teletrust signature attributes location -static const unsigned char cvOID_location [] = { 0x2B, 0x24, 0x08, 0x06, 0x08}; -//1.3.36.8.6.9 Teletrust signature attributes sigNumber -static const unsigned char cvOID_sigNumber [] = { 0x2B, 0x24, 0x08, 0x06, 0x09}; -//1.3.36.8.6.10 Teletrust signature attributes autoGen -static const unsigned char cvOID_autoGen [] = { 0x2B, 0x24, 0x08, 0x06, 0x0A}; -//1.3.36.8.7.1.1 Teletrust presentation types ptAdobeILL -static const unsigned char cvOID_ptAdobeILL [] = { 0x2B, 0x24, 0x08, 0x07, 0x01, 0x01}; -//1.3.36.8.7.1.2 Teletrust presentation types ptAmiPro -static const unsigned char cvOID_ptAmiPro [] = { 0x2B, 0x24, 0x08, 0x07, 0x01, 0x02}; -//1.3.36.8.7.1.3 Teletrust presentation types ptAutoCAD -static const unsigned char cvOID_ptAutoCAD [] = { 0x2B, 0x24, 0x08, 0x07, 0x01, 0x03}; -//1.3.36.8.7.1.4 Teletrust presentation types ptBinary -static const unsigned char cvOID_ptBinary [] = { 0x2B, 0x24, 0x08, 0x07, 0x01, 0x04}; -//1.3.36.8.7.1.5 Teletrust presentation types ptBMP -static const unsigned char cvOID_ptBMP [] = { 0x2B, 0x24, 0x08, 0x07, 0x01, 0x05}; -//1.3.36.8.7.1.6 Teletrust presentation types ptCGM -static const unsigned char cvOID_ptCGM [] = { 0x2B, 0x24, 0x08, 0x07, 0x01, 0x06}; -//1.3.36.8.7.1.7 Teletrust presentation types ptCorelCRT -static const unsigned char cvOID_ptCorelCRT [] = { 0x2B, 0x24, 0x08, 0x07, 0x01, 0x07}; -//1.3.36.8.7.1.8 Teletrust presentation types ptCorelDRW -static const unsigned char cvOID_ptCorelDRW [] = { 0x2B, 0x24, 0x08, 0x07, 0x01, 0x08}; -//1.3.36.8.7.1.9 Teletrust presentation types ptCorelEXC -static const unsigned char cvOID_ptCorelEXC [] = { 0x2B, 0x24, 0x08, 0x07, 0x01, 0x09}; -//1.3.36.8.7.1.10 Teletrust presentation types ptCorelPHT -static const unsigned char cvOID_ptCorelPHT [] = { 0x2B, 0x24, 0x08, 0x07, 0x01, 0x0A}; -//1.3.36.8.7.1.11 Teletrust presentation types ptDraw -static const unsigned char cvOID_ptDraw [] = { 0x2B, 0x24, 0x08, 0x07, 0x01, 0x0B}; -//1.3.36.8.7.1.12 Teletrust presentation types ptDVI -static const unsigned char cvOID_ptDVI [] = { 0x2B, 0x24, 0x08, 0x07, 0x01, 0x0C}; -//1.3.36.8.7.1.13 Teletrust presentation types ptEPS -static const unsigned char cvOID_ptEPS [] = { 0x2B, 0x24, 0x08, 0x07, 0x01, 0x0D}; -//1.3.36.8.7.1.14 Teletrust presentation types ptExcel -static const unsigned char cvOID_ptExcel [] = { 0x2B, 0x24, 0x08, 0x07, 0x01, 0x0E}; -//1.3.36.8.7.1.15 Teletrust presentation types ptGEM -static const unsigned char cvOID_ptGEM [] = { 0x2B, 0x24, 0x08, 0x07, 0x01, 0x0F}; -//1.3.36.8.7.1.16 Teletrust presentation types ptGIF -static const unsigned char cvOID_ptGIF [] = { 0x2B, 0x24, 0x08, 0x07, 0x01, 0x10}; -//1.3.36.8.7.1.17 Teletrust presentation types ptHPGL -static const unsigned char cvOID_ptHPGL [] = { 0x2B, 0x24, 0x08, 0x07, 0x01, 0x11}; -//1.3.36.8.7.1.18 Teletrust presentation types ptJPEG -static const unsigned char cvOID_ptJPEG [] = { 0x2B, 0x24, 0x08, 0x07, 0x01, 0x12}; -//1.3.36.8.7.1.19 Teletrust presentation types ptKodak -static const unsigned char cvOID_ptKodak [] = { 0x2B, 0x24, 0x08, 0x07, 0x01, 0x13}; -//1.3.36.8.7.1.20 Teletrust presentation types ptLaTeX -static const unsigned char cvOID_ptLaTeX [] = { 0x2B, 0x24, 0x08, 0x07, 0x01, 0x14}; -//1.3.36.8.7.1.21 Teletrust presentation types ptLotus -static const unsigned char cvOID_ptLotus [] = { 0x2B, 0x24, 0x08, 0x07, 0x01, 0x15}; -//1.3.36.8.7.1.22 Teletrust presentation types ptLotusPIC -static const unsigned char cvOID_ptLotusPIC [] = { 0x2B, 0x24, 0x08, 0x07, 0x01, 0x16}; -//1.3.36.8.7.1.23 Teletrust presentation types ptMacPICT -static const unsigned char cvOID_ptMacPICT [] = { 0x2B, 0x24, 0x08, 0x07, 0x01, 0x17}; -//1.3.36.8.7.1.24 Teletrust presentation types ptMacWord -static const unsigned char cvOID_ptMacWord [] = { 0x2B, 0x24, 0x08, 0x07, 0x01, 0x18}; -//1.3.36.8.7.1.25 Teletrust presentation types ptMSWfD -static const unsigned char cvOID_ptMSWfD [] = { 0x2B, 0x24, 0x08, 0x07, 0x01, 0x19}; -//1.3.36.8.7.1.26 Teletrust presentation types ptMSWord -static const unsigned char cvOID_ptMSWord [] = { 0x2B, 0x24, 0x08, 0x07, 0x01, 0x1A}; -//1.3.36.8.7.1.27 Teletrust presentation types ptMSWord2 -static const unsigned char cvOID_ptMSWord2 [] = { 0x2B, 0x24, 0x08, 0x07, 0x01, 0x1B}; -//1.3.36.8.7.1.28 Teletrust presentation types ptMSWord6 -static const unsigned char cvOID_ptMSWord6 [] = { 0x2B, 0x24, 0x08, 0x07, 0x01, 0x1C}; -//1.3.36.8.7.1.29 Teletrust presentation types ptMSWord8 -static const unsigned char cvOID_ptMSWord8 [] = { 0x2B, 0x24, 0x08, 0x07, 0x01, 0x1D}; -//1.3.36.8.7.1.30 Teletrust presentation types ptPDF -static const unsigned char cvOID_ptPDF [] = { 0x2B, 0x24, 0x08, 0x07, 0x01, 0x1E}; -//1.3.36.8.7.1.31 Teletrust presentation types ptPIF -static const unsigned char cvOID_ptPIF [] = { 0x2B, 0x24, 0x08, 0x07, 0x01, 0x1F}; -//1.3.36.8.7.1.32 Teletrust presentation types ptPostscript -static const unsigned char cvOID_ptPostscript [] = { 0x2B, 0x24, 0x08, 0x07, 0x01, 0x20}; -//1.3.36.8.7.1.33 Teletrust presentation types ptRTF -static const unsigned char cvOID_ptRTF [] = { 0x2B, 0x24, 0x08, 0x07, 0x01, 0x21}; -//1.3.36.8.7.1.34 Teletrust presentation types ptSCITEX -static const unsigned char cvOID_ptSCITEX [] = { 0x2B, 0x24, 0x08, 0x07, 0x01, 0x22}; -//1.3.36.8.7.1.35 Teletrust presentation types ptTAR -static const unsigned char cvOID_ptTAR [] = { 0x2B, 0x24, 0x08, 0x07, 0x01, 0x23}; -//1.3.36.8.7.1.36 Teletrust presentation types ptTarga -static const unsigned char cvOID_ptTarga [] = { 0x2B, 0x24, 0x08, 0x07, 0x01, 0x24}; -//1.3.36.8.7.1.37 Teletrust presentation types ptTeX -static const unsigned char cvOID_ptTeX [] = { 0x2B, 0x24, 0x08, 0x07, 0x01, 0x25}; -//1.3.36.8.7.1.38 Teletrust presentation types ptText -static const unsigned char cvOID_ptText [] = { 0x2B, 0x24, 0x08, 0x07, 0x01, 0x26}; -//1.3.36.8.7.1.39 Teletrust presentation types ptTIFF -static const unsigned char cvOID_ptTIFF [] = { 0x2B, 0x24, 0x08, 0x07, 0x01, 0x27}; -//1.3.36.8.7.1.40 Teletrust presentation types ptTIFF-FC -static const unsigned char cvOID_ptTIFF_FC [] = { 0x2B, 0x24, 0x08, 0x07, 0x01, 0x28}; -//1.3.36.8.7.1.41 Teletrust presentation types ptUID -static const unsigned char cvOID_ptUID [] = { 0x2B, 0x24, 0x08, 0x07, 0x01, 0x29}; -//1.3.36.8.7.1.42 Teletrust presentation types ptUUEncode -static const unsigned char cvOID_ptUUEncode [] = { 0x2B, 0x24, 0x08, 0x07, 0x01, 0x2A}; -//1.3.36.8.7.1.43 Teletrust presentation types ptWMF -static const unsigned char cvOID_ptWMF [] = { 0x2B, 0x24, 0x08, 0x07, 0x01, 0x2B}; -//1.3.36.8.7.1.44 Teletrust presentation types ptWordPerfect -static const unsigned char cvOID_ptWordPerfect [] = { 0x2B, 0x24, 0x08, 0x07, 0x01, 0x2C}; -//1.3.36.8.7.1.45 Teletrust presentation types ptWPGrph -static const unsigned char cvOID_ptWPGrph [] = { 0x2B, 0x24, 0x08, 0x07, 0x01, 0x2D}; -//1.3.101.1.4 Thawte thawte-ce -static const unsigned char cvOID_thawte_ce [] = { 0x2B, 0x65, 0x01, 0x04}; -//1.3.101.1.4.1 Thawte certificate extension strongExtranet -static const unsigned char cvOID_strongExtranet [] = { 0x2B, 0x65, 0x01, 0x04, 0x01}; -//2.5.4.0 X.520 id-at (2 5 4) objectClass -static const unsigned char cvOID_objectClass [] = { 0x55, 0x04, 0x00}; -//2.5.4.1 X.520 id-at (2 5 4) aliasedEntryName -static const unsigned char cvOID_aliasedEntryName [] = { 0x55, 0x04, 0x01}; -//2.5.4.2 X.520 id-at (2 5 4) knowledgeInformation -static const unsigned char cvOID_knowledgeInformation [] = { 0x55, 0x04, 0x02}; -//2.5.4.3 X.520 id-at (2 5 4) commonName -static const unsigned char cvOID_commonName [] = { 0x55, 0x04, 0x03}; -//2.5.4.4 X.520 id-at (2 5 4) surname -static const unsigned char cvOID_surname [] = { 0x55, 0x04, 0x04}; -//2.5.4.5 X.520 id-at (2 5 4) serialNumber -static const unsigned char cvOID_serialNumber [] = { 0x55, 0x04, 0x05}; -//2.5.4.6 X.520 id-at (2 5 4) countryName -static const unsigned char cvOID_countryName [] = { 0x55, 0x04, 0x06}; -//2.5.4.7 X.520 id-at (2 5 4) localityName -static const unsigned char cvOID_localityName [] = { 0x55, 0x04, 0x07}; -//2.5.4.7.1 X.520 id-at (2 5 4) collectiveLocalityName -static const unsigned char cvOID_collectiveLocalityName [] = { 0x55, 0x04, 0x07, 0x01}; -//2.5.4.8 X.520 id-at (2 5 4) stateOrProvinceName -static const unsigned char cvOID_stateOrProvinceName [] = { 0x55, 0x04, 0x08}; -//2.5.4.8.1 X.520 id-at (2 5 4) collectiveStateOrProvinceName -static const unsigned char cvOID_collectiveStateOrProvinceName [] = { 0x55, 0x04, 0x08, 0x01}; -//2.5.4.9 X.520 id-at (2 5 4) streetAddress -static const unsigned char cvOID_streetAddress [] = { 0x55, 0x04, 0x09}; -//2.5.4.9.1 X.520 id-at (2 5 4) collectiveStreetAddress -static const unsigned char cvOID_collectiveStreetAddress [] = { 0x55, 0x04, 0x09, 0x01}; -//2.5.4.10 X.520 id-at (2 5 4) organizationName -static const unsigned char cvOID_organizationName [] = { 0x55, 0x04, 0x0A}; -//2.5.4.10.1 X.520 id-at (2 5 4) collectiveOrganizationName -static const unsigned char cvOID_collectiveOrganizationName [] = { 0x55, 0x04, 0x0A, 0x01}; -//2.5.4.11 X.520 id-at (2 5 4) organizationalUnitName -static const unsigned char cvOID_organizationalUnitName [] = { 0x55, 0x04, 0x0B}; -//2.5.4.11.1 X.520 id-at (2 5 4) collectiveOrganizationalUnitName -static const unsigned char cvOID_collectiveOrganizationalUnitName [] = { 0x55, 0x04, 0x0B, 0x01}; -//2.5.4.12 X.520 id-at (2 5 4) title -static const unsigned char cvOID_title [] = { 0x55, 0x04, 0x0C}; -//2.5.4.13 X.520 id-at (2 5 4) description -static const unsigned char cvOID_description [] = { 0x55, 0x04, 0x0D}; -//2.5.4.14 X.520 id-at (2 5 4) searchGuide -static const unsigned char cvOID_searchGuide [] = { 0x55, 0x04, 0x0E}; -//2.5.4.15 X.520 id-at (2 5 4) businessCategory -static const unsigned char cvOID_businessCategory [] = { 0x55, 0x04, 0x0F}; -//2.5.4.16 X.520 id-at (2 5 4) postalAddress -static const unsigned char cvOID_postalAddress [] = { 0x55, 0x04, 0x10}; -//2.5.4.16.1 X.520 id-at (2 5 4) collectivePostalAddress -static const unsigned char cvOID_collectivePostalAddress [] = { 0x55, 0x04, 0x10, 0x01}; -//2.5.4.17 X.520 id-at (2 5 4) postalCode -static const unsigned char cvOID_postalCode [] = { 0x55, 0x04, 0x11}; -//2.5.4.17.1 X.520 id-at (2 5 4) collectivePostalCode -static const unsigned char cvOID_collectivePostalCode [] = { 0x55, 0x04, 0x11, 0x01}; -//2.5.4.18 X.520 id-at (2 5 4) postOfficeBox -static const unsigned char cvOID_postOfficeBox [] = { 0x55, 0x04, 0x12}; -//2.5.4.18.1 X.520 id-at (2 5 4) collectivePostOfficeBox -static const unsigned char cvOID_collectivePostOfficeBox [] = { 0x55, 0x04, 0x12, 0x01}; -//2.5.4.19 X.520 id-at (2 5 4) physicalDeliveryOfficeName -static const unsigned char cvOID_physicalDeliveryOfficeName [] = { 0x55, 0x04, 0x13}; -//2.5.4.19.1 X.520 id-at (2 5 4) collectivePhysicalDeliveryOfficeName -static const unsigned char cvOID_collectivePhysicalDeliveryOfficeName [] = { 0x55, 0x04, 0x13, 0x01}; -//2.5.4.20 X.520 id-at (2 5 4) telephoneNumber -static const unsigned char cvOID_telephoneNumber [] = { 0x55, 0x04, 0x14}; -//2.5.4.20.1 X.520 id-at (2 5 4) collectiveTelephoneNumber -static const unsigned char cvOID_collectiveTelephoneNumber [] = { 0x55, 0x04, 0x14, 0x01}; -//2.5.4.21 X.520 id-at (2 5 4) telexNumber -static const unsigned char cvOID_telexNumber [] = { 0x55, 0x04, 0x15}; -//2.5.4.21.1 X.520 id-at (2 5 4) collectiveTelexNumber -static const unsigned char cvOID_collectiveTelexNumber [] = { 0x55, 0x04, 0x15, 0x01}; -//2.5.4.22 X.520 id-at (2 5 4) teletexTerminalIdentifier -static const unsigned char cvOID_teletexTerminalIdentifier [] = { 0x55, 0x04, 0x16}; -//2.5.4.22.1 X.520 id-at (2 5 4) collectiveTeletexTerminalIdentifier -static const unsigned char cvOID_collectiveTeletexTerminalIdentifier [] = { 0x55, 0x04, 0x16, 0x01}; -//2.5.4.23 X.520 id-at (2 5 4) facsimileTelephoneNumber -static const unsigned char cvOID_facsimileTelephoneNumber [] = { 0x55, 0x04, 0x17}; -//2.5.4.23.1 X.520 id-at (2 5 4) collectiveFacsimileTelephoneNumber -static const unsigned char cvOID_collectiveFacsimileTelephoneNumber [] = { 0x55, 0x04, 0x17, 0x01}; -//2.5.4.24 X.520 id-at (2 5 4) x121Address -static const unsigned char cvOID_x121Address [] = { 0x55, 0x04, 0x18}; -//2.5.4.25 X.520 id-at (2 5 4) internationalISDNNumber -static const unsigned char cvOID_internationalISDNNumber [] = { 0x55, 0x04, 0x19}; -//2.5.4.25.1 X.520 id-at (2 5 4) collectiveInternationalISDNNumber -static const unsigned char cvOID_collectiveInternationalISDNNumber [] = { 0x55, 0x04, 0x19, 0x01}; -//2.5.4.26 X.520 id-at (2 5 4) registeredAddress -static const unsigned char cvOID_registeredAddress [] = { 0x55, 0x04, 0x1A}; -//2.5.4.27 X.520 id-at (2 5 4) destinationIndicator -static const unsigned char cvOID_destinationIndicator [] = { 0x55, 0x04, 0x1B}; -//2.5.4.28 X.520 id-at (2 5 4) preferredDeliveryMehtod -static const unsigned char cvOID_preferredDeliveryMehtod [] = { 0x55, 0x04, 0x1C}; -//2.5.4.29 X.520 id-at (2 5 4) presentationAddress -static const unsigned char cvOID_presentationAddress [] = { 0x55, 0x04, 0x1D}; -//2.5.4.30 X.520 id-at (2 5 4) supportedApplicationContext -static const unsigned char cvOID_supportedApplicationContext [] = { 0x55, 0x04, 0x1E}; -//2.5.4.31 X.520 id-at (2 5 4) member -static const unsigned char cvOID_member [] = { 0x55, 0x04, 0x1F}; -//2.5.4.32 X.520 id-at (2 5 4) owner -static const unsigned char cvOID_owner [] = { 0x55, 0x04, 0x20}; -//2.5.4.33 X.520 id-at (2 5 4) roleOccupant -static const unsigned char cvOID_roleOccupant [] = { 0x55, 0x04, 0x21}; -//2.5.4.34 X.520 id-at (2 5 4) seeAlso -static const unsigned char cvOID_seeAlso [] = { 0x55, 0x04, 0x22}; -//2.5.4.35 X.520 id-at (2 5 4) userPassword -static const unsigned char cvOID_userPassword [] = { 0x55, 0x04, 0x23}; -//2.5.4.36 X.520 id-at (2 5 4) userCertificate -static const unsigned char cvOID_userCertificate [] = { 0x55, 0x04, 0x24}; -//2.5.4.37 X.520 id-at (2 5 4) caCertificate -static const unsigned char cvOID_caCertificate [] = { 0x55, 0x04, 0x25}; -//2.5.4.38 X.520 id-at (2 5 4) authorityRevocationList -static const unsigned char cvOID_authorityRevocationList [] = { 0x55, 0x04, 0x26}; -//2.5.4.39 X.520 id-at (2 5 4) certificateRevocationList -static const unsigned char cvOID_certificateRevocationList [] = { 0x55, 0x04, 0x27}; -//2.5.4.40 X.520 id-at (2 5 4) crossCertificatePair -static const unsigned char cvOID_crossCertificatePair_2 [] = { 0x55, 0x04, 0x28}; -//2.5.4.41 X.520 id-at (2 5 4) name -static const unsigned char cvOID_name [] = { 0x55, 0x04, 0x29}; -//2.5.4.42 X.520 id-at (2 5 4) givenName -static const unsigned char cvOID_givenName [] = { 0x55, 0x04, 0x2A}; -//2.5.4.43 X.520 id-at (2 5 4) initials -static const unsigned char cvOID_initials [] = { 0x55, 0x04, 0x2B}; -//2.5.4.44 X.520 id-at (2 5 4) generationQualifier -static const unsigned char cvOID_generationQualifier [] = { 0x55, 0x04, 0x2C}; -//2.5.4.45 X.520 id-at (2 5 4) uniqueIdentifier -static const unsigned char cvOID_uniqueIdentifier [] = { 0x55, 0x04, 0x2D}; -//2.5.4.46 X.520 id-at (2 5 4) dnQualifier -static const unsigned char cvOID_dnQualifier [] = { 0x55, 0x04, 0x2E}; -//2.5.4.47 X.520 id-at (2 5 4) enhancedSearchGuide -static const unsigned char cvOID_enhancedSearchGuide [] = { 0x55, 0x04, 0x2F}; -//2.5.4.48 X.520 id-at (2 5 4) protocolInformation -static const unsigned char cvOID_protocolInformation [] = { 0x55, 0x04, 0x30}; -//2.5.4.49 X.520 id-at (2 5 4) distinguishedName -static const unsigned char cvOID_distinguishedName [] = { 0x55, 0x04, 0x31}; -//2.5.4.50 X.520 id-at (2 5 4) uniqueMember -static const unsigned char cvOID_uniqueMember [] = { 0x55, 0x04, 0x32}; -//2.5.4.51 X.520 id-at (2 5 4) houseIdentifier -static const unsigned char cvOID_houseIdentifier [] = { 0x55, 0x04, 0x33}; -//2.5.4.52 X.520 id-at (2 5 4) supportedAlgorithms -static const unsigned char cvOID_supportedAlgorithms [] = { 0x55, 0x04, 0x34}; -//2.5.4.53 X.520 id-at (2 5 4) deltaRevocationList -static const unsigned char cvOID_deltaRevocationList [] = { 0x55, 0x04, 0x35}; -//2.5.4.55 X.520 id-at (2 5 4) clearance -static const unsigned char cvOID_clearance [] = { 0x55, 0x04, 0x36}; -//2.5.4.58 X.520 id-at (2 5 4) crossCertificatePair -static const unsigned char cvOID_crossCertificatePair_1 [] = { 0x55, 0x04, 0x3A}; -//2.5.4.65 Naming attributes of type X520Pseudonym -static const unsigned char cvOID_pseudonym[] = { 0x55, 0x04, 0x41}; -//2.5.8.1.1 X.500 algorithms. Ambiguous, since no padding rules specified rsa -static const unsigned char cvOID_rsa_X500 [] = { 0x55, 0x08, 0x01, 0x01}; -//2.5.29.1 X.509 id-ce (2 5 29). Deprecated, use (2 5 29 35) instead authorityKeyIdentifier -static const unsigned char cvOID_authorityKeyIdentifier_old[] = { 0x55, 0x1D, 0x01}; -//2.5.29.2 X.509 id-ce (2 5 29). Obsolete, use keyUsage/extKeyUsage instead keyAttributes -static const unsigned char cvOID_keyAttributes [] = { 0x55, 0x1D, 0x02}; -//2.5.29.3 X.509 id-ce (2 5 29). Deprecated, use (2 5 29 32) instead certificatePolicies -static const unsigned char cvOID_certificatePolicies_old [] = { 0x55, 0x1D, 0x03}; -//2.5.29.4 X.509 id-ce (2 5 29). Obsolete, use keyUsage/extKeyUsage instead keyUsageRestriction -static const unsigned char cvOID_keyUsageRestriction [] = { 0x55, 0x1D, 0x04}; -//2.5.29.5 X.509 id-ce (2 5 29). Deprecated, use (2 5 29 33) instead policyMapping -static const unsigned char cvOID_policyMapping [] = { 0x55, 0x1D, 0x05}; -//2.5.29.6 X.509 id-ce (2 5 29). Obsolete, use namestatic constraints instead subtreesstatic constraint -static const unsigned char cvOID_subtreesconstraint [] = { 0x55, 0x1D, 0x06}; -//2.5.29.7 X.509 id-ce (2 5 29). Deprecated, use (2 5 29 17) instead subjectAltName -static const unsigned char cvOID_subjectAltName_old [] = { 0x55, 0x1D, 0x07}; -//2.5.29.8 X.509 id-ce (2 5 29). Deprecated, use (2 5 29 18) instead issuerAltName -static const unsigned char cvOID_issuerAltName_old [] = { 0x55, 0x1D, 0x08}; -//2.5.29.9 X.509 id-ce (2 5 29) subjectDirectoryAttributes -static const unsigned char cvOID_subjectDirectoryAttributes [] = { 0x55, 0x1D, 0x09}; -//2.5.29.10 X.509 id-ce (2 5 29). Deprecated, use (2 5 29 19) instead basicstatic constraints -static const unsigned char cvOID_basicconstraints_old [] = { 0x55, 0x1D, 0x0A}; -//2.5.29.11 X.509 id-ce (2 5 29). Deprecated, use (2 5 29 30) instead namestatic constraints -static const unsigned char cvOID_nameconstraints_old [] = { 0x55, 0x1D, 0x0B}; -//2.5.29.12 X.509 id-ce (2 5 29). Deprecated, use (2 5 29 36) instead policystatic constraints -static const unsigned char cvOID_policyconstraints_old_1 [] = { 0x55, 0x1D, 0x0C}; -//2.5.29.13 X.509 id-ce (2 5 29). Deprecated, use (2 5 29 19) instead basicstatic constraints -static const unsigned char cvOID_basicconstraints_2 [] = { 0x55, 0x1D, 0x0D}; -//2.5.29.14 X.509 id-ce (2 5 29) subjectKeyIdentifier -static const unsigned char cvOID_subjectKeyIdentifier[] = { 0x55, 0x1D, 0x0E}; -//2.5.29.15 X.509 id-ce (2 5 29) keyUsage -static const unsigned char cvOID_keyUsage[] = { 0x55, 0x1D, 0x0F}; -//2.5.29.16 X.509 id-ce (2 5 29) privateKeyUsagePeriod -static const unsigned char cvOID_privateKeyUsagePeriod [] = { 0x55, 0x1D, 0x10}; -//2.5.29.17 X.509 id-ce (2 5 29) subjectAltName -static const unsigned char cvOID_subjectAltName [] = { 0x55, 0x1D, 0x11}; -//2.5.29.18 X.509 id-ce (2 5 29) issuerAltName -static const unsigned char cvOID_issuerAltName [] = { 0x55, 0x1D, 0x12}; -//2.5.29.19 X.509 id-ce (2 5 29) basicstatic constraints -static const unsigned char cvOID_basicconstraints[] = { 0x55, 0x1D, 0x13}; -//2.5.29.20 X.509 id-ce (2 5 29) cRLNumber -static const unsigned char cvOID_cRLNumber [] = { 0x55, 0x1D, 0x14}; -//2.5.29.21 X.509 id-ce (2 5 29) cRLReason -static const unsigned char cvOID_cRLReason [] = { 0x55, 0x1D, 0x15}; -//2.5.29.22 X.509 id-ce (2 5 29). Deprecated, alternative OID uncertain expirationDate -static const unsigned char cvOID_expirationDate [] = { 0x55, 0x1D, 0x16}; -//2.5.29.23 X.509 id-ce (2 5 29) instructionCode -static const unsigned char cvOID_instructionCode [] = { 0x55, 0x1D, 0x17}; -//2.5.29.24 X.509 id-ce (2 5 29) invalidityDate -static const unsigned char cvOID_invalidityDate [] = { 0x55, 0x1D, 0x18}; -//2.5.29.25 X.509 id-ce (2 5 29). Deprecated, use (2 5 29 31) instead cRLDistributionPoints -static const unsigned char cvOID_cRLDistributionPoints_old [] = { 0x55, 0x1D, 0x19}; -//2.5.29.26 X.509 id-ce (2 5 29). Deprecated, use (2 5 29 28) instead issuingDistributionPoint -static const unsigned char cvOID_issuingDistributionPoint_old [] = { 0x55, 0x1D, 0x1A}; -//2.5.29.27 X.509 id-ce (2 5 29) deltaCRLIndicator -static const unsigned char cvOID_deltaCRLIndicator [] = { 0x55, 0x1D, 0x1B}; -//2.5.29.28 X.509 id-ce (2 5 29) issuingDistributionPoint -static const unsigned char cvOID_issuingDistributionPoint [] = { 0x55, 0x1D, 0x1C}; -//2.5.29.29 X.509 id-ce (2 5 29) certificateIssuer -static const unsigned char cvOID_certificateIssuer [] = { 0x55, 0x1D, 0x1D}; -//2.5.29.30 X.509 id-ce (2 5 29) namestatic constraints -static const unsigned char cvOID_nameconstraints [] = { 0x55, 0x1D, 0x1E}; -//2.5.29.31 X.509 id-ce (2 5 29) cRLDistributionPoints -static const unsigned char cvOID_cRLDistributionPoints[] = { 0x55, 0x1D, 0x1F}; -//2.5.29.32 X.509 id-ce (2 5 29) certificatePolicies -static const unsigned char cvOID_certificatePolicies [] = { 0x55, 0x1D, 0x20}; -//2.5.29.32.0 X.509 id-ce (2 5 29.0) anyPolicies -static const unsigned char cvOID_anyPolicies [] = { 0x55, 0x1D, 0x20, 0x00}; -//2.5.29.33 X.509 id-ce (2 5 29) policyMappings -static const unsigned char cvOID_policyMappings [] = { 0x55, 0x1D, 0x21}; -//2.5.29.34 X.509 id-ce (2 5 29). Deprecated, use (2 5 29 36) instead policystatic constraints -static const unsigned char cvOID_policyconstraints_old_2 [] = { 0x55, 0x1D, 0x22}; -//2.5.29.35 X.509 id-ce (2 5 29) authorityKeyIdentifier -static const unsigned char cvOID_authorityKeyIdentifier [] = { 0x55, 0x1D, 0x23}; -//2.5.29.36 X.509 id-ce (2 5 29) policystatic constraints -static const unsigned char cvOID_policyconstraints [] = { 0x55, 0x1D, 0x24}; -//2.5.29.37 X.509 id-ce (2 5 29) extKeyUsage -static const unsigned char cvOID_extKeyUsage [] = { 0x55, 0x1D, 0x25}; -//2.5.29.37.0 anyExtendedKeyUsage id-ce-extKeyUsage 0 -static const unsigned char cvOID_anyExtendedKeyUsage [] = { 0x55, 0x1D, 0x25, 0x00}; -//ame -//2.5.29.46 X.509 id-ce (2 5 29) id-ce-freshestCRL -static const unsigned char cvOID_freshestCRL [] = { 0x55, 0x1D, 0x2E}; -//2.5.29.54 X.509 id-ce (2 5 29) inhibitAnyPolicy -static const unsigned char cvOID_inhibitAnyPolicy [] = { 0x55, 0x1D, 0x36}; - -//2.16.840.1.101.2.1.1.1 SDN.700 INFOSEC algorithms sdnsSignatureAlgorithm -static const unsigned char cvOID_sdnsSignatureAlgorithm [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x01, 0x01}; -//2.16.840.1.101.2.1.1.2 SDN.700 INFOSEC algorithms. Formerly known as mosaicSignatureAlgorithm, this OID is better known as dsaWithSHA-1. fortezzaSignatureAlgorithm -static const unsigned char cvOID_fortezzaSignatureAlgorithm [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x01, 0x02}; -//2.16.840.1.101.2.1.1.3 SDN.700 INFOSEC algorithms sdnsConfidentialityAlgorithm -static const unsigned char cvOID_sdnsConfidentialityAlgorithm [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x01, 0x03}; -//2.16.840.1.101.2.1.1.4 SDN.700 INFOSEC algorithms. Formerly known as mosaicConfidentialityAlgorithm fortezzaConfidentialityAlgorithm -static const unsigned char cvOID_fortezzaConfidentialityAlgorithm [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x01, 0x04}; -//2.16.840.1.101.2.1.1.5 SDN.700 INFOSEC algorithms sdnsIntegrityAlgorithm -static const unsigned char cvOID_sdnsIntegrityAlgorithm [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x01, 0x05}; -//2.16.840.1.101.2.1.1.6 SDN.700 INFOSEC algorithms. Formerly known as mosaicIntegrityAlgorithm fortezzaIntegrityAlgorithm -static const unsigned char cvOID_fortezzaIntegrityAlgorithm [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x01, 0x06}; -//2.16.840.1.101.2.1.1.7 SDN.700 INFOSEC algorithms sdnsTokenProtectionAlgorithm -static const unsigned char cvOID_sdnsTokenProtectionAlgorithm [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x01, 0x07}; -//2.16.840.1.101.2.1.1.8 SDN.700 INFOSEC algorithms. Formerly know as mosaicTokenProtectionAlgorithm fortezzaTokenProtectionAlgorithm -static const unsigned char cvOID_fortezzaTokenProtectionAlgorithm [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x01, 0x08}; -//2.16.840.1.101.2.1.1.9 SDN.700 INFOSEC algorithms sdnsKeyManagementAlgorithm -static const unsigned char cvOID_sdnsKeyManagementAlgorithm [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x01, 0x09}; -//2.16.840.1.101.2.1.1.10 SDN.700 INFOSEC algorithms. Formerly known as mosaicKeyManagementAlgorithm fortezzaKeyManagementAlgorithm -static const unsigned char cvOID_fortezzaKeyManagementAlgorithm [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x01, 0x0A}; -//2.16.840.1.101.2.1.1.11 SDN.700 INFOSEC algorithms sdnsKMandSigAlgorithm -static const unsigned char cvOID_sdnsKMandSigAlgorithm [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x01, 0x0B}; -//2.16.840.1.101.2.1.1.12 SDN.700 INFOSEC algorithms. Formerly known as mosaicKMandSigAlgorithm fortezzaKMandSigAlgorithm -static const unsigned char cvOID_fortezzaKMandSigAlgorithm [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x01, 0x0C}; -//2.16.840.1.101.2.1.1.13 SDN.700 INFOSEC algorithms suiteASignatureAlgorithm -static const unsigned char cvOID_suiteASignatureAlgorithm [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x01, 0x0D}; -//2.16.840.1.101.2.1.1.14 SDN.700 INFOSEC algorithms suiteAConfidentialityAlgorithm -static const unsigned char cvOID_suiteAConfidentialityAlgorithm [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x01, 0x0E}; -//2.16.840.1.101.2.1.1.15 SDN.700 INFOSEC algorithms suiteAIntegrityAlgorithm -static const unsigned char cvOID_suiteAIntegrityAlgorithm [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x01, 0x0F}; -//2.16.840.1.101.2.1.1.16 SDN.700 INFOSEC algorithms suiteATokenProtectionAlgorithm -static const unsigned char cvOID_suiteATokenProtectionAlgorithm [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x01, 0x10}; -//2.16.840.1.101.2.1.1.17 SDN.700 INFOSEC algorithms suiteAKeyManagementAlgorithm -static const unsigned char cvOID_suiteAKeyManagementAlgorithm [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x01, 0x11}; -//2.16.840.1.101.2.1.1.18 SDN.700 INFOSEC algorithms suiteAKMandSigAlgorithm -static const unsigned char cvOID_suiteAKMandSigAlgorithm [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x01, 0x12}; -//2.16.840.1.101.2.1.1.19 SDN.700 INFOSEC algorithms. Formerly known as mosaicUpdatedSigAlgorithm fortezzaUpdatedSigAlgorithm -static const unsigned char cvOID_fortezzaUpdatedSigAlgorithm [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x01, 0x13}; -//2.16.840.1.101.2.1.1.20 SDN.700 INFOSEC algorithms. Formerly known as mosaicKMandUpdSigAlgorithms fortezzaKMandUpdSigAlgorithms -static const unsigned char cvOID_fortezzaKMandUpdSigAlgorithms [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x01, 0x14}; -//2.16.840.1.101.2.1.1.21 SDN.700 INFOSEC algorithms. Formerly known as mosaicUpdatedIntegAlgorithm fortezzaUpdatedIntegAlgorithm -static const unsigned char cvOID_fortezzaUpdatedIntegAlgorithm [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x01, 0x15}; -//2.16.840.1.101.2.1.1.22 SDN.700 INFOSEC algorithms. Formerly known as mosaicKeyEncryptionAlgorithm keyExchangeAlgorithm -static const unsigned char cvOID_keyExchangeAlgorithm [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x01, 0x16}; -//2.16.840.1.101.2.1.1.23 SDN.700 INFOSEC algorithms fortezzaWrap80Algorithm -static const unsigned char cvOID_fortezzaWrap80Algorithm [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x01, 0x17}; -//2.16.840.1.101.2.1.1.24 SDN.700 INFOSEC algorithms kEAKeyEncryptionAlgorithm -static const unsigned char cvOID_kEAKeyEncryptionAlgorithm [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x01, 0x18}; -//2.16.840.1.101.2.1.2.1 SDN.700 INFOSEC format rfc822MessageFormat -static const unsigned char cvOID_rfc822MessageFormat [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x02, 0x01}; -//2.16.840.1.101.2.1.2.2 SDN.700 INFOSEC format emptyContent -static const unsigned char cvOID_emptyContent [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x02, 0x02}; -//2.16.840.1.101.2.1.2.3 SDN.700 INFOSEC format cspContentType -static const unsigned char cvOID_cspContentType [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x02, 0x03}; -//2.16.840.1.101.2.1.2.42 SDN.700 INFOSEC format mspRev3ContentType -static const unsigned char cvOID_mspRev3ContentType [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x02, 0x2A}; -//2.16.840.1.101.2.1.2.48 SDN.700 INFOSEC format mspContentType -static const unsigned char cvOID_mspContentType [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x02, 0x30}; -//2.16.840.1.101.2.1.2.49 SDN.700 INFOSEC format mspRekeyAgentProtocol -static const unsigned char cvOID_mspRekeyAgentProtocol [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x02, 0x31}; -//2.16.840.1.101.2.1.2.50 SDN.700 INFOSEC format mspMMP -static const unsigned char cvOID_mspMMP [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x02, 0x32}; -//2.16.840.1.101.2.1.2.66 SDN.700 INFOSEC format mspRev3-1ContentType -static const unsigned char cvOID_mspRev3_1ContentType [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x02, 0x42}; -//2.16.840.1.101.2.1.2.72 SDN.700 INFOSEC format forwardedMSPMessageBodyPart -static const unsigned char cvOID_forwardedMSPMessageBodyPart [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x02, 0x48}; -//2.16.840.1.101.2.1.2.73 SDN.700 INFOSEC format mspForwardedMessageParameters -static const unsigned char cvOID_mspForwardedMessageParameters [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x02, 0x49}; -//2.16.840.1.101.2.1.2.74 SDN.700 INFOSEC format forwardedCSPMsgBodyPart -static const unsigned char cvOID_forwardedCSPMsgBodyPart [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x02, 0x50}; -//2.16.840.1.101.2.1.2.75 SDN.700 INFOSEC format cspForwardedMessageParameters -static const unsigned char cvOID_cspForwardedMessageParameters [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x02, 0x51}; -//2.16.840.1.101.2.1.2.76 SDN.700 INFOSEC format mspMMP2 -static const unsigned char cvOID_mspMMP2 [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x02, 0x52}; -//2.16.840.1.101.2.1.3.1 SDN.700 INFOSEC policy sdnsSecurityPolicy -static const unsigned char cvOID_sdnsSecurityPolicy [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x03, 0x01}; -//2.16.840.1.101.2.1.3.2 SDN.700 INFOSEC policy sdnsPRBAC -static const unsigned char cvOID_sdnsPRBAC [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x03, 0x02}; -//2.16.840.1.101.2.1.3.3 SDN.700 INFOSEC policy mosaicPRBAC -static const unsigned char cvOID_mosaicPRBAC [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x03, 0x03}; -//2.16.840.1.101.2.1.3.10 SDN.700 INFOSEC policy siSecurityPolicy -static const unsigned char cvOID_siSecurityPolicy [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x03, 0x0A}; -//2.16.840.1.101.2.1.3.10.0 SDN.700 INFOSEC policy (obsolete) siNASP -static const unsigned char cvOID_siNASP [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x03, 0x0A, 0x00}; -//2.16.840.1.101.2.1.3.10.1 SDN.700 INFOSEC policy (obsolete) siELCO -static const unsigned char cvOID_siELCO [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x03, 0x0A, 0x01}; -//2.16.840.1.101.2.1.3.10.2 SDN.700 INFOSEC policy (obsolete) siTK -static const unsigned char cvOID_siTK [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x03, 0x0A, 0x02}; -//2.16.840.1.101.2.1.3.10.3 SDN.700 INFOSEC policy (obsolete) siDSAP -static const unsigned char cvOID_siDSAP [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x03, 0x0A, 0x03}; -//2.16.840.1.101.2.1.3.10.4 SDN.700 INFOSEC policy (obsolete) siSSSS -static const unsigned char cvOID_siSSSS [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x03, 0x0A, 0x04}; -//2.16.840.1.101.2.1.3.10.5 SDN.700 INFOSEC policy (obsolete) siDNASP -static const unsigned char cvOID_siDNASP [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x03, 0x0A, 0x05}; -//2.16.840.1.101.2.1.3.10.6 SDN.700 INFOSEC policy (obsolete) siBYEMAN -static const unsigned char cvOID_siBYEMAN [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x03, 0x0A, 0x06}; -//2.16.840.1.101.2.1.3.10.7 SDN.700 INFOSEC policy (obsolete) siREL-US -static const unsigned char cvOID_siREL_US [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x03, 0x0A, 0x07}; -//2.16.840.1.101.2.1.3.10.8 SDN.700 INFOSEC policy (obsolete) siREL-AUS -static const unsigned char cvOID_siREL_AUS [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x03, 0x0A, 0x08}; -//2.16.840.1.101.2.1.3.10.9 SDN.700 INFOSEC policy (obsolete) siREL-CAN -static const unsigned char cvOID_siREL_CAN [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x03, 0x0A, 0x09}; -//2.16.840.1.101.2.1.3.10.10 SDN.700 INFOSEC policy (obsolete) siREL_UK -static const unsigned char cvOID_siREL_UK [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x03, 0x0A, 0x0A}; -//2.16.840.1.101.2.1.3.10.11 SDN.700 INFOSEC policy (obsolete) siREL-NZ -static const unsigned char cvOID_siREL_NZ [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x03, 0x0A, 0x0B}; -//2.16.840.1.101.2.1.3.10.12 SDN.700 INFOSEC policy (obsolete) siGeneric -static const unsigned char cvOID_siGeneric [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x03, 0x0A, 0x0C}; -//2.16.840.1.101.2.1.3.11 SDN.700 INFOSEC policy genser -static const unsigned char cvOID_genser [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x03, 0x0B}; -//2.16.840.1.101.2.1.3.11.0 SDN.700 INFOSEC policy (obsolete) genserNations -static const unsigned char cvOID_genserNations [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x03, 0x0B, 0x00}; -//2.16.840.1.101.2.1.3.11.1 SDN.700 INFOSEC policy (obsolete) genserComsec -static const unsigned char cvOID_genserComsec [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x03, 0x0B, 0x01}; -//2.16.840.1.101.2.1.3.11.2 SDN.700 INFOSEC policy (obsolete) genserAcquisition -static const unsigned char cvOID_genserAcquisition [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x03, 0x0B, 0x02}; -//2.16.840.1.101.2.1.3.11.3 SDN.700 INFOSEC policy genserSecurityCategories -static const unsigned char cvOID_genserSecurityCategories [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x03, 0x0B, 0x03}; -//2.16.840.1.101.2.1.3.11.3.0 SDN.700 INFOSEC GENSER policy genserTagSetName -static const unsigned char cvOID_genserTagSetName [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x03, 0x0B, 0x03, 0x00}; -//2.16.840.1.101.2.1.3.12 SDN.700 INFOSEC policy defaultSecurityPolicy -static const unsigned char cvOID_defaultSecurityPolicy [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x03, 0x0C}; -//2.16.840.1.101.2.1.3.13 SDN.700 INFOSEC policy capcoMarkings -static const unsigned char cvOID_capcoMarkings [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x03, 0x0D}; -//2.16.840.1.101.2.1.3.13.0 SDN.700 INFOSEC policy CAPCO markings capcoSecurityCategories -static const unsigned char cvOID_capcoSecurityCategories [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x03, 0x0D, 0x00}; -//2.16.840.1.101.2.1.3.13.0.1 SDN.700 INFOSEC policy CAPCO markings capcoTagSetName1 -static const unsigned char cvOID_capcoTagSetName1 [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x03, 0x0D, 0x00, 0x01}; -//2.16.840.1.101.2.1.3.13.0.2 SDN.700 INFOSEC policy CAPCO markings capcoTagSetName2 -static const unsigned char cvOID_capcoTagSetName2 [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x03, 0x0D, 0x00, 0x02}; -//2.16.840.1.101.2.1.3.13.0.3 SDN.700 INFOSEC policy CAPCO markings capcoTagSetName3 -static const unsigned char cvOID_capcoTagSetName3 [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x03, 0x0D, 0x00, 0x03}; -//2.16.840.1.101.2.1.3.13.0.4 SDN.700 INFOSEC policy CAPCO markings capcoTagSetName4 -static const unsigned char cvOID_capcoTagSetName4 [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x03, 0x0D, 0x00, 0x04}; -//2.16.840.1.101.2.1.5.1 SDN.700 INFOSEC attributes (superseded) sdnsKeyManagementCertificate -static const unsigned char cvOID_sdnsKeyManagementCertificate [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x05, 0x01}; -//2.16.840.1.101.2.1.5.2 SDN.700 INFOSEC attributes (superseded) sdnsUserSignatureCertificate -static const unsigned char cvOID_sdnsUserSignatureCertificate [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x05, 0x02}; -//2.16.840.1.101.2.1.5.3 SDN.700 INFOSEC attributes (superseded) sdnsKMandSigCertificate -static const unsigned char cvOID_sdnsKMandSigCertificate [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x05, 0x03}; -//2.16.840.1.101.2.1.5.4 SDN.700 INFOSEC attributes (superseded) fortezzaKeyManagementCertificate -static const unsigned char cvOID_fortezzaKeyManagementCertificate [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x05, 0x04}; -//2.16.840.1.101.2.1.5.5 SDN.700 INFOSEC attributes (superseded) fortezzaKMandSigCertificate -static const unsigned char cvOID_fortezzaKMandSigCertificate [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x05, 0x05}; -//2.16.840.1.101.2.1.5.6 SDN.700 INFOSEC attributes (superseded) fortezzaUserSignatureCertificate -static const unsigned char cvOID_fortezzaUserSignatureCertificate [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x05, 0x06}; -//2.16.840.1.101.2.1.5.7 SDN.700 INFOSEC attributes (superseded) fortezzaCASignatureCertificate -static const unsigned char cvOID_fortezzaCASignatureCertificate [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x05, 0x07}; -//2.16.840.1.101.2.1.5.8 SDN.700 INFOSEC attributes (superseded) sdnsCASignatureCertificate -static const unsigned char cvOID_sdnsCASignatureCertificate [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x05, 0x08}; -//2.16.840.1.101.2.1.5.10 SDN.700 INFOSEC attributes (superseded) auxiliaryVector -static const unsigned char cvOID_auxiliaryVector [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x05, 0x0A}; -//2.16.840.1.101.2.1.5.11 SDN.700 INFOSEC attributes mlReceiptPolicy -static const unsigned char cvOID_mlReceiptPolicy [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x05, 0x0B}; -//2.16.840.1.101.2.1.5.12 SDN.700 INFOSEC attributes mlMembership -static const unsigned char cvOID_mlMembership [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x05, 0x0C}; -//2.16.840.1.101.2.1.5.13 SDN.700 INFOSEC attributes mlAdministrators -static const unsigned char cvOID_mlAdministrators [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x05, 0x0D}; -//2.16.840.1.101.2.1.5.14 SDN.700 INFOSEC attributes alid -static const unsigned char cvOID_alid [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x05, 0x0E}; -//2.16.840.1.101.2.1.5.20 SDN.700 INFOSEC attributes janUKMs -static const unsigned char cvOID_janUKMs [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x05, 0x14}; -//2.16.840.1.101.2.1.5.21 SDN.700 INFOSEC attributes febUKMs -static const unsigned char cvOID_febUKMs [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x05, 0x15}; -//2.16.840.1.101.2.1.5.22 SDN.700 INFOSEC attributes marUKMs -static const unsigned char cvOID_marUKMs [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x05, 0x16}; -//2.16.840.1.101.2.1.5.23 SDN.700 INFOSEC attributes aprUKMs -static const unsigned char cvOID_aprUKMs [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x05, 0x17}; -//2.16.840.1.101.2.1.5.24 SDN.700 INFOSEC attributes mayUKMs -static const unsigned char cvOID_mayUKMs [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x05, 0x18}; -//2.16.840.1.101.2.1.5.25 SDN.700 INFOSEC attributes junUKMs -static const unsigned char cvOID_junUKMs [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x05, 0x19}; -//2.16.840.1.101.2.1.5.26 SDN.700 INFOSEC attributes julUKMs -static const unsigned char cvOID_julUKMs [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x05, 0x1A}; -//2.16.840.1.101.2.1.5.27 SDN.700 INFOSEC attributes augUKMs -static const unsigned char cvOID_augUKMs [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x05, 0x1B}; -//2.16.840.1.101.2.1.5.28 SDN.700 INFOSEC attributes sepUKMs -static const unsigned char cvOID_sepUKMs [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x05, 0x1C}; -//2.16.840.1.101.2.1.5.29 SDN.700 INFOSEC attributes octUKMs -static const unsigned char cvOID_octUKMs [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x05, 0x1D}; -//2.16.840.1.101.2.1.5.30 SDN.700 INFOSEC attributes novUKMs -static const unsigned char cvOID_novUKMs [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x05, 0x1E}; -//2.16.840.1.101.2.1.5.21 SDN.700 INFOSEC attributes decUKMs -static const unsigned char cvOID_decUKMs [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x05, 0x1F}; -//2.16.840.1.101.2.1.5.40 SDN.700 INFOSEC attributes metaSDNSckl -static const unsigned char cvOID_metaSDNSckl [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x05, 0x28}; -//2.16.840.1.101.2.1.5.41 SDN.700 INFOSEC attributes sdnsCKL -static const unsigned char cvOID_sdnsCKL [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x05, 0x29}; -//2.16.840.1.101.2.1.5.42 SDN.700 INFOSEC attributes metaSDNSsignatureCKL -static const unsigned char cvOID_metaSDNSsignatureCKL [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x05, 0x2A}; -//2.16.840.1.101.2.1.5.43 SDN.700 INFOSEC attributes sdnsSignatureCKL -static const unsigned char cvOID_sdnsSignatureCKL [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x05, 0x2B}; -//2.16.840.1.101.2.1.5.44 SDN.700 INFOSEC attributes sdnsCertificateRevocationList -static const unsigned char cvOID_sdnsCertificateRevocationList [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x05, 0x2C}; -//2.16.840.1.101.2.1.5.45 SDN.700 INFOSEC attributes (superseded) fortezzaCertificateRevocationList -static const unsigned char cvOID_fortezzaCertificateRevocationList [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x05, 0x2D}; -//2.16.840.1.101.2.1.5.46 SDN.700 INFOSEC attributes fortezzaCKL -static const unsigned char cvOID_fortezzaCKL [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x05, 0x2E}; -//2.16.840.1.101.2.1.5.47 SDN.700 INFOSEC attributes alExemptedAddressProcessor -static const unsigned char cvOID_alExemptedAddressProcessor [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x05, 0x2F}; -//2.16.840.1.101.2.1.5.48 SDN.700 INFOSEC attributes (obsolete) guard -static const unsigned char cvOID_guard [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x05, 0x30}; -//2.16.840.1.101.2.1.5.49 SDN.700 INFOSEC attributes (obsolete) algorithmsSupported -static const unsigned char cvOID_algorithmsSupported [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x05, 0x31}; -//2.16.840.1.101.2.1.5.50 SDN.700 INFOSEC attributes (obsolete) suiteAKeyManagementCertificate -static const unsigned char cvOID_suiteAKeyManagementCertificate [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x05, 0x32}; -//2.16.840.1.101.2.1.5.51 SDN.700 INFOSEC attributes (obsolete) suiteAKMandSigCertificate -static const unsigned char cvOID_suiteAKMandSigCertificate [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x05, 0x33}; -//2.16.840.1.101.2.1.5.52 SDN.700 INFOSEC attributes (obsolete) suiteAUserSignatureCertificate -static const unsigned char cvOID_suiteAUserSignatureCertificate [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x05, 0x34}; -//2.16.840.1.101.2.1.5.53 SDN.700 INFOSEC attributes prbacInfo -static const unsigned char cvOID_prbacInfo [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x05, 0x35}; -//2.16.840.1.101.2.1.5.54 SDN.700 INFOSEC attributes prbacCAstatic constraints -static const unsigned char cvOID_prbacCAconstraints [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x05, 0x36}; -//2.16.840.1.101.2.1.5.55 SDN.700 INFOSEC attributes sigOrKMPrivileges -static const unsigned char cvOID_sigOrKMPrivileges [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x05, 0x37}; -//2.16.840.1.101.2.1.5.56 SDN.700 INFOSEC attributes commPrivileges -static const unsigned char cvOID_commPrivileges [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x05, 0x38}; -//2.16.840.1.101.2.1.5.57 SDN.700 INFOSEC attributes labeledAttribute -static const unsigned char cvOID_labeledAttribute [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x05, 0x39}; -//2.16.840.1.101.2.1.5.58 SDN.700 INFOSEC attributes (obsolete) policyInformationFile -static const unsigned char cvOID_policyInformationFile [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x05, 0x3A}; -//2.16.840.1.101.2.1.5.59 SDN.700 INFOSEC attributes secPolicyInformationFile -static const unsigned char cvOID_secPolicyInformationFile [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x05, 0x3B}; -//2.16.840.1.101.2.1.5.60 SDN.700 INFOSEC attributes cAClearancestatic constraint -static const unsigned char cvOID_cAClearanceconstraint [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x05, 0x3C}; -//2.16.840.1.101.2.1.7.1 SDN.700 INFOSEC extensions cspExtns -static const unsigned char cvOID_cspExtns [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x07, 0x01}; -//2.16.840.1.101.2.1.7.1.0 SDN.700 INFOSEC extensions cspCsExtn -static const unsigned char cvOID_cspCsExtn [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x07, 0x01, 0x00}; -//2.16.840.1.101.2.1.8.1 SDN.700 INFOSEC security category mISSISecurityCategories -static const unsigned char cvOID_mISSISecurityCategories [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x08, 0x01}; -//2.16.840.1.101.2.1.8.2 SDN.700 INFOSEC security category standardSecurityLabelPrivileges -static const unsigned char cvOID_standardSecurityLabelPrivileges [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x08, 0x02}; -//2.16.840.1.101.2.1.10.1 SDN.700 INFOSEC privileges sigPrivileges -static const unsigned char cvOID_sigPrivileges [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x0A, 0x01}; -//2.16.840.1.101.2.1.10.2 SDN.700 INFOSEC privileges kmPrivileges -static const unsigned char cvOID_kmPrivileges [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x0A, 0x02}; -//2.16.840.1.101.2.1.10.3 SDN.700 INFOSEC privileges namedTagSetPrivilege -static const unsigned char cvOID_namedTagSetPrivilege [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x0A, 0x03}; -//2.16.840.1.101.2.1.11.1 SDN.700 INFOSEC certificate policy ukDemo -static const unsigned char cvOID_ukDemo [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x0B, 0x01}; -//2.16.840.1.101.2.1.11.2 SDN.700 INFOSEC certificate policy usDODClass2 -static const unsigned char cvOID_usDODClass2 [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x0B, 0x02}; -//2.16.840.1.101.2.1.11.3 SDN.700 INFOSEC certificate policy usMediumPilot -static const unsigned char cvOID_usMediumPilot [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x0B, 0x03}; -//2.16.840.1.101.2.1.11.4 SDN.700 INFOSEC certificate policy usDODClass4 -static const unsigned char cvOID_usDODClass4 [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x0B, 0x04}; -//2.16.840.1.101.2.1.11.5 SDN.700 INFOSEC certificate policy usDODClass3 -static const unsigned char cvOID_usDODClass3 [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x0B, 0x05}; -//2.16.840.1.101.2.1.11.6 SDN.700 INFOSEC certificate policy usDODClass5 -static const unsigned char cvOID_usDODClass5 [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x0B, 0x06}; -//2.16.840.1.101.2.1.12.0 SDN.700 INFOSEC test objects testSecurityPolicy -static const unsigned char cvOID_testSecurityPolicy [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x0C, 0x00}; -//2.16.840.1.101.2.1.12.0.1 SDN.700 INFOSEC test objects tsp1 -static const unsigned char cvOID_tsp1 [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x0C, 0x00, 0x01}; -//2.16.840.1.101.2.1.12.0.1.0 SDN.700 INFOSEC test objects tsp1SecurityCategories -static const unsigned char cvOID_tsp1SecurityCategories [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x0C, 0x00, 0x01, 0x00}; -//2.16.840.1.101.2.1.12.0.1.0.0 SDN.700 INFOSEC test objects tsp1TagSetZero -static const unsigned char cvOID_tsp1TagSetZero [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x0C, 0x00, 0x01, 0x00, 0x00}; -//2.16.840.1.101.2.1.12.0.1.0.1 SDN.700 INFOSEC test objects tsp1TagSetOne -static const unsigned char cvOID_tsp1TagSetOne [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x0C, 0x00, 0x01, 0x00, 0x01}; -//2.16.840.1.101.2.1.12.0.1.0.2 SDN.700 INFOSEC test objects tsp1TagSetTwo -static const unsigned char cvOID_tsp1TagSetTwo [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x0C, 0x00, 0x01, 0x00, 0x02}; -//2.16.840.1.101.2.1.12.0.2 SDN.700 INFOSEC test objects tsp2 -static const unsigned char cvOID_tsp2 [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x0C, 0x00, 0x02}; -//2.16.840.1.101.2.1.12.0.2.0 SDN.700 INFOSEC test objects tsp2SecurityCategories -static const unsigned char cvOID_tsp2SecurityCategories [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x0C, 0x00, 0x02, 0x00}; -//2.16.840.1.101.2.1.12.0.2.0.0 SDN.700 INFOSEC test objects tsp2TagSetZero -static const unsigned char cvOID_tsp2TagSetZero [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x0C, 0x00, 0x02, 0x00, 0x00}; -//2.16.840.1.101.2.1.12.0.2.0.1 SDN.700 INFOSEC test objects tsp2TagSetOne -static const unsigned char cvOID_tsp2TagSetOne [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x0C, 0x00, 0x02, 0x00, 0x01}; -//2.16.840.1.101.2.1.12.0.2.0.2 SDN.700 INFOSEC test objects tsp2TagSetTwo -static const unsigned char cvOID_tsp2TagSetTwo [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x0C, 0x00, 0x02, 0x00, 0x02}; -//2.16.840.1.101.2.1.12.0.3 SDN.700 INFOSEC test objects kafka -static const unsigned char cvOID_kafka [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x0C, 0x00, 0x03}; -//2.16.840.1.101.2.1.12.0.3.0 SDN.700 INFOSEC test objects kafkaSecurityCategories -static const unsigned char cvOID_kafkaSecurityCategories [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x0C, 0x00, 0x03, 0x00}; -//2.16.840.1.101.2.1.12.0.3.0.1 SDN.700 INFOSEC test objects kafkaTagSetName1 -static const unsigned char cvOID_kafkaTagSetName1 [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x0C, 0x00, 0x03, 0x00, 0x01}; -//2.16.840.1.101.2.1.12.0.3.0.2 SDN.700 INFOSEC test objects kafkaTagSetName2 -static const unsigned char cvOID_kafkaTagSetName2 [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x0C, 0x00, 0x03, 0x00, 0x02}; -//2.16.840.1.101.2.1.12.0.3.0.3 SDN.700 INFOSEC test objects kafkaTagSetName3 -static const unsigned char cvOID_kafkaTagSetName3 [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x0C, 0x00, 0x03, 0x00, 0x03}; -//2.16.840.1.101.2.1.12.1.1 SDN.700 INFOSEC test objects tcp1 -static const unsigned char cvOID_tcp1 [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x0C, 0x01, 0x01}; -//2.16.840.1.101.3.1 CSOR GAK slabel -static const unsigned char cvOID_slabel [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x03, 0x01}; -//2.16.840.1.101.3.2 CSOR GAK pki -static const unsigned char cvOID_pki [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x03, 0x02}; -//2.16.840.1.101.3.2.1 CSOR GAK policy GAK policyIdentifier -static const unsigned char cvOID_GAK_policyIdentifier [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x03, 0x02, 0x01}; -//2.16.840.1.101.3.2.2 CSOR GAK extended key usage GAK -static const unsigned char cvOID_GAK [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x03, 0x02, 0x02}; -//2.16.840.1.101.3.2.2.1 CSOR GAK extended key usage kRAKey -static const unsigned char cvOID_kRAKey [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x03, 0x02, 0x02, 0x01}; -//2.16.840.1.101.3.2.3 CSOR GAK extensions extensions -static const unsigned char cvOID_extensions [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x03, 0x02, 0x03}; -//2.16.840.1.101.3.2.3.1 CSOR GAK extensions kRTechnique -static const unsigned char cvOID_kRTechnique [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x03, 0x02, 0x03, 0x01}; -//2.16.840.1.101.3.2.3.2 CSOR GAK extensions kRecoveryCapable -static const unsigned char cvOID_kRecoveryCapable [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x03, 0x02, 0x03, 0x02}; -//2.16.840.1.101.3.2.3.3 CSOR GAK extensions kR -static const unsigned char cvOID_kR [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x03, 0x02, 0x03, 0x03}; -//2.16.840.1.101.3.2.4 CSOR GAK keyrecoveryschemes -static const unsigned char cvOID_keyrecoveryschemes [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x03, 0x02, 0x04}; -//2.16.840.1.101.3.2.5 CSOR GAK krapola -static const unsigned char cvOID_krapola [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x03, 0x02, 0x05}; -//2.16.840.1.101.3.3 CSOR GAK arpa -static const unsigned char cvOID_arpa [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x03, 0x03}; -//2.16.840.1.113719.1.9 Novell pki -static const unsigned char cvOID_pki_Novell [] = { 0x60, 0x86, 0x48, 0x01, 0x86, 0xF8, 0x37, 0x01, 0x09}; -//2.16.840.1.113719.1.9.4 Novell PKI pkiAttributeType -static const unsigned char cvOID_pkiAttributeType [] = { 0x60, 0x86, 0x48, 0x01, 0x86, 0xF8, 0x37, 0x01, 0x09, 0x04}; -//2.16.840.1.113719.1.9.4.1 Novell PKI attribute type registeredAttributes -static const unsigned char cvOID_registeredAttributes [] = { 0x60, 0x86, 0x48, 0x01, 0x86, 0xF8, 0x37, 0x01, 0x09, 0x04, 0x01}; -//2.16.840.1.113719.1.9.4.2 Novell PKI attribute type relianceLimit -static const unsigned char cvOID_relianceLimit [] = { 0x60, 0x86, 0x48, 0x01, 0x86, 0xF8, 0x37, 0x01, 0x09, 0x04, 0x02}; -//2.16.840.1.113730.1 Netscape cert-extension -static const unsigned char cvOID_cert_extension [] = { 0x60, 0x86, 0x48, 0x01, 0x86, 0xF8, 0x42, 0x01}; -//2.16.840.1.113730.1.1 Netscape certificate extension netscape-cert-type -static const unsigned char cvOID_netscape_cert_type [] = { 0x60, 0x86, 0x48, 0x01, 0x86, 0xF8, 0x42, 0x01, 0x01}; -//2.16.840.1.113730.1.2 Netscape certificate extension netscape-base-url -static const unsigned char cvOID_netscape_base_url [] = { 0x60, 0x86, 0x48, 0x01, 0x86, 0xF8, 0x42, 0x01, 0x02}; -//2.16.840.1.113730.1.3 Netscape certificate extension netscape-revocation-url -static const unsigned char cvOID_netscape_revocation_url [] = { 0x60, 0x86, 0x48, 0x01, 0x86, 0xF8, 0x42, 0x01, 0x03}; -//2.16.840.1.113730.1.4 Netscape certificate extension netscape-ca-revocation-url -static const unsigned char cvOID_netscape_ca_revocation_url [] = { 0x60, 0x86, 0x48, 0x01, 0x86, 0xF8, 0x42, 0x01, 0x04}; -//2.16.840.1.113730.1.7 Netscape certificate extension netscape-cert-renewal-url -static const unsigned char cvOID_netscape_cert_renewal_url [] = { 0x60, 0x86, 0x48, 0x01, 0x86, 0xF8, 0x42, 0x01, 0x07}; -//2.16.840.1.113730.1.8 Netscape certificate extension netscape-ca-policy-url -static const unsigned char cvOID_netscape_ca_policy_url [] = { 0x60, 0x86, 0x48, 0x01, 0x86, 0xF8, 0x42, 0x01, 0x08}; -//2.16.840.1.113730.1.9 Netscape certificate extension HomePage-url -static const unsigned char cvOID_HomePage_url [] = { 0x60, 0x86, 0x48, 0x01, 0x86, 0xF8, 0x42, 0x01, 0x09}; -//2.16.840.1.113730.1.10 Netscape certificate extension EntityLogo -static const unsigned char cvOID_EntityLogo [] = { 0x60, 0x86, 0x48, 0x01, 0x86, 0xF8, 0x42, 0x01, 0x0A}; -//2.16.840.1.113730.1.11 Netscape certificate extension UserPicture -static const unsigned char cvOID_UserPicture [] = { 0x60, 0x86, 0x48, 0x01, 0x86, 0xF8, 0x42, 0x01, 0x0B}; -//2.16.840.1.113730.1.12 Netscape certificate extension netscape-ssl-server-name -static const unsigned char cvOID_netscape_ssl_server_name [] = { 0x60, 0x86, 0x48, 0x01, 0x86, 0xF8, 0x42, 0x01, 0x0C}; -//2.16.840.1.113730.1.13 Netscape certificate extension netscape-comment -static const unsigned char cvOID_netscape_comment [] = { 0x60, 0x86, 0x48, 0x01, 0x86, 0xF8, 0x42, 0x01, 0x0D}; -//2.16.840.1.113730.2 Netscape data-type -static const unsigned char cvOID_data_type [] = { 0x60, 0x86, 0x48, 0x01, 0x86, 0xF8, 0x42, 0x02}; -//2.16.840.1.113730.2.1 Netscape data type dataGIF -static const unsigned char cvOID_dataGIF [] = { 0x60, 0x86, 0x48, 0x01, 0x86, 0xF8, 0x42, 0x02, 0x01}; -//2.16.840.1.113730.2.2 Netscape data type dataJPEG -static const unsigned char cvOID_dataJPEG [] = { 0x60, 0x86, 0x48, 0x01, 0x86, 0xF8, 0x42, 0x02, 0x02}; -//2.16.840.1.113730.2.3 Netscape data type dataURL -static const unsigned char cvOID_dataURL [] = { 0x60, 0x86, 0x48, 0x01, 0x86, 0xF8, 0x42, 0x02, 0x03}; -//2.16.840.1.113730.2.4 Netscape data type dataHTML -static const unsigned char cvOID_dataHTML [] = { 0x60, 0x86, 0x48, 0x01, 0x86, 0xF8, 0x42, 0x02, 0x04}; -//2.16.840.1.113730.2.5 Netscape data type certSequence -static const unsigned char cvOID_certSequence [] = { 0x60, 0x86, 0x48, 0x01, 0x86, 0xF8, 0x42, 0x02, 0x05}; -//2.16.840.1.113730.2.6 Netscape certificate extension certURL -static const unsigned char cvOID_certURL [] = { 0x60, 0x86, 0x48, 0x01, 0x86, 0xF8, 0x42, 0x02, 0x06}; -//2.16.840.1.113730.3 Netscape directory -static const unsigned char cvOID_directory [] = { 0x60, 0x86, 0x48, 0x01, 0x86, 0xF8, 0x42, 0x03}; -//2.16.840.1.113730.3.1 Netscape directory ldapDefinitions -static const unsigned char cvOID_ldapDefinitions [] = { 0x60, 0x86, 0x48, 0x01, 0x86, 0xF8, 0x42, 0x03, 0x01}; -//2.16.840.1.113730.3.1.1 Netscape LDAP definitions carLicense -static const unsigned char cvOID_carLicense [] = { 0x60, 0x86, 0x48, 0x01, 0x86, 0xF8, 0x42, 0x03, 0x01, 0x01}; -//2.16.840.1.113730.3.1.2 Netscape LDAP definitions departmentNumber -static const unsigned char cvOID_departmentNumber [] = { 0x60, 0x86, 0x48, 0x01, 0x86, 0xF8, 0x42, 0x03, 0x01, 0x02}; -//2.16.840.1.113730.3.1.3 Netscape LDAP definitions employeeNumber -static const unsigned char cvOID_employeeNumber [] = { 0x60, 0x86, 0x48, 0x01, 0x86, 0xF8, 0x42, 0x03, 0x01, 0x03}; -//2.16.840.1.113730.3.1.4 Netscape LDAP definitions employeeType -static const unsigned char cvOID_employeeType [] = { 0x60, 0x86, 0x48, 0x01, 0x86, 0xF8, 0x42, 0x03, 0x01, 0x04}; -//2.16.840.1.113730.3.2.2 Netscape LDAP definitions inetOrgPerson -static const unsigned char cvOID_inetOrgPerson [] = { 0x60, 0x86, 0x48, 0x01, 0x86, 0xF8, 0x42, 0x03, 0x02, 0x02}; -//2.16.840.1.113730.4.1 Netscape serverGatedCrypto -static const unsigned char cvOID_serverGatedCrypto_Netscape [] = { 0x60, 0x86, 0x48, 0x01, 0x86, 0xF8, 0x42, 0x04, 0x01}; -//2.16.840.1.113733.1.6.3 Verisign Unknown Verisign extension -static const unsigned char cvOID_Unknown_Verisign_extension_1 [] = { 0x60, 0x86, 0x48, 0x01, 0x86, 0xF8, 0x45, 0x01, 0x06, 0x03}; -//2.16.840.1.113733.1.6.6 Verisign Unknown Verisign extension -static const unsigned char cvOID_Unknown_Verisign_extension_2 [] = { 0x60, 0x86, 0x48, 0x01, 0x86, 0xF8, 0x45, 0x01, 0x06, 0x06}; -//2.16.840.1.113733.1.7.1.1 Verisign Verisign certificatePolicy -static const unsigned char cvOID_Verisign_certificatePolicy [] = { 0x60, 0x86, 0x48, 0x01, 0x86, 0xF8, 0x45, 0x01, 0x07, 0x01, 0x01}; -//2.16.840.1.113733.1.7.1.1.1 Verisign Unknown Verisign policy qualifier -static const unsigned char cvOID_Unknown_Verisign_policy_qualifier_1 [] = { 0x60, 0x86, 0x48, 0x01, 0x86, 0xF8, 0x45, 0x01, 0x07, 0x01, 0x01, 0x01}; -//2.16.840.1.113733.1.7.1.1.2 Verisign Unknown Verisign policy qualifier -static const unsigned char cvOID_Unknown_Verisign_policy_qualifier_2 [] = { 0x60, 0x86, 0x48, 0x01, 0x86, 0xF8, 0x45, 0x01, 0x07, 0x01, 0x01, 0x02}; -//2.16.840.1.113733.1.8.1 Verisign Verisign SGC CA? -static const unsigned char cvOID_Verisign_SGC_CA [] = { 0x60, 0x86, 0x48, 0x01, 0x86, 0xF8, 0x45, 0x01, 0x08, 0x01}; -//2.23.42.0 SET contentType -static const unsigned char cvOID_contentType_SET [] = { 0x67, 0x2A, 0x00}; -//2.23.42.0.0 SET contentType PANData -static const unsigned char cvOID_PANData [] = { 0x67, 0x2A, 0x00, 0x00}; -//2.23.42.0.1 SET contentType PANToken -static const unsigned char cvOID_PANToken [] = { 0x67, 0x2A, 0x00, 0x01}; -//2.23.42.0.2 SET contentType PANOnly -static const unsigned char cvOID_PANOnly [] = { 0x67, 0x2A, 0x00, 0x02}; -//2.23.42.1 SET msgExt -static const unsigned char cvOID_msgExt [] = { 0x67, 0x2A, 0x01}; -//2.23.42.2 SET field -static const unsigned char cvOID_field [] = { 0x67, 0x2A, 0x02}; -//2.23.42.2.0 SET field fullName -static const unsigned char cvOID_fullName [] = { 0x67, 0x2A, 0x02, 0x00}; -//2.23.42.2.1 SET field givenName -static const unsigned char cvOID_givenName_SET [] = { 0x67, 0x2A, 0x02, 0x01}; -//2.23.42.2.2 SET field familyName -static const unsigned char cvOID_familyName [] = { 0x67, 0x2A, 0x02, 0x02}; -//2.23.42.2.3 SET field birthFamilyName -static const unsigned char cvOID_birthFamilyName [] = { 0x67, 0x2A, 0x02, 0x03}; -//2.23.42.2.4 SET field placeName -static const unsigned char cvOID_placeName [] = { 0x67, 0x2A, 0x02, 0x04}; -//2.23.42.2.5 SET field identificationNumber -static const unsigned char cvOID_identificationNumber [] = { 0x67, 0x2A, 0x02, 0x05}; -//2.23.42.2.6 SET field month -static const unsigned char cvOID_month [] = { 0x67, 0x2A, 0x02, 0x06}; -//2.23.42.2.7 SET field date -static const unsigned char cvOID_date [] = { 0x67, 0x2A, 0x02, 0x07}; -//2.23.42.2.8 SET field address -static const unsigned char cvOID_address [] = { 0x67, 0x2A, 0x02, 0x08}; -//2.23.42.2.9 SET field telephone -static const unsigned char cvOID_telephone [] = { 0x67, 0x2A, 0x02, 0x09}; -//2.23.42.2.10 SET field amount -static const unsigned char cvOID_amount [] = { 0x67, 0x2A, 0x02, 0x0A}; -//2.23.42.2.7.11 SET field accountNumber -static const unsigned char cvOID_accountNumber [] = { 0x67, 0x2A, 0x02, 0x0B}; -//2.23.42.2.7.12 SET field passPhrase -static const unsigned char cvOID_passPhrase [] = { 0x67, 0x2A, 0x02, 0x0C}; -//2.23.42.3 SET attribute -static const unsigned char cvOID_attribute_SET [] = { 0x67, 0x2A, 0x03}; -//2.23.42.3.0 SET attribute cert -static const unsigned char cvOID_cert_SET [] = { 0x67, 0x2A, 0x03, 0x00}; -//2.23.42.3.0.0 SET cert attribute rootKeyThumb -static const unsigned char cvOID_rootKeyThumb [] = { 0x67, 0x2A, 0x03, 0x00, 0x00}; -//2.23.42.3.0.1 SET cert attribute additionalPolicy -static const unsigned char cvOID_additionalPolicy [] = { 0x67, 0x2A, 0x03, 0x00, 0x01}; -//2.23.42.4 SET algorithm -static const unsigned char cvOID_algorithm_SET [] = { 0x67, 0x2A, 0x04}; -//2.23.42.5 SET policy -static const unsigned char cvOID_policy_SET [] = { 0x67, 0x2A, 0x05}; -//2.23.42.5.0 SET policy root -static const unsigned char cvOID_root [] = { 0x67, 0x2A, 0x05, 0x00}; -//2.23.42.6 SET module -static const unsigned char cvOID_module_SET [] = { 0x67, 0x2A, 0x06}; -//2.23.42.7 SET certExt -static const unsigned char cvOID_certExt [] = { 0x67, 0x2A, 0x07}; -//2.23.42.7.0 SET cert extension hashedRootKey -static const unsigned char cvOID_hashedRootKey [] = { 0x67, 0x2A, 0x07, 0x00}; -//2.23.42.7.1 SET cert extension certificateType -static const unsigned char cvOID_certificateType_SET [] = { 0x67, 0x2A, 0x07, 0x01}; -//2.23.42.7.2 SET cert extension merchantData -static const unsigned char cvOID_merchantData [] = { 0x67, 0x2A, 0x07, 0x02}; -//2.23.42.7.3 SET cert extension cardCertRequired -static const unsigned char cvOID_cardCertRequired [] = { 0x67, 0x2A, 0x07, 0x03}; -//2.23.42.7.4 SET cert extension tunneling -static const unsigned char cvOID_tunneling [] = { 0x67, 0x2A, 0x07, 0x04}; -//2.23.42.7.5 SET cert extension setExtensions -static const unsigned char cvOID_setExtensions [] = { 0x67, 0x2A, 0x07, 0x05}; -//2.23.42.7.6 SET cert extension setQualifier -static const unsigned char cvOID_setQualifier [] = { 0x67, 0x2A, 0x07, 0x06}; -//2.23.42.8 SET brand -static const unsigned char cvOID_brand [] = { 0x67, 0x2A, 0x08}; -//2.23.42.8.1 SET brand IATA-ATA -static const unsigned char cvOID_IATA_ATA [] = { 0x67, 0x2A, 0x08, 0x01}; -//2.23.42.8.4 SET brand VISA -static const unsigned char cvOID_VISA [] = { 0x67, 0x2A, 0x08, 0x04}; -//2.23.42.8.5 SET brand MasterCard -static const unsigned char cvOID_MasterCard [] = { 0x67, 0x2A, 0x08, 0x05}; -//2.23.42.8.30 SET brand Diners -static const unsigned char cvOID_Diners [] = { 0x67, 0x2A, 0x08, 0x1E}; -//2.23.42.8.34 SET brand AmericanExpress -static const unsigned char cvOID_AmericanExpress [] = { 0x67, 0x2A, 0x08, 0x22}; -//2.23.42.8.6011 SET brand Novus -static const unsigned char cvOID_Novus [] = { 0x67, 0x2A, 0x08, 0xAE, 0x7B}; -//2.23.42.9 SET vendor -static const unsigned char cvOID_vendor [] = { 0x67, 0x2A, 0x09}; -//2.23.42.9.0 SET vendor GlobeSet -static const unsigned char cvOID_GlobeSet [] = { 0x67, 0x2A, 0x09, 0x00}; -//2.23.42.9.1 SET vendor IBM -static const unsigned char cvOID_IBM [] = { 0x67, 0x2A, 0x09, 0x01}; -//2.23.42.9.2 SET vendor CyberCash -static const unsigned char cvOID_CyberCash [] = { 0x67, 0x2A, 0x09, 0x02}; -//2.23.42.9.3 SET vendor Terisa -static const unsigned char cvOID_Terisa [] = { 0x67, 0x2A, 0x09, 0x03}; -//2.23.42.9.4 SET vendor RSADSI -static const unsigned char cvOID_RSADSI [] = { 0x67, 0x2A, 0x09, 0x04}; -//2.23.42.9.5 SET vendor VeriFone -static const unsigned char cvOID_VeriFone [] = { 0x67, 0x2A, 0x09, 0x05}; -//2.23.42.9.6 SET vendor TrinTech -static const unsigned char cvOID_TrinTech [] = { 0x67, 0x2A, 0x09, 0x06}; -//2.23.42.9.7 SET vendor BankGate -static const unsigned char cvOID_BankGate [] = { 0x67, 0x2A, 0x09, 0x07}; -//2.23.42.9.8 SET vendor GTE -static const unsigned char cvOID_GTE [] = { 0x67, 0x2A, 0x09, 0x08}; -//2.23.42.9.9 SET vendor CompuSource -static const unsigned char cvOID_CompuSource [] = { 0x67, 0x2A, 0x09, 0x09}; -//2.23.42.9.10 SET vendor Griffin -static const unsigned char cvOID_Griffin [] = { 0x67, 0x2A, 0x09, 0x0A}; -//2.23.42.9.11 SET vendor Certicom -static const unsigned char cvOID_Certicom [] = { 0x67, 0x2A, 0x09, 0x0B}; -//2.23.42.9.12 SET vendor OSS -static const unsigned char cvOID_OSS [] = { 0x67, 0x2A, 0x09, 0x0C}; -//2.23.42.9.13 SET vendor TenthMountain -static const unsigned char cvOID_TenthMountain [] = { 0x67, 0x2A, 0x09, 0x0D}; -//2.23.42.9.14 SET vendor Antares -static const unsigned char cvOID_Antares [] = { 0x67, 0x2A, 0x09, 0x0E}; -//2.23.42.9.15 SET vendor ECC -static const unsigned char cvOID_ECC [] = { 0x67, 0x2A, 0x09, 0x0F}; -//2.23.42.9.16 SET vendor Maithean -static const unsigned char cvOID_Maithean [] = { 0x67, 0x2A, 0x09, 0x10}; -//2.23.42.9.17 SET vendor Netscape -static const unsigned char cvOID_Netscape [] = { 0x67, 0x2A, 0x09, 0x11}; -//2.23.42.9.18 SET vendor Verisign -static const unsigned char cvOID_Verisign [] = { 0x67, 0x2A, 0x09, 0x12}; -//2.23.42.9.19 SET vendor BlueMoney -static const unsigned char cvOID_BlueMoney [] = { 0x67, 0x2A, 0x09, 0x13}; -//2.23.42.9.20 SET vendor Lacerte -static const unsigned char cvOID_Lacerte [] = { 0x67, 0x2A, 0x09, 0x14}; -//2.23.42.9.21 SET vendor Fujitsu -static const unsigned char cvOID_Fujitsu [] = { 0x67, 0x2A, 0x09, 0x15}; -//2.23.42.9.22 SET vendor eLab -static const unsigned char cvOID_eLab [] = { 0x67, 0x2A, 0x09, 0x16}; -//2.23.42.9.23 SET vendor Entrust -static const unsigned char cvOID_Entrust [] = { 0x67, 0x2A, 0x09, 0x17}; -//2.23.42.9.24 SET vendor VIAnet -static const unsigned char cvOID_VIAnet [] = { 0x67, 0x2A, 0x09, 0x18}; -//2.23.42.9.25 SET vendor III -static const unsigned char cvOID_III [] = { 0x67, 0x2A, 0x09, 0x19}; -//2.23.42.9.26 SET vendor OpenMarket -static const unsigned char cvOID_OpenMarket [] = { 0x67, 0x2A, 0x09, 0x1A}; -//2.23.42.9.27 SET vendor Lexem -static const unsigned char cvOID_Lexem [] = { 0x67, 0x2A, 0x09, 0x1B}; -//2.23.42.9.28 SET vendor Intertrader -static const unsigned char cvOID_Intertrader [] = { 0x67, 0x2A, 0x09, 0x1C}; -//2.23.42.9.29 SET vendor Persimmon -static const unsigned char cvOID_Persimmon [] = { 0x67, 0x2A, 0x09, 0x1D}; -//2.23.42.9.30 SET vendor NABLE -static const unsigned char cvOID_NABLE [] = { 0x67, 0x2A, 0x09, 0x1E}; -//2.23.42.9.31 SET vendor espace-net -static const unsigned char cvOID_espace_net [] = { 0x67, 0x2A, 0x09, 0x1F}; -//2.23.42.9.32 SET vendor Hitachi -static const unsigned char cvOID_Hitachi [] = { 0x67, 0x2A, 0x09, 0x20}; -//2.23.42.9.33 SET vendor Microsoft -static const unsigned char cvOID_Microsoft [] = { 0x67, 0x2A, 0x09, 0x21}; -//2.23.42.9.34 SET vendor NEC -static const unsigned char cvOID_NEC [] = { 0x67, 0x2A, 0x09, 0x22}; -//2.23.42.9.35 SET vendor Mitsubishi -static const unsigned char cvOID_Mitsubishi [] = { 0x67, 0x2A, 0x09, 0x23}; -//2.23.42.9.36 SET vendor NCR -static const unsigned char cvOID_NCR [] = { 0x67, 0x2A, 0x09, 0x24}; -//2.23.42.9.37 SET vendor e-COMM -static const unsigned char cvOID_e_COMM [] = { 0x67, 0x2A, 0x09, 0x25}; -//2.23.42.9.38 SET vendor Gemplus -static const unsigned char cvOID_Gemplus [] = { 0x67, 0x2A, 0x09, 0x26}; -//2.23.42.10 SET national -static const unsigned char cvOID_national [] = { 0x67, 0x2A, 0x0A}; -//2.23.42.10.192 SET national Japan -static const unsigned char cvOID_Japan [] = { 0x67, 0x2A, 0x0A, 0x81, 0x40}; -//2.54.1775.2 SET. Deprecated, use (2 23 42 7 0) instead hashedRootKey -static const unsigned char cvOID_hashedRootKey_old [] = { 0x86, 0x8D, 0x6F, 0x02}; -//2.54.1775.3 SET. Deprecated, use (2 23 42 7 0) instead certificateType -static const unsigned char cvOID_certificateType_old [] = { 0x86, 0x8D, 0x6F, 0x03}; -//2.54.1775.4 SET. Deprecated, use (2 23 42 7 0) instead merchantData -static const unsigned char cvOID_merchantData_old [] = { 0x86, 0x8D, 0x6F, 0x04}; -//2.54.1775.5 SET. Deprecated, use (2 23 42 7 0) instead cardCertRequired -static const unsigned char cvOID_cardCertRequired_old [] = { 0x86, 0x8D, 0x6F, 0x05}; -//2.54.1775.6 SET. Deprecated, use (2 23 42 7 0) instead tunneling -static const unsigned char cvOID_tunneling_old [] = { 0x86, 0x8D, 0x6F, 0x06}; -//2.54.1775.7 SET. Deprecated, use (2 23 42 7 0) instead setQualifier -static const unsigned char cvOID_setQualifier_old [] = { 0x86, 0x8D, 0x6F, 0x07}; -//2.54.1775.99 SET. Deprecated, use (2 23 42 7 0) instead set-data -static const unsigned char cvOID_set_data_old [] = { 0x86, 0x8D, 0x6F, 0x63}; - -#ifdef _MSC_VER -#pragma warning(default : 4305) -#pragma warning(default : 4309) -#endif - -#endif - diff --git a/actlibrary/SLES-10-i686/Release/include/actPKCS15BehaviorKit.h b/actlibrary/SLES-10-i686/Release/include/actPKCS15BehaviorKit.h deleted file mode 100644 index cdac8da..0000000 --- a/actlibrary/SLES-10-i686/Release/include/actPKCS15BehaviorKit.h +++ /dev/null @@ -1,43 +0,0 @@ -// --------------------------------------------------------------------------- -// Name: actPKCS15BehaviorKit.h -// Product: cv act library -// Purpose: Factory functions to create specific PKCS15Behavior objects. -// -// Copyright: (c) 2008 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -// -// Autor: Markus Tesche -// Date: 06/02/2008 -// --------------------------------------------------------------------------- - -#ifndef ACT_PKCS15BehaviorKit_h -#define ACT_PKCS15BehaviorKit_h - -#include - -namespace act -{ - class IToken; - class IPKCS15Behavior; - - // default behavior, does nothing - IPKCS15Behavior* CreatePKCS15Behavior(const char* mid, IToken* token); - - // specialized behavior - IPKCS15Behavior* CreateSafeSignBehavior(const char* mid, IToken* token); - IPKCS15Behavior* CreateStarSignBehavior(const char* mid, IToken* token); - IPKCS15Behavior* CreateJCPKCS15Behavior(const char* mid, IToken* token); - IPKCS15Behavior* CreateJCPKCS15mEACBehavior(const char* mid, IToken* token); - IPKCS15Behavior* CreateHiPathBehavior(const char* mid, IToken* token); - IPKCS15Behavior* CreateV4PKCS15Behavior(const char* mid, IToken* token); - IPKCS15Behavior* CreateACOSPKCS15Behavior(const char* mid, IToken* token); - IPKCS15Behavior* CreateStarCOSPKCS15Behavior(const char* mid, IToken* token); - IPKCS15Behavior* CreateNexusBehavior(const char* mid, IToken* token); - IPKCS15Behavior* CreateVWBehavior(const char* mid, IToken* token); // Nexus derived - IPKCS15Behavior* CreateDTRUSTBehavior(const char* mid, IToken* token); // Nexus derived - -} // namespace act - -#endif // ACT_PKCS15BehaviorKit_h diff --git a/actlibrary/SLES-10-i686/Release/include/actPKCS15BehaviorReg.h b/actlibrary/SLES-10-i686/Release/include/actPKCS15BehaviorReg.h deleted file mode 100644 index 56f39a2..0000000 --- a/actlibrary/SLES-10-i686/Release/include/actPKCS15BehaviorReg.h +++ /dev/null @@ -1,34 +0,0 @@ -// --------------------------------------------------------------------------- -// Name: actPKCS15BehaviorReg.h -// Product: cv act library -// Purpose: Registry for factory functions to create specific PKCS15Behavior objects. -// -// Copyright: (c) 2008 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -// -// Autor: Markus Tesche -// Date: 06/02/2008 -// --------------------------------------------------------------------------- - -#ifndef ACT_PKCS15BehaviorReg_h -#define ACT_PKCS15BehaviorReg_h - -#include "actFactoryReg.h" - -namespace act -{ - class IToken; - class IPKCS15Behavior; - - typedef IPKCS15Behavior* (*CreatePKCS15BehaviorPtr)(const char* mid, IToken* token); - typedef FactoryMapEntry PKCS15BehaviorMapEntry; - - typedef FactoryReg - < IPKCS15Behavior, CreatePKCS15BehaviorPtr, PKCS15BehaviorMapEntry - > PKCS15BehaviorReg; - -} // namespace act - -#endif // ACT_PKCS15BehaviorReg_h diff --git a/actlibrary/SLES-10-i686/Release/include/actPaddingKit.h b/actlibrary/SLES-10-i686/Release/include/actPaddingKit.h deleted file mode 100644 index 01fb93e..0000000 --- a/actlibrary/SLES-10-i686/Release/include/actPaddingKit.h +++ /dev/null @@ -1,26 +0,0 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actPaddingKit.h -// Product: cv act library -// Purpose: declaration of all factory functions -// -// Copyright: (c) 2000 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_PaddingKit_h -#define ACT_PaddingKit_h - -namespace act -{ - class IPadding; - - IPadding* CreatePKCS5Pad(); - IPadding* CreatePKCS1V1_5EMEPad(); - IPadding* CreateOneAndZerosPad(); - IPadding* CreateISO9796Pad(); - IPadding* CreateNoPad(); -} -#endif - diff --git a/actlibrary/SLES-10-i686/Release/include/actPaddingReg.h b/actlibrary/SLES-10-i686/Release/include/actPaddingReg.h deleted file mode 100644 index 4cad768..0000000 --- a/actlibrary/SLES-10-i686/Release/include/actPaddingReg.h +++ /dev/null @@ -1,41 +0,0 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actPaddingReg.h -// Product: cv act library -// Purpose: registry for the factory functions in actPaddingKit.h -// -// Copyright: (c) 2000 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_PaddingReg_h -#define ACT_PaddingReg_h - -namespace act -{ - class IPadding; - class Blob; - - typedef IPadding* (*CreatePaddingPtr)(); - - struct PaddingMapEntry - { - const char* Name; - CreatePaddingPtr CreatePtr; - }; - - class PaddingReg - { - public: - static IPadding* CreatePadding(const char* name); - static CreatePaddingPtr GetCreatePointer(const char* name); - static const char* GetName(void* createptr); - static const char* GetNextName(const char* name); - static void Insert(const char* name, CreatePaddingPtr createptr); - static void Insert(const PaddingMapEntry* paddingmap); - }; - -} // namespace act - -#endif // ACT_PaddingReg_h diff --git a/actlibrary/SLES-10-i686/Release/include/actProfileGeneratorKit.h b/actlibrary/SLES-10-i686/Release/include/actProfileGeneratorKit.h deleted file mode 100644 index 1992c43..0000000 --- a/actlibrary/SLES-10-i686/Release/include/actProfileGeneratorKit.h +++ /dev/null @@ -1,26 +0,0 @@ -// --------------------------------------------------------------------------- -// Name: actProfileGeneratorKit.h -// Product: cv act library -// Purpose: Factory functions for smartcard profile generators. -// -// Copyright: (c) 2009 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -// -// Autor: Markus Tesche -// Date: 12/18/2009 -// --------------------------------------------------------------------------- - -#ifndef ACT_ProfileGeneratorKit_h -#define ACT_ProfileGeneratorKit_h - -namespace act -{ - class IProfileGenerator; - - IProfileGenerator* CreateJCPKCS15Generator(const char* name); - -} // namespace act - -#endif // ACT_ProfileGeneratorKit_h diff --git a/actlibrary/SLES-10-i686/Release/include/actProfileGeneratorReg.h b/actlibrary/SLES-10-i686/Release/include/actProfileGeneratorReg.h deleted file mode 100644 index 0a8f6be..0000000 --- a/actlibrary/SLES-10-i686/Release/include/actProfileGeneratorReg.h +++ /dev/null @@ -1,33 +0,0 @@ -// --------------------------------------------------------------------------- -// Name: actProfileGeneratorReg.h -// Product: cv act library -// Purpose: factory functions registry to create IProfileGenerator objects. -// -// Copyright: (c) 2009 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -// -// Autor: Markus Tesche -// Date: 12/18/2009 -// --------------------------------------------------------------------------- - -#ifndef ACT_ProfileGeneratorReg_h -#define ACT_ProfileGeneratorReg_h - -#include "actFactoryReg.h" - -namespace act -{ - class IProfileGenerator; - - typedef IProfileGenerator* (*CreateProfileGeneratorPtr)(const char*); - typedef FactoryMapEntry ProfileGeneratorMapEntry; - - typedef FactoryReg - < IProfileGenerator, CreateProfileGeneratorPtr, ProfileGeneratorMapEntry - > ProfileGeneratorReg; - -} // namespace act - -#endif // ACT_ProfileGeneratorReg_h diff --git a/actlibrary/SLES-10-i686/Release/include/actRNGKit.h b/actlibrary/SLES-10-i686/Release/include/actRNGKit.h deleted file mode 100644 index 6a8b886..0000000 --- a/actlibrary/SLES-10-i686/Release/include/actRNGKit.h +++ /dev/null @@ -1,44 +0,0 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actRNGKit.h -// Product: cv act library -// Purpose: declaration of all factory functions -// -// Copyright: (c) 2010 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_RNGKit_h -#define ACT_RNGKit_h -namespace act -{ - class IRNGAlg; - - // Dummy PRNG (uses rand() / srand(time(0))) - IRNGAlg* CreateDummyPRNG(); - - // Deterministic PRNGs - IRNGAlg* CreateARC4RNG(); - IRNGAlg* CreateBBS(); - IRNGAlg* CreateFIPS186(); - IRNGAlg* CreateFIPS186DES(); - IRNGAlg* CreateLCG(); - - // AIS 20, K1 - K4 evaluated deterministic PRNG - IRNGAlg* CreateFIPS186K4(); - - // 'True' RNGs - IRNGAlg* CreateDevRandomRNG(); -#ifndef UNDER_CE_30 - IRNGAlg* CreateWinRNG(); -#endif - - // Token RNG (uses IToken::GetRandom()) -#ifndef NO_SMARTCARD - IRNGAlg* CreateTokenRNG(); -#endif -} - -#endif - diff --git a/actlibrary/SLES-10-i686/Release/include/actSCardLock.h b/actlibrary/SLES-10-i686/Release/include/actSCardLock.h deleted file mode 100644 index 3bc753e..0000000 --- a/actlibrary/SLES-10-i686/Release/include/actSCardLock.h +++ /dev/null @@ -1,51 +0,0 @@ -// --------------------------------------------------------------------------- -// Name: actSCardLock.h -// Product: cv act library -// Purpose: Smartcard transaction lock -// -// Copyright: (c) 2009 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -// -// Autor: Markus Tesche -// Date: 07/10/2009 -// --------------------------------------------------------------------------- - -#ifndef ACT_SCardLock_H -#define ACT_SCardLock_H - -#include "actEnv.h" - -#if defined(ACT_64) -# define LOCK_SIZE 32 -#else -# define LOCK_SIZE 16 -#endif - -namespace act -{ - class ISCardOS; - - class SCardLock - { - private: - SCardLock() { } - SCardLock(const SCardLock&) { } - - public: - SCardLock(ISCardOS* os); - ~SCardLock(); - - void Lock(ISCardOS* os); - void Unlock(); - - private: - byte m_lock[LOCK_SIZE]; - }; - -} // namespace act - -#undef LOCK_SIZE - -#endif // ACT_SCardLock_H diff --git a/actlibrary/SLES-10-i686/Release/include/actSCardOSKit.h b/actlibrary/SLES-10-i686/Release/include/actSCardOSKit.h deleted file mode 100644 index 79ae7b0..0000000 --- a/actlibrary/SLES-10-i686/Release/include/actSCardOSKit.h +++ /dev/null @@ -1,170 +0,0 @@ -// --------------------------------------------------------------------------- -// Name: actSCardOSKit.h -// Product: cv act library -// Purpose: registry for factory functions to create SCardOS object -// -// Copyright: (c) 2002 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -// -// Autor: Dr. Xiangdong Wang (XWG) -// Date: 05/13/2002 -// --------------------------------------------------------------------------- - -#ifndef ACT_SCardOSKit_h -#define ACT_SCardOSKit_h - -namespace act -{ - class ISCardOS; - class ISCardAccess; - - /* - ISCardOS* CreateMicardOS(ISCardAccess*); - ISCardOS* CreateMicardo20E(ISCardAccess*); - ISCardOS* CreateMicardo23E(ISCardAccess* ac); - */ - - bool IsACOS(CreateSCardOSPtr ptr); - ISCardOS* CreateACOS_D01(ISCardAccess*); - ISCardOS* CreateACOS_A04(ISCardAccess*); - - bool IsCardOS_M4(CreateSCardOSPtr ptr); - ISCardOS* CreateCardOS_M4(ISCardAccess*); - ISCardOS* CreateCardOS_M4_MoC(ISCardAccess*); - - bool IsCardOS_M4_ECC(CreateSCardOSPtr ptr); - ISCardOS* CreateCardOS_M4_ECC(ISCardAccess*); - - bool IsCardOS_V4(CreateSCardOSPtr ptr); - ISCardOS* CreateCardOS_V4(ISCardAccess*); - - bool IsCardOS_V4_ECC(CreateSCardOSPtr ptr); - ISCardOS* CreateCardOS_V4_ECC(ISCardAccess*); - - bool IsStarCOS(CreateSCardOSPtr ptr); - ISCardOS* CreateStarCOS_3_0(ISCardAccess*); - ISCardOS* CreateStarCOS_3_2(ISCardAccess*); - - bool IsTCOS(CreateSCardOSPtr ptr); - ISCardOS* CreateTCOS_3_0(ISCardAccess*); - - bool IsJavaCardOS(CreateSCardOSPtr ptr); - ISCardOS* CreateJavaCardOS_2_2_2(ISCardAccess*); - ISCardOS* CreateJavaCardOS_2_2_1(ISCardAccess*); - ISCardOS* CreateJavaCardOS_2_2(ISCardAccess*); - ISCardOS* CreateJavaCardOS_2_1_2(ISCardAccess*); - ISCardOS* CreateJavaCardOS_2_1_1(ISCardAccess*); - ISCardOS* CreateJavaCardOS_2_1(ISCardAccess*); - - bool IsISO7816OS(CreateSCardOSPtr ptr); - ISCardOS* CreateISO7816OS(ISCardAccess*); - - // - // Passport OS - // --------------------------------------------------------------------------- - bool IsBACOS(CreateSCardOSPtr ptr); - ISCardOS* CreateBACOS(ISCardAccess* ac); - - bool IsEACOS(CreateSCardOSPtr ptr); - ISCardOS* CreateEACOS(ISCardAccess* ac); - - bool IsEACOS201(CreateSCardOSPtr ptr); - ISCardOS* CreateEACOS201(ISCardAccess* ac); - - bool IsEPAOS(CreateSCardOSPtr ptr); - ISCardOS* CreateEPAOS(ISCardAccess* ac); - - - // --------------------------------------------------------------------------- - inline bool IsACOS(CreateSCardOSPtr ptr) - { - return ptr == CreateACOS_D01 - || ptr == CreateACOS_A04; - } - - // --------------------------------------------------------------------------- - inline bool IsCardOS_M4(CreateSCardOSPtr ptr) - { - return ptr == CreateCardOS_M4 - || ptr == CreateCardOS_M4_MoC; - } - - // --------------------------------------------------------------------------- - inline bool IsCardOS_M4_ECC(CreateSCardOSPtr ptr) - { - return ptr == CreateCardOS_M4_ECC; - } - - // --------------------------------------------------------------------------- - inline bool IsCardOS_V4(CreateSCardOSPtr ptr) - { - return ptr == CreateCardOS_V4; - } - - // --------------------------------------------------------------------------- - inline bool IsCardOS_V4_ECC(CreateSCardOSPtr ptr) - { - return ptr == CreateCardOS_V4_ECC; - } - - // --------------------------------------------------------------------------- - inline bool IsStarCOS(CreateSCardOSPtr ptr) - { - return ptr == CreateStarCOS_3_0 - || ptr == CreateStarCOS_3_2; - } - - // --------------------------------------------------------------------------- - inline bool IsTCOS(CreateSCardOSPtr ptr) - { - return ptr == CreateTCOS_3_0; - } - - // --------------------------------------------------------------------------- - inline bool IsJavaCardOS(CreateSCardOSPtr ptr) - { - return ptr == CreateJavaCardOS_2_2_2 - || ptr == CreateJavaCardOS_2_2_1 - || ptr == CreateJavaCardOS_2_2 - || ptr == CreateJavaCardOS_2_1_2 - || ptr == CreateJavaCardOS_2_1_1 - || ptr == CreateJavaCardOS_2_1; - } - - // --------------------------------------------------------------------------- - inline bool IsISO7816OS(CreateSCardOSPtr ptr) - { - return ptr == CreateISO7816OS; - } - - // - // Passport OS - // --------------------------------------------------------------------------- - inline bool IsBACOS(CreateSCardOSPtr ptr) - { - return ptr == CreateBACOS; - } - - // --------------------------------------------------------------------------- - inline bool IsEACOS(CreateSCardOSPtr ptr) - { - return ptr == CreateEACOS; - } - - // --------------------------------------------------------------------------- - inline bool IsEACOS201(CreateSCardOSPtr ptr) - { - return ptr == CreateEACOS201; - } - - // --------------------------------------------------------------------------- - inline bool IsEPAOS(CreateSCardOSPtr ptr) - { - return ptr == CreateEPAOS; - } - -} // namespace act - -#endif // ACT_SCardOSKit_h diff --git a/actlibrary/SLES-10-i686/Release/include/actSCardOSReg.h b/actlibrary/SLES-10-i686/Release/include/actSCardOSReg.h deleted file mode 100644 index 4156615..0000000 --- a/actlibrary/SLES-10-i686/Release/include/actSCardOSReg.h +++ /dev/null @@ -1,46 +0,0 @@ -// --------------------------------------------------------------------------- -// Name: actSCardOSReg.h -// Product: cv act library -// Purpose: factory functions registry to create SCardOS objects. -// -// Copyright: (c) 2002 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -// -// Autor: Dr. Xiangdong Wang (XWG) -// Date: 04/09/2002 -// --------------------------------------------------------------------------- - -#ifndef ACT_SCardOSReg_h -#define ACT_SCardOSReg_h - -namespace act -{ -# define ACT_ISO7816OS_NAME "ISO7816OS" - - class ISCardOS; - class ISCardAccess; - - typedef ISCardOS* (*CreateSCardOSPtr)(ISCardAccess*); - - struct SCardOSMapEntry - { - const char* Name; - CreateSCardOSPtr CreatePtr; - }; - - class SCardOSReg - { - public: - static ISCardOS* CreateSCardOS(const char* name, ISCardAccess* ac); - static CreateSCardOSPtr GetCreatePointer(const char* name); - static const char* GetName(void* createptr); - static const char* GetNextName(const char* name); - static void Insert(const char* name, CreateSCardOSPtr createptr); - static void Insert(const SCardOSMapEntry* entry); - }; - -} // namespace act - -#endif // ACT_SCardOSReg_h diff --git a/actlibrary/SLES-10-i686/Release/include/actSCardTokenKit.h b/actlibrary/SLES-10-i686/Release/include/actSCardTokenKit.h deleted file mode 100644 index 90cb011..0000000 --- a/actlibrary/SLES-10-i686/Release/include/actSCardTokenKit.h +++ /dev/null @@ -1,105 +0,0 @@ -// --------------------------------------------------------------------------- -// Name: actSCardTokenKit.h -// Product: cv act library -// Purpose: registry for factory functions to create SCardOS and SCardToken objects -// -// Copyright: (c) 2002 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -// -// Autor: Dr. Xiangdong Wang (XWG) -// Date: 05/14/2002 -// --------------------------------------------------------------------------- - -#ifndef ACT_SCardTokenKit_h -#define ACT_SCardTokenKit_h - -namespace act -{ - class ISCardOS; - class SCardToken; - - bool IsStarCOSToken(ISCardOS* os); - SCardToken* CreateStarCOSToken(ISCardOS* os); - - bool IsV4cvProfile(ISCardOS* os); - SCardToken* CreateV4cvProfile(ISCardOS* os); - - bool IsV4cvECProfile(ISCardOS* os); - SCardToken* CreateV4cvECProfile(ISCardOS* os); - - bool IsV4CNSProfile(ISCardOS* os); - SCardToken* CreateV4CNSProfile(ISCardOS* os); - - bool IsNetKey2000Token(ISCardOS* os); - SCardToken* CreateNetKey2000Token(ISCardOS* os); - - bool IsNetKeyE4Token(ISCardOS* os); - SCardToken* CreateNetKeyE4Token(ISCardOS* os); - - bool IsNetKey30Token(ISCardOS* os); - SCardToken* CreateNetKey30Token(ISCardOS* os); - - bool IsNetKeyPKSToken(ISCardOS* os); - SCardToken* CreateNetKeyPKSToken(ISCardOS* os); - - bool IsNetKeyOldToken(ISCardOS* os); - SCardToken* CreateNetKeyOldToken(ISCardOS* os); - - bool IseTrustToken(ISCardOS* os); - SCardToken* CreateeTrustToken(ISCardOS* os); - - bool IsMicardoECToken(ISCardOS* os); - SCardToken* CreateMicardoECToken(ISCardOS* os); - - bool IsM4cvProfile(ISCardOS* os); - SCardToken* CreateM4cvProfile(ISCardOS* os); - - bool IsACOScvProfile(ISCardOS* os); - SCardToken* CreateACOScvProfile(ISCardOS* os); - - bool IsM4SiemensProfile(ISCardOS* os); - SCardToken* CreateM4SiemensProfile(ISCardOS* os); - - bool IsM4cvECProfile(ISCardOS* os); - SCardToken* CreateM4cvECProfile(ISCardOS* os); - - bool IsM4cvMoCProfile(ISCardOS* os); - SCardToken* CreateM4cvMoCProfile(ISCardOS* os); - - bool IsJavaCardAppletManager(ISCardOS* os); - SCardToken* CreateJavaCardAppletManager(ISCardOS* os); - - bool IsJCProfile(ISCardOS* os); - SCardToken* CreateJCProfile(ISCardOS* os); - - // PKCS#15 Profiles - bool IsM4PKCS15Profile(ISCardOS* os); - SCardToken* CreateM4PKCS15Profile(ISCardOS* os); - - bool IsV4PKCS15Profile(ISCardOS* os); - SCardToken* CreateV4PKCS15Profile(ISCardOS* os); - - bool IsV4PKCS15ECProfile(ISCardOS* os); - SCardToken* CreateV4PKCS15ECProfile(ISCardOS* os); - - bool IsJCPKCS15Profile(ISCardOS* os); - SCardToken* CreateJCPKCS15Profile(ISCardOS* os); - - bool IsJCPKCS15ECProfile(ISCardOS* os); - SCardToken* CreateJCPKCS15ECProfile(ISCardOS* os); - - bool IsACOSPKCS15Profile(ISCardOS* os); - SCardToken* CreateACOSPKCS15Profile(ISCardOS* os); - - bool IsStarCOSPKCS15Profile(ISCardOS* os); - SCardToken* CreateStarCOSPKCS15Profile(ISCardOS* os); - - // Passport - bool IsEPAProfile(ISCardOS* os); - SCardToken* CreateEPAProfile(ISCardOS* os); - -} // namespace act - -#endif // ACT_SCardTokenKit_h diff --git a/actlibrary/SLES-10-i686/Release/include/actSCardTokenReg.h b/actlibrary/SLES-10-i686/Release/include/actSCardTokenReg.h deleted file mode 100644 index 3f26385..0000000 --- a/actlibrary/SLES-10-i686/Release/include/actSCardTokenReg.h +++ /dev/null @@ -1,42 +0,0 @@ -// --------------------------------------------------------------------------- -// Name: actSCardTokenReg.h -// Product: cv act library -// Purpose: factory functions registry to create SCardToken objects. -// -// Copyright: (c) 2002 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -// -// Autor: Dr. Xiangdong Wang (XWG) -// Date: 05/13/2002 -// --------------------------------------------------------------------------- - -#ifndef ACT_SCardTokenReg_h -#define ACT_SCardTokenReg_h - -namespace act -{ - class ISCardOS; - class SCardToken; - - typedef bool (*CheckSCardTokenPtr)(ISCardOS*); - typedef SCardToken* (*CreateSCardTokenPtr)(ISCardOS*); - - struct SCardTokenMapEntry - { - CheckSCardTokenPtr CheckPtr; - CreateSCardTokenPtr CreatePtr; - }; - - class SCardTokenReg - { - public: - static SCardToken* CreateSCardToken(ISCardOS* os); - static void Insert(CheckSCardTokenPtr checkptr, CreateSCardTokenPtr createptr); - static void Insert(const SCardTokenMapEntry* entry); - }; - -} // namespace act - -#endif // ACT_SCardTokenReg_h diff --git a/actlibrary/SLES-10-i686/Release/include/actSCardUtil.h b/actlibrary/SLES-10-i686/Release/include/actSCardUtil.h deleted file mode 100644 index 2b890d0..0000000 --- a/actlibrary/SLES-10-i686/Release/include/actSCardUtil.h +++ /dev/null @@ -1,27 +0,0 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actSCardUtil.h -// Product: cv act library -// Purpose: useful global functions -// -// Copyright: (c) 2008 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef actSCardUtil_h -#define actSCardUtil_h - -namespace act -{ - // --------------------------------------------------------------------------- - template - inline BlobT short2blob(unsigned short n) - { - byte data[2] = { byte((n >> 8) & 0xff), byte(n & 0xff) }; - return BlobT(&data[0], &data[0] + sizeof(data)); - } - -} // namespace act - -#endif // actSCardUtil_h diff --git a/actlibrary/SLES-10-i686/Release/include/actSlotManager.h b/actlibrary/SLES-10-i686/Release/include/actSlotManager.h deleted file mode 100644 index 63875f2..0000000 --- a/actlibrary/SLES-10-i686/Release/include/actSlotManager.h +++ /dev/null @@ -1,81 +0,0 @@ -// --------------------------------------------------------------------------- -// Name: actSlotManager.h -// Product: cv act library -// Purpose: The class SlotManager detects and manages the subsystems and the slots -// -// Copyright: (c) 2002 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -// -// Autor: Dr. Xiangdong Wang -// Markus Tesche -// Date: 03/26/2002 -// --------------------------------------------------------------------------- - -#ifndef ACT_SlotManager_h -#define ACT_SlotManager_h - -#include "actIEventMonitoring.h" - -namespace act -{ - class ISubsystem; - class ISubsystemConfig; - - class ISlot; - class ITokenConfig; - - // - // SlotManager - class SlotManager : public IEventMonitoring - { - private: - struct SubsystemList - { - SubsystemList(ISubsystem* system, SubsystemList* next = 0); - ~SubsystemList(); - - SubsystemList* insert(SubsystemList* prev); - SubsystemList* remove(SubsystemList* prev); - - ISubsystem* system; - SubsystemList* next; - }; - - public: - SlotManager(ITokenConfig* tkcfg = 0); - ~SlotManager(); - - bool Install(ISubsystem* system); - bool Install(ISubsystemConfig* config); - - void Refresh(); - void Disconnect(); - ISubsystem* GetSystem(size_t pos = 0) const; - - // SlotList - int GetSlotNumber() const; - const ISlot* GetSlot(int pos) const; - ISlot* CreateSlot(const char* name) const; - - // IEventMonitoring functions - virtual bool IsMonitored() const; - virtual void StopMonitor(bool force = false); - virtual void StartMonitor(IEventHandler* cmd); - - protected: - IEventHandler* SetMonitor(SubsystemList* begin, IEventHandler* cmd, bool force); - - private: - int m_total; - ITokenConfig* m_tkcfg; - SubsystemList* m_begin; - SubsystemList* m_current; - IEventHandler* m_cmd_root; - IEventHandler* m_cmd_current; - }; - -} // namespace act - -#endif // ACT_SlotManager_h diff --git a/actlibrary/SLES-10-i686/Release/include/actSlotMonitorKit.h b/actlibrary/SLES-10-i686/Release/include/actSlotMonitorKit.h deleted file mode 100644 index 043e5c9..0000000 --- a/actlibrary/SLES-10-i686/Release/include/actSlotMonitorKit.h +++ /dev/null @@ -1,32 +0,0 @@ -// --------------------------------------------------------------------------- -// Name: actSlotMonitorKit.h -// Product: cv act library -// Purpose: registry for factory functions to create slot monitors -// -// Copyright: (c) 2009 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -// -// Autor: Markus Tesche -// Date: 04/12/2009 -// --------------------------------------------------------------------------- - -#ifndef ACT_SlotMonitorKit_h -#define ACT_SlotMonitorKit_h - -namespace act -{ - class ISubsystem; - class ISlot; - class ISlotMonitor; - - // default polling slot monitor - ISlotMonitor* CreateSlotMonitor(ISlot*); - - ISlotMonitor* CreatePCSCSlotMonitor(ISlot*); - ISlotMonitor* CreatePCSCSystemSlotMonitor(ISubsystem*); - -} // namespace act - -#endif // ACT_SlotMonitorKit_h diff --git a/actlibrary/SLES-10-i686/Release/include/actSlotMonitorReg.h b/actlibrary/SLES-10-i686/Release/include/actSlotMonitorReg.h deleted file mode 100644 index 60a8d7e..0000000 --- a/actlibrary/SLES-10-i686/Release/include/actSlotMonitorReg.h +++ /dev/null @@ -1,54 +0,0 @@ -// --------------------------------------------------------------------------- -// Name: actSlotMonitorReg.h -// Product: cv act library -// Purpose: factory functions registry to create Slot-Monitor objects. -// -// Copyright: (c) 2009 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -// -// Autor: Markus Tesche -// Date: 04/12/2009 -// --------------------------------------------------------------------------- - -#ifndef ACT_SlotMonitoReg_h -#define ACT_SlotMonitoReg_h - -#include "actFactoryReg.h" - -namespace act -{ - class ISubsystem; - class ISlot; - class ISlotMonitor; - - typedef ISlotMonitor* (*CreateSlotMonitorPtr)(ISlot*); - typedef ISlotMonitor* (*CreateSystemSlotMonitorPtr)(ISubsystem*); - - struct SlotMonitorRegCreatePtr - { - ISlotMonitor* operator()(const char*, ISlot* slot) const - { - return createSlotMonitor != 0 ? createSlotMonitor(slot) : 0; - } - - ISlotMonitor* operator()(const char*, ISubsystem* system) const - { - return createSystemSlotMonitor != 0 ? createSystemSlotMonitor(system) : 0; - } - - CreateSlotMonitorPtr createSlotMonitor; - CreateSystemSlotMonitorPtr createSystemSlotMonitor; - }; - - - typedef FactoryMapEntry SlotMonitorRegEntry; - - typedef FactoryReg - < ISlotMonitor, SlotMonitorRegCreatePtr, SlotMonitorRegEntry - > SlotMonitorReg; - -} // namespace act - -#endif // ACT_SlotMonitoReg_h diff --git a/actlibrary/SLES-10-i686/Release/include/actState.h b/actlibrary/SLES-10-i686/Release/include/actState.h deleted file mode 100644 index c7e1cbf..0000000 --- a/actlibrary/SLES-10-i686/Release/include/actState.h +++ /dev/null @@ -1,29 +0,0 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actState.h -// Product: cv act library -// Purpose: -// -// Copyright: (c) 2000 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_STATE_H -#define ACT_STATE_H - -namespace act -{ - - const int READY=0; - const int SIGNATURE_OK=1; - const int IS_FINALIZED=2; - const int DECRYPT_ERROR=3; - const int CERTIFICATE_OK=4; - const int CERTIFICATE_ERROR=5; - const int VERIFY_ERROR=6; - -} // namspace act - -#endif - diff --git a/actlibrary/SLES-10-i686/Release/include/actStreamCipherKit.h b/actlibrary/SLES-10-i686/Release/include/actStreamCipherKit.h deleted file mode 100644 index efc74fa..0000000 --- a/actlibrary/SLES-10-i686/Release/include/actStreamCipherKit.h +++ /dev/null @@ -1,22 +0,0 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actStreamCipherKit.h -// Product: cv act library -// Purpose: declaration of all factory functions -// -// Copyright: (c) 2001 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_StreamCipherKit_h -#define ACT_StreamCipherKit_h - -namespace act -{ - class IStreamCipher; - - IStreamCipher* CreateARC4(); -} -#endif - diff --git a/actlibrary/SLES-10-i686/Release/include/actStreamCipherReg.h b/actlibrary/SLES-10-i686/Release/include/actStreamCipherReg.h deleted file mode 100644 index 4cc5b22..0000000 --- a/actlibrary/SLES-10-i686/Release/include/actStreamCipherReg.h +++ /dev/null @@ -1,39 +0,0 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actStreamCipherReg.h -// Product: cv act library -// Purpose: registry for factory functions in actStreamCipherKit.h -// -// Copyright: (c) 2001 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_StreamCipherReg_h -#define ACT_StreamCipherReg_h - -namespace act -{ - class IStreamCipher; - - typedef IStreamCipher* (*CreateStreamCipherPtr)(); - - struct StreamCipherMapEntry { - const char* Name; - CreateStreamCipherPtr CreatePtr; - }; - - class StreamCipherReg - { - public: - static IStreamCipher* CreateStreamCipher(const char* name); - static CreateStreamCipherPtr GetCreatePointer(const char* name); - static const char* GetName(void* createptr); - static const char* GetNextName(const char* name); - static void Insert(const char* name,CreateStreamCipherPtr createptr); - static void Insert(const StreamCipherMapEntry* map); - }; -} - -#endif - diff --git a/actlibrary/SLES-10-i686/Release/include/actSubsystemKit.h b/actlibrary/SLES-10-i686/Release/include/actSubsystemKit.h deleted file mode 100644 index c3452f0..0000000 --- a/actlibrary/SLES-10-i686/Release/include/actSubsystemKit.h +++ /dev/null @@ -1,33 +0,0 @@ -// --------------------------------------------------------------------------- -// Name: actSubsystemKit.h -// Product: cv act library -// Purpose: registry for factory functions to create subsystem -// -// Copyright: (c) 2002 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -// -// Autor: Dr. Xiangdong Wang (XWG) -// Date: 05/13/2002 -// --------------------------------------------------------------------------- - -#ifndef ACT_SubsystemKit_h -#define ACT_SubsystemKit_h - -namespace act -{ - class ISubsystem; - class ISubsystemConfig; - - ISubsystem* CreateCTAPISystem(const char*); - - ISubsystem* CreatePCSCSystem(const char*); - ISubsystem* CreatePCSCSystemEx(ISubsystemConfig*); - - ISubsystem* CreateCSPSystem(const char*); - ISubsystem* CreatePKCS11System(const char*); - -} // namespace act - -#endif // ACT_SubsystemKit_h diff --git a/actlibrary/SLES-10-i686/Release/include/actSubsystemReg.h b/actlibrary/SLES-10-i686/Release/include/actSubsystemReg.h deleted file mode 100644 index 7a82df8..0000000 --- a/actlibrary/SLES-10-i686/Release/include/actSubsystemReg.h +++ /dev/null @@ -1,53 +0,0 @@ -// --------------------------------------------------------------------------- -// Name: actSubsystemReg.h -// Product: cv act library -// Purpose: factory functions registry to create Subsystem objects. -// -// Copyright: (c) 2002 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -// -// Autor: Dr. Xiangdong Wang (XWG) -// Markus Tesche -// Date: 05/14/2002 -// --------------------------------------------------------------------------- - -#ifndef ACT_SubsystemReg_h -#define ACT_SubsystemReg_h - -namespace act -{ - class ISubsystem; - class ISubsystemConfig; - - typedef ISubsystem* (*CreateSubsystemPtr)(const char*); - typedef ISubsystem* (*CreateSubsystemExPtr)(ISubsystemConfig*); - - struct SubsystemMapEntry - { - const char* Name; - CreateSubsystemPtr CreatePtr; - CreateSubsystemExPtr CreateExPtr; - }; - - class SubsystemReg - { - public: - static ISubsystem* CreateSubsystem(ISubsystemConfig* config); - static ISubsystem* CreateSubsystem(const char* name, const char* dll_name = 0); - - static CreateSubsystemPtr GetCreatePointer(const char* name); - static CreateSubsystemExPtr GetCreateExPointer(const char* name); - - static const char* GetName(void* createptr); - static const char* GetNextName(const char* name); - - static void Insert(const char* name, CreateSubsystemPtr createptr); - static void Insert(const char* name, CreateSubsystemExPtr createexptr); - static void Insert(const SubsystemMapEntry* map); - }; - -} // namespace act - -#endif // ACT_SubsystemReg_h diff --git a/actlibrary/SLES-10-i686/Release/include/actTokenAuthProtocolKit.h b/actlibrary/SLES-10-i686/Release/include/actTokenAuthProtocolKit.h deleted file mode 100644 index d528776..0000000 --- a/actlibrary/SLES-10-i686/Release/include/actTokenAuthProtocolKit.h +++ /dev/null @@ -1,30 +0,0 @@ -// --------------------------------------------------------------------------- -// Name: actTokenAuthProtocolKit.h -// Product: cv act library -// Purpose: Factory functions to create specific ITokenAuthProtocol objects. -// -// Copyright: (c) 2009 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -// -// Autor: Markus Tesche -// Date: 14/10/2008 -// --------------------------------------------------------------------------- - -#ifndef ACT_TokenAuthProtocolKit_h -#define ACT_TokenAuthProtocolKit_h - -namespace act -{ - class ITokenAuthProtocol; - - ITokenAuthProtocol* CreateTokenAuthPACE(const char* name); // EACv2-PACE - ITokenAuthProtocol* CreateTokenAuthTA(const char* name); // EACv2-TA - ITokenAuthProtocol* CreateTokenAuthCA(const char* name); // EACv2-CA - - ITokenAuthProtocol* CreateTokenAuthBAC(const char* name); // EACv1-BAC - -} // namespace act - -#endif // ACT_TokenAuthProtocolKit_h diff --git a/actlibrary/SLES-10-i686/Release/include/actTokenAuthProtocolReg.h b/actlibrary/SLES-10-i686/Release/include/actTokenAuthProtocolReg.h deleted file mode 100644 index 9f2924d..0000000 --- a/actlibrary/SLES-10-i686/Release/include/actTokenAuthProtocolReg.h +++ /dev/null @@ -1,33 +0,0 @@ -// --------------------------------------------------------------------------- -// Name: actTokenAuthProtocolReg.h -// Product: cv act library -// Purpose: factory functions registry to create ITokenAuthProtocol objects. -// -// Copyright: (c) 2009 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -// -// Autor: Markus Tesche -// Date: 14/10/2009 -// --------------------------------------------------------------------------- - -#ifndef ACT_TokenAuthProtocolReg_h -#define ACT_TokenAuthProtocolReg_h - -#include "actFactoryReg.h" - -namespace act -{ - class ITokenAuthProtocol; - - typedef ITokenAuthProtocol* (*CreateTokenAuthProtocolPtr)(const char*); - typedef FactoryMapEntry TokenAuthProtocolMapEntry; - - typedef FactoryReg - < ITokenAuthProtocol, CreateTokenAuthProtocolPtr, TokenAuthProtocolMapEntry - > TokenAuthProtocolReg; - -} // namespace act - -#endif // ACT_TokenAuthProtocolReg_h diff --git a/actlibrary/SLES-10-i686/Release/include/actTokenBase.h b/actlibrary/SLES-10-i686/Release/include/actTokenBase.h deleted file mode 100644 index d31b0e7..0000000 --- a/actlibrary/SLES-10-i686/Release/include/actTokenBase.h +++ /dev/null @@ -1,200 +0,0 @@ -// --------------------------------------------------------------------------- -// Name: actTokenBase.h -// Product: cv act library -// Purpose: Declares common token enums and constants. -// -// Copyright: (c) 2010 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -// -// Autor: Markus Tesche -// Date: 03/24/2010 -// --------------------------------------------------------------------------- - -#ifndef ACT_TokenBase_h -#define ACT_TokenBase_h - -namespace act -{ - enum TokenError - { - TOKEN_SUCCESS = 0, - TOKEN_FUNCTION_NOT_SUPPORTED = -1, - TOKEN_FUNCTION_FAILED = -2, - TOKEN_LOCKED = -3 - }; - - enum TokenType - { - TOKEN_RSA = 0x0001, - TOKEN_DSA = 0x0002, - TOKEN_DH = 0x0004, - TOKEN_ECDSA = 0x0008, - TOKEN_ECDH = 0x0010, - TOKEN_SECRET = 0x0080, - - TOKEN_BAC = 0x0100, - TOKEN_EAC = 0x0200, - TOKEN_EPA = 0x0400, - }; - - enum TokenStatusCode - { - TOKEN_EMPTY = 0x0000, - TOKEN_INITIALIZED = 0x0001, - TOKEN_PERSONALIZED = 0x0002 - }; - - enum ProfileType - { - PROFILE_EMPTY = 0x00, - PROFILE_CV = 0x01, - PROFILE_CNS = 0x02, - PROFILE_GDO = 0x03, - PROFILE_CVEC = 0x04, - PROFILE_SIGG = 0x05, - PROFILE_JC = 0x06, - PROFILE_MICARDOEC = 0x07, - PROFILE_STARCOS = 0x08, - PROFILE_NETKEY = 0x09, - PROFILE_CVMOC = 0x0a, - - PROFILE_PKCS15 = 0x0f, - PROFILE_PKCS15_mEAC = 0x10, // includes PACE-Pin's - PROFILE_PKCS15_mEAC_TA = 0x11, // includes PACE-Pin's and TA-IS, TA-ST, TA-AT - - PROFILE_BAC = 0x80, - PROFILE_EAC = 0x81, - PROFILE_EAC201 = 0x82, - PROFILE_EPA = 0x83, - - PROFILE_PKCS11 = 0xa0, - PROFILE_CSP = 0xa1, - PROFILE_MD = 0xa2, - - PROFILE_ANY = 0xfe, - PROFILE_UNKNOWN = 0xff - }; - - // usage of key, pin - enum KeyUsage - { - KEY_EMPTY = 0x0000, - SIGN_DATA = 0x0001, - DEC_DATA = 0x0002, - AGREE_KEY = 0x0004, - AUTH_DATA = 0x0008, - BLOCKCIPHER_KEY = 0x0010, - VERIFY_DATA = 0x0020, - ENC_DATA = 0x0040, - UNLOCK_PIN = 0x0100, - UPDATE_BINARY = 0x0200, - DELETE_BINARY = 0x0400, - ALL_USAGE = 0xffff, - - // custom usage - SIGN_HASH = 0x00010000, - CUSTOM_USAGE_MASK = 0xffff0000, - - // combined usage - ENC_DEC_DATA = DEC_DATA | ENC_DATA, - SIGN_DEC_DATA = DEC_DATA | SIGN_DATA, - SIGN_HASH_DATA = SIGN_HASH | SIGN_DATA, - }; - - enum KeyType - { // NOTE: Never change (!), used for serialization. - KEY_UNKNOWN = 0xffff, - - KEY_RSA = 0x0000, - KEY_DSA = 0x0001, - KEY_DH = 0x0002, - KEY_ECDSA = 0x0003, - KEY_ECDH = 0x0004, - - KEY_SECRET = 0x0010, - KEY_DES = 0x0001 + KEY_SECRET, - KEY_2DES = 0x0002 + KEY_SECRET, - KEY_3DES = 0x0003 + KEY_SECRET, - KEY_AES = 0x0004 + KEY_SECRET, - - KEY_TYPE_MASK = 0x001f - }; - - enum CertificateType - { // NOTE: Never change (!), used for serialization. - CERT_UNKNOWN = 0xffff, - - CERT_X509 = 0x0000, - CERT_CV = 0x0001 - }; - - enum CertificateUsage - { - EMPTY_CERT = 0x0000, - SIGN_CERT = 0x0001, - DEC_CERT = 0x0002, - ROOT_CERT = 0x0004, - AUTH_CERT = 0x0008, - CA_CERT = 0x0010, - SMARTCARD_LOGON_CERT = 0x0100, // lib version >= 1.5 - UNSPECIFIED_CERT = 0xffff - }; - - enum SecStatus - { - SS_INVALID = 0x0000, - SS_AUTHENTICATED = 0x0001, - SS_UNKNOWN = 0xffff, - }; - - enum AUTH_OBJ_TYPE - { - AUTH_OBJ_PIN = 0xff, // -1 - AUTH_OBJ_BIOMETRIC = 0xfe, // -2 - }; - - typedef ulong IDType; - typedef ushort FIDType; - - const IDType ID_INVALID = 0; - const FIDType FID_INVALID = 0x0000; - - // - // FileInfo - struct FileInfo - { - explicit FileInfo(FIDType val_fid = FID_INVALID, IDType val_rec_nr = ID_INVALID) - : fid(val_fid) - , rec_nr(val_rec_nr) - { } - - FIDType fid; - IDType rec_nr; - }; - - // LengthInfo - struct LengthInfo - { - LengthInfo(ulong _minLen = 0, ulong _maxLen = 0, ulong _storedLen = 0) - : minLen(_minLen) - , maxLen(_maxLen) - , storedLen(_storedLen) - { } - - void swap(LengthInfo& other) - { - std::swap(minLen, other.minLen); - std::swap(storedLen, other.storedLen); - std::swap(maxLen, other.maxLen); - } - - ulong minLen; - ulong storedLen; - ulong maxLen; - }; - -} // namespace act - -#endif // ACT_TokenBase_h diff --git a/actlibrary/SLES-10-i686/Release/include/actTokenConfig.h b/actlibrary/SLES-10-i686/Release/include/actTokenConfig.h deleted file mode 100644 index 45844c1..0000000 --- a/actlibrary/SLES-10-i686/Release/include/actTokenConfig.h +++ /dev/null @@ -1,104 +0,0 @@ -// --------------------------------------------------------------------------- -// Name: actTokenConfig.h -// Product: cv act library -// Purpose: Declares all availabl param_id's for ITokenCofing. -// -// Copyright: (c) 2009 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -// -// Autor: Markus Tesche -// Date: 05/07/2009 -// --------------------------------------------------------------------------- - -#ifndef ACT_TokenConfig_h -#define ACT_TokenConfig_h - -#include "actMode.h" -#include "actIParam.h" - -namespace act -{ - // according to ISO 24727-3, definition of supported Data Set's - enum DataSetList - { - DATA_SET_NONE = 0, - DATA_SET_PUBLIC_DATA = (1 << 0), - DATA_SET_PRIVATE_DATA = (1 << 1), - DATA_SET_CERTIFICATES = (1 << 2), - DATA_SET_USEFUL_CERTIFICATES = (1 << 3), - DATA_SET_TRUSTED_CERTIFICATES = (1 << 4), - DATA_SET_TRUSTED_PUBLIC_KEYS = (1 << 5), - // - // ... - DATA_SET_NEXT = (1 << 6), - DATA_SET_MASK = DATA_SET_NEXT - 1, - DATA_SET_ALL = PARAM_INVALID_VALUE, - }; - - enum ObjectTypeList - { - OBJECT_TYPE_NONE = 0, - OBJECT_TYPE_KEY_DES = (1 << 0), - OBJECT_TYPE_KEY_2DES = (1 << 1), - OBJECT_TYPE_KEY_3DES = (1 << 2), - OBJECT_TYPE_KEY_AES = (1 << 3), - OBJECT_TYPE_KEY_RSA = (1 << 4), - OBJECT_TYPE_KEY_DSA = (1 << 5), - OBJECT_TYPE_KEY_DH = (1 << 6), - OBJECT_TYPE_KEY_ECC = (1 << 7), - OBJECT_TYPE_DATA = (1 << 8), - OBJECT_TYPE_CERTIFICATE = (1 << 9), - OBJECT_TYPE_USEFUL_CERTIFICATE = (1 << 10), - OBJECT_TYPE_TRUSTED_CERTIFICATE = (1 << 11), - OBJECT_TYPE_TRUSTED_PUBLIC_KEY = (1 << 12), - // - // Mark an object as private - OBJECT_TYPE_PRVIVATE = (1 << 13), - // - // ... - OBJECT_TYPE_NEXT = (1 << 14), - OBJECT_TYPE_MASK = OBJECT_TYPE_NEXT - 1, - OBJECT_TYPE_ALL = PARAM_INVALID_VALUE, - }; - - enum ObjectAttributeList - { - OBJECT_ATTR_LABEL_P = OBJECT_TYPE_NEXT, - OBJECT_ATTR_LABEL_P_PUB = OBJECT_ATTR_LABEL_P, - OBJECT_ATTR_LABEL_P_PRV = OBJECT_ATTR_LABEL_P | OBJECT_TYPE_PRVIVATE, - }; - - enum - { - TC_TYPE = TOKEN_CONFIG, - TC_HAS_TOKEN_CAPABILITIES, - TC_HAS_WRITABLE_AODF, - TC_IS_MOC_ENABLED, - TC_IS_MINIDRIVER_ENABLED, - TC_IS_PROFILE_ERASABLE, - TC_PINPAD_CHAR, - TC_DATA_SET_LIST, - TC_OBJECT_TYPE_LIST, - // - // Object naming - Label Prefix - TC_LABEL_P_PRV_DES = OBJECT_ATTR_LABEL_P_PRV + OBJECT_TYPE_KEY_DES, - TC_LABEL_P_PRV_2DES = OBJECT_ATTR_LABEL_P_PRV + OBJECT_TYPE_KEY_2DES, - TC_LABEL_P_PRV_3DES = OBJECT_ATTR_LABEL_P_PRV + OBJECT_TYPE_KEY_3DES, - TC_LABEL_P_PRV_AES = OBJECT_ATTR_LABEL_P_PRV + OBJECT_TYPE_KEY_AES, - TC_LABEL_P_PUB_RSA = OBJECT_ATTR_LABEL_P_PUB + OBJECT_TYPE_KEY_RSA, - TC_LABEL_P_PRV_RSA = OBJECT_ATTR_LABEL_P_PRV + OBJECT_TYPE_KEY_RSA, - TC_LABEL_P_PUB_ECC = OBJECT_ATTR_LABEL_P_PUB + OBJECT_TYPE_KEY_ECC, - TC_LABEL_P_PRV_ECC = OBJECT_ATTR_LABEL_P_PRV + OBJECT_TYPE_KEY_ECC, - TC_LABEL_P_PUB_DATA = OBJECT_ATTR_LABEL_P_PUB + OBJECT_TYPE_DATA, - TC_LABEL_P_PRV_DATA = OBJECT_ATTR_LABEL_P_PRV + OBJECT_TYPE_DATA, - TC_LABEL_P_PUB_CERTIFICATE = OBJECT_ATTR_LABEL_P_PUB + OBJECT_TYPE_CERTIFICATE, - TC_LABEL_P_PUB_USEFUL_CERTIFICATE = OBJECT_ATTR_LABEL_P_PUB + OBJECT_TYPE_USEFUL_CERTIFICATE, - TC_LABEL_P_PUB_TRUSTED_CERTIFICATE = OBJECT_ATTR_LABEL_P_PUB + OBJECT_TYPE_TRUSTED_CERTIFICATE, - TC_LABEL_P_PUB_TRUSTED_PUBLIC_KEY = OBJECT_ATTR_LABEL_P_PUB + OBJECT_TYPE_TRUSTED_PUBLIC_KEY, - }; - -} // namespace act - -#endif // ACT_TokenConfig_h diff --git a/actlibrary/SLES-10-i686/Release/include/actTokenExtensionKit.h b/actlibrary/SLES-10-i686/Release/include/actTokenExtensionKit.h deleted file mode 100644 index f087bdc..0000000 --- a/actlibrary/SLES-10-i686/Release/include/actTokenExtensionKit.h +++ /dev/null @@ -1,28 +0,0 @@ -// --------------------------------------------------------------------------- -// Name: actTokenExtensionKit.h -// Product: cv act library -// Purpose: Factory functions to create specific ITokenExtension objects. -// -// Copyright: (c) 2008 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -// -// Autor: Markus Tesche -// Date: 12/02/2008 -// --------------------------------------------------------------------------- - -#ifndef ACT_TokenExtensionKit_h -#define ACT_TokenExtensionKit_h - -namespace act -{ - class IToken; - class ITokenExtension; - - ITokenExtension* CreateMDProfileExt(const char* name, IToken*); // Minidriver - ITokenExtension* CreateEACTAwithCAPI(const char* name, IToken*); // EACv2-TA with CAPI - -} // namespace act - -#endif // ACT_TokenExtensionKit_h diff --git a/actlibrary/SLES-10-i686/Release/include/actTokenExtensionReg.h b/actlibrary/SLES-10-i686/Release/include/actTokenExtensionReg.h deleted file mode 100644 index f961078..0000000 --- a/actlibrary/SLES-10-i686/Release/include/actTokenExtensionReg.h +++ /dev/null @@ -1,34 +0,0 @@ -// --------------------------------------------------------------------------- -// Name: actTokenExtensionReg.h -// Product: cv act library -// Purpose: factory functions registry to create ITokenExtension objects. -// -// Copyright: (c) 2008 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -// -// Autor: Markus Tesche -// Date: 12/02/2008 -// --------------------------------------------------------------------------- - -#ifndef ACT_TokenExtensionReg_h -#define ACT_TokenExtensionReg_h - -#include "actFactoryReg.h" - -namespace act -{ - class IToken; - class ITokenExtension; - - typedef ITokenExtension* (*CreateTokenExtensionPtr)(const char*, IToken*); - typedef FactoryMapEntry TokenExtensionMapEntry; - - typedef FactoryReg - < ITokenExtension, CreateTokenExtensionPtr, TokenExtensionMapEntry - > TokenExtensionReg; - -} // namespace act - -#endif // ACT_TokenExtensionReg_h diff --git a/actlibrary/SLES-10-i686/Release/include/actTools.h b/actlibrary/SLES-10-i686/Release/include/actTools.h deleted file mode 100644 index c22c455..0000000 --- a/actlibrary/SLES-10-i686/Release/include/actTools.h +++ /dev/null @@ -1,93 +0,0 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actTools.h -// Product: cv act library -// Purpose: useful global functions -// -// Copyright: (c) 2000 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_Tools_h -#define ACT_Tools_h - -#include "actMode.h" -#include "actBlob.h" - -namespace act -{ - class IKey; - - // Functions for RSA public key and private key operation. - // Both functions return the plain result of the modular - // exponentiation using the public or private exponent. - // - // 1) Calculate m^e mod n, where e is the public exponent - Blob RSAPublicKeyOperation(IKey* rsa_key, const Blob& m); - // 2) Calculate c^d mod n, where d is the private exponent - Blob RSAPrivateKeyOperation(IKey* rsa_key, const Blob& c); - - - // Function for PKCS#3 Diffie-Hellman. - // The function initializes an act::IKey Diffie-Hellman key object - // from PKCS#3 DH parameters p and g (prime and generator). - void PKCS3DHKeyToDHKey(const Blob& prime, const Blob& generator, IKey *dhKey); - - - // Read pfx file and get private key - Blob getPKCS8Key(const Blob& pfx_data, const char* password); - // Read pfx file and get the own (user) certificate - Blob getOwnCertificateFromPfx(const Blob& pfx_data, const char* password); - - - // Function to encode an ASN1 object identifier in binary form - // example EncodeOID("0.2.262.1.10.1.3.8") = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x01, 0x03, 0x08 } - Blob EncodeOID(const char* oid); - - - // Converts a signed decimal number or hexadecimal number (with prefix "0x" / "-0x") - // into a Blob (Twos-Complement representation for negative numbers) - Blob EncodeNumber(const char* number); - Blob EncodeNumber(int number); - - - // CRC functions - - // CRC-16 (direct mode, no zero bit augmentation) - // - // Poly : 0x8005 (x^16 + x^15 + x^2 + 1) - // RefIn : True (bit reflection on the input bytes) - // RefOut : True (bit reflection on the final CRC value) - // XorOut : 0x0000 (no XOR on the returned CRC value) - unsigned long CalculateCRC16(const act::byte* message, size_t message_len, - unsigned long crc_init_value = 0x0000); - unsigned long CalculateCRC16(const act::Blob& message, - unsigned long crc_init_value = 0x0000); - - // CRC-16 CCIT (direct mode, no zero bit augmentation) - // - // Poly : 0x1021 (x^16 + x^12 + x^5 + 1) - // RefIn : False (no bit reflection on the input bytes) - // RefOut : False (no bit reflection on the final CRC value) - // XorOut : 0x0000 (no XOR on the returned CRC value) - unsigned long CalculateCRC16CCITT(const act::byte* message, size_t message_len, - unsigned long crc_init_value = 0xFFFF); - unsigned long CalculateCRC16CCITT(const act::Blob& message, - unsigned long crc_init_value = 0xFFFF); - - // CRC-32 (direct mode, no zero bit augmentation) - // - // Poly : 0x04C11DB7 (x^32 + x^26 + x^23 + x^22 + x^16 + x^12 + x^11 + ... - // ... + x^10 + x^8 + x^7 + x^5 + x^4 + x^2 + x^ + 1) - // RefIn : True (bit reflection on the input bytes) - // RefOut : True (bit reflection on the final CRC value) - // XorOut : 0xFFFFFFFF (XOR on the returned CRC value) - unsigned long CalculateCRC32(const act::byte* message, size_t message_len, - unsigned long crc_init_value = 0xFFFFFFFF); - unsigned long CalculateCRC32(const act::Blob& message, - unsigned long crc_init_value = 0xFFFFFFFF); - -} // namespace act - -#endif // ACT_Tools_h diff --git a/actlibrary/SLES-10-i686/Release/include/actToolsECC.h b/actlibrary/SLES-10-i686/Release/include/actToolsECC.h deleted file mode 100644 index 246b99f..0000000 --- a/actlibrary/SLES-10-i686/Release/include/actToolsECC.h +++ /dev/null @@ -1,99 +0,0 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actToolsECC.h -// Product: cv act library -// Purpose: useful ECC functions -// -// Copyright: (c) 2009 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_ToolsECC_h -#define ACT_ToolsECC_h - -#include "actMode.h" -#include "actBlob.h" -#include "actIKey.h" - -namespace act -{ - // Functions for ECC scalar multiplication, addition of points. - // Input points must be in ASN.1 point representation (uncompressed, - // compressed or hybrid). The output point will be in ASN.1 representation - // as indicated in 'output_format'. - // - // 1) Calculate s * Q, s unsigned in ASN.1 OCTET STRING representation - // (leading zeros will be ignored) - Blob ECMultiplyPoint(IKey* ec_key, const Blob& s, const Blob& Q, - int output_format = UNCOMPRESSED); - // 2) Calculate Q1 + Q2 - Blob ECAddPoints(IKey* ec_key, const Blob& Q1, const Blob& Q2, - int output_format = UNCOMPRESSED); - - - // Functions to encode an (EC-)DSA signature (r, s) in ASN1 format and backwards. - // - // 1) Plain signature I/O as string - // - for encode: r and s must be in hex notation - // - for decode: the user has to allocate r and s buffers - void EncodeSignature(const char* r, const char* s, Blob& signature_ASN1); - void DecodeSignature(const Blob& signature_ASN1, char* r, char* s); - // 2) Plain signature I/O as byte array (Blob) - // - r and s I/O in big endian representation - void EncodeSignature(const Blob& r, const Blob& s, Blob& signature_ASN1); - void DecodeSignature(const Blob& signature_ASN1, Blob& r, Blob& s); - // 3) Plain signature I/O as byte array (Blob) - // - r_s length even, left haft = r, right half = s - // - if order_bytes is non zero, decode output length is 2 * order_bytes - void EncodeSignature(const Blob& r_s, Blob& signature_ASN1); - void DecodeSignature(const Blob& signature_ASN1, Blob& r_s, size_t order_bytes = 0); - - - // Tools for elliptic curves over GF(P). - // The basepoint can be given by it's coordinates (Gx, Gy) or as - // COMPRESSED, UNCOMPRESSED or HYBRID octetstring G corresponding - // to ANSI X9.62/63 standard. - // By default, the basepoint will be encoded in UNCOMPRESSED format. - - Blob EncodePrimeCurveParam(const Blob& p, const Blob& a, const Blob& b, - const Blob& Gx, const Blob& Gy, const Blob& n, const Blob& h, - int output_type = UNCOMPRESSED); - - Blob EncodePrimeCurveParam(const Blob& p, const Blob& a, const Blob& b, - const Blob& G, const Blob& n, const Blob& h, int output_type = UNCOMPRESSED); - - // dto. for elliptic curves over GF(2^m), tri- or pentanomial basis. - - // tri- or pentanomial in hex presentation - Blob EncodeGF2CurveParam(const Blob& p, const Blob& a, const Blob& b, - const Blob& Gx, const Blob& Gy, const Blob& n, const Blob& h, - int output_type = UNCOMPRESSED); - - // tri- or pentanomial in hex presentation - Blob EncodeGF2CurveParam(const Blob& p, const Blob& a, const Blob& b, - const Blob& G, const Blob& n, const Blob& h, int output_type = UNCOMPRESSED); - - // f(t) = t^m + t^k + 1 - Blob EncodeTrinomialCurveParam(const int m, const int k, - const Blob& a, const Blob& b, const Blob& Gx, const Blob& Gy, - const Blob& n, const Blob& h, int output_type = UNCOMPRESSED); - - // f(t) = t^m + t^k + 1 - Blob EncodeTrinomialCurveParam(const int m, const int k, - const Blob& a, const Blob& b, const Blob& G, const Blob& n, - const Blob& h, int output_type = UNCOMPRESSED); - - // f(t) = t^m + t^k3 + t^k2 + t^k1 + 1 - Blob EncodePentanomialCurveParam(const int m, const int k3, const int k2, - const int k1, const Blob& a, const Blob& b, const Blob& Gx, const Blob& Gy, - const Blob& n, const Blob& h, int output_type = UNCOMPRESSED); - - // f(t) = t^m + t^k3 + t^k2 + t^k1 + 1 - Blob EncodePentanomialCurveParam(const int m, const int k3, const int k2, - const int k1, const Blob& a, const Blob& b, const Blob& G, - const Blob& n, const Blob& h, int output_type = UNCOMPRESSED); - -} // namespace act - -#endif // ACT_ToolsECC_h diff --git a/actlibrary/SLES-10-i686/Release/include/actToolsRSA.h b/actlibrary/SLES-10-i686/Release/include/actToolsRSA.h deleted file mode 100644 index b79c55b..0000000 --- a/actlibrary/SLES-10-i686/Release/include/actToolsRSA.h +++ /dev/null @@ -1,19 +0,0 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actToolsRSA.h -// Product: cv act library -// Purpose: useful RSA functions -// -// Copyright: (c) 2000 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_TOOLS_RSA_H -#define ACT_TOOLS_RSA_H - -#include "actTools.h" - -// TODO: MTE: Move all RSA functions from "actTools.h" to here! include inside "actTools.h" - -#endif // ACT_TOOLS_RSA_H diff --git a/actlibrary/SLES-10-i686/Release/include/actTypeTags.h b/actlibrary/SLES-10-i686/Release/include/actTypeTags.h deleted file mode 100644 index a844a0d..0000000 --- a/actlibrary/SLES-10-i686/Release/include/actTypeTags.h +++ /dev/null @@ -1,32 +0,0 @@ -// --------------------------------------------------------------------------- -// Name: actTypeTags.h -// Product: cv act library -// Purpose: TypeTag<> and usibility forward declarations. -// -// Copyright: (c) 2010 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -// -// Autor: Markus Tesche -// Date: 09/10/2010 -// --------------------------------------------------------------------------- - -#ifndef ACT_TypeTags_h -#define ACT_TypeTags_h - -namespace act -{ - // - // TypeTag<> - template - struct TypeTag { typedef TypeT Type; }; - - // - // CloneFactory<> - template - struct CloneFactory; - -} // namespace act - -#endif // ACT_TypeTags_h diff --git a/actlibrary/SLES-10-i686/Release/include/actX509Extension.h b/actlibrary/SLES-10-i686/Release/include/actX509Extension.h deleted file mode 100644 index 51f59f0..0000000 --- a/actlibrary/SLES-10-i686/Release/include/actX509Extension.h +++ /dev/null @@ -1,50 +0,0 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actX509Extension.h -// Product: cv act library -// Purpose: -// -// Copyright: (c) 2000 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_X509Extension_H -#define ACT_X509Extension_H - -#include "actBlob.h" - -namespace act -{ - class X509Extension - { - public: - X509Extension(); - X509Extension(const Blob& oid, const Blob& value, bool critflag); - X509Extension(const char* oid, const Blob& value, bool critflag); - - void GetOID(Blob& oid) const; - void GetOIDString(Blob& oid) const; - void SetOID(const Blob& oid); - void SetOIDString(const char* oid); - - void GetValue(Blob& value) const; - void SetValue(const Blob& value); - - bool IsCritical() const; - void SetCritical(bool crit = true); - - void GetDER(Blob& der) const; - void SetDER(const Blob& der); - - bool IsPresent() { return mValue.size() > 0; } - - private: - Blob mOID; - Blob mValue; - bool mCrit; - }; - -} // namespace act - -#endif // ACT_X509Extension_H diff --git a/actlibrary/SLES-10-i686/Release/include/actX509KeyReg.h b/actlibrary/SLES-10-i686/Release/include/actX509KeyReg.h deleted file mode 100644 index 619a17d..0000000 --- a/actlibrary/SLES-10-i686/Release/include/actX509KeyReg.h +++ /dev/null @@ -1,48 +0,0 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actX509KeyReg.h -// Product: cv act library -// Purpose: registry for factory functions in actX509Kit.h -// -// Copyright: (c) 2000 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_X509KeyReg_h -#define ACT_X509KeyReg_h - -namespace act -{ - class IKey; - class Blob; - - typedef IKey* (*CreateKeyPtr)(); - typedef void (*X509ToKeyPtr)(const Blob& pkinfo, IKey* key); - typedef void (*KeyToX509Ptr)(const IKey* key, Blob& pkinfo ); - - struct X509KeyMapEntry - { - const char* OID; - CreateKeyPtr CreatePtr; - X509ToKeyPtr X509ToKey; - KeyToX509Ptr KeyToX509; - }; - - class X509KeyReg - { - public: - static IKey* CreateX509Key(const Blob& pkInfo); - static void GetX509KeyInfo(const IKey* key, Blob& pkInfo); - - static CreateKeyPtr GetCreatePointer(const char* oid); - static const char* GetOID(void* createptr); - static const char* GetNextOID(const char* oid); - - static void Insert(const char* name, CreateKeyPtr createptr, X509ToKeyPtr x509tokey, KeyToX509Ptr keytox509); - static void Insert(const X509KeyMapEntry* keymap); - }; - -} // namespace act - -#endif // ACT_X509KeyReg_h diff --git a/actlibrary/SLES-10-i686/Release/include/actX509Kit.h b/actlibrary/SLES-10-i686/Release/include/actX509Kit.h deleted file mode 100644 index bb0affb..0000000 --- a/actlibrary/SLES-10-i686/Release/include/actX509Kit.h +++ /dev/null @@ -1,45 +0,0 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actX509Kit.h -// Product: cv act library -// Purpose: declaration of all factory functions -// -// Copyright: (c) 2000 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_X509Kit_h -#define ACT_X509Kit_h - -namespace act -{ - class Blob; - class IKey; - - void X509ToRSA(const Blob& pkinfo, IKey* key); - void RSAToX509(const IKey* key, Blob& pkinfo); - void RSAGetAlgID(const IKey* key, Blob& algid); - void RSASetAlgID(const Blob& algid, IKey* key ); - - void X509ToDSA(const Blob& pkinfo, IKey* key); - void DSAToX509(const IKey* key, Blob& pkinfo); - void DSAGetAlgID(const IKey* key, Blob& algid); - void DSASetAlgID(const Blob& algid, IKey* key ); - - void X509ToECDSA(const Blob& pkinfo, IKey* key); - void ECDSAToX509(const IKey* key, Blob& pkinfo); - void ECDSAGetAlgID(const IKey* key, Blob& algid); - void ECDSASetAlgID(const Blob& algid, IKey* key ); - - void X509ToDH(const Blob& pkinfo, IKey* key); - void DHToX509(const IKey* key, Blob& pkinfo); - void DHGetAlgID(const IKey* key, Blob& algid); - void DHSetAlgID(const Blob& algid, IKey* key ); - - void ECDHGetAlgID(const IKey* key, Blob& algid); - void ECDHSetAlgID(const Blob& algid, IKey* key ); - -} -#endif - diff --git a/actlibrary/SLES-10-i686/Release/include/actX509SignHashReg.h b/actlibrary/SLES-10-i686/Release/include/actX509SignHashReg.h deleted file mode 100644 index d4a01d5..0000000 --- a/actlibrary/SLES-10-i686/Release/include/actX509SignHashReg.h +++ /dev/null @@ -1,40 +0,0 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actX509SignHashReg.h -// Product: cv act library -// Purpose: registry for factory functions in actX509Kit.h -// -// Copyright: (c) 2000-2001 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_X509SignHashReg_h -#define ACT_X509SignHashReg_h - -namespace act -{ - class Blob; - - // ------------------------------------------------------------------------ - struct X509SignHashMapEntry { - const char* OID; - const char* HashAlg; - const char* SignAlg; - }; - - // ------------------------------------------------------------------------ - class X509SignHashReg - { - public: - static void GetOID(const char* algo, const char* sign_algo, Blob& algid); - static const char* GetHashAlg(const Blob& algid); - static const char* GetSignAlg(const Blob& algid); - static void Insert(const X509SignHashMapEntry* map); - - static const char* GetHashAlg(const Blob& algid, const char* sign_algo); // deprecated - }; - -} -#endif - diff --git a/actlibrary/SLES-10-i686/Release/include/actX509SignReg.h b/actlibrary/SLES-10-i686/Release/include/actX509SignReg.h deleted file mode 100644 index 74b48a2..0000000 --- a/actlibrary/SLES-10-i686/Release/include/actX509SignReg.h +++ /dev/null @@ -1,41 +0,0 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actX509SignReg.h -// Product: cv act library -// Purpose: registry for factory functions in actX509Kit.h -// -// Copyright: (c) 2000 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_X509SignReg_h -#define ACT_X509SignReg_h - -namespace act -{ - class IKey; - class Blob; - - typedef IKey* (*CreateKeyPtr)(); - typedef void (*GetX509AlgIDPtr)(const IKey* key, Blob& algid); - typedef void (*SetX509AlgIDPtr)(const Blob& algid, IKey* key); - - struct X509SignMapEntry { - CreateKeyPtr CreatePtr; - GetX509AlgIDPtr GetAlgID; - SetX509AlgIDPtr SetAlgID; - }; - - class X509SignReg - { - public: - static void GetAlgID(const IKey* key, Blob& algid); - static void SetAlgID(const Blob& algid, IKey* key); - - static void Insert(CreateKeyPtr createptr, GetX509AlgIDPtr getalgid, SetX509AlgIDPtr setalgid ); - static void Insert(const X509SignMapEntry* keymap); - }; -} -#endif - diff --git a/actlibrary/SLES-11-i686/Release/include/actAlgorithm.h b/actlibrary/SLES-11-i686/Release/include/actAlgorithm.h deleted file mode 100644 index 035471e..0000000 --- a/actlibrary/SLES-11-i686/Release/include/actAlgorithm.h +++ /dev/null @@ -1,73 +0,0 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actAlgorithm.h -// Product: cv act library -// Purpose: The class Algorithm generates algorithms for encryption and signing. -// The class Key defined these algorithms. By using this handle the -// necessary methods (e.g. hash-algorithms, verifying-primitiva, etc.) -// can be generated. -// -// Copyright: (c) 2000 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_Algorithm_h -#define ACT_Algorithm_h - -#include "actBasics.h" - -namespace act -{ - class IAlgorithm; - class IKey; - class Blob; - - class Algorithm - { - private: - Algorithm(const Algorithm&); - Algorithm &operator=(const Algorithm&); - - public: - Algorithm(IAlgorithm* alg); - Algorithm(const IKey* key, mode_t mode); - Algorithm(const IKey* key, mode_t mode, const Blob& data); - Algorithm(const char* name); - ~Algorithm(); - - void Write(const Blob& indata); - void Write(const byte* indata, size_t insize); - - void Finalize(); - - size_t Read(Blob& outdata, size_t max = 0); - size_t Read(byte* outbuffer, size_t buffersize); - - size_t GetAvailableSize() const; - status_t GetStatus() const; - - Algorithm& operator<<(const Blob& indata) { Write(indata); return *this; } - Algorithm& operator<<(Algorithm& (*manipulator)(Algorithm &alg)) { return manipulator(*this); } - Algorithm& operator>>(Blob& outdata) { Read(outdata); return *this; } - - operator IAlgorithm*(); - operator const IAlgorithm* () const; - IAlgorithm* GetPointer(); - const IAlgorithm* GetPointer() const; - - IAlgorithm* ReleasePointer(); - - private: - IAlgorithm* mAlg; - }; - - inline Algorithm& final(Algorithm& alg) - { - alg.Finalize(); - return alg; - } - -} // namespace act - -#endif // ACT_Algorithm_h diff --git a/actlibrary/SLES-11-i686/Release/include/actAllocator.h b/actlibrary/SLES-11-i686/Release/include/actAllocator.h deleted file mode 100644 index ce0bfb2..0000000 --- a/actlibrary/SLES-11-i686/Release/include/actAllocator.h +++ /dev/null @@ -1,107 +0,0 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actAllocator.h -// Product: cv act library -// Purpose: -// -// Copyright: (c) 2008 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -// -// Autor: Markus Tesche (MTE) -// Date: 09/29/2008 -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_Allocator_h -#define ACT_Allocator_h - -#include "actBasics.h" - -// -------------------------------------------------------------------------------- -namespace act -{ - // - // Allocator<> - template - class Allocator - { - public: - typedef SizeT size_type; - typedef TypeT value_type; - typedef value_type* pointer; - typedef value_type& reference; - typedef const value_type* const_pointer; - typedef const value_type& const_reference; - - protected: - typedef Allocator ThisT; - typedef pointer (*fptr_allocate)(ThisT*, size_type n, const void* hint); - typedef void (*fptr_deallocate)(ThisT*, pointer p, size_type n); - - private: - Allocator(const Allocator&); - Allocator& operator=(const Allocator&); - - protected: - Allocator(fptr_allocate pAllocate, fptr_deallocate pDeallocate) throw() - : m_pAllocate(pAllocate) - , m_pDeallocate(pDeallocate) - { } - - public: - inline pointer allocate(size_type n, const void* hint) - { - return m_pAllocate(this, n, hint); - } - - inline void deallocate(pointer p, size_type n) - { - if(p != 0) m_pDeallocate(this, p, n); - } - - protected: - fptr_allocate m_pAllocate; - fptr_deallocate m_pDeallocate; - }; - - // - // AllocatorImpl<> - template - < - class AllocatorT, - class BaseT = Allocator - > - class AllocatorImpl : public BaseT - { - public: - typedef typename BaseT::pointer pointer; - typedef typename BaseT::size_type size_type; - - protected: - typedef AllocatorImpl ThisT; - - public: - AllocatorImpl() throw() - : BaseT(_allocate, _deallocate) - { } - - AllocatorT& ref_alloc() { return m_Alloc; } - - private: - inline static pointer _allocate(BaseT* pThis, size_type n, const void* hint) - { - return static_cast(pThis)->m_Alloc.allocate(n, hint); - } - - inline static void _deallocate(BaseT* pThis, pointer p, size_type n) - { - static_cast(pThis)->m_Alloc.deallocate(p, n); - } - - private: - AllocatorT m_Alloc; - }; - -} // namespace act - -#endif // ACT_Allocator_h diff --git a/actlibrary/SLES-11-i686/Release/include/actBasics.h b/actlibrary/SLES-11-i686/Release/include/actBasics.h deleted file mode 100644 index 39057d6..0000000 --- a/actlibrary/SLES-11-i686/Release/include/actBasics.h +++ /dev/null @@ -1,93 +0,0 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actBasics.h -// Product: cv act library -// Purpose: integration of globally available identifiers -// -// Copyright: (c) 2000 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_Basics_h -#define ACT_Basics_h - -#include "actEnv.h" - -#ifndef ACT_LITTLE_ENDIAN -# define ACT_LITTLE_ENDIAN -#endif - -#if defined(__BIG_ENDIAN__) || \ - defined(__sun__) || \ - defined(__sparc) || \ - defined(__sparc__) || \ - defined(__ppc__) || \ - defined(__ppc64__) -# undef ACT_LITTLE_ENDIAN -#endif // __sun__ - - -#ifndef NO_STL_SUPPORT -# include // used for ptrdiff_t,size_t -#else -# ifndef _PTRDIFF_T_DEFINED - typedef int ptrdiff_t; -# define _PTRDIFF_T_DEFINED -# endif - - -# ifndef _SIZE_T_DEFINED - typedef unsigned int size_t; -# define _SIZE_T_DEFINED -# endif -#endif // NO_STL_SUPPORT - -namespace act -{ - typedef unsigned long ulong; - typedef unsigned int uint; - typedef unsigned short ushort; - typedef unsigned char uchar; - typedef unsigned char byte; - typedef unsigned short word; - typedef unsigned int dword; - -#if defined(_MSC_VER) & !defined(__MWERKS__) - using ::size_t; - using ::ptrdiff_t; -#else - using std::size_t; - using std::ptrdiff_t; -#endif - - typedef int paramid_t; - typedef int status_t; - typedef int mode_t; - typedef int export_t; - - typedef ushort uint16; - typedef uint uint32; -#if defined(__GNUC__) || defined(__MWERKS__) - typedef unsigned long long uint64; -# define U64(x) x##ULL -#else - //#ifdef _MSC_EXTENSIONS - typedef unsigned __int64 uint64; -# define U64(x) x##ui64 -#endif - -#if defined(__GNUC__) -# define GCC_VERSION (__GNUC__ * 10000 + __GNUC_MINOR__ * 100 + __GNUC_PATCHLEVEL__) -#endif - - const export_t DEFAULT = 0; - - // - // scoped_delete<> - template - struct scoped_delete { }; - -} // namespace act - -#endif // ACT_Basics_h diff --git a/actlibrary/SLES-11-i686/Release/include/actBlob.h b/actlibrary/SLES-11-i686/Release/include/actBlob.h deleted file mode 100644 index e42687d..0000000 --- a/actlibrary/SLES-11-i686/Release/include/actBlob.h +++ /dev/null @@ -1,644 +0,0 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actBlob.h -// Product: cv act library -// Purpose: The datatype Blob (Binary Large Object) is a universal type, which -// can be used for any data. The class Blob almost behaves like -// std::vector with the difference that freed memory -// is filled with zeros to enhance security. -// -// Copyright: (c) 2000 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_Blob_h -#define ACT_Blob_h - -#include "actMove.h" -#include "actBasics.h" -#include "actAllocator.h" - -#ifndef UNDER_CE_30 -# include -#endif // UNDER_CE_30 - -#ifndef NO_STL_SUPPORT -# include // used for reserve_iterator -# include // used for string -#else - // -------------------------------------------------------------------------------- - // if there is no STL support, we define reverse_iterator here. - // -------------------------------------------------------------------------------- - namespace std - { - // ITERATOR TAGS (from ) - struct input_iterator_tag {}; - struct output_iterator_tag {}; - struct forward_iterator_tag - : public input_iterator_tag {}; - struct bidirectional_iterator_tag - : public forward_iterator_tag {}; - struct random_access_iterator_tag - : public bidirectional_iterator_tag {}; - - // TEMPLATE CLASS iterator (from ) - template - struct iterator { - typedef _C iterator_category; - typedef _Ty value_type; - typedef _D distance_type; - }; - template - struct _Bidit : public iterator {}; - template - struct _Ranit : public iterator {}; - - // TEMPLATE CLASS iterator_traits (from ) - template - struct iterator_traits { - typedef _It::iterator_category iterator_category; - typedef _It::value_type value_type; - typedef _It::distance_type distance_type; - }; - - - // TEMPLATE CLASS reverse_iterator (from ) - template - class reverse_iterator : public _Ranit<_Ty, _D> { - public: - typedef reverse_iterator<_RI, _Ty, _Rt, _Pt, _D> _Myt; - typedef _RI iter_type; - typedef _Rt reference_type; - typedef _Pt pointer_type; - reverse_iterator() - {} - explicit reverse_iterator(_RI _X) - : current(_X) {} - _RI base() const - {return(current); } - _Rt operator*() const - {return(*(current - 1)); } - // _Pt operator->() const - // {return(&**this); } - _Myt& operator++() - {--current; - return(*this); } - _Myt operator++(int) - {_Myt _Tmp = *this; - --current; - return(_Tmp); } - _Myt& operator--() - {++current; - return(*this); } - _Myt operator--(int) - {_Myt _Tmp = *this; - ++current; - return(_Tmp); } - _Myt& operator+=(_D _N) - {current -= _N; - return(*this); } - _Myt operator+(_D _N) const - {return(_Myt(current - _N)); } - _Myt& operator-=(_D _N) - {current += _N; - return(*this); } - _Myt operator-(_D _N) const - {return(_Myt(current + _N)); } - _Rt operator[](_D _N) const - {return(*(*this + _N)); } - protected: - _RI current; - }; - template inline - bool __cdecl operator==( - const reverse_iterator<_RI, _Ty, _Rt, _Pt, _D>& _X, - const reverse_iterator<_RI, _Ty, _Rt, _Pt, _D>& _Y) - {return(get_base(_X) == get_base(_Y)); } - template inline - bool __cdecl operator!=( - const reverse_iterator<_RI, _Ty, _Rt, _Pt, _D>& _X, - const reverse_iterator<_RI, _Ty, _Rt, _Pt, _D>& _Y) - {return(!(_X == _Y)); } - template inline - bool __cdecl operator<( - const reverse_iterator<_RI, _Ty, _Rt, _Pt, _D>& _X, - const reverse_iterator<_RI, _Ty, _Rt, _Pt, _D>& _Y) - {return(get_base(_Y) < get_base(_X)); } - template inline - bool __cdecl operator>( - const reverse_iterator<_RI, _Ty, _Rt, _Pt, _D>& _X, - const reverse_iterator<_RI, _Ty, _Rt, _Pt, _D>& _Y) - {return(_Y < _X); } - template inline - bool __cdecl operator<=( - const reverse_iterator<_RI, _Ty, _Rt, _Pt, _D>& _X, - const reverse_iterator<_RI, _Ty, _Rt, _Pt, _D>& _Y) - {return(!(_Y < _X)); } - template inline - bool __cdecl operator>=( - const reverse_iterator<_RI, _Ty, _Rt, _Pt, _D>& _X, - const reverse_iterator<_RI, _Ty, _Rt, _Pt, _D>& _Y) - {return(!(_X < _Y)); } - template inline - _D __cdecl operator-( - const reverse_iterator<_RI, _Ty, _Rt, _Pt, _D>& _X, - const reverse_iterator<_RI, _Ty, _Rt, _Pt, _D>& _Y) - {return(get_base(_Y) - get_base(_X)); } - template inline - reverse_iterator<_RI, _Ty, _Rt, _Pt, _D> __cdecl operator+(_D _N, - const reverse_iterator<_RI, _Ty, _Rt, _Pt, _D>& _Y) - {return(reverse_iterator<_RI, _Ty, _Rt, _Pt, _D>( - get_base(_Y) - _N)); } - } // namespace std - -#endif //NO_STL_SUPPORT - -// -------------------------------------------------------------------------------- -namespace act -{ - // - // byte_array for fixed data - struct byte_array - { - const act::byte* value; - const size_t size; - }; - - inline byte_array make_array(const act::byte* value = 0, size_t size = 0) - { - const byte_array ba = { value, size }; - return ba; - }; - -#ifndef ACT_NO_BYTE_ARRAY_MACROS -# define _A(x) x.value, x.size -# define _B(x) act::make_array(reinterpret_cast(x), sizeof(x) - sizeof(x[0])) -# define _C(x) act::make_array(reinterpret_cast(x), sizeof(x)) -# define _H(x) { (const act::byte*) x, sizeof(x) - sizeof(x[0]) } -#endif - -#if(_MSC_VER >= 1300) - template - < - class _Ty, - class _Diff, - class _Pointer, - class _Reference, - class _Pointer2, - class _Reference2 - > - class _Ptrit : - public std::iterator - { // wrap pointer as random-access iterator - public: - typedef _Ptrit<_Ty, _Diff, _Pointer, _Reference, _Pointer2, _Reference2> _Myt; - - _Ptrit() - { // construct with uninitialized wrapped pointer - } - - _Ptrit(_Pointer _Ptr) : current(_Ptr) - { // construct wrapped pointer from _Ptr - } - - _Ptrit(const _Ptrit<_Ty, _Diff, _Pointer2, _Reference2, _Pointer2, _Reference2>& _Iter) - : current(_Iter.base()) - { // const converter or copy constructor - } - - _Pointer base() const - { // return wrapped pointer - return current; - } - - _Reference operator*() const - { // return designated value - return *current; - } - - _Pointer operator->() const - { // return pointer to class object - return &**this; - } - - _Myt& operator++() - { // preincrement - ++current; - return *this; - } - - _Myt operator++(int) - { // postincrement - _Myt _Tmp = *this; - ++current; - return _Tmp; - } - - _Myt& operator--() - { // predecrement - --current; - return *this; - } - - _Myt operator--(int) - { // postdecrement - _Myt _Tmp = *this; - --current; - return _Tmp; - } - - bool operator==(size_t _Right) const - { // test if wrapped pointer == integer (null pointer constant) - return current == (_Pointer) _Right; - } - - bool operator==(const _Myt& _Right) const - { // test for iterator equality - return current == _Right.current; - } - - bool operator!=(const _Myt& _Right) const - { // test for iterator inequality - return !(*this == _Right); - } - - _Myt& operator+=(_Diff _Off) - { // increment by integer - current += _Off; - return *this; - } - - _Myt operator+(_Diff _Off) const - { // return this + integer - return _Myt(current + _Off); - } - - _Myt& operator-=(_Diff _Off) - { // decrement by integer - current -= _Off; - return *this; - } - - _Myt operator-(_Diff _Off) const - { // return this - integer - return _Myt(current - _Off); - } - - _Reference operator[](_Diff _Off) const - { // subscript - return *(*this + _Off); - } - - bool operator<(const _Myt& _Right) const - { // test if this < _Right - return current < _Right.current; - } - - bool operator>(const _Myt& _Right) const - { // test if this > _Right - return _Right < *this; - } - - bool operator<=(const _Myt& _Right) const - { // test if this <= _Right - return !(_Right < *this); - } - - bool operator>=(const _Myt& _Right) const - { // test if this >= _Right - return !(*this < _Right); - } - - _Diff operator-(const _Myt& _Right) const - { // return difference of iterators - return current - _Right.current; - } - - protected: - _Pointer current; // the wrapped pointer - }; - -#endif // _MSC_VER >= 1300 - - // - // Blob - class Blob - { - protected: - struct flags - { - byte copy_on_write:1; - byte external_allocated:1; - - flags() throw() - : copy_on_write(0) - , external_allocated(0) - { } - }; - - public: - typedef Allocator _Alloc; - typedef _Alloc allocator_type; - typedef _Alloc::size_type size_type; - typedef _Alloc::value_type value_type; - typedef value_type* pointer; - typedef value_type& reference; - typedef const value_type* const_pointer; - typedef const value_type& const_reference; - typedef ptrdiff_t difference_type; - -#if(_MSC_VER >= 1300) - typedef _Ptrit - < value_type, difference_type, pointer, reference, pointer, reference - > iterator; - - typedef _Ptrit - < value_type, difference_type, const_pointer, const_reference, pointer, reference - > const_iterator; - - inline static pointer get_base(iterator it) { return it.base(); } - inline static const_pointer get_base(const_iterator it) { return it.base(); } - -#else - typedef byte* iterator; - typedef const byte* const_iterator; - - inline static pointer get_base(iterator it) { return it; } - inline static const_pointer get_base(const_iterator it) { return it; } - -#endif - -#if (_MSC_VER >= 1200) && (_MSC_VER < 1300) - typedef std::reverse_iterator - < iterator, value_type, reference, pointer, difference_type - > reverse_iterator; - - typedef std::reverse_iterator - < const_iterator, value_type, const_reference, const_pointer, difference_type - > const_reverse_iterator; - -#else - typedef std::reverse_iterator reverse_iterator; - typedef std::reverse_iterator const_reverse_iterator; - -#endif - // construct/copy/destroy - Blob(); - - explicit Blob(allocator_type* allocator); - explicit Blob(const char* str, allocator_type* allocator = dAllocator); - -#ifndef NO_STL_SUPPORT - explicit Blob(std::string& str, allocator_type* allocator = dAllocator); - explicit Blob(const std::string& str, allocator_type* allocator = dAllocator); -#endif // NO_STL_SUPPORT - - explicit Blob(const byte_array& ba, allocator_type* allocator = dAllocator); - explicit Blob(size_type n, byte v = byte(0), allocator_type* allocator = dAllocator); - - template - Blob(inputit f, inputit l, allocator_type* allocator = dAllocator) - : mFirst(0), mLast(0), mEnd(0), mAllocator(allocator) - { - insert(begin(), f, l); - } - - Blob(move_from other); - Blob(const Blob& other); - ~Blob(); - - Blob& operator=(const Blob& other); - Blob& operator=(move_from other); - - template - void assign(inputit f, inputit l) - { - erase(begin(), end()); - insert(begin(), f, l); - } - - void assign(const byte_array& ba); - void assign(size_type n, byte x = byte(0)); - - // capacity - bool empty() const { return size() == 0; } - size_type size() const { return mFirst == 0 ? 0 : mLast - mFirst; } - size_type capacity() const { return mFirst == 0 ? 0 : mEnd - mFirst; } - size_type max_size() const; - void reserve(size_type n); - void resize(size_type n, byte x = byte(0)); - - // iterators - iterator begin() { return mFirst; } - const_iterator begin() const { return const_iterator(mFirst); } - iterator end() { return mLast; } - const_iterator end() const { return const_iterator(mLast); } - reverse_iterator rbegin() { return reverse_iterator(end()); } - const_reverse_iterator rbegin() const { return const_reverse_iterator(end()); } - reverse_iterator rend() { return reverse_iterator(begin()); } - const_reverse_iterator rend() const { return const_reverse_iterator(begin()); } - - - // element access: - reference at(size_type p); - const_reference at(size_type p) const; - reference operator[](size_type p) { return *(begin() + p); } - const_reference operator[](size_type p) const { return *(begin() + p); } - - reference front() { return *begin(); } - const_reference front() const { return *begin(); } - reference back() { return *(end() - 1); } - const_reference back() const { return *(end() - 1); } - - // modifiers - void push_back(byte x) { insert(end(), x); } - void pop_back() { erase(end() - 1); } - - void insert(iterator p, size_type m, byte x); - iterator insert(iterator p, byte x = byte(0)); - - template - void insert(iterator p, inputit f, inputit l) - { - size_type m = 0; - _distance(f, l, m); - if(size_type(mEnd - mLast) < m) - { - size_type n = size(); - n = aligned_size(n + (m < n ? n : m)); - iterator s = allocate(n, (void*) 0); - iterator q = ucopy(mFirst, p, s); - q = ucopy(f, l, q); - ucopy(p, mLast, q); - _destroy(mFirst, mLast); - deallocate(get_base(mFirst), mEnd - mFirst); - mEnd = s + n; - mLast = s + size() + m; - mFirst = s; - } - else if(size_type(mLast - p) < m) - { - ucopy(p, mLast, p + m); - ucopy(f + (mLast - p), l, mLast); - copy(f, f + (mLast - p), p); - mLast += m; - } - else if(0 < m) - { - ucopy(mLast - m, mLast, mLast); - copy_backward(p, mLast - m, mLast); - copy(f, l, p); - mLast += m; - } - } - - Blob& append(const Blob& x) - { - insert(end(), x.begin(), x.end()); - return *this; - } - - Blob& append(size_type m, byte x) - { - insert(end(), m, x); - return *this; - } - - template - Blob& append(inputit f, inputit l) - { - insert(end(), f, l); - return *this; - } - - iterator erase(iterator p); - iterator erase(iterator f, iterator l); - void clear(); - void swap(Blob& x); - - // used by compare operators - bool _eq(const Blob& x) const; - bool _lt(const Blob& x) const; - - allocator_type* get_allocator() const { return mAllocator; } - static allocator_type* set_default_allocator(allocator_type* allocator) - { - std::swap(dAllocator, allocator); - return allocator; - } - - private: - template - outputit copy(inputit f, inputit l, outputit x) - { - for(; f != l; ++x, ++f) - *x = *f; - return x; - } - - iterator copy_backward(const_iterator f, const_iterator l, iterator x); - - template - outputit ucopy(inputit f, inputit l, outputit p) - { - for(; f != l; ++p, ++f) - construct(get_base(p), *f); - return p; - } - - void fill(iterator f, const_iterator l, byte x); - void ufill(iterator f, size_type n, byte x); - - size_type distance(const_iterator f, const_iterator l) const; - - template - void _distance(inputit f, inputit l, size_type& n) const - { - for(; f != l; ++f) - ++n; - } - - bool equal(const_iterator f, const_iterator l, const_iterator x) const; - bool lexicographical_compare(const_iterator f1, const_iterator l1, const_iterator f2, const_iterator l2) const; - - byte* allocate(size_type n, const void* hint); - void deallocate(pointer p, size_type n); - - void construct(byte* p, const_reference v) { *p = v; } - void destroy(byte* p) { *p = 0; } - - void _destroy(iterator f, iterator l); - - void outofrange() const; - - static size_type aligned_size(size_type size); - - protected: - flags mFlags; - iterator mFirst, mLast, mEnd; - allocator_type* mAllocator; - static allocator_type* dAllocator; - }; - -#ifndef UNDER_CE_30 - std::ostream &operator<<(std::ostream& os, const Blob& blob); -#endif // UNDER_CE_30 - - - // -------------------------------------------------------------------------------- - inline bool operator==(const Blob& x, const Blob&y) - { - return x._eq(y); - } - - inline bool operator!=(const Blob& x, const Blob&y) - { - return !(x._eq(y)); - } - - inline bool operator<(const Blob& x, const Blob&y) - { - return x._lt(y); - } - - inline bool operator>=(const Blob& x, const Blob&y) - { - return !(x._lt(y)); - } - - inline bool operator<=(const Blob& x, const Blob&y) - { - return x._eq(y) || x._lt(y); - } - - inline bool operator>(const Blob& x, const Blob&y) - { - return !(x._eq(y) || x._lt(y)); - } - -} // namespace act - -// -------------------------------------------------------------------------------- -namespace std -{ - // --------------------------------------------------------------------------- - inline void swap(act::Blob& left, act::Blob& right) { left.swap(right); } - -} // namespace std - -#endif // ACT_Blob_h diff --git a/actlibrary/SLES-11-i686/Release/include/actBlockCipherKit.h b/actlibrary/SLES-11-i686/Release/include/actBlockCipherKit.h deleted file mode 100644 index e89cc2a..0000000 --- a/actlibrary/SLES-11-i686/Release/include/actBlockCipherKit.h +++ /dev/null @@ -1,31 +0,0 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actBlockCipherKit.h -// Product: cv act library -// Purpose: declaration of all factory functions -// -// Copyright: (c) 2000 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_BlockCipherKit_h -#define ACT_BlockCipherKit_h - -namespace act -{ - class IBlockCipher; - - IBlockCipher* CreateDES(); - IBlockCipher* CreateTripleDES(); - IBlockCipher* CreateCAST128(); - IBlockCipher* CreateBlowFish(); - IBlockCipher* CreateTwoFish(); - IBlockCipher* CreateMars(); - IBlockCipher* CreateRijndael(); - IBlockCipher* CreateSerpent(); - IBlockCipher* CreateRC2(); - //IBlockCipher* CreateRC6(); -} -#endif - diff --git a/actlibrary/SLES-11-i686/Release/include/actBlockCipherModeKit.h b/actlibrary/SLES-11-i686/Release/include/actBlockCipherModeKit.h deleted file mode 100644 index ee2bd0a..0000000 --- a/actlibrary/SLES-11-i686/Release/include/actBlockCipherModeKit.h +++ /dev/null @@ -1,27 +0,0 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actBlockCipherModeKit.h -// Product: cv act library -// Purpose: declaration of all factory functions -// -// Copyright: (c) 2000 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - - -#ifndef ACT_BlockCipherModeKit_h -#define ACT_BlockCipherModeKit_h - -namespace act -{ - class IBlockCipherMode; - - IBlockCipherMode* CreateECBMode(); - IBlockCipherMode* CreateCBCMode(); - IBlockCipherMode* CreateCFBMode(); - IBlockCipherMode* CreateOFBMode(); - IBlockCipherMode* CreateCTRMode(); -} -#endif - diff --git a/actlibrary/SLES-11-i686/Release/include/actBlockCipherModeReg.h b/actlibrary/SLES-11-i686/Release/include/actBlockCipherModeReg.h deleted file mode 100644 index 6ce7d63..0000000 --- a/actlibrary/SLES-11-i686/Release/include/actBlockCipherModeReg.h +++ /dev/null @@ -1,40 +0,0 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actBlockCipherModeReg.h -// Product: cv act library -// Purpose: registry for factory functions in actBlockCipherModeKit.h -// -// Copyright: (c) 2000 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_BlockCipherModeReg_h -#define ACT_BlockCipherModeReg_h - -namespace act -{ - class IBlockCipherMode; - - typedef IBlockCipherMode* (*CreateBlockCipherModePtr)(); - - struct BlockCipherModeMapEntry - { - const char* Name; - CreateBlockCipherModePtr CreatePtr; - }; - - class BlockCipherModeReg - { - public: - static IBlockCipherMode* CreateBlockCipherMode(const char* name); - static CreateBlockCipherModePtr GetCreatePointer(const char* name); - static const char* GetName(void* createptr); - static const char* GetNextName(const char* name); - static void Insert(const char* name, CreateBlockCipherModePtr createptr); - static void Insert(const BlockCipherModeMapEntry* map); - }; - -} // namespace act - -#endif // ACT_BlockCipherModeReg_h diff --git a/actlibrary/SLES-11-i686/Release/include/actBlockCipherReg.h b/actlibrary/SLES-11-i686/Release/include/actBlockCipherReg.h deleted file mode 100644 index 7f96a90..0000000 --- a/actlibrary/SLES-11-i686/Release/include/actBlockCipherReg.h +++ /dev/null @@ -1,39 +0,0 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actBlockCipherReg.h -// Product: cv act library -// Purpose: registry for factory functions in actBlockCipherKit.h -// -// Copyright: (c) 2000 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_BlockCipherReg_h -#define ACT_BlockCipherReg_h - -namespace act -{ - class IBlockCipher; - - typedef IBlockCipher* (*CreateBlockCipherPtr)(); - - struct BlockCipherMapEntry { - const char* Name; - CreateBlockCipherPtr CreatePtr; - }; - - class BlockCipherReg - { - public: - static IBlockCipher* CreateBlockCipher(const char* name); - static CreateBlockCipherPtr GetCreatePointer(const char* name); - static const char* GetName(void* createptr); - static const char* GetNextName(const char* name); - static void Insert(const char* name,CreateBlockCipherPtr createptr); - static void Insert(const BlockCipherMapEntry* map); - }; -} - -#endif - diff --git a/actlibrary/SLES-11-i686/Release/include/actCRL.h b/actlibrary/SLES-11-i686/Release/include/actCRL.h deleted file mode 100644 index 9922439..0000000 --- a/actlibrary/SLES-11-i686/Release/include/actCRL.h +++ /dev/null @@ -1,68 +0,0 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actCRL.h -// Product: cv act library -// Purpose: -// -// Copyright: (c) 2000 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_CRL_h -#define ACT_CRL_h -#include "actBasics.h" - -namespace act -{ - class IKey; - class Blob; - class ICertificate; - class ICRL; - class CRL - { - public: - CRL(const char* type); - CRL(const char* type, const Blob& crlblob); - CRL(const CRL& crl); - - void SetParam(paramid_t id,const Blob& blob); - void SetParam(paramid_t id,int val); - void SetParam(paramid_t id,const char* cstr); - void GetParam(paramid_t id,Blob& blob) const; - int GetParam(paramid_t) const; - - void Import(const Blob& crl); - void Export(Blob& crl) const; - - void Revoke(const ICertificate* cert); - bool IsRevoked(const ICertificate* Cert) const; - void RemoveRevokation(const ICertificate* cert); - - void Revoke(const Blob& blob); - bool IsRevoked(const Blob& blob) const; - void RemoveRevokation(const Blob& blob); - - void Sign(const IKey* privkey); - int Verify(const IKey* pubkey) const; - - const ICRL* GetPointer() const; - ICRL* GetPointer(); - - operator const ICRL* () const; - operator ICRL* (); - - - ICRL* ReleasePointer(); - - CRL& operator= (const CRL& crl); - - ~CRL(); - private: - ICRL* mCRL; - }; - -}; // namespace act - -#endif - diff --git a/actlibrary/SLES-11-i686/Release/include/actCertificate.h b/actlibrary/SLES-11-i686/Release/include/actCertificate.h deleted file mode 100644 index f8d063b..0000000 --- a/actlibrary/SLES-11-i686/Release/include/actCertificate.h +++ /dev/null @@ -1,67 +0,0 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actCertificate.h -// Product: cv act library -// Purpose: The concrete class Certificate enables direct access to a certificate, -// e.g. its public key and the corresponding validity. -// -// Copyright: (c) 2000 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_Certificate_h -#define ACT_Certificate_h - -#include "actBasics.h" - -namespace act -{ - class IKey; - class Blob; - class ICertificate; - - class Certificate - { - public: - Certificate(); - Certificate(const char* type); - Certificate(const char* type, const Blob& certblob); - Certificate(const Certificate& cert); - - void SetParam(paramid_t id, const Blob& blob); - void SetParam(paramid_t id, int val); - void SetParam(paramid_t id, const char* cstr); - void GetParam(paramid_t id, Blob& blob) const; - int GetParam(paramid_t id) const; - - void Import(const Blob& certblob); - void Export(Blob& certblob) const; - - void SetPublicKey(const IKey* pubkey); - IKey* CreatePublicKey(const char* = 0) const; - - void Sign(const IKey* privkey); - int Verify(const IKey* pubkey) const; - - const ICertificate* GetPointer() const; - ICertificate* GetPointer(); - - operator const ICertificate*() const; - operator ICertificate*(); - - ICertificate* ReleasePointer(); - - Certificate& operator=(const Certificate& cert); - Certificate& Reset(ICertificate* cert); - Certificate& Required(const char* where = 0); - - ~Certificate(); - - private: - ICertificate* mCert; - }; - -}; // namespace act - -#endif // ACT_Certificate_h diff --git a/actlibrary/SLES-11-i686/Release/include/actCertificateKit.h b/actlibrary/SLES-11-i686/Release/include/actCertificateKit.h deleted file mode 100644 index 9387a39..0000000 --- a/actlibrary/SLES-11-i686/Release/include/actCertificateKit.h +++ /dev/null @@ -1,28 +0,0 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actCertificateKit.h -// Product: cv act library -// Purpose: declaration of all factory functions -// -// Copyright: (c) 2000 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_CERTIFICATEKIT_H -#define ACT_CERTIFICATEKIT_H - -namespace act -{ - class ICertificate; - class ICRL; - class ICVCertRequest; - - ICertificate* CreateX509Certificate(); - ICRL* CreateX509CRL(); - - ICertificate* CreateCVCertificate(); - ICVCertRequest* CreateCVCertRequest(); -} -#endif - diff --git a/actlibrary/SLES-11-i686/Release/include/actCertificateReg.h b/actlibrary/SLES-11-i686/Release/include/actCertificateReg.h deleted file mode 100644 index afd7a75..0000000 --- a/actlibrary/SLES-11-i686/Release/include/actCertificateReg.h +++ /dev/null @@ -1,56 +0,0 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actCertificateReg.h -// Product: cv act library -// Purpose: -// -// Copyright: (c) 2000 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_CERTIFICATEREG_H -#define ACT_CERTIFICATEREG_H - -namespace act -{ - class ICertificate; - class ICRL; - - typedef ICertificate* (*CreateCertificatePtr)(); - typedef ICRL* (*CreateCRLPtr)(); - - struct CertificateMapEntry { - const char* Name; - CreateCertificatePtr CreatePtr; - }; - - struct CRLMapEntry { - const char* Name; - CreateCRLPtr CreatePtr; - }; - - class CertificateReg - { - public: - static ICertificate* CreateCertificate(const char* name); - static CreateCertificatePtr GetCreatePointer(const char* name); - static const char* GetName(void* createptr); - static const char* GetNextName(const char* name); - static void Insert(const char* name, CreateCertificatePtr createptr); - static void Insert(const CertificateMapEntry* certmap); - }; - - class CRLReg - { - public: - static ICRL* CreateCRL(const char* name); - static CreateCRLPtr GetCreatePointer(const char* name); - static const char* GetName(void* createptr); - static const char* GetNextName(const char* name); - static void Insert(const char* name, CreateCRLPtr createptr); - static void Insert(const CRLMapEntry* certmap); - }; -} -#endif - diff --git a/actlibrary/SLES-11-i686/Release/include/actDate.h b/actlibrary/SLES-11-i686/Release/include/actDate.h deleted file mode 100644 index 5d08c74..0000000 --- a/actlibrary/SLES-11-i686/Release/include/actDate.h +++ /dev/null @@ -1,109 +0,0 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actDate.h -// Product: cv act library -// Purpose: The Date function used in act Library -// -// Copyright: (c) 2000 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_Date_h -#define ACT_Date_h - -#include "actBasics.h" - -#if defined(ACT_POSIX) -# include -#endif - -namespace act -{ - class Blob; - - class Date - { - public: - Date(); //today - Date(int day, int month ,int year); - Date(int day, int month, int year, int hour, int minute, int sec); - Date(const Blob& der); - - Date(const unsigned char* ch, const unsigned int size); - - Date& SetToday(); - - int GetDay() const { return m_day; } - int GetMonth() const { return m_month; } - int GetYear() const { return m_year; } - int GetHour() const { return m_hour; } - int GetMinute() const { return m_min; } - int GetSecond() const { return m_sec; } - - void IgnoreTime(bool b); // ignore time(hour, min,sec) in the operators - const Date& operator=(const Date&); - bool operator>(const Date&) const; - bool operator>=(const Date&) const; - bool operator<(const Date&) const; - bool operator<=(const Date&) const; - bool operator==(const Date&) const; - bool operator!=(const Date&) const; - - const Date& AddMonths(int m); - const Date& SubMonths(int m); - const Date& AddYears(int y); - const Date& SubYears(int y); - const Date& AddDays(int d); - const Date& SubDays(int d); - const Date& AddHours(int h); - const Date& SubHours(int h); - const Date& AddMinutes(int m); - const Date& SubMinutes(int m); - const Date& AddSecond(int m); - const Date& SubSecond(int m); - - int DayOfWeek() const; // 0:Sunday, 1=Monday ... 6=Saturday - int IsLeap(int y) const; // 1:leapyear, 0:else - int DaysPerMonth(int m, int y) const; - long GetDifference(const Date& d2) const; - - long GetJulian() const; - long GetJulian(int d, int m, int y) const; - void ConvertFromJulian(long jd, int& d, int& m, int& y); - - Blob Encode() const; - size_t Encode(Blob& encoded) const; - - Blob EncodeToGeneralizedTime() const; - Blob GetGeneralizedTimeString() const; - Blob GetLocalTimeString() const; // fixed format: "DD/MM/YYYY HH:MM:SS" - - operator Blob() const; - - int GetDayFromWeekDay (int weekday, int year, int month, int which); - -#if defined(ACT_POSIX) - static void copyDatetm(act::Date a, struct tm& b); - static void copytmDate(struct tm a, act::Date& b); -#endif - - private: - Date& SetYear(int year) { m_year = year; return *this; } - Date& SetMonth(int month) { m_month = month; return *this; } - Date& SetDay(int day) { m_day = day; return *this; } - Date& SetHour(int hour) { m_hour = hour; return *this; } - Date& SetMinute(int minute) { m_min = minute; return *this; } - Date& SetSecond(int sec) { m_sec = sec; return *this; } - bool IsValid() const; - void AdjustDays(); - - private: - int m_day, m_month, m_year; - int m_hour, m_min, m_sec; - bool m_ignore_time; - }; - -} // namespace act - -#endif // ACT_Date_h diff --git a/actlibrary/SLES-11-i686/Release/include/actDebug.h b/actlibrary/SLES-11-i686/Release/include/actDebug.h deleted file mode 100644 index 623c00a..0000000 --- a/actlibrary/SLES-11-i686/Release/include/actDebug.h +++ /dev/null @@ -1,295 +0,0 @@ -////////////////////////////////////////////////////////////////////////// -// Name: actDebug.h -// Product: cv act library -// Purpose: Integration of globally available debug macros and functions -// -// Copyright: (c) 2005 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -// -// Autor: Markus Tesche (MTE) -// Date: 12/15/2005 -////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_Debug_h -#define ACT_Debug_h - -#include "actEnv.h" -#include "actBasics.h" -#include "actException.h" - -// -// ACT_NOOP use for semicolon terminated non operating macros. -#ifdef _MSC_VER -# if _MSC_VER >= 1210 -# define ACT_NOOP __noop -# else -# define ACT_NOOP ((void) 0) -# endif -// MSVC specific -# if !defined(DEBUG_NEW) -# if defined(_DEBUG) && !defined(_WIN32_WCE) -# include -# define DEBUG_NEW new(_NORMAL_BLOCK, __FILE__, __LINE__) -# else -# define DEBUG_NEW new -# endif -# endif -#else -# define ACT_NOOP ((void) 0) -# define DEBUG_NEW new -#endif - -// -// Declare all debug macros for release builds. -#ifdef _DEBUG -# ifdef UNDER_CE -# define ACT_ASSERT ACT_NOOP -# define ACT_ASSERT_ALWAYS(m, l, f) ACT_NOOP -# endif -# define ACT_DEBUG 1 -# define ACT_DEBUG_PARAM(p) p -# define ACT_DEBUG_SOURCE() act::FileAndLine(__FILE__, __LINE__) -# define ACT_NOT_IMPLEMENTED(m, w) throw act::NotImplementedException(m, w) << ACT_DEBUG_SOURCE() -#else -# define ACT_DEBUG 0 -# define ACT_DEBUG_SOURCE() act::FileAndLine() -# define ACT_NOT_IMPLEMENTED(m, w) throw act::NotImplementedException(m, w) -# if defined(_MSC_VER) && _MSC_VER < 1210 -# define ACT_DEBUG_PARAM(p) p -# define ACT_TRACE ACT_NOOP -# define ACT_TRACELOG ACT_NOOP -# define ACT_ASSERT ACT_NOOP -# else -# define ACT_DEBUG_PARAM(p) -# define ACT_TRACE(...) ACT_NOOP -# define ACT_TRACELOG(...) ACT_NOOP -# define ACT_ASSERT(e) ACT_NOOP -# endif -# define ACT_ASSERT_ALWAYS(m, l, f) ACT_NOOP -# define ACT_ASSERT_ON_THROW(m) ACT_NOOP -#endif // _DEBUG - -// -// ACT_ASSERT -#ifndef ACT_ASSERT -# if defined(_MSC_VER) -# include -# define ACT_ASSERT _ASSERTE -# else -# include -# define ACT_ASSERT assert -# endif -#endif // ACT_ASSERT - -// -// ACT_ASSERT_ALWAYS -#ifndef ACT_ASSERT_ALWAYS -# if defined(_MSC_VER) -# include -# define ACT_ASSERT_ALWAYS(m, f, l) _RPT_BASE((_CRT_ASSERT, f, l, 0, m)) -# else -# include -# define ACT_ASSERT_ALWAYS(m, f, l) assert(f == 0) -# endif -#endif // ACT_ASSERT_ALWAYS - -// -// ACT_ASSERT_ON_THROW -#ifndef ACT_ASSERT_ON_THROW -namespace act -{ - class CheckForNoThrow : public FileAndLine - { - public: - CheckForNoThrow(const char* msg, const char* file = 0, int line = 0) - : FileAndLine(file, line) - , m_msg(msg) - { } - - ~CheckForNoThrow() - { - const bool uc = ::std::uncaught_exception(); - if(uc == true) ACT_ASSERT_ALWAYS(m_msg, file(), line()); - } - - private: - const char* m_msg; - }; - -} // namespace act - -#define ACT_ASSERT_ON_THROW(m) act::CheckForNoThrow __dbg_check_for_nothrow(m, __FILE__, __LINE__) -#endif // ACT_ASSERT_ON_THROW - -// -// ACT_ENABLE_TRACE -#ifdef ACT_ENABLE_TRACE -# ifdef ACT_TRACE -# undef ACT_TRACE -# endif -# ifdef ACT_TRACELOG -# undef ACT_TRACELOG -# endif -#endif - -// -// ACT_TRACE -#ifndef ACT_TRACE - -#ifndef ACT_TRACE_BUFFER -#define ACT_TRACE_BUFFER 1024 -#endif - -#include -#include -#include - -#if defined(ACT_WIN32) || defined(ACT_WIN32_WCE) -#include - -namespace act -{ - struct Trace - { - void __cdecl operator()(const char* pFormat, va_list ptr, const char* pFileName = 0, int nLine = 0) const - { - char szBuf[ACT_TRACE_BUFFER] = {'\0'}; - int nLen = 0; - - if(pFileName != 0) { - int nTemp = _snprintf(szBuf + nLen, ACT_TRACE_BUFFER - nLen, "%s(%d) : ", pFileName, nLine); - if(nTemp < 0) - nLen = ACT_TRACE_BUFFER; - else nLen += nTemp; - } - - _vsnprintf(szBuf + nLen, ACT_TRACE_BUFFER - nLen, pFormat, ptr); - szBuf[ACT_TRACE_BUFFER - 1] = 0; -#ifndef UNDER_CE - ::OutputDebugStringA(szBuf); -#else - { - wchar_t wtmp[ACT_TRACE_BUFFER]; - mbstowcs(wtmp, szBuf, ACT_TRACE_BUFFER); - ::OutputDebugStringW(wtmp); - } -#endif - } - }; - -} // namespace act - -#elif defined(ACT_POSIX) -#include - -namespace act -{ - struct Trace - { - void operator()(const char* pFormat, va_list ptr, const char* pFileName = 0, int nLine = 0) const - { - char szBuf[ACT_TRACE_BUFFER] = {'\0'}; - int nLen = 0; - - if(pFileName != 0) { - int nTemp = snprintf(szBuf + nLen, ACT_TRACE_BUFFER - nLen, "%s(%d) : ", pFileName, nLine); - if(nTemp < 0) - nLen = ACT_TRACE_BUFFER; - else nLen += nTemp; - } - - vsnprintf(szBuf + nLen, ACT_TRACE_BUFFER - nLen, pFormat, ptr); - szBuf[ACT_TRACE_BUFFER - 1] = 0; - - syslog(LOG_DEBUG, "%s", szBuf); - } - }; - -} // namespace act - -#else -# error act::Trace not implemented for this platform - -#endif - -// -// act::TraceFileAndLine -namespace act -{ - class TraceFileAndLine : public FileAndLine - { - public: - TraceFileAndLine() { } - TraceFileAndLine(const FileAndLine& fl) : FileAndLine(fl) { } - TraceFileAndLine(const char * file, int line) : FileAndLine(file, line) { } - - inline void setFileAndLine(const FileAndLine* fl) - { - if(fl != 0) *static_cast(this) = *fl; - } - - inline TraceFileAndLine& operator<<(const FileAndLine& fl) - { - *static_cast(this) = fl; - return *this; - } - - // - // default va_list based trace. - void operator()(const char* pFormat, ...) - { - va_list ptr; va_start(ptr, pFormat); - Trace()(pFormat, ptr, file(), line()); - va_end(ptr); - } - - // - // Exception trace. - void operator()(const Exception& e) - { - setFileAndLine(dynamic_cast(&e)); - switch(e.GetId()) - { - case eiNoSuchAlgorithmException: - (*this)("%s['0x%08x', '%&s', '%s', '%s']\n", - typeid(e).name(), - static_cast(e).algorithm(), - e.code(), e.what(), e.where()); - break; - - default: - (*this)("%s['0x%08x', '%s', '%s']\n", - typeid(e).name(), e.code(), e.what(), e.where()); - } - } - - void operator()(const Exception& e, const char* pName) - { - setFileAndLine(dynamic_cast(&e)); - switch(e.GetId()) - { - case eiNoSuchAlgorithmException: - (*this)("%s : %s['0x%08x', '%s', '%s', '%s']\n", pName, - typeid(e).name(), - e.code(), - static_cast(e).algorithm(), - e.what(), e.where()); - break; - - default: - (*this)("%s : %s['0x%08x', '%s', '%s']\n", pName, - typeid(e).name(), - e.code(), e.what(), e.where()); - } - } - }; - -} // namespace act - -#define ACT_TRACE act::TraceFileAndLine(__FILE__, __LINE__) -#define ACT_TRACELOG act::TraceFileAndLine() - -#endif // ACT_TRACE -#endif // ACT_Debug_h diff --git a/actlibrary/SLES-11-i686/Release/include/actDefaultRNG.h b/actlibrary/SLES-11-i686/Release/include/actDefaultRNG.h deleted file mode 100644 index 6d44af6..0000000 --- a/actlibrary/SLES-11-i686/Release/include/actDefaultRNG.h +++ /dev/null @@ -1,24 +0,0 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actDefaultRNG.h -// Product: cv act library -// Purpose: actDefaultRNG.h provides defaults for the class IRNGAlg. -// -// Copyright: (c) 2000 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_DefaultRNG_h -#define ACT_DefaultRNG_h -namespace act -{ - class IRNGAlg; - typedef IRNGAlg* (*CreateRNGPtr)(); - - extern CreateRNGPtr CreateFastRNG; - extern CreateRNGPtr CreateStrongRNG; -} - -#endif - diff --git a/actlibrary/SLES-11-i686/Release/include/actDerivatorKit.h b/actlibrary/SLES-11-i686/Release/include/actDerivatorKit.h deleted file mode 100644 index 8339d09..0000000 --- a/actlibrary/SLES-11-i686/Release/include/actDerivatorKit.h +++ /dev/null @@ -1,27 +0,0 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actDerivatorKit.h -// Product: cv act library -// Purpose: declaration of all factory functions -// -// Copyright: (c) 2006 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_DerivatorKit_h -#define ACT_DerivatorKit_h - -namespace act -{ - class IDerivator; - class Blob; - - IDerivator* CreateKDF1(); - IDerivator* CreateX963KDF(); - IDerivator* CreatePBKDF1(); - IDerivator* CreatePBKDF2(); - IDerivator* CreateEACKDF(); -} -#endif - diff --git a/actlibrary/SLES-11-i686/Release/include/actDerivatorReg.h b/actlibrary/SLES-11-i686/Release/include/actDerivatorReg.h deleted file mode 100644 index 32fe672..0000000 --- a/actlibrary/SLES-11-i686/Release/include/actDerivatorReg.h +++ /dev/null @@ -1,41 +0,0 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actDerivatorReg.h -// Product: cv act library -// Purpose: registry for the factory functions in actDerivatorKit.h -// -// Copyright: (c) 2000 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_DerivatorReg_h -#define ACT_DerivatorReg_h - -namespace act -{ - class IDerivator; - class Blob; - - typedef IDerivator* (*CreateDerivatorPtr)(); - - struct DerivatorMapEntry - { - const char* Name; - CreateDerivatorPtr CreatePtr; - }; - - class DerivatorReg - { - public: - static IDerivator* CreateDerivator(const char* name); - static CreateDerivatorPtr GetCreatePointer(const char* name); - static const char* GetName(void* createptr); - static const char* GetNextName(const char* name); - static void Insert(const char* name, CreateDerivatorPtr createptr); - static void Insert(const DerivatorMapEntry* derivatormap); - }; - -} // namespace act - -#endif // ACT_DerivatorReg_h diff --git a/actlibrary/SLES-11-i686/Release/include/actEMSAKit.h b/actlibrary/SLES-11-i686/Release/include/actEMSAKit.h deleted file mode 100644 index 460f614..0000000 --- a/actlibrary/SLES-11-i686/Release/include/actEMSAKit.h +++ /dev/null @@ -1,28 +0,0 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actEMSAKit.h -// Product: cv act library -// Purpose: declaration of all factory functions -// -// Copyright: (c) 2000 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_EMSAKit_h -#define ACT_EMSAKit_h - -namespace act -{ - class IEMSAAlg; - - IEMSAAlg* CreateEMSA1(); - IEMSAAlg* CreatePKCS1V1_5EMSA(); - IEMSAAlg* CreateTLS_EMSA(); - IEMSAAlg* CreatePKCS1_PSS_EMSA(); - - IEMSAAlg* CreateDummyEMSA(); - -} -#endif - diff --git a/actlibrary/SLES-11-i686/Release/include/actEMSAReg.h b/actlibrary/SLES-11-i686/Release/include/actEMSAReg.h deleted file mode 100644 index c5e92f0..0000000 --- a/actlibrary/SLES-11-i686/Release/include/actEMSAReg.h +++ /dev/null @@ -1,40 +0,0 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actEMSAReg.h -// Product: cv act library -// Purpose: registry for factory functions in actEMSAKit.h -// -// Copyright: (c) 2000 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_EMSAReg_h -#define ACT_EMSAReg_h - -namespace act -{ - class IEMSAAlg; - - typedef IEMSAAlg* (*CreateEMSAPtr)(); - - struct EMSAMapEntry - { - const char* Name; - CreateEMSAPtr CreatePtr; - }; - - class EMSAReg - { - public: - static IEMSAAlg* CreateEMSAAlg(const char* name); - static CreateEMSAPtr GetCreatePointer(const char* name); - static const char* GetName(void* createptr); - static const char* GetNextName(const char* name); - static void Insert(const char* name, CreateEMSAPtr createptr); - static void Insert(const EMSAMapEntry* map); - }; - -} // namespace act - -#endif // ACT_EMSAReg_h diff --git a/actlibrary/SLES-11-i686/Release/include/actEnv.h b/actlibrary/SLES-11-i686/Release/include/actEnv.h deleted file mode 100644 index 6a319b8..0000000 --- a/actlibrary/SLES-11-i686/Release/include/actEnv.h +++ /dev/null @@ -1,126 +0,0 @@ -////////////////////////////////////////////////////////////////////////// -// Name: actEnv.h -// Product: cv act library -// Purpose: Operating System environment -// -// Copyright: (c) 2009 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -// -// Autor: Markus Tesche -// Date: 04/23/2009 -////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_Env_h -#define ACT_Env_h - -// 64Bit detection ... -#if defined(_WIN64) || \ - defined(__LP64__) || \ - defined(__alpha__) || \ - defined(__ia64__) || \ - defined(__ppc64__) || \ - defined(__s390x__) || \ - defined(__x86_64__) -# define ACT_64 -#endif - -// cygwin -#if defined(__CYGWIN__) -# define ACT_CYGWIN -#endif - -// mingw -#if defined(__MINGW32__) -# define ACT_MINGW -#endif - -// Platform detection ... -#if defined(ACT_WIN32) || \ - defined(ACT_POSIX) || \ - defined(ACT_SOLARIS) || \ - defined(ACT_MACOSX) || \ - defined(ACT_WIN32_WCE) -// do nothing - -#elif defined(_WIN32_WCE) && _WIN32_WCE >= 0x500 -# define ACT_WIN32 -# define ACT_WIN32_WCE - -#elif defined(WIN32) && !defined(__CYGWIN__) -# define ACT_WIN32 - -#elif defined(_MSC_VER) || \ - defined(__BORLANDC__) || \ - defined(__BCPLUSPLUS__) || \ - defined(__MINGW32__) -# define ACT_WIN32 - -#elif defined(__linux__) || \ - defined(__CYGWIN__) || \ - defined(__FreeBSD__) || defined(__NetBSD__) || defined(__OpenBSD__) || \ - defined(__hpux) || \ - defined(__sgi) -# define ACT_POSIX - -#elif defined(_POSIX_SOURCE) || \ - defined(_XOPEN_SOURCE) -# define ACT_POSIX - -#elif defined(__sun) -# define ACT_POSIX -# define ACT_SOLARIS - -#elif defined(__APPLE__) && defined(__MACH__) -# define ACT_POSIX -# define ACT_MACOSX - -#else -# error unable to deteced system environment - -#endif - -// -// ACT_DEPRECATED definition -#if defined(_MSC_VER) -# define ACT_MSC -# if _MSC_FULL_VER >= 140050320 -# define ACT_DEPRECATED(msg) __declspec(deprecated("is deprecated: " msg)) -# else -# define ACT_DEPRECATED(msg) __declspec(deprecated) -# endif -# define ACT_STDEXT_NS std -# define ACT_STDEXT_INC(file) - -#elif defined(__GNUC__) -# define ACT_GCC -# if (__GNUC__ > 3) || (__GNUC__ == 3 && __GNUC_MINOR__ >= 1) -# define ACT_DEPRECATED(msg) __attribute__((__deprecated__)) -# endif -# define ACT_STDEXT_NS __gnu_cxx -# define ACT_STDEXT_INC(file) - -#endif - -#if !defined(ACT_DEPRECATED) -# define ACT_DEPRECATED(msg) -#endif - -// -// DLL/Shared Object symbol export/import attribte -#if defined(ACT_MSC) -# define ACT_DYNLIB_EXPORT _declspec(dllexport) -# define ACT_DYNLIB_IMPORT _declspec(dllimport) - -#elif defined(ACT_GCC) && !defined(ACT_MINGW) -# define ACT_DYNLIB_EXPORT __attribute__((visibility("default"))) -# define ACT_DYNLIB_IMPORT - -#else -# define ACT_DYNLIB_EXPORT -# define ACT_DYNLIB_IMPORT - -#endif - -#endif // ACT_Env_h diff --git a/actlibrary/SLES-11-i686/Release/include/actException.h b/actlibrary/SLES-11-i686/Release/include/actException.h deleted file mode 100644 index caa9636..0000000 --- a/actlibrary/SLES-11-i686/Release/include/actException.h +++ /dev/null @@ -1,1112 +0,0 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actException.h -// Product: cv act library -// Purpose: exception hierarchy -// -// Copyright: (c) 2000 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_Exception_h -#define ACT_Exception_h - -#include -#include - -#include "actMove.h" -#include "actBlob.h" - -namespace act -{ - // --------------------------------------------------------------------------- - enum ExceptionId - { - eiException = 0, - eiBadException = eiException + 1, - eiNullPointerException, - eiOutOfRangeException, - - eiBadCastException = eiException + 10, - eiBadNumericCast, - eiNegativeOverflow, - eiPositiveOverflow, - - eiRuntimeException = eiException + 20, - eiBadAllocException, - eiNotSupportedException, - eiNotImplementedException, - eiInvalidParameterException, - eiSynchronizationException, - - eiLogicalException = eiException + 40, - eiASN1Exception, - eiNoSuchDLLException, - eiPasswordException, - eiArithmeticException, - eiMessageDigestException, - eiPaddingException, - eiSignatureException, - - eiAlgorithmException = eiException + 80, - eiInvalidAlgorithmParameterException, - eiNoSuchAlgorithmException, - - eiCertificateException = eiException + 80, - eiInvalidCertificateException, - eiCertificateEncodingException, - eiCertificateExpiredException, - eiCertificateNotYetValidException, - eiCertificateParsingException, - - eiKeyException = eiException + 100, - eiInvalidKeyException, - eiKeyManagementException, - - eiEACException = eiException + 120, - eiEACDataException, - eiEACMRZException, - eiEACCVCertException, - - eiSmartcardException = eiException + 140, - eiCardOutOfMemoryException, - eiInvalidPinException, - eiPinLockedException, - eiPinExpiredException, - eiPinLenRangeException, - eiInvalidCRKeyException, - eiInvalidCardException, - eiInvalidAuthException, - eiInvalidAuthObjectException, - eiAuthProtocolException, - eiAuthConstrainedException, - eiSecureMessagingException, - eiSMWrapException, - eiSMUnwrapException, - - eiSubsystemException = eiException + 180, - eiNoSuchSubsystemException, - }; - -#ifndef UNDER_CE_30 - - // --------------------------------------------------------------------------- - class FileAndLine - { - public: - FileAndLine(const char* file = 0, int line = 0) - : m_line(line) - , m_file(file) - { } - - FileAndLine(const FileAndLine& other) - : m_line(other.line()) - , m_file(other.file()) - { } - - int line() const { return m_line; } - const char* file() const { return m_file; } - - // assignment operators. - FileAndLine& operator=(const FileAndLine& other) - { - m_line = other.line(); - m_file = other.file(); - return *this; - } - - private: - int m_line; - const char* m_file; - }; - - // - // base class for all exceptions thrown by cv act library - // --------------------------------------------------------------------------- - class Exception - { - public: - typedef Exception Type; - - explicit Exception(const char* msg = 0, const char* where = 0, ulong code = 0) - : m_what(msg) - , m_where(where) - , m_code(code) - { } - - explicit Exception(const std::exception& other) - : m_what(other.what()) - , m_where(0) - , m_code(0) - { } - - template - explicit Exception(const T& other) - : m_what(other.what()) - , m_where(other.where()) - , m_code(0) - { } - - virtual ~Exception() - { } - - template - _ExceptionT* TypedClone() const - { - return new(std::nothrow) _ExceptionT(m_what, m_where, m_code); - } - - template - _ExceptionT* TypedClone(const ParamT& param) const - { - return new(std::nothrow) _ExceptionT(m_what, m_where, param); - } - - template - void TypedThrow() const { throw _ExceptionT(m_what, m_where, m_code); } - - template - void TypedThrow(const ParamT& param) const { throw _ExceptionT(m_what, m_where, param); } - - virtual Exception* Clone() const { return new(std::nothrow) Exception(*this); } - virtual int GetId() const { return eiException; } - virtual void Throw() const { throw Exception(*this); } - - const char* what() const { return m_what != 0 ? m_what : ""; } - const char* where() const { return m_where != 0 ? m_where : ""; } - ulong code() const { return m_code; } - - template - friend ExceptionT& modify(ExceptionT& e, const char* what, const char* where) - { - if(what != 0) e.m_what = what; - if(where != 0) e.m_where = where; - return e; - } - - protected: - const char* m_what; - const char* m_where; - ulong m_code; - }; - - // - // ExceptionType<> - // --------------------------------------------------------------------------- - template - < - const int _exceptionId, - class ExceptionT, - class BaseT, - typename OtherT = void - > - class ExceptionType : public BaseT, public OtherT - { - protected: - typedef BaseT BaseType; - typedef OtherT OtherType; - enum { exceptionId = _exceptionId }; - - public: - ExceptionType(const char* msg, const char* where, ulong code) - : BaseType(msg, where, code) - , OtherT() - { } - - ExceptionT& operator<<(const OtherType& other) - { - *static_cast(this) = other; - return *static_cast(this); - } - - template - _ExceptionT* TypedClone() const - { - _ExceptionT* e = new(std::nothrow) _ExceptionT(BaseT::m_what, BaseT::m_where, BaseT::m_code); - if(e != 0) *e << *this; - return e; - } - - virtual void Throw() const { throw ExceptionT(BaseT::m_what, BaseT::m_where, BaseT::m_code); } - virtual int GetId() const { return exceptionId; } - }; - - template - < - const int _exceptionId, - class ExceptionT, - class BaseT - > - class ExceptionType<_exceptionId, ExceptionT, BaseT, void> : public BaseT - { - protected: - typedef BaseT BaseType; - enum { exceptionId = _exceptionId }; - - public: - ExceptionType(const char* msg, const char* where, ulong code) - : BaseType(msg, where, code) - { } - - virtual void Throw() const { throw ExceptionT(BaseT::m_what, BaseT::m_where, BaseT::m_code); } - virtual int GetId() const { return exceptionId; } - }; - - // --------------------------------------------------------------------------- - class BadException : - public ExceptionType - { - public: - typedef ExceptionType BaseType; - typedef BadException Type; - using BaseType::exceptionId; - - BadException(const char* msg = 0, const char* where = 0, ulong code = 0) - : BaseType(msg, where, code) - { } - }; - - class NullPointerException : - public ExceptionType - { - public: - typedef ExceptionType BaseType; - typedef NullPointerException Type; - using BaseType::exceptionId; - - NullPointerException(const char* msg = 0, const char* where = 0, ulong code = 0) - : BaseType(msg, where, code) - { } - }; - - class OutOfRangeException : - public ExceptionType - { - public: - typedef ExceptionType BaseType; - typedef OutOfRangeException Type; - using BaseType::exceptionId; - - OutOfRangeException(const char* msg = 0, const char* where = 0, ulong code = 0) - : BaseType(msg, where, code) - { } - }; - - // --------------------------------------------------------------------------- - class BadCastException : - public ExceptionType - { - public: - typedef ExceptionType BaseType; - typedef BadCastException Type; - using BaseType::exceptionId; - - BadCastException(const char* msg = 0, const char* where = 0, ulong code = 0) - : BaseType(msg, where, code) - { } - }; - - class BadNumericCast : - public ExceptionType - { - public: - typedef ExceptionType BaseType; - typedef BadNumericCast Type; - using BaseType::exceptionId; - - BadNumericCast(const char* msg = 0, const char* where = 0, ulong code = 0) - : BaseType(msg, where, code) - { } - - template - void operator()(overflow_type overflow) - { - switch(eiBadNumericCast + overflow) - { - case eiNegativeOverflow: TypedThrow >(); - case eiPositiveOverflow: TypedThrow >(); - default: /* do nothing */; - } - } - }; - - // --------------------------------------------------------------------------- - class RuntimeException : - public ExceptionType - { - public: - typedef ExceptionType BaseType; - typedef RuntimeException Type; - using BaseType::exceptionId; - - RuntimeException(const char* msg = 0, const char* where = 0, ulong code = 0) - : BaseType(msg, where, code) - { } - }; - - class BadAllocException : - public ExceptionType - { - public: - typedef ExceptionType BaseType; - typedef BadAllocException Type; - using BaseType::exceptionId; - - BadAllocException(const char* msg = 0, const char* where = 0, ulong code = 0) - : BaseType(msg, where, code) - { } - }; - - class NotSupportedException : - public ExceptionType - { - public: - typedef ExceptionType BaseType; - typedef NotSupportedException Type; - using BaseType::exceptionId; - using BaseType::operator<<; - - explicit NotSupportedException(const char* msg = 0, const char* where = 0, ulong code = 0) - : BaseType(msg, where, code) - { } - - virtual Type* Clone() const { return TypedClone(); } - }; - - class NotImplementedException : - public ExceptionType - { - public: - typedef ExceptionType BaseType; - typedef NotImplementedException Type; - using BaseType::exceptionId; - using BaseType::operator<<; - - NotImplementedException(const char* msg = 0, const char* where = 0, ulong code = 0) - : BaseType(msg, where, code) - { } - - virtual Type* Clone() const { return TypedClone(); } - }; - - class InvalidParameterException : - public ExceptionType - { - public: - typedef ExceptionType BaseType; - typedef InvalidParameterException Type; - using BaseType::exceptionId; - using BaseType::operator<<; - - InvalidParameterException(const char* msg = 0, const char* where = 0, ulong code = 0) - : BaseType(msg, where, code) - { } - - virtual Type* Clone() const { return TypedClone(); } - }; - - class SynchronizationException : - public ExceptionType - { - public: - typedef ExceptionType BaseType; - typedef SynchronizationException Type; - using BaseType::exceptionId; - using BaseType::operator<<; - - SynchronizationException(const char* msg = 0, const char* where = 0, ulong code = 0) - : BaseType(msg, where, code) - { } - - virtual Type* Clone() const { return TypedClone(); } - }; - - // --------------------------------------------------------------------------- - class LogicalException : public Exception - { - public: - typedef Exception BaseType; - typedef LogicalException Type; - - LogicalException(const char* msg = 0, const char* where = 0, ulong code = 0) - : Exception(msg, where, code) - { } - - virtual Type* Clone() const { return TypedClone(); } - virtual void Throw() const { throw Type(m_what, m_where, m_code); } - virtual int GetId() const { return eiLogicalException; } - }; - - class ASN1Exception : public LogicalException - { - public: - typedef LogicalException BaseType; - typedef ASN1Exception Type; - - ASN1Exception(const char* msg = 0, const char* where = 0, ulong code = 0) - : LogicalException(msg, where, code) - { } - - virtual Type* Clone() const { return TypedClone(); } - virtual void Throw() const { throw Type(m_what, m_where, m_code); } - virtual int GetId() const { return eiASN1Exception; } - }; - - class NoSuchDLLException : public LogicalException - { - public: - typedef LogicalException BaseType; - typedef NoSuchDLLException Type; - - NoSuchDLLException(const char* msg = 0, const char* where = 0, ulong code = 0) - : LogicalException(msg, where, code) - { } - - virtual Type* Clone() const { return TypedClone(); } - virtual void Throw() const { throw Type(m_what, m_where, m_code); } - virtual int GetId() const { return eiNoSuchDLLException; } - }; - - class PasswordException : public LogicalException - { - public: - typedef LogicalException BaseType; - typedef PasswordException Type; - - PasswordException(const char* msg = 0, const char* where = 0, ulong code = 0) - : LogicalException(msg, where, code) - { } - - virtual Type* Clone() const { return TypedClone(); } - virtual void Throw() const { throw Type(m_what, m_where, m_code); } - virtual int GetId() const { return eiPasswordException; } - }; - - class ArithmeticException : public LogicalException - { - public: - typedef LogicalException BaseType; - typedef ArithmeticException Type; - - ArithmeticException(const char* msg = 0, const char* where = 0, ulong code = 0) - : LogicalException(msg, where, code) - { } - - virtual Type* Clone() const { return TypedClone(); } - virtual void Throw() const { throw Type(m_what, m_where, m_code); } - virtual int GetId() const { return eiArithmeticException; } - }; - - class MessageDigestException : public LogicalException - { - public: - typedef LogicalException BaseType; - typedef MessageDigestException Type; - - MessageDigestException(const char* msg = 0, const char* where = 0, ulong code = 0) - : LogicalException(msg, where, code) - { } - - virtual Type* Clone() const { return TypedClone(); } - virtual void Throw() const { throw Type(m_what, m_where, m_code); } - virtual int GetId() const { return eiMessageDigestException; } - }; - - class PaddingException : public LogicalException - { - public: - typedef LogicalException BaseType; - typedef PaddingException Type; - - PaddingException(const char* msg = 0, const char* where = 0, ulong code = 0) - : LogicalException(msg, where, code) - { } - - virtual Type* Clone() const { return TypedClone(); } - virtual void Throw() const { throw Type(m_what, m_where, m_code); } - virtual int GetId() const { return eiPaddingException; } - }; - - class SignatureException : public LogicalException - { - public: - typedef LogicalException BaseType; - typedef SignatureException Type; - - SignatureException(const char* msg = 0, const char* where = 0, ulong code = 0) - : LogicalException(msg, where, code) - { } - - virtual Type* Clone() const { return TypedClone(); } - virtual void Throw() const { throw Type(m_what, m_where, m_code); } - virtual int GetId() const { return eiSignatureException; } - }; - - // --------------------------------------------------------------------------- - class AlgorithmException : public LogicalException - { - public: - typedef LogicalException BaseType; - typedef AlgorithmException Type; - - AlgorithmException(const char* msg = 0, const char* where = 0, ulong code = 0) - : LogicalException(msg, where, code) - { } - - virtual Type* Clone() const { return TypedClone(); } - virtual void Throw() const { throw Type(m_what, m_where, m_code); } - virtual int GetId() const { return eiAlgorithmException; } - }; - - class InvalidAlgorithmParameterException : public AlgorithmException - { - public: - typedef AlgorithmException BaseType; - typedef InvalidAlgorithmParameterException Type; - - InvalidAlgorithmParameterException(const char* msg = 0, const char* where = 0, ulong code = 0) - : AlgorithmException(msg, where, code) - { } - - virtual Type* Clone() const { return TypedClone(); } - virtual void Throw() const { throw Type(m_what, m_where, m_code); } - virtual int GetId() const { return eiInvalidAlgorithmParameterException; } - }; - - class NoSuchAlgorithmException : public AlgorithmException - { - public: - typedef AlgorithmException BaseType; - typedef NoSuchAlgorithmException Type; - - NoSuchAlgorithmException(const char* msg = 0, const char* where = 0, const char* algorithm = 0) - : AlgorithmException(msg, where) - , m_algorithm(algorithm) - { - m_algorithm.push_back(0); - } - - // GCC 4.2.1 whats to have it - virtual ~NoSuchAlgorithmException() - { } - - virtual Type* Clone() const { return TypedClone(algorithm()); } - virtual void Throw() const { throw Type(m_what, m_where, algorithm()); } - virtual int GetId() const { return eiNoSuchAlgorithmException; } - - const char* algorithm() const { return reinterpret_cast(&m_algorithm[0]); } - - protected: - mutable Blob m_algorithm; - }; - - // --------------------------------------------------------------------------- - class CertificateException : public LogicalException - { - public: - typedef LogicalException BaseType; - typedef CertificateException Type; - - CertificateException(const char* msg = 0, const char* where = 0, ulong code = 0) - : LogicalException(msg, where, code) - { } - - virtual Type* Clone() const { return TypedClone(); } - virtual void Throw() const { throw Type(m_what, m_where, m_code); } - virtual int GetId() const { return eiCertificateException; } - }; - - class InvalidCertificateException : public CertificateException - { - public: - typedef CertificateException BaseType; - typedef InvalidCertificateException Type; - - InvalidCertificateException(const char* msg = 0, const char* where = 0, ulong code = 0) - : CertificateException(msg, where, code) - { } - - virtual Type* Clone() const { return TypedClone(); } - virtual void Throw() const { throw Type(m_what, m_where, m_code); } - virtual int GetId() const { return eiInvalidCertificateException; } - }; - - class CertificateEncodingException : public CertificateException - { - public: - typedef CertificateException BaseType; - typedef CertificateEncodingException Type; - - CertificateEncodingException(const char* msg = 0, const char* where = 0, ulong code = 0) - : CertificateException(msg, where, code) - { } - - virtual Type* Clone() const { return TypedClone(); } - virtual void Throw() const { throw Type(m_what, m_where, m_code); } - virtual int GetId() const { return eiCertificateEncodingException; } - }; - - class CertificateExpiredException : public CertificateException - { - public: - typedef CertificateException BaseType; - typedef CertificateExpiredException Type; - - CertificateExpiredException(const char* msg = 0, const char* where = 0, ulong code = 0) - : CertificateException(msg, where, code) - { } - - virtual Type* Clone() const { return TypedClone(); } - virtual void Throw() const { throw Type(m_what, m_where, m_code); } - virtual int GetId() const { return eiCertificateExpiredException; } - }; - - class CertificateNotYetValidException : public CertificateException - { - public: - typedef CertificateException BaseType; - typedef CertificateNotYetValidException Type; - - CertificateNotYetValidException(const char* msg = 0, const char* where = 0, ulong code = 0) - : CertificateException(msg, where, code) - { } - - virtual Type* Clone() const { return TypedClone(); } - virtual void Throw() const { throw Type(m_what, m_where, m_code); } - virtual int GetId() const { return eiCertificateNotYetValidException; } - }; - - class CertificateParsingException : public CertificateException - { - public: - typedef CertificateException BaseType; - typedef CertificateParsingException Type; - - CertificateParsingException(const char* msg = 0, const char* where = 0, ulong code = 0) - : CertificateException(msg, where, code) - { } - - virtual Type* Clone() const { return TypedClone(); } - virtual void Throw() const { throw Type(m_what, m_where, m_code); } - virtual int GetId() const { return eiCertificateParsingException; } - }; - - // --------------------------------------------------------------------------- - class KeyException : public LogicalException - { - public: - typedef LogicalException BaseType; - typedef KeyException Type; - - KeyException(const char* msg = 0, const char* where = 0, ulong code = 0) - : LogicalException(msg, where, code) - { } - - virtual Type* Clone() const { return TypedClone(); } - virtual void Throw() const { throw Type(m_what, m_where, m_code); } - virtual int GetId() const { return eiKeyException; } - }; - - class InvalidKeyException : public KeyException - { - public: - typedef KeyException BaseType; - typedef InvalidKeyException Type; - - InvalidKeyException(const char* msg = 0, const char* where = 0, ulong code = 0) - : KeyException(msg, where, code) - { } - - virtual Type* Clone() const { return TypedClone(); } - virtual void Throw() const { throw Type(m_what, m_where, m_code); } - virtual int GetId() const { return eiInvalidKeyException; } - }; - - class KeyManagementException : public KeyException - { - public: - typedef KeyException BaseType; - typedef KeyManagementException Type; - - KeyManagementException(const char* msg = 0, const char* where = 0, ulong code = 0) - : KeyException(msg, where, code) - { } - - virtual Type* Clone() const { return TypedClone(); } - virtual void Throw() const { throw Type(m_what, m_where, m_code); } - virtual int GetId() const { return eiKeyManagementException; } - }; - - // --------------------------------------------------------------------------- - class EACException : public LogicalException - { - public: - typedef LogicalException BaseType; - typedef EACException Type; - - EACException(const char* msg = 0, const char* where = 0, ulong code = 0) - : LogicalException(msg, where, code) - { } - - virtual Type* Clone() const { return TypedClone(); } - virtual void Throw() const { throw Type(m_what, m_where, m_code); } - virtual int GetId() const { return eiEACException; } - }; - - class EACDataException : public EACException - { - public: - typedef EACException BaseType; - typedef EACDataException Type; - - EACDataException(const char* msg = 0, const char* where = 0, ulong code = 0) - : EACException(msg, where, code) - { } - - virtual Type* Clone() const { return TypedClone(); } - virtual void Throw() const { throw Type(m_what, m_where, m_code); } - virtual int GetId() const { return eiEACDataException; } - }; - - class EACMRZException : public EACDataException - { - public: - typedef EACDataException BaseType; - typedef EACMRZException Type; - - EACMRZException(const char* msg = 0, const char* where = 0, ulong code = 0) - : EACDataException(msg, where, code) - { } - - virtual Type* Clone() const { return TypedClone(); } - virtual void Throw() const { throw Type(m_what, m_where, m_code); } - virtual int GetId() const { return eiEACMRZException; } - }; - - class EACCVCertException : public EACDataException - { - public: - typedef EACDataException BaseType; - typedef EACCVCertException Type; - - EACCVCertException(const char* msg = 0, const char* where = 0, ulong code = 0) - : EACDataException(msg, where, code) - { } - - virtual Type* Clone() const { return TypedClone(); } - virtual void Throw() const { throw Type(m_what, m_where, m_code); } - virtual int GetId() const { return eiEACCVCertException; } - }; - - // --------------------------------------------------------------------------- - class SmartcardException : public LogicalException - { - public: - typedef LogicalException BaseType; - typedef SmartcardException Type; - - SmartcardException(const char* msg = 0, const char* where = 0, ulong code = 0) - : LogicalException(msg, where, code) - { } - - virtual Type* Clone() const { return TypedClone(); } - virtual void Throw() const { throw Type(m_what, m_where, m_code); } - virtual int GetId() const { return eiSmartcardException; } - }; - - class CardOutOfMemoryException : public SmartcardException - { - public: - typedef SmartcardException BaseType; - typedef CardOutOfMemoryException Type; - - CardOutOfMemoryException(const char* msg = 0, const char* where = 0, ulong code = 0) - : SmartcardException(msg, where, code) - { } - - virtual Type* Clone() const { return TypedClone(); } - virtual void Throw() const { throw Type(m_what, m_where, m_code); } - virtual int GetId() const { return eiCardOutOfMemoryException; } - }; - - class InvalidPinException : public SmartcardException - { - public: - typedef SmartcardException BaseType; - typedef InvalidPinException Type; - - InvalidPinException(const char* msg = 0, const char* where = 0, ulong code = 0) - : SmartcardException(msg, where, code) - { } - - virtual Type* Clone() const { return TypedClone(); } - virtual void Throw() const { throw Type(m_what, m_where, m_code); } - virtual int GetId() const { return eiInvalidPinException; } - }; - - class PinLockedException : public SmartcardException - { - public: - typedef SmartcardException BaseType; - typedef PinLockedException Type; - - PinLockedException(const char* msg = 0, const char* where = 0, ulong code = 0) - : SmartcardException(msg, where, code) - { } - - virtual Type* Clone() const { return TypedClone(); } - virtual void Throw() const { throw Type(m_what, m_where, m_code); } - virtual int GetId() const { return eiPinLockedException; } - }; - - class PinExpiredException : public SmartcardException - { - public: - typedef SmartcardException BaseType; - typedef PinExpiredException Type; - - PinExpiredException(const char* msg = 0, const char* where = 0, ulong code = 0) - : SmartcardException(msg, where, code) - { } - - virtual Type* Clone() const { return TypedClone(); } - virtual void Throw() const { throw Type(m_what, m_where, m_code); } - virtual int GetId() const { return eiPinExpiredException; } - }; - - class PinLenRangeException : public SmartcardException - { - public: - typedef SmartcardException BaseType; - typedef PinLenRangeException Type; - - PinLenRangeException(const char* msg = 0, const char* where = 0, ulong code = 0) - : SmartcardException(msg, where, code) - { } - - virtual Type* Clone() const { return TypedClone(); } - virtual void Throw() const { throw Type(m_what, m_where, m_code); } - virtual int GetId() const { return eiPinLenRangeException; } - }; - - class InvalidCRKeyException : public SmartcardException - { - public: - typedef SmartcardException BaseType; - typedef InvalidCRKeyException Type; - - InvalidCRKeyException(const char* msg = 0, const char* where = 0, ulong code = 0) - : SmartcardException(msg, where, code) - { } - - virtual Type* Clone() const { return TypedClone(); } - virtual void Throw() const { throw Type(m_what, m_where, m_code); } - virtual int GetId() const { return eiInvalidCRKeyException; } - }; - - class InvalidCardException : public SmartcardException - { - public: - typedef SmartcardException BaseType; - typedef InvalidCardException Type; - - InvalidCardException(const char* msg = 0, const char* where = 0, ulong code = 0) - : SmartcardException(msg, where, code) - { } - - virtual Type* Clone() const { return TypedClone(); } - virtual void Throw() const { throw Type(m_what, m_where, m_code); } - virtual int GetId() const { return eiInvalidCardException; } - }; - - class InvalidAuthException : public SmartcardException - { - public: - typedef SmartcardException BaseType; - typedef InvalidAuthException Type; - - InvalidAuthException(const char* msg = 0, const char* where = 0, ulong code = 0) - : SmartcardException(msg, where, code) - { } - - virtual Type* Clone() const { return TypedClone(); } - virtual void Throw() const { throw Type(m_what, m_where, m_code); } - virtual int GetId() const { return eiInvalidAuthException; } - }; - - class InvalidAuthObjectException : public SmartcardException - { - public: - typedef SmartcardException BaseType; - typedef InvalidAuthObjectException Type; - - InvalidAuthObjectException(const char* msg = 0, const char* where = 0, ulong code = 0) - : SmartcardException(msg, where, code) - { } - - virtual Type* Clone() const { return TypedClone(); } - virtual void Throw() const { throw Type(m_what, m_where, m_code); } - virtual int GetId() const { return eiInvalidAuthObjectException; } - }; - - class AuthProtocolException : public SmartcardException - { - public: - typedef SmartcardException BaseType; - typedef AuthProtocolException Type; - - AuthProtocolException(const char* msg = 0, const char* where = 0, ulong code = 0) - : SmartcardException(msg, where, code) - { } - - virtual Type* Clone() const { return TypedClone(); } - virtual void Throw() const { throw Type(m_what, m_where, m_code); } - virtual int GetId() const { return eiAuthProtocolException; } - }; - - class AuthConstrainedException : public SmartcardException - { - public: - typedef SmartcardException BaseType; - typedef AuthConstrainedException Type; - - AuthConstrainedException(const char* msg = 0, const char* where = 0, ulong code = 0) - : SmartcardException(msg, where, code) - { } - - virtual Type* Clone() const { return TypedClone(); } - virtual void Throw() const { throw Type(m_what, m_where, m_code); } - virtual int GetId() const { return eiAuthConstrainedException; } - }; - - class SecureMessagingException : public SmartcardException - { - public: - typedef SmartcardException BaseType; - typedef SecureMessagingException Type; - - SecureMessagingException(const char* msg = 0, const char* where = 0, ulong code = 0) - : SmartcardException(msg, where, code) - { } - - virtual Type* Clone() const { return TypedClone(); } - virtual void Throw() const { throw Type(m_what, m_where, m_code); } - virtual int GetId() const { return eiSecureMessagingException; } - }; - - class SMWrapException : public SecureMessagingException - { - public: - typedef SecureMessagingException BaseType; - typedef SMWrapException Type; - - SMWrapException(const char* msg = 0, const char* where = 0, ulong code = 0) - : SecureMessagingException(msg, where, code) - { } - - virtual Type* Clone() const { return TypedClone(); } - virtual void Throw() const { throw Type(m_what, m_where, m_code); } - virtual int GetId() const { return eiSMWrapException; } - }; - - class SMUnwrapException : public SecureMessagingException - { - public: - typedef SecureMessagingException BaseType; - typedef SMUnwrapException Type; - - SMUnwrapException(const char* msg = 0, const char* where = 0, ulong code = 0) - : SecureMessagingException(msg, where, code) - { } - - virtual Type* Clone() const { return TypedClone(); } - virtual void Throw() const { throw Type(m_what, m_where, m_code); } - virtual int GetId() const { return eiSMUnwrapException; } - }; - - // --------------------------------------------------------------------------- - class SubsystemException : public LogicalException - { - public: - typedef LogicalException BaseType; - typedef SubsystemException Type; - - SubsystemException(const char* msg = 0, const char* where = 0, ulong code = 0) - : LogicalException(msg, where, code) - { } - - virtual Type* Clone() const { return TypedClone(); } - virtual void Throw() const { throw Type(m_what, m_where, m_code); } - virtual int GetId() const { return eiSubsystemException; } - }; - - class NoSuchSubsystemException : public SubsystemException - { - public: - typedef SubsystemException BaseType; - typedef NoSuchSubsystemException Type; - - NoSuchSubsystemException(const char* msg = 0, const char* where = 0, ulong code = 0) - : SubsystemException(msg, where, code) - { } - - virtual Type* Clone() const { return TypedClone(); } - virtual void Throw() const { throw Type(m_what, m_where, m_code); } - virtual int GetId() const { return eiNoSuchSubsystemException; } - }; - -#else - - #define throw(_x) _exit(_x) - - int Exception(const char* msg = 0, const char* where = 0, ulong code = 0); - int BadException(const char* msg = 0, const char* where = 0, ulong code = 0); - int NullPointerException(const char* msg = 0, const char* where = 0, ulong code = 0); - int OutOfRangeException(const char* msg = 0, const char* where = 0, ulong code = 0); - int BadCastException(const char* msg = 0, const char* where = 0, ulong code = 0); - int BadNumericCast(const char* msg = 0, const char* where = 0, ulong code = 0); - int RuntimeException(const char* msg = 0, const char* where = 0, ulong code = 0); - int BadAllocException(const char* msg = 0, const char* where = 0, ulong code = 0); - int NotSupportedException(const char* msg = 0, const char* where = 0, ulong code = 0); - int NotImplementedException(const char* msg = 0, const char* where = 0, ulong code = 0); - int InvalidParameterException(const char* msg = 0, const char* where = 0, ulong code = 0); - int SynchronizationException(const char* msg = 0, const char* where = 0, ulong code = 0); - int LogicalException(const char* msg = 0, const char* where = 0, ulong code = 0); - int AlgorithmException(const char* msg = 0, const char* where = 0, ulong code = 0); - int InvalidAlgorithmParameterException(const char* msg = 0, const char* where = 0, ulong code = 0); - int NoSuchAlgorithmException(const char* msg = 0, const char* where = 0, const char* algorithm); - int ArithmeticException(const char* msg = 0, const char* where = 0, ulong code = 0); - int CertificateException(const char* msg = 0, const char* where = 0, ulong code = 0); - int CertificateEncodingException(const char* msg = 0, const char* where = 0, ulong code = 0); - int CertificateExpiredException(const char* msg = 0, const char* where = 0, ulong code = 0); - int CertificateNotYetValidException(const char* msg = 0, const char* where = 0, ulong code = 0); - int CertificateParsingException(const char* msg = 0, const char* where = 0, ulong code = 0); - int KeyException(const char* msg = 0, const char* where = 0, ulong code = 0); - int InvalidKeyException(const char* msg = 0, const char* where = 0, ulong code = 0); - int KeyManagementException(const char* msg = 0, const char* where = 0, ulong code = 0); - int MessageDigestException(const char* msg = 0, const char* where = 0, ulong code = 0); - int PaddingException(const char* msg = 0, const char* where = 0, ulong code = 0); - int SignatureException(const char* msg = 0, const char* where = 0, ulong code = 0); - int EACException(const char* msg = 0, const char* where = 0, ulong code = 0); - int EACDataException(const char* msg = 0, const char* where = 0, ulong code = 0); - int EACMRZException(const char* msg = 0, const char* where = 0, ulong code = 0); - int EACCVCertException(const char* msg = 0, const char* where = 0, ulong code = 0); - int SmartcardException(const char* msg = 0, const char* where = 0, ulong code = 0); - int CardOutOfMemoryException(const char* msg = 0, const char* where = 0, ulong code = 0); - int InvalidPinException(const char* msg = 0, const char* where = 0, ulong code = 0); - int InvalidCardException(const char* msg = 0, const char* where = 0, ulong code = 0); - int InvalidAuthObjectException(const char* msg = 0, const char* where = 0, ulong code = 0); - int AuthProtocolException(const char* msg = 0, const char* where = 0, ulong code = 0); - int AuthConstrainedException(const char* msg = 0, const char* where = 0, ulong code = 0); - int SecureMessagingException(const char* msg = 0, const char* where = 0, ulong code = 0); - int SMWrapException(const char* msg = 0, const char* where = 0, ulong code = 0); - int SMUnwrapException(const char* msg = 0, const char* where = 0, ulong code = 0); - int SubsystemException(const char* msg = 0, const char* where = 0, ulong code = 0); - int NoSuchSubsystemException(const char* msg = 0, const char* where = 0, ulong code = 0); - -#endif // UNDER_CE_30 - -}// namespace act - -#endif // ACT_Exception_h diff --git a/actlibrary/SLES-11-i686/Release/include/actFactoryReg.h b/actlibrary/SLES-11-i686/Release/include/actFactoryReg.h deleted file mode 100644 index 175da36..0000000 --- a/actlibrary/SLES-11-i686/Release/include/actFactoryReg.h +++ /dev/null @@ -1,146 +0,0 @@ -// --------------------------------------------------------------------------- -// Name: actFactoryReg.h -// Product: cv act library -// Purpose: Templates for simple factory-registry implementation. -// -// Copyright: (c) 2008 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -// -// Autor: Markus Tesche -// Date: 06/02/2008 -// --------------------------------------------------------------------------- - -#ifndef ACT_FactoryReg_h -#define ACT_FactoryReg_h - -#include -#include - -namespace act -{ - // - // FactoryMapEntry<> - template - struct FactoryMapEntry - { - typedef char KeyType; - - struct KeyLessPredicate - : public std::binary_function - { - bool operator()(const KeyType* left, const KeyType* right) const - { - if(left == 0) return false; - if(right == 0) return true; - return strcmp(left, right) < 0; - } - }; - - typedef std::map - < const KeyType*, CreatePtrT, KeyLessPredicate - > MapType; - - static const KeyType* Empty; - - const KeyType* Name; - CreatePtrT createPtr; - }; - - template - const typename FactoryMapEntry::KeyType* - FactoryMapEntry::Empty = ""; - - - // - // FactoryReg<> - template - < - class ResultT, - class CreatePtrT, - class MapEntryT, - class MapT = typename MapEntryT::MapType - > - class FactoryReg - { - public: - typedef typename MapEntryT::KeyType KeyType; - typedef MapEntryT MapEntryType; - typedef MapT MapType; - - // Creates default ... - static ResultT* Create(const KeyType* name) - { - if(name == 0) name = MapEntryType::Empty; - typename MapType::const_iterator result(g_map.find(name)); - return result != g_map.end() ? result->second(name) : 0; - } - - template - static ResultT* Create(const KeyType* name, ParamT* param) - { - if(name == 0) name = MapEntryType::Empty; - typename MapType::const_iterator result(g_map.find(name)); - return result != g_map.end() ? result->second(name, param) : 0; - } - - template - static ResultT* Create(ParamT* param) { return Create(0, param); } - static ResultT* Create() { return Create(0); } - - static const KeyType* GetName(void* createptr) - { - if(createptr == 0) return 0; - for(typename MapType::const_iterator i(g_map.begin()), - end(g_map.end()); i != end; ++i) - if(i->second == createptr) - return i->first; - - return 0; - } - - static const KeyType* GetNextName(const KeyType* name) - { - if(name == 0) - return g_map.empty() == true ? 0 : g_map.begin()->first; - - typename MapType::const_iterator result(g_map.find(name)); - return result == g_map.end() || ++result == g_map.end() ? 0 : result->first; - } - - static CreatePtrT GetCreatePointer(const KeyType* name) - { - if(name != 0) - { - typename MapType::const_iterator result(g_map.find(name)); - return result != g_map.end() ? result->second : 0; - } - return 0; - } - - static void Insert(const KeyType* name, CreatePtrT createPtr) - { - std::pair - result(g_map.insert(typename MapType::value_type(name, createPtr))); - } - - static void Insert(const MapEntryType* entry) - { - while(entry->Name != 0) - { - Insert(entry->Name, entry->createPtr); - ++entry; - } - } - - protected: - static MapT g_map; - }; - - template - MapT FactoryReg::g_map; - -} // namespace act - -#endif // ACT_FactoryReg_h diff --git a/actlibrary/SLES-11-i686/Release/include/actHandle.h b/actlibrary/SLES-11-i686/Release/include/actHandle.h deleted file mode 100644 index fb01279..0000000 --- a/actlibrary/SLES-11-i686/Release/include/actHandle.h +++ /dev/null @@ -1,98 +0,0 @@ -////////////////////////////////////////////////////////////////////////// -// Name: actHandle.h -// Product: cv act library -// Purpose: Handle helper templates -// -// Copyright: (c) 2010 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -// -// Autor: Markus Tesche -// Date: 07/27/2010 -////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_Handle_h -#define ACT_Handle_h - -#include "actMove.h" -#include "actException.h" - -namespace act -{ - // - // Handle - class Handle - { - public: - virtual ~Handle() { /* essential */ } - - template TypeT* as() const; - template TypeT& requiredAs() const; - - template - friend inline TypeT& getPointer(const Handle& handle) - { - return handle.as(); - } - - template - friend inline TypeT& getRef(const Handle& handle) - { - return handle.requiredAs(); - } - }; - - // - // ValueHandle<> - template - class ValueHandle : public Handle - { - public: - typedef TypeT value_type; - - ValueHandle() : m_val() { } - explicit ValueHandle(const TypeT& other) : m_val(other) { } - - template - explicit ValueHandle(move_from other) : m_val() { other.move(m_val); } - - template void operator=(const O& other) { m_val = other; } - template void operator=(move_from other) { other.move(m_val); } - - inline TypeT& valueRef() const { return m_val; } - - inline operator TypeT&() const { return m_val; } - - inline TypeT& operator*() const { return m_val; } - inline TypeT* operator->() const { return &m_val; } - - private: - mutable TypeT m_val; - - private: - friend class Handle; - }; - - // - // Handle::as<> - template - inline TypeT* Handle::as() const - { - const ValueHandle* self = dynamic_cast*>(this); - return self != 0 ? &self->m_val : 0; - } - - // - // Handle::requiredAs<> - template - inline TypeT& Handle::requiredAs() const - { - TypeT* value = as(); - if(value != 0) return *value; - throw NullPointerException("invalid handle value type"); - } - -} // namespace act - -#endif // ACT_Handle_h diff --git a/actlibrary/SLES-11-i686/Release/include/actHashKit.h b/actlibrary/SLES-11-i686/Release/include/actHashKit.h deleted file mode 100644 index d2a817b..0000000 --- a/actlibrary/SLES-11-i686/Release/include/actHashKit.h +++ /dev/null @@ -1,32 +0,0 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actHashKit.h -// Product: cv act library -// Purpose: declaration of all factory functions -// -// Copyright: (c) 2000 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_HASHKIT_H -#define ACT_HASHKIT_H - -namespace act -{ - class IHashAlg; - IHashAlg* CreateMD2(); - IHashAlg* CreateMD4(); - IHashAlg* CreateMD5(); - IHashAlg* CreateRipemd128(); - IHashAlg* CreateRipemd160(); - IHashAlg* CreateSHA0(); - IHashAlg* CreateSHA1(); - IHashAlg* CreateSHA224(); - IHashAlg* CreateSHA256(); - IHashAlg* CreateSHA384(); - IHashAlg* CreateSHA512(); - IHashAlg* CreateDummyHash(); -} -#endif - diff --git a/actlibrary/SLES-11-i686/Release/include/actHashReg.h b/actlibrary/SLES-11-i686/Release/include/actHashReg.h deleted file mode 100644 index 896039d..0000000 --- a/actlibrary/SLES-11-i686/Release/include/actHashReg.h +++ /dev/null @@ -1,40 +0,0 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actHashReg.h -// Product: cv act library -// Purpose: registry for factory functions in actHashKit.h -// -// Copyright: (c) 2000 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_HashReg_H -#define ACT_HashReg_H - -namespace act -{ - class IHashAlg; - - typedef IHashAlg* (*CreateHashPtr)(); - - struct HashMapEntry - { - const char* Name; - CreateHashPtr CreatePtr; - }; - - class HashReg - { - public: - static IHashAlg* CreateHashAlg(const char* name); - static CreateHashPtr GetCreatePointer(const char* name); - static const char* GetName(void* createptr); - static const char* GetNextName(const char* name); - static void Insert(const char* name, CreateHashPtr createptr); - static void Insert(const HashMapEntry* hashmap); - }; - -} // namespace act - -#endif // ACT_HashReg_H diff --git a/actlibrary/SLES-11-i686/Release/include/actIAccessCondition.h b/actlibrary/SLES-11-i686/Release/include/actIAccessCondition.h deleted file mode 100644 index a6d9da3..0000000 --- a/actlibrary/SLES-11-i686/Release/include/actIAccessCondition.h +++ /dev/null @@ -1,163 +0,0 @@ -// --------------------------------------------------------------------------- -// Name: actIAccessConditions.h -// Product: cv act library -// Purpose: The IAccessCondition interface is used to map access conditions for -// Files, Keys etc. on specific smartcard's -// -// Copyright: (c) 2008 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -// -// Autor: Markus Tesche -// Date: 10/29/2008 -// --------------------------------------------------------------------------- - -#ifndef ACT_IAccessConditions_h -#define ACT_IAccessConditions_h - -#include "actBlob.h" -#include "actIRefCounted.h" - -namespace act -{ - class IToken; - class ISCardOS; - - enum - { - AC_AUTH_ID_MASK = 0x7f, - }; - - enum ACType - { - AC_TYPE_UNKNOWN = 0, - AC_TYPE_RAW = 1, // Already transformed for specific OS - AC_TYPE_GENERIC = 2 // OS independant, requires to be transformed before used - }; - - // SCard object specific rights by type - enum ACSCardObjType - { - // { AC_TOKEN_USER, AC_TOKEN_SO, AC_TOKEN_USER_OR_SO } - AC_OBJ_MAP = 0x00, // Used for access condition (f.e. tag 0x86) - AC_OBJREF_MAP = 0x01, // Used as object reference for access condition - - AC_RIGHTS_EF = 0x02, // Access Rights for EF's - AC_RIGHTS_DF = 0x03, // Access Rights for DF's - AC_RIGHTS_KEY = 0x04, // Access Rights for Key Objects - AC_RIGHTS_AUTH = 0x05, // Access Rights for Authentication Objects - // ... add additional types here - }; - - // SCard specific rights - enum ACSCard - { - AC_ALWAYS = 0x00, - // Any other from 0x01..0x7f - AC_NEVER = 0xff - }; - - // Token specific rights - enum ACToken - { - AC_TOKEN_USER = 0x80, - AC_TOKEN_SO = 0x81, - AC_TOKEN_USER_OR_SO = 0x82, - AC_TOKEN_USER_AND_SO = 0x83, - AC_TOKEN_ADMIN = 0x84, - - AC_TOKEN_FLAG = 0x80, - }; - - // AuthId Index - enum AIIndex - { - AI_INVALID = -1, - AI_USER = AC_TOKEN_USER & ~AC_TOKEN_FLAG, - AI_SO = AC_TOKEN_SO & ~AC_TOKEN_FLAG, - AI_USER_OR_SO = AC_TOKEN_USER_OR_SO & ~AC_TOKEN_FLAG, - AI_USER_AND_SO = AC_TOKEN_USER_AND_SO & ~AC_TOKEN_FLAG, - AI_ADMIN = AC_TOKEN_ADMIN & ~AC_TOKEN_FLAG, - }; - - enum ACOperation - { - AC_OR = 0x00, - AC_AND = 0x01, - }; - - enum ACMode - { - AC_MODE_READ = 0, - AC_MODE_UPDATE = 1, - AC_MODE_EXECUTE = 2, - AC_MODE_DELETE = 3, - }; - - enum ACRight - { - // Used for EF/DF - AC_READ = 0x00, - AC_WRITE = 0x01, - AC_UPDATE = 0x01, - AC_APPEND = 0x02, - AC_DEACTIVATE = 0x03, - AC_LOCK = 0x03, - AC_ACTIVATE = 0x04, - AC_UNLOCK = 0x04, - AC_DELETE = 0x05, - AC_ADMIN = 0x06, - AC_CREATE = 0x07, - AC_INCREASE = 0x08, - AC_DECREASE = 0x09, - AC_TERMINATE = 0x0a, - - // Used for Objects - AC_USE = 0x00, - AC_CHANGE = 0x01, - AC_UNBLOCK = 0x02, - AC_GENKEY = 0x07, - AC_SIGN = 0x08, - AC_DEC = 0x09, - AC_ENC = 0x0a, - }; - - enum ACRange - { - AC_FIRST = AC_READ, - AC_LAST = AC_ENC, - }; - - // - // IAccessCondition - class IAccessCondition : public IRefCounted - { - public: - virtual IAccessCondition* Clone() const = 0; - - virtual const char* GetName() const = 0; - virtual ACType GetAcType() const = 0; - - virtual Blob& GetAccessRights() = 0; - virtual const Blob& GetAccessRights() const = 0; - - virtual IAccessCondition* ConvertAc(const IToken* token, ACType acdest) const = 0; - }; - - // - // IAcConverter - class IAcConverter - { - protected: - virtual ~IAcConverter() { } - - public: - virtual IAccessCondition* ConvertAc(const IAccessCondition* ac, ACType acdest) const = 0; - virtual Blob ConvertAc(const IAccessCondition* ac) const = 0; - virtual IAccessCondition* ConvertAc(const Blob& ac) const = 0; - }; - -} // namespace act - -#endif // ACT_IAccessConditions_h diff --git a/actlibrary/SLES-11-i686/Release/include/actIAgreementKey.h b/actlibrary/SLES-11-i686/Release/include/actIAgreementKey.h deleted file mode 100644 index 7ff4ef1..0000000 --- a/actlibrary/SLES-11-i686/Release/include/actIAgreementKey.h +++ /dev/null @@ -1,32 +0,0 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actIAgreementKey.h -// Product: cv act library -// Purpose: The abstract class IAgreementKey derived from IKey is the -// interface to all key agreements. -// -// Copyright: (c) 2000 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_IAgreementKey_H -#define ACT_IAgreementKey_H - -#include "actIKey.h" - -namespace act -{ - class IDerivator; - - class IAgreementKey : public IKey - { - public: - virtual void SetDerivator(IDerivator* derivator) = 0; - virtual const IDerivator* GetDerivator() const = 0; - virtual IDerivator* GetDerivator() = 0; - }; - -} // namespace act - -#endif // ACT_IAgreementKey_H diff --git a/actlibrary/SLES-11-i686/Release/include/actIAlgorithm.h b/actlibrary/SLES-11-i686/Release/include/actIAlgorithm.h deleted file mode 100644 index 23cdb2c..0000000 --- a/actlibrary/SLES-11-i686/Release/include/actIAlgorithm.h +++ /dev/null @@ -1,38 +0,0 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actIAlgorithm.h -// Product: cv act library -// Purpose: IAlgorithm is an abstract base. All concrete algorithm-classes are -// derived from IAlgorithm. -// -// Copyright: (c) 2000 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_IAlgorithm_h -#define ACT_IAlgorithm_h - -#include "actBasics.h" - -namespace act -{ - class Blob; - - class IAlgorithm - { - public: - virtual ~IAlgorithm() { } - - virtual void Write(const Blob& input) = 0; - virtual void Write(const byte* input, size_t insize) = 0; - virtual void Finalize() = 0; - virtual size_t GetAvailableSize() const = 0; - virtual size_t Read(Blob& output, size_t max = 0) = 0; - virtual size_t Read(byte* outbuffer, size_t buffersize) = 0; - virtual status_t GetStatus() const = 0; - }; - -} // namespace act - -#endif // ACT_IAlgorithm_h diff --git a/actlibrary/SLES-11-i686/Release/include/actIBlockCipher.h b/actlibrary/SLES-11-i686/Release/include/actIBlockCipher.h deleted file mode 100644 index 10338cd..0000000 --- a/actlibrary/SLES-11-i686/Release/include/actIBlockCipher.h +++ /dev/null @@ -1,53 +0,0 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actIBlockCipher.h -// Product: cv act library -// Purpose: The class IBlockCipher creates the symmetric BlockCypher, which is -// defined by IBockCipherKey and IBlockCipherMode. It offers operations -// like encrypt, decrypt and queries involving validity or keylength etc. -// -// Copyright: (c) 2000 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_IBlockCipher_h -#define ACT_IBlockCipher_h - -#include "actBasics.h" -#include - -namespace act -{ - - class Blob; - - class IBlockCipher - { - public: - virtual IBlockCipher* Clone() const =0; - virtual void Import( const Blob& indata ) =0; - virtual void Export( Blob& outdata ) const =0; - - virtual void SetRawKey( const Blob& keyblob ) =0; - virtual void GetRawKey( Blob& keyblob ) const =0; - - virtual void Encrypt(const byte* in,byte* out) const =0; - virtual void Decrypt(const byte* in,byte* out) const =0; - - virtual size_t GetKeySize(size_t keysize=0) const =0; - virtual size_t GetMinKeySize() const =0; - virtual size_t GetMaxKeySize() const =0; - virtual size_t GetNextKeySize(size_t prevsize) const =0; - virtual size_t GetBlockSize() const =0; - - virtual void* GetCreatePointer() const =0; - - virtual ~IBlockCipher() {}; - }; - - -}// namespace act - -#endif - diff --git a/actlibrary/SLES-11-i686/Release/include/actIBlockCipherKey.h b/actlibrary/SLES-11-i686/Release/include/actIBlockCipherKey.h deleted file mode 100644 index 3b93cd7..0000000 --- a/actlibrary/SLES-11-i686/Release/include/actIBlockCipherKey.h +++ /dev/null @@ -1,48 +0,0 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actIBlockCipherKey.h -// Product: cv act library -// Purpose: The class IBlockCipherKey extends the interface of the class IKey -// and supports the peculiarities of symmetric keys. -// -// -// Copyright: (c) 2000 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_IBlockCipherKey_h -#define ACT_IBlockCipherKey_h - -#include "actIKey.h" - -namespace act -{ - class IPadding; - class IBlockCipher; - class IBlockCipherMode; - class IDerivator; - - class IBlockCipherKey : public IKey - { - public: - virtual void SetPadding(IPadding* padding) = 0; - virtual const IPadding* GetPadding() const = 0; - virtual IPadding* GetPadding() = 0; - - virtual void SetCipher(IBlockCipher* cipher) = 0; - virtual const IBlockCipher* GetCipher() const = 0; - virtual IBlockCipher* GetCipher() = 0; - - virtual void SetMode(IBlockCipherMode* mode) = 0; - virtual const IBlockCipherMode* GetMode() const = 0; - virtual IBlockCipherMode* GetMode() = 0; - - virtual void SetDerivator(IDerivator* derive) = 0; - virtual const IDerivator* GetDerivator() const = 0; - virtual IDerivator* GetDerivator() = 0; - }; - -} //namespace act - -#endif // ACT_IBlockCipherKey_h diff --git a/actlibrary/SLES-11-i686/Release/include/actIBlockCipherMode.h b/actlibrary/SLES-11-i686/Release/include/actIBlockCipherMode.h deleted file mode 100644 index c6f5267..0000000 --- a/actlibrary/SLES-11-i686/Release/include/actIBlockCipherMode.h +++ /dev/null @@ -1,45 +0,0 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actIBlockCipherMode.h -// Product: cv act library -// Purpose: By using this interface every blockcipher-algorithm can be run in -// the modes CBC or ECB. Other modes e.g. OFB or CFB are supported. -// -// Copyright: (c) 2000 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_IBlockCipherMode_h -#define ACT_IBlockCipherMode_h - -#include "actBasics.h" - -namespace act -{ - class IBlockCipher; - class IAlgorithm; - class IPadding; - class Blob; - - class IBlockCipherMode - { - public: - virtual IBlockCipherMode* Clone() const =0; - virtual void Import(const Blob& indata) =0; - virtual void Export(Blob& outdata) const =0; - virtual void SetParam(paramid_t id, const Blob &blob) =0; - virtual void SetParam(paramid_t id, int val) =0; - virtual void SetParam(paramid_t id, const char* cstr) =0; - virtual int GetParam(paramid_t) const =0; - virtual void GetParam(paramid_t, Blob &blob) const =0; - virtual IAlgorithm* CreateEncAlgorithm(IBlockCipher* cipher, IPadding* padding, const Blob& iv) const=0; - virtual IAlgorithm* CreateDecAlgorithm(IBlockCipher* cipher, IPadding* padding) const=0; - virtual void* GetCreatePointer() const=0; - virtual ~IBlockCipherMode() {} - }; -} // namespace act - -#endif - - diff --git a/actlibrary/SLES-11-i686/Release/include/actICBCMACKey.h b/actlibrary/SLES-11-i686/Release/include/actICBCMACKey.h deleted file mode 100644 index d8dbe6c..0000000 --- a/actlibrary/SLES-11-i686/Release/include/actICBCMACKey.h +++ /dev/null @@ -1,31 +0,0 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actICBCMACKey.h -// Product: cv act library -// Purpose: interface for the class CBCMAC. -// -// Copyright: (c) 2000 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_ICBCMACKey_h -#define ACT_ICBCMACKey_h - -#include "actIMACKey.h" - -namespace act -{ - class IBlockCipher; - - class ICBCMACKey : public IMACKey - { - public: - virtual void SetCipher(IBlockCipher* cipher) = 0; - virtual const IBlockCipher* GetCipher() const = 0; - virtual IBlockCipher* GetCipher() = 0; - }; - -} // namespace act - -#endif // ACT_ICBCMACKey_h diff --git a/actlibrary/SLES-11-i686/Release/include/actICRL.h b/actlibrary/SLES-11-i686/Release/include/actICRL.h deleted file mode 100644 index 2bb598b..0000000 --- a/actlibrary/SLES-11-i686/Release/include/actICRL.h +++ /dev/null @@ -1,51 +0,0 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actICRL.h -// Product: cv act library -// Purpose: The abstract class ICRL (Certificate Revocation List) can be used -// to check whether a certificate has been revoked. -// -// Copyright: (c) 2000 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_ICRL_h -#define ACT_ICRL_h - -namespace act -{ - class IKey; - class ICertificate; - class Blob; - - class ICRL - { - public: - - virtual ICRL* Clone() const=0; - virtual void Import(const Blob& crlblob)=0; - virtual void Export(Blob& crlblob) const =0; - virtual void SetParam(paramid_t id,const Blob& blob) =0; - virtual void SetParam(paramid_t id,int val) =0; - virtual void SetParam(paramid_t id,const char* cstr) =0; - virtual void GetParam(paramid_t id,Blob& blob) const =0; - virtual int GetParam(paramid_t) const =0; - - virtual void Revoke(const ICertificate* cert) =0; - virtual bool IsRevoked(const ICertificate* Cert) const =0; - virtual void RemoveRevokation(const ICertificate* cert) =0; - - virtual void Revoke(const Blob& blob) = 0; - virtual bool IsRevoked(const Blob& blob) const = 0; - virtual void RemoveRevokation(const Blob& blob) = 0; - - virtual void Sign(const IKey* privkey) =0; - virtual int Verify(const IKey* pubkey) const =0; - virtual void* GetCreatePointer() const=0; - virtual ~ICRL() {}; - }; -} // namespace act - -#endif - diff --git a/actlibrary/SLES-11-i686/Release/include/actICertificate.h b/actlibrary/SLES-11-i686/Release/include/actICertificate.h deleted file mode 100644 index eadfe0b..0000000 --- a/actlibrary/SLES-11-i686/Release/include/actICertificate.h +++ /dev/null @@ -1,44 +0,0 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actICertificate.h -// Product: cv act library -// Purpose: The abstract class ICertificate enables access to a certificate, e.g. -// its public key and the corresponding validity. -// -// Copyright: (c) 2000 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_ICertificate_h -#define ACT_ICertificate_h - -#include "actBasics.h" -#include "actIParam.h" - -namespace act -{ - class IKey; - class Blob; - - class ICertificate : public IParam - { - public: - virtual ~ICertificate() { }; - - virtual ICertificate* Clone() const = 0; - virtual void Import(const Blob& certblob) = 0; - virtual void Export(Blob& certblob) const = 0; - - virtual void SetPublicKey(const IKey* pubkey) = 0; - virtual IKey* CreatePublicKey(const char* = 0) const = 0; - - virtual void Sign(const IKey* privkey) = 0; - virtual int Verify(const IKey* pubkey) const = 0; - - virtual void* GetCreatePointer() const = 0; - }; - -} // namespace act - -#endif // ACT_ICertificate_h diff --git a/actlibrary/SLES-11-i686/Release/include/actIDerivator.h b/actlibrary/SLES-11-i686/Release/include/actIDerivator.h deleted file mode 100644 index e8b7140..0000000 --- a/actlibrary/SLES-11-i686/Release/include/actIDerivator.h +++ /dev/null @@ -1,45 +0,0 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actIDerivator.h -// Product: cv act library -// Purpose: This interface provides a shared secret key (the last step in -// a Key Agreement Scheme). -// -// Copyright: (c) 2006 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_IDerivator_h -#define ACT_IDerivator_h - -#include"actBasics.h" - -namespace act -{ - class Blob; - - class IDerivator - { - public: - virtual IDerivator* Clone() const=0; - - virtual void Import(const Blob &blob)=0; - virtual void Export(Blob &blob) const=0; - - virtual void SetParam(paramid_t id,const Blob &blob)=0; - virtual void SetParam(paramid_t id,int val)=0; - virtual void SetParam(paramid_t id,const char* cstr)=0; - virtual void GetParam(paramid_t id,Blob &blob) const=0; - virtual int GetParam(paramid_t) const=0; - - virtual void Derive(const Blob& secret, const Blob& salt, Blob& keymat) const=0; - - virtual void* GetCreatePointer() const =0; - virtual ~IDerivator() {} - }; -} // namespace act - -#endif - - diff --git a/actlibrary/SLES-11-i686/Release/include/actIDerivatorWithHash.h b/actlibrary/SLES-11-i686/Release/include/actIDerivatorWithHash.h deleted file mode 100644 index b1bdaf9..0000000 --- a/actlibrary/SLES-11-i686/Release/include/actIDerivatorWithHash.h +++ /dev/null @@ -1,33 +0,0 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actIDerivatorWithHash.h -// Product: cv act library -// Purpose: The abstract class IDerivatorWithHash is derived from IDerivator and -// uses hash algorithms. -// -// Copyright: (c) 2000 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_IDerivatorWithHash_h -#define ACT_IDerivatorWithHash_h - -#include "actIDerivator.h" - -namespace act -{ - class IHashAlg; - - class IDerivatorWithHash : public IDerivator - { - public: - virtual void SetHash(IHashAlg* hash) =0; - virtual const IHashAlg* GetHash() const =0; - virtual IHashAlg* GetHash() =0; - }; -} // namespace act - -#endif - - diff --git a/actlibrary/SLES-11-i686/Release/include/actIEMSAAlg.h b/actlibrary/SLES-11-i686/Release/include/actIEMSAAlg.h deleted file mode 100644 index 0aaec1d..0000000 --- a/actlibrary/SLES-11-i686/Release/include/actIEMSAAlg.h +++ /dev/null @@ -1,49 +0,0 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actIEMSAAlg.h -// Product: cv act library -// Purpose: IEMSAAlg (Encoding Methods for Signatures with Appendix) is an -// abstract class derived from IAlgorithm. Encoding methods do not -// use keys. These algorithms prepare the data to sign. They can be -// implemented with or without hash functions. -// -// Copyright: (c) 2000 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_IEMSAAlg_h -#define ACT_IEMSAAlg_h - -#include "actBasics.h" -#include "actIAlgorithm.h" - -namespace act -{ - - class IEMSAAlg : public IAlgorithm - { - public: - virtual IEMSAAlg* Clone() const =0; - - virtual void Import(const Blob &blob) =0; - virtual void Export(Blob &blob) const =0; - virtual void SetParam(paramid_t id,const Blob &blob) =0; - virtual void SetParam(paramid_t id,int val) =0; - virtual void SetParam(paramid_t id,const char* cstr) =0; - virtual void GetParam(paramid_t id,Blob &blob) const =0; - virtual int GetParam(paramid_t) const =0; - - virtual void Reset(size_t sizeinbits) =0; - - virtual void* GetCreatePointer() const =0; - - virtual bool Verify(const Blob &em, const Blob &sig_inv) =0; - - virtual ~IEMSAAlg(){} - }; -} // namespace act - -#endif - - diff --git a/actlibrary/SLES-11-i686/Release/include/actIEMSAWithHashAlg.h b/actlibrary/SLES-11-i686/Release/include/actIEMSAWithHashAlg.h deleted file mode 100644 index 9a928c1..0000000 --- a/actlibrary/SLES-11-i686/Release/include/actIEMSAWithHashAlg.h +++ /dev/null @@ -1,34 +0,0 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actIEMSAWithHashAlg.h -// Product: cv act library -// Purpose: IEMSAWithHashAlg is the abstract class derived from IEMSAAlg -// which provides access on the aggregated hashobject of an -// EMSA-object. -// -// Copyright: (c) 2000 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_IEMSAWithHashAlg_h -#define ACT_IEMSAWithHashAlg_h - -#include "actIEMSAAlg.h" - -namespace act -{ - class IHashAlg; - - class IEMSAWithHashAlg : public IEMSAAlg - { - public: - virtual void SetHash(IHashAlg* hash) =0; - virtual const IHashAlg* GetHash() const =0; - virtual IHashAlg* GetHash() =0; - }; -} // namespace act - -#endif - - diff --git a/actlibrary/SLES-11-i686/Release/include/actIEventHandler.h b/actlibrary/SLES-11-i686/Release/include/actIEventHandler.h deleted file mode 100644 index 115662f..0000000 --- a/actlibrary/SLES-11-i686/Release/include/actIEventHandler.h +++ /dev/null @@ -1,54 +0,0 @@ -// --------------------------------------------------------------------------- -// Name: actIEventHandler.h -// Product: cv act library -// Purpose: Interfaces required to receive token, slot or subsystem events -// -// Copyright: (c) 2002 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -// -// Autor: Dr. Xiangdong Wang (XWG) -// Markus Tesche -// Date: 03/26/2002 -// --------------------------------------------------------------------------- - -#ifndef ACT_IEventHandler_h -#define ACT_IEventHandler_h - -#include "actTypeTags.h" -#include "actIRefCounted.h" - -namespace act -{ - enum EventCode - { - TOKEN_REMOVED = 0x00000010, - TOKEN_INSERTED = 0x00000020, - SLOT_REMOVED = 0x00000040, - SLOT_INSERTED = 0x00000080, - SUBSYSTEM_STOPPED = 0x00000100, - SUBSYSTEM_STARTED = 0x00000200, - MONITORING_STOPPED = 0x00000400, - MONITORING_STARTED = 0x00000800, - MONITORING_ERROR = 0x80000000, - }; - - class ISubsystem; - class IEventMonitoring; - - // - // IEventHandler - class IEventHandler : public IRefCounted - { - public: - virtual IEventHandler* Clone() = 0; - virtual void Source(IEventMonitoring* source) = 0; - virtual void OnEvent(int event, ISubsystem* source) = 0; - }; - - typedef TypeTag TagEH; - -} // namespace act - -#endif // ACT_IEventHandler_h diff --git a/actlibrary/SLES-11-i686/Release/include/actIEventMonitoring.h b/actlibrary/SLES-11-i686/Release/include/actIEventMonitoring.h deleted file mode 100644 index 0aee7db..0000000 --- a/actlibrary/SLES-11-i686/Release/include/actIEventMonitoring.h +++ /dev/null @@ -1,36 +0,0 @@ -// --------------------------------------------------------------------------- -// Name: actIEventMonitoring.h -// Product: cv act library -// Purpose: Interface for event monitoring enabled objects. -// -// Copyright: (c) 2010 cv cryptovision GmbH -// all rights reserved. -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -// -// Autor: Markus Tesche (MTE) -// Date: 08/20/2010 -// --------------------------------------------------------------------------- - -#ifndef ACT_IEventMonitoring_h -#define ACT_IEventMonitoring_h - -namespace act -{ - class IEventHandler; - - // - // IEventMonitoring - class IEventMonitoring - { - public: - virtual ~IEventMonitoring() { } - - virtual bool IsMonitored() const = 0; - virtual void StopMonitor(bool force = false) = 0; - virtual void StartMonitor(IEventHandler* cmd) = 0; - }; - -} // namespace act - -#endif // ACT_IEventMonitoring_h diff --git a/actlibrary/SLES-11-i686/Release/include/actIHashAlg.h b/actlibrary/SLES-11-i686/Release/include/actIHashAlg.h deleted file mode 100644 index 8620c51..0000000 --- a/actlibrary/SLES-11-i686/Release/include/actIHashAlg.h +++ /dev/null @@ -1,42 +0,0 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actIHashAlg.h -// Product: cv act library -// Purpose: IHashAlg is an abstract base class, which provides the interface -// of all hash-algorithms. -// -// Copyright: (c) 2000 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_IHASHALG_H -#define ACT_IHASHALG_H - -#include "actIAlgorithm.h" - -namespace act -{ - - class IHashAlg : public IAlgorithm - { - public: - virtual IHashAlg* Clone() const =0; - virtual void Import(const Blob& indata) =0; - virtual void Export(Blob& outdata) const =0; - virtual void SetParam(paramid_t id,const Blob &blob) =0; - virtual void SetParam(paramid_t id,int val) =0; - virtual void SetParam(paramid_t id,const char* cstr) =0; - virtual void GetParam(paramid_t id,Blob &blob) const =0; - virtual int GetParam(paramid_t) const =0; - virtual size_t GetBlockSize() const = 0; - virtual size_t GetHashSize() const = 0; - virtual void Reset() =0; - virtual void* GetCreatePointer() const =0; - virtual ~IHashAlg() {} - }; - -} // namespace act -#endif - - diff --git a/actlibrary/SLES-11-i686/Release/include/actIHashMACKey.h b/actlibrary/SLES-11-i686/Release/include/actIHashMACKey.h deleted file mode 100644 index 29719fe..0000000 --- a/actlibrary/SLES-11-i686/Release/include/actIHashMACKey.h +++ /dev/null @@ -1,32 +0,0 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actIHashMacKey.h -// Product: cv act library -// Purpose: interface for the class HashMAC -// -// Copyright: (c) 2000 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_IHashMACKey_h -#define ACT_IHashMACKey_h - -#include "actIMACKey.h" - -namespace act -{ - class IHashAlg; - - class IHashMACKey : public IMACKey - { - public: - virtual void SetHash(IHashAlg* cipher) =0; - virtual const IHashAlg* GetHash() const =0; - virtual IHashAlg* GetHash() =0; - }; - -} // namespace act - -#endif - diff --git a/actlibrary/SLES-11-i686/Release/include/actIIESKey.h b/actlibrary/SLES-11-i686/Release/include/actIIESKey.h deleted file mode 100644 index e54a7f4..0000000 --- a/actlibrary/SLES-11-i686/Release/include/actIIESKey.h +++ /dev/null @@ -1,35 +0,0 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actIIESKey.h -// Product: cv act library -// Purpose: The interface IIESKey enables access to the aggregated objects of -// an IES-key, like DL-IES or EC-IES. -// -// Copyright: (c) 2000 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_IIESKey_H -#define ACT_IIESKey_H - -#include "actIKey.h" - -namespace act -{ - class IAgreementKey; - class IMACKey; - - class IIESKey : public IKey - { - public: - virtual void SetMAC(IMACKey* mac) =0; - virtual const IMACKey* GetMAC() const =0; - virtual IMACKey* GetMAC() =0; - virtual void SetAgreement(IAgreementKey* derivator) =0; - virtual const IAgreementKey* GetAgreement() const =0; - virtual IAgreementKey* GetAgreement() =0; - }; -} // act -#endif - diff --git a/actlibrary/SLES-11-i686/Release/include/actIKey.h b/actlibrary/SLES-11-i686/Release/include/actIKey.h deleted file mode 100644 index 3ed1a9e..0000000 --- a/actlibrary/SLES-11-i686/Release/include/actIKey.h +++ /dev/null @@ -1,45 +0,0 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actIKey.h -// Product: cv act library -// Purpose: IKey is an abstract base class. All concrete Key-classes are -// derived from IKey. -// -// Copyright: (c) 2000 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_IKey_h -#define ACT_IKey_h - -#include "actIParam.h" -#include "actBlob.h" - -namespace act -{ - class IAlgorithm; - class IRNGAlg; - - class IKey : public IParam - { - public: - virtual ~IKey() { } - - virtual IKey* Clone() const = 0; - - virtual void Import(const Blob& keyblob) = 0; - virtual void Export(Blob& keyblob, export_t type = DEFAULT) const = 0; - - virtual void Generate(IRNGAlg* prng = 0) = 0; - virtual void Derive(const Blob& data, const Blob& salt = Blob()) = 0; - - virtual IAlgorithm* CreateAlgorithm(mode_t Mode) const = 0; - virtual IAlgorithm* CreateAlgorithm(mode_t Mode, const Blob& data) const = 0; - - virtual void* GetCreatePointer() const = 0; - }; - -} // namespace act - -#endif // ACT_IKey_h diff --git a/actlibrary/SLES-11-i686/Release/include/actIKeyDerivation.h b/actlibrary/SLES-11-i686/Release/include/actIKeyDerivation.h deleted file mode 100644 index f8909eb..0000000 --- a/actlibrary/SLES-11-i686/Release/include/actIKeyDerivation.h +++ /dev/null @@ -1,70 +0,0 @@ -// --------------------------------------------------------------------------- -// Name: actIKeyDerivation.h -// Product: cv act library -// Purpose: IKeyDerivation for general prupose -// -// Copyright: (c) 2003-2010 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -// -// Autor: Ulrich Birkenhauer -// Markus Tesche -// Date: 07/05/2010 -// --------------------------------------------------------------------------- - -#ifndef ACT_IKeyDerivation_h -#define ACT_IKeyDerivation_h - -#include "actMove.h" -#include "actMode.h" - -#include "actIParam.h" -#include "actIRefCounted.h" - -namespace act -{ - enum KDParam - { - KD_DATA = SALT, - KD_HASH = HASH, - KD_SERIAL = SERIALNR, - KD_DERIVATOR = DERIVATOR, - KD_MODE = BCMODE, // key configuration - KD_PADDING = PADDING, // key configuration - }; - - enum KDMode - { - KD_MODE_DEFAULT = 0, - KD_MODE_CARD_MANAGER, - - KD_MODE_LAST - }; - - class IKeyDerivation; - class IBlockCipherKey; - - typedef void (*DerivationFunc)(IKeyDerivation* owner, const Blob& data, - Blob& k_enc, Blob& k_mac, Blob& k_kek); - - // - // IKeyDerivation - class IKeyDerivation - : public IParam - , public IRefCounted - { - public: - virtual Blob Derive(const Blob& deriveData) = 0; - virtual void Derive(uint mode, const Blob& data, Blob& k_enc, Blob& k_mac) = 0; - virtual void Derive(uint mode, const Blob& data, Blob& k_enc, Blob& k_mac, Blob& k_kek) = 0; - - virtual void SetKey(IBlockCipherKey* key) = 0; - // - // If mode already registered, it will be overwritten and the previous will be returned. - virtual DerivationFunc Register(uint mode, DerivationFunc df) = 0; - }; - -} // namespace act - -#endif // ACT_IKeyDerivation_h diff --git a/actlibrary/SLES-11-i686/Release/include/actIKeyFactory.h b/actlibrary/SLES-11-i686/Release/include/actIKeyFactory.h deleted file mode 100644 index 711d883..0000000 --- a/actlibrary/SLES-11-i686/Release/include/actIKeyFactory.h +++ /dev/null @@ -1,48 +0,0 @@ -// --------------------------------------------------------------------------- -// Name: actIKeyFactory.h -// Product: cv act library -// Purpose: IKeyFactory and IKeyFactoryChain interface -// -// Copyright: (c) 2008 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -// -// Autor: Markus Tesche -// Date: 05/18/2008 -// --------------------------------------------------------------------------- - -#ifndef ACT_IKeyFactory_h -#define ACT_IKeyFactory_h - -#include "actTokenBase.h" - -namespace act -{ - class ITokenKey; - class ITokenBlockCipher; - class ITokenBlockCipherKey; - - class IKeyFactory - { - protected: - virtual ~IKeyFactory() - { } - - public: - virtual ITokenKey* CreateKey(int type, FileInfo& fi, int usage, bool cleartoken) = 0; - - virtual ITokenBlockCipher* CreateBlockCipher(FileInfo& fi) = 0; - virtual ITokenBlockCipherKey* CreateBlockCipherKey(ITokenBlockCipher* cipher, bool cleartoken) = 0; - virtual ITokenBlockCipherKey* CreateBlockCipherAndKey(FileInfo& fi, bool cleartoken) = 0; - }; - - class IKeyFactoryChain : public IKeyFactory - { - public: - virtual void SetNext(IKeyFactoryChain* next) = 0; - }; - -} // namespace act - -#endif // ACT_IKeyFactory_h diff --git a/actlibrary/SLES-11-i686/Release/include/actIMACKey.h b/actlibrary/SLES-11-i686/Release/include/actIMACKey.h deleted file mode 100644 index b630e74..0000000 --- a/actlibrary/SLES-11-i686/Release/include/actIMACKey.h +++ /dev/null @@ -1,27 +0,0 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actIMACKEY.h -// Product: cv act library -// Purpose: interface for the class CBCMAC -// -// Copyright: (c) 2000 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_IMACKey_h -#define ACT_IMACKey_h - -#include "actIKey.h" - -namespace act -{ - class IMACKey : public IKey - { - public: - virtual const char* KeyName() const = 0; - }; - -} // namespace act - -#endif // ACT_IMACKey_h diff --git a/actlibrary/SLES-11-i686/Release/include/actIPKCS15Behavior.h b/actlibrary/SLES-11-i686/Release/include/actIPKCS15Behavior.h deleted file mode 100644 index 174cd51..0000000 --- a/actlibrary/SLES-11-i686/Release/include/actIPKCS15Behavior.h +++ /dev/null @@ -1,89 +0,0 @@ -// --------------------------------------------------------------------------- -// Name: actIPKCS15Behavior.h -// Product: cv act library -// Purpose: IPKCS15Behavior interface, encapsulates Manufacturer specific logic -// for PKCS15 to cvProfile mapping. -// -// Copyright: (c) 2002-2008 cv cryptovision GmbH all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -// -// Autor: Markus Tesche -// Date: 06/02/2008 -// --------------------------------------------------------------------------- - -#ifndef ACT_IPKCS15Behavior_h -#define ACT_IPKCS15Behavior_h - -#include "actISCardOSBehavior.h" - -#include "cvProfileInfos.h" - -namespace act -{ - class IAuthIdRef; - - class IToken; - class ITokenPIN; - class ITokenKey; - class ITokenFile; - class ITokenFileMap; - class ISecurityManager; - class ITokenBlockCipherKey; - - class PKCS15Container; - struct PKCS15Path; - struct PKCS15Object; - - // - // IPKCS15Behavior - class IPKCS15Behavior : public ISCardOSBehavior - { - public: - virtual void Init(IToken* token) = 0; - - virtual int GetTokenType(const IToken* token) const throw() = 0; - virtual void GetProfileCapabilities(ITokenConfig* tkcfg) const = 0; - - virtual bool IsReadOnly() const = 0; - virtual const Blob& GetMID() const = 0; - - // Returns a valid instance or throws ! - virtual ITokenFile* GetPath() const = 0; - virtual ITokenFile* GetTokenFile(const Blob& p15path) = 0; - virtual ITokenFile* GetTokenFile(const PKCS15Path& p15path) = 0; - - virtual ITokenPIN* GetPin(IToken* token, const PKCS15Object& p15object, bool use_obj_ref = false) = 0; - - // NOTE: If one of these functions return false, the object gets destroyed - // and is not added to the corresponding collection, therefore not accessable! - virtual bool InitTokenPIN(ITokenPIN* pin, const PKCS15Object& p15object) = 0; - virtual bool InitTokenKey(ITokenKey* key, const FileInfo& fi, int usage, const PKCS15Object& p15object) = 0; - virtual bool InitTokenKey(ITokenBlockCipherKey* key, const FileInfo& fi, const PKCS15Object& p15object) = 0; - - virtual FIDType GetFirstFID(byte obj_type, size_t key_size = 0) const = 0; - virtual void GetObjectInfo(FIDType fid, Blob& object_path, byte* obj_ref, byte obj_type, size_t key_size = 0) const = 0; - - virtual FIDType TransformKeyReference(FIDType id, bool to_on_card_reference = false, bool* bReference = 0) const = 0; - - virtual FIDType GetNativeFID(byte obj_type, const FIDType fid, byte object_reference = 0) const = 0; - - virtual void GetRelativeFilePath(Blob& absolute_filepath) const = 0; - - virtual const Blob& GetACTokenRights() const = 0; - virtual Blob GetAccessRights(const ITokenPIN* pin, byte obj_type) const = 0; - virtual Blob GetAccessRights(IAuthIdRef* authIdRef, IAuthIdRef* parentAuthIdRef, byte obj_type) const = 0; - - virtual ISecurityManager* SecurityManager(IToken* token, int authManagerType) const = 0; - virtual void CreateAuthObj(ITokenPIN* pin, byte obj_type) const = 0; - - virtual bool GetNativePubKeySupport() const = 0; - virtual Blob ReadNativePublicKey(ISCardOS* os, FIDType fid) const = 0; - virtual Blob ReadNativeECPublicKey(ISCardOS* os, FIDType fid) const = 0; - virtual FIDType GetNativePubKeyInfo(FIDType priv_key_fid, const PublicKeyInfo& info, - PKCS15Object& p15object) const = 0; - }; - -} // namespace act - -#endif // ACT_IPKCS15Behavior_h diff --git a/actlibrary/SLES-11-i686/Release/include/actIPadding.h b/actlibrary/SLES-11-i686/Release/include/actIPadding.h deleted file mode 100644 index c916e21..0000000 --- a/actlibrary/SLES-11-i686/Release/include/actIPadding.h +++ /dev/null @@ -1,47 +0,0 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actIPadding.h -// Product: cv act library -// Purpose: With the abstract class IPadding input data can be filled to obtain -// a certain length and also to invert this process. E.g. PKCS1-v1_5 is -// a padding. -// -// Copyright: (c) 2000 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_IPadding_h -#define ACT_IPadding_h -#include "actBasics.h" - -namespace act -{ - - class Blob; - - class IPadding - { - public: - - virtual IPadding* Clone() const=0; - - virtual void Import(const Blob& indata) =0; - virtual void Export(Blob& outdata) const =0; - virtual void SetParam(paramid_t id,const Blob &blob) =0; - virtual void SetParam(paramid_t id,int val) =0; - virtual void SetParam(paramid_t id,const char* cstr) =0; - virtual void GetParam(paramid_t id,Blob &blob) const =0; - virtual int GetParam(paramid_t) const =0; - - virtual void Pad(Blob& Buffer, size_t len) const =0; - virtual size_t Unpad(Blob& Buffer) const =0; - - virtual void* GetCreatePointer() const =0; - virtual ~IPadding() {} - }; - - -} //namespace act -#endif - diff --git a/actlibrary/SLES-11-i686/Release/include/actIParam.h b/actlibrary/SLES-11-i686/Release/include/actIParam.h deleted file mode 100644 index ee8d26b..0000000 --- a/actlibrary/SLES-11-i686/Release/include/actIParam.h +++ /dev/null @@ -1,67 +0,0 @@ -// --------------------------------------------------------------------------- -// Name: actIParam.h -// Product: cv act library -// Purpose: Declares act::IParam interface. -// -// Copyright: (c) 2006 cv cryptovision GmbH -// all rights reserved. -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -// -// Autor: Markus Tesche (MTE) -// Date: 3/1/2006 -// --------------------------------------------------------------------------- - -#ifndef ACT_IParam_h -#define ACT_IParam_h - -#include "actBasics.h" - -namespace act -{ - class Blob; - - enum - { - PARAM_ANY = -3, - PARAM_UNKNOWN_SIZE = -2, - PARAM_INVALID_VALUE = -1, - PARAM_FALSE = 0, - PARAM_TRUE = 1 - }; - - static inline int param_bool(bool value) - { - return value == true ? PARAM_TRUE : PARAM_FALSE; - } - - // - // IParam - class IParam - { - public: - virtual ~IParam() { } - - virtual void SetParam(paramid_t id, int value) = 0; - virtual void SetParam(paramid_t id, const char* value) = 0; - virtual void SetParam(paramid_t id, const Blob& value) = 0; - - // - // Get value for id, otherwise PARAM_INVALID_VALUE. - // NOTE: May throws an act::Exception derived exception. - virtual int GetParam(paramid_t id) const = 0; - - // - // Get value for id, returns size[PARAM_UNKNOWN_SIZE|0-n] or PARAM_INVALID_VALUE. - // NOTE: May throws an act::Exception derived exception. - virtual size_t GetParam(paramid_t id, const char** value) const = 0; - - // - // Get value for id, returns size[PARAM_UNKNOWN_SIZE|0-n] or PARAM_INVALID_VALUE. - // NOTE: May throws an act::Exception derived exception. - virtual size_t GetParam(paramid_t id, Blob& value) const = 0; - }; - -} // namespace act - -#endif // ACT_IParam_h diff --git a/actlibrary/SLES-11-i686/Release/include/actIRNGAlg.h b/actlibrary/SLES-11-i686/Release/include/actIRNGAlg.h deleted file mode 100644 index 521be1d..0000000 --- a/actlibrary/SLES-11-i686/Release/include/actIRNGAlg.h +++ /dev/null @@ -1,38 +0,0 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actIRNGAlg.h -// Product: cv act library -// Purpose: IRNGAlg is the interface for Random Number Generators. -// -// Copyright: (c) 2000 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_IRNGAlg_h -#define ACT_IRNGAlg_h - -#include "actIAlgorithm.h" - -namespace act -{ - class Blob; - - class IRNGAlg : public IAlgorithm - { - public: - virtual IRNGAlg* Clone() const = 0; - virtual void Import(const Blob& keyblob) = 0; - virtual void Export(Blob& keyblob) const = 0; - virtual void SetParam(paramid_t id, const Blob& blob) = 0; - virtual void SetParam(paramid_t id, int val) = 0; - virtual void SetParam(paramid_t id, const char* cstr) = 0; - virtual int GetParam(paramid_t id) const = 0; - virtual void GetParam(paramid_t id, Blob& blob) const = 0; - - virtual void* GetCreatePointer() const = 0; - }; - -} // namespace act - -#endif // ACT_IRNGAlg_h diff --git a/actlibrary/SLES-11-i686/Release/include/actIRSAKey.h b/actlibrary/SLES-11-i686/Release/include/actIRSAKey.h deleted file mode 100644 index 96bcdac..0000000 --- a/actlibrary/SLES-11-i686/Release/include/actIRSAKey.h +++ /dev/null @@ -1,32 +0,0 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actIRSAKey.h -// Product: cv act library -// Purpose: IRSAKey is the interface for the class IRSAKey enabling access to -// the aggregated padding-object of an RSAKeys. -// -// Copyright: (c) 2000 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_IRSAKey_h -#define ACT_IRSAKey_h - -#include "actISignatureKey.h" - -namespace act -{ - class IPadding; - - class IRSAKey : public ISignatureKey - { - public: - virtual void SetPadding(IPadding* padding) = 0; - virtual const IPadding* GetPadding() const = 0; - virtual IPadding* GetPadding() = 0; - }; - -} // namespace act - -#endif // ACT_IRSAKey_h diff --git a/actlibrary/SLES-11-i686/Release/include/actIRefCounted.h b/actlibrary/SLES-11-i686/Release/include/actIRefCounted.h deleted file mode 100644 index 5c66ef0..0000000 --- a/actlibrary/SLES-11-i686/Release/include/actIRefCounted.h +++ /dev/null @@ -1,33 +0,0 @@ -// --------------------------------------------------------------------------- -// Name: actIRefCounted.h -// Product: cv act library -// Purpose: The IRefCounted interface. -// -// Copyright: (c) 2006 cv cryptovision GmbH -// all rights reserved. -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -// -// Autor: Markus Tesche (MTE) -// Date: 1/18/2006 -// --------------------------------------------------------------------------- - -#ifndef ACT_IRefCounted_h -#define ACT_IRefCounted_h - -namespace act -{ - // - // IRefCounted, methods for reference counting. - class IRefCounted - { - public: - virtual ~IRefCounted() { } - - virtual void AddRef() = 0; - virtual void Release() = 0; - }; - -} // namespace act - -#endif // ACT_IRefCounted_h diff --git a/actlibrary/SLES-11-i686/Release/include/actISCardAccess.h b/actlibrary/SLES-11-i686/Release/include/actISCardAccess.h deleted file mode 100644 index 3f59b31..0000000 --- a/actlibrary/SLES-11-i686/Release/include/actISCardAccess.h +++ /dev/null @@ -1,198 +0,0 @@ -// --------------------------------------------------------------------------- -// Name: actISCardAccess.h -// Product: cv act library -// Purpose: The class ISCardAccess manages the operations with the smartcards and readers -// -// Copyright: (c) 2002 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -// -// Autor: Dr. Xiangdong Wang (XWG) -// Date: 03/21/2002 -// --------------------------------------------------------------------------- - -#ifndef ACT_ISCardAccess_h -#define ACT_ISCardAccess_h - -#include "actBlob.h" -#include "actIRefCounted.h" -#include "actISynchronize.h" - -namespace act -{ - class SyncObject; - - const ushort RESPONSE_MAXLEN = 2048; - - enum ReturnCode - { - APDU_RESPONSE_MASK = 0xffff, - - APDU_OK = 0x9000, - APDU_OK1 = 0x9001, - - // error codes defined in ISO7816-4 - APDU_STATE_UNCHANGED = 0x6200, - APDU_RETURN_CORRUPTED = 0x6281, - APDU_END_REACHED = 0x6282, - APDU_SELECTFILE_INVALID = 0x6283, - APDU_FCI_FORMAT = 0x6284, - - APDU_AUTHEN_FAILED = 0x6300, - APDU_RETRY_COUNTER = 0x63C0, - APDU_FILE_FILLED_UP = 0x6381, - - APDU_STATE_UNCHANGED2 = 0x6400, - - APDU_STATE_CHANGED = 0x6500, - APDU_MEMORY_FAILURE = 0x6581, - - APDU_SECURITY_ERROR = 0x6600, // not defined in ISO7816 - - APDU_WRONG_LEN = 0x6700, - - APDU_NO_CLA_FUNCTION = 0x6800, - APDU_NO_LOGICAL_CHANNEL = 0x6881, - APDU_NO_SM = 0x6882, - - APDU_CMD_NOT_ALLOWED = 0x6900, - APDU_CMD_INCOMPATIBLE = 0x6981, - APDU_SECURITY_STATE = 0x6982, - APDU_AUTHEN_BLOCKED = 0x6983, - APDU_REF_DATA_INVALID = 0x6984, - APDU_NO_CONDITION = 0x6985, - APDU_CMD_EF_NOT_ALLOWED = 0x6986, - APDU_SM_DATA_MISSING = 0x6987, - APDU_SM_DATA_INCORRECT = 0x6988, - - APDU_WRONG_PARAMETER = 0x6A00, - APDU_WRONG_DATA = 0x6A80, - APDU_FUNCTION_NOT_SUPPORTED = 0x6A81, - APDU_FILE_NOT_FOUND = 0x6A82, - APDU_RECORD_NOT_FOUND = 0x6A83, - APDU_NOT_ENOUGH_MEMORY = 0x6A84, - APDU_LC_TLV_INCONSISTENT = 0x6A85, - APDU_INVALID_P1P2 = 0x6A86, - APDU_LC_P1P2_INCONSISTENT = 0x6A87, - APDU_REF_DATA_NOT_FOUND = 0x6A88, - APDU_FILE_ALREADY_EXISTS = 0x6A89, - - APDU_WRONG_PARAMETER2 = 0x6B00, - - APDU_WRONG_LE = 0x6C00, - - APDU_INS_INVALID = 0x6D00, - - APDU_CLA_INVALID = 0x6E00, - - APDU_TECHNICAL_ERROR = 0x6F00, - - - // other error codes depend on card OS - APDU_NO_ICC = 0x64A1, - APDU_PROTOCOL_ERROR = 0x64A8, - - APDU_NO_AC_RIGHT = 0x6982, - APDU_PIN_LOCKED = 0x6983, - APDU_PIN_FORMAT_ERROR = 0x6984, - - APDU_OBJECT_NOT_FOUND = 0x6A88, - - APDU_KEYGEN_FAILED = 0x6F83, // ACOS - - - // JavaCardOS - APDU_MORE_DATA_AVAILABLE = 0x6310, - APDU_APPLET_SELECTION_FAILED = 0x6999, - APDU_PIN_FAILED = 0x69C0, - APDU_ASSERT = 0x6FFF, - APDU_ASSERT_NOTRANSACTION = 0x6FFE, - }; - - enum ProtocolType - { - PROTOCOL_UNDEFINED = 0x00000, // There is no active protocol. - PROTOCOL_T0 = 0x00001, // T=0 is the active protocol. - PROTOCOL_T1 = 0x00002, // T=1 is the active protocol. - PROTOCOL_RAW = 0x10000 // Raw is the active protocol. - }; - - enum DispositionType - { - LEAVE_CARD = 0, // Don't do anything special. - RESET_CARD = 1, // Reset the card. - UNPOWER_CARD = 2, // Power down the card. - EJECT_CARD = 3 // Eject the card. - }; - - inline bool APDUSUCCESS(word sw1sw2) - { - return sw1sw2 == act::APDU_OK - || sw1sw2 == act::APDU_OK1; - } - - // extract - template - inline word apdu_response(const ExceptionT& e) - { - return word(e.code() & APDU_RESPONSE_MASK); - } - - // LengthInfo - struct LengthInfo; - typedef LengthInfo VerifyInfo; - - class ISlot; - class ISCardSM; - - // --------------------------------------------------------------------------- - class ISCardAccess - : public IRefCounted - , public ISynchronize - { - public: - virtual ~ISCardAccess() - { } - - virtual long GetProtocol() const = 0; - virtual void SetProtocol(long protocol) = 0; - - virtual ulong GetTimeout() const = 0; - virtual bool SetTimeout(ulong timeout_msec) = 0; - - virtual void Open() = 0; - virtual void Close() = 0; - virtual void ResetCard() = 0; - virtual long CancelCardOperation() = 0; - - virtual void BeginTransaction() = 0; - virtual void EndTransaction(DispositionType disposition = LEAVE_CARD) = 0; - virtual ulong GetTransactionDepth() const = 0; - - virtual const ISlot* GetSlot() const = 0; - - virtual word SendCard(const Blob& cmd, Blob& response, ushort response_len = RESPONSE_MAXLEN) = 0; - - virtual Blob GetResponse() const = 0; - virtual Blob& GetResponse(Blob& response) const = 0; - - virtual word Send(const Blob& cmd) = 0; - virtual word Send(const Blob& header, const Blob& data) = 0; - virtual word Send(const Blob& header, const Blob& data, byte le) = 0; - - // Extended APDU - virtual word SendX(const Blob& header, const Blob& data) = 0; - virtual word SendX(const Blob& header, const Blob& data, ushort le) = 0; - - // Secure Pin Entry - virtual word SendVerifyToReader(const Blob& apdu, const VerifyInfo& info) = 0; - - // Secure Messaging - virtual ISCardSM* GetSM() const = 0; - virtual void SetSM(ISCardSM* sm) = 0; - }; - -} // namespace act - -#endif // ACT_ISCardAccess_h diff --git a/actlibrary/SLES-11-i686/Release/include/actISCardOS.h b/actlibrary/SLES-11-i686/Release/include/actISCardOS.h deleted file mode 100644 index 53f2d62..0000000 --- a/actlibrary/SLES-11-i686/Release/include/actISCardOS.h +++ /dev/null @@ -1,262 +0,0 @@ -// --------------------------------------------------------------------------- -// Name: actISCardOS.h -// Product: cv act library -// Purpose: The class ISCardOS accesses the card operating system -// -// Copyright: (c) 2002 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -// -// Autor: Dr. Xiangdong Wang (XWG) -// Date: 03/21/2002 -// --------------------------------------------------------------------------- - -#ifndef ACT_ISCardOS_h -#define ACT_ISCardOS_h - -#include "actBlob.h" -#include "actTokenBase.h" - -#include "actITokenPIN.h" -#include "actITokenConfig.h" -#include "actITokenInitializer.h" - -#include "actIRefCounted.h" -#include "actIAccessCondition.h" - -namespace act -{ - class IKey; - class IEMSAAlg; - class ITokenFile; - class ISCardAccess; - class ISCardOSBehavior; - class IKeyDerivation; - - class EFDIR; - - const FIDType FID_EF_DIR = 0x2F00; - const FIDType FID_EF_ATR = 0x2F01; - - // - // ISO 7816-4 - enum SCardFileType - { - BINARY = 0x01, - LINEAR_FIXED = 0x02, - LINEAR_TLV = 0x05, - LINEAR_VARIABLE = 0x04, - CYCLIC_FIXED = 0x06, - DF = 0x38 - }; - - // - // ISO 7816-4 - enum SCardRecordMode - { - ABSOLUTE_MODE = 0x04 - }; - - // - // ISO 7816-4 - enum SCardSelectType - { - MFType = 0x00, - DFType = 0x01, - EFType = 0x02, - AIDType = 0x04, - PathType = 0x08 - }; - - enum SCardSelectMode - { - FCI = 0x00, // FCI template - FCP = 0x04, // FCP template - FMD = 0x08, // FMD template - NoData = 0x0c, // No response data - }; - - enum SCardError - { - SCARD_SUCCESS = 0, - SCARD_FUNCTION_NOT_SUPPORTED = -1, - SCARD_FUNCTION_FAILED = -2 - }; - - // - // ISCardOS - class ISCardOS - : public IRefCounted - , public IAcConverter - { - public: - virtual ~ISCardOS() { } - - // ISCardOS - virtual ISCardOS* Clone() const = 0; - - virtual bool IsMoC() = 0; - virtual const char* GetName() const = 0; - virtual Blob GetSerialNumber() const = 0; // hardware serial number - virtual Blob GetCardId(unsigned short fid_card_id) = 0; - virtual Blob GetCardCF(unsigned short fid_card_cf) = 0; - - virtual ISCardAccess* GetAccess() const = 0; - - virtual Blob ComputeDigitalSignature(const Blob& data, int mode = SIGN_DATA) = 0; - virtual Blob ComputeDigitalSignature(IEMSAAlg* emsa, int mode = SIGN_DATA) = 0; - virtual Blob Encipher(const Blob& plaintext) = 0; - virtual Blob Decipher(const Blob& encrypted_data) = 0; - virtual Blob AgreeKey(const Blob& pubkey) = 0; - - virtual void ComputeECDigitalSignature(const Blob& data, Blob& signature) = 0; - - virtual Blob SelectFile(const int filetype, const char* filepath) = 0; // return file control information - virtual Blob SelectFile(const int filetype, const Blob& filepath) = 0; // return file control information - virtual Blob SelectFile(const int filetype, FIDType fid) = 0; // return file control information - virtual Blob SelectApp(const Blob& aid, SCardSelectMode mode = NoData) = 0; - - // EF.DIR - virtual EFDIR* GetEFDIR(ushort fid = FID_INVALID) = 0; - - virtual int GetEFSize(FIDType fid) = 0; - virtual int GetEFSize(const Blob& filepath, Blob& fci) = 0; - virtual void GetFCI(FIDType fid, Blob& fci) = 0; - virtual Blob GetFCIValue(const Blob& fci, const byte tag) = 0; - virtual byte GetFileInfo(const Blob& fc_data, unsigned short& ef_size, size_t& num_of_records) = 0; - - // select and read binary - virtual Blob ReadBinary(const char* filepath) = 0; - virtual Blob ReadBinary(const Blob& filepath) = 0; - virtual Blob ReadBinary(FIDType fid) = 0; - - // read/update binary, file is selected, file size is known - virtual Blob ReadSelectedBinary(size_t file_size, unsigned short offset = 0) = 0; - virtual void UpdateSelectedBinary(const Blob& data, unsigned short offset = 0) = 0; - - // select and update binary - virtual void UpdateBinary(const Blob& filepath, const Blob& data, unsigned short offset = 0) = 0; - virtual void UpdateBinary(FIDType fid, const Blob& data, unsigned short offset = 0) = 0; - - // read binary with XL-APDUs - virtual Blob ReadBinaryX(const char* filepath) = 0; - virtual Blob ReadBinaryX(const Blob& filepath) = 0; - virtual Blob ReadBinaryX(FIDType fid) = 0; - virtual Blob ReadSelectedBinaryX(size_t file_size, unsigned short offset = 0) = 0; - - // update binary with XL-APDUs - virtual void UpdateBinaryX(const Blob& filepath, const Blob& data, unsigned short offset = 0) = 0; - virtual void UpdateBinaryX(FIDType fid, const Blob& data, unsigned short offset = 0) = 0; - virtual void UpdateSelectedBinaryX(const Blob& data, unsigned short offset = 0) = 0; - - // record read/write (file must be selected) - virtual Blob ReadRecord(byte mode) = 0; // p2 - virtual Blob ReadRecord(byte rec_id, byte mode) = 0; // p1, p2 - virtual void UpdateRecord(const Blob& data, byte rec_id, byte mode) = 0; // data, p1, p2 - virtual void AppendRecord(const Blob& data, byte ef_id = 0) = 0; // data, p2 - - // record write (includes file selection and resize) - virtual void UpdateRecord(const Blob& filepath, const Blob& data, byte rec_id, byte mode) = 0; - virtual void AppendRecord(const Blob& filepath, const Blob& data) = 0; - - virtual void DeleteEF(const Blob& fid) = 0; - virtual void DeleteEF(FIDType fid) = 0; - - virtual void CreateEF(const Blob& fcp) = 0; - virtual void CreateEF(const Blob& fid, unsigned short len, bool secure = false) = 0; - virtual void CreateEF(FIDType fid, unsigned short len, bool secure = false) = 0; - - virtual void CreateEF_TLV(FIDType fid, unsigned short len, unsigned short num_of_records = 1) = 0; - virtual void CreateEF_TLV(const Blob& fid, unsigned short len, unsigned short num_of_records = 1) = 0; - - virtual unsigned short GetOSFileOffset() const = 0; - - // get/put dat - virtual Blob GetData(ushort tag, ushort le = 0) const = 0; // INS=CA - virtual void PutData(ushort tag, const Blob& data) = 0; // INS=DA - - // MSE/PSO functions - virtual void ManageSecurityEnvironment(byte p1, byte p2, const Blob& data = Blob()) = 0; - virtual void PerformSecurityOperation(Blob& response, byte p1, byte p2, const Blob& data, bool chaining = false) = 0; - virtual void PerformSecurityOperationX(Blob& response, byte p1, byte p2, const Blob& data) = 0; // explicit extended APDU - - // ISO authentication functions - virtual void ExternalAuthenticate(byte key_id, const Blob& response, bool odd_INS = false) = 0; // INS=82/83, P1=00, P2=key_id - virtual Blob InternalAuthenticate(byte key_id, const Blob& challenge, bool odd_INS = false) = 0; // INS=88/89, P1=00, P2=key_id - virtual Blob MutualAuthenticate(byte key_id, const Blob& auth_data, bool odd_INS = false) = 0; // INS=82/83, P1=00, P2=key_id - virtual Blob GeneralAuthenticate(byte key_id, const Blob& auth_data, bool chaining = false, bool odd_INS = false) = 0; // INS=86/87, P1=00, P2=key_id - - virtual void ResetRetryCounter(byte p1, byte p2, const Blob& data) = 0; - virtual void Verify(byte p1, byte p2, const Blob& data, bool odd_INS = false) = 0; // INS=20/21 - - // random functions - virtual Blob GetChallenge(byte le = byte(8)) const = 0; - virtual Blob GetRandom(const unsigned long count) const = 0; - - // token type / config - virtual ProfileType GetProfileType(bool refresh = false) = 0; - - virtual void SetTokenConfig(ITokenConfig* tkcfg) = 0; - virtual ITokenConfig* GetTokenConfig() const = 0; - - // set/get behavior - virtual void SetBehavior(ISCardOSBehavior* behave) = 0; - virtual ISCardOSBehavior* GetBehavior() = 0; - - // access rights - virtual void SetAccessRights(const Blob& access_rights) = 0; - virtual void SetAccessRights(move_from access_rights) = 0; - virtual void SetExplicitRights(IAccessCondition* ac, size_t ac_cnt = 1) = 0; - - virtual bool HasExplicitRights() const = 0; - - virtual Blob GetAccessRights() = 0; - virtual IAccessCondition* GetAccessRights(const Blob& fci) = 0; - virtual Blob GetAccessRights(ACSCardObjType ac_obj_type, bool tagged) const = 0; - - // selected path - virtual void SetSelectedPath(ITokenFile* selected_path) const = 0; - virtual ITokenFile* GetSelectedPath() const = 0; - - // key derivation - virtual void SetKeyDerivation(IKeyDerivation* key_derivation) = 0; - virtual IKeyDerivation* GetKeyDerivation() const = 0; - - // key handling - virtual void GenerateRSAKeyPair(int key_id, size_t key_size, // in bits - Blob& pubkey) = 0; - - virtual void ImportRSAKeyPair(int key_id, const Blob& prime_p, - const Blob& prime_q, const Blob& priv_exp, Blob& pubkey) = 0; - - virtual void GenerateECKeyPair(Blob& pubkey) = 0; - - virtual void GenerateECKeyPair(int key_id, const Blob& curve_oid, - const Blob& curve_param, Blob& pubkey) = 0; - - virtual void ImportECKeyPair(int key_nr, const Blob& curve_oid, - const Blob& curve_param, const Blob& privkey, const Blob& pubkey) = 0; - - virtual void ImportDESKey(int key_id, const Blob& keyblob) = 0; - - virtual void DeletePrivateKeyObj(FIDType fid) = 0; - virtual void DeleteECPrivateKeyObj(FIDType fid) = 0; - virtual void DeleteBlockCipherKeyObj(FIDType fid) = 0; - virtual void SelectKey(int key_id) = 0; - - // authentication functions - virtual Blob ComputeResponse(const Blob& auth_key, const Blob& challenge) const = 0; - virtual void UpdateExternalAuthenticateKey(byte key_id, const Blob& auth_key) = 0; - - virtual void ResetSecurityStatus() = 0; - virtual SecStatus GetSecurityStatus(byte obj_ref, Blob& context) const = 0; - - // token initialization - virtual void SetDefaultLabel(move_from label) = 0; - virtual ITokenInitializer* GetTokenInitializer() = 0; - }; - -} // namespace act - -#endif // ACT_ISCardOS_h diff --git a/actlibrary/SLES-11-i686/Release/include/actISCardOSBehavior.h b/actlibrary/SLES-11-i686/Release/include/actISCardOSBehavior.h deleted file mode 100644 index da9c27c..0000000 --- a/actlibrary/SLES-11-i686/Release/include/actISCardOSBehavior.h +++ /dev/null @@ -1,79 +0,0 @@ -// --------------------------------------------------------------------------- -// Name: actISCardOSBehavior.h -// Product: cv act library -// Purpose: ISCardOSBehavior interface, encapsulates CardOS specific logic -// for security operations. -// -// Copyright: (c) 2002-2008 cv cryptovision GmbH all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -// -// Autor: Markus Tesche -// Date: 06/03/2008 -// --------------------------------------------------------------------------- - -#ifndef ACT_ISCardOSBehavior_h -#define ACT_ISCardOSBehavior_h - -#include "actIRefCounted.h" - -namespace act -{ - class Blob; - class IEMSAAlg; - class ISCardOS; - class ITokenPIN; - - enum OSBehavior - { - NONE_BEHAVIOR = 0x00000000, - - // algorithm behaviors - SIGN_BEHAVIOR = 0x00000001, - VERIFY_BEHAVIOR = 0x00000002, - DECRYPT_BEHAVIOR = 0x00000004, - ENCRYPT_BEHAVIOR = 0x00000008, - AGREEMENT_BEHAVIOR = 0x00000010, - ALGORITHM_BEHAVIOR_MASK = 0x000000FF, - - // key behaviors - GENERATE_KEY_BEHAVIOR = 0x00000100, - IMPORT_KEY_BEHAVIOR = 0x00000200, - DELETE_PRIVKEY_BEHAVIOR = 0x00000400, - KEY_BEHAVIOR_MASK = 0x0000FF00, - - // PIN behaviors - VERIFY_PIN_BEHAVIOR = 0x00010000, - CHANGE_PIN_BEHAVIOR = 0x00020000, - SET_PIN_BEHAVIOR = 0x00040000, - UNLOCK_PIN_BEHAVIOR = 0x00080000, - PIN_BEHAVIOR_MASK = 0x00FF0000 - }; - - // - // ISCardOSBehavior - class ISCardOSBehavior : public IRefCounted - { - public: - virtual bool Supports(int behavior) const throw() = 0; - - virtual Blob ComputeDigitalSignature(ISCardOS* os, const Blob& data, int mode) = 0; - virtual Blob ComputeDigitalSignature(ISCardOS* os, IEMSAAlg* emsa, int mode) = 0; - virtual Blob Encipher(ISCardOS* os, const Blob& plaintext) = 0; - virtual Blob Decipher(ISCardOS* os, const Blob& encrypted_data) = 0; - virtual Blob AgreeKey(ISCardOS* os, const Blob& pubkey) = 0; - - virtual void GenerateRSAKeyPair(ISCardOS* os, byte key_num, size_t key_size) = 0; - virtual void ImportRSAKeyPair(ISCardOS* os, int key_id, const Blob& prime_p, const Blob& prime_q, - const Blob& priv_exp, Blob& pubkey) = 0; - virtual void DeletePrivateKeyObj(ISCardOS* os, unsigned short fid) = 0; - - virtual void doVerifyPinCmd(const ITokenPIN* token_pin, const Blob& pin_value) = 0; - virtual void doChangePinCmd(const ITokenPIN* token_pin, const Blob& oldnew_value) = 0; - virtual void doSetPinValueCmd(const ITokenPIN* token_pin, const Blob& newpin_value) = 0; - virtual void UnlockPin(const ITokenPIN* token_pin, const Blob& new_pin) = 0; - }; - -} // namespace act - -#endif // ACT_ISCardOSBehavior_h diff --git a/actlibrary/SLES-11-i686/Release/include/actISecurityManager.h b/actlibrary/SLES-11-i686/Release/include/actISecurityManager.h deleted file mode 100644 index ecaccd8..0000000 --- a/actlibrary/SLES-11-i686/Release/include/actISecurityManager.h +++ /dev/null @@ -1,60 +0,0 @@ -// --------------------------------------------------------------------------- -// Name: actISecurityManager.h -// Product: cv act library -// Purpose: ISecurityManager used to manage the token authentication objects. -// -// Copyright: (c) 2008 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -// -// Autor: Markus Tesche (MTE) -// Date: 08/05/2008 -// --------------------------------------------------------------------------- - -#ifndef ACT_ISecurityManager_h -#define ACT_ISecurityManager_h - -#include "actBasics.h" -#include "actIRefCounted.h" - -namespace act -{ - class ITokenPIN; - class IAuthIdRef; - - enum SecManType - { - SecManUnknown = 0, - SecManPIN, - SecManBio, - }; - - // - // ISecurityManager - // TODO: MTE: Add access control management - class ISecurityManager : public IRefCounted - { - public: - virtual SecManType GetType() const = 0; - virtual void Delete(ITokenPIN* auth_obj) = 0; - }; - - class IPINManager : public ISecurityManager - { - public: - // NOTE: MTE: pin can be empty! - virtual ITokenPIN* Create(IAuthIdRef* authIdRef, IAuthIdRef* parentAuthIdRef, - int retryCount, const Blob& pin) = 0; - }; - - class IBioManager : public ISecurityManager - { - public: - virtual ITokenPIN* Create(IAuthIdRef* authIdRef, IAuthIdRef* parentAuthIdRef, - int retryCount, int bioFinger) = 0; - }; - -} // namespace act - -#endif // ACT_ISecurityManager_h diff --git a/actlibrary/SLES-11-i686/Release/include/actISignatureKey.h b/actlibrary/SLES-11-i686/Release/include/actISignatureKey.h deleted file mode 100644 index 2538580..0000000 --- a/actlibrary/SLES-11-i686/Release/include/actISignatureKey.h +++ /dev/null @@ -1,32 +0,0 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actISignatureKey.h -// Product: cv act library -// Purpose: The interface ISignatureKey enables access to the aggregated -// EMSA-object of the SignatureKeys. -// -// Copyright: (c) 2000 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_ISignatureKey_h -#define ACT_ISignatureKey_h - -#include "actIKey.h" - -namespace act -{ - class IEMSAAlg; - - class ISignatureKey : public IKey - { - public: - virtual void SetEncoder(IEMSAAlg* padding) = 0; - virtual const IEMSAAlg* GetEncoder() const = 0; - virtual IEMSAAlg* GetEncoder() = 0; - }; - -} // namespace act - -#endif // ACT_ISignatureKey_h diff --git a/actlibrary/SLES-11-i686/Release/include/actISlot.h b/actlibrary/SLES-11-i686/Release/include/actISlot.h deleted file mode 100644 index b3a2efd..0000000 --- a/actlibrary/SLES-11-i686/Release/include/actISlot.h +++ /dev/null @@ -1,82 +0,0 @@ -// --------------------------------------------------------------------------- -// Name: actISlot.h -// Product: cv act library -// Purpose: The class ISlot manages the Tokens -// -// Copyright: (c) 2002 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -// -// Autor: Dr. Xiangdong Wang (XWG) -// Date: 03/26/2002 -// --------------------------------------------------------------------------- - -#ifndef ACT_ISlot_h -#define ACT_ISlot_h - -#include "actBasics.h" -#include "actBlob.h" - -#include "actIRefCounted.h" -#include "actISynchronize.h" -#include "actIEventMonitoring.h" - -namespace act -{ - class IToken; - class ITokenConfig; - class ISCardOS; - class ISCardAccess; - class ISubsystem; - - // --------------------------------------------------------------------------- - class ISlot - : public IRefCounted - , public ISynchronize - , public IEventMonitoring - { - protected: - virtual ~ISlot() { } - - public: - virtual ISlot* Clone() const = 0; - - virtual bool IsTokenPresent() const = 0; - virtual const char* GetName() const = 0; - virtual ISubsystem* GetSystem() const = 0; - - virtual Blob GetATR() const = 0; - virtual Blob GetHistoricalBytes() const = 0; - - virtual ISCardOS* CreateOS(const Blob& historical_bytes = Blob()) = 0; - virtual IToken* CreateToken(ISCardOS* os = 0) = 0; - virtual ISCardAccess* CreateAccess() = 0; - - virtual void SetTokenConfig(ITokenConfig* tkcfg) = 0; - - virtual bool HasSecurePinEntry(ISCardAccess* ac = 0) const = 0; - virtual bool HasSecurePinChange(ISCardAccess* ac = 0) const = 0; - - virtual void SetParam(paramid_t id,int val) = 0; - virtual int GetParam(paramid_t id) const = 0; - }; - - // --------------------------------------------------------------------------- - struct ATRCardInfo - { - const char* name; - const char* atr; - const char* atr_mask; - }; - - // --------------------------------------------------------------------------- - void InitCardInfoMap(const ATRCardInfo* mapCardInfo); - const ATRCardInfo* GetATRCardInfo(const Blob& atr); - const char* GetOSName(const Blob& atr); - Blob GetHistoricalBytes(const Blob& atr); - bool GetATRStructInfo(const Blob& atr, size_t& his_pos, size_t& his_len, bool& has_tck); - -} // namespace act - -#endif // ACT_ISlot_h diff --git a/actlibrary/SLES-11-i686/Release/include/actISlotMonitor.h b/actlibrary/SLES-11-i686/Release/include/actISlotMonitor.h deleted file mode 100644 index 358abc0..0000000 --- a/actlibrary/SLES-11-i686/Release/include/actISlotMonitor.h +++ /dev/null @@ -1,39 +0,0 @@ -// --------------------------------------------------------------------------- -// Name: actISlotMonitor.h -// Product: cv act library -// Purpose: The class SlotMonitor notifies the slot events -// -// Copyright: (c) 2002 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -// -// Autor: Dr. Xiangdong Wang (XWG) -// Date: 05/27/2002 -// --------------------------------------------------------------------------- - -#ifndef ACT_ISlotMonitor_h -#define ACT_ISlotMonitor_h - -#include "actIRefCounted.h" - -namespace act -{ - class IEventHandler; - - // - // ISlotMonitor - class ISlotMonitor : public IRefCounted - { - public: - virtual void Stop() = 0; - virtual void Start(IEventHandler* cmd) = 0; - virtual bool Interrupted() const = 0; - - protected: - virtual void Run() = 0; - }; - -} // namespace act - -#endif // ACT_ISlotMonitor_h diff --git a/actlibrary/SLES-11-i686/Release/include/actIStreamCipher.h b/actlibrary/SLES-11-i686/Release/include/actIStreamCipher.h deleted file mode 100644 index 4c53d98..0000000 --- a/actlibrary/SLES-11-i686/Release/include/actIStreamCipher.h +++ /dev/null @@ -1,51 +0,0 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actIStreamCipher.h -// Product: cv act library -// Purpose: The class IStreamCipher creates the symmetric StreamCipher, which is -// defined by IStreamCipherKey. It offers operations like encrypt, decrypt -// and queries involving validity or keylength etc. -// -// Copyright: (c) 2001 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_IStreamCipher_h -#define ACT_IStreamCipher_h - -#include "actBasics.h" - -namespace act -{ - - class Blob; - - class IStreamCipher - { - public: - - virtual IStreamCipher* Clone() const =0; - virtual void Import( const Blob& indata ) =0; - virtual void Export( Blob& outdata ) const =0; - - virtual void SetRawKey( const Blob& keyblob ) =0; - virtual void GetRawKey( Blob& keyblob ) const =0; - - virtual void Process(const byte* input, byte* output, size_t input_len) const =0; - - virtual size_t GetKeySize(size_t keysize=0) const =0; - virtual size_t GetMinKeySize() const =0; - virtual size_t GetMaxKeySize() const =0; - virtual size_t GetNextKeySize(size_t prevsize) const =0; - - virtual void* GetCreatePointer() const =0; - - virtual ~IStreamCipher() {}; - }; - - -}// namespace act - -#endif - diff --git a/actlibrary/SLES-11-i686/Release/include/actIStreamCipherKey.h b/actlibrary/SLES-11-i686/Release/include/actIStreamCipherKey.h deleted file mode 100644 index 7282893..0000000 --- a/actlibrary/SLES-11-i686/Release/include/actIStreamCipherKey.h +++ /dev/null @@ -1,39 +0,0 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actIStreamCipherKey.h -// Product: cv act library -// Purpose: The class IStreamCipherKey extends the interface of the class IKey -// and supports the peculiarities of symmetric keys. -// -// -// Copyright: (c) 2001 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_IStreamCipherKey_h -#define ACT_IStreamCipherKey_h - -#include "actIKey.h" - -namespace act -{ - class IStreamCipher; - class IDerivator; - - class IStreamCipherKey : public IKey - { - public: - - virtual void SetCipher(IStreamCipher* cipher) = 0; - virtual const IStreamCipher* GetCipher() const = 0; - virtual IStreamCipher* GetCipher() = 0; - - virtual void SetDerivator(IDerivator* derive) = 0; - virtual const IDerivator* GetDerivator() const = 0; - virtual IDerivator* GetDerivator() = 0; - }; - -} //namespace act - -#endif // ACT_IStreamCipherKey_h diff --git a/actlibrary/SLES-11-i686/Release/include/actISubsystem.h b/actlibrary/SLES-11-i686/Release/include/actISubsystem.h deleted file mode 100644 index 731b4cd..0000000 --- a/actlibrary/SLES-11-i686/Release/include/actISubsystem.h +++ /dev/null @@ -1,54 +0,0 @@ -// --------------------------------------------------------------------------- -// Name: actISubsystem.h -// Product: cv act library -// Purpose: The class ISubsystem detects and manages the slots -// -// Copyright: (c) 2002 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -// -// Autor: Dr. Xiangdong Wang (XWG) -// Date: 03/26/2002 -// --------------------------------------------------------------------------- - -#ifndef ACT_ISubsystem_h -#define ACT_ISubsystem_h - -#include "actBasics.h" -#include "actIRefCounted.h" -#include "actISynchronize.h" -#include "actIEventMonitoring.h" - -namespace act -{ - class ISlot; - class ITokenConfig; - - // - // ISubsystem - class ISubsystem - : public IRefCounted - , public ISynchronize - , public IEventMonitoring - { - public: - virtual void Refresh() = 0; - virtual bool Disconnect() = 0; - virtual bool Install(size_t port) = 0; - virtual const char* GetName() const = 0; - - // SlotList - virtual int GetSlotNumber() const = 0; - virtual const ISlot* GetSlot(int pos) const = 0; - virtual ISlot* CreateSlot(const char* name) = 0; - - virtual void SetTokenConfig(ITokenConfig* tkcfg) = 0; - - protected: - virtual ~ISubsystem() { } - }; - -} // namespace act - -#endif // ACT_ISubsystem_h diff --git a/actlibrary/SLES-11-i686/Release/include/actISubsystemConfig.h b/actlibrary/SLES-11-i686/Release/include/actISubsystemConfig.h deleted file mode 100644 index 165ac6e..0000000 --- a/actlibrary/SLES-11-i686/Release/include/actISubsystemConfig.h +++ /dev/null @@ -1,38 +0,0 @@ -// --------------------------------------------------------------------------- -// Name: actISubsystemConfig.h -// Product: cv act library -// Purpose: The Subsystem configuration. -// -// Copyright: (c) 2006 cv cryptovision GmbH -// all rights reserved. -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -// -// Autor: Markus Tesche (MTE) -// Date: 1/12/2006 -// --------------------------------------------------------------------------- - -#ifndef ACT_ISubsystemConfig_h -#define ACT_ISubsystemConfig_h - -#include "actIRefCounted.h" - -namespace act -{ - class ISubsystem; - - // - // ISubsystemConfig - class ISubsystemConfig : public IRefCounted - { - public: - // Returns the Subsystem name. - virtual const char* GetName() const = 0; - - // Configures the Subsystem, if fails throws an Exception. - virtual void ConfigureSubsystem(ISubsystem*) = 0; - }; - -} // namespace act - -#endif // ACT_ISubsystemConfig_h diff --git a/actlibrary/SLES-11-i686/Release/include/actISynchronize.h b/actlibrary/SLES-11-i686/Release/include/actISynchronize.h deleted file mode 100644 index c8f1ef6..0000000 --- a/actlibrary/SLES-11-i686/Release/include/actISynchronize.h +++ /dev/null @@ -1,43 +0,0 @@ -////////////////////////////////////////////////////////////////////////// -// Name: actISynchronize.h -// Product: cv act library -// Purpose: Implemented by types supporting multithreading synchronization. -// -// Copyright: (c) 2010 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -// -// Autor: Markus Tesche -// Date: 07/27/2010 -////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_ISynchronize_h -#define ACT_ISynchronize_h - -namespace act -{ - class Handle; - - // - // ISynchronize - class ISynchronize - { - protected: - virtual ~ISynchronize() { } - - public: - virtual void Lock() = 0; - virtual void Unlock() = 0; - virtual long LockCount() const = 0; - - virtual const Handle& syncHandle() const = 0; - }; - - inline void Lock(ISynchronize& object) { object.Lock(); } - inline void Unlock(ISynchronize& object) { object.Unlock(); } - inline long LockCount(const ISynchronize& object) { return object.LockCount(); } - -} // namespace act - -#endif // ACT_ISynchronize_h diff --git a/actlibrary/SLES-11-i686/Release/include/actIToken.h b/actlibrary/SLES-11-i686/Release/include/actIToken.h deleted file mode 100644 index 15d0ac2..0000000 --- a/actlibrary/SLES-11-i686/Release/include/actIToken.h +++ /dev/null @@ -1,165 +0,0 @@ -// --------------------------------------------------------------------------- -// Name: actIToken.h -// Product: cv act library -// Purpose: The IToken interface represents the profile and the application -// supported by a token. -// -// Copyright: (c) 2002 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -// -// Autor: Dr. Xiangdong Wang (XWG) -// Date: 03/22/2002 -// --------------------------------------------------------------------------- - -#ifndef ACT_IToken_h -#define ACT_IToken_h - -#include "actBlob.h" -#include "actBasics.h" -#include "actTokenBase.h" - -#include "actISynchronize.h" -#include "actITokenFileCache.h" -#include "actIAccessCondition.h" - -namespace act -{ - class IKey; - class IEMSAAlg; - class ICertificate; - class IAuthIdRef; - class ITokenPIN; - class ITokenAuth; - class ITokenFile; - class ITokenFileMap; - class ITokenConfig; - class ITokenKeyIterator; - class ISecurityManager; - class ITokenAuthIterator; - - struct CertEntry - { - int usage; - Blob certblob; - }; - - // - // ITokenView - class ITokenView - { - protected: - virtual ~ITokenView() { } - - public: - virtual IToken* GetToken() = 0; - - virtual ITokenView* GetPrev() const = 0; - virtual ITokenView* GetNext() const = 0; - - virtual ITokenFile* GetPath() const = 0; - virtual ITokenFileMap* GetFileMap() const = 0; - - virtual bool Equals(const ITokenView* other) const = 0; - - // Divide view into partitions, based on type[PATH|PIN] - virtual size_t Split(paramid_t type) = 0; - virtual ITokenView* SetDefault() = 0; - }; - - // - // IToken - class IToken - : public IRefCounted - , public IAcConverter - , public ISynchronize - { - protected: - virtual ~IToken() { } - - public: - virtual ITokenView* GetView() const = 0; - virtual ITokenConfig* GetConfig() const = 0; - virtual ITokenFile* GetTokenFile(const Blob& path) = 0; - - virtual int GetStatus() const = 0; - virtual int GetType() const = 0; - virtual ProfileType GetProfileType() = 0; - virtual const char* GetName() const = 0; - - // Returns the serial number, which may (!) be empty or equal the hardware serial! - virtual Blob GetSerialNumber() const = 0; - virtual Blob GetCardholderName() const = 0; - virtual Blob GetRandom(const unsigned long count) const = 0; - virtual void SetSeed(const Blob& seed) = 0; - - // Generate a new key - virtual IKey* NewKey(int key_type) = 0; - - // Add key to token, takes ownership - even on exception! - virtual void AddKey(IKey* key) = 0; - virtual bool RemoveKey(IKey* key) = 0; - - // Write/Import a (soft) key to token - virtual IKey* WriteKey(const IKey* key) = 0; - - // Get a token key instance from matching certificate - virtual IKey* CreateKey(const Blob& cert) const = 0; - virtual IKey* CreateKey(const ICertificate* cert) const = 0; - - // Key Objects - virtual int GetKeyNumber() const = 0; - virtual IKey* GetKey(int pos) const = 0; - virtual ITokenKeyIterator* GetKeyIterator(KeyType type, const Blob& authId = Blob()) = 0; - - // Certificate Objects - virtual int GetCertificateNumber() const = 0; - virtual CertEntry GetCertificate(int pos) const = 0; - - // Write/Delete a certificate (corresponding to a key) to token - virtual void WriteCertificate(const Blob& cert, IKey* key = 0) = 0; - virtual void DeleteCertificate(const Blob& cert, IKey* key = 0) = 0; - - // Authentication Objects - virtual ITokenAuth* GetAuth() const = 0; - virtual ISecurityManager* SecurityManager(int authManagerType) = 0; - virtual ITokenAuthIterator* GetAuthIterator(int type, const Blob& authId = Blob()) = 0; - - virtual int GetPinNumber() const = 0; - virtual ITokenPIN* GetPin(const IAuthIdRef* authIdRef, const ITokenFile* location) const = 0; - virtual ITokenPIN* GetPin(int pos, const ITokenFile* location) const = 0; - virtual ITokenPIN* GetPin(const char* pin_name) const = 0; - virtual ITokenPIN* GetPin(const Blob& authId) const = 0; - - virtual ITokenPIN* GetUserPin() const = 0; - virtual ITokenPIN* GetSOPin() const = 0; - virtual void VerifyUserPin(const Blob& pinvalue) = 0; - virtual void ChangeUserPin(const Blob& oldpin, const Blob& newpin) = 0; - virtual void UnlockUserPin(const Blob& so_pin, const Blob& new_userpin) = 0; - virtual void VerifySOPin(const Blob& pinvalue) = 0; - virtual void ChangeSOPin(const Blob& oldpin, const Blob& newpin) = 0; - - virtual bool ResetSecurityState() const = 0; - - // Token specific - virtual void SelectDataPath() const = 0; // TODO: MTE: To be removed soon! - virtual ISCardOS* GetOS() const = 0; // TODO: MTE: To be removed soon! - - // Delete a key pair from token with matching token key or certificate - virtual void DeleteKeyPair(const IKey* key) = 0; - virtual void DeleteKeyPair(const Blob& cert) = 0; - - virtual bool IsPKCS15() const = 0; - virtual bool IsReadOnly() const = 0; - virtual bool LoginRequired() const = 0; - - virtual bool IsLocked() const = 0; - - virtual Blob GetCardId() const = 0; - virtual Blob GetCardCF() const = 0; - }; - -} // namespace act - -#endif // ACT_IToken_h diff --git a/actlibrary/SLES-11-i686/Release/include/actITokenAuth.h b/actlibrary/SLES-11-i686/Release/include/actITokenAuth.h deleted file mode 100644 index cd6d150..0000000 --- a/actlibrary/SLES-11-i686/Release/include/actITokenAuth.h +++ /dev/null @@ -1,139 +0,0 @@ -// --------------------------------------------------------------------------- -// Name: actITokenAuth.h -// Product: cv act library -// Purpose: The ITokenAuth interface represents a IToken authentication state -// using one the ITokenPIN objects owned by a token. -// -// Copyright: (c) 2007 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -// -// Autor: Markus Tesche (MTE) -// Date: 11/09/2007 -// --------------------------------------------------------------------------- - -#ifndef ACT_ITokenAuth_h -#define ACT_ITokenAuth_h - -#include "actBlob.h" -#include "actBasics.h" -#include "actIRefCounted.h" - -namespace act -{ - class AuthInfo; - - class IToken; - class ITokenPIN; - class ITokenFile; - class IAuthIdRef; - class IAuthConstrained; - - enum AuthConstrainedType - { - AUTH_CONSTRAINED_ALWAYS = 0, - AUTH_CONSTRAINED_NOT, - AUTH_CONSTRAINED_AND, - AUTH_CONSTRAINED_OR, - }; - - // - // IAuthFactory - class IAuthFactory - { - public: - virtual IAuthIdRef* CreateAuthIdRef(const Blob& authId, ITokenFile* path, - byte constrained_mode = AUTH_CONSTRAINED_ALWAYS) = 0; - - virtual ITokenPIN* CreatePin(const AuthInfo& ai, byte objRef, ITokenFile* path, - IAuthIdRef* authIdRef, IAuthIdRef* parentAuthIdRef) = 0; - - // TODO: MTE: deprecated, use CreatePin(const AuthInfo&...) instead - virtual ITokenPIN* CreatePin(int type, int usage, byte objRef, int minLen, - int maxLen, IAuthIdRef* authIdRef, const char* name = 0) = 0; - - protected: - virtual ~IAuthFactory() { } - }; - - - // - // IAuthIdRef - class IAuthIdRef : public IRefCounted - { - public: - virtual byte GetAuthIdByte() const = 0; - virtual const Blob& GetAuthId() const = 0; - virtual IAuthConstrained* GetAuthConstrained() = 0; - - virtual bool Equals(const Blob& authId) const = 0; - }; - - // - // IAuthIdRefIterator - class IAuthIdRefIterator : public IRefCounted - { - public: - virtual void Reset() = 0; - virtual IAuthIdRef* Next() = 0; - }; - - - // - // ITokenAuthIterator - class ITokenAuthIterator : public IRefCounted - { - public: - virtual void Reset(ITokenFile* parent = 0) = 0; - virtual ITokenPIN* Next() = 0; - }; - - // - // ITokenAuth - class ITokenAuth : public IRefCounted - { - public: - virtual bool Login(ITokenPIN* auth_obj, const Blob& pin) = 0; - - virtual bool Logout() = 0; - virtual bool Logout(const ITokenPIN* auth_obj) = 0; - virtual bool LogoutEx(bool reset_security_state) = 0; - - virtual Blob GetChallenge(const ITokenPIN* auth_obj) = 0; - - virtual IToken* GetToken() const = 0; - virtual ITokenPIN* GetAuthenticated() const = 0; - virtual ITokenPIN* GetAuthenticated(size_t index) const = 0; - - virtual bool NeedsPINValue() const = 0; - virtual bool HasChallenge() const = 0; - virtual bool HasChallenge(const ITokenPIN* auth_obj) const = 0; - virtual bool IsAuthenticated(const ITokenPIN* auth_obj) const = 0; - virtual bool IsAuthenticated(bool verify_security_state = false) const = 0; - - /*! - * Clears the internal authentication state for given auth_obj. - * - * If auth_obj is not authenticated: - * - do nothing - * - return false - * - * If auth_obj is authenticated: - * - remove auth_obj from authenticated-list. - * - return true - * - * \note does NOT reset the card's authentication state! - * - * \param auth_obj \ref ITokenPIN - * \return true if succeeded, false if not - */ - virtual bool Invalidate(ITokenPIN* auth_obj) = 0; - virtual bool Select(const ITokenPIN* auth_obj, bool force) = 0; - - virtual ITokenAuthIterator* Iterator(int type, const Blob& authId = Blob()) const = 0; - }; - -} // namespace act - -#endif // ACT_ITokenAuth_h diff --git a/actlibrary/SLES-11-i686/Release/include/actITokenAuthOwner.h b/actlibrary/SLES-11-i686/Release/include/actITokenAuthOwner.h deleted file mode 100644 index c53eccc..0000000 --- a/actlibrary/SLES-11-i686/Release/include/actITokenAuthOwner.h +++ /dev/null @@ -1,39 +0,0 @@ -// --------------------------------------------------------------------------- -// Name: actITokenAuthOwner.h -// Product: cv act library -// Purpose: The ITokenAuthOwner interface is used by objects which requires -// authentication like token keys. -// -// Copyright: (c) 2008 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -// -// Autor: Markus Tesche -// Date: 08/10/2008 -// --------------------------------------------------------------------------- - -#ifndef ACT_ITokenAuthOwner_h -#define ACT_ITokenAuthOwner_h - -namespace act -{ - class ITokenPIN; - class IAuthIdRef; - - // - // ITokenAuthOwner - class ITokenAuthOwner - { - public: - virtual void SetPin(ITokenPIN* pin) = 0; - virtual ITokenPIN* GetPin() const = 0; - virtual IAuthIdRef* GetAuthIdRef() const = 0; - - protected: - virtual ~ITokenAuthOwner() { } - }; - -} // namespace act - -#endif // ACT_ITokenAuthOwner_h diff --git a/actlibrary/SLES-11-i686/Release/include/actITokenBlockCipher.h b/actlibrary/SLES-11-i686/Release/include/actITokenBlockCipher.h deleted file mode 100644 index 014efe1..0000000 --- a/actlibrary/SLES-11-i686/Release/include/actITokenBlockCipher.h +++ /dev/null @@ -1,45 +0,0 @@ -// --------------------------------------------------------------------------- -// Name: actITokenBlockCipher.h -// Product: cv act library -// Purpose: The interface ITokenBlockCipher encapsulates operations using a -// symmetric key stored on a secure token. -// -// Copyright: (c) 2008 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -// -// Autor: Markus Tesche -// Date: 05/15/2008 -// --------------------------------------------------------------------------- - -#ifndef ACT_ITokenBlockCipher_h -#define ACT_ITokenBlockCipher_h - -#include "actBlob.h" -#include "actIBlockCipher.h" - -namespace act -{ - class IToken; - class ITokenConfig; - - // - // ITokenBlockCipher - class ITokenBlockCipher : public IBlockCipher - { - public: - virtual ITokenBlockCipher* Clone() const = 0; - - virtual void Configure(ITokenConfig* tkcfg) = 0; - virtual Blob GetCipherName() const = 0; - virtual Blob GetLabel() const = 0; - - virtual int GetKeyNumber() const = 0; - - virtual IToken* GetToken() const = 0; - }; - -} // namespace act - -#endif // ACT_ITokenBlockCipher_h diff --git a/actlibrary/SLES-11-i686/Release/include/actITokenBlockCipherKey.h b/actlibrary/SLES-11-i686/Release/include/actITokenBlockCipherKey.h deleted file mode 100644 index 3f13e59..0000000 --- a/actlibrary/SLES-11-i686/Release/include/actITokenBlockCipherKey.h +++ /dev/null @@ -1,59 +0,0 @@ -// --------------------------------------------------------------------------- -// Name: actITokenBlockCipherKey.h -// Product: cv act library -// Purpose: The interface ITokenBlockCipherKey enables access to a key stored -// on a secure token. -// -// Copyright: (c) 2008 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -// -// Autor: Markus Tesche -// Date: 05/15/2008 -// --------------------------------------------------------------------------- - -#ifndef ACT_ITokenBlockCipherKey_h -#define ACT_ITokenBlockCipherKey_h - -#include "actTokenBase.h" - -#include "actIBlockCipherKey.h" - -#include "actITokenAuthOwner.h" -#include "actITokenFileOwner.h" -#include "actITokenBlockCipher.h" - -namespace act -{ - class IToken; - class ITokenConfig; - - // - // ITokenBlockCipherKey - class ITokenBlockCipherKey - : public IBlockCipherKey - , public ITokenAuthOwner - , public ITokenFileOwner - { - public: - virtual ITokenBlockCipherKey* Clone() const = 0; - - virtual ITokenBlockCipher* GetCipher() = 0; - virtual const ITokenBlockCipher* GetCipher() const = 0; - - virtual KeyType GetType() const = 0; - virtual IToken* GetToken() const = 0; - virtual const char* GetName() const = 0; - virtual void Configure(ITokenConfig* tkcfg) = 0; - - virtual void SetRawKey(const Blob& raw_key) = 0; - virtual void GetRawKey(Blob& raw_key) const = 0; - - virtual void SetMode(const char* modename) = 0; - virtual void SetPadding(const char* padname) = 0; - }; - -} // namespace act - -#endif // ACT_ITokenBlockCipherKey_h diff --git a/actlibrary/SLES-11-i686/Release/include/actITokenConfig.h b/actlibrary/SLES-11-i686/Release/include/actITokenConfig.h deleted file mode 100644 index cecaa7e..0000000 --- a/actlibrary/SLES-11-i686/Release/include/actITokenConfig.h +++ /dev/null @@ -1,60 +0,0 @@ -// --------------------------------------------------------------------------- -// Name: actITokenConfig.h -// Product: cv act library -// Purpose: IToken configuration. -// -// Copyright: (c) 2008 cv cryptovision GmbH -// all rights reserved. -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -// -// Autor: Markus Tesche -// Date: 11/07/2008 -// --------------------------------------------------------------------------- - -#ifndef ACT_ITokenConfig_h -#define ACT_ITokenConfig_h - -#include "actIParam.h" -#include "actIRefCounted.h" - -namespace act -{ - class ISCardOS; - class IToken; - class ITokenPIN; - class ITokenAuth; - class ITokenKey; - class ITokenBlockCipher; - class ITokenBlockCipherKey; - class ITokenFileMap; - class ITokenFileCache; - - // - // ITokenConfig - class ITokenConfig - : public IParam - , virtual public IRefCounted - { - public: - virtual ITokenConfig* Clone() const = 0; - - // Individual card detection - virtual bool IsSupported(ISCardOS* os) const = 0; - - // Configures the token, if fails throws an Exception - virtual void Configure(IToken* token) const = 0; - virtual void Configure(ITokenPIN* auth_obj) const = 0; - virtual void Configure(ITokenKey* key) const = 0; - virtual void Configure(ITokenBlockCipher* cipher) const = 0; - virtual void Configure(ITokenBlockCipherKey* key) const = 0; - - // Factory's for token helper objects - virtual ITokenAuth* CreateAuth(IToken* token) = 0; - virtual ITokenFileMap* CreateFileMap(const IToken* token) = 0; - virtual ITokenFileCache* CreateFileCache(IToken* token) = 0; - }; - -} // namespace act - -#endif // ACT_ITokenConfig_h diff --git a/actlibrary/SLES-11-i686/Release/include/actITokenExtension.h b/actlibrary/SLES-11-i686/Release/include/actITokenExtension.h deleted file mode 100644 index 784c418..0000000 --- a/actlibrary/SLES-11-i686/Release/include/actITokenExtension.h +++ /dev/null @@ -1,39 +0,0 @@ -// --------------------------------------------------------------------------- -// Name: actITokenExtension.h -// Product: cv act library -// Purpose: Interface ITokenExtension provides functionality to register extensions to -// IToken derived objects. -// -// Copyright: (c) 2008 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -// -// Autor: Markus Tesche -// Date: 12/02/2008 -// --------------------------------------------------------------------------- - -#ifndef ACT_ITokenExtension_h -#define ACT_ITokenExtension_h - -#include "actIRefCounted.h" - -namespace act -{ - class IToken; - - // - // ITokenExtension - class ITokenExtension : public IRefCounted - { - protected: - virtual ~ITokenExtension() { } - - public: - virtual void* GetCreatePtr() throw() = 0; - virtual bool Register(IToken* token) = 0; - }; - -} // namespace act - -#endif // ACT_ITokenExtension_h diff --git a/actlibrary/SLES-11-i686/Release/include/actITokenFile.h b/actlibrary/SLES-11-i686/Release/include/actITokenFile.h deleted file mode 100644 index 4f42757..0000000 --- a/actlibrary/SLES-11-i686/Release/include/actITokenFile.h +++ /dev/null @@ -1,71 +0,0 @@ -// --------------------------------------------------------------------------- -// Name: actITokenFile.h -// Product: cv act library -// Purpose: ITokenFile represents a simple smartcard file with path. -// -// Copyright: (c) 2008 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -// -// Autor: Markus Tesche -// Date: 09/02/2008 -// --------------------------------------------------------------------------- - -#ifndef ACT_TokenFile_h -#define ACT_TokenFile_h - -#include "actBlob.h" -#include "actIRefCounted.h" - -namespace act -{ - class ISCardOS; - - enum FILETYPE - { - UKType = -1 - }; - - // - // ITokenFile - class ITokenFile : public IRefCounted - { - public: - virtual ITokenFile* Clone() const = 0; - - virtual bool IsValid() const = 0; - - virtual bool Equals(const Blob& path) const = 0; - virtual bool Equals(const ISCardOS* os) const = 0; - virtual bool Equals(const ITokenFile* other) const = 0; - virtual bool IsParent(const ITokenFile* other, size_t* mismatch = 0) const = 0; - - virtual Blob& RefFCI() = 0; - virtual const Blob& GetFCI() const = 0; - - virtual Blob& RefAID() = 0; - virtual const Blob& GetAID() const = 0; - - virtual int GetFileType() const = 0; - virtual size_t GetFileLength() const = 0; - virtual const Blob& GetFilePath() const = 0; - virtual size_t GetFullLength() const = 0; - virtual size_t GetFullPath(Blob& path) const = 0; - - virtual ITokenFile* GetRelativeTo() const = 0; - virtual void SetRelativeTo(ITokenFile* parent) = 0; - virtual ITokenFile* MakeRelativeTo(ITokenFile* parent) = 0; - - virtual void SetFilePath(const Blob& filepath, int filetype) = 0; - virtual void SetFilePath(move_from filepath, int filetype) = 0; - - virtual const Blob& SelectApp(ISCardOS* os, int selectmode) = 0; - virtual const Blob& SelectFile(ISCardOS* os, int selectmode) = 0; - - virtual bool ProbeFilePath(ISCardOS* os, bool cut_non_existing) = 0; - }; - -} // namespace act - -#endif // ACT_TokenFile_h diff --git a/actlibrary/SLES-11-i686/Release/include/actITokenFileCache.h b/actlibrary/SLES-11-i686/Release/include/actITokenFileCache.h deleted file mode 100644 index 0991040..0000000 --- a/actlibrary/SLES-11-i686/Release/include/actITokenFileCache.h +++ /dev/null @@ -1,42 +0,0 @@ -// --------------------------------------------------------------------------- -// Name: actITokenFileCache.h -// Product: cv act library -// Purpose: Interface used for FID based binary cache. -// -// Copyright: (c) 2008 cv cryptovision GmbH -// all rights reserved. -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -// -// Autor: Markus Tesche -// Date: 11/07/2008 -// --------------------------------------------------------------------------- - -#ifndef ACT_ITokenFileCache_h -#define ACT_ITokenFileCache_h - -#include "actIRefCounted.h" - -#include - -namespace act -{ - class Blob; - class IToken; - - // - // ITokenFileCache - class ITokenFileCache : public IRefCounted - { - protected: - typedef std::map CacheMap; - - public: - virtual bool InitCache(IToken* token) = 0; - virtual Blob GetCache(const Blob& filepath) const = 0; - virtual void PutCache(const Blob& filepath, const Blob& memory) const = 0; - }; - -} // namespace act - -#endif // ACT_ITokenFileCache_h diff --git a/actlibrary/SLES-11-i686/Release/include/actITokenFileOwner.h b/actlibrary/SLES-11-i686/Release/include/actITokenFileOwner.h deleted file mode 100644 index 1762d31..0000000 --- a/actlibrary/SLES-11-i686/Release/include/actITokenFileOwner.h +++ /dev/null @@ -1,37 +0,0 @@ -// --------------------------------------------------------------------------- -// Name: actITokenFileOwner.h -// Product: cv act library -// Purpose: The ITokenFileOwner interface is implemented by objects which -// refer to a specific location on token represented by ITokenFile. -// -// Copyright: (c) 2010 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -// -// Autor: Markus Tesche -// Date: 28/03/2010 -// --------------------------------------------------------------------------- - -#ifndef ACT_ITokenFileOwner_h -#define ACT_ITokenFileOwner_h - -namespace act -{ - class ITokenFile; - - // - // ITokenFileOwner - class ITokenFileOwner - { - public: - virtual ITokenFile* GetPath() const = 0; - virtual void SetPath(ITokenFile* file) = 0; - - protected: - virtual ~ITokenFileOwner() { } - }; - -} // namespace act - -#endif // ACT_ITokenFileOwner_h diff --git a/actlibrary/SLES-11-i686/Release/include/actITokenInitializer.h b/actlibrary/SLES-11-i686/Release/include/actITokenInitializer.h deleted file mode 100644 index 0de6aef..0000000 --- a/actlibrary/SLES-11-i686/Release/include/actITokenInitializer.h +++ /dev/null @@ -1,131 +0,0 @@ -// --------------------------------------------------------------------------- -// Name: actITokenInitializer.h -// Product: cv act library -// Purpose: ITokenInitializer interface declares common token profile initialization functionality. -// -// Copyright: (c) 2009 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -// -// Autor: Markus Tesche -// Date: 04/20/2009 -// --------------------------------------------------------------------------- - -#ifndef ACT_ITokenInitializer_h -#define ACT_ITokenInitializer_h - -#include "actBlob.h" -#include "actTokenBase.h" -#include "actIRefCounted.h" - -namespace act -{ - extern const byte PIN_PAD_CHAR; - - struct TIData - { - private: - TIData(const TIData&) throw(); - TIData& operator=(const TIData&) throw(); - - public: - TIData(const char* _profile_name = 0) - : profile_name(_profile_name) - , profile_type(PROFILE_UNKNOWN) - , retry_counter(3) - , pin_pad_byte(PIN_PAD_CHAR) - , enable_pin_padding(false) - , enable_pin_pce_so(false) - , enable_pin_pce_user(false) - , enable_minidriver(false) - , enable_minidriver_pnp(false) - , enable_biometric(false) - , enable_biometric_pins(false) - , load_only(false) - , load_package_MoC(false) - , load_package_2048(false) - , load_package_ecc(false) - { } - - Blob atr_historical_bytes; - Blob atr_historical_bytes_suffix; - Blob card_pin; - Blob so_pin; - Blob user_pin; - Blob serial_number; - Blob last_update_pin_utc; - Blob challenge_response_key; - Blob binary_data; - - const char* profile_name; - ProfileType profile_type; - - short retry_counter; - byte pin_pad_byte; - - bool enable_pin_padding; - bool enable_pin_pce_so; - bool enable_pin_pce_user; - bool enable_minidriver; - bool enable_minidriver_pnp; - bool enable_biometric; - bool enable_biometric_pins; - - bool load_only; - bool load_package_MoC; - bool load_package_2048; - bool load_package_ecc; - }; - - struct TITokenInfo - { - TITokenInfo(size_t pin_len_max, size_t pin_len_min, size_t _key_len_cr) - : serial_number_len(16) - , key_len_cr(_key_len_cr) - { - pin_len_max_admin = pin_len_max_so = pin_len_max_user = pin_len_max; - pin_len_min_admin = pin_len_min_so = pin_len_min_user = pin_len_min; - } - - size_t serial_number_len; - - size_t key_len_cr; - - size_t pin_len_max_admin; - size_t pin_len_max_so; - size_t pin_len_max_user; - - size_t pin_len_min_admin; - size_t pin_len_min_so; - size_t pin_len_min_user; - }; - - class ISCardOS; - class IProfileGenerator; - class ISCardCmdObserver; - - // - // ITokenInitializer - class ITokenInitializer : public IRefCounted - { - public: - virtual ISCardOS* GetOS() const= 0; - virtual const TITokenInfo& GetTokenInfo() const = 0; - virtual const ProfileType* GetSupportedProfileList() const = 0; - - virtual bool SupportsProfile(ProfileType profile_type) const = 0; - virtual void SetGenerator(IProfileGenerator* generator) = 0; - virtual void SetObserver(ISCardCmdObserver* observer) = 0; - - virtual bool EraseProfile(const Blob& card_pin) = 0; - virtual bool ExistProfile(bool& is_pkcs15, bool& requires_adminpin) = 0; - virtual void CreateProfile(TIData& data, ProfileType profile_type) = 0; - virtual void FinalizeProfile(TIData& data) = 0; - - virtual void PinChangeReminder(TIData& data, bool enable) = 0; - }; - -} // namespace act - -#endif // ACT_ITokenInitializer_h diff --git a/actlibrary/SLES-11-i686/Release/include/actITokenKey.h b/actlibrary/SLES-11-i686/Release/include/actITokenKey.h deleted file mode 100644 index 47e21bb..0000000 --- a/actlibrary/SLES-11-i686/Release/include/actITokenKey.h +++ /dev/null @@ -1,64 +0,0 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actITokenKey.h -// Product: cv act library -// Purpose: The interface ITokenKey enables access to a key stored in a secure token. -// -// Copyright: (c) 2003 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_ITokenKey_h -#define ACT_ITokenKey_h - -#include "actIRefCounted.h" -#include "actISignatureKey.h" -#include "actITokenAuthOwner.h" -#include "actITokenFileOwner.h" - -#include "actTokenBase.h" - -namespace act -{ - class IToken; - class ITokenConfig; - - // - // ITokenKeyIterator - class ITokenKeyIterator : public IRefCounted - { - public: - virtual void Reset(ITokenFile* parent = 0) = 0; - virtual IKey* Next() = 0; - }; - - // - // ITokenKey - class ITokenKey - : public ISignatureKey - , public ITokenAuthOwner - , public ITokenFileOwner - { - public: - virtual ITokenKey* Clone() const = 0; - - virtual KeyType GetType() const = 0; - virtual IToken* GetToken() const = 0; - virtual const char* GetName() const = 0; - virtual void Configure(ITokenConfig* tkcfg) = 0; - - virtual Blob GetCertificate() const = 0; - virtual IKey* GetPublicKey() const = 0; - - virtual void VerifyPin(const Blob& pin) = 0; - - virtual Blob GetID() const = 0; - virtual Blob GetSubject() const = 0; - - virtual ITokenKeyIterator* Iterator(KeyType type, const Blob& authId = Blob()) const = 0; - }; - -} // namespace act - -#endif // ACT_ITokenKey_h diff --git a/actlibrary/SLES-11-i686/Release/include/actITokenPIN.h b/actlibrary/SLES-11-i686/Release/include/actITokenPIN.h deleted file mode 100644 index 3da8440..0000000 --- a/actlibrary/SLES-11-i686/Release/include/actITokenPIN.h +++ /dev/null @@ -1,221 +0,0 @@ -// --------------------------------------------------------------------------- -// Name: actITokenPIN.h -// Product: cv act library -// Purpose: The class ITokenPIN defines the interfaces of the PIN operations -// -// Copyright: (c) 2002 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -// -// Autor: Dr. Xiangdong Wang (XWG) -// Date: 04/05/2002 -// --------------------------------------------------------------------------- - -#ifndef ACT_ITokenPIN_h -#define ACT_ITokenPIN_h - -#include "actBasics.h" -#include "actDate.h" -#include "actBlob.h" - -#include "actITokenAuth.h" -#include "actITokenFileOwner.h" -#include "actIRefCounted.h" - -#include "actTokenBase.h" - -namespace act -{ - enum PINType - { - UNKNOWN_PIN = 0x0000, - SO_PIN = 0x0001, - USER_PIN = 0x0002, - UNBLOCK_PIN = 0x0003, - - PIN_MASK = 0x000F, - - EXAUTH_PIN = 0x0010, - BIOMETRIC_PIN = 0x0020, - CERTBASED_PIN = 0x0040, - - BAC_PIN = 0x0100, - ICAO_PIN = 0x0200, - - EAC_PACE_PIN = 0x0400, - EAC_TA_PIN = 0x0800, - EAC_CA_PIN = 0x1000, - - PIN_TYPE_MASK = 0x7fff, - - AUTHENTICATED_PIN = 0x8000, // Current authenticated PIN - - // combined types - EXAUTH_SO_PIN = EXAUTH_PIN | SO_PIN, - EXAUTH_UNBLOCK_PIN = EXAUTH_PIN | UNBLOCK_PIN, - - BIOMETRIC_USER_PIN = BIOMETRIC_PIN | USER_PIN, - BIOMETRIC_SO_PIN = BIOMETRIC_PIN | SO_PIN, - - EAC_PACE_UNKNOWN_PIN = EAC_PACE_PIN | UNKNOWN_PIN, - EAC_PACE_SO_PIN = EAC_PACE_PIN | SO_PIN, - EAC_PACE_USER_PIN = EAC_PACE_PIN | USER_PIN, - EAC_PACE_UNBLOCK_PIN = EAC_PACE_PIN | UNBLOCK_PIN, - - EAC_TA_UNKNOWN_PIN = EAC_TA_PIN | UNKNOWN_PIN, - EAC_TA_USER_PIN = EAC_TA_PIN | USER_PIN, - - EAC_CA_UNKNOWN_PIN = EAC_CA_PIN | UNKNOWN_PIN, - EAC_CA_USER_PIN = EAC_CA_PIN | USER_PIN, - }; - - enum PINFlags - { - PIN_INITIALIZED = (1 << 0), - PIN_IS_LOCAL = (1 << 1), - PIN_CASE_SENSITIVE = (1 << 2), - PIN_CHANGE_DISABLED = (1 << 3), - PIN_UNBLOCK_DISABLED = (1 << 4), - PIN_DISABLE_ALLOWED = (1 << 5), - PIN_NEEDS_PADDING = (1 << 6), - PIN_NEEDS_UPDATE = (1 << 7), - PIN_REQUIRES_SM = (1 << 8), - PIN_REQUIRES_NO_DATA = (1 << 9), - PIN_REQUIRES_ENCRYPTION = (1 << 10), - PIN_CHANGE_REQUIRES_OLD = (1 << 11), - PIN_IS_DEFAULT = (1 << 12), // marks the one and only default pin - - PIN_FLAGS_MASK = (1 << 13) - 1, - - // combined flags - PIN_FLAGS = PIN_INITIALIZED | PIN_IS_LOCAL | PIN_CASE_SENSITIVE, - PIN_FLAGS_DEFAULT = PIN_IS_DEFAULT | PIN_FLAGS, - PIN_FLAGS_SO = PIN_INITIALIZED | PIN_IS_LOCAL | PIN_CASE_SENSITIVE | PIN_UNBLOCK_DISABLED, - PIN_FLAGS_EXAUTH = PIN_INITIALIZED | PIN_IS_LOCAL, - PIN_FLAGS_BIOMETRIC = PIN_INITIALIZED | PIN_IS_LOCAL, - PIN_FLAGS_CERTBASED = PIN_INITIALIZED | PIN_IS_LOCAL | PIN_REQUIRES_NO_DATA | PIN_CHANGE_DISABLED | PIN_UNBLOCK_DISABLED, - }; - - enum AuthDataEncoding - { - PIN_ENCODING_UNKNOWN = -1, - PIN_ENCODING_BINARY = 0, - PIN_ENCODING_ASCII_NUMERIC, - PIN_ENCODING_UTF8, - PIN_ENCODING_BCD, - PIN_ENCODING_HALF_NIBBLE_BCD, - PIN_ENCODING_ISO9564_1, - - PIN_ENCODING = PIN_ENCODING_ASCII_NUMERIC, - }; - - enum AuthId - { - AUTHID_INVALID = 0x00, - }; - - enum BioFinger - { - FINGER_UNKNOWN = 0, - FINGER_RIGHT_THUMB = 1, - FINGER_RIGHT_INDEX = 2, - FINGER_RIGHT_MIDDLE = 3, - FINGER_RIGHT_RING = 4, - FINGER_RIGHT_LITTLE = 5, - FINGER_LEFT_THUMB = 6, - FINGER_LEFT_INDEX = 7, - FINGER_LEFT_MIDDLE = 8, - FINGER_LEFT_RING = 9, - FINGER_LEFT_LITTLE = 10 - }; - - class IAuthIdRef; - class ITokenFile; - class IToken; - class ISCardOS; - class AuthInfo; - - // - // ITokenPIN - class ITokenPIN - : public IRefCounted - , public ITokenFileOwner - { - public: - virtual ITokenPIN* Clone() const = 0; - virtual bool Equals(const ITokenPIN* other) const = 0; - virtual int Compare(const ITokenPIN* other) const = 0; - - virtual int GetType() const = 0; - virtual int GetUsage() const = 0; - virtual byte GetObjRef() const = 0; - virtual IToken* GetToken() const = 0; - virtual const char* GetName() const = 0; - virtual AuthDataEncoding GetEncoding() const = 0; - - virtual const AuthInfo* GetInfo() const = 0; - virtual void SetInfo(const AuthInfo* ai) = 0; - - virtual void SetDefault(bool is_default) = 0; - virtual bool IsDefault() const = 0; - - virtual bool IsInitialized() const = 0; - virtual bool IsAuthenticated() const = 0; - - virtual bool NeedsUpdate() const = 0; - virtual bool NeedsPINValue() const = 0; - - virtual bool GetLengthInfo(LengthInfo& info) const = 0; - virtual bool CheckPinLength(const Blob& pin) const = 0; - virtual bool GetLastChange(Date& date, bool& supported) const = 0; - - virtual void VerifyPin(const Blob& pin) = 0; - - // NOTE: ChangePin preserves the authentication state if successfull - // TODO: MTE: Describe in detail! - virtual void ChangePin(const Blob& oldpin, const Blob& newpin) = 0; - - // NOTE: UnlockPin preserves the authentication state if successfull - // TODO: MTE: Describe in detail! - virtual void UnlockPin(ITokenPIN* so, const Blob& pin, const Blob& newpin) = 0; - - // NOTE: SetPinValue preserves the authentication state if successfull - // TODO: MTE: Describe in detail! - virtual void SetPinValue(ITokenPIN* so, const Blob& so_pin, const Blob& newpin) = 0; - - virtual void Select(ISCardOS* os = 0) const = 0; - - virtual ITokenPIN* GetParent() const = 0; - - virtual IAuthIdRef* GetAuthIdRef() const = 0; - virtual IAuthIdRef* GetParentAuthIdRef() const = 0; - - // Bio extensions - virtual byte GetFinger() const = 0; - virtual bool GetBioHeader(Blob& bioheader) = 0; - - // ExternalAuth Key extensions - virtual Blob GetChallenge() const = 0; - virtual void ResetChallenge() = 0; - virtual Blob ComputeResponse(const Blob& auth_key, const Blob& challenge) const = 0; - - // Certificate based authentication extensions - virtual void SetCHAT(const Blob& chat) = 0; - virtual void SetCHAT(move_from chat) = 0; - virtual Blob GetCHAT() const = 0; - - protected: - // SCard Functionality - virtual Blob doGetChallenge() const = 0; - virtual void doResetChallenge() const = 0; - virtual void doVerify(const Blob& pin) const = 0; - virtual SecStatus doGetSecurityStatus(Blob& context) const = 0; - - private: - friend class TokenAuth; - }; - -} // namespace act - -#endif // ACT_ITokenPIN_h diff --git a/actlibrary/SLES-11-i686/Release/include/actIX509CRL.h b/actlibrary/SLES-11-i686/Release/include/actIX509CRL.h deleted file mode 100644 index 750ddd6..0000000 --- a/actlibrary/SLES-11-i686/Release/include/actIX509CRL.h +++ /dev/null @@ -1,48 +0,0 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actIX509CRL.h -// Product: cv act library -// Purpose: -// -// Copyright: (c) 2000 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_IX509CRL_h -#define ACT_IX509CRL_h -#include "actICRL.h" -#include "actX509Extension.h" - -namespace act -{ - - class IX509CRL: public ICRL - { - public: - virtual void SetThisUpdate(const Date &date )=0; - virtual void SetNextUpdate(const Date &date )=0; - virtual void GetThisUpdate(Date &date ) const=0; - virtual void GetNextUpdate(Date &date ) const=0; - - virtual X509Extension GetExtension(const char* oid) const=0; - virtual X509Extension GetExtension(const act::Blob& oidbl) const=0; - virtual void SetExtension(const X509Extension &ext)=0; - virtual X509Extension GetNextExtension(const X509Extension& ext) const=0; - virtual void RemoveExtension(const char* oid)=0; - - virtual Blob GetNextEntry(const Blob& certsernr) const=0; - - virtual void SetEntryRevocationDate(const Blob& certsn, const Date &vnbefore )=0; - virtual void GetEntryRevocationDate(const Blob& certsn, Date &vnbefore ) const=0; - - virtual X509Extension GetEntryExtension(const Blob& certsn, const char* oid) const=0; - virtual void SetEntryExtension(const Blob& certsn, const X509Extension &ext)=0; - virtual X509Extension GetNextEntryExtension(const Blob& certsn,const X509Extension& ext) const=0; - virtual void RemoveEntryExtension(const Blob& certsn,const char* oid)=0; - - }; -} // namespace act - -#endif - diff --git a/actlibrary/SLES-11-i686/Release/include/actIX509Certificate.h b/actlibrary/SLES-11-i686/Release/include/actIX509Certificate.h deleted file mode 100644 index 85d6907..0000000 --- a/actlibrary/SLES-11-i686/Release/include/actIX509Certificate.h +++ /dev/null @@ -1,46 +0,0 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actIX509Certificate.h -// Product: cv act library -// Purpose: The abstract class IX509Certificate enables access to a certificate, -// e.g. its public key and the corresponding validity. -// -// Copyright: (c) 2000 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_IX509Certificate_h -#define ACT_IX509Certificate_h - -#include "actBasics.h" -#include "actDate.h" -#include "actICertificate.h" -#include "actX509Extension.h" - -namespace act -{ - class IKey; - class Blob; - - class IX509Certificate : public ICertificate - { - public: - - virtual void SetValidityNotBefore(const Date &vnbefore ) =0; - virtual void SetValidityNotAfter(const Date &vnafter ) =0; - virtual void GetValidityNotBefore(Date &vnbefore ) const =0; - virtual void GetValidityNotAfter(Date &vnafter ) const =0; - - virtual bool CheckValidity(const Date& date = Date() ) const =0; - - virtual X509Extension GetExtension(const char* oid) const=0; - virtual X509Extension GetExtension(const act::Blob& oidbl) const=0; - virtual void SetExtension(const X509Extension &ext)=0; - virtual X509Extension GetNextExtension(const X509Extension& ext) const=0; - virtual void RemoveExtension(const char* oid)=0; - }; -} // namespace act - -#endif - diff --git a/actlibrary/SLES-11-i686/Release/include/actInit.h b/actlibrary/SLES-11-i686/Release/include/actInit.h deleted file mode 100644 index 36f0099..0000000 --- a/actlibrary/SLES-11-i686/Release/include/actInit.h +++ /dev/null @@ -1,578 +0,0 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actInit.h -// Product: cv act library -// Purpose: initialize the map entries of the objects -// -// Copyright: (c) 2007 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -// remarks: -// declare NO_SMARTCARD: no smartcard support required. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef actInit_h -#define actInit_h - -#include "actEnv.h" -#include "actKeyKit.h" -#include "actKeyReg.h" -#include "actBlockCipherKit.h" -#include "actBlockCipherReg.h" -#include "actBlockCipherModeReg.h" -#include "actBlockCipherModeKit.h" -#include "actStreamCipherKit.h" -#include "actStreamCipherReg.h" -#include "actHashKit.h" -#include "actHashReg.h" -#include "actEMSAReg.h" -#include "actEMSAKit.h" -#include "actDerivatorReg.h" -#include "actDerivatorKit.h" -#include "actPaddingReg.h" -#include "actPaddingKit.h" -#include "actCertificateReg.h" -#include "actCertificateKit.h" -#include "actX509KeyReg.h" -#include "actX509SignReg.h" -#include "actX509SignHashReg.h" -#include "actX509Kit.h" -#include "actDefaultRNG.h" -#include "actRNGKit.h" - -#ifndef NO_SMARTCARD -// NOTE: To Enable support for additional smartcards / profiles define: -// ACT_SUPPORT_TCOS_NETKEY30 -# include "actSCardOSReg.h" -# include "actSCardOSKit.h" -# include "actSCardTokenReg.h" -# include "actSCardTokenKit.h" -# include "actSubsystemReg.h" -# include "actSubsystemKit.h" -# include "actSlotMonitorReg.h" -# include "actSlotMonitorKit.h" -# include "actTokenExtensionReg.h" -# include "actTokenExtensionKit.h" -# include "actTokenAuthProtocolReg.h" -# include "actTokenAuthProtocolKit.h" -# include "actJCAppletKit.h" -# include "actJCAppletReg.h" -# include "actPKCS15BehaviorReg.h" -# include "actPKCS15BehaviorKit.h" -# include "actProfileGeneratorReg.h" -# include "actProfileGeneratorKit.h" -#endif // NO_SMARTCARD - -namespace act -{ - // ------------------------------------------------------------------------ - const KeyMapEntry KeyMap[] = - { - { "BlockCipher", CreateBlockCipherKey }, - { "StreamCipher", CreateStreamCipherKey }, - - { "IES", CreateIESKey }, - { "DSA", CreateDSAKey }, - { "RSA", CreateRSAKey }, - { "ECDSA", CreateECDSAKey }, - { "ECGDSA", CreateECGDSAKey }, - - { "DH", CreateDHKey }, - { "ECDH", CreateECDHKey }, - - { "HashMAC", CreateHashMACKey }, - { "CBCMAC", CreateCBCMACKey }, - { "SecretKeyMAC", CreateSecretKeyMACKey }, - { "RetailCFBMAC", CreateRetailCFBMACKey }, - { "iMAC3", Create_iMAC3Key }, // ISO9797-1 M2 Alg 3 MAC8 - { "CMAC", CreateCMACKey }, // NIST 800-38B CMAC - { 0, 0 } - }; - - // ------------------------------------------------------------------------ - const BlockCipherMapEntry BlockCipherMap[] = - { - { "AES", CreateRijndael }, - { "DES", CreateDES }, - { "TripleDES", CreateTripleDES }, - { "CAST128", CreateCAST128 }, - { "BlowFish", CreateBlowFish }, - { "Mars", CreateMars }, - { "Serpent", CreateSerpent }, - { "Rijndael", CreateRijndael }, - { "TwoFish", CreateTwoFish }, - { "RC2", CreateRC2 }, - //{ "RC6", CreateRC6 }, - { 0, 0 } - }; - - // ------------------------------------------------------------------------ - const BlockCipherModeMapEntry BlockCipherModeMap[] = - { - { "ECB", CreateECBMode }, - { "CBC", CreateCBCMode }, - { "CFB", CreateCFBMode }, - { "OFB", CreateOFBMode }, - { "CTR", CreateCTRMode }, - { 0, 0 } - }; - - // ------------------------------------------------------------------------ - const StreamCipherMapEntry StreamCipherMap[] = - { - { "ARC4", CreateARC4 }, - { 0, 0 } - }; - - // ------------------------------------------------------------------------ - const HashMapEntry HashMap[] = - { - { "MD2", CreateMD2 }, - { "MD4", CreateMD4 }, - { "MD5", CreateMD5 }, - { "RIPEMD128", CreateRipemd128 }, - { "RIPEMD160", CreateRipemd160 }, - { "SHA0", CreateSHA0 }, - { "SHA1", CreateSHA1 }, - { "SHA224", CreateSHA224 }, - { "SHA256", CreateSHA256 }, - { "SHA384", CreateSHA384 }, - { "SHA512", CreateSHA512 }, - { "DummyHash", CreateDummyHash }, - { 0, 0 } - }; - - // ------------------------------------------------------------------------ - const EMSAMapEntry EMSAMap[] = - { - { "EMSA1", CreateEMSA1 }, - { "PKCS1V1_5EMSA", CreatePKCS1V1_5EMSA }, - { "TLS_EMSA", CreateTLS_EMSA}, - { "PKCS1_PSS_EMSA", CreatePKCS1_PSS_EMSA }, - { "DummyEMSA", CreateDummyEMSA }, // Used for "Hash on Card" - { 0, 0 } - }; - - // ------------------------------------------------------------------------ - const DerivatorMapEntry DerivatorMap[] = - { - { "KDF1", CreateKDF1 }, // IEEE P1363 KDF1 - { "KDF2", CreateX963KDF }, // IEEE P1363 KDF2 (= X963KDF) - { "X963KDF", CreateX963KDF }, // ANSI X9.63 KDF - { "PBKDF1", CreatePBKDF1 }, // PKCS#5 PBKDF1 - { "PBKDF2", CreatePBKDF2 }, // PKCS#5 PBKDF2 - { "EACKDF", CreateEACKDF }, // EAC 2.01, BSI TR-03110 A.2.3 - { "SessionKDF", CreateEACKDF }, // BSI TR-03111 (= EACKDF) - { 0, 0 } - }; - - // ------------------------------------------------------------------------ - const PaddingMapEntry PaddingMap[] = - { - { "PKCS5", CreatePKCS5Pad }, - { "RSAES", CreatePKCS1V1_5EMEPad }, - { "ISO", CreateOneAndZerosPad }, - { "ISO9796", CreateISO9796Pad }, - { "NOPAD", CreateNoPad }, - { 0, 0 } - }; - - // ------------------------------------------------------------------------ - const CertificateMapEntry CertificateMap[] = - { - { "X509", CreateX509Certificate }, - { "CV", CreateCVCertificate }, - { 0, 0 } - }; - - // ------------------------------------------------------------------------ - const CRLMapEntry CRLMap[] = - { - { "X509", CreateX509CRL }, - { 0, 0 } - }; - - // ------------------------------------------------------------------------ - const X509KeyMapEntry X509KeyMap[] = - { - { "1.2.840.113549.1.1.1", CreateRSAKey, X509ToRSA, RSAToX509 }, - { "2.5.8.1.1", CreateRSAKey, X509ToRSA, RSAToX509 }, - { "1.2.840.10040.4.1", CreateDSAKey, X509ToDSA, DSAToX509 }, - { "1.3.14.3.2.20", CreateDSAKey, X509ToDSA, DSAToX509 }, - { "1.3.14.3.2.12", CreateDSAKey, X509ToDSA, DSAToX509 }, // secude DSA oid - { "1.2.840.10046.2.1", CreateDHKey, X509ToDH, DHToX509 }, - { "1.2.840.10045.2.1", CreateECDSAKey, X509ToECDSA, ECDSAToX509 }, - { "1.2.840.10045.2.1", CreateECDHKey, X509ToECDSA, ECDSAToX509 }, - { 0, 0, 0, 0 } - }; - - // ------------------------------------------------------------------------ - const X509SignMapEntry X509SignMap[] = - { - { CreateRSAKey, RSAGetAlgID, RSASetAlgID }, - { CreateDSAKey, DSAGetAlgID, DSASetAlgID }, - { CreateECDSAKey, ECDSAGetAlgID, ECDSASetAlgID }, - { CreateDHKey, DHGetAlgID, DHSetAlgID }, - { CreateECDHKey, ECDHGetAlgID, ECDHSetAlgID }, - { 0, 0, 0 } - }; - - // ------------------------------------------------------------------------ - const X509SignHashMapEntry X509SignHashMap[] = - { - // RSA - { "1.2.840.113549.1.1.2", "MD2", "RSA" }, // md2WithRSAEncryption - { "1.2.840.113549.1.1.3", "MD4", "RSA" }, // md4WithRSAEncryption - { "1.2.840.113549.1.1.4", "MD5", "RSA" }, // md5WithRSAEncryption - { "1.2.840.113549.1.1.5", "SHA1", "RSA" }, // shaWithRSAEncryption - { "1.3.14.3.2.29", "SHA1", "RSA" }, - { "1.2.840.113549.1.1.11", "SHA256", "RSA" }, // sha256WithRSAEncryption - { "1.2.840.113549.1.1.12", "SHA384", "RSA" }, // sha384WithRSAEncryption - { "1.2.840.113549.1.1.13", "SHA512", "RSA" }, // sha512WithRSAEncryption - { "1.2.840.113549.1.1.14", "SHA224", "RSA" }, // sha224WithRSAEncryption - { "1.3.36.3.3.1.2", "RIPEMD160", "RSA" }, - { "1.3.36.3.3.1.3", "RIPEMD128", "RSA" }, - // DSA - { "1.2.840.10040.4.3", "SHA1", "DSA" }, - { "1.3.14.3.2.28", "SHA1", "DSA" }, - { "1.3.14.3.2.27", "SHA1", "DSA" }, // secude DSA oid - // ECDSA - { "1.2.840.10045.4.1", "SHA1", "ECDSA" }, // ecdsa-with-Sha1 - { "1.2.840.10045.2.1", "SHA1", "ECDSA" }, // ecdsa-with-Sha1 (deprecated) - { "1.2.840.10045.4.3.1", "SHA224", "ECDSA" }, // ecdsa-with-Sha224 - { "1.2.840.10045.4.3.2", "SHA256", "ECDSA" }, // ecdsa-with-Sha256 - { "1.2.840.10045.4.3.3", "SHA384", "ECDSA" }, // ecdsa-with-Sha384 - { "1.2.840.10045.4.3.4", "SHA512", "ECDSA" }, // ecdsa-with-Sha512 - // DH - { "1.3.6.1.5.5.7.6.4", "SHA1", "DH" }, // DH-POP - // ECDH - { "1.2.840.10045.2.1", "SHA1", "ECDH" }, // "ECDH-POP" - { 0, 0, 0 } - }; - -#ifndef NO_SMARTCARD - // ------------------------------------------------------------------------ - const SCardOSMapEntry SCardOSMap[] = - { - // NOTE: Only lower case historical bytes ! - /* - { "0064050a020131809000", CreateTCOS }, // NetKey (TCOS V2R1) - { "00640560020331809000", CreateTCOS }, // NetKey (TCOS V2R3) - { "0064057b020331809000", CreateTCOS }, // NetKey (TCOS V2R?) - { "00640514020231809000", CreateTCOS }, // etrust (TCOS V2R2) - { "00640561020331809000", CreateTCOS }, // TCOS USB Crypt Token - { "0068d276000028ff051e3180009000", CreateMicardOS }, // Micardo P2.1 - { "4d4943323045", CreateMicardo20E }, // Micardo EC 2.0 - { "0068d276000028ff05233180009000", CreateMicardo23E }, // Micardo EC 2.3 - */ - - // ACOS - { "454d56203033202006", CreateACOS_D01 }, // Austria Card ACOS EMV-D01 - { "44492030324d", CreateACOS_D01 }, // Austria Card ACOS EMV-D01 contactless - { "455041000000000228505900000000", CreateACOS_A04 }, // Austria Card ACOS EMV-A04/A05 - { "455041000000000000000000000000", CreateACOS_A04 }, // Austria Card ACOS EMV-A04/A05 - - // CardOS - { "c802", CreateCardOS_M4 }, // CardOS M4.0 siemens profile - { "c803", CreateCardOS_M4 }, // CardOS M4.01 siemens profile - { "c804", CreateCardOS_M4 }, // CardOS M4.01a siemens profile - { "4d346376", CreateCardOS_M4 }, // CardOS M4.01(a) cv profile - { "4d3463765f4d", CreateCardOS_M4_MoC }, // CardOS M4.01_M cv profile - { "4d3463765f45", CreateCardOS_M4_ECC }, // CardOS M4.01_E cv profile - { "c806", CreateCardOS_V4 }, // CardOS V4.2 - { "c807", CreateCardOS_V4 }, // CardOS V4.3 - { "c808", CreateCardOS_V4 }, // CardOS V4.3B - { "c809", CreateCardOS_V4 }, // CardOS V4.2B - { "c80a", CreateCardOS_V4 }, // CardOS V4.2B DI - { "0000c80a3381b100", CreateCardOS_V4 }, // CardOS V4.2B DI contactless - { "c80b", CreateCardOS_V4 }, // CardOS V4.2C - { "c80d", CreateCardOS_V4 }, // CardOS V4.4 - { "56346376", CreateCardOS_V4 }, // CardOS V4.2/4.3/4.3B cv profile - { "563432626376", CreateCardOS_V4 }, // CardOS V4.2b cv profile - { "5634326244496376", CreateCardOS_V4 }, // CardOS V4.2b DI cv profile - { "563432636376", CreateCardOS_V4 }, // CardOS V4.2c cv profile - { "5634346376", CreateCardOS_V4 }, // CardOS V4.4 cv profile - { "563463765f45", CreateCardOS_V4_ECC }, // CardOS V4.3B ECC cv profile - { "006b0508c806012101434e53103180", CreateCardOS_V4 }, // CardOS V4.2 CNS profile, 2004.02.20 - { "006b0508c807012101434e53103180", CreateCardOS_V4 }, // CardOS V4.3 CNS profile, 2004.02.20 - { "006b0508c808012101434e53103180", CreateCardOS_V4 }, // CardOS V4.3B CNS profile, 2004.02.20 - { "006b0508c806011101434e53103180", CreateCardOS_V4 }, // CardOS V4.2 CNS profile, 2005.03.11 - { "006b0508c807011101434e53103180", CreateCardOS_V4 }, // CardOS V4.3 CNS profile, 2005.03.11 - { "006b0508c808011101434e53103180", CreateCardOS_V4 }, // CardOS V4.3B CNS profile, 2005.03.11 - { "006b0508c808011101434e53103180", CreateCardOS_V4 }, // CardOS V4.3B CNS profile, 2005.03.11 - { "4b53776973735369676e", CreateCardOS_V4 }, // CardOS V4.3B/V4.4 ATR by SwissSign - - // STARCOS - //{ "53504b32339000", CreateStarCOS_3_0}, // G&D STARCOS SPK 2.3 - { "80670412b0030300008101", CreateStarCOS_3_0 }, // G&D STARCOS 3.0 (creational state) - { "80670412b0030300008105", CreateStarCOS_3_0 }, // G&D STARCOS 3.0 - { "80670412b003030000", CreateStarCOS_3_0 }, // G&D STARCOS 3.0 contactless - { "80655343010d067394211b8101", CreateStarCOS_3_0 }, // G&D STARCOS 3.1 (creational state) - { "80655343010d067394211b8105", CreateStarCOS_3_0 }, // G&D STARCOS 3.1 - { "0064051eb20031b0739621db019000", CreateStarCOS_3_2 }, // G&D STARCOS 3.2 (creational state) - { "0064051eb20031b0739621db059000", CreateStarCOS_3_2 }, // G&D STARCOS 3.2 - - // TCOS -#ifdef ACT_SUPPORT_TCOS_NETKEY30 - { "00640411030131c073f701d0009000", CreateTCOS_3_0 }, // NetKey (TCOS 3.0) -#endif - // JavaCards - { "8073002113574a544861314a00", CreateJavaCardOS_2_2 }, // G&D SmartCafe Expert 64 (cfg1) - { "8073002113574a544861314700", CreateJavaCardOS_2_2 }, // G&D SmartCafe Expert 64 (cfg2) - { "8073002113574a544861314800", CreateJavaCardOS_2_2 }, // G&D SmartCafe Expert 64 (cfg3) - { "8073002113574a544861314b00", CreateJavaCardOS_2_2 }, // G&D SmartCafe Expert 64 (cfg4) - { "8073002113574a544861314c00", CreateJavaCardOS_2_2 }, // G&D SmartCafe Expert 64 (cfg5) - { "8073002113574a544861314900", CreateJavaCardOS_2_2 }, // G&D SmartCafe Expert 64 (cfg8) - { "404d4f504153530000000000000000", CreateJavaCardOS_2_2 }, // G&D SmartCafe Expert 64 (XMC2) - - { "534653452d43583332322d56180308", CreateJavaCardOS_2_1_1 },// G&D SmartCafe Expert 2.0 - { "0073c84013009000", CreateJavaCardOS_2_2_1 }, // G&D SmartCafe Expert 3.0 / 3.1 / 3.1 contactless - { "4138004133b1020073c840130090", CreateJavaCardOS_2_2_1 }, // G&D SmartCafe Expert 3.1 contactless (SCM SDI010, Firmware V6.28) - { "4138004133b10073c84013009000", CreateJavaCardOS_2_2_1 }, // G&D SmartCafe Expert 3.1 contactless (SCM SDI010, Firmware V6.32) - { "73667465206364313434", CreateJavaCardOS_2_2_1 }, // G&D SmartCafe Expert 3.2 PIV 144 KB - { "736674652D6364303830", CreateJavaCardOS_2_2_1 }, // G&D SmartCafe Expert 3.2 PIV 80 KB - { "73667465", CreateJavaCardOS_2_2_1 }, // G&D SmartCafe Expert 3.2 (sfte) - { "736674652d6e66", CreateJavaCardOS_2_2_1 }, // G&D SmartCafe Expert 3.2 (sfte-nf) - { "73c840130090009b", CreateJavaCardOS_2_2_1 }, // G&D SmartCafe Expert 3.2 USB Token - { "736674652063643038302d6e66", CreateJavaCardOS_2_2_1 }, // G&D SmartCafe Expert 3.2 (sfte cd080-nf) - { "53462d3443432d3031", CreateJavaCardOS_2_2_1 }, // G&D SmartCafe Expert 5.0 - { "53504b323544499000", CreateJavaCardOS_2_2_1 }, // G&D Mobile Security Card 3.x - { "4d5343", CreateJavaCardOS_2_2_1 }, // G&D Mobile Security Card 3.x - - //{ "4a434f503230", CreateJavaCardOS_2_1 }, // JCOP 20 - { "4a434f503231563232", CreateJavaCardOS_2_2_1 }, // JCOP 21 V2.2 - { "4a434f50323156323331", CreateJavaCardOS_2_2_1 }, // JCOP 21 V2.3.1 - { "4a434f503331563231", CreateJavaCardOS_2_1 }, // JCOP 31 V2.1 - { "4a434f503331563232", CreateJavaCardOS_2_2_1 }, // JCOP 31 V2.2 - { "4a434f50333156323331", CreateJavaCardOS_2_2_1 }, // JCOP 31 V2.3.1 - { "4a434f503331563234", CreateJavaCardOS_2_2_1 }, // JCOP 31 V2.4 - //{ "4a434f5033313336474454", CreateJavaCardOS_2_2_1 }, // JCOP 31 36GDT - { "4a434f503431563232", CreateJavaCardOS_2_2_1 }, // JCOP 41 V2.2 / V2.2 contactless - { "4128001133b04a434f5034315632", CreateJavaCardOS_2_2_1 }, // JCOP 41 V2.2 contactless (SCM SDI010, Firmware V6.32) - { "4a434f50343156323231", CreateJavaCardOS_2_2_1 }, // JCOP 41 V2.2.1 - { "4138001133b04a434f5034315632", CreateJavaCardOS_2_2_1 }, // JCOP 41 V2.2.1 contactless - { "4a434f50343156323331", CreateJavaCardOS_2_2_1 }, // JCOP 41 V2.3.1 - { "4a434f50343156323332", CreateJavaCardOS_2_2_1 }, // JCOP 41 V2.3.2 - { "4a434f503431563234", CreateJavaCardOS_2_2_1 }, // JCOP 41 V2.4 - { "4a434f5076323431", CreateJavaCardOS_2_2_2 }, // JCOP v2.4.1 - { "434f50343156323231ff", CreateJavaCardOS_2_2_1 }, // JCOP 41 V2.2.1 (IDptoken 200) - { "4a434f507632343262657461", CreateJavaCardOS_2_2_2 }, // JCOP v2.4.2 beta - { "0073c84000009000", CreateJavaCardOS_2_2_1 }, // JCOP V2.3.2 - - { "4a434f50563231", CreateJavaCardOS_2_1 }, // JCOP V2.1 - { "4a434f50563232", CreateJavaCardOS_2_2_1 }, // JCOP V2.2 - { "4a434f5056323231", CreateJavaCardOS_2_2_1 }, // JCOP V2.2.1 - { "4a434f50563233", CreateJavaCardOS_2_2_1 }, // JCOP V2.3 - { "4a434f5056323331", CreateJavaCardOS_2_2_1 }, // JCOP V2.3.1 - { "4a434f5056323332", CreateJavaCardOS_2_2_1 }, // JCOP V2.3.2 - { "4a434f50563234", CreateJavaCardOS_2_2_1 }, // JCOP V2.4 - { "4a434f5056323431", CreateJavaCardOS_2_2_2 }, // JCOP V2.4.1 - { "4a434f5056323432", CreateJavaCardOS_2_2_2 }, // JCOP V2.4.2 - - { "4a434f5033314d34", CreateJavaCardOS_2_2_1 }, // Austriacard JCOP31M4 - { "4a434f5032315632325f", CreateJavaCardOS_2_2_1 }, // AustriaCard JCOP 21 V2.2, T0, T1 - { "4a434f5033315632325f", CreateJavaCardOS_2_2_1 }, // AustriaCard JCOP 31 V2.2, T0, T1 - { "4a434f5034315632345f", CreateJavaCardOS_2_2_1 }, // AustriaCard JCOP 41 V2.4, T0, T1 - { "4a434f50563234314143", CreateJavaCardOS_2_2_1 }, // AustriaCard JCOP V2.4.1, T0, T1 - - { "5257414e44415f4944", CreateJavaCardOS_2_2_1 }, // AustriaCard JCOP V2.4.1 'RWANDA_ID' - { "44654c61527565", CreateJavaCardOS_2_2_1 }, // AustriaCard JCOP V2.4.1 'DeLaRue' - - { "803180664090a4561b1183019000", CreateJavaCardOS_2_2_1 }, // Infineon jTOP 20ID - - { "80318065b0831148c883009000", CreateJavaCardOS_2_2_1 }, // Gemalto TOP IM GX4 - //{ "80318065b08301029083009000", CreateJavaCardOS_2_2_1 }, // Gemalto I-DENTITY CARD - { "8065b08301017483009000", CreateJavaCardOS_2_1_1 }, // Gemplus GemXpresso Pro R3 - { "8065b08301037483009000", CreateJavaCardOS_2_1_1 }, // Gemplus GemXpresso Pro R3 - //{ "8065a20101013d72d643", CreateJavaCardOS_2_1_1 }, // Gemplus GemXpresso Pro R3 E32 PK - - { "0031c06477e30300829000", CreateJavaCardOS_2_1_1 }, // Oberthur CosmopolIC 64K v5.2D - - { "8059017f4849444a43327300011b", CreateJavaCardOS_2_2_2 }, // HID Crescendo C700 (JC2s) ("Standard JavaCard, T0/1, Platform Default Packages") - { "804f0ca0000003060a001d00000000", CreateJavaCardOS_2_2_2 },// HID Crescendo C700 (JC2s) contactless - - { ACT_ISO7816OS_NAME, CreateISO7816OS }, // use act::ISO7816OS as fallback - { 0, 0 } - }; - - // ------------------------------------------------------------------------ - const SCardTokenMapEntry SCardTokenMap[] = - { - // Passport - { IsEPAProfile, CreateEPAProfile }, - - // PKCS#15 - { IsM4PKCS15Profile, CreateM4PKCS15Profile }, - { IsV4PKCS15ECProfile, CreateV4PKCS15ECProfile }, - { IsV4PKCS15Profile, CreateV4PKCS15Profile }, - { IsJCPKCS15ECProfile, CreateJCPKCS15ECProfile }, - { IsJCPKCS15Profile, CreateJCPKCS15Profile }, - { IsACOSPKCS15Profile, CreateACOSPKCS15Profile }, - { IsStarCOSPKCS15Profile, CreateStarCOSPKCS15Profile }, - - // ACOS - { IsACOScvProfile, CreateACOScvProfile }, - - // CardOS - { IsM4cvMoCProfile, CreateM4cvMoCProfile }, - { IsM4cvECProfile, CreateM4cvECProfile }, - { IsV4cvECProfile, CreateV4cvECProfile }, - { IsV4cvProfile, CreateV4cvProfile }, - { IsM4cvProfile, CreateM4cvProfile }, - // { IsV4CNSProfile, CreateV4CNSProfile }, - - // TCOS -#ifdef ACT_SUPPORT_TCOS_NETKEY30 - { IsNetKey30Token, CreateNetKey30Token }, -#endif - - // JavaCardOS - { IsJCProfile, CreateJCProfile }, - // { IsJavaCardAppletManager, CreateJavaCardAppletManager }, - - /* - { IsStarCOSToken, CreateStarCOSToken }, - { IsNetKey2000Token, CreateNetKey2000Token }, - { IsNetKeyE4Token, CreateNetKeyE4Token }, - { IsNetKeyPKSToken, CreateNetKeyPKSToken }, - { IsNetKeyOldToken, CreateNetKeyOldToken }, - { IseTrustToken, CreateeTrustToken }, - { IsMicardoECToken, CreateMicardoECToken }, - { IsM4SiemensProfile, CreateM4SiemensProfile }, - */ - { 0, 0 } - }; - - // ------------------------------------------------------------------------ - const ProfileGeneratorMapEntry ProfileGeneratorMap[] = - { - { "JavaCardOS", CreateJCPKCS15Generator }, - { 0, 0 } - }; - - // ------------------------------------------------------------------------ - const PKCS15BehaviorMapEntry PKCS15BehaviorMap[] = - { - { "cv cryptovision gmbh (c) v1.0j", CreateJCPKCS15Behavior }, - { "cv cryptovision gmbh (c) v1.0jEAC", CreateJCPKCS15mEACBehavior }, - { "cv cryptovision gmbh (c) v1.0n", CreateV4PKCS15Behavior }, - { "cv cryptovision gmbh (c) v1.0na", CreateACOSPKCS15Behavior }, - { "cv cryptovision gmbh (c) v1.0ns", CreateStarCOSPKCS15Behavior }, - { "A.E.T. Europe B.V.", CreateSafeSignBehavior }, - { "Giesecke&Devrient GmbH", CreateStarSignBehavior }, - { "D-TRUST GmbH (C)", CreateDTRUSTBehavior }, - { "Siemens AG (C)", CreateHiPathBehavior }, - { "Technology Nexus", CreateNexusBehavior }, - { "Volkswagen AG", CreateVWBehavior }, - { "", CreatePKCS15Behavior }, // default - { 0, 0 } - }; - - // ------------------------------------------------------------------------ - const TokenExtensionMapEntry TokenExtensionMap[] = - { - { "MDProfileExt", CreateMDProfileExt }, // Minidriver FS Profile Extension - -# if defined(ACT_WIN32) && !defined(ACT_MINGW) - { "EAC 2.01 TA", CreateEACTAwithCAPI }, - -# endif - { 0, 0 } - }; - - // ------------------------------------------------------------------------ - const TokenAuthProtocolMapEntry TokenAuthProtocolMap[] = - { - { "EAC 2.01 PACE", CreateTokenAuthPACE }, - { "EAC 2.01 TA", CreateTokenAuthTA }, - { "EAC 2.01 CA", CreateTokenAuthCA }, - { "BAC", CreateTokenAuthBAC }, - { 0, 0 } - }; - - // ------------------------------------------------------------------------ - const SubsystemMapEntry SubsystemMap[] = - { - { "PCSC", CreatePCSCSystem, CreatePCSCSystemEx }, - { "CTAPI", CreateCTAPISystem, 0 }, - { "PKCS11", CreatePKCS11System, 0 }, - -# if defined(ACT_WIN32) && !defined(ACT_MINGW) - { "CSP", CreateCSPSystem, 0 }, - -# endif - { 0, 0, 0 } - }; - - // ------------------------------------------------------------------------ - const SlotMonitorRegEntry SlotMonitorMap[] = - { - { "PCSC", { CreatePCSCSlotMonitor, CreatePCSCSystemSlotMonitor } }, - { "CTAPI", { CreateSlotMonitor, 0 } }, - { "PKCS11", { CreateSlotMonitor, 0 } }, - -# if defined(ACT_WIN32) && !defined(ACT_MINGW) - { "CSP", { CreateSlotMonitor, 0 } }, - -# endif - { 0, { 0, 0 } } - }; - - // ------------------------------------------------------------------------ - const JCardAppletEntry JCardAppletMap[] = - { - // AID if it is equal to 0 then all AID are able - // function returns true if the Applet can used - // creates an new applet - // number of PIN's Key's Certificate's - // if they are -1 then it will be checked - // if they are biger or equal to 0 they are const - { "D276000098C00000", IsJCProfileApplet, CreateJCProfileApplet, 1, 1, 0 }, - { 0, 0, 0, 0, 0, 0 } - }; -#endif // NO_SMARTCARD - - // ------------------------------------------------------------------------ - // Version: V1R4M4 - const char* GetVersion(); - - // ------------------------------------------------------------------------ - inline void Init(bool bAlwaysInit = false) - { - static bool loaded = false; - if(loaded == true && bAlwaysInit == false) - return; - - KeyReg::Insert(KeyMap); - BlockCipherReg::Insert(BlockCipherMap); - BlockCipherModeReg::Insert(BlockCipherModeMap); - StreamCipherReg::Insert(StreamCipherMap); - HashReg::Insert(HashMap); - EMSAReg::Insert(EMSAMap); - DerivatorReg::Insert(DerivatorMap); - PaddingReg::Insert(PaddingMap); - CertificateReg::Insert(CertificateMap); - CRLReg::Insert(CRLMap); - X509KeyReg::Insert(X509KeyMap); - X509SignReg::Insert(X509SignMap); - X509SignHashReg::Insert(X509SignHashMap); - -#ifndef NO_SMARTCARD - SubsystemReg::Insert(SubsystemMap); - SlotMonitorReg::Insert(SlotMonitorMap); - SCardOSReg::Insert(SCardOSMap); - SCardTokenReg::Insert(SCardTokenMap); - ProfileGeneratorReg::Insert(ProfileGeneratorMap); - PKCS15BehaviorReg::Insert(PKCS15BehaviorMap); - TokenExtensionReg::Insert(TokenExtensionMap); - TokenAuthProtocolReg::Insert(TokenAuthProtocolMap); - JCardAppletReg::Insert(JCardAppletMap); -#endif - CreateFastRNG = CreateFIPS186; - CreateStrongRNG = CreateBBS; - loaded = true; - } - -} // namespace act - -#endif // actInit_h diff --git a/actlibrary/SLES-11-i686/Release/include/actJCAppletKit.h b/actlibrary/SLES-11-i686/Release/include/actJCAppletKit.h deleted file mode 100644 index 0d48e6d..0000000 --- a/actlibrary/SLES-11-i686/Release/include/actJCAppletKit.h +++ /dev/null @@ -1,30 +0,0 @@ -// --------------------------------------------------------------------------- -// Name: actAppletKit.h -// Product: cv act library -// Purpose: registry for factory functions to create JavaCard Applet -// -// Copyright: (c) 2002 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -// -// Autor: -// Date: 02/10/2003 -// --------------------------------------------------------------------------- - -#ifndef ACT_AppletKit_h -#define ACT_AppletKit_h - -#include "actBlob.h" - -namespace act -{ - class IToken; - class JavaCardOS; - - bool IsJCProfileApplet(JavaCardOS* os, const Blob& aid); - IToken* CreateJCProfileApplet(JavaCardOS* os, const Blob& aid); - -} // namespace act - -#endif // ACT_AppletKit_h diff --git a/actlibrary/SLES-11-i686/Release/include/actJCAppletReg.h b/actlibrary/SLES-11-i686/Release/include/actJCAppletReg.h deleted file mode 100644 index a8dfa8f..0000000 --- a/actlibrary/SLES-11-i686/Release/include/actJCAppletReg.h +++ /dev/null @@ -1,62 +0,0 @@ -// --------------------------------------------------------------------------- -// Name: actAppletReg.h -// Product: cv act library -// Purpose: registry for factory functions to create JavaCardApplet object -// -// Copyright: (c) 2002 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -// -// Autor: -// Date: 02/10/2003 -// --------------------------------------------------------------------------- - -#ifndef ACT_AppletReg_h -#define ACT_AppletReg_h - -#ifdef _MSC_VER -#pragma warning (disable:4786) -#endif - -namespace act -{ - class JavaCardOS; - class IToken; - class Blob; - - typedef IToken* (*CreateJCardAppletPtr)(JavaCardOS*, const Blob& aid); - typedef bool (*CheckJCardAppletPtr)(JavaCardOS*, const Blob& aid); - - struct JCardAppletEntry - { - const char* hexid; - CheckJCardAppletPtr CheckPtr; - CreateJCardAppletPtr CreatePtr; - int keys; - int certs; - int auth_objs; - }; - - struct JCardAppletInfoEntry - { - int keys; - int certs; - int auth_objs; - }; - - class JCardAppletReg - { - public: - static IToken* CreateJCardApplet(JavaCardOS* os, const Blob& aid); - static JCardAppletInfoEntry GetJCardAppletInfo(JavaCardOS* os, const Blob& aid); - static bool IsJCardApplet(JavaCardOS* os, const Blob& aid); - - static void Insert(const JCardAppletEntry* entry); - static void Insert(const char* id, CheckJCardAppletPtr checkptr, CreateJCardAppletPtr createptr, - int keys = -1, int auth_objs = -1, int certs = -1); - }; - -} // namespace act - -#endif // ACT_AppletReg_h diff --git a/actlibrary/SLES-11-i686/Release/include/actJCSecureChannelReg.h b/actlibrary/SLES-11-i686/Release/include/actJCSecureChannelReg.h deleted file mode 100644 index 1eb4b32..0000000 --- a/actlibrary/SLES-11-i686/Release/include/actJCSecureChannelReg.h +++ /dev/null @@ -1,43 +0,0 @@ -//----------------------------------------------------------------------------- -// Name: actJCSecureChannelReg.h -// Product: cv act library -// Purpose: -// -// Copyright: (c) 2003 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for use of this software are regulated -// in the cv act libary licence agreement. -// -// Autor: -// Data: 08.10.2003 15:53:14 -//----------------------------------------------------------------------------- - -#ifndef __ACTJCSECURECHANNELREG_H__ -#define __ACTJCSECURECHANNELREG_H__ - -namespace act -{ - class Blob; - - struct JCSecureChannelEntry { - const char* hexvalue; - }; - - - class JCardSecureChannelReg - { - public: - static Blob GetValue(int i); - static int GetNumber(); - - - static void Insert(const char* hexvalue); - static void Insert(const JCSecureChannelEntry* entry); - - }; - -} - - - -#endif //__ACTJCSECURECHANNELREG_H__ diff --git a/actlibrary/SLES-11-i686/Release/include/actKey.h b/actlibrary/SLES-11-i686/Release/include/actKey.h deleted file mode 100644 index 5030c0c..0000000 --- a/actlibrary/SLES-11-i686/Release/include/actKey.h +++ /dev/null @@ -1,82 +0,0 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actKey.h -// Product: cv act library -// Purpose: The class Key manages information relevant to keys (e.g. -// domain parameters or the key itself). In the case of symmetric -// encryption only a (the) secret key is generated. In the case of -// of asymetric encryption a private and a public key are generated. -// This handle allows a universal approach for different families of -// algorithms. -// -// -// Copyright: (c) 2000 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_Key_h -#define ACT_Key_h - -#include "actBasics.h" -#include "actBlob.h" - -namespace act -{ - class IRNGAlg; - class IAlgorithm; - class IKey; - class ICertificate; - - class Key - { - public: - Key(); - Key(const Key& key); - Key(IKey* keyptr); - Key(const Blob& keyblob); - Key(const ICertificate* cert); - Key(const char* keytype); - - void Import(const Blob& keyblob); - void Export(Blob& keyblob, export_t type = DEFAULT) const; - - void SetParam(paramid_t id, const Blob& blob); - void SetParam(paramid_t id, int val); - void SetParam(paramid_t id, const char* cstr); - - int GetParam(paramid_t id) const; - void GetParam(paramid_t id, Blob& blob) const; - - void Generate(IAlgorithm* prng = 0); - void Derive(const Blob& data, const Blob& salt = Blob()); - - IAlgorithm* CreateAlgorithm(mode_t Mode) const; - IAlgorithm* CreateAlgorithm(mode_t Mode, const Blob& data) const; - - IKey* GetPointer(); - const IKey* GetPointer() const; - operator IKey*(); - operator const IKey*() const; - - IKey* ReleasePointer(); - - template - inline KeyTypeT* As() { return static_cast(GetPointer()); } - - template - inline const KeyTypeT* As() const { return static_cast(GetPointer()); } - - Key& operator=(const Key& key); - Key& Reset(IKey* key); - Key& Required(const char* where = 0); - - ~Key(); - - private: - IKey *mKey; - }; - -} // namespace act - -#endif // ACT_Key_h diff --git a/actlibrary/SLES-11-i686/Release/include/actKeyKit.h b/actlibrary/SLES-11-i686/Release/include/actKeyKit.h deleted file mode 100644 index e8a7730..0000000 --- a/actlibrary/SLES-11-i686/Release/include/actKeyKit.h +++ /dev/null @@ -1,43 +0,0 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actKeyKit.h -// Product: cv act library -// Purpose: declaration of all factory functions -// -// Copyright: (c) 2000 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_KeyKit_h -#define ACT_KeyKit_h - -namespace act -{ - class IKey; - - IKey* CreateBlockCipherKey(); - - IKey* CreateStreamCipherKey(); - - IKey* CreateHashMACKey(); - IKey* CreateCBCMACKey(); - IKey* CreateSecretKeyMACKey(); - IKey* CreateRetailCFBMACKey(); - IKey* Create_iMAC3Key(); - IKey* CreateCMACKey(); - - IKey* CreateRSAKey(); - - IKey* CreateDSAKey(); - IKey* CreateECDSAKey(); - IKey* CreateECGDSAKey(); - - IKey* CreateDHKey(); - IKey* CreateECDHKey(); - - IKey* CreateIESKey(); - -} // namespace act - -#endif // ACT_KeyKit_h diff --git a/actlibrary/SLES-11-i686/Release/include/actKeyReg.h b/actlibrary/SLES-11-i686/Release/include/actKeyReg.h deleted file mode 100644 index 14caa8c..0000000 --- a/actlibrary/SLES-11-i686/Release/include/actKeyReg.h +++ /dev/null @@ -1,40 +0,0 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actKeyReg.h -// Product: cv act library -// Purpose: registry for factory functions in actKeyKit.h -// -// Copyright: (c) 2000 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_KeyReg_h -#define ACT_KeyReg_h - -namespace act -{ - class IKey; - - typedef IKey* (*CreateKeyPtr)(); - - struct KeyMapEntry - { - const char* Name; - CreateKeyPtr CreatePtr; - }; - - class KeyReg - { - public: - static IKey* CreateKey(const char* name); - static CreateKeyPtr GetCreatePointer(const char* name); - static const char* GetName(void* createptr); - static const char* GetNextName(const char* name); - static void Insert(const char* name, CreateKeyPtr createptr); - static void Insert(const KeyMapEntry* keymap); - }; - -} // namespace act - -#endif // ACT_KeyReg_h diff --git a/actlibrary/SLES-11-i686/Release/include/actLogger.h b/actlibrary/SLES-11-i686/Release/include/actLogger.h deleted file mode 100644 index 103b1ed..0000000 --- a/actlibrary/SLES-11-i686/Release/include/actLogger.h +++ /dev/null @@ -1,110 +0,0 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actLogger.h -// Product: cv act library -// Purpose: Logger -// -// Copyright: (c) 2000-2001 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_Logger_h -#define ACT_Logger_h - -#include "actDebug.h" -#include "actBlob.h" - -#include "SyncObject.h" - -// for convenience: -#ifdef _MSC_VER -# define ACT_SNPRINTF _snprintf -#else -# include -# define ACT_SNPRINTF snprintf -#endif - -// -// MTE [11/1/2006]: Added addtional accessing macros. -// NOTE: Redefine to use another Logger. -#define ACT_LOGGER(x) act::Logger::x - -// -// MTE [11/1/2006]: Added to replace direct usage of ACT_LOGGER(LogInit)(). -#define ACT_LOGISENABLED() (ACT_DEBUG != 0 || ACT_LOGGER(LogInit)()) - -// -// MTE [11/1/2006]: Changed to use ACT_LOGISENABLED(). -#define ACT_LOGINFO(info) { if(ACT_LOGISENABLED()) ACT_LOGGER(Log)(ACT_LOGGER(LEVEL_INFO), info); } -#define ACT_LOGWARN(warn) { if(ACT_LOGISENABLED()) ACT_LOGGER(Log)(ACT_LOGGER(LEVEL_WARN), warn); } -#define ACT_LOGERROR(error) { if(ACT_LOGISENABLED()) ACT_LOGGER(Log)(ACT_LOGGER(LEVEL_ERROR), error); } -#define ACT_LOGEXCEPTION(e) { if(ACT_LOGISENABLED()) { char buf[1024]; ACT_SNPRINTF(buf, 1024, "Exception:\t '%s' in '%s'", e.what(), e.where()); ACT_LOGERROR(buf) }} - -#define ACT_LOGINFODATA(info, data) { if(ACT_LOGISENABLED()) ACT_LOGGER(Log)(ACT_LOGGER(LEVEL_INFO), info, data); } -#define ACT_LOGWARNDATA(warn, data) { if(ACT_LOGISENABLED()) ACT_LOGGER(Log)(ACT_LOGGER(LEVEL_WARN), warn, data); } -#define ACT_LOGERRORDATA(error, data) { if(ACT_LOGISENABLED()) ACT_LOGGER(Log)(ACT_LOGGER(LEVEL_ERROR), error, data); } -#define ACT_LOGBLOB(blob) { if(ACT_LOGISENABLED()) ACT_LOGGER(Log)(ACT_LOGGER(LEVEL_INFO), #blob, blob); } - -#define ACT_LOGVALUE(name, value, format) { if(ACT_LOGISENABLED()) { char buf[256]; ACT_SNPRINTF(buf, 256, name " :\t " format, value); ACT_LOGINFO(buf) }} - -#define ACT_LOGINT(value) ACT_LOGVALUE(#value, int(value), "%i") -#define ACT_LOGHEX(value) ACT_LOGVALUE(#value, act::ulong(value), "0x%08x") -#define ACT_LOGSTRING(value) ACT_LOGVALUE(#value, value, "%s") - -#define ACT_LOGNAMEDINT(name, value) ACT_LOGVALUE(name, int(value), "%i") -#define ACT_LOGNAMEDHEX(name, value) ACT_LOGVALUE(name, act::ulong(value), "0x%08x") -#define ACT_LOGNAMEDSTRING(name, value) ACT_LOGVALUE(name, value, "%s") - -#ifdef WIN32 -#define ACT_LOGPTR(value) ACT_LOGINT(value) -#else -#define ACT_LOGPTR(value) ACT_LOGVALUE(#value, value, "%lp") -#endif - -// TODO: MTE: What about this "nice" construct ? -#define ACT_LOGPOINTER(p) { if(ACT_LOGISENABLED()) { if(p != 0) ACT_LOGINT(*p) else ACT_LOGHEX(p) }} -#define ACT_LOGISNULL(p) { if(ACT_LOGISENABLED()) { char buf[256]; if(p != 0) ACT_SNPRINTF(buf, 256, #p " :\t *"); else ACT_SNPRINTF(buf, 256, #p " :\t 0"); ACT_LOGINFO(buf) }} - - -namespace act -{ - class Logger - { - public: - enum Levels - { - LEVEL_OFF = 0, - LEVEL_ERROR = 30, - LEVEL_WARNING = 50, - LEVEL_WARN = LEVEL_WARNING, - LEVEL_INFO = 80, - LEVEL_MAX = 99 - }; - - static void SetLogger(Logger* pLogger); - static void FreeLogger(); - static void Log(short level, const char* msg); - static void Log(short level, const Blob& blobmsg); - static void Log(short level, const char* msg, const Blob& blobmsg); - static void SetLoglevel(short level); - static bool LogInit() - { - return(s_pLogger != 0 ? true : false); - } - - protected: - Logger(){} - virtual ~Logger(){} - virtual void doLog(short level, const char* msg) = 0; - virtual void doSetLoglevel(short level) = 0; - - private: - static Logger* s_pLogger; - static SyncObject m_sync; - }; - -} // namespace act - -#endif // ACT_Logger_h - diff --git a/actlibrary/SLES-11-i686/Release/include/actMode.h b/actlibrary/SLES-11-i686/Release/include/actMode.h deleted file mode 100644 index 3c4bdb9..0000000 --- a/actlibrary/SLES-11-i686/Release/include/actMode.h +++ /dev/null @@ -1,269 +0,0 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actMode.h -// Product: cv act library -// Purpose: enumerations -// -// Copyright: (c) 2006 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_Mode_h -#define ACT_Mode_h - -namespace act -{ - enum - { - MODE_RANGE_BEGIN = 100, - - ENCRYPT = 100, - DECRYPT, - SIGN, - VERIFY, - MAC, - - PRIVATE =200, - PUBLIC, - SECRET, - DOMAINPARAMS, - PKCS8_TYPE, - - CIPHER = 300, - PADDING, - DERIVATOR, - BCMODE, - KEYSIZE, - RAWKEY, - IV, - BLOCKSIZE, - CHAINING_VALUE, - CHAINING_BITCOUNT, - EFFECTIVE_KEYSIZE, - SHAREDDATA_1, - SHAREDDATA_2, - KEYDATALEN, - ITERATIONCOUNT, - COUNTER, - OUTDATALEN, - - ENCODER=400, - PRIVATEKEY, - PUBLICKEY, - PUBLICSIZE, - KEY, - SIGNATURE, - AGREEMENT, - - MODULO=500, - PRIME_P, - PRIME_Q, - MODULOSIZE, - PRIME_P_SIZE, - PRIME_Q_SIZE, - CRT_EXPONENT_1, - CRT_EXPONENT_2, - CRT_COEFFICIENT, - PKCS1_PRIVATEKEY, - PKCS1_PUBLICKEY, - - CURVE=600, - PUBLIC_X, - PUBLIC_Y, - STATICPUBLIC_X, - STATICPUBLIC_Y, - EPHEMERALPUBLIC_X, - EPHEMERALPUBLIC_Y, - CURVEPARAM, - PUBLICKEY_EXPORT_TYPE, - BASEPOINT_EXPORT_TYPE, - COMPRESSED, - UNCOMPRESSED, - HYBRID, - IMPLICITLYCA, - GF2CURVE, - PRIMECURVE, - ENCODE_SIGNATURE, - PLAIN_SECRET, - - RING = 700, - RINGORDER, - RINGGENERATOR, - COFACTOR, - COMPATIBLE, - NEWEPHEMERAL, - CHECKDOMAINPARAMS, - - STATICPRIVATEKEY, - STATICPUBLICKEY, - EPHEMERALPRIVATEKEY, - EPHEMERALPUBLICKEY, - - PIN = 800, - CARDTYPE, - CARDPORTTYPE, - PORTNR, - DLLNAME, - READERNAME, - CHANGEMASTERPIN, - CHANGEPIN, - USERPIN, - MASTERPIN, - PINPAD, - USERNAME, - INFOTEXT, - SIGNKEY, - ENCKEY, - SIGNCERTIFICATE, - ENCCERTIFICATE, - ROOTCERTIFICATE, - LOCK_KEY, - DHKEY, - DHCERTIFICATE, - PERSONALIZED, - READERNAMES, - AID, - PATH, - NULLPIN, - SELECTKEY, - ALLCERTIFICATE, - APPLICATION, - KEYUSAGE, - MECHANISM, - CERTIFICATE, - DATA, - KEYTYPE, - LABEL, - ID, - - CTAPI_PORT = 900, - PCSC_PORT, - - CARDOS_CARD = 1000, - TCOS_CARD, - CVACT_CARD, - PKCS11_CARD, - MICARDOEC_CARD, - STARCOSPK_CARD, - ETRUST_CARD, -// MICARDOPUBLIC_CARD, - CARDOSM4_CARD, - MICARDOP21_CARD, - - HASH=1100, - SALT, - SALT_LENGTH, - EMLEN, - - X = 1200, - SEED, - MULTIPLIER, - - VERSION = 1300, - ISSUER, - SUBJECT, - SERIALNR, - ISSUER_DER, - SUBJECT_DER, - ISSUER_UID, - SUBJECT_UID, - NOTBEFORE_DER, - NOTAFTER_DER, - THISUPDATE_DER, - NEXTUPDATE_DER, - TBS, - - CVPROFILEID = 1400, - CVCAREFERENCE, - CVHOLDERREFERENCE, - CVHATEMPLATE, - CVEACTEMPLATE, - CVEFFECTIVEDATE, - CVEXPIRATIONDATE, - CVPUBLICKEY_TLV, - CVPUBLICKEY_MECHANISM, - - // GF(P)-Curves - SECGp112r1 = 0x1000, - SECGp112r2, - SECGp128r1, - SECGp128r2, - SECGp160r1, - SECGp160r2, - SECGp160k1, - ANSIp192r1, - ANSIp192r2, - ANSIp192r3, - NISTp192r1, - SECGp192r1, - SECGp192k1, - NISTp224r1, - SECGp224r1, - SECGp224k1, - ANSIp239r1, - ANSIp239r2, - ANSIp239r3, - ANSIp256r1, - NISTp256r1, - SECGp256r1, - SECGp256k1, - NISTp384r1, - NISTp521r1, - brainpoolP256r1, - brainpoolP256t1, - - // GF(2^m)-Curves - SECGz113r1 = 0x1200, - SECGz113r2, - SECGz131r1, - SECGz131r2, - ANSIz163r1, - ANSIz163r2, - ANSIz163r3, - NISTz163r1, - NISTz163k1, - SECGz163r1, - SECGz163r2, - SECGz163k1, - ANSIz176w1, - ANSIz191r1, - ANSIz191r2, - ANSIz191r3, - SECGz193r1, - SECGz193r2, - ANSIz208w1, - NISTz233r1, - NISTz233k1, - SECGz233r1, - SECGz233k1, - ANSIz239r1, - ANSIz239r2, - ANSIz239r3, - SECGz239k1, - ANSIz272w1, - NISTz283r1, - NISTz283k1, - SECGz283r1, - SECGz283k1, - ANSIz304w1, - ANSIz359r1, - ANSIz368w1, - NISTz409r1, - NISTz409k1, - SECGz409r1, - SECGz409k1, - ANSIz431r1, - NISTz571r1, - NISTz571k1, - SECGz571r1, - SECGz571k1, - - MODE_RANGE_LAST = 0x1400, // insert new elements here - - TOKEN_CONFIG = 0x2000, // token config start - }; - -} // namespace act - -#endif // ACT_Mode_h diff --git a/actlibrary/SLES-11-i686/Release/include/actMove.h b/actlibrary/SLES-11-i686/Release/include/actMove.h deleted file mode 100644 index ebf1d6f..0000000 --- a/actlibrary/SLES-11-i686/Release/include/actMove.h +++ /dev/null @@ -1,133 +0,0 @@ -////////////////////////////////////////////////////////////////////////// -// Name: actMove.h -// Product: cv act library -// Purpose: template<>'s to implement move semantics -// -// Copyright: (c) 2010 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -// -// Autor: Markus Tesche -// Date: 07/25/2010 -////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_Move_h -#define ACT_Move_h - -namespace act -{ - // - // type_of used to dismantle T resulting in T' - // -------------------------------------------------------------------------------- - template struct type_of { typedef T type; }; - template struct type_of { typedef T type; }; - template struct type_of { typedef T type; }; - template struct type_of { typedef T type; }; - template struct type_of { typedef T type; }; - template struct type_of { typedef T type; }; - - // - // is_const - // -------------------------------------------------------------------------------- - template struct is_const { enum { value = 0 }; }; - template struct is_const { enum { value = 1 }; }; - template struct is_const { enum { value = 0 }; }; - template struct is_const { enum { value = 1 }; }; - template struct is_const { enum { value = 0 }; }; - template struct is_const { enum { value = 1 }; }; - - // - // /brief move_from<...> used to implement move semantics - // -------------------------------------------------------------------------------- - template - class move_from; - - // - // /brief move_from default spcialization, holds reference to type T - // -------------------------------------------------------------------------------- - template - class move_from - { - public: - typedef typename type_of::type type_t; - - explicit move_from(type_t& ref) - : m_ref(ref) - { } - - template - move_from(const move_from& other) - : m_ref(other.source()) - { } - - inline type_t& source() const { return m_ref; } - template O& source() const { return m_ref; } - - template void swap(O& other) { m_ref.swap(other); } - template O& move(O& other) { m_ref.swap(other); return other; } - - private: - type_t& m_ref; - - private: - template - friend class move_from; - }; - - // - // /brief move_from spcialization takes ownership of 'swapped-in' source data - // -------------------------------------------------------------------------------- - template - class move_from : public move_from - { - public: - typedef typename type_of::type type_t; - - explicit move_from(type_t& ref) - : move_from(m_value) - { - ref.swap(m_value); - } - - template - move_from(move_from other) - : move_from(m_value) - { - other.swap(m_value); - } - - private: - typename move_from::type_t m_value; - }; - - // - // /brief move_empty used as default move_from<...> function parameter - // -------------------------------------------------------------------------------- - template - class move_empty : public move_from - { - public: - move_empty() - : move_from(m_empty) - { } - - move_empty(const move_empty&) - : move_from(m_empty) - { } - - inline move_empty& operator=(const move_empty&) { return *this; } - - private: - T m_empty; - }; - - // - // /brief move<> helper function - // -------------------------------------------------------------------------------- - template - move_from move(T& ref) { return move_from(ref); } - -} // namespace act - -#endif // ACT_Move_h diff --git a/actlibrary/SLES-11-i686/Release/include/actOID.h b/actlibrary/SLES-11-i686/Release/include/actOID.h deleted file mode 100644 index 527f660..0000000 --- a/actlibrary/SLES-11-i686/Release/include/actOID.h +++ /dev/null @@ -1,2103 +0,0 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actOID.h -// Product: cv act library -// Purpose: -// -// -// Copyright: (c) 2000 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_OID_H -#define ACT_OID_H - -#define CV_OID_DEF(x) (act::Blob((x),(x)+sizeof((x)))) - -#ifdef _MSC_VER -#pragma warning(disable : 4305) //Verkuerzung von 'static const int' in 'static const unsigned char' -#pragma warning(disable : 4309) //Verkuerzung eines konstanten Wertes -#endif - -//1.2.840.10045.4.1 ECDSA cvECDSA -static const unsigned char cvOID_cvECDSA[] = {0x2a, 0x86, 0x48, 0xce, 0x3d, 0x04, 0x01}; -//1.2.840.113549.1.9.1 Alternate Name cvAlternateName -static const unsigned char cvOID_cvAlternateName[] = {0x2a, 0x86, 0x48, 0x86, 0xf7, 0x0d, 0x01, 0x09, 0x01}; - -//0.2.262.1.10 Deutsche Telekom Telesec -static const unsigned char cvOID_Telesec [] = { 0x02, 0x82, 0x06, 0x01, 0x0A}; -//0.2.262.1.10.0 Telesec extension -static const unsigned char cvOID_extension [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x00}; -//0.2.262.1.10.1 Telesec mechanism -static const unsigned char cvOID_mechanism [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x01}; -//0.2.262.1.10.1.0 Telesec mechanism authentication -static const unsigned char cvOID_authentication [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x01, 0x00}; -//0.2.262.1.10.1.0.1 Telesec authentication passwordAuthentication -static const unsigned char cvOID_passwordAuthentication [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x01, 0x00, 0x01}; -//0.2.262.1.10.1.0.2 Telesec authentication protectedPasswordAuthentication -static const unsigned char cvOID_protectedPasswordAuthentication [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x01, 0x00, 0x02}; -//0.2.262.1.10.1.0.3 Telesec authentication oneWayX509Authentication -static const unsigned char cvOID_oneWayX509Authentication [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x01, 0x00, 0x03}; -//0.2.262.1.10.1.0.4 Telesec authentication twoWayX509Authentication -static const unsigned char cvOID_twoWayX509Authentication [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x01, 0x00, 0x04}; -//0.2.262.1.10.1.0.5 Telesec authentication threeWayX509Authentication -static const unsigned char cvOID_threeWayX509Authentication [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x01, 0x00, 0x05}; -//0.2.262.1.10.1.0.6 Telesec authentication oneWayISO9798Authentication -static const unsigned char cvOID_oneWayISO9798Authentication [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x01, 0x00, 0x06}; -//0.2.262.1.10.1.0.7 Telesec authentication twoWayISO9798Authentication -static const unsigned char cvOID_twoWayISO9798Authentication [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x01, 0x00, 0x07}; -//0.2.262.1.10.1.0.8 Telesec authentication telekomAuthentication -static const unsigned char cvOID_telekomAuthentication [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x01, 0x00, 0x08}; -//0.2.262.1.10.1.1 Telesec mechanism signature -static const unsigned char cvOID_signature [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x01, 0x01}; -//0.2.262.1.10.1.1.1 Telesec mechanism md4WithRSAAndISO9697 -static const unsigned char cvOID_md4WithRSAAndISO9697 [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x01, 0x01, 0x01}; -//0.2.262.1.10.1.1.2 Telesec mechanism md4WithRSAAndTelesecSignatureStandard -static const unsigned char cvOID_md4WithRSAAndTelesecSignatureStandard [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x01, 0x01, 0x02}; -//0.2.262.1.10.1.1.3 Telesec mechanism md5WithRSAAndISO9697 -static const unsigned char cvOID_md5WithRSAAndISO9697 [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x01, 0x01, 0x03}; -//0.2.262.1.10.1.1.4 Telesec mechanism md5WithRSAAndTelesecSignatureStandard -static const unsigned char cvOID_md5WithRSAAndTelesecSignatureStandard [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x01, 0x01, 0x04}; -//0.2.262.1.10.1.1.5 Telesec mechanism ripemd160WithRSAAndTelekomSignatureStandard -static const unsigned char cvOID_ripemd160WithRSAAndTelekomSignatureStandard [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x01, 0x01, 0x05}; -//0.2.262.1.10.1.1.9 Telesec signature hbciRsaSignature -static const unsigned char cvOID_hbciRsaSignature [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x01, 0x01, 0x09}; -//0.2.262.1.10.1.2 Telesec mechanism encryption -static const unsigned char cvOID_encryption [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x01, 0x02}; -//0.2.262.1.10.1.2.0 Telesec encryption none -static const unsigned char cvOID_none [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x01, 0x02, 0x00}; -//0.2.262.1.10.1.2.1 Telesec encryption rsaTelesec -static const unsigned char cvOID_rsaTelesec [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x01, 0x02, 0x01}; -//0.2.262.1.10.1.2.2 Telesec encryption des -static const unsigned char cvOID_des [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x01, 0x02, 0x02}; -//0.2.262.1.10.1.2.2.1 Telesec encryption desECB -static const unsigned char cvOID_desECB [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x01, 0x02, 0x02, 0x01}; -//0.2.262.1.10.1.2.2.2 Telesec encryption desCBC -static const unsigned char cvOID_desCBC [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x01, 0x02, 0x02, 0x02}; -//0.2.262.1.10.1.2.2.3 Telesec encryption desOFB -static const unsigned char cvOID_desOFB [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x01, 0x02, 0x02, 0x03}; -//0.2.262.1.10.1.2.2.4 Telesec encryption desCFB8 -static const unsigned char cvOID_desCFB8 [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x01, 0x02, 0x02, 0x04}; -//0.2.262.1.10.1.2.2.5 Telesec encryption desCFB64 -static const unsigned char cvOID_desCFB64 [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x01, 0x02, 0x02, 0x05}; -//0.2.262.1.10.1.2.3 Telesec encryption des3 -static const unsigned char cvOID_des3 [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x01, 0x02, 0x03}; -//0.2.262.1.10.1.2.3.1 Telesec encryption des3ECB -static const unsigned char cvOID_des3ECB [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x01, 0x02, 0x03, 0x01}; -//0.2.262.1.10.1.2.3.2 Telesec encryption des3CBC -static const unsigned char cvOID_des3CBC [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x01, 0x02, 0x03, 0x02}; -//0.2.262.1.10.1.2.3.3 Telesec encryption des3OFB -static const unsigned char cvOID_des3OFB [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x01, 0x02, 0x03, 0x03}; -//0.2.262.1.10.1.2.3.4 Telesec encryption des3CFB8 -static const unsigned char cvOID_des3CFB8 [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x01, 0x02, 0x03, 0x04}; -//0.2.262.1.10.1.2.3.5 Telesec encryption des3CFB64 -static const unsigned char cvOID_des3CFB64 [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x01, 0x02, 0x03, 0x05}; -//0.2.262.1.10.1.2.4 Telesec encryption magenta -static const unsigned char cvOID_magenta [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x01, 0x02, 0x04}; -//0.2.262.1.10.1.2.5 Telesec encryption idea -static const unsigned char cvOID_idea [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x01, 0x02, 0x05}; -//0.2.262.1.10.1.2.5.1 Telesec encryption ideaECB -static const unsigned char cvOID_ideaECB_Telesec [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x01, 0x02, 0x05, 0x01}; -//0.2.262.1.10.1.2.5.2 Telesec encryption ideaCBC -static const unsigned char cvOID_ideaCBC_Telesec [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x01, 0x02, 0x05, 0x02}; -//0.2.262.1.10.1.2.5.3 Telesec encryption ideaOFB -static const unsigned char cvOID_ideaOFB_Telesec [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x01, 0x02, 0x05, 0x03}; -//0.2.262.1.10.1.2.5.4 Telesec encryption ideaCFB8 -static const unsigned char cvOID_ideaCFB8_Telesec [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x01, 0x02, 0x05, 0x04}; -//0.2.262.1.10.1.2.5.5 Telesec encryption ideaCFB64 -static const unsigned char cvOID_ideaCFB64_Telesec [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x01, 0x02, 0x05, 0x05}; -//0.2.262.1.10.1.3 Telesec mechanism oneWayFunction -static const unsigned char cvOID_oneWayFunction [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x01, 0x03}; -//0.2.262.1.10.1.3.1 Telesec one-way function md4 -static const unsigned char cvOID_md4_Telesec [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x01, 0x03, 0x01}; -//0.2.262.1.10.1.3.2 Telesec one-way function md5 -static const unsigned char cvOID_md5_Telesec [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x01, 0x03, 0x02}; -//0.2.262.1.10.1.3.3 Telesec one-way function sqModNX509 -static const unsigned char cvOID_sqModNX509 [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x01, 0x03, 0x03}; -//0.2.262.1.10.1.3.4 Telesec one-way function sqModNISO -static const unsigned char cvOID_sqModNISO [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x01, 0x03, 0x04}; -//0.2.262.1.10.1.3.5 Telesec one-way function ripemd128 -static const unsigned char cvOID_ripemd128 [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x01, 0x03, 0x05}; -//0.2.262.1.10.1.3.6 Telesec one-way function hashUsingBlockCipher -static const unsigned char cvOID_hashUsingBlockCipher [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x01, 0x03, 0x06}; -//0.2.262.1.10.1.3.7 Telesec one-way function mac -static const unsigned char cvOID_mac [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x01, 0x03, 0x07}; -//0.2.262.1.10.1.3.8 Telesec one-way function ripemd160 -static const unsigned char cvOID_ripemd160 [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x01, 0x03, 0x08}; -//0.2.262.1.10.1.4 Telesec mechanism fecFunction -static const unsigned char cvOID_fecFunction [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x01, 0x04}; -//0.2.262.1.10.1.4.1 Telesec mechanism reedSolomon -static const unsigned char cvOID_reedSolomon [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x01, 0x04, 0x01}; -//0.2.262.1.10.2 Telesec module -static const unsigned char cvOID_module_Telesec [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x02}; -//0.2.262.1.10.2.0 Telesec module algorithms -static const unsigned char cvOID_algorithms [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x02, 0x00}; -//0.2.262.1.10.2.1 Telesec module attributeTypes -static const unsigned char cvOID_attributeTypes [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x02, 0x01}; -//0.2.262.1.10.2.2 Telesec module certificateTypes -static const unsigned char cvOID_certificateTypes [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x02, 0x02}; -//0.2.262.1.10.2.3).. Telesec module messageTypes -static const unsigned char cvOID_messageTypes [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x02, 0x03}; -//0.2.262.1.10.2.4 Telesec module plProtocol -static const unsigned char cvOID_plProtocol [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x02, 0x04}; -//0.2.262.1.10.2.5 Telesec module smeAndComponentsOfSme -static const unsigned char cvOID_smeAndComponentsOfSme [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x02, 0x05}; -//0.2.262.1.10.2.6 Telesec module fec -static const unsigned char cvOID_fec [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x02, 0x06}; -//0.2.262.1.10.2.7 Telesec module usefulDefinitions -static const unsigned char cvOID_usefulDefinitions [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x02, 0x07}; -//0.2.262.1.10.2.8 Telesec module stefiles -static const unsigned char cvOID_stefiles [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x02, 0x08}; -//0.2.262.1.10.2.9 Telesec module sadmib -static const unsigned char cvOID_sadmib [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x02, 0x09}; -//0.2.262.1.10.2.10 Telesec module electronicOrder -static const unsigned char cvOID_electronicOrder [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x02, 0x0A}; -//0.2.262.1.10.2.11 Telesec module telesecTtpAsymmetricApplication -static const unsigned char cvOID_telesecTtpAsymmetricApplication [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x02, 0x0B}; -//0.2.262.1.10.2.12)..... Telesec module telesecTtpBasisApplication -static const unsigned char cvOID_telesecTtpBasisApplication [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x02, 0x0C}; -//0.2.262.1.10.2.13)....... Telesec module telesecTtpMessages -static const unsigned char cvOID_telesecTtpMessages [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x02, 0x0D}; -//0.2.262.1.10.2.14)....... Telesec module telesecTtpTimeStampApplication -static const unsigned char cvOID_telesecTtpTimeStampApplication [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x02, 0x0E}; -//0.2.262.1.10.3 Telesec objectClass -static const unsigned char cvOID_objectClass_Telesec [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x03}; -//0.2.262.1.10.3.0 Telesec object class telesecOtherName -static const unsigned char cvOID_telesecOtherName_Telesec [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x03, 0x00}; -//0.2.262.1.10.3.1 Telesec object class directory -static const unsigned char cvOID_directory_Telesec [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x03, 0x01}; -//0.2.262.1.10.3.2 Telesec object class directoryType -static const unsigned char cvOID_directoryType_Telesec [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x03, 0x02}; -//0.2.262.1.10.3.3 Telesec object class directroyGroup -static const unsigned char cvOID_directroyGroup_Telesec [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x03, 0x03}; -//0.2.262.1.10.3.4 Telesec object class directoryUser -static const unsigned char cvOID_directoryUser_Telesec [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x03, 0x04}; -//0.2.262.1.10.3.5 Telesec object class symmetricKeyEntry -static const unsigned char cvOID_symmetricKeyEntry [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x03, 0x05}; -//0.2.262.1.10.4 Telesec package -static const unsigned char cvOID_package [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x04}; -//0.2.262.1.10.5 Telesec parameter -static const unsigned char cvOID_parameter [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x05}; -//0.2.262.1.10.6 Telesec nameBinding -static const unsigned char cvOID_nameBinding [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x06}; -//0.2.262.1.10.7 Telesec attribute -static const unsigned char cvOID_attribute_Telesec [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x07}; -//0.2.262.1.10.7.0 Telesec attribute applicationGroupIdentifier -static const unsigned char cvOID_applicationGroupIdentifier [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x07, 0x00}; -//0.2.262.1.10.7.1 Telesec attribute certificateType -static const unsigned char cvOID_certificateType [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x07, 0x01}; -//0.2.262.1.10.7.2 Telesec attribute telesecCertificate -static const unsigned char cvOID_Certificate_Telesec [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x07, 0x02}; -//0.2.262.1.10.7.3 Telesec attribute certificateNumber -static const unsigned char cvOID_certificateNumber [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x07, 0x03}; -//0.2.262.1.10.7.4 Telesec attribute certificateRevocationList -static const unsigned char cvOID_certificateRevocationList_Telesec [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x07, 0x04}; -//0.2.262.1.10.7.5 Telesec attribute creationDate -static const unsigned char cvOID_creationDate [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x07, 0x05}; -//0.2.262.1.10.7.6).... Telesec attribute issuer -static const unsigned char cvOID_issuer [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x07, 0x06}; -//0.2.262.1.10.7.7 Telesec attribute namingAuthority -static const unsigned char cvOID_namingAuthority [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x07, 0x07}; -//0.2.262.1.10.7.8 Telesec attribute publicKeyDirectory -static const unsigned char cvOID_publicKeyDirectory [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x07, 0x08}; -//0.2.262.1.10.7.9).. Telesec attribute securityDomain -static const unsigned char cvOID_securityDomain [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x07, 0x09}; -//0.2.262.1.10.7.10)..... Telesec attribute subject -static const unsigned char cvOID_subject [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x07, 0x0A}; -//0.2.262.1.10.7.11 Telesec attribute timeOfRevocation -static const unsigned char cvOID_timeOfRevocation [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x07, 0x0B}; -//0.2.262.1.10.7.12 Telesec attribute userGroupReference -static const unsigned char cvOID_userGroupReference [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x07, 0x0C}; -//0.2.262.1.10.7.13 Telesec attribute validity -static const unsigned char cvOID_validity [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x07, 0x0D}; -//0.2.262.1.10.7.14 Telesec attribute zert93 -static const unsigned char cvOID_zert93 [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x07, 0x0E}; -//0.2.262.1.10.7.15 Telesec attribute securityMessEnv -static const unsigned char cvOID_securityMessEnv [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x07, 0x0F}; -//0.2.262.1.10.7.16 Telesec attribute anonymizedPublicKeyDirectory -static const unsigned char cvOID_anonymizedPublicKeyDirectory [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x07, 0x10}; -//0.2.262.1.10.7.17 Telesec attribute telesecGivenName -static const unsigned char cvOID_telesecGivenName [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x07, 0x11}; -//0.2.262.1.10.7.18). Telesec attribute nameAdditions -static const unsigned char cvOID_nameAdditions [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x07, 0x12}; -//0.2.262.1.10.7.19 Telesec attribute telesecPostalCode -static const unsigned char cvOID_telesecPostalCode [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x07, 0x13}; -//0.2.262.1.10.7.20 Telesec attribute nameDistinguisher -static const unsigned char cvOID_nameDistinguisher [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x07, 0x14}; -//0.2.262.1.10.7.21 Telesec attribute telesecCertificateList -static const unsigned char cvOID_telesecCertificateList [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x07, 0x15}; -//0.2.262.1.10.7.22 Telesec attribute teletrustCertificateList -static const unsigned char cvOID_teletrustCertificateList [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x07, 0x16}; -//0.2.262.1.10.7.23)... Telesec attribute x509CertificateList -static const unsigned char cvOID_x509CertificateList [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x07, 0x17}; -//0.2.262.1.10.7.24 Telesec attribute timeOfIssue -static const unsigned char cvOID_timeOfIssue [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x07, 0x18}; -//0.2.262.1.10.7.25 Telesec attribute physicalCardNumber -static const unsigned char cvOID_physicalCardNumber [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x07, 0x19}; -//0.2.262.1.10.7.26)........ Telesec attribute fileType -static const unsigned char cvOID_fileType [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x07, 0x1A}; -//0.2.262.1.10.7.27 Telesec attribute ctlFileIsArchive -static const unsigned char cvOID_ctlFileIsArchive [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x07, 0x1B}; -//0.2.262.1.10.7.28)........ Telesec attribute emailAddress -static const unsigned char cvOID_emailAddress [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x07, 0x1C}; -//0.2.262.1.10.7.29)........ Telesec attribute certificateTemplateList -static const unsigned char cvOID_certificateTemplateList [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x07, 0x1D}; -//0.2.262.1.10.7.30)........ Telesec attribute directoryName -static const unsigned char cvOID_directoryName [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x07, 0x1E}; -//0.2.262.1.10.7.31)........ Telesec attribute directoryTypeName -static const unsigned char cvOID_directoryTypeName [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x07, 0x1F}; -//0.2.262.1.10.7.32 Telesec attribute directoryGroupName -static const unsigned char cvOID_directoryGroupName [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x07, 0x20}; -//0.2.262.1.10.7.33 Telesec attribute directoryUserName -static const unsigned char cvOID_directoryUserName [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x07, 0x21}; -//0.2.262.1.10.7.34 Telesec attribute revocationFlag -static const unsigned char cvOID_revocationFlag [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x07, 0x22}; -//0.2.262.1.10.7.35 Telesec attribute symmetricKeyEntryName -static const unsigned char cvOID_symmetricKeyEntryName [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x07, 0x23}; -//0.2.262.1.10.7.36 Telesec attribute glNumber -static const unsigned char cvOID_glNumber [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x07, 0x24}; -//0.2.262.1.10.7.37 Telesec attribute goNumber -static const unsigned char cvOID_goNumber [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x07, 0x25}; -//0.2.262.1.10.7.38 Telesec attribute gKeyData -static const unsigned char cvOID_gKeyData [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x07, 0x26}; -//0.2.262.1.10.7.39 Telesec attribute zKeyData -static const unsigned char cvOID_zKeyData [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x07, 0x27}; -//0.2.262.1.10.7.40 Telesec attribute ktKeyData -static const unsigned char cvOID_ktKeyData [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x07, 0x28}; -//0.2.262.1.10.7.41 Telesec attribute ktKeyNumber -static const unsigned char cvOID_ktKeyNumber [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x07, 0x2A}; -//0.2.262.1.10.7.51 Telesec attribute timeOfRevocationGen -static const unsigned char cvOID_timeOfRevocationGen [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x07, 0x33}; -//0.2.262.1.10.7.52).... Telesec attribute liabilityText -static const unsigned char cvOID_liabilityText [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x07, 0x34}; -//0.2.262.1.10.8 Telesec attributeGroup -static const unsigned char cvOID_attributeGroup [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x08}; -//0.2.262.1.10.9 Telesec action -static const unsigned char cvOID_action [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x09}; -//0.2.262.1.10.10 Telesec notification -static const unsigned char cvOID_notification [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x0A}; -//0.2.262.1.10.11 Telesec snmp-mibs -static const unsigned char cvOID_snmp_mibs [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x0B}; -//0.2.262.1.10.11.1 Telesec SNMP MIBs securityApplication -static const unsigned char cvOID_securityApplication [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x0B, 0x01}; -//0.2.262.1.10.12 Telesec certAndCrlExtensionDefinitions -static const unsigned char cvOID_certAndCrlExtensionDefinitions [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x0C}; -//0.2.262.1.10.12.0 Telesec cert/CRL extension certExtensionLiabilityLimitationExt -static const unsigned char cvOID_certExtensionLiabilityLimitationExt [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x0C, 0x00}; -//0.2.262.1.10.12.1 Telesec cert/CRL extension telesecCertIdExt -static const unsigned char cvOID_telesecCertIdExt [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x0C, 0x01}; -//0.2.262.1.10.12.2 Telesec cert/CRL extension telesecPolicyIdentifier -static const unsigned char cvOID_telesecPolicyIdentifier [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x0C, 0x02}; -//0.2.262.1.10.12.3 Telesec cert/CRL extension telesecPolicyQualifierID -static const unsigned char cvOID_telesecPolicyQualifierID [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x0C, 0x03}; -//0.2.262.1.10.12.4 Telesec cert/CRL extension telesecCRLFilteredExt -static const unsigned char cvOID_telesecCRLFilteredExt [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x0C, 0x04}; -//0.2.262.1.10.12.5 Telesec cert/CRL extension telesecCRLFilterExt -static const unsigned char cvOID_telesecCRLFilterExt [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x0C, 0x05}; -//0.2.262.1.10.12.6 Telesec cert/CRL extension telesecNamingAuthorityExt -static const unsigned char cvOID_telesecNamingAuthorityExt [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x0C, 0x06}; -//0.9.2342.19200300.1.3 Some oddball X.500 attribute collection rfc822Mailbox -static const unsigned char cvOID_rfc822Mailbox [] = { 0x09, 0x92, 0x26, 0x89, 0x93, 0xF2, 0x2C, 0x01, 0x03}; -//0.9.2342.19200300.100.1.25 Men are from Mars, this OID is from Pluto domainComponent -static const unsigned char cvOID_domainComponent [] = { 0x09, 0x92, 0x26, 0x89, 0x93, 0xF2, 0x2C, 0x64, 0x01, 0x019}; -//1.2.36.75878867.1.100.1.1 Certificates Australia CA Certificates Australia policyIdentifier -static const unsigned char cvOID_Certificates_Australia_policyIdentifier [] = { 0x2A, 0x24, 0xA4, 0x97, 0xA3, 0x53, 0x01, 0x64, 0x01, 0x01}; -//1.2.36.68980861.1.1.2 Signet CA Signet personal -static const unsigned char cvOID_Signet_personal [] = { 0x2A, 0x24, 0xA0, 0xF2, 0xA0, 0x7D, 0x01, 0x01, 0x02}; -//1.2.36.68980861.1.1.3 Signet CA Signet business -static const unsigned char cvOID_Signet_business [] = { 0x2A, 0x24, 0xA0, 0xF2, 0xA0, 0x7D, 0x01, 0x01, 0x03}; -//1.2.36.68980861.1.1.4 Signet CA Signet legal -static const unsigned char cvOID_Signet_legal [] = { 0x2A, 0x24, 0xA0, 0xF2, 0xA0, 0x7D, 0x01, 0x01, 0x04}; -//1.2.36.68980861.1.1.10 Signet CA Signet pilot -static const unsigned char cvOID_Signet_pilot [] = { 0x2A, 0x24, 0xA0, 0xF2, 0xA0, 0x7D, 0x01, 0x01, 0x0A}; -//1.2.36.68980861.1.1.11 Signet CA Signet intraNet -static const unsigned char cvOID_Signet_intraNet [] = { 0x2A, 0x24, 0xA0, 0xF2, 0xA0, 0x7D, 0x01, 0x01, 0x0B}; -//1.2.36.68980861.1.1.20 Signet CA Signet securityPolicy -static const unsigned char cvOID_Signet_securityPolicy [] = { 0x2A, 0x24, 0xA0, 0xF2, 0xA0, 0x7D, 0x01, 0x01, 0x14}; -//1.2.392.200011.61.1.1.1 Mitsubishi security algorithm symmetric-encryption-algorithm -static const unsigned char cvOID_symmetric_encryption_algorithm [] = { 0x2A, 0x83, 0x08, 0x8C, 0x1A, 0x4B, 0x3D, 0x01, 0x01, 0x01}; -//1.2.392.200011.61.1.1.1.1 Mitsubishi security algorithm misty1-cbc -static const unsigned char cvOID_misty1_cbc [] = { 0x2A, 0x83, 0x08, 0x8C, 0x9A, 0x4B, 0x3D, 0x01, 0x01, 0x01, 0x01}; -//1.2.752.34.1 SEIS Project seis-cp -static const unsigned char cvOID_seis_cp [] = { 0x2A, 0x85, 0x70, 0x22, 0x01}; -//1.2.752.34.1.1 SEIS Project certificate policies SEIS high-assurnace certificatePolicy -static const unsigned char cvOID_SEIS_high_assurnace_certificatePolicy [] = { 0x2A, 0x85, 0x70, 0x22, 0x01, 0x01}; -//1.2.752.34.1.2 SEIS Project certificate policies SEIS GAK certificatePolicy -static const unsigned char cvOID_SEIS_GAK_certificatePolicy [] = { 0x2A, 0x85, 0x70, 0x22, 0x01, 0x02}; -//1.2.752.34.2 SEIS Project SEIS pe -static const unsigned char cvOID_SEIS_pe [] = { 0x2A, 0x85, 0x70, 0x22, 0x02}; -//1.2.752.34.3 SEIS Project SEIS at -static const unsigned char cvOID_SEIS_at [] = { 0x2A, 0x85, 0x70, 0x22, 0x03}; -//1.2.752.34.3.1 SEIS Project attribute SEIS at-personalIdentifier -static const unsigned char cvOID_SEIS_at_personalIdentifier [] = { 0x2A, 0x85, 0x70, 0x22, 0x03, 0x01}; -//1.2.840.10040.1 ANSI X9.57 module -static const unsigned char cvOID_module [] = { 0x2A, 0x86, 0x48, 0xCE, 0x38, 0x01}; -//1.2.840.10040.1.1 ANSI X9.57 module x9f1-cert-mgmt -static const unsigned char cvOID_x9f1_cert_mgmt [] = { 0x2A, 0x86, 0x48, 0xCE, 0x38, 0x01, 0x01}; -//1.2.840.10040.2 ANSI X9.57 holdinstruction -static const unsigned char cvOID_holdinstruction [] = { 0x2A, 0x86, 0x48, 0xCE, 0x38, 0x02}; -//1.2.840.10040.2.1 ANSI X9.57 hold instruction holdinstruction-none -static const unsigned char cvOID_holdinstruction_none [] = { 0x2A, 0x86, 0x48, 0xCE, 0x38, 0x02, 0x01}; -//1.2.840.10040.2.2 ANSI X9.57 hold instruction callissuer -static const unsigned char cvOID_callissuer [] = { 0x2A, 0x86, 0x48, 0xCE, 0x38, 0x02, 0x02}; -//1.2.840.10040.2.3 ANSI X9.57 hold instruction reject -static const unsigned char cvOID_reject [] = { 0x2A, 0x86, 0x48, 0xCE, 0x38, 0x02, 0x03}; -//1.2.840.10040.2.4 ANSI X9.57 hold instruction pickupToken -static const unsigned char cvOID_pickupToken [] = { 0x2A, 0x86, 0x48, 0xCE, 0x38, 0x02, 0x04}; -//1.2.840.10040.3 ANSI X9.57 attribute -static const unsigned char cvOID_attribute [] = { 0x2A, 0x86, 0x48, 0xCE, 0x38, 0x03}; -//1.2.840.10040.3.1 ANSI X9.57 attribute countersignature -static const unsigned char cvOID_countersignature [] = { 0x2A, 0x86, 0x48, 0xCE, 0x38, 0x03, 0x01}; -//1.2.840.10040.3.2 ANSI X9.57 attribute attribute-cert -static const unsigned char cvOID_attribute_cert [] = { 0x2A, 0x86, 0x48, 0xCE, 0x38, 0x03, 0x02}; -//1.2.840.10040.4 ANSI X9.57 algorithm -static const unsigned char cvOID_algorithm [] = { 0x2A, 0x86, 0x48, 0xCE, 0x38, 0x04}; -//1.2.840.10040.4.1 ANSI X9.57 algorithm dsa -static const unsigned char cvOID_dsa [] = { 0x2A, 0x86, 0x48, 0xCE, 0x38, 0x04, 0x01}; -//1.2.840.10040.4.2 ANSI X9.57 algorithm dsa-match -static const unsigned char cvOID_dsa_match [] = { 0x2A, 0x86, 0x48, 0xCE, 0x38, 0x04, 0x02}; -//1.2.840.10040.4.3 ANSI X9.57 algorithm dsaWithSha1 -static const unsigned char cvOID_dsaWithSha1 [] = { 0x2A, 0x86, 0x48, 0xCE, 0x38, 0x04, 0x03}; -//1.2.840.10045.1 ANSI X9.62. This OID is also assigned as ecdsa-with-SHA1 fieldType -static const unsigned char cvOID_fieldType [] = { 0x2A, 0x86, 0x48, 0xCE, 0x3D, 0x01}; -//1.2.840.10045.1.1 ANSI X9.62 field type prime-field -static const unsigned char cvOID_prime_field [] = { 0x2A, 0x86, 0x48, 0xCE, 0x3D, 0x01, 0x01}; -//1.2.840.10045.1.2 ANSI X9.62 field type characteristic-two-field -static const unsigned char cvOID_characteristic_two_field [] = { 0x2A, 0x86, 0x48, 0xCE, 0x3D, 0x01, 0x02}; -//1.2.840.10045.1.2.3 ANSI X9.62 field type characteristic-two-basis -static const unsigned char cvOID_characteristic_two_basis [] = { 0x2A, 0x86, 0x48, 0xCE, 0x3D, 0x01, 0x02, 0x03}; -//1.2.840.10045.1.2.3.1 ANSI X9.62 field basis onBasis -static const unsigned char cvOID_onBasis [] = { 0x2A, 0x86, 0x48, 0xCE, 0x3D, 0x01, 0x02, 0x03, 0x01}; -//1.2.840.10045.1.2.3.2 ANSI X9.62 field basis tpBasis -static const unsigned char cvOID_tpBasis [] = { 0x2A, 0x86, 0x48, 0xCE, 0x3D, 0x01, 0x02, 0x03, 0x02}; -//1.2.840.10045.1.2.3.3 ANSI X9.62 field basis ppBasis -static const unsigned char cvOID_ppBasis [] = { 0x2A, 0x86, 0x48, 0xCE, 0x3D, 0x01, 0x02, 0x03, 0x03}; -//1.2.840.10045.2 ANSI X9.62 publicKeyType -static const unsigned char cvOID_publicKeyType [] = { 0x2A, 0x86, 0x48, 0xCE, 0x3D, 0x02}; -//1.2.840.10045.2.1 ANSI X9.62 public key type ecPublicKey -static const unsigned char cvOID_ecPublicKey [] = { 0x2A, 0x86, 0x48, 0xCE, 0x3D, 0x02, 0x01}; -//1.2.840.10046.1 ANSI X9.42 fieldType -static const unsigned char cvOID_fieldType42 [] = { 0x2A, 0x86, 0x48, 0xCE, 0x3E, 0x01}; -//1.2.840.10046.1.1 ANSI X9.42 field type gf-prime -static const unsigned char cvOID_gf_prime [] = { 0x2A, 0x86, 0x48, 0xCE, 0x3E, 0x01, 0x01}; -//1.2.840.10046.2 ANSI X9.42 numberType -static const unsigned char cvOID_numberType [] = { 0x2A, 0x86, 0x48, 0xCE, 0x3E, 0x02}; -//1.2.840.10046.2.1 ANSI X9.42 number type dhPublicKey -static const unsigned char cvOID_dhPublicKey [] = { 0x2A, 0x86, 0x48, 0xCE, 0x3E, 0x02, 0x01}; -//1.2.840.10046.3 ANSI X9.42 scheme -static const unsigned char cvOID_scheme [] = { 0x2A, 0x86, 0x48, 0xCE, 0x3E, 0x03}; -//1.2.840.10046.3.1 ANSI X9.42 scheme dhStatic -static const unsigned char cvOID_dhStatic [] = { 0x2A, 0x86, 0x48, 0xCE, 0x3E, 0x03, 0x01}; -//1.2.840.10046.3.2 ANSI X9.42 scheme dhEphem -static const unsigned char cvOID_dhEphem [] = { 0x2A, 0x86, 0x48, 0xCE, 0x3E, 0x03, 0x02}; -//1.2.840.10046.3.3 ANSI X9.42 scheme dhHybrid1 -static const unsigned char cvOID_dhHybrid1 [] = { 0x2A, 0x86, 0x48, 0xCE, 0x3E, 0x03, 0x03}; -//1.2.840.10046.3.4 ANSI X9.42 scheme dhHybrid2 -static const unsigned char cvOID_dhHybrid2 [] = { 0x2A, 0x86, 0x48, 0xCE, 0x3E, 0x03, 0x04}; -//1.2.840.10046.3.5 ANSI X9.42 scheme mqv2 -static const unsigned char cvOID_mqv2 [] = { 0x2A, 0x86, 0x48, 0xCE, 0x3E, 0x03, 0x05}; -//1.2.840.10046.3.6 ANSI X9.42 scheme mqv1 -static const unsigned char cvOID_mqv1 [] = { 0x2A, 0x86, 0x48, 0xCE, 0x3E, 0x03, 0x06}; -//1.2.840.113533.7.65.0 Nortel Secure Networks ce (1 2 840 113533 7 65) entrustVersInfo -static const unsigned char cvOID_entrustVersInfo [] = { 0x2A, 0x86, 0x48, 0x86, 0xF6, 0x7D, 0x07, 0x41, 0x00}; -//1.2.840.113533.7.66.3 Nortel Secure Networks alg (1 2 840 113533 7 66) cast3CBC -static const unsigned char cvOID_cast3CBC [] = { 0x2A, 0x86, 0x48, 0x86, 0xF6, 0x7D, 0x07, 0x42, 0x03}; -//1.2.840.113533.7.66.10 Nortel Secure Networks alg (1 2 840 113533 7 66) cast5CBC -static const unsigned char cvOID_cast5CBC [] = { 0x2A, 0x86, 0x48, 0x86, 0xF6, 0x7D, 0x07, 0x42, 0x0A}; -//1.2.840.113533.7.66.11 Nortel Secure Networks alg (1 2 840 113533 7 66) cast5MAC -static const unsigned char cvOID_cast5MAC [] = { 0x2A, 0x86, 0x48, 0x86, 0xF6, 0x7D, 0x07, 0x42, 0x0B}; -//1.2.840.113533.7.66.12 Nortel Secure Networks alg (1 2 840 113533 7 66) pbeWithMD5AndCAST5-CBC -static const unsigned char cvOID_pbeWithMD5AndCAST5_CBC [] = { 0x2A, 0x86, 0x48, 0x86, 0xF6, 0x7D, 0x07, 0x42, 0x0C}; -//1.2.840.113533.7.66.13 Nortel Secure Networks alg (1 2 840 113533 7 66) passwordBasedMac -static const unsigned char cvOID_passwordBasedMac [] = { 0x2A, 0x86, 0x48, 0x86, 0xF6, 0x7D, 0x07, 0x42, 0x0D}; -//1.2.840.113 -static const unsigned char cvOID_entrustUser [] = { 0x2A, 0x86, 0x48, 0x86, 0xF6, 0x7D, 0x07, 0x43, 0x0C}; -//1.2.840.113533.7.68.0 Nortel Secure Networks at (1 2 840 113533 7 68) entrustCAInfo -static const unsigned char cvOID_entrustCAInfo [] = { 0x2A, 0x86, 0x48, 0x86, 0xF6, 0x7D, 0x07, 0x44, 0x00}; -//1.2.840.113533.7.68.10 Nortel Secure Networks at (1 2 840 113533 7 68) attributeCertificate -static const unsigned char cvOID_attributeCertificate [] = { 0x2A, 0x86, 0x48, 0x86, 0xF6, 0x7D, 0x07, 0x44, 0x0A}; -//1.2.840.113549.1.1.1 PKCS #1 rsaEncryption -static const unsigned char cvOID_rsaEncryption [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x01, 0x01}; -//1.2.840.113549.1.1.2 PKCS #1 md2withRSAEncryption -static const unsigned char cvOID_md2withRSAEncryption [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x01, 0x02}; -//1.2.840.113549.1.1.3 PKCS #1 md4withRSAEncryption -static const unsigned char cvOID_md4withRSAEncryption [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x01, 0x03}; -//1.2.840.113549.1.1.4 PKCS #1 md5withRSAEncryption -static const unsigned char cvOID_md5withRSAEncryption [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x01, 0x04}; -//1.2.840.113549.1.1.5 PKCS #1 sha1withRSAEncryption -static const unsigned char cvOID_sha1withRSAEncryption [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x01, 0x05}; -//1.2.840.113549.1.1.6 PKCS #1. This OID may also be assigned as ripemd160WithRSAEncryption rsaOAEPEncryptionSET -static const unsigned char cvOID_rsaOAEPEncryptionSET [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x01, 0x06}; -//1.2.840.113549.1.1.8 PKCS #1. id-mgf1 (0x2A864886F70D010108) -static const unsigned char cvOID_mgf1 [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x01, 0x08}; -//1.2.840.113549.1.1.10 PKCS #1. id-RSASSA-PSS (0x2A864886F70D01010A) -static const unsigned char cvOID_rsaSSA_PSS [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x01, 0x0A}; -//1.2.840.113549.1.2 Obsolete BSAFE OID bsafeRsaEncr -static const unsigned char cvOID_bsafeRsaEncr [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x01}; -//1.2.840.113549.1.3.1 PKCS #3 dhKeyAgreement -static const unsigned char cvOID_dhKeyAgreement [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x03, 0x01}; -//1.2.840.113549.1.5.1 PKCS #5 pbeWithMD2AndDES-CBC -static const unsigned char cvOID_pbeWithMD2AndDES_CBC [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x05, 0x01}; -//1.2.840.113549.1.5.3 PKCS #5 pbeWithMD5AndDES-CBC -static const unsigned char cvOID_pbeWithMD5AndDES_CBC [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x05, 0x03}; -//1.2.840.113549.1.5.4 PKCS #5 pbeWithMD2AndRC2-CBC -static const unsigned char cvOID_pbeWithMD2AndRC2_CBC [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x05, 0x04}; -//1.2.840.113549.1.5.6 PKCS #5 pbeWithMD5AndRC2-CBC -static const unsigned char cvOID_pbeWithMD5AndRC2_CBC [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x05, 0x06}; -//1.2.840.113549.1.5.9 PKCS #5, used in BSAFE only pbeWithMD5AndXOR -static const unsigned char cvOID_pbeWithMD5AndXOR [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x05, 0x09}; -//1.2.840.113549.1.5.10 PKCS #5 pbeWithSHAAndDES-CBC -static const unsigned char cvOID_pbeWithSHAAndDES_CBC [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x05, 0x0A}; -//1.2.840.113549.1.5.12 PKCS #5 v2.0 id-PBKDF2 -static const unsigned char cvOID_id_PBKDF2 [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x05, 0x0C}; -//1.2.840.113549.1.5.13 PKCS #5 v2.0 id-PBES2 -static const unsigned char cvOID_id_PBES2 [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x05, 0x0D}; -//1.2.840.113549.1.5.14 PKCS #5 v2.0 id-PBMAC1 -static const unsigned char cvOID_id_PBMAC1 [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x05, 0x0E}; -//1.2.840.113549.1.7.1 PKCS #7 data -static const unsigned char cvOID_data [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x07, 0x01}; -//1.2.840.113549.1.7.2 PKCS #7 signedData -static const unsigned char cvOID_signedData [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x07, 0x02}; -//1.2.840.113549.1.7.3 PKCS #7 envelopedData -static const unsigned char cvOID_envelopedData [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x07, 0x03}; -//1.2.840.113549.1.7.4 PKCS #7 signedAndEnvelopedData -static const unsigned char cvOID_signedAndEnvelopedData [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x07, 0x04}; -//1.2.840.113549.1.7.5 PKCS #7 digestedData -static const unsigned char cvOID_digestedData [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x07, 0x05}; -//1.2.840.113549.1.7.6 PKCS #7 encryptedData -static const unsigned char cvOID_encryptedData [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x07, 0x06}; -//1.2.840.113549.1.7.7 PKCS #7 experimental dataWithAttributes -static const unsigned char cvOID_dataWithAttributes [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x07, 0x07}; -//1.2.840.113549.1.7.8 PKCS #7 experimental encryptedPrivateKeyInfo -static const unsigned char cvOID_encryptedPrivateKeyInfo [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x07, 0x08}; -//1.2.840.113549.1.9.1 PKCS #9 (1 2 840 113549 1 9). Deprecated, use an altName extension instead emailAddress -static const unsigned char cvOID_emailAddress_PKCS9 [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x09, 0x01}; -//1.2.840.113549.1.9.2 PKCS #9 (1 2 840 113549 1 9) unstructuredName -static const unsigned char cvOID_unstructuredName [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x09, 0x02}; -//1.2.840.113549.1.9.3 PKCS #9 (1 2 840 113549 1 9) contentType -static const unsigned char cvOID_contentType [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x09, 0x03}; -//1.2.840.113549.1.9.4 PKCS #9 (1 2 840 113549 1 9) messageDigest -static const unsigned char cvOID_messageDigest [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x09, 0x04}; -//1.2.840.113549.1.9.5 PKCS #9 (1 2 840 113549 1 9) signingTime -static const unsigned char cvOID_signingTime [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x09, 0x05}; -//1.2.840.113549.1.9.6 PKCS #9 (1 2 840 113549 1 9) countersignature -static const unsigned char cvOID_countersignature_PKCS9 [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x09, 0x06}; -//1.2.840.113549.1.9.7 PKCS #9 (1 2 840 113549 1 9) challengePassword -static const unsigned char cvOID_challengePassword [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x09, 0x07}; -//1.2.840.113549.1.9.8 PKCS #9 (1 2 840 113549 1 9) unstructuredAddress -static const unsigned char cvOID_unstructuredAddress [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x09, 0x08}; -//1.2.840.113549.1.9.9 PKCS #9 (1 2 840 113549 1 9) extendedCertificateAttributes -static const unsigned char cvOID_extendedCertificateAttributes [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x09, 0x09}; -//1.2.840.113549.1.9.10 PKCS #9 (1 2 840 113549 1 9) experimental issuerAndSerialNumber -static const unsigned char cvOID_issuerAndSerialNumber [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x09, 0x0A}; -//1.2.840.113549.1.9.11 PKCS #9 (1 2 840 113549 1 9) experimental passwordCheck -static const unsigned char cvOID_passwordCheck [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x09, 0x0B}; -//1.2.840.113549.1.9.12 PKCS #9 (1 2 840 113549 1 9) experimental publicKey -static const unsigned char cvOID_publicKey [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x09, 0x0C}; -//1.2.840.113549.1.9.13 PKCS #9 (1 2 840 113549 1 9) experimental signingDescription -static const unsigned char cvOID_signingDescription [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x09, 0x0D}; -//1.2.840.113549.1.9.14 PKCS #9 (1 2 840 113549 1 9) experimental extensionReq -static const unsigned char cvOID_extensionReq [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x09, 0x0E}; -//1.2.840.113549.1.9.15 PKCS #9 (1 2 840 113549 1 9). This OID was formerly assigned as symmetricCapabilities, then reassigned as SMIMECapabilities, then renamed to the current name sMIMECapabilities -static const unsigned char cvOID_sMIMECapabilities [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x09, 0x0F}; -//1.2.840.113549.1.9.15.1 sMIMECapabilities (1 2 840 113549 1 9 15) preferSignedData -static const unsigned char cvOID_preferSignedData [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x09, 0x0F, 0x01}; -//1.2.840.113549.1.9.15.2 sMIMECapabilities (1 2 840 113549 1 9 15) canNotDecryptAny -static const unsigned char cvOID_canNotDecryptAny [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x09, 0x0F, 0x02}; -//1.2.840.113549.1.9.15.3 sMIMECapabilities (1 2 840 113549 1 9 15). Deprecated, use (1 2 840 113549 1 9 16 2 1) instead receiptRequest -static const unsigned char cvOID_receiptRequest [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x09, 0x0F, 0x03}; -//1.2.840.113549.1.9.15.4 sMIMECapabilities (1 2 840 113549 1 9 15). Deprecated, use (1 2 840 113549 1 9 16 1 1) instead receipt -static const unsigned char cvOID_receipt [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x09, 0x0F, 0x04}; -//1.2.840.113549.1.9.15.5 sMIMECapabilities (1 2 840 113549 1 9 15). Deprecated, use (1 2 840 113549 1 9 16 2 4) instead contentHints -static const unsigned char cvOID_contentHints [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x09, 0x0F, 0x05}; -//1.2.840.113549.1.9.15.6 sMIMECapabilities (1 2 840 113549 1 9 15). Deprecated, use (1 2 840 113549 1 9 16 2 3) instead mlExpansionHistory -static const unsigned char cvOID_mlExpansionHistory [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x09, 0x0F, 0x06}; -//1.2.840.113549.1.9.16 PKCS #9 (1 2 840 113549 1 9) id-sMIME -static const unsigned char cvOID_id_sMIME [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x09, 0x10}; -//1.2.840.113549.1.9.16.0 id-sMIME (1 2 840 113549 1 9 16) id-mod -static const unsigned char cvOID_id_mod [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x09, 0x10, 0x00}; -//1.2.840.113549.1.9.16.0.1 S/MIME Modules (1 2 840 113549 1 9 16 0) id-mod-cms -static const unsigned char cvOID_id_mod_cms [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x09, 0x10, 0x00, 0x01}; -//1.2.840.113549.1.9.16.0.2 S/MIME Modules (1 2 840 113549 1 9 16 0) id-mod-ess -static const unsigned char cvOID_id_mod_ess [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x09, 0x10, 0x00, 0x02}; -//1.2.840.113549.1.9.16.1 id-sMIME (1 2 840 113549 1 9 16) id-ct -static const unsigned char cvOID_id_ct [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x09, 0x10, 0x01}; -//1.2.840.113549.1.9.16.1.1 S/MIME Content Types (1 2 840 113549 1 9 16 1) id-ct-receipt -static const unsigned char cvOID_id_ct_receipt [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x09, 0x10, 0x01, 0x01}; -//1.2.840.113549.1.9.16.1.2 S/MIME Content Types (1 2 840 113549 1 9 16 1) id-ct-authData -static const unsigned char cvOID_id_ct_authData [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x09, 0x10, 0x01, 0x02}; -//1.2.840.113549.1.9.16.1.3 S/MIME Content Types (1 2 840 113549 1 9 16 1) id-ct-compressedData -static const unsigned char cvOID_id_ct_compressedData [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x09, 0x10, 0x01, 0x03}; -//1.2.840.113549.1.9.16.2 id-sMIME (1 2 840 113549 1 9 16) id-aa -static const unsigned char cvOID_id_aa [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x09, 0x10, 0x02}; -//1.2.840.113549.1.9.16.2.1 S/MIME Authenticated Attributes (1 2 840 113549 1 9 16 2) id-aa-receiptRequest -static const unsigned char cvOID_id_aa_receiptRequest [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x09, 0x10, 0x02, 0x01}; -//1.2.840.113549.1.9.16.2.2 S/MIME Authenticated Attributes (1 2 840 113549 1 9 16 2) id-aa-securityLabel -static const unsigned char cvOID_id_aa_securityLabel [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x09, 0x10, 0x02, 0x02}; -//1.2.840.113549.1.9.16.2.3 S/MIME Authenticated Attributes (1 2 840 113549 1 9 16 2) id-aa-mlExpandHistory -static const unsigned char cvOID_id_aa_mlExpandHistory [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x09, 0x10, 0x02, 0x03}; -//1.2.840.113549.1.9.16.2.4 S/MIME Authenticated Attributes (1 2 840 113549 1 9 16 2) id-aa-contentHint -static const unsigned char cvOID_id_aa_contentHint [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x09, 0x10, 0x02, 0x04}; -//1.2.840.113549.1.9.16.2.5 S/MIME Authenticated Attributes (1 2 840 113549 1 9 16 2) id-aa-msgSigDigest -static const unsigned char cvOID_id_aa_msgSigDigest [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x09, 0x10, 0x02, 0x05}; -//1.2.840.113549.1.9.16.2.7 S/MIME Authenticated Attributes (1 2 840 113549 1 9 16 2) id-aa-contentIdentifier -static const unsigned char cvOID_id_aa_contentIdentifier [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x09, 0x10, 0x02, 0x07}; -//1.2.840.113549.1.9.16.2.8 S/MIME Authenticated Attributes (1 2 840 113549 1 9 16 2) id-aa-macValue -static const unsigned char cvOID_id_aa_macValue [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x09, 0x10, 0x02, 0x08}; -//1.2.840.113549.1.9.16.2.9 S/MIME Authenticated Attributes (1 2 840 113549 1 9 16 2) id-aa-equivalentLabels -static const unsigned char cvOID_id_aa_equivalentLabels [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x09, 0x10, 0x02, 0x09}; -//1.2.840.113549.1.9.16.2.10 S/MIME Authenticated Attributes (1 2 840 113549 1 9 16 2) id-aa-contentReference -static const unsigned char cvOID_id_aa_contentReference [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x09, 0x10, 0x02, 0x0A}; -//1.2.840.113549.1.9.16.3.5 S/MIME Algorithms (1 2 840 113549 1 9 16 3) id-alg-ESDH -static const unsigned char cvOID_id_alg_ESDH [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x09, 0x10, 0x03, 0x05}; -//1.2.840.113549.1.9.16.3.6 S/MIME Algorithms (1 2 840 113549 1 9 16 3) id-alg-CMS3DESwrap -static const unsigned char cvOID_id_alg_CMS3DESwrap [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x09, 0x10, 0x03, 0x06}; -//1.2.840.113549.1.9.16.3.7 S/MIME Algorithms (1 2 840 113549 1 9 16 3) id-alg-CMSRC2wrap -static const unsigned char cvOID_id_alg_CMSRC2wrap [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x09, 0x10, 0x03, 0x07}; -//1.2.840.113549.1.9.16.3.8 S/MIME Algorithms (1 2 840 113549 1 9 16 3) id-alg-zlib -static const unsigned char cvOID_id_alg_zlib [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x09, 0x10, 0x03, 0x08}; -//1.2.840.113549.1.9.20 PKCS #9 (1 2 840 113549 1 9) friendlyName (for PKCS #12) -static const unsigned char cvOID_friendlyName [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x09, 0x14}; -//1.2.840.113549.1.9.21 PKCS #9 (1 2 840 113549 1 9) localKeyID (for PKCS #12) -static const unsigned char cvOID_localKeyID[] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x09, 0x15}; -//1.2.840.113549.1.9.22 PKCS #9 (1 2 840 113549 1 9) certTypes (for PKCS #12) -static const unsigned char cvOID_certTypes[] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x09, 0x16}; -//1.2.840.113549.1.9.22.1 PKCS #9 (1 2 840 113549 1 9) x509Certificate (for PKCS #12) -static const unsigned char cvOID_x509Certificate[] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x09, 0x16, 0x01}; -//1.2.840.113549.1.9.22.2 PKCS #9 (1 2 840 113549 1 9) sdsiCertificate (for PKCS #12) -static const unsigned char cvOID_sdsiCertificate [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x09, 0x16, 0x02}; -//1.2.840.113549.1.9.23 PKCS #9 (1 2 840 113549 1 9) crlTypes (for PKCS #12) -static const unsigned char cvOID_crlTypes[] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x09, 0x17}; -//1.2.840.113549.1.9.23.1 PKCS #9 (1 2 840 113549 1 9) x509Crl (for PKCS #12) -static const unsigned char cvOID_x509Crl[] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x09, 0x17, 0x01}; -//1.2.840.113549.1.12.1 This OID was formerly assigned as PKCS #12 modeID pkcs-12-PbeIds -static const unsigned char cvOID_pkcs_12_PbeIds [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x0C, 0x01}; -//1.2.840.113549.1.12.1.1 PKCS #12 PbeIds (1 2 840 113549 1 12 1). This OID was formerly assigned as pkcs-12-OfflineTransportMode pbeWithSHAAnd128BitRC4 -static const unsigned char cvOID_pbeWithSHAAnd128BitRC4 [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x0C, 0x01, 0x01}; -//1.2.840.113549.1.12.1.2 PKCS #12 PbeIds (1 2 840 113549 1 12 2). This OID was formerly assigned as pkcs-12-OnlineTransportMode pbeWithSHAAnd40BitRC4 -static const unsigned char cvOID_pbeWithSHAAnd40BitRC4 [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x0C, 0x01, 0x02}; -//1.2.840.113549.1.12.1.3 PKCS #12 PbeIds (1 2 840 113549 1 12 3) pbeWithSHAAnd3-KeyTripleDES-CBC -static const unsigned char cvOID_pbeWithSHAAnd3_KeyTripleDES_CBC [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x0C, 0x01, 0x03}; -//1.2.840.113549.1.12.1.4 PKCS #12 PbeIds (1 2 840 113549 1 12 3) pbeWithSHAAnd2-KeyTripleDES-CBC -static const unsigned char cvOID_pbeWithSHAAnd2_KeyTripleDES_CBC [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x0C, 0x01, 0x04}; -//1.2.840.113549.1.12.1.5 PKCS #12 PbeIds (1 2 840 113549 1 12 3) pbeWithSHAAnd128BitRC2-CBC -static const unsigned char cvOID_pbeWithSHAAnd128BitRC2_CBC [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x0C, 0x01, 0x05}; -//1.2.840.113549.1.12.1.6 PKCS #12 PbeIds (1 2 840 113549 1 12 3) pbeWithSHAAnd40BitRC2-CBC -static const unsigned char cvOID_pbeWithSHAAnd40BitRC2_CBC [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x0C, 0x01, 0x06}; -//1.2.840.113549.1.12.2 Deprecated pkcs-12-ESPVKID -static const unsigned char cvOID_pkcs_12_ESPVKID [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x0C, 0x02}; -//1.2.840.113549.1.12.2.1 PKCS #12 ESPVKID (1 2 840 113549 1 12 2). Deprecated, use (1 2 840 113549 1 12 3 5) instead pkcs-12-PKCS8KeyShrouding -static const unsigned char cvOID_pkcs_12_PKCS8KeyShrouding [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x0C, 0x02, 0x01}; -//1.2.840.113549.1.12.3.1 PKCS #12 BagIds (1 2 840 113549 1 12 3) pkcs-12-keyBagId -static const unsigned char cvOID_pkcs_12_keyBagId [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x0C, 0x03, 0x01}; -//1.2.840.113549.1.12.3.2 PKCS #12 BagIds (1 2 840 113549 1 12 3) pkcs-12-certAndCRLBagId -static const unsigned char cvOID_pkcs_12_certAndCRLBagId [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x0C, 0x03, 0x02}; -//1.2.840.113549.1.12.3.3 PKCS #12 BagIds (1 2 840 113549 1 12 3) pkcs-12-secretBagId -static const unsigned char cvOID_pkcs_12_secretBagId [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x0C, 0x03, 0x03}; -//1.2.840.113549.1.12.3.4 PKCS #12 BagIds (1 2 840 113549 1 12 3) pkcs-12-safeContentsId -static const unsigned char cvOID_pkcs_12_safeContentsId [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x0C, 0x03, 0x04}; -//1.2.840.113549.1.12.3.5 PKCS #12 BagIds (1 2 840 113549 1 12 3) pkcs-12-pkcs-8ShroudedKeyBagId -static const unsigned char cvOID_pkcs_12_pkcs_8ShroudedKeyBagId [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x0C, 0x03, 0x05}; -//1.2.840.113549.1.12.4 Deprecated pkcs-12-CertBagID -static const unsigned char cvOID_pkcs_12_CertBagID [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x0C, 0x04}; -//1.2.840.113549.1.12.4.1 PKCS #12 CertBagID (1 2 840 113549 1 12 4). This OID was formerly assigned as pkcs-12-X509CertCRLBag pkcs-12-X509CertCRLBagID -static const unsigned char cvOID_pkcs_12_X509CertCRLBagID [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x0C, 0x04, 0x01}; -//1.2.840.113549.1.12.4.2 PKCS #12 CertBagID (1 2 840 113549 1 12 4). This OID was formerly assigned as pkcs-12-SDSICertBag pkcs-12-SDSICertBagID -static const unsigned char cvOID_pkcs_12_SDSICertBagID [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x0C, 0x04, 0x02}; -//1.2.840.113549.1.12.5.1 PKCS #12 OID (1 2 840 113549 1 12 5). Deprecated, use the partially compatible (1 2 840 113549 1 12 1) OIDs instead pkcs-12-PBEID -static const unsigned char cvOID_pkcs_12_PBEID [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x0C, 0x05, 0x01}; -//1.2.840.113549.1.12.5.1.1 PKCS #12 OID PBEID (1 2 840 113549 1 12 5 1). Deprecated, use (1 2 840 113549 1 12 1 1) instead pkcs-12-PBEWithSha1And128BitRC4 -static const unsigned char cvOID_pkcs_12_PBEWithSha1And128BitRC4 [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x0C, 0x05, 0x01, 0x01}; -//1.2.840.113549.1.12.5.1.2 PKCS #12 OID PBEID (1 2 840 113549 1 12 5 1). Deprecated, use (1 2 840 113549 1 12 1 2) instead pkcs-12-PBEWithSha1And40BitRC4 -static const unsigned char cvOID_pkcs_12_PBEWithSha1And40BitRC4 [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x0C, 0x05, 0x01, 0x02}; -//1.2.840.113549.1.12.5.1.3 PKCS #12 OID PBEID (1 2 840 113549 1 12 5 1). Deprecated, use the incompatible but similar (1 2 840 113549 1 12 1 3) or (1 2 840 113549 1 12 1 4) instead pkcs-12-PBEWithSha1AndTripleDESCBC -static const unsigned char cvOID_pkcs_12_PBEWithSha1AndTripleDESCBC [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x0C, 0x05, 0x01, 0x03}; -//1.2.840.113549.1.12.5.1.4 PKCS #12 OID PBEID (1 2 840 113549 1 12 5 1). Deprecated, use (1 2 840 113549 1 12 1 5) instead pkcs-12-PBEWithSha1And128BitRC2CBC -static const unsigned char cvOID_pkcs_12_PBEWithSha1And128BitRC2CBC [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x0C, 0x05, 0x01, 0x04}; -//1.2.840.113549.1.12.5.1.5 PKCS #12 OID PBEID (1 2 840 113549 1 12 5 1). Deprecated, use (1 2 840 113549 1 12 1 6) instead pkcs-12-PBEWithSha1And40BitRC2CBC -static const unsigned char cvOID_pkcs_12_PBEWithSha1And40BitRC2CBC [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x0C, 0x05, 0x01, 0x05}; -//1.2.840.113549.1.12.5.1.6 PKCS #12 OID PBEID (1 2 840 113549 1 12 5 1). Deprecated, use the incompatible but similar (1 2 840 113549 1 12 1 1) or (1 2 840 113549 1 12 1 2) instead pkcs-12-PBEWithSha1AndRC4 -static const unsigned char cvOID_pkcs_12_PBEWithSha1AndRC4 [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x0C, 0x05, 0x01, 0x06}; -//1.2.840.113549.1.12.5.1.7 PKCS #12 OID PBEID (1 2 840 113549 1 12 5 1). Deprecated, use the incompatible but similar (1 2 840 113549 1 12 1 5) or (1 2 840 113549 1 12 1 6) instead pkcs-12-PBEWithSha1AndRC2CBC -static const unsigned char cvOID_pkcs_12_PBEWithSha1AndRC2CBC [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x0C, 0x05, 0x01, 0x07}; -//1.2.840.113549.1.12.5.2.1 PKCS #12 OID EnvelopingID (1 2 840 113549 1 12 5 2). Deprecated, use the conventional PKCS #1 OIDs instead pkcs-12-RSAEncryptionWith128BitRC4 -static const unsigned char cvOID_pkcs_12_RSAEncryptionWith128BitRC4 [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x0C, 0x05, 0x02, 0x01}; -//1.2.840.113549.1.12.5.2.2 PKCS #12 OID EnvelopingID (1 2 840 113549 1 12 5 2). Deprecated, use the conventional PKCS #1 OIDs instead pkcs-12-RSAEncryptionWith40BitRC4 -static const unsigned char cvOID_pkcs_12_RSAEncryptionWith40BitRC4 [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x0C, 0x05, 0x02, 0x02}; -//1.2.840.113549.1.12.5.2.3 PKCS #12 OID EnvelopingID (1 2 840 113549 1 12 5 2). Deprecated, use the conventional PKCS #1 OIDs instead pkcs-12-RSAEncryptionWithTripleDES -static const unsigned char cvOID_pkcs_12_RSAEncryptionWithTripleDES [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x0C, 0x05, 0x02, 0x03}; -//1.2.840.113549.1.12.5.3.1 PKCS #12 OID SignatureID (1 2 840 113549 1 12 5 3). Deprecated, use the conventional PKCS #1 OIDs instead pkcs-12-RSASignatureWithSHA1Digest -static const unsigned char cvOID_pkcs_12_RSASignatureWithSHA1Digest [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x0C, 0x05, 0x03, 0x01}; -//1.2.840.113549.1.12.10.1.1 PKCS #12 BagIds (1 2 840 113549 1 12 10 1) pkcs-12-keyBag -static const unsigned char cvOID_pkcs_12_keyBag [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x0C, 0x0A, 0x01, 0x01}; -//1.2.840.113549.1.12.10.1.2 PKCS #12 BagIds (1 2 840 113549 1 12 10 1) pkcs-12-pkcs-8ShroudedKeyBag -static const unsigned char cvOID_pkcs_12_pkcs_8ShroudedKeyBag [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x0C, 0x0A, 0x01, 0x02}; -//1.2.840.113549.1.12.10.1.3 PKCS #12 BagIds (1 2 840 113549 1 12 10 1) pkcs-12-certBag -static const unsigned char cvOID_pkcs_12_certBag [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x0C, 0x0A, 0x01, 0x03}; -//1.2.840.113549.1.12.10.1.4 PKCS #12 BagIds (1 2 840 113549 1 12 10 1) pkcs-12-crlBag -static const unsigned char cvOID_pkcs_12_crlBag [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x0C, 0x0A, 0x01, 0x04}; -//1.2.840.113549.1.12.10.1.5 PKCS #12 BagIds (1 2 840 113549 1 12 10 1) pkcs-12-secretBag -static const unsigned char cvOID_pkcs_12_secretBag [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x0C, 0x0A, 0x01, 0x05}; -//1.2.840.113549.1.12.10.1.6 PKCS #12 BagIds (1 2 840 113549 1 12 10 1) pkcs-12-safeContentsBag -static const unsigned char cvOID_pkcs_12_safeContentsBag [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x0C, 0x0A, 0x01, 0x06}; -//1.2.840.113549.2.2 RSADSI digestAlgorithm (1 2 840 113549 2) md2 -static const unsigned char cvOID_md2 [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x02, 0x02}; -//1.2.840.113549.2.4 RSADSI digestAlgorithm (1 2 840 113549 2) md4 -static const unsigned char cvOID_md4 [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x02, 0x04}; -//1.2.840.113549.2.5 RSADSI digestAlgorithm (1 2 840 113549 2) md5 -static const unsigned char cvOID_md5 [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x02, 0x05}; -//1.2.840.113549.3.2 RSADSI encryptionAlgorithm (1 2 840 113549 3) rc2CBC -static const unsigned char cvOID_rc2CBC [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x03, 0x02}; -//1.2.840.113549.3.3 RSADSI encryptionAlgorithm (1 2 840 113549 3) rc2ECB -static const unsigned char cvOID_rc2ECB [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x03, 0x03}; -//1.2.840.113549.3.4 RSADSI encryptionAlgorithm (1 2 840 113549 3) rc4 -static const unsigned char cvOID_rc4 [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x03, 0x04}; -//1.2.840.113549.3.5 RSADSI encryptionAlgorithm (1 2 840 113549 3) rc4WithMAC -static const unsigned char cvOID_rc4WithMAC [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x03, 0x05}; -//1.2.840.113549.3.6 RSADSI encryptionAlgorithm (1 2 840 113549 3) desx-CBC -static const unsigned char cvOID_desx_CBC [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x03, 0x06}; -//1.2.840.113549.3.7 RSADSI encryptionAlgorithm (1 2 840 113549 3) des-EDE3-CBC -static const unsigned char cvOID_des_EDE3_CBC [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x03, 0x07}; -//1.2.840.113549.3.8 RSADSI encryptionAlgorithm (1 2 840 113549 3) rc5CBC -static const unsigned char cvOID_rc5CBC [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x03, 0x08}; -//1.2.840.113549.3.9 RSADSI encryptionAlgorithm (1 2 840 113549 3) rc5-CBCPad -static const unsigned char cvOID_rc5_CBCPad [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x03, 0x09}; -//1.2.840.113549.3.10 RSADSI encryptionAlgorithm (1 2 840 113549 3). Formerly called CDMFCBCPad desCDMF -static const unsigned char cvOID_desCDMF [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x03, 0x0A}; -//1.3.6.1.4.1.188.7.1.1 Ascom Systech ascom -static const unsigned char cvOID_ascom [] = { 0x2B, 0x06, 0x01, 0x04, 0x01, 0x81, 0x3C, 0x07, 0x01, 0x01}; -//1.3.6.1.4.1.188.7.1.1.1 Ascom Systech ideaECB -static const unsigned char cvOID_ideaECB [] = { 0x2B, 0x06, 0x01, 0x04, 0x01, 0x81, 0x3C, 0x07, 0x01, 0x01, 0x01}; -//1.3.6.1.4.1.188.7.1.1.2 Ascom Systech ideaCBC -static const unsigned char cvOID_ideaCBC [] = { 0x2B, 0x06, 0x01, 0x04, 0x01, 0x81, 0x3C, 0x07, 0x01, 0x01, 0x02}; -//1.3.6.1.4.1.188.7.1.1.3 Ascom Systech ideaCFB -static const unsigned char cvOID_ideaCFB [] = { 0x2B, 0x06, 0x01, 0x04, 0x01, 0x81, 0x3C, 0x07, 0x01, 0x01, 0x03}; -//1.3.6.1.4.1.188.7.1.1.4 Ascom Systech ideaOFB -static const unsigned char cvOID_ideaOFB [] = { 0x2B, 0x06, 0x01, 0x04, 0x01, 0x81, 0x3C, 0x07, 0x01, 0x01, 0x04}; -//1.2.840.113556.4.3 Microsoft microsoftExcel -static const unsigned char cvOID_microsoftExcel [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x14, 0x04, 0x03}; -//1.2.840.113556.4.4 Microsoft titledWithOID -static const unsigned char cvOID_titledWithOID [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x14, 0x04, 0x04}; -//1.2.840.113556.4.5 Microsoft microsoftPowerPoint -static const unsigned char cvOID_microsoftPowerPoint [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x14, 0x04, 0x05}; -//1.3.6.1.4.1.311.2.1.4 Microsoft code signing spcIndirectDataContext -static const unsigned char cvOID_spcIndirectDataContext [] = { 0x2B, 0x06, 0x01, 0x04, 0x01, 0x82, 0x37, 0x02, 0x01, 0x04}; -//1.3.6.1.4.1.311.2.1.10 Microsoft code signing. Also known as policyLink spcAgencyInfo -static const unsigned char cvOID_spcAgencyInfo [] = { 0x2B, 0x06, 0x01, 0x04, 0x01, 0x82, 0x37, 0x02, 0x01, 0x0A}; -//1.3.6.1.4.1.311.2.1.11 Microsoft code signing spcStatementType -static const unsigned char cvOID_spcStatementType [] = { 0x2B, 0x06, 0x01, 0x04, 0x01, 0x82, 0x37, 0x02, 0x01, 0x0B}; -//1.3.6.1.4.1.311.2.1.12 Microsoft code signing spcSpOpusInfo -static const unsigned char cvOID_spcSpOpusInfo [] = { 0x2B, 0x06, 0x01, 0x04, 0x01, 0x82, 0x37, 0x02, 0x01, 0x0C}; -//1.3.6.1.4.1.311.2.1.14 Microsoft certReqExtensions -static const unsigned char cvOID_certReqExtensions [] = { 0x2B, 0x06, 0x01, 0x04, 0x01, 0x82, 0x37, 0x02, 0x01, 0x0E}; -//1.3.6.1.4.1.311.2.1.15 Microsoft code signing spcPelmageData -static const unsigned char cvOID_spcPelmageData [] = { 0x2B, 0x06, 0x01, 0x04, 0x01, 0x82, 0x37, 0x02, 0x01, 0x0F}; -//1.3.6.1.4.1.311.2.1.20 Microsoft code signing. Also known as "glue extension" spcLink (type 1) -static const unsigned char cvOID_spcLink_1[] = { 0x2B, 0x06, 0x01, 0x04, 0x01, 0x82, 0x37, 0x02, 0x01, 0x14}; -//1.3.6.1.4.1.311.2.1.21 Microsoft individualCodeSigning -static const unsigned char cvOID_individualCodeSigning [] = { 0x2B, 0x06, 0x01, 0x04, 0x01, 0x82, 0x37, 0x02, 0x01, 0x15}; -//1.3.6.1.4.1.311.2.1.22 Microsoft commercialCodeSigning -static const unsigned char cvOID_commercialCodeSigning [] = { 0x2B, 0x06, 0x01, 0x04, 0x01, 0x82, 0x37, 0x02, 0x01, 0x16}; -//1.3.6.1.4.1.311.2.1.25 Microsoft code signing. Also known as "glue extension" spcLink (type 2) -static const unsigned char cvOID_spcLink_2[] = { 0x2B, 0x06, 0x01, 0x04, 0x01, 0x82, 0x37, 0x02, 0x01, 0x19}; -//1.3.6.1.4.1.311.2.1.26 Microsoft code signing spcMinimalCriteriaInfo -static const unsigned char cvOID_spcMinimalCriteriaInfo [] = { 0x2B, 0x06, 0x01, 0x04, 0x01, 0x82, 0x37, 0x02, 0x01, 0x1A}; -//1.3.6.1.4.1.311.2.1.27 Microsoft code signing spcFinancialCriteriaInfo -static const unsigned char cvOID_spcFinancialCriteriaInfo [] = { 0x2B, 0x06, 0x01, 0x04, 0x01, 0x82, 0x37, 0x02, 0x01, 0x1B}; -//1.3.6.1.4.1.311.2.1.28 Microsoft code signing. Also known as "glue extension" spcLink (type 3) -static const unsigned char cvOID_spcLink_3[] = { 0x2B, 0x06, 0x01, 0x04, 0x01, 0x82, 0x37, 0x02, 0x01, 0x1C}; -//1.3.6.1.4.1.311.3.2.1 Microsoft code signing timestampCountersignature -static const unsigned char cvOID_timestampCountersignature [] = { 0x2B, 0x06, 0x01, 0x04, 0x01, 0x82, 0x37, 0x03, 0x02, 0x01}; -//1.3.6.1.4.1.311.10.1 Microsoft PKCS #7 contentType certTrustList -static const unsigned char cvOID_certTrustList [] = { 0x2B, 0x06, 0x01, 0x04, 0x01, 0x82, 0x37, 0x0A, 0x01}; -//1.3.6.1.4.1.311.10.2 Microsoft nextUpdateLocation -static const unsigned char cvOID_nextUpdateLocation [] = { 0x2B, 0x06, 0x01, 0x04, 0x01, 0x82, 0x37, 0x0A, 0x02}; -//1.3.6.1.4.1.311.10.3.1 Microsoft enhanced key usage certTrustListSigning -static const unsigned char cvOID_certTrustListSigning [] = { 0x2B, 0x06, 0x01, 0x04, 0x01, 0x82, 0x37, 0x0A, 0x03, 0x01}; -//1.3.6.1.4.1.311.10.3.2 Microsoft enhanced key usage timeStampSigning -static const unsigned char cvOID_timeStampSigning [] = { 0x2B, 0x06, 0x01, 0x04, 0x01, 0x82, 0x37, 0x0A, 0x03, 0x02}; -//1.3.6.1.4.1.311.10.3.3 Microsoft enhanced key usage serverGatedCrypto -static const unsigned char cvOID_serverGatedCrypto [] = { 0x2B, 0x06, 0x01, 0x04, 0x01, 0x82, 0x37, 0x0A, 0x03, 0x03}; -//1.3.6.1.4.1.311.10.3.4 Microsoft enhanced key usage encryptedFileSystem -static const unsigned char cvOID_encryptedFileSystem [] = { 0x2B, 0x06, 0x01, 0x04, 0x01, 0x82, 0x37, 0x0A, 0x03, 0x04}; -//1.3.6.1.4.1.311.10.4.1 Microsoft attribute yesnoTrustAttr -static const unsigned char cvOID_yesnoTrustAttr [] = { 0x2B, 0x06, 0x01, 0x04, 0x01, 0x82, 0x37, 0x0A, 0x04, 0x01}; -//1.3.6.1.4.1.311.16.4 Microsoft S/MIME cert attribute microsoftEncryptionCert -static const unsigned char cvOID_microsoftEncryptionCert [] = { 0x2B, 0x06, 0x01, 0x04, 0x01, 0x82, 0x37, 0x10, 0x04}; -//1.3.6.1.4.1.311.20.2.2 Microsoft enhanced key usage smartcardLogon -static const unsigned char cvOID_smartcardLogon [] = { 0x2B, 0x06, 0x01, 0x04, 0x01, 0x82, 0x37, 0x14, 0x02, 0x02}; -//1.3.6.1.4.1.311.21.1 Microsoft attribute cAKeyCertIndexPair -static const unsigned char cvOID_cAKeyCertIndexPair [] = { 0x2B, 0x06, 0x01, 0x04, 0x01, 0x82, 0x37, 0x15, 0x01}; -//1.3.6.1.4.1.311.13.2.2 Microsoft attribute Unknown MS CryptoAPI-related extension -static const unsigned char cvOID_Unknown_MS_CryptoAPI_related_extension [] = { 0x2B, 0x06, 0x01, 0x04, 0x01, 0x82, 0x37, 0x0D, 0x02, 0x02}; -//1.3.6.1.4.1.311.16.4 Microsoft attribute microsoftRecipientInfo -static const unsigned char cvOID_microsoftRecipientInfo [] = { 0x2B, 0x06, 0x01, 0x04, 0x01, 0x82, 0x37, 0x10, 0x04}; -//1.3.6.1.4.1.2428.10.1.1 UNINETT PCA UNINETT policyIdentifier -static const unsigned char cvOID_UNINETT_policyIdentifier [] = { 0x2B, 0x06, 0x01, 0x04, 0x01, 0x92, 0x7C, 0x0A, 0x01, 0x01}; -//1.3.6.1.4.1.2712.10 ICE-TEL CA ICE-TEL policyIdentifier -static const unsigned char cvOID_ICE_TEL_policyIdentifier [] = { 0x2B, 0x06, 0x01, 0x04, 0x01, 0x95, 0x18, 0x0A}; -//1.3.6.1.4.1.2786.1.1.1 ICE-TEL CA policy ICE-TEL Italian policyIdentifier -static const unsigned char cvOID_ICE_TEL_Italian_policyIdentifier [] = { 0x2B, 0x06, 0x01, 0x04, 0x01, 0x95, 0x62, 0x01, 0x01, 0x01}; -//1.3.6.1.4.1.3029.1.1 cryptlib encryption algorithm blowfishECB -static const unsigned char cvOID_blowfishECB [] = { 0x2B, 0x06, 0x01, 0x04, 0x01, 0x97, 0x55, 0x01, 0x01}; -//1.3.6.1.4.1.3029.1.2 cryptlib encr -static const unsigned char cvOID_blowfishCBC [] = { 0x2B, 0x06, 0x01, 0x04, 0x01, 0x97, 0x55, 0x01, 0x02}; -//1.3.6.1.4.1.3029.1.3 cryptlib encryption algorithm blowfishCFB -static const unsigned char cvOID_blowfishCFB [] = { 0x2B, 0x06, 0x01, 0x04, 0x01, 0x97, 0x55, 0x01, 0x03}; -//1.3.6.1.4.1.3029.1.4 cryptlib encryption algorithm blowfishOFB -static const unsigned char cvOID_blowfishOFB [] = { 0x2B, 0x06, 0x01, 0x04, 0x01, 0x97, 0x55, 0x01, 0x04}; -//1.3.6.1.4.1.3029.3.1 cryptlib public-key algorithm elgamal -static const unsigned char cvOID_elgamal [] = { 0x2B, 0x06, 0x01, 0x04, 0x01, 0x97, 0x55, 0x03, 0x01}; -//1.3.6.1.4.1.3029.3.1.1 cryptlib public-key algorithm elgamalWithSHA-1 -static const unsigned char cvOID_elgamalWithSHA_1 [] = { 0x2B, 0x06, 0x01, 0x04, 0x01, 0x97, 0x55, 0x03, 0x01, 0x01}; -//1.3.6.1.4.1.3029.3.1.2 cryptlib public-key algorithm elgamalWithRIPEMD-160 -static const unsigned char cvOID_elgamalWithRIPEMD_160 [] = { 0x2B, 0x06, 0x01, 0x04, 0x01, 0x97, 0x55, 0x03, 0x01, 0x02}; -//1.3.6.1.4.1.3029.32.1 cryptlib cryptlibPrivateKey -static const unsigned char cvOID_cryptlibPrivateKey [] = { 0x2B, 0x06, 0x01, 0x04, 0x01, 0x97, 0x55, 0x20, 0x01}; -//1.3.6.1.4.1.3029.42.11172.1 cryptlib special MPEG-of-cat OID mpeg-1 -static const unsigned char cvOID_mpeg_1 [] = { 0x2B, 0x06, 0x01, 0x04, 0x01, 0x97, 0x55, 0x2A, 0xD7, 0x24, 0x01}; -//1.3.6.1.5.5.7.1 PKIX privateExtension -static const unsigned char cvOID_privateExtension [] = { 0x2B, 0x06, 0x01, 0x05, 0x05, 0x07, 0x01}; -//1.3.6.1.5.5.7.1.1 PKIX private extension authorityInfoAccess -static const unsigned char cvOID_authorityInfoAccess [] = { 0x2B, 0x06, 0x01, 0x05, 0x05, 0x07, 0x01, 0x01}; - -//ame -//1.3.6.1.5.5.7.1.11 PKIX private extension subjectInfoAccess -static const unsigned char cvOID_subjectInfoAccess [] = { 0x2B, 0x06, 0x01, 0x05, 0x05, 0x07, 0x01, 0x0a}; - -//1.3.6.1.5.5.7.2 PKIX policyQualifierIds -static const unsigned char cvOID_policyQualifierIds [] = { 0x2B, 0x06, 0x01, 0x05, 0x05, 0x07, 0x02}; -//1.3.6.1.5.5.7.2.1 PKIX policy qualifier cps -static const unsigned char cvOID_cps [] = { 0x2B, 0x06, 0x01, 0x05, 0x05, 0x07, 0x02, 0x01}; -//1.3.6.1.5.5.7.2.2 PKIX policy qualifier unotice -static const unsigned char cvOID_unotice [] = { 0x2B, 0x06, 0x01, 0x05, 0x05, 0x07, 0x02, 0x02}; -//1.3.6.1.5.5.7.3 PKIX keyPurpose -static const unsigned char cvOID_keyPurpose [] = { 0x2B, 0x06, 0x01, 0x05, 0x05, 0x07, 0x03}; -//1.3.6.1.5.5.7.3.1 PKIX key purpose serverAuth -static const unsigned char cvOID_serverAuth [] = { 0x2B, 0x06, 0x01, 0x05, 0x05, 0x07, 0x03, 0x01}; -//1.3.6.1.5.5.7.3.2 PKIX key purpose clientAuth -static const unsigned char cvOID_clientAuth [] = { 0x2B, 0x06, 0x01, 0x05, 0x05, 0x07, 0x03, 0x02}; -//1.3.6.1.5.5.7.3.3 PKIX key purpose codeSigning -static const unsigned char cvOID_codeSigning [] = { 0x2B, 0x06, 0x01, 0x05, 0x05, 0x07, 0x03, 0x03}; -//1.3.6.1.5.5.7.3.4 PKIX key purpose emailProtection -static const unsigned char cvOID_emailProtection [] = { 0x2B, 0x06, 0x01, 0x05, 0x05, 0x07, 0x03, 0x04}; -//1.3.6.1.5.5.7.3.5 PKIX key purpose ipsecEndSystem -static const unsigned char cvOID_ipsecEndSystem [] = { 0x2B, 0x06, 0x01, 0x05, 0x05, 0x07, 0x03, 0x05}; -//1.3.6.1.5.5.7.3.6 PKIX key purpose ipsecTunnel -static const unsigned char cvOID_ipsecTunnel [] = { 0x2B, 0x06, 0x01, 0x05, 0x05, 0x07, 0x03, 0x06}; -//1.3.6.1.5.5.7.3.7 PKIX key purpose ipsecUser -static const unsigned char cvOID_ipsecUser [] = { 0x2B, 0x06, 0x01, 0x05, 0x05, 0x07, 0x03, 0x07}; -//1.3.6.1.5.5.7.3.8 PKIX key purpose timeStamping -static const unsigned char cvOID_timeStamping [] = { 0x2B, 0x06, 0x01, 0x05, 0x05, 0x07, 0x03, 0x08}; -//ame -//1.3.6.1.5.5.7.3.9 PKIX key purpose OCSPSigning -static const unsigned char cvOID_OCSPSigning [] = { 0x2B, 0x06, 0x01, 0x05, 0x05, 0x07, 0x03, 0x09}; -//1.3.6.1.5.5.7.4 PKIX cmpInformationTypes -static const unsigned char cvOID_cmpInformationTypes [] = { 0x2B, 0x06, 0x01, 0x05, 0x05, 0x07, 0x04}; -//1.3.6.1.5.5.7.4.1 PKIX CMP information caProtEncCert -static const unsigned char cvOID_caProtEncCert [] = { 0x2B, 0x06, 0x01, 0x05, 0x05, 0x07, 0x04, 0x01}; -//1.3.6.1.5.5.7.4.2 PKIX CMP information signKeyPairTypes -static const unsigned char cvOID_signKeyPairTypes [] = { 0x2B, 0x06, 0x01, 0x05, 0x05, 0x07, 0x04, 0x02}; -//1.3.6.1.5.5.7.4.3 PKIX CMP information encKeyPairTypes -static const unsigned char cvOID_encKeyPairTypes [] = { 0x2B, 0x06, 0x01, 0x05, 0x05, 0x07, 0x04, 0x03}; -//1.3.6.1.5.5.7.4.4 PKIX CMP information preferredSymmAlg -static const unsigned char cvOID_preferredSymmAlg [] = { 0x2B, 0x06, 0x01, 0x05, 0x05, 0x07, 0x04, 0x04}; -//1.3.6.1.5.5.7.4.5 PKIX CMP information caKeyUpdateInfo -static const unsigned char cvOID_caKeyUpdateInfo [] = { 0x2B, 0x06, 0x01, 0x05, 0x05, 0x07, 0x04, 0x05}; -//1.3.6.1.5.5.7.4.6 PKIX CMP information currentCRL -static const unsigned char cvOID_currentCRL [] = { 0x2B, 0x06, 0x01, 0x05, 0x05, 0x07, 0x04, 0x06}; -//1.3.6.1.5.5.7.6.3 PKIX algorithm dh-sig-hmac-sha1 -static const unsigned char cvOID_dh_sig_hmac_sha1 [] = { 0x2B, 0x06, 0x01, 0x05, 0x05, 0x07, 0x06, 0x03}; -//1.3.6.1.5.5.7.6.4 PKIX algorithm dh-pop -static const unsigned char cvOID_dh_pop [] = { 0x2B, 0x06, 0x01, 0x05, 0x05, 0x07, 0x06, 0x04}; -//1.3.6.1.5.5.7.48.1 PKIX authority info access descriptor ocsp -static const unsigned char cvOID_ocsp [] = { 0x2B, 0x06, 0x01, 0x05, 0x05, 0x07, 0x30, 0x01}; -//1.3.6.1.5.5.7.48.2 PKIX authority info access descriptor caIssuers -static const unsigned char cvOID_caIssuers [] = { 0x2B, 0x06, 0x01, 0x05, 0x05, 0x07, 0x30, 0x02}; - -//ame -//1.3.6.1.5.5.7.48.3 PKIX subject info access descriptor timeStamping -static const unsigned char cvOID_info_timeStamping [] = { 0x2B, 0x06, 0x01, 0x05, 0x05, 0x07, 0x30, 0x03}; -//1.3.6.1.5.5.7.48.5 PKIX subject info access descriptor caRepository -static const unsigned char cvOID_caRepository [] = { 0x2B, 0x06, 0x01, 0x05, 0x05, 0x07, 0x30, 0x05}; - -//1.3.6.1.5.5.8.1.1 ISAKMP HMAC algorithm HMAC-MD5 -static const unsigned char cvOID_HMAC_MD5 [] = { 0x2B, 0x06, 0x01, 0x05, 0x05, 0x08, 0x01, 0x01}; -//1.3.6.1.5.5.8.1.2 ISAKMP HMAC algorithm HMAC-SHA -static const unsigned char cvOID_HMAC_SHA [] = { 0x2B, 0x06, 0x01, 0x05, 0x05, 0x08, 0x01, 0x02}; -//1.3.6.1.5.5.8.1.3 ISAKMP HMAC algorithm HMAC-Tiger -static const unsigned char cvOID_HMAC_Tiger [] = { 0x2B, 0x06, 0x01, 0x05, 0x05, 0x08, 0x01, 0x03}; -//1.3.6.1.5.5.8.2.2 ipsec_kp_ike_intermediate -static const unsigned char cvOID_iKEIntermediate[] = { 0x2B, 0x06, 0x01, 0x05, 0x05, 0x08, 0x02, 0x02}; - -//1.3.12.2.1011.7.1 DASS algorithm decEncryptionAlgorithm -static const unsigned char cvOID_decEncryptionAlgorithm [] = { 0x2B, 0x0C, 0x02, 0x87, 0x73, 0x07, 0x01}; -//1.3.12.2.1011.7.1.2 DASS encryption algorithm decDEA -static const unsigned char cvOID_decDEA [] = { 0x2B, 0x0C, 0x02, 0x87, 0x73, 0x07, 0x01, 0x02}; -//1.3.12.2.1011.7.2 DASS algorithm decHashAlgorithm -static const unsigned char cvOID_decHashAlgorithm [] = { 0x2B, 0x0C, 0x02, 0x87, 0x73, 0x07, 0x02}; -//1.3.12.2.1011.7.2.1 DASS hash algorithm decMD2 -static const unsigned char cvOID_decMD2 [] = { 0x2B, 0x0C, 0x02, 0x87, 0x73, 0x07, 0x02, 0x01}; -//1.3.12.2.1011.7.2.2 DASS hash algorithm decMD4 -static const unsigned char cvOID_decMD4 [] = { 0x2B, 0x0C, 0x02, 0x87, 0x73, 0x07, 0x02, 0x02}; -//1.3.12.2.1011.7.3 DASS algorithm decSignatureAlgorithm -static const unsigned char cvOID_decSignatureAlgorithm [] = { 0x2B, 0x0C, 0x02, 0x87, 0x73, 0x07, 0x03}; -//1.3.12.2.1011.7.3.1 DASS signature algorithm decMD2withRSA -static const unsigned char cvOID_decMD2withRSA [] = { 0x2B, 0x0C, 0x02, 0x87, 0x73, 0x07, 0x03, 0x01}; -//1.3.12.2.1011.7.3.2 DASS signature algorithm decMD4withRSA -static const unsigned char cvOID_decMD4withRSA [] = { 0x2B, 0x0C, 0x02, 0x87, 0x73, 0x07, 0x03, 0x02}; -//1.3.12.2.1011.7.3.3 DASS signature algorithm decDEAMAC -static const unsigned char cvOID_decDEAMAC [] = { 0x2B, 0x0C, 0x02, 0x87, 0x73, 0x07, 0x03, 0x03}; -//1.3.14.2.26.5 Unsure about this OID sha -static const unsigned char cvOID_sha [] = { 0x2B, 0x0E, 0x02, 0x1A, 0x05}; -//1.3.14.3.2.1.1 X.509. Unsure about this OID rsa -static const unsigned char cvOID_rsa [] = { 0x2B, 0x0E, 0x03, 0x02, 0x01, 0x01}; -//1.3.14.3.2.2 Oddball OIW OID md4WitRSA -static const unsigned char cvOID_md4WitRSA [] = { 0x2B, 0x0E, 0x03, 0x02, 0x02}; -//1.3.14.3.2.3 Oddball OIW OID md5WithRSA -static const unsigned char cvOID_md5WithRSA [] = { 0x2B, 0x0E, 0x03, 0x02, 0x03}; -//1.3.14.3.2.4 Oddball OIW OID md4WithRSAEncryption -static const unsigned char cvOID_md4WithRSAEncryption [] = { 0x2B, 0x0E, 0x03, 0x02, 0x04}; -//1.3.14.3.2.2.1 X.509. Deprecated sqmod-N -static const unsigned char cvOID_sqmod_N [] = { 0x2B, 0x0E, 0x03, 0x02, 0x02, 0x01}; -//1.3.14.3.2.3.1 X.509. Deprecated sqmod-NwithRSA -static const unsigned char cvOID_sqmod_NwithRSA [] = { 0x2B, 0x0E, 0x03, 0x02, 0x03, 0x01}; -//1.3.14.3.2.11 ISO 9796-2, also X9.31 Part 1 rsaSignature -static const unsigned char cvOID_rsaSignature [] = { 0x2B, 0x0E, 0x03, 0x02, 0x0B}; -////1.3.14.3.2.12 OIW?, supposedly from an incomplete version of SDN.701 (doesn't match final SDN.701) dsa -//static const unsigned char cvOID_dsa [] = { 0x2B, 0x0E, 0x03, 0x02, 0x0C}; -//1.3.14.3.2.14 Oddball OIW OID using 9796-2 padding rules mdc2WithRSASignature -static const unsigned char cvOID_mdc2WithRSASignature [] = { 0x2B, 0x0E, 0x03, 0x02, 0x0E}; -//1.3.14.3.2.15 Oddball OIW OID using 9796-2 padding rules shaWithRSASignature -static const unsigned char cvOID_shaWithRSASignature [] = { 0x2B, 0x0E, 0x03, 0x02, 0x0F}; -//1.3.14.3.2.16 Oddball OIW OID. Deprecated, use a plain DH OID instead dhWithCommonModulus -static const unsigned char cvOID_dhWithCommonModulus [] = { 0x2B, 0x0E, 0x03, 0x02, 0x10}; -//1.3.14.3.2.17 Oddball OIW OID. Mode is ECB desEDE -static const unsigned char cvOID_desEDE [] = { 0x2B, 0x0E, 0x03, 0x02, 0x11}; -////1.3.14.3.2.18 Oddball OIW OID sha -//static const unsigned char cvOID_sha [] = { 0x2B, 0x0E, 0x03, 0x02, 0x12}; -//1.3.14.3.2.19 Oddball OIW OID, DES-based hash, planned for X9.31 Part 2 mdc-2 -static const unsigned char cvOID_mdc_2 [] = { 0x2B, 0x0E, 0x03, 0x02, 0x13}; -//1.3.14.3.2.20 Oddball OIW OID. Deprecated, use a plain DSA OID instead dsaCommon -static const unsigned char cvOID_dsaCommon [] = { 0x2B, 0x0E, 0x03, 0x02, 0x14}; -//1.3.14.3.2.21 Oddball OIW OID. Deprecated, use a plain dsaWithSHA OID instead dsaCommonWithSHA -static const unsigned char cvOID_dsaCommonWithSHA [] = { 0x2B, 0x0E, 0x03, 0x02, 0x15}; -//1.3.14.3.2.22 Oddball OIW OID rsaKeyTransport -static const unsigned char cvOID_rsaKeyTransport [] = { 0x2B, 0x0E, 0x03, 0x02, 0x16}; -//1.3.14.3.2.23 Oddball OIW OID keyed-hash-seal -static const unsigned char cvOID_keyed_hash_seal [] = { 0x2B, 0x0E, 0x03, 0x02, 0x17}; -//1.3.14.3.2.24 Oddball OIW OID using 9796-2 padding rules md2WithRSASignature -static const unsigned char cvOID_md2WithRSASignature [] = { 0x2B, 0x0E, 0x03, 0x02, 0x18}; -//1.3.14.3.2.25 Oddball OIW OID using 9796-2 padding rules md5WithRSASignature -static const unsigned char cvOID_md5WithRSASignature [] = { 0x2B, 0x0E, 0x03, 0x02, 0x19}; -//1.3.14.3.2.26 OIW sha1 -static const unsigned char cvOID_sha1 [] = { 0x2B, 0x0E, 0x03, 0x02, 0x1A}; -//1.3.14.3.2.27 OIW. This OID may also be assigned as ripemd-160 dsaWithSHA1 -static const unsigned char cvOID_dsaWithSHA1 [] = { 0x2B, 0x0E, 0x03, 0x02, 0x1B}; -//1.3.14.3.2.28 OIW dsaWithCommonSHA1 -static const unsigned char cvOID_dsaWithCommonSHA1 [] = { 0x2B, 0x0E, 0x03, 0x02, 0x1C}; -//1.3.14.3.2.29 Oddball OIW OID sha-1WithRSAEncryption -static const unsigned char cvOID_sha_1WithRSAEncryption [] = { 0x2B, 0x0E, 0x03, 0x02, 0x1D}; -//1.3.14.3.3.1 Oddball OIW OID simple-strong-auth-mechanism -static const unsigned char cvOID_simple_strong_auth_mechanism [] = { 0x2B, 0x0E, 0x03, 0x03, 0x01}; -//1.3.14.7.2.1.1 Unsure about this OID ElGamal -static const unsigned char cvOID_ElGamal [] = { 0x2B, 0x0E, 0x07, 0x02, 0x01, 0x01}; -//1.3.14.7.2.3.1 Unsure about this OID md2WithRSA -static const unsigned char cvOID_md2WithRSA [] = { 0x2B, 0x0E, 0x07, 0x02, 0x03, 0x01}; -//1.3.14.7.2.3.2 Unsure about this OID md2WithElGamal -static const unsigned char cvOID_md2WithElGamal [] = { 0x2B, 0x0E, 0x07, 0x02, 0x03, 0x02}; -//1.3.36.1 Teletrust document document -static const unsigned char cvOID_document [] = { 0x2B, 0x24, 0x01}; -//1.3.36.1.1 Teletrust document finalVersion -static const unsigned char cvOID_finalVersion [] = { 0x2B, 0x24, 0x01, 0x01}; -//1.3.36.1.2 Teletrust document draft -static const unsigned char cvOID_draft [] = { 0x2B, 0x24, 0x01, 0x02}; -//1.3.36.2 Teletrust sio sio -static const unsigned char cvOID_sio [] = { 0x2B, 0x24, 0x02}; -//1.3.36.2.1 Teletrust sio sedu -static const unsigned char cvOID_sedu [] = { 0x2B, 0x24, 0x02, 0x01}; -//1.3.36.3 Teletrust algorithm algorithm -static const unsigned char cvOID_algorithm_Teletrust[] = { 0x2B, 0x24, 0x03}; -//1.3.36.3.1 Teletrust algorithm encryptionAlgorithm -static const unsigned char cvOID_encryptionAlgorithm_Teletrust [] = { 0x2B, 0x24, 0x03, 0x01}; -//1.3.36.3.1.1 Teletrust encryption algorithm des -static const unsigned char cvOID_des_Teletrust [] = { 0x2B, 0x24, 0x03, 0x01, 0x01}; -//1.3.36.3.1.1.1 Teletrust encryption algorithm desECB_pad -static const unsigned char cvOID_desECB_pad [] = { 0x2B, 0x24, 0x03, 0x01, 0x01, 0x01}; -//1.3.36.3.1.1.1.1 Teletrust encryption algorithm desECB_ISOpad -static const unsigned char cvOID_desECB_ISOpad [] = { 0x2B, 0x24, 0x03, 0x01, 0x01, 0x01, 0x01}; -//1.3.36.3.1.1.2.1 Teletrust encryption algorithm desCBC_pad -static const unsigned char cvOID_desCBC_pad [] = { 0x2B, 0x24, 0x03, 0x01, 0x01, 0x02, 0x01}; -//1.3.36.3.1.1.2.1.1 Teletrust encryption algorithm desCBC_ISOpad -static const unsigned char cvOID_desCBC_ISOpad [] = { 0x2B, 0x24, 0x03, 0x01, 0x01, 0x02, 0x01, 0x01}; -//1.3.36.3.1.3 Teletrust encryption algorithm des_3 -static const unsigned char cvOID_des_3 [] = { 0x2B, 0x24, 0x03, 0x01, 0x03}; -//1.3.36.3.1.3.1.1 Teletrust encryption algorithm. EDE triple DES des_3ECB_pad -static const unsigned char cvOID_des_3ECB_pad [] = { 0x2B, 0x24, 0x03, 0x01, 0x03, 0x01, 0x01}; -//1.3.36.3.1.3.1.1.1 Teletrust encryption algorithm. EDE triple DES des_3ECB_ISOpad -static const unsigned char cvOID_des_3ECB_ISOpad [] = { 0x2B, 0x24, 0x03, 0x01, 0x03, 0x01, 0x01, 0x01}; -//1.3.36.3.1.3.2.1 Teletrust encryption algorithm. EDE triple DES des_3CBC_pad -static const unsigned char cvOID_des_3CBC_pad [] = { 0x2B, 0x24, 0x03, 0x01, 0x03, 0x02, 0x01}; -//1.3.36.3.1.3.2.1.1 Teletrust encryption algorithm. EDE triple DES des_3CBC_ISOpad -static const unsigned char cvOID_des_3CBC_ISOpad [] = { 0x2B, 0x24, 0x03, 0x01, 0x03, 0x02, 0x01, 0x01}; -//1.3.36.3.1.2 Teletrust encryption algorithm idea -static const unsigned char cvOID_idea_Teletrust [] = { 0x2B, 0x24, 0x03, 0x01, 0x02}; -//1.3.36.3.1.2.1 Teletrust encryption algorithm ideaECB -static const unsigned char cvOID_ideaECB_Teletrust [] = { 0x2B, 0x24, 0x03, 0x01, 0x02, 0x01}; -//1.3.36.3.1.2.1.1 Teletrust encryption algorithm ideaECB_pad -static const unsigned char cvOID_ideaECB_pad [] = { 0x2B, 0x24, 0x03, 0x01, 0x02, 0x01, 0x01}; -//1.3.36.3.1.2.1.1.1 Teletrust encryption algorithm ideaECB_ISOpad -static const unsigned char cvOID_ideaECB_ISOpad [] = { 0x2B, 0x24, 0x03, 0x01, 0x02, 0x01, 0x01, 0x01}; -//1.3.36.3.1.2.2 Teletrust encryption algorithm ideaCBC -static const unsigned char cvOID_ideaCBC_Teletrust [] = { 0x2B, 0x24, 0x03, 0x01, 0x02, 0x02}; -//1.3.36.3.1.2.2.1 Teletrust encryption algorithm ideaCBC_pad -static const unsigned char cvOID_ideaCBC_pad [] = { 0x2B, 0x24, 0x03, 0x01, 0x02, 0x02, 0x01}; -//1.3.36.3.1.2.2.1.1 Teletrust encryption algorithm ideaCBC_ISOpad -static const unsigned char cvOID_ideaCBC_ISOpad [] = { 0x2B, 0x24, 0x03, 0x01, 0x02, 0x02, 0x01, 0x01}; -//1.3.36.3.1.2.3 Teletrust encryption algorithm ideaOFB -static const unsigned char cvOID_ideaOFB_Teletrust [] = { 0x2B, 0x24, 0x03, 0x01, 0x02, 0x03}; -//1.3.36.3.1.2.4 Teletrust encryption algorithm ideaCFB -static const unsigned char cvOID_ideaCFB_Teletrust [] = { 0x2B, 0x24, 0x03, 0x01, 0x02, 0x04}; -//1.3.36.3.1.4 Teletrust encryption algorithm rsaEncryption -static const unsigned char cvOID_rsaEncryption_Teletrust [] = { 0x2B, 0x24, 0x03, 0x01, 0x04}; -//1.3.36.3.1.4.512.17 Teletrust encryption algorithm rsaEncryptionWithlmod512expe17 -static const unsigned char cvOID_rsaEncryptionWithlmod512expe17 [] = { 0x2B, 0x24, 0x03, 0x01, 0x04, 0x84, 0x00, 0x11}; -//1.3.36.3.1.5 Teletrust encryption algorithm bsi-1 -static const unsigned char cvOID_bsi_1 [] = { 0x2B, 0x24, 0x03, 0x01, 0x05}; -//1.3.36.3.1.5.1 Teletrust encryption algorithm bsi_1ECB_pad -static const unsigned char cvOID_bsi_1ECB_pad [] = { 0x2B, 0x24, 0x03, 0x01, 0x05, 0x01}; -//1.3.36.3.1.5.2 Teletrust encryption algorithm bsi_1CBC_pad -static const unsigned char cvOID_bsi_1CBC_pad [] = { 0x2B, 0x24, 0x03, 0x01, 0x05, 0x02}; -//1.3.36.3.1.5.2.1 Teletrust encryption algorithm bsi_1CBC_PEMpad -static const unsigned char cvOID_bsi_1CBC_PEMpad [] = { 0x2B, 0x24, 0x03, 0x01, 0x05, 0x02, 0x01}; -//1.3.36.3.2 Teletrust algorithm hashAlgorithm -static const unsigned char cvOID_hashAlgorithm [] = { 0x2B, 0x24, 0x03, 0x02}; -//1.3.36.3.2.1 Teletrust hash algorithm ripemd160 -static const unsigned char cvOID_ripemd160_Teletrust [] = { 0x2B, 0x24, 0x03, 0x02, 0x01}; -//1.3.36.3.2.2 Teletrust hash algorithm ripemd128 -static const unsigned char cvOID_ripemd128_Teletrust [] = { 0x2B, 0x24, 0x03, 0x02, 0x02}; -//1.3.36.3.2.3 Teletrust hash algorithm ripemd256 -static const unsigned char cvOID_ripemd256 [] = { 0x2B, 0x24, 0x03, 0x02, 0x03}; -//1.3.36.3.2.4 Teletrust hash algorithm mdc2singleLength -static const unsigned char cvOID_mdc2singleLength [] = { 0x2B, 0x24, 0x03, 0x02, 0x04}; -//1.3.36.3.2.5 Teletrust hash algorithm mdc2doubleLength -static const unsigned char cvOID_mdc2doubleLength [] = { 0x2B, 0x24, 0x03, 0x02, 0x05}; -//1.3.36.3.3 Teletrust algorithm signatureAlgorithm -static const unsigned char cvOID_signatureAlgorithm [] = { 0x2B, 0x24, 0x03, 0x03}; -//1.3.36.3.3.1 Teletrust signature algorithm rsaSignature -static const unsigned char cvOID_rsaSignature_Teletrust [] = { 0x2B, 0x24, 0x03, 0x03, 0x01}; -//1.3.36.3.3.1.1 Teletrust signature algorithm rsaSignatureWithsha1 -static const unsigned char cvOID_rsaSignatureWithsha1 [] = { 0x2B, 0x24, 0x03, 0x03, 0x01, 0x01}; -//1.3.36.3.3.1.1.512.2 Teletrust signature algorithm rsaSignatureWithsha1_l512_l2 -static const unsigned char cvOID_rsaSignatureWithsha1_l512_l2 [] = { 0x2B, 0x24, 0x03, 0x03, 0x01, 0x01, 0x84, 0x00, 0x02}; -//1.3.36.3.3.1.1.640.2 Teletrust signature algorithm rsaSignatureWithsha1_l640_l2 -static const unsigned char cvOID_rsaSignatureWithsha1_l640_l2 [] = { 0x2B, 0x24, 0x03, 0x03, 0x01, 0x01, 0x85, 0x00, 0x02}; -//1.3.36.3.3.1.1.768.2 Teletrust signature algorithm rsaSignatureWithsha1_l768_l2 -static const unsigned char cvOID_rsaSignatureWithsha1_l768_l2 [] = { 0x2B, 0x24, 0x03, 0x03, 0x01, 0x01, 0x86, 0x00, 0x02}; -//1.3.36.3.3.1.1.892.2 Teletrust signature algorithm rsaSignatureWithsha1_l896_l2 -static const unsigned char cvOID_rsaSignatureWithsha1_l896_l2 [] = { 0x2B, 0x24, 0x03, 0x03, 0x01, 0x01, 0x87, 0x00, 0x02}; -//1.3.36.3.3.1.1.1024.2 Teletrust signature algorithm rsaSignatureWithsha1_l1024_l2 -static const unsigned char cvOID_rsaSignatureWithsha1_l1024_l2 [] = { 0x2B, 0x24, 0x03, 0x03, 0x01, 0x01, 0x88, 0x00, 0x02}; -//1.3.36.3.3.1.1.512.3 Teletrust signature algorithm rsaSignatureWithsha1_l512_l3 -static const unsigned char cvOID_rsaSignatureWithsha1_l512_l3 [] = { 0x2B, 0x24, 0x03, 0x03, 0x01, 0x01, 0x84, 0x00, 0x03}; -//1.3.36.3.3.1.1.640.3 Teletrust signature algorithm rsaSignatureWithsha1_l640_l3 -static const unsigned char cvOID_rsaSignatureWithsha1_l640_l3 [] = { 0x2B, 0x24, 0x03, 0x03, 0x01, 0x01, 0x85, 0x00, 0x03}; -//1.3.36.3.3.1.1.768.3 Teletrust signature algorithm rsaSignatureWithsha1_l768_l3 -static const unsigned char cvOID_rsaSignatureWithsha1_l768_l3 [] = { 0x2B, 0x24, 0x03, 0x03, 0x01, 0x01, 0x86, 0x00, 0x03}; -//1.3.36.3.3.1.1.896.3 Teletrust signature algorithm rsaSignatureWithsha1_l896_l3 -static const unsigned char cvOID_rsaSignatureWithsha1_l896_l3 [] = { 0x2B, 0x24, 0x03, 0x03, 0x01, 0x01, 0x87, 0x00, 0x03}; -//1.3.36.3.3.1.1.1024.3 Teletrust signature algorithm rsaSignatureWithsha1_l1024_l3 -static const unsigned char cvOID_rsaSignatureWithsha1_l1024_l3 [] = { 0x2B, 0x24, 0x03, 0x03, 0x01, 0x01, 0x88, 0x00, 0x03}; -//1.3.36.3.3.1.1.512.5 Teletrust signature algorithm rsaSignatureWithsha1_l512_l5 -static const unsigned char cvOID_rsaSignatureWithsha1_l512_l5 [] = { 0x2B, 0x24, 0x03, 0x03, 0x01, 0x01, 0x84, 0x00, 0x05}; -//1.3.36.3.3.1.1.640.5 Teletrust signature algorithm rsaSignatureWithsha1_l640_l5 -static const unsigned char cvOID_rsaSignatureWithsha1_l640_l5 [] = { 0x2B, 0x24, 0x03, 0x03, 0x01, 0x01, 0x85, 0x00, 0x05}; -//1.3.36.3.3.1.1.768.5 Teletrust signature algorithm rsaSignatureWithsha1_l768_l5 -static const unsigned char cvOID_rsaSignatureWithsha1_l768_l5 [] = { 0x2B, 0x24, 0x03, 0x03, 0x01, 0x01, 0x86, 0x00, 0x05}; -//1.3.36.3.3.1.1.896.5 Teletrust signature algorithm rsaSignatureWithsha1_l896_l5 -static const unsigned char cvOID_rsaSignatureWithsha1_l896_l5 [] = { 0x2B, 0x24, 0x03, 0x03, 0x01, 0x01, 0x87, 0x00, 0x05}; -//1.3.36.3.3.1.1.1024.5 Teletrust signature algorithm rsaSignatureWithsha1_l1024_l5 -static const unsigned char cvOID_rsaSignatureWithsha1_l1024_l5 [] = { 0x2B, 0x24, 0x03, 0x03, 0x01, 0x01, 0x88, 0x00, 0x05}; -//1.3.36.3.3.1.1.512.9 Teletrust signature algorithm rsaSignatureWithsha1_l512_l9 -static const unsigned char cvOID_rsaSignatureWithsha1_l512_l9 [] = { 0x2B, 0x24, 0x03, 0x03, 0x01, 0x01, 0x84, 0x00, 0x09}; -//1.3.36.3.3.1.1.640.9 Teletrust signature algorithm rsaSignatureWithsha1_l640_l9 -static const unsigned char cvOID_rsaSignatureWithsha1_l640_l9 [] = { 0x2B, 0x24, 0x03, 0x03, 0x01, 0x01, 0x85, 0x00, 0x09}; -//1.3.36.3.3.1.1.768.9 Teletrust signature algorithm rsaSignatureWithsha1_l768_l9 -static const unsigned char cvOID_rsaSignatureWithsha1_l768_l9 [] = { 0x2B, 0x24, 0x03, 0x03, 0x01, 0x01, 0x86, 0x00, 0x09}; -//1.3.36.3.3.1.1.896.9 Teletrust signature algorithm rsaSignatureWithsha1_l896_l9 -static const unsigned char cvOID_rsaSignatureWithsha1_l896_l9 [] = { 0x2B, 0x24, 0x03, 0x03, 0x01, 0x01, 0x87, 0x00, 0x09}; -//1.3.36.3.3.1.1.1024.9 Teletrust signature algorithm rsaSignatureWithsha1_l1024_l9 -static const unsigned char cvOID_rsaSignatureWithsha1_l1024_l9 [] = { 0x2B, 0x24, 0x03, 0x03, 0x01, 0x01, 0x88, 0x00, 0x09}; -//1.3.36.3.3.1.1.512.11 Teletrust signature algorithm rsaSignatureWithsha1_l512_l11 -static const unsigned char cvOID_rsaSignatureWithsha1_l512_l11 [] = { 0x2B, 0x24, 0x03, 0x03, 0x01, 0x01, 0x84, 0x00, 0x11}; -//1.3.36.3.3.1.1.640.11 Teletrust signature algorithm rsaSignatureWithsha1_l640_l11 -static const unsigned char cvOID_rsaSignatureWithsha1_l640_l11 [] = { 0x2B, 0x24, 0x03, 0x03, 0x01, 0x01, 0x85, 0x00, 0x11}; -//1.3.36.3.3.1.1.768.11 Teletrust signature algorithm rsaSignatureWithsha1_l768_l11 -static const unsigned char cvOID_rsaSignatureWithsha1_l768_l11 [] = { 0x2B, 0x24, 0x03, 0x03, 0x01, 0x01, 0x86, 0x00, 0x11}; -//1.3.36.3.3.1.1.896.11 Teletrust signature algorithm rsaSignatureWithsha1_l896_l11 -static const unsigned char cvOID_rsaSignatureWithsha1_l896_l11 [] = { 0x2B, 0x24, 0x03, 0x03, 0x01, 0x01, 0x87, 0x00, 0x11}; -//1.3.36.3.3.1.1.1024.11 Teletrust signature algorithm rsaSignatureWithsha1_l1024_l11 -static const unsigned char cvOID_rsaSignatureWithsha1_l1024_l11 [] = { 0x2B, 0x24, 0x03, 0x03, 0x01, 0x01, 0x88, 0x00, 0x11}; -//1.3.36.3.3.1.2 Teletrust signature algorithm rsaSignatureWithripemd160 -static const unsigned char cvOID_rsaSignatureWithripemd160 [] = { 0x2B, 0x24, 0x03, 0x03, 0x01, 0x02}; -//1.3.36.3.3.1.2.512.2 Teletrust signature algorithm rsaSignatureWithripemd160_l512_l2 -static const unsigned char cvOID_rsaSignatureWithripemd160_l512_l2 [] = { 0x2B, 0x24, 0x03, 0x03, 0x01, 0x02, 0x84, 0x00, 0x02}; -//1.3.36.3.3.1.2.640.2 Teletrust signature algorithm rsaSignatureWithripemd160_l640_l2 -static const unsigned char cvOID_rsaSignatureWithripemd160_l640_l2 [] = { 0x2B, 0x24, 0x03, 0x03, 0x01, 0x02, 0x85, 0x00, 0x02}; -//1.3.36.3.3.1.2.768.2 Teletrust signature algorithm rsaSignatureWithripemd160_l768_l2 -static const unsigned char cvOID_rsaSignatureWithripemd160_l768_l2 [] = { 0x2B, 0x24, 0x03, 0x03, 0x01, 0x02, 0x86, 0x00, 0x02}; -//1.3.36.3.3.1.2.892.2 Teletrust signature algorithm rsaSignatureWithripemd160_l896_l2 -static const unsigned char cvOID_rsaSignatureWithripemd160_l896_l2 [] = { 0x2B, 0x24, 0x03, 0x03, 0x01, 0x02, 0x87, 0x00, 0x02}; -//1.3.36.3.3.1.2.1024.2 Teletrust signature algorithm rsaSignatureWithripemd160_l1024_l2 -static const unsigned char cvOID_rsaSignatureWithripemd160_l1024_l2 [] = { 0x2B, 0x24, 0x03, 0x03, 0x01, 0x02, 0x88, 0x00, 0x02}; -//1.3.36.3.3.1.2.512.3 Teletrust signature algorithm rsaSignatureWithripemd160_l512_l3 -static const unsigned char cvOID_rsaSignatureWithripemd160_l512_l3 [] = { 0x2B, 0x24, 0x03, 0x03, 0x01, 0x02, 0x84, 0x00, 0x03}; -//1.3.36.3.3.1.2.640.3 Teletrust signature algorithm rsaSignatureWithripemd160_l640_l3 -static const unsigned char cvOID_rsaSignatureWithripemd160_l640_l3 [] = { 0x2B, 0x24, 0x03, 0x03, 0x01, 0x02, 0x85, 0x00, 0x03}; -//1.3.36.3.3.1.2.768.3 Teletrust signature algorithm rsaSignatureWithripemd160_l768_l3 -static const unsigned char cvOID_rsaSignatureWithripemd160_l768_l3 [] = { 0x2B, 0x24, 0x03, 0x03, 0x01, 0x02, 0x86, 0x00, 0x03}; -//1.3.36.3.3.1.2.896.3 Teletrust signature algorithm rsaSignatureWithripemd160_l896_l3 -static const unsigned char cvOID_rsaSignatureWithripemd160_l896_l3 [] = { 0x2B, 0x24, 0x03, 0x03, 0x01, 0x02, 0x87, 0x00, 0x03}; -//1.3.36.3.3.1.2.1024.3 Teletrust signature algorithm rsaSignatureWithripemd160_l1024_l3 -static const unsigned char cvOID_rsaSignatureWithripemd160_l1024_l3 [] = { 0x2B, 0x24, 0x03, 0x03, 0x01, 0x02, 0x88, 0x00, 0x03}; -//1.3.36.3.3.1.2.512.5 Teletrust signature algorithm rsaSignatureWithripemd160_l512_l5 -static const unsigned char cvOID_rsaSignatureWithripemd160_l512_l5 [] = { 0x2B, 0x24, 0x03, 0x03, 0x01, 0x02, 0x84, 0x00, 0x05}; -//1.3.36.3.3.1.2.640.5 Teletrust signature algorithm rsaSignatureWithripemd160_l640_l5 -static const unsigned char cvOID_rsaSignatureWithripemd160_l640_l5 [] = { 0x2B, 0x24, 0x03, 0x03, 0x01, 0x02, 0x85, 0x00, 0x05}; -//1.3.36.3.3.1.2.768.5 Teletrust signature algorithm rsaSignatureWithripemd160_l768_l5 -static const unsigned char cvOID_rsaSignatureWithripemd160_l768_l5 [] = { 0x2B, 0x24, 0x03, 0x03, 0x01, 0x02, 0x86, 0x00, 0x05}; -//1.3.36.3.3.1.2.896.5 Teletrust signature algorithm rsaSignatureWithripemd160_l896_l5 -static const unsigned char cvOID_rsaSignatureWithripemd160_l896_l5 [] = { 0x2B, 0x24, 0x03, 0x03, 0x01, 0x02, 0x87, 0x00, 0x05}; -//1.3.36.3.3.1.2.1024.5 Teletrust signature algorithm rsaSignatureWithripemd160_l1024_l5 -static const unsigned char cvOID_rsaSignatureWithripemd160_l1024_l5 [] = { 0x2B, 0x24, 0x03, 0x03, 0x01, 0x02, 0x88, 0x00, 0x05}; -//1.3.36.3.3.1.2.512.9 Teletrust signature algorithm rsaSignatureWithripemd160_l512_l9 -static const unsigned char cvOID_rsaSignatureWithripemd160_l512_l9 [] = { 0x2B, 0x24, 0x03, 0x03, 0x01, 0x02, 0x84, 0x00, 0x09}; -//1.3.36.3.3.1.2.640.9 Teletrust signature algorithm rsaSignatureWithripemd160_l640_l9 -static const unsigned char cvOID_rsaSignatureWithripemd160_l640_l9 [] = { 0x2B, 0x24, 0x03, 0x03, 0x01, 0x02, 0x85, 0x00, 0x09}; -//1.3.36.3.3.1.2.768.9 Teletrust signature algorithm rsaSignatureWithripemd160_l768_l9 -static const unsigned char cvOID_rsaSignatureWithripemd160_l768_l9 [] = { 0x2B, 0x24, 0x03, 0x03, 0x01, 0x02, 0x86, 0x00, 0x09}; -//1.3.36.3.3.1.2.896.9 Teletrust signature algorithm rsaSignatureWithripemd160_l896_l9 -static const unsigned char cvOID_rsaSignatureWithripemd160_l896_l9 [] = { 0x2B, 0x24, 0x03, 0x03, 0x01, 0x02, 0x87, 0x00, 0x09}; -//1.3.36.3.3.1.2.1024.9 Teletrust signature algorithm rsaSignatureWithripemd160_l1024_l9 -static const unsigned char cvOID_rsaSignatureWithripemd160_l1024_l9 [] = { 0x2B, 0x24, 0x03, 0x03, 0x01, 0x02, 0x88, 0x00, 0x09}; -//1.3.36.3.3.1.2.512.11 Teletrust signature algorithm rsaSignatureWithripemd160_l512_l11 -static const unsigned char cvOID_rsaSignatureWithripemd160_l512_l11 [] = { 0x2B, 0x24, 0x03, 0x03, 0x01, 0x02, 0x84, 0x00, 0x11}; -//1.3.36.3.3.1.2.640.11 Teletrust signature algorithm rsaSignatureWithripemd160_l640_l11 -static const unsigned char cvOID_rsaSignatureWithripemd160_l640_l11 [] = { 0x2B, 0x24, 0x03, 0x03, 0x01, 0x02, 0x85, 0x00, 0x11}; -//1.3.36.3.3.1.2.768.11 Teletrust signature algorithm rsaSignatureWithripemd160_l768_l11 -static const unsigned char cvOID_rsaSignatureWithripemd160_l768_l11 [] = { 0x2B, 0x24, 0x03, 0x03, 0x01, 0x02, 0x86, 0x00, 0x11}; -//1.3.36.3.3.1.2.896.11 Teletrust signature algorithm rsaSignatureWithripemd160_l896_l11 -static const unsigned char cvOID_rsaSignatureWithripemd160_l896_l11 [] = { 0x2B, 0x24, 0x03, 0x03, 0x01, 0x02, 0x87, 0x00, 0x11}; -//1.3.36.3.3.1.2.1024.11 Teletrust signature algorithm rsaSignatureWithripemd160_l1024_l11 -static const unsigned char cvOID_rsaSignatureWithripemd160_l1024_l11 [] = { 0x2B, 0x24, 0x03, 0x03, 0x01, 0x02, 0x88, 0x00, 0x11}; -//1.3.36.3.3.1.3 Teletrust signature algorithm rsaSignatureWithrimpemd128 -static const unsigned char cvOID_rsaSignatureWithrimpemd128 [] = { 0x2B, 0x24, 0x03, 0x03, 0x01, 0x03}; -//1.3.36.3.3.1.4 Teletrust signature algorithm rsaSignatureWithrimpemd256 -static const unsigned char cvOID_rsaSignatureWithrimpemd256 [] = { 0x2B, 0x24, 0x03, 0x03, 0x01, 0x04}; -//1.3.36.3.3.2 Teletrust signature algorithm ecsieSign -static const unsigned char cvOID_ecsieSign [] = { 0x2B, 0x24, 0x03, 0x03, 0x02}; -//1.3.36.3.3.2.1 Teletrust signature algorithm ecsieSignWithsha1 -static const unsigned char cvOID_ecsieSignWithsha1 [] = { 0x2B, 0x24, 0x03, 0x03, 0x02, 0x01}; -//1.3.36.3.3.2.2 Teletrust signature algorithm ecsieSignWithripemd160 -static const unsigned char cvOID_ecsieSignWithripemd160 [] = { 0x2B, 0x24, 0x03, 0x03, 0x02, 0x02}; -//1.3.36.3.3.2.3 Teletrust signature algorithm ecsieSignWithmd2 -static const unsigned char cvOID_ecsieSignWithmd2 [] = { 0x2B, 0x24, 0x03, 0x03, 0x02, 0x03}; -//1.3.36.3.3.2.4 Teletrust signature algorithm ecsieSignWithmd5 -static const unsigned char cvOID_ecsieSignWithmd5 [] = { 0x2B, 0x24, 0x03, 0x03, 0x02, 0x04}; -//1.3.36.3.4 Teletrust algorithm signatureScheme -static const unsigned char cvOID_signatureScheme [] = { 0x2B, 0x24, 0x03, 0x04}; -//1.3.36.3.4.1 Teletrust signature scheme sigS_ISO9796-1 -static const unsigned char cvOID_sigS_ISO9796_1 [] = { 0x2B, 0x24, 0x03, 0x04, 0x01}; -//1.3.36.3.4.2 Teletrust signature scheme sigS_ISO9796-2 -static const unsigned char cvOID_sigS_ISO9796_2 [] = { 0x2B, 0x24, 0x03, 0x04, 0x02}; -//1.3.36.3.4.2.1 Teletrust signature scheme. Unsure what this is supposed to be sigS_ISO9796-2Withred -static const unsigned char cvOID_sigS_ISO9796_2Withred [] = { 0x2B, 0x24, 0x03, 0x04, 0x02, 0x01}; -//1.3.36.3.4.2.2 Teletrust signature scheme. Unsure what this is supposed to be sigS_ISO9796-2Withrsa -static const unsigned char cvOID_sigS_ISO9796_2Withrsa [] = { 0x2B, 0x24, 0x03, 0x04, 0x02, 0x02}; -//1.3.36.3.4.2.3 Teletrust signature scheme. 9796-2 with random number in padding field sigS_ISO9796-2Withrnd -static const unsigned char cvOID_sigS_ISO9796_2Withrnd [] = { 0x2B, 0x24, 0x03, 0x04, 0x02, 0x03}; -//1.3.36.4 Teletrust attribute attribute -static const unsigned char cvOID_attribute_Teletrust [] = { 0x2B, 0x24, 0x04}; -//1.3.36.5 Teletrust policy policy -static const unsigned char cvOID_policy [] = { 0x2B, 0x24, 0x05}; -//1.3.36.6 Teletrust API api -static const unsigned char cvOID_api [] = { 0x2B, 0x24, 0x06}; -//1.3.36.6.1 Teletrust API manufacturer-specific_api -static const unsigned char cvOID_manufacturer_specific_api [] = { 0x2B, 0x24, 0x06, 0x01}; -//1.3.36.6.1.1 Teletrust API utimaco-api -static const unsigned char cvOID_utimaco_api [] = { 0x2B, 0x24, 0x06, 0x01, 0x01}; -//1.3.36.6.2 Teletrust API functionality-specific_api -static const unsigned char cvOID_functionality_specific_api [] = { 0x2B, 0x24, 0x06, 0x02}; -//1.3.36.7 Teletrust key management keymgmnt -static const unsigned char cvOID_keymgmnt [] = { 0x2B, 0x24, 0x07}; -//1.3.36.7.1 Teletrust key management keyagree -static const unsigned char cvOID_keyagree [] = { 0x2B, 0x24, 0x07, 0x01}; -//1.3.36.7.1.1 Teletrust key management bsiPKE -static const unsigned char cvOID_bsiPKE [] = { 0x2B, 0x24, 0x07, 0x01, 0x01}; -//1.3.36.7.2 Teletrust key management keytrans -static const unsigned char cvOID_keytrans [] = { 0x2B, 0x24, 0x07, 0x02}; -//1.3.36.7.2.1 Teletrust key management. 9796-2 with key stored in hash field encISO9796-2Withrsa -static const unsigned char cvOID_encISO9796_2Withrsa [] = { 0x2B, 0x24, 0x07, 0x02, 0x01}; -//1.3.36.8.1.1 Teletrust policy sigiSigConform -static const unsigned char cvOID_sigiSigConform [] = { 0x2B, 0x24, 0x08, 0x01, 0x01}; -//1.3.36.8.2.1 Teletrust extended key usage directoryService -static const unsigned char cvOID_directoryService [] = { 0x2B, 0x24, 0x08, 0x02, 0x01}; -//1.3.36.8.3.1 Teletrust attribute dateOfCertGen -static const unsigned char cvOID_dateOfCertGen [] = { 0x2B, 0x24, 0x08, 0x03, 0x01}; -//1.3.36.8.3.2 Teletrust attribute procuration -static const unsigned char cvOID_procuration [] = { 0x2B, 0x24, 0x08, 0x03, 0x02}; -//1.3.36.8.3.3 Teletrust attribute admission -static const unsigned char cvOID_admission [] = { 0x2B, 0x24, 0x08, 0x03, 0x03}; -//1.3.36.8.3.4 Teletrust attribute monetaryLimit -static const unsigned char cvOID_monetaryLimit [] = { 0x2B, 0x24, 0x08, 0x03, 0x04}; -//1.3.36.8.3.5 Teletrust attribute declarationOfMajority -static const unsigned char cvOID_declarationOfMajority [] = { 0x2B, 0x24, 0x08, 0x03, 0x05}; -//1.3.36.8.3.6 Teletrust attribute integratedCircuitCardSerialNumber -static const unsigned char cvOID_integratedCircuitCardSerialNumber [] = { 0x2B, 0x24, 0x08, 0x03, 0x06}; -//1.3.36.8.3.7 Teletrust attribute pKReference -static const unsigned char cvOID_pKReference [] = { 0x2B, 0x24, 0x08, 0x03, 0x07}; -//1.3.36.8.3.8 Teletrust attribute restriction -static const unsigned char cvOID_restriction_1 [] = { 0x2B, 0x24, 0x08, 0x03, 0x08}; -//1.3.36.8.3.9 Teletrust attribute retrieveIfAllowed -static const unsigned char cvOID_retrieveIfAllowed [] = { 0x2B, 0x24, 0x08, 0x03, 0x09}; -//1.3.36.8.3.10 Teletrust attribute requestedCertificate -static const unsigned char cvOID_requestedCertificate [] = { 0x2B, 0x24, 0x08, 0x03, 0x0A}; -//1.3.36.8.3.11 Teletrust attribute namingAuthorities -static const unsigned char cvOID_namingAuthorities [] = { 0x2B, 0x24, 0x08, 0x03, 0x0B}; -//1.3.36.8.3.12 Teletrust attribute certInDirSince -static const unsigned char cvOID_certInDirSince [] = { 0x2B, 0x24, 0x08, 0x03, 0x0C}; -//1.3.36.8.3.13 Teletrust attribute certHash -static const unsigned char cvOID_certHash [] = { 0x2B, 0x24, 0x08, 0x03, 0x0D}; -//1.3.36.8.4.1 Teletrust OtherName attribute personalData -static const unsigned char cvOID_personalData [] = { 0x2B, 0x24, 0x08, 0x04, 0x01}; -//1.3.36.8.4.8 Teletrust attribute certificate attribute restriction -static const unsigned char cvOID_restriction_2 [] = { 0x2B, 0x24, 0x08, 0x04, 0x08}; -//1.3.36.8.5.1.1.1 Teletrust signature algorithm rsaIndicateSHA1 -static const unsigned char cvOID_rsaIndicateSHA1 [] = { 0x2B, 0x24, 0x08, 0x05, 0x01, 0x01, 0x01}; -//1.3.36.8.5.1.1.2 Teletrust signature algorithm rsaIndicateRIPEMD160 -static const unsigned char cvOID_rsaIndicateRIPEMD160 [] = { 0x2B, 0x24, 0x08, 0x05, 0x01, 0x01, 0x02}; -//1.3.36.8.5.1.1.3 Teletrust signature algorithm rsaWithSHA1 -static const unsigned char cvOID_rsaWithSHA1 [] = { 0x2B, 0x24, 0x08, 0x05, 0x01, 0x01, 0x03}; -//1.3.36.8.5.1.1.4 Teletrust signature algorithm rsaWithRIPEMD160 -static const unsigned char cvOID_rsaWithRIPEMD160 [] = { 0x2B, 0x24, 0x08, 0x05, 0x01, 0x01, 0x04}; -//1.3.36.8.5.1.2.1 Teletrust signature algorithm dsaExtended -static const unsigned char cvOID_dsaExtended [] = { 0x2B, 0x24, 0x08, 0x05, 0x01, 0x02, 0x01}; -//1.3.36.8.5.1.2.2 Teletrust signature algorithm dsaWithRIPEMD160 -static const unsigned char cvOID_dsaWithRIPEMD160 [] = { 0x2B, 0x24, 0x08, 0x05, 0x01, 0x02, 0x02}; -//1.3.36.8.6.1 Teletrust signature attributes cert -static const unsigned char cvOID_cert [] = { 0x2B, 0x24, 0x08, 0x06, 0x01}; -//1.3.36.8.6.2 Teletrust signature attributes certRef -static const unsigned char cvOID_certRef [] = { 0x2B, 0x24, 0x08, 0x06, 0x02}; -//1.3.36.8.6.3 Teletrust signature attributes attrCert -static const unsigned char cvOID_attrCert [] = { 0x2B, 0x24, 0x08, 0x06, 0x03}; -//1.3.36.8.6.4 Teletrust signature attributes attrRef -static const unsigned char cvOID_attrRef [] = { 0x2B, 0x24, 0x08, 0x06, 0x04}; -//1.3.36.8.6.5 Teletrust signature attributes fileName -static const unsigned char cvOID_fileName [] = { 0x2B, 0x24, 0x08, 0x06, 0x05}; -//1.3.36.8.6.6 Teletrust signature attributes storageTime -static const unsigned char cvOID_storageTime [] = { 0x2B, 0x24, 0x08, 0x06, 0x06}; -//1.3.36.8.6.7 Teletrust signature attributes fileSize -static const unsigned char cvOID_fileSize [] = { 0x2B, 0x24, 0x08, 0x06, 0x07}; -//1.3.36.8.6.8 Teletrust signature attributes location -static const unsigned char cvOID_location [] = { 0x2B, 0x24, 0x08, 0x06, 0x08}; -//1.3.36.8.6.9 Teletrust signature attributes sigNumber -static const unsigned char cvOID_sigNumber [] = { 0x2B, 0x24, 0x08, 0x06, 0x09}; -//1.3.36.8.6.10 Teletrust signature attributes autoGen -static const unsigned char cvOID_autoGen [] = { 0x2B, 0x24, 0x08, 0x06, 0x0A}; -//1.3.36.8.7.1.1 Teletrust presentation types ptAdobeILL -static const unsigned char cvOID_ptAdobeILL [] = { 0x2B, 0x24, 0x08, 0x07, 0x01, 0x01}; -//1.3.36.8.7.1.2 Teletrust presentation types ptAmiPro -static const unsigned char cvOID_ptAmiPro [] = { 0x2B, 0x24, 0x08, 0x07, 0x01, 0x02}; -//1.3.36.8.7.1.3 Teletrust presentation types ptAutoCAD -static const unsigned char cvOID_ptAutoCAD [] = { 0x2B, 0x24, 0x08, 0x07, 0x01, 0x03}; -//1.3.36.8.7.1.4 Teletrust presentation types ptBinary -static const unsigned char cvOID_ptBinary [] = { 0x2B, 0x24, 0x08, 0x07, 0x01, 0x04}; -//1.3.36.8.7.1.5 Teletrust presentation types ptBMP -static const unsigned char cvOID_ptBMP [] = { 0x2B, 0x24, 0x08, 0x07, 0x01, 0x05}; -//1.3.36.8.7.1.6 Teletrust presentation types ptCGM -static const unsigned char cvOID_ptCGM [] = { 0x2B, 0x24, 0x08, 0x07, 0x01, 0x06}; -//1.3.36.8.7.1.7 Teletrust presentation types ptCorelCRT -static const unsigned char cvOID_ptCorelCRT [] = { 0x2B, 0x24, 0x08, 0x07, 0x01, 0x07}; -//1.3.36.8.7.1.8 Teletrust presentation types ptCorelDRW -static const unsigned char cvOID_ptCorelDRW [] = { 0x2B, 0x24, 0x08, 0x07, 0x01, 0x08}; -//1.3.36.8.7.1.9 Teletrust presentation types ptCorelEXC -static const unsigned char cvOID_ptCorelEXC [] = { 0x2B, 0x24, 0x08, 0x07, 0x01, 0x09}; -//1.3.36.8.7.1.10 Teletrust presentation types ptCorelPHT -static const unsigned char cvOID_ptCorelPHT [] = { 0x2B, 0x24, 0x08, 0x07, 0x01, 0x0A}; -//1.3.36.8.7.1.11 Teletrust presentation types ptDraw -static const unsigned char cvOID_ptDraw [] = { 0x2B, 0x24, 0x08, 0x07, 0x01, 0x0B}; -//1.3.36.8.7.1.12 Teletrust presentation types ptDVI -static const unsigned char cvOID_ptDVI [] = { 0x2B, 0x24, 0x08, 0x07, 0x01, 0x0C}; -//1.3.36.8.7.1.13 Teletrust presentation types ptEPS -static const unsigned char cvOID_ptEPS [] = { 0x2B, 0x24, 0x08, 0x07, 0x01, 0x0D}; -//1.3.36.8.7.1.14 Teletrust presentation types ptExcel -static const unsigned char cvOID_ptExcel [] = { 0x2B, 0x24, 0x08, 0x07, 0x01, 0x0E}; -//1.3.36.8.7.1.15 Teletrust presentation types ptGEM -static const unsigned char cvOID_ptGEM [] = { 0x2B, 0x24, 0x08, 0x07, 0x01, 0x0F}; -//1.3.36.8.7.1.16 Teletrust presentation types ptGIF -static const unsigned char cvOID_ptGIF [] = { 0x2B, 0x24, 0x08, 0x07, 0x01, 0x10}; -//1.3.36.8.7.1.17 Teletrust presentation types ptHPGL -static const unsigned char cvOID_ptHPGL [] = { 0x2B, 0x24, 0x08, 0x07, 0x01, 0x11}; -//1.3.36.8.7.1.18 Teletrust presentation types ptJPEG -static const unsigned char cvOID_ptJPEG [] = { 0x2B, 0x24, 0x08, 0x07, 0x01, 0x12}; -//1.3.36.8.7.1.19 Teletrust presentation types ptKodak -static const unsigned char cvOID_ptKodak [] = { 0x2B, 0x24, 0x08, 0x07, 0x01, 0x13}; -//1.3.36.8.7.1.20 Teletrust presentation types ptLaTeX -static const unsigned char cvOID_ptLaTeX [] = { 0x2B, 0x24, 0x08, 0x07, 0x01, 0x14}; -//1.3.36.8.7.1.21 Teletrust presentation types ptLotus -static const unsigned char cvOID_ptLotus [] = { 0x2B, 0x24, 0x08, 0x07, 0x01, 0x15}; -//1.3.36.8.7.1.22 Teletrust presentation types ptLotusPIC -static const unsigned char cvOID_ptLotusPIC [] = { 0x2B, 0x24, 0x08, 0x07, 0x01, 0x16}; -//1.3.36.8.7.1.23 Teletrust presentation types ptMacPICT -static const unsigned char cvOID_ptMacPICT [] = { 0x2B, 0x24, 0x08, 0x07, 0x01, 0x17}; -//1.3.36.8.7.1.24 Teletrust presentation types ptMacWord -static const unsigned char cvOID_ptMacWord [] = { 0x2B, 0x24, 0x08, 0x07, 0x01, 0x18}; -//1.3.36.8.7.1.25 Teletrust presentation types ptMSWfD -static const unsigned char cvOID_ptMSWfD [] = { 0x2B, 0x24, 0x08, 0x07, 0x01, 0x19}; -//1.3.36.8.7.1.26 Teletrust presentation types ptMSWord -static const unsigned char cvOID_ptMSWord [] = { 0x2B, 0x24, 0x08, 0x07, 0x01, 0x1A}; -//1.3.36.8.7.1.27 Teletrust presentation types ptMSWord2 -static const unsigned char cvOID_ptMSWord2 [] = { 0x2B, 0x24, 0x08, 0x07, 0x01, 0x1B}; -//1.3.36.8.7.1.28 Teletrust presentation types ptMSWord6 -static const unsigned char cvOID_ptMSWord6 [] = { 0x2B, 0x24, 0x08, 0x07, 0x01, 0x1C}; -//1.3.36.8.7.1.29 Teletrust presentation types ptMSWord8 -static const unsigned char cvOID_ptMSWord8 [] = { 0x2B, 0x24, 0x08, 0x07, 0x01, 0x1D}; -//1.3.36.8.7.1.30 Teletrust presentation types ptPDF -static const unsigned char cvOID_ptPDF [] = { 0x2B, 0x24, 0x08, 0x07, 0x01, 0x1E}; -//1.3.36.8.7.1.31 Teletrust presentation types ptPIF -static const unsigned char cvOID_ptPIF [] = { 0x2B, 0x24, 0x08, 0x07, 0x01, 0x1F}; -//1.3.36.8.7.1.32 Teletrust presentation types ptPostscript -static const unsigned char cvOID_ptPostscript [] = { 0x2B, 0x24, 0x08, 0x07, 0x01, 0x20}; -//1.3.36.8.7.1.33 Teletrust presentation types ptRTF -static const unsigned char cvOID_ptRTF [] = { 0x2B, 0x24, 0x08, 0x07, 0x01, 0x21}; -//1.3.36.8.7.1.34 Teletrust presentation types ptSCITEX -static const unsigned char cvOID_ptSCITEX [] = { 0x2B, 0x24, 0x08, 0x07, 0x01, 0x22}; -//1.3.36.8.7.1.35 Teletrust presentation types ptTAR -static const unsigned char cvOID_ptTAR [] = { 0x2B, 0x24, 0x08, 0x07, 0x01, 0x23}; -//1.3.36.8.7.1.36 Teletrust presentation types ptTarga -static const unsigned char cvOID_ptTarga [] = { 0x2B, 0x24, 0x08, 0x07, 0x01, 0x24}; -//1.3.36.8.7.1.37 Teletrust presentation types ptTeX -static const unsigned char cvOID_ptTeX [] = { 0x2B, 0x24, 0x08, 0x07, 0x01, 0x25}; -//1.3.36.8.7.1.38 Teletrust presentation types ptText -static const unsigned char cvOID_ptText [] = { 0x2B, 0x24, 0x08, 0x07, 0x01, 0x26}; -//1.3.36.8.7.1.39 Teletrust presentation types ptTIFF -static const unsigned char cvOID_ptTIFF [] = { 0x2B, 0x24, 0x08, 0x07, 0x01, 0x27}; -//1.3.36.8.7.1.40 Teletrust presentation types ptTIFF-FC -static const unsigned char cvOID_ptTIFF_FC [] = { 0x2B, 0x24, 0x08, 0x07, 0x01, 0x28}; -//1.3.36.8.7.1.41 Teletrust presentation types ptUID -static const unsigned char cvOID_ptUID [] = { 0x2B, 0x24, 0x08, 0x07, 0x01, 0x29}; -//1.3.36.8.7.1.42 Teletrust presentation types ptUUEncode -static const unsigned char cvOID_ptUUEncode [] = { 0x2B, 0x24, 0x08, 0x07, 0x01, 0x2A}; -//1.3.36.8.7.1.43 Teletrust presentation types ptWMF -static const unsigned char cvOID_ptWMF [] = { 0x2B, 0x24, 0x08, 0x07, 0x01, 0x2B}; -//1.3.36.8.7.1.44 Teletrust presentation types ptWordPerfect -static const unsigned char cvOID_ptWordPerfect [] = { 0x2B, 0x24, 0x08, 0x07, 0x01, 0x2C}; -//1.3.36.8.7.1.45 Teletrust presentation types ptWPGrph -static const unsigned char cvOID_ptWPGrph [] = { 0x2B, 0x24, 0x08, 0x07, 0x01, 0x2D}; -//1.3.101.1.4 Thawte thawte-ce -static const unsigned char cvOID_thawte_ce [] = { 0x2B, 0x65, 0x01, 0x04}; -//1.3.101.1.4.1 Thawte certificate extension strongExtranet -static const unsigned char cvOID_strongExtranet [] = { 0x2B, 0x65, 0x01, 0x04, 0x01}; -//2.5.4.0 X.520 id-at (2 5 4) objectClass -static const unsigned char cvOID_objectClass [] = { 0x55, 0x04, 0x00}; -//2.5.4.1 X.520 id-at (2 5 4) aliasedEntryName -static const unsigned char cvOID_aliasedEntryName [] = { 0x55, 0x04, 0x01}; -//2.5.4.2 X.520 id-at (2 5 4) knowledgeInformation -static const unsigned char cvOID_knowledgeInformation [] = { 0x55, 0x04, 0x02}; -//2.5.4.3 X.520 id-at (2 5 4) commonName -static const unsigned char cvOID_commonName [] = { 0x55, 0x04, 0x03}; -//2.5.4.4 X.520 id-at (2 5 4) surname -static const unsigned char cvOID_surname [] = { 0x55, 0x04, 0x04}; -//2.5.4.5 X.520 id-at (2 5 4) serialNumber -static const unsigned char cvOID_serialNumber [] = { 0x55, 0x04, 0x05}; -//2.5.4.6 X.520 id-at (2 5 4) countryName -static const unsigned char cvOID_countryName [] = { 0x55, 0x04, 0x06}; -//2.5.4.7 X.520 id-at (2 5 4) localityName -static const unsigned char cvOID_localityName [] = { 0x55, 0x04, 0x07}; -//2.5.4.7.1 X.520 id-at (2 5 4) collectiveLocalityName -static const unsigned char cvOID_collectiveLocalityName [] = { 0x55, 0x04, 0x07, 0x01}; -//2.5.4.8 X.520 id-at (2 5 4) stateOrProvinceName -static const unsigned char cvOID_stateOrProvinceName [] = { 0x55, 0x04, 0x08}; -//2.5.4.8.1 X.520 id-at (2 5 4) collectiveStateOrProvinceName -static const unsigned char cvOID_collectiveStateOrProvinceName [] = { 0x55, 0x04, 0x08, 0x01}; -//2.5.4.9 X.520 id-at (2 5 4) streetAddress -static const unsigned char cvOID_streetAddress [] = { 0x55, 0x04, 0x09}; -//2.5.4.9.1 X.520 id-at (2 5 4) collectiveStreetAddress -static const unsigned char cvOID_collectiveStreetAddress [] = { 0x55, 0x04, 0x09, 0x01}; -//2.5.4.10 X.520 id-at (2 5 4) organizationName -static const unsigned char cvOID_organizationName [] = { 0x55, 0x04, 0x0A}; -//2.5.4.10.1 X.520 id-at (2 5 4) collectiveOrganizationName -static const unsigned char cvOID_collectiveOrganizationName [] = { 0x55, 0x04, 0x0A, 0x01}; -//2.5.4.11 X.520 id-at (2 5 4) organizationalUnitName -static const unsigned char cvOID_organizationalUnitName [] = { 0x55, 0x04, 0x0B}; -//2.5.4.11.1 X.520 id-at (2 5 4) collectiveOrganizationalUnitName -static const unsigned char cvOID_collectiveOrganizationalUnitName [] = { 0x55, 0x04, 0x0B, 0x01}; -//2.5.4.12 X.520 id-at (2 5 4) title -static const unsigned char cvOID_title [] = { 0x55, 0x04, 0x0C}; -//2.5.4.13 X.520 id-at (2 5 4) description -static const unsigned char cvOID_description [] = { 0x55, 0x04, 0x0D}; -//2.5.4.14 X.520 id-at (2 5 4) searchGuide -static const unsigned char cvOID_searchGuide [] = { 0x55, 0x04, 0x0E}; -//2.5.4.15 X.520 id-at (2 5 4) businessCategory -static const unsigned char cvOID_businessCategory [] = { 0x55, 0x04, 0x0F}; -//2.5.4.16 X.520 id-at (2 5 4) postalAddress -static const unsigned char cvOID_postalAddress [] = { 0x55, 0x04, 0x10}; -//2.5.4.16.1 X.520 id-at (2 5 4) collectivePostalAddress -static const unsigned char cvOID_collectivePostalAddress [] = { 0x55, 0x04, 0x10, 0x01}; -//2.5.4.17 X.520 id-at (2 5 4) postalCode -static const unsigned char cvOID_postalCode [] = { 0x55, 0x04, 0x11}; -//2.5.4.17.1 X.520 id-at (2 5 4) collectivePostalCode -static const unsigned char cvOID_collectivePostalCode [] = { 0x55, 0x04, 0x11, 0x01}; -//2.5.4.18 X.520 id-at (2 5 4) postOfficeBox -static const unsigned char cvOID_postOfficeBox [] = { 0x55, 0x04, 0x12}; -//2.5.4.18.1 X.520 id-at (2 5 4) collectivePostOfficeBox -static const unsigned char cvOID_collectivePostOfficeBox [] = { 0x55, 0x04, 0x12, 0x01}; -//2.5.4.19 X.520 id-at (2 5 4) physicalDeliveryOfficeName -static const unsigned char cvOID_physicalDeliveryOfficeName [] = { 0x55, 0x04, 0x13}; -//2.5.4.19.1 X.520 id-at (2 5 4) collectivePhysicalDeliveryOfficeName -static const unsigned char cvOID_collectivePhysicalDeliveryOfficeName [] = { 0x55, 0x04, 0x13, 0x01}; -//2.5.4.20 X.520 id-at (2 5 4) telephoneNumber -static const unsigned char cvOID_telephoneNumber [] = { 0x55, 0x04, 0x14}; -//2.5.4.20.1 X.520 id-at (2 5 4) collectiveTelephoneNumber -static const unsigned char cvOID_collectiveTelephoneNumber [] = { 0x55, 0x04, 0x14, 0x01}; -//2.5.4.21 X.520 id-at (2 5 4) telexNumber -static const unsigned char cvOID_telexNumber [] = { 0x55, 0x04, 0x15}; -//2.5.4.21.1 X.520 id-at (2 5 4) collectiveTelexNumber -static const unsigned char cvOID_collectiveTelexNumber [] = { 0x55, 0x04, 0x15, 0x01}; -//2.5.4.22 X.520 id-at (2 5 4) teletexTerminalIdentifier -static const unsigned char cvOID_teletexTerminalIdentifier [] = { 0x55, 0x04, 0x16}; -//2.5.4.22.1 X.520 id-at (2 5 4) collectiveTeletexTerminalIdentifier -static const unsigned char cvOID_collectiveTeletexTerminalIdentifier [] = { 0x55, 0x04, 0x16, 0x01}; -//2.5.4.23 X.520 id-at (2 5 4) facsimileTelephoneNumber -static const unsigned char cvOID_facsimileTelephoneNumber [] = { 0x55, 0x04, 0x17}; -//2.5.4.23.1 X.520 id-at (2 5 4) collectiveFacsimileTelephoneNumber -static const unsigned char cvOID_collectiveFacsimileTelephoneNumber [] = { 0x55, 0x04, 0x17, 0x01}; -//2.5.4.24 X.520 id-at (2 5 4) x121Address -static const unsigned char cvOID_x121Address [] = { 0x55, 0x04, 0x18}; -//2.5.4.25 X.520 id-at (2 5 4) internationalISDNNumber -static const unsigned char cvOID_internationalISDNNumber [] = { 0x55, 0x04, 0x19}; -//2.5.4.25.1 X.520 id-at (2 5 4) collectiveInternationalISDNNumber -static const unsigned char cvOID_collectiveInternationalISDNNumber [] = { 0x55, 0x04, 0x19, 0x01}; -//2.5.4.26 X.520 id-at (2 5 4) registeredAddress -static const unsigned char cvOID_registeredAddress [] = { 0x55, 0x04, 0x1A}; -//2.5.4.27 X.520 id-at (2 5 4) destinationIndicator -static const unsigned char cvOID_destinationIndicator [] = { 0x55, 0x04, 0x1B}; -//2.5.4.28 X.520 id-at (2 5 4) preferredDeliveryMehtod -static const unsigned char cvOID_preferredDeliveryMehtod [] = { 0x55, 0x04, 0x1C}; -//2.5.4.29 X.520 id-at (2 5 4) presentationAddress -static const unsigned char cvOID_presentationAddress [] = { 0x55, 0x04, 0x1D}; -//2.5.4.30 X.520 id-at (2 5 4) supportedApplicationContext -static const unsigned char cvOID_supportedApplicationContext [] = { 0x55, 0x04, 0x1E}; -//2.5.4.31 X.520 id-at (2 5 4) member -static const unsigned char cvOID_member [] = { 0x55, 0x04, 0x1F}; -//2.5.4.32 X.520 id-at (2 5 4) owner -static const unsigned char cvOID_owner [] = { 0x55, 0x04, 0x20}; -//2.5.4.33 X.520 id-at (2 5 4) roleOccupant -static const unsigned char cvOID_roleOccupant [] = { 0x55, 0x04, 0x21}; -//2.5.4.34 X.520 id-at (2 5 4) seeAlso -static const unsigned char cvOID_seeAlso [] = { 0x55, 0x04, 0x22}; -//2.5.4.35 X.520 id-at (2 5 4) userPassword -static const unsigned char cvOID_userPassword [] = { 0x55, 0x04, 0x23}; -//2.5.4.36 X.520 id-at (2 5 4) userCertificate -static const unsigned char cvOID_userCertificate [] = { 0x55, 0x04, 0x24}; -//2.5.4.37 X.520 id-at (2 5 4) caCertificate -static const unsigned char cvOID_caCertificate [] = { 0x55, 0x04, 0x25}; -//2.5.4.38 X.520 id-at (2 5 4) authorityRevocationList -static const unsigned char cvOID_authorityRevocationList [] = { 0x55, 0x04, 0x26}; -//2.5.4.39 X.520 id-at (2 5 4) certificateRevocationList -static const unsigned char cvOID_certificateRevocationList [] = { 0x55, 0x04, 0x27}; -//2.5.4.40 X.520 id-at (2 5 4) crossCertificatePair -static const unsigned char cvOID_crossCertificatePair_2 [] = { 0x55, 0x04, 0x28}; -//2.5.4.41 X.520 id-at (2 5 4) name -static const unsigned char cvOID_name [] = { 0x55, 0x04, 0x29}; -//2.5.4.42 X.520 id-at (2 5 4) givenName -static const unsigned char cvOID_givenName [] = { 0x55, 0x04, 0x2A}; -//2.5.4.43 X.520 id-at (2 5 4) initials -static const unsigned char cvOID_initials [] = { 0x55, 0x04, 0x2B}; -//2.5.4.44 X.520 id-at (2 5 4) generationQualifier -static const unsigned char cvOID_generationQualifier [] = { 0x55, 0x04, 0x2C}; -//2.5.4.45 X.520 id-at (2 5 4) uniqueIdentifier -static const unsigned char cvOID_uniqueIdentifier [] = { 0x55, 0x04, 0x2D}; -//2.5.4.46 X.520 id-at (2 5 4) dnQualifier -static const unsigned char cvOID_dnQualifier [] = { 0x55, 0x04, 0x2E}; -//2.5.4.47 X.520 id-at (2 5 4) enhancedSearchGuide -static const unsigned char cvOID_enhancedSearchGuide [] = { 0x55, 0x04, 0x2F}; -//2.5.4.48 X.520 id-at (2 5 4) protocolInformation -static const unsigned char cvOID_protocolInformation [] = { 0x55, 0x04, 0x30}; -//2.5.4.49 X.520 id-at (2 5 4) distinguishedName -static const unsigned char cvOID_distinguishedName [] = { 0x55, 0x04, 0x31}; -//2.5.4.50 X.520 id-at (2 5 4) uniqueMember -static const unsigned char cvOID_uniqueMember [] = { 0x55, 0x04, 0x32}; -//2.5.4.51 X.520 id-at (2 5 4) houseIdentifier -static const unsigned char cvOID_houseIdentifier [] = { 0x55, 0x04, 0x33}; -//2.5.4.52 X.520 id-at (2 5 4) supportedAlgorithms -static const unsigned char cvOID_supportedAlgorithms [] = { 0x55, 0x04, 0x34}; -//2.5.4.53 X.520 id-at (2 5 4) deltaRevocationList -static const unsigned char cvOID_deltaRevocationList [] = { 0x55, 0x04, 0x35}; -//2.5.4.55 X.520 id-at (2 5 4) clearance -static const unsigned char cvOID_clearance [] = { 0x55, 0x04, 0x36}; -//2.5.4.58 X.520 id-at (2 5 4) crossCertificatePair -static const unsigned char cvOID_crossCertificatePair_1 [] = { 0x55, 0x04, 0x3A}; -//2.5.4.65 Naming attributes of type X520Pseudonym -static const unsigned char cvOID_pseudonym[] = { 0x55, 0x04, 0x41}; -//2.5.8.1.1 X.500 algorithms. Ambiguous, since no padding rules specified rsa -static const unsigned char cvOID_rsa_X500 [] = { 0x55, 0x08, 0x01, 0x01}; -//2.5.29.1 X.509 id-ce (2 5 29). Deprecated, use (2 5 29 35) instead authorityKeyIdentifier -static const unsigned char cvOID_authorityKeyIdentifier_old[] = { 0x55, 0x1D, 0x01}; -//2.5.29.2 X.509 id-ce (2 5 29). Obsolete, use keyUsage/extKeyUsage instead keyAttributes -static const unsigned char cvOID_keyAttributes [] = { 0x55, 0x1D, 0x02}; -//2.5.29.3 X.509 id-ce (2 5 29). Deprecated, use (2 5 29 32) instead certificatePolicies -static const unsigned char cvOID_certificatePolicies_old [] = { 0x55, 0x1D, 0x03}; -//2.5.29.4 X.509 id-ce (2 5 29). Obsolete, use keyUsage/extKeyUsage instead keyUsageRestriction -static const unsigned char cvOID_keyUsageRestriction [] = { 0x55, 0x1D, 0x04}; -//2.5.29.5 X.509 id-ce (2 5 29). Deprecated, use (2 5 29 33) instead policyMapping -static const unsigned char cvOID_policyMapping [] = { 0x55, 0x1D, 0x05}; -//2.5.29.6 X.509 id-ce (2 5 29). Obsolete, use namestatic constraints instead subtreesstatic constraint -static const unsigned char cvOID_subtreesconstraint [] = { 0x55, 0x1D, 0x06}; -//2.5.29.7 X.509 id-ce (2 5 29). Deprecated, use (2 5 29 17) instead subjectAltName -static const unsigned char cvOID_subjectAltName_old [] = { 0x55, 0x1D, 0x07}; -//2.5.29.8 X.509 id-ce (2 5 29). Deprecated, use (2 5 29 18) instead issuerAltName -static const unsigned char cvOID_issuerAltName_old [] = { 0x55, 0x1D, 0x08}; -//2.5.29.9 X.509 id-ce (2 5 29) subjectDirectoryAttributes -static const unsigned char cvOID_subjectDirectoryAttributes [] = { 0x55, 0x1D, 0x09}; -//2.5.29.10 X.509 id-ce (2 5 29). Deprecated, use (2 5 29 19) instead basicstatic constraints -static const unsigned char cvOID_basicconstraints_old [] = { 0x55, 0x1D, 0x0A}; -//2.5.29.11 X.509 id-ce (2 5 29). Deprecated, use (2 5 29 30) instead namestatic constraints -static const unsigned char cvOID_nameconstraints_old [] = { 0x55, 0x1D, 0x0B}; -//2.5.29.12 X.509 id-ce (2 5 29). Deprecated, use (2 5 29 36) instead policystatic constraints -static const unsigned char cvOID_policyconstraints_old_1 [] = { 0x55, 0x1D, 0x0C}; -//2.5.29.13 X.509 id-ce (2 5 29). Deprecated, use (2 5 29 19) instead basicstatic constraints -static const unsigned char cvOID_basicconstraints_2 [] = { 0x55, 0x1D, 0x0D}; -//2.5.29.14 X.509 id-ce (2 5 29) subjectKeyIdentifier -static const unsigned char cvOID_subjectKeyIdentifier[] = { 0x55, 0x1D, 0x0E}; -//2.5.29.15 X.509 id-ce (2 5 29) keyUsage -static const unsigned char cvOID_keyUsage[] = { 0x55, 0x1D, 0x0F}; -//2.5.29.16 X.509 id-ce (2 5 29) privateKeyUsagePeriod -static const unsigned char cvOID_privateKeyUsagePeriod [] = { 0x55, 0x1D, 0x10}; -//2.5.29.17 X.509 id-ce (2 5 29) subjectAltName -static const unsigned char cvOID_subjectAltName [] = { 0x55, 0x1D, 0x11}; -//2.5.29.18 X.509 id-ce (2 5 29) issuerAltName -static const unsigned char cvOID_issuerAltName [] = { 0x55, 0x1D, 0x12}; -//2.5.29.19 X.509 id-ce (2 5 29) basicstatic constraints -static const unsigned char cvOID_basicconstraints[] = { 0x55, 0x1D, 0x13}; -//2.5.29.20 X.509 id-ce (2 5 29) cRLNumber -static const unsigned char cvOID_cRLNumber [] = { 0x55, 0x1D, 0x14}; -//2.5.29.21 X.509 id-ce (2 5 29) cRLReason -static const unsigned char cvOID_cRLReason [] = { 0x55, 0x1D, 0x15}; -//2.5.29.22 X.509 id-ce (2 5 29). Deprecated, alternative OID uncertain expirationDate -static const unsigned char cvOID_expirationDate [] = { 0x55, 0x1D, 0x16}; -//2.5.29.23 X.509 id-ce (2 5 29) instructionCode -static const unsigned char cvOID_instructionCode [] = { 0x55, 0x1D, 0x17}; -//2.5.29.24 X.509 id-ce (2 5 29) invalidityDate -static const unsigned char cvOID_invalidityDate [] = { 0x55, 0x1D, 0x18}; -//2.5.29.25 X.509 id-ce (2 5 29). Deprecated, use (2 5 29 31) instead cRLDistributionPoints -static const unsigned char cvOID_cRLDistributionPoints_old [] = { 0x55, 0x1D, 0x19}; -//2.5.29.26 X.509 id-ce (2 5 29). Deprecated, use (2 5 29 28) instead issuingDistributionPoint -static const unsigned char cvOID_issuingDistributionPoint_old [] = { 0x55, 0x1D, 0x1A}; -//2.5.29.27 X.509 id-ce (2 5 29) deltaCRLIndicator -static const unsigned char cvOID_deltaCRLIndicator [] = { 0x55, 0x1D, 0x1B}; -//2.5.29.28 X.509 id-ce (2 5 29) issuingDistributionPoint -static const unsigned char cvOID_issuingDistributionPoint [] = { 0x55, 0x1D, 0x1C}; -//2.5.29.29 X.509 id-ce (2 5 29) certificateIssuer -static const unsigned char cvOID_certificateIssuer [] = { 0x55, 0x1D, 0x1D}; -//2.5.29.30 X.509 id-ce (2 5 29) namestatic constraints -static const unsigned char cvOID_nameconstraints [] = { 0x55, 0x1D, 0x1E}; -//2.5.29.31 X.509 id-ce (2 5 29) cRLDistributionPoints -static const unsigned char cvOID_cRLDistributionPoints[] = { 0x55, 0x1D, 0x1F}; -//2.5.29.32 X.509 id-ce (2 5 29) certificatePolicies -static const unsigned char cvOID_certificatePolicies [] = { 0x55, 0x1D, 0x20}; -//2.5.29.32.0 X.509 id-ce (2 5 29.0) anyPolicies -static const unsigned char cvOID_anyPolicies [] = { 0x55, 0x1D, 0x20, 0x00}; -//2.5.29.33 X.509 id-ce (2 5 29) policyMappings -static const unsigned char cvOID_policyMappings [] = { 0x55, 0x1D, 0x21}; -//2.5.29.34 X.509 id-ce (2 5 29). Deprecated, use (2 5 29 36) instead policystatic constraints -static const unsigned char cvOID_policyconstraints_old_2 [] = { 0x55, 0x1D, 0x22}; -//2.5.29.35 X.509 id-ce (2 5 29) authorityKeyIdentifier -static const unsigned char cvOID_authorityKeyIdentifier [] = { 0x55, 0x1D, 0x23}; -//2.5.29.36 X.509 id-ce (2 5 29) policystatic constraints -static const unsigned char cvOID_policyconstraints [] = { 0x55, 0x1D, 0x24}; -//2.5.29.37 X.509 id-ce (2 5 29) extKeyUsage -static const unsigned char cvOID_extKeyUsage [] = { 0x55, 0x1D, 0x25}; -//2.5.29.37.0 anyExtendedKeyUsage id-ce-extKeyUsage 0 -static const unsigned char cvOID_anyExtendedKeyUsage [] = { 0x55, 0x1D, 0x25, 0x00}; -//ame -//2.5.29.46 X.509 id-ce (2 5 29) id-ce-freshestCRL -static const unsigned char cvOID_freshestCRL [] = { 0x55, 0x1D, 0x2E}; -//2.5.29.54 X.509 id-ce (2 5 29) inhibitAnyPolicy -static const unsigned char cvOID_inhibitAnyPolicy [] = { 0x55, 0x1D, 0x36}; - -//2.16.840.1.101.2.1.1.1 SDN.700 INFOSEC algorithms sdnsSignatureAlgorithm -static const unsigned char cvOID_sdnsSignatureAlgorithm [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x01, 0x01}; -//2.16.840.1.101.2.1.1.2 SDN.700 INFOSEC algorithms. Formerly known as mosaicSignatureAlgorithm, this OID is better known as dsaWithSHA-1. fortezzaSignatureAlgorithm -static const unsigned char cvOID_fortezzaSignatureAlgorithm [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x01, 0x02}; -//2.16.840.1.101.2.1.1.3 SDN.700 INFOSEC algorithms sdnsConfidentialityAlgorithm -static const unsigned char cvOID_sdnsConfidentialityAlgorithm [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x01, 0x03}; -//2.16.840.1.101.2.1.1.4 SDN.700 INFOSEC algorithms. Formerly known as mosaicConfidentialityAlgorithm fortezzaConfidentialityAlgorithm -static const unsigned char cvOID_fortezzaConfidentialityAlgorithm [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x01, 0x04}; -//2.16.840.1.101.2.1.1.5 SDN.700 INFOSEC algorithms sdnsIntegrityAlgorithm -static const unsigned char cvOID_sdnsIntegrityAlgorithm [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x01, 0x05}; -//2.16.840.1.101.2.1.1.6 SDN.700 INFOSEC algorithms. Formerly known as mosaicIntegrityAlgorithm fortezzaIntegrityAlgorithm -static const unsigned char cvOID_fortezzaIntegrityAlgorithm [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x01, 0x06}; -//2.16.840.1.101.2.1.1.7 SDN.700 INFOSEC algorithms sdnsTokenProtectionAlgorithm -static const unsigned char cvOID_sdnsTokenProtectionAlgorithm [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x01, 0x07}; -//2.16.840.1.101.2.1.1.8 SDN.700 INFOSEC algorithms. Formerly know as mosaicTokenProtectionAlgorithm fortezzaTokenProtectionAlgorithm -static const unsigned char cvOID_fortezzaTokenProtectionAlgorithm [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x01, 0x08}; -//2.16.840.1.101.2.1.1.9 SDN.700 INFOSEC algorithms sdnsKeyManagementAlgorithm -static const unsigned char cvOID_sdnsKeyManagementAlgorithm [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x01, 0x09}; -//2.16.840.1.101.2.1.1.10 SDN.700 INFOSEC algorithms. Formerly known as mosaicKeyManagementAlgorithm fortezzaKeyManagementAlgorithm -static const unsigned char cvOID_fortezzaKeyManagementAlgorithm [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x01, 0x0A}; -//2.16.840.1.101.2.1.1.11 SDN.700 INFOSEC algorithms sdnsKMandSigAlgorithm -static const unsigned char cvOID_sdnsKMandSigAlgorithm [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x01, 0x0B}; -//2.16.840.1.101.2.1.1.12 SDN.700 INFOSEC algorithms. Formerly known as mosaicKMandSigAlgorithm fortezzaKMandSigAlgorithm -static const unsigned char cvOID_fortezzaKMandSigAlgorithm [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x01, 0x0C}; -//2.16.840.1.101.2.1.1.13 SDN.700 INFOSEC algorithms suiteASignatureAlgorithm -static const unsigned char cvOID_suiteASignatureAlgorithm [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x01, 0x0D}; -//2.16.840.1.101.2.1.1.14 SDN.700 INFOSEC algorithms suiteAConfidentialityAlgorithm -static const unsigned char cvOID_suiteAConfidentialityAlgorithm [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x01, 0x0E}; -//2.16.840.1.101.2.1.1.15 SDN.700 INFOSEC algorithms suiteAIntegrityAlgorithm -static const unsigned char cvOID_suiteAIntegrityAlgorithm [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x01, 0x0F}; -//2.16.840.1.101.2.1.1.16 SDN.700 INFOSEC algorithms suiteATokenProtectionAlgorithm -static const unsigned char cvOID_suiteATokenProtectionAlgorithm [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x01, 0x10}; -//2.16.840.1.101.2.1.1.17 SDN.700 INFOSEC algorithms suiteAKeyManagementAlgorithm -static const unsigned char cvOID_suiteAKeyManagementAlgorithm [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x01, 0x11}; -//2.16.840.1.101.2.1.1.18 SDN.700 INFOSEC algorithms suiteAKMandSigAlgorithm -static const unsigned char cvOID_suiteAKMandSigAlgorithm [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x01, 0x12}; -//2.16.840.1.101.2.1.1.19 SDN.700 INFOSEC algorithms. Formerly known as mosaicUpdatedSigAlgorithm fortezzaUpdatedSigAlgorithm -static const unsigned char cvOID_fortezzaUpdatedSigAlgorithm [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x01, 0x13}; -//2.16.840.1.101.2.1.1.20 SDN.700 INFOSEC algorithms. Formerly known as mosaicKMandUpdSigAlgorithms fortezzaKMandUpdSigAlgorithms -static const unsigned char cvOID_fortezzaKMandUpdSigAlgorithms [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x01, 0x14}; -//2.16.840.1.101.2.1.1.21 SDN.700 INFOSEC algorithms. Formerly known as mosaicUpdatedIntegAlgorithm fortezzaUpdatedIntegAlgorithm -static const unsigned char cvOID_fortezzaUpdatedIntegAlgorithm [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x01, 0x15}; -//2.16.840.1.101.2.1.1.22 SDN.700 INFOSEC algorithms. Formerly known as mosaicKeyEncryptionAlgorithm keyExchangeAlgorithm -static const unsigned char cvOID_keyExchangeAlgorithm [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x01, 0x16}; -//2.16.840.1.101.2.1.1.23 SDN.700 INFOSEC algorithms fortezzaWrap80Algorithm -static const unsigned char cvOID_fortezzaWrap80Algorithm [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x01, 0x17}; -//2.16.840.1.101.2.1.1.24 SDN.700 INFOSEC algorithms kEAKeyEncryptionAlgorithm -static const unsigned char cvOID_kEAKeyEncryptionAlgorithm [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x01, 0x18}; -//2.16.840.1.101.2.1.2.1 SDN.700 INFOSEC format rfc822MessageFormat -static const unsigned char cvOID_rfc822MessageFormat [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x02, 0x01}; -//2.16.840.1.101.2.1.2.2 SDN.700 INFOSEC format emptyContent -static const unsigned char cvOID_emptyContent [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x02, 0x02}; -//2.16.840.1.101.2.1.2.3 SDN.700 INFOSEC format cspContentType -static const unsigned char cvOID_cspContentType [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x02, 0x03}; -//2.16.840.1.101.2.1.2.42 SDN.700 INFOSEC format mspRev3ContentType -static const unsigned char cvOID_mspRev3ContentType [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x02, 0x2A}; -//2.16.840.1.101.2.1.2.48 SDN.700 INFOSEC format mspContentType -static const unsigned char cvOID_mspContentType [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x02, 0x30}; -//2.16.840.1.101.2.1.2.49 SDN.700 INFOSEC format mspRekeyAgentProtocol -static const unsigned char cvOID_mspRekeyAgentProtocol [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x02, 0x31}; -//2.16.840.1.101.2.1.2.50 SDN.700 INFOSEC format mspMMP -static const unsigned char cvOID_mspMMP [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x02, 0x32}; -//2.16.840.1.101.2.1.2.66 SDN.700 INFOSEC format mspRev3-1ContentType -static const unsigned char cvOID_mspRev3_1ContentType [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x02, 0x42}; -//2.16.840.1.101.2.1.2.72 SDN.700 INFOSEC format forwardedMSPMessageBodyPart -static const unsigned char cvOID_forwardedMSPMessageBodyPart [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x02, 0x48}; -//2.16.840.1.101.2.1.2.73 SDN.700 INFOSEC format mspForwardedMessageParameters -static const unsigned char cvOID_mspForwardedMessageParameters [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x02, 0x49}; -//2.16.840.1.101.2.1.2.74 SDN.700 INFOSEC format forwardedCSPMsgBodyPart -static const unsigned char cvOID_forwardedCSPMsgBodyPart [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x02, 0x50}; -//2.16.840.1.101.2.1.2.75 SDN.700 INFOSEC format cspForwardedMessageParameters -static const unsigned char cvOID_cspForwardedMessageParameters [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x02, 0x51}; -//2.16.840.1.101.2.1.2.76 SDN.700 INFOSEC format mspMMP2 -static const unsigned char cvOID_mspMMP2 [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x02, 0x52}; -//2.16.840.1.101.2.1.3.1 SDN.700 INFOSEC policy sdnsSecurityPolicy -static const unsigned char cvOID_sdnsSecurityPolicy [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x03, 0x01}; -//2.16.840.1.101.2.1.3.2 SDN.700 INFOSEC policy sdnsPRBAC -static const unsigned char cvOID_sdnsPRBAC [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x03, 0x02}; -//2.16.840.1.101.2.1.3.3 SDN.700 INFOSEC policy mosaicPRBAC -static const unsigned char cvOID_mosaicPRBAC [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x03, 0x03}; -//2.16.840.1.101.2.1.3.10 SDN.700 INFOSEC policy siSecurityPolicy -static const unsigned char cvOID_siSecurityPolicy [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x03, 0x0A}; -//2.16.840.1.101.2.1.3.10.0 SDN.700 INFOSEC policy (obsolete) siNASP -static const unsigned char cvOID_siNASP [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x03, 0x0A, 0x00}; -//2.16.840.1.101.2.1.3.10.1 SDN.700 INFOSEC policy (obsolete) siELCO -static const unsigned char cvOID_siELCO [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x03, 0x0A, 0x01}; -//2.16.840.1.101.2.1.3.10.2 SDN.700 INFOSEC policy (obsolete) siTK -static const unsigned char cvOID_siTK [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x03, 0x0A, 0x02}; -//2.16.840.1.101.2.1.3.10.3 SDN.700 INFOSEC policy (obsolete) siDSAP -static const unsigned char cvOID_siDSAP [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x03, 0x0A, 0x03}; -//2.16.840.1.101.2.1.3.10.4 SDN.700 INFOSEC policy (obsolete) siSSSS -static const unsigned char cvOID_siSSSS [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x03, 0x0A, 0x04}; -//2.16.840.1.101.2.1.3.10.5 SDN.700 INFOSEC policy (obsolete) siDNASP -static const unsigned char cvOID_siDNASP [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x03, 0x0A, 0x05}; -//2.16.840.1.101.2.1.3.10.6 SDN.700 INFOSEC policy (obsolete) siBYEMAN -static const unsigned char cvOID_siBYEMAN [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x03, 0x0A, 0x06}; -//2.16.840.1.101.2.1.3.10.7 SDN.700 INFOSEC policy (obsolete) siREL-US -static const unsigned char cvOID_siREL_US [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x03, 0x0A, 0x07}; -//2.16.840.1.101.2.1.3.10.8 SDN.700 INFOSEC policy (obsolete) siREL-AUS -static const unsigned char cvOID_siREL_AUS [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x03, 0x0A, 0x08}; -//2.16.840.1.101.2.1.3.10.9 SDN.700 INFOSEC policy (obsolete) siREL-CAN -static const unsigned char cvOID_siREL_CAN [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x03, 0x0A, 0x09}; -//2.16.840.1.101.2.1.3.10.10 SDN.700 INFOSEC policy (obsolete) siREL_UK -static const unsigned char cvOID_siREL_UK [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x03, 0x0A, 0x0A}; -//2.16.840.1.101.2.1.3.10.11 SDN.700 INFOSEC policy (obsolete) siREL-NZ -static const unsigned char cvOID_siREL_NZ [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x03, 0x0A, 0x0B}; -//2.16.840.1.101.2.1.3.10.12 SDN.700 INFOSEC policy (obsolete) siGeneric -static const unsigned char cvOID_siGeneric [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x03, 0x0A, 0x0C}; -//2.16.840.1.101.2.1.3.11 SDN.700 INFOSEC policy genser -static const unsigned char cvOID_genser [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x03, 0x0B}; -//2.16.840.1.101.2.1.3.11.0 SDN.700 INFOSEC policy (obsolete) genserNations -static const unsigned char cvOID_genserNations [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x03, 0x0B, 0x00}; -//2.16.840.1.101.2.1.3.11.1 SDN.700 INFOSEC policy (obsolete) genserComsec -static const unsigned char cvOID_genserComsec [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x03, 0x0B, 0x01}; -//2.16.840.1.101.2.1.3.11.2 SDN.700 INFOSEC policy (obsolete) genserAcquisition -static const unsigned char cvOID_genserAcquisition [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x03, 0x0B, 0x02}; -//2.16.840.1.101.2.1.3.11.3 SDN.700 INFOSEC policy genserSecurityCategories -static const unsigned char cvOID_genserSecurityCategories [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x03, 0x0B, 0x03}; -//2.16.840.1.101.2.1.3.11.3.0 SDN.700 INFOSEC GENSER policy genserTagSetName -static const unsigned char cvOID_genserTagSetName [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x03, 0x0B, 0x03, 0x00}; -//2.16.840.1.101.2.1.3.12 SDN.700 INFOSEC policy defaultSecurityPolicy -static const unsigned char cvOID_defaultSecurityPolicy [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x03, 0x0C}; -//2.16.840.1.101.2.1.3.13 SDN.700 INFOSEC policy capcoMarkings -static const unsigned char cvOID_capcoMarkings [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x03, 0x0D}; -//2.16.840.1.101.2.1.3.13.0 SDN.700 INFOSEC policy CAPCO markings capcoSecurityCategories -static const unsigned char cvOID_capcoSecurityCategories [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x03, 0x0D, 0x00}; -//2.16.840.1.101.2.1.3.13.0.1 SDN.700 INFOSEC policy CAPCO markings capcoTagSetName1 -static const unsigned char cvOID_capcoTagSetName1 [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x03, 0x0D, 0x00, 0x01}; -//2.16.840.1.101.2.1.3.13.0.2 SDN.700 INFOSEC policy CAPCO markings capcoTagSetName2 -static const unsigned char cvOID_capcoTagSetName2 [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x03, 0x0D, 0x00, 0x02}; -//2.16.840.1.101.2.1.3.13.0.3 SDN.700 INFOSEC policy CAPCO markings capcoTagSetName3 -static const unsigned char cvOID_capcoTagSetName3 [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x03, 0x0D, 0x00, 0x03}; -//2.16.840.1.101.2.1.3.13.0.4 SDN.700 INFOSEC policy CAPCO markings capcoTagSetName4 -static const unsigned char cvOID_capcoTagSetName4 [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x03, 0x0D, 0x00, 0x04}; -//2.16.840.1.101.2.1.5.1 SDN.700 INFOSEC attributes (superseded) sdnsKeyManagementCertificate -static const unsigned char cvOID_sdnsKeyManagementCertificate [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x05, 0x01}; -//2.16.840.1.101.2.1.5.2 SDN.700 INFOSEC attributes (superseded) sdnsUserSignatureCertificate -static const unsigned char cvOID_sdnsUserSignatureCertificate [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x05, 0x02}; -//2.16.840.1.101.2.1.5.3 SDN.700 INFOSEC attributes (superseded) sdnsKMandSigCertificate -static const unsigned char cvOID_sdnsKMandSigCertificate [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x05, 0x03}; -//2.16.840.1.101.2.1.5.4 SDN.700 INFOSEC attributes (superseded) fortezzaKeyManagementCertificate -static const unsigned char cvOID_fortezzaKeyManagementCertificate [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x05, 0x04}; -//2.16.840.1.101.2.1.5.5 SDN.700 INFOSEC attributes (superseded) fortezzaKMandSigCertificate -static const unsigned char cvOID_fortezzaKMandSigCertificate [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x05, 0x05}; -//2.16.840.1.101.2.1.5.6 SDN.700 INFOSEC attributes (superseded) fortezzaUserSignatureCertificate -static const unsigned char cvOID_fortezzaUserSignatureCertificate [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x05, 0x06}; -//2.16.840.1.101.2.1.5.7 SDN.700 INFOSEC attributes (superseded) fortezzaCASignatureCertificate -static const unsigned char cvOID_fortezzaCASignatureCertificate [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x05, 0x07}; -//2.16.840.1.101.2.1.5.8 SDN.700 INFOSEC attributes (superseded) sdnsCASignatureCertificate -static const unsigned char cvOID_sdnsCASignatureCertificate [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x05, 0x08}; -//2.16.840.1.101.2.1.5.10 SDN.700 INFOSEC attributes (superseded) auxiliaryVector -static const unsigned char cvOID_auxiliaryVector [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x05, 0x0A}; -//2.16.840.1.101.2.1.5.11 SDN.700 INFOSEC attributes mlReceiptPolicy -static const unsigned char cvOID_mlReceiptPolicy [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x05, 0x0B}; -//2.16.840.1.101.2.1.5.12 SDN.700 INFOSEC attributes mlMembership -static const unsigned char cvOID_mlMembership [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x05, 0x0C}; -//2.16.840.1.101.2.1.5.13 SDN.700 INFOSEC attributes mlAdministrators -static const unsigned char cvOID_mlAdministrators [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x05, 0x0D}; -//2.16.840.1.101.2.1.5.14 SDN.700 INFOSEC attributes alid -static const unsigned char cvOID_alid [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x05, 0x0E}; -//2.16.840.1.101.2.1.5.20 SDN.700 INFOSEC attributes janUKMs -static const unsigned char cvOID_janUKMs [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x05, 0x14}; -//2.16.840.1.101.2.1.5.21 SDN.700 INFOSEC attributes febUKMs -static const unsigned char cvOID_febUKMs [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x05, 0x15}; -//2.16.840.1.101.2.1.5.22 SDN.700 INFOSEC attributes marUKMs -static const unsigned char cvOID_marUKMs [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x05, 0x16}; -//2.16.840.1.101.2.1.5.23 SDN.700 INFOSEC attributes aprUKMs -static const unsigned char cvOID_aprUKMs [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x05, 0x17}; -//2.16.840.1.101.2.1.5.24 SDN.700 INFOSEC attributes mayUKMs -static const unsigned char cvOID_mayUKMs [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x05, 0x18}; -//2.16.840.1.101.2.1.5.25 SDN.700 INFOSEC attributes junUKMs -static const unsigned char cvOID_junUKMs [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x05, 0x19}; -//2.16.840.1.101.2.1.5.26 SDN.700 INFOSEC attributes julUKMs -static const unsigned char cvOID_julUKMs [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x05, 0x1A}; -//2.16.840.1.101.2.1.5.27 SDN.700 INFOSEC attributes augUKMs -static const unsigned char cvOID_augUKMs [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x05, 0x1B}; -//2.16.840.1.101.2.1.5.28 SDN.700 INFOSEC attributes sepUKMs -static const unsigned char cvOID_sepUKMs [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x05, 0x1C}; -//2.16.840.1.101.2.1.5.29 SDN.700 INFOSEC attributes octUKMs -static const unsigned char cvOID_octUKMs [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x05, 0x1D}; -//2.16.840.1.101.2.1.5.30 SDN.700 INFOSEC attributes novUKMs -static const unsigned char cvOID_novUKMs [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x05, 0x1E}; -//2.16.840.1.101.2.1.5.21 SDN.700 INFOSEC attributes decUKMs -static const unsigned char cvOID_decUKMs [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x05, 0x1F}; -//2.16.840.1.101.2.1.5.40 SDN.700 INFOSEC attributes metaSDNSckl -static const unsigned char cvOID_metaSDNSckl [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x05, 0x28}; -//2.16.840.1.101.2.1.5.41 SDN.700 INFOSEC attributes sdnsCKL -static const unsigned char cvOID_sdnsCKL [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x05, 0x29}; -//2.16.840.1.101.2.1.5.42 SDN.700 INFOSEC attributes metaSDNSsignatureCKL -static const unsigned char cvOID_metaSDNSsignatureCKL [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x05, 0x2A}; -//2.16.840.1.101.2.1.5.43 SDN.700 INFOSEC attributes sdnsSignatureCKL -static const unsigned char cvOID_sdnsSignatureCKL [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x05, 0x2B}; -//2.16.840.1.101.2.1.5.44 SDN.700 INFOSEC attributes sdnsCertificateRevocationList -static const unsigned char cvOID_sdnsCertificateRevocationList [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x05, 0x2C}; -//2.16.840.1.101.2.1.5.45 SDN.700 INFOSEC attributes (superseded) fortezzaCertificateRevocationList -static const unsigned char cvOID_fortezzaCertificateRevocationList [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x05, 0x2D}; -//2.16.840.1.101.2.1.5.46 SDN.700 INFOSEC attributes fortezzaCKL -static const unsigned char cvOID_fortezzaCKL [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x05, 0x2E}; -//2.16.840.1.101.2.1.5.47 SDN.700 INFOSEC attributes alExemptedAddressProcessor -static const unsigned char cvOID_alExemptedAddressProcessor [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x05, 0x2F}; -//2.16.840.1.101.2.1.5.48 SDN.700 INFOSEC attributes (obsolete) guard -static const unsigned char cvOID_guard [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x05, 0x30}; -//2.16.840.1.101.2.1.5.49 SDN.700 INFOSEC attributes (obsolete) algorithmsSupported -static const unsigned char cvOID_algorithmsSupported [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x05, 0x31}; -//2.16.840.1.101.2.1.5.50 SDN.700 INFOSEC attributes (obsolete) suiteAKeyManagementCertificate -static const unsigned char cvOID_suiteAKeyManagementCertificate [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x05, 0x32}; -//2.16.840.1.101.2.1.5.51 SDN.700 INFOSEC attributes (obsolete) suiteAKMandSigCertificate -static const unsigned char cvOID_suiteAKMandSigCertificate [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x05, 0x33}; -//2.16.840.1.101.2.1.5.52 SDN.700 INFOSEC attributes (obsolete) suiteAUserSignatureCertificate -static const unsigned char cvOID_suiteAUserSignatureCertificate [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x05, 0x34}; -//2.16.840.1.101.2.1.5.53 SDN.700 INFOSEC attributes prbacInfo -static const unsigned char cvOID_prbacInfo [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x05, 0x35}; -//2.16.840.1.101.2.1.5.54 SDN.700 INFOSEC attributes prbacCAstatic constraints -static const unsigned char cvOID_prbacCAconstraints [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x05, 0x36}; -//2.16.840.1.101.2.1.5.55 SDN.700 INFOSEC attributes sigOrKMPrivileges -static const unsigned char cvOID_sigOrKMPrivileges [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x05, 0x37}; -//2.16.840.1.101.2.1.5.56 SDN.700 INFOSEC attributes commPrivileges -static const unsigned char cvOID_commPrivileges [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x05, 0x38}; -//2.16.840.1.101.2.1.5.57 SDN.700 INFOSEC attributes labeledAttribute -static const unsigned char cvOID_labeledAttribute [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x05, 0x39}; -//2.16.840.1.101.2.1.5.58 SDN.700 INFOSEC attributes (obsolete) policyInformationFile -static const unsigned char cvOID_policyInformationFile [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x05, 0x3A}; -//2.16.840.1.101.2.1.5.59 SDN.700 INFOSEC attributes secPolicyInformationFile -static const unsigned char cvOID_secPolicyInformationFile [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x05, 0x3B}; -//2.16.840.1.101.2.1.5.60 SDN.700 INFOSEC attributes cAClearancestatic constraint -static const unsigned char cvOID_cAClearanceconstraint [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x05, 0x3C}; -//2.16.840.1.101.2.1.7.1 SDN.700 INFOSEC extensions cspExtns -static const unsigned char cvOID_cspExtns [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x07, 0x01}; -//2.16.840.1.101.2.1.7.1.0 SDN.700 INFOSEC extensions cspCsExtn -static const unsigned char cvOID_cspCsExtn [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x07, 0x01, 0x00}; -//2.16.840.1.101.2.1.8.1 SDN.700 INFOSEC security category mISSISecurityCategories -static const unsigned char cvOID_mISSISecurityCategories [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x08, 0x01}; -//2.16.840.1.101.2.1.8.2 SDN.700 INFOSEC security category standardSecurityLabelPrivileges -static const unsigned char cvOID_standardSecurityLabelPrivileges [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x08, 0x02}; -//2.16.840.1.101.2.1.10.1 SDN.700 INFOSEC privileges sigPrivileges -static const unsigned char cvOID_sigPrivileges [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x0A, 0x01}; -//2.16.840.1.101.2.1.10.2 SDN.700 INFOSEC privileges kmPrivileges -static const unsigned char cvOID_kmPrivileges [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x0A, 0x02}; -//2.16.840.1.101.2.1.10.3 SDN.700 INFOSEC privileges namedTagSetPrivilege -static const unsigned char cvOID_namedTagSetPrivilege [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x0A, 0x03}; -//2.16.840.1.101.2.1.11.1 SDN.700 INFOSEC certificate policy ukDemo -static const unsigned char cvOID_ukDemo [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x0B, 0x01}; -//2.16.840.1.101.2.1.11.2 SDN.700 INFOSEC certificate policy usDODClass2 -static const unsigned char cvOID_usDODClass2 [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x0B, 0x02}; -//2.16.840.1.101.2.1.11.3 SDN.700 INFOSEC certificate policy usMediumPilot -static const unsigned char cvOID_usMediumPilot [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x0B, 0x03}; -//2.16.840.1.101.2.1.11.4 SDN.700 INFOSEC certificate policy usDODClass4 -static const unsigned char cvOID_usDODClass4 [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x0B, 0x04}; -//2.16.840.1.101.2.1.11.5 SDN.700 INFOSEC certificate policy usDODClass3 -static const unsigned char cvOID_usDODClass3 [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x0B, 0x05}; -//2.16.840.1.101.2.1.11.6 SDN.700 INFOSEC certificate policy usDODClass5 -static const unsigned char cvOID_usDODClass5 [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x0B, 0x06}; -//2.16.840.1.101.2.1.12.0 SDN.700 INFOSEC test objects testSecurityPolicy -static const unsigned char cvOID_testSecurityPolicy [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x0C, 0x00}; -//2.16.840.1.101.2.1.12.0.1 SDN.700 INFOSEC test objects tsp1 -static const unsigned char cvOID_tsp1 [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x0C, 0x00, 0x01}; -//2.16.840.1.101.2.1.12.0.1.0 SDN.700 INFOSEC test objects tsp1SecurityCategories -static const unsigned char cvOID_tsp1SecurityCategories [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x0C, 0x00, 0x01, 0x00}; -//2.16.840.1.101.2.1.12.0.1.0.0 SDN.700 INFOSEC test objects tsp1TagSetZero -static const unsigned char cvOID_tsp1TagSetZero [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x0C, 0x00, 0x01, 0x00, 0x00}; -//2.16.840.1.101.2.1.12.0.1.0.1 SDN.700 INFOSEC test objects tsp1TagSetOne -static const unsigned char cvOID_tsp1TagSetOne [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x0C, 0x00, 0x01, 0x00, 0x01}; -//2.16.840.1.101.2.1.12.0.1.0.2 SDN.700 INFOSEC test objects tsp1TagSetTwo -static const unsigned char cvOID_tsp1TagSetTwo [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x0C, 0x00, 0x01, 0x00, 0x02}; -//2.16.840.1.101.2.1.12.0.2 SDN.700 INFOSEC test objects tsp2 -static const unsigned char cvOID_tsp2 [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x0C, 0x00, 0x02}; -//2.16.840.1.101.2.1.12.0.2.0 SDN.700 INFOSEC test objects tsp2SecurityCategories -static const unsigned char cvOID_tsp2SecurityCategories [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x0C, 0x00, 0x02, 0x00}; -//2.16.840.1.101.2.1.12.0.2.0.0 SDN.700 INFOSEC test objects tsp2TagSetZero -static const unsigned char cvOID_tsp2TagSetZero [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x0C, 0x00, 0x02, 0x00, 0x00}; -//2.16.840.1.101.2.1.12.0.2.0.1 SDN.700 INFOSEC test objects tsp2TagSetOne -static const unsigned char cvOID_tsp2TagSetOne [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x0C, 0x00, 0x02, 0x00, 0x01}; -//2.16.840.1.101.2.1.12.0.2.0.2 SDN.700 INFOSEC test objects tsp2TagSetTwo -static const unsigned char cvOID_tsp2TagSetTwo [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x0C, 0x00, 0x02, 0x00, 0x02}; -//2.16.840.1.101.2.1.12.0.3 SDN.700 INFOSEC test objects kafka -static const unsigned char cvOID_kafka [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x0C, 0x00, 0x03}; -//2.16.840.1.101.2.1.12.0.3.0 SDN.700 INFOSEC test objects kafkaSecurityCategories -static const unsigned char cvOID_kafkaSecurityCategories [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x0C, 0x00, 0x03, 0x00}; -//2.16.840.1.101.2.1.12.0.3.0.1 SDN.700 INFOSEC test objects kafkaTagSetName1 -static const unsigned char cvOID_kafkaTagSetName1 [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x0C, 0x00, 0x03, 0x00, 0x01}; -//2.16.840.1.101.2.1.12.0.3.0.2 SDN.700 INFOSEC test objects kafkaTagSetName2 -static const unsigned char cvOID_kafkaTagSetName2 [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x0C, 0x00, 0x03, 0x00, 0x02}; -//2.16.840.1.101.2.1.12.0.3.0.3 SDN.700 INFOSEC test objects kafkaTagSetName3 -static const unsigned char cvOID_kafkaTagSetName3 [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x0C, 0x00, 0x03, 0x00, 0x03}; -//2.16.840.1.101.2.1.12.1.1 SDN.700 INFOSEC test objects tcp1 -static const unsigned char cvOID_tcp1 [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x0C, 0x01, 0x01}; -//2.16.840.1.101.3.1 CSOR GAK slabel -static const unsigned char cvOID_slabel [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x03, 0x01}; -//2.16.840.1.101.3.2 CSOR GAK pki -static const unsigned char cvOID_pki [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x03, 0x02}; -//2.16.840.1.101.3.2.1 CSOR GAK policy GAK policyIdentifier -static const unsigned char cvOID_GAK_policyIdentifier [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x03, 0x02, 0x01}; -//2.16.840.1.101.3.2.2 CSOR GAK extended key usage GAK -static const unsigned char cvOID_GAK [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x03, 0x02, 0x02}; -//2.16.840.1.101.3.2.2.1 CSOR GAK extended key usage kRAKey -static const unsigned char cvOID_kRAKey [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x03, 0x02, 0x02, 0x01}; -//2.16.840.1.101.3.2.3 CSOR GAK extensions extensions -static const unsigned char cvOID_extensions [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x03, 0x02, 0x03}; -//2.16.840.1.101.3.2.3.1 CSOR GAK extensions kRTechnique -static const unsigned char cvOID_kRTechnique [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x03, 0x02, 0x03, 0x01}; -//2.16.840.1.101.3.2.3.2 CSOR GAK extensions kRecoveryCapable -static const unsigned char cvOID_kRecoveryCapable [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x03, 0x02, 0x03, 0x02}; -//2.16.840.1.101.3.2.3.3 CSOR GAK extensions kR -static const unsigned char cvOID_kR [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x03, 0x02, 0x03, 0x03}; -//2.16.840.1.101.3.2.4 CSOR GAK keyrecoveryschemes -static const unsigned char cvOID_keyrecoveryschemes [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x03, 0x02, 0x04}; -//2.16.840.1.101.3.2.5 CSOR GAK krapola -static const unsigned char cvOID_krapola [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x03, 0x02, 0x05}; -//2.16.840.1.101.3.3 CSOR GAK arpa -static const unsigned char cvOID_arpa [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x03, 0x03}; -//2.16.840.1.113719.1.9 Novell pki -static const unsigned char cvOID_pki_Novell [] = { 0x60, 0x86, 0x48, 0x01, 0x86, 0xF8, 0x37, 0x01, 0x09}; -//2.16.840.1.113719.1.9.4 Novell PKI pkiAttributeType -static const unsigned char cvOID_pkiAttributeType [] = { 0x60, 0x86, 0x48, 0x01, 0x86, 0xF8, 0x37, 0x01, 0x09, 0x04}; -//2.16.840.1.113719.1.9.4.1 Novell PKI attribute type registeredAttributes -static const unsigned char cvOID_registeredAttributes [] = { 0x60, 0x86, 0x48, 0x01, 0x86, 0xF8, 0x37, 0x01, 0x09, 0x04, 0x01}; -//2.16.840.1.113719.1.9.4.2 Novell PKI attribute type relianceLimit -static const unsigned char cvOID_relianceLimit [] = { 0x60, 0x86, 0x48, 0x01, 0x86, 0xF8, 0x37, 0x01, 0x09, 0x04, 0x02}; -//2.16.840.1.113730.1 Netscape cert-extension -static const unsigned char cvOID_cert_extension [] = { 0x60, 0x86, 0x48, 0x01, 0x86, 0xF8, 0x42, 0x01}; -//2.16.840.1.113730.1.1 Netscape certificate extension netscape-cert-type -static const unsigned char cvOID_netscape_cert_type [] = { 0x60, 0x86, 0x48, 0x01, 0x86, 0xF8, 0x42, 0x01, 0x01}; -//2.16.840.1.113730.1.2 Netscape certificate extension netscape-base-url -static const unsigned char cvOID_netscape_base_url [] = { 0x60, 0x86, 0x48, 0x01, 0x86, 0xF8, 0x42, 0x01, 0x02}; -//2.16.840.1.113730.1.3 Netscape certificate extension netscape-revocation-url -static const unsigned char cvOID_netscape_revocation_url [] = { 0x60, 0x86, 0x48, 0x01, 0x86, 0xF8, 0x42, 0x01, 0x03}; -//2.16.840.1.113730.1.4 Netscape certificate extension netscape-ca-revocation-url -static const unsigned char cvOID_netscape_ca_revocation_url [] = { 0x60, 0x86, 0x48, 0x01, 0x86, 0xF8, 0x42, 0x01, 0x04}; -//2.16.840.1.113730.1.7 Netscape certificate extension netscape-cert-renewal-url -static const unsigned char cvOID_netscape_cert_renewal_url [] = { 0x60, 0x86, 0x48, 0x01, 0x86, 0xF8, 0x42, 0x01, 0x07}; -//2.16.840.1.113730.1.8 Netscape certificate extension netscape-ca-policy-url -static const unsigned char cvOID_netscape_ca_policy_url [] = { 0x60, 0x86, 0x48, 0x01, 0x86, 0xF8, 0x42, 0x01, 0x08}; -//2.16.840.1.113730.1.9 Netscape certificate extension HomePage-url -static const unsigned char cvOID_HomePage_url [] = { 0x60, 0x86, 0x48, 0x01, 0x86, 0xF8, 0x42, 0x01, 0x09}; -//2.16.840.1.113730.1.10 Netscape certificate extension EntityLogo -static const unsigned char cvOID_EntityLogo [] = { 0x60, 0x86, 0x48, 0x01, 0x86, 0xF8, 0x42, 0x01, 0x0A}; -//2.16.840.1.113730.1.11 Netscape certificate extension UserPicture -static const unsigned char cvOID_UserPicture [] = { 0x60, 0x86, 0x48, 0x01, 0x86, 0xF8, 0x42, 0x01, 0x0B}; -//2.16.840.1.113730.1.12 Netscape certificate extension netscape-ssl-server-name -static const unsigned char cvOID_netscape_ssl_server_name [] = { 0x60, 0x86, 0x48, 0x01, 0x86, 0xF8, 0x42, 0x01, 0x0C}; -//2.16.840.1.113730.1.13 Netscape certificate extension netscape-comment -static const unsigned char cvOID_netscape_comment [] = { 0x60, 0x86, 0x48, 0x01, 0x86, 0xF8, 0x42, 0x01, 0x0D}; -//2.16.840.1.113730.2 Netscape data-type -static const unsigned char cvOID_data_type [] = { 0x60, 0x86, 0x48, 0x01, 0x86, 0xF8, 0x42, 0x02}; -//2.16.840.1.113730.2.1 Netscape data type dataGIF -static const unsigned char cvOID_dataGIF [] = { 0x60, 0x86, 0x48, 0x01, 0x86, 0xF8, 0x42, 0x02, 0x01}; -//2.16.840.1.113730.2.2 Netscape data type dataJPEG -static const unsigned char cvOID_dataJPEG [] = { 0x60, 0x86, 0x48, 0x01, 0x86, 0xF8, 0x42, 0x02, 0x02}; -//2.16.840.1.113730.2.3 Netscape data type dataURL -static const unsigned char cvOID_dataURL [] = { 0x60, 0x86, 0x48, 0x01, 0x86, 0xF8, 0x42, 0x02, 0x03}; -//2.16.840.1.113730.2.4 Netscape data type dataHTML -static const unsigned char cvOID_dataHTML [] = { 0x60, 0x86, 0x48, 0x01, 0x86, 0xF8, 0x42, 0x02, 0x04}; -//2.16.840.1.113730.2.5 Netscape data type certSequence -static const unsigned char cvOID_certSequence [] = { 0x60, 0x86, 0x48, 0x01, 0x86, 0xF8, 0x42, 0x02, 0x05}; -//2.16.840.1.113730.2.6 Netscape certificate extension certURL -static const unsigned char cvOID_certURL [] = { 0x60, 0x86, 0x48, 0x01, 0x86, 0xF8, 0x42, 0x02, 0x06}; -//2.16.840.1.113730.3 Netscape directory -static const unsigned char cvOID_directory [] = { 0x60, 0x86, 0x48, 0x01, 0x86, 0xF8, 0x42, 0x03}; -//2.16.840.1.113730.3.1 Netscape directory ldapDefinitions -static const unsigned char cvOID_ldapDefinitions [] = { 0x60, 0x86, 0x48, 0x01, 0x86, 0xF8, 0x42, 0x03, 0x01}; -//2.16.840.1.113730.3.1.1 Netscape LDAP definitions carLicense -static const unsigned char cvOID_carLicense [] = { 0x60, 0x86, 0x48, 0x01, 0x86, 0xF8, 0x42, 0x03, 0x01, 0x01}; -//2.16.840.1.113730.3.1.2 Netscape LDAP definitions departmentNumber -static const unsigned char cvOID_departmentNumber [] = { 0x60, 0x86, 0x48, 0x01, 0x86, 0xF8, 0x42, 0x03, 0x01, 0x02}; -//2.16.840.1.113730.3.1.3 Netscape LDAP definitions employeeNumber -static const unsigned char cvOID_employeeNumber [] = { 0x60, 0x86, 0x48, 0x01, 0x86, 0xF8, 0x42, 0x03, 0x01, 0x03}; -//2.16.840.1.113730.3.1.4 Netscape LDAP definitions employeeType -static const unsigned char cvOID_employeeType [] = { 0x60, 0x86, 0x48, 0x01, 0x86, 0xF8, 0x42, 0x03, 0x01, 0x04}; -//2.16.840.1.113730.3.2.2 Netscape LDAP definitions inetOrgPerson -static const unsigned char cvOID_inetOrgPerson [] = { 0x60, 0x86, 0x48, 0x01, 0x86, 0xF8, 0x42, 0x03, 0x02, 0x02}; -//2.16.840.1.113730.4.1 Netscape serverGatedCrypto -static const unsigned char cvOID_serverGatedCrypto_Netscape [] = { 0x60, 0x86, 0x48, 0x01, 0x86, 0xF8, 0x42, 0x04, 0x01}; -//2.16.840.1.113733.1.6.3 Verisign Unknown Verisign extension -static const unsigned char cvOID_Unknown_Verisign_extension_1 [] = { 0x60, 0x86, 0x48, 0x01, 0x86, 0xF8, 0x45, 0x01, 0x06, 0x03}; -//2.16.840.1.113733.1.6.6 Verisign Unknown Verisign extension -static const unsigned char cvOID_Unknown_Verisign_extension_2 [] = { 0x60, 0x86, 0x48, 0x01, 0x86, 0xF8, 0x45, 0x01, 0x06, 0x06}; -//2.16.840.1.113733.1.7.1.1 Verisign Verisign certificatePolicy -static const unsigned char cvOID_Verisign_certificatePolicy [] = { 0x60, 0x86, 0x48, 0x01, 0x86, 0xF8, 0x45, 0x01, 0x07, 0x01, 0x01}; -//2.16.840.1.113733.1.7.1.1.1 Verisign Unknown Verisign policy qualifier -static const unsigned char cvOID_Unknown_Verisign_policy_qualifier_1 [] = { 0x60, 0x86, 0x48, 0x01, 0x86, 0xF8, 0x45, 0x01, 0x07, 0x01, 0x01, 0x01}; -//2.16.840.1.113733.1.7.1.1.2 Verisign Unknown Verisign policy qualifier -static const unsigned char cvOID_Unknown_Verisign_policy_qualifier_2 [] = { 0x60, 0x86, 0x48, 0x01, 0x86, 0xF8, 0x45, 0x01, 0x07, 0x01, 0x01, 0x02}; -//2.16.840.1.113733.1.8.1 Verisign Verisign SGC CA? -static const unsigned char cvOID_Verisign_SGC_CA [] = { 0x60, 0x86, 0x48, 0x01, 0x86, 0xF8, 0x45, 0x01, 0x08, 0x01}; -//2.23.42.0 SET contentType -static const unsigned char cvOID_contentType_SET [] = { 0x67, 0x2A, 0x00}; -//2.23.42.0.0 SET contentType PANData -static const unsigned char cvOID_PANData [] = { 0x67, 0x2A, 0x00, 0x00}; -//2.23.42.0.1 SET contentType PANToken -static const unsigned char cvOID_PANToken [] = { 0x67, 0x2A, 0x00, 0x01}; -//2.23.42.0.2 SET contentType PANOnly -static const unsigned char cvOID_PANOnly [] = { 0x67, 0x2A, 0x00, 0x02}; -//2.23.42.1 SET msgExt -static const unsigned char cvOID_msgExt [] = { 0x67, 0x2A, 0x01}; -//2.23.42.2 SET field -static const unsigned char cvOID_field [] = { 0x67, 0x2A, 0x02}; -//2.23.42.2.0 SET field fullName -static const unsigned char cvOID_fullName [] = { 0x67, 0x2A, 0x02, 0x00}; -//2.23.42.2.1 SET field givenName -static const unsigned char cvOID_givenName_SET [] = { 0x67, 0x2A, 0x02, 0x01}; -//2.23.42.2.2 SET field familyName -static const unsigned char cvOID_familyName [] = { 0x67, 0x2A, 0x02, 0x02}; -//2.23.42.2.3 SET field birthFamilyName -static const unsigned char cvOID_birthFamilyName [] = { 0x67, 0x2A, 0x02, 0x03}; -//2.23.42.2.4 SET field placeName -static const unsigned char cvOID_placeName [] = { 0x67, 0x2A, 0x02, 0x04}; -//2.23.42.2.5 SET field identificationNumber -static const unsigned char cvOID_identificationNumber [] = { 0x67, 0x2A, 0x02, 0x05}; -//2.23.42.2.6 SET field month -static const unsigned char cvOID_month [] = { 0x67, 0x2A, 0x02, 0x06}; -//2.23.42.2.7 SET field date -static const unsigned char cvOID_date [] = { 0x67, 0x2A, 0x02, 0x07}; -//2.23.42.2.8 SET field address -static const unsigned char cvOID_address [] = { 0x67, 0x2A, 0x02, 0x08}; -//2.23.42.2.9 SET field telephone -static const unsigned char cvOID_telephone [] = { 0x67, 0x2A, 0x02, 0x09}; -//2.23.42.2.10 SET field amount -static const unsigned char cvOID_amount [] = { 0x67, 0x2A, 0x02, 0x0A}; -//2.23.42.2.7.11 SET field accountNumber -static const unsigned char cvOID_accountNumber [] = { 0x67, 0x2A, 0x02, 0x0B}; -//2.23.42.2.7.12 SET field passPhrase -static const unsigned char cvOID_passPhrase [] = { 0x67, 0x2A, 0x02, 0x0C}; -//2.23.42.3 SET attribute -static const unsigned char cvOID_attribute_SET [] = { 0x67, 0x2A, 0x03}; -//2.23.42.3.0 SET attribute cert -static const unsigned char cvOID_cert_SET [] = { 0x67, 0x2A, 0x03, 0x00}; -//2.23.42.3.0.0 SET cert attribute rootKeyThumb -static const unsigned char cvOID_rootKeyThumb [] = { 0x67, 0x2A, 0x03, 0x00, 0x00}; -//2.23.42.3.0.1 SET cert attribute additionalPolicy -static const unsigned char cvOID_additionalPolicy [] = { 0x67, 0x2A, 0x03, 0x00, 0x01}; -//2.23.42.4 SET algorithm -static const unsigned char cvOID_algorithm_SET [] = { 0x67, 0x2A, 0x04}; -//2.23.42.5 SET policy -static const unsigned char cvOID_policy_SET [] = { 0x67, 0x2A, 0x05}; -//2.23.42.5.0 SET policy root -static const unsigned char cvOID_root [] = { 0x67, 0x2A, 0x05, 0x00}; -//2.23.42.6 SET module -static const unsigned char cvOID_module_SET [] = { 0x67, 0x2A, 0x06}; -//2.23.42.7 SET certExt -static const unsigned char cvOID_certExt [] = { 0x67, 0x2A, 0x07}; -//2.23.42.7.0 SET cert extension hashedRootKey -static const unsigned char cvOID_hashedRootKey [] = { 0x67, 0x2A, 0x07, 0x00}; -//2.23.42.7.1 SET cert extension certificateType -static const unsigned char cvOID_certificateType_SET [] = { 0x67, 0x2A, 0x07, 0x01}; -//2.23.42.7.2 SET cert extension merchantData -static const unsigned char cvOID_merchantData [] = { 0x67, 0x2A, 0x07, 0x02}; -//2.23.42.7.3 SET cert extension cardCertRequired -static const unsigned char cvOID_cardCertRequired [] = { 0x67, 0x2A, 0x07, 0x03}; -//2.23.42.7.4 SET cert extension tunneling -static const unsigned char cvOID_tunneling [] = { 0x67, 0x2A, 0x07, 0x04}; -//2.23.42.7.5 SET cert extension setExtensions -static const unsigned char cvOID_setExtensions [] = { 0x67, 0x2A, 0x07, 0x05}; -//2.23.42.7.6 SET cert extension setQualifier -static const unsigned char cvOID_setQualifier [] = { 0x67, 0x2A, 0x07, 0x06}; -//2.23.42.8 SET brand -static const unsigned char cvOID_brand [] = { 0x67, 0x2A, 0x08}; -//2.23.42.8.1 SET brand IATA-ATA -static const unsigned char cvOID_IATA_ATA [] = { 0x67, 0x2A, 0x08, 0x01}; -//2.23.42.8.4 SET brand VISA -static const unsigned char cvOID_VISA [] = { 0x67, 0x2A, 0x08, 0x04}; -//2.23.42.8.5 SET brand MasterCard -static const unsigned char cvOID_MasterCard [] = { 0x67, 0x2A, 0x08, 0x05}; -//2.23.42.8.30 SET brand Diners -static const unsigned char cvOID_Diners [] = { 0x67, 0x2A, 0x08, 0x1E}; -//2.23.42.8.34 SET brand AmericanExpress -static const unsigned char cvOID_AmericanExpress [] = { 0x67, 0x2A, 0x08, 0x22}; -//2.23.42.8.6011 SET brand Novus -static const unsigned char cvOID_Novus [] = { 0x67, 0x2A, 0x08, 0xAE, 0x7B}; -//2.23.42.9 SET vendor -static const unsigned char cvOID_vendor [] = { 0x67, 0x2A, 0x09}; -//2.23.42.9.0 SET vendor GlobeSet -static const unsigned char cvOID_GlobeSet [] = { 0x67, 0x2A, 0x09, 0x00}; -//2.23.42.9.1 SET vendor IBM -static const unsigned char cvOID_IBM [] = { 0x67, 0x2A, 0x09, 0x01}; -//2.23.42.9.2 SET vendor CyberCash -static const unsigned char cvOID_CyberCash [] = { 0x67, 0x2A, 0x09, 0x02}; -//2.23.42.9.3 SET vendor Terisa -static const unsigned char cvOID_Terisa [] = { 0x67, 0x2A, 0x09, 0x03}; -//2.23.42.9.4 SET vendor RSADSI -static const unsigned char cvOID_RSADSI [] = { 0x67, 0x2A, 0x09, 0x04}; -//2.23.42.9.5 SET vendor VeriFone -static const unsigned char cvOID_VeriFone [] = { 0x67, 0x2A, 0x09, 0x05}; -//2.23.42.9.6 SET vendor TrinTech -static const unsigned char cvOID_TrinTech [] = { 0x67, 0x2A, 0x09, 0x06}; -//2.23.42.9.7 SET vendor BankGate -static const unsigned char cvOID_BankGate [] = { 0x67, 0x2A, 0x09, 0x07}; -//2.23.42.9.8 SET vendor GTE -static const unsigned char cvOID_GTE [] = { 0x67, 0x2A, 0x09, 0x08}; -//2.23.42.9.9 SET vendor CompuSource -static const unsigned char cvOID_CompuSource [] = { 0x67, 0x2A, 0x09, 0x09}; -//2.23.42.9.10 SET vendor Griffin -static const unsigned char cvOID_Griffin [] = { 0x67, 0x2A, 0x09, 0x0A}; -//2.23.42.9.11 SET vendor Certicom -static const unsigned char cvOID_Certicom [] = { 0x67, 0x2A, 0x09, 0x0B}; -//2.23.42.9.12 SET vendor OSS -static const unsigned char cvOID_OSS [] = { 0x67, 0x2A, 0x09, 0x0C}; -//2.23.42.9.13 SET vendor TenthMountain -static const unsigned char cvOID_TenthMountain [] = { 0x67, 0x2A, 0x09, 0x0D}; -//2.23.42.9.14 SET vendor Antares -static const unsigned char cvOID_Antares [] = { 0x67, 0x2A, 0x09, 0x0E}; -//2.23.42.9.15 SET vendor ECC -static const unsigned char cvOID_ECC [] = { 0x67, 0x2A, 0x09, 0x0F}; -//2.23.42.9.16 SET vendor Maithean -static const unsigned char cvOID_Maithean [] = { 0x67, 0x2A, 0x09, 0x10}; -//2.23.42.9.17 SET vendor Netscape -static const unsigned char cvOID_Netscape [] = { 0x67, 0x2A, 0x09, 0x11}; -//2.23.42.9.18 SET vendor Verisign -static const unsigned char cvOID_Verisign [] = { 0x67, 0x2A, 0x09, 0x12}; -//2.23.42.9.19 SET vendor BlueMoney -static const unsigned char cvOID_BlueMoney [] = { 0x67, 0x2A, 0x09, 0x13}; -//2.23.42.9.20 SET vendor Lacerte -static const unsigned char cvOID_Lacerte [] = { 0x67, 0x2A, 0x09, 0x14}; -//2.23.42.9.21 SET vendor Fujitsu -static const unsigned char cvOID_Fujitsu [] = { 0x67, 0x2A, 0x09, 0x15}; -//2.23.42.9.22 SET vendor eLab -static const unsigned char cvOID_eLab [] = { 0x67, 0x2A, 0x09, 0x16}; -//2.23.42.9.23 SET vendor Entrust -static const unsigned char cvOID_Entrust [] = { 0x67, 0x2A, 0x09, 0x17}; -//2.23.42.9.24 SET vendor VIAnet -static const unsigned char cvOID_VIAnet [] = { 0x67, 0x2A, 0x09, 0x18}; -//2.23.42.9.25 SET vendor III -static const unsigned char cvOID_III [] = { 0x67, 0x2A, 0x09, 0x19}; -//2.23.42.9.26 SET vendor OpenMarket -static const unsigned char cvOID_OpenMarket [] = { 0x67, 0x2A, 0x09, 0x1A}; -//2.23.42.9.27 SET vendor Lexem -static const unsigned char cvOID_Lexem [] = { 0x67, 0x2A, 0x09, 0x1B}; -//2.23.42.9.28 SET vendor Intertrader -static const unsigned char cvOID_Intertrader [] = { 0x67, 0x2A, 0x09, 0x1C}; -//2.23.42.9.29 SET vendor Persimmon -static const unsigned char cvOID_Persimmon [] = { 0x67, 0x2A, 0x09, 0x1D}; -//2.23.42.9.30 SET vendor NABLE -static const unsigned char cvOID_NABLE [] = { 0x67, 0x2A, 0x09, 0x1E}; -//2.23.42.9.31 SET vendor espace-net -static const unsigned char cvOID_espace_net [] = { 0x67, 0x2A, 0x09, 0x1F}; -//2.23.42.9.32 SET vendor Hitachi -static const unsigned char cvOID_Hitachi [] = { 0x67, 0x2A, 0x09, 0x20}; -//2.23.42.9.33 SET vendor Microsoft -static const unsigned char cvOID_Microsoft [] = { 0x67, 0x2A, 0x09, 0x21}; -//2.23.42.9.34 SET vendor NEC -static const unsigned char cvOID_NEC [] = { 0x67, 0x2A, 0x09, 0x22}; -//2.23.42.9.35 SET vendor Mitsubishi -static const unsigned char cvOID_Mitsubishi [] = { 0x67, 0x2A, 0x09, 0x23}; -//2.23.42.9.36 SET vendor NCR -static const unsigned char cvOID_NCR [] = { 0x67, 0x2A, 0x09, 0x24}; -//2.23.42.9.37 SET vendor e-COMM -static const unsigned char cvOID_e_COMM [] = { 0x67, 0x2A, 0x09, 0x25}; -//2.23.42.9.38 SET vendor Gemplus -static const unsigned char cvOID_Gemplus [] = { 0x67, 0x2A, 0x09, 0x26}; -//2.23.42.10 SET national -static const unsigned char cvOID_national [] = { 0x67, 0x2A, 0x0A}; -//2.23.42.10.192 SET national Japan -static const unsigned char cvOID_Japan [] = { 0x67, 0x2A, 0x0A, 0x81, 0x40}; -//2.54.1775.2 SET. Deprecated, use (2 23 42 7 0) instead hashedRootKey -static const unsigned char cvOID_hashedRootKey_old [] = { 0x86, 0x8D, 0x6F, 0x02}; -//2.54.1775.3 SET. Deprecated, use (2 23 42 7 0) instead certificateType -static const unsigned char cvOID_certificateType_old [] = { 0x86, 0x8D, 0x6F, 0x03}; -//2.54.1775.4 SET. Deprecated, use (2 23 42 7 0) instead merchantData -static const unsigned char cvOID_merchantData_old [] = { 0x86, 0x8D, 0x6F, 0x04}; -//2.54.1775.5 SET. Deprecated, use (2 23 42 7 0) instead cardCertRequired -static const unsigned char cvOID_cardCertRequired_old [] = { 0x86, 0x8D, 0x6F, 0x05}; -//2.54.1775.6 SET. Deprecated, use (2 23 42 7 0) instead tunneling -static const unsigned char cvOID_tunneling_old [] = { 0x86, 0x8D, 0x6F, 0x06}; -//2.54.1775.7 SET. Deprecated, use (2 23 42 7 0) instead setQualifier -static const unsigned char cvOID_setQualifier_old [] = { 0x86, 0x8D, 0x6F, 0x07}; -//2.54.1775.99 SET. Deprecated, use (2 23 42 7 0) instead set-data -static const unsigned char cvOID_set_data_old [] = { 0x86, 0x8D, 0x6F, 0x63}; - -#ifdef _MSC_VER -#pragma warning(default : 4305) -#pragma warning(default : 4309) -#endif - -#endif - diff --git a/actlibrary/SLES-11-i686/Release/include/actPKCS15BehaviorKit.h b/actlibrary/SLES-11-i686/Release/include/actPKCS15BehaviorKit.h deleted file mode 100644 index cdac8da..0000000 --- a/actlibrary/SLES-11-i686/Release/include/actPKCS15BehaviorKit.h +++ /dev/null @@ -1,43 +0,0 @@ -// --------------------------------------------------------------------------- -// Name: actPKCS15BehaviorKit.h -// Product: cv act library -// Purpose: Factory functions to create specific PKCS15Behavior objects. -// -// Copyright: (c) 2008 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -// -// Autor: Markus Tesche -// Date: 06/02/2008 -// --------------------------------------------------------------------------- - -#ifndef ACT_PKCS15BehaviorKit_h -#define ACT_PKCS15BehaviorKit_h - -#include - -namespace act -{ - class IToken; - class IPKCS15Behavior; - - // default behavior, does nothing - IPKCS15Behavior* CreatePKCS15Behavior(const char* mid, IToken* token); - - // specialized behavior - IPKCS15Behavior* CreateSafeSignBehavior(const char* mid, IToken* token); - IPKCS15Behavior* CreateStarSignBehavior(const char* mid, IToken* token); - IPKCS15Behavior* CreateJCPKCS15Behavior(const char* mid, IToken* token); - IPKCS15Behavior* CreateJCPKCS15mEACBehavior(const char* mid, IToken* token); - IPKCS15Behavior* CreateHiPathBehavior(const char* mid, IToken* token); - IPKCS15Behavior* CreateV4PKCS15Behavior(const char* mid, IToken* token); - IPKCS15Behavior* CreateACOSPKCS15Behavior(const char* mid, IToken* token); - IPKCS15Behavior* CreateStarCOSPKCS15Behavior(const char* mid, IToken* token); - IPKCS15Behavior* CreateNexusBehavior(const char* mid, IToken* token); - IPKCS15Behavior* CreateVWBehavior(const char* mid, IToken* token); // Nexus derived - IPKCS15Behavior* CreateDTRUSTBehavior(const char* mid, IToken* token); // Nexus derived - -} // namespace act - -#endif // ACT_PKCS15BehaviorKit_h diff --git a/actlibrary/SLES-11-i686/Release/include/actPKCS15BehaviorReg.h b/actlibrary/SLES-11-i686/Release/include/actPKCS15BehaviorReg.h deleted file mode 100644 index 56f39a2..0000000 --- a/actlibrary/SLES-11-i686/Release/include/actPKCS15BehaviorReg.h +++ /dev/null @@ -1,34 +0,0 @@ -// --------------------------------------------------------------------------- -// Name: actPKCS15BehaviorReg.h -// Product: cv act library -// Purpose: Registry for factory functions to create specific PKCS15Behavior objects. -// -// Copyright: (c) 2008 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -// -// Autor: Markus Tesche -// Date: 06/02/2008 -// --------------------------------------------------------------------------- - -#ifndef ACT_PKCS15BehaviorReg_h -#define ACT_PKCS15BehaviorReg_h - -#include "actFactoryReg.h" - -namespace act -{ - class IToken; - class IPKCS15Behavior; - - typedef IPKCS15Behavior* (*CreatePKCS15BehaviorPtr)(const char* mid, IToken* token); - typedef FactoryMapEntry PKCS15BehaviorMapEntry; - - typedef FactoryReg - < IPKCS15Behavior, CreatePKCS15BehaviorPtr, PKCS15BehaviorMapEntry - > PKCS15BehaviorReg; - -} // namespace act - -#endif // ACT_PKCS15BehaviorReg_h diff --git a/actlibrary/SLES-11-i686/Release/include/actPaddingKit.h b/actlibrary/SLES-11-i686/Release/include/actPaddingKit.h deleted file mode 100644 index 01fb93e..0000000 --- a/actlibrary/SLES-11-i686/Release/include/actPaddingKit.h +++ /dev/null @@ -1,26 +0,0 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actPaddingKit.h -// Product: cv act library -// Purpose: declaration of all factory functions -// -// Copyright: (c) 2000 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_PaddingKit_h -#define ACT_PaddingKit_h - -namespace act -{ - class IPadding; - - IPadding* CreatePKCS5Pad(); - IPadding* CreatePKCS1V1_5EMEPad(); - IPadding* CreateOneAndZerosPad(); - IPadding* CreateISO9796Pad(); - IPadding* CreateNoPad(); -} -#endif - diff --git a/actlibrary/SLES-11-i686/Release/include/actPaddingReg.h b/actlibrary/SLES-11-i686/Release/include/actPaddingReg.h deleted file mode 100644 index 4cad768..0000000 --- a/actlibrary/SLES-11-i686/Release/include/actPaddingReg.h +++ /dev/null @@ -1,41 +0,0 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actPaddingReg.h -// Product: cv act library -// Purpose: registry for the factory functions in actPaddingKit.h -// -// Copyright: (c) 2000 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_PaddingReg_h -#define ACT_PaddingReg_h - -namespace act -{ - class IPadding; - class Blob; - - typedef IPadding* (*CreatePaddingPtr)(); - - struct PaddingMapEntry - { - const char* Name; - CreatePaddingPtr CreatePtr; - }; - - class PaddingReg - { - public: - static IPadding* CreatePadding(const char* name); - static CreatePaddingPtr GetCreatePointer(const char* name); - static const char* GetName(void* createptr); - static const char* GetNextName(const char* name); - static void Insert(const char* name, CreatePaddingPtr createptr); - static void Insert(const PaddingMapEntry* paddingmap); - }; - -} // namespace act - -#endif // ACT_PaddingReg_h diff --git a/actlibrary/SLES-11-i686/Release/include/actProfileGeneratorKit.h b/actlibrary/SLES-11-i686/Release/include/actProfileGeneratorKit.h deleted file mode 100644 index 1992c43..0000000 --- a/actlibrary/SLES-11-i686/Release/include/actProfileGeneratorKit.h +++ /dev/null @@ -1,26 +0,0 @@ -// --------------------------------------------------------------------------- -// Name: actProfileGeneratorKit.h -// Product: cv act library -// Purpose: Factory functions for smartcard profile generators. -// -// Copyright: (c) 2009 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -// -// Autor: Markus Tesche -// Date: 12/18/2009 -// --------------------------------------------------------------------------- - -#ifndef ACT_ProfileGeneratorKit_h -#define ACT_ProfileGeneratorKit_h - -namespace act -{ - class IProfileGenerator; - - IProfileGenerator* CreateJCPKCS15Generator(const char* name); - -} // namespace act - -#endif // ACT_ProfileGeneratorKit_h diff --git a/actlibrary/SLES-11-i686/Release/include/actProfileGeneratorReg.h b/actlibrary/SLES-11-i686/Release/include/actProfileGeneratorReg.h deleted file mode 100644 index 0a8f6be..0000000 --- a/actlibrary/SLES-11-i686/Release/include/actProfileGeneratorReg.h +++ /dev/null @@ -1,33 +0,0 @@ -// --------------------------------------------------------------------------- -// Name: actProfileGeneratorReg.h -// Product: cv act library -// Purpose: factory functions registry to create IProfileGenerator objects. -// -// Copyright: (c) 2009 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -// -// Autor: Markus Tesche -// Date: 12/18/2009 -// --------------------------------------------------------------------------- - -#ifndef ACT_ProfileGeneratorReg_h -#define ACT_ProfileGeneratorReg_h - -#include "actFactoryReg.h" - -namespace act -{ - class IProfileGenerator; - - typedef IProfileGenerator* (*CreateProfileGeneratorPtr)(const char*); - typedef FactoryMapEntry ProfileGeneratorMapEntry; - - typedef FactoryReg - < IProfileGenerator, CreateProfileGeneratorPtr, ProfileGeneratorMapEntry - > ProfileGeneratorReg; - -} // namespace act - -#endif // ACT_ProfileGeneratorReg_h diff --git a/actlibrary/SLES-11-i686/Release/include/actRNGKit.h b/actlibrary/SLES-11-i686/Release/include/actRNGKit.h deleted file mode 100644 index 6a8b886..0000000 --- a/actlibrary/SLES-11-i686/Release/include/actRNGKit.h +++ /dev/null @@ -1,44 +0,0 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actRNGKit.h -// Product: cv act library -// Purpose: declaration of all factory functions -// -// Copyright: (c) 2010 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_RNGKit_h -#define ACT_RNGKit_h -namespace act -{ - class IRNGAlg; - - // Dummy PRNG (uses rand() / srand(time(0))) - IRNGAlg* CreateDummyPRNG(); - - // Deterministic PRNGs - IRNGAlg* CreateARC4RNG(); - IRNGAlg* CreateBBS(); - IRNGAlg* CreateFIPS186(); - IRNGAlg* CreateFIPS186DES(); - IRNGAlg* CreateLCG(); - - // AIS 20, K1 - K4 evaluated deterministic PRNG - IRNGAlg* CreateFIPS186K4(); - - // 'True' RNGs - IRNGAlg* CreateDevRandomRNG(); -#ifndef UNDER_CE_30 - IRNGAlg* CreateWinRNG(); -#endif - - // Token RNG (uses IToken::GetRandom()) -#ifndef NO_SMARTCARD - IRNGAlg* CreateTokenRNG(); -#endif -} - -#endif - diff --git a/actlibrary/SLES-11-i686/Release/include/actSCardLock.h b/actlibrary/SLES-11-i686/Release/include/actSCardLock.h deleted file mode 100644 index 3bc753e..0000000 --- a/actlibrary/SLES-11-i686/Release/include/actSCardLock.h +++ /dev/null @@ -1,51 +0,0 @@ -// --------------------------------------------------------------------------- -// Name: actSCardLock.h -// Product: cv act library -// Purpose: Smartcard transaction lock -// -// Copyright: (c) 2009 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -// -// Autor: Markus Tesche -// Date: 07/10/2009 -// --------------------------------------------------------------------------- - -#ifndef ACT_SCardLock_H -#define ACT_SCardLock_H - -#include "actEnv.h" - -#if defined(ACT_64) -# define LOCK_SIZE 32 -#else -# define LOCK_SIZE 16 -#endif - -namespace act -{ - class ISCardOS; - - class SCardLock - { - private: - SCardLock() { } - SCardLock(const SCardLock&) { } - - public: - SCardLock(ISCardOS* os); - ~SCardLock(); - - void Lock(ISCardOS* os); - void Unlock(); - - private: - byte m_lock[LOCK_SIZE]; - }; - -} // namespace act - -#undef LOCK_SIZE - -#endif // ACT_SCardLock_H diff --git a/actlibrary/SLES-11-i686/Release/include/actSCardOSKit.h b/actlibrary/SLES-11-i686/Release/include/actSCardOSKit.h deleted file mode 100644 index 79ae7b0..0000000 --- a/actlibrary/SLES-11-i686/Release/include/actSCardOSKit.h +++ /dev/null @@ -1,170 +0,0 @@ -// --------------------------------------------------------------------------- -// Name: actSCardOSKit.h -// Product: cv act library -// Purpose: registry for factory functions to create SCardOS object -// -// Copyright: (c) 2002 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -// -// Autor: Dr. Xiangdong Wang (XWG) -// Date: 05/13/2002 -// --------------------------------------------------------------------------- - -#ifndef ACT_SCardOSKit_h -#define ACT_SCardOSKit_h - -namespace act -{ - class ISCardOS; - class ISCardAccess; - - /* - ISCardOS* CreateMicardOS(ISCardAccess*); - ISCardOS* CreateMicardo20E(ISCardAccess*); - ISCardOS* CreateMicardo23E(ISCardAccess* ac); - */ - - bool IsACOS(CreateSCardOSPtr ptr); - ISCardOS* CreateACOS_D01(ISCardAccess*); - ISCardOS* CreateACOS_A04(ISCardAccess*); - - bool IsCardOS_M4(CreateSCardOSPtr ptr); - ISCardOS* CreateCardOS_M4(ISCardAccess*); - ISCardOS* CreateCardOS_M4_MoC(ISCardAccess*); - - bool IsCardOS_M4_ECC(CreateSCardOSPtr ptr); - ISCardOS* CreateCardOS_M4_ECC(ISCardAccess*); - - bool IsCardOS_V4(CreateSCardOSPtr ptr); - ISCardOS* CreateCardOS_V4(ISCardAccess*); - - bool IsCardOS_V4_ECC(CreateSCardOSPtr ptr); - ISCardOS* CreateCardOS_V4_ECC(ISCardAccess*); - - bool IsStarCOS(CreateSCardOSPtr ptr); - ISCardOS* CreateStarCOS_3_0(ISCardAccess*); - ISCardOS* CreateStarCOS_3_2(ISCardAccess*); - - bool IsTCOS(CreateSCardOSPtr ptr); - ISCardOS* CreateTCOS_3_0(ISCardAccess*); - - bool IsJavaCardOS(CreateSCardOSPtr ptr); - ISCardOS* CreateJavaCardOS_2_2_2(ISCardAccess*); - ISCardOS* CreateJavaCardOS_2_2_1(ISCardAccess*); - ISCardOS* CreateJavaCardOS_2_2(ISCardAccess*); - ISCardOS* CreateJavaCardOS_2_1_2(ISCardAccess*); - ISCardOS* CreateJavaCardOS_2_1_1(ISCardAccess*); - ISCardOS* CreateJavaCardOS_2_1(ISCardAccess*); - - bool IsISO7816OS(CreateSCardOSPtr ptr); - ISCardOS* CreateISO7816OS(ISCardAccess*); - - // - // Passport OS - // --------------------------------------------------------------------------- - bool IsBACOS(CreateSCardOSPtr ptr); - ISCardOS* CreateBACOS(ISCardAccess* ac); - - bool IsEACOS(CreateSCardOSPtr ptr); - ISCardOS* CreateEACOS(ISCardAccess* ac); - - bool IsEACOS201(CreateSCardOSPtr ptr); - ISCardOS* CreateEACOS201(ISCardAccess* ac); - - bool IsEPAOS(CreateSCardOSPtr ptr); - ISCardOS* CreateEPAOS(ISCardAccess* ac); - - - // --------------------------------------------------------------------------- - inline bool IsACOS(CreateSCardOSPtr ptr) - { - return ptr == CreateACOS_D01 - || ptr == CreateACOS_A04; - } - - // --------------------------------------------------------------------------- - inline bool IsCardOS_M4(CreateSCardOSPtr ptr) - { - return ptr == CreateCardOS_M4 - || ptr == CreateCardOS_M4_MoC; - } - - // --------------------------------------------------------------------------- - inline bool IsCardOS_M4_ECC(CreateSCardOSPtr ptr) - { - return ptr == CreateCardOS_M4_ECC; - } - - // --------------------------------------------------------------------------- - inline bool IsCardOS_V4(CreateSCardOSPtr ptr) - { - return ptr == CreateCardOS_V4; - } - - // --------------------------------------------------------------------------- - inline bool IsCardOS_V4_ECC(CreateSCardOSPtr ptr) - { - return ptr == CreateCardOS_V4_ECC; - } - - // --------------------------------------------------------------------------- - inline bool IsStarCOS(CreateSCardOSPtr ptr) - { - return ptr == CreateStarCOS_3_0 - || ptr == CreateStarCOS_3_2; - } - - // --------------------------------------------------------------------------- - inline bool IsTCOS(CreateSCardOSPtr ptr) - { - return ptr == CreateTCOS_3_0; - } - - // --------------------------------------------------------------------------- - inline bool IsJavaCardOS(CreateSCardOSPtr ptr) - { - return ptr == CreateJavaCardOS_2_2_2 - || ptr == CreateJavaCardOS_2_2_1 - || ptr == CreateJavaCardOS_2_2 - || ptr == CreateJavaCardOS_2_1_2 - || ptr == CreateJavaCardOS_2_1_1 - || ptr == CreateJavaCardOS_2_1; - } - - // --------------------------------------------------------------------------- - inline bool IsISO7816OS(CreateSCardOSPtr ptr) - { - return ptr == CreateISO7816OS; - } - - // - // Passport OS - // --------------------------------------------------------------------------- - inline bool IsBACOS(CreateSCardOSPtr ptr) - { - return ptr == CreateBACOS; - } - - // --------------------------------------------------------------------------- - inline bool IsEACOS(CreateSCardOSPtr ptr) - { - return ptr == CreateEACOS; - } - - // --------------------------------------------------------------------------- - inline bool IsEACOS201(CreateSCardOSPtr ptr) - { - return ptr == CreateEACOS201; - } - - // --------------------------------------------------------------------------- - inline bool IsEPAOS(CreateSCardOSPtr ptr) - { - return ptr == CreateEPAOS; - } - -} // namespace act - -#endif // ACT_SCardOSKit_h diff --git a/actlibrary/SLES-11-i686/Release/include/actSCardOSReg.h b/actlibrary/SLES-11-i686/Release/include/actSCardOSReg.h deleted file mode 100644 index 4156615..0000000 --- a/actlibrary/SLES-11-i686/Release/include/actSCardOSReg.h +++ /dev/null @@ -1,46 +0,0 @@ -// --------------------------------------------------------------------------- -// Name: actSCardOSReg.h -// Product: cv act library -// Purpose: factory functions registry to create SCardOS objects. -// -// Copyright: (c) 2002 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -// -// Autor: Dr. Xiangdong Wang (XWG) -// Date: 04/09/2002 -// --------------------------------------------------------------------------- - -#ifndef ACT_SCardOSReg_h -#define ACT_SCardOSReg_h - -namespace act -{ -# define ACT_ISO7816OS_NAME "ISO7816OS" - - class ISCardOS; - class ISCardAccess; - - typedef ISCardOS* (*CreateSCardOSPtr)(ISCardAccess*); - - struct SCardOSMapEntry - { - const char* Name; - CreateSCardOSPtr CreatePtr; - }; - - class SCardOSReg - { - public: - static ISCardOS* CreateSCardOS(const char* name, ISCardAccess* ac); - static CreateSCardOSPtr GetCreatePointer(const char* name); - static const char* GetName(void* createptr); - static const char* GetNextName(const char* name); - static void Insert(const char* name, CreateSCardOSPtr createptr); - static void Insert(const SCardOSMapEntry* entry); - }; - -} // namespace act - -#endif // ACT_SCardOSReg_h diff --git a/actlibrary/SLES-11-i686/Release/include/actSCardTokenKit.h b/actlibrary/SLES-11-i686/Release/include/actSCardTokenKit.h deleted file mode 100644 index 90cb011..0000000 --- a/actlibrary/SLES-11-i686/Release/include/actSCardTokenKit.h +++ /dev/null @@ -1,105 +0,0 @@ -// --------------------------------------------------------------------------- -// Name: actSCardTokenKit.h -// Product: cv act library -// Purpose: registry for factory functions to create SCardOS and SCardToken objects -// -// Copyright: (c) 2002 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -// -// Autor: Dr. Xiangdong Wang (XWG) -// Date: 05/14/2002 -// --------------------------------------------------------------------------- - -#ifndef ACT_SCardTokenKit_h -#define ACT_SCardTokenKit_h - -namespace act -{ - class ISCardOS; - class SCardToken; - - bool IsStarCOSToken(ISCardOS* os); - SCardToken* CreateStarCOSToken(ISCardOS* os); - - bool IsV4cvProfile(ISCardOS* os); - SCardToken* CreateV4cvProfile(ISCardOS* os); - - bool IsV4cvECProfile(ISCardOS* os); - SCardToken* CreateV4cvECProfile(ISCardOS* os); - - bool IsV4CNSProfile(ISCardOS* os); - SCardToken* CreateV4CNSProfile(ISCardOS* os); - - bool IsNetKey2000Token(ISCardOS* os); - SCardToken* CreateNetKey2000Token(ISCardOS* os); - - bool IsNetKeyE4Token(ISCardOS* os); - SCardToken* CreateNetKeyE4Token(ISCardOS* os); - - bool IsNetKey30Token(ISCardOS* os); - SCardToken* CreateNetKey30Token(ISCardOS* os); - - bool IsNetKeyPKSToken(ISCardOS* os); - SCardToken* CreateNetKeyPKSToken(ISCardOS* os); - - bool IsNetKeyOldToken(ISCardOS* os); - SCardToken* CreateNetKeyOldToken(ISCardOS* os); - - bool IseTrustToken(ISCardOS* os); - SCardToken* CreateeTrustToken(ISCardOS* os); - - bool IsMicardoECToken(ISCardOS* os); - SCardToken* CreateMicardoECToken(ISCardOS* os); - - bool IsM4cvProfile(ISCardOS* os); - SCardToken* CreateM4cvProfile(ISCardOS* os); - - bool IsACOScvProfile(ISCardOS* os); - SCardToken* CreateACOScvProfile(ISCardOS* os); - - bool IsM4SiemensProfile(ISCardOS* os); - SCardToken* CreateM4SiemensProfile(ISCardOS* os); - - bool IsM4cvECProfile(ISCardOS* os); - SCardToken* CreateM4cvECProfile(ISCardOS* os); - - bool IsM4cvMoCProfile(ISCardOS* os); - SCardToken* CreateM4cvMoCProfile(ISCardOS* os); - - bool IsJavaCardAppletManager(ISCardOS* os); - SCardToken* CreateJavaCardAppletManager(ISCardOS* os); - - bool IsJCProfile(ISCardOS* os); - SCardToken* CreateJCProfile(ISCardOS* os); - - // PKCS#15 Profiles - bool IsM4PKCS15Profile(ISCardOS* os); - SCardToken* CreateM4PKCS15Profile(ISCardOS* os); - - bool IsV4PKCS15Profile(ISCardOS* os); - SCardToken* CreateV4PKCS15Profile(ISCardOS* os); - - bool IsV4PKCS15ECProfile(ISCardOS* os); - SCardToken* CreateV4PKCS15ECProfile(ISCardOS* os); - - bool IsJCPKCS15Profile(ISCardOS* os); - SCardToken* CreateJCPKCS15Profile(ISCardOS* os); - - bool IsJCPKCS15ECProfile(ISCardOS* os); - SCardToken* CreateJCPKCS15ECProfile(ISCardOS* os); - - bool IsACOSPKCS15Profile(ISCardOS* os); - SCardToken* CreateACOSPKCS15Profile(ISCardOS* os); - - bool IsStarCOSPKCS15Profile(ISCardOS* os); - SCardToken* CreateStarCOSPKCS15Profile(ISCardOS* os); - - // Passport - bool IsEPAProfile(ISCardOS* os); - SCardToken* CreateEPAProfile(ISCardOS* os); - -} // namespace act - -#endif // ACT_SCardTokenKit_h diff --git a/actlibrary/SLES-11-i686/Release/include/actSCardTokenReg.h b/actlibrary/SLES-11-i686/Release/include/actSCardTokenReg.h deleted file mode 100644 index 3f26385..0000000 --- a/actlibrary/SLES-11-i686/Release/include/actSCardTokenReg.h +++ /dev/null @@ -1,42 +0,0 @@ -// --------------------------------------------------------------------------- -// Name: actSCardTokenReg.h -// Product: cv act library -// Purpose: factory functions registry to create SCardToken objects. -// -// Copyright: (c) 2002 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -// -// Autor: Dr. Xiangdong Wang (XWG) -// Date: 05/13/2002 -// --------------------------------------------------------------------------- - -#ifndef ACT_SCardTokenReg_h -#define ACT_SCardTokenReg_h - -namespace act -{ - class ISCardOS; - class SCardToken; - - typedef bool (*CheckSCardTokenPtr)(ISCardOS*); - typedef SCardToken* (*CreateSCardTokenPtr)(ISCardOS*); - - struct SCardTokenMapEntry - { - CheckSCardTokenPtr CheckPtr; - CreateSCardTokenPtr CreatePtr; - }; - - class SCardTokenReg - { - public: - static SCardToken* CreateSCardToken(ISCardOS* os); - static void Insert(CheckSCardTokenPtr checkptr, CreateSCardTokenPtr createptr); - static void Insert(const SCardTokenMapEntry* entry); - }; - -} // namespace act - -#endif // ACT_SCardTokenReg_h diff --git a/actlibrary/SLES-11-i686/Release/include/actSCardUtil.h b/actlibrary/SLES-11-i686/Release/include/actSCardUtil.h deleted file mode 100644 index 2b890d0..0000000 --- a/actlibrary/SLES-11-i686/Release/include/actSCardUtil.h +++ /dev/null @@ -1,27 +0,0 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actSCardUtil.h -// Product: cv act library -// Purpose: useful global functions -// -// Copyright: (c) 2008 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef actSCardUtil_h -#define actSCardUtil_h - -namespace act -{ - // --------------------------------------------------------------------------- - template - inline BlobT short2blob(unsigned short n) - { - byte data[2] = { byte((n >> 8) & 0xff), byte(n & 0xff) }; - return BlobT(&data[0], &data[0] + sizeof(data)); - } - -} // namespace act - -#endif // actSCardUtil_h diff --git a/actlibrary/SLES-11-i686/Release/include/actSlotManager.h b/actlibrary/SLES-11-i686/Release/include/actSlotManager.h deleted file mode 100644 index 63875f2..0000000 --- a/actlibrary/SLES-11-i686/Release/include/actSlotManager.h +++ /dev/null @@ -1,81 +0,0 @@ -// --------------------------------------------------------------------------- -// Name: actSlotManager.h -// Product: cv act library -// Purpose: The class SlotManager detects and manages the subsystems and the slots -// -// Copyright: (c) 2002 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -// -// Autor: Dr. Xiangdong Wang -// Markus Tesche -// Date: 03/26/2002 -// --------------------------------------------------------------------------- - -#ifndef ACT_SlotManager_h -#define ACT_SlotManager_h - -#include "actIEventMonitoring.h" - -namespace act -{ - class ISubsystem; - class ISubsystemConfig; - - class ISlot; - class ITokenConfig; - - // - // SlotManager - class SlotManager : public IEventMonitoring - { - private: - struct SubsystemList - { - SubsystemList(ISubsystem* system, SubsystemList* next = 0); - ~SubsystemList(); - - SubsystemList* insert(SubsystemList* prev); - SubsystemList* remove(SubsystemList* prev); - - ISubsystem* system; - SubsystemList* next; - }; - - public: - SlotManager(ITokenConfig* tkcfg = 0); - ~SlotManager(); - - bool Install(ISubsystem* system); - bool Install(ISubsystemConfig* config); - - void Refresh(); - void Disconnect(); - ISubsystem* GetSystem(size_t pos = 0) const; - - // SlotList - int GetSlotNumber() const; - const ISlot* GetSlot(int pos) const; - ISlot* CreateSlot(const char* name) const; - - // IEventMonitoring functions - virtual bool IsMonitored() const; - virtual void StopMonitor(bool force = false); - virtual void StartMonitor(IEventHandler* cmd); - - protected: - IEventHandler* SetMonitor(SubsystemList* begin, IEventHandler* cmd, bool force); - - private: - int m_total; - ITokenConfig* m_tkcfg; - SubsystemList* m_begin; - SubsystemList* m_current; - IEventHandler* m_cmd_root; - IEventHandler* m_cmd_current; - }; - -} // namespace act - -#endif // ACT_SlotManager_h diff --git a/actlibrary/SLES-11-i686/Release/include/actSlotMonitorKit.h b/actlibrary/SLES-11-i686/Release/include/actSlotMonitorKit.h deleted file mode 100644 index 043e5c9..0000000 --- a/actlibrary/SLES-11-i686/Release/include/actSlotMonitorKit.h +++ /dev/null @@ -1,32 +0,0 @@ -// --------------------------------------------------------------------------- -// Name: actSlotMonitorKit.h -// Product: cv act library -// Purpose: registry for factory functions to create slot monitors -// -// Copyright: (c) 2009 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -// -// Autor: Markus Tesche -// Date: 04/12/2009 -// --------------------------------------------------------------------------- - -#ifndef ACT_SlotMonitorKit_h -#define ACT_SlotMonitorKit_h - -namespace act -{ - class ISubsystem; - class ISlot; - class ISlotMonitor; - - // default polling slot monitor - ISlotMonitor* CreateSlotMonitor(ISlot*); - - ISlotMonitor* CreatePCSCSlotMonitor(ISlot*); - ISlotMonitor* CreatePCSCSystemSlotMonitor(ISubsystem*); - -} // namespace act - -#endif // ACT_SlotMonitorKit_h diff --git a/actlibrary/SLES-11-i686/Release/include/actSlotMonitorReg.h b/actlibrary/SLES-11-i686/Release/include/actSlotMonitorReg.h deleted file mode 100644 index 60a8d7e..0000000 --- a/actlibrary/SLES-11-i686/Release/include/actSlotMonitorReg.h +++ /dev/null @@ -1,54 +0,0 @@ -// --------------------------------------------------------------------------- -// Name: actSlotMonitorReg.h -// Product: cv act library -// Purpose: factory functions registry to create Slot-Monitor objects. -// -// Copyright: (c) 2009 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -// -// Autor: Markus Tesche -// Date: 04/12/2009 -// --------------------------------------------------------------------------- - -#ifndef ACT_SlotMonitoReg_h -#define ACT_SlotMonitoReg_h - -#include "actFactoryReg.h" - -namespace act -{ - class ISubsystem; - class ISlot; - class ISlotMonitor; - - typedef ISlotMonitor* (*CreateSlotMonitorPtr)(ISlot*); - typedef ISlotMonitor* (*CreateSystemSlotMonitorPtr)(ISubsystem*); - - struct SlotMonitorRegCreatePtr - { - ISlotMonitor* operator()(const char*, ISlot* slot) const - { - return createSlotMonitor != 0 ? createSlotMonitor(slot) : 0; - } - - ISlotMonitor* operator()(const char*, ISubsystem* system) const - { - return createSystemSlotMonitor != 0 ? createSystemSlotMonitor(system) : 0; - } - - CreateSlotMonitorPtr createSlotMonitor; - CreateSystemSlotMonitorPtr createSystemSlotMonitor; - }; - - - typedef FactoryMapEntry SlotMonitorRegEntry; - - typedef FactoryReg - < ISlotMonitor, SlotMonitorRegCreatePtr, SlotMonitorRegEntry - > SlotMonitorReg; - -} // namespace act - -#endif // ACT_SlotMonitoReg_h diff --git a/actlibrary/SLES-11-i686/Release/include/actState.h b/actlibrary/SLES-11-i686/Release/include/actState.h deleted file mode 100644 index c7e1cbf..0000000 --- a/actlibrary/SLES-11-i686/Release/include/actState.h +++ /dev/null @@ -1,29 +0,0 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actState.h -// Product: cv act library -// Purpose: -// -// Copyright: (c) 2000 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_STATE_H -#define ACT_STATE_H - -namespace act -{ - - const int READY=0; - const int SIGNATURE_OK=1; - const int IS_FINALIZED=2; - const int DECRYPT_ERROR=3; - const int CERTIFICATE_OK=4; - const int CERTIFICATE_ERROR=5; - const int VERIFY_ERROR=6; - -} // namspace act - -#endif - diff --git a/actlibrary/SLES-11-i686/Release/include/actStreamCipherKit.h b/actlibrary/SLES-11-i686/Release/include/actStreamCipherKit.h deleted file mode 100644 index efc74fa..0000000 --- a/actlibrary/SLES-11-i686/Release/include/actStreamCipherKit.h +++ /dev/null @@ -1,22 +0,0 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actStreamCipherKit.h -// Product: cv act library -// Purpose: declaration of all factory functions -// -// Copyright: (c) 2001 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_StreamCipherKit_h -#define ACT_StreamCipherKit_h - -namespace act -{ - class IStreamCipher; - - IStreamCipher* CreateARC4(); -} -#endif - diff --git a/actlibrary/SLES-11-i686/Release/include/actStreamCipherReg.h b/actlibrary/SLES-11-i686/Release/include/actStreamCipherReg.h deleted file mode 100644 index 4cc5b22..0000000 --- a/actlibrary/SLES-11-i686/Release/include/actStreamCipherReg.h +++ /dev/null @@ -1,39 +0,0 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actStreamCipherReg.h -// Product: cv act library -// Purpose: registry for factory functions in actStreamCipherKit.h -// -// Copyright: (c) 2001 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_StreamCipherReg_h -#define ACT_StreamCipherReg_h - -namespace act -{ - class IStreamCipher; - - typedef IStreamCipher* (*CreateStreamCipherPtr)(); - - struct StreamCipherMapEntry { - const char* Name; - CreateStreamCipherPtr CreatePtr; - }; - - class StreamCipherReg - { - public: - static IStreamCipher* CreateStreamCipher(const char* name); - static CreateStreamCipherPtr GetCreatePointer(const char* name); - static const char* GetName(void* createptr); - static const char* GetNextName(const char* name); - static void Insert(const char* name,CreateStreamCipherPtr createptr); - static void Insert(const StreamCipherMapEntry* map); - }; -} - -#endif - diff --git a/actlibrary/SLES-11-i686/Release/include/actSubsystemKit.h b/actlibrary/SLES-11-i686/Release/include/actSubsystemKit.h deleted file mode 100644 index c3452f0..0000000 --- a/actlibrary/SLES-11-i686/Release/include/actSubsystemKit.h +++ /dev/null @@ -1,33 +0,0 @@ -// --------------------------------------------------------------------------- -// Name: actSubsystemKit.h -// Product: cv act library -// Purpose: registry for factory functions to create subsystem -// -// Copyright: (c) 2002 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -// -// Autor: Dr. Xiangdong Wang (XWG) -// Date: 05/13/2002 -// --------------------------------------------------------------------------- - -#ifndef ACT_SubsystemKit_h -#define ACT_SubsystemKit_h - -namespace act -{ - class ISubsystem; - class ISubsystemConfig; - - ISubsystem* CreateCTAPISystem(const char*); - - ISubsystem* CreatePCSCSystem(const char*); - ISubsystem* CreatePCSCSystemEx(ISubsystemConfig*); - - ISubsystem* CreateCSPSystem(const char*); - ISubsystem* CreatePKCS11System(const char*); - -} // namespace act - -#endif // ACT_SubsystemKit_h diff --git a/actlibrary/SLES-11-i686/Release/include/actSubsystemReg.h b/actlibrary/SLES-11-i686/Release/include/actSubsystemReg.h deleted file mode 100644 index 7a82df8..0000000 --- a/actlibrary/SLES-11-i686/Release/include/actSubsystemReg.h +++ /dev/null @@ -1,53 +0,0 @@ -// --------------------------------------------------------------------------- -// Name: actSubsystemReg.h -// Product: cv act library -// Purpose: factory functions registry to create Subsystem objects. -// -// Copyright: (c) 2002 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -// -// Autor: Dr. Xiangdong Wang (XWG) -// Markus Tesche -// Date: 05/14/2002 -// --------------------------------------------------------------------------- - -#ifndef ACT_SubsystemReg_h -#define ACT_SubsystemReg_h - -namespace act -{ - class ISubsystem; - class ISubsystemConfig; - - typedef ISubsystem* (*CreateSubsystemPtr)(const char*); - typedef ISubsystem* (*CreateSubsystemExPtr)(ISubsystemConfig*); - - struct SubsystemMapEntry - { - const char* Name; - CreateSubsystemPtr CreatePtr; - CreateSubsystemExPtr CreateExPtr; - }; - - class SubsystemReg - { - public: - static ISubsystem* CreateSubsystem(ISubsystemConfig* config); - static ISubsystem* CreateSubsystem(const char* name, const char* dll_name = 0); - - static CreateSubsystemPtr GetCreatePointer(const char* name); - static CreateSubsystemExPtr GetCreateExPointer(const char* name); - - static const char* GetName(void* createptr); - static const char* GetNextName(const char* name); - - static void Insert(const char* name, CreateSubsystemPtr createptr); - static void Insert(const char* name, CreateSubsystemExPtr createexptr); - static void Insert(const SubsystemMapEntry* map); - }; - -} // namespace act - -#endif // ACT_SubsystemReg_h diff --git a/actlibrary/SLES-11-i686/Release/include/actTokenAuthProtocolKit.h b/actlibrary/SLES-11-i686/Release/include/actTokenAuthProtocolKit.h deleted file mode 100644 index d528776..0000000 --- a/actlibrary/SLES-11-i686/Release/include/actTokenAuthProtocolKit.h +++ /dev/null @@ -1,30 +0,0 @@ -// --------------------------------------------------------------------------- -// Name: actTokenAuthProtocolKit.h -// Product: cv act library -// Purpose: Factory functions to create specific ITokenAuthProtocol objects. -// -// Copyright: (c) 2009 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -// -// Autor: Markus Tesche -// Date: 14/10/2008 -// --------------------------------------------------------------------------- - -#ifndef ACT_TokenAuthProtocolKit_h -#define ACT_TokenAuthProtocolKit_h - -namespace act -{ - class ITokenAuthProtocol; - - ITokenAuthProtocol* CreateTokenAuthPACE(const char* name); // EACv2-PACE - ITokenAuthProtocol* CreateTokenAuthTA(const char* name); // EACv2-TA - ITokenAuthProtocol* CreateTokenAuthCA(const char* name); // EACv2-CA - - ITokenAuthProtocol* CreateTokenAuthBAC(const char* name); // EACv1-BAC - -} // namespace act - -#endif // ACT_TokenAuthProtocolKit_h diff --git a/actlibrary/SLES-11-i686/Release/include/actTokenAuthProtocolReg.h b/actlibrary/SLES-11-i686/Release/include/actTokenAuthProtocolReg.h deleted file mode 100644 index 9f2924d..0000000 --- a/actlibrary/SLES-11-i686/Release/include/actTokenAuthProtocolReg.h +++ /dev/null @@ -1,33 +0,0 @@ -// --------------------------------------------------------------------------- -// Name: actTokenAuthProtocolReg.h -// Product: cv act library -// Purpose: factory functions registry to create ITokenAuthProtocol objects. -// -// Copyright: (c) 2009 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -// -// Autor: Markus Tesche -// Date: 14/10/2009 -// --------------------------------------------------------------------------- - -#ifndef ACT_TokenAuthProtocolReg_h -#define ACT_TokenAuthProtocolReg_h - -#include "actFactoryReg.h" - -namespace act -{ - class ITokenAuthProtocol; - - typedef ITokenAuthProtocol* (*CreateTokenAuthProtocolPtr)(const char*); - typedef FactoryMapEntry TokenAuthProtocolMapEntry; - - typedef FactoryReg - < ITokenAuthProtocol, CreateTokenAuthProtocolPtr, TokenAuthProtocolMapEntry - > TokenAuthProtocolReg; - -} // namespace act - -#endif // ACT_TokenAuthProtocolReg_h diff --git a/actlibrary/SLES-11-i686/Release/include/actTokenBase.h b/actlibrary/SLES-11-i686/Release/include/actTokenBase.h deleted file mode 100644 index d31b0e7..0000000 --- a/actlibrary/SLES-11-i686/Release/include/actTokenBase.h +++ /dev/null @@ -1,200 +0,0 @@ -// --------------------------------------------------------------------------- -// Name: actTokenBase.h -// Product: cv act library -// Purpose: Declares common token enums and constants. -// -// Copyright: (c) 2010 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -// -// Autor: Markus Tesche -// Date: 03/24/2010 -// --------------------------------------------------------------------------- - -#ifndef ACT_TokenBase_h -#define ACT_TokenBase_h - -namespace act -{ - enum TokenError - { - TOKEN_SUCCESS = 0, - TOKEN_FUNCTION_NOT_SUPPORTED = -1, - TOKEN_FUNCTION_FAILED = -2, - TOKEN_LOCKED = -3 - }; - - enum TokenType - { - TOKEN_RSA = 0x0001, - TOKEN_DSA = 0x0002, - TOKEN_DH = 0x0004, - TOKEN_ECDSA = 0x0008, - TOKEN_ECDH = 0x0010, - TOKEN_SECRET = 0x0080, - - TOKEN_BAC = 0x0100, - TOKEN_EAC = 0x0200, - TOKEN_EPA = 0x0400, - }; - - enum TokenStatusCode - { - TOKEN_EMPTY = 0x0000, - TOKEN_INITIALIZED = 0x0001, - TOKEN_PERSONALIZED = 0x0002 - }; - - enum ProfileType - { - PROFILE_EMPTY = 0x00, - PROFILE_CV = 0x01, - PROFILE_CNS = 0x02, - PROFILE_GDO = 0x03, - PROFILE_CVEC = 0x04, - PROFILE_SIGG = 0x05, - PROFILE_JC = 0x06, - PROFILE_MICARDOEC = 0x07, - PROFILE_STARCOS = 0x08, - PROFILE_NETKEY = 0x09, - PROFILE_CVMOC = 0x0a, - - PROFILE_PKCS15 = 0x0f, - PROFILE_PKCS15_mEAC = 0x10, // includes PACE-Pin's - PROFILE_PKCS15_mEAC_TA = 0x11, // includes PACE-Pin's and TA-IS, TA-ST, TA-AT - - PROFILE_BAC = 0x80, - PROFILE_EAC = 0x81, - PROFILE_EAC201 = 0x82, - PROFILE_EPA = 0x83, - - PROFILE_PKCS11 = 0xa0, - PROFILE_CSP = 0xa1, - PROFILE_MD = 0xa2, - - PROFILE_ANY = 0xfe, - PROFILE_UNKNOWN = 0xff - }; - - // usage of key, pin - enum KeyUsage - { - KEY_EMPTY = 0x0000, - SIGN_DATA = 0x0001, - DEC_DATA = 0x0002, - AGREE_KEY = 0x0004, - AUTH_DATA = 0x0008, - BLOCKCIPHER_KEY = 0x0010, - VERIFY_DATA = 0x0020, - ENC_DATA = 0x0040, - UNLOCK_PIN = 0x0100, - UPDATE_BINARY = 0x0200, - DELETE_BINARY = 0x0400, - ALL_USAGE = 0xffff, - - // custom usage - SIGN_HASH = 0x00010000, - CUSTOM_USAGE_MASK = 0xffff0000, - - // combined usage - ENC_DEC_DATA = DEC_DATA | ENC_DATA, - SIGN_DEC_DATA = DEC_DATA | SIGN_DATA, - SIGN_HASH_DATA = SIGN_HASH | SIGN_DATA, - }; - - enum KeyType - { // NOTE: Never change (!), used for serialization. - KEY_UNKNOWN = 0xffff, - - KEY_RSA = 0x0000, - KEY_DSA = 0x0001, - KEY_DH = 0x0002, - KEY_ECDSA = 0x0003, - KEY_ECDH = 0x0004, - - KEY_SECRET = 0x0010, - KEY_DES = 0x0001 + KEY_SECRET, - KEY_2DES = 0x0002 + KEY_SECRET, - KEY_3DES = 0x0003 + KEY_SECRET, - KEY_AES = 0x0004 + KEY_SECRET, - - KEY_TYPE_MASK = 0x001f - }; - - enum CertificateType - { // NOTE: Never change (!), used for serialization. - CERT_UNKNOWN = 0xffff, - - CERT_X509 = 0x0000, - CERT_CV = 0x0001 - }; - - enum CertificateUsage - { - EMPTY_CERT = 0x0000, - SIGN_CERT = 0x0001, - DEC_CERT = 0x0002, - ROOT_CERT = 0x0004, - AUTH_CERT = 0x0008, - CA_CERT = 0x0010, - SMARTCARD_LOGON_CERT = 0x0100, // lib version >= 1.5 - UNSPECIFIED_CERT = 0xffff - }; - - enum SecStatus - { - SS_INVALID = 0x0000, - SS_AUTHENTICATED = 0x0001, - SS_UNKNOWN = 0xffff, - }; - - enum AUTH_OBJ_TYPE - { - AUTH_OBJ_PIN = 0xff, // -1 - AUTH_OBJ_BIOMETRIC = 0xfe, // -2 - }; - - typedef ulong IDType; - typedef ushort FIDType; - - const IDType ID_INVALID = 0; - const FIDType FID_INVALID = 0x0000; - - // - // FileInfo - struct FileInfo - { - explicit FileInfo(FIDType val_fid = FID_INVALID, IDType val_rec_nr = ID_INVALID) - : fid(val_fid) - , rec_nr(val_rec_nr) - { } - - FIDType fid; - IDType rec_nr; - }; - - // LengthInfo - struct LengthInfo - { - LengthInfo(ulong _minLen = 0, ulong _maxLen = 0, ulong _storedLen = 0) - : minLen(_minLen) - , maxLen(_maxLen) - , storedLen(_storedLen) - { } - - void swap(LengthInfo& other) - { - std::swap(minLen, other.minLen); - std::swap(storedLen, other.storedLen); - std::swap(maxLen, other.maxLen); - } - - ulong minLen; - ulong storedLen; - ulong maxLen; - }; - -} // namespace act - -#endif // ACT_TokenBase_h diff --git a/actlibrary/SLES-11-i686/Release/include/actTokenConfig.h b/actlibrary/SLES-11-i686/Release/include/actTokenConfig.h deleted file mode 100644 index 45844c1..0000000 --- a/actlibrary/SLES-11-i686/Release/include/actTokenConfig.h +++ /dev/null @@ -1,104 +0,0 @@ -// --------------------------------------------------------------------------- -// Name: actTokenConfig.h -// Product: cv act library -// Purpose: Declares all availabl param_id's for ITokenCofing. -// -// Copyright: (c) 2009 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -// -// Autor: Markus Tesche -// Date: 05/07/2009 -// --------------------------------------------------------------------------- - -#ifndef ACT_TokenConfig_h -#define ACT_TokenConfig_h - -#include "actMode.h" -#include "actIParam.h" - -namespace act -{ - // according to ISO 24727-3, definition of supported Data Set's - enum DataSetList - { - DATA_SET_NONE = 0, - DATA_SET_PUBLIC_DATA = (1 << 0), - DATA_SET_PRIVATE_DATA = (1 << 1), - DATA_SET_CERTIFICATES = (1 << 2), - DATA_SET_USEFUL_CERTIFICATES = (1 << 3), - DATA_SET_TRUSTED_CERTIFICATES = (1 << 4), - DATA_SET_TRUSTED_PUBLIC_KEYS = (1 << 5), - // - // ... - DATA_SET_NEXT = (1 << 6), - DATA_SET_MASK = DATA_SET_NEXT - 1, - DATA_SET_ALL = PARAM_INVALID_VALUE, - }; - - enum ObjectTypeList - { - OBJECT_TYPE_NONE = 0, - OBJECT_TYPE_KEY_DES = (1 << 0), - OBJECT_TYPE_KEY_2DES = (1 << 1), - OBJECT_TYPE_KEY_3DES = (1 << 2), - OBJECT_TYPE_KEY_AES = (1 << 3), - OBJECT_TYPE_KEY_RSA = (1 << 4), - OBJECT_TYPE_KEY_DSA = (1 << 5), - OBJECT_TYPE_KEY_DH = (1 << 6), - OBJECT_TYPE_KEY_ECC = (1 << 7), - OBJECT_TYPE_DATA = (1 << 8), - OBJECT_TYPE_CERTIFICATE = (1 << 9), - OBJECT_TYPE_USEFUL_CERTIFICATE = (1 << 10), - OBJECT_TYPE_TRUSTED_CERTIFICATE = (1 << 11), - OBJECT_TYPE_TRUSTED_PUBLIC_KEY = (1 << 12), - // - // Mark an object as private - OBJECT_TYPE_PRVIVATE = (1 << 13), - // - // ... - OBJECT_TYPE_NEXT = (1 << 14), - OBJECT_TYPE_MASK = OBJECT_TYPE_NEXT - 1, - OBJECT_TYPE_ALL = PARAM_INVALID_VALUE, - }; - - enum ObjectAttributeList - { - OBJECT_ATTR_LABEL_P = OBJECT_TYPE_NEXT, - OBJECT_ATTR_LABEL_P_PUB = OBJECT_ATTR_LABEL_P, - OBJECT_ATTR_LABEL_P_PRV = OBJECT_ATTR_LABEL_P | OBJECT_TYPE_PRVIVATE, - }; - - enum - { - TC_TYPE = TOKEN_CONFIG, - TC_HAS_TOKEN_CAPABILITIES, - TC_HAS_WRITABLE_AODF, - TC_IS_MOC_ENABLED, - TC_IS_MINIDRIVER_ENABLED, - TC_IS_PROFILE_ERASABLE, - TC_PINPAD_CHAR, - TC_DATA_SET_LIST, - TC_OBJECT_TYPE_LIST, - // - // Object naming - Label Prefix - TC_LABEL_P_PRV_DES = OBJECT_ATTR_LABEL_P_PRV + OBJECT_TYPE_KEY_DES, - TC_LABEL_P_PRV_2DES = OBJECT_ATTR_LABEL_P_PRV + OBJECT_TYPE_KEY_2DES, - TC_LABEL_P_PRV_3DES = OBJECT_ATTR_LABEL_P_PRV + OBJECT_TYPE_KEY_3DES, - TC_LABEL_P_PRV_AES = OBJECT_ATTR_LABEL_P_PRV + OBJECT_TYPE_KEY_AES, - TC_LABEL_P_PUB_RSA = OBJECT_ATTR_LABEL_P_PUB + OBJECT_TYPE_KEY_RSA, - TC_LABEL_P_PRV_RSA = OBJECT_ATTR_LABEL_P_PRV + OBJECT_TYPE_KEY_RSA, - TC_LABEL_P_PUB_ECC = OBJECT_ATTR_LABEL_P_PUB + OBJECT_TYPE_KEY_ECC, - TC_LABEL_P_PRV_ECC = OBJECT_ATTR_LABEL_P_PRV + OBJECT_TYPE_KEY_ECC, - TC_LABEL_P_PUB_DATA = OBJECT_ATTR_LABEL_P_PUB + OBJECT_TYPE_DATA, - TC_LABEL_P_PRV_DATA = OBJECT_ATTR_LABEL_P_PRV + OBJECT_TYPE_DATA, - TC_LABEL_P_PUB_CERTIFICATE = OBJECT_ATTR_LABEL_P_PUB + OBJECT_TYPE_CERTIFICATE, - TC_LABEL_P_PUB_USEFUL_CERTIFICATE = OBJECT_ATTR_LABEL_P_PUB + OBJECT_TYPE_USEFUL_CERTIFICATE, - TC_LABEL_P_PUB_TRUSTED_CERTIFICATE = OBJECT_ATTR_LABEL_P_PUB + OBJECT_TYPE_TRUSTED_CERTIFICATE, - TC_LABEL_P_PUB_TRUSTED_PUBLIC_KEY = OBJECT_ATTR_LABEL_P_PUB + OBJECT_TYPE_TRUSTED_PUBLIC_KEY, - }; - -} // namespace act - -#endif // ACT_TokenConfig_h diff --git a/actlibrary/SLES-11-i686/Release/include/actTokenExtensionKit.h b/actlibrary/SLES-11-i686/Release/include/actTokenExtensionKit.h deleted file mode 100644 index f087bdc..0000000 --- a/actlibrary/SLES-11-i686/Release/include/actTokenExtensionKit.h +++ /dev/null @@ -1,28 +0,0 @@ -// --------------------------------------------------------------------------- -// Name: actTokenExtensionKit.h -// Product: cv act library -// Purpose: Factory functions to create specific ITokenExtension objects. -// -// Copyright: (c) 2008 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -// -// Autor: Markus Tesche -// Date: 12/02/2008 -// --------------------------------------------------------------------------- - -#ifndef ACT_TokenExtensionKit_h -#define ACT_TokenExtensionKit_h - -namespace act -{ - class IToken; - class ITokenExtension; - - ITokenExtension* CreateMDProfileExt(const char* name, IToken*); // Minidriver - ITokenExtension* CreateEACTAwithCAPI(const char* name, IToken*); // EACv2-TA with CAPI - -} // namespace act - -#endif // ACT_TokenExtensionKit_h diff --git a/actlibrary/SLES-11-i686/Release/include/actTokenExtensionReg.h b/actlibrary/SLES-11-i686/Release/include/actTokenExtensionReg.h deleted file mode 100644 index f961078..0000000 --- a/actlibrary/SLES-11-i686/Release/include/actTokenExtensionReg.h +++ /dev/null @@ -1,34 +0,0 @@ -// --------------------------------------------------------------------------- -// Name: actTokenExtensionReg.h -// Product: cv act library -// Purpose: factory functions registry to create ITokenExtension objects. -// -// Copyright: (c) 2008 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -// -// Autor: Markus Tesche -// Date: 12/02/2008 -// --------------------------------------------------------------------------- - -#ifndef ACT_TokenExtensionReg_h -#define ACT_TokenExtensionReg_h - -#include "actFactoryReg.h" - -namespace act -{ - class IToken; - class ITokenExtension; - - typedef ITokenExtension* (*CreateTokenExtensionPtr)(const char*, IToken*); - typedef FactoryMapEntry TokenExtensionMapEntry; - - typedef FactoryReg - < ITokenExtension, CreateTokenExtensionPtr, TokenExtensionMapEntry - > TokenExtensionReg; - -} // namespace act - -#endif // ACT_TokenExtensionReg_h diff --git a/actlibrary/SLES-11-i686/Release/include/actTools.h b/actlibrary/SLES-11-i686/Release/include/actTools.h deleted file mode 100644 index c22c455..0000000 --- a/actlibrary/SLES-11-i686/Release/include/actTools.h +++ /dev/null @@ -1,93 +0,0 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actTools.h -// Product: cv act library -// Purpose: useful global functions -// -// Copyright: (c) 2000 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_Tools_h -#define ACT_Tools_h - -#include "actMode.h" -#include "actBlob.h" - -namespace act -{ - class IKey; - - // Functions for RSA public key and private key operation. - // Both functions return the plain result of the modular - // exponentiation using the public or private exponent. - // - // 1) Calculate m^e mod n, where e is the public exponent - Blob RSAPublicKeyOperation(IKey* rsa_key, const Blob& m); - // 2) Calculate c^d mod n, where d is the private exponent - Blob RSAPrivateKeyOperation(IKey* rsa_key, const Blob& c); - - - // Function for PKCS#3 Diffie-Hellman. - // The function initializes an act::IKey Diffie-Hellman key object - // from PKCS#3 DH parameters p and g (prime and generator). - void PKCS3DHKeyToDHKey(const Blob& prime, const Blob& generator, IKey *dhKey); - - - // Read pfx file and get private key - Blob getPKCS8Key(const Blob& pfx_data, const char* password); - // Read pfx file and get the own (user) certificate - Blob getOwnCertificateFromPfx(const Blob& pfx_data, const char* password); - - - // Function to encode an ASN1 object identifier in binary form - // example EncodeOID("0.2.262.1.10.1.3.8") = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x01, 0x03, 0x08 } - Blob EncodeOID(const char* oid); - - - // Converts a signed decimal number or hexadecimal number (with prefix "0x" / "-0x") - // into a Blob (Twos-Complement representation for negative numbers) - Blob EncodeNumber(const char* number); - Blob EncodeNumber(int number); - - - // CRC functions - - // CRC-16 (direct mode, no zero bit augmentation) - // - // Poly : 0x8005 (x^16 + x^15 + x^2 + 1) - // RefIn : True (bit reflection on the input bytes) - // RefOut : True (bit reflection on the final CRC value) - // XorOut : 0x0000 (no XOR on the returned CRC value) - unsigned long CalculateCRC16(const act::byte* message, size_t message_len, - unsigned long crc_init_value = 0x0000); - unsigned long CalculateCRC16(const act::Blob& message, - unsigned long crc_init_value = 0x0000); - - // CRC-16 CCIT (direct mode, no zero bit augmentation) - // - // Poly : 0x1021 (x^16 + x^12 + x^5 + 1) - // RefIn : False (no bit reflection on the input bytes) - // RefOut : False (no bit reflection on the final CRC value) - // XorOut : 0x0000 (no XOR on the returned CRC value) - unsigned long CalculateCRC16CCITT(const act::byte* message, size_t message_len, - unsigned long crc_init_value = 0xFFFF); - unsigned long CalculateCRC16CCITT(const act::Blob& message, - unsigned long crc_init_value = 0xFFFF); - - // CRC-32 (direct mode, no zero bit augmentation) - // - // Poly : 0x04C11DB7 (x^32 + x^26 + x^23 + x^22 + x^16 + x^12 + x^11 + ... - // ... + x^10 + x^8 + x^7 + x^5 + x^4 + x^2 + x^ + 1) - // RefIn : True (bit reflection on the input bytes) - // RefOut : True (bit reflection on the final CRC value) - // XorOut : 0xFFFFFFFF (XOR on the returned CRC value) - unsigned long CalculateCRC32(const act::byte* message, size_t message_len, - unsigned long crc_init_value = 0xFFFFFFFF); - unsigned long CalculateCRC32(const act::Blob& message, - unsigned long crc_init_value = 0xFFFFFFFF); - -} // namespace act - -#endif // ACT_Tools_h diff --git a/actlibrary/SLES-11-i686/Release/include/actToolsECC.h b/actlibrary/SLES-11-i686/Release/include/actToolsECC.h deleted file mode 100644 index 246b99f..0000000 --- a/actlibrary/SLES-11-i686/Release/include/actToolsECC.h +++ /dev/null @@ -1,99 +0,0 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actToolsECC.h -// Product: cv act library -// Purpose: useful ECC functions -// -// Copyright: (c) 2009 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_ToolsECC_h -#define ACT_ToolsECC_h - -#include "actMode.h" -#include "actBlob.h" -#include "actIKey.h" - -namespace act -{ - // Functions for ECC scalar multiplication, addition of points. - // Input points must be in ASN.1 point representation (uncompressed, - // compressed or hybrid). The output point will be in ASN.1 representation - // as indicated in 'output_format'. - // - // 1) Calculate s * Q, s unsigned in ASN.1 OCTET STRING representation - // (leading zeros will be ignored) - Blob ECMultiplyPoint(IKey* ec_key, const Blob& s, const Blob& Q, - int output_format = UNCOMPRESSED); - // 2) Calculate Q1 + Q2 - Blob ECAddPoints(IKey* ec_key, const Blob& Q1, const Blob& Q2, - int output_format = UNCOMPRESSED); - - - // Functions to encode an (EC-)DSA signature (r, s) in ASN1 format and backwards. - // - // 1) Plain signature I/O as string - // - for encode: r and s must be in hex notation - // - for decode: the user has to allocate r and s buffers - void EncodeSignature(const char* r, const char* s, Blob& signature_ASN1); - void DecodeSignature(const Blob& signature_ASN1, char* r, char* s); - // 2) Plain signature I/O as byte array (Blob) - // - r and s I/O in big endian representation - void EncodeSignature(const Blob& r, const Blob& s, Blob& signature_ASN1); - void DecodeSignature(const Blob& signature_ASN1, Blob& r, Blob& s); - // 3) Plain signature I/O as byte array (Blob) - // - r_s length even, left haft = r, right half = s - // - if order_bytes is non zero, decode output length is 2 * order_bytes - void EncodeSignature(const Blob& r_s, Blob& signature_ASN1); - void DecodeSignature(const Blob& signature_ASN1, Blob& r_s, size_t order_bytes = 0); - - - // Tools for elliptic curves over GF(P). - // The basepoint can be given by it's coordinates (Gx, Gy) or as - // COMPRESSED, UNCOMPRESSED or HYBRID octetstring G corresponding - // to ANSI X9.62/63 standard. - // By default, the basepoint will be encoded in UNCOMPRESSED format. - - Blob EncodePrimeCurveParam(const Blob& p, const Blob& a, const Blob& b, - const Blob& Gx, const Blob& Gy, const Blob& n, const Blob& h, - int output_type = UNCOMPRESSED); - - Blob EncodePrimeCurveParam(const Blob& p, const Blob& a, const Blob& b, - const Blob& G, const Blob& n, const Blob& h, int output_type = UNCOMPRESSED); - - // dto. for elliptic curves over GF(2^m), tri- or pentanomial basis. - - // tri- or pentanomial in hex presentation - Blob EncodeGF2CurveParam(const Blob& p, const Blob& a, const Blob& b, - const Blob& Gx, const Blob& Gy, const Blob& n, const Blob& h, - int output_type = UNCOMPRESSED); - - // tri- or pentanomial in hex presentation - Blob EncodeGF2CurveParam(const Blob& p, const Blob& a, const Blob& b, - const Blob& G, const Blob& n, const Blob& h, int output_type = UNCOMPRESSED); - - // f(t) = t^m + t^k + 1 - Blob EncodeTrinomialCurveParam(const int m, const int k, - const Blob& a, const Blob& b, const Blob& Gx, const Blob& Gy, - const Blob& n, const Blob& h, int output_type = UNCOMPRESSED); - - // f(t) = t^m + t^k + 1 - Blob EncodeTrinomialCurveParam(const int m, const int k, - const Blob& a, const Blob& b, const Blob& G, const Blob& n, - const Blob& h, int output_type = UNCOMPRESSED); - - // f(t) = t^m + t^k3 + t^k2 + t^k1 + 1 - Blob EncodePentanomialCurveParam(const int m, const int k3, const int k2, - const int k1, const Blob& a, const Blob& b, const Blob& Gx, const Blob& Gy, - const Blob& n, const Blob& h, int output_type = UNCOMPRESSED); - - // f(t) = t^m + t^k3 + t^k2 + t^k1 + 1 - Blob EncodePentanomialCurveParam(const int m, const int k3, const int k2, - const int k1, const Blob& a, const Blob& b, const Blob& G, - const Blob& n, const Blob& h, int output_type = UNCOMPRESSED); - -} // namespace act - -#endif // ACT_ToolsECC_h diff --git a/actlibrary/SLES-11-i686/Release/include/actToolsRSA.h b/actlibrary/SLES-11-i686/Release/include/actToolsRSA.h deleted file mode 100644 index b79c55b..0000000 --- a/actlibrary/SLES-11-i686/Release/include/actToolsRSA.h +++ /dev/null @@ -1,19 +0,0 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actToolsRSA.h -// Product: cv act library -// Purpose: useful RSA functions -// -// Copyright: (c) 2000 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_TOOLS_RSA_H -#define ACT_TOOLS_RSA_H - -#include "actTools.h" - -// TODO: MTE: Move all RSA functions from "actTools.h" to here! include inside "actTools.h" - -#endif // ACT_TOOLS_RSA_H diff --git a/actlibrary/SLES-11-i686/Release/include/actTypeTags.h b/actlibrary/SLES-11-i686/Release/include/actTypeTags.h deleted file mode 100644 index a844a0d..0000000 --- a/actlibrary/SLES-11-i686/Release/include/actTypeTags.h +++ /dev/null @@ -1,32 +0,0 @@ -// --------------------------------------------------------------------------- -// Name: actTypeTags.h -// Product: cv act library -// Purpose: TypeTag<> and usibility forward declarations. -// -// Copyright: (c) 2010 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -// -// Autor: Markus Tesche -// Date: 09/10/2010 -// --------------------------------------------------------------------------- - -#ifndef ACT_TypeTags_h -#define ACT_TypeTags_h - -namespace act -{ - // - // TypeTag<> - template - struct TypeTag { typedef TypeT Type; }; - - // - // CloneFactory<> - template - struct CloneFactory; - -} // namespace act - -#endif // ACT_TypeTags_h diff --git a/actlibrary/SLES-11-i686/Release/include/actX509Extension.h b/actlibrary/SLES-11-i686/Release/include/actX509Extension.h deleted file mode 100644 index 51f59f0..0000000 --- a/actlibrary/SLES-11-i686/Release/include/actX509Extension.h +++ /dev/null @@ -1,50 +0,0 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actX509Extension.h -// Product: cv act library -// Purpose: -// -// Copyright: (c) 2000 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_X509Extension_H -#define ACT_X509Extension_H - -#include "actBlob.h" - -namespace act -{ - class X509Extension - { - public: - X509Extension(); - X509Extension(const Blob& oid, const Blob& value, bool critflag); - X509Extension(const char* oid, const Blob& value, bool critflag); - - void GetOID(Blob& oid) const; - void GetOIDString(Blob& oid) const; - void SetOID(const Blob& oid); - void SetOIDString(const char* oid); - - void GetValue(Blob& value) const; - void SetValue(const Blob& value); - - bool IsCritical() const; - void SetCritical(bool crit = true); - - void GetDER(Blob& der) const; - void SetDER(const Blob& der); - - bool IsPresent() { return mValue.size() > 0; } - - private: - Blob mOID; - Blob mValue; - bool mCrit; - }; - -} // namespace act - -#endif // ACT_X509Extension_H diff --git a/actlibrary/SLES-11-i686/Release/include/actX509KeyReg.h b/actlibrary/SLES-11-i686/Release/include/actX509KeyReg.h deleted file mode 100644 index 619a17d..0000000 --- a/actlibrary/SLES-11-i686/Release/include/actX509KeyReg.h +++ /dev/null @@ -1,48 +0,0 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actX509KeyReg.h -// Product: cv act library -// Purpose: registry for factory functions in actX509Kit.h -// -// Copyright: (c) 2000 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_X509KeyReg_h -#define ACT_X509KeyReg_h - -namespace act -{ - class IKey; - class Blob; - - typedef IKey* (*CreateKeyPtr)(); - typedef void (*X509ToKeyPtr)(const Blob& pkinfo, IKey* key); - typedef void (*KeyToX509Ptr)(const IKey* key, Blob& pkinfo ); - - struct X509KeyMapEntry - { - const char* OID; - CreateKeyPtr CreatePtr; - X509ToKeyPtr X509ToKey; - KeyToX509Ptr KeyToX509; - }; - - class X509KeyReg - { - public: - static IKey* CreateX509Key(const Blob& pkInfo); - static void GetX509KeyInfo(const IKey* key, Blob& pkInfo); - - static CreateKeyPtr GetCreatePointer(const char* oid); - static const char* GetOID(void* createptr); - static const char* GetNextOID(const char* oid); - - static void Insert(const char* name, CreateKeyPtr createptr, X509ToKeyPtr x509tokey, KeyToX509Ptr keytox509); - static void Insert(const X509KeyMapEntry* keymap); - }; - -} // namespace act - -#endif // ACT_X509KeyReg_h diff --git a/actlibrary/SLES-11-i686/Release/include/actX509Kit.h b/actlibrary/SLES-11-i686/Release/include/actX509Kit.h deleted file mode 100644 index bb0affb..0000000 --- a/actlibrary/SLES-11-i686/Release/include/actX509Kit.h +++ /dev/null @@ -1,45 +0,0 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actX509Kit.h -// Product: cv act library -// Purpose: declaration of all factory functions -// -// Copyright: (c) 2000 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_X509Kit_h -#define ACT_X509Kit_h - -namespace act -{ - class Blob; - class IKey; - - void X509ToRSA(const Blob& pkinfo, IKey* key); - void RSAToX509(const IKey* key, Blob& pkinfo); - void RSAGetAlgID(const IKey* key, Blob& algid); - void RSASetAlgID(const Blob& algid, IKey* key ); - - void X509ToDSA(const Blob& pkinfo, IKey* key); - void DSAToX509(const IKey* key, Blob& pkinfo); - void DSAGetAlgID(const IKey* key, Blob& algid); - void DSASetAlgID(const Blob& algid, IKey* key ); - - void X509ToECDSA(const Blob& pkinfo, IKey* key); - void ECDSAToX509(const IKey* key, Blob& pkinfo); - void ECDSAGetAlgID(const IKey* key, Blob& algid); - void ECDSASetAlgID(const Blob& algid, IKey* key ); - - void X509ToDH(const Blob& pkinfo, IKey* key); - void DHToX509(const IKey* key, Blob& pkinfo); - void DHGetAlgID(const IKey* key, Blob& algid); - void DHSetAlgID(const Blob& algid, IKey* key ); - - void ECDHGetAlgID(const IKey* key, Blob& algid); - void ECDHSetAlgID(const Blob& algid, IKey* key ); - -} -#endif - diff --git a/actlibrary/SLES-11-i686/Release/include/actX509SignHashReg.h b/actlibrary/SLES-11-i686/Release/include/actX509SignHashReg.h deleted file mode 100644 index d4a01d5..0000000 --- a/actlibrary/SLES-11-i686/Release/include/actX509SignHashReg.h +++ /dev/null @@ -1,40 +0,0 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actX509SignHashReg.h -// Product: cv act library -// Purpose: registry for factory functions in actX509Kit.h -// -// Copyright: (c) 2000-2001 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_X509SignHashReg_h -#define ACT_X509SignHashReg_h - -namespace act -{ - class Blob; - - // ------------------------------------------------------------------------ - struct X509SignHashMapEntry { - const char* OID; - const char* HashAlg; - const char* SignAlg; - }; - - // ------------------------------------------------------------------------ - class X509SignHashReg - { - public: - static void GetOID(const char* algo, const char* sign_algo, Blob& algid); - static const char* GetHashAlg(const Blob& algid); - static const char* GetSignAlg(const Blob& algid); - static void Insert(const X509SignHashMapEntry* map); - - static const char* GetHashAlg(const Blob& algid, const char* sign_algo); // deprecated - }; - -} -#endif - diff --git a/actlibrary/SLES-11-i686/Release/include/actX509SignReg.h b/actlibrary/SLES-11-i686/Release/include/actX509SignReg.h deleted file mode 100644 index 74b48a2..0000000 --- a/actlibrary/SLES-11-i686/Release/include/actX509SignReg.h +++ /dev/null @@ -1,41 +0,0 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actX509SignReg.h -// Product: cv act library -// Purpose: registry for factory functions in actX509Kit.h -// -// Copyright: (c) 2000 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_X509SignReg_h -#define ACT_X509SignReg_h - -namespace act -{ - class IKey; - class Blob; - - typedef IKey* (*CreateKeyPtr)(); - typedef void (*GetX509AlgIDPtr)(const IKey* key, Blob& algid); - typedef void (*SetX509AlgIDPtr)(const Blob& algid, IKey* key); - - struct X509SignMapEntry { - CreateKeyPtr CreatePtr; - GetX509AlgIDPtr GetAlgID; - SetX509AlgIDPtr SetAlgID; - }; - - class X509SignReg - { - public: - static void GetAlgID(const IKey* key, Blob& algid); - static void SetAlgID(const Blob& algid, IKey* key); - - static void Insert(CreateKeyPtr createptr, GetX509AlgIDPtr getalgid, SetX509AlgIDPtr setalgid ); - static void Insert(const X509SignMapEntry* keymap); - }; -} -#endif - diff --git a/actlibrary/Ubuntu-9-i686/Release/include/actAlgorithm.h b/actlibrary/Ubuntu-9-i686/Release/include/actAlgorithm.h deleted file mode 100644 index 035471e..0000000 --- a/actlibrary/Ubuntu-9-i686/Release/include/actAlgorithm.h +++ /dev/null @@ -1,73 +0,0 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actAlgorithm.h -// Product: cv act library -// Purpose: The class Algorithm generates algorithms for encryption and signing. -// The class Key defined these algorithms. By using this handle the -// necessary methods (e.g. hash-algorithms, verifying-primitiva, etc.) -// can be generated. -// -// Copyright: (c) 2000 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_Algorithm_h -#define ACT_Algorithm_h - -#include "actBasics.h" - -namespace act -{ - class IAlgorithm; - class IKey; - class Blob; - - class Algorithm - { - private: - Algorithm(const Algorithm&); - Algorithm &operator=(const Algorithm&); - - public: - Algorithm(IAlgorithm* alg); - Algorithm(const IKey* key, mode_t mode); - Algorithm(const IKey* key, mode_t mode, const Blob& data); - Algorithm(const char* name); - ~Algorithm(); - - void Write(const Blob& indata); - void Write(const byte* indata, size_t insize); - - void Finalize(); - - size_t Read(Blob& outdata, size_t max = 0); - size_t Read(byte* outbuffer, size_t buffersize); - - size_t GetAvailableSize() const; - status_t GetStatus() const; - - Algorithm& operator<<(const Blob& indata) { Write(indata); return *this; } - Algorithm& operator<<(Algorithm& (*manipulator)(Algorithm &alg)) { return manipulator(*this); } - Algorithm& operator>>(Blob& outdata) { Read(outdata); return *this; } - - operator IAlgorithm*(); - operator const IAlgorithm* () const; - IAlgorithm* GetPointer(); - const IAlgorithm* GetPointer() const; - - IAlgorithm* ReleasePointer(); - - private: - IAlgorithm* mAlg; - }; - - inline Algorithm& final(Algorithm& alg) - { - alg.Finalize(); - return alg; - } - -} // namespace act - -#endif // ACT_Algorithm_h diff --git a/actlibrary/Ubuntu-9-i686/Release/include/actAllocator.h b/actlibrary/Ubuntu-9-i686/Release/include/actAllocator.h deleted file mode 100644 index ce0bfb2..0000000 --- a/actlibrary/Ubuntu-9-i686/Release/include/actAllocator.h +++ /dev/null @@ -1,107 +0,0 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actAllocator.h -// Product: cv act library -// Purpose: -// -// Copyright: (c) 2008 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -// -// Autor: Markus Tesche (MTE) -// Date: 09/29/2008 -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_Allocator_h -#define ACT_Allocator_h - -#include "actBasics.h" - -// -------------------------------------------------------------------------------- -namespace act -{ - // - // Allocator<> - template - class Allocator - { - public: - typedef SizeT size_type; - typedef TypeT value_type; - typedef value_type* pointer; - typedef value_type& reference; - typedef const value_type* const_pointer; - typedef const value_type& const_reference; - - protected: - typedef Allocator ThisT; - typedef pointer (*fptr_allocate)(ThisT*, size_type n, const void* hint); - typedef void (*fptr_deallocate)(ThisT*, pointer p, size_type n); - - private: - Allocator(const Allocator&); - Allocator& operator=(const Allocator&); - - protected: - Allocator(fptr_allocate pAllocate, fptr_deallocate pDeallocate) throw() - : m_pAllocate(pAllocate) - , m_pDeallocate(pDeallocate) - { } - - public: - inline pointer allocate(size_type n, const void* hint) - { - return m_pAllocate(this, n, hint); - } - - inline void deallocate(pointer p, size_type n) - { - if(p != 0) m_pDeallocate(this, p, n); - } - - protected: - fptr_allocate m_pAllocate; - fptr_deallocate m_pDeallocate; - }; - - // - // AllocatorImpl<> - template - < - class AllocatorT, - class BaseT = Allocator - > - class AllocatorImpl : public BaseT - { - public: - typedef typename BaseT::pointer pointer; - typedef typename BaseT::size_type size_type; - - protected: - typedef AllocatorImpl ThisT; - - public: - AllocatorImpl() throw() - : BaseT(_allocate, _deallocate) - { } - - AllocatorT& ref_alloc() { return m_Alloc; } - - private: - inline static pointer _allocate(BaseT* pThis, size_type n, const void* hint) - { - return static_cast(pThis)->m_Alloc.allocate(n, hint); - } - - inline static void _deallocate(BaseT* pThis, pointer p, size_type n) - { - static_cast(pThis)->m_Alloc.deallocate(p, n); - } - - private: - AllocatorT m_Alloc; - }; - -} // namespace act - -#endif // ACT_Allocator_h diff --git a/actlibrary/Ubuntu-9-i686/Release/include/actBasics.h b/actlibrary/Ubuntu-9-i686/Release/include/actBasics.h deleted file mode 100644 index 39057d6..0000000 --- a/actlibrary/Ubuntu-9-i686/Release/include/actBasics.h +++ /dev/null @@ -1,93 +0,0 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actBasics.h -// Product: cv act library -// Purpose: integration of globally available identifiers -// -// Copyright: (c) 2000 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_Basics_h -#define ACT_Basics_h - -#include "actEnv.h" - -#ifndef ACT_LITTLE_ENDIAN -# define ACT_LITTLE_ENDIAN -#endif - -#if defined(__BIG_ENDIAN__) || \ - defined(__sun__) || \ - defined(__sparc) || \ - defined(__sparc__) || \ - defined(__ppc__) || \ - defined(__ppc64__) -# undef ACT_LITTLE_ENDIAN -#endif // __sun__ - - -#ifndef NO_STL_SUPPORT -# include // used for ptrdiff_t,size_t -#else -# ifndef _PTRDIFF_T_DEFINED - typedef int ptrdiff_t; -# define _PTRDIFF_T_DEFINED -# endif - - -# ifndef _SIZE_T_DEFINED - typedef unsigned int size_t; -# define _SIZE_T_DEFINED -# endif -#endif // NO_STL_SUPPORT - -namespace act -{ - typedef unsigned long ulong; - typedef unsigned int uint; - typedef unsigned short ushort; - typedef unsigned char uchar; - typedef unsigned char byte; - typedef unsigned short word; - typedef unsigned int dword; - -#if defined(_MSC_VER) & !defined(__MWERKS__) - using ::size_t; - using ::ptrdiff_t; -#else - using std::size_t; - using std::ptrdiff_t; -#endif - - typedef int paramid_t; - typedef int status_t; - typedef int mode_t; - typedef int export_t; - - typedef ushort uint16; - typedef uint uint32; -#if defined(__GNUC__) || defined(__MWERKS__) - typedef unsigned long long uint64; -# define U64(x) x##ULL -#else - //#ifdef _MSC_EXTENSIONS - typedef unsigned __int64 uint64; -# define U64(x) x##ui64 -#endif - -#if defined(__GNUC__) -# define GCC_VERSION (__GNUC__ * 10000 + __GNUC_MINOR__ * 100 + __GNUC_PATCHLEVEL__) -#endif - - const export_t DEFAULT = 0; - - // - // scoped_delete<> - template - struct scoped_delete { }; - -} // namespace act - -#endif // ACT_Basics_h diff --git a/actlibrary/Ubuntu-9-i686/Release/include/actBlob.h b/actlibrary/Ubuntu-9-i686/Release/include/actBlob.h deleted file mode 100644 index e42687d..0000000 --- a/actlibrary/Ubuntu-9-i686/Release/include/actBlob.h +++ /dev/null @@ -1,644 +0,0 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actBlob.h -// Product: cv act library -// Purpose: The datatype Blob (Binary Large Object) is a universal type, which -// can be used for any data. The class Blob almost behaves like -// std::vector with the difference that freed memory -// is filled with zeros to enhance security. -// -// Copyright: (c) 2000 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_Blob_h -#define ACT_Blob_h - -#include "actMove.h" -#include "actBasics.h" -#include "actAllocator.h" - -#ifndef UNDER_CE_30 -# include -#endif // UNDER_CE_30 - -#ifndef NO_STL_SUPPORT -# include // used for reserve_iterator -# include // used for string -#else - // -------------------------------------------------------------------------------- - // if there is no STL support, we define reverse_iterator here. - // -------------------------------------------------------------------------------- - namespace std - { - // ITERATOR TAGS (from ) - struct input_iterator_tag {}; - struct output_iterator_tag {}; - struct forward_iterator_tag - : public input_iterator_tag {}; - struct bidirectional_iterator_tag - : public forward_iterator_tag {}; - struct random_access_iterator_tag - : public bidirectional_iterator_tag {}; - - // TEMPLATE CLASS iterator (from ) - template - struct iterator { - typedef _C iterator_category; - typedef _Ty value_type; - typedef _D distance_type; - }; - template - struct _Bidit : public iterator {}; - template - struct _Ranit : public iterator {}; - - // TEMPLATE CLASS iterator_traits (from ) - template - struct iterator_traits { - typedef _It::iterator_category iterator_category; - typedef _It::value_type value_type; - typedef _It::distance_type distance_type; - }; - - - // TEMPLATE CLASS reverse_iterator (from ) - template - class reverse_iterator : public _Ranit<_Ty, _D> { - public: - typedef reverse_iterator<_RI, _Ty, _Rt, _Pt, _D> _Myt; - typedef _RI iter_type; - typedef _Rt reference_type; - typedef _Pt pointer_type; - reverse_iterator() - {} - explicit reverse_iterator(_RI _X) - : current(_X) {} - _RI base() const - {return(current); } - _Rt operator*() const - {return(*(current - 1)); } - // _Pt operator->() const - // {return(&**this); } - _Myt& operator++() - {--current; - return(*this); } - _Myt operator++(int) - {_Myt _Tmp = *this; - --current; - return(_Tmp); } - _Myt& operator--() - {++current; - return(*this); } - _Myt operator--(int) - {_Myt _Tmp = *this; - ++current; - return(_Tmp); } - _Myt& operator+=(_D _N) - {current -= _N; - return(*this); } - _Myt operator+(_D _N) const - {return(_Myt(current - _N)); } - _Myt& operator-=(_D _N) - {current += _N; - return(*this); } - _Myt operator-(_D _N) const - {return(_Myt(current + _N)); } - _Rt operator[](_D _N) const - {return(*(*this + _N)); } - protected: - _RI current; - }; - template inline - bool __cdecl operator==( - const reverse_iterator<_RI, _Ty, _Rt, _Pt, _D>& _X, - const reverse_iterator<_RI, _Ty, _Rt, _Pt, _D>& _Y) - {return(get_base(_X) == get_base(_Y)); } - template inline - bool __cdecl operator!=( - const reverse_iterator<_RI, _Ty, _Rt, _Pt, _D>& _X, - const reverse_iterator<_RI, _Ty, _Rt, _Pt, _D>& _Y) - {return(!(_X == _Y)); } - template inline - bool __cdecl operator<( - const reverse_iterator<_RI, _Ty, _Rt, _Pt, _D>& _X, - const reverse_iterator<_RI, _Ty, _Rt, _Pt, _D>& _Y) - {return(get_base(_Y) < get_base(_X)); } - template inline - bool __cdecl operator>( - const reverse_iterator<_RI, _Ty, _Rt, _Pt, _D>& _X, - const reverse_iterator<_RI, _Ty, _Rt, _Pt, _D>& _Y) - {return(_Y < _X); } - template inline - bool __cdecl operator<=( - const reverse_iterator<_RI, _Ty, _Rt, _Pt, _D>& _X, - const reverse_iterator<_RI, _Ty, _Rt, _Pt, _D>& _Y) - {return(!(_Y < _X)); } - template inline - bool __cdecl operator>=( - const reverse_iterator<_RI, _Ty, _Rt, _Pt, _D>& _X, - const reverse_iterator<_RI, _Ty, _Rt, _Pt, _D>& _Y) - {return(!(_X < _Y)); } - template inline - _D __cdecl operator-( - const reverse_iterator<_RI, _Ty, _Rt, _Pt, _D>& _X, - const reverse_iterator<_RI, _Ty, _Rt, _Pt, _D>& _Y) - {return(get_base(_Y) - get_base(_X)); } - template inline - reverse_iterator<_RI, _Ty, _Rt, _Pt, _D> __cdecl operator+(_D _N, - const reverse_iterator<_RI, _Ty, _Rt, _Pt, _D>& _Y) - {return(reverse_iterator<_RI, _Ty, _Rt, _Pt, _D>( - get_base(_Y) - _N)); } - } // namespace std - -#endif //NO_STL_SUPPORT - -// -------------------------------------------------------------------------------- -namespace act -{ - // - // byte_array for fixed data - struct byte_array - { - const act::byte* value; - const size_t size; - }; - - inline byte_array make_array(const act::byte* value = 0, size_t size = 0) - { - const byte_array ba = { value, size }; - return ba; - }; - -#ifndef ACT_NO_BYTE_ARRAY_MACROS -# define _A(x) x.value, x.size -# define _B(x) act::make_array(reinterpret_cast(x), sizeof(x) - sizeof(x[0])) -# define _C(x) act::make_array(reinterpret_cast(x), sizeof(x)) -# define _H(x) { (const act::byte*) x, sizeof(x) - sizeof(x[0]) } -#endif - -#if(_MSC_VER >= 1300) - template - < - class _Ty, - class _Diff, - class _Pointer, - class _Reference, - class _Pointer2, - class _Reference2 - > - class _Ptrit : - public std::iterator - { // wrap pointer as random-access iterator - public: - typedef _Ptrit<_Ty, _Diff, _Pointer, _Reference, _Pointer2, _Reference2> _Myt; - - _Ptrit() - { // construct with uninitialized wrapped pointer - } - - _Ptrit(_Pointer _Ptr) : current(_Ptr) - { // construct wrapped pointer from _Ptr - } - - _Ptrit(const _Ptrit<_Ty, _Diff, _Pointer2, _Reference2, _Pointer2, _Reference2>& _Iter) - : current(_Iter.base()) - { // const converter or copy constructor - } - - _Pointer base() const - { // return wrapped pointer - return current; - } - - _Reference operator*() const - { // return designated value - return *current; - } - - _Pointer operator->() const - { // return pointer to class object - return &**this; - } - - _Myt& operator++() - { // preincrement - ++current; - return *this; - } - - _Myt operator++(int) - { // postincrement - _Myt _Tmp = *this; - ++current; - return _Tmp; - } - - _Myt& operator--() - { // predecrement - --current; - return *this; - } - - _Myt operator--(int) - { // postdecrement - _Myt _Tmp = *this; - --current; - return _Tmp; - } - - bool operator==(size_t _Right) const - { // test if wrapped pointer == integer (null pointer constant) - return current == (_Pointer) _Right; - } - - bool operator==(const _Myt& _Right) const - { // test for iterator equality - return current == _Right.current; - } - - bool operator!=(const _Myt& _Right) const - { // test for iterator inequality - return !(*this == _Right); - } - - _Myt& operator+=(_Diff _Off) - { // increment by integer - current += _Off; - return *this; - } - - _Myt operator+(_Diff _Off) const - { // return this + integer - return _Myt(current + _Off); - } - - _Myt& operator-=(_Diff _Off) - { // decrement by integer - current -= _Off; - return *this; - } - - _Myt operator-(_Diff _Off) const - { // return this - integer - return _Myt(current - _Off); - } - - _Reference operator[](_Diff _Off) const - { // subscript - return *(*this + _Off); - } - - bool operator<(const _Myt& _Right) const - { // test if this < _Right - return current < _Right.current; - } - - bool operator>(const _Myt& _Right) const - { // test if this > _Right - return _Right < *this; - } - - bool operator<=(const _Myt& _Right) const - { // test if this <= _Right - return !(_Right < *this); - } - - bool operator>=(const _Myt& _Right) const - { // test if this >= _Right - return !(*this < _Right); - } - - _Diff operator-(const _Myt& _Right) const - { // return difference of iterators - return current - _Right.current; - } - - protected: - _Pointer current; // the wrapped pointer - }; - -#endif // _MSC_VER >= 1300 - - // - // Blob - class Blob - { - protected: - struct flags - { - byte copy_on_write:1; - byte external_allocated:1; - - flags() throw() - : copy_on_write(0) - , external_allocated(0) - { } - }; - - public: - typedef Allocator _Alloc; - typedef _Alloc allocator_type; - typedef _Alloc::size_type size_type; - typedef _Alloc::value_type value_type; - typedef value_type* pointer; - typedef value_type& reference; - typedef const value_type* const_pointer; - typedef const value_type& const_reference; - typedef ptrdiff_t difference_type; - -#if(_MSC_VER >= 1300) - typedef _Ptrit - < value_type, difference_type, pointer, reference, pointer, reference - > iterator; - - typedef _Ptrit - < value_type, difference_type, const_pointer, const_reference, pointer, reference - > const_iterator; - - inline static pointer get_base(iterator it) { return it.base(); } - inline static const_pointer get_base(const_iterator it) { return it.base(); } - -#else - typedef byte* iterator; - typedef const byte* const_iterator; - - inline static pointer get_base(iterator it) { return it; } - inline static const_pointer get_base(const_iterator it) { return it; } - -#endif - -#if (_MSC_VER >= 1200) && (_MSC_VER < 1300) - typedef std::reverse_iterator - < iterator, value_type, reference, pointer, difference_type - > reverse_iterator; - - typedef std::reverse_iterator - < const_iterator, value_type, const_reference, const_pointer, difference_type - > const_reverse_iterator; - -#else - typedef std::reverse_iterator reverse_iterator; - typedef std::reverse_iterator const_reverse_iterator; - -#endif - // construct/copy/destroy - Blob(); - - explicit Blob(allocator_type* allocator); - explicit Blob(const char* str, allocator_type* allocator = dAllocator); - -#ifndef NO_STL_SUPPORT - explicit Blob(std::string& str, allocator_type* allocator = dAllocator); - explicit Blob(const std::string& str, allocator_type* allocator = dAllocator); -#endif // NO_STL_SUPPORT - - explicit Blob(const byte_array& ba, allocator_type* allocator = dAllocator); - explicit Blob(size_type n, byte v = byte(0), allocator_type* allocator = dAllocator); - - template - Blob(inputit f, inputit l, allocator_type* allocator = dAllocator) - : mFirst(0), mLast(0), mEnd(0), mAllocator(allocator) - { - insert(begin(), f, l); - } - - Blob(move_from other); - Blob(const Blob& other); - ~Blob(); - - Blob& operator=(const Blob& other); - Blob& operator=(move_from other); - - template - void assign(inputit f, inputit l) - { - erase(begin(), end()); - insert(begin(), f, l); - } - - void assign(const byte_array& ba); - void assign(size_type n, byte x = byte(0)); - - // capacity - bool empty() const { return size() == 0; } - size_type size() const { return mFirst == 0 ? 0 : mLast - mFirst; } - size_type capacity() const { return mFirst == 0 ? 0 : mEnd - mFirst; } - size_type max_size() const; - void reserve(size_type n); - void resize(size_type n, byte x = byte(0)); - - // iterators - iterator begin() { return mFirst; } - const_iterator begin() const { return const_iterator(mFirst); } - iterator end() { return mLast; } - const_iterator end() const { return const_iterator(mLast); } - reverse_iterator rbegin() { return reverse_iterator(end()); } - const_reverse_iterator rbegin() const { return const_reverse_iterator(end()); } - reverse_iterator rend() { return reverse_iterator(begin()); } - const_reverse_iterator rend() const { return const_reverse_iterator(begin()); } - - - // element access: - reference at(size_type p); - const_reference at(size_type p) const; - reference operator[](size_type p) { return *(begin() + p); } - const_reference operator[](size_type p) const { return *(begin() + p); } - - reference front() { return *begin(); } - const_reference front() const { return *begin(); } - reference back() { return *(end() - 1); } - const_reference back() const { return *(end() - 1); } - - // modifiers - void push_back(byte x) { insert(end(), x); } - void pop_back() { erase(end() - 1); } - - void insert(iterator p, size_type m, byte x); - iterator insert(iterator p, byte x = byte(0)); - - template - void insert(iterator p, inputit f, inputit l) - { - size_type m = 0; - _distance(f, l, m); - if(size_type(mEnd - mLast) < m) - { - size_type n = size(); - n = aligned_size(n + (m < n ? n : m)); - iterator s = allocate(n, (void*) 0); - iterator q = ucopy(mFirst, p, s); - q = ucopy(f, l, q); - ucopy(p, mLast, q); - _destroy(mFirst, mLast); - deallocate(get_base(mFirst), mEnd - mFirst); - mEnd = s + n; - mLast = s + size() + m; - mFirst = s; - } - else if(size_type(mLast - p) < m) - { - ucopy(p, mLast, p + m); - ucopy(f + (mLast - p), l, mLast); - copy(f, f + (mLast - p), p); - mLast += m; - } - else if(0 < m) - { - ucopy(mLast - m, mLast, mLast); - copy_backward(p, mLast - m, mLast); - copy(f, l, p); - mLast += m; - } - } - - Blob& append(const Blob& x) - { - insert(end(), x.begin(), x.end()); - return *this; - } - - Blob& append(size_type m, byte x) - { - insert(end(), m, x); - return *this; - } - - template - Blob& append(inputit f, inputit l) - { - insert(end(), f, l); - return *this; - } - - iterator erase(iterator p); - iterator erase(iterator f, iterator l); - void clear(); - void swap(Blob& x); - - // used by compare operators - bool _eq(const Blob& x) const; - bool _lt(const Blob& x) const; - - allocator_type* get_allocator() const { return mAllocator; } - static allocator_type* set_default_allocator(allocator_type* allocator) - { - std::swap(dAllocator, allocator); - return allocator; - } - - private: - template - outputit copy(inputit f, inputit l, outputit x) - { - for(; f != l; ++x, ++f) - *x = *f; - return x; - } - - iterator copy_backward(const_iterator f, const_iterator l, iterator x); - - template - outputit ucopy(inputit f, inputit l, outputit p) - { - for(; f != l; ++p, ++f) - construct(get_base(p), *f); - return p; - } - - void fill(iterator f, const_iterator l, byte x); - void ufill(iterator f, size_type n, byte x); - - size_type distance(const_iterator f, const_iterator l) const; - - template - void _distance(inputit f, inputit l, size_type& n) const - { - for(; f != l; ++f) - ++n; - } - - bool equal(const_iterator f, const_iterator l, const_iterator x) const; - bool lexicographical_compare(const_iterator f1, const_iterator l1, const_iterator f2, const_iterator l2) const; - - byte* allocate(size_type n, const void* hint); - void deallocate(pointer p, size_type n); - - void construct(byte* p, const_reference v) { *p = v; } - void destroy(byte* p) { *p = 0; } - - void _destroy(iterator f, iterator l); - - void outofrange() const; - - static size_type aligned_size(size_type size); - - protected: - flags mFlags; - iterator mFirst, mLast, mEnd; - allocator_type* mAllocator; - static allocator_type* dAllocator; - }; - -#ifndef UNDER_CE_30 - std::ostream &operator<<(std::ostream& os, const Blob& blob); -#endif // UNDER_CE_30 - - - // -------------------------------------------------------------------------------- - inline bool operator==(const Blob& x, const Blob&y) - { - return x._eq(y); - } - - inline bool operator!=(const Blob& x, const Blob&y) - { - return !(x._eq(y)); - } - - inline bool operator<(const Blob& x, const Blob&y) - { - return x._lt(y); - } - - inline bool operator>=(const Blob& x, const Blob&y) - { - return !(x._lt(y)); - } - - inline bool operator<=(const Blob& x, const Blob&y) - { - return x._eq(y) || x._lt(y); - } - - inline bool operator>(const Blob& x, const Blob&y) - { - return !(x._eq(y) || x._lt(y)); - } - -} // namespace act - -// -------------------------------------------------------------------------------- -namespace std -{ - // --------------------------------------------------------------------------- - inline void swap(act::Blob& left, act::Blob& right) { left.swap(right); } - -} // namespace std - -#endif // ACT_Blob_h diff --git a/actlibrary/Ubuntu-9-i686/Release/include/actBlockCipherKit.h b/actlibrary/Ubuntu-9-i686/Release/include/actBlockCipherKit.h deleted file mode 100644 index e89cc2a..0000000 --- a/actlibrary/Ubuntu-9-i686/Release/include/actBlockCipherKit.h +++ /dev/null @@ -1,31 +0,0 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actBlockCipherKit.h -// Product: cv act library -// Purpose: declaration of all factory functions -// -// Copyright: (c) 2000 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_BlockCipherKit_h -#define ACT_BlockCipherKit_h - -namespace act -{ - class IBlockCipher; - - IBlockCipher* CreateDES(); - IBlockCipher* CreateTripleDES(); - IBlockCipher* CreateCAST128(); - IBlockCipher* CreateBlowFish(); - IBlockCipher* CreateTwoFish(); - IBlockCipher* CreateMars(); - IBlockCipher* CreateRijndael(); - IBlockCipher* CreateSerpent(); - IBlockCipher* CreateRC2(); - //IBlockCipher* CreateRC6(); -} -#endif - diff --git a/actlibrary/Ubuntu-9-i686/Release/include/actBlockCipherModeKit.h b/actlibrary/Ubuntu-9-i686/Release/include/actBlockCipherModeKit.h deleted file mode 100644 index ee2bd0a..0000000 --- a/actlibrary/Ubuntu-9-i686/Release/include/actBlockCipherModeKit.h +++ /dev/null @@ -1,27 +0,0 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actBlockCipherModeKit.h -// Product: cv act library -// Purpose: declaration of all factory functions -// -// Copyright: (c) 2000 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - - -#ifndef ACT_BlockCipherModeKit_h -#define ACT_BlockCipherModeKit_h - -namespace act -{ - class IBlockCipherMode; - - IBlockCipherMode* CreateECBMode(); - IBlockCipherMode* CreateCBCMode(); - IBlockCipherMode* CreateCFBMode(); - IBlockCipherMode* CreateOFBMode(); - IBlockCipherMode* CreateCTRMode(); -} -#endif - diff --git a/actlibrary/Ubuntu-9-i686/Release/include/actBlockCipherModeReg.h b/actlibrary/Ubuntu-9-i686/Release/include/actBlockCipherModeReg.h deleted file mode 100644 index 6ce7d63..0000000 --- a/actlibrary/Ubuntu-9-i686/Release/include/actBlockCipherModeReg.h +++ /dev/null @@ -1,40 +0,0 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actBlockCipherModeReg.h -// Product: cv act library -// Purpose: registry for factory functions in actBlockCipherModeKit.h -// -// Copyright: (c) 2000 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_BlockCipherModeReg_h -#define ACT_BlockCipherModeReg_h - -namespace act -{ - class IBlockCipherMode; - - typedef IBlockCipherMode* (*CreateBlockCipherModePtr)(); - - struct BlockCipherModeMapEntry - { - const char* Name; - CreateBlockCipherModePtr CreatePtr; - }; - - class BlockCipherModeReg - { - public: - static IBlockCipherMode* CreateBlockCipherMode(const char* name); - static CreateBlockCipherModePtr GetCreatePointer(const char* name); - static const char* GetName(void* createptr); - static const char* GetNextName(const char* name); - static void Insert(const char* name, CreateBlockCipherModePtr createptr); - static void Insert(const BlockCipherModeMapEntry* map); - }; - -} // namespace act - -#endif // ACT_BlockCipherModeReg_h diff --git a/actlibrary/Ubuntu-9-i686/Release/include/actBlockCipherReg.h b/actlibrary/Ubuntu-9-i686/Release/include/actBlockCipherReg.h deleted file mode 100644 index 7f96a90..0000000 --- a/actlibrary/Ubuntu-9-i686/Release/include/actBlockCipherReg.h +++ /dev/null @@ -1,39 +0,0 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actBlockCipherReg.h -// Product: cv act library -// Purpose: registry for factory functions in actBlockCipherKit.h -// -// Copyright: (c) 2000 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_BlockCipherReg_h -#define ACT_BlockCipherReg_h - -namespace act -{ - class IBlockCipher; - - typedef IBlockCipher* (*CreateBlockCipherPtr)(); - - struct BlockCipherMapEntry { - const char* Name; - CreateBlockCipherPtr CreatePtr; - }; - - class BlockCipherReg - { - public: - static IBlockCipher* CreateBlockCipher(const char* name); - static CreateBlockCipherPtr GetCreatePointer(const char* name); - static const char* GetName(void* createptr); - static const char* GetNextName(const char* name); - static void Insert(const char* name,CreateBlockCipherPtr createptr); - static void Insert(const BlockCipherMapEntry* map); - }; -} - -#endif - diff --git a/actlibrary/Ubuntu-9-i686/Release/include/actCRL.h b/actlibrary/Ubuntu-9-i686/Release/include/actCRL.h deleted file mode 100644 index 9922439..0000000 --- a/actlibrary/Ubuntu-9-i686/Release/include/actCRL.h +++ /dev/null @@ -1,68 +0,0 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actCRL.h -// Product: cv act library -// Purpose: -// -// Copyright: (c) 2000 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_CRL_h -#define ACT_CRL_h -#include "actBasics.h" - -namespace act -{ - class IKey; - class Blob; - class ICertificate; - class ICRL; - class CRL - { - public: - CRL(const char* type); - CRL(const char* type, const Blob& crlblob); - CRL(const CRL& crl); - - void SetParam(paramid_t id,const Blob& blob); - void SetParam(paramid_t id,int val); - void SetParam(paramid_t id,const char* cstr); - void GetParam(paramid_t id,Blob& blob) const; - int GetParam(paramid_t) const; - - void Import(const Blob& crl); - void Export(Blob& crl) const; - - void Revoke(const ICertificate* cert); - bool IsRevoked(const ICertificate* Cert) const; - void RemoveRevokation(const ICertificate* cert); - - void Revoke(const Blob& blob); - bool IsRevoked(const Blob& blob) const; - void RemoveRevokation(const Blob& blob); - - void Sign(const IKey* privkey); - int Verify(const IKey* pubkey) const; - - const ICRL* GetPointer() const; - ICRL* GetPointer(); - - operator const ICRL* () const; - operator ICRL* (); - - - ICRL* ReleasePointer(); - - CRL& operator= (const CRL& crl); - - ~CRL(); - private: - ICRL* mCRL; - }; - -}; // namespace act - -#endif - diff --git a/actlibrary/Ubuntu-9-i686/Release/include/actCertificate.h b/actlibrary/Ubuntu-9-i686/Release/include/actCertificate.h deleted file mode 100644 index f8d063b..0000000 --- a/actlibrary/Ubuntu-9-i686/Release/include/actCertificate.h +++ /dev/null @@ -1,67 +0,0 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actCertificate.h -// Product: cv act library -// Purpose: The concrete class Certificate enables direct access to a certificate, -// e.g. its public key and the corresponding validity. -// -// Copyright: (c) 2000 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_Certificate_h -#define ACT_Certificate_h - -#include "actBasics.h" - -namespace act -{ - class IKey; - class Blob; - class ICertificate; - - class Certificate - { - public: - Certificate(); - Certificate(const char* type); - Certificate(const char* type, const Blob& certblob); - Certificate(const Certificate& cert); - - void SetParam(paramid_t id, const Blob& blob); - void SetParam(paramid_t id, int val); - void SetParam(paramid_t id, const char* cstr); - void GetParam(paramid_t id, Blob& blob) const; - int GetParam(paramid_t id) const; - - void Import(const Blob& certblob); - void Export(Blob& certblob) const; - - void SetPublicKey(const IKey* pubkey); - IKey* CreatePublicKey(const char* = 0) const; - - void Sign(const IKey* privkey); - int Verify(const IKey* pubkey) const; - - const ICertificate* GetPointer() const; - ICertificate* GetPointer(); - - operator const ICertificate*() const; - operator ICertificate*(); - - ICertificate* ReleasePointer(); - - Certificate& operator=(const Certificate& cert); - Certificate& Reset(ICertificate* cert); - Certificate& Required(const char* where = 0); - - ~Certificate(); - - private: - ICertificate* mCert; - }; - -}; // namespace act - -#endif // ACT_Certificate_h diff --git a/actlibrary/Ubuntu-9-i686/Release/include/actCertificateKit.h b/actlibrary/Ubuntu-9-i686/Release/include/actCertificateKit.h deleted file mode 100644 index 9387a39..0000000 --- a/actlibrary/Ubuntu-9-i686/Release/include/actCertificateKit.h +++ /dev/null @@ -1,28 +0,0 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actCertificateKit.h -// Product: cv act library -// Purpose: declaration of all factory functions -// -// Copyright: (c) 2000 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_CERTIFICATEKIT_H -#define ACT_CERTIFICATEKIT_H - -namespace act -{ - class ICertificate; - class ICRL; - class ICVCertRequest; - - ICertificate* CreateX509Certificate(); - ICRL* CreateX509CRL(); - - ICertificate* CreateCVCertificate(); - ICVCertRequest* CreateCVCertRequest(); -} -#endif - diff --git a/actlibrary/Ubuntu-9-i686/Release/include/actCertificateReg.h b/actlibrary/Ubuntu-9-i686/Release/include/actCertificateReg.h deleted file mode 100644 index afd7a75..0000000 --- a/actlibrary/Ubuntu-9-i686/Release/include/actCertificateReg.h +++ /dev/null @@ -1,56 +0,0 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actCertificateReg.h -// Product: cv act library -// Purpose: -// -// Copyright: (c) 2000 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_CERTIFICATEREG_H -#define ACT_CERTIFICATEREG_H - -namespace act -{ - class ICertificate; - class ICRL; - - typedef ICertificate* (*CreateCertificatePtr)(); - typedef ICRL* (*CreateCRLPtr)(); - - struct CertificateMapEntry { - const char* Name; - CreateCertificatePtr CreatePtr; - }; - - struct CRLMapEntry { - const char* Name; - CreateCRLPtr CreatePtr; - }; - - class CertificateReg - { - public: - static ICertificate* CreateCertificate(const char* name); - static CreateCertificatePtr GetCreatePointer(const char* name); - static const char* GetName(void* createptr); - static const char* GetNextName(const char* name); - static void Insert(const char* name, CreateCertificatePtr createptr); - static void Insert(const CertificateMapEntry* certmap); - }; - - class CRLReg - { - public: - static ICRL* CreateCRL(const char* name); - static CreateCRLPtr GetCreatePointer(const char* name); - static const char* GetName(void* createptr); - static const char* GetNextName(const char* name); - static void Insert(const char* name, CreateCRLPtr createptr); - static void Insert(const CRLMapEntry* certmap); - }; -} -#endif - diff --git a/actlibrary/Ubuntu-9-i686/Release/include/actDate.h b/actlibrary/Ubuntu-9-i686/Release/include/actDate.h deleted file mode 100644 index 5d08c74..0000000 --- a/actlibrary/Ubuntu-9-i686/Release/include/actDate.h +++ /dev/null @@ -1,109 +0,0 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actDate.h -// Product: cv act library -// Purpose: The Date function used in act Library -// -// Copyright: (c) 2000 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_Date_h -#define ACT_Date_h - -#include "actBasics.h" - -#if defined(ACT_POSIX) -# include -#endif - -namespace act -{ - class Blob; - - class Date - { - public: - Date(); //today - Date(int day, int month ,int year); - Date(int day, int month, int year, int hour, int minute, int sec); - Date(const Blob& der); - - Date(const unsigned char* ch, const unsigned int size); - - Date& SetToday(); - - int GetDay() const { return m_day; } - int GetMonth() const { return m_month; } - int GetYear() const { return m_year; } - int GetHour() const { return m_hour; } - int GetMinute() const { return m_min; } - int GetSecond() const { return m_sec; } - - void IgnoreTime(bool b); // ignore time(hour, min,sec) in the operators - const Date& operator=(const Date&); - bool operator>(const Date&) const; - bool operator>=(const Date&) const; - bool operator<(const Date&) const; - bool operator<=(const Date&) const; - bool operator==(const Date&) const; - bool operator!=(const Date&) const; - - const Date& AddMonths(int m); - const Date& SubMonths(int m); - const Date& AddYears(int y); - const Date& SubYears(int y); - const Date& AddDays(int d); - const Date& SubDays(int d); - const Date& AddHours(int h); - const Date& SubHours(int h); - const Date& AddMinutes(int m); - const Date& SubMinutes(int m); - const Date& AddSecond(int m); - const Date& SubSecond(int m); - - int DayOfWeek() const; // 0:Sunday, 1=Monday ... 6=Saturday - int IsLeap(int y) const; // 1:leapyear, 0:else - int DaysPerMonth(int m, int y) const; - long GetDifference(const Date& d2) const; - - long GetJulian() const; - long GetJulian(int d, int m, int y) const; - void ConvertFromJulian(long jd, int& d, int& m, int& y); - - Blob Encode() const; - size_t Encode(Blob& encoded) const; - - Blob EncodeToGeneralizedTime() const; - Blob GetGeneralizedTimeString() const; - Blob GetLocalTimeString() const; // fixed format: "DD/MM/YYYY HH:MM:SS" - - operator Blob() const; - - int GetDayFromWeekDay (int weekday, int year, int month, int which); - -#if defined(ACT_POSIX) - static void copyDatetm(act::Date a, struct tm& b); - static void copytmDate(struct tm a, act::Date& b); -#endif - - private: - Date& SetYear(int year) { m_year = year; return *this; } - Date& SetMonth(int month) { m_month = month; return *this; } - Date& SetDay(int day) { m_day = day; return *this; } - Date& SetHour(int hour) { m_hour = hour; return *this; } - Date& SetMinute(int minute) { m_min = minute; return *this; } - Date& SetSecond(int sec) { m_sec = sec; return *this; } - bool IsValid() const; - void AdjustDays(); - - private: - int m_day, m_month, m_year; - int m_hour, m_min, m_sec; - bool m_ignore_time; - }; - -} // namespace act - -#endif // ACT_Date_h diff --git a/actlibrary/Ubuntu-9-i686/Release/include/actDebug.h b/actlibrary/Ubuntu-9-i686/Release/include/actDebug.h deleted file mode 100644 index 623c00a..0000000 --- a/actlibrary/Ubuntu-9-i686/Release/include/actDebug.h +++ /dev/null @@ -1,295 +0,0 @@ -////////////////////////////////////////////////////////////////////////// -// Name: actDebug.h -// Product: cv act library -// Purpose: Integration of globally available debug macros and functions -// -// Copyright: (c) 2005 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -// -// Autor: Markus Tesche (MTE) -// Date: 12/15/2005 -////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_Debug_h -#define ACT_Debug_h - -#include "actEnv.h" -#include "actBasics.h" -#include "actException.h" - -// -// ACT_NOOP use for semicolon terminated non operating macros. -#ifdef _MSC_VER -# if _MSC_VER >= 1210 -# define ACT_NOOP __noop -# else -# define ACT_NOOP ((void) 0) -# endif -// MSVC specific -# if !defined(DEBUG_NEW) -# if defined(_DEBUG) && !defined(_WIN32_WCE) -# include -# define DEBUG_NEW new(_NORMAL_BLOCK, __FILE__, __LINE__) -# else -# define DEBUG_NEW new -# endif -# endif -#else -# define ACT_NOOP ((void) 0) -# define DEBUG_NEW new -#endif - -// -// Declare all debug macros for release builds. -#ifdef _DEBUG -# ifdef UNDER_CE -# define ACT_ASSERT ACT_NOOP -# define ACT_ASSERT_ALWAYS(m, l, f) ACT_NOOP -# endif -# define ACT_DEBUG 1 -# define ACT_DEBUG_PARAM(p) p -# define ACT_DEBUG_SOURCE() act::FileAndLine(__FILE__, __LINE__) -# define ACT_NOT_IMPLEMENTED(m, w) throw act::NotImplementedException(m, w) << ACT_DEBUG_SOURCE() -#else -# define ACT_DEBUG 0 -# define ACT_DEBUG_SOURCE() act::FileAndLine() -# define ACT_NOT_IMPLEMENTED(m, w) throw act::NotImplementedException(m, w) -# if defined(_MSC_VER) && _MSC_VER < 1210 -# define ACT_DEBUG_PARAM(p) p -# define ACT_TRACE ACT_NOOP -# define ACT_TRACELOG ACT_NOOP -# define ACT_ASSERT ACT_NOOP -# else -# define ACT_DEBUG_PARAM(p) -# define ACT_TRACE(...) ACT_NOOP -# define ACT_TRACELOG(...) ACT_NOOP -# define ACT_ASSERT(e) ACT_NOOP -# endif -# define ACT_ASSERT_ALWAYS(m, l, f) ACT_NOOP -# define ACT_ASSERT_ON_THROW(m) ACT_NOOP -#endif // _DEBUG - -// -// ACT_ASSERT -#ifndef ACT_ASSERT -# if defined(_MSC_VER) -# include -# define ACT_ASSERT _ASSERTE -# else -# include -# define ACT_ASSERT assert -# endif -#endif // ACT_ASSERT - -// -// ACT_ASSERT_ALWAYS -#ifndef ACT_ASSERT_ALWAYS -# if defined(_MSC_VER) -# include -# define ACT_ASSERT_ALWAYS(m, f, l) _RPT_BASE((_CRT_ASSERT, f, l, 0, m)) -# else -# include -# define ACT_ASSERT_ALWAYS(m, f, l) assert(f == 0) -# endif -#endif // ACT_ASSERT_ALWAYS - -// -// ACT_ASSERT_ON_THROW -#ifndef ACT_ASSERT_ON_THROW -namespace act -{ - class CheckForNoThrow : public FileAndLine - { - public: - CheckForNoThrow(const char* msg, const char* file = 0, int line = 0) - : FileAndLine(file, line) - , m_msg(msg) - { } - - ~CheckForNoThrow() - { - const bool uc = ::std::uncaught_exception(); - if(uc == true) ACT_ASSERT_ALWAYS(m_msg, file(), line()); - } - - private: - const char* m_msg; - }; - -} // namespace act - -#define ACT_ASSERT_ON_THROW(m) act::CheckForNoThrow __dbg_check_for_nothrow(m, __FILE__, __LINE__) -#endif // ACT_ASSERT_ON_THROW - -// -// ACT_ENABLE_TRACE -#ifdef ACT_ENABLE_TRACE -# ifdef ACT_TRACE -# undef ACT_TRACE -# endif -# ifdef ACT_TRACELOG -# undef ACT_TRACELOG -# endif -#endif - -// -// ACT_TRACE -#ifndef ACT_TRACE - -#ifndef ACT_TRACE_BUFFER -#define ACT_TRACE_BUFFER 1024 -#endif - -#include -#include -#include - -#if defined(ACT_WIN32) || defined(ACT_WIN32_WCE) -#include - -namespace act -{ - struct Trace - { - void __cdecl operator()(const char* pFormat, va_list ptr, const char* pFileName = 0, int nLine = 0) const - { - char szBuf[ACT_TRACE_BUFFER] = {'\0'}; - int nLen = 0; - - if(pFileName != 0) { - int nTemp = _snprintf(szBuf + nLen, ACT_TRACE_BUFFER - nLen, "%s(%d) : ", pFileName, nLine); - if(nTemp < 0) - nLen = ACT_TRACE_BUFFER; - else nLen += nTemp; - } - - _vsnprintf(szBuf + nLen, ACT_TRACE_BUFFER - nLen, pFormat, ptr); - szBuf[ACT_TRACE_BUFFER - 1] = 0; -#ifndef UNDER_CE - ::OutputDebugStringA(szBuf); -#else - { - wchar_t wtmp[ACT_TRACE_BUFFER]; - mbstowcs(wtmp, szBuf, ACT_TRACE_BUFFER); - ::OutputDebugStringW(wtmp); - } -#endif - } - }; - -} // namespace act - -#elif defined(ACT_POSIX) -#include - -namespace act -{ - struct Trace - { - void operator()(const char* pFormat, va_list ptr, const char* pFileName = 0, int nLine = 0) const - { - char szBuf[ACT_TRACE_BUFFER] = {'\0'}; - int nLen = 0; - - if(pFileName != 0) { - int nTemp = snprintf(szBuf + nLen, ACT_TRACE_BUFFER - nLen, "%s(%d) : ", pFileName, nLine); - if(nTemp < 0) - nLen = ACT_TRACE_BUFFER; - else nLen += nTemp; - } - - vsnprintf(szBuf + nLen, ACT_TRACE_BUFFER - nLen, pFormat, ptr); - szBuf[ACT_TRACE_BUFFER - 1] = 0; - - syslog(LOG_DEBUG, "%s", szBuf); - } - }; - -} // namespace act - -#else -# error act::Trace not implemented for this platform - -#endif - -// -// act::TraceFileAndLine -namespace act -{ - class TraceFileAndLine : public FileAndLine - { - public: - TraceFileAndLine() { } - TraceFileAndLine(const FileAndLine& fl) : FileAndLine(fl) { } - TraceFileAndLine(const char * file, int line) : FileAndLine(file, line) { } - - inline void setFileAndLine(const FileAndLine* fl) - { - if(fl != 0) *static_cast(this) = *fl; - } - - inline TraceFileAndLine& operator<<(const FileAndLine& fl) - { - *static_cast(this) = fl; - return *this; - } - - // - // default va_list based trace. - void operator()(const char* pFormat, ...) - { - va_list ptr; va_start(ptr, pFormat); - Trace()(pFormat, ptr, file(), line()); - va_end(ptr); - } - - // - // Exception trace. - void operator()(const Exception& e) - { - setFileAndLine(dynamic_cast(&e)); - switch(e.GetId()) - { - case eiNoSuchAlgorithmException: - (*this)("%s['0x%08x', '%&s', '%s', '%s']\n", - typeid(e).name(), - static_cast(e).algorithm(), - e.code(), e.what(), e.where()); - break; - - default: - (*this)("%s['0x%08x', '%s', '%s']\n", - typeid(e).name(), e.code(), e.what(), e.where()); - } - } - - void operator()(const Exception& e, const char* pName) - { - setFileAndLine(dynamic_cast(&e)); - switch(e.GetId()) - { - case eiNoSuchAlgorithmException: - (*this)("%s : %s['0x%08x', '%s', '%s', '%s']\n", pName, - typeid(e).name(), - e.code(), - static_cast(e).algorithm(), - e.what(), e.where()); - break; - - default: - (*this)("%s : %s['0x%08x', '%s', '%s']\n", pName, - typeid(e).name(), - e.code(), e.what(), e.where()); - } - } - }; - -} // namespace act - -#define ACT_TRACE act::TraceFileAndLine(__FILE__, __LINE__) -#define ACT_TRACELOG act::TraceFileAndLine() - -#endif // ACT_TRACE -#endif // ACT_Debug_h diff --git a/actlibrary/Ubuntu-9-i686/Release/include/actDefaultRNG.h b/actlibrary/Ubuntu-9-i686/Release/include/actDefaultRNG.h deleted file mode 100644 index 6d44af6..0000000 --- a/actlibrary/Ubuntu-9-i686/Release/include/actDefaultRNG.h +++ /dev/null @@ -1,24 +0,0 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actDefaultRNG.h -// Product: cv act library -// Purpose: actDefaultRNG.h provides defaults for the class IRNGAlg. -// -// Copyright: (c) 2000 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_DefaultRNG_h -#define ACT_DefaultRNG_h -namespace act -{ - class IRNGAlg; - typedef IRNGAlg* (*CreateRNGPtr)(); - - extern CreateRNGPtr CreateFastRNG; - extern CreateRNGPtr CreateStrongRNG; -} - -#endif - diff --git a/actlibrary/Ubuntu-9-i686/Release/include/actDerivatorKit.h b/actlibrary/Ubuntu-9-i686/Release/include/actDerivatorKit.h deleted file mode 100644 index 8339d09..0000000 --- a/actlibrary/Ubuntu-9-i686/Release/include/actDerivatorKit.h +++ /dev/null @@ -1,27 +0,0 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actDerivatorKit.h -// Product: cv act library -// Purpose: declaration of all factory functions -// -// Copyright: (c) 2006 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_DerivatorKit_h -#define ACT_DerivatorKit_h - -namespace act -{ - class IDerivator; - class Blob; - - IDerivator* CreateKDF1(); - IDerivator* CreateX963KDF(); - IDerivator* CreatePBKDF1(); - IDerivator* CreatePBKDF2(); - IDerivator* CreateEACKDF(); -} -#endif - diff --git a/actlibrary/Ubuntu-9-i686/Release/include/actDerivatorReg.h b/actlibrary/Ubuntu-9-i686/Release/include/actDerivatorReg.h deleted file mode 100644 index 32fe672..0000000 --- a/actlibrary/Ubuntu-9-i686/Release/include/actDerivatorReg.h +++ /dev/null @@ -1,41 +0,0 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actDerivatorReg.h -// Product: cv act library -// Purpose: registry for the factory functions in actDerivatorKit.h -// -// Copyright: (c) 2000 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_DerivatorReg_h -#define ACT_DerivatorReg_h - -namespace act -{ - class IDerivator; - class Blob; - - typedef IDerivator* (*CreateDerivatorPtr)(); - - struct DerivatorMapEntry - { - const char* Name; - CreateDerivatorPtr CreatePtr; - }; - - class DerivatorReg - { - public: - static IDerivator* CreateDerivator(const char* name); - static CreateDerivatorPtr GetCreatePointer(const char* name); - static const char* GetName(void* createptr); - static const char* GetNextName(const char* name); - static void Insert(const char* name, CreateDerivatorPtr createptr); - static void Insert(const DerivatorMapEntry* derivatormap); - }; - -} // namespace act - -#endif // ACT_DerivatorReg_h diff --git a/actlibrary/Ubuntu-9-i686/Release/include/actEMSAKit.h b/actlibrary/Ubuntu-9-i686/Release/include/actEMSAKit.h deleted file mode 100644 index 460f614..0000000 --- a/actlibrary/Ubuntu-9-i686/Release/include/actEMSAKit.h +++ /dev/null @@ -1,28 +0,0 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actEMSAKit.h -// Product: cv act library -// Purpose: declaration of all factory functions -// -// Copyright: (c) 2000 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_EMSAKit_h -#define ACT_EMSAKit_h - -namespace act -{ - class IEMSAAlg; - - IEMSAAlg* CreateEMSA1(); - IEMSAAlg* CreatePKCS1V1_5EMSA(); - IEMSAAlg* CreateTLS_EMSA(); - IEMSAAlg* CreatePKCS1_PSS_EMSA(); - - IEMSAAlg* CreateDummyEMSA(); - -} -#endif - diff --git a/actlibrary/Ubuntu-9-i686/Release/include/actEMSAReg.h b/actlibrary/Ubuntu-9-i686/Release/include/actEMSAReg.h deleted file mode 100644 index c5e92f0..0000000 --- a/actlibrary/Ubuntu-9-i686/Release/include/actEMSAReg.h +++ /dev/null @@ -1,40 +0,0 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actEMSAReg.h -// Product: cv act library -// Purpose: registry for factory functions in actEMSAKit.h -// -// Copyright: (c) 2000 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_EMSAReg_h -#define ACT_EMSAReg_h - -namespace act -{ - class IEMSAAlg; - - typedef IEMSAAlg* (*CreateEMSAPtr)(); - - struct EMSAMapEntry - { - const char* Name; - CreateEMSAPtr CreatePtr; - }; - - class EMSAReg - { - public: - static IEMSAAlg* CreateEMSAAlg(const char* name); - static CreateEMSAPtr GetCreatePointer(const char* name); - static const char* GetName(void* createptr); - static const char* GetNextName(const char* name); - static void Insert(const char* name, CreateEMSAPtr createptr); - static void Insert(const EMSAMapEntry* map); - }; - -} // namespace act - -#endif // ACT_EMSAReg_h diff --git a/actlibrary/Ubuntu-9-i686/Release/include/actEnv.h b/actlibrary/Ubuntu-9-i686/Release/include/actEnv.h deleted file mode 100644 index 6a319b8..0000000 --- a/actlibrary/Ubuntu-9-i686/Release/include/actEnv.h +++ /dev/null @@ -1,126 +0,0 @@ -////////////////////////////////////////////////////////////////////////// -// Name: actEnv.h -// Product: cv act library -// Purpose: Operating System environment -// -// Copyright: (c) 2009 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -// -// Autor: Markus Tesche -// Date: 04/23/2009 -////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_Env_h -#define ACT_Env_h - -// 64Bit detection ... -#if defined(_WIN64) || \ - defined(__LP64__) || \ - defined(__alpha__) || \ - defined(__ia64__) || \ - defined(__ppc64__) || \ - defined(__s390x__) || \ - defined(__x86_64__) -# define ACT_64 -#endif - -// cygwin -#if defined(__CYGWIN__) -# define ACT_CYGWIN -#endif - -// mingw -#if defined(__MINGW32__) -# define ACT_MINGW -#endif - -// Platform detection ... -#if defined(ACT_WIN32) || \ - defined(ACT_POSIX) || \ - defined(ACT_SOLARIS) || \ - defined(ACT_MACOSX) || \ - defined(ACT_WIN32_WCE) -// do nothing - -#elif defined(_WIN32_WCE) && _WIN32_WCE >= 0x500 -# define ACT_WIN32 -# define ACT_WIN32_WCE - -#elif defined(WIN32) && !defined(__CYGWIN__) -# define ACT_WIN32 - -#elif defined(_MSC_VER) || \ - defined(__BORLANDC__) || \ - defined(__BCPLUSPLUS__) || \ - defined(__MINGW32__) -# define ACT_WIN32 - -#elif defined(__linux__) || \ - defined(__CYGWIN__) || \ - defined(__FreeBSD__) || defined(__NetBSD__) || defined(__OpenBSD__) || \ - defined(__hpux) || \ - defined(__sgi) -# define ACT_POSIX - -#elif defined(_POSIX_SOURCE) || \ - defined(_XOPEN_SOURCE) -# define ACT_POSIX - -#elif defined(__sun) -# define ACT_POSIX -# define ACT_SOLARIS - -#elif defined(__APPLE__) && defined(__MACH__) -# define ACT_POSIX -# define ACT_MACOSX - -#else -# error unable to deteced system environment - -#endif - -// -// ACT_DEPRECATED definition -#if defined(_MSC_VER) -# define ACT_MSC -# if _MSC_FULL_VER >= 140050320 -# define ACT_DEPRECATED(msg) __declspec(deprecated("is deprecated: " msg)) -# else -# define ACT_DEPRECATED(msg) __declspec(deprecated) -# endif -# define ACT_STDEXT_NS std -# define ACT_STDEXT_INC(file) - -#elif defined(__GNUC__) -# define ACT_GCC -# if (__GNUC__ > 3) || (__GNUC__ == 3 && __GNUC_MINOR__ >= 1) -# define ACT_DEPRECATED(msg) __attribute__((__deprecated__)) -# endif -# define ACT_STDEXT_NS __gnu_cxx -# define ACT_STDEXT_INC(file) - -#endif - -#if !defined(ACT_DEPRECATED) -# define ACT_DEPRECATED(msg) -#endif - -// -// DLL/Shared Object symbol export/import attribte -#if defined(ACT_MSC) -# define ACT_DYNLIB_EXPORT _declspec(dllexport) -# define ACT_DYNLIB_IMPORT _declspec(dllimport) - -#elif defined(ACT_GCC) && !defined(ACT_MINGW) -# define ACT_DYNLIB_EXPORT __attribute__((visibility("default"))) -# define ACT_DYNLIB_IMPORT - -#else -# define ACT_DYNLIB_EXPORT -# define ACT_DYNLIB_IMPORT - -#endif - -#endif // ACT_Env_h diff --git a/actlibrary/Ubuntu-9-i686/Release/include/actException.h b/actlibrary/Ubuntu-9-i686/Release/include/actException.h deleted file mode 100644 index caa9636..0000000 --- a/actlibrary/Ubuntu-9-i686/Release/include/actException.h +++ /dev/null @@ -1,1112 +0,0 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actException.h -// Product: cv act library -// Purpose: exception hierarchy -// -// Copyright: (c) 2000 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_Exception_h -#define ACT_Exception_h - -#include -#include - -#include "actMove.h" -#include "actBlob.h" - -namespace act -{ - // --------------------------------------------------------------------------- - enum ExceptionId - { - eiException = 0, - eiBadException = eiException + 1, - eiNullPointerException, - eiOutOfRangeException, - - eiBadCastException = eiException + 10, - eiBadNumericCast, - eiNegativeOverflow, - eiPositiveOverflow, - - eiRuntimeException = eiException + 20, - eiBadAllocException, - eiNotSupportedException, - eiNotImplementedException, - eiInvalidParameterException, - eiSynchronizationException, - - eiLogicalException = eiException + 40, - eiASN1Exception, - eiNoSuchDLLException, - eiPasswordException, - eiArithmeticException, - eiMessageDigestException, - eiPaddingException, - eiSignatureException, - - eiAlgorithmException = eiException + 80, - eiInvalidAlgorithmParameterException, - eiNoSuchAlgorithmException, - - eiCertificateException = eiException + 80, - eiInvalidCertificateException, - eiCertificateEncodingException, - eiCertificateExpiredException, - eiCertificateNotYetValidException, - eiCertificateParsingException, - - eiKeyException = eiException + 100, - eiInvalidKeyException, - eiKeyManagementException, - - eiEACException = eiException + 120, - eiEACDataException, - eiEACMRZException, - eiEACCVCertException, - - eiSmartcardException = eiException + 140, - eiCardOutOfMemoryException, - eiInvalidPinException, - eiPinLockedException, - eiPinExpiredException, - eiPinLenRangeException, - eiInvalidCRKeyException, - eiInvalidCardException, - eiInvalidAuthException, - eiInvalidAuthObjectException, - eiAuthProtocolException, - eiAuthConstrainedException, - eiSecureMessagingException, - eiSMWrapException, - eiSMUnwrapException, - - eiSubsystemException = eiException + 180, - eiNoSuchSubsystemException, - }; - -#ifndef UNDER_CE_30 - - // --------------------------------------------------------------------------- - class FileAndLine - { - public: - FileAndLine(const char* file = 0, int line = 0) - : m_line(line) - , m_file(file) - { } - - FileAndLine(const FileAndLine& other) - : m_line(other.line()) - , m_file(other.file()) - { } - - int line() const { return m_line; } - const char* file() const { return m_file; } - - // assignment operators. - FileAndLine& operator=(const FileAndLine& other) - { - m_line = other.line(); - m_file = other.file(); - return *this; - } - - private: - int m_line; - const char* m_file; - }; - - // - // base class for all exceptions thrown by cv act library - // --------------------------------------------------------------------------- - class Exception - { - public: - typedef Exception Type; - - explicit Exception(const char* msg = 0, const char* where = 0, ulong code = 0) - : m_what(msg) - , m_where(where) - , m_code(code) - { } - - explicit Exception(const std::exception& other) - : m_what(other.what()) - , m_where(0) - , m_code(0) - { } - - template - explicit Exception(const T& other) - : m_what(other.what()) - , m_where(other.where()) - , m_code(0) - { } - - virtual ~Exception() - { } - - template - _ExceptionT* TypedClone() const - { - return new(std::nothrow) _ExceptionT(m_what, m_where, m_code); - } - - template - _ExceptionT* TypedClone(const ParamT& param) const - { - return new(std::nothrow) _ExceptionT(m_what, m_where, param); - } - - template - void TypedThrow() const { throw _ExceptionT(m_what, m_where, m_code); } - - template - void TypedThrow(const ParamT& param) const { throw _ExceptionT(m_what, m_where, param); } - - virtual Exception* Clone() const { return new(std::nothrow) Exception(*this); } - virtual int GetId() const { return eiException; } - virtual void Throw() const { throw Exception(*this); } - - const char* what() const { return m_what != 0 ? m_what : ""; } - const char* where() const { return m_where != 0 ? m_where : ""; } - ulong code() const { return m_code; } - - template - friend ExceptionT& modify(ExceptionT& e, const char* what, const char* where) - { - if(what != 0) e.m_what = what; - if(where != 0) e.m_where = where; - return e; - } - - protected: - const char* m_what; - const char* m_where; - ulong m_code; - }; - - // - // ExceptionType<> - // --------------------------------------------------------------------------- - template - < - const int _exceptionId, - class ExceptionT, - class BaseT, - typename OtherT = void - > - class ExceptionType : public BaseT, public OtherT - { - protected: - typedef BaseT BaseType; - typedef OtherT OtherType; - enum { exceptionId = _exceptionId }; - - public: - ExceptionType(const char* msg, const char* where, ulong code) - : BaseType(msg, where, code) - , OtherT() - { } - - ExceptionT& operator<<(const OtherType& other) - { - *static_cast(this) = other; - return *static_cast(this); - } - - template - _ExceptionT* TypedClone() const - { - _ExceptionT* e = new(std::nothrow) _ExceptionT(BaseT::m_what, BaseT::m_where, BaseT::m_code); - if(e != 0) *e << *this; - return e; - } - - virtual void Throw() const { throw ExceptionT(BaseT::m_what, BaseT::m_where, BaseT::m_code); } - virtual int GetId() const { return exceptionId; } - }; - - template - < - const int _exceptionId, - class ExceptionT, - class BaseT - > - class ExceptionType<_exceptionId, ExceptionT, BaseT, void> : public BaseT - { - protected: - typedef BaseT BaseType; - enum { exceptionId = _exceptionId }; - - public: - ExceptionType(const char* msg, const char* where, ulong code) - : BaseType(msg, where, code) - { } - - virtual void Throw() const { throw ExceptionT(BaseT::m_what, BaseT::m_where, BaseT::m_code); } - virtual int GetId() const { return exceptionId; } - }; - - // --------------------------------------------------------------------------- - class BadException : - public ExceptionType - { - public: - typedef ExceptionType BaseType; - typedef BadException Type; - using BaseType::exceptionId; - - BadException(const char* msg = 0, const char* where = 0, ulong code = 0) - : BaseType(msg, where, code) - { } - }; - - class NullPointerException : - public ExceptionType - { - public: - typedef ExceptionType BaseType; - typedef NullPointerException Type; - using BaseType::exceptionId; - - NullPointerException(const char* msg = 0, const char* where = 0, ulong code = 0) - : BaseType(msg, where, code) - { } - }; - - class OutOfRangeException : - public ExceptionType - { - public: - typedef ExceptionType BaseType; - typedef OutOfRangeException Type; - using BaseType::exceptionId; - - OutOfRangeException(const char* msg = 0, const char* where = 0, ulong code = 0) - : BaseType(msg, where, code) - { } - }; - - // --------------------------------------------------------------------------- - class BadCastException : - public ExceptionType - { - public: - typedef ExceptionType BaseType; - typedef BadCastException Type; - using BaseType::exceptionId; - - BadCastException(const char* msg = 0, const char* where = 0, ulong code = 0) - : BaseType(msg, where, code) - { } - }; - - class BadNumericCast : - public ExceptionType - { - public: - typedef ExceptionType BaseType; - typedef BadNumericCast Type; - using BaseType::exceptionId; - - BadNumericCast(const char* msg = 0, const char* where = 0, ulong code = 0) - : BaseType(msg, where, code) - { } - - template - void operator()(overflow_type overflow) - { - switch(eiBadNumericCast + overflow) - { - case eiNegativeOverflow: TypedThrow >(); - case eiPositiveOverflow: TypedThrow >(); - default: /* do nothing */; - } - } - }; - - // --------------------------------------------------------------------------- - class RuntimeException : - public ExceptionType - { - public: - typedef ExceptionType BaseType; - typedef RuntimeException Type; - using BaseType::exceptionId; - - RuntimeException(const char* msg = 0, const char* where = 0, ulong code = 0) - : BaseType(msg, where, code) - { } - }; - - class BadAllocException : - public ExceptionType - { - public: - typedef ExceptionType BaseType; - typedef BadAllocException Type; - using BaseType::exceptionId; - - BadAllocException(const char* msg = 0, const char* where = 0, ulong code = 0) - : BaseType(msg, where, code) - { } - }; - - class NotSupportedException : - public ExceptionType - { - public: - typedef ExceptionType BaseType; - typedef NotSupportedException Type; - using BaseType::exceptionId; - using BaseType::operator<<; - - explicit NotSupportedException(const char* msg = 0, const char* where = 0, ulong code = 0) - : BaseType(msg, where, code) - { } - - virtual Type* Clone() const { return TypedClone(); } - }; - - class NotImplementedException : - public ExceptionType - { - public: - typedef ExceptionType BaseType; - typedef NotImplementedException Type; - using BaseType::exceptionId; - using BaseType::operator<<; - - NotImplementedException(const char* msg = 0, const char* where = 0, ulong code = 0) - : BaseType(msg, where, code) - { } - - virtual Type* Clone() const { return TypedClone(); } - }; - - class InvalidParameterException : - public ExceptionType - { - public: - typedef ExceptionType BaseType; - typedef InvalidParameterException Type; - using BaseType::exceptionId; - using BaseType::operator<<; - - InvalidParameterException(const char* msg = 0, const char* where = 0, ulong code = 0) - : BaseType(msg, where, code) - { } - - virtual Type* Clone() const { return TypedClone(); } - }; - - class SynchronizationException : - public ExceptionType - { - public: - typedef ExceptionType BaseType; - typedef SynchronizationException Type; - using BaseType::exceptionId; - using BaseType::operator<<; - - SynchronizationException(const char* msg = 0, const char* where = 0, ulong code = 0) - : BaseType(msg, where, code) - { } - - virtual Type* Clone() const { return TypedClone(); } - }; - - // --------------------------------------------------------------------------- - class LogicalException : public Exception - { - public: - typedef Exception BaseType; - typedef LogicalException Type; - - LogicalException(const char* msg = 0, const char* where = 0, ulong code = 0) - : Exception(msg, where, code) - { } - - virtual Type* Clone() const { return TypedClone(); } - virtual void Throw() const { throw Type(m_what, m_where, m_code); } - virtual int GetId() const { return eiLogicalException; } - }; - - class ASN1Exception : public LogicalException - { - public: - typedef LogicalException BaseType; - typedef ASN1Exception Type; - - ASN1Exception(const char* msg = 0, const char* where = 0, ulong code = 0) - : LogicalException(msg, where, code) - { } - - virtual Type* Clone() const { return TypedClone(); } - virtual void Throw() const { throw Type(m_what, m_where, m_code); } - virtual int GetId() const { return eiASN1Exception; } - }; - - class NoSuchDLLException : public LogicalException - { - public: - typedef LogicalException BaseType; - typedef NoSuchDLLException Type; - - NoSuchDLLException(const char* msg = 0, const char* where = 0, ulong code = 0) - : LogicalException(msg, where, code) - { } - - virtual Type* Clone() const { return TypedClone(); } - virtual void Throw() const { throw Type(m_what, m_where, m_code); } - virtual int GetId() const { return eiNoSuchDLLException; } - }; - - class PasswordException : public LogicalException - { - public: - typedef LogicalException BaseType; - typedef PasswordException Type; - - PasswordException(const char* msg = 0, const char* where = 0, ulong code = 0) - : LogicalException(msg, where, code) - { } - - virtual Type* Clone() const { return TypedClone(); } - virtual void Throw() const { throw Type(m_what, m_where, m_code); } - virtual int GetId() const { return eiPasswordException; } - }; - - class ArithmeticException : public LogicalException - { - public: - typedef LogicalException BaseType; - typedef ArithmeticException Type; - - ArithmeticException(const char* msg = 0, const char* where = 0, ulong code = 0) - : LogicalException(msg, where, code) - { } - - virtual Type* Clone() const { return TypedClone(); } - virtual void Throw() const { throw Type(m_what, m_where, m_code); } - virtual int GetId() const { return eiArithmeticException; } - }; - - class MessageDigestException : public LogicalException - { - public: - typedef LogicalException BaseType; - typedef MessageDigestException Type; - - MessageDigestException(const char* msg = 0, const char* where = 0, ulong code = 0) - : LogicalException(msg, where, code) - { } - - virtual Type* Clone() const { return TypedClone(); } - virtual void Throw() const { throw Type(m_what, m_where, m_code); } - virtual int GetId() const { return eiMessageDigestException; } - }; - - class PaddingException : public LogicalException - { - public: - typedef LogicalException BaseType; - typedef PaddingException Type; - - PaddingException(const char* msg = 0, const char* where = 0, ulong code = 0) - : LogicalException(msg, where, code) - { } - - virtual Type* Clone() const { return TypedClone(); } - virtual void Throw() const { throw Type(m_what, m_where, m_code); } - virtual int GetId() const { return eiPaddingException; } - }; - - class SignatureException : public LogicalException - { - public: - typedef LogicalException BaseType; - typedef SignatureException Type; - - SignatureException(const char* msg = 0, const char* where = 0, ulong code = 0) - : LogicalException(msg, where, code) - { } - - virtual Type* Clone() const { return TypedClone(); } - virtual void Throw() const { throw Type(m_what, m_where, m_code); } - virtual int GetId() const { return eiSignatureException; } - }; - - // --------------------------------------------------------------------------- - class AlgorithmException : public LogicalException - { - public: - typedef LogicalException BaseType; - typedef AlgorithmException Type; - - AlgorithmException(const char* msg = 0, const char* where = 0, ulong code = 0) - : LogicalException(msg, where, code) - { } - - virtual Type* Clone() const { return TypedClone(); } - virtual void Throw() const { throw Type(m_what, m_where, m_code); } - virtual int GetId() const { return eiAlgorithmException; } - }; - - class InvalidAlgorithmParameterException : public AlgorithmException - { - public: - typedef AlgorithmException BaseType; - typedef InvalidAlgorithmParameterException Type; - - InvalidAlgorithmParameterException(const char* msg = 0, const char* where = 0, ulong code = 0) - : AlgorithmException(msg, where, code) - { } - - virtual Type* Clone() const { return TypedClone(); } - virtual void Throw() const { throw Type(m_what, m_where, m_code); } - virtual int GetId() const { return eiInvalidAlgorithmParameterException; } - }; - - class NoSuchAlgorithmException : public AlgorithmException - { - public: - typedef AlgorithmException BaseType; - typedef NoSuchAlgorithmException Type; - - NoSuchAlgorithmException(const char* msg = 0, const char* where = 0, const char* algorithm = 0) - : AlgorithmException(msg, where) - , m_algorithm(algorithm) - { - m_algorithm.push_back(0); - } - - // GCC 4.2.1 whats to have it - virtual ~NoSuchAlgorithmException() - { } - - virtual Type* Clone() const { return TypedClone(algorithm()); } - virtual void Throw() const { throw Type(m_what, m_where, algorithm()); } - virtual int GetId() const { return eiNoSuchAlgorithmException; } - - const char* algorithm() const { return reinterpret_cast(&m_algorithm[0]); } - - protected: - mutable Blob m_algorithm; - }; - - // --------------------------------------------------------------------------- - class CertificateException : public LogicalException - { - public: - typedef LogicalException BaseType; - typedef CertificateException Type; - - CertificateException(const char* msg = 0, const char* where = 0, ulong code = 0) - : LogicalException(msg, where, code) - { } - - virtual Type* Clone() const { return TypedClone(); } - virtual void Throw() const { throw Type(m_what, m_where, m_code); } - virtual int GetId() const { return eiCertificateException; } - }; - - class InvalidCertificateException : public CertificateException - { - public: - typedef CertificateException BaseType; - typedef InvalidCertificateException Type; - - InvalidCertificateException(const char* msg = 0, const char* where = 0, ulong code = 0) - : CertificateException(msg, where, code) - { } - - virtual Type* Clone() const { return TypedClone(); } - virtual void Throw() const { throw Type(m_what, m_where, m_code); } - virtual int GetId() const { return eiInvalidCertificateException; } - }; - - class CertificateEncodingException : public CertificateException - { - public: - typedef CertificateException BaseType; - typedef CertificateEncodingException Type; - - CertificateEncodingException(const char* msg = 0, const char* where = 0, ulong code = 0) - : CertificateException(msg, where, code) - { } - - virtual Type* Clone() const { return TypedClone(); } - virtual void Throw() const { throw Type(m_what, m_where, m_code); } - virtual int GetId() const { return eiCertificateEncodingException; } - }; - - class CertificateExpiredException : public CertificateException - { - public: - typedef CertificateException BaseType; - typedef CertificateExpiredException Type; - - CertificateExpiredException(const char* msg = 0, const char* where = 0, ulong code = 0) - : CertificateException(msg, where, code) - { } - - virtual Type* Clone() const { return TypedClone(); } - virtual void Throw() const { throw Type(m_what, m_where, m_code); } - virtual int GetId() const { return eiCertificateExpiredException; } - }; - - class CertificateNotYetValidException : public CertificateException - { - public: - typedef CertificateException BaseType; - typedef CertificateNotYetValidException Type; - - CertificateNotYetValidException(const char* msg = 0, const char* where = 0, ulong code = 0) - : CertificateException(msg, where, code) - { } - - virtual Type* Clone() const { return TypedClone(); } - virtual void Throw() const { throw Type(m_what, m_where, m_code); } - virtual int GetId() const { return eiCertificateNotYetValidException; } - }; - - class CertificateParsingException : public CertificateException - { - public: - typedef CertificateException BaseType; - typedef CertificateParsingException Type; - - CertificateParsingException(const char* msg = 0, const char* where = 0, ulong code = 0) - : CertificateException(msg, where, code) - { } - - virtual Type* Clone() const { return TypedClone(); } - virtual void Throw() const { throw Type(m_what, m_where, m_code); } - virtual int GetId() const { return eiCertificateParsingException; } - }; - - // --------------------------------------------------------------------------- - class KeyException : public LogicalException - { - public: - typedef LogicalException BaseType; - typedef KeyException Type; - - KeyException(const char* msg = 0, const char* where = 0, ulong code = 0) - : LogicalException(msg, where, code) - { } - - virtual Type* Clone() const { return TypedClone(); } - virtual void Throw() const { throw Type(m_what, m_where, m_code); } - virtual int GetId() const { return eiKeyException; } - }; - - class InvalidKeyException : public KeyException - { - public: - typedef KeyException BaseType; - typedef InvalidKeyException Type; - - InvalidKeyException(const char* msg = 0, const char* where = 0, ulong code = 0) - : KeyException(msg, where, code) - { } - - virtual Type* Clone() const { return TypedClone(); } - virtual void Throw() const { throw Type(m_what, m_where, m_code); } - virtual int GetId() const { return eiInvalidKeyException; } - }; - - class KeyManagementException : public KeyException - { - public: - typedef KeyException BaseType; - typedef KeyManagementException Type; - - KeyManagementException(const char* msg = 0, const char* where = 0, ulong code = 0) - : KeyException(msg, where, code) - { } - - virtual Type* Clone() const { return TypedClone(); } - virtual void Throw() const { throw Type(m_what, m_where, m_code); } - virtual int GetId() const { return eiKeyManagementException; } - }; - - // --------------------------------------------------------------------------- - class EACException : public LogicalException - { - public: - typedef LogicalException BaseType; - typedef EACException Type; - - EACException(const char* msg = 0, const char* where = 0, ulong code = 0) - : LogicalException(msg, where, code) - { } - - virtual Type* Clone() const { return TypedClone(); } - virtual void Throw() const { throw Type(m_what, m_where, m_code); } - virtual int GetId() const { return eiEACException; } - }; - - class EACDataException : public EACException - { - public: - typedef EACException BaseType; - typedef EACDataException Type; - - EACDataException(const char* msg = 0, const char* where = 0, ulong code = 0) - : EACException(msg, where, code) - { } - - virtual Type* Clone() const { return TypedClone(); } - virtual void Throw() const { throw Type(m_what, m_where, m_code); } - virtual int GetId() const { return eiEACDataException; } - }; - - class EACMRZException : public EACDataException - { - public: - typedef EACDataException BaseType; - typedef EACMRZException Type; - - EACMRZException(const char* msg = 0, const char* where = 0, ulong code = 0) - : EACDataException(msg, where, code) - { } - - virtual Type* Clone() const { return TypedClone(); } - virtual void Throw() const { throw Type(m_what, m_where, m_code); } - virtual int GetId() const { return eiEACMRZException; } - }; - - class EACCVCertException : public EACDataException - { - public: - typedef EACDataException BaseType; - typedef EACCVCertException Type; - - EACCVCertException(const char* msg = 0, const char* where = 0, ulong code = 0) - : EACDataException(msg, where, code) - { } - - virtual Type* Clone() const { return TypedClone(); } - virtual void Throw() const { throw Type(m_what, m_where, m_code); } - virtual int GetId() const { return eiEACCVCertException; } - }; - - // --------------------------------------------------------------------------- - class SmartcardException : public LogicalException - { - public: - typedef LogicalException BaseType; - typedef SmartcardException Type; - - SmartcardException(const char* msg = 0, const char* where = 0, ulong code = 0) - : LogicalException(msg, where, code) - { } - - virtual Type* Clone() const { return TypedClone(); } - virtual void Throw() const { throw Type(m_what, m_where, m_code); } - virtual int GetId() const { return eiSmartcardException; } - }; - - class CardOutOfMemoryException : public SmartcardException - { - public: - typedef SmartcardException BaseType; - typedef CardOutOfMemoryException Type; - - CardOutOfMemoryException(const char* msg = 0, const char* where = 0, ulong code = 0) - : SmartcardException(msg, where, code) - { } - - virtual Type* Clone() const { return TypedClone(); } - virtual void Throw() const { throw Type(m_what, m_where, m_code); } - virtual int GetId() const { return eiCardOutOfMemoryException; } - }; - - class InvalidPinException : public SmartcardException - { - public: - typedef SmartcardException BaseType; - typedef InvalidPinException Type; - - InvalidPinException(const char* msg = 0, const char* where = 0, ulong code = 0) - : SmartcardException(msg, where, code) - { } - - virtual Type* Clone() const { return TypedClone(); } - virtual void Throw() const { throw Type(m_what, m_where, m_code); } - virtual int GetId() const { return eiInvalidPinException; } - }; - - class PinLockedException : public SmartcardException - { - public: - typedef SmartcardException BaseType; - typedef PinLockedException Type; - - PinLockedException(const char* msg = 0, const char* where = 0, ulong code = 0) - : SmartcardException(msg, where, code) - { } - - virtual Type* Clone() const { return TypedClone(); } - virtual void Throw() const { throw Type(m_what, m_where, m_code); } - virtual int GetId() const { return eiPinLockedException; } - }; - - class PinExpiredException : public SmartcardException - { - public: - typedef SmartcardException BaseType; - typedef PinExpiredException Type; - - PinExpiredException(const char* msg = 0, const char* where = 0, ulong code = 0) - : SmartcardException(msg, where, code) - { } - - virtual Type* Clone() const { return TypedClone(); } - virtual void Throw() const { throw Type(m_what, m_where, m_code); } - virtual int GetId() const { return eiPinExpiredException; } - }; - - class PinLenRangeException : public SmartcardException - { - public: - typedef SmartcardException BaseType; - typedef PinLenRangeException Type; - - PinLenRangeException(const char* msg = 0, const char* where = 0, ulong code = 0) - : SmartcardException(msg, where, code) - { } - - virtual Type* Clone() const { return TypedClone(); } - virtual void Throw() const { throw Type(m_what, m_where, m_code); } - virtual int GetId() const { return eiPinLenRangeException; } - }; - - class InvalidCRKeyException : public SmartcardException - { - public: - typedef SmartcardException BaseType; - typedef InvalidCRKeyException Type; - - InvalidCRKeyException(const char* msg = 0, const char* where = 0, ulong code = 0) - : SmartcardException(msg, where, code) - { } - - virtual Type* Clone() const { return TypedClone(); } - virtual void Throw() const { throw Type(m_what, m_where, m_code); } - virtual int GetId() const { return eiInvalidCRKeyException; } - }; - - class InvalidCardException : public SmartcardException - { - public: - typedef SmartcardException BaseType; - typedef InvalidCardException Type; - - InvalidCardException(const char* msg = 0, const char* where = 0, ulong code = 0) - : SmartcardException(msg, where, code) - { } - - virtual Type* Clone() const { return TypedClone(); } - virtual void Throw() const { throw Type(m_what, m_where, m_code); } - virtual int GetId() const { return eiInvalidCardException; } - }; - - class InvalidAuthException : public SmartcardException - { - public: - typedef SmartcardException BaseType; - typedef InvalidAuthException Type; - - InvalidAuthException(const char* msg = 0, const char* where = 0, ulong code = 0) - : SmartcardException(msg, where, code) - { } - - virtual Type* Clone() const { return TypedClone(); } - virtual void Throw() const { throw Type(m_what, m_where, m_code); } - virtual int GetId() const { return eiInvalidAuthException; } - }; - - class InvalidAuthObjectException : public SmartcardException - { - public: - typedef SmartcardException BaseType; - typedef InvalidAuthObjectException Type; - - InvalidAuthObjectException(const char* msg = 0, const char* where = 0, ulong code = 0) - : SmartcardException(msg, where, code) - { } - - virtual Type* Clone() const { return TypedClone(); } - virtual void Throw() const { throw Type(m_what, m_where, m_code); } - virtual int GetId() const { return eiInvalidAuthObjectException; } - }; - - class AuthProtocolException : public SmartcardException - { - public: - typedef SmartcardException BaseType; - typedef AuthProtocolException Type; - - AuthProtocolException(const char* msg = 0, const char* where = 0, ulong code = 0) - : SmartcardException(msg, where, code) - { } - - virtual Type* Clone() const { return TypedClone(); } - virtual void Throw() const { throw Type(m_what, m_where, m_code); } - virtual int GetId() const { return eiAuthProtocolException; } - }; - - class AuthConstrainedException : public SmartcardException - { - public: - typedef SmartcardException BaseType; - typedef AuthConstrainedException Type; - - AuthConstrainedException(const char* msg = 0, const char* where = 0, ulong code = 0) - : SmartcardException(msg, where, code) - { } - - virtual Type* Clone() const { return TypedClone(); } - virtual void Throw() const { throw Type(m_what, m_where, m_code); } - virtual int GetId() const { return eiAuthConstrainedException; } - }; - - class SecureMessagingException : public SmartcardException - { - public: - typedef SmartcardException BaseType; - typedef SecureMessagingException Type; - - SecureMessagingException(const char* msg = 0, const char* where = 0, ulong code = 0) - : SmartcardException(msg, where, code) - { } - - virtual Type* Clone() const { return TypedClone(); } - virtual void Throw() const { throw Type(m_what, m_where, m_code); } - virtual int GetId() const { return eiSecureMessagingException; } - }; - - class SMWrapException : public SecureMessagingException - { - public: - typedef SecureMessagingException BaseType; - typedef SMWrapException Type; - - SMWrapException(const char* msg = 0, const char* where = 0, ulong code = 0) - : SecureMessagingException(msg, where, code) - { } - - virtual Type* Clone() const { return TypedClone(); } - virtual void Throw() const { throw Type(m_what, m_where, m_code); } - virtual int GetId() const { return eiSMWrapException; } - }; - - class SMUnwrapException : public SecureMessagingException - { - public: - typedef SecureMessagingException BaseType; - typedef SMUnwrapException Type; - - SMUnwrapException(const char* msg = 0, const char* where = 0, ulong code = 0) - : SecureMessagingException(msg, where, code) - { } - - virtual Type* Clone() const { return TypedClone(); } - virtual void Throw() const { throw Type(m_what, m_where, m_code); } - virtual int GetId() const { return eiSMUnwrapException; } - }; - - // --------------------------------------------------------------------------- - class SubsystemException : public LogicalException - { - public: - typedef LogicalException BaseType; - typedef SubsystemException Type; - - SubsystemException(const char* msg = 0, const char* where = 0, ulong code = 0) - : LogicalException(msg, where, code) - { } - - virtual Type* Clone() const { return TypedClone(); } - virtual void Throw() const { throw Type(m_what, m_where, m_code); } - virtual int GetId() const { return eiSubsystemException; } - }; - - class NoSuchSubsystemException : public SubsystemException - { - public: - typedef SubsystemException BaseType; - typedef NoSuchSubsystemException Type; - - NoSuchSubsystemException(const char* msg = 0, const char* where = 0, ulong code = 0) - : SubsystemException(msg, where, code) - { } - - virtual Type* Clone() const { return TypedClone(); } - virtual void Throw() const { throw Type(m_what, m_where, m_code); } - virtual int GetId() const { return eiNoSuchSubsystemException; } - }; - -#else - - #define throw(_x) _exit(_x) - - int Exception(const char* msg = 0, const char* where = 0, ulong code = 0); - int BadException(const char* msg = 0, const char* where = 0, ulong code = 0); - int NullPointerException(const char* msg = 0, const char* where = 0, ulong code = 0); - int OutOfRangeException(const char* msg = 0, const char* where = 0, ulong code = 0); - int BadCastException(const char* msg = 0, const char* where = 0, ulong code = 0); - int BadNumericCast(const char* msg = 0, const char* where = 0, ulong code = 0); - int RuntimeException(const char* msg = 0, const char* where = 0, ulong code = 0); - int BadAllocException(const char* msg = 0, const char* where = 0, ulong code = 0); - int NotSupportedException(const char* msg = 0, const char* where = 0, ulong code = 0); - int NotImplementedException(const char* msg = 0, const char* where = 0, ulong code = 0); - int InvalidParameterException(const char* msg = 0, const char* where = 0, ulong code = 0); - int SynchronizationException(const char* msg = 0, const char* where = 0, ulong code = 0); - int LogicalException(const char* msg = 0, const char* where = 0, ulong code = 0); - int AlgorithmException(const char* msg = 0, const char* where = 0, ulong code = 0); - int InvalidAlgorithmParameterException(const char* msg = 0, const char* where = 0, ulong code = 0); - int NoSuchAlgorithmException(const char* msg = 0, const char* where = 0, const char* algorithm); - int ArithmeticException(const char* msg = 0, const char* where = 0, ulong code = 0); - int CertificateException(const char* msg = 0, const char* where = 0, ulong code = 0); - int CertificateEncodingException(const char* msg = 0, const char* where = 0, ulong code = 0); - int CertificateExpiredException(const char* msg = 0, const char* where = 0, ulong code = 0); - int CertificateNotYetValidException(const char* msg = 0, const char* where = 0, ulong code = 0); - int CertificateParsingException(const char* msg = 0, const char* where = 0, ulong code = 0); - int KeyException(const char* msg = 0, const char* where = 0, ulong code = 0); - int InvalidKeyException(const char* msg = 0, const char* where = 0, ulong code = 0); - int KeyManagementException(const char* msg = 0, const char* where = 0, ulong code = 0); - int MessageDigestException(const char* msg = 0, const char* where = 0, ulong code = 0); - int PaddingException(const char* msg = 0, const char* where = 0, ulong code = 0); - int SignatureException(const char* msg = 0, const char* where = 0, ulong code = 0); - int EACException(const char* msg = 0, const char* where = 0, ulong code = 0); - int EACDataException(const char* msg = 0, const char* where = 0, ulong code = 0); - int EACMRZException(const char* msg = 0, const char* where = 0, ulong code = 0); - int EACCVCertException(const char* msg = 0, const char* where = 0, ulong code = 0); - int SmartcardException(const char* msg = 0, const char* where = 0, ulong code = 0); - int CardOutOfMemoryException(const char* msg = 0, const char* where = 0, ulong code = 0); - int InvalidPinException(const char* msg = 0, const char* where = 0, ulong code = 0); - int InvalidCardException(const char* msg = 0, const char* where = 0, ulong code = 0); - int InvalidAuthObjectException(const char* msg = 0, const char* where = 0, ulong code = 0); - int AuthProtocolException(const char* msg = 0, const char* where = 0, ulong code = 0); - int AuthConstrainedException(const char* msg = 0, const char* where = 0, ulong code = 0); - int SecureMessagingException(const char* msg = 0, const char* where = 0, ulong code = 0); - int SMWrapException(const char* msg = 0, const char* where = 0, ulong code = 0); - int SMUnwrapException(const char* msg = 0, const char* where = 0, ulong code = 0); - int SubsystemException(const char* msg = 0, const char* where = 0, ulong code = 0); - int NoSuchSubsystemException(const char* msg = 0, const char* where = 0, ulong code = 0); - -#endif // UNDER_CE_30 - -}// namespace act - -#endif // ACT_Exception_h diff --git a/actlibrary/Ubuntu-9-i686/Release/include/actFactoryReg.h b/actlibrary/Ubuntu-9-i686/Release/include/actFactoryReg.h deleted file mode 100644 index 175da36..0000000 --- a/actlibrary/Ubuntu-9-i686/Release/include/actFactoryReg.h +++ /dev/null @@ -1,146 +0,0 @@ -// --------------------------------------------------------------------------- -// Name: actFactoryReg.h -// Product: cv act library -// Purpose: Templates for simple factory-registry implementation. -// -// Copyright: (c) 2008 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -// -// Autor: Markus Tesche -// Date: 06/02/2008 -// --------------------------------------------------------------------------- - -#ifndef ACT_FactoryReg_h -#define ACT_FactoryReg_h - -#include -#include - -namespace act -{ - // - // FactoryMapEntry<> - template - struct FactoryMapEntry - { - typedef char KeyType; - - struct KeyLessPredicate - : public std::binary_function - { - bool operator()(const KeyType* left, const KeyType* right) const - { - if(left == 0) return false; - if(right == 0) return true; - return strcmp(left, right) < 0; - } - }; - - typedef std::map - < const KeyType*, CreatePtrT, KeyLessPredicate - > MapType; - - static const KeyType* Empty; - - const KeyType* Name; - CreatePtrT createPtr; - }; - - template - const typename FactoryMapEntry::KeyType* - FactoryMapEntry::Empty = ""; - - - // - // FactoryReg<> - template - < - class ResultT, - class CreatePtrT, - class MapEntryT, - class MapT = typename MapEntryT::MapType - > - class FactoryReg - { - public: - typedef typename MapEntryT::KeyType KeyType; - typedef MapEntryT MapEntryType; - typedef MapT MapType; - - // Creates default ... - static ResultT* Create(const KeyType* name) - { - if(name == 0) name = MapEntryType::Empty; - typename MapType::const_iterator result(g_map.find(name)); - return result != g_map.end() ? result->second(name) : 0; - } - - template - static ResultT* Create(const KeyType* name, ParamT* param) - { - if(name == 0) name = MapEntryType::Empty; - typename MapType::const_iterator result(g_map.find(name)); - return result != g_map.end() ? result->second(name, param) : 0; - } - - template - static ResultT* Create(ParamT* param) { return Create(0, param); } - static ResultT* Create() { return Create(0); } - - static const KeyType* GetName(void* createptr) - { - if(createptr == 0) return 0; - for(typename MapType::const_iterator i(g_map.begin()), - end(g_map.end()); i != end; ++i) - if(i->second == createptr) - return i->first; - - return 0; - } - - static const KeyType* GetNextName(const KeyType* name) - { - if(name == 0) - return g_map.empty() == true ? 0 : g_map.begin()->first; - - typename MapType::const_iterator result(g_map.find(name)); - return result == g_map.end() || ++result == g_map.end() ? 0 : result->first; - } - - static CreatePtrT GetCreatePointer(const KeyType* name) - { - if(name != 0) - { - typename MapType::const_iterator result(g_map.find(name)); - return result != g_map.end() ? result->second : 0; - } - return 0; - } - - static void Insert(const KeyType* name, CreatePtrT createPtr) - { - std::pair - result(g_map.insert(typename MapType::value_type(name, createPtr))); - } - - static void Insert(const MapEntryType* entry) - { - while(entry->Name != 0) - { - Insert(entry->Name, entry->createPtr); - ++entry; - } - } - - protected: - static MapT g_map; - }; - - template - MapT FactoryReg::g_map; - -} // namespace act - -#endif // ACT_FactoryReg_h diff --git a/actlibrary/Ubuntu-9-i686/Release/include/actHandle.h b/actlibrary/Ubuntu-9-i686/Release/include/actHandle.h deleted file mode 100644 index fb01279..0000000 --- a/actlibrary/Ubuntu-9-i686/Release/include/actHandle.h +++ /dev/null @@ -1,98 +0,0 @@ -////////////////////////////////////////////////////////////////////////// -// Name: actHandle.h -// Product: cv act library -// Purpose: Handle helper templates -// -// Copyright: (c) 2010 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -// -// Autor: Markus Tesche -// Date: 07/27/2010 -////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_Handle_h -#define ACT_Handle_h - -#include "actMove.h" -#include "actException.h" - -namespace act -{ - // - // Handle - class Handle - { - public: - virtual ~Handle() { /* essential */ } - - template TypeT* as() const; - template TypeT& requiredAs() const; - - template - friend inline TypeT& getPointer(const Handle& handle) - { - return handle.as(); - } - - template - friend inline TypeT& getRef(const Handle& handle) - { - return handle.requiredAs(); - } - }; - - // - // ValueHandle<> - template - class ValueHandle : public Handle - { - public: - typedef TypeT value_type; - - ValueHandle() : m_val() { } - explicit ValueHandle(const TypeT& other) : m_val(other) { } - - template - explicit ValueHandle(move_from other) : m_val() { other.move(m_val); } - - template void operator=(const O& other) { m_val = other; } - template void operator=(move_from other) { other.move(m_val); } - - inline TypeT& valueRef() const { return m_val; } - - inline operator TypeT&() const { return m_val; } - - inline TypeT& operator*() const { return m_val; } - inline TypeT* operator->() const { return &m_val; } - - private: - mutable TypeT m_val; - - private: - friend class Handle; - }; - - // - // Handle::as<> - template - inline TypeT* Handle::as() const - { - const ValueHandle* self = dynamic_cast*>(this); - return self != 0 ? &self->m_val : 0; - } - - // - // Handle::requiredAs<> - template - inline TypeT& Handle::requiredAs() const - { - TypeT* value = as(); - if(value != 0) return *value; - throw NullPointerException("invalid handle value type"); - } - -} // namespace act - -#endif // ACT_Handle_h diff --git a/actlibrary/Ubuntu-9-i686/Release/include/actHashKit.h b/actlibrary/Ubuntu-9-i686/Release/include/actHashKit.h deleted file mode 100644 index d2a817b..0000000 --- a/actlibrary/Ubuntu-9-i686/Release/include/actHashKit.h +++ /dev/null @@ -1,32 +0,0 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actHashKit.h -// Product: cv act library -// Purpose: declaration of all factory functions -// -// Copyright: (c) 2000 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_HASHKIT_H -#define ACT_HASHKIT_H - -namespace act -{ - class IHashAlg; - IHashAlg* CreateMD2(); - IHashAlg* CreateMD4(); - IHashAlg* CreateMD5(); - IHashAlg* CreateRipemd128(); - IHashAlg* CreateRipemd160(); - IHashAlg* CreateSHA0(); - IHashAlg* CreateSHA1(); - IHashAlg* CreateSHA224(); - IHashAlg* CreateSHA256(); - IHashAlg* CreateSHA384(); - IHashAlg* CreateSHA512(); - IHashAlg* CreateDummyHash(); -} -#endif - diff --git a/actlibrary/Ubuntu-9-i686/Release/include/actHashReg.h b/actlibrary/Ubuntu-9-i686/Release/include/actHashReg.h deleted file mode 100644 index 896039d..0000000 --- a/actlibrary/Ubuntu-9-i686/Release/include/actHashReg.h +++ /dev/null @@ -1,40 +0,0 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actHashReg.h -// Product: cv act library -// Purpose: registry for factory functions in actHashKit.h -// -// Copyright: (c) 2000 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_HashReg_H -#define ACT_HashReg_H - -namespace act -{ - class IHashAlg; - - typedef IHashAlg* (*CreateHashPtr)(); - - struct HashMapEntry - { - const char* Name; - CreateHashPtr CreatePtr; - }; - - class HashReg - { - public: - static IHashAlg* CreateHashAlg(const char* name); - static CreateHashPtr GetCreatePointer(const char* name); - static const char* GetName(void* createptr); - static const char* GetNextName(const char* name); - static void Insert(const char* name, CreateHashPtr createptr); - static void Insert(const HashMapEntry* hashmap); - }; - -} // namespace act - -#endif // ACT_HashReg_H diff --git a/actlibrary/Ubuntu-9-i686/Release/include/actIAccessCondition.h b/actlibrary/Ubuntu-9-i686/Release/include/actIAccessCondition.h deleted file mode 100644 index a6d9da3..0000000 --- a/actlibrary/Ubuntu-9-i686/Release/include/actIAccessCondition.h +++ /dev/null @@ -1,163 +0,0 @@ -// --------------------------------------------------------------------------- -// Name: actIAccessConditions.h -// Product: cv act library -// Purpose: The IAccessCondition interface is used to map access conditions for -// Files, Keys etc. on specific smartcard's -// -// Copyright: (c) 2008 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -// -// Autor: Markus Tesche -// Date: 10/29/2008 -// --------------------------------------------------------------------------- - -#ifndef ACT_IAccessConditions_h -#define ACT_IAccessConditions_h - -#include "actBlob.h" -#include "actIRefCounted.h" - -namespace act -{ - class IToken; - class ISCardOS; - - enum - { - AC_AUTH_ID_MASK = 0x7f, - }; - - enum ACType - { - AC_TYPE_UNKNOWN = 0, - AC_TYPE_RAW = 1, // Already transformed for specific OS - AC_TYPE_GENERIC = 2 // OS independant, requires to be transformed before used - }; - - // SCard object specific rights by type - enum ACSCardObjType - { - // { AC_TOKEN_USER, AC_TOKEN_SO, AC_TOKEN_USER_OR_SO } - AC_OBJ_MAP = 0x00, // Used for access condition (f.e. tag 0x86) - AC_OBJREF_MAP = 0x01, // Used as object reference for access condition - - AC_RIGHTS_EF = 0x02, // Access Rights for EF's - AC_RIGHTS_DF = 0x03, // Access Rights for DF's - AC_RIGHTS_KEY = 0x04, // Access Rights for Key Objects - AC_RIGHTS_AUTH = 0x05, // Access Rights for Authentication Objects - // ... add additional types here - }; - - // SCard specific rights - enum ACSCard - { - AC_ALWAYS = 0x00, - // Any other from 0x01..0x7f - AC_NEVER = 0xff - }; - - // Token specific rights - enum ACToken - { - AC_TOKEN_USER = 0x80, - AC_TOKEN_SO = 0x81, - AC_TOKEN_USER_OR_SO = 0x82, - AC_TOKEN_USER_AND_SO = 0x83, - AC_TOKEN_ADMIN = 0x84, - - AC_TOKEN_FLAG = 0x80, - }; - - // AuthId Index - enum AIIndex - { - AI_INVALID = -1, - AI_USER = AC_TOKEN_USER & ~AC_TOKEN_FLAG, - AI_SO = AC_TOKEN_SO & ~AC_TOKEN_FLAG, - AI_USER_OR_SO = AC_TOKEN_USER_OR_SO & ~AC_TOKEN_FLAG, - AI_USER_AND_SO = AC_TOKEN_USER_AND_SO & ~AC_TOKEN_FLAG, - AI_ADMIN = AC_TOKEN_ADMIN & ~AC_TOKEN_FLAG, - }; - - enum ACOperation - { - AC_OR = 0x00, - AC_AND = 0x01, - }; - - enum ACMode - { - AC_MODE_READ = 0, - AC_MODE_UPDATE = 1, - AC_MODE_EXECUTE = 2, - AC_MODE_DELETE = 3, - }; - - enum ACRight - { - // Used for EF/DF - AC_READ = 0x00, - AC_WRITE = 0x01, - AC_UPDATE = 0x01, - AC_APPEND = 0x02, - AC_DEACTIVATE = 0x03, - AC_LOCK = 0x03, - AC_ACTIVATE = 0x04, - AC_UNLOCK = 0x04, - AC_DELETE = 0x05, - AC_ADMIN = 0x06, - AC_CREATE = 0x07, - AC_INCREASE = 0x08, - AC_DECREASE = 0x09, - AC_TERMINATE = 0x0a, - - // Used for Objects - AC_USE = 0x00, - AC_CHANGE = 0x01, - AC_UNBLOCK = 0x02, - AC_GENKEY = 0x07, - AC_SIGN = 0x08, - AC_DEC = 0x09, - AC_ENC = 0x0a, - }; - - enum ACRange - { - AC_FIRST = AC_READ, - AC_LAST = AC_ENC, - }; - - // - // IAccessCondition - class IAccessCondition : public IRefCounted - { - public: - virtual IAccessCondition* Clone() const = 0; - - virtual const char* GetName() const = 0; - virtual ACType GetAcType() const = 0; - - virtual Blob& GetAccessRights() = 0; - virtual const Blob& GetAccessRights() const = 0; - - virtual IAccessCondition* ConvertAc(const IToken* token, ACType acdest) const = 0; - }; - - // - // IAcConverter - class IAcConverter - { - protected: - virtual ~IAcConverter() { } - - public: - virtual IAccessCondition* ConvertAc(const IAccessCondition* ac, ACType acdest) const = 0; - virtual Blob ConvertAc(const IAccessCondition* ac) const = 0; - virtual IAccessCondition* ConvertAc(const Blob& ac) const = 0; - }; - -} // namespace act - -#endif // ACT_IAccessConditions_h diff --git a/actlibrary/Ubuntu-9-i686/Release/include/actIAgreementKey.h b/actlibrary/Ubuntu-9-i686/Release/include/actIAgreementKey.h deleted file mode 100644 index 7ff4ef1..0000000 --- a/actlibrary/Ubuntu-9-i686/Release/include/actIAgreementKey.h +++ /dev/null @@ -1,32 +0,0 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actIAgreementKey.h -// Product: cv act library -// Purpose: The abstract class IAgreementKey derived from IKey is the -// interface to all key agreements. -// -// Copyright: (c) 2000 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_IAgreementKey_H -#define ACT_IAgreementKey_H - -#include "actIKey.h" - -namespace act -{ - class IDerivator; - - class IAgreementKey : public IKey - { - public: - virtual void SetDerivator(IDerivator* derivator) = 0; - virtual const IDerivator* GetDerivator() const = 0; - virtual IDerivator* GetDerivator() = 0; - }; - -} // namespace act - -#endif // ACT_IAgreementKey_H diff --git a/actlibrary/Ubuntu-9-i686/Release/include/actIAlgorithm.h b/actlibrary/Ubuntu-9-i686/Release/include/actIAlgorithm.h deleted file mode 100644 index 23cdb2c..0000000 --- a/actlibrary/Ubuntu-9-i686/Release/include/actIAlgorithm.h +++ /dev/null @@ -1,38 +0,0 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actIAlgorithm.h -// Product: cv act library -// Purpose: IAlgorithm is an abstract base. All concrete algorithm-classes are -// derived from IAlgorithm. -// -// Copyright: (c) 2000 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_IAlgorithm_h -#define ACT_IAlgorithm_h - -#include "actBasics.h" - -namespace act -{ - class Blob; - - class IAlgorithm - { - public: - virtual ~IAlgorithm() { } - - virtual void Write(const Blob& input) = 0; - virtual void Write(const byte* input, size_t insize) = 0; - virtual void Finalize() = 0; - virtual size_t GetAvailableSize() const = 0; - virtual size_t Read(Blob& output, size_t max = 0) = 0; - virtual size_t Read(byte* outbuffer, size_t buffersize) = 0; - virtual status_t GetStatus() const = 0; - }; - -} // namespace act - -#endif // ACT_IAlgorithm_h diff --git a/actlibrary/Ubuntu-9-i686/Release/include/actIBlockCipher.h b/actlibrary/Ubuntu-9-i686/Release/include/actIBlockCipher.h deleted file mode 100644 index 10338cd..0000000 --- a/actlibrary/Ubuntu-9-i686/Release/include/actIBlockCipher.h +++ /dev/null @@ -1,53 +0,0 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actIBlockCipher.h -// Product: cv act library -// Purpose: The class IBlockCipher creates the symmetric BlockCypher, which is -// defined by IBockCipherKey and IBlockCipherMode. It offers operations -// like encrypt, decrypt and queries involving validity or keylength etc. -// -// Copyright: (c) 2000 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_IBlockCipher_h -#define ACT_IBlockCipher_h - -#include "actBasics.h" -#include - -namespace act -{ - - class Blob; - - class IBlockCipher - { - public: - virtual IBlockCipher* Clone() const =0; - virtual void Import( const Blob& indata ) =0; - virtual void Export( Blob& outdata ) const =0; - - virtual void SetRawKey( const Blob& keyblob ) =0; - virtual void GetRawKey( Blob& keyblob ) const =0; - - virtual void Encrypt(const byte* in,byte* out) const =0; - virtual void Decrypt(const byte* in,byte* out) const =0; - - virtual size_t GetKeySize(size_t keysize=0) const =0; - virtual size_t GetMinKeySize() const =0; - virtual size_t GetMaxKeySize() const =0; - virtual size_t GetNextKeySize(size_t prevsize) const =0; - virtual size_t GetBlockSize() const =0; - - virtual void* GetCreatePointer() const =0; - - virtual ~IBlockCipher() {}; - }; - - -}// namespace act - -#endif - diff --git a/actlibrary/Ubuntu-9-i686/Release/include/actIBlockCipherKey.h b/actlibrary/Ubuntu-9-i686/Release/include/actIBlockCipherKey.h deleted file mode 100644 index 3b93cd7..0000000 --- a/actlibrary/Ubuntu-9-i686/Release/include/actIBlockCipherKey.h +++ /dev/null @@ -1,48 +0,0 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actIBlockCipherKey.h -// Product: cv act library -// Purpose: The class IBlockCipherKey extends the interface of the class IKey -// and supports the peculiarities of symmetric keys. -// -// -// Copyright: (c) 2000 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_IBlockCipherKey_h -#define ACT_IBlockCipherKey_h - -#include "actIKey.h" - -namespace act -{ - class IPadding; - class IBlockCipher; - class IBlockCipherMode; - class IDerivator; - - class IBlockCipherKey : public IKey - { - public: - virtual void SetPadding(IPadding* padding) = 0; - virtual const IPadding* GetPadding() const = 0; - virtual IPadding* GetPadding() = 0; - - virtual void SetCipher(IBlockCipher* cipher) = 0; - virtual const IBlockCipher* GetCipher() const = 0; - virtual IBlockCipher* GetCipher() = 0; - - virtual void SetMode(IBlockCipherMode* mode) = 0; - virtual const IBlockCipherMode* GetMode() const = 0; - virtual IBlockCipherMode* GetMode() = 0; - - virtual void SetDerivator(IDerivator* derive) = 0; - virtual const IDerivator* GetDerivator() const = 0; - virtual IDerivator* GetDerivator() = 0; - }; - -} //namespace act - -#endif // ACT_IBlockCipherKey_h diff --git a/actlibrary/Ubuntu-9-i686/Release/include/actIBlockCipherMode.h b/actlibrary/Ubuntu-9-i686/Release/include/actIBlockCipherMode.h deleted file mode 100644 index c6f5267..0000000 --- a/actlibrary/Ubuntu-9-i686/Release/include/actIBlockCipherMode.h +++ /dev/null @@ -1,45 +0,0 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actIBlockCipherMode.h -// Product: cv act library -// Purpose: By using this interface every blockcipher-algorithm can be run in -// the modes CBC or ECB. Other modes e.g. OFB or CFB are supported. -// -// Copyright: (c) 2000 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_IBlockCipherMode_h -#define ACT_IBlockCipherMode_h - -#include "actBasics.h" - -namespace act -{ - class IBlockCipher; - class IAlgorithm; - class IPadding; - class Blob; - - class IBlockCipherMode - { - public: - virtual IBlockCipherMode* Clone() const =0; - virtual void Import(const Blob& indata) =0; - virtual void Export(Blob& outdata) const =0; - virtual void SetParam(paramid_t id, const Blob &blob) =0; - virtual void SetParam(paramid_t id, int val) =0; - virtual void SetParam(paramid_t id, const char* cstr) =0; - virtual int GetParam(paramid_t) const =0; - virtual void GetParam(paramid_t, Blob &blob) const =0; - virtual IAlgorithm* CreateEncAlgorithm(IBlockCipher* cipher, IPadding* padding, const Blob& iv) const=0; - virtual IAlgorithm* CreateDecAlgorithm(IBlockCipher* cipher, IPadding* padding) const=0; - virtual void* GetCreatePointer() const=0; - virtual ~IBlockCipherMode() {} - }; -} // namespace act - -#endif - - diff --git a/actlibrary/Ubuntu-9-i686/Release/include/actICBCMACKey.h b/actlibrary/Ubuntu-9-i686/Release/include/actICBCMACKey.h deleted file mode 100644 index d8dbe6c..0000000 --- a/actlibrary/Ubuntu-9-i686/Release/include/actICBCMACKey.h +++ /dev/null @@ -1,31 +0,0 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actICBCMACKey.h -// Product: cv act library -// Purpose: interface for the class CBCMAC. -// -// Copyright: (c) 2000 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_ICBCMACKey_h -#define ACT_ICBCMACKey_h - -#include "actIMACKey.h" - -namespace act -{ - class IBlockCipher; - - class ICBCMACKey : public IMACKey - { - public: - virtual void SetCipher(IBlockCipher* cipher) = 0; - virtual const IBlockCipher* GetCipher() const = 0; - virtual IBlockCipher* GetCipher() = 0; - }; - -} // namespace act - -#endif // ACT_ICBCMACKey_h diff --git a/actlibrary/Ubuntu-9-i686/Release/include/actICRL.h b/actlibrary/Ubuntu-9-i686/Release/include/actICRL.h deleted file mode 100644 index 2bb598b..0000000 --- a/actlibrary/Ubuntu-9-i686/Release/include/actICRL.h +++ /dev/null @@ -1,51 +0,0 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actICRL.h -// Product: cv act library -// Purpose: The abstract class ICRL (Certificate Revocation List) can be used -// to check whether a certificate has been revoked. -// -// Copyright: (c) 2000 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_ICRL_h -#define ACT_ICRL_h - -namespace act -{ - class IKey; - class ICertificate; - class Blob; - - class ICRL - { - public: - - virtual ICRL* Clone() const=0; - virtual void Import(const Blob& crlblob)=0; - virtual void Export(Blob& crlblob) const =0; - virtual void SetParam(paramid_t id,const Blob& blob) =0; - virtual void SetParam(paramid_t id,int val) =0; - virtual void SetParam(paramid_t id,const char* cstr) =0; - virtual void GetParam(paramid_t id,Blob& blob) const =0; - virtual int GetParam(paramid_t) const =0; - - virtual void Revoke(const ICertificate* cert) =0; - virtual bool IsRevoked(const ICertificate* Cert) const =0; - virtual void RemoveRevokation(const ICertificate* cert) =0; - - virtual void Revoke(const Blob& blob) = 0; - virtual bool IsRevoked(const Blob& blob) const = 0; - virtual void RemoveRevokation(const Blob& blob) = 0; - - virtual void Sign(const IKey* privkey) =0; - virtual int Verify(const IKey* pubkey) const =0; - virtual void* GetCreatePointer() const=0; - virtual ~ICRL() {}; - }; -} // namespace act - -#endif - diff --git a/actlibrary/Ubuntu-9-i686/Release/include/actICertificate.h b/actlibrary/Ubuntu-9-i686/Release/include/actICertificate.h deleted file mode 100644 index eadfe0b..0000000 --- a/actlibrary/Ubuntu-9-i686/Release/include/actICertificate.h +++ /dev/null @@ -1,44 +0,0 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actICertificate.h -// Product: cv act library -// Purpose: The abstract class ICertificate enables access to a certificate, e.g. -// its public key and the corresponding validity. -// -// Copyright: (c) 2000 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_ICertificate_h -#define ACT_ICertificate_h - -#include "actBasics.h" -#include "actIParam.h" - -namespace act -{ - class IKey; - class Blob; - - class ICertificate : public IParam - { - public: - virtual ~ICertificate() { }; - - virtual ICertificate* Clone() const = 0; - virtual void Import(const Blob& certblob) = 0; - virtual void Export(Blob& certblob) const = 0; - - virtual void SetPublicKey(const IKey* pubkey) = 0; - virtual IKey* CreatePublicKey(const char* = 0) const = 0; - - virtual void Sign(const IKey* privkey) = 0; - virtual int Verify(const IKey* pubkey) const = 0; - - virtual void* GetCreatePointer() const = 0; - }; - -} // namespace act - -#endif // ACT_ICertificate_h diff --git a/actlibrary/Ubuntu-9-i686/Release/include/actIDerivator.h b/actlibrary/Ubuntu-9-i686/Release/include/actIDerivator.h deleted file mode 100644 index e8b7140..0000000 --- a/actlibrary/Ubuntu-9-i686/Release/include/actIDerivator.h +++ /dev/null @@ -1,45 +0,0 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actIDerivator.h -// Product: cv act library -// Purpose: This interface provides a shared secret key (the last step in -// a Key Agreement Scheme). -// -// Copyright: (c) 2006 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_IDerivator_h -#define ACT_IDerivator_h - -#include"actBasics.h" - -namespace act -{ - class Blob; - - class IDerivator - { - public: - virtual IDerivator* Clone() const=0; - - virtual void Import(const Blob &blob)=0; - virtual void Export(Blob &blob) const=0; - - virtual void SetParam(paramid_t id,const Blob &blob)=0; - virtual void SetParam(paramid_t id,int val)=0; - virtual void SetParam(paramid_t id,const char* cstr)=0; - virtual void GetParam(paramid_t id,Blob &blob) const=0; - virtual int GetParam(paramid_t) const=0; - - virtual void Derive(const Blob& secret, const Blob& salt, Blob& keymat) const=0; - - virtual void* GetCreatePointer() const =0; - virtual ~IDerivator() {} - }; -} // namespace act - -#endif - - diff --git a/actlibrary/Ubuntu-9-i686/Release/include/actIDerivatorWithHash.h b/actlibrary/Ubuntu-9-i686/Release/include/actIDerivatorWithHash.h deleted file mode 100644 index b1bdaf9..0000000 --- a/actlibrary/Ubuntu-9-i686/Release/include/actIDerivatorWithHash.h +++ /dev/null @@ -1,33 +0,0 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actIDerivatorWithHash.h -// Product: cv act library -// Purpose: The abstract class IDerivatorWithHash is derived from IDerivator and -// uses hash algorithms. -// -// Copyright: (c) 2000 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_IDerivatorWithHash_h -#define ACT_IDerivatorWithHash_h - -#include "actIDerivator.h" - -namespace act -{ - class IHashAlg; - - class IDerivatorWithHash : public IDerivator - { - public: - virtual void SetHash(IHashAlg* hash) =0; - virtual const IHashAlg* GetHash() const =0; - virtual IHashAlg* GetHash() =0; - }; -} // namespace act - -#endif - - diff --git a/actlibrary/Ubuntu-9-i686/Release/include/actIEMSAAlg.h b/actlibrary/Ubuntu-9-i686/Release/include/actIEMSAAlg.h deleted file mode 100644 index 0aaec1d..0000000 --- a/actlibrary/Ubuntu-9-i686/Release/include/actIEMSAAlg.h +++ /dev/null @@ -1,49 +0,0 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actIEMSAAlg.h -// Product: cv act library -// Purpose: IEMSAAlg (Encoding Methods for Signatures with Appendix) is an -// abstract class derived from IAlgorithm. Encoding methods do not -// use keys. These algorithms prepare the data to sign. They can be -// implemented with or without hash functions. -// -// Copyright: (c) 2000 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_IEMSAAlg_h -#define ACT_IEMSAAlg_h - -#include "actBasics.h" -#include "actIAlgorithm.h" - -namespace act -{ - - class IEMSAAlg : public IAlgorithm - { - public: - virtual IEMSAAlg* Clone() const =0; - - virtual void Import(const Blob &blob) =0; - virtual void Export(Blob &blob) const =0; - virtual void SetParam(paramid_t id,const Blob &blob) =0; - virtual void SetParam(paramid_t id,int val) =0; - virtual void SetParam(paramid_t id,const char* cstr) =0; - virtual void GetParam(paramid_t id,Blob &blob) const =0; - virtual int GetParam(paramid_t) const =0; - - virtual void Reset(size_t sizeinbits) =0; - - virtual void* GetCreatePointer() const =0; - - virtual bool Verify(const Blob &em, const Blob &sig_inv) =0; - - virtual ~IEMSAAlg(){} - }; -} // namespace act - -#endif - - diff --git a/actlibrary/Ubuntu-9-i686/Release/include/actIEMSAWithHashAlg.h b/actlibrary/Ubuntu-9-i686/Release/include/actIEMSAWithHashAlg.h deleted file mode 100644 index 9a928c1..0000000 --- a/actlibrary/Ubuntu-9-i686/Release/include/actIEMSAWithHashAlg.h +++ /dev/null @@ -1,34 +0,0 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actIEMSAWithHashAlg.h -// Product: cv act library -// Purpose: IEMSAWithHashAlg is the abstract class derived from IEMSAAlg -// which provides access on the aggregated hashobject of an -// EMSA-object. -// -// Copyright: (c) 2000 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_IEMSAWithHashAlg_h -#define ACT_IEMSAWithHashAlg_h - -#include "actIEMSAAlg.h" - -namespace act -{ - class IHashAlg; - - class IEMSAWithHashAlg : public IEMSAAlg - { - public: - virtual void SetHash(IHashAlg* hash) =0; - virtual const IHashAlg* GetHash() const =0; - virtual IHashAlg* GetHash() =0; - }; -} // namespace act - -#endif - - diff --git a/actlibrary/Ubuntu-9-i686/Release/include/actIEventHandler.h b/actlibrary/Ubuntu-9-i686/Release/include/actIEventHandler.h deleted file mode 100644 index 115662f..0000000 --- a/actlibrary/Ubuntu-9-i686/Release/include/actIEventHandler.h +++ /dev/null @@ -1,54 +0,0 @@ -// --------------------------------------------------------------------------- -// Name: actIEventHandler.h -// Product: cv act library -// Purpose: Interfaces required to receive token, slot or subsystem events -// -// Copyright: (c) 2002 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -// -// Autor: Dr. Xiangdong Wang (XWG) -// Markus Tesche -// Date: 03/26/2002 -// --------------------------------------------------------------------------- - -#ifndef ACT_IEventHandler_h -#define ACT_IEventHandler_h - -#include "actTypeTags.h" -#include "actIRefCounted.h" - -namespace act -{ - enum EventCode - { - TOKEN_REMOVED = 0x00000010, - TOKEN_INSERTED = 0x00000020, - SLOT_REMOVED = 0x00000040, - SLOT_INSERTED = 0x00000080, - SUBSYSTEM_STOPPED = 0x00000100, - SUBSYSTEM_STARTED = 0x00000200, - MONITORING_STOPPED = 0x00000400, - MONITORING_STARTED = 0x00000800, - MONITORING_ERROR = 0x80000000, - }; - - class ISubsystem; - class IEventMonitoring; - - // - // IEventHandler - class IEventHandler : public IRefCounted - { - public: - virtual IEventHandler* Clone() = 0; - virtual void Source(IEventMonitoring* source) = 0; - virtual void OnEvent(int event, ISubsystem* source) = 0; - }; - - typedef TypeTag TagEH; - -} // namespace act - -#endif // ACT_IEventHandler_h diff --git a/actlibrary/Ubuntu-9-i686/Release/include/actIEventMonitoring.h b/actlibrary/Ubuntu-9-i686/Release/include/actIEventMonitoring.h deleted file mode 100644 index 0aee7db..0000000 --- a/actlibrary/Ubuntu-9-i686/Release/include/actIEventMonitoring.h +++ /dev/null @@ -1,36 +0,0 @@ -// --------------------------------------------------------------------------- -// Name: actIEventMonitoring.h -// Product: cv act library -// Purpose: Interface for event monitoring enabled objects. -// -// Copyright: (c) 2010 cv cryptovision GmbH -// all rights reserved. -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -// -// Autor: Markus Tesche (MTE) -// Date: 08/20/2010 -// --------------------------------------------------------------------------- - -#ifndef ACT_IEventMonitoring_h -#define ACT_IEventMonitoring_h - -namespace act -{ - class IEventHandler; - - // - // IEventMonitoring - class IEventMonitoring - { - public: - virtual ~IEventMonitoring() { } - - virtual bool IsMonitored() const = 0; - virtual void StopMonitor(bool force = false) = 0; - virtual void StartMonitor(IEventHandler* cmd) = 0; - }; - -} // namespace act - -#endif // ACT_IEventMonitoring_h diff --git a/actlibrary/Ubuntu-9-i686/Release/include/actIHashAlg.h b/actlibrary/Ubuntu-9-i686/Release/include/actIHashAlg.h deleted file mode 100644 index 8620c51..0000000 --- a/actlibrary/Ubuntu-9-i686/Release/include/actIHashAlg.h +++ /dev/null @@ -1,42 +0,0 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actIHashAlg.h -// Product: cv act library -// Purpose: IHashAlg is an abstract base class, which provides the interface -// of all hash-algorithms. -// -// Copyright: (c) 2000 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_IHASHALG_H -#define ACT_IHASHALG_H - -#include "actIAlgorithm.h" - -namespace act -{ - - class IHashAlg : public IAlgorithm - { - public: - virtual IHashAlg* Clone() const =0; - virtual void Import(const Blob& indata) =0; - virtual void Export(Blob& outdata) const =0; - virtual void SetParam(paramid_t id,const Blob &blob) =0; - virtual void SetParam(paramid_t id,int val) =0; - virtual void SetParam(paramid_t id,const char* cstr) =0; - virtual void GetParam(paramid_t id,Blob &blob) const =0; - virtual int GetParam(paramid_t) const =0; - virtual size_t GetBlockSize() const = 0; - virtual size_t GetHashSize() const = 0; - virtual void Reset() =0; - virtual void* GetCreatePointer() const =0; - virtual ~IHashAlg() {} - }; - -} // namespace act -#endif - - diff --git a/actlibrary/Ubuntu-9-i686/Release/include/actIHashMACKey.h b/actlibrary/Ubuntu-9-i686/Release/include/actIHashMACKey.h deleted file mode 100644 index 29719fe..0000000 --- a/actlibrary/Ubuntu-9-i686/Release/include/actIHashMACKey.h +++ /dev/null @@ -1,32 +0,0 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actIHashMacKey.h -// Product: cv act library -// Purpose: interface for the class HashMAC -// -// Copyright: (c) 2000 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_IHashMACKey_h -#define ACT_IHashMACKey_h - -#include "actIMACKey.h" - -namespace act -{ - class IHashAlg; - - class IHashMACKey : public IMACKey - { - public: - virtual void SetHash(IHashAlg* cipher) =0; - virtual const IHashAlg* GetHash() const =0; - virtual IHashAlg* GetHash() =0; - }; - -} // namespace act - -#endif - diff --git a/actlibrary/Ubuntu-9-i686/Release/include/actIIESKey.h b/actlibrary/Ubuntu-9-i686/Release/include/actIIESKey.h deleted file mode 100644 index e54a7f4..0000000 --- a/actlibrary/Ubuntu-9-i686/Release/include/actIIESKey.h +++ /dev/null @@ -1,35 +0,0 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actIIESKey.h -// Product: cv act library -// Purpose: The interface IIESKey enables access to the aggregated objects of -// an IES-key, like DL-IES or EC-IES. -// -// Copyright: (c) 2000 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_IIESKey_H -#define ACT_IIESKey_H - -#include "actIKey.h" - -namespace act -{ - class IAgreementKey; - class IMACKey; - - class IIESKey : public IKey - { - public: - virtual void SetMAC(IMACKey* mac) =0; - virtual const IMACKey* GetMAC() const =0; - virtual IMACKey* GetMAC() =0; - virtual void SetAgreement(IAgreementKey* derivator) =0; - virtual const IAgreementKey* GetAgreement() const =0; - virtual IAgreementKey* GetAgreement() =0; - }; -} // act -#endif - diff --git a/actlibrary/Ubuntu-9-i686/Release/include/actIKey.h b/actlibrary/Ubuntu-9-i686/Release/include/actIKey.h deleted file mode 100644 index 3ed1a9e..0000000 --- a/actlibrary/Ubuntu-9-i686/Release/include/actIKey.h +++ /dev/null @@ -1,45 +0,0 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actIKey.h -// Product: cv act library -// Purpose: IKey is an abstract base class. All concrete Key-classes are -// derived from IKey. -// -// Copyright: (c) 2000 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_IKey_h -#define ACT_IKey_h - -#include "actIParam.h" -#include "actBlob.h" - -namespace act -{ - class IAlgorithm; - class IRNGAlg; - - class IKey : public IParam - { - public: - virtual ~IKey() { } - - virtual IKey* Clone() const = 0; - - virtual void Import(const Blob& keyblob) = 0; - virtual void Export(Blob& keyblob, export_t type = DEFAULT) const = 0; - - virtual void Generate(IRNGAlg* prng = 0) = 0; - virtual void Derive(const Blob& data, const Blob& salt = Blob()) = 0; - - virtual IAlgorithm* CreateAlgorithm(mode_t Mode) const = 0; - virtual IAlgorithm* CreateAlgorithm(mode_t Mode, const Blob& data) const = 0; - - virtual void* GetCreatePointer() const = 0; - }; - -} // namespace act - -#endif // ACT_IKey_h diff --git a/actlibrary/Ubuntu-9-i686/Release/include/actIKeyDerivation.h b/actlibrary/Ubuntu-9-i686/Release/include/actIKeyDerivation.h deleted file mode 100644 index f8909eb..0000000 --- a/actlibrary/Ubuntu-9-i686/Release/include/actIKeyDerivation.h +++ /dev/null @@ -1,70 +0,0 @@ -// --------------------------------------------------------------------------- -// Name: actIKeyDerivation.h -// Product: cv act library -// Purpose: IKeyDerivation for general prupose -// -// Copyright: (c) 2003-2010 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -// -// Autor: Ulrich Birkenhauer -// Markus Tesche -// Date: 07/05/2010 -// --------------------------------------------------------------------------- - -#ifndef ACT_IKeyDerivation_h -#define ACT_IKeyDerivation_h - -#include "actMove.h" -#include "actMode.h" - -#include "actIParam.h" -#include "actIRefCounted.h" - -namespace act -{ - enum KDParam - { - KD_DATA = SALT, - KD_HASH = HASH, - KD_SERIAL = SERIALNR, - KD_DERIVATOR = DERIVATOR, - KD_MODE = BCMODE, // key configuration - KD_PADDING = PADDING, // key configuration - }; - - enum KDMode - { - KD_MODE_DEFAULT = 0, - KD_MODE_CARD_MANAGER, - - KD_MODE_LAST - }; - - class IKeyDerivation; - class IBlockCipherKey; - - typedef void (*DerivationFunc)(IKeyDerivation* owner, const Blob& data, - Blob& k_enc, Blob& k_mac, Blob& k_kek); - - // - // IKeyDerivation - class IKeyDerivation - : public IParam - , public IRefCounted - { - public: - virtual Blob Derive(const Blob& deriveData) = 0; - virtual void Derive(uint mode, const Blob& data, Blob& k_enc, Blob& k_mac) = 0; - virtual void Derive(uint mode, const Blob& data, Blob& k_enc, Blob& k_mac, Blob& k_kek) = 0; - - virtual void SetKey(IBlockCipherKey* key) = 0; - // - // If mode already registered, it will be overwritten and the previous will be returned. - virtual DerivationFunc Register(uint mode, DerivationFunc df) = 0; - }; - -} // namespace act - -#endif // ACT_IKeyDerivation_h diff --git a/actlibrary/Ubuntu-9-i686/Release/include/actIKeyFactory.h b/actlibrary/Ubuntu-9-i686/Release/include/actIKeyFactory.h deleted file mode 100644 index 711d883..0000000 --- a/actlibrary/Ubuntu-9-i686/Release/include/actIKeyFactory.h +++ /dev/null @@ -1,48 +0,0 @@ -// --------------------------------------------------------------------------- -// Name: actIKeyFactory.h -// Product: cv act library -// Purpose: IKeyFactory and IKeyFactoryChain interface -// -// Copyright: (c) 2008 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -// -// Autor: Markus Tesche -// Date: 05/18/2008 -// --------------------------------------------------------------------------- - -#ifndef ACT_IKeyFactory_h -#define ACT_IKeyFactory_h - -#include "actTokenBase.h" - -namespace act -{ - class ITokenKey; - class ITokenBlockCipher; - class ITokenBlockCipherKey; - - class IKeyFactory - { - protected: - virtual ~IKeyFactory() - { } - - public: - virtual ITokenKey* CreateKey(int type, FileInfo& fi, int usage, bool cleartoken) = 0; - - virtual ITokenBlockCipher* CreateBlockCipher(FileInfo& fi) = 0; - virtual ITokenBlockCipherKey* CreateBlockCipherKey(ITokenBlockCipher* cipher, bool cleartoken) = 0; - virtual ITokenBlockCipherKey* CreateBlockCipherAndKey(FileInfo& fi, bool cleartoken) = 0; - }; - - class IKeyFactoryChain : public IKeyFactory - { - public: - virtual void SetNext(IKeyFactoryChain* next) = 0; - }; - -} // namespace act - -#endif // ACT_IKeyFactory_h diff --git a/actlibrary/Ubuntu-9-i686/Release/include/actIMACKey.h b/actlibrary/Ubuntu-9-i686/Release/include/actIMACKey.h deleted file mode 100644 index b630e74..0000000 --- a/actlibrary/Ubuntu-9-i686/Release/include/actIMACKey.h +++ /dev/null @@ -1,27 +0,0 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actIMACKEY.h -// Product: cv act library -// Purpose: interface for the class CBCMAC -// -// Copyright: (c) 2000 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_IMACKey_h -#define ACT_IMACKey_h - -#include "actIKey.h" - -namespace act -{ - class IMACKey : public IKey - { - public: - virtual const char* KeyName() const = 0; - }; - -} // namespace act - -#endif // ACT_IMACKey_h diff --git a/actlibrary/Ubuntu-9-i686/Release/include/actIPKCS15Behavior.h b/actlibrary/Ubuntu-9-i686/Release/include/actIPKCS15Behavior.h deleted file mode 100644 index 174cd51..0000000 --- a/actlibrary/Ubuntu-9-i686/Release/include/actIPKCS15Behavior.h +++ /dev/null @@ -1,89 +0,0 @@ -// --------------------------------------------------------------------------- -// Name: actIPKCS15Behavior.h -// Product: cv act library -// Purpose: IPKCS15Behavior interface, encapsulates Manufacturer specific logic -// for PKCS15 to cvProfile mapping. -// -// Copyright: (c) 2002-2008 cv cryptovision GmbH all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -// -// Autor: Markus Tesche -// Date: 06/02/2008 -// --------------------------------------------------------------------------- - -#ifndef ACT_IPKCS15Behavior_h -#define ACT_IPKCS15Behavior_h - -#include "actISCardOSBehavior.h" - -#include "cvProfileInfos.h" - -namespace act -{ - class IAuthIdRef; - - class IToken; - class ITokenPIN; - class ITokenKey; - class ITokenFile; - class ITokenFileMap; - class ISecurityManager; - class ITokenBlockCipherKey; - - class PKCS15Container; - struct PKCS15Path; - struct PKCS15Object; - - // - // IPKCS15Behavior - class IPKCS15Behavior : public ISCardOSBehavior - { - public: - virtual void Init(IToken* token) = 0; - - virtual int GetTokenType(const IToken* token) const throw() = 0; - virtual void GetProfileCapabilities(ITokenConfig* tkcfg) const = 0; - - virtual bool IsReadOnly() const = 0; - virtual const Blob& GetMID() const = 0; - - // Returns a valid instance or throws ! - virtual ITokenFile* GetPath() const = 0; - virtual ITokenFile* GetTokenFile(const Blob& p15path) = 0; - virtual ITokenFile* GetTokenFile(const PKCS15Path& p15path) = 0; - - virtual ITokenPIN* GetPin(IToken* token, const PKCS15Object& p15object, bool use_obj_ref = false) = 0; - - // NOTE: If one of these functions return false, the object gets destroyed - // and is not added to the corresponding collection, therefore not accessable! - virtual bool InitTokenPIN(ITokenPIN* pin, const PKCS15Object& p15object) = 0; - virtual bool InitTokenKey(ITokenKey* key, const FileInfo& fi, int usage, const PKCS15Object& p15object) = 0; - virtual bool InitTokenKey(ITokenBlockCipherKey* key, const FileInfo& fi, const PKCS15Object& p15object) = 0; - - virtual FIDType GetFirstFID(byte obj_type, size_t key_size = 0) const = 0; - virtual void GetObjectInfo(FIDType fid, Blob& object_path, byte* obj_ref, byte obj_type, size_t key_size = 0) const = 0; - - virtual FIDType TransformKeyReference(FIDType id, bool to_on_card_reference = false, bool* bReference = 0) const = 0; - - virtual FIDType GetNativeFID(byte obj_type, const FIDType fid, byte object_reference = 0) const = 0; - - virtual void GetRelativeFilePath(Blob& absolute_filepath) const = 0; - - virtual const Blob& GetACTokenRights() const = 0; - virtual Blob GetAccessRights(const ITokenPIN* pin, byte obj_type) const = 0; - virtual Blob GetAccessRights(IAuthIdRef* authIdRef, IAuthIdRef* parentAuthIdRef, byte obj_type) const = 0; - - virtual ISecurityManager* SecurityManager(IToken* token, int authManagerType) const = 0; - virtual void CreateAuthObj(ITokenPIN* pin, byte obj_type) const = 0; - - virtual bool GetNativePubKeySupport() const = 0; - virtual Blob ReadNativePublicKey(ISCardOS* os, FIDType fid) const = 0; - virtual Blob ReadNativeECPublicKey(ISCardOS* os, FIDType fid) const = 0; - virtual FIDType GetNativePubKeyInfo(FIDType priv_key_fid, const PublicKeyInfo& info, - PKCS15Object& p15object) const = 0; - }; - -} // namespace act - -#endif // ACT_IPKCS15Behavior_h diff --git a/actlibrary/Ubuntu-9-i686/Release/include/actIPadding.h b/actlibrary/Ubuntu-9-i686/Release/include/actIPadding.h deleted file mode 100644 index c916e21..0000000 --- a/actlibrary/Ubuntu-9-i686/Release/include/actIPadding.h +++ /dev/null @@ -1,47 +0,0 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actIPadding.h -// Product: cv act library -// Purpose: With the abstract class IPadding input data can be filled to obtain -// a certain length and also to invert this process. E.g. PKCS1-v1_5 is -// a padding. -// -// Copyright: (c) 2000 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_IPadding_h -#define ACT_IPadding_h -#include "actBasics.h" - -namespace act -{ - - class Blob; - - class IPadding - { - public: - - virtual IPadding* Clone() const=0; - - virtual void Import(const Blob& indata) =0; - virtual void Export(Blob& outdata) const =0; - virtual void SetParam(paramid_t id,const Blob &blob) =0; - virtual void SetParam(paramid_t id,int val) =0; - virtual void SetParam(paramid_t id,const char* cstr) =0; - virtual void GetParam(paramid_t id,Blob &blob) const =0; - virtual int GetParam(paramid_t) const =0; - - virtual void Pad(Blob& Buffer, size_t len) const =0; - virtual size_t Unpad(Blob& Buffer) const =0; - - virtual void* GetCreatePointer() const =0; - virtual ~IPadding() {} - }; - - -} //namespace act -#endif - diff --git a/actlibrary/Ubuntu-9-i686/Release/include/actIParam.h b/actlibrary/Ubuntu-9-i686/Release/include/actIParam.h deleted file mode 100644 index ee8d26b..0000000 --- a/actlibrary/Ubuntu-9-i686/Release/include/actIParam.h +++ /dev/null @@ -1,67 +0,0 @@ -// --------------------------------------------------------------------------- -// Name: actIParam.h -// Product: cv act library -// Purpose: Declares act::IParam interface. -// -// Copyright: (c) 2006 cv cryptovision GmbH -// all rights reserved. -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -// -// Autor: Markus Tesche (MTE) -// Date: 3/1/2006 -// --------------------------------------------------------------------------- - -#ifndef ACT_IParam_h -#define ACT_IParam_h - -#include "actBasics.h" - -namespace act -{ - class Blob; - - enum - { - PARAM_ANY = -3, - PARAM_UNKNOWN_SIZE = -2, - PARAM_INVALID_VALUE = -1, - PARAM_FALSE = 0, - PARAM_TRUE = 1 - }; - - static inline int param_bool(bool value) - { - return value == true ? PARAM_TRUE : PARAM_FALSE; - } - - // - // IParam - class IParam - { - public: - virtual ~IParam() { } - - virtual void SetParam(paramid_t id, int value) = 0; - virtual void SetParam(paramid_t id, const char* value) = 0; - virtual void SetParam(paramid_t id, const Blob& value) = 0; - - // - // Get value for id, otherwise PARAM_INVALID_VALUE. - // NOTE: May throws an act::Exception derived exception. - virtual int GetParam(paramid_t id) const = 0; - - // - // Get value for id, returns size[PARAM_UNKNOWN_SIZE|0-n] or PARAM_INVALID_VALUE. - // NOTE: May throws an act::Exception derived exception. - virtual size_t GetParam(paramid_t id, const char** value) const = 0; - - // - // Get value for id, returns size[PARAM_UNKNOWN_SIZE|0-n] or PARAM_INVALID_VALUE. - // NOTE: May throws an act::Exception derived exception. - virtual size_t GetParam(paramid_t id, Blob& value) const = 0; - }; - -} // namespace act - -#endif // ACT_IParam_h diff --git a/actlibrary/Ubuntu-9-i686/Release/include/actIRNGAlg.h b/actlibrary/Ubuntu-9-i686/Release/include/actIRNGAlg.h deleted file mode 100644 index 521be1d..0000000 --- a/actlibrary/Ubuntu-9-i686/Release/include/actIRNGAlg.h +++ /dev/null @@ -1,38 +0,0 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actIRNGAlg.h -// Product: cv act library -// Purpose: IRNGAlg is the interface for Random Number Generators. -// -// Copyright: (c) 2000 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_IRNGAlg_h -#define ACT_IRNGAlg_h - -#include "actIAlgorithm.h" - -namespace act -{ - class Blob; - - class IRNGAlg : public IAlgorithm - { - public: - virtual IRNGAlg* Clone() const = 0; - virtual void Import(const Blob& keyblob) = 0; - virtual void Export(Blob& keyblob) const = 0; - virtual void SetParam(paramid_t id, const Blob& blob) = 0; - virtual void SetParam(paramid_t id, int val) = 0; - virtual void SetParam(paramid_t id, const char* cstr) = 0; - virtual int GetParam(paramid_t id) const = 0; - virtual void GetParam(paramid_t id, Blob& blob) const = 0; - - virtual void* GetCreatePointer() const = 0; - }; - -} // namespace act - -#endif // ACT_IRNGAlg_h diff --git a/actlibrary/Ubuntu-9-i686/Release/include/actIRSAKey.h b/actlibrary/Ubuntu-9-i686/Release/include/actIRSAKey.h deleted file mode 100644 index 96bcdac..0000000 --- a/actlibrary/Ubuntu-9-i686/Release/include/actIRSAKey.h +++ /dev/null @@ -1,32 +0,0 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actIRSAKey.h -// Product: cv act library -// Purpose: IRSAKey is the interface for the class IRSAKey enabling access to -// the aggregated padding-object of an RSAKeys. -// -// Copyright: (c) 2000 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_IRSAKey_h -#define ACT_IRSAKey_h - -#include "actISignatureKey.h" - -namespace act -{ - class IPadding; - - class IRSAKey : public ISignatureKey - { - public: - virtual void SetPadding(IPadding* padding) = 0; - virtual const IPadding* GetPadding() const = 0; - virtual IPadding* GetPadding() = 0; - }; - -} // namespace act - -#endif // ACT_IRSAKey_h diff --git a/actlibrary/Ubuntu-9-i686/Release/include/actIRefCounted.h b/actlibrary/Ubuntu-9-i686/Release/include/actIRefCounted.h deleted file mode 100644 index 5c66ef0..0000000 --- a/actlibrary/Ubuntu-9-i686/Release/include/actIRefCounted.h +++ /dev/null @@ -1,33 +0,0 @@ -// --------------------------------------------------------------------------- -// Name: actIRefCounted.h -// Product: cv act library -// Purpose: The IRefCounted interface. -// -// Copyright: (c) 2006 cv cryptovision GmbH -// all rights reserved. -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -// -// Autor: Markus Tesche (MTE) -// Date: 1/18/2006 -// --------------------------------------------------------------------------- - -#ifndef ACT_IRefCounted_h -#define ACT_IRefCounted_h - -namespace act -{ - // - // IRefCounted, methods for reference counting. - class IRefCounted - { - public: - virtual ~IRefCounted() { } - - virtual void AddRef() = 0; - virtual void Release() = 0; - }; - -} // namespace act - -#endif // ACT_IRefCounted_h diff --git a/actlibrary/Ubuntu-9-i686/Release/include/actISCardAccess.h b/actlibrary/Ubuntu-9-i686/Release/include/actISCardAccess.h deleted file mode 100644 index 3f59b31..0000000 --- a/actlibrary/Ubuntu-9-i686/Release/include/actISCardAccess.h +++ /dev/null @@ -1,198 +0,0 @@ -// --------------------------------------------------------------------------- -// Name: actISCardAccess.h -// Product: cv act library -// Purpose: The class ISCardAccess manages the operations with the smartcards and readers -// -// Copyright: (c) 2002 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -// -// Autor: Dr. Xiangdong Wang (XWG) -// Date: 03/21/2002 -// --------------------------------------------------------------------------- - -#ifndef ACT_ISCardAccess_h -#define ACT_ISCardAccess_h - -#include "actBlob.h" -#include "actIRefCounted.h" -#include "actISynchronize.h" - -namespace act -{ - class SyncObject; - - const ushort RESPONSE_MAXLEN = 2048; - - enum ReturnCode - { - APDU_RESPONSE_MASK = 0xffff, - - APDU_OK = 0x9000, - APDU_OK1 = 0x9001, - - // error codes defined in ISO7816-4 - APDU_STATE_UNCHANGED = 0x6200, - APDU_RETURN_CORRUPTED = 0x6281, - APDU_END_REACHED = 0x6282, - APDU_SELECTFILE_INVALID = 0x6283, - APDU_FCI_FORMAT = 0x6284, - - APDU_AUTHEN_FAILED = 0x6300, - APDU_RETRY_COUNTER = 0x63C0, - APDU_FILE_FILLED_UP = 0x6381, - - APDU_STATE_UNCHANGED2 = 0x6400, - - APDU_STATE_CHANGED = 0x6500, - APDU_MEMORY_FAILURE = 0x6581, - - APDU_SECURITY_ERROR = 0x6600, // not defined in ISO7816 - - APDU_WRONG_LEN = 0x6700, - - APDU_NO_CLA_FUNCTION = 0x6800, - APDU_NO_LOGICAL_CHANNEL = 0x6881, - APDU_NO_SM = 0x6882, - - APDU_CMD_NOT_ALLOWED = 0x6900, - APDU_CMD_INCOMPATIBLE = 0x6981, - APDU_SECURITY_STATE = 0x6982, - APDU_AUTHEN_BLOCKED = 0x6983, - APDU_REF_DATA_INVALID = 0x6984, - APDU_NO_CONDITION = 0x6985, - APDU_CMD_EF_NOT_ALLOWED = 0x6986, - APDU_SM_DATA_MISSING = 0x6987, - APDU_SM_DATA_INCORRECT = 0x6988, - - APDU_WRONG_PARAMETER = 0x6A00, - APDU_WRONG_DATA = 0x6A80, - APDU_FUNCTION_NOT_SUPPORTED = 0x6A81, - APDU_FILE_NOT_FOUND = 0x6A82, - APDU_RECORD_NOT_FOUND = 0x6A83, - APDU_NOT_ENOUGH_MEMORY = 0x6A84, - APDU_LC_TLV_INCONSISTENT = 0x6A85, - APDU_INVALID_P1P2 = 0x6A86, - APDU_LC_P1P2_INCONSISTENT = 0x6A87, - APDU_REF_DATA_NOT_FOUND = 0x6A88, - APDU_FILE_ALREADY_EXISTS = 0x6A89, - - APDU_WRONG_PARAMETER2 = 0x6B00, - - APDU_WRONG_LE = 0x6C00, - - APDU_INS_INVALID = 0x6D00, - - APDU_CLA_INVALID = 0x6E00, - - APDU_TECHNICAL_ERROR = 0x6F00, - - - // other error codes depend on card OS - APDU_NO_ICC = 0x64A1, - APDU_PROTOCOL_ERROR = 0x64A8, - - APDU_NO_AC_RIGHT = 0x6982, - APDU_PIN_LOCKED = 0x6983, - APDU_PIN_FORMAT_ERROR = 0x6984, - - APDU_OBJECT_NOT_FOUND = 0x6A88, - - APDU_KEYGEN_FAILED = 0x6F83, // ACOS - - - // JavaCardOS - APDU_MORE_DATA_AVAILABLE = 0x6310, - APDU_APPLET_SELECTION_FAILED = 0x6999, - APDU_PIN_FAILED = 0x69C0, - APDU_ASSERT = 0x6FFF, - APDU_ASSERT_NOTRANSACTION = 0x6FFE, - }; - - enum ProtocolType - { - PROTOCOL_UNDEFINED = 0x00000, // There is no active protocol. - PROTOCOL_T0 = 0x00001, // T=0 is the active protocol. - PROTOCOL_T1 = 0x00002, // T=1 is the active protocol. - PROTOCOL_RAW = 0x10000 // Raw is the active protocol. - }; - - enum DispositionType - { - LEAVE_CARD = 0, // Don't do anything special. - RESET_CARD = 1, // Reset the card. - UNPOWER_CARD = 2, // Power down the card. - EJECT_CARD = 3 // Eject the card. - }; - - inline bool APDUSUCCESS(word sw1sw2) - { - return sw1sw2 == act::APDU_OK - || sw1sw2 == act::APDU_OK1; - } - - // extract - template - inline word apdu_response(const ExceptionT& e) - { - return word(e.code() & APDU_RESPONSE_MASK); - } - - // LengthInfo - struct LengthInfo; - typedef LengthInfo VerifyInfo; - - class ISlot; - class ISCardSM; - - // --------------------------------------------------------------------------- - class ISCardAccess - : public IRefCounted - , public ISynchronize - { - public: - virtual ~ISCardAccess() - { } - - virtual long GetProtocol() const = 0; - virtual void SetProtocol(long protocol) = 0; - - virtual ulong GetTimeout() const = 0; - virtual bool SetTimeout(ulong timeout_msec) = 0; - - virtual void Open() = 0; - virtual void Close() = 0; - virtual void ResetCard() = 0; - virtual long CancelCardOperation() = 0; - - virtual void BeginTransaction() = 0; - virtual void EndTransaction(DispositionType disposition = LEAVE_CARD) = 0; - virtual ulong GetTransactionDepth() const = 0; - - virtual const ISlot* GetSlot() const = 0; - - virtual word SendCard(const Blob& cmd, Blob& response, ushort response_len = RESPONSE_MAXLEN) = 0; - - virtual Blob GetResponse() const = 0; - virtual Blob& GetResponse(Blob& response) const = 0; - - virtual word Send(const Blob& cmd) = 0; - virtual word Send(const Blob& header, const Blob& data) = 0; - virtual word Send(const Blob& header, const Blob& data, byte le) = 0; - - // Extended APDU - virtual word SendX(const Blob& header, const Blob& data) = 0; - virtual word SendX(const Blob& header, const Blob& data, ushort le) = 0; - - // Secure Pin Entry - virtual word SendVerifyToReader(const Blob& apdu, const VerifyInfo& info) = 0; - - // Secure Messaging - virtual ISCardSM* GetSM() const = 0; - virtual void SetSM(ISCardSM* sm) = 0; - }; - -} // namespace act - -#endif // ACT_ISCardAccess_h diff --git a/actlibrary/Ubuntu-9-i686/Release/include/actISCardOS.h b/actlibrary/Ubuntu-9-i686/Release/include/actISCardOS.h deleted file mode 100644 index 53f2d62..0000000 --- a/actlibrary/Ubuntu-9-i686/Release/include/actISCardOS.h +++ /dev/null @@ -1,262 +0,0 @@ -// --------------------------------------------------------------------------- -// Name: actISCardOS.h -// Product: cv act library -// Purpose: The class ISCardOS accesses the card operating system -// -// Copyright: (c) 2002 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -// -// Autor: Dr. Xiangdong Wang (XWG) -// Date: 03/21/2002 -// --------------------------------------------------------------------------- - -#ifndef ACT_ISCardOS_h -#define ACT_ISCardOS_h - -#include "actBlob.h" -#include "actTokenBase.h" - -#include "actITokenPIN.h" -#include "actITokenConfig.h" -#include "actITokenInitializer.h" - -#include "actIRefCounted.h" -#include "actIAccessCondition.h" - -namespace act -{ - class IKey; - class IEMSAAlg; - class ITokenFile; - class ISCardAccess; - class ISCardOSBehavior; - class IKeyDerivation; - - class EFDIR; - - const FIDType FID_EF_DIR = 0x2F00; - const FIDType FID_EF_ATR = 0x2F01; - - // - // ISO 7816-4 - enum SCardFileType - { - BINARY = 0x01, - LINEAR_FIXED = 0x02, - LINEAR_TLV = 0x05, - LINEAR_VARIABLE = 0x04, - CYCLIC_FIXED = 0x06, - DF = 0x38 - }; - - // - // ISO 7816-4 - enum SCardRecordMode - { - ABSOLUTE_MODE = 0x04 - }; - - // - // ISO 7816-4 - enum SCardSelectType - { - MFType = 0x00, - DFType = 0x01, - EFType = 0x02, - AIDType = 0x04, - PathType = 0x08 - }; - - enum SCardSelectMode - { - FCI = 0x00, // FCI template - FCP = 0x04, // FCP template - FMD = 0x08, // FMD template - NoData = 0x0c, // No response data - }; - - enum SCardError - { - SCARD_SUCCESS = 0, - SCARD_FUNCTION_NOT_SUPPORTED = -1, - SCARD_FUNCTION_FAILED = -2 - }; - - // - // ISCardOS - class ISCardOS - : public IRefCounted - , public IAcConverter - { - public: - virtual ~ISCardOS() { } - - // ISCardOS - virtual ISCardOS* Clone() const = 0; - - virtual bool IsMoC() = 0; - virtual const char* GetName() const = 0; - virtual Blob GetSerialNumber() const = 0; // hardware serial number - virtual Blob GetCardId(unsigned short fid_card_id) = 0; - virtual Blob GetCardCF(unsigned short fid_card_cf) = 0; - - virtual ISCardAccess* GetAccess() const = 0; - - virtual Blob ComputeDigitalSignature(const Blob& data, int mode = SIGN_DATA) = 0; - virtual Blob ComputeDigitalSignature(IEMSAAlg* emsa, int mode = SIGN_DATA) = 0; - virtual Blob Encipher(const Blob& plaintext) = 0; - virtual Blob Decipher(const Blob& encrypted_data) = 0; - virtual Blob AgreeKey(const Blob& pubkey) = 0; - - virtual void ComputeECDigitalSignature(const Blob& data, Blob& signature) = 0; - - virtual Blob SelectFile(const int filetype, const char* filepath) = 0; // return file control information - virtual Blob SelectFile(const int filetype, const Blob& filepath) = 0; // return file control information - virtual Blob SelectFile(const int filetype, FIDType fid) = 0; // return file control information - virtual Blob SelectApp(const Blob& aid, SCardSelectMode mode = NoData) = 0; - - // EF.DIR - virtual EFDIR* GetEFDIR(ushort fid = FID_INVALID) = 0; - - virtual int GetEFSize(FIDType fid) = 0; - virtual int GetEFSize(const Blob& filepath, Blob& fci) = 0; - virtual void GetFCI(FIDType fid, Blob& fci) = 0; - virtual Blob GetFCIValue(const Blob& fci, const byte tag) = 0; - virtual byte GetFileInfo(const Blob& fc_data, unsigned short& ef_size, size_t& num_of_records) = 0; - - // select and read binary - virtual Blob ReadBinary(const char* filepath) = 0; - virtual Blob ReadBinary(const Blob& filepath) = 0; - virtual Blob ReadBinary(FIDType fid) = 0; - - // read/update binary, file is selected, file size is known - virtual Blob ReadSelectedBinary(size_t file_size, unsigned short offset = 0) = 0; - virtual void UpdateSelectedBinary(const Blob& data, unsigned short offset = 0) = 0; - - // select and update binary - virtual void UpdateBinary(const Blob& filepath, const Blob& data, unsigned short offset = 0) = 0; - virtual void UpdateBinary(FIDType fid, const Blob& data, unsigned short offset = 0) = 0; - - // read binary with XL-APDUs - virtual Blob ReadBinaryX(const char* filepath) = 0; - virtual Blob ReadBinaryX(const Blob& filepath) = 0; - virtual Blob ReadBinaryX(FIDType fid) = 0; - virtual Blob ReadSelectedBinaryX(size_t file_size, unsigned short offset = 0) = 0; - - // update binary with XL-APDUs - virtual void UpdateBinaryX(const Blob& filepath, const Blob& data, unsigned short offset = 0) = 0; - virtual void UpdateBinaryX(FIDType fid, const Blob& data, unsigned short offset = 0) = 0; - virtual void UpdateSelectedBinaryX(const Blob& data, unsigned short offset = 0) = 0; - - // record read/write (file must be selected) - virtual Blob ReadRecord(byte mode) = 0; // p2 - virtual Blob ReadRecord(byte rec_id, byte mode) = 0; // p1, p2 - virtual void UpdateRecord(const Blob& data, byte rec_id, byte mode) = 0; // data, p1, p2 - virtual void AppendRecord(const Blob& data, byte ef_id = 0) = 0; // data, p2 - - // record write (includes file selection and resize) - virtual void UpdateRecord(const Blob& filepath, const Blob& data, byte rec_id, byte mode) = 0; - virtual void AppendRecord(const Blob& filepath, const Blob& data) = 0; - - virtual void DeleteEF(const Blob& fid) = 0; - virtual void DeleteEF(FIDType fid) = 0; - - virtual void CreateEF(const Blob& fcp) = 0; - virtual void CreateEF(const Blob& fid, unsigned short len, bool secure = false) = 0; - virtual void CreateEF(FIDType fid, unsigned short len, bool secure = false) = 0; - - virtual void CreateEF_TLV(FIDType fid, unsigned short len, unsigned short num_of_records = 1) = 0; - virtual void CreateEF_TLV(const Blob& fid, unsigned short len, unsigned short num_of_records = 1) = 0; - - virtual unsigned short GetOSFileOffset() const = 0; - - // get/put dat - virtual Blob GetData(ushort tag, ushort le = 0) const = 0; // INS=CA - virtual void PutData(ushort tag, const Blob& data) = 0; // INS=DA - - // MSE/PSO functions - virtual void ManageSecurityEnvironment(byte p1, byte p2, const Blob& data = Blob()) = 0; - virtual void PerformSecurityOperation(Blob& response, byte p1, byte p2, const Blob& data, bool chaining = false) = 0; - virtual void PerformSecurityOperationX(Blob& response, byte p1, byte p2, const Blob& data) = 0; // explicit extended APDU - - // ISO authentication functions - virtual void ExternalAuthenticate(byte key_id, const Blob& response, bool odd_INS = false) = 0; // INS=82/83, P1=00, P2=key_id - virtual Blob InternalAuthenticate(byte key_id, const Blob& challenge, bool odd_INS = false) = 0; // INS=88/89, P1=00, P2=key_id - virtual Blob MutualAuthenticate(byte key_id, const Blob& auth_data, bool odd_INS = false) = 0; // INS=82/83, P1=00, P2=key_id - virtual Blob GeneralAuthenticate(byte key_id, const Blob& auth_data, bool chaining = false, bool odd_INS = false) = 0; // INS=86/87, P1=00, P2=key_id - - virtual void ResetRetryCounter(byte p1, byte p2, const Blob& data) = 0; - virtual void Verify(byte p1, byte p2, const Blob& data, bool odd_INS = false) = 0; // INS=20/21 - - // random functions - virtual Blob GetChallenge(byte le = byte(8)) const = 0; - virtual Blob GetRandom(const unsigned long count) const = 0; - - // token type / config - virtual ProfileType GetProfileType(bool refresh = false) = 0; - - virtual void SetTokenConfig(ITokenConfig* tkcfg) = 0; - virtual ITokenConfig* GetTokenConfig() const = 0; - - // set/get behavior - virtual void SetBehavior(ISCardOSBehavior* behave) = 0; - virtual ISCardOSBehavior* GetBehavior() = 0; - - // access rights - virtual void SetAccessRights(const Blob& access_rights) = 0; - virtual void SetAccessRights(move_from access_rights) = 0; - virtual void SetExplicitRights(IAccessCondition* ac, size_t ac_cnt = 1) = 0; - - virtual bool HasExplicitRights() const = 0; - - virtual Blob GetAccessRights() = 0; - virtual IAccessCondition* GetAccessRights(const Blob& fci) = 0; - virtual Blob GetAccessRights(ACSCardObjType ac_obj_type, bool tagged) const = 0; - - // selected path - virtual void SetSelectedPath(ITokenFile* selected_path) const = 0; - virtual ITokenFile* GetSelectedPath() const = 0; - - // key derivation - virtual void SetKeyDerivation(IKeyDerivation* key_derivation) = 0; - virtual IKeyDerivation* GetKeyDerivation() const = 0; - - // key handling - virtual void GenerateRSAKeyPair(int key_id, size_t key_size, // in bits - Blob& pubkey) = 0; - - virtual void ImportRSAKeyPair(int key_id, const Blob& prime_p, - const Blob& prime_q, const Blob& priv_exp, Blob& pubkey) = 0; - - virtual void GenerateECKeyPair(Blob& pubkey) = 0; - - virtual void GenerateECKeyPair(int key_id, const Blob& curve_oid, - const Blob& curve_param, Blob& pubkey) = 0; - - virtual void ImportECKeyPair(int key_nr, const Blob& curve_oid, - const Blob& curve_param, const Blob& privkey, const Blob& pubkey) = 0; - - virtual void ImportDESKey(int key_id, const Blob& keyblob) = 0; - - virtual void DeletePrivateKeyObj(FIDType fid) = 0; - virtual void DeleteECPrivateKeyObj(FIDType fid) = 0; - virtual void DeleteBlockCipherKeyObj(FIDType fid) = 0; - virtual void SelectKey(int key_id) = 0; - - // authentication functions - virtual Blob ComputeResponse(const Blob& auth_key, const Blob& challenge) const = 0; - virtual void UpdateExternalAuthenticateKey(byte key_id, const Blob& auth_key) = 0; - - virtual void ResetSecurityStatus() = 0; - virtual SecStatus GetSecurityStatus(byte obj_ref, Blob& context) const = 0; - - // token initialization - virtual void SetDefaultLabel(move_from label) = 0; - virtual ITokenInitializer* GetTokenInitializer() = 0; - }; - -} // namespace act - -#endif // ACT_ISCardOS_h diff --git a/actlibrary/Ubuntu-9-i686/Release/include/actISCardOSBehavior.h b/actlibrary/Ubuntu-9-i686/Release/include/actISCardOSBehavior.h deleted file mode 100644 index da9c27c..0000000 --- a/actlibrary/Ubuntu-9-i686/Release/include/actISCardOSBehavior.h +++ /dev/null @@ -1,79 +0,0 @@ -// --------------------------------------------------------------------------- -// Name: actISCardOSBehavior.h -// Product: cv act library -// Purpose: ISCardOSBehavior interface, encapsulates CardOS specific logic -// for security operations. -// -// Copyright: (c) 2002-2008 cv cryptovision GmbH all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -// -// Autor: Markus Tesche -// Date: 06/03/2008 -// --------------------------------------------------------------------------- - -#ifndef ACT_ISCardOSBehavior_h -#define ACT_ISCardOSBehavior_h - -#include "actIRefCounted.h" - -namespace act -{ - class Blob; - class IEMSAAlg; - class ISCardOS; - class ITokenPIN; - - enum OSBehavior - { - NONE_BEHAVIOR = 0x00000000, - - // algorithm behaviors - SIGN_BEHAVIOR = 0x00000001, - VERIFY_BEHAVIOR = 0x00000002, - DECRYPT_BEHAVIOR = 0x00000004, - ENCRYPT_BEHAVIOR = 0x00000008, - AGREEMENT_BEHAVIOR = 0x00000010, - ALGORITHM_BEHAVIOR_MASK = 0x000000FF, - - // key behaviors - GENERATE_KEY_BEHAVIOR = 0x00000100, - IMPORT_KEY_BEHAVIOR = 0x00000200, - DELETE_PRIVKEY_BEHAVIOR = 0x00000400, - KEY_BEHAVIOR_MASK = 0x0000FF00, - - // PIN behaviors - VERIFY_PIN_BEHAVIOR = 0x00010000, - CHANGE_PIN_BEHAVIOR = 0x00020000, - SET_PIN_BEHAVIOR = 0x00040000, - UNLOCK_PIN_BEHAVIOR = 0x00080000, - PIN_BEHAVIOR_MASK = 0x00FF0000 - }; - - // - // ISCardOSBehavior - class ISCardOSBehavior : public IRefCounted - { - public: - virtual bool Supports(int behavior) const throw() = 0; - - virtual Blob ComputeDigitalSignature(ISCardOS* os, const Blob& data, int mode) = 0; - virtual Blob ComputeDigitalSignature(ISCardOS* os, IEMSAAlg* emsa, int mode) = 0; - virtual Blob Encipher(ISCardOS* os, const Blob& plaintext) = 0; - virtual Blob Decipher(ISCardOS* os, const Blob& encrypted_data) = 0; - virtual Blob AgreeKey(ISCardOS* os, const Blob& pubkey) = 0; - - virtual void GenerateRSAKeyPair(ISCardOS* os, byte key_num, size_t key_size) = 0; - virtual void ImportRSAKeyPair(ISCardOS* os, int key_id, const Blob& prime_p, const Blob& prime_q, - const Blob& priv_exp, Blob& pubkey) = 0; - virtual void DeletePrivateKeyObj(ISCardOS* os, unsigned short fid) = 0; - - virtual void doVerifyPinCmd(const ITokenPIN* token_pin, const Blob& pin_value) = 0; - virtual void doChangePinCmd(const ITokenPIN* token_pin, const Blob& oldnew_value) = 0; - virtual void doSetPinValueCmd(const ITokenPIN* token_pin, const Blob& newpin_value) = 0; - virtual void UnlockPin(const ITokenPIN* token_pin, const Blob& new_pin) = 0; - }; - -} // namespace act - -#endif // ACT_ISCardOSBehavior_h diff --git a/actlibrary/Ubuntu-9-i686/Release/include/actISecurityManager.h b/actlibrary/Ubuntu-9-i686/Release/include/actISecurityManager.h deleted file mode 100644 index ecaccd8..0000000 --- a/actlibrary/Ubuntu-9-i686/Release/include/actISecurityManager.h +++ /dev/null @@ -1,60 +0,0 @@ -// --------------------------------------------------------------------------- -// Name: actISecurityManager.h -// Product: cv act library -// Purpose: ISecurityManager used to manage the token authentication objects. -// -// Copyright: (c) 2008 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -// -// Autor: Markus Tesche (MTE) -// Date: 08/05/2008 -// --------------------------------------------------------------------------- - -#ifndef ACT_ISecurityManager_h -#define ACT_ISecurityManager_h - -#include "actBasics.h" -#include "actIRefCounted.h" - -namespace act -{ - class ITokenPIN; - class IAuthIdRef; - - enum SecManType - { - SecManUnknown = 0, - SecManPIN, - SecManBio, - }; - - // - // ISecurityManager - // TODO: MTE: Add access control management - class ISecurityManager : public IRefCounted - { - public: - virtual SecManType GetType() const = 0; - virtual void Delete(ITokenPIN* auth_obj) = 0; - }; - - class IPINManager : public ISecurityManager - { - public: - // NOTE: MTE: pin can be empty! - virtual ITokenPIN* Create(IAuthIdRef* authIdRef, IAuthIdRef* parentAuthIdRef, - int retryCount, const Blob& pin) = 0; - }; - - class IBioManager : public ISecurityManager - { - public: - virtual ITokenPIN* Create(IAuthIdRef* authIdRef, IAuthIdRef* parentAuthIdRef, - int retryCount, int bioFinger) = 0; - }; - -} // namespace act - -#endif // ACT_ISecurityManager_h diff --git a/actlibrary/Ubuntu-9-i686/Release/include/actISignatureKey.h b/actlibrary/Ubuntu-9-i686/Release/include/actISignatureKey.h deleted file mode 100644 index 2538580..0000000 --- a/actlibrary/Ubuntu-9-i686/Release/include/actISignatureKey.h +++ /dev/null @@ -1,32 +0,0 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actISignatureKey.h -// Product: cv act library -// Purpose: The interface ISignatureKey enables access to the aggregated -// EMSA-object of the SignatureKeys. -// -// Copyright: (c) 2000 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_ISignatureKey_h -#define ACT_ISignatureKey_h - -#include "actIKey.h" - -namespace act -{ - class IEMSAAlg; - - class ISignatureKey : public IKey - { - public: - virtual void SetEncoder(IEMSAAlg* padding) = 0; - virtual const IEMSAAlg* GetEncoder() const = 0; - virtual IEMSAAlg* GetEncoder() = 0; - }; - -} // namespace act - -#endif // ACT_ISignatureKey_h diff --git a/actlibrary/Ubuntu-9-i686/Release/include/actISlot.h b/actlibrary/Ubuntu-9-i686/Release/include/actISlot.h deleted file mode 100644 index b3a2efd..0000000 --- a/actlibrary/Ubuntu-9-i686/Release/include/actISlot.h +++ /dev/null @@ -1,82 +0,0 @@ -// --------------------------------------------------------------------------- -// Name: actISlot.h -// Product: cv act library -// Purpose: The class ISlot manages the Tokens -// -// Copyright: (c) 2002 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -// -// Autor: Dr. Xiangdong Wang (XWG) -// Date: 03/26/2002 -// --------------------------------------------------------------------------- - -#ifndef ACT_ISlot_h -#define ACT_ISlot_h - -#include "actBasics.h" -#include "actBlob.h" - -#include "actIRefCounted.h" -#include "actISynchronize.h" -#include "actIEventMonitoring.h" - -namespace act -{ - class IToken; - class ITokenConfig; - class ISCardOS; - class ISCardAccess; - class ISubsystem; - - // --------------------------------------------------------------------------- - class ISlot - : public IRefCounted - , public ISynchronize - , public IEventMonitoring - { - protected: - virtual ~ISlot() { } - - public: - virtual ISlot* Clone() const = 0; - - virtual bool IsTokenPresent() const = 0; - virtual const char* GetName() const = 0; - virtual ISubsystem* GetSystem() const = 0; - - virtual Blob GetATR() const = 0; - virtual Blob GetHistoricalBytes() const = 0; - - virtual ISCardOS* CreateOS(const Blob& historical_bytes = Blob()) = 0; - virtual IToken* CreateToken(ISCardOS* os = 0) = 0; - virtual ISCardAccess* CreateAccess() = 0; - - virtual void SetTokenConfig(ITokenConfig* tkcfg) = 0; - - virtual bool HasSecurePinEntry(ISCardAccess* ac = 0) const = 0; - virtual bool HasSecurePinChange(ISCardAccess* ac = 0) const = 0; - - virtual void SetParam(paramid_t id,int val) = 0; - virtual int GetParam(paramid_t id) const = 0; - }; - - // --------------------------------------------------------------------------- - struct ATRCardInfo - { - const char* name; - const char* atr; - const char* atr_mask; - }; - - // --------------------------------------------------------------------------- - void InitCardInfoMap(const ATRCardInfo* mapCardInfo); - const ATRCardInfo* GetATRCardInfo(const Blob& atr); - const char* GetOSName(const Blob& atr); - Blob GetHistoricalBytes(const Blob& atr); - bool GetATRStructInfo(const Blob& atr, size_t& his_pos, size_t& his_len, bool& has_tck); - -} // namespace act - -#endif // ACT_ISlot_h diff --git a/actlibrary/Ubuntu-9-i686/Release/include/actISlotMonitor.h b/actlibrary/Ubuntu-9-i686/Release/include/actISlotMonitor.h deleted file mode 100644 index 358abc0..0000000 --- a/actlibrary/Ubuntu-9-i686/Release/include/actISlotMonitor.h +++ /dev/null @@ -1,39 +0,0 @@ -// --------------------------------------------------------------------------- -// Name: actISlotMonitor.h -// Product: cv act library -// Purpose: The class SlotMonitor notifies the slot events -// -// Copyright: (c) 2002 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -// -// Autor: Dr. Xiangdong Wang (XWG) -// Date: 05/27/2002 -// --------------------------------------------------------------------------- - -#ifndef ACT_ISlotMonitor_h -#define ACT_ISlotMonitor_h - -#include "actIRefCounted.h" - -namespace act -{ - class IEventHandler; - - // - // ISlotMonitor - class ISlotMonitor : public IRefCounted - { - public: - virtual void Stop() = 0; - virtual void Start(IEventHandler* cmd) = 0; - virtual bool Interrupted() const = 0; - - protected: - virtual void Run() = 0; - }; - -} // namespace act - -#endif // ACT_ISlotMonitor_h diff --git a/actlibrary/Ubuntu-9-i686/Release/include/actIStreamCipher.h b/actlibrary/Ubuntu-9-i686/Release/include/actIStreamCipher.h deleted file mode 100644 index 4c53d98..0000000 --- a/actlibrary/Ubuntu-9-i686/Release/include/actIStreamCipher.h +++ /dev/null @@ -1,51 +0,0 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actIStreamCipher.h -// Product: cv act library -// Purpose: The class IStreamCipher creates the symmetric StreamCipher, which is -// defined by IStreamCipherKey. It offers operations like encrypt, decrypt -// and queries involving validity or keylength etc. -// -// Copyright: (c) 2001 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_IStreamCipher_h -#define ACT_IStreamCipher_h - -#include "actBasics.h" - -namespace act -{ - - class Blob; - - class IStreamCipher - { - public: - - virtual IStreamCipher* Clone() const =0; - virtual void Import( const Blob& indata ) =0; - virtual void Export( Blob& outdata ) const =0; - - virtual void SetRawKey( const Blob& keyblob ) =0; - virtual void GetRawKey( Blob& keyblob ) const =0; - - virtual void Process(const byte* input, byte* output, size_t input_len) const =0; - - virtual size_t GetKeySize(size_t keysize=0) const =0; - virtual size_t GetMinKeySize() const =0; - virtual size_t GetMaxKeySize() const =0; - virtual size_t GetNextKeySize(size_t prevsize) const =0; - - virtual void* GetCreatePointer() const =0; - - virtual ~IStreamCipher() {}; - }; - - -}// namespace act - -#endif - diff --git a/actlibrary/Ubuntu-9-i686/Release/include/actIStreamCipherKey.h b/actlibrary/Ubuntu-9-i686/Release/include/actIStreamCipherKey.h deleted file mode 100644 index 7282893..0000000 --- a/actlibrary/Ubuntu-9-i686/Release/include/actIStreamCipherKey.h +++ /dev/null @@ -1,39 +0,0 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actIStreamCipherKey.h -// Product: cv act library -// Purpose: The class IStreamCipherKey extends the interface of the class IKey -// and supports the peculiarities of symmetric keys. -// -// -// Copyright: (c) 2001 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_IStreamCipherKey_h -#define ACT_IStreamCipherKey_h - -#include "actIKey.h" - -namespace act -{ - class IStreamCipher; - class IDerivator; - - class IStreamCipherKey : public IKey - { - public: - - virtual void SetCipher(IStreamCipher* cipher) = 0; - virtual const IStreamCipher* GetCipher() const = 0; - virtual IStreamCipher* GetCipher() = 0; - - virtual void SetDerivator(IDerivator* derive) = 0; - virtual const IDerivator* GetDerivator() const = 0; - virtual IDerivator* GetDerivator() = 0; - }; - -} //namespace act - -#endif // ACT_IStreamCipherKey_h diff --git a/actlibrary/Ubuntu-9-i686/Release/include/actISubsystem.h b/actlibrary/Ubuntu-9-i686/Release/include/actISubsystem.h deleted file mode 100644 index 731b4cd..0000000 --- a/actlibrary/Ubuntu-9-i686/Release/include/actISubsystem.h +++ /dev/null @@ -1,54 +0,0 @@ -// --------------------------------------------------------------------------- -// Name: actISubsystem.h -// Product: cv act library -// Purpose: The class ISubsystem detects and manages the slots -// -// Copyright: (c) 2002 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -// -// Autor: Dr. Xiangdong Wang (XWG) -// Date: 03/26/2002 -// --------------------------------------------------------------------------- - -#ifndef ACT_ISubsystem_h -#define ACT_ISubsystem_h - -#include "actBasics.h" -#include "actIRefCounted.h" -#include "actISynchronize.h" -#include "actIEventMonitoring.h" - -namespace act -{ - class ISlot; - class ITokenConfig; - - // - // ISubsystem - class ISubsystem - : public IRefCounted - , public ISynchronize - , public IEventMonitoring - { - public: - virtual void Refresh() = 0; - virtual bool Disconnect() = 0; - virtual bool Install(size_t port) = 0; - virtual const char* GetName() const = 0; - - // SlotList - virtual int GetSlotNumber() const = 0; - virtual const ISlot* GetSlot(int pos) const = 0; - virtual ISlot* CreateSlot(const char* name) = 0; - - virtual void SetTokenConfig(ITokenConfig* tkcfg) = 0; - - protected: - virtual ~ISubsystem() { } - }; - -} // namespace act - -#endif // ACT_ISubsystem_h diff --git a/actlibrary/Ubuntu-9-i686/Release/include/actISubsystemConfig.h b/actlibrary/Ubuntu-9-i686/Release/include/actISubsystemConfig.h deleted file mode 100644 index 165ac6e..0000000 --- a/actlibrary/Ubuntu-9-i686/Release/include/actISubsystemConfig.h +++ /dev/null @@ -1,38 +0,0 @@ -// --------------------------------------------------------------------------- -// Name: actISubsystemConfig.h -// Product: cv act library -// Purpose: The Subsystem configuration. -// -// Copyright: (c) 2006 cv cryptovision GmbH -// all rights reserved. -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -// -// Autor: Markus Tesche (MTE) -// Date: 1/12/2006 -// --------------------------------------------------------------------------- - -#ifndef ACT_ISubsystemConfig_h -#define ACT_ISubsystemConfig_h - -#include "actIRefCounted.h" - -namespace act -{ - class ISubsystem; - - // - // ISubsystemConfig - class ISubsystemConfig : public IRefCounted - { - public: - // Returns the Subsystem name. - virtual const char* GetName() const = 0; - - // Configures the Subsystem, if fails throws an Exception. - virtual void ConfigureSubsystem(ISubsystem*) = 0; - }; - -} // namespace act - -#endif // ACT_ISubsystemConfig_h diff --git a/actlibrary/Ubuntu-9-i686/Release/include/actISynchronize.h b/actlibrary/Ubuntu-9-i686/Release/include/actISynchronize.h deleted file mode 100644 index c8f1ef6..0000000 --- a/actlibrary/Ubuntu-9-i686/Release/include/actISynchronize.h +++ /dev/null @@ -1,43 +0,0 @@ -////////////////////////////////////////////////////////////////////////// -// Name: actISynchronize.h -// Product: cv act library -// Purpose: Implemented by types supporting multithreading synchronization. -// -// Copyright: (c) 2010 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -// -// Autor: Markus Tesche -// Date: 07/27/2010 -////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_ISynchronize_h -#define ACT_ISynchronize_h - -namespace act -{ - class Handle; - - // - // ISynchronize - class ISynchronize - { - protected: - virtual ~ISynchronize() { } - - public: - virtual void Lock() = 0; - virtual void Unlock() = 0; - virtual long LockCount() const = 0; - - virtual const Handle& syncHandle() const = 0; - }; - - inline void Lock(ISynchronize& object) { object.Lock(); } - inline void Unlock(ISynchronize& object) { object.Unlock(); } - inline long LockCount(const ISynchronize& object) { return object.LockCount(); } - -} // namespace act - -#endif // ACT_ISynchronize_h diff --git a/actlibrary/Ubuntu-9-i686/Release/include/actIToken.h b/actlibrary/Ubuntu-9-i686/Release/include/actIToken.h deleted file mode 100644 index 15d0ac2..0000000 --- a/actlibrary/Ubuntu-9-i686/Release/include/actIToken.h +++ /dev/null @@ -1,165 +0,0 @@ -// --------------------------------------------------------------------------- -// Name: actIToken.h -// Product: cv act library -// Purpose: The IToken interface represents the profile and the application -// supported by a token. -// -// Copyright: (c) 2002 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -// -// Autor: Dr. Xiangdong Wang (XWG) -// Date: 03/22/2002 -// --------------------------------------------------------------------------- - -#ifndef ACT_IToken_h -#define ACT_IToken_h - -#include "actBlob.h" -#include "actBasics.h" -#include "actTokenBase.h" - -#include "actISynchronize.h" -#include "actITokenFileCache.h" -#include "actIAccessCondition.h" - -namespace act -{ - class IKey; - class IEMSAAlg; - class ICertificate; - class IAuthIdRef; - class ITokenPIN; - class ITokenAuth; - class ITokenFile; - class ITokenFileMap; - class ITokenConfig; - class ITokenKeyIterator; - class ISecurityManager; - class ITokenAuthIterator; - - struct CertEntry - { - int usage; - Blob certblob; - }; - - // - // ITokenView - class ITokenView - { - protected: - virtual ~ITokenView() { } - - public: - virtual IToken* GetToken() = 0; - - virtual ITokenView* GetPrev() const = 0; - virtual ITokenView* GetNext() const = 0; - - virtual ITokenFile* GetPath() const = 0; - virtual ITokenFileMap* GetFileMap() const = 0; - - virtual bool Equals(const ITokenView* other) const = 0; - - // Divide view into partitions, based on type[PATH|PIN] - virtual size_t Split(paramid_t type) = 0; - virtual ITokenView* SetDefault() = 0; - }; - - // - // IToken - class IToken - : public IRefCounted - , public IAcConverter - , public ISynchronize - { - protected: - virtual ~IToken() { } - - public: - virtual ITokenView* GetView() const = 0; - virtual ITokenConfig* GetConfig() const = 0; - virtual ITokenFile* GetTokenFile(const Blob& path) = 0; - - virtual int GetStatus() const = 0; - virtual int GetType() const = 0; - virtual ProfileType GetProfileType() = 0; - virtual const char* GetName() const = 0; - - // Returns the serial number, which may (!) be empty or equal the hardware serial! - virtual Blob GetSerialNumber() const = 0; - virtual Blob GetCardholderName() const = 0; - virtual Blob GetRandom(const unsigned long count) const = 0; - virtual void SetSeed(const Blob& seed) = 0; - - // Generate a new key - virtual IKey* NewKey(int key_type) = 0; - - // Add key to token, takes ownership - even on exception! - virtual void AddKey(IKey* key) = 0; - virtual bool RemoveKey(IKey* key) = 0; - - // Write/Import a (soft) key to token - virtual IKey* WriteKey(const IKey* key) = 0; - - // Get a token key instance from matching certificate - virtual IKey* CreateKey(const Blob& cert) const = 0; - virtual IKey* CreateKey(const ICertificate* cert) const = 0; - - // Key Objects - virtual int GetKeyNumber() const = 0; - virtual IKey* GetKey(int pos) const = 0; - virtual ITokenKeyIterator* GetKeyIterator(KeyType type, const Blob& authId = Blob()) = 0; - - // Certificate Objects - virtual int GetCertificateNumber() const = 0; - virtual CertEntry GetCertificate(int pos) const = 0; - - // Write/Delete a certificate (corresponding to a key) to token - virtual void WriteCertificate(const Blob& cert, IKey* key = 0) = 0; - virtual void DeleteCertificate(const Blob& cert, IKey* key = 0) = 0; - - // Authentication Objects - virtual ITokenAuth* GetAuth() const = 0; - virtual ISecurityManager* SecurityManager(int authManagerType) = 0; - virtual ITokenAuthIterator* GetAuthIterator(int type, const Blob& authId = Blob()) = 0; - - virtual int GetPinNumber() const = 0; - virtual ITokenPIN* GetPin(const IAuthIdRef* authIdRef, const ITokenFile* location) const = 0; - virtual ITokenPIN* GetPin(int pos, const ITokenFile* location) const = 0; - virtual ITokenPIN* GetPin(const char* pin_name) const = 0; - virtual ITokenPIN* GetPin(const Blob& authId) const = 0; - - virtual ITokenPIN* GetUserPin() const = 0; - virtual ITokenPIN* GetSOPin() const = 0; - virtual void VerifyUserPin(const Blob& pinvalue) = 0; - virtual void ChangeUserPin(const Blob& oldpin, const Blob& newpin) = 0; - virtual void UnlockUserPin(const Blob& so_pin, const Blob& new_userpin) = 0; - virtual void VerifySOPin(const Blob& pinvalue) = 0; - virtual void ChangeSOPin(const Blob& oldpin, const Blob& newpin) = 0; - - virtual bool ResetSecurityState() const = 0; - - // Token specific - virtual void SelectDataPath() const = 0; // TODO: MTE: To be removed soon! - virtual ISCardOS* GetOS() const = 0; // TODO: MTE: To be removed soon! - - // Delete a key pair from token with matching token key or certificate - virtual void DeleteKeyPair(const IKey* key) = 0; - virtual void DeleteKeyPair(const Blob& cert) = 0; - - virtual bool IsPKCS15() const = 0; - virtual bool IsReadOnly() const = 0; - virtual bool LoginRequired() const = 0; - - virtual bool IsLocked() const = 0; - - virtual Blob GetCardId() const = 0; - virtual Blob GetCardCF() const = 0; - }; - -} // namespace act - -#endif // ACT_IToken_h diff --git a/actlibrary/Ubuntu-9-i686/Release/include/actITokenAuth.h b/actlibrary/Ubuntu-9-i686/Release/include/actITokenAuth.h deleted file mode 100644 index cd6d150..0000000 --- a/actlibrary/Ubuntu-9-i686/Release/include/actITokenAuth.h +++ /dev/null @@ -1,139 +0,0 @@ -// --------------------------------------------------------------------------- -// Name: actITokenAuth.h -// Product: cv act library -// Purpose: The ITokenAuth interface represents a IToken authentication state -// using one the ITokenPIN objects owned by a token. -// -// Copyright: (c) 2007 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -// -// Autor: Markus Tesche (MTE) -// Date: 11/09/2007 -// --------------------------------------------------------------------------- - -#ifndef ACT_ITokenAuth_h -#define ACT_ITokenAuth_h - -#include "actBlob.h" -#include "actBasics.h" -#include "actIRefCounted.h" - -namespace act -{ - class AuthInfo; - - class IToken; - class ITokenPIN; - class ITokenFile; - class IAuthIdRef; - class IAuthConstrained; - - enum AuthConstrainedType - { - AUTH_CONSTRAINED_ALWAYS = 0, - AUTH_CONSTRAINED_NOT, - AUTH_CONSTRAINED_AND, - AUTH_CONSTRAINED_OR, - }; - - // - // IAuthFactory - class IAuthFactory - { - public: - virtual IAuthIdRef* CreateAuthIdRef(const Blob& authId, ITokenFile* path, - byte constrained_mode = AUTH_CONSTRAINED_ALWAYS) = 0; - - virtual ITokenPIN* CreatePin(const AuthInfo& ai, byte objRef, ITokenFile* path, - IAuthIdRef* authIdRef, IAuthIdRef* parentAuthIdRef) = 0; - - // TODO: MTE: deprecated, use CreatePin(const AuthInfo&...) instead - virtual ITokenPIN* CreatePin(int type, int usage, byte objRef, int minLen, - int maxLen, IAuthIdRef* authIdRef, const char* name = 0) = 0; - - protected: - virtual ~IAuthFactory() { } - }; - - - // - // IAuthIdRef - class IAuthIdRef : public IRefCounted - { - public: - virtual byte GetAuthIdByte() const = 0; - virtual const Blob& GetAuthId() const = 0; - virtual IAuthConstrained* GetAuthConstrained() = 0; - - virtual bool Equals(const Blob& authId) const = 0; - }; - - // - // IAuthIdRefIterator - class IAuthIdRefIterator : public IRefCounted - { - public: - virtual void Reset() = 0; - virtual IAuthIdRef* Next() = 0; - }; - - - // - // ITokenAuthIterator - class ITokenAuthIterator : public IRefCounted - { - public: - virtual void Reset(ITokenFile* parent = 0) = 0; - virtual ITokenPIN* Next() = 0; - }; - - // - // ITokenAuth - class ITokenAuth : public IRefCounted - { - public: - virtual bool Login(ITokenPIN* auth_obj, const Blob& pin) = 0; - - virtual bool Logout() = 0; - virtual bool Logout(const ITokenPIN* auth_obj) = 0; - virtual bool LogoutEx(bool reset_security_state) = 0; - - virtual Blob GetChallenge(const ITokenPIN* auth_obj) = 0; - - virtual IToken* GetToken() const = 0; - virtual ITokenPIN* GetAuthenticated() const = 0; - virtual ITokenPIN* GetAuthenticated(size_t index) const = 0; - - virtual bool NeedsPINValue() const = 0; - virtual bool HasChallenge() const = 0; - virtual bool HasChallenge(const ITokenPIN* auth_obj) const = 0; - virtual bool IsAuthenticated(const ITokenPIN* auth_obj) const = 0; - virtual bool IsAuthenticated(bool verify_security_state = false) const = 0; - - /*! - * Clears the internal authentication state for given auth_obj. - * - * If auth_obj is not authenticated: - * - do nothing - * - return false - * - * If auth_obj is authenticated: - * - remove auth_obj from authenticated-list. - * - return true - * - * \note does NOT reset the card's authentication state! - * - * \param auth_obj \ref ITokenPIN - * \return true if succeeded, false if not - */ - virtual bool Invalidate(ITokenPIN* auth_obj) = 0; - virtual bool Select(const ITokenPIN* auth_obj, bool force) = 0; - - virtual ITokenAuthIterator* Iterator(int type, const Blob& authId = Blob()) const = 0; - }; - -} // namespace act - -#endif // ACT_ITokenAuth_h diff --git a/actlibrary/Ubuntu-9-i686/Release/include/actITokenAuthOwner.h b/actlibrary/Ubuntu-9-i686/Release/include/actITokenAuthOwner.h deleted file mode 100644 index c53eccc..0000000 --- a/actlibrary/Ubuntu-9-i686/Release/include/actITokenAuthOwner.h +++ /dev/null @@ -1,39 +0,0 @@ -// --------------------------------------------------------------------------- -// Name: actITokenAuthOwner.h -// Product: cv act library -// Purpose: The ITokenAuthOwner interface is used by objects which requires -// authentication like token keys. -// -// Copyright: (c) 2008 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -// -// Autor: Markus Tesche -// Date: 08/10/2008 -// --------------------------------------------------------------------------- - -#ifndef ACT_ITokenAuthOwner_h -#define ACT_ITokenAuthOwner_h - -namespace act -{ - class ITokenPIN; - class IAuthIdRef; - - // - // ITokenAuthOwner - class ITokenAuthOwner - { - public: - virtual void SetPin(ITokenPIN* pin) = 0; - virtual ITokenPIN* GetPin() const = 0; - virtual IAuthIdRef* GetAuthIdRef() const = 0; - - protected: - virtual ~ITokenAuthOwner() { } - }; - -} // namespace act - -#endif // ACT_ITokenAuthOwner_h diff --git a/actlibrary/Ubuntu-9-i686/Release/include/actITokenBlockCipher.h b/actlibrary/Ubuntu-9-i686/Release/include/actITokenBlockCipher.h deleted file mode 100644 index 014efe1..0000000 --- a/actlibrary/Ubuntu-9-i686/Release/include/actITokenBlockCipher.h +++ /dev/null @@ -1,45 +0,0 @@ -// --------------------------------------------------------------------------- -// Name: actITokenBlockCipher.h -// Product: cv act library -// Purpose: The interface ITokenBlockCipher encapsulates operations using a -// symmetric key stored on a secure token. -// -// Copyright: (c) 2008 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -// -// Autor: Markus Tesche -// Date: 05/15/2008 -// --------------------------------------------------------------------------- - -#ifndef ACT_ITokenBlockCipher_h -#define ACT_ITokenBlockCipher_h - -#include "actBlob.h" -#include "actIBlockCipher.h" - -namespace act -{ - class IToken; - class ITokenConfig; - - // - // ITokenBlockCipher - class ITokenBlockCipher : public IBlockCipher - { - public: - virtual ITokenBlockCipher* Clone() const = 0; - - virtual void Configure(ITokenConfig* tkcfg) = 0; - virtual Blob GetCipherName() const = 0; - virtual Blob GetLabel() const = 0; - - virtual int GetKeyNumber() const = 0; - - virtual IToken* GetToken() const = 0; - }; - -} // namespace act - -#endif // ACT_ITokenBlockCipher_h diff --git a/actlibrary/Ubuntu-9-i686/Release/include/actITokenBlockCipherKey.h b/actlibrary/Ubuntu-9-i686/Release/include/actITokenBlockCipherKey.h deleted file mode 100644 index 3f13e59..0000000 --- a/actlibrary/Ubuntu-9-i686/Release/include/actITokenBlockCipherKey.h +++ /dev/null @@ -1,59 +0,0 @@ -// --------------------------------------------------------------------------- -// Name: actITokenBlockCipherKey.h -// Product: cv act library -// Purpose: The interface ITokenBlockCipherKey enables access to a key stored -// on a secure token. -// -// Copyright: (c) 2008 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -// -// Autor: Markus Tesche -// Date: 05/15/2008 -// --------------------------------------------------------------------------- - -#ifndef ACT_ITokenBlockCipherKey_h -#define ACT_ITokenBlockCipherKey_h - -#include "actTokenBase.h" - -#include "actIBlockCipherKey.h" - -#include "actITokenAuthOwner.h" -#include "actITokenFileOwner.h" -#include "actITokenBlockCipher.h" - -namespace act -{ - class IToken; - class ITokenConfig; - - // - // ITokenBlockCipherKey - class ITokenBlockCipherKey - : public IBlockCipherKey - , public ITokenAuthOwner - , public ITokenFileOwner - { - public: - virtual ITokenBlockCipherKey* Clone() const = 0; - - virtual ITokenBlockCipher* GetCipher() = 0; - virtual const ITokenBlockCipher* GetCipher() const = 0; - - virtual KeyType GetType() const = 0; - virtual IToken* GetToken() const = 0; - virtual const char* GetName() const = 0; - virtual void Configure(ITokenConfig* tkcfg) = 0; - - virtual void SetRawKey(const Blob& raw_key) = 0; - virtual void GetRawKey(Blob& raw_key) const = 0; - - virtual void SetMode(const char* modename) = 0; - virtual void SetPadding(const char* padname) = 0; - }; - -} // namespace act - -#endif // ACT_ITokenBlockCipherKey_h diff --git a/actlibrary/Ubuntu-9-i686/Release/include/actITokenConfig.h b/actlibrary/Ubuntu-9-i686/Release/include/actITokenConfig.h deleted file mode 100644 index cecaa7e..0000000 --- a/actlibrary/Ubuntu-9-i686/Release/include/actITokenConfig.h +++ /dev/null @@ -1,60 +0,0 @@ -// --------------------------------------------------------------------------- -// Name: actITokenConfig.h -// Product: cv act library -// Purpose: IToken configuration. -// -// Copyright: (c) 2008 cv cryptovision GmbH -// all rights reserved. -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -// -// Autor: Markus Tesche -// Date: 11/07/2008 -// --------------------------------------------------------------------------- - -#ifndef ACT_ITokenConfig_h -#define ACT_ITokenConfig_h - -#include "actIParam.h" -#include "actIRefCounted.h" - -namespace act -{ - class ISCardOS; - class IToken; - class ITokenPIN; - class ITokenAuth; - class ITokenKey; - class ITokenBlockCipher; - class ITokenBlockCipherKey; - class ITokenFileMap; - class ITokenFileCache; - - // - // ITokenConfig - class ITokenConfig - : public IParam - , virtual public IRefCounted - { - public: - virtual ITokenConfig* Clone() const = 0; - - // Individual card detection - virtual bool IsSupported(ISCardOS* os) const = 0; - - // Configures the token, if fails throws an Exception - virtual void Configure(IToken* token) const = 0; - virtual void Configure(ITokenPIN* auth_obj) const = 0; - virtual void Configure(ITokenKey* key) const = 0; - virtual void Configure(ITokenBlockCipher* cipher) const = 0; - virtual void Configure(ITokenBlockCipherKey* key) const = 0; - - // Factory's for token helper objects - virtual ITokenAuth* CreateAuth(IToken* token) = 0; - virtual ITokenFileMap* CreateFileMap(const IToken* token) = 0; - virtual ITokenFileCache* CreateFileCache(IToken* token) = 0; - }; - -} // namespace act - -#endif // ACT_ITokenConfig_h diff --git a/actlibrary/Ubuntu-9-i686/Release/include/actITokenExtension.h b/actlibrary/Ubuntu-9-i686/Release/include/actITokenExtension.h deleted file mode 100644 index 784c418..0000000 --- a/actlibrary/Ubuntu-9-i686/Release/include/actITokenExtension.h +++ /dev/null @@ -1,39 +0,0 @@ -// --------------------------------------------------------------------------- -// Name: actITokenExtension.h -// Product: cv act library -// Purpose: Interface ITokenExtension provides functionality to register extensions to -// IToken derived objects. -// -// Copyright: (c) 2008 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -// -// Autor: Markus Tesche -// Date: 12/02/2008 -// --------------------------------------------------------------------------- - -#ifndef ACT_ITokenExtension_h -#define ACT_ITokenExtension_h - -#include "actIRefCounted.h" - -namespace act -{ - class IToken; - - // - // ITokenExtension - class ITokenExtension : public IRefCounted - { - protected: - virtual ~ITokenExtension() { } - - public: - virtual void* GetCreatePtr() throw() = 0; - virtual bool Register(IToken* token) = 0; - }; - -} // namespace act - -#endif // ACT_ITokenExtension_h diff --git a/actlibrary/Ubuntu-9-i686/Release/include/actITokenFile.h b/actlibrary/Ubuntu-9-i686/Release/include/actITokenFile.h deleted file mode 100644 index 4f42757..0000000 --- a/actlibrary/Ubuntu-9-i686/Release/include/actITokenFile.h +++ /dev/null @@ -1,71 +0,0 @@ -// --------------------------------------------------------------------------- -// Name: actITokenFile.h -// Product: cv act library -// Purpose: ITokenFile represents a simple smartcard file with path. -// -// Copyright: (c) 2008 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -// -// Autor: Markus Tesche -// Date: 09/02/2008 -// --------------------------------------------------------------------------- - -#ifndef ACT_TokenFile_h -#define ACT_TokenFile_h - -#include "actBlob.h" -#include "actIRefCounted.h" - -namespace act -{ - class ISCardOS; - - enum FILETYPE - { - UKType = -1 - }; - - // - // ITokenFile - class ITokenFile : public IRefCounted - { - public: - virtual ITokenFile* Clone() const = 0; - - virtual bool IsValid() const = 0; - - virtual bool Equals(const Blob& path) const = 0; - virtual bool Equals(const ISCardOS* os) const = 0; - virtual bool Equals(const ITokenFile* other) const = 0; - virtual bool IsParent(const ITokenFile* other, size_t* mismatch = 0) const = 0; - - virtual Blob& RefFCI() = 0; - virtual const Blob& GetFCI() const = 0; - - virtual Blob& RefAID() = 0; - virtual const Blob& GetAID() const = 0; - - virtual int GetFileType() const = 0; - virtual size_t GetFileLength() const = 0; - virtual const Blob& GetFilePath() const = 0; - virtual size_t GetFullLength() const = 0; - virtual size_t GetFullPath(Blob& path) const = 0; - - virtual ITokenFile* GetRelativeTo() const = 0; - virtual void SetRelativeTo(ITokenFile* parent) = 0; - virtual ITokenFile* MakeRelativeTo(ITokenFile* parent) = 0; - - virtual void SetFilePath(const Blob& filepath, int filetype) = 0; - virtual void SetFilePath(move_from filepath, int filetype) = 0; - - virtual const Blob& SelectApp(ISCardOS* os, int selectmode) = 0; - virtual const Blob& SelectFile(ISCardOS* os, int selectmode) = 0; - - virtual bool ProbeFilePath(ISCardOS* os, bool cut_non_existing) = 0; - }; - -} // namespace act - -#endif // ACT_TokenFile_h diff --git a/actlibrary/Ubuntu-9-i686/Release/include/actITokenFileCache.h b/actlibrary/Ubuntu-9-i686/Release/include/actITokenFileCache.h deleted file mode 100644 index 0991040..0000000 --- a/actlibrary/Ubuntu-9-i686/Release/include/actITokenFileCache.h +++ /dev/null @@ -1,42 +0,0 @@ -// --------------------------------------------------------------------------- -// Name: actITokenFileCache.h -// Product: cv act library -// Purpose: Interface used for FID based binary cache. -// -// Copyright: (c) 2008 cv cryptovision GmbH -// all rights reserved. -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -// -// Autor: Markus Tesche -// Date: 11/07/2008 -// --------------------------------------------------------------------------- - -#ifndef ACT_ITokenFileCache_h -#define ACT_ITokenFileCache_h - -#include "actIRefCounted.h" - -#include - -namespace act -{ - class Blob; - class IToken; - - // - // ITokenFileCache - class ITokenFileCache : public IRefCounted - { - protected: - typedef std::map CacheMap; - - public: - virtual bool InitCache(IToken* token) = 0; - virtual Blob GetCache(const Blob& filepath) const = 0; - virtual void PutCache(const Blob& filepath, const Blob& memory) const = 0; - }; - -} // namespace act - -#endif // ACT_ITokenFileCache_h diff --git a/actlibrary/Ubuntu-9-i686/Release/include/actITokenFileOwner.h b/actlibrary/Ubuntu-9-i686/Release/include/actITokenFileOwner.h deleted file mode 100644 index 1762d31..0000000 --- a/actlibrary/Ubuntu-9-i686/Release/include/actITokenFileOwner.h +++ /dev/null @@ -1,37 +0,0 @@ -// --------------------------------------------------------------------------- -// Name: actITokenFileOwner.h -// Product: cv act library -// Purpose: The ITokenFileOwner interface is implemented by objects which -// refer to a specific location on token represented by ITokenFile. -// -// Copyright: (c) 2010 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -// -// Autor: Markus Tesche -// Date: 28/03/2010 -// --------------------------------------------------------------------------- - -#ifndef ACT_ITokenFileOwner_h -#define ACT_ITokenFileOwner_h - -namespace act -{ - class ITokenFile; - - // - // ITokenFileOwner - class ITokenFileOwner - { - public: - virtual ITokenFile* GetPath() const = 0; - virtual void SetPath(ITokenFile* file) = 0; - - protected: - virtual ~ITokenFileOwner() { } - }; - -} // namespace act - -#endif // ACT_ITokenFileOwner_h diff --git a/actlibrary/Ubuntu-9-i686/Release/include/actITokenInitializer.h b/actlibrary/Ubuntu-9-i686/Release/include/actITokenInitializer.h deleted file mode 100644 index 0de6aef..0000000 --- a/actlibrary/Ubuntu-9-i686/Release/include/actITokenInitializer.h +++ /dev/null @@ -1,131 +0,0 @@ -// --------------------------------------------------------------------------- -// Name: actITokenInitializer.h -// Product: cv act library -// Purpose: ITokenInitializer interface declares common token profile initialization functionality. -// -// Copyright: (c) 2009 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -// -// Autor: Markus Tesche -// Date: 04/20/2009 -// --------------------------------------------------------------------------- - -#ifndef ACT_ITokenInitializer_h -#define ACT_ITokenInitializer_h - -#include "actBlob.h" -#include "actTokenBase.h" -#include "actIRefCounted.h" - -namespace act -{ - extern const byte PIN_PAD_CHAR; - - struct TIData - { - private: - TIData(const TIData&) throw(); - TIData& operator=(const TIData&) throw(); - - public: - TIData(const char* _profile_name = 0) - : profile_name(_profile_name) - , profile_type(PROFILE_UNKNOWN) - , retry_counter(3) - , pin_pad_byte(PIN_PAD_CHAR) - , enable_pin_padding(false) - , enable_pin_pce_so(false) - , enable_pin_pce_user(false) - , enable_minidriver(false) - , enable_minidriver_pnp(false) - , enable_biometric(false) - , enable_biometric_pins(false) - , load_only(false) - , load_package_MoC(false) - , load_package_2048(false) - , load_package_ecc(false) - { } - - Blob atr_historical_bytes; - Blob atr_historical_bytes_suffix; - Blob card_pin; - Blob so_pin; - Blob user_pin; - Blob serial_number; - Blob last_update_pin_utc; - Blob challenge_response_key; - Blob binary_data; - - const char* profile_name; - ProfileType profile_type; - - short retry_counter; - byte pin_pad_byte; - - bool enable_pin_padding; - bool enable_pin_pce_so; - bool enable_pin_pce_user; - bool enable_minidriver; - bool enable_minidriver_pnp; - bool enable_biometric; - bool enable_biometric_pins; - - bool load_only; - bool load_package_MoC; - bool load_package_2048; - bool load_package_ecc; - }; - - struct TITokenInfo - { - TITokenInfo(size_t pin_len_max, size_t pin_len_min, size_t _key_len_cr) - : serial_number_len(16) - , key_len_cr(_key_len_cr) - { - pin_len_max_admin = pin_len_max_so = pin_len_max_user = pin_len_max; - pin_len_min_admin = pin_len_min_so = pin_len_min_user = pin_len_min; - } - - size_t serial_number_len; - - size_t key_len_cr; - - size_t pin_len_max_admin; - size_t pin_len_max_so; - size_t pin_len_max_user; - - size_t pin_len_min_admin; - size_t pin_len_min_so; - size_t pin_len_min_user; - }; - - class ISCardOS; - class IProfileGenerator; - class ISCardCmdObserver; - - // - // ITokenInitializer - class ITokenInitializer : public IRefCounted - { - public: - virtual ISCardOS* GetOS() const= 0; - virtual const TITokenInfo& GetTokenInfo() const = 0; - virtual const ProfileType* GetSupportedProfileList() const = 0; - - virtual bool SupportsProfile(ProfileType profile_type) const = 0; - virtual void SetGenerator(IProfileGenerator* generator) = 0; - virtual void SetObserver(ISCardCmdObserver* observer) = 0; - - virtual bool EraseProfile(const Blob& card_pin) = 0; - virtual bool ExistProfile(bool& is_pkcs15, bool& requires_adminpin) = 0; - virtual void CreateProfile(TIData& data, ProfileType profile_type) = 0; - virtual void FinalizeProfile(TIData& data) = 0; - - virtual void PinChangeReminder(TIData& data, bool enable) = 0; - }; - -} // namespace act - -#endif // ACT_ITokenInitializer_h diff --git a/actlibrary/Ubuntu-9-i686/Release/include/actITokenKey.h b/actlibrary/Ubuntu-9-i686/Release/include/actITokenKey.h deleted file mode 100644 index 47e21bb..0000000 --- a/actlibrary/Ubuntu-9-i686/Release/include/actITokenKey.h +++ /dev/null @@ -1,64 +0,0 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actITokenKey.h -// Product: cv act library -// Purpose: The interface ITokenKey enables access to a key stored in a secure token. -// -// Copyright: (c) 2003 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_ITokenKey_h -#define ACT_ITokenKey_h - -#include "actIRefCounted.h" -#include "actISignatureKey.h" -#include "actITokenAuthOwner.h" -#include "actITokenFileOwner.h" - -#include "actTokenBase.h" - -namespace act -{ - class IToken; - class ITokenConfig; - - // - // ITokenKeyIterator - class ITokenKeyIterator : public IRefCounted - { - public: - virtual void Reset(ITokenFile* parent = 0) = 0; - virtual IKey* Next() = 0; - }; - - // - // ITokenKey - class ITokenKey - : public ISignatureKey - , public ITokenAuthOwner - , public ITokenFileOwner - { - public: - virtual ITokenKey* Clone() const = 0; - - virtual KeyType GetType() const = 0; - virtual IToken* GetToken() const = 0; - virtual const char* GetName() const = 0; - virtual void Configure(ITokenConfig* tkcfg) = 0; - - virtual Blob GetCertificate() const = 0; - virtual IKey* GetPublicKey() const = 0; - - virtual void VerifyPin(const Blob& pin) = 0; - - virtual Blob GetID() const = 0; - virtual Blob GetSubject() const = 0; - - virtual ITokenKeyIterator* Iterator(KeyType type, const Blob& authId = Blob()) const = 0; - }; - -} // namespace act - -#endif // ACT_ITokenKey_h diff --git a/actlibrary/Ubuntu-9-i686/Release/include/actITokenPIN.h b/actlibrary/Ubuntu-9-i686/Release/include/actITokenPIN.h deleted file mode 100644 index 3da8440..0000000 --- a/actlibrary/Ubuntu-9-i686/Release/include/actITokenPIN.h +++ /dev/null @@ -1,221 +0,0 @@ -// --------------------------------------------------------------------------- -// Name: actITokenPIN.h -// Product: cv act library -// Purpose: The class ITokenPIN defines the interfaces of the PIN operations -// -// Copyright: (c) 2002 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -// -// Autor: Dr. Xiangdong Wang (XWG) -// Date: 04/05/2002 -// --------------------------------------------------------------------------- - -#ifndef ACT_ITokenPIN_h -#define ACT_ITokenPIN_h - -#include "actBasics.h" -#include "actDate.h" -#include "actBlob.h" - -#include "actITokenAuth.h" -#include "actITokenFileOwner.h" -#include "actIRefCounted.h" - -#include "actTokenBase.h" - -namespace act -{ - enum PINType - { - UNKNOWN_PIN = 0x0000, - SO_PIN = 0x0001, - USER_PIN = 0x0002, - UNBLOCK_PIN = 0x0003, - - PIN_MASK = 0x000F, - - EXAUTH_PIN = 0x0010, - BIOMETRIC_PIN = 0x0020, - CERTBASED_PIN = 0x0040, - - BAC_PIN = 0x0100, - ICAO_PIN = 0x0200, - - EAC_PACE_PIN = 0x0400, - EAC_TA_PIN = 0x0800, - EAC_CA_PIN = 0x1000, - - PIN_TYPE_MASK = 0x7fff, - - AUTHENTICATED_PIN = 0x8000, // Current authenticated PIN - - // combined types - EXAUTH_SO_PIN = EXAUTH_PIN | SO_PIN, - EXAUTH_UNBLOCK_PIN = EXAUTH_PIN | UNBLOCK_PIN, - - BIOMETRIC_USER_PIN = BIOMETRIC_PIN | USER_PIN, - BIOMETRIC_SO_PIN = BIOMETRIC_PIN | SO_PIN, - - EAC_PACE_UNKNOWN_PIN = EAC_PACE_PIN | UNKNOWN_PIN, - EAC_PACE_SO_PIN = EAC_PACE_PIN | SO_PIN, - EAC_PACE_USER_PIN = EAC_PACE_PIN | USER_PIN, - EAC_PACE_UNBLOCK_PIN = EAC_PACE_PIN | UNBLOCK_PIN, - - EAC_TA_UNKNOWN_PIN = EAC_TA_PIN | UNKNOWN_PIN, - EAC_TA_USER_PIN = EAC_TA_PIN | USER_PIN, - - EAC_CA_UNKNOWN_PIN = EAC_CA_PIN | UNKNOWN_PIN, - EAC_CA_USER_PIN = EAC_CA_PIN | USER_PIN, - }; - - enum PINFlags - { - PIN_INITIALIZED = (1 << 0), - PIN_IS_LOCAL = (1 << 1), - PIN_CASE_SENSITIVE = (1 << 2), - PIN_CHANGE_DISABLED = (1 << 3), - PIN_UNBLOCK_DISABLED = (1 << 4), - PIN_DISABLE_ALLOWED = (1 << 5), - PIN_NEEDS_PADDING = (1 << 6), - PIN_NEEDS_UPDATE = (1 << 7), - PIN_REQUIRES_SM = (1 << 8), - PIN_REQUIRES_NO_DATA = (1 << 9), - PIN_REQUIRES_ENCRYPTION = (1 << 10), - PIN_CHANGE_REQUIRES_OLD = (1 << 11), - PIN_IS_DEFAULT = (1 << 12), // marks the one and only default pin - - PIN_FLAGS_MASK = (1 << 13) - 1, - - // combined flags - PIN_FLAGS = PIN_INITIALIZED | PIN_IS_LOCAL | PIN_CASE_SENSITIVE, - PIN_FLAGS_DEFAULT = PIN_IS_DEFAULT | PIN_FLAGS, - PIN_FLAGS_SO = PIN_INITIALIZED | PIN_IS_LOCAL | PIN_CASE_SENSITIVE | PIN_UNBLOCK_DISABLED, - PIN_FLAGS_EXAUTH = PIN_INITIALIZED | PIN_IS_LOCAL, - PIN_FLAGS_BIOMETRIC = PIN_INITIALIZED | PIN_IS_LOCAL, - PIN_FLAGS_CERTBASED = PIN_INITIALIZED | PIN_IS_LOCAL | PIN_REQUIRES_NO_DATA | PIN_CHANGE_DISABLED | PIN_UNBLOCK_DISABLED, - }; - - enum AuthDataEncoding - { - PIN_ENCODING_UNKNOWN = -1, - PIN_ENCODING_BINARY = 0, - PIN_ENCODING_ASCII_NUMERIC, - PIN_ENCODING_UTF8, - PIN_ENCODING_BCD, - PIN_ENCODING_HALF_NIBBLE_BCD, - PIN_ENCODING_ISO9564_1, - - PIN_ENCODING = PIN_ENCODING_ASCII_NUMERIC, - }; - - enum AuthId - { - AUTHID_INVALID = 0x00, - }; - - enum BioFinger - { - FINGER_UNKNOWN = 0, - FINGER_RIGHT_THUMB = 1, - FINGER_RIGHT_INDEX = 2, - FINGER_RIGHT_MIDDLE = 3, - FINGER_RIGHT_RING = 4, - FINGER_RIGHT_LITTLE = 5, - FINGER_LEFT_THUMB = 6, - FINGER_LEFT_INDEX = 7, - FINGER_LEFT_MIDDLE = 8, - FINGER_LEFT_RING = 9, - FINGER_LEFT_LITTLE = 10 - }; - - class IAuthIdRef; - class ITokenFile; - class IToken; - class ISCardOS; - class AuthInfo; - - // - // ITokenPIN - class ITokenPIN - : public IRefCounted - , public ITokenFileOwner - { - public: - virtual ITokenPIN* Clone() const = 0; - virtual bool Equals(const ITokenPIN* other) const = 0; - virtual int Compare(const ITokenPIN* other) const = 0; - - virtual int GetType() const = 0; - virtual int GetUsage() const = 0; - virtual byte GetObjRef() const = 0; - virtual IToken* GetToken() const = 0; - virtual const char* GetName() const = 0; - virtual AuthDataEncoding GetEncoding() const = 0; - - virtual const AuthInfo* GetInfo() const = 0; - virtual void SetInfo(const AuthInfo* ai) = 0; - - virtual void SetDefault(bool is_default) = 0; - virtual bool IsDefault() const = 0; - - virtual bool IsInitialized() const = 0; - virtual bool IsAuthenticated() const = 0; - - virtual bool NeedsUpdate() const = 0; - virtual bool NeedsPINValue() const = 0; - - virtual bool GetLengthInfo(LengthInfo& info) const = 0; - virtual bool CheckPinLength(const Blob& pin) const = 0; - virtual bool GetLastChange(Date& date, bool& supported) const = 0; - - virtual void VerifyPin(const Blob& pin) = 0; - - // NOTE: ChangePin preserves the authentication state if successfull - // TODO: MTE: Describe in detail! - virtual void ChangePin(const Blob& oldpin, const Blob& newpin) = 0; - - // NOTE: UnlockPin preserves the authentication state if successfull - // TODO: MTE: Describe in detail! - virtual void UnlockPin(ITokenPIN* so, const Blob& pin, const Blob& newpin) = 0; - - // NOTE: SetPinValue preserves the authentication state if successfull - // TODO: MTE: Describe in detail! - virtual void SetPinValue(ITokenPIN* so, const Blob& so_pin, const Blob& newpin) = 0; - - virtual void Select(ISCardOS* os = 0) const = 0; - - virtual ITokenPIN* GetParent() const = 0; - - virtual IAuthIdRef* GetAuthIdRef() const = 0; - virtual IAuthIdRef* GetParentAuthIdRef() const = 0; - - // Bio extensions - virtual byte GetFinger() const = 0; - virtual bool GetBioHeader(Blob& bioheader) = 0; - - // ExternalAuth Key extensions - virtual Blob GetChallenge() const = 0; - virtual void ResetChallenge() = 0; - virtual Blob ComputeResponse(const Blob& auth_key, const Blob& challenge) const = 0; - - // Certificate based authentication extensions - virtual void SetCHAT(const Blob& chat) = 0; - virtual void SetCHAT(move_from chat) = 0; - virtual Blob GetCHAT() const = 0; - - protected: - // SCard Functionality - virtual Blob doGetChallenge() const = 0; - virtual void doResetChallenge() const = 0; - virtual void doVerify(const Blob& pin) const = 0; - virtual SecStatus doGetSecurityStatus(Blob& context) const = 0; - - private: - friend class TokenAuth; - }; - -} // namespace act - -#endif // ACT_ITokenPIN_h diff --git a/actlibrary/Ubuntu-9-i686/Release/include/actIX509CRL.h b/actlibrary/Ubuntu-9-i686/Release/include/actIX509CRL.h deleted file mode 100644 index 750ddd6..0000000 --- a/actlibrary/Ubuntu-9-i686/Release/include/actIX509CRL.h +++ /dev/null @@ -1,48 +0,0 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actIX509CRL.h -// Product: cv act library -// Purpose: -// -// Copyright: (c) 2000 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_IX509CRL_h -#define ACT_IX509CRL_h -#include "actICRL.h" -#include "actX509Extension.h" - -namespace act -{ - - class IX509CRL: public ICRL - { - public: - virtual void SetThisUpdate(const Date &date )=0; - virtual void SetNextUpdate(const Date &date )=0; - virtual void GetThisUpdate(Date &date ) const=0; - virtual void GetNextUpdate(Date &date ) const=0; - - virtual X509Extension GetExtension(const char* oid) const=0; - virtual X509Extension GetExtension(const act::Blob& oidbl) const=0; - virtual void SetExtension(const X509Extension &ext)=0; - virtual X509Extension GetNextExtension(const X509Extension& ext) const=0; - virtual void RemoveExtension(const char* oid)=0; - - virtual Blob GetNextEntry(const Blob& certsernr) const=0; - - virtual void SetEntryRevocationDate(const Blob& certsn, const Date &vnbefore )=0; - virtual void GetEntryRevocationDate(const Blob& certsn, Date &vnbefore ) const=0; - - virtual X509Extension GetEntryExtension(const Blob& certsn, const char* oid) const=0; - virtual void SetEntryExtension(const Blob& certsn, const X509Extension &ext)=0; - virtual X509Extension GetNextEntryExtension(const Blob& certsn,const X509Extension& ext) const=0; - virtual void RemoveEntryExtension(const Blob& certsn,const char* oid)=0; - - }; -} // namespace act - -#endif - diff --git a/actlibrary/Ubuntu-9-i686/Release/include/actIX509Certificate.h b/actlibrary/Ubuntu-9-i686/Release/include/actIX509Certificate.h deleted file mode 100644 index 85d6907..0000000 --- a/actlibrary/Ubuntu-9-i686/Release/include/actIX509Certificate.h +++ /dev/null @@ -1,46 +0,0 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actIX509Certificate.h -// Product: cv act library -// Purpose: The abstract class IX509Certificate enables access to a certificate, -// e.g. its public key and the corresponding validity. -// -// Copyright: (c) 2000 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_IX509Certificate_h -#define ACT_IX509Certificate_h - -#include "actBasics.h" -#include "actDate.h" -#include "actICertificate.h" -#include "actX509Extension.h" - -namespace act -{ - class IKey; - class Blob; - - class IX509Certificate : public ICertificate - { - public: - - virtual void SetValidityNotBefore(const Date &vnbefore ) =0; - virtual void SetValidityNotAfter(const Date &vnafter ) =0; - virtual void GetValidityNotBefore(Date &vnbefore ) const =0; - virtual void GetValidityNotAfter(Date &vnafter ) const =0; - - virtual bool CheckValidity(const Date& date = Date() ) const =0; - - virtual X509Extension GetExtension(const char* oid) const=0; - virtual X509Extension GetExtension(const act::Blob& oidbl) const=0; - virtual void SetExtension(const X509Extension &ext)=0; - virtual X509Extension GetNextExtension(const X509Extension& ext) const=0; - virtual void RemoveExtension(const char* oid)=0; - }; -} // namespace act - -#endif - diff --git a/actlibrary/Ubuntu-9-i686/Release/include/actInit.h b/actlibrary/Ubuntu-9-i686/Release/include/actInit.h deleted file mode 100644 index 36f0099..0000000 --- a/actlibrary/Ubuntu-9-i686/Release/include/actInit.h +++ /dev/null @@ -1,578 +0,0 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actInit.h -// Product: cv act library -// Purpose: initialize the map entries of the objects -// -// Copyright: (c) 2007 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -// remarks: -// declare NO_SMARTCARD: no smartcard support required. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef actInit_h -#define actInit_h - -#include "actEnv.h" -#include "actKeyKit.h" -#include "actKeyReg.h" -#include "actBlockCipherKit.h" -#include "actBlockCipherReg.h" -#include "actBlockCipherModeReg.h" -#include "actBlockCipherModeKit.h" -#include "actStreamCipherKit.h" -#include "actStreamCipherReg.h" -#include "actHashKit.h" -#include "actHashReg.h" -#include "actEMSAReg.h" -#include "actEMSAKit.h" -#include "actDerivatorReg.h" -#include "actDerivatorKit.h" -#include "actPaddingReg.h" -#include "actPaddingKit.h" -#include "actCertificateReg.h" -#include "actCertificateKit.h" -#include "actX509KeyReg.h" -#include "actX509SignReg.h" -#include "actX509SignHashReg.h" -#include "actX509Kit.h" -#include "actDefaultRNG.h" -#include "actRNGKit.h" - -#ifndef NO_SMARTCARD -// NOTE: To Enable support for additional smartcards / profiles define: -// ACT_SUPPORT_TCOS_NETKEY30 -# include "actSCardOSReg.h" -# include "actSCardOSKit.h" -# include "actSCardTokenReg.h" -# include "actSCardTokenKit.h" -# include "actSubsystemReg.h" -# include "actSubsystemKit.h" -# include "actSlotMonitorReg.h" -# include "actSlotMonitorKit.h" -# include "actTokenExtensionReg.h" -# include "actTokenExtensionKit.h" -# include "actTokenAuthProtocolReg.h" -# include "actTokenAuthProtocolKit.h" -# include "actJCAppletKit.h" -# include "actJCAppletReg.h" -# include "actPKCS15BehaviorReg.h" -# include "actPKCS15BehaviorKit.h" -# include "actProfileGeneratorReg.h" -# include "actProfileGeneratorKit.h" -#endif // NO_SMARTCARD - -namespace act -{ - // ------------------------------------------------------------------------ - const KeyMapEntry KeyMap[] = - { - { "BlockCipher", CreateBlockCipherKey }, - { "StreamCipher", CreateStreamCipherKey }, - - { "IES", CreateIESKey }, - { "DSA", CreateDSAKey }, - { "RSA", CreateRSAKey }, - { "ECDSA", CreateECDSAKey }, - { "ECGDSA", CreateECGDSAKey }, - - { "DH", CreateDHKey }, - { "ECDH", CreateECDHKey }, - - { "HashMAC", CreateHashMACKey }, - { "CBCMAC", CreateCBCMACKey }, - { "SecretKeyMAC", CreateSecretKeyMACKey }, - { "RetailCFBMAC", CreateRetailCFBMACKey }, - { "iMAC3", Create_iMAC3Key }, // ISO9797-1 M2 Alg 3 MAC8 - { "CMAC", CreateCMACKey }, // NIST 800-38B CMAC - { 0, 0 } - }; - - // ------------------------------------------------------------------------ - const BlockCipherMapEntry BlockCipherMap[] = - { - { "AES", CreateRijndael }, - { "DES", CreateDES }, - { "TripleDES", CreateTripleDES }, - { "CAST128", CreateCAST128 }, - { "BlowFish", CreateBlowFish }, - { "Mars", CreateMars }, - { "Serpent", CreateSerpent }, - { "Rijndael", CreateRijndael }, - { "TwoFish", CreateTwoFish }, - { "RC2", CreateRC2 }, - //{ "RC6", CreateRC6 }, - { 0, 0 } - }; - - // ------------------------------------------------------------------------ - const BlockCipherModeMapEntry BlockCipherModeMap[] = - { - { "ECB", CreateECBMode }, - { "CBC", CreateCBCMode }, - { "CFB", CreateCFBMode }, - { "OFB", CreateOFBMode }, - { "CTR", CreateCTRMode }, - { 0, 0 } - }; - - // ------------------------------------------------------------------------ - const StreamCipherMapEntry StreamCipherMap[] = - { - { "ARC4", CreateARC4 }, - { 0, 0 } - }; - - // ------------------------------------------------------------------------ - const HashMapEntry HashMap[] = - { - { "MD2", CreateMD2 }, - { "MD4", CreateMD4 }, - { "MD5", CreateMD5 }, - { "RIPEMD128", CreateRipemd128 }, - { "RIPEMD160", CreateRipemd160 }, - { "SHA0", CreateSHA0 }, - { "SHA1", CreateSHA1 }, - { "SHA224", CreateSHA224 }, - { "SHA256", CreateSHA256 }, - { "SHA384", CreateSHA384 }, - { "SHA512", CreateSHA512 }, - { "DummyHash", CreateDummyHash }, - { 0, 0 } - }; - - // ------------------------------------------------------------------------ - const EMSAMapEntry EMSAMap[] = - { - { "EMSA1", CreateEMSA1 }, - { "PKCS1V1_5EMSA", CreatePKCS1V1_5EMSA }, - { "TLS_EMSA", CreateTLS_EMSA}, - { "PKCS1_PSS_EMSA", CreatePKCS1_PSS_EMSA }, - { "DummyEMSA", CreateDummyEMSA }, // Used for "Hash on Card" - { 0, 0 } - }; - - // ------------------------------------------------------------------------ - const DerivatorMapEntry DerivatorMap[] = - { - { "KDF1", CreateKDF1 }, // IEEE P1363 KDF1 - { "KDF2", CreateX963KDF }, // IEEE P1363 KDF2 (= X963KDF) - { "X963KDF", CreateX963KDF }, // ANSI X9.63 KDF - { "PBKDF1", CreatePBKDF1 }, // PKCS#5 PBKDF1 - { "PBKDF2", CreatePBKDF2 }, // PKCS#5 PBKDF2 - { "EACKDF", CreateEACKDF }, // EAC 2.01, BSI TR-03110 A.2.3 - { "SessionKDF", CreateEACKDF }, // BSI TR-03111 (= EACKDF) - { 0, 0 } - }; - - // ------------------------------------------------------------------------ - const PaddingMapEntry PaddingMap[] = - { - { "PKCS5", CreatePKCS5Pad }, - { "RSAES", CreatePKCS1V1_5EMEPad }, - { "ISO", CreateOneAndZerosPad }, - { "ISO9796", CreateISO9796Pad }, - { "NOPAD", CreateNoPad }, - { 0, 0 } - }; - - // ------------------------------------------------------------------------ - const CertificateMapEntry CertificateMap[] = - { - { "X509", CreateX509Certificate }, - { "CV", CreateCVCertificate }, - { 0, 0 } - }; - - // ------------------------------------------------------------------------ - const CRLMapEntry CRLMap[] = - { - { "X509", CreateX509CRL }, - { 0, 0 } - }; - - // ------------------------------------------------------------------------ - const X509KeyMapEntry X509KeyMap[] = - { - { "1.2.840.113549.1.1.1", CreateRSAKey, X509ToRSA, RSAToX509 }, - { "2.5.8.1.1", CreateRSAKey, X509ToRSA, RSAToX509 }, - { "1.2.840.10040.4.1", CreateDSAKey, X509ToDSA, DSAToX509 }, - { "1.3.14.3.2.20", CreateDSAKey, X509ToDSA, DSAToX509 }, - { "1.3.14.3.2.12", CreateDSAKey, X509ToDSA, DSAToX509 }, // secude DSA oid - { "1.2.840.10046.2.1", CreateDHKey, X509ToDH, DHToX509 }, - { "1.2.840.10045.2.1", CreateECDSAKey, X509ToECDSA, ECDSAToX509 }, - { "1.2.840.10045.2.1", CreateECDHKey, X509ToECDSA, ECDSAToX509 }, - { 0, 0, 0, 0 } - }; - - // ------------------------------------------------------------------------ - const X509SignMapEntry X509SignMap[] = - { - { CreateRSAKey, RSAGetAlgID, RSASetAlgID }, - { CreateDSAKey, DSAGetAlgID, DSASetAlgID }, - { CreateECDSAKey, ECDSAGetAlgID, ECDSASetAlgID }, - { CreateDHKey, DHGetAlgID, DHSetAlgID }, - { CreateECDHKey, ECDHGetAlgID, ECDHSetAlgID }, - { 0, 0, 0 } - }; - - // ------------------------------------------------------------------------ - const X509SignHashMapEntry X509SignHashMap[] = - { - // RSA - { "1.2.840.113549.1.1.2", "MD2", "RSA" }, // md2WithRSAEncryption - { "1.2.840.113549.1.1.3", "MD4", "RSA" }, // md4WithRSAEncryption - { "1.2.840.113549.1.1.4", "MD5", "RSA" }, // md5WithRSAEncryption - { "1.2.840.113549.1.1.5", "SHA1", "RSA" }, // shaWithRSAEncryption - { "1.3.14.3.2.29", "SHA1", "RSA" }, - { "1.2.840.113549.1.1.11", "SHA256", "RSA" }, // sha256WithRSAEncryption - { "1.2.840.113549.1.1.12", "SHA384", "RSA" }, // sha384WithRSAEncryption - { "1.2.840.113549.1.1.13", "SHA512", "RSA" }, // sha512WithRSAEncryption - { "1.2.840.113549.1.1.14", "SHA224", "RSA" }, // sha224WithRSAEncryption - { "1.3.36.3.3.1.2", "RIPEMD160", "RSA" }, - { "1.3.36.3.3.1.3", "RIPEMD128", "RSA" }, - // DSA - { "1.2.840.10040.4.3", "SHA1", "DSA" }, - { "1.3.14.3.2.28", "SHA1", "DSA" }, - { "1.3.14.3.2.27", "SHA1", "DSA" }, // secude DSA oid - // ECDSA - { "1.2.840.10045.4.1", "SHA1", "ECDSA" }, // ecdsa-with-Sha1 - { "1.2.840.10045.2.1", "SHA1", "ECDSA" }, // ecdsa-with-Sha1 (deprecated) - { "1.2.840.10045.4.3.1", "SHA224", "ECDSA" }, // ecdsa-with-Sha224 - { "1.2.840.10045.4.3.2", "SHA256", "ECDSA" }, // ecdsa-with-Sha256 - { "1.2.840.10045.4.3.3", "SHA384", "ECDSA" }, // ecdsa-with-Sha384 - { "1.2.840.10045.4.3.4", "SHA512", "ECDSA" }, // ecdsa-with-Sha512 - // DH - { "1.3.6.1.5.5.7.6.4", "SHA1", "DH" }, // DH-POP - // ECDH - { "1.2.840.10045.2.1", "SHA1", "ECDH" }, // "ECDH-POP" - { 0, 0, 0 } - }; - -#ifndef NO_SMARTCARD - // ------------------------------------------------------------------------ - const SCardOSMapEntry SCardOSMap[] = - { - // NOTE: Only lower case historical bytes ! - /* - { "0064050a020131809000", CreateTCOS }, // NetKey (TCOS V2R1) - { "00640560020331809000", CreateTCOS }, // NetKey (TCOS V2R3) - { "0064057b020331809000", CreateTCOS }, // NetKey (TCOS V2R?) - { "00640514020231809000", CreateTCOS }, // etrust (TCOS V2R2) - { "00640561020331809000", CreateTCOS }, // TCOS USB Crypt Token - { "0068d276000028ff051e3180009000", CreateMicardOS }, // Micardo P2.1 - { "4d4943323045", CreateMicardo20E }, // Micardo EC 2.0 - { "0068d276000028ff05233180009000", CreateMicardo23E }, // Micardo EC 2.3 - */ - - // ACOS - { "454d56203033202006", CreateACOS_D01 }, // Austria Card ACOS EMV-D01 - { "44492030324d", CreateACOS_D01 }, // Austria Card ACOS EMV-D01 contactless - { "455041000000000228505900000000", CreateACOS_A04 }, // Austria Card ACOS EMV-A04/A05 - { "455041000000000000000000000000", CreateACOS_A04 }, // Austria Card ACOS EMV-A04/A05 - - // CardOS - { "c802", CreateCardOS_M4 }, // CardOS M4.0 siemens profile - { "c803", CreateCardOS_M4 }, // CardOS M4.01 siemens profile - { "c804", CreateCardOS_M4 }, // CardOS M4.01a siemens profile - { "4d346376", CreateCardOS_M4 }, // CardOS M4.01(a) cv profile - { "4d3463765f4d", CreateCardOS_M4_MoC }, // CardOS M4.01_M cv profile - { "4d3463765f45", CreateCardOS_M4_ECC }, // CardOS M4.01_E cv profile - { "c806", CreateCardOS_V4 }, // CardOS V4.2 - { "c807", CreateCardOS_V4 }, // CardOS V4.3 - { "c808", CreateCardOS_V4 }, // CardOS V4.3B - { "c809", CreateCardOS_V4 }, // CardOS V4.2B - { "c80a", CreateCardOS_V4 }, // CardOS V4.2B DI - { "0000c80a3381b100", CreateCardOS_V4 }, // CardOS V4.2B DI contactless - { "c80b", CreateCardOS_V4 }, // CardOS V4.2C - { "c80d", CreateCardOS_V4 }, // CardOS V4.4 - { "56346376", CreateCardOS_V4 }, // CardOS V4.2/4.3/4.3B cv profile - { "563432626376", CreateCardOS_V4 }, // CardOS V4.2b cv profile - { "5634326244496376", CreateCardOS_V4 }, // CardOS V4.2b DI cv profile - { "563432636376", CreateCardOS_V4 }, // CardOS V4.2c cv profile - { "5634346376", CreateCardOS_V4 }, // CardOS V4.4 cv profile - { "563463765f45", CreateCardOS_V4_ECC }, // CardOS V4.3B ECC cv profile - { "006b0508c806012101434e53103180", CreateCardOS_V4 }, // CardOS V4.2 CNS profile, 2004.02.20 - { "006b0508c807012101434e53103180", CreateCardOS_V4 }, // CardOS V4.3 CNS profile, 2004.02.20 - { "006b0508c808012101434e53103180", CreateCardOS_V4 }, // CardOS V4.3B CNS profile, 2004.02.20 - { "006b0508c806011101434e53103180", CreateCardOS_V4 }, // CardOS V4.2 CNS profile, 2005.03.11 - { "006b0508c807011101434e53103180", CreateCardOS_V4 }, // CardOS V4.3 CNS profile, 2005.03.11 - { "006b0508c808011101434e53103180", CreateCardOS_V4 }, // CardOS V4.3B CNS profile, 2005.03.11 - { "006b0508c808011101434e53103180", CreateCardOS_V4 }, // CardOS V4.3B CNS profile, 2005.03.11 - { "4b53776973735369676e", CreateCardOS_V4 }, // CardOS V4.3B/V4.4 ATR by SwissSign - - // STARCOS - //{ "53504b32339000", CreateStarCOS_3_0}, // G&D STARCOS SPK 2.3 - { "80670412b0030300008101", CreateStarCOS_3_0 }, // G&D STARCOS 3.0 (creational state) - { "80670412b0030300008105", CreateStarCOS_3_0 }, // G&D STARCOS 3.0 - { "80670412b003030000", CreateStarCOS_3_0 }, // G&D STARCOS 3.0 contactless - { "80655343010d067394211b8101", CreateStarCOS_3_0 }, // G&D STARCOS 3.1 (creational state) - { "80655343010d067394211b8105", CreateStarCOS_3_0 }, // G&D STARCOS 3.1 - { "0064051eb20031b0739621db019000", CreateStarCOS_3_2 }, // G&D STARCOS 3.2 (creational state) - { "0064051eb20031b0739621db059000", CreateStarCOS_3_2 }, // G&D STARCOS 3.2 - - // TCOS -#ifdef ACT_SUPPORT_TCOS_NETKEY30 - { "00640411030131c073f701d0009000", CreateTCOS_3_0 }, // NetKey (TCOS 3.0) -#endif - // JavaCards - { "8073002113574a544861314a00", CreateJavaCardOS_2_2 }, // G&D SmartCafe Expert 64 (cfg1) - { "8073002113574a544861314700", CreateJavaCardOS_2_2 }, // G&D SmartCafe Expert 64 (cfg2) - { "8073002113574a544861314800", CreateJavaCardOS_2_2 }, // G&D SmartCafe Expert 64 (cfg3) - { "8073002113574a544861314b00", CreateJavaCardOS_2_2 }, // G&D SmartCafe Expert 64 (cfg4) - { "8073002113574a544861314c00", CreateJavaCardOS_2_2 }, // G&D SmartCafe Expert 64 (cfg5) - { "8073002113574a544861314900", CreateJavaCardOS_2_2 }, // G&D SmartCafe Expert 64 (cfg8) - { "404d4f504153530000000000000000", CreateJavaCardOS_2_2 }, // G&D SmartCafe Expert 64 (XMC2) - - { "534653452d43583332322d56180308", CreateJavaCardOS_2_1_1 },// G&D SmartCafe Expert 2.0 - { "0073c84013009000", CreateJavaCardOS_2_2_1 }, // G&D SmartCafe Expert 3.0 / 3.1 / 3.1 contactless - { "4138004133b1020073c840130090", CreateJavaCardOS_2_2_1 }, // G&D SmartCafe Expert 3.1 contactless (SCM SDI010, Firmware V6.28) - { "4138004133b10073c84013009000", CreateJavaCardOS_2_2_1 }, // G&D SmartCafe Expert 3.1 contactless (SCM SDI010, Firmware V6.32) - { "73667465206364313434", CreateJavaCardOS_2_2_1 }, // G&D SmartCafe Expert 3.2 PIV 144 KB - { "736674652D6364303830", CreateJavaCardOS_2_2_1 }, // G&D SmartCafe Expert 3.2 PIV 80 KB - { "73667465", CreateJavaCardOS_2_2_1 }, // G&D SmartCafe Expert 3.2 (sfte) - { "736674652d6e66", CreateJavaCardOS_2_2_1 }, // G&D SmartCafe Expert 3.2 (sfte-nf) - { "73c840130090009b", CreateJavaCardOS_2_2_1 }, // G&D SmartCafe Expert 3.2 USB Token - { "736674652063643038302d6e66", CreateJavaCardOS_2_2_1 }, // G&D SmartCafe Expert 3.2 (sfte cd080-nf) - { "53462d3443432d3031", CreateJavaCardOS_2_2_1 }, // G&D SmartCafe Expert 5.0 - { "53504b323544499000", CreateJavaCardOS_2_2_1 }, // G&D Mobile Security Card 3.x - { "4d5343", CreateJavaCardOS_2_2_1 }, // G&D Mobile Security Card 3.x - - //{ "4a434f503230", CreateJavaCardOS_2_1 }, // JCOP 20 - { "4a434f503231563232", CreateJavaCardOS_2_2_1 }, // JCOP 21 V2.2 - { "4a434f50323156323331", CreateJavaCardOS_2_2_1 }, // JCOP 21 V2.3.1 - { "4a434f503331563231", CreateJavaCardOS_2_1 }, // JCOP 31 V2.1 - { "4a434f503331563232", CreateJavaCardOS_2_2_1 }, // JCOP 31 V2.2 - { "4a434f50333156323331", CreateJavaCardOS_2_2_1 }, // JCOP 31 V2.3.1 - { "4a434f503331563234", CreateJavaCardOS_2_2_1 }, // JCOP 31 V2.4 - //{ "4a434f5033313336474454", CreateJavaCardOS_2_2_1 }, // JCOP 31 36GDT - { "4a434f503431563232", CreateJavaCardOS_2_2_1 }, // JCOP 41 V2.2 / V2.2 contactless - { "4128001133b04a434f5034315632", CreateJavaCardOS_2_2_1 }, // JCOP 41 V2.2 contactless (SCM SDI010, Firmware V6.32) - { "4a434f50343156323231", CreateJavaCardOS_2_2_1 }, // JCOP 41 V2.2.1 - { "4138001133b04a434f5034315632", CreateJavaCardOS_2_2_1 }, // JCOP 41 V2.2.1 contactless - { "4a434f50343156323331", CreateJavaCardOS_2_2_1 }, // JCOP 41 V2.3.1 - { "4a434f50343156323332", CreateJavaCardOS_2_2_1 }, // JCOP 41 V2.3.2 - { "4a434f503431563234", CreateJavaCardOS_2_2_1 }, // JCOP 41 V2.4 - { "4a434f5076323431", CreateJavaCardOS_2_2_2 }, // JCOP v2.4.1 - { "434f50343156323231ff", CreateJavaCardOS_2_2_1 }, // JCOP 41 V2.2.1 (IDptoken 200) - { "4a434f507632343262657461", CreateJavaCardOS_2_2_2 }, // JCOP v2.4.2 beta - { "0073c84000009000", CreateJavaCardOS_2_2_1 }, // JCOP V2.3.2 - - { "4a434f50563231", CreateJavaCardOS_2_1 }, // JCOP V2.1 - { "4a434f50563232", CreateJavaCardOS_2_2_1 }, // JCOP V2.2 - { "4a434f5056323231", CreateJavaCardOS_2_2_1 }, // JCOP V2.2.1 - { "4a434f50563233", CreateJavaCardOS_2_2_1 }, // JCOP V2.3 - { "4a434f5056323331", CreateJavaCardOS_2_2_1 }, // JCOP V2.3.1 - { "4a434f5056323332", CreateJavaCardOS_2_2_1 }, // JCOP V2.3.2 - { "4a434f50563234", CreateJavaCardOS_2_2_1 }, // JCOP V2.4 - { "4a434f5056323431", CreateJavaCardOS_2_2_2 }, // JCOP V2.4.1 - { "4a434f5056323432", CreateJavaCardOS_2_2_2 }, // JCOP V2.4.2 - - { "4a434f5033314d34", CreateJavaCardOS_2_2_1 }, // Austriacard JCOP31M4 - { "4a434f5032315632325f", CreateJavaCardOS_2_2_1 }, // AustriaCard JCOP 21 V2.2, T0, T1 - { "4a434f5033315632325f", CreateJavaCardOS_2_2_1 }, // AustriaCard JCOP 31 V2.2, T0, T1 - { "4a434f5034315632345f", CreateJavaCardOS_2_2_1 }, // AustriaCard JCOP 41 V2.4, T0, T1 - { "4a434f50563234314143", CreateJavaCardOS_2_2_1 }, // AustriaCard JCOP V2.4.1, T0, T1 - - { "5257414e44415f4944", CreateJavaCardOS_2_2_1 }, // AustriaCard JCOP V2.4.1 'RWANDA_ID' - { "44654c61527565", CreateJavaCardOS_2_2_1 }, // AustriaCard JCOP V2.4.1 'DeLaRue' - - { "803180664090a4561b1183019000", CreateJavaCardOS_2_2_1 }, // Infineon jTOP 20ID - - { "80318065b0831148c883009000", CreateJavaCardOS_2_2_1 }, // Gemalto TOP IM GX4 - //{ "80318065b08301029083009000", CreateJavaCardOS_2_2_1 }, // Gemalto I-DENTITY CARD - { "8065b08301017483009000", CreateJavaCardOS_2_1_1 }, // Gemplus GemXpresso Pro R3 - { "8065b08301037483009000", CreateJavaCardOS_2_1_1 }, // Gemplus GemXpresso Pro R3 - //{ "8065a20101013d72d643", CreateJavaCardOS_2_1_1 }, // Gemplus GemXpresso Pro R3 E32 PK - - { "0031c06477e30300829000", CreateJavaCardOS_2_1_1 }, // Oberthur CosmopolIC 64K v5.2D - - { "8059017f4849444a43327300011b", CreateJavaCardOS_2_2_2 }, // HID Crescendo C700 (JC2s) ("Standard JavaCard, T0/1, Platform Default Packages") - { "804f0ca0000003060a001d00000000", CreateJavaCardOS_2_2_2 },// HID Crescendo C700 (JC2s) contactless - - { ACT_ISO7816OS_NAME, CreateISO7816OS }, // use act::ISO7816OS as fallback - { 0, 0 } - }; - - // ------------------------------------------------------------------------ - const SCardTokenMapEntry SCardTokenMap[] = - { - // Passport - { IsEPAProfile, CreateEPAProfile }, - - // PKCS#15 - { IsM4PKCS15Profile, CreateM4PKCS15Profile }, - { IsV4PKCS15ECProfile, CreateV4PKCS15ECProfile }, - { IsV4PKCS15Profile, CreateV4PKCS15Profile }, - { IsJCPKCS15ECProfile, CreateJCPKCS15ECProfile }, - { IsJCPKCS15Profile, CreateJCPKCS15Profile }, - { IsACOSPKCS15Profile, CreateACOSPKCS15Profile }, - { IsStarCOSPKCS15Profile, CreateStarCOSPKCS15Profile }, - - // ACOS - { IsACOScvProfile, CreateACOScvProfile }, - - // CardOS - { IsM4cvMoCProfile, CreateM4cvMoCProfile }, - { IsM4cvECProfile, CreateM4cvECProfile }, - { IsV4cvECProfile, CreateV4cvECProfile }, - { IsV4cvProfile, CreateV4cvProfile }, - { IsM4cvProfile, CreateM4cvProfile }, - // { IsV4CNSProfile, CreateV4CNSProfile }, - - // TCOS -#ifdef ACT_SUPPORT_TCOS_NETKEY30 - { IsNetKey30Token, CreateNetKey30Token }, -#endif - - // JavaCardOS - { IsJCProfile, CreateJCProfile }, - // { IsJavaCardAppletManager, CreateJavaCardAppletManager }, - - /* - { IsStarCOSToken, CreateStarCOSToken }, - { IsNetKey2000Token, CreateNetKey2000Token }, - { IsNetKeyE4Token, CreateNetKeyE4Token }, - { IsNetKeyPKSToken, CreateNetKeyPKSToken }, - { IsNetKeyOldToken, CreateNetKeyOldToken }, - { IseTrustToken, CreateeTrustToken }, - { IsMicardoECToken, CreateMicardoECToken }, - { IsM4SiemensProfile, CreateM4SiemensProfile }, - */ - { 0, 0 } - }; - - // ------------------------------------------------------------------------ - const ProfileGeneratorMapEntry ProfileGeneratorMap[] = - { - { "JavaCardOS", CreateJCPKCS15Generator }, - { 0, 0 } - }; - - // ------------------------------------------------------------------------ - const PKCS15BehaviorMapEntry PKCS15BehaviorMap[] = - { - { "cv cryptovision gmbh (c) v1.0j", CreateJCPKCS15Behavior }, - { "cv cryptovision gmbh (c) v1.0jEAC", CreateJCPKCS15mEACBehavior }, - { "cv cryptovision gmbh (c) v1.0n", CreateV4PKCS15Behavior }, - { "cv cryptovision gmbh (c) v1.0na", CreateACOSPKCS15Behavior }, - { "cv cryptovision gmbh (c) v1.0ns", CreateStarCOSPKCS15Behavior }, - { "A.E.T. Europe B.V.", CreateSafeSignBehavior }, - { "Giesecke&Devrient GmbH", CreateStarSignBehavior }, - { "D-TRUST GmbH (C)", CreateDTRUSTBehavior }, - { "Siemens AG (C)", CreateHiPathBehavior }, - { "Technology Nexus", CreateNexusBehavior }, - { "Volkswagen AG", CreateVWBehavior }, - { "", CreatePKCS15Behavior }, // default - { 0, 0 } - }; - - // ------------------------------------------------------------------------ - const TokenExtensionMapEntry TokenExtensionMap[] = - { - { "MDProfileExt", CreateMDProfileExt }, // Minidriver FS Profile Extension - -# if defined(ACT_WIN32) && !defined(ACT_MINGW) - { "EAC 2.01 TA", CreateEACTAwithCAPI }, - -# endif - { 0, 0 } - }; - - // ------------------------------------------------------------------------ - const TokenAuthProtocolMapEntry TokenAuthProtocolMap[] = - { - { "EAC 2.01 PACE", CreateTokenAuthPACE }, - { "EAC 2.01 TA", CreateTokenAuthTA }, - { "EAC 2.01 CA", CreateTokenAuthCA }, - { "BAC", CreateTokenAuthBAC }, - { 0, 0 } - }; - - // ------------------------------------------------------------------------ - const SubsystemMapEntry SubsystemMap[] = - { - { "PCSC", CreatePCSCSystem, CreatePCSCSystemEx }, - { "CTAPI", CreateCTAPISystem, 0 }, - { "PKCS11", CreatePKCS11System, 0 }, - -# if defined(ACT_WIN32) && !defined(ACT_MINGW) - { "CSP", CreateCSPSystem, 0 }, - -# endif - { 0, 0, 0 } - }; - - // ------------------------------------------------------------------------ - const SlotMonitorRegEntry SlotMonitorMap[] = - { - { "PCSC", { CreatePCSCSlotMonitor, CreatePCSCSystemSlotMonitor } }, - { "CTAPI", { CreateSlotMonitor, 0 } }, - { "PKCS11", { CreateSlotMonitor, 0 } }, - -# if defined(ACT_WIN32) && !defined(ACT_MINGW) - { "CSP", { CreateSlotMonitor, 0 } }, - -# endif - { 0, { 0, 0 } } - }; - - // ------------------------------------------------------------------------ - const JCardAppletEntry JCardAppletMap[] = - { - // AID if it is equal to 0 then all AID are able - // function returns true if the Applet can used - // creates an new applet - // number of PIN's Key's Certificate's - // if they are -1 then it will be checked - // if they are biger or equal to 0 they are const - { "D276000098C00000", IsJCProfileApplet, CreateJCProfileApplet, 1, 1, 0 }, - { 0, 0, 0, 0, 0, 0 } - }; -#endif // NO_SMARTCARD - - // ------------------------------------------------------------------------ - // Version: V1R4M4 - const char* GetVersion(); - - // ------------------------------------------------------------------------ - inline void Init(bool bAlwaysInit = false) - { - static bool loaded = false; - if(loaded == true && bAlwaysInit == false) - return; - - KeyReg::Insert(KeyMap); - BlockCipherReg::Insert(BlockCipherMap); - BlockCipherModeReg::Insert(BlockCipherModeMap); - StreamCipherReg::Insert(StreamCipherMap); - HashReg::Insert(HashMap); - EMSAReg::Insert(EMSAMap); - DerivatorReg::Insert(DerivatorMap); - PaddingReg::Insert(PaddingMap); - CertificateReg::Insert(CertificateMap); - CRLReg::Insert(CRLMap); - X509KeyReg::Insert(X509KeyMap); - X509SignReg::Insert(X509SignMap); - X509SignHashReg::Insert(X509SignHashMap); - -#ifndef NO_SMARTCARD - SubsystemReg::Insert(SubsystemMap); - SlotMonitorReg::Insert(SlotMonitorMap); - SCardOSReg::Insert(SCardOSMap); - SCardTokenReg::Insert(SCardTokenMap); - ProfileGeneratorReg::Insert(ProfileGeneratorMap); - PKCS15BehaviorReg::Insert(PKCS15BehaviorMap); - TokenExtensionReg::Insert(TokenExtensionMap); - TokenAuthProtocolReg::Insert(TokenAuthProtocolMap); - JCardAppletReg::Insert(JCardAppletMap); -#endif - CreateFastRNG = CreateFIPS186; - CreateStrongRNG = CreateBBS; - loaded = true; - } - -} // namespace act - -#endif // actInit_h diff --git a/actlibrary/Ubuntu-9-i686/Release/include/actJCAppletKit.h b/actlibrary/Ubuntu-9-i686/Release/include/actJCAppletKit.h deleted file mode 100644 index 0d48e6d..0000000 --- a/actlibrary/Ubuntu-9-i686/Release/include/actJCAppletKit.h +++ /dev/null @@ -1,30 +0,0 @@ -// --------------------------------------------------------------------------- -// Name: actAppletKit.h -// Product: cv act library -// Purpose: registry for factory functions to create JavaCard Applet -// -// Copyright: (c) 2002 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -// -// Autor: -// Date: 02/10/2003 -// --------------------------------------------------------------------------- - -#ifndef ACT_AppletKit_h -#define ACT_AppletKit_h - -#include "actBlob.h" - -namespace act -{ - class IToken; - class JavaCardOS; - - bool IsJCProfileApplet(JavaCardOS* os, const Blob& aid); - IToken* CreateJCProfileApplet(JavaCardOS* os, const Blob& aid); - -} // namespace act - -#endif // ACT_AppletKit_h diff --git a/actlibrary/Ubuntu-9-i686/Release/include/actJCAppletReg.h b/actlibrary/Ubuntu-9-i686/Release/include/actJCAppletReg.h deleted file mode 100644 index a8dfa8f..0000000 --- a/actlibrary/Ubuntu-9-i686/Release/include/actJCAppletReg.h +++ /dev/null @@ -1,62 +0,0 @@ -// --------------------------------------------------------------------------- -// Name: actAppletReg.h -// Product: cv act library -// Purpose: registry for factory functions to create JavaCardApplet object -// -// Copyright: (c) 2002 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -// -// Autor: -// Date: 02/10/2003 -// --------------------------------------------------------------------------- - -#ifndef ACT_AppletReg_h -#define ACT_AppletReg_h - -#ifdef _MSC_VER -#pragma warning (disable:4786) -#endif - -namespace act -{ - class JavaCardOS; - class IToken; - class Blob; - - typedef IToken* (*CreateJCardAppletPtr)(JavaCardOS*, const Blob& aid); - typedef bool (*CheckJCardAppletPtr)(JavaCardOS*, const Blob& aid); - - struct JCardAppletEntry - { - const char* hexid; - CheckJCardAppletPtr CheckPtr; - CreateJCardAppletPtr CreatePtr; - int keys; - int certs; - int auth_objs; - }; - - struct JCardAppletInfoEntry - { - int keys; - int certs; - int auth_objs; - }; - - class JCardAppletReg - { - public: - static IToken* CreateJCardApplet(JavaCardOS* os, const Blob& aid); - static JCardAppletInfoEntry GetJCardAppletInfo(JavaCardOS* os, const Blob& aid); - static bool IsJCardApplet(JavaCardOS* os, const Blob& aid); - - static void Insert(const JCardAppletEntry* entry); - static void Insert(const char* id, CheckJCardAppletPtr checkptr, CreateJCardAppletPtr createptr, - int keys = -1, int auth_objs = -1, int certs = -1); - }; - -} // namespace act - -#endif // ACT_AppletReg_h diff --git a/actlibrary/Ubuntu-9-i686/Release/include/actJCSecureChannelReg.h b/actlibrary/Ubuntu-9-i686/Release/include/actJCSecureChannelReg.h deleted file mode 100644 index 1eb4b32..0000000 --- a/actlibrary/Ubuntu-9-i686/Release/include/actJCSecureChannelReg.h +++ /dev/null @@ -1,43 +0,0 @@ -//----------------------------------------------------------------------------- -// Name: actJCSecureChannelReg.h -// Product: cv act library -// Purpose: -// -// Copyright: (c) 2003 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for use of this software are regulated -// in the cv act libary licence agreement. -// -// Autor: -// Data: 08.10.2003 15:53:14 -//----------------------------------------------------------------------------- - -#ifndef __ACTJCSECURECHANNELREG_H__ -#define __ACTJCSECURECHANNELREG_H__ - -namespace act -{ - class Blob; - - struct JCSecureChannelEntry { - const char* hexvalue; - }; - - - class JCardSecureChannelReg - { - public: - static Blob GetValue(int i); - static int GetNumber(); - - - static void Insert(const char* hexvalue); - static void Insert(const JCSecureChannelEntry* entry); - - }; - -} - - - -#endif //__ACTJCSECURECHANNELREG_H__ diff --git a/actlibrary/Ubuntu-9-i686/Release/include/actKey.h b/actlibrary/Ubuntu-9-i686/Release/include/actKey.h deleted file mode 100644 index 5030c0c..0000000 --- a/actlibrary/Ubuntu-9-i686/Release/include/actKey.h +++ /dev/null @@ -1,82 +0,0 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actKey.h -// Product: cv act library -// Purpose: The class Key manages information relevant to keys (e.g. -// domain parameters or the key itself). In the case of symmetric -// encryption only a (the) secret key is generated. In the case of -// of asymetric encryption a private and a public key are generated. -// This handle allows a universal approach for different families of -// algorithms. -// -// -// Copyright: (c) 2000 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_Key_h -#define ACT_Key_h - -#include "actBasics.h" -#include "actBlob.h" - -namespace act -{ - class IRNGAlg; - class IAlgorithm; - class IKey; - class ICertificate; - - class Key - { - public: - Key(); - Key(const Key& key); - Key(IKey* keyptr); - Key(const Blob& keyblob); - Key(const ICertificate* cert); - Key(const char* keytype); - - void Import(const Blob& keyblob); - void Export(Blob& keyblob, export_t type = DEFAULT) const; - - void SetParam(paramid_t id, const Blob& blob); - void SetParam(paramid_t id, int val); - void SetParam(paramid_t id, const char* cstr); - - int GetParam(paramid_t id) const; - void GetParam(paramid_t id, Blob& blob) const; - - void Generate(IAlgorithm* prng = 0); - void Derive(const Blob& data, const Blob& salt = Blob()); - - IAlgorithm* CreateAlgorithm(mode_t Mode) const; - IAlgorithm* CreateAlgorithm(mode_t Mode, const Blob& data) const; - - IKey* GetPointer(); - const IKey* GetPointer() const; - operator IKey*(); - operator const IKey*() const; - - IKey* ReleasePointer(); - - template - inline KeyTypeT* As() { return static_cast(GetPointer()); } - - template - inline const KeyTypeT* As() const { return static_cast(GetPointer()); } - - Key& operator=(const Key& key); - Key& Reset(IKey* key); - Key& Required(const char* where = 0); - - ~Key(); - - private: - IKey *mKey; - }; - -} // namespace act - -#endif // ACT_Key_h diff --git a/actlibrary/Ubuntu-9-i686/Release/include/actKeyKit.h b/actlibrary/Ubuntu-9-i686/Release/include/actKeyKit.h deleted file mode 100644 index e8a7730..0000000 --- a/actlibrary/Ubuntu-9-i686/Release/include/actKeyKit.h +++ /dev/null @@ -1,43 +0,0 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actKeyKit.h -// Product: cv act library -// Purpose: declaration of all factory functions -// -// Copyright: (c) 2000 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_KeyKit_h -#define ACT_KeyKit_h - -namespace act -{ - class IKey; - - IKey* CreateBlockCipherKey(); - - IKey* CreateStreamCipherKey(); - - IKey* CreateHashMACKey(); - IKey* CreateCBCMACKey(); - IKey* CreateSecretKeyMACKey(); - IKey* CreateRetailCFBMACKey(); - IKey* Create_iMAC3Key(); - IKey* CreateCMACKey(); - - IKey* CreateRSAKey(); - - IKey* CreateDSAKey(); - IKey* CreateECDSAKey(); - IKey* CreateECGDSAKey(); - - IKey* CreateDHKey(); - IKey* CreateECDHKey(); - - IKey* CreateIESKey(); - -} // namespace act - -#endif // ACT_KeyKit_h diff --git a/actlibrary/Ubuntu-9-i686/Release/include/actKeyReg.h b/actlibrary/Ubuntu-9-i686/Release/include/actKeyReg.h deleted file mode 100644 index 14caa8c..0000000 --- a/actlibrary/Ubuntu-9-i686/Release/include/actKeyReg.h +++ /dev/null @@ -1,40 +0,0 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actKeyReg.h -// Product: cv act library -// Purpose: registry for factory functions in actKeyKit.h -// -// Copyright: (c) 2000 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_KeyReg_h -#define ACT_KeyReg_h - -namespace act -{ - class IKey; - - typedef IKey* (*CreateKeyPtr)(); - - struct KeyMapEntry - { - const char* Name; - CreateKeyPtr CreatePtr; - }; - - class KeyReg - { - public: - static IKey* CreateKey(const char* name); - static CreateKeyPtr GetCreatePointer(const char* name); - static const char* GetName(void* createptr); - static const char* GetNextName(const char* name); - static void Insert(const char* name, CreateKeyPtr createptr); - static void Insert(const KeyMapEntry* keymap); - }; - -} // namespace act - -#endif // ACT_KeyReg_h diff --git a/actlibrary/Ubuntu-9-i686/Release/include/actLogger.h b/actlibrary/Ubuntu-9-i686/Release/include/actLogger.h deleted file mode 100644 index 103b1ed..0000000 --- a/actlibrary/Ubuntu-9-i686/Release/include/actLogger.h +++ /dev/null @@ -1,110 +0,0 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actLogger.h -// Product: cv act library -// Purpose: Logger -// -// Copyright: (c) 2000-2001 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_Logger_h -#define ACT_Logger_h - -#include "actDebug.h" -#include "actBlob.h" - -#include "SyncObject.h" - -// for convenience: -#ifdef _MSC_VER -# define ACT_SNPRINTF _snprintf -#else -# include -# define ACT_SNPRINTF snprintf -#endif - -// -// MTE [11/1/2006]: Added addtional accessing macros. -// NOTE: Redefine to use another Logger. -#define ACT_LOGGER(x) act::Logger::x - -// -// MTE [11/1/2006]: Added to replace direct usage of ACT_LOGGER(LogInit)(). -#define ACT_LOGISENABLED() (ACT_DEBUG != 0 || ACT_LOGGER(LogInit)()) - -// -// MTE [11/1/2006]: Changed to use ACT_LOGISENABLED(). -#define ACT_LOGINFO(info) { if(ACT_LOGISENABLED()) ACT_LOGGER(Log)(ACT_LOGGER(LEVEL_INFO), info); } -#define ACT_LOGWARN(warn) { if(ACT_LOGISENABLED()) ACT_LOGGER(Log)(ACT_LOGGER(LEVEL_WARN), warn); } -#define ACT_LOGERROR(error) { if(ACT_LOGISENABLED()) ACT_LOGGER(Log)(ACT_LOGGER(LEVEL_ERROR), error); } -#define ACT_LOGEXCEPTION(e) { if(ACT_LOGISENABLED()) { char buf[1024]; ACT_SNPRINTF(buf, 1024, "Exception:\t '%s' in '%s'", e.what(), e.where()); ACT_LOGERROR(buf) }} - -#define ACT_LOGINFODATA(info, data) { if(ACT_LOGISENABLED()) ACT_LOGGER(Log)(ACT_LOGGER(LEVEL_INFO), info, data); } -#define ACT_LOGWARNDATA(warn, data) { if(ACT_LOGISENABLED()) ACT_LOGGER(Log)(ACT_LOGGER(LEVEL_WARN), warn, data); } -#define ACT_LOGERRORDATA(error, data) { if(ACT_LOGISENABLED()) ACT_LOGGER(Log)(ACT_LOGGER(LEVEL_ERROR), error, data); } -#define ACT_LOGBLOB(blob) { if(ACT_LOGISENABLED()) ACT_LOGGER(Log)(ACT_LOGGER(LEVEL_INFO), #blob, blob); } - -#define ACT_LOGVALUE(name, value, format) { if(ACT_LOGISENABLED()) { char buf[256]; ACT_SNPRINTF(buf, 256, name " :\t " format, value); ACT_LOGINFO(buf) }} - -#define ACT_LOGINT(value) ACT_LOGVALUE(#value, int(value), "%i") -#define ACT_LOGHEX(value) ACT_LOGVALUE(#value, act::ulong(value), "0x%08x") -#define ACT_LOGSTRING(value) ACT_LOGVALUE(#value, value, "%s") - -#define ACT_LOGNAMEDINT(name, value) ACT_LOGVALUE(name, int(value), "%i") -#define ACT_LOGNAMEDHEX(name, value) ACT_LOGVALUE(name, act::ulong(value), "0x%08x") -#define ACT_LOGNAMEDSTRING(name, value) ACT_LOGVALUE(name, value, "%s") - -#ifdef WIN32 -#define ACT_LOGPTR(value) ACT_LOGINT(value) -#else -#define ACT_LOGPTR(value) ACT_LOGVALUE(#value, value, "%lp") -#endif - -// TODO: MTE: What about this "nice" construct ? -#define ACT_LOGPOINTER(p) { if(ACT_LOGISENABLED()) { if(p != 0) ACT_LOGINT(*p) else ACT_LOGHEX(p) }} -#define ACT_LOGISNULL(p) { if(ACT_LOGISENABLED()) { char buf[256]; if(p != 0) ACT_SNPRINTF(buf, 256, #p " :\t *"); else ACT_SNPRINTF(buf, 256, #p " :\t 0"); ACT_LOGINFO(buf) }} - - -namespace act -{ - class Logger - { - public: - enum Levels - { - LEVEL_OFF = 0, - LEVEL_ERROR = 30, - LEVEL_WARNING = 50, - LEVEL_WARN = LEVEL_WARNING, - LEVEL_INFO = 80, - LEVEL_MAX = 99 - }; - - static void SetLogger(Logger* pLogger); - static void FreeLogger(); - static void Log(short level, const char* msg); - static void Log(short level, const Blob& blobmsg); - static void Log(short level, const char* msg, const Blob& blobmsg); - static void SetLoglevel(short level); - static bool LogInit() - { - return(s_pLogger != 0 ? true : false); - } - - protected: - Logger(){} - virtual ~Logger(){} - virtual void doLog(short level, const char* msg) = 0; - virtual void doSetLoglevel(short level) = 0; - - private: - static Logger* s_pLogger; - static SyncObject m_sync; - }; - -} // namespace act - -#endif // ACT_Logger_h - diff --git a/actlibrary/Ubuntu-9-i686/Release/include/actMode.h b/actlibrary/Ubuntu-9-i686/Release/include/actMode.h deleted file mode 100644 index 3c4bdb9..0000000 --- a/actlibrary/Ubuntu-9-i686/Release/include/actMode.h +++ /dev/null @@ -1,269 +0,0 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actMode.h -// Product: cv act library -// Purpose: enumerations -// -// Copyright: (c) 2006 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_Mode_h -#define ACT_Mode_h - -namespace act -{ - enum - { - MODE_RANGE_BEGIN = 100, - - ENCRYPT = 100, - DECRYPT, - SIGN, - VERIFY, - MAC, - - PRIVATE =200, - PUBLIC, - SECRET, - DOMAINPARAMS, - PKCS8_TYPE, - - CIPHER = 300, - PADDING, - DERIVATOR, - BCMODE, - KEYSIZE, - RAWKEY, - IV, - BLOCKSIZE, - CHAINING_VALUE, - CHAINING_BITCOUNT, - EFFECTIVE_KEYSIZE, - SHAREDDATA_1, - SHAREDDATA_2, - KEYDATALEN, - ITERATIONCOUNT, - COUNTER, - OUTDATALEN, - - ENCODER=400, - PRIVATEKEY, - PUBLICKEY, - PUBLICSIZE, - KEY, - SIGNATURE, - AGREEMENT, - - MODULO=500, - PRIME_P, - PRIME_Q, - MODULOSIZE, - PRIME_P_SIZE, - PRIME_Q_SIZE, - CRT_EXPONENT_1, - CRT_EXPONENT_2, - CRT_COEFFICIENT, - PKCS1_PRIVATEKEY, - PKCS1_PUBLICKEY, - - CURVE=600, - PUBLIC_X, - PUBLIC_Y, - STATICPUBLIC_X, - STATICPUBLIC_Y, - EPHEMERALPUBLIC_X, - EPHEMERALPUBLIC_Y, - CURVEPARAM, - PUBLICKEY_EXPORT_TYPE, - BASEPOINT_EXPORT_TYPE, - COMPRESSED, - UNCOMPRESSED, - HYBRID, - IMPLICITLYCA, - GF2CURVE, - PRIMECURVE, - ENCODE_SIGNATURE, - PLAIN_SECRET, - - RING = 700, - RINGORDER, - RINGGENERATOR, - COFACTOR, - COMPATIBLE, - NEWEPHEMERAL, - CHECKDOMAINPARAMS, - - STATICPRIVATEKEY, - STATICPUBLICKEY, - EPHEMERALPRIVATEKEY, - EPHEMERALPUBLICKEY, - - PIN = 800, - CARDTYPE, - CARDPORTTYPE, - PORTNR, - DLLNAME, - READERNAME, - CHANGEMASTERPIN, - CHANGEPIN, - USERPIN, - MASTERPIN, - PINPAD, - USERNAME, - INFOTEXT, - SIGNKEY, - ENCKEY, - SIGNCERTIFICATE, - ENCCERTIFICATE, - ROOTCERTIFICATE, - LOCK_KEY, - DHKEY, - DHCERTIFICATE, - PERSONALIZED, - READERNAMES, - AID, - PATH, - NULLPIN, - SELECTKEY, - ALLCERTIFICATE, - APPLICATION, - KEYUSAGE, - MECHANISM, - CERTIFICATE, - DATA, - KEYTYPE, - LABEL, - ID, - - CTAPI_PORT = 900, - PCSC_PORT, - - CARDOS_CARD = 1000, - TCOS_CARD, - CVACT_CARD, - PKCS11_CARD, - MICARDOEC_CARD, - STARCOSPK_CARD, - ETRUST_CARD, -// MICARDOPUBLIC_CARD, - CARDOSM4_CARD, - MICARDOP21_CARD, - - HASH=1100, - SALT, - SALT_LENGTH, - EMLEN, - - X = 1200, - SEED, - MULTIPLIER, - - VERSION = 1300, - ISSUER, - SUBJECT, - SERIALNR, - ISSUER_DER, - SUBJECT_DER, - ISSUER_UID, - SUBJECT_UID, - NOTBEFORE_DER, - NOTAFTER_DER, - THISUPDATE_DER, - NEXTUPDATE_DER, - TBS, - - CVPROFILEID = 1400, - CVCAREFERENCE, - CVHOLDERREFERENCE, - CVHATEMPLATE, - CVEACTEMPLATE, - CVEFFECTIVEDATE, - CVEXPIRATIONDATE, - CVPUBLICKEY_TLV, - CVPUBLICKEY_MECHANISM, - - // GF(P)-Curves - SECGp112r1 = 0x1000, - SECGp112r2, - SECGp128r1, - SECGp128r2, - SECGp160r1, - SECGp160r2, - SECGp160k1, - ANSIp192r1, - ANSIp192r2, - ANSIp192r3, - NISTp192r1, - SECGp192r1, - SECGp192k1, - NISTp224r1, - SECGp224r1, - SECGp224k1, - ANSIp239r1, - ANSIp239r2, - ANSIp239r3, - ANSIp256r1, - NISTp256r1, - SECGp256r1, - SECGp256k1, - NISTp384r1, - NISTp521r1, - brainpoolP256r1, - brainpoolP256t1, - - // GF(2^m)-Curves - SECGz113r1 = 0x1200, - SECGz113r2, - SECGz131r1, - SECGz131r2, - ANSIz163r1, - ANSIz163r2, - ANSIz163r3, - NISTz163r1, - NISTz163k1, - SECGz163r1, - SECGz163r2, - SECGz163k1, - ANSIz176w1, - ANSIz191r1, - ANSIz191r2, - ANSIz191r3, - SECGz193r1, - SECGz193r2, - ANSIz208w1, - NISTz233r1, - NISTz233k1, - SECGz233r1, - SECGz233k1, - ANSIz239r1, - ANSIz239r2, - ANSIz239r3, - SECGz239k1, - ANSIz272w1, - NISTz283r1, - NISTz283k1, - SECGz283r1, - SECGz283k1, - ANSIz304w1, - ANSIz359r1, - ANSIz368w1, - NISTz409r1, - NISTz409k1, - SECGz409r1, - SECGz409k1, - ANSIz431r1, - NISTz571r1, - NISTz571k1, - SECGz571r1, - SECGz571k1, - - MODE_RANGE_LAST = 0x1400, // insert new elements here - - TOKEN_CONFIG = 0x2000, // token config start - }; - -} // namespace act - -#endif // ACT_Mode_h diff --git a/actlibrary/Ubuntu-9-i686/Release/include/actMove.h b/actlibrary/Ubuntu-9-i686/Release/include/actMove.h deleted file mode 100644 index ebf1d6f..0000000 --- a/actlibrary/Ubuntu-9-i686/Release/include/actMove.h +++ /dev/null @@ -1,133 +0,0 @@ -////////////////////////////////////////////////////////////////////////// -// Name: actMove.h -// Product: cv act library -// Purpose: template<>'s to implement move semantics -// -// Copyright: (c) 2010 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -// -// Autor: Markus Tesche -// Date: 07/25/2010 -////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_Move_h -#define ACT_Move_h - -namespace act -{ - // - // type_of used to dismantle T resulting in T' - // -------------------------------------------------------------------------------- - template struct type_of { typedef T type; }; - template struct type_of { typedef T type; }; - template struct type_of { typedef T type; }; - template struct type_of { typedef T type; }; - template struct type_of { typedef T type; }; - template struct type_of { typedef T type; }; - - // - // is_const - // -------------------------------------------------------------------------------- - template struct is_const { enum { value = 0 }; }; - template struct is_const { enum { value = 1 }; }; - template struct is_const { enum { value = 0 }; }; - template struct is_const { enum { value = 1 }; }; - template struct is_const { enum { value = 0 }; }; - template struct is_const { enum { value = 1 }; }; - - // - // /brief move_from<...> used to implement move semantics - // -------------------------------------------------------------------------------- - template - class move_from; - - // - // /brief move_from default spcialization, holds reference to type T - // -------------------------------------------------------------------------------- - template - class move_from - { - public: - typedef typename type_of::type type_t; - - explicit move_from(type_t& ref) - : m_ref(ref) - { } - - template - move_from(const move_from& other) - : m_ref(other.source()) - { } - - inline type_t& source() const { return m_ref; } - template O& source() const { return m_ref; } - - template void swap(O& other) { m_ref.swap(other); } - template O& move(O& other) { m_ref.swap(other); return other; } - - private: - type_t& m_ref; - - private: - template - friend class move_from; - }; - - // - // /brief move_from spcialization takes ownership of 'swapped-in' source data - // -------------------------------------------------------------------------------- - template - class move_from : public move_from - { - public: - typedef typename type_of::type type_t; - - explicit move_from(type_t& ref) - : move_from(m_value) - { - ref.swap(m_value); - } - - template - move_from(move_from other) - : move_from(m_value) - { - other.swap(m_value); - } - - private: - typename move_from::type_t m_value; - }; - - // - // /brief move_empty used as default move_from<...> function parameter - // -------------------------------------------------------------------------------- - template - class move_empty : public move_from - { - public: - move_empty() - : move_from(m_empty) - { } - - move_empty(const move_empty&) - : move_from(m_empty) - { } - - inline move_empty& operator=(const move_empty&) { return *this; } - - private: - T m_empty; - }; - - // - // /brief move<> helper function - // -------------------------------------------------------------------------------- - template - move_from move(T& ref) { return move_from(ref); } - -} // namespace act - -#endif // ACT_Move_h diff --git a/actlibrary/Ubuntu-9-i686/Release/include/actOID.h b/actlibrary/Ubuntu-9-i686/Release/include/actOID.h deleted file mode 100644 index 527f660..0000000 --- a/actlibrary/Ubuntu-9-i686/Release/include/actOID.h +++ /dev/null @@ -1,2103 +0,0 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actOID.h -// Product: cv act library -// Purpose: -// -// -// Copyright: (c) 2000 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_OID_H -#define ACT_OID_H - -#define CV_OID_DEF(x) (act::Blob((x),(x)+sizeof((x)))) - -#ifdef _MSC_VER -#pragma warning(disable : 4305) //Verkuerzung von 'static const int' in 'static const unsigned char' -#pragma warning(disable : 4309) //Verkuerzung eines konstanten Wertes -#endif - -//1.2.840.10045.4.1 ECDSA cvECDSA -static const unsigned char cvOID_cvECDSA[] = {0x2a, 0x86, 0x48, 0xce, 0x3d, 0x04, 0x01}; -//1.2.840.113549.1.9.1 Alternate Name cvAlternateName -static const unsigned char cvOID_cvAlternateName[] = {0x2a, 0x86, 0x48, 0x86, 0xf7, 0x0d, 0x01, 0x09, 0x01}; - -//0.2.262.1.10 Deutsche Telekom Telesec -static const unsigned char cvOID_Telesec [] = { 0x02, 0x82, 0x06, 0x01, 0x0A}; -//0.2.262.1.10.0 Telesec extension -static const unsigned char cvOID_extension [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x00}; -//0.2.262.1.10.1 Telesec mechanism -static const unsigned char cvOID_mechanism [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x01}; -//0.2.262.1.10.1.0 Telesec mechanism authentication -static const unsigned char cvOID_authentication [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x01, 0x00}; -//0.2.262.1.10.1.0.1 Telesec authentication passwordAuthentication -static const unsigned char cvOID_passwordAuthentication [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x01, 0x00, 0x01}; -//0.2.262.1.10.1.0.2 Telesec authentication protectedPasswordAuthentication -static const unsigned char cvOID_protectedPasswordAuthentication [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x01, 0x00, 0x02}; -//0.2.262.1.10.1.0.3 Telesec authentication oneWayX509Authentication -static const unsigned char cvOID_oneWayX509Authentication [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x01, 0x00, 0x03}; -//0.2.262.1.10.1.0.4 Telesec authentication twoWayX509Authentication -static const unsigned char cvOID_twoWayX509Authentication [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x01, 0x00, 0x04}; -//0.2.262.1.10.1.0.5 Telesec authentication threeWayX509Authentication -static const unsigned char cvOID_threeWayX509Authentication [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x01, 0x00, 0x05}; -//0.2.262.1.10.1.0.6 Telesec authentication oneWayISO9798Authentication -static const unsigned char cvOID_oneWayISO9798Authentication [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x01, 0x00, 0x06}; -//0.2.262.1.10.1.0.7 Telesec authentication twoWayISO9798Authentication -static const unsigned char cvOID_twoWayISO9798Authentication [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x01, 0x00, 0x07}; -//0.2.262.1.10.1.0.8 Telesec authentication telekomAuthentication -static const unsigned char cvOID_telekomAuthentication [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x01, 0x00, 0x08}; -//0.2.262.1.10.1.1 Telesec mechanism signature -static const unsigned char cvOID_signature [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x01, 0x01}; -//0.2.262.1.10.1.1.1 Telesec mechanism md4WithRSAAndISO9697 -static const unsigned char cvOID_md4WithRSAAndISO9697 [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x01, 0x01, 0x01}; -//0.2.262.1.10.1.1.2 Telesec mechanism md4WithRSAAndTelesecSignatureStandard -static const unsigned char cvOID_md4WithRSAAndTelesecSignatureStandard [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x01, 0x01, 0x02}; -//0.2.262.1.10.1.1.3 Telesec mechanism md5WithRSAAndISO9697 -static const unsigned char cvOID_md5WithRSAAndISO9697 [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x01, 0x01, 0x03}; -//0.2.262.1.10.1.1.4 Telesec mechanism md5WithRSAAndTelesecSignatureStandard -static const unsigned char cvOID_md5WithRSAAndTelesecSignatureStandard [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x01, 0x01, 0x04}; -//0.2.262.1.10.1.1.5 Telesec mechanism ripemd160WithRSAAndTelekomSignatureStandard -static const unsigned char cvOID_ripemd160WithRSAAndTelekomSignatureStandard [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x01, 0x01, 0x05}; -//0.2.262.1.10.1.1.9 Telesec signature hbciRsaSignature -static const unsigned char cvOID_hbciRsaSignature [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x01, 0x01, 0x09}; -//0.2.262.1.10.1.2 Telesec mechanism encryption -static const unsigned char cvOID_encryption [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x01, 0x02}; -//0.2.262.1.10.1.2.0 Telesec encryption none -static const unsigned char cvOID_none [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x01, 0x02, 0x00}; -//0.2.262.1.10.1.2.1 Telesec encryption rsaTelesec -static const unsigned char cvOID_rsaTelesec [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x01, 0x02, 0x01}; -//0.2.262.1.10.1.2.2 Telesec encryption des -static const unsigned char cvOID_des [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x01, 0x02, 0x02}; -//0.2.262.1.10.1.2.2.1 Telesec encryption desECB -static const unsigned char cvOID_desECB [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x01, 0x02, 0x02, 0x01}; -//0.2.262.1.10.1.2.2.2 Telesec encryption desCBC -static const unsigned char cvOID_desCBC [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x01, 0x02, 0x02, 0x02}; -//0.2.262.1.10.1.2.2.3 Telesec encryption desOFB -static const unsigned char cvOID_desOFB [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x01, 0x02, 0x02, 0x03}; -//0.2.262.1.10.1.2.2.4 Telesec encryption desCFB8 -static const unsigned char cvOID_desCFB8 [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x01, 0x02, 0x02, 0x04}; -//0.2.262.1.10.1.2.2.5 Telesec encryption desCFB64 -static const unsigned char cvOID_desCFB64 [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x01, 0x02, 0x02, 0x05}; -//0.2.262.1.10.1.2.3 Telesec encryption des3 -static const unsigned char cvOID_des3 [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x01, 0x02, 0x03}; -//0.2.262.1.10.1.2.3.1 Telesec encryption des3ECB -static const unsigned char cvOID_des3ECB [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x01, 0x02, 0x03, 0x01}; -//0.2.262.1.10.1.2.3.2 Telesec encryption des3CBC -static const unsigned char cvOID_des3CBC [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x01, 0x02, 0x03, 0x02}; -//0.2.262.1.10.1.2.3.3 Telesec encryption des3OFB -static const unsigned char cvOID_des3OFB [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x01, 0x02, 0x03, 0x03}; -//0.2.262.1.10.1.2.3.4 Telesec encryption des3CFB8 -static const unsigned char cvOID_des3CFB8 [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x01, 0x02, 0x03, 0x04}; -//0.2.262.1.10.1.2.3.5 Telesec encryption des3CFB64 -static const unsigned char cvOID_des3CFB64 [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x01, 0x02, 0x03, 0x05}; -//0.2.262.1.10.1.2.4 Telesec encryption magenta -static const unsigned char cvOID_magenta [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x01, 0x02, 0x04}; -//0.2.262.1.10.1.2.5 Telesec encryption idea -static const unsigned char cvOID_idea [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x01, 0x02, 0x05}; -//0.2.262.1.10.1.2.5.1 Telesec encryption ideaECB -static const unsigned char cvOID_ideaECB_Telesec [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x01, 0x02, 0x05, 0x01}; -//0.2.262.1.10.1.2.5.2 Telesec encryption ideaCBC -static const unsigned char cvOID_ideaCBC_Telesec [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x01, 0x02, 0x05, 0x02}; -//0.2.262.1.10.1.2.5.3 Telesec encryption ideaOFB -static const unsigned char cvOID_ideaOFB_Telesec [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x01, 0x02, 0x05, 0x03}; -//0.2.262.1.10.1.2.5.4 Telesec encryption ideaCFB8 -static const unsigned char cvOID_ideaCFB8_Telesec [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x01, 0x02, 0x05, 0x04}; -//0.2.262.1.10.1.2.5.5 Telesec encryption ideaCFB64 -static const unsigned char cvOID_ideaCFB64_Telesec [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x01, 0x02, 0x05, 0x05}; -//0.2.262.1.10.1.3 Telesec mechanism oneWayFunction -static const unsigned char cvOID_oneWayFunction [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x01, 0x03}; -//0.2.262.1.10.1.3.1 Telesec one-way function md4 -static const unsigned char cvOID_md4_Telesec [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x01, 0x03, 0x01}; -//0.2.262.1.10.1.3.2 Telesec one-way function md5 -static const unsigned char cvOID_md5_Telesec [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x01, 0x03, 0x02}; -//0.2.262.1.10.1.3.3 Telesec one-way function sqModNX509 -static const unsigned char cvOID_sqModNX509 [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x01, 0x03, 0x03}; -//0.2.262.1.10.1.3.4 Telesec one-way function sqModNISO -static const unsigned char cvOID_sqModNISO [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x01, 0x03, 0x04}; -//0.2.262.1.10.1.3.5 Telesec one-way function ripemd128 -static const unsigned char cvOID_ripemd128 [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x01, 0x03, 0x05}; -//0.2.262.1.10.1.3.6 Telesec one-way function hashUsingBlockCipher -static const unsigned char cvOID_hashUsingBlockCipher [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x01, 0x03, 0x06}; -//0.2.262.1.10.1.3.7 Telesec one-way function mac -static const unsigned char cvOID_mac [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x01, 0x03, 0x07}; -//0.2.262.1.10.1.3.8 Telesec one-way function ripemd160 -static const unsigned char cvOID_ripemd160 [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x01, 0x03, 0x08}; -//0.2.262.1.10.1.4 Telesec mechanism fecFunction -static const unsigned char cvOID_fecFunction [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x01, 0x04}; -//0.2.262.1.10.1.4.1 Telesec mechanism reedSolomon -static const unsigned char cvOID_reedSolomon [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x01, 0x04, 0x01}; -//0.2.262.1.10.2 Telesec module -static const unsigned char cvOID_module_Telesec [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x02}; -//0.2.262.1.10.2.0 Telesec module algorithms -static const unsigned char cvOID_algorithms [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x02, 0x00}; -//0.2.262.1.10.2.1 Telesec module attributeTypes -static const unsigned char cvOID_attributeTypes [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x02, 0x01}; -//0.2.262.1.10.2.2 Telesec module certificateTypes -static const unsigned char cvOID_certificateTypes [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x02, 0x02}; -//0.2.262.1.10.2.3).. Telesec module messageTypes -static const unsigned char cvOID_messageTypes [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x02, 0x03}; -//0.2.262.1.10.2.4 Telesec module plProtocol -static const unsigned char cvOID_plProtocol [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x02, 0x04}; -//0.2.262.1.10.2.5 Telesec module smeAndComponentsOfSme -static const unsigned char cvOID_smeAndComponentsOfSme [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x02, 0x05}; -//0.2.262.1.10.2.6 Telesec module fec -static const unsigned char cvOID_fec [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x02, 0x06}; -//0.2.262.1.10.2.7 Telesec module usefulDefinitions -static const unsigned char cvOID_usefulDefinitions [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x02, 0x07}; -//0.2.262.1.10.2.8 Telesec module stefiles -static const unsigned char cvOID_stefiles [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x02, 0x08}; -//0.2.262.1.10.2.9 Telesec module sadmib -static const unsigned char cvOID_sadmib [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x02, 0x09}; -//0.2.262.1.10.2.10 Telesec module electronicOrder -static const unsigned char cvOID_electronicOrder [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x02, 0x0A}; -//0.2.262.1.10.2.11 Telesec module telesecTtpAsymmetricApplication -static const unsigned char cvOID_telesecTtpAsymmetricApplication [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x02, 0x0B}; -//0.2.262.1.10.2.12)..... Telesec module telesecTtpBasisApplication -static const unsigned char cvOID_telesecTtpBasisApplication [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x02, 0x0C}; -//0.2.262.1.10.2.13)....... Telesec module telesecTtpMessages -static const unsigned char cvOID_telesecTtpMessages [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x02, 0x0D}; -//0.2.262.1.10.2.14)....... Telesec module telesecTtpTimeStampApplication -static const unsigned char cvOID_telesecTtpTimeStampApplication [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x02, 0x0E}; -//0.2.262.1.10.3 Telesec objectClass -static const unsigned char cvOID_objectClass_Telesec [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x03}; -//0.2.262.1.10.3.0 Telesec object class telesecOtherName -static const unsigned char cvOID_telesecOtherName_Telesec [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x03, 0x00}; -//0.2.262.1.10.3.1 Telesec object class directory -static const unsigned char cvOID_directory_Telesec [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x03, 0x01}; -//0.2.262.1.10.3.2 Telesec object class directoryType -static const unsigned char cvOID_directoryType_Telesec [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x03, 0x02}; -//0.2.262.1.10.3.3 Telesec object class directroyGroup -static const unsigned char cvOID_directroyGroup_Telesec [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x03, 0x03}; -//0.2.262.1.10.3.4 Telesec object class directoryUser -static const unsigned char cvOID_directoryUser_Telesec [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x03, 0x04}; -//0.2.262.1.10.3.5 Telesec object class symmetricKeyEntry -static const unsigned char cvOID_symmetricKeyEntry [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x03, 0x05}; -//0.2.262.1.10.4 Telesec package -static const unsigned char cvOID_package [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x04}; -//0.2.262.1.10.5 Telesec parameter -static const unsigned char cvOID_parameter [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x05}; -//0.2.262.1.10.6 Telesec nameBinding -static const unsigned char cvOID_nameBinding [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x06}; -//0.2.262.1.10.7 Telesec attribute -static const unsigned char cvOID_attribute_Telesec [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x07}; -//0.2.262.1.10.7.0 Telesec attribute applicationGroupIdentifier -static const unsigned char cvOID_applicationGroupIdentifier [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x07, 0x00}; -//0.2.262.1.10.7.1 Telesec attribute certificateType -static const unsigned char cvOID_certificateType [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x07, 0x01}; -//0.2.262.1.10.7.2 Telesec attribute telesecCertificate -static const unsigned char cvOID_Certificate_Telesec [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x07, 0x02}; -//0.2.262.1.10.7.3 Telesec attribute certificateNumber -static const unsigned char cvOID_certificateNumber [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x07, 0x03}; -//0.2.262.1.10.7.4 Telesec attribute certificateRevocationList -static const unsigned char cvOID_certificateRevocationList_Telesec [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x07, 0x04}; -//0.2.262.1.10.7.5 Telesec attribute creationDate -static const unsigned char cvOID_creationDate [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x07, 0x05}; -//0.2.262.1.10.7.6).... Telesec attribute issuer -static const unsigned char cvOID_issuer [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x07, 0x06}; -//0.2.262.1.10.7.7 Telesec attribute namingAuthority -static const unsigned char cvOID_namingAuthority [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x07, 0x07}; -//0.2.262.1.10.7.8 Telesec attribute publicKeyDirectory -static const unsigned char cvOID_publicKeyDirectory [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x07, 0x08}; -//0.2.262.1.10.7.9).. Telesec attribute securityDomain -static const unsigned char cvOID_securityDomain [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x07, 0x09}; -//0.2.262.1.10.7.10)..... Telesec attribute subject -static const unsigned char cvOID_subject [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x07, 0x0A}; -//0.2.262.1.10.7.11 Telesec attribute timeOfRevocation -static const unsigned char cvOID_timeOfRevocation [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x07, 0x0B}; -//0.2.262.1.10.7.12 Telesec attribute userGroupReference -static const unsigned char cvOID_userGroupReference [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x07, 0x0C}; -//0.2.262.1.10.7.13 Telesec attribute validity -static const unsigned char cvOID_validity [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x07, 0x0D}; -//0.2.262.1.10.7.14 Telesec attribute zert93 -static const unsigned char cvOID_zert93 [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x07, 0x0E}; -//0.2.262.1.10.7.15 Telesec attribute securityMessEnv -static const unsigned char cvOID_securityMessEnv [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x07, 0x0F}; -//0.2.262.1.10.7.16 Telesec attribute anonymizedPublicKeyDirectory -static const unsigned char cvOID_anonymizedPublicKeyDirectory [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x07, 0x10}; -//0.2.262.1.10.7.17 Telesec attribute telesecGivenName -static const unsigned char cvOID_telesecGivenName [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x07, 0x11}; -//0.2.262.1.10.7.18). Telesec attribute nameAdditions -static const unsigned char cvOID_nameAdditions [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x07, 0x12}; -//0.2.262.1.10.7.19 Telesec attribute telesecPostalCode -static const unsigned char cvOID_telesecPostalCode [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x07, 0x13}; -//0.2.262.1.10.7.20 Telesec attribute nameDistinguisher -static const unsigned char cvOID_nameDistinguisher [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x07, 0x14}; -//0.2.262.1.10.7.21 Telesec attribute telesecCertificateList -static const unsigned char cvOID_telesecCertificateList [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x07, 0x15}; -//0.2.262.1.10.7.22 Telesec attribute teletrustCertificateList -static const unsigned char cvOID_teletrustCertificateList [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x07, 0x16}; -//0.2.262.1.10.7.23)... Telesec attribute x509CertificateList -static const unsigned char cvOID_x509CertificateList [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x07, 0x17}; -//0.2.262.1.10.7.24 Telesec attribute timeOfIssue -static const unsigned char cvOID_timeOfIssue [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x07, 0x18}; -//0.2.262.1.10.7.25 Telesec attribute physicalCardNumber -static const unsigned char cvOID_physicalCardNumber [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x07, 0x19}; -//0.2.262.1.10.7.26)........ Telesec attribute fileType -static const unsigned char cvOID_fileType [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x07, 0x1A}; -//0.2.262.1.10.7.27 Telesec attribute ctlFileIsArchive -static const unsigned char cvOID_ctlFileIsArchive [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x07, 0x1B}; -//0.2.262.1.10.7.28)........ Telesec attribute emailAddress -static const unsigned char cvOID_emailAddress [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x07, 0x1C}; -//0.2.262.1.10.7.29)........ Telesec attribute certificateTemplateList -static const unsigned char cvOID_certificateTemplateList [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x07, 0x1D}; -//0.2.262.1.10.7.30)........ Telesec attribute directoryName -static const unsigned char cvOID_directoryName [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x07, 0x1E}; -//0.2.262.1.10.7.31)........ Telesec attribute directoryTypeName -static const unsigned char cvOID_directoryTypeName [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x07, 0x1F}; -//0.2.262.1.10.7.32 Telesec attribute directoryGroupName -static const unsigned char cvOID_directoryGroupName [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x07, 0x20}; -//0.2.262.1.10.7.33 Telesec attribute directoryUserName -static const unsigned char cvOID_directoryUserName [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x07, 0x21}; -//0.2.262.1.10.7.34 Telesec attribute revocationFlag -static const unsigned char cvOID_revocationFlag [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x07, 0x22}; -//0.2.262.1.10.7.35 Telesec attribute symmetricKeyEntryName -static const unsigned char cvOID_symmetricKeyEntryName [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x07, 0x23}; -//0.2.262.1.10.7.36 Telesec attribute glNumber -static const unsigned char cvOID_glNumber [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x07, 0x24}; -//0.2.262.1.10.7.37 Telesec attribute goNumber -static const unsigned char cvOID_goNumber [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x07, 0x25}; -//0.2.262.1.10.7.38 Telesec attribute gKeyData -static const unsigned char cvOID_gKeyData [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x07, 0x26}; -//0.2.262.1.10.7.39 Telesec attribute zKeyData -static const unsigned char cvOID_zKeyData [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x07, 0x27}; -//0.2.262.1.10.7.40 Telesec attribute ktKeyData -static const unsigned char cvOID_ktKeyData [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x07, 0x28}; -//0.2.262.1.10.7.41 Telesec attribute ktKeyNumber -static const unsigned char cvOID_ktKeyNumber [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x07, 0x2A}; -//0.2.262.1.10.7.51 Telesec attribute timeOfRevocationGen -static const unsigned char cvOID_timeOfRevocationGen [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x07, 0x33}; -//0.2.262.1.10.7.52).... Telesec attribute liabilityText -static const unsigned char cvOID_liabilityText [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x07, 0x34}; -//0.2.262.1.10.8 Telesec attributeGroup -static const unsigned char cvOID_attributeGroup [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x08}; -//0.2.262.1.10.9 Telesec action -static const unsigned char cvOID_action [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x09}; -//0.2.262.1.10.10 Telesec notification -static const unsigned char cvOID_notification [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x0A}; -//0.2.262.1.10.11 Telesec snmp-mibs -static const unsigned char cvOID_snmp_mibs [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x0B}; -//0.2.262.1.10.11.1 Telesec SNMP MIBs securityApplication -static const unsigned char cvOID_securityApplication [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x0B, 0x01}; -//0.2.262.1.10.12 Telesec certAndCrlExtensionDefinitions -static const unsigned char cvOID_certAndCrlExtensionDefinitions [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x0C}; -//0.2.262.1.10.12.0 Telesec cert/CRL extension certExtensionLiabilityLimitationExt -static const unsigned char cvOID_certExtensionLiabilityLimitationExt [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x0C, 0x00}; -//0.2.262.1.10.12.1 Telesec cert/CRL extension telesecCertIdExt -static const unsigned char cvOID_telesecCertIdExt [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x0C, 0x01}; -//0.2.262.1.10.12.2 Telesec cert/CRL extension telesecPolicyIdentifier -static const unsigned char cvOID_telesecPolicyIdentifier [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x0C, 0x02}; -//0.2.262.1.10.12.3 Telesec cert/CRL extension telesecPolicyQualifierID -static const unsigned char cvOID_telesecPolicyQualifierID [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x0C, 0x03}; -//0.2.262.1.10.12.4 Telesec cert/CRL extension telesecCRLFilteredExt -static const unsigned char cvOID_telesecCRLFilteredExt [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x0C, 0x04}; -//0.2.262.1.10.12.5 Telesec cert/CRL extension telesecCRLFilterExt -static const unsigned char cvOID_telesecCRLFilterExt [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x0C, 0x05}; -//0.2.262.1.10.12.6 Telesec cert/CRL extension telesecNamingAuthorityExt -static const unsigned char cvOID_telesecNamingAuthorityExt [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x0C, 0x06}; -//0.9.2342.19200300.1.3 Some oddball X.500 attribute collection rfc822Mailbox -static const unsigned char cvOID_rfc822Mailbox [] = { 0x09, 0x92, 0x26, 0x89, 0x93, 0xF2, 0x2C, 0x01, 0x03}; -//0.9.2342.19200300.100.1.25 Men are from Mars, this OID is from Pluto domainComponent -static const unsigned char cvOID_domainComponent [] = { 0x09, 0x92, 0x26, 0x89, 0x93, 0xF2, 0x2C, 0x64, 0x01, 0x019}; -//1.2.36.75878867.1.100.1.1 Certificates Australia CA Certificates Australia policyIdentifier -static const unsigned char cvOID_Certificates_Australia_policyIdentifier [] = { 0x2A, 0x24, 0xA4, 0x97, 0xA3, 0x53, 0x01, 0x64, 0x01, 0x01}; -//1.2.36.68980861.1.1.2 Signet CA Signet personal -static const unsigned char cvOID_Signet_personal [] = { 0x2A, 0x24, 0xA0, 0xF2, 0xA0, 0x7D, 0x01, 0x01, 0x02}; -//1.2.36.68980861.1.1.3 Signet CA Signet business -static const unsigned char cvOID_Signet_business [] = { 0x2A, 0x24, 0xA0, 0xF2, 0xA0, 0x7D, 0x01, 0x01, 0x03}; -//1.2.36.68980861.1.1.4 Signet CA Signet legal -static const unsigned char cvOID_Signet_legal [] = { 0x2A, 0x24, 0xA0, 0xF2, 0xA0, 0x7D, 0x01, 0x01, 0x04}; -//1.2.36.68980861.1.1.10 Signet CA Signet pilot -static const unsigned char cvOID_Signet_pilot [] = { 0x2A, 0x24, 0xA0, 0xF2, 0xA0, 0x7D, 0x01, 0x01, 0x0A}; -//1.2.36.68980861.1.1.11 Signet CA Signet intraNet -static const unsigned char cvOID_Signet_intraNet [] = { 0x2A, 0x24, 0xA0, 0xF2, 0xA0, 0x7D, 0x01, 0x01, 0x0B}; -//1.2.36.68980861.1.1.20 Signet CA Signet securityPolicy -static const unsigned char cvOID_Signet_securityPolicy [] = { 0x2A, 0x24, 0xA0, 0xF2, 0xA0, 0x7D, 0x01, 0x01, 0x14}; -//1.2.392.200011.61.1.1.1 Mitsubishi security algorithm symmetric-encryption-algorithm -static const unsigned char cvOID_symmetric_encryption_algorithm [] = { 0x2A, 0x83, 0x08, 0x8C, 0x1A, 0x4B, 0x3D, 0x01, 0x01, 0x01}; -//1.2.392.200011.61.1.1.1.1 Mitsubishi security algorithm misty1-cbc -static const unsigned char cvOID_misty1_cbc [] = { 0x2A, 0x83, 0x08, 0x8C, 0x9A, 0x4B, 0x3D, 0x01, 0x01, 0x01, 0x01}; -//1.2.752.34.1 SEIS Project seis-cp -static const unsigned char cvOID_seis_cp [] = { 0x2A, 0x85, 0x70, 0x22, 0x01}; -//1.2.752.34.1.1 SEIS Project certificate policies SEIS high-assurnace certificatePolicy -static const unsigned char cvOID_SEIS_high_assurnace_certificatePolicy [] = { 0x2A, 0x85, 0x70, 0x22, 0x01, 0x01}; -//1.2.752.34.1.2 SEIS Project certificate policies SEIS GAK certificatePolicy -static const unsigned char cvOID_SEIS_GAK_certificatePolicy [] = { 0x2A, 0x85, 0x70, 0x22, 0x01, 0x02}; -//1.2.752.34.2 SEIS Project SEIS pe -static const unsigned char cvOID_SEIS_pe [] = { 0x2A, 0x85, 0x70, 0x22, 0x02}; -//1.2.752.34.3 SEIS Project SEIS at -static const unsigned char cvOID_SEIS_at [] = { 0x2A, 0x85, 0x70, 0x22, 0x03}; -//1.2.752.34.3.1 SEIS Project attribute SEIS at-personalIdentifier -static const unsigned char cvOID_SEIS_at_personalIdentifier [] = { 0x2A, 0x85, 0x70, 0x22, 0x03, 0x01}; -//1.2.840.10040.1 ANSI X9.57 module -static const unsigned char cvOID_module [] = { 0x2A, 0x86, 0x48, 0xCE, 0x38, 0x01}; -//1.2.840.10040.1.1 ANSI X9.57 module x9f1-cert-mgmt -static const unsigned char cvOID_x9f1_cert_mgmt [] = { 0x2A, 0x86, 0x48, 0xCE, 0x38, 0x01, 0x01}; -//1.2.840.10040.2 ANSI X9.57 holdinstruction -static const unsigned char cvOID_holdinstruction [] = { 0x2A, 0x86, 0x48, 0xCE, 0x38, 0x02}; -//1.2.840.10040.2.1 ANSI X9.57 hold instruction holdinstruction-none -static const unsigned char cvOID_holdinstruction_none [] = { 0x2A, 0x86, 0x48, 0xCE, 0x38, 0x02, 0x01}; -//1.2.840.10040.2.2 ANSI X9.57 hold instruction callissuer -static const unsigned char cvOID_callissuer [] = { 0x2A, 0x86, 0x48, 0xCE, 0x38, 0x02, 0x02}; -//1.2.840.10040.2.3 ANSI X9.57 hold instruction reject -static const unsigned char cvOID_reject [] = { 0x2A, 0x86, 0x48, 0xCE, 0x38, 0x02, 0x03}; -//1.2.840.10040.2.4 ANSI X9.57 hold instruction pickupToken -static const unsigned char cvOID_pickupToken [] = { 0x2A, 0x86, 0x48, 0xCE, 0x38, 0x02, 0x04}; -//1.2.840.10040.3 ANSI X9.57 attribute -static const unsigned char cvOID_attribute [] = { 0x2A, 0x86, 0x48, 0xCE, 0x38, 0x03}; -//1.2.840.10040.3.1 ANSI X9.57 attribute countersignature -static const unsigned char cvOID_countersignature [] = { 0x2A, 0x86, 0x48, 0xCE, 0x38, 0x03, 0x01}; -//1.2.840.10040.3.2 ANSI X9.57 attribute attribute-cert -static const unsigned char cvOID_attribute_cert [] = { 0x2A, 0x86, 0x48, 0xCE, 0x38, 0x03, 0x02}; -//1.2.840.10040.4 ANSI X9.57 algorithm -static const unsigned char cvOID_algorithm [] = { 0x2A, 0x86, 0x48, 0xCE, 0x38, 0x04}; -//1.2.840.10040.4.1 ANSI X9.57 algorithm dsa -static const unsigned char cvOID_dsa [] = { 0x2A, 0x86, 0x48, 0xCE, 0x38, 0x04, 0x01}; -//1.2.840.10040.4.2 ANSI X9.57 algorithm dsa-match -static const unsigned char cvOID_dsa_match [] = { 0x2A, 0x86, 0x48, 0xCE, 0x38, 0x04, 0x02}; -//1.2.840.10040.4.3 ANSI X9.57 algorithm dsaWithSha1 -static const unsigned char cvOID_dsaWithSha1 [] = { 0x2A, 0x86, 0x48, 0xCE, 0x38, 0x04, 0x03}; -//1.2.840.10045.1 ANSI X9.62. This OID is also assigned as ecdsa-with-SHA1 fieldType -static const unsigned char cvOID_fieldType [] = { 0x2A, 0x86, 0x48, 0xCE, 0x3D, 0x01}; -//1.2.840.10045.1.1 ANSI X9.62 field type prime-field -static const unsigned char cvOID_prime_field [] = { 0x2A, 0x86, 0x48, 0xCE, 0x3D, 0x01, 0x01}; -//1.2.840.10045.1.2 ANSI X9.62 field type characteristic-two-field -static const unsigned char cvOID_characteristic_two_field [] = { 0x2A, 0x86, 0x48, 0xCE, 0x3D, 0x01, 0x02}; -//1.2.840.10045.1.2.3 ANSI X9.62 field type characteristic-two-basis -static const unsigned char cvOID_characteristic_two_basis [] = { 0x2A, 0x86, 0x48, 0xCE, 0x3D, 0x01, 0x02, 0x03}; -//1.2.840.10045.1.2.3.1 ANSI X9.62 field basis onBasis -static const unsigned char cvOID_onBasis [] = { 0x2A, 0x86, 0x48, 0xCE, 0x3D, 0x01, 0x02, 0x03, 0x01}; -//1.2.840.10045.1.2.3.2 ANSI X9.62 field basis tpBasis -static const unsigned char cvOID_tpBasis [] = { 0x2A, 0x86, 0x48, 0xCE, 0x3D, 0x01, 0x02, 0x03, 0x02}; -//1.2.840.10045.1.2.3.3 ANSI X9.62 field basis ppBasis -static const unsigned char cvOID_ppBasis [] = { 0x2A, 0x86, 0x48, 0xCE, 0x3D, 0x01, 0x02, 0x03, 0x03}; -//1.2.840.10045.2 ANSI X9.62 publicKeyType -static const unsigned char cvOID_publicKeyType [] = { 0x2A, 0x86, 0x48, 0xCE, 0x3D, 0x02}; -//1.2.840.10045.2.1 ANSI X9.62 public key type ecPublicKey -static const unsigned char cvOID_ecPublicKey [] = { 0x2A, 0x86, 0x48, 0xCE, 0x3D, 0x02, 0x01}; -//1.2.840.10046.1 ANSI X9.42 fieldType -static const unsigned char cvOID_fieldType42 [] = { 0x2A, 0x86, 0x48, 0xCE, 0x3E, 0x01}; -//1.2.840.10046.1.1 ANSI X9.42 field type gf-prime -static const unsigned char cvOID_gf_prime [] = { 0x2A, 0x86, 0x48, 0xCE, 0x3E, 0x01, 0x01}; -//1.2.840.10046.2 ANSI X9.42 numberType -static const unsigned char cvOID_numberType [] = { 0x2A, 0x86, 0x48, 0xCE, 0x3E, 0x02}; -//1.2.840.10046.2.1 ANSI X9.42 number type dhPublicKey -static const unsigned char cvOID_dhPublicKey [] = { 0x2A, 0x86, 0x48, 0xCE, 0x3E, 0x02, 0x01}; -//1.2.840.10046.3 ANSI X9.42 scheme -static const unsigned char cvOID_scheme [] = { 0x2A, 0x86, 0x48, 0xCE, 0x3E, 0x03}; -//1.2.840.10046.3.1 ANSI X9.42 scheme dhStatic -static const unsigned char cvOID_dhStatic [] = { 0x2A, 0x86, 0x48, 0xCE, 0x3E, 0x03, 0x01}; -//1.2.840.10046.3.2 ANSI X9.42 scheme dhEphem -static const unsigned char cvOID_dhEphem [] = { 0x2A, 0x86, 0x48, 0xCE, 0x3E, 0x03, 0x02}; -//1.2.840.10046.3.3 ANSI X9.42 scheme dhHybrid1 -static const unsigned char cvOID_dhHybrid1 [] = { 0x2A, 0x86, 0x48, 0xCE, 0x3E, 0x03, 0x03}; -//1.2.840.10046.3.4 ANSI X9.42 scheme dhHybrid2 -static const unsigned char cvOID_dhHybrid2 [] = { 0x2A, 0x86, 0x48, 0xCE, 0x3E, 0x03, 0x04}; -//1.2.840.10046.3.5 ANSI X9.42 scheme mqv2 -static const unsigned char cvOID_mqv2 [] = { 0x2A, 0x86, 0x48, 0xCE, 0x3E, 0x03, 0x05}; -//1.2.840.10046.3.6 ANSI X9.42 scheme mqv1 -static const unsigned char cvOID_mqv1 [] = { 0x2A, 0x86, 0x48, 0xCE, 0x3E, 0x03, 0x06}; -//1.2.840.113533.7.65.0 Nortel Secure Networks ce (1 2 840 113533 7 65) entrustVersInfo -static const unsigned char cvOID_entrustVersInfo [] = { 0x2A, 0x86, 0x48, 0x86, 0xF6, 0x7D, 0x07, 0x41, 0x00}; -//1.2.840.113533.7.66.3 Nortel Secure Networks alg (1 2 840 113533 7 66) cast3CBC -static const unsigned char cvOID_cast3CBC [] = { 0x2A, 0x86, 0x48, 0x86, 0xF6, 0x7D, 0x07, 0x42, 0x03}; -//1.2.840.113533.7.66.10 Nortel Secure Networks alg (1 2 840 113533 7 66) cast5CBC -static const unsigned char cvOID_cast5CBC [] = { 0x2A, 0x86, 0x48, 0x86, 0xF6, 0x7D, 0x07, 0x42, 0x0A}; -//1.2.840.113533.7.66.11 Nortel Secure Networks alg (1 2 840 113533 7 66) cast5MAC -static const unsigned char cvOID_cast5MAC [] = { 0x2A, 0x86, 0x48, 0x86, 0xF6, 0x7D, 0x07, 0x42, 0x0B}; -//1.2.840.113533.7.66.12 Nortel Secure Networks alg (1 2 840 113533 7 66) pbeWithMD5AndCAST5-CBC -static const unsigned char cvOID_pbeWithMD5AndCAST5_CBC [] = { 0x2A, 0x86, 0x48, 0x86, 0xF6, 0x7D, 0x07, 0x42, 0x0C}; -//1.2.840.113533.7.66.13 Nortel Secure Networks alg (1 2 840 113533 7 66) passwordBasedMac -static const unsigned char cvOID_passwordBasedMac [] = { 0x2A, 0x86, 0x48, 0x86, 0xF6, 0x7D, 0x07, 0x42, 0x0D}; -//1.2.840.113 -static const unsigned char cvOID_entrustUser [] = { 0x2A, 0x86, 0x48, 0x86, 0xF6, 0x7D, 0x07, 0x43, 0x0C}; -//1.2.840.113533.7.68.0 Nortel Secure Networks at (1 2 840 113533 7 68) entrustCAInfo -static const unsigned char cvOID_entrustCAInfo [] = { 0x2A, 0x86, 0x48, 0x86, 0xF6, 0x7D, 0x07, 0x44, 0x00}; -//1.2.840.113533.7.68.10 Nortel Secure Networks at (1 2 840 113533 7 68) attributeCertificate -static const unsigned char cvOID_attributeCertificate [] = { 0x2A, 0x86, 0x48, 0x86, 0xF6, 0x7D, 0x07, 0x44, 0x0A}; -//1.2.840.113549.1.1.1 PKCS #1 rsaEncryption -static const unsigned char cvOID_rsaEncryption [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x01, 0x01}; -//1.2.840.113549.1.1.2 PKCS #1 md2withRSAEncryption -static const unsigned char cvOID_md2withRSAEncryption [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x01, 0x02}; -//1.2.840.113549.1.1.3 PKCS #1 md4withRSAEncryption -static const unsigned char cvOID_md4withRSAEncryption [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x01, 0x03}; -//1.2.840.113549.1.1.4 PKCS #1 md5withRSAEncryption -static const unsigned char cvOID_md5withRSAEncryption [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x01, 0x04}; -//1.2.840.113549.1.1.5 PKCS #1 sha1withRSAEncryption -static const unsigned char cvOID_sha1withRSAEncryption [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x01, 0x05}; -//1.2.840.113549.1.1.6 PKCS #1. This OID may also be assigned as ripemd160WithRSAEncryption rsaOAEPEncryptionSET -static const unsigned char cvOID_rsaOAEPEncryptionSET [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x01, 0x06}; -//1.2.840.113549.1.1.8 PKCS #1. id-mgf1 (0x2A864886F70D010108) -static const unsigned char cvOID_mgf1 [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x01, 0x08}; -//1.2.840.113549.1.1.10 PKCS #1. id-RSASSA-PSS (0x2A864886F70D01010A) -static const unsigned char cvOID_rsaSSA_PSS [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x01, 0x0A}; -//1.2.840.113549.1.2 Obsolete BSAFE OID bsafeRsaEncr -static const unsigned char cvOID_bsafeRsaEncr [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x01}; -//1.2.840.113549.1.3.1 PKCS #3 dhKeyAgreement -static const unsigned char cvOID_dhKeyAgreement [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x03, 0x01}; -//1.2.840.113549.1.5.1 PKCS #5 pbeWithMD2AndDES-CBC -static const unsigned char cvOID_pbeWithMD2AndDES_CBC [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x05, 0x01}; -//1.2.840.113549.1.5.3 PKCS #5 pbeWithMD5AndDES-CBC -static const unsigned char cvOID_pbeWithMD5AndDES_CBC [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x05, 0x03}; -//1.2.840.113549.1.5.4 PKCS #5 pbeWithMD2AndRC2-CBC -static const unsigned char cvOID_pbeWithMD2AndRC2_CBC [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x05, 0x04}; -//1.2.840.113549.1.5.6 PKCS #5 pbeWithMD5AndRC2-CBC -static const unsigned char cvOID_pbeWithMD5AndRC2_CBC [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x05, 0x06}; -//1.2.840.113549.1.5.9 PKCS #5, used in BSAFE only pbeWithMD5AndXOR -static const unsigned char cvOID_pbeWithMD5AndXOR [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x05, 0x09}; -//1.2.840.113549.1.5.10 PKCS #5 pbeWithSHAAndDES-CBC -static const unsigned char cvOID_pbeWithSHAAndDES_CBC [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x05, 0x0A}; -//1.2.840.113549.1.5.12 PKCS #5 v2.0 id-PBKDF2 -static const unsigned char cvOID_id_PBKDF2 [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x05, 0x0C}; -//1.2.840.113549.1.5.13 PKCS #5 v2.0 id-PBES2 -static const unsigned char cvOID_id_PBES2 [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x05, 0x0D}; -//1.2.840.113549.1.5.14 PKCS #5 v2.0 id-PBMAC1 -static const unsigned char cvOID_id_PBMAC1 [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x05, 0x0E}; -//1.2.840.113549.1.7.1 PKCS #7 data -static const unsigned char cvOID_data [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x07, 0x01}; -//1.2.840.113549.1.7.2 PKCS #7 signedData -static const unsigned char cvOID_signedData [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x07, 0x02}; -//1.2.840.113549.1.7.3 PKCS #7 envelopedData -static const unsigned char cvOID_envelopedData [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x07, 0x03}; -//1.2.840.113549.1.7.4 PKCS #7 signedAndEnvelopedData -static const unsigned char cvOID_signedAndEnvelopedData [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x07, 0x04}; -//1.2.840.113549.1.7.5 PKCS #7 digestedData -static const unsigned char cvOID_digestedData [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x07, 0x05}; -//1.2.840.113549.1.7.6 PKCS #7 encryptedData -static const unsigned char cvOID_encryptedData [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x07, 0x06}; -//1.2.840.113549.1.7.7 PKCS #7 experimental dataWithAttributes -static const unsigned char cvOID_dataWithAttributes [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x07, 0x07}; -//1.2.840.113549.1.7.8 PKCS #7 experimental encryptedPrivateKeyInfo -static const unsigned char cvOID_encryptedPrivateKeyInfo [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x07, 0x08}; -//1.2.840.113549.1.9.1 PKCS #9 (1 2 840 113549 1 9). Deprecated, use an altName extension instead emailAddress -static const unsigned char cvOID_emailAddress_PKCS9 [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x09, 0x01}; -//1.2.840.113549.1.9.2 PKCS #9 (1 2 840 113549 1 9) unstructuredName -static const unsigned char cvOID_unstructuredName [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x09, 0x02}; -//1.2.840.113549.1.9.3 PKCS #9 (1 2 840 113549 1 9) contentType -static const unsigned char cvOID_contentType [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x09, 0x03}; -//1.2.840.113549.1.9.4 PKCS #9 (1 2 840 113549 1 9) messageDigest -static const unsigned char cvOID_messageDigest [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x09, 0x04}; -//1.2.840.113549.1.9.5 PKCS #9 (1 2 840 113549 1 9) signingTime -static const unsigned char cvOID_signingTime [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x09, 0x05}; -//1.2.840.113549.1.9.6 PKCS #9 (1 2 840 113549 1 9) countersignature -static const unsigned char cvOID_countersignature_PKCS9 [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x09, 0x06}; -//1.2.840.113549.1.9.7 PKCS #9 (1 2 840 113549 1 9) challengePassword -static const unsigned char cvOID_challengePassword [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x09, 0x07}; -//1.2.840.113549.1.9.8 PKCS #9 (1 2 840 113549 1 9) unstructuredAddress -static const unsigned char cvOID_unstructuredAddress [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x09, 0x08}; -//1.2.840.113549.1.9.9 PKCS #9 (1 2 840 113549 1 9) extendedCertificateAttributes -static const unsigned char cvOID_extendedCertificateAttributes [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x09, 0x09}; -//1.2.840.113549.1.9.10 PKCS #9 (1 2 840 113549 1 9) experimental issuerAndSerialNumber -static const unsigned char cvOID_issuerAndSerialNumber [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x09, 0x0A}; -//1.2.840.113549.1.9.11 PKCS #9 (1 2 840 113549 1 9) experimental passwordCheck -static const unsigned char cvOID_passwordCheck [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x09, 0x0B}; -//1.2.840.113549.1.9.12 PKCS #9 (1 2 840 113549 1 9) experimental publicKey -static const unsigned char cvOID_publicKey [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x09, 0x0C}; -//1.2.840.113549.1.9.13 PKCS #9 (1 2 840 113549 1 9) experimental signingDescription -static const unsigned char cvOID_signingDescription [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x09, 0x0D}; -//1.2.840.113549.1.9.14 PKCS #9 (1 2 840 113549 1 9) experimental extensionReq -static const unsigned char cvOID_extensionReq [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x09, 0x0E}; -//1.2.840.113549.1.9.15 PKCS #9 (1 2 840 113549 1 9). This OID was formerly assigned as symmetricCapabilities, then reassigned as SMIMECapabilities, then renamed to the current name sMIMECapabilities -static const unsigned char cvOID_sMIMECapabilities [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x09, 0x0F}; -//1.2.840.113549.1.9.15.1 sMIMECapabilities (1 2 840 113549 1 9 15) preferSignedData -static const unsigned char cvOID_preferSignedData [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x09, 0x0F, 0x01}; -//1.2.840.113549.1.9.15.2 sMIMECapabilities (1 2 840 113549 1 9 15) canNotDecryptAny -static const unsigned char cvOID_canNotDecryptAny [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x09, 0x0F, 0x02}; -//1.2.840.113549.1.9.15.3 sMIMECapabilities (1 2 840 113549 1 9 15). Deprecated, use (1 2 840 113549 1 9 16 2 1) instead receiptRequest -static const unsigned char cvOID_receiptRequest [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x09, 0x0F, 0x03}; -//1.2.840.113549.1.9.15.4 sMIMECapabilities (1 2 840 113549 1 9 15). Deprecated, use (1 2 840 113549 1 9 16 1 1) instead receipt -static const unsigned char cvOID_receipt [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x09, 0x0F, 0x04}; -//1.2.840.113549.1.9.15.5 sMIMECapabilities (1 2 840 113549 1 9 15). Deprecated, use (1 2 840 113549 1 9 16 2 4) instead contentHints -static const unsigned char cvOID_contentHints [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x09, 0x0F, 0x05}; -//1.2.840.113549.1.9.15.6 sMIMECapabilities (1 2 840 113549 1 9 15). Deprecated, use (1 2 840 113549 1 9 16 2 3) instead mlExpansionHistory -static const unsigned char cvOID_mlExpansionHistory [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x09, 0x0F, 0x06}; -//1.2.840.113549.1.9.16 PKCS #9 (1 2 840 113549 1 9) id-sMIME -static const unsigned char cvOID_id_sMIME [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x09, 0x10}; -//1.2.840.113549.1.9.16.0 id-sMIME (1 2 840 113549 1 9 16) id-mod -static const unsigned char cvOID_id_mod [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x09, 0x10, 0x00}; -//1.2.840.113549.1.9.16.0.1 S/MIME Modules (1 2 840 113549 1 9 16 0) id-mod-cms -static const unsigned char cvOID_id_mod_cms [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x09, 0x10, 0x00, 0x01}; -//1.2.840.113549.1.9.16.0.2 S/MIME Modules (1 2 840 113549 1 9 16 0) id-mod-ess -static const unsigned char cvOID_id_mod_ess [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x09, 0x10, 0x00, 0x02}; -//1.2.840.113549.1.9.16.1 id-sMIME (1 2 840 113549 1 9 16) id-ct -static const unsigned char cvOID_id_ct [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x09, 0x10, 0x01}; -//1.2.840.113549.1.9.16.1.1 S/MIME Content Types (1 2 840 113549 1 9 16 1) id-ct-receipt -static const unsigned char cvOID_id_ct_receipt [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x09, 0x10, 0x01, 0x01}; -//1.2.840.113549.1.9.16.1.2 S/MIME Content Types (1 2 840 113549 1 9 16 1) id-ct-authData -static const unsigned char cvOID_id_ct_authData [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x09, 0x10, 0x01, 0x02}; -//1.2.840.113549.1.9.16.1.3 S/MIME Content Types (1 2 840 113549 1 9 16 1) id-ct-compressedData -static const unsigned char cvOID_id_ct_compressedData [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x09, 0x10, 0x01, 0x03}; -//1.2.840.113549.1.9.16.2 id-sMIME (1 2 840 113549 1 9 16) id-aa -static const unsigned char cvOID_id_aa [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x09, 0x10, 0x02}; -//1.2.840.113549.1.9.16.2.1 S/MIME Authenticated Attributes (1 2 840 113549 1 9 16 2) id-aa-receiptRequest -static const unsigned char cvOID_id_aa_receiptRequest [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x09, 0x10, 0x02, 0x01}; -//1.2.840.113549.1.9.16.2.2 S/MIME Authenticated Attributes (1 2 840 113549 1 9 16 2) id-aa-securityLabel -static const unsigned char cvOID_id_aa_securityLabel [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x09, 0x10, 0x02, 0x02}; -//1.2.840.113549.1.9.16.2.3 S/MIME Authenticated Attributes (1 2 840 113549 1 9 16 2) id-aa-mlExpandHistory -static const unsigned char cvOID_id_aa_mlExpandHistory [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x09, 0x10, 0x02, 0x03}; -//1.2.840.113549.1.9.16.2.4 S/MIME Authenticated Attributes (1 2 840 113549 1 9 16 2) id-aa-contentHint -static const unsigned char cvOID_id_aa_contentHint [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x09, 0x10, 0x02, 0x04}; -//1.2.840.113549.1.9.16.2.5 S/MIME Authenticated Attributes (1 2 840 113549 1 9 16 2) id-aa-msgSigDigest -static const unsigned char cvOID_id_aa_msgSigDigest [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x09, 0x10, 0x02, 0x05}; -//1.2.840.113549.1.9.16.2.7 S/MIME Authenticated Attributes (1 2 840 113549 1 9 16 2) id-aa-contentIdentifier -static const unsigned char cvOID_id_aa_contentIdentifier [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x09, 0x10, 0x02, 0x07}; -//1.2.840.113549.1.9.16.2.8 S/MIME Authenticated Attributes (1 2 840 113549 1 9 16 2) id-aa-macValue -static const unsigned char cvOID_id_aa_macValue [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x09, 0x10, 0x02, 0x08}; -//1.2.840.113549.1.9.16.2.9 S/MIME Authenticated Attributes (1 2 840 113549 1 9 16 2) id-aa-equivalentLabels -static const unsigned char cvOID_id_aa_equivalentLabels [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x09, 0x10, 0x02, 0x09}; -//1.2.840.113549.1.9.16.2.10 S/MIME Authenticated Attributes (1 2 840 113549 1 9 16 2) id-aa-contentReference -static const unsigned char cvOID_id_aa_contentReference [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x09, 0x10, 0x02, 0x0A}; -//1.2.840.113549.1.9.16.3.5 S/MIME Algorithms (1 2 840 113549 1 9 16 3) id-alg-ESDH -static const unsigned char cvOID_id_alg_ESDH [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x09, 0x10, 0x03, 0x05}; -//1.2.840.113549.1.9.16.3.6 S/MIME Algorithms (1 2 840 113549 1 9 16 3) id-alg-CMS3DESwrap -static const unsigned char cvOID_id_alg_CMS3DESwrap [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x09, 0x10, 0x03, 0x06}; -//1.2.840.113549.1.9.16.3.7 S/MIME Algorithms (1 2 840 113549 1 9 16 3) id-alg-CMSRC2wrap -static const unsigned char cvOID_id_alg_CMSRC2wrap [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x09, 0x10, 0x03, 0x07}; -//1.2.840.113549.1.9.16.3.8 S/MIME Algorithms (1 2 840 113549 1 9 16 3) id-alg-zlib -static const unsigned char cvOID_id_alg_zlib [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x09, 0x10, 0x03, 0x08}; -//1.2.840.113549.1.9.20 PKCS #9 (1 2 840 113549 1 9) friendlyName (for PKCS #12) -static const unsigned char cvOID_friendlyName [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x09, 0x14}; -//1.2.840.113549.1.9.21 PKCS #9 (1 2 840 113549 1 9) localKeyID (for PKCS #12) -static const unsigned char cvOID_localKeyID[] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x09, 0x15}; -//1.2.840.113549.1.9.22 PKCS #9 (1 2 840 113549 1 9) certTypes (for PKCS #12) -static const unsigned char cvOID_certTypes[] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x09, 0x16}; -//1.2.840.113549.1.9.22.1 PKCS #9 (1 2 840 113549 1 9) x509Certificate (for PKCS #12) -static const unsigned char cvOID_x509Certificate[] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x09, 0x16, 0x01}; -//1.2.840.113549.1.9.22.2 PKCS #9 (1 2 840 113549 1 9) sdsiCertificate (for PKCS #12) -static const unsigned char cvOID_sdsiCertificate [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x09, 0x16, 0x02}; -//1.2.840.113549.1.9.23 PKCS #9 (1 2 840 113549 1 9) crlTypes (for PKCS #12) -static const unsigned char cvOID_crlTypes[] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x09, 0x17}; -//1.2.840.113549.1.9.23.1 PKCS #9 (1 2 840 113549 1 9) x509Crl (for PKCS #12) -static const unsigned char cvOID_x509Crl[] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x09, 0x17, 0x01}; -//1.2.840.113549.1.12.1 This OID was formerly assigned as PKCS #12 modeID pkcs-12-PbeIds -static const unsigned char cvOID_pkcs_12_PbeIds [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x0C, 0x01}; -//1.2.840.113549.1.12.1.1 PKCS #12 PbeIds (1 2 840 113549 1 12 1). This OID was formerly assigned as pkcs-12-OfflineTransportMode pbeWithSHAAnd128BitRC4 -static const unsigned char cvOID_pbeWithSHAAnd128BitRC4 [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x0C, 0x01, 0x01}; -//1.2.840.113549.1.12.1.2 PKCS #12 PbeIds (1 2 840 113549 1 12 2). This OID was formerly assigned as pkcs-12-OnlineTransportMode pbeWithSHAAnd40BitRC4 -static const unsigned char cvOID_pbeWithSHAAnd40BitRC4 [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x0C, 0x01, 0x02}; -//1.2.840.113549.1.12.1.3 PKCS #12 PbeIds (1 2 840 113549 1 12 3) pbeWithSHAAnd3-KeyTripleDES-CBC -static const unsigned char cvOID_pbeWithSHAAnd3_KeyTripleDES_CBC [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x0C, 0x01, 0x03}; -//1.2.840.113549.1.12.1.4 PKCS #12 PbeIds (1 2 840 113549 1 12 3) pbeWithSHAAnd2-KeyTripleDES-CBC -static const unsigned char cvOID_pbeWithSHAAnd2_KeyTripleDES_CBC [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x0C, 0x01, 0x04}; -//1.2.840.113549.1.12.1.5 PKCS #12 PbeIds (1 2 840 113549 1 12 3) pbeWithSHAAnd128BitRC2-CBC -static const unsigned char cvOID_pbeWithSHAAnd128BitRC2_CBC [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x0C, 0x01, 0x05}; -//1.2.840.113549.1.12.1.6 PKCS #12 PbeIds (1 2 840 113549 1 12 3) pbeWithSHAAnd40BitRC2-CBC -static const unsigned char cvOID_pbeWithSHAAnd40BitRC2_CBC [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x0C, 0x01, 0x06}; -//1.2.840.113549.1.12.2 Deprecated pkcs-12-ESPVKID -static const unsigned char cvOID_pkcs_12_ESPVKID [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x0C, 0x02}; -//1.2.840.113549.1.12.2.1 PKCS #12 ESPVKID (1 2 840 113549 1 12 2). Deprecated, use (1 2 840 113549 1 12 3 5) instead pkcs-12-PKCS8KeyShrouding -static const unsigned char cvOID_pkcs_12_PKCS8KeyShrouding [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x0C, 0x02, 0x01}; -//1.2.840.113549.1.12.3.1 PKCS #12 BagIds (1 2 840 113549 1 12 3) pkcs-12-keyBagId -static const unsigned char cvOID_pkcs_12_keyBagId [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x0C, 0x03, 0x01}; -//1.2.840.113549.1.12.3.2 PKCS #12 BagIds (1 2 840 113549 1 12 3) pkcs-12-certAndCRLBagId -static const unsigned char cvOID_pkcs_12_certAndCRLBagId [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x0C, 0x03, 0x02}; -//1.2.840.113549.1.12.3.3 PKCS #12 BagIds (1 2 840 113549 1 12 3) pkcs-12-secretBagId -static const unsigned char cvOID_pkcs_12_secretBagId [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x0C, 0x03, 0x03}; -//1.2.840.113549.1.12.3.4 PKCS #12 BagIds (1 2 840 113549 1 12 3) pkcs-12-safeContentsId -static const unsigned char cvOID_pkcs_12_safeContentsId [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x0C, 0x03, 0x04}; -//1.2.840.113549.1.12.3.5 PKCS #12 BagIds (1 2 840 113549 1 12 3) pkcs-12-pkcs-8ShroudedKeyBagId -static const unsigned char cvOID_pkcs_12_pkcs_8ShroudedKeyBagId [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x0C, 0x03, 0x05}; -//1.2.840.113549.1.12.4 Deprecated pkcs-12-CertBagID -static const unsigned char cvOID_pkcs_12_CertBagID [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x0C, 0x04}; -//1.2.840.113549.1.12.4.1 PKCS #12 CertBagID (1 2 840 113549 1 12 4). This OID was formerly assigned as pkcs-12-X509CertCRLBag pkcs-12-X509CertCRLBagID -static const unsigned char cvOID_pkcs_12_X509CertCRLBagID [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x0C, 0x04, 0x01}; -//1.2.840.113549.1.12.4.2 PKCS #12 CertBagID (1 2 840 113549 1 12 4). This OID was formerly assigned as pkcs-12-SDSICertBag pkcs-12-SDSICertBagID -static const unsigned char cvOID_pkcs_12_SDSICertBagID [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x0C, 0x04, 0x02}; -//1.2.840.113549.1.12.5.1 PKCS #12 OID (1 2 840 113549 1 12 5). Deprecated, use the partially compatible (1 2 840 113549 1 12 1) OIDs instead pkcs-12-PBEID -static const unsigned char cvOID_pkcs_12_PBEID [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x0C, 0x05, 0x01}; -//1.2.840.113549.1.12.5.1.1 PKCS #12 OID PBEID (1 2 840 113549 1 12 5 1). Deprecated, use (1 2 840 113549 1 12 1 1) instead pkcs-12-PBEWithSha1And128BitRC4 -static const unsigned char cvOID_pkcs_12_PBEWithSha1And128BitRC4 [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x0C, 0x05, 0x01, 0x01}; -//1.2.840.113549.1.12.5.1.2 PKCS #12 OID PBEID (1 2 840 113549 1 12 5 1). Deprecated, use (1 2 840 113549 1 12 1 2) instead pkcs-12-PBEWithSha1And40BitRC4 -static const unsigned char cvOID_pkcs_12_PBEWithSha1And40BitRC4 [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x0C, 0x05, 0x01, 0x02}; -//1.2.840.113549.1.12.5.1.3 PKCS #12 OID PBEID (1 2 840 113549 1 12 5 1). Deprecated, use the incompatible but similar (1 2 840 113549 1 12 1 3) or (1 2 840 113549 1 12 1 4) instead pkcs-12-PBEWithSha1AndTripleDESCBC -static const unsigned char cvOID_pkcs_12_PBEWithSha1AndTripleDESCBC [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x0C, 0x05, 0x01, 0x03}; -//1.2.840.113549.1.12.5.1.4 PKCS #12 OID PBEID (1 2 840 113549 1 12 5 1). Deprecated, use (1 2 840 113549 1 12 1 5) instead pkcs-12-PBEWithSha1And128BitRC2CBC -static const unsigned char cvOID_pkcs_12_PBEWithSha1And128BitRC2CBC [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x0C, 0x05, 0x01, 0x04}; -//1.2.840.113549.1.12.5.1.5 PKCS #12 OID PBEID (1 2 840 113549 1 12 5 1). Deprecated, use (1 2 840 113549 1 12 1 6) instead pkcs-12-PBEWithSha1And40BitRC2CBC -static const unsigned char cvOID_pkcs_12_PBEWithSha1And40BitRC2CBC [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x0C, 0x05, 0x01, 0x05}; -//1.2.840.113549.1.12.5.1.6 PKCS #12 OID PBEID (1 2 840 113549 1 12 5 1). Deprecated, use the incompatible but similar (1 2 840 113549 1 12 1 1) or (1 2 840 113549 1 12 1 2) instead pkcs-12-PBEWithSha1AndRC4 -static const unsigned char cvOID_pkcs_12_PBEWithSha1AndRC4 [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x0C, 0x05, 0x01, 0x06}; -//1.2.840.113549.1.12.5.1.7 PKCS #12 OID PBEID (1 2 840 113549 1 12 5 1). Deprecated, use the incompatible but similar (1 2 840 113549 1 12 1 5) or (1 2 840 113549 1 12 1 6) instead pkcs-12-PBEWithSha1AndRC2CBC -static const unsigned char cvOID_pkcs_12_PBEWithSha1AndRC2CBC [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x0C, 0x05, 0x01, 0x07}; -//1.2.840.113549.1.12.5.2.1 PKCS #12 OID EnvelopingID (1 2 840 113549 1 12 5 2). Deprecated, use the conventional PKCS #1 OIDs instead pkcs-12-RSAEncryptionWith128BitRC4 -static const unsigned char cvOID_pkcs_12_RSAEncryptionWith128BitRC4 [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x0C, 0x05, 0x02, 0x01}; -//1.2.840.113549.1.12.5.2.2 PKCS #12 OID EnvelopingID (1 2 840 113549 1 12 5 2). Deprecated, use the conventional PKCS #1 OIDs instead pkcs-12-RSAEncryptionWith40BitRC4 -static const unsigned char cvOID_pkcs_12_RSAEncryptionWith40BitRC4 [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x0C, 0x05, 0x02, 0x02}; -//1.2.840.113549.1.12.5.2.3 PKCS #12 OID EnvelopingID (1 2 840 113549 1 12 5 2). Deprecated, use the conventional PKCS #1 OIDs instead pkcs-12-RSAEncryptionWithTripleDES -static const unsigned char cvOID_pkcs_12_RSAEncryptionWithTripleDES [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x0C, 0x05, 0x02, 0x03}; -//1.2.840.113549.1.12.5.3.1 PKCS #12 OID SignatureID (1 2 840 113549 1 12 5 3). Deprecated, use the conventional PKCS #1 OIDs instead pkcs-12-RSASignatureWithSHA1Digest -static const unsigned char cvOID_pkcs_12_RSASignatureWithSHA1Digest [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x0C, 0x05, 0x03, 0x01}; -//1.2.840.113549.1.12.10.1.1 PKCS #12 BagIds (1 2 840 113549 1 12 10 1) pkcs-12-keyBag -static const unsigned char cvOID_pkcs_12_keyBag [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x0C, 0x0A, 0x01, 0x01}; -//1.2.840.113549.1.12.10.1.2 PKCS #12 BagIds (1 2 840 113549 1 12 10 1) pkcs-12-pkcs-8ShroudedKeyBag -static const unsigned char cvOID_pkcs_12_pkcs_8ShroudedKeyBag [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x0C, 0x0A, 0x01, 0x02}; -//1.2.840.113549.1.12.10.1.3 PKCS #12 BagIds (1 2 840 113549 1 12 10 1) pkcs-12-certBag -static const unsigned char cvOID_pkcs_12_certBag [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x0C, 0x0A, 0x01, 0x03}; -//1.2.840.113549.1.12.10.1.4 PKCS #12 BagIds (1 2 840 113549 1 12 10 1) pkcs-12-crlBag -static const unsigned char cvOID_pkcs_12_crlBag [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x0C, 0x0A, 0x01, 0x04}; -//1.2.840.113549.1.12.10.1.5 PKCS #12 BagIds (1 2 840 113549 1 12 10 1) pkcs-12-secretBag -static const unsigned char cvOID_pkcs_12_secretBag [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x0C, 0x0A, 0x01, 0x05}; -//1.2.840.113549.1.12.10.1.6 PKCS #12 BagIds (1 2 840 113549 1 12 10 1) pkcs-12-safeContentsBag -static const unsigned char cvOID_pkcs_12_safeContentsBag [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x0C, 0x0A, 0x01, 0x06}; -//1.2.840.113549.2.2 RSADSI digestAlgorithm (1 2 840 113549 2) md2 -static const unsigned char cvOID_md2 [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x02, 0x02}; -//1.2.840.113549.2.4 RSADSI digestAlgorithm (1 2 840 113549 2) md4 -static const unsigned char cvOID_md4 [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x02, 0x04}; -//1.2.840.113549.2.5 RSADSI digestAlgorithm (1 2 840 113549 2) md5 -static const unsigned char cvOID_md5 [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x02, 0x05}; -//1.2.840.113549.3.2 RSADSI encryptionAlgorithm (1 2 840 113549 3) rc2CBC -static const unsigned char cvOID_rc2CBC [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x03, 0x02}; -//1.2.840.113549.3.3 RSADSI encryptionAlgorithm (1 2 840 113549 3) rc2ECB -static const unsigned char cvOID_rc2ECB [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x03, 0x03}; -//1.2.840.113549.3.4 RSADSI encryptionAlgorithm (1 2 840 113549 3) rc4 -static const unsigned char cvOID_rc4 [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x03, 0x04}; -//1.2.840.113549.3.5 RSADSI encryptionAlgorithm (1 2 840 113549 3) rc4WithMAC -static const unsigned char cvOID_rc4WithMAC [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x03, 0x05}; -//1.2.840.113549.3.6 RSADSI encryptionAlgorithm (1 2 840 113549 3) desx-CBC -static const unsigned char cvOID_desx_CBC [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x03, 0x06}; -//1.2.840.113549.3.7 RSADSI encryptionAlgorithm (1 2 840 113549 3) des-EDE3-CBC -static const unsigned char cvOID_des_EDE3_CBC [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x03, 0x07}; -//1.2.840.113549.3.8 RSADSI encryptionAlgorithm (1 2 840 113549 3) rc5CBC -static const unsigned char cvOID_rc5CBC [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x03, 0x08}; -//1.2.840.113549.3.9 RSADSI encryptionAlgorithm (1 2 840 113549 3) rc5-CBCPad -static const unsigned char cvOID_rc5_CBCPad [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x03, 0x09}; -//1.2.840.113549.3.10 RSADSI encryptionAlgorithm (1 2 840 113549 3). Formerly called CDMFCBCPad desCDMF -static const unsigned char cvOID_desCDMF [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x03, 0x0A}; -//1.3.6.1.4.1.188.7.1.1 Ascom Systech ascom -static const unsigned char cvOID_ascom [] = { 0x2B, 0x06, 0x01, 0x04, 0x01, 0x81, 0x3C, 0x07, 0x01, 0x01}; -//1.3.6.1.4.1.188.7.1.1.1 Ascom Systech ideaECB -static const unsigned char cvOID_ideaECB [] = { 0x2B, 0x06, 0x01, 0x04, 0x01, 0x81, 0x3C, 0x07, 0x01, 0x01, 0x01}; -//1.3.6.1.4.1.188.7.1.1.2 Ascom Systech ideaCBC -static const unsigned char cvOID_ideaCBC [] = { 0x2B, 0x06, 0x01, 0x04, 0x01, 0x81, 0x3C, 0x07, 0x01, 0x01, 0x02}; -//1.3.6.1.4.1.188.7.1.1.3 Ascom Systech ideaCFB -static const unsigned char cvOID_ideaCFB [] = { 0x2B, 0x06, 0x01, 0x04, 0x01, 0x81, 0x3C, 0x07, 0x01, 0x01, 0x03}; -//1.3.6.1.4.1.188.7.1.1.4 Ascom Systech ideaOFB -static const unsigned char cvOID_ideaOFB [] = { 0x2B, 0x06, 0x01, 0x04, 0x01, 0x81, 0x3C, 0x07, 0x01, 0x01, 0x04}; -//1.2.840.113556.4.3 Microsoft microsoftExcel -static const unsigned char cvOID_microsoftExcel [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x14, 0x04, 0x03}; -//1.2.840.113556.4.4 Microsoft titledWithOID -static const unsigned char cvOID_titledWithOID [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x14, 0x04, 0x04}; -//1.2.840.113556.4.5 Microsoft microsoftPowerPoint -static const unsigned char cvOID_microsoftPowerPoint [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x14, 0x04, 0x05}; -//1.3.6.1.4.1.311.2.1.4 Microsoft code signing spcIndirectDataContext -static const unsigned char cvOID_spcIndirectDataContext [] = { 0x2B, 0x06, 0x01, 0x04, 0x01, 0x82, 0x37, 0x02, 0x01, 0x04}; -//1.3.6.1.4.1.311.2.1.10 Microsoft code signing. Also known as policyLink spcAgencyInfo -static const unsigned char cvOID_spcAgencyInfo [] = { 0x2B, 0x06, 0x01, 0x04, 0x01, 0x82, 0x37, 0x02, 0x01, 0x0A}; -//1.3.6.1.4.1.311.2.1.11 Microsoft code signing spcStatementType -static const unsigned char cvOID_spcStatementType [] = { 0x2B, 0x06, 0x01, 0x04, 0x01, 0x82, 0x37, 0x02, 0x01, 0x0B}; -//1.3.6.1.4.1.311.2.1.12 Microsoft code signing spcSpOpusInfo -static const unsigned char cvOID_spcSpOpusInfo [] = { 0x2B, 0x06, 0x01, 0x04, 0x01, 0x82, 0x37, 0x02, 0x01, 0x0C}; -//1.3.6.1.4.1.311.2.1.14 Microsoft certReqExtensions -static const unsigned char cvOID_certReqExtensions [] = { 0x2B, 0x06, 0x01, 0x04, 0x01, 0x82, 0x37, 0x02, 0x01, 0x0E}; -//1.3.6.1.4.1.311.2.1.15 Microsoft code signing spcPelmageData -static const unsigned char cvOID_spcPelmageData [] = { 0x2B, 0x06, 0x01, 0x04, 0x01, 0x82, 0x37, 0x02, 0x01, 0x0F}; -//1.3.6.1.4.1.311.2.1.20 Microsoft code signing. Also known as "glue extension" spcLink (type 1) -static const unsigned char cvOID_spcLink_1[] = { 0x2B, 0x06, 0x01, 0x04, 0x01, 0x82, 0x37, 0x02, 0x01, 0x14}; -//1.3.6.1.4.1.311.2.1.21 Microsoft individualCodeSigning -static const unsigned char cvOID_individualCodeSigning [] = { 0x2B, 0x06, 0x01, 0x04, 0x01, 0x82, 0x37, 0x02, 0x01, 0x15}; -//1.3.6.1.4.1.311.2.1.22 Microsoft commercialCodeSigning -static const unsigned char cvOID_commercialCodeSigning [] = { 0x2B, 0x06, 0x01, 0x04, 0x01, 0x82, 0x37, 0x02, 0x01, 0x16}; -//1.3.6.1.4.1.311.2.1.25 Microsoft code signing. Also known as "glue extension" spcLink (type 2) -static const unsigned char cvOID_spcLink_2[] = { 0x2B, 0x06, 0x01, 0x04, 0x01, 0x82, 0x37, 0x02, 0x01, 0x19}; -//1.3.6.1.4.1.311.2.1.26 Microsoft code signing spcMinimalCriteriaInfo -static const unsigned char cvOID_spcMinimalCriteriaInfo [] = { 0x2B, 0x06, 0x01, 0x04, 0x01, 0x82, 0x37, 0x02, 0x01, 0x1A}; -//1.3.6.1.4.1.311.2.1.27 Microsoft code signing spcFinancialCriteriaInfo -static const unsigned char cvOID_spcFinancialCriteriaInfo [] = { 0x2B, 0x06, 0x01, 0x04, 0x01, 0x82, 0x37, 0x02, 0x01, 0x1B}; -//1.3.6.1.4.1.311.2.1.28 Microsoft code signing. Also known as "glue extension" spcLink (type 3) -static const unsigned char cvOID_spcLink_3[] = { 0x2B, 0x06, 0x01, 0x04, 0x01, 0x82, 0x37, 0x02, 0x01, 0x1C}; -//1.3.6.1.4.1.311.3.2.1 Microsoft code signing timestampCountersignature -static const unsigned char cvOID_timestampCountersignature [] = { 0x2B, 0x06, 0x01, 0x04, 0x01, 0x82, 0x37, 0x03, 0x02, 0x01}; -//1.3.6.1.4.1.311.10.1 Microsoft PKCS #7 contentType certTrustList -static const unsigned char cvOID_certTrustList [] = { 0x2B, 0x06, 0x01, 0x04, 0x01, 0x82, 0x37, 0x0A, 0x01}; -//1.3.6.1.4.1.311.10.2 Microsoft nextUpdateLocation -static const unsigned char cvOID_nextUpdateLocation [] = { 0x2B, 0x06, 0x01, 0x04, 0x01, 0x82, 0x37, 0x0A, 0x02}; -//1.3.6.1.4.1.311.10.3.1 Microsoft enhanced key usage certTrustListSigning -static const unsigned char cvOID_certTrustListSigning [] = { 0x2B, 0x06, 0x01, 0x04, 0x01, 0x82, 0x37, 0x0A, 0x03, 0x01}; -//1.3.6.1.4.1.311.10.3.2 Microsoft enhanced key usage timeStampSigning -static const unsigned char cvOID_timeStampSigning [] = { 0x2B, 0x06, 0x01, 0x04, 0x01, 0x82, 0x37, 0x0A, 0x03, 0x02}; -//1.3.6.1.4.1.311.10.3.3 Microsoft enhanced key usage serverGatedCrypto -static const unsigned char cvOID_serverGatedCrypto [] = { 0x2B, 0x06, 0x01, 0x04, 0x01, 0x82, 0x37, 0x0A, 0x03, 0x03}; -//1.3.6.1.4.1.311.10.3.4 Microsoft enhanced key usage encryptedFileSystem -static const unsigned char cvOID_encryptedFileSystem [] = { 0x2B, 0x06, 0x01, 0x04, 0x01, 0x82, 0x37, 0x0A, 0x03, 0x04}; -//1.3.6.1.4.1.311.10.4.1 Microsoft attribute yesnoTrustAttr -static const unsigned char cvOID_yesnoTrustAttr [] = { 0x2B, 0x06, 0x01, 0x04, 0x01, 0x82, 0x37, 0x0A, 0x04, 0x01}; -//1.3.6.1.4.1.311.16.4 Microsoft S/MIME cert attribute microsoftEncryptionCert -static const unsigned char cvOID_microsoftEncryptionCert [] = { 0x2B, 0x06, 0x01, 0x04, 0x01, 0x82, 0x37, 0x10, 0x04}; -//1.3.6.1.4.1.311.20.2.2 Microsoft enhanced key usage smartcardLogon -static const unsigned char cvOID_smartcardLogon [] = { 0x2B, 0x06, 0x01, 0x04, 0x01, 0x82, 0x37, 0x14, 0x02, 0x02}; -//1.3.6.1.4.1.311.21.1 Microsoft attribute cAKeyCertIndexPair -static const unsigned char cvOID_cAKeyCertIndexPair [] = { 0x2B, 0x06, 0x01, 0x04, 0x01, 0x82, 0x37, 0x15, 0x01}; -//1.3.6.1.4.1.311.13.2.2 Microsoft attribute Unknown MS CryptoAPI-related extension -static const unsigned char cvOID_Unknown_MS_CryptoAPI_related_extension [] = { 0x2B, 0x06, 0x01, 0x04, 0x01, 0x82, 0x37, 0x0D, 0x02, 0x02}; -//1.3.6.1.4.1.311.16.4 Microsoft attribute microsoftRecipientInfo -static const unsigned char cvOID_microsoftRecipientInfo [] = { 0x2B, 0x06, 0x01, 0x04, 0x01, 0x82, 0x37, 0x10, 0x04}; -//1.3.6.1.4.1.2428.10.1.1 UNINETT PCA UNINETT policyIdentifier -static const unsigned char cvOID_UNINETT_policyIdentifier [] = { 0x2B, 0x06, 0x01, 0x04, 0x01, 0x92, 0x7C, 0x0A, 0x01, 0x01}; -//1.3.6.1.4.1.2712.10 ICE-TEL CA ICE-TEL policyIdentifier -static const unsigned char cvOID_ICE_TEL_policyIdentifier [] = { 0x2B, 0x06, 0x01, 0x04, 0x01, 0x95, 0x18, 0x0A}; -//1.3.6.1.4.1.2786.1.1.1 ICE-TEL CA policy ICE-TEL Italian policyIdentifier -static const unsigned char cvOID_ICE_TEL_Italian_policyIdentifier [] = { 0x2B, 0x06, 0x01, 0x04, 0x01, 0x95, 0x62, 0x01, 0x01, 0x01}; -//1.3.6.1.4.1.3029.1.1 cryptlib encryption algorithm blowfishECB -static const unsigned char cvOID_blowfishECB [] = { 0x2B, 0x06, 0x01, 0x04, 0x01, 0x97, 0x55, 0x01, 0x01}; -//1.3.6.1.4.1.3029.1.2 cryptlib encr -static const unsigned char cvOID_blowfishCBC [] = { 0x2B, 0x06, 0x01, 0x04, 0x01, 0x97, 0x55, 0x01, 0x02}; -//1.3.6.1.4.1.3029.1.3 cryptlib encryption algorithm blowfishCFB -static const unsigned char cvOID_blowfishCFB [] = { 0x2B, 0x06, 0x01, 0x04, 0x01, 0x97, 0x55, 0x01, 0x03}; -//1.3.6.1.4.1.3029.1.4 cryptlib encryption algorithm blowfishOFB -static const unsigned char cvOID_blowfishOFB [] = { 0x2B, 0x06, 0x01, 0x04, 0x01, 0x97, 0x55, 0x01, 0x04}; -//1.3.6.1.4.1.3029.3.1 cryptlib public-key algorithm elgamal -static const unsigned char cvOID_elgamal [] = { 0x2B, 0x06, 0x01, 0x04, 0x01, 0x97, 0x55, 0x03, 0x01}; -//1.3.6.1.4.1.3029.3.1.1 cryptlib public-key algorithm elgamalWithSHA-1 -static const unsigned char cvOID_elgamalWithSHA_1 [] = { 0x2B, 0x06, 0x01, 0x04, 0x01, 0x97, 0x55, 0x03, 0x01, 0x01}; -//1.3.6.1.4.1.3029.3.1.2 cryptlib public-key algorithm elgamalWithRIPEMD-160 -static const unsigned char cvOID_elgamalWithRIPEMD_160 [] = { 0x2B, 0x06, 0x01, 0x04, 0x01, 0x97, 0x55, 0x03, 0x01, 0x02}; -//1.3.6.1.4.1.3029.32.1 cryptlib cryptlibPrivateKey -static const unsigned char cvOID_cryptlibPrivateKey [] = { 0x2B, 0x06, 0x01, 0x04, 0x01, 0x97, 0x55, 0x20, 0x01}; -//1.3.6.1.4.1.3029.42.11172.1 cryptlib special MPEG-of-cat OID mpeg-1 -static const unsigned char cvOID_mpeg_1 [] = { 0x2B, 0x06, 0x01, 0x04, 0x01, 0x97, 0x55, 0x2A, 0xD7, 0x24, 0x01}; -//1.3.6.1.5.5.7.1 PKIX privateExtension -static const unsigned char cvOID_privateExtension [] = { 0x2B, 0x06, 0x01, 0x05, 0x05, 0x07, 0x01}; -//1.3.6.1.5.5.7.1.1 PKIX private extension authorityInfoAccess -static const unsigned char cvOID_authorityInfoAccess [] = { 0x2B, 0x06, 0x01, 0x05, 0x05, 0x07, 0x01, 0x01}; - -//ame -//1.3.6.1.5.5.7.1.11 PKIX private extension subjectInfoAccess -static const unsigned char cvOID_subjectInfoAccess [] = { 0x2B, 0x06, 0x01, 0x05, 0x05, 0x07, 0x01, 0x0a}; - -//1.3.6.1.5.5.7.2 PKIX policyQualifierIds -static const unsigned char cvOID_policyQualifierIds [] = { 0x2B, 0x06, 0x01, 0x05, 0x05, 0x07, 0x02}; -//1.3.6.1.5.5.7.2.1 PKIX policy qualifier cps -static const unsigned char cvOID_cps [] = { 0x2B, 0x06, 0x01, 0x05, 0x05, 0x07, 0x02, 0x01}; -//1.3.6.1.5.5.7.2.2 PKIX policy qualifier unotice -static const unsigned char cvOID_unotice [] = { 0x2B, 0x06, 0x01, 0x05, 0x05, 0x07, 0x02, 0x02}; -//1.3.6.1.5.5.7.3 PKIX keyPurpose -static const unsigned char cvOID_keyPurpose [] = { 0x2B, 0x06, 0x01, 0x05, 0x05, 0x07, 0x03}; -//1.3.6.1.5.5.7.3.1 PKIX key purpose serverAuth -static const unsigned char cvOID_serverAuth [] = { 0x2B, 0x06, 0x01, 0x05, 0x05, 0x07, 0x03, 0x01}; -//1.3.6.1.5.5.7.3.2 PKIX key purpose clientAuth -static const unsigned char cvOID_clientAuth [] = { 0x2B, 0x06, 0x01, 0x05, 0x05, 0x07, 0x03, 0x02}; -//1.3.6.1.5.5.7.3.3 PKIX key purpose codeSigning -static const unsigned char cvOID_codeSigning [] = { 0x2B, 0x06, 0x01, 0x05, 0x05, 0x07, 0x03, 0x03}; -//1.3.6.1.5.5.7.3.4 PKIX key purpose emailProtection -static const unsigned char cvOID_emailProtection [] = { 0x2B, 0x06, 0x01, 0x05, 0x05, 0x07, 0x03, 0x04}; -//1.3.6.1.5.5.7.3.5 PKIX key purpose ipsecEndSystem -static const unsigned char cvOID_ipsecEndSystem [] = { 0x2B, 0x06, 0x01, 0x05, 0x05, 0x07, 0x03, 0x05}; -//1.3.6.1.5.5.7.3.6 PKIX key purpose ipsecTunnel -static const unsigned char cvOID_ipsecTunnel [] = { 0x2B, 0x06, 0x01, 0x05, 0x05, 0x07, 0x03, 0x06}; -//1.3.6.1.5.5.7.3.7 PKIX key purpose ipsecUser -static const unsigned char cvOID_ipsecUser [] = { 0x2B, 0x06, 0x01, 0x05, 0x05, 0x07, 0x03, 0x07}; -//1.3.6.1.5.5.7.3.8 PKIX key purpose timeStamping -static const unsigned char cvOID_timeStamping [] = { 0x2B, 0x06, 0x01, 0x05, 0x05, 0x07, 0x03, 0x08}; -//ame -//1.3.6.1.5.5.7.3.9 PKIX key purpose OCSPSigning -static const unsigned char cvOID_OCSPSigning [] = { 0x2B, 0x06, 0x01, 0x05, 0x05, 0x07, 0x03, 0x09}; -//1.3.6.1.5.5.7.4 PKIX cmpInformationTypes -static const unsigned char cvOID_cmpInformationTypes [] = { 0x2B, 0x06, 0x01, 0x05, 0x05, 0x07, 0x04}; -//1.3.6.1.5.5.7.4.1 PKIX CMP information caProtEncCert -static const unsigned char cvOID_caProtEncCert [] = { 0x2B, 0x06, 0x01, 0x05, 0x05, 0x07, 0x04, 0x01}; -//1.3.6.1.5.5.7.4.2 PKIX CMP information signKeyPairTypes -static const unsigned char cvOID_signKeyPairTypes [] = { 0x2B, 0x06, 0x01, 0x05, 0x05, 0x07, 0x04, 0x02}; -//1.3.6.1.5.5.7.4.3 PKIX CMP information encKeyPairTypes -static const unsigned char cvOID_encKeyPairTypes [] = { 0x2B, 0x06, 0x01, 0x05, 0x05, 0x07, 0x04, 0x03}; -//1.3.6.1.5.5.7.4.4 PKIX CMP information preferredSymmAlg -static const unsigned char cvOID_preferredSymmAlg [] = { 0x2B, 0x06, 0x01, 0x05, 0x05, 0x07, 0x04, 0x04}; -//1.3.6.1.5.5.7.4.5 PKIX CMP information caKeyUpdateInfo -static const unsigned char cvOID_caKeyUpdateInfo [] = { 0x2B, 0x06, 0x01, 0x05, 0x05, 0x07, 0x04, 0x05}; -//1.3.6.1.5.5.7.4.6 PKIX CMP information currentCRL -static const unsigned char cvOID_currentCRL [] = { 0x2B, 0x06, 0x01, 0x05, 0x05, 0x07, 0x04, 0x06}; -//1.3.6.1.5.5.7.6.3 PKIX algorithm dh-sig-hmac-sha1 -static const unsigned char cvOID_dh_sig_hmac_sha1 [] = { 0x2B, 0x06, 0x01, 0x05, 0x05, 0x07, 0x06, 0x03}; -//1.3.6.1.5.5.7.6.4 PKIX algorithm dh-pop -static const unsigned char cvOID_dh_pop [] = { 0x2B, 0x06, 0x01, 0x05, 0x05, 0x07, 0x06, 0x04}; -//1.3.6.1.5.5.7.48.1 PKIX authority info access descriptor ocsp -static const unsigned char cvOID_ocsp [] = { 0x2B, 0x06, 0x01, 0x05, 0x05, 0x07, 0x30, 0x01}; -//1.3.6.1.5.5.7.48.2 PKIX authority info access descriptor caIssuers -static const unsigned char cvOID_caIssuers [] = { 0x2B, 0x06, 0x01, 0x05, 0x05, 0x07, 0x30, 0x02}; - -//ame -//1.3.6.1.5.5.7.48.3 PKIX subject info access descriptor timeStamping -static const unsigned char cvOID_info_timeStamping [] = { 0x2B, 0x06, 0x01, 0x05, 0x05, 0x07, 0x30, 0x03}; -//1.3.6.1.5.5.7.48.5 PKIX subject info access descriptor caRepository -static const unsigned char cvOID_caRepository [] = { 0x2B, 0x06, 0x01, 0x05, 0x05, 0x07, 0x30, 0x05}; - -//1.3.6.1.5.5.8.1.1 ISAKMP HMAC algorithm HMAC-MD5 -static const unsigned char cvOID_HMAC_MD5 [] = { 0x2B, 0x06, 0x01, 0x05, 0x05, 0x08, 0x01, 0x01}; -//1.3.6.1.5.5.8.1.2 ISAKMP HMAC algorithm HMAC-SHA -static const unsigned char cvOID_HMAC_SHA [] = { 0x2B, 0x06, 0x01, 0x05, 0x05, 0x08, 0x01, 0x02}; -//1.3.6.1.5.5.8.1.3 ISAKMP HMAC algorithm HMAC-Tiger -static const unsigned char cvOID_HMAC_Tiger [] = { 0x2B, 0x06, 0x01, 0x05, 0x05, 0x08, 0x01, 0x03}; -//1.3.6.1.5.5.8.2.2 ipsec_kp_ike_intermediate -static const unsigned char cvOID_iKEIntermediate[] = { 0x2B, 0x06, 0x01, 0x05, 0x05, 0x08, 0x02, 0x02}; - -//1.3.12.2.1011.7.1 DASS algorithm decEncryptionAlgorithm -static const unsigned char cvOID_decEncryptionAlgorithm [] = { 0x2B, 0x0C, 0x02, 0x87, 0x73, 0x07, 0x01}; -//1.3.12.2.1011.7.1.2 DASS encryption algorithm decDEA -static const unsigned char cvOID_decDEA [] = { 0x2B, 0x0C, 0x02, 0x87, 0x73, 0x07, 0x01, 0x02}; -//1.3.12.2.1011.7.2 DASS algorithm decHashAlgorithm -static const unsigned char cvOID_decHashAlgorithm [] = { 0x2B, 0x0C, 0x02, 0x87, 0x73, 0x07, 0x02}; -//1.3.12.2.1011.7.2.1 DASS hash algorithm decMD2 -static const unsigned char cvOID_decMD2 [] = { 0x2B, 0x0C, 0x02, 0x87, 0x73, 0x07, 0x02, 0x01}; -//1.3.12.2.1011.7.2.2 DASS hash algorithm decMD4 -static const unsigned char cvOID_decMD4 [] = { 0x2B, 0x0C, 0x02, 0x87, 0x73, 0x07, 0x02, 0x02}; -//1.3.12.2.1011.7.3 DASS algorithm decSignatureAlgorithm -static const unsigned char cvOID_decSignatureAlgorithm [] = { 0x2B, 0x0C, 0x02, 0x87, 0x73, 0x07, 0x03}; -//1.3.12.2.1011.7.3.1 DASS signature algorithm decMD2withRSA -static const unsigned char cvOID_decMD2withRSA [] = { 0x2B, 0x0C, 0x02, 0x87, 0x73, 0x07, 0x03, 0x01}; -//1.3.12.2.1011.7.3.2 DASS signature algorithm decMD4withRSA -static const unsigned char cvOID_decMD4withRSA [] = { 0x2B, 0x0C, 0x02, 0x87, 0x73, 0x07, 0x03, 0x02}; -//1.3.12.2.1011.7.3.3 DASS signature algorithm decDEAMAC -static const unsigned char cvOID_decDEAMAC [] = { 0x2B, 0x0C, 0x02, 0x87, 0x73, 0x07, 0x03, 0x03}; -//1.3.14.2.26.5 Unsure about this OID sha -static const unsigned char cvOID_sha [] = { 0x2B, 0x0E, 0x02, 0x1A, 0x05}; -//1.3.14.3.2.1.1 X.509. Unsure about this OID rsa -static const unsigned char cvOID_rsa [] = { 0x2B, 0x0E, 0x03, 0x02, 0x01, 0x01}; -//1.3.14.3.2.2 Oddball OIW OID md4WitRSA -static const unsigned char cvOID_md4WitRSA [] = { 0x2B, 0x0E, 0x03, 0x02, 0x02}; -//1.3.14.3.2.3 Oddball OIW OID md5WithRSA -static const unsigned char cvOID_md5WithRSA [] = { 0x2B, 0x0E, 0x03, 0x02, 0x03}; -//1.3.14.3.2.4 Oddball OIW OID md4WithRSAEncryption -static const unsigned char cvOID_md4WithRSAEncryption [] = { 0x2B, 0x0E, 0x03, 0x02, 0x04}; -//1.3.14.3.2.2.1 X.509. Deprecated sqmod-N -static const unsigned char cvOID_sqmod_N [] = { 0x2B, 0x0E, 0x03, 0x02, 0x02, 0x01}; -//1.3.14.3.2.3.1 X.509. Deprecated sqmod-NwithRSA -static const unsigned char cvOID_sqmod_NwithRSA [] = { 0x2B, 0x0E, 0x03, 0x02, 0x03, 0x01}; -//1.3.14.3.2.11 ISO 9796-2, also X9.31 Part 1 rsaSignature -static const unsigned char cvOID_rsaSignature [] = { 0x2B, 0x0E, 0x03, 0x02, 0x0B}; -////1.3.14.3.2.12 OIW?, supposedly from an incomplete version of SDN.701 (doesn't match final SDN.701) dsa -//static const unsigned char cvOID_dsa [] = { 0x2B, 0x0E, 0x03, 0x02, 0x0C}; -//1.3.14.3.2.14 Oddball OIW OID using 9796-2 padding rules mdc2WithRSASignature -static const unsigned char cvOID_mdc2WithRSASignature [] = { 0x2B, 0x0E, 0x03, 0x02, 0x0E}; -//1.3.14.3.2.15 Oddball OIW OID using 9796-2 padding rules shaWithRSASignature -static const unsigned char cvOID_shaWithRSASignature [] = { 0x2B, 0x0E, 0x03, 0x02, 0x0F}; -//1.3.14.3.2.16 Oddball OIW OID. Deprecated, use a plain DH OID instead dhWithCommonModulus -static const unsigned char cvOID_dhWithCommonModulus [] = { 0x2B, 0x0E, 0x03, 0x02, 0x10}; -//1.3.14.3.2.17 Oddball OIW OID. Mode is ECB desEDE -static const unsigned char cvOID_desEDE [] = { 0x2B, 0x0E, 0x03, 0x02, 0x11}; -////1.3.14.3.2.18 Oddball OIW OID sha -//static const unsigned char cvOID_sha [] = { 0x2B, 0x0E, 0x03, 0x02, 0x12}; -//1.3.14.3.2.19 Oddball OIW OID, DES-based hash, planned for X9.31 Part 2 mdc-2 -static const unsigned char cvOID_mdc_2 [] = { 0x2B, 0x0E, 0x03, 0x02, 0x13}; -//1.3.14.3.2.20 Oddball OIW OID. Deprecated, use a plain DSA OID instead dsaCommon -static const unsigned char cvOID_dsaCommon [] = { 0x2B, 0x0E, 0x03, 0x02, 0x14}; -//1.3.14.3.2.21 Oddball OIW OID. Deprecated, use a plain dsaWithSHA OID instead dsaCommonWithSHA -static const unsigned char cvOID_dsaCommonWithSHA [] = { 0x2B, 0x0E, 0x03, 0x02, 0x15}; -//1.3.14.3.2.22 Oddball OIW OID rsaKeyTransport -static const unsigned char cvOID_rsaKeyTransport [] = { 0x2B, 0x0E, 0x03, 0x02, 0x16}; -//1.3.14.3.2.23 Oddball OIW OID keyed-hash-seal -static const unsigned char cvOID_keyed_hash_seal [] = { 0x2B, 0x0E, 0x03, 0x02, 0x17}; -//1.3.14.3.2.24 Oddball OIW OID using 9796-2 padding rules md2WithRSASignature -static const unsigned char cvOID_md2WithRSASignature [] = { 0x2B, 0x0E, 0x03, 0x02, 0x18}; -//1.3.14.3.2.25 Oddball OIW OID using 9796-2 padding rules md5WithRSASignature -static const unsigned char cvOID_md5WithRSASignature [] = { 0x2B, 0x0E, 0x03, 0x02, 0x19}; -//1.3.14.3.2.26 OIW sha1 -static const unsigned char cvOID_sha1 [] = { 0x2B, 0x0E, 0x03, 0x02, 0x1A}; -//1.3.14.3.2.27 OIW. This OID may also be assigned as ripemd-160 dsaWithSHA1 -static const unsigned char cvOID_dsaWithSHA1 [] = { 0x2B, 0x0E, 0x03, 0x02, 0x1B}; -//1.3.14.3.2.28 OIW dsaWithCommonSHA1 -static const unsigned char cvOID_dsaWithCommonSHA1 [] = { 0x2B, 0x0E, 0x03, 0x02, 0x1C}; -//1.3.14.3.2.29 Oddball OIW OID sha-1WithRSAEncryption -static const unsigned char cvOID_sha_1WithRSAEncryption [] = { 0x2B, 0x0E, 0x03, 0x02, 0x1D}; -//1.3.14.3.3.1 Oddball OIW OID simple-strong-auth-mechanism -static const unsigned char cvOID_simple_strong_auth_mechanism [] = { 0x2B, 0x0E, 0x03, 0x03, 0x01}; -//1.3.14.7.2.1.1 Unsure about this OID ElGamal -static const unsigned char cvOID_ElGamal [] = { 0x2B, 0x0E, 0x07, 0x02, 0x01, 0x01}; -//1.3.14.7.2.3.1 Unsure about this OID md2WithRSA -static const unsigned char cvOID_md2WithRSA [] = { 0x2B, 0x0E, 0x07, 0x02, 0x03, 0x01}; -//1.3.14.7.2.3.2 Unsure about this OID md2WithElGamal -static const unsigned char cvOID_md2WithElGamal [] = { 0x2B, 0x0E, 0x07, 0x02, 0x03, 0x02}; -//1.3.36.1 Teletrust document document -static const unsigned char cvOID_document [] = { 0x2B, 0x24, 0x01}; -//1.3.36.1.1 Teletrust document finalVersion -static const unsigned char cvOID_finalVersion [] = { 0x2B, 0x24, 0x01, 0x01}; -//1.3.36.1.2 Teletrust document draft -static const unsigned char cvOID_draft [] = { 0x2B, 0x24, 0x01, 0x02}; -//1.3.36.2 Teletrust sio sio -static const unsigned char cvOID_sio [] = { 0x2B, 0x24, 0x02}; -//1.3.36.2.1 Teletrust sio sedu -static const unsigned char cvOID_sedu [] = { 0x2B, 0x24, 0x02, 0x01}; -//1.3.36.3 Teletrust algorithm algorithm -static const unsigned char cvOID_algorithm_Teletrust[] = { 0x2B, 0x24, 0x03}; -//1.3.36.3.1 Teletrust algorithm encryptionAlgorithm -static const unsigned char cvOID_encryptionAlgorithm_Teletrust [] = { 0x2B, 0x24, 0x03, 0x01}; -//1.3.36.3.1.1 Teletrust encryption algorithm des -static const unsigned char cvOID_des_Teletrust [] = { 0x2B, 0x24, 0x03, 0x01, 0x01}; -//1.3.36.3.1.1.1 Teletrust encryption algorithm desECB_pad -static const unsigned char cvOID_desECB_pad [] = { 0x2B, 0x24, 0x03, 0x01, 0x01, 0x01}; -//1.3.36.3.1.1.1.1 Teletrust encryption algorithm desECB_ISOpad -static const unsigned char cvOID_desECB_ISOpad [] = { 0x2B, 0x24, 0x03, 0x01, 0x01, 0x01, 0x01}; -//1.3.36.3.1.1.2.1 Teletrust encryption algorithm desCBC_pad -static const unsigned char cvOID_desCBC_pad [] = { 0x2B, 0x24, 0x03, 0x01, 0x01, 0x02, 0x01}; -//1.3.36.3.1.1.2.1.1 Teletrust encryption algorithm desCBC_ISOpad -static const unsigned char cvOID_desCBC_ISOpad [] = { 0x2B, 0x24, 0x03, 0x01, 0x01, 0x02, 0x01, 0x01}; -//1.3.36.3.1.3 Teletrust encryption algorithm des_3 -static const unsigned char cvOID_des_3 [] = { 0x2B, 0x24, 0x03, 0x01, 0x03}; -//1.3.36.3.1.3.1.1 Teletrust encryption algorithm. EDE triple DES des_3ECB_pad -static const unsigned char cvOID_des_3ECB_pad [] = { 0x2B, 0x24, 0x03, 0x01, 0x03, 0x01, 0x01}; -//1.3.36.3.1.3.1.1.1 Teletrust encryption algorithm. EDE triple DES des_3ECB_ISOpad -static const unsigned char cvOID_des_3ECB_ISOpad [] = { 0x2B, 0x24, 0x03, 0x01, 0x03, 0x01, 0x01, 0x01}; -//1.3.36.3.1.3.2.1 Teletrust encryption algorithm. EDE triple DES des_3CBC_pad -static const unsigned char cvOID_des_3CBC_pad [] = { 0x2B, 0x24, 0x03, 0x01, 0x03, 0x02, 0x01}; -//1.3.36.3.1.3.2.1.1 Teletrust encryption algorithm. EDE triple DES des_3CBC_ISOpad -static const unsigned char cvOID_des_3CBC_ISOpad [] = { 0x2B, 0x24, 0x03, 0x01, 0x03, 0x02, 0x01, 0x01}; -//1.3.36.3.1.2 Teletrust encryption algorithm idea -static const unsigned char cvOID_idea_Teletrust [] = { 0x2B, 0x24, 0x03, 0x01, 0x02}; -//1.3.36.3.1.2.1 Teletrust encryption algorithm ideaECB -static const unsigned char cvOID_ideaECB_Teletrust [] = { 0x2B, 0x24, 0x03, 0x01, 0x02, 0x01}; -//1.3.36.3.1.2.1.1 Teletrust encryption algorithm ideaECB_pad -static const unsigned char cvOID_ideaECB_pad [] = { 0x2B, 0x24, 0x03, 0x01, 0x02, 0x01, 0x01}; -//1.3.36.3.1.2.1.1.1 Teletrust encryption algorithm ideaECB_ISOpad -static const unsigned char cvOID_ideaECB_ISOpad [] = { 0x2B, 0x24, 0x03, 0x01, 0x02, 0x01, 0x01, 0x01}; -//1.3.36.3.1.2.2 Teletrust encryption algorithm ideaCBC -static const unsigned char cvOID_ideaCBC_Teletrust [] = { 0x2B, 0x24, 0x03, 0x01, 0x02, 0x02}; -//1.3.36.3.1.2.2.1 Teletrust encryption algorithm ideaCBC_pad -static const unsigned char cvOID_ideaCBC_pad [] = { 0x2B, 0x24, 0x03, 0x01, 0x02, 0x02, 0x01}; -//1.3.36.3.1.2.2.1.1 Teletrust encryption algorithm ideaCBC_ISOpad -static const unsigned char cvOID_ideaCBC_ISOpad [] = { 0x2B, 0x24, 0x03, 0x01, 0x02, 0x02, 0x01, 0x01}; -//1.3.36.3.1.2.3 Teletrust encryption algorithm ideaOFB -static const unsigned char cvOID_ideaOFB_Teletrust [] = { 0x2B, 0x24, 0x03, 0x01, 0x02, 0x03}; -//1.3.36.3.1.2.4 Teletrust encryption algorithm ideaCFB -static const unsigned char cvOID_ideaCFB_Teletrust [] = { 0x2B, 0x24, 0x03, 0x01, 0x02, 0x04}; -//1.3.36.3.1.4 Teletrust encryption algorithm rsaEncryption -static const unsigned char cvOID_rsaEncryption_Teletrust [] = { 0x2B, 0x24, 0x03, 0x01, 0x04}; -//1.3.36.3.1.4.512.17 Teletrust encryption algorithm rsaEncryptionWithlmod512expe17 -static const unsigned char cvOID_rsaEncryptionWithlmod512expe17 [] = { 0x2B, 0x24, 0x03, 0x01, 0x04, 0x84, 0x00, 0x11}; -//1.3.36.3.1.5 Teletrust encryption algorithm bsi-1 -static const unsigned char cvOID_bsi_1 [] = { 0x2B, 0x24, 0x03, 0x01, 0x05}; -//1.3.36.3.1.5.1 Teletrust encryption algorithm bsi_1ECB_pad -static const unsigned char cvOID_bsi_1ECB_pad [] = { 0x2B, 0x24, 0x03, 0x01, 0x05, 0x01}; -//1.3.36.3.1.5.2 Teletrust encryption algorithm bsi_1CBC_pad -static const unsigned char cvOID_bsi_1CBC_pad [] = { 0x2B, 0x24, 0x03, 0x01, 0x05, 0x02}; -//1.3.36.3.1.5.2.1 Teletrust encryption algorithm bsi_1CBC_PEMpad -static const unsigned char cvOID_bsi_1CBC_PEMpad [] = { 0x2B, 0x24, 0x03, 0x01, 0x05, 0x02, 0x01}; -//1.3.36.3.2 Teletrust algorithm hashAlgorithm -static const unsigned char cvOID_hashAlgorithm [] = { 0x2B, 0x24, 0x03, 0x02}; -//1.3.36.3.2.1 Teletrust hash algorithm ripemd160 -static const unsigned char cvOID_ripemd160_Teletrust [] = { 0x2B, 0x24, 0x03, 0x02, 0x01}; -//1.3.36.3.2.2 Teletrust hash algorithm ripemd128 -static const unsigned char cvOID_ripemd128_Teletrust [] = { 0x2B, 0x24, 0x03, 0x02, 0x02}; -//1.3.36.3.2.3 Teletrust hash algorithm ripemd256 -static const unsigned char cvOID_ripemd256 [] = { 0x2B, 0x24, 0x03, 0x02, 0x03}; -//1.3.36.3.2.4 Teletrust hash algorithm mdc2singleLength -static const unsigned char cvOID_mdc2singleLength [] = { 0x2B, 0x24, 0x03, 0x02, 0x04}; -//1.3.36.3.2.5 Teletrust hash algorithm mdc2doubleLength -static const unsigned char cvOID_mdc2doubleLength [] = { 0x2B, 0x24, 0x03, 0x02, 0x05}; -//1.3.36.3.3 Teletrust algorithm signatureAlgorithm -static const unsigned char cvOID_signatureAlgorithm [] = { 0x2B, 0x24, 0x03, 0x03}; -//1.3.36.3.3.1 Teletrust signature algorithm rsaSignature -static const unsigned char cvOID_rsaSignature_Teletrust [] = { 0x2B, 0x24, 0x03, 0x03, 0x01}; -//1.3.36.3.3.1.1 Teletrust signature algorithm rsaSignatureWithsha1 -static const unsigned char cvOID_rsaSignatureWithsha1 [] = { 0x2B, 0x24, 0x03, 0x03, 0x01, 0x01}; -//1.3.36.3.3.1.1.512.2 Teletrust signature algorithm rsaSignatureWithsha1_l512_l2 -static const unsigned char cvOID_rsaSignatureWithsha1_l512_l2 [] = { 0x2B, 0x24, 0x03, 0x03, 0x01, 0x01, 0x84, 0x00, 0x02}; -//1.3.36.3.3.1.1.640.2 Teletrust signature algorithm rsaSignatureWithsha1_l640_l2 -static const unsigned char cvOID_rsaSignatureWithsha1_l640_l2 [] = { 0x2B, 0x24, 0x03, 0x03, 0x01, 0x01, 0x85, 0x00, 0x02}; -//1.3.36.3.3.1.1.768.2 Teletrust signature algorithm rsaSignatureWithsha1_l768_l2 -static const unsigned char cvOID_rsaSignatureWithsha1_l768_l2 [] = { 0x2B, 0x24, 0x03, 0x03, 0x01, 0x01, 0x86, 0x00, 0x02}; -//1.3.36.3.3.1.1.892.2 Teletrust signature algorithm rsaSignatureWithsha1_l896_l2 -static const unsigned char cvOID_rsaSignatureWithsha1_l896_l2 [] = { 0x2B, 0x24, 0x03, 0x03, 0x01, 0x01, 0x87, 0x00, 0x02}; -//1.3.36.3.3.1.1.1024.2 Teletrust signature algorithm rsaSignatureWithsha1_l1024_l2 -static const unsigned char cvOID_rsaSignatureWithsha1_l1024_l2 [] = { 0x2B, 0x24, 0x03, 0x03, 0x01, 0x01, 0x88, 0x00, 0x02}; -//1.3.36.3.3.1.1.512.3 Teletrust signature algorithm rsaSignatureWithsha1_l512_l3 -static const unsigned char cvOID_rsaSignatureWithsha1_l512_l3 [] = { 0x2B, 0x24, 0x03, 0x03, 0x01, 0x01, 0x84, 0x00, 0x03}; -//1.3.36.3.3.1.1.640.3 Teletrust signature algorithm rsaSignatureWithsha1_l640_l3 -static const unsigned char cvOID_rsaSignatureWithsha1_l640_l3 [] = { 0x2B, 0x24, 0x03, 0x03, 0x01, 0x01, 0x85, 0x00, 0x03}; -//1.3.36.3.3.1.1.768.3 Teletrust signature algorithm rsaSignatureWithsha1_l768_l3 -static const unsigned char cvOID_rsaSignatureWithsha1_l768_l3 [] = { 0x2B, 0x24, 0x03, 0x03, 0x01, 0x01, 0x86, 0x00, 0x03}; -//1.3.36.3.3.1.1.896.3 Teletrust signature algorithm rsaSignatureWithsha1_l896_l3 -static const unsigned char cvOID_rsaSignatureWithsha1_l896_l3 [] = { 0x2B, 0x24, 0x03, 0x03, 0x01, 0x01, 0x87, 0x00, 0x03}; -//1.3.36.3.3.1.1.1024.3 Teletrust signature algorithm rsaSignatureWithsha1_l1024_l3 -static const unsigned char cvOID_rsaSignatureWithsha1_l1024_l3 [] = { 0x2B, 0x24, 0x03, 0x03, 0x01, 0x01, 0x88, 0x00, 0x03}; -//1.3.36.3.3.1.1.512.5 Teletrust signature algorithm rsaSignatureWithsha1_l512_l5 -static const unsigned char cvOID_rsaSignatureWithsha1_l512_l5 [] = { 0x2B, 0x24, 0x03, 0x03, 0x01, 0x01, 0x84, 0x00, 0x05}; -//1.3.36.3.3.1.1.640.5 Teletrust signature algorithm rsaSignatureWithsha1_l640_l5 -static const unsigned char cvOID_rsaSignatureWithsha1_l640_l5 [] = { 0x2B, 0x24, 0x03, 0x03, 0x01, 0x01, 0x85, 0x00, 0x05}; -//1.3.36.3.3.1.1.768.5 Teletrust signature algorithm rsaSignatureWithsha1_l768_l5 -static const unsigned char cvOID_rsaSignatureWithsha1_l768_l5 [] = { 0x2B, 0x24, 0x03, 0x03, 0x01, 0x01, 0x86, 0x00, 0x05}; -//1.3.36.3.3.1.1.896.5 Teletrust signature algorithm rsaSignatureWithsha1_l896_l5 -static const unsigned char cvOID_rsaSignatureWithsha1_l896_l5 [] = { 0x2B, 0x24, 0x03, 0x03, 0x01, 0x01, 0x87, 0x00, 0x05}; -//1.3.36.3.3.1.1.1024.5 Teletrust signature algorithm rsaSignatureWithsha1_l1024_l5 -static const unsigned char cvOID_rsaSignatureWithsha1_l1024_l5 [] = { 0x2B, 0x24, 0x03, 0x03, 0x01, 0x01, 0x88, 0x00, 0x05}; -//1.3.36.3.3.1.1.512.9 Teletrust signature algorithm rsaSignatureWithsha1_l512_l9 -static const unsigned char cvOID_rsaSignatureWithsha1_l512_l9 [] = { 0x2B, 0x24, 0x03, 0x03, 0x01, 0x01, 0x84, 0x00, 0x09}; -//1.3.36.3.3.1.1.640.9 Teletrust signature algorithm rsaSignatureWithsha1_l640_l9 -static const unsigned char cvOID_rsaSignatureWithsha1_l640_l9 [] = { 0x2B, 0x24, 0x03, 0x03, 0x01, 0x01, 0x85, 0x00, 0x09}; -//1.3.36.3.3.1.1.768.9 Teletrust signature algorithm rsaSignatureWithsha1_l768_l9 -static const unsigned char cvOID_rsaSignatureWithsha1_l768_l9 [] = { 0x2B, 0x24, 0x03, 0x03, 0x01, 0x01, 0x86, 0x00, 0x09}; -//1.3.36.3.3.1.1.896.9 Teletrust signature algorithm rsaSignatureWithsha1_l896_l9 -static const unsigned char cvOID_rsaSignatureWithsha1_l896_l9 [] = { 0x2B, 0x24, 0x03, 0x03, 0x01, 0x01, 0x87, 0x00, 0x09}; -//1.3.36.3.3.1.1.1024.9 Teletrust signature algorithm rsaSignatureWithsha1_l1024_l9 -static const unsigned char cvOID_rsaSignatureWithsha1_l1024_l9 [] = { 0x2B, 0x24, 0x03, 0x03, 0x01, 0x01, 0x88, 0x00, 0x09}; -//1.3.36.3.3.1.1.512.11 Teletrust signature algorithm rsaSignatureWithsha1_l512_l11 -static const unsigned char cvOID_rsaSignatureWithsha1_l512_l11 [] = { 0x2B, 0x24, 0x03, 0x03, 0x01, 0x01, 0x84, 0x00, 0x11}; -//1.3.36.3.3.1.1.640.11 Teletrust signature algorithm rsaSignatureWithsha1_l640_l11 -static const unsigned char cvOID_rsaSignatureWithsha1_l640_l11 [] = { 0x2B, 0x24, 0x03, 0x03, 0x01, 0x01, 0x85, 0x00, 0x11}; -//1.3.36.3.3.1.1.768.11 Teletrust signature algorithm rsaSignatureWithsha1_l768_l11 -static const unsigned char cvOID_rsaSignatureWithsha1_l768_l11 [] = { 0x2B, 0x24, 0x03, 0x03, 0x01, 0x01, 0x86, 0x00, 0x11}; -//1.3.36.3.3.1.1.896.11 Teletrust signature algorithm rsaSignatureWithsha1_l896_l11 -static const unsigned char cvOID_rsaSignatureWithsha1_l896_l11 [] = { 0x2B, 0x24, 0x03, 0x03, 0x01, 0x01, 0x87, 0x00, 0x11}; -//1.3.36.3.3.1.1.1024.11 Teletrust signature algorithm rsaSignatureWithsha1_l1024_l11 -static const unsigned char cvOID_rsaSignatureWithsha1_l1024_l11 [] = { 0x2B, 0x24, 0x03, 0x03, 0x01, 0x01, 0x88, 0x00, 0x11}; -//1.3.36.3.3.1.2 Teletrust signature algorithm rsaSignatureWithripemd160 -static const unsigned char cvOID_rsaSignatureWithripemd160 [] = { 0x2B, 0x24, 0x03, 0x03, 0x01, 0x02}; -//1.3.36.3.3.1.2.512.2 Teletrust signature algorithm rsaSignatureWithripemd160_l512_l2 -static const unsigned char cvOID_rsaSignatureWithripemd160_l512_l2 [] = { 0x2B, 0x24, 0x03, 0x03, 0x01, 0x02, 0x84, 0x00, 0x02}; -//1.3.36.3.3.1.2.640.2 Teletrust signature algorithm rsaSignatureWithripemd160_l640_l2 -static const unsigned char cvOID_rsaSignatureWithripemd160_l640_l2 [] = { 0x2B, 0x24, 0x03, 0x03, 0x01, 0x02, 0x85, 0x00, 0x02}; -//1.3.36.3.3.1.2.768.2 Teletrust signature algorithm rsaSignatureWithripemd160_l768_l2 -static const unsigned char cvOID_rsaSignatureWithripemd160_l768_l2 [] = { 0x2B, 0x24, 0x03, 0x03, 0x01, 0x02, 0x86, 0x00, 0x02}; -//1.3.36.3.3.1.2.892.2 Teletrust signature algorithm rsaSignatureWithripemd160_l896_l2 -static const unsigned char cvOID_rsaSignatureWithripemd160_l896_l2 [] = { 0x2B, 0x24, 0x03, 0x03, 0x01, 0x02, 0x87, 0x00, 0x02}; -//1.3.36.3.3.1.2.1024.2 Teletrust signature algorithm rsaSignatureWithripemd160_l1024_l2 -static const unsigned char cvOID_rsaSignatureWithripemd160_l1024_l2 [] = { 0x2B, 0x24, 0x03, 0x03, 0x01, 0x02, 0x88, 0x00, 0x02}; -//1.3.36.3.3.1.2.512.3 Teletrust signature algorithm rsaSignatureWithripemd160_l512_l3 -static const unsigned char cvOID_rsaSignatureWithripemd160_l512_l3 [] = { 0x2B, 0x24, 0x03, 0x03, 0x01, 0x02, 0x84, 0x00, 0x03}; -//1.3.36.3.3.1.2.640.3 Teletrust signature algorithm rsaSignatureWithripemd160_l640_l3 -static const unsigned char cvOID_rsaSignatureWithripemd160_l640_l3 [] = { 0x2B, 0x24, 0x03, 0x03, 0x01, 0x02, 0x85, 0x00, 0x03}; -//1.3.36.3.3.1.2.768.3 Teletrust signature algorithm rsaSignatureWithripemd160_l768_l3 -static const unsigned char cvOID_rsaSignatureWithripemd160_l768_l3 [] = { 0x2B, 0x24, 0x03, 0x03, 0x01, 0x02, 0x86, 0x00, 0x03}; -//1.3.36.3.3.1.2.896.3 Teletrust signature algorithm rsaSignatureWithripemd160_l896_l3 -static const unsigned char cvOID_rsaSignatureWithripemd160_l896_l3 [] = { 0x2B, 0x24, 0x03, 0x03, 0x01, 0x02, 0x87, 0x00, 0x03}; -//1.3.36.3.3.1.2.1024.3 Teletrust signature algorithm rsaSignatureWithripemd160_l1024_l3 -static const unsigned char cvOID_rsaSignatureWithripemd160_l1024_l3 [] = { 0x2B, 0x24, 0x03, 0x03, 0x01, 0x02, 0x88, 0x00, 0x03}; -//1.3.36.3.3.1.2.512.5 Teletrust signature algorithm rsaSignatureWithripemd160_l512_l5 -static const unsigned char cvOID_rsaSignatureWithripemd160_l512_l5 [] = { 0x2B, 0x24, 0x03, 0x03, 0x01, 0x02, 0x84, 0x00, 0x05}; -//1.3.36.3.3.1.2.640.5 Teletrust signature algorithm rsaSignatureWithripemd160_l640_l5 -static const unsigned char cvOID_rsaSignatureWithripemd160_l640_l5 [] = { 0x2B, 0x24, 0x03, 0x03, 0x01, 0x02, 0x85, 0x00, 0x05}; -//1.3.36.3.3.1.2.768.5 Teletrust signature algorithm rsaSignatureWithripemd160_l768_l5 -static const unsigned char cvOID_rsaSignatureWithripemd160_l768_l5 [] = { 0x2B, 0x24, 0x03, 0x03, 0x01, 0x02, 0x86, 0x00, 0x05}; -//1.3.36.3.3.1.2.896.5 Teletrust signature algorithm rsaSignatureWithripemd160_l896_l5 -static const unsigned char cvOID_rsaSignatureWithripemd160_l896_l5 [] = { 0x2B, 0x24, 0x03, 0x03, 0x01, 0x02, 0x87, 0x00, 0x05}; -//1.3.36.3.3.1.2.1024.5 Teletrust signature algorithm rsaSignatureWithripemd160_l1024_l5 -static const unsigned char cvOID_rsaSignatureWithripemd160_l1024_l5 [] = { 0x2B, 0x24, 0x03, 0x03, 0x01, 0x02, 0x88, 0x00, 0x05}; -//1.3.36.3.3.1.2.512.9 Teletrust signature algorithm rsaSignatureWithripemd160_l512_l9 -static const unsigned char cvOID_rsaSignatureWithripemd160_l512_l9 [] = { 0x2B, 0x24, 0x03, 0x03, 0x01, 0x02, 0x84, 0x00, 0x09}; -//1.3.36.3.3.1.2.640.9 Teletrust signature algorithm rsaSignatureWithripemd160_l640_l9 -static const unsigned char cvOID_rsaSignatureWithripemd160_l640_l9 [] = { 0x2B, 0x24, 0x03, 0x03, 0x01, 0x02, 0x85, 0x00, 0x09}; -//1.3.36.3.3.1.2.768.9 Teletrust signature algorithm rsaSignatureWithripemd160_l768_l9 -static const unsigned char cvOID_rsaSignatureWithripemd160_l768_l9 [] = { 0x2B, 0x24, 0x03, 0x03, 0x01, 0x02, 0x86, 0x00, 0x09}; -//1.3.36.3.3.1.2.896.9 Teletrust signature algorithm rsaSignatureWithripemd160_l896_l9 -static const unsigned char cvOID_rsaSignatureWithripemd160_l896_l9 [] = { 0x2B, 0x24, 0x03, 0x03, 0x01, 0x02, 0x87, 0x00, 0x09}; -//1.3.36.3.3.1.2.1024.9 Teletrust signature algorithm rsaSignatureWithripemd160_l1024_l9 -static const unsigned char cvOID_rsaSignatureWithripemd160_l1024_l9 [] = { 0x2B, 0x24, 0x03, 0x03, 0x01, 0x02, 0x88, 0x00, 0x09}; -//1.3.36.3.3.1.2.512.11 Teletrust signature algorithm rsaSignatureWithripemd160_l512_l11 -static const unsigned char cvOID_rsaSignatureWithripemd160_l512_l11 [] = { 0x2B, 0x24, 0x03, 0x03, 0x01, 0x02, 0x84, 0x00, 0x11}; -//1.3.36.3.3.1.2.640.11 Teletrust signature algorithm rsaSignatureWithripemd160_l640_l11 -static const unsigned char cvOID_rsaSignatureWithripemd160_l640_l11 [] = { 0x2B, 0x24, 0x03, 0x03, 0x01, 0x02, 0x85, 0x00, 0x11}; -//1.3.36.3.3.1.2.768.11 Teletrust signature algorithm rsaSignatureWithripemd160_l768_l11 -static const unsigned char cvOID_rsaSignatureWithripemd160_l768_l11 [] = { 0x2B, 0x24, 0x03, 0x03, 0x01, 0x02, 0x86, 0x00, 0x11}; -//1.3.36.3.3.1.2.896.11 Teletrust signature algorithm rsaSignatureWithripemd160_l896_l11 -static const unsigned char cvOID_rsaSignatureWithripemd160_l896_l11 [] = { 0x2B, 0x24, 0x03, 0x03, 0x01, 0x02, 0x87, 0x00, 0x11}; -//1.3.36.3.3.1.2.1024.11 Teletrust signature algorithm rsaSignatureWithripemd160_l1024_l11 -static const unsigned char cvOID_rsaSignatureWithripemd160_l1024_l11 [] = { 0x2B, 0x24, 0x03, 0x03, 0x01, 0x02, 0x88, 0x00, 0x11}; -//1.3.36.3.3.1.3 Teletrust signature algorithm rsaSignatureWithrimpemd128 -static const unsigned char cvOID_rsaSignatureWithrimpemd128 [] = { 0x2B, 0x24, 0x03, 0x03, 0x01, 0x03}; -//1.3.36.3.3.1.4 Teletrust signature algorithm rsaSignatureWithrimpemd256 -static const unsigned char cvOID_rsaSignatureWithrimpemd256 [] = { 0x2B, 0x24, 0x03, 0x03, 0x01, 0x04}; -//1.3.36.3.3.2 Teletrust signature algorithm ecsieSign -static const unsigned char cvOID_ecsieSign [] = { 0x2B, 0x24, 0x03, 0x03, 0x02}; -//1.3.36.3.3.2.1 Teletrust signature algorithm ecsieSignWithsha1 -static const unsigned char cvOID_ecsieSignWithsha1 [] = { 0x2B, 0x24, 0x03, 0x03, 0x02, 0x01}; -//1.3.36.3.3.2.2 Teletrust signature algorithm ecsieSignWithripemd160 -static const unsigned char cvOID_ecsieSignWithripemd160 [] = { 0x2B, 0x24, 0x03, 0x03, 0x02, 0x02}; -//1.3.36.3.3.2.3 Teletrust signature algorithm ecsieSignWithmd2 -static const unsigned char cvOID_ecsieSignWithmd2 [] = { 0x2B, 0x24, 0x03, 0x03, 0x02, 0x03}; -//1.3.36.3.3.2.4 Teletrust signature algorithm ecsieSignWithmd5 -static const unsigned char cvOID_ecsieSignWithmd5 [] = { 0x2B, 0x24, 0x03, 0x03, 0x02, 0x04}; -//1.3.36.3.4 Teletrust algorithm signatureScheme -static const unsigned char cvOID_signatureScheme [] = { 0x2B, 0x24, 0x03, 0x04}; -//1.3.36.3.4.1 Teletrust signature scheme sigS_ISO9796-1 -static const unsigned char cvOID_sigS_ISO9796_1 [] = { 0x2B, 0x24, 0x03, 0x04, 0x01}; -//1.3.36.3.4.2 Teletrust signature scheme sigS_ISO9796-2 -static const unsigned char cvOID_sigS_ISO9796_2 [] = { 0x2B, 0x24, 0x03, 0x04, 0x02}; -//1.3.36.3.4.2.1 Teletrust signature scheme. Unsure what this is supposed to be sigS_ISO9796-2Withred -static const unsigned char cvOID_sigS_ISO9796_2Withred [] = { 0x2B, 0x24, 0x03, 0x04, 0x02, 0x01}; -//1.3.36.3.4.2.2 Teletrust signature scheme. Unsure what this is supposed to be sigS_ISO9796-2Withrsa -static const unsigned char cvOID_sigS_ISO9796_2Withrsa [] = { 0x2B, 0x24, 0x03, 0x04, 0x02, 0x02}; -//1.3.36.3.4.2.3 Teletrust signature scheme. 9796-2 with random number in padding field sigS_ISO9796-2Withrnd -static const unsigned char cvOID_sigS_ISO9796_2Withrnd [] = { 0x2B, 0x24, 0x03, 0x04, 0x02, 0x03}; -//1.3.36.4 Teletrust attribute attribute -static const unsigned char cvOID_attribute_Teletrust [] = { 0x2B, 0x24, 0x04}; -//1.3.36.5 Teletrust policy policy -static const unsigned char cvOID_policy [] = { 0x2B, 0x24, 0x05}; -//1.3.36.6 Teletrust API api -static const unsigned char cvOID_api [] = { 0x2B, 0x24, 0x06}; -//1.3.36.6.1 Teletrust API manufacturer-specific_api -static const unsigned char cvOID_manufacturer_specific_api [] = { 0x2B, 0x24, 0x06, 0x01}; -//1.3.36.6.1.1 Teletrust API utimaco-api -static const unsigned char cvOID_utimaco_api [] = { 0x2B, 0x24, 0x06, 0x01, 0x01}; -//1.3.36.6.2 Teletrust API functionality-specific_api -static const unsigned char cvOID_functionality_specific_api [] = { 0x2B, 0x24, 0x06, 0x02}; -//1.3.36.7 Teletrust key management keymgmnt -static const unsigned char cvOID_keymgmnt [] = { 0x2B, 0x24, 0x07}; -//1.3.36.7.1 Teletrust key management keyagree -static const unsigned char cvOID_keyagree [] = { 0x2B, 0x24, 0x07, 0x01}; -//1.3.36.7.1.1 Teletrust key management bsiPKE -static const unsigned char cvOID_bsiPKE [] = { 0x2B, 0x24, 0x07, 0x01, 0x01}; -//1.3.36.7.2 Teletrust key management keytrans -static const unsigned char cvOID_keytrans [] = { 0x2B, 0x24, 0x07, 0x02}; -//1.3.36.7.2.1 Teletrust key management. 9796-2 with key stored in hash field encISO9796-2Withrsa -static const unsigned char cvOID_encISO9796_2Withrsa [] = { 0x2B, 0x24, 0x07, 0x02, 0x01}; -//1.3.36.8.1.1 Teletrust policy sigiSigConform -static const unsigned char cvOID_sigiSigConform [] = { 0x2B, 0x24, 0x08, 0x01, 0x01}; -//1.3.36.8.2.1 Teletrust extended key usage directoryService -static const unsigned char cvOID_directoryService [] = { 0x2B, 0x24, 0x08, 0x02, 0x01}; -//1.3.36.8.3.1 Teletrust attribute dateOfCertGen -static const unsigned char cvOID_dateOfCertGen [] = { 0x2B, 0x24, 0x08, 0x03, 0x01}; -//1.3.36.8.3.2 Teletrust attribute procuration -static const unsigned char cvOID_procuration [] = { 0x2B, 0x24, 0x08, 0x03, 0x02}; -//1.3.36.8.3.3 Teletrust attribute admission -static const unsigned char cvOID_admission [] = { 0x2B, 0x24, 0x08, 0x03, 0x03}; -//1.3.36.8.3.4 Teletrust attribute monetaryLimit -static const unsigned char cvOID_monetaryLimit [] = { 0x2B, 0x24, 0x08, 0x03, 0x04}; -//1.3.36.8.3.5 Teletrust attribute declarationOfMajority -static const unsigned char cvOID_declarationOfMajority [] = { 0x2B, 0x24, 0x08, 0x03, 0x05}; -//1.3.36.8.3.6 Teletrust attribute integratedCircuitCardSerialNumber -static const unsigned char cvOID_integratedCircuitCardSerialNumber [] = { 0x2B, 0x24, 0x08, 0x03, 0x06}; -//1.3.36.8.3.7 Teletrust attribute pKReference -static const unsigned char cvOID_pKReference [] = { 0x2B, 0x24, 0x08, 0x03, 0x07}; -//1.3.36.8.3.8 Teletrust attribute restriction -static const unsigned char cvOID_restriction_1 [] = { 0x2B, 0x24, 0x08, 0x03, 0x08}; -//1.3.36.8.3.9 Teletrust attribute retrieveIfAllowed -static const unsigned char cvOID_retrieveIfAllowed [] = { 0x2B, 0x24, 0x08, 0x03, 0x09}; -//1.3.36.8.3.10 Teletrust attribute requestedCertificate -static const unsigned char cvOID_requestedCertificate [] = { 0x2B, 0x24, 0x08, 0x03, 0x0A}; -//1.3.36.8.3.11 Teletrust attribute namingAuthorities -static const unsigned char cvOID_namingAuthorities [] = { 0x2B, 0x24, 0x08, 0x03, 0x0B}; -//1.3.36.8.3.12 Teletrust attribute certInDirSince -static const unsigned char cvOID_certInDirSince [] = { 0x2B, 0x24, 0x08, 0x03, 0x0C}; -//1.3.36.8.3.13 Teletrust attribute certHash -static const unsigned char cvOID_certHash [] = { 0x2B, 0x24, 0x08, 0x03, 0x0D}; -//1.3.36.8.4.1 Teletrust OtherName attribute personalData -static const unsigned char cvOID_personalData [] = { 0x2B, 0x24, 0x08, 0x04, 0x01}; -//1.3.36.8.4.8 Teletrust attribute certificate attribute restriction -static const unsigned char cvOID_restriction_2 [] = { 0x2B, 0x24, 0x08, 0x04, 0x08}; -//1.3.36.8.5.1.1.1 Teletrust signature algorithm rsaIndicateSHA1 -static const unsigned char cvOID_rsaIndicateSHA1 [] = { 0x2B, 0x24, 0x08, 0x05, 0x01, 0x01, 0x01}; -//1.3.36.8.5.1.1.2 Teletrust signature algorithm rsaIndicateRIPEMD160 -static const unsigned char cvOID_rsaIndicateRIPEMD160 [] = { 0x2B, 0x24, 0x08, 0x05, 0x01, 0x01, 0x02}; -//1.3.36.8.5.1.1.3 Teletrust signature algorithm rsaWithSHA1 -static const unsigned char cvOID_rsaWithSHA1 [] = { 0x2B, 0x24, 0x08, 0x05, 0x01, 0x01, 0x03}; -//1.3.36.8.5.1.1.4 Teletrust signature algorithm rsaWithRIPEMD160 -static const unsigned char cvOID_rsaWithRIPEMD160 [] = { 0x2B, 0x24, 0x08, 0x05, 0x01, 0x01, 0x04}; -//1.3.36.8.5.1.2.1 Teletrust signature algorithm dsaExtended -static const unsigned char cvOID_dsaExtended [] = { 0x2B, 0x24, 0x08, 0x05, 0x01, 0x02, 0x01}; -//1.3.36.8.5.1.2.2 Teletrust signature algorithm dsaWithRIPEMD160 -static const unsigned char cvOID_dsaWithRIPEMD160 [] = { 0x2B, 0x24, 0x08, 0x05, 0x01, 0x02, 0x02}; -//1.3.36.8.6.1 Teletrust signature attributes cert -static const unsigned char cvOID_cert [] = { 0x2B, 0x24, 0x08, 0x06, 0x01}; -//1.3.36.8.6.2 Teletrust signature attributes certRef -static const unsigned char cvOID_certRef [] = { 0x2B, 0x24, 0x08, 0x06, 0x02}; -//1.3.36.8.6.3 Teletrust signature attributes attrCert -static const unsigned char cvOID_attrCert [] = { 0x2B, 0x24, 0x08, 0x06, 0x03}; -//1.3.36.8.6.4 Teletrust signature attributes attrRef -static const unsigned char cvOID_attrRef [] = { 0x2B, 0x24, 0x08, 0x06, 0x04}; -//1.3.36.8.6.5 Teletrust signature attributes fileName -static const unsigned char cvOID_fileName [] = { 0x2B, 0x24, 0x08, 0x06, 0x05}; -//1.3.36.8.6.6 Teletrust signature attributes storageTime -static const unsigned char cvOID_storageTime [] = { 0x2B, 0x24, 0x08, 0x06, 0x06}; -//1.3.36.8.6.7 Teletrust signature attributes fileSize -static const unsigned char cvOID_fileSize [] = { 0x2B, 0x24, 0x08, 0x06, 0x07}; -//1.3.36.8.6.8 Teletrust signature attributes location -static const unsigned char cvOID_location [] = { 0x2B, 0x24, 0x08, 0x06, 0x08}; -//1.3.36.8.6.9 Teletrust signature attributes sigNumber -static const unsigned char cvOID_sigNumber [] = { 0x2B, 0x24, 0x08, 0x06, 0x09}; -//1.3.36.8.6.10 Teletrust signature attributes autoGen -static const unsigned char cvOID_autoGen [] = { 0x2B, 0x24, 0x08, 0x06, 0x0A}; -//1.3.36.8.7.1.1 Teletrust presentation types ptAdobeILL -static const unsigned char cvOID_ptAdobeILL [] = { 0x2B, 0x24, 0x08, 0x07, 0x01, 0x01}; -//1.3.36.8.7.1.2 Teletrust presentation types ptAmiPro -static const unsigned char cvOID_ptAmiPro [] = { 0x2B, 0x24, 0x08, 0x07, 0x01, 0x02}; -//1.3.36.8.7.1.3 Teletrust presentation types ptAutoCAD -static const unsigned char cvOID_ptAutoCAD [] = { 0x2B, 0x24, 0x08, 0x07, 0x01, 0x03}; -//1.3.36.8.7.1.4 Teletrust presentation types ptBinary -static const unsigned char cvOID_ptBinary [] = { 0x2B, 0x24, 0x08, 0x07, 0x01, 0x04}; -//1.3.36.8.7.1.5 Teletrust presentation types ptBMP -static const unsigned char cvOID_ptBMP [] = { 0x2B, 0x24, 0x08, 0x07, 0x01, 0x05}; -//1.3.36.8.7.1.6 Teletrust presentation types ptCGM -static const unsigned char cvOID_ptCGM [] = { 0x2B, 0x24, 0x08, 0x07, 0x01, 0x06}; -//1.3.36.8.7.1.7 Teletrust presentation types ptCorelCRT -static const unsigned char cvOID_ptCorelCRT [] = { 0x2B, 0x24, 0x08, 0x07, 0x01, 0x07}; -//1.3.36.8.7.1.8 Teletrust presentation types ptCorelDRW -static const unsigned char cvOID_ptCorelDRW [] = { 0x2B, 0x24, 0x08, 0x07, 0x01, 0x08}; -//1.3.36.8.7.1.9 Teletrust presentation types ptCorelEXC -static const unsigned char cvOID_ptCorelEXC [] = { 0x2B, 0x24, 0x08, 0x07, 0x01, 0x09}; -//1.3.36.8.7.1.10 Teletrust presentation types ptCorelPHT -static const unsigned char cvOID_ptCorelPHT [] = { 0x2B, 0x24, 0x08, 0x07, 0x01, 0x0A}; -//1.3.36.8.7.1.11 Teletrust presentation types ptDraw -static const unsigned char cvOID_ptDraw [] = { 0x2B, 0x24, 0x08, 0x07, 0x01, 0x0B}; -//1.3.36.8.7.1.12 Teletrust presentation types ptDVI -static const unsigned char cvOID_ptDVI [] = { 0x2B, 0x24, 0x08, 0x07, 0x01, 0x0C}; -//1.3.36.8.7.1.13 Teletrust presentation types ptEPS -static const unsigned char cvOID_ptEPS [] = { 0x2B, 0x24, 0x08, 0x07, 0x01, 0x0D}; -//1.3.36.8.7.1.14 Teletrust presentation types ptExcel -static const unsigned char cvOID_ptExcel [] = { 0x2B, 0x24, 0x08, 0x07, 0x01, 0x0E}; -//1.3.36.8.7.1.15 Teletrust presentation types ptGEM -static const unsigned char cvOID_ptGEM [] = { 0x2B, 0x24, 0x08, 0x07, 0x01, 0x0F}; -//1.3.36.8.7.1.16 Teletrust presentation types ptGIF -static const unsigned char cvOID_ptGIF [] = { 0x2B, 0x24, 0x08, 0x07, 0x01, 0x10}; -//1.3.36.8.7.1.17 Teletrust presentation types ptHPGL -static const unsigned char cvOID_ptHPGL [] = { 0x2B, 0x24, 0x08, 0x07, 0x01, 0x11}; -//1.3.36.8.7.1.18 Teletrust presentation types ptJPEG -static const unsigned char cvOID_ptJPEG [] = { 0x2B, 0x24, 0x08, 0x07, 0x01, 0x12}; -//1.3.36.8.7.1.19 Teletrust presentation types ptKodak -static const unsigned char cvOID_ptKodak [] = { 0x2B, 0x24, 0x08, 0x07, 0x01, 0x13}; -//1.3.36.8.7.1.20 Teletrust presentation types ptLaTeX -static const unsigned char cvOID_ptLaTeX [] = { 0x2B, 0x24, 0x08, 0x07, 0x01, 0x14}; -//1.3.36.8.7.1.21 Teletrust presentation types ptLotus -static const unsigned char cvOID_ptLotus [] = { 0x2B, 0x24, 0x08, 0x07, 0x01, 0x15}; -//1.3.36.8.7.1.22 Teletrust presentation types ptLotusPIC -static const unsigned char cvOID_ptLotusPIC [] = { 0x2B, 0x24, 0x08, 0x07, 0x01, 0x16}; -//1.3.36.8.7.1.23 Teletrust presentation types ptMacPICT -static const unsigned char cvOID_ptMacPICT [] = { 0x2B, 0x24, 0x08, 0x07, 0x01, 0x17}; -//1.3.36.8.7.1.24 Teletrust presentation types ptMacWord -static const unsigned char cvOID_ptMacWord [] = { 0x2B, 0x24, 0x08, 0x07, 0x01, 0x18}; -//1.3.36.8.7.1.25 Teletrust presentation types ptMSWfD -static const unsigned char cvOID_ptMSWfD [] = { 0x2B, 0x24, 0x08, 0x07, 0x01, 0x19}; -//1.3.36.8.7.1.26 Teletrust presentation types ptMSWord -static const unsigned char cvOID_ptMSWord [] = { 0x2B, 0x24, 0x08, 0x07, 0x01, 0x1A}; -//1.3.36.8.7.1.27 Teletrust presentation types ptMSWord2 -static const unsigned char cvOID_ptMSWord2 [] = { 0x2B, 0x24, 0x08, 0x07, 0x01, 0x1B}; -//1.3.36.8.7.1.28 Teletrust presentation types ptMSWord6 -static const unsigned char cvOID_ptMSWord6 [] = { 0x2B, 0x24, 0x08, 0x07, 0x01, 0x1C}; -//1.3.36.8.7.1.29 Teletrust presentation types ptMSWord8 -static const unsigned char cvOID_ptMSWord8 [] = { 0x2B, 0x24, 0x08, 0x07, 0x01, 0x1D}; -//1.3.36.8.7.1.30 Teletrust presentation types ptPDF -static const unsigned char cvOID_ptPDF [] = { 0x2B, 0x24, 0x08, 0x07, 0x01, 0x1E}; -//1.3.36.8.7.1.31 Teletrust presentation types ptPIF -static const unsigned char cvOID_ptPIF [] = { 0x2B, 0x24, 0x08, 0x07, 0x01, 0x1F}; -//1.3.36.8.7.1.32 Teletrust presentation types ptPostscript -static const unsigned char cvOID_ptPostscript [] = { 0x2B, 0x24, 0x08, 0x07, 0x01, 0x20}; -//1.3.36.8.7.1.33 Teletrust presentation types ptRTF -static const unsigned char cvOID_ptRTF [] = { 0x2B, 0x24, 0x08, 0x07, 0x01, 0x21}; -//1.3.36.8.7.1.34 Teletrust presentation types ptSCITEX -static const unsigned char cvOID_ptSCITEX [] = { 0x2B, 0x24, 0x08, 0x07, 0x01, 0x22}; -//1.3.36.8.7.1.35 Teletrust presentation types ptTAR -static const unsigned char cvOID_ptTAR [] = { 0x2B, 0x24, 0x08, 0x07, 0x01, 0x23}; -//1.3.36.8.7.1.36 Teletrust presentation types ptTarga -static const unsigned char cvOID_ptTarga [] = { 0x2B, 0x24, 0x08, 0x07, 0x01, 0x24}; -//1.3.36.8.7.1.37 Teletrust presentation types ptTeX -static const unsigned char cvOID_ptTeX [] = { 0x2B, 0x24, 0x08, 0x07, 0x01, 0x25}; -//1.3.36.8.7.1.38 Teletrust presentation types ptText -static const unsigned char cvOID_ptText [] = { 0x2B, 0x24, 0x08, 0x07, 0x01, 0x26}; -//1.3.36.8.7.1.39 Teletrust presentation types ptTIFF -static const unsigned char cvOID_ptTIFF [] = { 0x2B, 0x24, 0x08, 0x07, 0x01, 0x27}; -//1.3.36.8.7.1.40 Teletrust presentation types ptTIFF-FC -static const unsigned char cvOID_ptTIFF_FC [] = { 0x2B, 0x24, 0x08, 0x07, 0x01, 0x28}; -//1.3.36.8.7.1.41 Teletrust presentation types ptUID -static const unsigned char cvOID_ptUID [] = { 0x2B, 0x24, 0x08, 0x07, 0x01, 0x29}; -//1.3.36.8.7.1.42 Teletrust presentation types ptUUEncode -static const unsigned char cvOID_ptUUEncode [] = { 0x2B, 0x24, 0x08, 0x07, 0x01, 0x2A}; -//1.3.36.8.7.1.43 Teletrust presentation types ptWMF -static const unsigned char cvOID_ptWMF [] = { 0x2B, 0x24, 0x08, 0x07, 0x01, 0x2B}; -//1.3.36.8.7.1.44 Teletrust presentation types ptWordPerfect -static const unsigned char cvOID_ptWordPerfect [] = { 0x2B, 0x24, 0x08, 0x07, 0x01, 0x2C}; -//1.3.36.8.7.1.45 Teletrust presentation types ptWPGrph -static const unsigned char cvOID_ptWPGrph [] = { 0x2B, 0x24, 0x08, 0x07, 0x01, 0x2D}; -//1.3.101.1.4 Thawte thawte-ce -static const unsigned char cvOID_thawte_ce [] = { 0x2B, 0x65, 0x01, 0x04}; -//1.3.101.1.4.1 Thawte certificate extension strongExtranet -static const unsigned char cvOID_strongExtranet [] = { 0x2B, 0x65, 0x01, 0x04, 0x01}; -//2.5.4.0 X.520 id-at (2 5 4) objectClass -static const unsigned char cvOID_objectClass [] = { 0x55, 0x04, 0x00}; -//2.5.4.1 X.520 id-at (2 5 4) aliasedEntryName -static const unsigned char cvOID_aliasedEntryName [] = { 0x55, 0x04, 0x01}; -//2.5.4.2 X.520 id-at (2 5 4) knowledgeInformation -static const unsigned char cvOID_knowledgeInformation [] = { 0x55, 0x04, 0x02}; -//2.5.4.3 X.520 id-at (2 5 4) commonName -static const unsigned char cvOID_commonName [] = { 0x55, 0x04, 0x03}; -//2.5.4.4 X.520 id-at (2 5 4) surname -static const unsigned char cvOID_surname [] = { 0x55, 0x04, 0x04}; -//2.5.4.5 X.520 id-at (2 5 4) serialNumber -static const unsigned char cvOID_serialNumber [] = { 0x55, 0x04, 0x05}; -//2.5.4.6 X.520 id-at (2 5 4) countryName -static const unsigned char cvOID_countryName [] = { 0x55, 0x04, 0x06}; -//2.5.4.7 X.520 id-at (2 5 4) localityName -static const unsigned char cvOID_localityName [] = { 0x55, 0x04, 0x07}; -//2.5.4.7.1 X.520 id-at (2 5 4) collectiveLocalityName -static const unsigned char cvOID_collectiveLocalityName [] = { 0x55, 0x04, 0x07, 0x01}; -//2.5.4.8 X.520 id-at (2 5 4) stateOrProvinceName -static const unsigned char cvOID_stateOrProvinceName [] = { 0x55, 0x04, 0x08}; -//2.5.4.8.1 X.520 id-at (2 5 4) collectiveStateOrProvinceName -static const unsigned char cvOID_collectiveStateOrProvinceName [] = { 0x55, 0x04, 0x08, 0x01}; -//2.5.4.9 X.520 id-at (2 5 4) streetAddress -static const unsigned char cvOID_streetAddress [] = { 0x55, 0x04, 0x09}; -//2.5.4.9.1 X.520 id-at (2 5 4) collectiveStreetAddress -static const unsigned char cvOID_collectiveStreetAddress [] = { 0x55, 0x04, 0x09, 0x01}; -//2.5.4.10 X.520 id-at (2 5 4) organizationName -static const unsigned char cvOID_organizationName [] = { 0x55, 0x04, 0x0A}; -//2.5.4.10.1 X.520 id-at (2 5 4) collectiveOrganizationName -static const unsigned char cvOID_collectiveOrganizationName [] = { 0x55, 0x04, 0x0A, 0x01}; -//2.5.4.11 X.520 id-at (2 5 4) organizationalUnitName -static const unsigned char cvOID_organizationalUnitName [] = { 0x55, 0x04, 0x0B}; -//2.5.4.11.1 X.520 id-at (2 5 4) collectiveOrganizationalUnitName -static const unsigned char cvOID_collectiveOrganizationalUnitName [] = { 0x55, 0x04, 0x0B, 0x01}; -//2.5.4.12 X.520 id-at (2 5 4) title -static const unsigned char cvOID_title [] = { 0x55, 0x04, 0x0C}; -//2.5.4.13 X.520 id-at (2 5 4) description -static const unsigned char cvOID_description [] = { 0x55, 0x04, 0x0D}; -//2.5.4.14 X.520 id-at (2 5 4) searchGuide -static const unsigned char cvOID_searchGuide [] = { 0x55, 0x04, 0x0E}; -//2.5.4.15 X.520 id-at (2 5 4) businessCategory -static const unsigned char cvOID_businessCategory [] = { 0x55, 0x04, 0x0F}; -//2.5.4.16 X.520 id-at (2 5 4) postalAddress -static const unsigned char cvOID_postalAddress [] = { 0x55, 0x04, 0x10}; -//2.5.4.16.1 X.520 id-at (2 5 4) collectivePostalAddress -static const unsigned char cvOID_collectivePostalAddress [] = { 0x55, 0x04, 0x10, 0x01}; -//2.5.4.17 X.520 id-at (2 5 4) postalCode -static const unsigned char cvOID_postalCode [] = { 0x55, 0x04, 0x11}; -//2.5.4.17.1 X.520 id-at (2 5 4) collectivePostalCode -static const unsigned char cvOID_collectivePostalCode [] = { 0x55, 0x04, 0x11, 0x01}; -//2.5.4.18 X.520 id-at (2 5 4) postOfficeBox -static const unsigned char cvOID_postOfficeBox [] = { 0x55, 0x04, 0x12}; -//2.5.4.18.1 X.520 id-at (2 5 4) collectivePostOfficeBox -static const unsigned char cvOID_collectivePostOfficeBox [] = { 0x55, 0x04, 0x12, 0x01}; -//2.5.4.19 X.520 id-at (2 5 4) physicalDeliveryOfficeName -static const unsigned char cvOID_physicalDeliveryOfficeName [] = { 0x55, 0x04, 0x13}; -//2.5.4.19.1 X.520 id-at (2 5 4) collectivePhysicalDeliveryOfficeName -static const unsigned char cvOID_collectivePhysicalDeliveryOfficeName [] = { 0x55, 0x04, 0x13, 0x01}; -//2.5.4.20 X.520 id-at (2 5 4) telephoneNumber -static const unsigned char cvOID_telephoneNumber [] = { 0x55, 0x04, 0x14}; -//2.5.4.20.1 X.520 id-at (2 5 4) collectiveTelephoneNumber -static const unsigned char cvOID_collectiveTelephoneNumber [] = { 0x55, 0x04, 0x14, 0x01}; -//2.5.4.21 X.520 id-at (2 5 4) telexNumber -static const unsigned char cvOID_telexNumber [] = { 0x55, 0x04, 0x15}; -//2.5.4.21.1 X.520 id-at (2 5 4) collectiveTelexNumber -static const unsigned char cvOID_collectiveTelexNumber [] = { 0x55, 0x04, 0x15, 0x01}; -//2.5.4.22 X.520 id-at (2 5 4) teletexTerminalIdentifier -static const unsigned char cvOID_teletexTerminalIdentifier [] = { 0x55, 0x04, 0x16}; -//2.5.4.22.1 X.520 id-at (2 5 4) collectiveTeletexTerminalIdentifier -static const unsigned char cvOID_collectiveTeletexTerminalIdentifier [] = { 0x55, 0x04, 0x16, 0x01}; -//2.5.4.23 X.520 id-at (2 5 4) facsimileTelephoneNumber -static const unsigned char cvOID_facsimileTelephoneNumber [] = { 0x55, 0x04, 0x17}; -//2.5.4.23.1 X.520 id-at (2 5 4) collectiveFacsimileTelephoneNumber -static const unsigned char cvOID_collectiveFacsimileTelephoneNumber [] = { 0x55, 0x04, 0x17, 0x01}; -//2.5.4.24 X.520 id-at (2 5 4) x121Address -static const unsigned char cvOID_x121Address [] = { 0x55, 0x04, 0x18}; -//2.5.4.25 X.520 id-at (2 5 4) internationalISDNNumber -static const unsigned char cvOID_internationalISDNNumber [] = { 0x55, 0x04, 0x19}; -//2.5.4.25.1 X.520 id-at (2 5 4) collectiveInternationalISDNNumber -static const unsigned char cvOID_collectiveInternationalISDNNumber [] = { 0x55, 0x04, 0x19, 0x01}; -//2.5.4.26 X.520 id-at (2 5 4) registeredAddress -static const unsigned char cvOID_registeredAddress [] = { 0x55, 0x04, 0x1A}; -//2.5.4.27 X.520 id-at (2 5 4) destinationIndicator -static const unsigned char cvOID_destinationIndicator [] = { 0x55, 0x04, 0x1B}; -//2.5.4.28 X.520 id-at (2 5 4) preferredDeliveryMehtod -static const unsigned char cvOID_preferredDeliveryMehtod [] = { 0x55, 0x04, 0x1C}; -//2.5.4.29 X.520 id-at (2 5 4) presentationAddress -static const unsigned char cvOID_presentationAddress [] = { 0x55, 0x04, 0x1D}; -//2.5.4.30 X.520 id-at (2 5 4) supportedApplicationContext -static const unsigned char cvOID_supportedApplicationContext [] = { 0x55, 0x04, 0x1E}; -//2.5.4.31 X.520 id-at (2 5 4) member -static const unsigned char cvOID_member [] = { 0x55, 0x04, 0x1F}; -//2.5.4.32 X.520 id-at (2 5 4) owner -static const unsigned char cvOID_owner [] = { 0x55, 0x04, 0x20}; -//2.5.4.33 X.520 id-at (2 5 4) roleOccupant -static const unsigned char cvOID_roleOccupant [] = { 0x55, 0x04, 0x21}; -//2.5.4.34 X.520 id-at (2 5 4) seeAlso -static const unsigned char cvOID_seeAlso [] = { 0x55, 0x04, 0x22}; -//2.5.4.35 X.520 id-at (2 5 4) userPassword -static const unsigned char cvOID_userPassword [] = { 0x55, 0x04, 0x23}; -//2.5.4.36 X.520 id-at (2 5 4) userCertificate -static const unsigned char cvOID_userCertificate [] = { 0x55, 0x04, 0x24}; -//2.5.4.37 X.520 id-at (2 5 4) caCertificate -static const unsigned char cvOID_caCertificate [] = { 0x55, 0x04, 0x25}; -//2.5.4.38 X.520 id-at (2 5 4) authorityRevocationList -static const unsigned char cvOID_authorityRevocationList [] = { 0x55, 0x04, 0x26}; -//2.5.4.39 X.520 id-at (2 5 4) certificateRevocationList -static const unsigned char cvOID_certificateRevocationList [] = { 0x55, 0x04, 0x27}; -//2.5.4.40 X.520 id-at (2 5 4) crossCertificatePair -static const unsigned char cvOID_crossCertificatePair_2 [] = { 0x55, 0x04, 0x28}; -//2.5.4.41 X.520 id-at (2 5 4) name -static const unsigned char cvOID_name [] = { 0x55, 0x04, 0x29}; -//2.5.4.42 X.520 id-at (2 5 4) givenName -static const unsigned char cvOID_givenName [] = { 0x55, 0x04, 0x2A}; -//2.5.4.43 X.520 id-at (2 5 4) initials -static const unsigned char cvOID_initials [] = { 0x55, 0x04, 0x2B}; -//2.5.4.44 X.520 id-at (2 5 4) generationQualifier -static const unsigned char cvOID_generationQualifier [] = { 0x55, 0x04, 0x2C}; -//2.5.4.45 X.520 id-at (2 5 4) uniqueIdentifier -static const unsigned char cvOID_uniqueIdentifier [] = { 0x55, 0x04, 0x2D}; -//2.5.4.46 X.520 id-at (2 5 4) dnQualifier -static const unsigned char cvOID_dnQualifier [] = { 0x55, 0x04, 0x2E}; -//2.5.4.47 X.520 id-at (2 5 4) enhancedSearchGuide -static const unsigned char cvOID_enhancedSearchGuide [] = { 0x55, 0x04, 0x2F}; -//2.5.4.48 X.520 id-at (2 5 4) protocolInformation -static const unsigned char cvOID_protocolInformation [] = { 0x55, 0x04, 0x30}; -//2.5.4.49 X.520 id-at (2 5 4) distinguishedName -static const unsigned char cvOID_distinguishedName [] = { 0x55, 0x04, 0x31}; -//2.5.4.50 X.520 id-at (2 5 4) uniqueMember -static const unsigned char cvOID_uniqueMember [] = { 0x55, 0x04, 0x32}; -//2.5.4.51 X.520 id-at (2 5 4) houseIdentifier -static const unsigned char cvOID_houseIdentifier [] = { 0x55, 0x04, 0x33}; -//2.5.4.52 X.520 id-at (2 5 4) supportedAlgorithms -static const unsigned char cvOID_supportedAlgorithms [] = { 0x55, 0x04, 0x34}; -//2.5.4.53 X.520 id-at (2 5 4) deltaRevocationList -static const unsigned char cvOID_deltaRevocationList [] = { 0x55, 0x04, 0x35}; -//2.5.4.55 X.520 id-at (2 5 4) clearance -static const unsigned char cvOID_clearance [] = { 0x55, 0x04, 0x36}; -//2.5.4.58 X.520 id-at (2 5 4) crossCertificatePair -static const unsigned char cvOID_crossCertificatePair_1 [] = { 0x55, 0x04, 0x3A}; -//2.5.4.65 Naming attributes of type X520Pseudonym -static const unsigned char cvOID_pseudonym[] = { 0x55, 0x04, 0x41}; -//2.5.8.1.1 X.500 algorithms. Ambiguous, since no padding rules specified rsa -static const unsigned char cvOID_rsa_X500 [] = { 0x55, 0x08, 0x01, 0x01}; -//2.5.29.1 X.509 id-ce (2 5 29). Deprecated, use (2 5 29 35) instead authorityKeyIdentifier -static const unsigned char cvOID_authorityKeyIdentifier_old[] = { 0x55, 0x1D, 0x01}; -//2.5.29.2 X.509 id-ce (2 5 29). Obsolete, use keyUsage/extKeyUsage instead keyAttributes -static const unsigned char cvOID_keyAttributes [] = { 0x55, 0x1D, 0x02}; -//2.5.29.3 X.509 id-ce (2 5 29). Deprecated, use (2 5 29 32) instead certificatePolicies -static const unsigned char cvOID_certificatePolicies_old [] = { 0x55, 0x1D, 0x03}; -//2.5.29.4 X.509 id-ce (2 5 29). Obsolete, use keyUsage/extKeyUsage instead keyUsageRestriction -static const unsigned char cvOID_keyUsageRestriction [] = { 0x55, 0x1D, 0x04}; -//2.5.29.5 X.509 id-ce (2 5 29). Deprecated, use (2 5 29 33) instead policyMapping -static const unsigned char cvOID_policyMapping [] = { 0x55, 0x1D, 0x05}; -//2.5.29.6 X.509 id-ce (2 5 29). Obsolete, use namestatic constraints instead subtreesstatic constraint -static const unsigned char cvOID_subtreesconstraint [] = { 0x55, 0x1D, 0x06}; -//2.5.29.7 X.509 id-ce (2 5 29). Deprecated, use (2 5 29 17) instead subjectAltName -static const unsigned char cvOID_subjectAltName_old [] = { 0x55, 0x1D, 0x07}; -//2.5.29.8 X.509 id-ce (2 5 29). Deprecated, use (2 5 29 18) instead issuerAltName -static const unsigned char cvOID_issuerAltName_old [] = { 0x55, 0x1D, 0x08}; -//2.5.29.9 X.509 id-ce (2 5 29) subjectDirectoryAttributes -static const unsigned char cvOID_subjectDirectoryAttributes [] = { 0x55, 0x1D, 0x09}; -//2.5.29.10 X.509 id-ce (2 5 29). Deprecated, use (2 5 29 19) instead basicstatic constraints -static const unsigned char cvOID_basicconstraints_old [] = { 0x55, 0x1D, 0x0A}; -//2.5.29.11 X.509 id-ce (2 5 29). Deprecated, use (2 5 29 30) instead namestatic constraints -static const unsigned char cvOID_nameconstraints_old [] = { 0x55, 0x1D, 0x0B}; -//2.5.29.12 X.509 id-ce (2 5 29). Deprecated, use (2 5 29 36) instead policystatic constraints -static const unsigned char cvOID_policyconstraints_old_1 [] = { 0x55, 0x1D, 0x0C}; -//2.5.29.13 X.509 id-ce (2 5 29). Deprecated, use (2 5 29 19) instead basicstatic constraints -static const unsigned char cvOID_basicconstraints_2 [] = { 0x55, 0x1D, 0x0D}; -//2.5.29.14 X.509 id-ce (2 5 29) subjectKeyIdentifier -static const unsigned char cvOID_subjectKeyIdentifier[] = { 0x55, 0x1D, 0x0E}; -//2.5.29.15 X.509 id-ce (2 5 29) keyUsage -static const unsigned char cvOID_keyUsage[] = { 0x55, 0x1D, 0x0F}; -//2.5.29.16 X.509 id-ce (2 5 29) privateKeyUsagePeriod -static const unsigned char cvOID_privateKeyUsagePeriod [] = { 0x55, 0x1D, 0x10}; -//2.5.29.17 X.509 id-ce (2 5 29) subjectAltName -static const unsigned char cvOID_subjectAltName [] = { 0x55, 0x1D, 0x11}; -//2.5.29.18 X.509 id-ce (2 5 29) issuerAltName -static const unsigned char cvOID_issuerAltName [] = { 0x55, 0x1D, 0x12}; -//2.5.29.19 X.509 id-ce (2 5 29) basicstatic constraints -static const unsigned char cvOID_basicconstraints[] = { 0x55, 0x1D, 0x13}; -//2.5.29.20 X.509 id-ce (2 5 29) cRLNumber -static const unsigned char cvOID_cRLNumber [] = { 0x55, 0x1D, 0x14}; -//2.5.29.21 X.509 id-ce (2 5 29) cRLReason -static const unsigned char cvOID_cRLReason [] = { 0x55, 0x1D, 0x15}; -//2.5.29.22 X.509 id-ce (2 5 29). Deprecated, alternative OID uncertain expirationDate -static const unsigned char cvOID_expirationDate [] = { 0x55, 0x1D, 0x16}; -//2.5.29.23 X.509 id-ce (2 5 29) instructionCode -static const unsigned char cvOID_instructionCode [] = { 0x55, 0x1D, 0x17}; -//2.5.29.24 X.509 id-ce (2 5 29) invalidityDate -static const unsigned char cvOID_invalidityDate [] = { 0x55, 0x1D, 0x18}; -//2.5.29.25 X.509 id-ce (2 5 29). Deprecated, use (2 5 29 31) instead cRLDistributionPoints -static const unsigned char cvOID_cRLDistributionPoints_old [] = { 0x55, 0x1D, 0x19}; -//2.5.29.26 X.509 id-ce (2 5 29). Deprecated, use (2 5 29 28) instead issuingDistributionPoint -static const unsigned char cvOID_issuingDistributionPoint_old [] = { 0x55, 0x1D, 0x1A}; -//2.5.29.27 X.509 id-ce (2 5 29) deltaCRLIndicator -static const unsigned char cvOID_deltaCRLIndicator [] = { 0x55, 0x1D, 0x1B}; -//2.5.29.28 X.509 id-ce (2 5 29) issuingDistributionPoint -static const unsigned char cvOID_issuingDistributionPoint [] = { 0x55, 0x1D, 0x1C}; -//2.5.29.29 X.509 id-ce (2 5 29) certificateIssuer -static const unsigned char cvOID_certificateIssuer [] = { 0x55, 0x1D, 0x1D}; -//2.5.29.30 X.509 id-ce (2 5 29) namestatic constraints -static const unsigned char cvOID_nameconstraints [] = { 0x55, 0x1D, 0x1E}; -//2.5.29.31 X.509 id-ce (2 5 29) cRLDistributionPoints -static const unsigned char cvOID_cRLDistributionPoints[] = { 0x55, 0x1D, 0x1F}; -//2.5.29.32 X.509 id-ce (2 5 29) certificatePolicies -static const unsigned char cvOID_certificatePolicies [] = { 0x55, 0x1D, 0x20}; -//2.5.29.32.0 X.509 id-ce (2 5 29.0) anyPolicies -static const unsigned char cvOID_anyPolicies [] = { 0x55, 0x1D, 0x20, 0x00}; -//2.5.29.33 X.509 id-ce (2 5 29) policyMappings -static const unsigned char cvOID_policyMappings [] = { 0x55, 0x1D, 0x21}; -//2.5.29.34 X.509 id-ce (2 5 29). Deprecated, use (2 5 29 36) instead policystatic constraints -static const unsigned char cvOID_policyconstraints_old_2 [] = { 0x55, 0x1D, 0x22}; -//2.5.29.35 X.509 id-ce (2 5 29) authorityKeyIdentifier -static const unsigned char cvOID_authorityKeyIdentifier [] = { 0x55, 0x1D, 0x23}; -//2.5.29.36 X.509 id-ce (2 5 29) policystatic constraints -static const unsigned char cvOID_policyconstraints [] = { 0x55, 0x1D, 0x24}; -//2.5.29.37 X.509 id-ce (2 5 29) extKeyUsage -static const unsigned char cvOID_extKeyUsage [] = { 0x55, 0x1D, 0x25}; -//2.5.29.37.0 anyExtendedKeyUsage id-ce-extKeyUsage 0 -static const unsigned char cvOID_anyExtendedKeyUsage [] = { 0x55, 0x1D, 0x25, 0x00}; -//ame -//2.5.29.46 X.509 id-ce (2 5 29) id-ce-freshestCRL -static const unsigned char cvOID_freshestCRL [] = { 0x55, 0x1D, 0x2E}; -//2.5.29.54 X.509 id-ce (2 5 29) inhibitAnyPolicy -static const unsigned char cvOID_inhibitAnyPolicy [] = { 0x55, 0x1D, 0x36}; - -//2.16.840.1.101.2.1.1.1 SDN.700 INFOSEC algorithms sdnsSignatureAlgorithm -static const unsigned char cvOID_sdnsSignatureAlgorithm [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x01, 0x01}; -//2.16.840.1.101.2.1.1.2 SDN.700 INFOSEC algorithms. Formerly known as mosaicSignatureAlgorithm, this OID is better known as dsaWithSHA-1. fortezzaSignatureAlgorithm -static const unsigned char cvOID_fortezzaSignatureAlgorithm [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x01, 0x02}; -//2.16.840.1.101.2.1.1.3 SDN.700 INFOSEC algorithms sdnsConfidentialityAlgorithm -static const unsigned char cvOID_sdnsConfidentialityAlgorithm [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x01, 0x03}; -//2.16.840.1.101.2.1.1.4 SDN.700 INFOSEC algorithms. Formerly known as mosaicConfidentialityAlgorithm fortezzaConfidentialityAlgorithm -static const unsigned char cvOID_fortezzaConfidentialityAlgorithm [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x01, 0x04}; -//2.16.840.1.101.2.1.1.5 SDN.700 INFOSEC algorithms sdnsIntegrityAlgorithm -static const unsigned char cvOID_sdnsIntegrityAlgorithm [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x01, 0x05}; -//2.16.840.1.101.2.1.1.6 SDN.700 INFOSEC algorithms. Formerly known as mosaicIntegrityAlgorithm fortezzaIntegrityAlgorithm -static const unsigned char cvOID_fortezzaIntegrityAlgorithm [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x01, 0x06}; -//2.16.840.1.101.2.1.1.7 SDN.700 INFOSEC algorithms sdnsTokenProtectionAlgorithm -static const unsigned char cvOID_sdnsTokenProtectionAlgorithm [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x01, 0x07}; -//2.16.840.1.101.2.1.1.8 SDN.700 INFOSEC algorithms. Formerly know as mosaicTokenProtectionAlgorithm fortezzaTokenProtectionAlgorithm -static const unsigned char cvOID_fortezzaTokenProtectionAlgorithm [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x01, 0x08}; -//2.16.840.1.101.2.1.1.9 SDN.700 INFOSEC algorithms sdnsKeyManagementAlgorithm -static const unsigned char cvOID_sdnsKeyManagementAlgorithm [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x01, 0x09}; -//2.16.840.1.101.2.1.1.10 SDN.700 INFOSEC algorithms. Formerly known as mosaicKeyManagementAlgorithm fortezzaKeyManagementAlgorithm -static const unsigned char cvOID_fortezzaKeyManagementAlgorithm [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x01, 0x0A}; -//2.16.840.1.101.2.1.1.11 SDN.700 INFOSEC algorithms sdnsKMandSigAlgorithm -static const unsigned char cvOID_sdnsKMandSigAlgorithm [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x01, 0x0B}; -//2.16.840.1.101.2.1.1.12 SDN.700 INFOSEC algorithms. Formerly known as mosaicKMandSigAlgorithm fortezzaKMandSigAlgorithm -static const unsigned char cvOID_fortezzaKMandSigAlgorithm [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x01, 0x0C}; -//2.16.840.1.101.2.1.1.13 SDN.700 INFOSEC algorithms suiteASignatureAlgorithm -static const unsigned char cvOID_suiteASignatureAlgorithm [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x01, 0x0D}; -//2.16.840.1.101.2.1.1.14 SDN.700 INFOSEC algorithms suiteAConfidentialityAlgorithm -static const unsigned char cvOID_suiteAConfidentialityAlgorithm [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x01, 0x0E}; -//2.16.840.1.101.2.1.1.15 SDN.700 INFOSEC algorithms suiteAIntegrityAlgorithm -static const unsigned char cvOID_suiteAIntegrityAlgorithm [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x01, 0x0F}; -//2.16.840.1.101.2.1.1.16 SDN.700 INFOSEC algorithms suiteATokenProtectionAlgorithm -static const unsigned char cvOID_suiteATokenProtectionAlgorithm [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x01, 0x10}; -//2.16.840.1.101.2.1.1.17 SDN.700 INFOSEC algorithms suiteAKeyManagementAlgorithm -static const unsigned char cvOID_suiteAKeyManagementAlgorithm [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x01, 0x11}; -//2.16.840.1.101.2.1.1.18 SDN.700 INFOSEC algorithms suiteAKMandSigAlgorithm -static const unsigned char cvOID_suiteAKMandSigAlgorithm [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x01, 0x12}; -//2.16.840.1.101.2.1.1.19 SDN.700 INFOSEC algorithms. Formerly known as mosaicUpdatedSigAlgorithm fortezzaUpdatedSigAlgorithm -static const unsigned char cvOID_fortezzaUpdatedSigAlgorithm [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x01, 0x13}; -//2.16.840.1.101.2.1.1.20 SDN.700 INFOSEC algorithms. Formerly known as mosaicKMandUpdSigAlgorithms fortezzaKMandUpdSigAlgorithms -static const unsigned char cvOID_fortezzaKMandUpdSigAlgorithms [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x01, 0x14}; -//2.16.840.1.101.2.1.1.21 SDN.700 INFOSEC algorithms. Formerly known as mosaicUpdatedIntegAlgorithm fortezzaUpdatedIntegAlgorithm -static const unsigned char cvOID_fortezzaUpdatedIntegAlgorithm [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x01, 0x15}; -//2.16.840.1.101.2.1.1.22 SDN.700 INFOSEC algorithms. Formerly known as mosaicKeyEncryptionAlgorithm keyExchangeAlgorithm -static const unsigned char cvOID_keyExchangeAlgorithm [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x01, 0x16}; -//2.16.840.1.101.2.1.1.23 SDN.700 INFOSEC algorithms fortezzaWrap80Algorithm -static const unsigned char cvOID_fortezzaWrap80Algorithm [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x01, 0x17}; -//2.16.840.1.101.2.1.1.24 SDN.700 INFOSEC algorithms kEAKeyEncryptionAlgorithm -static const unsigned char cvOID_kEAKeyEncryptionAlgorithm [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x01, 0x18}; -//2.16.840.1.101.2.1.2.1 SDN.700 INFOSEC format rfc822MessageFormat -static const unsigned char cvOID_rfc822MessageFormat [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x02, 0x01}; -//2.16.840.1.101.2.1.2.2 SDN.700 INFOSEC format emptyContent -static const unsigned char cvOID_emptyContent [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x02, 0x02}; -//2.16.840.1.101.2.1.2.3 SDN.700 INFOSEC format cspContentType -static const unsigned char cvOID_cspContentType [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x02, 0x03}; -//2.16.840.1.101.2.1.2.42 SDN.700 INFOSEC format mspRev3ContentType -static const unsigned char cvOID_mspRev3ContentType [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x02, 0x2A}; -//2.16.840.1.101.2.1.2.48 SDN.700 INFOSEC format mspContentType -static const unsigned char cvOID_mspContentType [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x02, 0x30}; -//2.16.840.1.101.2.1.2.49 SDN.700 INFOSEC format mspRekeyAgentProtocol -static const unsigned char cvOID_mspRekeyAgentProtocol [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x02, 0x31}; -//2.16.840.1.101.2.1.2.50 SDN.700 INFOSEC format mspMMP -static const unsigned char cvOID_mspMMP [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x02, 0x32}; -//2.16.840.1.101.2.1.2.66 SDN.700 INFOSEC format mspRev3-1ContentType -static const unsigned char cvOID_mspRev3_1ContentType [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x02, 0x42}; -//2.16.840.1.101.2.1.2.72 SDN.700 INFOSEC format forwardedMSPMessageBodyPart -static const unsigned char cvOID_forwardedMSPMessageBodyPart [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x02, 0x48}; -//2.16.840.1.101.2.1.2.73 SDN.700 INFOSEC format mspForwardedMessageParameters -static const unsigned char cvOID_mspForwardedMessageParameters [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x02, 0x49}; -//2.16.840.1.101.2.1.2.74 SDN.700 INFOSEC format forwardedCSPMsgBodyPart -static const unsigned char cvOID_forwardedCSPMsgBodyPart [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x02, 0x50}; -//2.16.840.1.101.2.1.2.75 SDN.700 INFOSEC format cspForwardedMessageParameters -static const unsigned char cvOID_cspForwardedMessageParameters [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x02, 0x51}; -//2.16.840.1.101.2.1.2.76 SDN.700 INFOSEC format mspMMP2 -static const unsigned char cvOID_mspMMP2 [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x02, 0x52}; -//2.16.840.1.101.2.1.3.1 SDN.700 INFOSEC policy sdnsSecurityPolicy -static const unsigned char cvOID_sdnsSecurityPolicy [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x03, 0x01}; -//2.16.840.1.101.2.1.3.2 SDN.700 INFOSEC policy sdnsPRBAC -static const unsigned char cvOID_sdnsPRBAC [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x03, 0x02}; -//2.16.840.1.101.2.1.3.3 SDN.700 INFOSEC policy mosaicPRBAC -static const unsigned char cvOID_mosaicPRBAC [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x03, 0x03}; -//2.16.840.1.101.2.1.3.10 SDN.700 INFOSEC policy siSecurityPolicy -static const unsigned char cvOID_siSecurityPolicy [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x03, 0x0A}; -//2.16.840.1.101.2.1.3.10.0 SDN.700 INFOSEC policy (obsolete) siNASP -static const unsigned char cvOID_siNASP [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x03, 0x0A, 0x00}; -//2.16.840.1.101.2.1.3.10.1 SDN.700 INFOSEC policy (obsolete) siELCO -static const unsigned char cvOID_siELCO [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x03, 0x0A, 0x01}; -//2.16.840.1.101.2.1.3.10.2 SDN.700 INFOSEC policy (obsolete) siTK -static const unsigned char cvOID_siTK [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x03, 0x0A, 0x02}; -//2.16.840.1.101.2.1.3.10.3 SDN.700 INFOSEC policy (obsolete) siDSAP -static const unsigned char cvOID_siDSAP [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x03, 0x0A, 0x03}; -//2.16.840.1.101.2.1.3.10.4 SDN.700 INFOSEC policy (obsolete) siSSSS -static const unsigned char cvOID_siSSSS [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x03, 0x0A, 0x04}; -//2.16.840.1.101.2.1.3.10.5 SDN.700 INFOSEC policy (obsolete) siDNASP -static const unsigned char cvOID_siDNASP [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x03, 0x0A, 0x05}; -//2.16.840.1.101.2.1.3.10.6 SDN.700 INFOSEC policy (obsolete) siBYEMAN -static const unsigned char cvOID_siBYEMAN [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x03, 0x0A, 0x06}; -//2.16.840.1.101.2.1.3.10.7 SDN.700 INFOSEC policy (obsolete) siREL-US -static const unsigned char cvOID_siREL_US [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x03, 0x0A, 0x07}; -//2.16.840.1.101.2.1.3.10.8 SDN.700 INFOSEC policy (obsolete) siREL-AUS -static const unsigned char cvOID_siREL_AUS [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x03, 0x0A, 0x08}; -//2.16.840.1.101.2.1.3.10.9 SDN.700 INFOSEC policy (obsolete) siREL-CAN -static const unsigned char cvOID_siREL_CAN [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x03, 0x0A, 0x09}; -//2.16.840.1.101.2.1.3.10.10 SDN.700 INFOSEC policy (obsolete) siREL_UK -static const unsigned char cvOID_siREL_UK [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x03, 0x0A, 0x0A}; -//2.16.840.1.101.2.1.3.10.11 SDN.700 INFOSEC policy (obsolete) siREL-NZ -static const unsigned char cvOID_siREL_NZ [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x03, 0x0A, 0x0B}; -//2.16.840.1.101.2.1.3.10.12 SDN.700 INFOSEC policy (obsolete) siGeneric -static const unsigned char cvOID_siGeneric [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x03, 0x0A, 0x0C}; -//2.16.840.1.101.2.1.3.11 SDN.700 INFOSEC policy genser -static const unsigned char cvOID_genser [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x03, 0x0B}; -//2.16.840.1.101.2.1.3.11.0 SDN.700 INFOSEC policy (obsolete) genserNations -static const unsigned char cvOID_genserNations [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x03, 0x0B, 0x00}; -//2.16.840.1.101.2.1.3.11.1 SDN.700 INFOSEC policy (obsolete) genserComsec -static const unsigned char cvOID_genserComsec [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x03, 0x0B, 0x01}; -//2.16.840.1.101.2.1.3.11.2 SDN.700 INFOSEC policy (obsolete) genserAcquisition -static const unsigned char cvOID_genserAcquisition [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x03, 0x0B, 0x02}; -//2.16.840.1.101.2.1.3.11.3 SDN.700 INFOSEC policy genserSecurityCategories -static const unsigned char cvOID_genserSecurityCategories [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x03, 0x0B, 0x03}; -//2.16.840.1.101.2.1.3.11.3.0 SDN.700 INFOSEC GENSER policy genserTagSetName -static const unsigned char cvOID_genserTagSetName [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x03, 0x0B, 0x03, 0x00}; -//2.16.840.1.101.2.1.3.12 SDN.700 INFOSEC policy defaultSecurityPolicy -static const unsigned char cvOID_defaultSecurityPolicy [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x03, 0x0C}; -//2.16.840.1.101.2.1.3.13 SDN.700 INFOSEC policy capcoMarkings -static const unsigned char cvOID_capcoMarkings [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x03, 0x0D}; -//2.16.840.1.101.2.1.3.13.0 SDN.700 INFOSEC policy CAPCO markings capcoSecurityCategories -static const unsigned char cvOID_capcoSecurityCategories [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x03, 0x0D, 0x00}; -//2.16.840.1.101.2.1.3.13.0.1 SDN.700 INFOSEC policy CAPCO markings capcoTagSetName1 -static const unsigned char cvOID_capcoTagSetName1 [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x03, 0x0D, 0x00, 0x01}; -//2.16.840.1.101.2.1.3.13.0.2 SDN.700 INFOSEC policy CAPCO markings capcoTagSetName2 -static const unsigned char cvOID_capcoTagSetName2 [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x03, 0x0D, 0x00, 0x02}; -//2.16.840.1.101.2.1.3.13.0.3 SDN.700 INFOSEC policy CAPCO markings capcoTagSetName3 -static const unsigned char cvOID_capcoTagSetName3 [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x03, 0x0D, 0x00, 0x03}; -//2.16.840.1.101.2.1.3.13.0.4 SDN.700 INFOSEC policy CAPCO markings capcoTagSetName4 -static const unsigned char cvOID_capcoTagSetName4 [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x03, 0x0D, 0x00, 0x04}; -//2.16.840.1.101.2.1.5.1 SDN.700 INFOSEC attributes (superseded) sdnsKeyManagementCertificate -static const unsigned char cvOID_sdnsKeyManagementCertificate [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x05, 0x01}; -//2.16.840.1.101.2.1.5.2 SDN.700 INFOSEC attributes (superseded) sdnsUserSignatureCertificate -static const unsigned char cvOID_sdnsUserSignatureCertificate [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x05, 0x02}; -//2.16.840.1.101.2.1.5.3 SDN.700 INFOSEC attributes (superseded) sdnsKMandSigCertificate -static const unsigned char cvOID_sdnsKMandSigCertificate [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x05, 0x03}; -//2.16.840.1.101.2.1.5.4 SDN.700 INFOSEC attributes (superseded) fortezzaKeyManagementCertificate -static const unsigned char cvOID_fortezzaKeyManagementCertificate [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x05, 0x04}; -//2.16.840.1.101.2.1.5.5 SDN.700 INFOSEC attributes (superseded) fortezzaKMandSigCertificate -static const unsigned char cvOID_fortezzaKMandSigCertificate [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x05, 0x05}; -//2.16.840.1.101.2.1.5.6 SDN.700 INFOSEC attributes (superseded) fortezzaUserSignatureCertificate -static const unsigned char cvOID_fortezzaUserSignatureCertificate [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x05, 0x06}; -//2.16.840.1.101.2.1.5.7 SDN.700 INFOSEC attributes (superseded) fortezzaCASignatureCertificate -static const unsigned char cvOID_fortezzaCASignatureCertificate [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x05, 0x07}; -//2.16.840.1.101.2.1.5.8 SDN.700 INFOSEC attributes (superseded) sdnsCASignatureCertificate -static const unsigned char cvOID_sdnsCASignatureCertificate [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x05, 0x08}; -//2.16.840.1.101.2.1.5.10 SDN.700 INFOSEC attributes (superseded) auxiliaryVector -static const unsigned char cvOID_auxiliaryVector [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x05, 0x0A}; -//2.16.840.1.101.2.1.5.11 SDN.700 INFOSEC attributes mlReceiptPolicy -static const unsigned char cvOID_mlReceiptPolicy [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x05, 0x0B}; -//2.16.840.1.101.2.1.5.12 SDN.700 INFOSEC attributes mlMembership -static const unsigned char cvOID_mlMembership [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x05, 0x0C}; -//2.16.840.1.101.2.1.5.13 SDN.700 INFOSEC attributes mlAdministrators -static const unsigned char cvOID_mlAdministrators [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x05, 0x0D}; -//2.16.840.1.101.2.1.5.14 SDN.700 INFOSEC attributes alid -static const unsigned char cvOID_alid [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x05, 0x0E}; -//2.16.840.1.101.2.1.5.20 SDN.700 INFOSEC attributes janUKMs -static const unsigned char cvOID_janUKMs [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x05, 0x14}; -//2.16.840.1.101.2.1.5.21 SDN.700 INFOSEC attributes febUKMs -static const unsigned char cvOID_febUKMs [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x05, 0x15}; -//2.16.840.1.101.2.1.5.22 SDN.700 INFOSEC attributes marUKMs -static const unsigned char cvOID_marUKMs [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x05, 0x16}; -//2.16.840.1.101.2.1.5.23 SDN.700 INFOSEC attributes aprUKMs -static const unsigned char cvOID_aprUKMs [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x05, 0x17}; -//2.16.840.1.101.2.1.5.24 SDN.700 INFOSEC attributes mayUKMs -static const unsigned char cvOID_mayUKMs [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x05, 0x18}; -//2.16.840.1.101.2.1.5.25 SDN.700 INFOSEC attributes junUKMs -static const unsigned char cvOID_junUKMs [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x05, 0x19}; -//2.16.840.1.101.2.1.5.26 SDN.700 INFOSEC attributes julUKMs -static const unsigned char cvOID_julUKMs [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x05, 0x1A}; -//2.16.840.1.101.2.1.5.27 SDN.700 INFOSEC attributes augUKMs -static const unsigned char cvOID_augUKMs [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x05, 0x1B}; -//2.16.840.1.101.2.1.5.28 SDN.700 INFOSEC attributes sepUKMs -static const unsigned char cvOID_sepUKMs [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x05, 0x1C}; -//2.16.840.1.101.2.1.5.29 SDN.700 INFOSEC attributes octUKMs -static const unsigned char cvOID_octUKMs [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x05, 0x1D}; -//2.16.840.1.101.2.1.5.30 SDN.700 INFOSEC attributes novUKMs -static const unsigned char cvOID_novUKMs [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x05, 0x1E}; -//2.16.840.1.101.2.1.5.21 SDN.700 INFOSEC attributes decUKMs -static const unsigned char cvOID_decUKMs [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x05, 0x1F}; -//2.16.840.1.101.2.1.5.40 SDN.700 INFOSEC attributes metaSDNSckl -static const unsigned char cvOID_metaSDNSckl [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x05, 0x28}; -//2.16.840.1.101.2.1.5.41 SDN.700 INFOSEC attributes sdnsCKL -static const unsigned char cvOID_sdnsCKL [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x05, 0x29}; -//2.16.840.1.101.2.1.5.42 SDN.700 INFOSEC attributes metaSDNSsignatureCKL -static const unsigned char cvOID_metaSDNSsignatureCKL [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x05, 0x2A}; -//2.16.840.1.101.2.1.5.43 SDN.700 INFOSEC attributes sdnsSignatureCKL -static const unsigned char cvOID_sdnsSignatureCKL [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x05, 0x2B}; -//2.16.840.1.101.2.1.5.44 SDN.700 INFOSEC attributes sdnsCertificateRevocationList -static const unsigned char cvOID_sdnsCertificateRevocationList [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x05, 0x2C}; -//2.16.840.1.101.2.1.5.45 SDN.700 INFOSEC attributes (superseded) fortezzaCertificateRevocationList -static const unsigned char cvOID_fortezzaCertificateRevocationList [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x05, 0x2D}; -//2.16.840.1.101.2.1.5.46 SDN.700 INFOSEC attributes fortezzaCKL -static const unsigned char cvOID_fortezzaCKL [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x05, 0x2E}; -//2.16.840.1.101.2.1.5.47 SDN.700 INFOSEC attributes alExemptedAddressProcessor -static const unsigned char cvOID_alExemptedAddressProcessor [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x05, 0x2F}; -//2.16.840.1.101.2.1.5.48 SDN.700 INFOSEC attributes (obsolete) guard -static const unsigned char cvOID_guard [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x05, 0x30}; -//2.16.840.1.101.2.1.5.49 SDN.700 INFOSEC attributes (obsolete) algorithmsSupported -static const unsigned char cvOID_algorithmsSupported [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x05, 0x31}; -//2.16.840.1.101.2.1.5.50 SDN.700 INFOSEC attributes (obsolete) suiteAKeyManagementCertificate -static const unsigned char cvOID_suiteAKeyManagementCertificate [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x05, 0x32}; -//2.16.840.1.101.2.1.5.51 SDN.700 INFOSEC attributes (obsolete) suiteAKMandSigCertificate -static const unsigned char cvOID_suiteAKMandSigCertificate [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x05, 0x33}; -//2.16.840.1.101.2.1.5.52 SDN.700 INFOSEC attributes (obsolete) suiteAUserSignatureCertificate -static const unsigned char cvOID_suiteAUserSignatureCertificate [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x05, 0x34}; -//2.16.840.1.101.2.1.5.53 SDN.700 INFOSEC attributes prbacInfo -static const unsigned char cvOID_prbacInfo [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x05, 0x35}; -//2.16.840.1.101.2.1.5.54 SDN.700 INFOSEC attributes prbacCAstatic constraints -static const unsigned char cvOID_prbacCAconstraints [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x05, 0x36}; -//2.16.840.1.101.2.1.5.55 SDN.700 INFOSEC attributes sigOrKMPrivileges -static const unsigned char cvOID_sigOrKMPrivileges [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x05, 0x37}; -//2.16.840.1.101.2.1.5.56 SDN.700 INFOSEC attributes commPrivileges -static const unsigned char cvOID_commPrivileges [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x05, 0x38}; -//2.16.840.1.101.2.1.5.57 SDN.700 INFOSEC attributes labeledAttribute -static const unsigned char cvOID_labeledAttribute [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x05, 0x39}; -//2.16.840.1.101.2.1.5.58 SDN.700 INFOSEC attributes (obsolete) policyInformationFile -static const unsigned char cvOID_policyInformationFile [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x05, 0x3A}; -//2.16.840.1.101.2.1.5.59 SDN.700 INFOSEC attributes secPolicyInformationFile -static const unsigned char cvOID_secPolicyInformationFile [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x05, 0x3B}; -//2.16.840.1.101.2.1.5.60 SDN.700 INFOSEC attributes cAClearancestatic constraint -static const unsigned char cvOID_cAClearanceconstraint [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x05, 0x3C}; -//2.16.840.1.101.2.1.7.1 SDN.700 INFOSEC extensions cspExtns -static const unsigned char cvOID_cspExtns [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x07, 0x01}; -//2.16.840.1.101.2.1.7.1.0 SDN.700 INFOSEC extensions cspCsExtn -static const unsigned char cvOID_cspCsExtn [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x07, 0x01, 0x00}; -//2.16.840.1.101.2.1.8.1 SDN.700 INFOSEC security category mISSISecurityCategories -static const unsigned char cvOID_mISSISecurityCategories [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x08, 0x01}; -//2.16.840.1.101.2.1.8.2 SDN.700 INFOSEC security category standardSecurityLabelPrivileges -static const unsigned char cvOID_standardSecurityLabelPrivileges [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x08, 0x02}; -//2.16.840.1.101.2.1.10.1 SDN.700 INFOSEC privileges sigPrivileges -static const unsigned char cvOID_sigPrivileges [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x0A, 0x01}; -//2.16.840.1.101.2.1.10.2 SDN.700 INFOSEC privileges kmPrivileges -static const unsigned char cvOID_kmPrivileges [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x0A, 0x02}; -//2.16.840.1.101.2.1.10.3 SDN.700 INFOSEC privileges namedTagSetPrivilege -static const unsigned char cvOID_namedTagSetPrivilege [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x0A, 0x03}; -//2.16.840.1.101.2.1.11.1 SDN.700 INFOSEC certificate policy ukDemo -static const unsigned char cvOID_ukDemo [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x0B, 0x01}; -//2.16.840.1.101.2.1.11.2 SDN.700 INFOSEC certificate policy usDODClass2 -static const unsigned char cvOID_usDODClass2 [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x0B, 0x02}; -//2.16.840.1.101.2.1.11.3 SDN.700 INFOSEC certificate policy usMediumPilot -static const unsigned char cvOID_usMediumPilot [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x0B, 0x03}; -//2.16.840.1.101.2.1.11.4 SDN.700 INFOSEC certificate policy usDODClass4 -static const unsigned char cvOID_usDODClass4 [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x0B, 0x04}; -//2.16.840.1.101.2.1.11.5 SDN.700 INFOSEC certificate policy usDODClass3 -static const unsigned char cvOID_usDODClass3 [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x0B, 0x05}; -//2.16.840.1.101.2.1.11.6 SDN.700 INFOSEC certificate policy usDODClass5 -static const unsigned char cvOID_usDODClass5 [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x0B, 0x06}; -//2.16.840.1.101.2.1.12.0 SDN.700 INFOSEC test objects testSecurityPolicy -static const unsigned char cvOID_testSecurityPolicy [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x0C, 0x00}; -//2.16.840.1.101.2.1.12.0.1 SDN.700 INFOSEC test objects tsp1 -static const unsigned char cvOID_tsp1 [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x0C, 0x00, 0x01}; -//2.16.840.1.101.2.1.12.0.1.0 SDN.700 INFOSEC test objects tsp1SecurityCategories -static const unsigned char cvOID_tsp1SecurityCategories [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x0C, 0x00, 0x01, 0x00}; -//2.16.840.1.101.2.1.12.0.1.0.0 SDN.700 INFOSEC test objects tsp1TagSetZero -static const unsigned char cvOID_tsp1TagSetZero [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x0C, 0x00, 0x01, 0x00, 0x00}; -//2.16.840.1.101.2.1.12.0.1.0.1 SDN.700 INFOSEC test objects tsp1TagSetOne -static const unsigned char cvOID_tsp1TagSetOne [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x0C, 0x00, 0x01, 0x00, 0x01}; -//2.16.840.1.101.2.1.12.0.1.0.2 SDN.700 INFOSEC test objects tsp1TagSetTwo -static const unsigned char cvOID_tsp1TagSetTwo [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x0C, 0x00, 0x01, 0x00, 0x02}; -//2.16.840.1.101.2.1.12.0.2 SDN.700 INFOSEC test objects tsp2 -static const unsigned char cvOID_tsp2 [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x0C, 0x00, 0x02}; -//2.16.840.1.101.2.1.12.0.2.0 SDN.700 INFOSEC test objects tsp2SecurityCategories -static const unsigned char cvOID_tsp2SecurityCategories [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x0C, 0x00, 0x02, 0x00}; -//2.16.840.1.101.2.1.12.0.2.0.0 SDN.700 INFOSEC test objects tsp2TagSetZero -static const unsigned char cvOID_tsp2TagSetZero [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x0C, 0x00, 0x02, 0x00, 0x00}; -//2.16.840.1.101.2.1.12.0.2.0.1 SDN.700 INFOSEC test objects tsp2TagSetOne -static const unsigned char cvOID_tsp2TagSetOne [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x0C, 0x00, 0x02, 0x00, 0x01}; -//2.16.840.1.101.2.1.12.0.2.0.2 SDN.700 INFOSEC test objects tsp2TagSetTwo -static const unsigned char cvOID_tsp2TagSetTwo [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x0C, 0x00, 0x02, 0x00, 0x02}; -//2.16.840.1.101.2.1.12.0.3 SDN.700 INFOSEC test objects kafka -static const unsigned char cvOID_kafka [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x0C, 0x00, 0x03}; -//2.16.840.1.101.2.1.12.0.3.0 SDN.700 INFOSEC test objects kafkaSecurityCategories -static const unsigned char cvOID_kafkaSecurityCategories [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x0C, 0x00, 0x03, 0x00}; -//2.16.840.1.101.2.1.12.0.3.0.1 SDN.700 INFOSEC test objects kafkaTagSetName1 -static const unsigned char cvOID_kafkaTagSetName1 [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x0C, 0x00, 0x03, 0x00, 0x01}; -//2.16.840.1.101.2.1.12.0.3.0.2 SDN.700 INFOSEC test objects kafkaTagSetName2 -static const unsigned char cvOID_kafkaTagSetName2 [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x0C, 0x00, 0x03, 0x00, 0x02}; -//2.16.840.1.101.2.1.12.0.3.0.3 SDN.700 INFOSEC test objects kafkaTagSetName3 -static const unsigned char cvOID_kafkaTagSetName3 [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x0C, 0x00, 0x03, 0x00, 0x03}; -//2.16.840.1.101.2.1.12.1.1 SDN.700 INFOSEC test objects tcp1 -static const unsigned char cvOID_tcp1 [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x0C, 0x01, 0x01}; -//2.16.840.1.101.3.1 CSOR GAK slabel -static const unsigned char cvOID_slabel [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x03, 0x01}; -//2.16.840.1.101.3.2 CSOR GAK pki -static const unsigned char cvOID_pki [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x03, 0x02}; -//2.16.840.1.101.3.2.1 CSOR GAK policy GAK policyIdentifier -static const unsigned char cvOID_GAK_policyIdentifier [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x03, 0x02, 0x01}; -//2.16.840.1.101.3.2.2 CSOR GAK extended key usage GAK -static const unsigned char cvOID_GAK [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x03, 0x02, 0x02}; -//2.16.840.1.101.3.2.2.1 CSOR GAK extended key usage kRAKey -static const unsigned char cvOID_kRAKey [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x03, 0x02, 0x02, 0x01}; -//2.16.840.1.101.3.2.3 CSOR GAK extensions extensions -static const unsigned char cvOID_extensions [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x03, 0x02, 0x03}; -//2.16.840.1.101.3.2.3.1 CSOR GAK extensions kRTechnique -static const unsigned char cvOID_kRTechnique [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x03, 0x02, 0x03, 0x01}; -//2.16.840.1.101.3.2.3.2 CSOR GAK extensions kRecoveryCapable -static const unsigned char cvOID_kRecoveryCapable [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x03, 0x02, 0x03, 0x02}; -//2.16.840.1.101.3.2.3.3 CSOR GAK extensions kR -static const unsigned char cvOID_kR [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x03, 0x02, 0x03, 0x03}; -//2.16.840.1.101.3.2.4 CSOR GAK keyrecoveryschemes -static const unsigned char cvOID_keyrecoveryschemes [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x03, 0x02, 0x04}; -//2.16.840.1.101.3.2.5 CSOR GAK krapola -static const unsigned char cvOID_krapola [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x03, 0x02, 0x05}; -//2.16.840.1.101.3.3 CSOR GAK arpa -static const unsigned char cvOID_arpa [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x03, 0x03}; -//2.16.840.1.113719.1.9 Novell pki -static const unsigned char cvOID_pki_Novell [] = { 0x60, 0x86, 0x48, 0x01, 0x86, 0xF8, 0x37, 0x01, 0x09}; -//2.16.840.1.113719.1.9.4 Novell PKI pkiAttributeType -static const unsigned char cvOID_pkiAttributeType [] = { 0x60, 0x86, 0x48, 0x01, 0x86, 0xF8, 0x37, 0x01, 0x09, 0x04}; -//2.16.840.1.113719.1.9.4.1 Novell PKI attribute type registeredAttributes -static const unsigned char cvOID_registeredAttributes [] = { 0x60, 0x86, 0x48, 0x01, 0x86, 0xF8, 0x37, 0x01, 0x09, 0x04, 0x01}; -//2.16.840.1.113719.1.9.4.2 Novell PKI attribute type relianceLimit -static const unsigned char cvOID_relianceLimit [] = { 0x60, 0x86, 0x48, 0x01, 0x86, 0xF8, 0x37, 0x01, 0x09, 0x04, 0x02}; -//2.16.840.1.113730.1 Netscape cert-extension -static const unsigned char cvOID_cert_extension [] = { 0x60, 0x86, 0x48, 0x01, 0x86, 0xF8, 0x42, 0x01}; -//2.16.840.1.113730.1.1 Netscape certificate extension netscape-cert-type -static const unsigned char cvOID_netscape_cert_type [] = { 0x60, 0x86, 0x48, 0x01, 0x86, 0xF8, 0x42, 0x01, 0x01}; -//2.16.840.1.113730.1.2 Netscape certificate extension netscape-base-url -static const unsigned char cvOID_netscape_base_url [] = { 0x60, 0x86, 0x48, 0x01, 0x86, 0xF8, 0x42, 0x01, 0x02}; -//2.16.840.1.113730.1.3 Netscape certificate extension netscape-revocation-url -static const unsigned char cvOID_netscape_revocation_url [] = { 0x60, 0x86, 0x48, 0x01, 0x86, 0xF8, 0x42, 0x01, 0x03}; -//2.16.840.1.113730.1.4 Netscape certificate extension netscape-ca-revocation-url -static const unsigned char cvOID_netscape_ca_revocation_url [] = { 0x60, 0x86, 0x48, 0x01, 0x86, 0xF8, 0x42, 0x01, 0x04}; -//2.16.840.1.113730.1.7 Netscape certificate extension netscape-cert-renewal-url -static const unsigned char cvOID_netscape_cert_renewal_url [] = { 0x60, 0x86, 0x48, 0x01, 0x86, 0xF8, 0x42, 0x01, 0x07}; -//2.16.840.1.113730.1.8 Netscape certificate extension netscape-ca-policy-url -static const unsigned char cvOID_netscape_ca_policy_url [] = { 0x60, 0x86, 0x48, 0x01, 0x86, 0xF8, 0x42, 0x01, 0x08}; -//2.16.840.1.113730.1.9 Netscape certificate extension HomePage-url -static const unsigned char cvOID_HomePage_url [] = { 0x60, 0x86, 0x48, 0x01, 0x86, 0xF8, 0x42, 0x01, 0x09}; -//2.16.840.1.113730.1.10 Netscape certificate extension EntityLogo -static const unsigned char cvOID_EntityLogo [] = { 0x60, 0x86, 0x48, 0x01, 0x86, 0xF8, 0x42, 0x01, 0x0A}; -//2.16.840.1.113730.1.11 Netscape certificate extension UserPicture -static const unsigned char cvOID_UserPicture [] = { 0x60, 0x86, 0x48, 0x01, 0x86, 0xF8, 0x42, 0x01, 0x0B}; -//2.16.840.1.113730.1.12 Netscape certificate extension netscape-ssl-server-name -static const unsigned char cvOID_netscape_ssl_server_name [] = { 0x60, 0x86, 0x48, 0x01, 0x86, 0xF8, 0x42, 0x01, 0x0C}; -//2.16.840.1.113730.1.13 Netscape certificate extension netscape-comment -static const unsigned char cvOID_netscape_comment [] = { 0x60, 0x86, 0x48, 0x01, 0x86, 0xF8, 0x42, 0x01, 0x0D}; -//2.16.840.1.113730.2 Netscape data-type -static const unsigned char cvOID_data_type [] = { 0x60, 0x86, 0x48, 0x01, 0x86, 0xF8, 0x42, 0x02}; -//2.16.840.1.113730.2.1 Netscape data type dataGIF -static const unsigned char cvOID_dataGIF [] = { 0x60, 0x86, 0x48, 0x01, 0x86, 0xF8, 0x42, 0x02, 0x01}; -//2.16.840.1.113730.2.2 Netscape data type dataJPEG -static const unsigned char cvOID_dataJPEG [] = { 0x60, 0x86, 0x48, 0x01, 0x86, 0xF8, 0x42, 0x02, 0x02}; -//2.16.840.1.113730.2.3 Netscape data type dataURL -static const unsigned char cvOID_dataURL [] = { 0x60, 0x86, 0x48, 0x01, 0x86, 0xF8, 0x42, 0x02, 0x03}; -//2.16.840.1.113730.2.4 Netscape data type dataHTML -static const unsigned char cvOID_dataHTML [] = { 0x60, 0x86, 0x48, 0x01, 0x86, 0xF8, 0x42, 0x02, 0x04}; -//2.16.840.1.113730.2.5 Netscape data type certSequence -static const unsigned char cvOID_certSequence [] = { 0x60, 0x86, 0x48, 0x01, 0x86, 0xF8, 0x42, 0x02, 0x05}; -//2.16.840.1.113730.2.6 Netscape certificate extension certURL -static const unsigned char cvOID_certURL [] = { 0x60, 0x86, 0x48, 0x01, 0x86, 0xF8, 0x42, 0x02, 0x06}; -//2.16.840.1.113730.3 Netscape directory -static const unsigned char cvOID_directory [] = { 0x60, 0x86, 0x48, 0x01, 0x86, 0xF8, 0x42, 0x03}; -//2.16.840.1.113730.3.1 Netscape directory ldapDefinitions -static const unsigned char cvOID_ldapDefinitions [] = { 0x60, 0x86, 0x48, 0x01, 0x86, 0xF8, 0x42, 0x03, 0x01}; -//2.16.840.1.113730.3.1.1 Netscape LDAP definitions carLicense -static const unsigned char cvOID_carLicense [] = { 0x60, 0x86, 0x48, 0x01, 0x86, 0xF8, 0x42, 0x03, 0x01, 0x01}; -//2.16.840.1.113730.3.1.2 Netscape LDAP definitions departmentNumber -static const unsigned char cvOID_departmentNumber [] = { 0x60, 0x86, 0x48, 0x01, 0x86, 0xF8, 0x42, 0x03, 0x01, 0x02}; -//2.16.840.1.113730.3.1.3 Netscape LDAP definitions employeeNumber -static const unsigned char cvOID_employeeNumber [] = { 0x60, 0x86, 0x48, 0x01, 0x86, 0xF8, 0x42, 0x03, 0x01, 0x03}; -//2.16.840.1.113730.3.1.4 Netscape LDAP definitions employeeType -static const unsigned char cvOID_employeeType [] = { 0x60, 0x86, 0x48, 0x01, 0x86, 0xF8, 0x42, 0x03, 0x01, 0x04}; -//2.16.840.1.113730.3.2.2 Netscape LDAP definitions inetOrgPerson -static const unsigned char cvOID_inetOrgPerson [] = { 0x60, 0x86, 0x48, 0x01, 0x86, 0xF8, 0x42, 0x03, 0x02, 0x02}; -//2.16.840.1.113730.4.1 Netscape serverGatedCrypto -static const unsigned char cvOID_serverGatedCrypto_Netscape [] = { 0x60, 0x86, 0x48, 0x01, 0x86, 0xF8, 0x42, 0x04, 0x01}; -//2.16.840.1.113733.1.6.3 Verisign Unknown Verisign extension -static const unsigned char cvOID_Unknown_Verisign_extension_1 [] = { 0x60, 0x86, 0x48, 0x01, 0x86, 0xF8, 0x45, 0x01, 0x06, 0x03}; -//2.16.840.1.113733.1.6.6 Verisign Unknown Verisign extension -static const unsigned char cvOID_Unknown_Verisign_extension_2 [] = { 0x60, 0x86, 0x48, 0x01, 0x86, 0xF8, 0x45, 0x01, 0x06, 0x06}; -//2.16.840.1.113733.1.7.1.1 Verisign Verisign certificatePolicy -static const unsigned char cvOID_Verisign_certificatePolicy [] = { 0x60, 0x86, 0x48, 0x01, 0x86, 0xF8, 0x45, 0x01, 0x07, 0x01, 0x01}; -//2.16.840.1.113733.1.7.1.1.1 Verisign Unknown Verisign policy qualifier -static const unsigned char cvOID_Unknown_Verisign_policy_qualifier_1 [] = { 0x60, 0x86, 0x48, 0x01, 0x86, 0xF8, 0x45, 0x01, 0x07, 0x01, 0x01, 0x01}; -//2.16.840.1.113733.1.7.1.1.2 Verisign Unknown Verisign policy qualifier -static const unsigned char cvOID_Unknown_Verisign_policy_qualifier_2 [] = { 0x60, 0x86, 0x48, 0x01, 0x86, 0xF8, 0x45, 0x01, 0x07, 0x01, 0x01, 0x02}; -//2.16.840.1.113733.1.8.1 Verisign Verisign SGC CA? -static const unsigned char cvOID_Verisign_SGC_CA [] = { 0x60, 0x86, 0x48, 0x01, 0x86, 0xF8, 0x45, 0x01, 0x08, 0x01}; -//2.23.42.0 SET contentType -static const unsigned char cvOID_contentType_SET [] = { 0x67, 0x2A, 0x00}; -//2.23.42.0.0 SET contentType PANData -static const unsigned char cvOID_PANData [] = { 0x67, 0x2A, 0x00, 0x00}; -//2.23.42.0.1 SET contentType PANToken -static const unsigned char cvOID_PANToken [] = { 0x67, 0x2A, 0x00, 0x01}; -//2.23.42.0.2 SET contentType PANOnly -static const unsigned char cvOID_PANOnly [] = { 0x67, 0x2A, 0x00, 0x02}; -//2.23.42.1 SET msgExt -static const unsigned char cvOID_msgExt [] = { 0x67, 0x2A, 0x01}; -//2.23.42.2 SET field -static const unsigned char cvOID_field [] = { 0x67, 0x2A, 0x02}; -//2.23.42.2.0 SET field fullName -static const unsigned char cvOID_fullName [] = { 0x67, 0x2A, 0x02, 0x00}; -//2.23.42.2.1 SET field givenName -static const unsigned char cvOID_givenName_SET [] = { 0x67, 0x2A, 0x02, 0x01}; -//2.23.42.2.2 SET field familyName -static const unsigned char cvOID_familyName [] = { 0x67, 0x2A, 0x02, 0x02}; -//2.23.42.2.3 SET field birthFamilyName -static const unsigned char cvOID_birthFamilyName [] = { 0x67, 0x2A, 0x02, 0x03}; -//2.23.42.2.4 SET field placeName -static const unsigned char cvOID_placeName [] = { 0x67, 0x2A, 0x02, 0x04}; -//2.23.42.2.5 SET field identificationNumber -static const unsigned char cvOID_identificationNumber [] = { 0x67, 0x2A, 0x02, 0x05}; -//2.23.42.2.6 SET field month -static const unsigned char cvOID_month [] = { 0x67, 0x2A, 0x02, 0x06}; -//2.23.42.2.7 SET field date -static const unsigned char cvOID_date [] = { 0x67, 0x2A, 0x02, 0x07}; -//2.23.42.2.8 SET field address -static const unsigned char cvOID_address [] = { 0x67, 0x2A, 0x02, 0x08}; -//2.23.42.2.9 SET field telephone -static const unsigned char cvOID_telephone [] = { 0x67, 0x2A, 0x02, 0x09}; -//2.23.42.2.10 SET field amount -static const unsigned char cvOID_amount [] = { 0x67, 0x2A, 0x02, 0x0A}; -//2.23.42.2.7.11 SET field accountNumber -static const unsigned char cvOID_accountNumber [] = { 0x67, 0x2A, 0x02, 0x0B}; -//2.23.42.2.7.12 SET field passPhrase -static const unsigned char cvOID_passPhrase [] = { 0x67, 0x2A, 0x02, 0x0C}; -//2.23.42.3 SET attribute -static const unsigned char cvOID_attribute_SET [] = { 0x67, 0x2A, 0x03}; -//2.23.42.3.0 SET attribute cert -static const unsigned char cvOID_cert_SET [] = { 0x67, 0x2A, 0x03, 0x00}; -//2.23.42.3.0.0 SET cert attribute rootKeyThumb -static const unsigned char cvOID_rootKeyThumb [] = { 0x67, 0x2A, 0x03, 0x00, 0x00}; -//2.23.42.3.0.1 SET cert attribute additionalPolicy -static const unsigned char cvOID_additionalPolicy [] = { 0x67, 0x2A, 0x03, 0x00, 0x01}; -//2.23.42.4 SET algorithm -static const unsigned char cvOID_algorithm_SET [] = { 0x67, 0x2A, 0x04}; -//2.23.42.5 SET policy -static const unsigned char cvOID_policy_SET [] = { 0x67, 0x2A, 0x05}; -//2.23.42.5.0 SET policy root -static const unsigned char cvOID_root [] = { 0x67, 0x2A, 0x05, 0x00}; -//2.23.42.6 SET module -static const unsigned char cvOID_module_SET [] = { 0x67, 0x2A, 0x06}; -//2.23.42.7 SET certExt -static const unsigned char cvOID_certExt [] = { 0x67, 0x2A, 0x07}; -//2.23.42.7.0 SET cert extension hashedRootKey -static const unsigned char cvOID_hashedRootKey [] = { 0x67, 0x2A, 0x07, 0x00}; -//2.23.42.7.1 SET cert extension certificateType -static const unsigned char cvOID_certificateType_SET [] = { 0x67, 0x2A, 0x07, 0x01}; -//2.23.42.7.2 SET cert extension merchantData -static const unsigned char cvOID_merchantData [] = { 0x67, 0x2A, 0x07, 0x02}; -//2.23.42.7.3 SET cert extension cardCertRequired -static const unsigned char cvOID_cardCertRequired [] = { 0x67, 0x2A, 0x07, 0x03}; -//2.23.42.7.4 SET cert extension tunneling -static const unsigned char cvOID_tunneling [] = { 0x67, 0x2A, 0x07, 0x04}; -//2.23.42.7.5 SET cert extension setExtensions -static const unsigned char cvOID_setExtensions [] = { 0x67, 0x2A, 0x07, 0x05}; -//2.23.42.7.6 SET cert extension setQualifier -static const unsigned char cvOID_setQualifier [] = { 0x67, 0x2A, 0x07, 0x06}; -//2.23.42.8 SET brand -static const unsigned char cvOID_brand [] = { 0x67, 0x2A, 0x08}; -//2.23.42.8.1 SET brand IATA-ATA -static const unsigned char cvOID_IATA_ATA [] = { 0x67, 0x2A, 0x08, 0x01}; -//2.23.42.8.4 SET brand VISA -static const unsigned char cvOID_VISA [] = { 0x67, 0x2A, 0x08, 0x04}; -//2.23.42.8.5 SET brand MasterCard -static const unsigned char cvOID_MasterCard [] = { 0x67, 0x2A, 0x08, 0x05}; -//2.23.42.8.30 SET brand Diners -static const unsigned char cvOID_Diners [] = { 0x67, 0x2A, 0x08, 0x1E}; -//2.23.42.8.34 SET brand AmericanExpress -static const unsigned char cvOID_AmericanExpress [] = { 0x67, 0x2A, 0x08, 0x22}; -//2.23.42.8.6011 SET brand Novus -static const unsigned char cvOID_Novus [] = { 0x67, 0x2A, 0x08, 0xAE, 0x7B}; -//2.23.42.9 SET vendor -static const unsigned char cvOID_vendor [] = { 0x67, 0x2A, 0x09}; -//2.23.42.9.0 SET vendor GlobeSet -static const unsigned char cvOID_GlobeSet [] = { 0x67, 0x2A, 0x09, 0x00}; -//2.23.42.9.1 SET vendor IBM -static const unsigned char cvOID_IBM [] = { 0x67, 0x2A, 0x09, 0x01}; -//2.23.42.9.2 SET vendor CyberCash -static const unsigned char cvOID_CyberCash [] = { 0x67, 0x2A, 0x09, 0x02}; -//2.23.42.9.3 SET vendor Terisa -static const unsigned char cvOID_Terisa [] = { 0x67, 0x2A, 0x09, 0x03}; -//2.23.42.9.4 SET vendor RSADSI -static const unsigned char cvOID_RSADSI [] = { 0x67, 0x2A, 0x09, 0x04}; -//2.23.42.9.5 SET vendor VeriFone -static const unsigned char cvOID_VeriFone [] = { 0x67, 0x2A, 0x09, 0x05}; -//2.23.42.9.6 SET vendor TrinTech -static const unsigned char cvOID_TrinTech [] = { 0x67, 0x2A, 0x09, 0x06}; -//2.23.42.9.7 SET vendor BankGate -static const unsigned char cvOID_BankGate [] = { 0x67, 0x2A, 0x09, 0x07}; -//2.23.42.9.8 SET vendor GTE -static const unsigned char cvOID_GTE [] = { 0x67, 0x2A, 0x09, 0x08}; -//2.23.42.9.9 SET vendor CompuSource -static const unsigned char cvOID_CompuSource [] = { 0x67, 0x2A, 0x09, 0x09}; -//2.23.42.9.10 SET vendor Griffin -static const unsigned char cvOID_Griffin [] = { 0x67, 0x2A, 0x09, 0x0A}; -//2.23.42.9.11 SET vendor Certicom -static const unsigned char cvOID_Certicom [] = { 0x67, 0x2A, 0x09, 0x0B}; -//2.23.42.9.12 SET vendor OSS -static const unsigned char cvOID_OSS [] = { 0x67, 0x2A, 0x09, 0x0C}; -//2.23.42.9.13 SET vendor TenthMountain -static const unsigned char cvOID_TenthMountain [] = { 0x67, 0x2A, 0x09, 0x0D}; -//2.23.42.9.14 SET vendor Antares -static const unsigned char cvOID_Antares [] = { 0x67, 0x2A, 0x09, 0x0E}; -//2.23.42.9.15 SET vendor ECC -static const unsigned char cvOID_ECC [] = { 0x67, 0x2A, 0x09, 0x0F}; -//2.23.42.9.16 SET vendor Maithean -static const unsigned char cvOID_Maithean [] = { 0x67, 0x2A, 0x09, 0x10}; -//2.23.42.9.17 SET vendor Netscape -static const unsigned char cvOID_Netscape [] = { 0x67, 0x2A, 0x09, 0x11}; -//2.23.42.9.18 SET vendor Verisign -static const unsigned char cvOID_Verisign [] = { 0x67, 0x2A, 0x09, 0x12}; -//2.23.42.9.19 SET vendor BlueMoney -static const unsigned char cvOID_BlueMoney [] = { 0x67, 0x2A, 0x09, 0x13}; -//2.23.42.9.20 SET vendor Lacerte -static const unsigned char cvOID_Lacerte [] = { 0x67, 0x2A, 0x09, 0x14}; -//2.23.42.9.21 SET vendor Fujitsu -static const unsigned char cvOID_Fujitsu [] = { 0x67, 0x2A, 0x09, 0x15}; -//2.23.42.9.22 SET vendor eLab -static const unsigned char cvOID_eLab [] = { 0x67, 0x2A, 0x09, 0x16}; -//2.23.42.9.23 SET vendor Entrust -static const unsigned char cvOID_Entrust [] = { 0x67, 0x2A, 0x09, 0x17}; -//2.23.42.9.24 SET vendor VIAnet -static const unsigned char cvOID_VIAnet [] = { 0x67, 0x2A, 0x09, 0x18}; -//2.23.42.9.25 SET vendor III -static const unsigned char cvOID_III [] = { 0x67, 0x2A, 0x09, 0x19}; -//2.23.42.9.26 SET vendor OpenMarket -static const unsigned char cvOID_OpenMarket [] = { 0x67, 0x2A, 0x09, 0x1A}; -//2.23.42.9.27 SET vendor Lexem -static const unsigned char cvOID_Lexem [] = { 0x67, 0x2A, 0x09, 0x1B}; -//2.23.42.9.28 SET vendor Intertrader -static const unsigned char cvOID_Intertrader [] = { 0x67, 0x2A, 0x09, 0x1C}; -//2.23.42.9.29 SET vendor Persimmon -static const unsigned char cvOID_Persimmon [] = { 0x67, 0x2A, 0x09, 0x1D}; -//2.23.42.9.30 SET vendor NABLE -static const unsigned char cvOID_NABLE [] = { 0x67, 0x2A, 0x09, 0x1E}; -//2.23.42.9.31 SET vendor espace-net -static const unsigned char cvOID_espace_net [] = { 0x67, 0x2A, 0x09, 0x1F}; -//2.23.42.9.32 SET vendor Hitachi -static const unsigned char cvOID_Hitachi [] = { 0x67, 0x2A, 0x09, 0x20}; -//2.23.42.9.33 SET vendor Microsoft -static const unsigned char cvOID_Microsoft [] = { 0x67, 0x2A, 0x09, 0x21}; -//2.23.42.9.34 SET vendor NEC -static const unsigned char cvOID_NEC [] = { 0x67, 0x2A, 0x09, 0x22}; -//2.23.42.9.35 SET vendor Mitsubishi -static const unsigned char cvOID_Mitsubishi [] = { 0x67, 0x2A, 0x09, 0x23}; -//2.23.42.9.36 SET vendor NCR -static const unsigned char cvOID_NCR [] = { 0x67, 0x2A, 0x09, 0x24}; -//2.23.42.9.37 SET vendor e-COMM -static const unsigned char cvOID_e_COMM [] = { 0x67, 0x2A, 0x09, 0x25}; -//2.23.42.9.38 SET vendor Gemplus -static const unsigned char cvOID_Gemplus [] = { 0x67, 0x2A, 0x09, 0x26}; -//2.23.42.10 SET national -static const unsigned char cvOID_national [] = { 0x67, 0x2A, 0x0A}; -//2.23.42.10.192 SET national Japan -static const unsigned char cvOID_Japan [] = { 0x67, 0x2A, 0x0A, 0x81, 0x40}; -//2.54.1775.2 SET. Deprecated, use (2 23 42 7 0) instead hashedRootKey -static const unsigned char cvOID_hashedRootKey_old [] = { 0x86, 0x8D, 0x6F, 0x02}; -//2.54.1775.3 SET. Deprecated, use (2 23 42 7 0) instead certificateType -static const unsigned char cvOID_certificateType_old [] = { 0x86, 0x8D, 0x6F, 0x03}; -//2.54.1775.4 SET. Deprecated, use (2 23 42 7 0) instead merchantData -static const unsigned char cvOID_merchantData_old [] = { 0x86, 0x8D, 0x6F, 0x04}; -//2.54.1775.5 SET. Deprecated, use (2 23 42 7 0) instead cardCertRequired -static const unsigned char cvOID_cardCertRequired_old [] = { 0x86, 0x8D, 0x6F, 0x05}; -//2.54.1775.6 SET. Deprecated, use (2 23 42 7 0) instead tunneling -static const unsigned char cvOID_tunneling_old [] = { 0x86, 0x8D, 0x6F, 0x06}; -//2.54.1775.7 SET. Deprecated, use (2 23 42 7 0) instead setQualifier -static const unsigned char cvOID_setQualifier_old [] = { 0x86, 0x8D, 0x6F, 0x07}; -//2.54.1775.99 SET. Deprecated, use (2 23 42 7 0) instead set-data -static const unsigned char cvOID_set_data_old [] = { 0x86, 0x8D, 0x6F, 0x63}; - -#ifdef _MSC_VER -#pragma warning(default : 4305) -#pragma warning(default : 4309) -#endif - -#endif - diff --git a/actlibrary/Ubuntu-9-i686/Release/include/actPKCS15BehaviorKit.h b/actlibrary/Ubuntu-9-i686/Release/include/actPKCS15BehaviorKit.h deleted file mode 100644 index cdac8da..0000000 --- a/actlibrary/Ubuntu-9-i686/Release/include/actPKCS15BehaviorKit.h +++ /dev/null @@ -1,43 +0,0 @@ -// --------------------------------------------------------------------------- -// Name: actPKCS15BehaviorKit.h -// Product: cv act library -// Purpose: Factory functions to create specific PKCS15Behavior objects. -// -// Copyright: (c) 2008 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -// -// Autor: Markus Tesche -// Date: 06/02/2008 -// --------------------------------------------------------------------------- - -#ifndef ACT_PKCS15BehaviorKit_h -#define ACT_PKCS15BehaviorKit_h - -#include - -namespace act -{ - class IToken; - class IPKCS15Behavior; - - // default behavior, does nothing - IPKCS15Behavior* CreatePKCS15Behavior(const char* mid, IToken* token); - - // specialized behavior - IPKCS15Behavior* CreateSafeSignBehavior(const char* mid, IToken* token); - IPKCS15Behavior* CreateStarSignBehavior(const char* mid, IToken* token); - IPKCS15Behavior* CreateJCPKCS15Behavior(const char* mid, IToken* token); - IPKCS15Behavior* CreateJCPKCS15mEACBehavior(const char* mid, IToken* token); - IPKCS15Behavior* CreateHiPathBehavior(const char* mid, IToken* token); - IPKCS15Behavior* CreateV4PKCS15Behavior(const char* mid, IToken* token); - IPKCS15Behavior* CreateACOSPKCS15Behavior(const char* mid, IToken* token); - IPKCS15Behavior* CreateStarCOSPKCS15Behavior(const char* mid, IToken* token); - IPKCS15Behavior* CreateNexusBehavior(const char* mid, IToken* token); - IPKCS15Behavior* CreateVWBehavior(const char* mid, IToken* token); // Nexus derived - IPKCS15Behavior* CreateDTRUSTBehavior(const char* mid, IToken* token); // Nexus derived - -} // namespace act - -#endif // ACT_PKCS15BehaviorKit_h diff --git a/actlibrary/Ubuntu-9-i686/Release/include/actPKCS15BehaviorReg.h b/actlibrary/Ubuntu-9-i686/Release/include/actPKCS15BehaviorReg.h deleted file mode 100644 index 56f39a2..0000000 --- a/actlibrary/Ubuntu-9-i686/Release/include/actPKCS15BehaviorReg.h +++ /dev/null @@ -1,34 +0,0 @@ -// --------------------------------------------------------------------------- -// Name: actPKCS15BehaviorReg.h -// Product: cv act library -// Purpose: Registry for factory functions to create specific PKCS15Behavior objects. -// -// Copyright: (c) 2008 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -// -// Autor: Markus Tesche -// Date: 06/02/2008 -// --------------------------------------------------------------------------- - -#ifndef ACT_PKCS15BehaviorReg_h -#define ACT_PKCS15BehaviorReg_h - -#include "actFactoryReg.h" - -namespace act -{ - class IToken; - class IPKCS15Behavior; - - typedef IPKCS15Behavior* (*CreatePKCS15BehaviorPtr)(const char* mid, IToken* token); - typedef FactoryMapEntry PKCS15BehaviorMapEntry; - - typedef FactoryReg - < IPKCS15Behavior, CreatePKCS15BehaviorPtr, PKCS15BehaviorMapEntry - > PKCS15BehaviorReg; - -} // namespace act - -#endif // ACT_PKCS15BehaviorReg_h diff --git a/actlibrary/Ubuntu-9-i686/Release/include/actPaddingKit.h b/actlibrary/Ubuntu-9-i686/Release/include/actPaddingKit.h deleted file mode 100644 index 01fb93e..0000000 --- a/actlibrary/Ubuntu-9-i686/Release/include/actPaddingKit.h +++ /dev/null @@ -1,26 +0,0 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actPaddingKit.h -// Product: cv act library -// Purpose: declaration of all factory functions -// -// Copyright: (c) 2000 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_PaddingKit_h -#define ACT_PaddingKit_h - -namespace act -{ - class IPadding; - - IPadding* CreatePKCS5Pad(); - IPadding* CreatePKCS1V1_5EMEPad(); - IPadding* CreateOneAndZerosPad(); - IPadding* CreateISO9796Pad(); - IPadding* CreateNoPad(); -} -#endif - diff --git a/actlibrary/Ubuntu-9-i686/Release/include/actPaddingReg.h b/actlibrary/Ubuntu-9-i686/Release/include/actPaddingReg.h deleted file mode 100644 index 4cad768..0000000 --- a/actlibrary/Ubuntu-9-i686/Release/include/actPaddingReg.h +++ /dev/null @@ -1,41 +0,0 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actPaddingReg.h -// Product: cv act library -// Purpose: registry for the factory functions in actPaddingKit.h -// -// Copyright: (c) 2000 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_PaddingReg_h -#define ACT_PaddingReg_h - -namespace act -{ - class IPadding; - class Blob; - - typedef IPadding* (*CreatePaddingPtr)(); - - struct PaddingMapEntry - { - const char* Name; - CreatePaddingPtr CreatePtr; - }; - - class PaddingReg - { - public: - static IPadding* CreatePadding(const char* name); - static CreatePaddingPtr GetCreatePointer(const char* name); - static const char* GetName(void* createptr); - static const char* GetNextName(const char* name); - static void Insert(const char* name, CreatePaddingPtr createptr); - static void Insert(const PaddingMapEntry* paddingmap); - }; - -} // namespace act - -#endif // ACT_PaddingReg_h diff --git a/actlibrary/Ubuntu-9-i686/Release/include/actProfileGeneratorKit.h b/actlibrary/Ubuntu-9-i686/Release/include/actProfileGeneratorKit.h deleted file mode 100644 index 1992c43..0000000 --- a/actlibrary/Ubuntu-9-i686/Release/include/actProfileGeneratorKit.h +++ /dev/null @@ -1,26 +0,0 @@ -// --------------------------------------------------------------------------- -// Name: actProfileGeneratorKit.h -// Product: cv act library -// Purpose: Factory functions for smartcard profile generators. -// -// Copyright: (c) 2009 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -// -// Autor: Markus Tesche -// Date: 12/18/2009 -// --------------------------------------------------------------------------- - -#ifndef ACT_ProfileGeneratorKit_h -#define ACT_ProfileGeneratorKit_h - -namespace act -{ - class IProfileGenerator; - - IProfileGenerator* CreateJCPKCS15Generator(const char* name); - -} // namespace act - -#endif // ACT_ProfileGeneratorKit_h diff --git a/actlibrary/Ubuntu-9-i686/Release/include/actProfileGeneratorReg.h b/actlibrary/Ubuntu-9-i686/Release/include/actProfileGeneratorReg.h deleted file mode 100644 index 0a8f6be..0000000 --- a/actlibrary/Ubuntu-9-i686/Release/include/actProfileGeneratorReg.h +++ /dev/null @@ -1,33 +0,0 @@ -// --------------------------------------------------------------------------- -// Name: actProfileGeneratorReg.h -// Product: cv act library -// Purpose: factory functions registry to create IProfileGenerator objects. -// -// Copyright: (c) 2009 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -// -// Autor: Markus Tesche -// Date: 12/18/2009 -// --------------------------------------------------------------------------- - -#ifndef ACT_ProfileGeneratorReg_h -#define ACT_ProfileGeneratorReg_h - -#include "actFactoryReg.h" - -namespace act -{ - class IProfileGenerator; - - typedef IProfileGenerator* (*CreateProfileGeneratorPtr)(const char*); - typedef FactoryMapEntry ProfileGeneratorMapEntry; - - typedef FactoryReg - < IProfileGenerator, CreateProfileGeneratorPtr, ProfileGeneratorMapEntry - > ProfileGeneratorReg; - -} // namespace act - -#endif // ACT_ProfileGeneratorReg_h diff --git a/actlibrary/Ubuntu-9-i686/Release/include/actRNGKit.h b/actlibrary/Ubuntu-9-i686/Release/include/actRNGKit.h deleted file mode 100644 index 6a8b886..0000000 --- a/actlibrary/Ubuntu-9-i686/Release/include/actRNGKit.h +++ /dev/null @@ -1,44 +0,0 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actRNGKit.h -// Product: cv act library -// Purpose: declaration of all factory functions -// -// Copyright: (c) 2010 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_RNGKit_h -#define ACT_RNGKit_h -namespace act -{ - class IRNGAlg; - - // Dummy PRNG (uses rand() / srand(time(0))) - IRNGAlg* CreateDummyPRNG(); - - // Deterministic PRNGs - IRNGAlg* CreateARC4RNG(); - IRNGAlg* CreateBBS(); - IRNGAlg* CreateFIPS186(); - IRNGAlg* CreateFIPS186DES(); - IRNGAlg* CreateLCG(); - - // AIS 20, K1 - K4 evaluated deterministic PRNG - IRNGAlg* CreateFIPS186K4(); - - // 'True' RNGs - IRNGAlg* CreateDevRandomRNG(); -#ifndef UNDER_CE_30 - IRNGAlg* CreateWinRNG(); -#endif - - // Token RNG (uses IToken::GetRandom()) -#ifndef NO_SMARTCARD - IRNGAlg* CreateTokenRNG(); -#endif -} - -#endif - diff --git a/actlibrary/Ubuntu-9-i686/Release/include/actSCardLock.h b/actlibrary/Ubuntu-9-i686/Release/include/actSCardLock.h deleted file mode 100644 index 3bc753e..0000000 --- a/actlibrary/Ubuntu-9-i686/Release/include/actSCardLock.h +++ /dev/null @@ -1,51 +0,0 @@ -// --------------------------------------------------------------------------- -// Name: actSCardLock.h -// Product: cv act library -// Purpose: Smartcard transaction lock -// -// Copyright: (c) 2009 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -// -// Autor: Markus Tesche -// Date: 07/10/2009 -// --------------------------------------------------------------------------- - -#ifndef ACT_SCardLock_H -#define ACT_SCardLock_H - -#include "actEnv.h" - -#if defined(ACT_64) -# define LOCK_SIZE 32 -#else -# define LOCK_SIZE 16 -#endif - -namespace act -{ - class ISCardOS; - - class SCardLock - { - private: - SCardLock() { } - SCardLock(const SCardLock&) { } - - public: - SCardLock(ISCardOS* os); - ~SCardLock(); - - void Lock(ISCardOS* os); - void Unlock(); - - private: - byte m_lock[LOCK_SIZE]; - }; - -} // namespace act - -#undef LOCK_SIZE - -#endif // ACT_SCardLock_H diff --git a/actlibrary/Ubuntu-9-i686/Release/include/actSCardOSKit.h b/actlibrary/Ubuntu-9-i686/Release/include/actSCardOSKit.h deleted file mode 100644 index 79ae7b0..0000000 --- a/actlibrary/Ubuntu-9-i686/Release/include/actSCardOSKit.h +++ /dev/null @@ -1,170 +0,0 @@ -// --------------------------------------------------------------------------- -// Name: actSCardOSKit.h -// Product: cv act library -// Purpose: registry for factory functions to create SCardOS object -// -// Copyright: (c) 2002 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -// -// Autor: Dr. Xiangdong Wang (XWG) -// Date: 05/13/2002 -// --------------------------------------------------------------------------- - -#ifndef ACT_SCardOSKit_h -#define ACT_SCardOSKit_h - -namespace act -{ - class ISCardOS; - class ISCardAccess; - - /* - ISCardOS* CreateMicardOS(ISCardAccess*); - ISCardOS* CreateMicardo20E(ISCardAccess*); - ISCardOS* CreateMicardo23E(ISCardAccess* ac); - */ - - bool IsACOS(CreateSCardOSPtr ptr); - ISCardOS* CreateACOS_D01(ISCardAccess*); - ISCardOS* CreateACOS_A04(ISCardAccess*); - - bool IsCardOS_M4(CreateSCardOSPtr ptr); - ISCardOS* CreateCardOS_M4(ISCardAccess*); - ISCardOS* CreateCardOS_M4_MoC(ISCardAccess*); - - bool IsCardOS_M4_ECC(CreateSCardOSPtr ptr); - ISCardOS* CreateCardOS_M4_ECC(ISCardAccess*); - - bool IsCardOS_V4(CreateSCardOSPtr ptr); - ISCardOS* CreateCardOS_V4(ISCardAccess*); - - bool IsCardOS_V4_ECC(CreateSCardOSPtr ptr); - ISCardOS* CreateCardOS_V4_ECC(ISCardAccess*); - - bool IsStarCOS(CreateSCardOSPtr ptr); - ISCardOS* CreateStarCOS_3_0(ISCardAccess*); - ISCardOS* CreateStarCOS_3_2(ISCardAccess*); - - bool IsTCOS(CreateSCardOSPtr ptr); - ISCardOS* CreateTCOS_3_0(ISCardAccess*); - - bool IsJavaCardOS(CreateSCardOSPtr ptr); - ISCardOS* CreateJavaCardOS_2_2_2(ISCardAccess*); - ISCardOS* CreateJavaCardOS_2_2_1(ISCardAccess*); - ISCardOS* CreateJavaCardOS_2_2(ISCardAccess*); - ISCardOS* CreateJavaCardOS_2_1_2(ISCardAccess*); - ISCardOS* CreateJavaCardOS_2_1_1(ISCardAccess*); - ISCardOS* CreateJavaCardOS_2_1(ISCardAccess*); - - bool IsISO7816OS(CreateSCardOSPtr ptr); - ISCardOS* CreateISO7816OS(ISCardAccess*); - - // - // Passport OS - // --------------------------------------------------------------------------- - bool IsBACOS(CreateSCardOSPtr ptr); - ISCardOS* CreateBACOS(ISCardAccess* ac); - - bool IsEACOS(CreateSCardOSPtr ptr); - ISCardOS* CreateEACOS(ISCardAccess* ac); - - bool IsEACOS201(CreateSCardOSPtr ptr); - ISCardOS* CreateEACOS201(ISCardAccess* ac); - - bool IsEPAOS(CreateSCardOSPtr ptr); - ISCardOS* CreateEPAOS(ISCardAccess* ac); - - - // --------------------------------------------------------------------------- - inline bool IsACOS(CreateSCardOSPtr ptr) - { - return ptr == CreateACOS_D01 - || ptr == CreateACOS_A04; - } - - // --------------------------------------------------------------------------- - inline bool IsCardOS_M4(CreateSCardOSPtr ptr) - { - return ptr == CreateCardOS_M4 - || ptr == CreateCardOS_M4_MoC; - } - - // --------------------------------------------------------------------------- - inline bool IsCardOS_M4_ECC(CreateSCardOSPtr ptr) - { - return ptr == CreateCardOS_M4_ECC; - } - - // --------------------------------------------------------------------------- - inline bool IsCardOS_V4(CreateSCardOSPtr ptr) - { - return ptr == CreateCardOS_V4; - } - - // --------------------------------------------------------------------------- - inline bool IsCardOS_V4_ECC(CreateSCardOSPtr ptr) - { - return ptr == CreateCardOS_V4_ECC; - } - - // --------------------------------------------------------------------------- - inline bool IsStarCOS(CreateSCardOSPtr ptr) - { - return ptr == CreateStarCOS_3_0 - || ptr == CreateStarCOS_3_2; - } - - // --------------------------------------------------------------------------- - inline bool IsTCOS(CreateSCardOSPtr ptr) - { - return ptr == CreateTCOS_3_0; - } - - // --------------------------------------------------------------------------- - inline bool IsJavaCardOS(CreateSCardOSPtr ptr) - { - return ptr == CreateJavaCardOS_2_2_2 - || ptr == CreateJavaCardOS_2_2_1 - || ptr == CreateJavaCardOS_2_2 - || ptr == CreateJavaCardOS_2_1_2 - || ptr == CreateJavaCardOS_2_1_1 - || ptr == CreateJavaCardOS_2_1; - } - - // --------------------------------------------------------------------------- - inline bool IsISO7816OS(CreateSCardOSPtr ptr) - { - return ptr == CreateISO7816OS; - } - - // - // Passport OS - // --------------------------------------------------------------------------- - inline bool IsBACOS(CreateSCardOSPtr ptr) - { - return ptr == CreateBACOS; - } - - // --------------------------------------------------------------------------- - inline bool IsEACOS(CreateSCardOSPtr ptr) - { - return ptr == CreateEACOS; - } - - // --------------------------------------------------------------------------- - inline bool IsEACOS201(CreateSCardOSPtr ptr) - { - return ptr == CreateEACOS201; - } - - // --------------------------------------------------------------------------- - inline bool IsEPAOS(CreateSCardOSPtr ptr) - { - return ptr == CreateEPAOS; - } - -} // namespace act - -#endif // ACT_SCardOSKit_h diff --git a/actlibrary/Ubuntu-9-i686/Release/include/actSCardOSReg.h b/actlibrary/Ubuntu-9-i686/Release/include/actSCardOSReg.h deleted file mode 100644 index 4156615..0000000 --- a/actlibrary/Ubuntu-9-i686/Release/include/actSCardOSReg.h +++ /dev/null @@ -1,46 +0,0 @@ -// --------------------------------------------------------------------------- -// Name: actSCardOSReg.h -// Product: cv act library -// Purpose: factory functions registry to create SCardOS objects. -// -// Copyright: (c) 2002 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -// -// Autor: Dr. Xiangdong Wang (XWG) -// Date: 04/09/2002 -// --------------------------------------------------------------------------- - -#ifndef ACT_SCardOSReg_h -#define ACT_SCardOSReg_h - -namespace act -{ -# define ACT_ISO7816OS_NAME "ISO7816OS" - - class ISCardOS; - class ISCardAccess; - - typedef ISCardOS* (*CreateSCardOSPtr)(ISCardAccess*); - - struct SCardOSMapEntry - { - const char* Name; - CreateSCardOSPtr CreatePtr; - }; - - class SCardOSReg - { - public: - static ISCardOS* CreateSCardOS(const char* name, ISCardAccess* ac); - static CreateSCardOSPtr GetCreatePointer(const char* name); - static const char* GetName(void* createptr); - static const char* GetNextName(const char* name); - static void Insert(const char* name, CreateSCardOSPtr createptr); - static void Insert(const SCardOSMapEntry* entry); - }; - -} // namespace act - -#endif // ACT_SCardOSReg_h diff --git a/actlibrary/Ubuntu-9-i686/Release/include/actSCardTokenKit.h b/actlibrary/Ubuntu-9-i686/Release/include/actSCardTokenKit.h deleted file mode 100644 index 90cb011..0000000 --- a/actlibrary/Ubuntu-9-i686/Release/include/actSCardTokenKit.h +++ /dev/null @@ -1,105 +0,0 @@ -// --------------------------------------------------------------------------- -// Name: actSCardTokenKit.h -// Product: cv act library -// Purpose: registry for factory functions to create SCardOS and SCardToken objects -// -// Copyright: (c) 2002 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -// -// Autor: Dr. Xiangdong Wang (XWG) -// Date: 05/14/2002 -// --------------------------------------------------------------------------- - -#ifndef ACT_SCardTokenKit_h -#define ACT_SCardTokenKit_h - -namespace act -{ - class ISCardOS; - class SCardToken; - - bool IsStarCOSToken(ISCardOS* os); - SCardToken* CreateStarCOSToken(ISCardOS* os); - - bool IsV4cvProfile(ISCardOS* os); - SCardToken* CreateV4cvProfile(ISCardOS* os); - - bool IsV4cvECProfile(ISCardOS* os); - SCardToken* CreateV4cvECProfile(ISCardOS* os); - - bool IsV4CNSProfile(ISCardOS* os); - SCardToken* CreateV4CNSProfile(ISCardOS* os); - - bool IsNetKey2000Token(ISCardOS* os); - SCardToken* CreateNetKey2000Token(ISCardOS* os); - - bool IsNetKeyE4Token(ISCardOS* os); - SCardToken* CreateNetKeyE4Token(ISCardOS* os); - - bool IsNetKey30Token(ISCardOS* os); - SCardToken* CreateNetKey30Token(ISCardOS* os); - - bool IsNetKeyPKSToken(ISCardOS* os); - SCardToken* CreateNetKeyPKSToken(ISCardOS* os); - - bool IsNetKeyOldToken(ISCardOS* os); - SCardToken* CreateNetKeyOldToken(ISCardOS* os); - - bool IseTrustToken(ISCardOS* os); - SCardToken* CreateeTrustToken(ISCardOS* os); - - bool IsMicardoECToken(ISCardOS* os); - SCardToken* CreateMicardoECToken(ISCardOS* os); - - bool IsM4cvProfile(ISCardOS* os); - SCardToken* CreateM4cvProfile(ISCardOS* os); - - bool IsACOScvProfile(ISCardOS* os); - SCardToken* CreateACOScvProfile(ISCardOS* os); - - bool IsM4SiemensProfile(ISCardOS* os); - SCardToken* CreateM4SiemensProfile(ISCardOS* os); - - bool IsM4cvECProfile(ISCardOS* os); - SCardToken* CreateM4cvECProfile(ISCardOS* os); - - bool IsM4cvMoCProfile(ISCardOS* os); - SCardToken* CreateM4cvMoCProfile(ISCardOS* os); - - bool IsJavaCardAppletManager(ISCardOS* os); - SCardToken* CreateJavaCardAppletManager(ISCardOS* os); - - bool IsJCProfile(ISCardOS* os); - SCardToken* CreateJCProfile(ISCardOS* os); - - // PKCS#15 Profiles - bool IsM4PKCS15Profile(ISCardOS* os); - SCardToken* CreateM4PKCS15Profile(ISCardOS* os); - - bool IsV4PKCS15Profile(ISCardOS* os); - SCardToken* CreateV4PKCS15Profile(ISCardOS* os); - - bool IsV4PKCS15ECProfile(ISCardOS* os); - SCardToken* CreateV4PKCS15ECProfile(ISCardOS* os); - - bool IsJCPKCS15Profile(ISCardOS* os); - SCardToken* CreateJCPKCS15Profile(ISCardOS* os); - - bool IsJCPKCS15ECProfile(ISCardOS* os); - SCardToken* CreateJCPKCS15ECProfile(ISCardOS* os); - - bool IsACOSPKCS15Profile(ISCardOS* os); - SCardToken* CreateACOSPKCS15Profile(ISCardOS* os); - - bool IsStarCOSPKCS15Profile(ISCardOS* os); - SCardToken* CreateStarCOSPKCS15Profile(ISCardOS* os); - - // Passport - bool IsEPAProfile(ISCardOS* os); - SCardToken* CreateEPAProfile(ISCardOS* os); - -} // namespace act - -#endif // ACT_SCardTokenKit_h diff --git a/actlibrary/Ubuntu-9-i686/Release/include/actSCardTokenReg.h b/actlibrary/Ubuntu-9-i686/Release/include/actSCardTokenReg.h deleted file mode 100644 index 3f26385..0000000 --- a/actlibrary/Ubuntu-9-i686/Release/include/actSCardTokenReg.h +++ /dev/null @@ -1,42 +0,0 @@ -// --------------------------------------------------------------------------- -// Name: actSCardTokenReg.h -// Product: cv act library -// Purpose: factory functions registry to create SCardToken objects. -// -// Copyright: (c) 2002 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -// -// Autor: Dr. Xiangdong Wang (XWG) -// Date: 05/13/2002 -// --------------------------------------------------------------------------- - -#ifndef ACT_SCardTokenReg_h -#define ACT_SCardTokenReg_h - -namespace act -{ - class ISCardOS; - class SCardToken; - - typedef bool (*CheckSCardTokenPtr)(ISCardOS*); - typedef SCardToken* (*CreateSCardTokenPtr)(ISCardOS*); - - struct SCardTokenMapEntry - { - CheckSCardTokenPtr CheckPtr; - CreateSCardTokenPtr CreatePtr; - }; - - class SCardTokenReg - { - public: - static SCardToken* CreateSCardToken(ISCardOS* os); - static void Insert(CheckSCardTokenPtr checkptr, CreateSCardTokenPtr createptr); - static void Insert(const SCardTokenMapEntry* entry); - }; - -} // namespace act - -#endif // ACT_SCardTokenReg_h diff --git a/actlibrary/Ubuntu-9-i686/Release/include/actSCardUtil.h b/actlibrary/Ubuntu-9-i686/Release/include/actSCardUtil.h deleted file mode 100644 index 2b890d0..0000000 --- a/actlibrary/Ubuntu-9-i686/Release/include/actSCardUtil.h +++ /dev/null @@ -1,27 +0,0 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actSCardUtil.h -// Product: cv act library -// Purpose: useful global functions -// -// Copyright: (c) 2008 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef actSCardUtil_h -#define actSCardUtil_h - -namespace act -{ - // --------------------------------------------------------------------------- - template - inline BlobT short2blob(unsigned short n) - { - byte data[2] = { byte((n >> 8) & 0xff), byte(n & 0xff) }; - return BlobT(&data[0], &data[0] + sizeof(data)); - } - -} // namespace act - -#endif // actSCardUtil_h diff --git a/actlibrary/Ubuntu-9-i686/Release/include/actSlotManager.h b/actlibrary/Ubuntu-9-i686/Release/include/actSlotManager.h deleted file mode 100644 index 63875f2..0000000 --- a/actlibrary/Ubuntu-9-i686/Release/include/actSlotManager.h +++ /dev/null @@ -1,81 +0,0 @@ -// --------------------------------------------------------------------------- -// Name: actSlotManager.h -// Product: cv act library -// Purpose: The class SlotManager detects and manages the subsystems and the slots -// -// Copyright: (c) 2002 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -// -// Autor: Dr. Xiangdong Wang -// Markus Tesche -// Date: 03/26/2002 -// --------------------------------------------------------------------------- - -#ifndef ACT_SlotManager_h -#define ACT_SlotManager_h - -#include "actIEventMonitoring.h" - -namespace act -{ - class ISubsystem; - class ISubsystemConfig; - - class ISlot; - class ITokenConfig; - - // - // SlotManager - class SlotManager : public IEventMonitoring - { - private: - struct SubsystemList - { - SubsystemList(ISubsystem* system, SubsystemList* next = 0); - ~SubsystemList(); - - SubsystemList* insert(SubsystemList* prev); - SubsystemList* remove(SubsystemList* prev); - - ISubsystem* system; - SubsystemList* next; - }; - - public: - SlotManager(ITokenConfig* tkcfg = 0); - ~SlotManager(); - - bool Install(ISubsystem* system); - bool Install(ISubsystemConfig* config); - - void Refresh(); - void Disconnect(); - ISubsystem* GetSystem(size_t pos = 0) const; - - // SlotList - int GetSlotNumber() const; - const ISlot* GetSlot(int pos) const; - ISlot* CreateSlot(const char* name) const; - - // IEventMonitoring functions - virtual bool IsMonitored() const; - virtual void StopMonitor(bool force = false); - virtual void StartMonitor(IEventHandler* cmd); - - protected: - IEventHandler* SetMonitor(SubsystemList* begin, IEventHandler* cmd, bool force); - - private: - int m_total; - ITokenConfig* m_tkcfg; - SubsystemList* m_begin; - SubsystemList* m_current; - IEventHandler* m_cmd_root; - IEventHandler* m_cmd_current; - }; - -} // namespace act - -#endif // ACT_SlotManager_h diff --git a/actlibrary/Ubuntu-9-i686/Release/include/actSlotMonitorKit.h b/actlibrary/Ubuntu-9-i686/Release/include/actSlotMonitorKit.h deleted file mode 100644 index 043e5c9..0000000 --- a/actlibrary/Ubuntu-9-i686/Release/include/actSlotMonitorKit.h +++ /dev/null @@ -1,32 +0,0 @@ -// --------------------------------------------------------------------------- -// Name: actSlotMonitorKit.h -// Product: cv act library -// Purpose: registry for factory functions to create slot monitors -// -// Copyright: (c) 2009 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -// -// Autor: Markus Tesche -// Date: 04/12/2009 -// --------------------------------------------------------------------------- - -#ifndef ACT_SlotMonitorKit_h -#define ACT_SlotMonitorKit_h - -namespace act -{ - class ISubsystem; - class ISlot; - class ISlotMonitor; - - // default polling slot monitor - ISlotMonitor* CreateSlotMonitor(ISlot*); - - ISlotMonitor* CreatePCSCSlotMonitor(ISlot*); - ISlotMonitor* CreatePCSCSystemSlotMonitor(ISubsystem*); - -} // namespace act - -#endif // ACT_SlotMonitorKit_h diff --git a/actlibrary/Ubuntu-9-i686/Release/include/actSlotMonitorReg.h b/actlibrary/Ubuntu-9-i686/Release/include/actSlotMonitorReg.h deleted file mode 100644 index 60a8d7e..0000000 --- a/actlibrary/Ubuntu-9-i686/Release/include/actSlotMonitorReg.h +++ /dev/null @@ -1,54 +0,0 @@ -// --------------------------------------------------------------------------- -// Name: actSlotMonitorReg.h -// Product: cv act library -// Purpose: factory functions registry to create Slot-Monitor objects. -// -// Copyright: (c) 2009 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -// -// Autor: Markus Tesche -// Date: 04/12/2009 -// --------------------------------------------------------------------------- - -#ifndef ACT_SlotMonitoReg_h -#define ACT_SlotMonitoReg_h - -#include "actFactoryReg.h" - -namespace act -{ - class ISubsystem; - class ISlot; - class ISlotMonitor; - - typedef ISlotMonitor* (*CreateSlotMonitorPtr)(ISlot*); - typedef ISlotMonitor* (*CreateSystemSlotMonitorPtr)(ISubsystem*); - - struct SlotMonitorRegCreatePtr - { - ISlotMonitor* operator()(const char*, ISlot* slot) const - { - return createSlotMonitor != 0 ? createSlotMonitor(slot) : 0; - } - - ISlotMonitor* operator()(const char*, ISubsystem* system) const - { - return createSystemSlotMonitor != 0 ? createSystemSlotMonitor(system) : 0; - } - - CreateSlotMonitorPtr createSlotMonitor; - CreateSystemSlotMonitorPtr createSystemSlotMonitor; - }; - - - typedef FactoryMapEntry SlotMonitorRegEntry; - - typedef FactoryReg - < ISlotMonitor, SlotMonitorRegCreatePtr, SlotMonitorRegEntry - > SlotMonitorReg; - -} // namespace act - -#endif // ACT_SlotMonitoReg_h diff --git a/actlibrary/Ubuntu-9-i686/Release/include/actState.h b/actlibrary/Ubuntu-9-i686/Release/include/actState.h deleted file mode 100644 index c7e1cbf..0000000 --- a/actlibrary/Ubuntu-9-i686/Release/include/actState.h +++ /dev/null @@ -1,29 +0,0 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actState.h -// Product: cv act library -// Purpose: -// -// Copyright: (c) 2000 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_STATE_H -#define ACT_STATE_H - -namespace act -{ - - const int READY=0; - const int SIGNATURE_OK=1; - const int IS_FINALIZED=2; - const int DECRYPT_ERROR=3; - const int CERTIFICATE_OK=4; - const int CERTIFICATE_ERROR=5; - const int VERIFY_ERROR=6; - -} // namspace act - -#endif - diff --git a/actlibrary/Ubuntu-9-i686/Release/include/actStreamCipherKit.h b/actlibrary/Ubuntu-9-i686/Release/include/actStreamCipherKit.h deleted file mode 100644 index efc74fa..0000000 --- a/actlibrary/Ubuntu-9-i686/Release/include/actStreamCipherKit.h +++ /dev/null @@ -1,22 +0,0 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actStreamCipherKit.h -// Product: cv act library -// Purpose: declaration of all factory functions -// -// Copyright: (c) 2001 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_StreamCipherKit_h -#define ACT_StreamCipherKit_h - -namespace act -{ - class IStreamCipher; - - IStreamCipher* CreateARC4(); -} -#endif - diff --git a/actlibrary/Ubuntu-9-i686/Release/include/actStreamCipherReg.h b/actlibrary/Ubuntu-9-i686/Release/include/actStreamCipherReg.h deleted file mode 100644 index 4cc5b22..0000000 --- a/actlibrary/Ubuntu-9-i686/Release/include/actStreamCipherReg.h +++ /dev/null @@ -1,39 +0,0 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actStreamCipherReg.h -// Product: cv act library -// Purpose: registry for factory functions in actStreamCipherKit.h -// -// Copyright: (c) 2001 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_StreamCipherReg_h -#define ACT_StreamCipherReg_h - -namespace act -{ - class IStreamCipher; - - typedef IStreamCipher* (*CreateStreamCipherPtr)(); - - struct StreamCipherMapEntry { - const char* Name; - CreateStreamCipherPtr CreatePtr; - }; - - class StreamCipherReg - { - public: - static IStreamCipher* CreateStreamCipher(const char* name); - static CreateStreamCipherPtr GetCreatePointer(const char* name); - static const char* GetName(void* createptr); - static const char* GetNextName(const char* name); - static void Insert(const char* name,CreateStreamCipherPtr createptr); - static void Insert(const StreamCipherMapEntry* map); - }; -} - -#endif - diff --git a/actlibrary/Ubuntu-9-i686/Release/include/actSubsystemKit.h b/actlibrary/Ubuntu-9-i686/Release/include/actSubsystemKit.h deleted file mode 100644 index c3452f0..0000000 --- a/actlibrary/Ubuntu-9-i686/Release/include/actSubsystemKit.h +++ /dev/null @@ -1,33 +0,0 @@ -// --------------------------------------------------------------------------- -// Name: actSubsystemKit.h -// Product: cv act library -// Purpose: registry for factory functions to create subsystem -// -// Copyright: (c) 2002 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -// -// Autor: Dr. Xiangdong Wang (XWG) -// Date: 05/13/2002 -// --------------------------------------------------------------------------- - -#ifndef ACT_SubsystemKit_h -#define ACT_SubsystemKit_h - -namespace act -{ - class ISubsystem; - class ISubsystemConfig; - - ISubsystem* CreateCTAPISystem(const char*); - - ISubsystem* CreatePCSCSystem(const char*); - ISubsystem* CreatePCSCSystemEx(ISubsystemConfig*); - - ISubsystem* CreateCSPSystem(const char*); - ISubsystem* CreatePKCS11System(const char*); - -} // namespace act - -#endif // ACT_SubsystemKit_h diff --git a/actlibrary/Ubuntu-9-i686/Release/include/actSubsystemReg.h b/actlibrary/Ubuntu-9-i686/Release/include/actSubsystemReg.h deleted file mode 100644 index 7a82df8..0000000 --- a/actlibrary/Ubuntu-9-i686/Release/include/actSubsystemReg.h +++ /dev/null @@ -1,53 +0,0 @@ -// --------------------------------------------------------------------------- -// Name: actSubsystemReg.h -// Product: cv act library -// Purpose: factory functions registry to create Subsystem objects. -// -// Copyright: (c) 2002 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -// -// Autor: Dr. Xiangdong Wang (XWG) -// Markus Tesche -// Date: 05/14/2002 -// --------------------------------------------------------------------------- - -#ifndef ACT_SubsystemReg_h -#define ACT_SubsystemReg_h - -namespace act -{ - class ISubsystem; - class ISubsystemConfig; - - typedef ISubsystem* (*CreateSubsystemPtr)(const char*); - typedef ISubsystem* (*CreateSubsystemExPtr)(ISubsystemConfig*); - - struct SubsystemMapEntry - { - const char* Name; - CreateSubsystemPtr CreatePtr; - CreateSubsystemExPtr CreateExPtr; - }; - - class SubsystemReg - { - public: - static ISubsystem* CreateSubsystem(ISubsystemConfig* config); - static ISubsystem* CreateSubsystem(const char* name, const char* dll_name = 0); - - static CreateSubsystemPtr GetCreatePointer(const char* name); - static CreateSubsystemExPtr GetCreateExPointer(const char* name); - - static const char* GetName(void* createptr); - static const char* GetNextName(const char* name); - - static void Insert(const char* name, CreateSubsystemPtr createptr); - static void Insert(const char* name, CreateSubsystemExPtr createexptr); - static void Insert(const SubsystemMapEntry* map); - }; - -} // namespace act - -#endif // ACT_SubsystemReg_h diff --git a/actlibrary/Ubuntu-9-i686/Release/include/actTokenAuthProtocolKit.h b/actlibrary/Ubuntu-9-i686/Release/include/actTokenAuthProtocolKit.h deleted file mode 100644 index d528776..0000000 --- a/actlibrary/Ubuntu-9-i686/Release/include/actTokenAuthProtocolKit.h +++ /dev/null @@ -1,30 +0,0 @@ -// --------------------------------------------------------------------------- -// Name: actTokenAuthProtocolKit.h -// Product: cv act library -// Purpose: Factory functions to create specific ITokenAuthProtocol objects. -// -// Copyright: (c) 2009 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -// -// Autor: Markus Tesche -// Date: 14/10/2008 -// --------------------------------------------------------------------------- - -#ifndef ACT_TokenAuthProtocolKit_h -#define ACT_TokenAuthProtocolKit_h - -namespace act -{ - class ITokenAuthProtocol; - - ITokenAuthProtocol* CreateTokenAuthPACE(const char* name); // EACv2-PACE - ITokenAuthProtocol* CreateTokenAuthTA(const char* name); // EACv2-TA - ITokenAuthProtocol* CreateTokenAuthCA(const char* name); // EACv2-CA - - ITokenAuthProtocol* CreateTokenAuthBAC(const char* name); // EACv1-BAC - -} // namespace act - -#endif // ACT_TokenAuthProtocolKit_h diff --git a/actlibrary/Ubuntu-9-i686/Release/include/actTokenAuthProtocolReg.h b/actlibrary/Ubuntu-9-i686/Release/include/actTokenAuthProtocolReg.h deleted file mode 100644 index 9f2924d..0000000 --- a/actlibrary/Ubuntu-9-i686/Release/include/actTokenAuthProtocolReg.h +++ /dev/null @@ -1,33 +0,0 @@ -// --------------------------------------------------------------------------- -// Name: actTokenAuthProtocolReg.h -// Product: cv act library -// Purpose: factory functions registry to create ITokenAuthProtocol objects. -// -// Copyright: (c) 2009 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -// -// Autor: Markus Tesche -// Date: 14/10/2009 -// --------------------------------------------------------------------------- - -#ifndef ACT_TokenAuthProtocolReg_h -#define ACT_TokenAuthProtocolReg_h - -#include "actFactoryReg.h" - -namespace act -{ - class ITokenAuthProtocol; - - typedef ITokenAuthProtocol* (*CreateTokenAuthProtocolPtr)(const char*); - typedef FactoryMapEntry TokenAuthProtocolMapEntry; - - typedef FactoryReg - < ITokenAuthProtocol, CreateTokenAuthProtocolPtr, TokenAuthProtocolMapEntry - > TokenAuthProtocolReg; - -} // namespace act - -#endif // ACT_TokenAuthProtocolReg_h diff --git a/actlibrary/Ubuntu-9-i686/Release/include/actTokenBase.h b/actlibrary/Ubuntu-9-i686/Release/include/actTokenBase.h deleted file mode 100644 index d31b0e7..0000000 --- a/actlibrary/Ubuntu-9-i686/Release/include/actTokenBase.h +++ /dev/null @@ -1,200 +0,0 @@ -// --------------------------------------------------------------------------- -// Name: actTokenBase.h -// Product: cv act library -// Purpose: Declares common token enums and constants. -// -// Copyright: (c) 2010 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -// -// Autor: Markus Tesche -// Date: 03/24/2010 -// --------------------------------------------------------------------------- - -#ifndef ACT_TokenBase_h -#define ACT_TokenBase_h - -namespace act -{ - enum TokenError - { - TOKEN_SUCCESS = 0, - TOKEN_FUNCTION_NOT_SUPPORTED = -1, - TOKEN_FUNCTION_FAILED = -2, - TOKEN_LOCKED = -3 - }; - - enum TokenType - { - TOKEN_RSA = 0x0001, - TOKEN_DSA = 0x0002, - TOKEN_DH = 0x0004, - TOKEN_ECDSA = 0x0008, - TOKEN_ECDH = 0x0010, - TOKEN_SECRET = 0x0080, - - TOKEN_BAC = 0x0100, - TOKEN_EAC = 0x0200, - TOKEN_EPA = 0x0400, - }; - - enum TokenStatusCode - { - TOKEN_EMPTY = 0x0000, - TOKEN_INITIALIZED = 0x0001, - TOKEN_PERSONALIZED = 0x0002 - }; - - enum ProfileType - { - PROFILE_EMPTY = 0x00, - PROFILE_CV = 0x01, - PROFILE_CNS = 0x02, - PROFILE_GDO = 0x03, - PROFILE_CVEC = 0x04, - PROFILE_SIGG = 0x05, - PROFILE_JC = 0x06, - PROFILE_MICARDOEC = 0x07, - PROFILE_STARCOS = 0x08, - PROFILE_NETKEY = 0x09, - PROFILE_CVMOC = 0x0a, - - PROFILE_PKCS15 = 0x0f, - PROFILE_PKCS15_mEAC = 0x10, // includes PACE-Pin's - PROFILE_PKCS15_mEAC_TA = 0x11, // includes PACE-Pin's and TA-IS, TA-ST, TA-AT - - PROFILE_BAC = 0x80, - PROFILE_EAC = 0x81, - PROFILE_EAC201 = 0x82, - PROFILE_EPA = 0x83, - - PROFILE_PKCS11 = 0xa0, - PROFILE_CSP = 0xa1, - PROFILE_MD = 0xa2, - - PROFILE_ANY = 0xfe, - PROFILE_UNKNOWN = 0xff - }; - - // usage of key, pin - enum KeyUsage - { - KEY_EMPTY = 0x0000, - SIGN_DATA = 0x0001, - DEC_DATA = 0x0002, - AGREE_KEY = 0x0004, - AUTH_DATA = 0x0008, - BLOCKCIPHER_KEY = 0x0010, - VERIFY_DATA = 0x0020, - ENC_DATA = 0x0040, - UNLOCK_PIN = 0x0100, - UPDATE_BINARY = 0x0200, - DELETE_BINARY = 0x0400, - ALL_USAGE = 0xffff, - - // custom usage - SIGN_HASH = 0x00010000, - CUSTOM_USAGE_MASK = 0xffff0000, - - // combined usage - ENC_DEC_DATA = DEC_DATA | ENC_DATA, - SIGN_DEC_DATA = DEC_DATA | SIGN_DATA, - SIGN_HASH_DATA = SIGN_HASH | SIGN_DATA, - }; - - enum KeyType - { // NOTE: Never change (!), used for serialization. - KEY_UNKNOWN = 0xffff, - - KEY_RSA = 0x0000, - KEY_DSA = 0x0001, - KEY_DH = 0x0002, - KEY_ECDSA = 0x0003, - KEY_ECDH = 0x0004, - - KEY_SECRET = 0x0010, - KEY_DES = 0x0001 + KEY_SECRET, - KEY_2DES = 0x0002 + KEY_SECRET, - KEY_3DES = 0x0003 + KEY_SECRET, - KEY_AES = 0x0004 + KEY_SECRET, - - KEY_TYPE_MASK = 0x001f - }; - - enum CertificateType - { // NOTE: Never change (!), used for serialization. - CERT_UNKNOWN = 0xffff, - - CERT_X509 = 0x0000, - CERT_CV = 0x0001 - }; - - enum CertificateUsage - { - EMPTY_CERT = 0x0000, - SIGN_CERT = 0x0001, - DEC_CERT = 0x0002, - ROOT_CERT = 0x0004, - AUTH_CERT = 0x0008, - CA_CERT = 0x0010, - SMARTCARD_LOGON_CERT = 0x0100, // lib version >= 1.5 - UNSPECIFIED_CERT = 0xffff - }; - - enum SecStatus - { - SS_INVALID = 0x0000, - SS_AUTHENTICATED = 0x0001, - SS_UNKNOWN = 0xffff, - }; - - enum AUTH_OBJ_TYPE - { - AUTH_OBJ_PIN = 0xff, // -1 - AUTH_OBJ_BIOMETRIC = 0xfe, // -2 - }; - - typedef ulong IDType; - typedef ushort FIDType; - - const IDType ID_INVALID = 0; - const FIDType FID_INVALID = 0x0000; - - // - // FileInfo - struct FileInfo - { - explicit FileInfo(FIDType val_fid = FID_INVALID, IDType val_rec_nr = ID_INVALID) - : fid(val_fid) - , rec_nr(val_rec_nr) - { } - - FIDType fid; - IDType rec_nr; - }; - - // LengthInfo - struct LengthInfo - { - LengthInfo(ulong _minLen = 0, ulong _maxLen = 0, ulong _storedLen = 0) - : minLen(_minLen) - , maxLen(_maxLen) - , storedLen(_storedLen) - { } - - void swap(LengthInfo& other) - { - std::swap(minLen, other.minLen); - std::swap(storedLen, other.storedLen); - std::swap(maxLen, other.maxLen); - } - - ulong minLen; - ulong storedLen; - ulong maxLen; - }; - -} // namespace act - -#endif // ACT_TokenBase_h diff --git a/actlibrary/Ubuntu-9-i686/Release/include/actTokenConfig.h b/actlibrary/Ubuntu-9-i686/Release/include/actTokenConfig.h deleted file mode 100644 index 45844c1..0000000 --- a/actlibrary/Ubuntu-9-i686/Release/include/actTokenConfig.h +++ /dev/null @@ -1,104 +0,0 @@ -// --------------------------------------------------------------------------- -// Name: actTokenConfig.h -// Product: cv act library -// Purpose: Declares all availabl param_id's for ITokenCofing. -// -// Copyright: (c) 2009 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -// -// Autor: Markus Tesche -// Date: 05/07/2009 -// --------------------------------------------------------------------------- - -#ifndef ACT_TokenConfig_h -#define ACT_TokenConfig_h - -#include "actMode.h" -#include "actIParam.h" - -namespace act -{ - // according to ISO 24727-3, definition of supported Data Set's - enum DataSetList - { - DATA_SET_NONE = 0, - DATA_SET_PUBLIC_DATA = (1 << 0), - DATA_SET_PRIVATE_DATA = (1 << 1), - DATA_SET_CERTIFICATES = (1 << 2), - DATA_SET_USEFUL_CERTIFICATES = (1 << 3), - DATA_SET_TRUSTED_CERTIFICATES = (1 << 4), - DATA_SET_TRUSTED_PUBLIC_KEYS = (1 << 5), - // - // ... - DATA_SET_NEXT = (1 << 6), - DATA_SET_MASK = DATA_SET_NEXT - 1, - DATA_SET_ALL = PARAM_INVALID_VALUE, - }; - - enum ObjectTypeList - { - OBJECT_TYPE_NONE = 0, - OBJECT_TYPE_KEY_DES = (1 << 0), - OBJECT_TYPE_KEY_2DES = (1 << 1), - OBJECT_TYPE_KEY_3DES = (1 << 2), - OBJECT_TYPE_KEY_AES = (1 << 3), - OBJECT_TYPE_KEY_RSA = (1 << 4), - OBJECT_TYPE_KEY_DSA = (1 << 5), - OBJECT_TYPE_KEY_DH = (1 << 6), - OBJECT_TYPE_KEY_ECC = (1 << 7), - OBJECT_TYPE_DATA = (1 << 8), - OBJECT_TYPE_CERTIFICATE = (1 << 9), - OBJECT_TYPE_USEFUL_CERTIFICATE = (1 << 10), - OBJECT_TYPE_TRUSTED_CERTIFICATE = (1 << 11), - OBJECT_TYPE_TRUSTED_PUBLIC_KEY = (1 << 12), - // - // Mark an object as private - OBJECT_TYPE_PRVIVATE = (1 << 13), - // - // ... - OBJECT_TYPE_NEXT = (1 << 14), - OBJECT_TYPE_MASK = OBJECT_TYPE_NEXT - 1, - OBJECT_TYPE_ALL = PARAM_INVALID_VALUE, - }; - - enum ObjectAttributeList - { - OBJECT_ATTR_LABEL_P = OBJECT_TYPE_NEXT, - OBJECT_ATTR_LABEL_P_PUB = OBJECT_ATTR_LABEL_P, - OBJECT_ATTR_LABEL_P_PRV = OBJECT_ATTR_LABEL_P | OBJECT_TYPE_PRVIVATE, - }; - - enum - { - TC_TYPE = TOKEN_CONFIG, - TC_HAS_TOKEN_CAPABILITIES, - TC_HAS_WRITABLE_AODF, - TC_IS_MOC_ENABLED, - TC_IS_MINIDRIVER_ENABLED, - TC_IS_PROFILE_ERASABLE, - TC_PINPAD_CHAR, - TC_DATA_SET_LIST, - TC_OBJECT_TYPE_LIST, - // - // Object naming - Label Prefix - TC_LABEL_P_PRV_DES = OBJECT_ATTR_LABEL_P_PRV + OBJECT_TYPE_KEY_DES, - TC_LABEL_P_PRV_2DES = OBJECT_ATTR_LABEL_P_PRV + OBJECT_TYPE_KEY_2DES, - TC_LABEL_P_PRV_3DES = OBJECT_ATTR_LABEL_P_PRV + OBJECT_TYPE_KEY_3DES, - TC_LABEL_P_PRV_AES = OBJECT_ATTR_LABEL_P_PRV + OBJECT_TYPE_KEY_AES, - TC_LABEL_P_PUB_RSA = OBJECT_ATTR_LABEL_P_PUB + OBJECT_TYPE_KEY_RSA, - TC_LABEL_P_PRV_RSA = OBJECT_ATTR_LABEL_P_PRV + OBJECT_TYPE_KEY_RSA, - TC_LABEL_P_PUB_ECC = OBJECT_ATTR_LABEL_P_PUB + OBJECT_TYPE_KEY_ECC, - TC_LABEL_P_PRV_ECC = OBJECT_ATTR_LABEL_P_PRV + OBJECT_TYPE_KEY_ECC, - TC_LABEL_P_PUB_DATA = OBJECT_ATTR_LABEL_P_PUB + OBJECT_TYPE_DATA, - TC_LABEL_P_PRV_DATA = OBJECT_ATTR_LABEL_P_PRV + OBJECT_TYPE_DATA, - TC_LABEL_P_PUB_CERTIFICATE = OBJECT_ATTR_LABEL_P_PUB + OBJECT_TYPE_CERTIFICATE, - TC_LABEL_P_PUB_USEFUL_CERTIFICATE = OBJECT_ATTR_LABEL_P_PUB + OBJECT_TYPE_USEFUL_CERTIFICATE, - TC_LABEL_P_PUB_TRUSTED_CERTIFICATE = OBJECT_ATTR_LABEL_P_PUB + OBJECT_TYPE_TRUSTED_CERTIFICATE, - TC_LABEL_P_PUB_TRUSTED_PUBLIC_KEY = OBJECT_ATTR_LABEL_P_PUB + OBJECT_TYPE_TRUSTED_PUBLIC_KEY, - }; - -} // namespace act - -#endif // ACT_TokenConfig_h diff --git a/actlibrary/Ubuntu-9-i686/Release/include/actTokenExtensionKit.h b/actlibrary/Ubuntu-9-i686/Release/include/actTokenExtensionKit.h deleted file mode 100644 index f087bdc..0000000 --- a/actlibrary/Ubuntu-9-i686/Release/include/actTokenExtensionKit.h +++ /dev/null @@ -1,28 +0,0 @@ -// --------------------------------------------------------------------------- -// Name: actTokenExtensionKit.h -// Product: cv act library -// Purpose: Factory functions to create specific ITokenExtension objects. -// -// Copyright: (c) 2008 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -// -// Autor: Markus Tesche -// Date: 12/02/2008 -// --------------------------------------------------------------------------- - -#ifndef ACT_TokenExtensionKit_h -#define ACT_TokenExtensionKit_h - -namespace act -{ - class IToken; - class ITokenExtension; - - ITokenExtension* CreateMDProfileExt(const char* name, IToken*); // Minidriver - ITokenExtension* CreateEACTAwithCAPI(const char* name, IToken*); // EACv2-TA with CAPI - -} // namespace act - -#endif // ACT_TokenExtensionKit_h diff --git a/actlibrary/Ubuntu-9-i686/Release/include/actTokenExtensionReg.h b/actlibrary/Ubuntu-9-i686/Release/include/actTokenExtensionReg.h deleted file mode 100644 index f961078..0000000 --- a/actlibrary/Ubuntu-9-i686/Release/include/actTokenExtensionReg.h +++ /dev/null @@ -1,34 +0,0 @@ -// --------------------------------------------------------------------------- -// Name: actTokenExtensionReg.h -// Product: cv act library -// Purpose: factory functions registry to create ITokenExtension objects. -// -// Copyright: (c) 2008 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -// -// Autor: Markus Tesche -// Date: 12/02/2008 -// --------------------------------------------------------------------------- - -#ifndef ACT_TokenExtensionReg_h -#define ACT_TokenExtensionReg_h - -#include "actFactoryReg.h" - -namespace act -{ - class IToken; - class ITokenExtension; - - typedef ITokenExtension* (*CreateTokenExtensionPtr)(const char*, IToken*); - typedef FactoryMapEntry TokenExtensionMapEntry; - - typedef FactoryReg - < ITokenExtension, CreateTokenExtensionPtr, TokenExtensionMapEntry - > TokenExtensionReg; - -} // namespace act - -#endif // ACT_TokenExtensionReg_h diff --git a/actlibrary/Ubuntu-9-i686/Release/include/actTools.h b/actlibrary/Ubuntu-9-i686/Release/include/actTools.h deleted file mode 100644 index c22c455..0000000 --- a/actlibrary/Ubuntu-9-i686/Release/include/actTools.h +++ /dev/null @@ -1,93 +0,0 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actTools.h -// Product: cv act library -// Purpose: useful global functions -// -// Copyright: (c) 2000 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_Tools_h -#define ACT_Tools_h - -#include "actMode.h" -#include "actBlob.h" - -namespace act -{ - class IKey; - - // Functions for RSA public key and private key operation. - // Both functions return the plain result of the modular - // exponentiation using the public or private exponent. - // - // 1) Calculate m^e mod n, where e is the public exponent - Blob RSAPublicKeyOperation(IKey* rsa_key, const Blob& m); - // 2) Calculate c^d mod n, where d is the private exponent - Blob RSAPrivateKeyOperation(IKey* rsa_key, const Blob& c); - - - // Function for PKCS#3 Diffie-Hellman. - // The function initializes an act::IKey Diffie-Hellman key object - // from PKCS#3 DH parameters p and g (prime and generator). - void PKCS3DHKeyToDHKey(const Blob& prime, const Blob& generator, IKey *dhKey); - - - // Read pfx file and get private key - Blob getPKCS8Key(const Blob& pfx_data, const char* password); - // Read pfx file and get the own (user) certificate - Blob getOwnCertificateFromPfx(const Blob& pfx_data, const char* password); - - - // Function to encode an ASN1 object identifier in binary form - // example EncodeOID("0.2.262.1.10.1.3.8") = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x01, 0x03, 0x08 } - Blob EncodeOID(const char* oid); - - - // Converts a signed decimal number or hexadecimal number (with prefix "0x" / "-0x") - // into a Blob (Twos-Complement representation for negative numbers) - Blob EncodeNumber(const char* number); - Blob EncodeNumber(int number); - - - // CRC functions - - // CRC-16 (direct mode, no zero bit augmentation) - // - // Poly : 0x8005 (x^16 + x^15 + x^2 + 1) - // RefIn : True (bit reflection on the input bytes) - // RefOut : True (bit reflection on the final CRC value) - // XorOut : 0x0000 (no XOR on the returned CRC value) - unsigned long CalculateCRC16(const act::byte* message, size_t message_len, - unsigned long crc_init_value = 0x0000); - unsigned long CalculateCRC16(const act::Blob& message, - unsigned long crc_init_value = 0x0000); - - // CRC-16 CCIT (direct mode, no zero bit augmentation) - // - // Poly : 0x1021 (x^16 + x^12 + x^5 + 1) - // RefIn : False (no bit reflection on the input bytes) - // RefOut : False (no bit reflection on the final CRC value) - // XorOut : 0x0000 (no XOR on the returned CRC value) - unsigned long CalculateCRC16CCITT(const act::byte* message, size_t message_len, - unsigned long crc_init_value = 0xFFFF); - unsigned long CalculateCRC16CCITT(const act::Blob& message, - unsigned long crc_init_value = 0xFFFF); - - // CRC-32 (direct mode, no zero bit augmentation) - // - // Poly : 0x04C11DB7 (x^32 + x^26 + x^23 + x^22 + x^16 + x^12 + x^11 + ... - // ... + x^10 + x^8 + x^7 + x^5 + x^4 + x^2 + x^ + 1) - // RefIn : True (bit reflection on the input bytes) - // RefOut : True (bit reflection on the final CRC value) - // XorOut : 0xFFFFFFFF (XOR on the returned CRC value) - unsigned long CalculateCRC32(const act::byte* message, size_t message_len, - unsigned long crc_init_value = 0xFFFFFFFF); - unsigned long CalculateCRC32(const act::Blob& message, - unsigned long crc_init_value = 0xFFFFFFFF); - -} // namespace act - -#endif // ACT_Tools_h diff --git a/actlibrary/Ubuntu-9-i686/Release/include/actToolsECC.h b/actlibrary/Ubuntu-9-i686/Release/include/actToolsECC.h deleted file mode 100644 index 246b99f..0000000 --- a/actlibrary/Ubuntu-9-i686/Release/include/actToolsECC.h +++ /dev/null @@ -1,99 +0,0 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actToolsECC.h -// Product: cv act library -// Purpose: useful ECC functions -// -// Copyright: (c) 2009 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_ToolsECC_h -#define ACT_ToolsECC_h - -#include "actMode.h" -#include "actBlob.h" -#include "actIKey.h" - -namespace act -{ - // Functions for ECC scalar multiplication, addition of points. - // Input points must be in ASN.1 point representation (uncompressed, - // compressed or hybrid). The output point will be in ASN.1 representation - // as indicated in 'output_format'. - // - // 1) Calculate s * Q, s unsigned in ASN.1 OCTET STRING representation - // (leading zeros will be ignored) - Blob ECMultiplyPoint(IKey* ec_key, const Blob& s, const Blob& Q, - int output_format = UNCOMPRESSED); - // 2) Calculate Q1 + Q2 - Blob ECAddPoints(IKey* ec_key, const Blob& Q1, const Blob& Q2, - int output_format = UNCOMPRESSED); - - - // Functions to encode an (EC-)DSA signature (r, s) in ASN1 format and backwards. - // - // 1) Plain signature I/O as string - // - for encode: r and s must be in hex notation - // - for decode: the user has to allocate r and s buffers - void EncodeSignature(const char* r, const char* s, Blob& signature_ASN1); - void DecodeSignature(const Blob& signature_ASN1, char* r, char* s); - // 2) Plain signature I/O as byte array (Blob) - // - r and s I/O in big endian representation - void EncodeSignature(const Blob& r, const Blob& s, Blob& signature_ASN1); - void DecodeSignature(const Blob& signature_ASN1, Blob& r, Blob& s); - // 3) Plain signature I/O as byte array (Blob) - // - r_s length even, left haft = r, right half = s - // - if order_bytes is non zero, decode output length is 2 * order_bytes - void EncodeSignature(const Blob& r_s, Blob& signature_ASN1); - void DecodeSignature(const Blob& signature_ASN1, Blob& r_s, size_t order_bytes = 0); - - - // Tools for elliptic curves over GF(P). - // The basepoint can be given by it's coordinates (Gx, Gy) or as - // COMPRESSED, UNCOMPRESSED or HYBRID octetstring G corresponding - // to ANSI X9.62/63 standard. - // By default, the basepoint will be encoded in UNCOMPRESSED format. - - Blob EncodePrimeCurveParam(const Blob& p, const Blob& a, const Blob& b, - const Blob& Gx, const Blob& Gy, const Blob& n, const Blob& h, - int output_type = UNCOMPRESSED); - - Blob EncodePrimeCurveParam(const Blob& p, const Blob& a, const Blob& b, - const Blob& G, const Blob& n, const Blob& h, int output_type = UNCOMPRESSED); - - // dto. for elliptic curves over GF(2^m), tri- or pentanomial basis. - - // tri- or pentanomial in hex presentation - Blob EncodeGF2CurveParam(const Blob& p, const Blob& a, const Blob& b, - const Blob& Gx, const Blob& Gy, const Blob& n, const Blob& h, - int output_type = UNCOMPRESSED); - - // tri- or pentanomial in hex presentation - Blob EncodeGF2CurveParam(const Blob& p, const Blob& a, const Blob& b, - const Blob& G, const Blob& n, const Blob& h, int output_type = UNCOMPRESSED); - - // f(t) = t^m + t^k + 1 - Blob EncodeTrinomialCurveParam(const int m, const int k, - const Blob& a, const Blob& b, const Blob& Gx, const Blob& Gy, - const Blob& n, const Blob& h, int output_type = UNCOMPRESSED); - - // f(t) = t^m + t^k + 1 - Blob EncodeTrinomialCurveParam(const int m, const int k, - const Blob& a, const Blob& b, const Blob& G, const Blob& n, - const Blob& h, int output_type = UNCOMPRESSED); - - // f(t) = t^m + t^k3 + t^k2 + t^k1 + 1 - Blob EncodePentanomialCurveParam(const int m, const int k3, const int k2, - const int k1, const Blob& a, const Blob& b, const Blob& Gx, const Blob& Gy, - const Blob& n, const Blob& h, int output_type = UNCOMPRESSED); - - // f(t) = t^m + t^k3 + t^k2 + t^k1 + 1 - Blob EncodePentanomialCurveParam(const int m, const int k3, const int k2, - const int k1, const Blob& a, const Blob& b, const Blob& G, - const Blob& n, const Blob& h, int output_type = UNCOMPRESSED); - -} // namespace act - -#endif // ACT_ToolsECC_h diff --git a/actlibrary/Ubuntu-9-i686/Release/include/actToolsRSA.h b/actlibrary/Ubuntu-9-i686/Release/include/actToolsRSA.h deleted file mode 100644 index b79c55b..0000000 --- a/actlibrary/Ubuntu-9-i686/Release/include/actToolsRSA.h +++ /dev/null @@ -1,19 +0,0 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actToolsRSA.h -// Product: cv act library -// Purpose: useful RSA functions -// -// Copyright: (c) 2000 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_TOOLS_RSA_H -#define ACT_TOOLS_RSA_H - -#include "actTools.h" - -// TODO: MTE: Move all RSA functions from "actTools.h" to here! include inside "actTools.h" - -#endif // ACT_TOOLS_RSA_H diff --git a/actlibrary/Ubuntu-9-i686/Release/include/actTypeTags.h b/actlibrary/Ubuntu-9-i686/Release/include/actTypeTags.h deleted file mode 100644 index a844a0d..0000000 --- a/actlibrary/Ubuntu-9-i686/Release/include/actTypeTags.h +++ /dev/null @@ -1,32 +0,0 @@ -// --------------------------------------------------------------------------- -// Name: actTypeTags.h -// Product: cv act library -// Purpose: TypeTag<> and usibility forward declarations. -// -// Copyright: (c) 2010 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -// -// Autor: Markus Tesche -// Date: 09/10/2010 -// --------------------------------------------------------------------------- - -#ifndef ACT_TypeTags_h -#define ACT_TypeTags_h - -namespace act -{ - // - // TypeTag<> - template - struct TypeTag { typedef TypeT Type; }; - - // - // CloneFactory<> - template - struct CloneFactory; - -} // namespace act - -#endif // ACT_TypeTags_h diff --git a/actlibrary/Ubuntu-9-i686/Release/include/actX509Extension.h b/actlibrary/Ubuntu-9-i686/Release/include/actX509Extension.h deleted file mode 100644 index 51f59f0..0000000 --- a/actlibrary/Ubuntu-9-i686/Release/include/actX509Extension.h +++ /dev/null @@ -1,50 +0,0 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actX509Extension.h -// Product: cv act library -// Purpose: -// -// Copyright: (c) 2000 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_X509Extension_H -#define ACT_X509Extension_H - -#include "actBlob.h" - -namespace act -{ - class X509Extension - { - public: - X509Extension(); - X509Extension(const Blob& oid, const Blob& value, bool critflag); - X509Extension(const char* oid, const Blob& value, bool critflag); - - void GetOID(Blob& oid) const; - void GetOIDString(Blob& oid) const; - void SetOID(const Blob& oid); - void SetOIDString(const char* oid); - - void GetValue(Blob& value) const; - void SetValue(const Blob& value); - - bool IsCritical() const; - void SetCritical(bool crit = true); - - void GetDER(Blob& der) const; - void SetDER(const Blob& der); - - bool IsPresent() { return mValue.size() > 0; } - - private: - Blob mOID; - Blob mValue; - bool mCrit; - }; - -} // namespace act - -#endif // ACT_X509Extension_H diff --git a/actlibrary/Ubuntu-9-i686/Release/include/actX509KeyReg.h b/actlibrary/Ubuntu-9-i686/Release/include/actX509KeyReg.h deleted file mode 100644 index 619a17d..0000000 --- a/actlibrary/Ubuntu-9-i686/Release/include/actX509KeyReg.h +++ /dev/null @@ -1,48 +0,0 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actX509KeyReg.h -// Product: cv act library -// Purpose: registry for factory functions in actX509Kit.h -// -// Copyright: (c) 2000 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_X509KeyReg_h -#define ACT_X509KeyReg_h - -namespace act -{ - class IKey; - class Blob; - - typedef IKey* (*CreateKeyPtr)(); - typedef void (*X509ToKeyPtr)(const Blob& pkinfo, IKey* key); - typedef void (*KeyToX509Ptr)(const IKey* key, Blob& pkinfo ); - - struct X509KeyMapEntry - { - const char* OID; - CreateKeyPtr CreatePtr; - X509ToKeyPtr X509ToKey; - KeyToX509Ptr KeyToX509; - }; - - class X509KeyReg - { - public: - static IKey* CreateX509Key(const Blob& pkInfo); - static void GetX509KeyInfo(const IKey* key, Blob& pkInfo); - - static CreateKeyPtr GetCreatePointer(const char* oid); - static const char* GetOID(void* createptr); - static const char* GetNextOID(const char* oid); - - static void Insert(const char* name, CreateKeyPtr createptr, X509ToKeyPtr x509tokey, KeyToX509Ptr keytox509); - static void Insert(const X509KeyMapEntry* keymap); - }; - -} // namespace act - -#endif // ACT_X509KeyReg_h diff --git a/actlibrary/Ubuntu-9-i686/Release/include/actX509Kit.h b/actlibrary/Ubuntu-9-i686/Release/include/actX509Kit.h deleted file mode 100644 index bb0affb..0000000 --- a/actlibrary/Ubuntu-9-i686/Release/include/actX509Kit.h +++ /dev/null @@ -1,45 +0,0 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actX509Kit.h -// Product: cv act library -// Purpose: declaration of all factory functions -// -// Copyright: (c) 2000 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_X509Kit_h -#define ACT_X509Kit_h - -namespace act -{ - class Blob; - class IKey; - - void X509ToRSA(const Blob& pkinfo, IKey* key); - void RSAToX509(const IKey* key, Blob& pkinfo); - void RSAGetAlgID(const IKey* key, Blob& algid); - void RSASetAlgID(const Blob& algid, IKey* key ); - - void X509ToDSA(const Blob& pkinfo, IKey* key); - void DSAToX509(const IKey* key, Blob& pkinfo); - void DSAGetAlgID(const IKey* key, Blob& algid); - void DSASetAlgID(const Blob& algid, IKey* key ); - - void X509ToECDSA(const Blob& pkinfo, IKey* key); - void ECDSAToX509(const IKey* key, Blob& pkinfo); - void ECDSAGetAlgID(const IKey* key, Blob& algid); - void ECDSASetAlgID(const Blob& algid, IKey* key ); - - void X509ToDH(const Blob& pkinfo, IKey* key); - void DHToX509(const IKey* key, Blob& pkinfo); - void DHGetAlgID(const IKey* key, Blob& algid); - void DHSetAlgID(const Blob& algid, IKey* key ); - - void ECDHGetAlgID(const IKey* key, Blob& algid); - void ECDHSetAlgID(const Blob& algid, IKey* key ); - -} -#endif - diff --git a/actlibrary/Ubuntu-9-i686/Release/include/actX509SignHashReg.h b/actlibrary/Ubuntu-9-i686/Release/include/actX509SignHashReg.h deleted file mode 100644 index d4a01d5..0000000 --- a/actlibrary/Ubuntu-9-i686/Release/include/actX509SignHashReg.h +++ /dev/null @@ -1,40 +0,0 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actX509SignHashReg.h -// Product: cv act library -// Purpose: registry for factory functions in actX509Kit.h -// -// Copyright: (c) 2000-2001 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_X509SignHashReg_h -#define ACT_X509SignHashReg_h - -namespace act -{ - class Blob; - - // ------------------------------------------------------------------------ - struct X509SignHashMapEntry { - const char* OID; - const char* HashAlg; - const char* SignAlg; - }; - - // ------------------------------------------------------------------------ - class X509SignHashReg - { - public: - static void GetOID(const char* algo, const char* sign_algo, Blob& algid); - static const char* GetHashAlg(const Blob& algid); - static const char* GetSignAlg(const Blob& algid); - static void Insert(const X509SignHashMapEntry* map); - - static const char* GetHashAlg(const Blob& algid, const char* sign_algo); // deprecated - }; - -} -#endif - diff --git a/actlibrary/Ubuntu-9-i686/Release/include/actX509SignReg.h b/actlibrary/Ubuntu-9-i686/Release/include/actX509SignReg.h deleted file mode 100644 index 74b48a2..0000000 --- a/actlibrary/Ubuntu-9-i686/Release/include/actX509SignReg.h +++ /dev/null @@ -1,41 +0,0 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actX509SignReg.h -// Product: cv act library -// Purpose: registry for factory functions in actX509Kit.h -// -// Copyright: (c) 2000 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_X509SignReg_h -#define ACT_X509SignReg_h - -namespace act -{ - class IKey; - class Blob; - - typedef IKey* (*CreateKeyPtr)(); - typedef void (*GetX509AlgIDPtr)(const IKey* key, Blob& algid); - typedef void (*SetX509AlgIDPtr)(const Blob& algid, IKey* key); - - struct X509SignMapEntry { - CreateKeyPtr CreatePtr; - GetX509AlgIDPtr GetAlgID; - SetX509AlgIDPtr SetAlgID; - }; - - class X509SignReg - { - public: - static void GetAlgID(const IKey* key, Blob& algid); - static void SetAlgID(const Blob& algid, IKey* key); - - static void Insert(CreateKeyPtr createptr, GetX509AlgIDPtr getalgid, SetX509AlgIDPtr setalgid ); - static void Insert(const X509SignMapEntry* keymap); - }; -} -#endif - diff --git a/actlibrary/MacOSX-10.4-ppc/Release/include/actAlgorithm.h b/actlibrary/include/actAlgorithm.h similarity index 96% rename from actlibrary/MacOSX-10.4-ppc/Release/include/actAlgorithm.h rename to actlibrary/include/actAlgorithm.h index 035471e..e50ab29 100644 --- a/actlibrary/MacOSX-10.4-ppc/Release/include/actAlgorithm.h +++ b/actlibrary/include/actAlgorithm.h @@ -1,73 +1,73 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actAlgorithm.h -// Product: cv act library -// Purpose: The class Algorithm generates algorithms for encryption and signing. -// The class Key defined these algorithms. By using this handle the -// necessary methods (e.g. hash-algorithms, verifying-primitiva, etc.) -// can be generated. -// -// Copyright: (c) 2000 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_Algorithm_h -#define ACT_Algorithm_h - -#include "actBasics.h" - -namespace act -{ - class IAlgorithm; - class IKey; - class Blob; - - class Algorithm - { - private: - Algorithm(const Algorithm&); - Algorithm &operator=(const Algorithm&); - - public: - Algorithm(IAlgorithm* alg); - Algorithm(const IKey* key, mode_t mode); - Algorithm(const IKey* key, mode_t mode, const Blob& data); - Algorithm(const char* name); - ~Algorithm(); - - void Write(const Blob& indata); - void Write(const byte* indata, size_t insize); - - void Finalize(); - - size_t Read(Blob& outdata, size_t max = 0); - size_t Read(byte* outbuffer, size_t buffersize); - - size_t GetAvailableSize() const; - status_t GetStatus() const; - - Algorithm& operator<<(const Blob& indata) { Write(indata); return *this; } - Algorithm& operator<<(Algorithm& (*manipulator)(Algorithm &alg)) { return manipulator(*this); } - Algorithm& operator>>(Blob& outdata) { Read(outdata); return *this; } - - operator IAlgorithm*(); - operator const IAlgorithm* () const; - IAlgorithm* GetPointer(); - const IAlgorithm* GetPointer() const; - - IAlgorithm* ReleasePointer(); - - private: - IAlgorithm* mAlg; - }; - - inline Algorithm& final(Algorithm& alg) - { - alg.Finalize(); - return alg; - } - -} // namespace act - -#endif // ACT_Algorithm_h +////////////////////////////////////////////////////////////////////////////////// +// Name: actAlgorithm.h +// Product: cv act library +// Purpose: The class Algorithm generates algorithms for encryption and signing. +// The class Key defined these algorithms. By using this handle the +// necessary methods (e.g. hash-algorithms, verifying-primitiva, etc.) +// can be generated. +// +// Copyright: (c) 2000 cv cryptovision GmbH +// all rights reserved +// Licence: The conditions for the use of this software are regulated +// in the cv act library licence agreement. +////////////////////////////////////////////////////////////////////////////////// + +#ifndef ACT_Algorithm_h +#define ACT_Algorithm_h + +#include "actBasics.h" + +namespace act +{ + class IAlgorithm; + class IKey; + class Blob; + + class Algorithm + { + private: + Algorithm(const Algorithm&); + Algorithm &operator=(const Algorithm&); + + public: + Algorithm(IAlgorithm* alg); + Algorithm(const IKey* key, mode_t mode); + Algorithm(const IKey* key, mode_t mode, const Blob& data); + Algorithm(const char* name); + ~Algorithm(); + + void Write(const Blob& indata); + void Write(const byte* indata, size_t insize); + + void Finalize(); + + size_t Read(Blob& outdata, size_t max = 0); + size_t Read(byte* outbuffer, size_t buffersize); + + size_t GetAvailableSize() const; + status_t GetStatus() const; + + Algorithm& operator<<(const Blob& indata) { Write(indata); return *this; } + Algorithm& operator<<(Algorithm& (*manipulator)(Algorithm &alg)) { return manipulator(*this); } + Algorithm& operator>>(Blob& outdata) { Read(outdata); return *this; } + + operator IAlgorithm*(); + operator const IAlgorithm* () const; + IAlgorithm* GetPointer(); + const IAlgorithm* GetPointer() const; + + IAlgorithm* ReleasePointer(); + + private: + IAlgorithm* mAlg; + }; + + inline Algorithm& final(Algorithm& alg) + { + alg.Finalize(); + return alg; + } + +} // namespace act + +#endif // ACT_Algorithm_h diff --git a/actlibrary/MacOSX-10.6-x86_64/Release/include/actAllocator.h b/actlibrary/include/actAllocator.h similarity index 96% rename from actlibrary/MacOSX-10.6-x86_64/Release/include/actAllocator.h rename to actlibrary/include/actAllocator.h index ce0bfb2..ff48ca6 100644 --- a/actlibrary/MacOSX-10.6-x86_64/Release/include/actAllocator.h +++ b/actlibrary/include/actAllocator.h @@ -1,107 +1,107 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actAllocator.h -// Product: cv act library -// Purpose: -// -// Copyright: (c) 2008 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -// -// Autor: Markus Tesche (MTE) -// Date: 09/29/2008 -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_Allocator_h -#define ACT_Allocator_h - -#include "actBasics.h" - -// -------------------------------------------------------------------------------- -namespace act -{ - // - // Allocator<> - template - class Allocator - { - public: - typedef SizeT size_type; - typedef TypeT value_type; - typedef value_type* pointer; - typedef value_type& reference; - typedef const value_type* const_pointer; - typedef const value_type& const_reference; - - protected: - typedef Allocator ThisT; - typedef pointer (*fptr_allocate)(ThisT*, size_type n, const void* hint); - typedef void (*fptr_deallocate)(ThisT*, pointer p, size_type n); - - private: - Allocator(const Allocator&); - Allocator& operator=(const Allocator&); - - protected: - Allocator(fptr_allocate pAllocate, fptr_deallocate pDeallocate) throw() - : m_pAllocate(pAllocate) - , m_pDeallocate(pDeallocate) - { } - - public: - inline pointer allocate(size_type n, const void* hint) - { - return m_pAllocate(this, n, hint); - } - - inline void deallocate(pointer p, size_type n) - { - if(p != 0) m_pDeallocate(this, p, n); - } - - protected: - fptr_allocate m_pAllocate; - fptr_deallocate m_pDeallocate; - }; - - // - // AllocatorImpl<> - template - < - class AllocatorT, - class BaseT = Allocator - > - class AllocatorImpl : public BaseT - { - public: - typedef typename BaseT::pointer pointer; - typedef typename BaseT::size_type size_type; - - protected: - typedef AllocatorImpl ThisT; - - public: - AllocatorImpl() throw() - : BaseT(_allocate, _deallocate) - { } - - AllocatorT& ref_alloc() { return m_Alloc; } - - private: - inline static pointer _allocate(BaseT* pThis, size_type n, const void* hint) - { - return static_cast(pThis)->m_Alloc.allocate(n, hint); - } - - inline static void _deallocate(BaseT* pThis, pointer p, size_type n) - { - static_cast(pThis)->m_Alloc.deallocate(p, n); - } - - private: - AllocatorT m_Alloc; - }; - -} // namespace act - -#endif // ACT_Allocator_h +////////////////////////////////////////////////////////////////////////////////// +// Name: actAllocator.h +// Product: cv act library +// Purpose: +// +// Copyright: (c) 2008 cv cryptovision GmbH +// all rights reserved +// Licence: The conditions for the use of this software are regulated +// in the cv act library licence agreement. +// +// Autor: Markus Tesche (MTE) +// Date: 09/29/2008 +////////////////////////////////////////////////////////////////////////////////// + +#ifndef ACT_Allocator_h +#define ACT_Allocator_h + +#include "actBasics.h" + +// -------------------------------------------------------------------------------- +namespace act +{ + // + // Allocator<> + template + class Allocator + { + public: + typedef SizeT size_type; + typedef TypeT value_type; + typedef value_type* pointer; + typedef value_type& reference; + typedef const value_type* const_pointer; + typedef const value_type& const_reference; + + protected: + typedef Allocator ThisT; + typedef pointer (*fptr_allocate)(ThisT*, size_type n, const void* hint); + typedef void (*fptr_deallocate)(ThisT*, pointer p, size_type n); + + private: + Allocator(const Allocator&); + Allocator& operator=(const Allocator&); + + protected: + Allocator(fptr_allocate pAllocate, fptr_deallocate pDeallocate) throw() + : m_pAllocate(pAllocate) + , m_pDeallocate(pDeallocate) + { } + + public: + inline pointer allocate(size_type n, const void* hint) + { + return m_pAllocate(this, n, hint); + } + + inline void deallocate(pointer p, size_type n) + { + if(p != 0) m_pDeallocate(this, p, n); + } + + protected: + fptr_allocate m_pAllocate; + fptr_deallocate m_pDeallocate; + }; + + // + // AllocatorImpl<> + template + < + class AllocatorT, + class BaseT = Allocator + > + class AllocatorImpl : public BaseT + { + public: + typedef typename BaseT::pointer pointer; + typedef typename BaseT::size_type size_type; + + protected: + typedef AllocatorImpl ThisT; + + public: + AllocatorImpl() throw() + : BaseT(_allocate, _deallocate) + { } + + AllocatorT& ref_alloc() { return m_Alloc; } + + private: + inline static pointer _allocate(BaseT* pThis, size_type n, const void* hint) + { + return static_cast(pThis)->m_Alloc.allocate(n, hint); + } + + inline static void _deallocate(BaseT* pThis, pointer p, size_type n) + { + static_cast(pThis)->m_Alloc.deallocate(p, n); + } + + private: + AllocatorT m_Alloc; + }; + +} // namespace act + +#endif // ACT_Allocator_h diff --git a/actlibrary/MacOSX-10.5-x86_64/Release/include/actBasics.h b/actlibrary/include/actBasics.h similarity index 95% rename from actlibrary/MacOSX-10.5-x86_64/Release/include/actBasics.h rename to actlibrary/include/actBasics.h index 39057d6..1aab1f0 100644 --- a/actlibrary/MacOSX-10.5-x86_64/Release/include/actBasics.h +++ b/actlibrary/include/actBasics.h @@ -1,93 +1,93 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actBasics.h -// Product: cv act library -// Purpose: integration of globally available identifiers -// -// Copyright: (c) 2000 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_Basics_h -#define ACT_Basics_h - -#include "actEnv.h" - -#ifndef ACT_LITTLE_ENDIAN -# define ACT_LITTLE_ENDIAN -#endif - -#if defined(__BIG_ENDIAN__) || \ - defined(__sun__) || \ - defined(__sparc) || \ - defined(__sparc__) || \ - defined(__ppc__) || \ - defined(__ppc64__) -# undef ACT_LITTLE_ENDIAN -#endif // __sun__ - - -#ifndef NO_STL_SUPPORT -# include // used for ptrdiff_t,size_t -#else -# ifndef _PTRDIFF_T_DEFINED - typedef int ptrdiff_t; -# define _PTRDIFF_T_DEFINED -# endif - - -# ifndef _SIZE_T_DEFINED - typedef unsigned int size_t; -# define _SIZE_T_DEFINED -# endif -#endif // NO_STL_SUPPORT - -namespace act -{ - typedef unsigned long ulong; - typedef unsigned int uint; - typedef unsigned short ushort; - typedef unsigned char uchar; - typedef unsigned char byte; - typedef unsigned short word; - typedef unsigned int dword; - -#if defined(_MSC_VER) & !defined(__MWERKS__) - using ::size_t; - using ::ptrdiff_t; -#else - using std::size_t; - using std::ptrdiff_t; -#endif - - typedef int paramid_t; - typedef int status_t; - typedef int mode_t; - typedef int export_t; - - typedef ushort uint16; - typedef uint uint32; -#if defined(__GNUC__) || defined(__MWERKS__) - typedef unsigned long long uint64; -# define U64(x) x##ULL -#else - //#ifdef _MSC_EXTENSIONS - typedef unsigned __int64 uint64; -# define U64(x) x##ui64 -#endif - -#if defined(__GNUC__) -# define GCC_VERSION (__GNUC__ * 10000 + __GNUC_MINOR__ * 100 + __GNUC_PATCHLEVEL__) -#endif - - const export_t DEFAULT = 0; - - // - // scoped_delete<> - template - struct scoped_delete { }; - -} // namespace act - -#endif // ACT_Basics_h +////////////////////////////////////////////////////////////////////////////////// +// Name: actBasics.h +// Product: cv act library +// Purpose: integration of globally available identifiers +// +// Copyright: (c) 2000 cv cryptovision GmbH +// all rights reserved +// Licence: The conditions for the use of this software are regulated +// in the cv act library licence agreement. +////////////////////////////////////////////////////////////////////////////////// + +#ifndef ACT_Basics_h +#define ACT_Basics_h + +#include "actEnv.h" + +#ifndef ACT_LITTLE_ENDIAN +# define ACT_LITTLE_ENDIAN +#endif + +#if defined(__BIG_ENDIAN__) || \ + defined(__sun__) || \ + defined(__sparc) || \ + defined(__sparc__) || \ + defined(__ppc__) || \ + defined(__ppc64__) +# undef ACT_LITTLE_ENDIAN +#endif // __sun__ + + +#ifndef NO_STL_SUPPORT +# include // used for ptrdiff_t,size_t +#else +# ifndef _PTRDIFF_T_DEFINED + typedef int ptrdiff_t; +# define _PTRDIFF_T_DEFINED +# endif + + +# ifndef _SIZE_T_DEFINED + typedef unsigned int size_t; +# define _SIZE_T_DEFINED +# endif +#endif // NO_STL_SUPPORT + +namespace act +{ + typedef unsigned long ulong; + typedef unsigned int uint; + typedef unsigned short ushort; + typedef unsigned char uchar; + typedef unsigned char byte; + typedef unsigned short word; + typedef unsigned int dword; + +#if defined(_MSC_VER) & !defined(__MWERKS__) + using ::size_t; + using ::ptrdiff_t; +#else + using std::size_t; + using std::ptrdiff_t; +#endif + + typedef int paramid_t; + typedef int status_t; + typedef int mode_t; + typedef int export_t; + + typedef ushort uint16; + typedef uint uint32; +#if defined(__GNUC__) || defined(__MWERKS__) + typedef unsigned long long uint64; +# define U64(x) x##ULL +#else + //#ifdef _MSC_EXTENSIONS + typedef unsigned __int64 uint64; +# define U64(x) x##ui64 +#endif + +#if defined(__GNUC__) +# define GCC_VERSION (__GNUC__ * 10000 + __GNUC_MINOR__ * 100 + __GNUC_PATCHLEVEL__) +#endif + + const export_t DEFAULT = 0; + + // + // scoped_delete<> + template + struct scoped_delete { }; + +} // namespace act + +#endif // ACT_Basics_h diff --git a/actlibrary/MacOSX-10.6-x86_64/Release/include/actBlob.h b/actlibrary/include/actBlob.h similarity index 96% rename from actlibrary/MacOSX-10.6-x86_64/Release/include/actBlob.h rename to actlibrary/include/actBlob.h index e42687d..292dc1a 100644 --- a/actlibrary/MacOSX-10.6-x86_64/Release/include/actBlob.h +++ b/actlibrary/include/actBlob.h @@ -1,644 +1,644 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actBlob.h -// Product: cv act library -// Purpose: The datatype Blob (Binary Large Object) is a universal type, which -// can be used for any data. The class Blob almost behaves like -// std::vector with the difference that freed memory -// is filled with zeros to enhance security. -// -// Copyright: (c) 2000 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_Blob_h -#define ACT_Blob_h - -#include "actMove.h" -#include "actBasics.h" -#include "actAllocator.h" - -#ifndef UNDER_CE_30 -# include -#endif // UNDER_CE_30 - -#ifndef NO_STL_SUPPORT -# include // used for reserve_iterator -# include // used for string -#else - // -------------------------------------------------------------------------------- - // if there is no STL support, we define reverse_iterator here. - // -------------------------------------------------------------------------------- - namespace std - { - // ITERATOR TAGS (from ) - struct input_iterator_tag {}; - struct output_iterator_tag {}; - struct forward_iterator_tag - : public input_iterator_tag {}; - struct bidirectional_iterator_tag - : public forward_iterator_tag {}; - struct random_access_iterator_tag - : public bidirectional_iterator_tag {}; - - // TEMPLATE CLASS iterator (from ) - template - struct iterator { - typedef _C iterator_category; - typedef _Ty value_type; - typedef _D distance_type; - }; - template - struct _Bidit : public iterator {}; - template - struct _Ranit : public iterator {}; - - // TEMPLATE CLASS iterator_traits (from ) - template - struct iterator_traits { - typedef _It::iterator_category iterator_category; - typedef _It::value_type value_type; - typedef _It::distance_type distance_type; - }; - - - // TEMPLATE CLASS reverse_iterator (from ) - template - class reverse_iterator : public _Ranit<_Ty, _D> { - public: - typedef reverse_iterator<_RI, _Ty, _Rt, _Pt, _D> _Myt; - typedef _RI iter_type; - typedef _Rt reference_type; - typedef _Pt pointer_type; - reverse_iterator() - {} - explicit reverse_iterator(_RI _X) - : current(_X) {} - _RI base() const - {return(current); } - _Rt operator*() const - {return(*(current - 1)); } - // _Pt operator->() const - // {return(&**this); } - _Myt& operator++() - {--current; - return(*this); } - _Myt operator++(int) - {_Myt _Tmp = *this; - --current; - return(_Tmp); } - _Myt& operator--() - {++current; - return(*this); } - _Myt operator--(int) - {_Myt _Tmp = *this; - ++current; - return(_Tmp); } - _Myt& operator+=(_D _N) - {current -= _N; - return(*this); } - _Myt operator+(_D _N) const - {return(_Myt(current - _N)); } - _Myt& operator-=(_D _N) - {current += _N; - return(*this); } - _Myt operator-(_D _N) const - {return(_Myt(current + _N)); } - _Rt operator[](_D _N) const - {return(*(*this + _N)); } - protected: - _RI current; - }; - template inline - bool __cdecl operator==( - const reverse_iterator<_RI, _Ty, _Rt, _Pt, _D>& _X, - const reverse_iterator<_RI, _Ty, _Rt, _Pt, _D>& _Y) - {return(get_base(_X) == get_base(_Y)); } - template inline - bool __cdecl operator!=( - const reverse_iterator<_RI, _Ty, _Rt, _Pt, _D>& _X, - const reverse_iterator<_RI, _Ty, _Rt, _Pt, _D>& _Y) - {return(!(_X == _Y)); } - template inline - bool __cdecl operator<( - const reverse_iterator<_RI, _Ty, _Rt, _Pt, _D>& _X, - const reverse_iterator<_RI, _Ty, _Rt, _Pt, _D>& _Y) - {return(get_base(_Y) < get_base(_X)); } - template inline - bool __cdecl operator>( - const reverse_iterator<_RI, _Ty, _Rt, _Pt, _D>& _X, - const reverse_iterator<_RI, _Ty, _Rt, _Pt, _D>& _Y) - {return(_Y < _X); } - template inline - bool __cdecl operator<=( - const reverse_iterator<_RI, _Ty, _Rt, _Pt, _D>& _X, - const reverse_iterator<_RI, _Ty, _Rt, _Pt, _D>& _Y) - {return(!(_Y < _X)); } - template inline - bool __cdecl operator>=( - const reverse_iterator<_RI, _Ty, _Rt, _Pt, _D>& _X, - const reverse_iterator<_RI, _Ty, _Rt, _Pt, _D>& _Y) - {return(!(_X < _Y)); } - template inline - _D __cdecl operator-( - const reverse_iterator<_RI, _Ty, _Rt, _Pt, _D>& _X, - const reverse_iterator<_RI, _Ty, _Rt, _Pt, _D>& _Y) - {return(get_base(_Y) - get_base(_X)); } - template inline - reverse_iterator<_RI, _Ty, _Rt, _Pt, _D> __cdecl operator+(_D _N, - const reverse_iterator<_RI, _Ty, _Rt, _Pt, _D>& _Y) - {return(reverse_iterator<_RI, _Ty, _Rt, _Pt, _D>( - get_base(_Y) - _N)); } - } // namespace std - -#endif //NO_STL_SUPPORT - -// -------------------------------------------------------------------------------- -namespace act -{ - // - // byte_array for fixed data - struct byte_array - { - const act::byte* value; - const size_t size; - }; - - inline byte_array make_array(const act::byte* value = 0, size_t size = 0) - { - const byte_array ba = { value, size }; - return ba; - }; - -#ifndef ACT_NO_BYTE_ARRAY_MACROS -# define _A(x) x.value, x.size -# define _B(x) act::make_array(reinterpret_cast(x), sizeof(x) - sizeof(x[0])) -# define _C(x) act::make_array(reinterpret_cast(x), sizeof(x)) -# define _H(x) { (const act::byte*) x, sizeof(x) - sizeof(x[0]) } -#endif - -#if(_MSC_VER >= 1300) - template - < - class _Ty, - class _Diff, - class _Pointer, - class _Reference, - class _Pointer2, - class _Reference2 - > - class _Ptrit : - public std::iterator - { // wrap pointer as random-access iterator - public: - typedef _Ptrit<_Ty, _Diff, _Pointer, _Reference, _Pointer2, _Reference2> _Myt; - - _Ptrit() - { // construct with uninitialized wrapped pointer - } - - _Ptrit(_Pointer _Ptr) : current(_Ptr) - { // construct wrapped pointer from _Ptr - } - - _Ptrit(const _Ptrit<_Ty, _Diff, _Pointer2, _Reference2, _Pointer2, _Reference2>& _Iter) - : current(_Iter.base()) - { // const converter or copy constructor - } - - _Pointer base() const - { // return wrapped pointer - return current; - } - - _Reference operator*() const - { // return designated value - return *current; - } - - _Pointer operator->() const - { // return pointer to class object - return &**this; - } - - _Myt& operator++() - { // preincrement - ++current; - return *this; - } - - _Myt operator++(int) - { // postincrement - _Myt _Tmp = *this; - ++current; - return _Tmp; - } - - _Myt& operator--() - { // predecrement - --current; - return *this; - } - - _Myt operator--(int) - { // postdecrement - _Myt _Tmp = *this; - --current; - return _Tmp; - } - - bool operator==(size_t _Right) const - { // test if wrapped pointer == integer (null pointer constant) - return current == (_Pointer) _Right; - } - - bool operator==(const _Myt& _Right) const - { // test for iterator equality - return current == _Right.current; - } - - bool operator!=(const _Myt& _Right) const - { // test for iterator inequality - return !(*this == _Right); - } - - _Myt& operator+=(_Diff _Off) - { // increment by integer - current += _Off; - return *this; - } - - _Myt operator+(_Diff _Off) const - { // return this + integer - return _Myt(current + _Off); - } - - _Myt& operator-=(_Diff _Off) - { // decrement by integer - current -= _Off; - return *this; - } - - _Myt operator-(_Diff _Off) const - { // return this - integer - return _Myt(current - _Off); - } - - _Reference operator[](_Diff _Off) const - { // subscript - return *(*this + _Off); - } - - bool operator<(const _Myt& _Right) const - { // test if this < _Right - return current < _Right.current; - } - - bool operator>(const _Myt& _Right) const - { // test if this > _Right - return _Right < *this; - } - - bool operator<=(const _Myt& _Right) const - { // test if this <= _Right - return !(_Right < *this); - } - - bool operator>=(const _Myt& _Right) const - { // test if this >= _Right - return !(*this < _Right); - } - - _Diff operator-(const _Myt& _Right) const - { // return difference of iterators - return current - _Right.current; - } - - protected: - _Pointer current; // the wrapped pointer - }; - -#endif // _MSC_VER >= 1300 - - // - // Blob - class Blob - { - protected: - struct flags - { - byte copy_on_write:1; - byte external_allocated:1; - - flags() throw() - : copy_on_write(0) - , external_allocated(0) - { } - }; - - public: - typedef Allocator _Alloc; - typedef _Alloc allocator_type; - typedef _Alloc::size_type size_type; - typedef _Alloc::value_type value_type; - typedef value_type* pointer; - typedef value_type& reference; - typedef const value_type* const_pointer; - typedef const value_type& const_reference; - typedef ptrdiff_t difference_type; - -#if(_MSC_VER >= 1300) - typedef _Ptrit - < value_type, difference_type, pointer, reference, pointer, reference - > iterator; - - typedef _Ptrit - < value_type, difference_type, const_pointer, const_reference, pointer, reference - > const_iterator; - - inline static pointer get_base(iterator it) { return it.base(); } - inline static const_pointer get_base(const_iterator it) { return it.base(); } - -#else - typedef byte* iterator; - typedef const byte* const_iterator; - - inline static pointer get_base(iterator it) { return it; } - inline static const_pointer get_base(const_iterator it) { return it; } - -#endif - -#if (_MSC_VER >= 1200) && (_MSC_VER < 1300) - typedef std::reverse_iterator - < iterator, value_type, reference, pointer, difference_type - > reverse_iterator; - - typedef std::reverse_iterator - < const_iterator, value_type, const_reference, const_pointer, difference_type - > const_reverse_iterator; - -#else - typedef std::reverse_iterator reverse_iterator; - typedef std::reverse_iterator const_reverse_iterator; - -#endif - // construct/copy/destroy - Blob(); - - explicit Blob(allocator_type* allocator); - explicit Blob(const char* str, allocator_type* allocator = dAllocator); - -#ifndef NO_STL_SUPPORT - explicit Blob(std::string& str, allocator_type* allocator = dAllocator); - explicit Blob(const std::string& str, allocator_type* allocator = dAllocator); -#endif // NO_STL_SUPPORT - - explicit Blob(const byte_array& ba, allocator_type* allocator = dAllocator); - explicit Blob(size_type n, byte v = byte(0), allocator_type* allocator = dAllocator); - - template - Blob(inputit f, inputit l, allocator_type* allocator = dAllocator) - : mFirst(0), mLast(0), mEnd(0), mAllocator(allocator) - { - insert(begin(), f, l); - } - - Blob(move_from other); - Blob(const Blob& other); - ~Blob(); - - Blob& operator=(const Blob& other); - Blob& operator=(move_from other); - - template - void assign(inputit f, inputit l) - { - erase(begin(), end()); - insert(begin(), f, l); - } - - void assign(const byte_array& ba); - void assign(size_type n, byte x = byte(0)); - - // capacity - bool empty() const { return size() == 0; } - size_type size() const { return mFirst == 0 ? 0 : mLast - mFirst; } - size_type capacity() const { return mFirst == 0 ? 0 : mEnd - mFirst; } - size_type max_size() const; - void reserve(size_type n); - void resize(size_type n, byte x = byte(0)); - - // iterators - iterator begin() { return mFirst; } - const_iterator begin() const { return const_iterator(mFirst); } - iterator end() { return mLast; } - const_iterator end() const { return const_iterator(mLast); } - reverse_iterator rbegin() { return reverse_iterator(end()); } - const_reverse_iterator rbegin() const { return const_reverse_iterator(end()); } - reverse_iterator rend() { return reverse_iterator(begin()); } - const_reverse_iterator rend() const { return const_reverse_iterator(begin()); } - - - // element access: - reference at(size_type p); - const_reference at(size_type p) const; - reference operator[](size_type p) { return *(begin() + p); } - const_reference operator[](size_type p) const { return *(begin() + p); } - - reference front() { return *begin(); } - const_reference front() const { return *begin(); } - reference back() { return *(end() - 1); } - const_reference back() const { return *(end() - 1); } - - // modifiers - void push_back(byte x) { insert(end(), x); } - void pop_back() { erase(end() - 1); } - - void insert(iterator p, size_type m, byte x); - iterator insert(iterator p, byte x = byte(0)); - - template - void insert(iterator p, inputit f, inputit l) - { - size_type m = 0; - _distance(f, l, m); - if(size_type(mEnd - mLast) < m) - { - size_type n = size(); - n = aligned_size(n + (m < n ? n : m)); - iterator s = allocate(n, (void*) 0); - iterator q = ucopy(mFirst, p, s); - q = ucopy(f, l, q); - ucopy(p, mLast, q); - _destroy(mFirst, mLast); - deallocate(get_base(mFirst), mEnd - mFirst); - mEnd = s + n; - mLast = s + size() + m; - mFirst = s; - } - else if(size_type(mLast - p) < m) - { - ucopy(p, mLast, p + m); - ucopy(f + (mLast - p), l, mLast); - copy(f, f + (mLast - p), p); - mLast += m; - } - else if(0 < m) - { - ucopy(mLast - m, mLast, mLast); - copy_backward(p, mLast - m, mLast); - copy(f, l, p); - mLast += m; - } - } - - Blob& append(const Blob& x) - { - insert(end(), x.begin(), x.end()); - return *this; - } - - Blob& append(size_type m, byte x) - { - insert(end(), m, x); - return *this; - } - - template - Blob& append(inputit f, inputit l) - { - insert(end(), f, l); - return *this; - } - - iterator erase(iterator p); - iterator erase(iterator f, iterator l); - void clear(); - void swap(Blob& x); - - // used by compare operators - bool _eq(const Blob& x) const; - bool _lt(const Blob& x) const; - - allocator_type* get_allocator() const { return mAllocator; } - static allocator_type* set_default_allocator(allocator_type* allocator) - { - std::swap(dAllocator, allocator); - return allocator; - } - - private: - template - outputit copy(inputit f, inputit l, outputit x) - { - for(; f != l; ++x, ++f) - *x = *f; - return x; - } - - iterator copy_backward(const_iterator f, const_iterator l, iterator x); - - template - outputit ucopy(inputit f, inputit l, outputit p) - { - for(; f != l; ++p, ++f) - construct(get_base(p), *f); - return p; - } - - void fill(iterator f, const_iterator l, byte x); - void ufill(iterator f, size_type n, byte x); - - size_type distance(const_iterator f, const_iterator l) const; - - template - void _distance(inputit f, inputit l, size_type& n) const - { - for(; f != l; ++f) - ++n; - } - - bool equal(const_iterator f, const_iterator l, const_iterator x) const; - bool lexicographical_compare(const_iterator f1, const_iterator l1, const_iterator f2, const_iterator l2) const; - - byte* allocate(size_type n, const void* hint); - void deallocate(pointer p, size_type n); - - void construct(byte* p, const_reference v) { *p = v; } - void destroy(byte* p) { *p = 0; } - - void _destroy(iterator f, iterator l); - - void outofrange() const; - - static size_type aligned_size(size_type size); - - protected: - flags mFlags; - iterator mFirst, mLast, mEnd; - allocator_type* mAllocator; - static allocator_type* dAllocator; - }; - -#ifndef UNDER_CE_30 - std::ostream &operator<<(std::ostream& os, const Blob& blob); -#endif // UNDER_CE_30 - - - // -------------------------------------------------------------------------------- - inline bool operator==(const Blob& x, const Blob&y) - { - return x._eq(y); - } - - inline bool operator!=(const Blob& x, const Blob&y) - { - return !(x._eq(y)); - } - - inline bool operator<(const Blob& x, const Blob&y) - { - return x._lt(y); - } - - inline bool operator>=(const Blob& x, const Blob&y) - { - return !(x._lt(y)); - } - - inline bool operator<=(const Blob& x, const Blob&y) - { - return x._eq(y) || x._lt(y); - } - - inline bool operator>(const Blob& x, const Blob&y) - { - return !(x._eq(y) || x._lt(y)); - } - -} // namespace act - -// -------------------------------------------------------------------------------- -namespace std -{ - // --------------------------------------------------------------------------- - inline void swap(act::Blob& left, act::Blob& right) { left.swap(right); } - -} // namespace std - -#endif // ACT_Blob_h +////////////////////////////////////////////////////////////////////////////////// +// Name: actBlob.h +// Product: cv act library +// Purpose: The datatype Blob (Binary Large Object) is a universal type, which +// can be used for any data. The class Blob almost behaves like +// std::vector with the difference that freed memory +// is filled with zeros to enhance security. +// +// Copyright: (c) 2000 cv cryptovision GmbH +// all rights reserved +// Licence: The conditions for the use of this software are regulated +// in the cv act library licence agreement. +////////////////////////////////////////////////////////////////////////////////// + +#ifndef ACT_Blob_h +#define ACT_Blob_h + +#include "actMove.h" +#include "actBasics.h" +#include "actAllocator.h" + +#ifndef UNDER_CE_30 +# include +#endif // UNDER_CE_30 + +#ifndef NO_STL_SUPPORT +# include // used for reserve_iterator +# include // used for string +#else + // -------------------------------------------------------------------------------- + // if there is no STL support, we define reverse_iterator here. + // -------------------------------------------------------------------------------- + namespace std + { + // ITERATOR TAGS (from ) + struct input_iterator_tag {}; + struct output_iterator_tag {}; + struct forward_iterator_tag + : public input_iterator_tag {}; + struct bidirectional_iterator_tag + : public forward_iterator_tag {}; + struct random_access_iterator_tag + : public bidirectional_iterator_tag {}; + + // TEMPLATE CLASS iterator (from ) + template + struct iterator { + typedef _C iterator_category; + typedef _Ty value_type; + typedef _D distance_type; + }; + template + struct _Bidit : public iterator {}; + template + struct _Ranit : public iterator {}; + + // TEMPLATE CLASS iterator_traits (from ) + template + struct iterator_traits { + typedef _It::iterator_category iterator_category; + typedef _It::value_type value_type; + typedef _It::distance_type distance_type; + }; + + + // TEMPLATE CLASS reverse_iterator (from ) + template + class reverse_iterator : public _Ranit<_Ty, _D> { + public: + typedef reverse_iterator<_RI, _Ty, _Rt, _Pt, _D> _Myt; + typedef _RI iter_type; + typedef _Rt reference_type; + typedef _Pt pointer_type; + reverse_iterator() + {} + explicit reverse_iterator(_RI _X) + : current(_X) {} + _RI base() const + {return(current); } + _Rt operator*() const + {return(*(current - 1)); } + // _Pt operator->() const + // {return(&**this); } + _Myt& operator++() + {--current; + return(*this); } + _Myt operator++(int) + {_Myt _Tmp = *this; + --current; + return(_Tmp); } + _Myt& operator--() + {++current; + return(*this); } + _Myt operator--(int) + {_Myt _Tmp = *this; + ++current; + return(_Tmp); } + _Myt& operator+=(_D _N) + {current -= _N; + return(*this); } + _Myt operator+(_D _N) const + {return(_Myt(current - _N)); } + _Myt& operator-=(_D _N) + {current += _N; + return(*this); } + _Myt operator-(_D _N) const + {return(_Myt(current + _N)); } + _Rt operator[](_D _N) const + {return(*(*this + _N)); } + protected: + _RI current; + }; + template inline + bool __cdecl operator==( + const reverse_iterator<_RI, _Ty, _Rt, _Pt, _D>& _X, + const reverse_iterator<_RI, _Ty, _Rt, _Pt, _D>& _Y) + {return(get_base(_X) == get_base(_Y)); } + template inline + bool __cdecl operator!=( + const reverse_iterator<_RI, _Ty, _Rt, _Pt, _D>& _X, + const reverse_iterator<_RI, _Ty, _Rt, _Pt, _D>& _Y) + {return(!(_X == _Y)); } + template inline + bool __cdecl operator<( + const reverse_iterator<_RI, _Ty, _Rt, _Pt, _D>& _X, + const reverse_iterator<_RI, _Ty, _Rt, _Pt, _D>& _Y) + {return(get_base(_Y) < get_base(_X)); } + template inline + bool __cdecl operator>( + const reverse_iterator<_RI, _Ty, _Rt, _Pt, _D>& _X, + const reverse_iterator<_RI, _Ty, _Rt, _Pt, _D>& _Y) + {return(_Y < _X); } + template inline + bool __cdecl operator<=( + const reverse_iterator<_RI, _Ty, _Rt, _Pt, _D>& _X, + const reverse_iterator<_RI, _Ty, _Rt, _Pt, _D>& _Y) + {return(!(_Y < _X)); } + template inline + bool __cdecl operator>=( + const reverse_iterator<_RI, _Ty, _Rt, _Pt, _D>& _X, + const reverse_iterator<_RI, _Ty, _Rt, _Pt, _D>& _Y) + {return(!(_X < _Y)); } + template inline + _D __cdecl operator-( + const reverse_iterator<_RI, _Ty, _Rt, _Pt, _D>& _X, + const reverse_iterator<_RI, _Ty, _Rt, _Pt, _D>& _Y) + {return(get_base(_Y) - get_base(_X)); } + template inline + reverse_iterator<_RI, _Ty, _Rt, _Pt, _D> __cdecl operator+(_D _N, + const reverse_iterator<_RI, _Ty, _Rt, _Pt, _D>& _Y) + {return(reverse_iterator<_RI, _Ty, _Rt, _Pt, _D>( + get_base(_Y) - _N)); } + } // namespace std + +#endif //NO_STL_SUPPORT + +// -------------------------------------------------------------------------------- +namespace act +{ + // + // byte_array for fixed data + struct byte_array + { + const act::byte* value; + const size_t size; + }; + + inline byte_array make_array(const act::byte* value = 0, size_t size = 0) + { + const byte_array ba = { value, size }; + return ba; + }; + +#ifndef ACT_NO_BYTE_ARRAY_MACROS +# define _A(x) x.value, x.size +# define _B(x) act::make_array(reinterpret_cast(x), sizeof(x) - sizeof(x[0])) +# define _C(x) act::make_array(reinterpret_cast(x), sizeof(x)) +# define _H(x) { (const act::byte*) x, sizeof(x) - sizeof(x[0]) } +#endif + +#if(_MSC_VER >= 1300) + template + < + class _Ty, + class _Diff, + class _Pointer, + class _Reference, + class _Pointer2, + class _Reference2 + > + class _Ptrit : + public std::iterator + { // wrap pointer as random-access iterator + public: + typedef _Ptrit<_Ty, _Diff, _Pointer, _Reference, _Pointer2, _Reference2> _Myt; + + _Ptrit() + { // construct with uninitialized wrapped pointer + } + + _Ptrit(_Pointer _Ptr) : current(_Ptr) + { // construct wrapped pointer from _Ptr + } + + _Ptrit(const _Ptrit<_Ty, _Diff, _Pointer2, _Reference2, _Pointer2, _Reference2>& _Iter) + : current(_Iter.base()) + { // const converter or copy constructor + } + + _Pointer base() const + { // return wrapped pointer + return current; + } + + _Reference operator*() const + { // return designated value + return *current; + } + + _Pointer operator->() const + { // return pointer to class object + return &**this; + } + + _Myt& operator++() + { // preincrement + ++current; + return *this; + } + + _Myt operator++(int) + { // postincrement + _Myt _Tmp = *this; + ++current; + return _Tmp; + } + + _Myt& operator--() + { // predecrement + --current; + return *this; + } + + _Myt operator--(int) + { // postdecrement + _Myt _Tmp = *this; + --current; + return _Tmp; + } + + bool operator==(size_t _Right) const + { // test if wrapped pointer == integer (null pointer constant) + return current == (_Pointer) _Right; + } + + bool operator==(const _Myt& _Right) const + { // test for iterator equality + return current == _Right.current; + } + + bool operator!=(const _Myt& _Right) const + { // test for iterator inequality + return !(*this == _Right); + } + + _Myt& operator+=(_Diff _Off) + { // increment by integer + current += _Off; + return *this; + } + + _Myt operator+(_Diff _Off) const + { // return this + integer + return _Myt(current + _Off); + } + + _Myt& operator-=(_Diff _Off) + { // decrement by integer + current -= _Off; + return *this; + } + + _Myt operator-(_Diff _Off) const + { // return this - integer + return _Myt(current - _Off); + } + + _Reference operator[](_Diff _Off) const + { // subscript + return *(*this + _Off); + } + + bool operator<(const _Myt& _Right) const + { // test if this < _Right + return current < _Right.current; + } + + bool operator>(const _Myt& _Right) const + { // test if this > _Right + return _Right < *this; + } + + bool operator<=(const _Myt& _Right) const + { // test if this <= _Right + return !(_Right < *this); + } + + bool operator>=(const _Myt& _Right) const + { // test if this >= _Right + return !(*this < _Right); + } + + _Diff operator-(const _Myt& _Right) const + { // return difference of iterators + return current - _Right.current; + } + + protected: + _Pointer current; // the wrapped pointer + }; + +#endif // _MSC_VER >= 1300 + + // + // Blob + class Blob + { + protected: + struct flags + { + byte copy_on_write:1; + byte external_allocated:1; + + flags() throw() + : copy_on_write(0) + , external_allocated(0) + { } + }; + + public: + typedef Allocator _Alloc; + typedef _Alloc allocator_type; + typedef _Alloc::size_type size_type; + typedef _Alloc::value_type value_type; + typedef value_type* pointer; + typedef value_type& reference; + typedef const value_type* const_pointer; + typedef const value_type& const_reference; + typedef ptrdiff_t difference_type; + +#if(_MSC_VER >= 1300) + typedef _Ptrit + < value_type, difference_type, pointer, reference, pointer, reference + > iterator; + + typedef _Ptrit + < value_type, difference_type, const_pointer, const_reference, pointer, reference + > const_iterator; + + inline static pointer get_base(iterator it) { return it.base(); } + inline static const_pointer get_base(const_iterator it) { return it.base(); } + +#else + typedef byte* iterator; + typedef const byte* const_iterator; + + inline static pointer get_base(iterator it) { return it; } + inline static const_pointer get_base(const_iterator it) { return it; } + +#endif + +#if (_MSC_VER >= 1200) && (_MSC_VER < 1300) + typedef std::reverse_iterator + < iterator, value_type, reference, pointer, difference_type + > reverse_iterator; + + typedef std::reverse_iterator + < const_iterator, value_type, const_reference, const_pointer, difference_type + > const_reverse_iterator; + +#else + typedef std::reverse_iterator reverse_iterator; + typedef std::reverse_iterator const_reverse_iterator; + +#endif + // construct/copy/destroy + Blob(); + + explicit Blob(allocator_type* allocator); + explicit Blob(const char* str, allocator_type* allocator = dAllocator); + +#ifndef NO_STL_SUPPORT + explicit Blob(std::string& str, allocator_type* allocator = dAllocator); + explicit Blob(const std::string& str, allocator_type* allocator = dAllocator); +#endif // NO_STL_SUPPORT + + explicit Blob(const byte_array& ba, allocator_type* allocator = dAllocator); + explicit Blob(size_type n, byte v = byte(0), allocator_type* allocator = dAllocator); + + template + Blob(inputit f, inputit l, allocator_type* allocator = dAllocator) + : mFirst(0), mLast(0), mEnd(0), mAllocator(allocator) + { + insert(begin(), f, l); + } + + Blob(move_from other); + Blob(const Blob& other); + ~Blob(); + + Blob& operator=(const Blob& other); + Blob& operator=(move_from other); + + template + void assign(inputit f, inputit l) + { + erase(begin(), end()); + insert(begin(), f, l); + } + + void assign(const byte_array& ba); + void assign(size_type n, byte x = byte(0)); + + // capacity + bool empty() const { return size() == 0; } + size_type size() const { return mFirst == 0 ? 0 : mLast - mFirst; } + size_type capacity() const { return mFirst == 0 ? 0 : mEnd - mFirst; } + size_type max_size() const; + void reserve(size_type n); + void resize(size_type n, byte x = byte(0)); + + // iterators + iterator begin() { return mFirst; } + const_iterator begin() const { return const_iterator(mFirst); } + iterator end() { return mLast; } + const_iterator end() const { return const_iterator(mLast); } + reverse_iterator rbegin() { return reverse_iterator(end()); } + const_reverse_iterator rbegin() const { return const_reverse_iterator(end()); } + reverse_iterator rend() { return reverse_iterator(begin()); } + const_reverse_iterator rend() const { return const_reverse_iterator(begin()); } + + + // element access: + reference at(size_type p); + const_reference at(size_type p) const; + reference operator[](size_type p) { return *(begin() + p); } + const_reference operator[](size_type p) const { return *(begin() + p); } + + reference front() { return *begin(); } + const_reference front() const { return *begin(); } + reference back() { return *(end() - 1); } + const_reference back() const { return *(end() - 1); } + + // modifiers + void push_back(byte x) { insert(end(), x); } + void pop_back() { erase(end() - 1); } + + void insert(iterator p, size_type m, byte x); + iterator insert(iterator p, byte x = byte(0)); + + template + void insert(iterator p, inputit f, inputit l) + { + size_type m = 0; + _distance(f, l, m); + if(size_type(mEnd - mLast) < m) + { + size_type n = size(); + n = aligned_size(n + (m < n ? n : m)); + iterator s = allocate(n, (void*) 0); + iterator q = ucopy(mFirst, p, s); + q = ucopy(f, l, q); + ucopy(p, mLast, q); + _destroy(mFirst, mLast); + deallocate(get_base(mFirst), mEnd - mFirst); + mEnd = s + n; + mLast = s + size() + m; + mFirst = s; + } + else if(size_type(mLast - p) < m) + { + ucopy(p, mLast, p + m); + ucopy(f + (mLast - p), l, mLast); + copy(f, f + (mLast - p), p); + mLast += m; + } + else if(0 < m) + { + ucopy(mLast - m, mLast, mLast); + copy_backward(p, mLast - m, mLast); + copy(f, l, p); + mLast += m; + } + } + + Blob& append(const Blob& x) + { + insert(end(), x.begin(), x.end()); + return *this; + } + + Blob& append(size_type m, byte x) + { + insert(end(), m, x); + return *this; + } + + template + Blob& append(inputit f, inputit l) + { + insert(end(), f, l); + return *this; + } + + iterator erase(iterator p); + iterator erase(iterator f, iterator l); + void clear(); + void swap(Blob& x); + + // used by compare operators + bool _eq(const Blob& x) const; + bool _lt(const Blob& x) const; + + allocator_type* get_allocator() const { return mAllocator; } + static allocator_type* set_default_allocator(allocator_type* allocator) + { + std::swap(dAllocator, allocator); + return allocator; + } + + private: + template + outputit copy(inputit f, inputit l, outputit x) + { + for(; f != l; ++x, ++f) + *x = *f; + return x; + } + + iterator copy_backward(const_iterator f, const_iterator l, iterator x); + + template + outputit ucopy(inputit f, inputit l, outputit p) + { + for(; f != l; ++p, ++f) + construct(get_base(p), *f); + return p; + } + + void fill(iterator f, const_iterator l, byte x); + void ufill(iterator f, size_type n, byte x); + + size_type distance(const_iterator f, const_iterator l) const; + + template + void _distance(inputit f, inputit l, size_type& n) const + { + for(; f != l; ++f) + ++n; + } + + bool equal(const_iterator f, const_iterator l, const_iterator x) const; + bool lexicographical_compare(const_iterator f1, const_iterator l1, const_iterator f2, const_iterator l2) const; + + byte* allocate(size_type n, const void* hint); + void deallocate(pointer p, size_type n); + + void construct(byte* p, const_reference v) { *p = v; } + void destroy(byte* p) { *p = 0; } + + void _destroy(iterator f, iterator l); + + void outofrange() const; + + static size_type aligned_size(size_type size); + + protected: + flags mFlags; + iterator mFirst, mLast, mEnd; + allocator_type* mAllocator; + static allocator_type* dAllocator; + }; + +#ifndef UNDER_CE_30 + std::ostream &operator<<(std::ostream& os, const Blob& blob); +#endif // UNDER_CE_30 + + + // -------------------------------------------------------------------------------- + inline bool operator==(const Blob& x, const Blob&y) + { + return x._eq(y); + } + + inline bool operator!=(const Blob& x, const Blob&y) + { + return !(x._eq(y)); + } + + inline bool operator<(const Blob& x, const Blob&y) + { + return x._lt(y); + } + + inline bool operator>=(const Blob& x, const Blob&y) + { + return !(x._lt(y)); + } + + inline bool operator<=(const Blob& x, const Blob&y) + { + return x._eq(y) || x._lt(y); + } + + inline bool operator>(const Blob& x, const Blob&y) + { + return !(x._eq(y) || x._lt(y)); + } + +} // namespace act + +// -------------------------------------------------------------------------------- +namespace std +{ + // --------------------------------------------------------------------------- + inline void swap(act::Blob& left, act::Blob& right) { left.swap(right); } + +} // namespace std + +#endif // ACT_Blob_h diff --git a/actlibrary/MacOSX-10.4-ppc/Release/include/actBlockCipherKit.h b/actlibrary/include/actBlockCipherKit.h similarity index 96% rename from actlibrary/MacOSX-10.4-ppc/Release/include/actBlockCipherKit.h rename to actlibrary/include/actBlockCipherKit.h index e89cc2a..a45265a 100644 --- a/actlibrary/MacOSX-10.4-ppc/Release/include/actBlockCipherKit.h +++ b/actlibrary/include/actBlockCipherKit.h @@ -1,31 +1,31 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actBlockCipherKit.h -// Product: cv act library -// Purpose: declaration of all factory functions -// -// Copyright: (c) 2000 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_BlockCipherKit_h -#define ACT_BlockCipherKit_h - -namespace act -{ - class IBlockCipher; - - IBlockCipher* CreateDES(); - IBlockCipher* CreateTripleDES(); - IBlockCipher* CreateCAST128(); - IBlockCipher* CreateBlowFish(); - IBlockCipher* CreateTwoFish(); - IBlockCipher* CreateMars(); - IBlockCipher* CreateRijndael(); - IBlockCipher* CreateSerpent(); - IBlockCipher* CreateRC2(); - //IBlockCipher* CreateRC6(); -} -#endif - +////////////////////////////////////////////////////////////////////////////////// +// Name: actBlockCipherKit.h +// Product: cv act library +// Purpose: declaration of all factory functions +// +// Copyright: (c) 2000 cv cryptovision GmbH +// all rights reserved +// Licence: The conditions for the use of this software are regulated +// in the cv act library licence agreement. +////////////////////////////////////////////////////////////////////////////////// + +#ifndef ACT_BlockCipherKit_h +#define ACT_BlockCipherKit_h + +namespace act +{ + class IBlockCipher; + + IBlockCipher* CreateDES(); + IBlockCipher* CreateTripleDES(); + IBlockCipher* CreateCAST128(); + IBlockCipher* CreateBlowFish(); + IBlockCipher* CreateTwoFish(); + IBlockCipher* CreateMars(); + IBlockCipher* CreateRijndael(); + IBlockCipher* CreateSerpent(); + IBlockCipher* CreateRC2(); + //IBlockCipher* CreateRC6(); +} +#endif + diff --git a/actlibrary/MacOSX-10.6-x86_64/Release/include/actBlockCipherModeKit.h b/actlibrary/include/actBlockCipherModeKit.h similarity index 96% rename from actlibrary/MacOSX-10.6-x86_64/Release/include/actBlockCipherModeKit.h rename to actlibrary/include/actBlockCipherModeKit.h index ee2bd0a..514dbac 100644 --- a/actlibrary/MacOSX-10.6-x86_64/Release/include/actBlockCipherModeKit.h +++ b/actlibrary/include/actBlockCipherModeKit.h @@ -1,27 +1,27 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actBlockCipherModeKit.h -// Product: cv act library -// Purpose: declaration of all factory functions -// -// Copyright: (c) 2000 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - - -#ifndef ACT_BlockCipherModeKit_h -#define ACT_BlockCipherModeKit_h - -namespace act -{ - class IBlockCipherMode; - - IBlockCipherMode* CreateECBMode(); - IBlockCipherMode* CreateCBCMode(); - IBlockCipherMode* CreateCFBMode(); - IBlockCipherMode* CreateOFBMode(); - IBlockCipherMode* CreateCTRMode(); -} -#endif - +////////////////////////////////////////////////////////////////////////////////// +// Name: actBlockCipherModeKit.h +// Product: cv act library +// Purpose: declaration of all factory functions +// +// Copyright: (c) 2000 cv cryptovision GmbH +// all rights reserved +// Licence: The conditions for the use of this software are regulated +// in the cv act library licence agreement. +////////////////////////////////////////////////////////////////////////////////// + + +#ifndef ACT_BlockCipherModeKit_h +#define ACT_BlockCipherModeKit_h + +namespace act +{ + class IBlockCipherMode; + + IBlockCipherMode* CreateECBMode(); + IBlockCipherMode* CreateCBCMode(); + IBlockCipherMode* CreateCFBMode(); + IBlockCipherMode* CreateOFBMode(); + IBlockCipherMode* CreateCTRMode(); +} +#endif + diff --git a/actlibrary/MacOSX-10.5-x86_64/Release/include/actBlockCipherModeReg.h b/actlibrary/include/actBlockCipherModeReg.h similarity index 96% rename from actlibrary/MacOSX-10.5-x86_64/Release/include/actBlockCipherModeReg.h rename to actlibrary/include/actBlockCipherModeReg.h index 6ce7d63..b309d3a 100644 --- a/actlibrary/MacOSX-10.5-x86_64/Release/include/actBlockCipherModeReg.h +++ b/actlibrary/include/actBlockCipherModeReg.h @@ -1,40 +1,40 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actBlockCipherModeReg.h -// Product: cv act library -// Purpose: registry for factory functions in actBlockCipherModeKit.h -// -// Copyright: (c) 2000 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_BlockCipherModeReg_h -#define ACT_BlockCipherModeReg_h - -namespace act -{ - class IBlockCipherMode; - - typedef IBlockCipherMode* (*CreateBlockCipherModePtr)(); - - struct BlockCipherModeMapEntry - { - const char* Name; - CreateBlockCipherModePtr CreatePtr; - }; - - class BlockCipherModeReg - { - public: - static IBlockCipherMode* CreateBlockCipherMode(const char* name); - static CreateBlockCipherModePtr GetCreatePointer(const char* name); - static const char* GetName(void* createptr); - static const char* GetNextName(const char* name); - static void Insert(const char* name, CreateBlockCipherModePtr createptr); - static void Insert(const BlockCipherModeMapEntry* map); - }; - -} // namespace act - -#endif // ACT_BlockCipherModeReg_h +////////////////////////////////////////////////////////////////////////////////// +// Name: actBlockCipherModeReg.h +// Product: cv act library +// Purpose: registry for factory functions in actBlockCipherModeKit.h +// +// Copyright: (c) 2000 cv cryptovision GmbH +// all rights reserved +// Licence: The conditions for the use of this software are regulated +// in the cv act library licence agreement. +////////////////////////////////////////////////////////////////////////////////// + +#ifndef ACT_BlockCipherModeReg_h +#define ACT_BlockCipherModeReg_h + +namespace act +{ + class IBlockCipherMode; + + typedef IBlockCipherMode* (*CreateBlockCipherModePtr)(); + + struct BlockCipherModeMapEntry + { + const char* Name; + CreateBlockCipherModePtr CreatePtr; + }; + + class BlockCipherModeReg + { + public: + static IBlockCipherMode* CreateBlockCipherMode(const char* name); + static CreateBlockCipherModePtr GetCreatePointer(const char* name); + static const char* GetName(void* createptr); + static const char* GetNextName(const char* name); + static void Insert(const char* name, CreateBlockCipherModePtr createptr); + static void Insert(const BlockCipherModeMapEntry* map); + }; + +} // namespace act + +#endif // ACT_BlockCipherModeReg_h diff --git a/actlibrary/MacOSX-10.4-ppc/Release/include/actBlockCipherReg.h b/actlibrary/include/actBlockCipherReg.h similarity index 96% rename from actlibrary/MacOSX-10.4-ppc/Release/include/actBlockCipherReg.h rename to actlibrary/include/actBlockCipherReg.h index 7f96a90..7013004 100644 --- a/actlibrary/MacOSX-10.4-ppc/Release/include/actBlockCipherReg.h +++ b/actlibrary/include/actBlockCipherReg.h @@ -1,39 +1,39 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actBlockCipherReg.h -// Product: cv act library -// Purpose: registry for factory functions in actBlockCipherKit.h -// -// Copyright: (c) 2000 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_BlockCipherReg_h -#define ACT_BlockCipherReg_h - -namespace act -{ - class IBlockCipher; - - typedef IBlockCipher* (*CreateBlockCipherPtr)(); - - struct BlockCipherMapEntry { - const char* Name; - CreateBlockCipherPtr CreatePtr; - }; - - class BlockCipherReg - { - public: - static IBlockCipher* CreateBlockCipher(const char* name); - static CreateBlockCipherPtr GetCreatePointer(const char* name); - static const char* GetName(void* createptr); - static const char* GetNextName(const char* name); - static void Insert(const char* name,CreateBlockCipherPtr createptr); - static void Insert(const BlockCipherMapEntry* map); - }; -} - -#endif - +////////////////////////////////////////////////////////////////////////////////// +// Name: actBlockCipherReg.h +// Product: cv act library +// Purpose: registry for factory functions in actBlockCipherKit.h +// +// Copyright: (c) 2000 cv cryptovision GmbH +// all rights reserved +// Licence: The conditions for the use of this software are regulated +// in the cv act library licence agreement. +////////////////////////////////////////////////////////////////////////////////// + +#ifndef ACT_BlockCipherReg_h +#define ACT_BlockCipherReg_h + +namespace act +{ + class IBlockCipher; + + typedef IBlockCipher* (*CreateBlockCipherPtr)(); + + struct BlockCipherMapEntry { + const char* Name; + CreateBlockCipherPtr CreatePtr; + }; + + class BlockCipherReg + { + public: + static IBlockCipher* CreateBlockCipher(const char* name); + static CreateBlockCipherPtr GetCreatePointer(const char* name); + static const char* GetName(void* createptr); + static const char* GetNextName(const char* name); + static void Insert(const char* name,CreateBlockCipherPtr createptr); + static void Insert(const BlockCipherMapEntry* map); + }; +} + +#endif + diff --git a/actlibrary/MacOSX-10.6-x86_64/Release/include/actCRL.h b/actlibrary/include/actCRL.h similarity index 95% rename from actlibrary/MacOSX-10.6-x86_64/Release/include/actCRL.h rename to actlibrary/include/actCRL.h index 9922439..a47ebaf 100644 --- a/actlibrary/MacOSX-10.6-x86_64/Release/include/actCRL.h +++ b/actlibrary/include/actCRL.h @@ -1,68 +1,68 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actCRL.h -// Product: cv act library -// Purpose: -// -// Copyright: (c) 2000 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_CRL_h -#define ACT_CRL_h -#include "actBasics.h" - -namespace act -{ - class IKey; - class Blob; - class ICertificate; - class ICRL; - class CRL - { - public: - CRL(const char* type); - CRL(const char* type, const Blob& crlblob); - CRL(const CRL& crl); - - void SetParam(paramid_t id,const Blob& blob); - void SetParam(paramid_t id,int val); - void SetParam(paramid_t id,const char* cstr); - void GetParam(paramid_t id,Blob& blob) const; - int GetParam(paramid_t) const; - - void Import(const Blob& crl); - void Export(Blob& crl) const; - - void Revoke(const ICertificate* cert); - bool IsRevoked(const ICertificate* Cert) const; - void RemoveRevokation(const ICertificate* cert); - - void Revoke(const Blob& blob); - bool IsRevoked(const Blob& blob) const; - void RemoveRevokation(const Blob& blob); - - void Sign(const IKey* privkey); - int Verify(const IKey* pubkey) const; - - const ICRL* GetPointer() const; - ICRL* GetPointer(); - - operator const ICRL* () const; - operator ICRL* (); - - - ICRL* ReleasePointer(); - - CRL& operator= (const CRL& crl); - - ~CRL(); - private: - ICRL* mCRL; - }; - -}; // namespace act - -#endif - +////////////////////////////////////////////////////////////////////////////////// +// Name: actCRL.h +// Product: cv act library +// Purpose: +// +// Copyright: (c) 2000 cv cryptovision GmbH +// all rights reserved +// Licence: The conditions for the use of this software are regulated +// in the cv act library licence agreement. +////////////////////////////////////////////////////////////////////////////////// + +#ifndef ACT_CRL_h +#define ACT_CRL_h +#include "actBasics.h" + +namespace act +{ + class IKey; + class Blob; + class ICertificate; + class ICRL; + class CRL + { + public: + CRL(const char* type); + CRL(const char* type, const Blob& crlblob); + CRL(const CRL& crl); + + void SetParam(paramid_t id,const Blob& blob); + void SetParam(paramid_t id,int val); + void SetParam(paramid_t id,const char* cstr); + void GetParam(paramid_t id,Blob& blob) const; + int GetParam(paramid_t) const; + + void Import(const Blob& crl); + void Export(Blob& crl) const; + + void Revoke(const ICertificate* cert); + bool IsRevoked(const ICertificate* Cert) const; + void RemoveRevokation(const ICertificate* cert); + + void Revoke(const Blob& blob); + bool IsRevoked(const Blob& blob) const; + void RemoveRevokation(const Blob& blob); + + void Sign(const IKey* privkey); + int Verify(const IKey* pubkey) const; + + const ICRL* GetPointer() const; + ICRL* GetPointer(); + + operator const ICRL* () const; + operator ICRL* (); + + + ICRL* ReleasePointer(); + + CRL& operator= (const CRL& crl); + + ~CRL(); + private: + ICRL* mCRL; + }; + +}; // namespace act + +#endif + diff --git a/actlibrary/MacOSX-10.4-ppc/Release/include/actCertificate.h b/actlibrary/include/actCertificate.h similarity index 96% rename from actlibrary/MacOSX-10.4-ppc/Release/include/actCertificate.h rename to actlibrary/include/actCertificate.h index f8d063b..25cb9d6 100644 --- a/actlibrary/MacOSX-10.4-ppc/Release/include/actCertificate.h +++ b/actlibrary/include/actCertificate.h @@ -1,67 +1,67 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actCertificate.h -// Product: cv act library -// Purpose: The concrete class Certificate enables direct access to a certificate, -// e.g. its public key and the corresponding validity. -// -// Copyright: (c) 2000 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_Certificate_h -#define ACT_Certificate_h - -#include "actBasics.h" - -namespace act -{ - class IKey; - class Blob; - class ICertificate; - - class Certificate - { - public: - Certificate(); - Certificate(const char* type); - Certificate(const char* type, const Blob& certblob); - Certificate(const Certificate& cert); - - void SetParam(paramid_t id, const Blob& blob); - void SetParam(paramid_t id, int val); - void SetParam(paramid_t id, const char* cstr); - void GetParam(paramid_t id, Blob& blob) const; - int GetParam(paramid_t id) const; - - void Import(const Blob& certblob); - void Export(Blob& certblob) const; - - void SetPublicKey(const IKey* pubkey); - IKey* CreatePublicKey(const char* = 0) const; - - void Sign(const IKey* privkey); - int Verify(const IKey* pubkey) const; - - const ICertificate* GetPointer() const; - ICertificate* GetPointer(); - - operator const ICertificate*() const; - operator ICertificate*(); - - ICertificate* ReleasePointer(); - - Certificate& operator=(const Certificate& cert); - Certificate& Reset(ICertificate* cert); - Certificate& Required(const char* where = 0); - - ~Certificate(); - - private: - ICertificate* mCert; - }; - -}; // namespace act - -#endif // ACT_Certificate_h +////////////////////////////////////////////////////////////////////////////////// +// Name: actCertificate.h +// Product: cv act library +// Purpose: The concrete class Certificate enables direct access to a certificate, +// e.g. its public key and the corresponding validity. +// +// Copyright: (c) 2000 cv cryptovision GmbH +// all rights reserved +// Licence: The conditions for the use of this software are regulated +// in the cv act library licence agreement. +////////////////////////////////////////////////////////////////////////////////// + +#ifndef ACT_Certificate_h +#define ACT_Certificate_h + +#include "actBasics.h" + +namespace act +{ + class IKey; + class Blob; + class ICertificate; + + class Certificate + { + public: + Certificate(); + Certificate(const char* type); + Certificate(const char* type, const Blob& certblob); + Certificate(const Certificate& cert); + + void SetParam(paramid_t id, const Blob& blob); + void SetParam(paramid_t id, int val); + void SetParam(paramid_t id, const char* cstr); + void GetParam(paramid_t id, Blob& blob) const; + int GetParam(paramid_t id) const; + + void Import(const Blob& certblob); + void Export(Blob& certblob) const; + + void SetPublicKey(const IKey* pubkey); + IKey* CreatePublicKey(const char* = 0) const; + + void Sign(const IKey* privkey); + int Verify(const IKey* pubkey) const; + + const ICertificate* GetPointer() const; + ICertificate* GetPointer(); + + operator const ICertificate*() const; + operator ICertificate*(); + + ICertificate* ReleasePointer(); + + Certificate& operator=(const Certificate& cert); + Certificate& Reset(ICertificate* cert); + Certificate& Required(const char* where = 0); + + ~Certificate(); + + private: + ICertificate* mCert; + }; + +}; // namespace act + +#endif // ACT_Certificate_h diff --git a/actlibrary/MacOSX-10.6-x86_64/Release/include/actCertificateKit.h b/actlibrary/include/actCertificateKit.h similarity index 96% rename from actlibrary/MacOSX-10.6-x86_64/Release/include/actCertificateKit.h rename to actlibrary/include/actCertificateKit.h index 9387a39..e7980ec 100644 --- a/actlibrary/MacOSX-10.6-x86_64/Release/include/actCertificateKit.h +++ b/actlibrary/include/actCertificateKit.h @@ -1,28 +1,28 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actCertificateKit.h -// Product: cv act library -// Purpose: declaration of all factory functions -// -// Copyright: (c) 2000 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_CERTIFICATEKIT_H -#define ACT_CERTIFICATEKIT_H - -namespace act -{ - class ICertificate; - class ICRL; - class ICVCertRequest; - - ICertificate* CreateX509Certificate(); - ICRL* CreateX509CRL(); - - ICertificate* CreateCVCertificate(); - ICVCertRequest* CreateCVCertRequest(); -} -#endif - +////////////////////////////////////////////////////////////////////////////////// +// Name: actCertificateKit.h +// Product: cv act library +// Purpose: declaration of all factory functions +// +// Copyright: (c) 2000 cv cryptovision GmbH +// all rights reserved +// Licence: The conditions for the use of this software are regulated +// in the cv act library licence agreement. +////////////////////////////////////////////////////////////////////////////////// + +#ifndef ACT_CERTIFICATEKIT_H +#define ACT_CERTIFICATEKIT_H + +namespace act +{ + class ICertificate; + class ICRL; + class ICVCertRequest; + + ICertificate* CreateX509Certificate(); + ICRL* CreateX509CRL(); + + ICertificate* CreateCVCertificate(); + ICVCertRequest* CreateCVCertRequest(); +} +#endif + diff --git a/actlibrary/MacOSX-10.6-x86_64/Release/include/actCertificateReg.h b/actlibrary/include/actCertificateReg.h similarity index 96% rename from actlibrary/MacOSX-10.6-x86_64/Release/include/actCertificateReg.h rename to actlibrary/include/actCertificateReg.h index afd7a75..ae3fcaa 100644 --- a/actlibrary/MacOSX-10.6-x86_64/Release/include/actCertificateReg.h +++ b/actlibrary/include/actCertificateReg.h @@ -1,56 +1,56 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actCertificateReg.h -// Product: cv act library -// Purpose: -// -// Copyright: (c) 2000 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_CERTIFICATEREG_H -#define ACT_CERTIFICATEREG_H - -namespace act -{ - class ICertificate; - class ICRL; - - typedef ICertificate* (*CreateCertificatePtr)(); - typedef ICRL* (*CreateCRLPtr)(); - - struct CertificateMapEntry { - const char* Name; - CreateCertificatePtr CreatePtr; - }; - - struct CRLMapEntry { - const char* Name; - CreateCRLPtr CreatePtr; - }; - - class CertificateReg - { - public: - static ICertificate* CreateCertificate(const char* name); - static CreateCertificatePtr GetCreatePointer(const char* name); - static const char* GetName(void* createptr); - static const char* GetNextName(const char* name); - static void Insert(const char* name, CreateCertificatePtr createptr); - static void Insert(const CertificateMapEntry* certmap); - }; - - class CRLReg - { - public: - static ICRL* CreateCRL(const char* name); - static CreateCRLPtr GetCreatePointer(const char* name); - static const char* GetName(void* createptr); - static const char* GetNextName(const char* name); - static void Insert(const char* name, CreateCRLPtr createptr); - static void Insert(const CRLMapEntry* certmap); - }; -} -#endif - +////////////////////////////////////////////////////////////////////////////////// +// Name: actCertificateReg.h +// Product: cv act library +// Purpose: +// +// Copyright: (c) 2000 cv cryptovision GmbH +// all rights reserved +// Licence: The conditions for the use of this software are regulated +// in the cv act library licence agreement. +////////////////////////////////////////////////////////////////////////////////// + +#ifndef ACT_CERTIFICATEREG_H +#define ACT_CERTIFICATEREG_H + +namespace act +{ + class ICertificate; + class ICRL; + + typedef ICertificate* (*CreateCertificatePtr)(); + typedef ICRL* (*CreateCRLPtr)(); + + struct CertificateMapEntry { + const char* Name; + CreateCertificatePtr CreatePtr; + }; + + struct CRLMapEntry { + const char* Name; + CreateCRLPtr CreatePtr; + }; + + class CertificateReg + { + public: + static ICertificate* CreateCertificate(const char* name); + static CreateCertificatePtr GetCreatePointer(const char* name); + static const char* GetName(void* createptr); + static const char* GetNextName(const char* name); + static void Insert(const char* name, CreateCertificatePtr createptr); + static void Insert(const CertificateMapEntry* certmap); + }; + + class CRLReg + { + public: + static ICRL* CreateCRL(const char* name); + static CreateCRLPtr GetCreatePointer(const char* name); + static const char* GetName(void* createptr); + static const char* GetNextName(const char* name); + static void Insert(const char* name, CreateCRLPtr createptr); + static void Insert(const CRLMapEntry* certmap); + }; +} +#endif + diff --git a/actlibrary/MacOSX-10.6-x86_64/Release/include/actDate.h b/actlibrary/include/actDate.h similarity index 96% rename from actlibrary/MacOSX-10.6-x86_64/Release/include/actDate.h rename to actlibrary/include/actDate.h index 5d08c74..743baea 100644 --- a/actlibrary/MacOSX-10.6-x86_64/Release/include/actDate.h +++ b/actlibrary/include/actDate.h @@ -1,109 +1,109 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actDate.h -// Product: cv act library -// Purpose: The Date function used in act Library -// -// Copyright: (c) 2000 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_Date_h -#define ACT_Date_h - -#include "actBasics.h" - -#if defined(ACT_POSIX) -# include -#endif - -namespace act -{ - class Blob; - - class Date - { - public: - Date(); //today - Date(int day, int month ,int year); - Date(int day, int month, int year, int hour, int minute, int sec); - Date(const Blob& der); - - Date(const unsigned char* ch, const unsigned int size); - - Date& SetToday(); - - int GetDay() const { return m_day; } - int GetMonth() const { return m_month; } - int GetYear() const { return m_year; } - int GetHour() const { return m_hour; } - int GetMinute() const { return m_min; } - int GetSecond() const { return m_sec; } - - void IgnoreTime(bool b); // ignore time(hour, min,sec) in the operators - const Date& operator=(const Date&); - bool operator>(const Date&) const; - bool operator>=(const Date&) const; - bool operator<(const Date&) const; - bool operator<=(const Date&) const; - bool operator==(const Date&) const; - bool operator!=(const Date&) const; - - const Date& AddMonths(int m); - const Date& SubMonths(int m); - const Date& AddYears(int y); - const Date& SubYears(int y); - const Date& AddDays(int d); - const Date& SubDays(int d); - const Date& AddHours(int h); - const Date& SubHours(int h); - const Date& AddMinutes(int m); - const Date& SubMinutes(int m); - const Date& AddSecond(int m); - const Date& SubSecond(int m); - - int DayOfWeek() const; // 0:Sunday, 1=Monday ... 6=Saturday - int IsLeap(int y) const; // 1:leapyear, 0:else - int DaysPerMonth(int m, int y) const; - long GetDifference(const Date& d2) const; - - long GetJulian() const; - long GetJulian(int d, int m, int y) const; - void ConvertFromJulian(long jd, int& d, int& m, int& y); - - Blob Encode() const; - size_t Encode(Blob& encoded) const; - - Blob EncodeToGeneralizedTime() const; - Blob GetGeneralizedTimeString() const; - Blob GetLocalTimeString() const; // fixed format: "DD/MM/YYYY HH:MM:SS" - - operator Blob() const; - - int GetDayFromWeekDay (int weekday, int year, int month, int which); - -#if defined(ACT_POSIX) - static void copyDatetm(act::Date a, struct tm& b); - static void copytmDate(struct tm a, act::Date& b); -#endif - - private: - Date& SetYear(int year) { m_year = year; return *this; } - Date& SetMonth(int month) { m_month = month; return *this; } - Date& SetDay(int day) { m_day = day; return *this; } - Date& SetHour(int hour) { m_hour = hour; return *this; } - Date& SetMinute(int minute) { m_min = minute; return *this; } - Date& SetSecond(int sec) { m_sec = sec; return *this; } - bool IsValid() const; - void AdjustDays(); - - private: - int m_day, m_month, m_year; - int m_hour, m_min, m_sec; - bool m_ignore_time; - }; - -} // namespace act - -#endif // ACT_Date_h +////////////////////////////////////////////////////////////////////////////////// +// Name: actDate.h +// Product: cv act library +// Purpose: The Date function used in act Library +// +// Copyright: (c) 2000 cv cryptovision GmbH +// all rights reserved +// Licence: The conditions for the use of this software are regulated +// in the cv act library licence agreement. +////////////////////////////////////////////////////////////////////////////////// + +#ifndef ACT_Date_h +#define ACT_Date_h + +#include "actBasics.h" + +#if defined(ACT_POSIX) +# include +#endif + +namespace act +{ + class Blob; + + class Date + { + public: + Date(); //today + Date(int day, int month ,int year); + Date(int day, int month, int year, int hour, int minute, int sec); + Date(const Blob& der); + + Date(const unsigned char* ch, const unsigned int size); + + Date& SetToday(); + + int GetDay() const { return m_day; } + int GetMonth() const { return m_month; } + int GetYear() const { return m_year; } + int GetHour() const { return m_hour; } + int GetMinute() const { return m_min; } + int GetSecond() const { return m_sec; } + + void IgnoreTime(bool b); // ignore time(hour, min,sec) in the operators + const Date& operator=(const Date&); + bool operator>(const Date&) const; + bool operator>=(const Date&) const; + bool operator<(const Date&) const; + bool operator<=(const Date&) const; + bool operator==(const Date&) const; + bool operator!=(const Date&) const; + + const Date& AddMonths(int m); + const Date& SubMonths(int m); + const Date& AddYears(int y); + const Date& SubYears(int y); + const Date& AddDays(int d); + const Date& SubDays(int d); + const Date& AddHours(int h); + const Date& SubHours(int h); + const Date& AddMinutes(int m); + const Date& SubMinutes(int m); + const Date& AddSecond(int m); + const Date& SubSecond(int m); + + int DayOfWeek() const; // 0:Sunday, 1=Monday ... 6=Saturday + int IsLeap(int y) const; // 1:leapyear, 0:else + int DaysPerMonth(int m, int y) const; + long GetDifference(const Date& d2) const; + + long GetJulian() const; + long GetJulian(int d, int m, int y) const; + void ConvertFromJulian(long jd, int& d, int& m, int& y); + + Blob Encode() const; + size_t Encode(Blob& encoded) const; + + Blob EncodeToGeneralizedTime() const; + Blob GetGeneralizedTimeString() const; + Blob GetLocalTimeString() const; // fixed format: "DD/MM/YYYY HH:MM:SS" + + operator Blob() const; + + int GetDayFromWeekDay (int weekday, int year, int month, int which); + +#if defined(ACT_POSIX) + static void copyDatetm(act::Date a, struct tm& b); + static void copytmDate(struct tm a, act::Date& b); +#endif + + private: + Date& SetYear(int year) { m_year = year; return *this; } + Date& SetMonth(int month) { m_month = month; return *this; } + Date& SetDay(int day) { m_day = day; return *this; } + Date& SetHour(int hour) { m_hour = hour; return *this; } + Date& SetMinute(int minute) { m_min = minute; return *this; } + Date& SetSecond(int sec) { m_sec = sec; return *this; } + bool IsValid() const; + void AdjustDays(); + + private: + int m_day, m_month, m_year; + int m_hour, m_min, m_sec; + bool m_ignore_time; + }; + +} // namespace act + +#endif // ACT_Date_h diff --git a/actlibrary/MacOSX-10.4-ppc/Release/include/actDebug.h b/actlibrary/include/actDebug.h similarity index 95% rename from actlibrary/MacOSX-10.4-ppc/Release/include/actDebug.h rename to actlibrary/include/actDebug.h index 623c00a..0c0eabf 100644 --- a/actlibrary/MacOSX-10.4-ppc/Release/include/actDebug.h +++ b/actlibrary/include/actDebug.h @@ -1,295 +1,295 @@ -////////////////////////////////////////////////////////////////////////// -// Name: actDebug.h -// Product: cv act library -// Purpose: Integration of globally available debug macros and functions -// -// Copyright: (c) 2005 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -// -// Autor: Markus Tesche (MTE) -// Date: 12/15/2005 -////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_Debug_h -#define ACT_Debug_h - -#include "actEnv.h" -#include "actBasics.h" -#include "actException.h" - -// -// ACT_NOOP use for semicolon terminated non operating macros. -#ifdef _MSC_VER -# if _MSC_VER >= 1210 -# define ACT_NOOP __noop -# else -# define ACT_NOOP ((void) 0) -# endif -// MSVC specific -# if !defined(DEBUG_NEW) -# if defined(_DEBUG) && !defined(_WIN32_WCE) -# include -# define DEBUG_NEW new(_NORMAL_BLOCK, __FILE__, __LINE__) -# else -# define DEBUG_NEW new -# endif -# endif -#else -# define ACT_NOOP ((void) 0) -# define DEBUG_NEW new -#endif - -// -// Declare all debug macros for release builds. -#ifdef _DEBUG -# ifdef UNDER_CE -# define ACT_ASSERT ACT_NOOP -# define ACT_ASSERT_ALWAYS(m, l, f) ACT_NOOP -# endif -# define ACT_DEBUG 1 -# define ACT_DEBUG_PARAM(p) p -# define ACT_DEBUG_SOURCE() act::FileAndLine(__FILE__, __LINE__) -# define ACT_NOT_IMPLEMENTED(m, w) throw act::NotImplementedException(m, w) << ACT_DEBUG_SOURCE() -#else -# define ACT_DEBUG 0 -# define ACT_DEBUG_SOURCE() act::FileAndLine() -# define ACT_NOT_IMPLEMENTED(m, w) throw act::NotImplementedException(m, w) -# if defined(_MSC_VER) && _MSC_VER < 1210 -# define ACT_DEBUG_PARAM(p) p -# define ACT_TRACE ACT_NOOP -# define ACT_TRACELOG ACT_NOOP -# define ACT_ASSERT ACT_NOOP -# else -# define ACT_DEBUG_PARAM(p) -# define ACT_TRACE(...) ACT_NOOP -# define ACT_TRACELOG(...) ACT_NOOP -# define ACT_ASSERT(e) ACT_NOOP -# endif -# define ACT_ASSERT_ALWAYS(m, l, f) ACT_NOOP -# define ACT_ASSERT_ON_THROW(m) ACT_NOOP -#endif // _DEBUG - -// -// ACT_ASSERT -#ifndef ACT_ASSERT -# if defined(_MSC_VER) -# include -# define ACT_ASSERT _ASSERTE -# else -# include -# define ACT_ASSERT assert -# endif -#endif // ACT_ASSERT - -// -// ACT_ASSERT_ALWAYS -#ifndef ACT_ASSERT_ALWAYS -# if defined(_MSC_VER) -# include -# define ACT_ASSERT_ALWAYS(m, f, l) _RPT_BASE((_CRT_ASSERT, f, l, 0, m)) -# else -# include -# define ACT_ASSERT_ALWAYS(m, f, l) assert(f == 0) -# endif -#endif // ACT_ASSERT_ALWAYS - -// -// ACT_ASSERT_ON_THROW -#ifndef ACT_ASSERT_ON_THROW -namespace act -{ - class CheckForNoThrow : public FileAndLine - { - public: - CheckForNoThrow(const char* msg, const char* file = 0, int line = 0) - : FileAndLine(file, line) - , m_msg(msg) - { } - - ~CheckForNoThrow() - { - const bool uc = ::std::uncaught_exception(); - if(uc == true) ACT_ASSERT_ALWAYS(m_msg, file(), line()); - } - - private: - const char* m_msg; - }; - -} // namespace act - -#define ACT_ASSERT_ON_THROW(m) act::CheckForNoThrow __dbg_check_for_nothrow(m, __FILE__, __LINE__) -#endif // ACT_ASSERT_ON_THROW - -// -// ACT_ENABLE_TRACE -#ifdef ACT_ENABLE_TRACE -# ifdef ACT_TRACE -# undef ACT_TRACE -# endif -# ifdef ACT_TRACELOG -# undef ACT_TRACELOG -# endif -#endif - -// -// ACT_TRACE -#ifndef ACT_TRACE - -#ifndef ACT_TRACE_BUFFER -#define ACT_TRACE_BUFFER 1024 -#endif - -#include -#include -#include - -#if defined(ACT_WIN32) || defined(ACT_WIN32_WCE) -#include - -namespace act -{ - struct Trace - { - void __cdecl operator()(const char* pFormat, va_list ptr, const char* pFileName = 0, int nLine = 0) const - { - char szBuf[ACT_TRACE_BUFFER] = {'\0'}; - int nLen = 0; - - if(pFileName != 0) { - int nTemp = _snprintf(szBuf + nLen, ACT_TRACE_BUFFER - nLen, "%s(%d) : ", pFileName, nLine); - if(nTemp < 0) - nLen = ACT_TRACE_BUFFER; - else nLen += nTemp; - } - - _vsnprintf(szBuf + nLen, ACT_TRACE_BUFFER - nLen, pFormat, ptr); - szBuf[ACT_TRACE_BUFFER - 1] = 0; -#ifndef UNDER_CE - ::OutputDebugStringA(szBuf); -#else - { - wchar_t wtmp[ACT_TRACE_BUFFER]; - mbstowcs(wtmp, szBuf, ACT_TRACE_BUFFER); - ::OutputDebugStringW(wtmp); - } -#endif - } - }; - -} // namespace act - -#elif defined(ACT_POSIX) -#include - -namespace act -{ - struct Trace - { - void operator()(const char* pFormat, va_list ptr, const char* pFileName = 0, int nLine = 0) const - { - char szBuf[ACT_TRACE_BUFFER] = {'\0'}; - int nLen = 0; - - if(pFileName != 0) { - int nTemp = snprintf(szBuf + nLen, ACT_TRACE_BUFFER - nLen, "%s(%d) : ", pFileName, nLine); - if(nTemp < 0) - nLen = ACT_TRACE_BUFFER; - else nLen += nTemp; - } - - vsnprintf(szBuf + nLen, ACT_TRACE_BUFFER - nLen, pFormat, ptr); - szBuf[ACT_TRACE_BUFFER - 1] = 0; - - syslog(LOG_DEBUG, "%s", szBuf); - } - }; - -} // namespace act - -#else -# error act::Trace not implemented for this platform - -#endif - -// -// act::TraceFileAndLine -namespace act -{ - class TraceFileAndLine : public FileAndLine - { - public: - TraceFileAndLine() { } - TraceFileAndLine(const FileAndLine& fl) : FileAndLine(fl) { } - TraceFileAndLine(const char * file, int line) : FileAndLine(file, line) { } - - inline void setFileAndLine(const FileAndLine* fl) - { - if(fl != 0) *static_cast(this) = *fl; - } - - inline TraceFileAndLine& operator<<(const FileAndLine& fl) - { - *static_cast(this) = fl; - return *this; - } - - // - // default va_list based trace. - void operator()(const char* pFormat, ...) - { - va_list ptr; va_start(ptr, pFormat); - Trace()(pFormat, ptr, file(), line()); - va_end(ptr); - } - - // - // Exception trace. - void operator()(const Exception& e) - { - setFileAndLine(dynamic_cast(&e)); - switch(e.GetId()) - { - case eiNoSuchAlgorithmException: - (*this)("%s['0x%08x', '%&s', '%s', '%s']\n", - typeid(e).name(), - static_cast(e).algorithm(), - e.code(), e.what(), e.where()); - break; - - default: - (*this)("%s['0x%08x', '%s', '%s']\n", - typeid(e).name(), e.code(), e.what(), e.where()); - } - } - - void operator()(const Exception& e, const char* pName) - { - setFileAndLine(dynamic_cast(&e)); - switch(e.GetId()) - { - case eiNoSuchAlgorithmException: - (*this)("%s : %s['0x%08x', '%s', '%s', '%s']\n", pName, - typeid(e).name(), - e.code(), - static_cast(e).algorithm(), - e.what(), e.where()); - break; - - default: - (*this)("%s : %s['0x%08x', '%s', '%s']\n", pName, - typeid(e).name(), - e.code(), e.what(), e.where()); - } - } - }; - -} // namespace act - -#define ACT_TRACE act::TraceFileAndLine(__FILE__, __LINE__) -#define ACT_TRACELOG act::TraceFileAndLine() - -#endif // ACT_TRACE -#endif // ACT_Debug_h +////////////////////////////////////////////////////////////////////////// +// Name: actDebug.h +// Product: cv act library +// Purpose: Integration of globally available debug macros and functions +// +// Copyright: (c) 2005 cv cryptovision GmbH +// all rights reserved +// Licence: The conditions for the use of this software are regulated +// in the cv act library licence agreement. +// +// Autor: Markus Tesche (MTE) +// Date: 12/15/2005 +////////////////////////////////////////////////////////////////////////// + +#ifndef ACT_Debug_h +#define ACT_Debug_h + +#include "actEnv.h" +#include "actBasics.h" +#include "actException.h" + +// +// ACT_NOOP use for semicolon terminated non operating macros. +#ifdef _MSC_VER +# if _MSC_VER >= 1210 +# define ACT_NOOP __noop +# else +# define ACT_NOOP ((void) 0) +# endif +// MSVC specific +# if !defined(DEBUG_NEW) +# if defined(_DEBUG) && !defined(_WIN32_WCE) +# include +# define DEBUG_NEW new(_NORMAL_BLOCK, __FILE__, __LINE__) +# else +# define DEBUG_NEW new +# endif +# endif +#else +# define ACT_NOOP ((void) 0) +# define DEBUG_NEW new +#endif + +// +// Declare all debug macros for release builds. +#ifdef _DEBUG +# ifdef UNDER_CE +# define ACT_ASSERT ACT_NOOP +# define ACT_ASSERT_ALWAYS(m, l, f) ACT_NOOP +# endif +# define ACT_DEBUG 1 +# define ACT_DEBUG_PARAM(p) p +# define ACT_DEBUG_SOURCE() act::FileAndLine(__FILE__, __LINE__) +# define ACT_NOT_IMPLEMENTED(m, w) throw act::NotImplementedException(m, w) << ACT_DEBUG_SOURCE() +#else +# define ACT_DEBUG 0 +# define ACT_DEBUG_SOURCE() act::FileAndLine() +# define ACT_NOT_IMPLEMENTED(m, w) throw act::NotImplementedException(m, w) +# if defined(_MSC_VER) && _MSC_VER < 1210 +# define ACT_DEBUG_PARAM(p) p +# define ACT_TRACE ACT_NOOP +# define ACT_TRACELOG ACT_NOOP +# define ACT_ASSERT ACT_NOOP +# else +# define ACT_DEBUG_PARAM(p) +# define ACT_TRACE(...) ACT_NOOP +# define ACT_TRACELOG(...) ACT_NOOP +# define ACT_ASSERT(e) ACT_NOOP +# endif +# define ACT_ASSERT_ALWAYS(m, l, f) ACT_NOOP +# define ACT_ASSERT_ON_THROW(m) ACT_NOOP +#endif // _DEBUG + +// +// ACT_ASSERT +#ifndef ACT_ASSERT +# if defined(_MSC_VER) +# include +# define ACT_ASSERT _ASSERTE +# else +# include +# define ACT_ASSERT assert +# endif +#endif // ACT_ASSERT + +// +// ACT_ASSERT_ALWAYS +#ifndef ACT_ASSERT_ALWAYS +# if defined(_MSC_VER) +# include +# define ACT_ASSERT_ALWAYS(m, f, l) _RPT_BASE((_CRT_ASSERT, f, l, 0, m)) +# else +# include +# define ACT_ASSERT_ALWAYS(m, f, l) assert(f == 0) +# endif +#endif // ACT_ASSERT_ALWAYS + +// +// ACT_ASSERT_ON_THROW +#ifndef ACT_ASSERT_ON_THROW +namespace act +{ + class CheckForNoThrow : public FileAndLine + { + public: + CheckForNoThrow(const char* msg, const char* file = 0, int line = 0) + : FileAndLine(file, line) + , m_msg(msg) + { } + + ~CheckForNoThrow() + { + const bool uc = ::std::uncaught_exception(); + if(uc == true) ACT_ASSERT_ALWAYS(m_msg, file(), line()); + } + + private: + const char* m_msg; + }; + +} // namespace act + +#define ACT_ASSERT_ON_THROW(m) act::CheckForNoThrow __dbg_check_for_nothrow(m, __FILE__, __LINE__) +#endif // ACT_ASSERT_ON_THROW + +// +// ACT_ENABLE_TRACE +#ifdef ACT_ENABLE_TRACE +# ifdef ACT_TRACE +# undef ACT_TRACE +# endif +# ifdef ACT_TRACELOG +# undef ACT_TRACELOG +# endif +#endif + +// +// ACT_TRACE +#ifndef ACT_TRACE + +#ifndef ACT_TRACE_BUFFER +#define ACT_TRACE_BUFFER 1024 +#endif + +#include +#include +#include + +#if defined(ACT_WIN32) || defined(ACT_WIN32_WCE) +#include + +namespace act +{ + struct Trace + { + void __cdecl operator()(const char* pFormat, va_list ptr, const char* pFileName = 0, int nLine = 0) const + { + char szBuf[ACT_TRACE_BUFFER] = {'\0'}; + int nLen = 0; + + if(pFileName != 0) { + int nTemp = _snprintf(szBuf + nLen, ACT_TRACE_BUFFER - nLen, "%s(%d) : ", pFileName, nLine); + if(nTemp < 0) + nLen = ACT_TRACE_BUFFER; + else nLen += nTemp; + } + + _vsnprintf(szBuf + nLen, ACT_TRACE_BUFFER - nLen, pFormat, ptr); + szBuf[ACT_TRACE_BUFFER - 1] = 0; +#ifndef UNDER_CE + ::OutputDebugStringA(szBuf); +#else + { + wchar_t wtmp[ACT_TRACE_BUFFER]; + mbstowcs(wtmp, szBuf, ACT_TRACE_BUFFER); + ::OutputDebugStringW(wtmp); + } +#endif + } + }; + +} // namespace act + +#elif defined(ACT_POSIX) +#include + +namespace act +{ + struct Trace + { + void operator()(const char* pFormat, va_list ptr, const char* pFileName = 0, int nLine = 0) const + { + char szBuf[ACT_TRACE_BUFFER] = {'\0'}; + int nLen = 0; + + if(pFileName != 0) { + int nTemp = snprintf(szBuf + nLen, ACT_TRACE_BUFFER - nLen, "%s(%d) : ", pFileName, nLine); + if(nTemp < 0) + nLen = ACT_TRACE_BUFFER; + else nLen += nTemp; + } + + vsnprintf(szBuf + nLen, ACT_TRACE_BUFFER - nLen, pFormat, ptr); + szBuf[ACT_TRACE_BUFFER - 1] = 0; + + syslog(LOG_DEBUG, "%s", szBuf); + } + }; + +} // namespace act + +#else +# error act::Trace not implemented for this platform + +#endif + +// +// act::TraceFileAndLine +namespace act +{ + class TraceFileAndLine : public FileAndLine + { + public: + TraceFileAndLine() { } + TraceFileAndLine(const FileAndLine& fl) : FileAndLine(fl) { } + TraceFileAndLine(const char * file, int line) : FileAndLine(file, line) { } + + inline void setFileAndLine(const FileAndLine* fl) + { + if(fl != 0) *static_cast(this) = *fl; + } + + inline TraceFileAndLine& operator<<(const FileAndLine& fl) + { + *static_cast(this) = fl; + return *this; + } + + // + // default va_list based trace. + void operator()(const char* pFormat, ...) + { + va_list ptr; va_start(ptr, pFormat); + Trace()(pFormat, ptr, file(), line()); + va_end(ptr); + } + + // + // Exception trace. + void operator()(const Exception& e) + { + setFileAndLine(dynamic_cast(&e)); + switch(e.GetId()) + { + case eiNoSuchAlgorithmException: + (*this)("%s['0x%08x', '%&s', '%s', '%s']\n", + typeid(e).name(), + static_cast(e).algorithm(), + e.code(), e.what(), e.where()); + break; + + default: + (*this)("%s['0x%08x', '%s', '%s']\n", + typeid(e).name(), e.code(), e.what(), e.where()); + } + } + + void operator()(const Exception& e, const char* pName) + { + setFileAndLine(dynamic_cast(&e)); + switch(e.GetId()) + { + case eiNoSuchAlgorithmException: + (*this)("%s : %s['0x%08x', '%s', '%s', '%s']\n", pName, + typeid(e).name(), + e.code(), + static_cast(e).algorithm(), + e.what(), e.where()); + break; + + default: + (*this)("%s : %s['0x%08x', '%s', '%s']\n", pName, + typeid(e).name(), + e.code(), e.what(), e.where()); + } + } + }; + +} // namespace act + +#define ACT_TRACE act::TraceFileAndLine(__FILE__, __LINE__) +#define ACT_TRACELOG act::TraceFileAndLine() + +#endif // ACT_TRACE +#endif // ACT_Debug_h diff --git a/actlibrary/MacOSX-10.5-x86_64/Release/include/actDefaultRNG.h b/actlibrary/include/actDefaultRNG.h similarity index 96% rename from actlibrary/MacOSX-10.5-x86_64/Release/include/actDefaultRNG.h rename to actlibrary/include/actDefaultRNG.h index 6d44af6..7c3b463 100644 --- a/actlibrary/MacOSX-10.5-x86_64/Release/include/actDefaultRNG.h +++ b/actlibrary/include/actDefaultRNG.h @@ -1,24 +1,24 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actDefaultRNG.h -// Product: cv act library -// Purpose: actDefaultRNG.h provides defaults for the class IRNGAlg. -// -// Copyright: (c) 2000 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_DefaultRNG_h -#define ACT_DefaultRNG_h -namespace act -{ - class IRNGAlg; - typedef IRNGAlg* (*CreateRNGPtr)(); - - extern CreateRNGPtr CreateFastRNG; - extern CreateRNGPtr CreateStrongRNG; -} - -#endif - +////////////////////////////////////////////////////////////////////////////////// +// Name: actDefaultRNG.h +// Product: cv act library +// Purpose: actDefaultRNG.h provides defaults for the class IRNGAlg. +// +// Copyright: (c) 2000 cv cryptovision GmbH +// all rights reserved +// Licence: The conditions for the use of this software are regulated +// in the cv act library licence agreement. +////////////////////////////////////////////////////////////////////////////////// + +#ifndef ACT_DefaultRNG_h +#define ACT_DefaultRNG_h +namespace act +{ + class IRNGAlg; + typedef IRNGAlg* (*CreateRNGPtr)(); + + extern CreateRNGPtr CreateFastRNG; + extern CreateRNGPtr CreateStrongRNG; +} + +#endif + diff --git a/actlibrary/MacOSX-10.4-ppc/Release/include/actDerivatorKit.h b/actlibrary/include/actDerivatorKit.h similarity index 96% rename from actlibrary/MacOSX-10.4-ppc/Release/include/actDerivatorKit.h rename to actlibrary/include/actDerivatorKit.h index 8339d09..57b9e07 100644 --- a/actlibrary/MacOSX-10.4-ppc/Release/include/actDerivatorKit.h +++ b/actlibrary/include/actDerivatorKit.h @@ -1,27 +1,27 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actDerivatorKit.h -// Product: cv act library -// Purpose: declaration of all factory functions -// -// Copyright: (c) 2006 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_DerivatorKit_h -#define ACT_DerivatorKit_h - -namespace act -{ - class IDerivator; - class Blob; - - IDerivator* CreateKDF1(); - IDerivator* CreateX963KDF(); - IDerivator* CreatePBKDF1(); - IDerivator* CreatePBKDF2(); - IDerivator* CreateEACKDF(); -} -#endif - +////////////////////////////////////////////////////////////////////////////////// +// Name: actDerivatorKit.h +// Product: cv act library +// Purpose: declaration of all factory functions +// +// Copyright: (c) 2006 cv cryptovision GmbH +// all rights reserved +// Licence: The conditions for the use of this software are regulated +// in the cv act library licence agreement. +////////////////////////////////////////////////////////////////////////////////// + +#ifndef ACT_DerivatorKit_h +#define ACT_DerivatorKit_h + +namespace act +{ + class IDerivator; + class Blob; + + IDerivator* CreateKDF1(); + IDerivator* CreateX963KDF(); + IDerivator* CreatePBKDF1(); + IDerivator* CreatePBKDF2(); + IDerivator* CreateEACKDF(); +} +#endif + diff --git a/actlibrary/MacOSX-10.6-x86_64/Release/include/actDerivatorReg.h b/actlibrary/include/actDerivatorReg.h similarity index 96% rename from actlibrary/MacOSX-10.6-x86_64/Release/include/actDerivatorReg.h rename to actlibrary/include/actDerivatorReg.h index 32fe672..2e7207d 100644 --- a/actlibrary/MacOSX-10.6-x86_64/Release/include/actDerivatorReg.h +++ b/actlibrary/include/actDerivatorReg.h @@ -1,41 +1,41 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actDerivatorReg.h -// Product: cv act library -// Purpose: registry for the factory functions in actDerivatorKit.h -// -// Copyright: (c) 2000 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_DerivatorReg_h -#define ACT_DerivatorReg_h - -namespace act -{ - class IDerivator; - class Blob; - - typedef IDerivator* (*CreateDerivatorPtr)(); - - struct DerivatorMapEntry - { - const char* Name; - CreateDerivatorPtr CreatePtr; - }; - - class DerivatorReg - { - public: - static IDerivator* CreateDerivator(const char* name); - static CreateDerivatorPtr GetCreatePointer(const char* name); - static const char* GetName(void* createptr); - static const char* GetNextName(const char* name); - static void Insert(const char* name, CreateDerivatorPtr createptr); - static void Insert(const DerivatorMapEntry* derivatormap); - }; - -} // namespace act - -#endif // ACT_DerivatorReg_h +////////////////////////////////////////////////////////////////////////////////// +// Name: actDerivatorReg.h +// Product: cv act library +// Purpose: registry for the factory functions in actDerivatorKit.h +// +// Copyright: (c) 2000 cv cryptovision GmbH +// all rights reserved +// Licence: The conditions for the use of this software are regulated +// in the cv act library licence agreement. +////////////////////////////////////////////////////////////////////////////////// + +#ifndef ACT_DerivatorReg_h +#define ACT_DerivatorReg_h + +namespace act +{ + class IDerivator; + class Blob; + + typedef IDerivator* (*CreateDerivatorPtr)(); + + struct DerivatorMapEntry + { + const char* Name; + CreateDerivatorPtr CreatePtr; + }; + + class DerivatorReg + { + public: + static IDerivator* CreateDerivator(const char* name); + static CreateDerivatorPtr GetCreatePointer(const char* name); + static const char* GetName(void* createptr); + static const char* GetNextName(const char* name); + static void Insert(const char* name, CreateDerivatorPtr createptr); + static void Insert(const DerivatorMapEntry* derivatormap); + }; + +} // namespace act + +#endif // ACT_DerivatorReg_h diff --git a/actlibrary/MacOSX-10.4-ppc/Release/include/actEMSAKit.h b/actlibrary/include/actEMSAKit.h similarity index 96% rename from actlibrary/MacOSX-10.4-ppc/Release/include/actEMSAKit.h rename to actlibrary/include/actEMSAKit.h index 460f614..db9c14e 100644 --- a/actlibrary/MacOSX-10.4-ppc/Release/include/actEMSAKit.h +++ b/actlibrary/include/actEMSAKit.h @@ -1,28 +1,28 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actEMSAKit.h -// Product: cv act library -// Purpose: declaration of all factory functions -// -// Copyright: (c) 2000 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_EMSAKit_h -#define ACT_EMSAKit_h - -namespace act -{ - class IEMSAAlg; - - IEMSAAlg* CreateEMSA1(); - IEMSAAlg* CreatePKCS1V1_5EMSA(); - IEMSAAlg* CreateTLS_EMSA(); - IEMSAAlg* CreatePKCS1_PSS_EMSA(); - - IEMSAAlg* CreateDummyEMSA(); - -} -#endif - +////////////////////////////////////////////////////////////////////////////////// +// Name: actEMSAKit.h +// Product: cv act library +// Purpose: declaration of all factory functions +// +// Copyright: (c) 2000 cv cryptovision GmbH +// all rights reserved +// Licence: The conditions for the use of this software are regulated +// in the cv act library licence agreement. +////////////////////////////////////////////////////////////////////////////////// + +#ifndef ACT_EMSAKit_h +#define ACT_EMSAKit_h + +namespace act +{ + class IEMSAAlg; + + IEMSAAlg* CreateEMSA1(); + IEMSAAlg* CreatePKCS1V1_5EMSA(); + IEMSAAlg* CreateTLS_EMSA(); + IEMSAAlg* CreatePKCS1_PSS_EMSA(); + + IEMSAAlg* CreateDummyEMSA(); + +} +#endif + diff --git a/actlibrary/MacOSX-10.6-x86_64/Release/include/actEMSAReg.h b/actlibrary/include/actEMSAReg.h similarity index 96% rename from actlibrary/MacOSX-10.6-x86_64/Release/include/actEMSAReg.h rename to actlibrary/include/actEMSAReg.h index c5e92f0..ee5e062 100644 --- a/actlibrary/MacOSX-10.6-x86_64/Release/include/actEMSAReg.h +++ b/actlibrary/include/actEMSAReg.h @@ -1,40 +1,40 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actEMSAReg.h -// Product: cv act library -// Purpose: registry for factory functions in actEMSAKit.h -// -// Copyright: (c) 2000 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_EMSAReg_h -#define ACT_EMSAReg_h - -namespace act -{ - class IEMSAAlg; - - typedef IEMSAAlg* (*CreateEMSAPtr)(); - - struct EMSAMapEntry - { - const char* Name; - CreateEMSAPtr CreatePtr; - }; - - class EMSAReg - { - public: - static IEMSAAlg* CreateEMSAAlg(const char* name); - static CreateEMSAPtr GetCreatePointer(const char* name); - static const char* GetName(void* createptr); - static const char* GetNextName(const char* name); - static void Insert(const char* name, CreateEMSAPtr createptr); - static void Insert(const EMSAMapEntry* map); - }; - -} // namespace act - -#endif // ACT_EMSAReg_h +////////////////////////////////////////////////////////////////////////////////// +// Name: actEMSAReg.h +// Product: cv act library +// Purpose: registry for factory functions in actEMSAKit.h +// +// Copyright: (c) 2000 cv cryptovision GmbH +// all rights reserved +// Licence: The conditions for the use of this software are regulated +// in the cv act library licence agreement. +////////////////////////////////////////////////////////////////////////////////// + +#ifndef ACT_EMSAReg_h +#define ACT_EMSAReg_h + +namespace act +{ + class IEMSAAlg; + + typedef IEMSAAlg* (*CreateEMSAPtr)(); + + struct EMSAMapEntry + { + const char* Name; + CreateEMSAPtr CreatePtr; + }; + + class EMSAReg + { + public: + static IEMSAAlg* CreateEMSAAlg(const char* name); + static CreateEMSAPtr GetCreatePointer(const char* name); + static const char* GetName(void* createptr); + static const char* GetNextName(const char* name); + static void Insert(const char* name, CreateEMSAPtr createptr); + static void Insert(const EMSAMapEntry* map); + }; + +} // namespace act + +#endif // ACT_EMSAReg_h diff --git a/actlibrary/MacOSX-10.4-ppc/Release/include/actEnv.h b/actlibrary/include/actEnv.h similarity index 95% rename from actlibrary/MacOSX-10.4-ppc/Release/include/actEnv.h rename to actlibrary/include/actEnv.h index 6a319b8..504fe8c 100644 --- a/actlibrary/MacOSX-10.4-ppc/Release/include/actEnv.h +++ b/actlibrary/include/actEnv.h @@ -1,126 +1,126 @@ -////////////////////////////////////////////////////////////////////////// -// Name: actEnv.h -// Product: cv act library -// Purpose: Operating System environment -// -// Copyright: (c) 2009 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -// -// Autor: Markus Tesche -// Date: 04/23/2009 -////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_Env_h -#define ACT_Env_h - -// 64Bit detection ... -#if defined(_WIN64) || \ - defined(__LP64__) || \ - defined(__alpha__) || \ - defined(__ia64__) || \ - defined(__ppc64__) || \ - defined(__s390x__) || \ - defined(__x86_64__) -# define ACT_64 -#endif - -// cygwin -#if defined(__CYGWIN__) -# define ACT_CYGWIN -#endif - -// mingw -#if defined(__MINGW32__) -# define ACT_MINGW -#endif - -// Platform detection ... -#if defined(ACT_WIN32) || \ - defined(ACT_POSIX) || \ - defined(ACT_SOLARIS) || \ - defined(ACT_MACOSX) || \ - defined(ACT_WIN32_WCE) -// do nothing - -#elif defined(_WIN32_WCE) && _WIN32_WCE >= 0x500 -# define ACT_WIN32 -# define ACT_WIN32_WCE - -#elif defined(WIN32) && !defined(__CYGWIN__) -# define ACT_WIN32 - -#elif defined(_MSC_VER) || \ - defined(__BORLANDC__) || \ - defined(__BCPLUSPLUS__) || \ - defined(__MINGW32__) -# define ACT_WIN32 - -#elif defined(__linux__) || \ - defined(__CYGWIN__) || \ - defined(__FreeBSD__) || defined(__NetBSD__) || defined(__OpenBSD__) || \ - defined(__hpux) || \ - defined(__sgi) -# define ACT_POSIX - -#elif defined(_POSIX_SOURCE) || \ - defined(_XOPEN_SOURCE) -# define ACT_POSIX - -#elif defined(__sun) -# define ACT_POSIX -# define ACT_SOLARIS - -#elif defined(__APPLE__) && defined(__MACH__) -# define ACT_POSIX -# define ACT_MACOSX - -#else -# error unable to deteced system environment - -#endif - -// -// ACT_DEPRECATED definition -#if defined(_MSC_VER) -# define ACT_MSC -# if _MSC_FULL_VER >= 140050320 -# define ACT_DEPRECATED(msg) __declspec(deprecated("is deprecated: " msg)) -# else -# define ACT_DEPRECATED(msg) __declspec(deprecated) -# endif -# define ACT_STDEXT_NS std -# define ACT_STDEXT_INC(file) - -#elif defined(__GNUC__) -# define ACT_GCC -# if (__GNUC__ > 3) || (__GNUC__ == 3 && __GNUC_MINOR__ >= 1) -# define ACT_DEPRECATED(msg) __attribute__((__deprecated__)) -# endif -# define ACT_STDEXT_NS __gnu_cxx -# define ACT_STDEXT_INC(file) - -#endif - -#if !defined(ACT_DEPRECATED) -# define ACT_DEPRECATED(msg) -#endif - -// -// DLL/Shared Object symbol export/import attribte -#if defined(ACT_MSC) -# define ACT_DYNLIB_EXPORT _declspec(dllexport) -# define ACT_DYNLIB_IMPORT _declspec(dllimport) - -#elif defined(ACT_GCC) && !defined(ACT_MINGW) -# define ACT_DYNLIB_EXPORT __attribute__((visibility("default"))) -# define ACT_DYNLIB_IMPORT - -#else -# define ACT_DYNLIB_EXPORT -# define ACT_DYNLIB_IMPORT - -#endif - -#endif // ACT_Env_h +////////////////////////////////////////////////////////////////////////// +// Name: actEnv.h +// Product: cv act library +// Purpose: Operating System environment +// +// Copyright: (c) 2009 cv cryptovision GmbH +// all rights reserved +// Licence: The conditions for the use of this software are regulated +// in the cv act library licence agreement. +// +// Autor: Markus Tesche +// Date: 04/23/2009 +////////////////////////////////////////////////////////////////////////// + +#ifndef ACT_Env_h +#define ACT_Env_h + +// 64Bit detection ... +#if defined(_WIN64) || \ + defined(__LP64__) || \ + defined(__alpha__) || \ + defined(__ia64__) || \ + defined(__ppc64__) || \ + defined(__s390x__) || \ + defined(__x86_64__) +# define ACT_64 +#endif + +// cygwin +#if defined(__CYGWIN__) +# define ACT_CYGWIN +#endif + +// mingw +#if defined(__MINGW32__) +# define ACT_MINGW +#endif + +// Platform detection ... +#if defined(ACT_WIN32) || \ + defined(ACT_POSIX) || \ + defined(ACT_SOLARIS) || \ + defined(ACT_MACOSX) || \ + defined(ACT_WIN32_WCE) +// do nothing + +#elif defined(_WIN32_WCE) && _WIN32_WCE >= 0x500 +# define ACT_WIN32 +# define ACT_WIN32_WCE + +#elif defined(WIN32) && !defined(__CYGWIN__) +# define ACT_WIN32 + +#elif defined(_MSC_VER) || \ + defined(__BORLANDC__) || \ + defined(__BCPLUSPLUS__) || \ + defined(__MINGW32__) +# define ACT_WIN32 + +#elif defined(__linux__) || \ + defined(__CYGWIN__) || \ + defined(__FreeBSD__) || defined(__NetBSD__) || defined(__OpenBSD__) || \ + defined(__hpux) || \ + defined(__sgi) +# define ACT_POSIX + +#elif defined(_POSIX_SOURCE) || \ + defined(_XOPEN_SOURCE) +# define ACT_POSIX + +#elif defined(__sun) +# define ACT_POSIX +# define ACT_SOLARIS + +#elif defined(__APPLE__) && defined(__MACH__) +# define ACT_POSIX +# define ACT_MACOSX + +#else +# error unable to deteced system environment + +#endif + +// +// ACT_DEPRECATED definition +#if defined(_MSC_VER) +# define ACT_MSC +# if _MSC_FULL_VER >= 140050320 +# define ACT_DEPRECATED(msg) __declspec(deprecated("is deprecated: " msg)) +# else +# define ACT_DEPRECATED(msg) __declspec(deprecated) +# endif +# define ACT_STDEXT_NS std +# define ACT_STDEXT_INC(file) + +#elif defined(__GNUC__) +# define ACT_GCC +# if (__GNUC__ > 3) || (__GNUC__ == 3 && __GNUC_MINOR__ >= 1) +# define ACT_DEPRECATED(msg) __attribute__((__deprecated__)) +# endif +# define ACT_STDEXT_NS __gnu_cxx +# define ACT_STDEXT_INC(file) + +#endif + +#if !defined(ACT_DEPRECATED) +# define ACT_DEPRECATED(msg) +#endif + +// +// DLL/Shared Object symbol export/import attribte +#if defined(ACT_MSC) +# define ACT_DYNLIB_EXPORT _declspec(dllexport) +# define ACT_DYNLIB_IMPORT _declspec(dllimport) + +#elif defined(ACT_GCC) && !defined(ACT_MINGW) +# define ACT_DYNLIB_EXPORT __attribute__((visibility("default"))) +# define ACT_DYNLIB_IMPORT + +#else +# define ACT_DYNLIB_EXPORT +# define ACT_DYNLIB_IMPORT + +#endif + +#endif // ACT_Env_h diff --git a/actlibrary/MacOSX-10.4-ppc/Release/include/actException.h b/actlibrary/include/actException.h similarity index 97% rename from actlibrary/MacOSX-10.4-ppc/Release/include/actException.h rename to actlibrary/include/actException.h index caa9636..5ab518e 100644 --- a/actlibrary/MacOSX-10.4-ppc/Release/include/actException.h +++ b/actlibrary/include/actException.h @@ -1,1112 +1,1112 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actException.h -// Product: cv act library -// Purpose: exception hierarchy -// -// Copyright: (c) 2000 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_Exception_h -#define ACT_Exception_h - -#include -#include - -#include "actMove.h" -#include "actBlob.h" - -namespace act -{ - // --------------------------------------------------------------------------- - enum ExceptionId - { - eiException = 0, - eiBadException = eiException + 1, - eiNullPointerException, - eiOutOfRangeException, - - eiBadCastException = eiException + 10, - eiBadNumericCast, - eiNegativeOverflow, - eiPositiveOverflow, - - eiRuntimeException = eiException + 20, - eiBadAllocException, - eiNotSupportedException, - eiNotImplementedException, - eiInvalidParameterException, - eiSynchronizationException, - - eiLogicalException = eiException + 40, - eiASN1Exception, - eiNoSuchDLLException, - eiPasswordException, - eiArithmeticException, - eiMessageDigestException, - eiPaddingException, - eiSignatureException, - - eiAlgorithmException = eiException + 80, - eiInvalidAlgorithmParameterException, - eiNoSuchAlgorithmException, - - eiCertificateException = eiException + 80, - eiInvalidCertificateException, - eiCertificateEncodingException, - eiCertificateExpiredException, - eiCertificateNotYetValidException, - eiCertificateParsingException, - - eiKeyException = eiException + 100, - eiInvalidKeyException, - eiKeyManagementException, - - eiEACException = eiException + 120, - eiEACDataException, - eiEACMRZException, - eiEACCVCertException, - - eiSmartcardException = eiException + 140, - eiCardOutOfMemoryException, - eiInvalidPinException, - eiPinLockedException, - eiPinExpiredException, - eiPinLenRangeException, - eiInvalidCRKeyException, - eiInvalidCardException, - eiInvalidAuthException, - eiInvalidAuthObjectException, - eiAuthProtocolException, - eiAuthConstrainedException, - eiSecureMessagingException, - eiSMWrapException, - eiSMUnwrapException, - - eiSubsystemException = eiException + 180, - eiNoSuchSubsystemException, - }; - -#ifndef UNDER_CE_30 - - // --------------------------------------------------------------------------- - class FileAndLine - { - public: - FileAndLine(const char* file = 0, int line = 0) - : m_line(line) - , m_file(file) - { } - - FileAndLine(const FileAndLine& other) - : m_line(other.line()) - , m_file(other.file()) - { } - - int line() const { return m_line; } - const char* file() const { return m_file; } - - // assignment operators. - FileAndLine& operator=(const FileAndLine& other) - { - m_line = other.line(); - m_file = other.file(); - return *this; - } - - private: - int m_line; - const char* m_file; - }; - - // - // base class for all exceptions thrown by cv act library - // --------------------------------------------------------------------------- - class Exception - { - public: - typedef Exception Type; - - explicit Exception(const char* msg = 0, const char* where = 0, ulong code = 0) - : m_what(msg) - , m_where(where) - , m_code(code) - { } - - explicit Exception(const std::exception& other) - : m_what(other.what()) - , m_where(0) - , m_code(0) - { } - - template - explicit Exception(const T& other) - : m_what(other.what()) - , m_where(other.where()) - , m_code(0) - { } - - virtual ~Exception() - { } - - template - _ExceptionT* TypedClone() const - { - return new(std::nothrow) _ExceptionT(m_what, m_where, m_code); - } - - template - _ExceptionT* TypedClone(const ParamT& param) const - { - return new(std::nothrow) _ExceptionT(m_what, m_where, param); - } - - template - void TypedThrow() const { throw _ExceptionT(m_what, m_where, m_code); } - - template - void TypedThrow(const ParamT& param) const { throw _ExceptionT(m_what, m_where, param); } - - virtual Exception* Clone() const { return new(std::nothrow) Exception(*this); } - virtual int GetId() const { return eiException; } - virtual void Throw() const { throw Exception(*this); } - - const char* what() const { return m_what != 0 ? m_what : ""; } - const char* where() const { return m_where != 0 ? m_where : ""; } - ulong code() const { return m_code; } - - template - friend ExceptionT& modify(ExceptionT& e, const char* what, const char* where) - { - if(what != 0) e.m_what = what; - if(where != 0) e.m_where = where; - return e; - } - - protected: - const char* m_what; - const char* m_where; - ulong m_code; - }; - - // - // ExceptionType<> - // --------------------------------------------------------------------------- - template - < - const int _exceptionId, - class ExceptionT, - class BaseT, - typename OtherT = void - > - class ExceptionType : public BaseT, public OtherT - { - protected: - typedef BaseT BaseType; - typedef OtherT OtherType; - enum { exceptionId = _exceptionId }; - - public: - ExceptionType(const char* msg, const char* where, ulong code) - : BaseType(msg, where, code) - , OtherT() - { } - - ExceptionT& operator<<(const OtherType& other) - { - *static_cast(this) = other; - return *static_cast(this); - } - - template - _ExceptionT* TypedClone() const - { - _ExceptionT* e = new(std::nothrow) _ExceptionT(BaseT::m_what, BaseT::m_where, BaseT::m_code); - if(e != 0) *e << *this; - return e; - } - - virtual void Throw() const { throw ExceptionT(BaseT::m_what, BaseT::m_where, BaseT::m_code); } - virtual int GetId() const { return exceptionId; } - }; - - template - < - const int _exceptionId, - class ExceptionT, - class BaseT - > - class ExceptionType<_exceptionId, ExceptionT, BaseT, void> : public BaseT - { - protected: - typedef BaseT BaseType; - enum { exceptionId = _exceptionId }; - - public: - ExceptionType(const char* msg, const char* where, ulong code) - : BaseType(msg, where, code) - { } - - virtual void Throw() const { throw ExceptionT(BaseT::m_what, BaseT::m_where, BaseT::m_code); } - virtual int GetId() const { return exceptionId; } - }; - - // --------------------------------------------------------------------------- - class BadException : - public ExceptionType - { - public: - typedef ExceptionType BaseType; - typedef BadException Type; - using BaseType::exceptionId; - - BadException(const char* msg = 0, const char* where = 0, ulong code = 0) - : BaseType(msg, where, code) - { } - }; - - class NullPointerException : - public ExceptionType - { - public: - typedef ExceptionType BaseType; - typedef NullPointerException Type; - using BaseType::exceptionId; - - NullPointerException(const char* msg = 0, const char* where = 0, ulong code = 0) - : BaseType(msg, where, code) - { } - }; - - class OutOfRangeException : - public ExceptionType - { - public: - typedef ExceptionType BaseType; - typedef OutOfRangeException Type; - using BaseType::exceptionId; - - OutOfRangeException(const char* msg = 0, const char* where = 0, ulong code = 0) - : BaseType(msg, where, code) - { } - }; - - // --------------------------------------------------------------------------- - class BadCastException : - public ExceptionType - { - public: - typedef ExceptionType BaseType; - typedef BadCastException Type; - using BaseType::exceptionId; - - BadCastException(const char* msg = 0, const char* where = 0, ulong code = 0) - : BaseType(msg, where, code) - { } - }; - - class BadNumericCast : - public ExceptionType - { - public: - typedef ExceptionType BaseType; - typedef BadNumericCast Type; - using BaseType::exceptionId; - - BadNumericCast(const char* msg = 0, const char* where = 0, ulong code = 0) - : BaseType(msg, where, code) - { } - - template - void operator()(overflow_type overflow) - { - switch(eiBadNumericCast + overflow) - { - case eiNegativeOverflow: TypedThrow >(); - case eiPositiveOverflow: TypedThrow >(); - default: /* do nothing */; - } - } - }; - - // --------------------------------------------------------------------------- - class RuntimeException : - public ExceptionType - { - public: - typedef ExceptionType BaseType; - typedef RuntimeException Type; - using BaseType::exceptionId; - - RuntimeException(const char* msg = 0, const char* where = 0, ulong code = 0) - : BaseType(msg, where, code) - { } - }; - - class BadAllocException : - public ExceptionType - { - public: - typedef ExceptionType BaseType; - typedef BadAllocException Type; - using BaseType::exceptionId; - - BadAllocException(const char* msg = 0, const char* where = 0, ulong code = 0) - : BaseType(msg, where, code) - { } - }; - - class NotSupportedException : - public ExceptionType - { - public: - typedef ExceptionType BaseType; - typedef NotSupportedException Type; - using BaseType::exceptionId; - using BaseType::operator<<; - - explicit NotSupportedException(const char* msg = 0, const char* where = 0, ulong code = 0) - : BaseType(msg, where, code) - { } - - virtual Type* Clone() const { return TypedClone(); } - }; - - class NotImplementedException : - public ExceptionType - { - public: - typedef ExceptionType BaseType; - typedef NotImplementedException Type; - using BaseType::exceptionId; - using BaseType::operator<<; - - NotImplementedException(const char* msg = 0, const char* where = 0, ulong code = 0) - : BaseType(msg, where, code) - { } - - virtual Type* Clone() const { return TypedClone(); } - }; - - class InvalidParameterException : - public ExceptionType - { - public: - typedef ExceptionType BaseType; - typedef InvalidParameterException Type; - using BaseType::exceptionId; - using BaseType::operator<<; - - InvalidParameterException(const char* msg = 0, const char* where = 0, ulong code = 0) - : BaseType(msg, where, code) - { } - - virtual Type* Clone() const { return TypedClone(); } - }; - - class SynchronizationException : - public ExceptionType - { - public: - typedef ExceptionType BaseType; - typedef SynchronizationException Type; - using BaseType::exceptionId; - using BaseType::operator<<; - - SynchronizationException(const char* msg = 0, const char* where = 0, ulong code = 0) - : BaseType(msg, where, code) - { } - - virtual Type* Clone() const { return TypedClone(); } - }; - - // --------------------------------------------------------------------------- - class LogicalException : public Exception - { - public: - typedef Exception BaseType; - typedef LogicalException Type; - - LogicalException(const char* msg = 0, const char* where = 0, ulong code = 0) - : Exception(msg, where, code) - { } - - virtual Type* Clone() const { return TypedClone(); } - virtual void Throw() const { throw Type(m_what, m_where, m_code); } - virtual int GetId() const { return eiLogicalException; } - }; - - class ASN1Exception : public LogicalException - { - public: - typedef LogicalException BaseType; - typedef ASN1Exception Type; - - ASN1Exception(const char* msg = 0, const char* where = 0, ulong code = 0) - : LogicalException(msg, where, code) - { } - - virtual Type* Clone() const { return TypedClone(); } - virtual void Throw() const { throw Type(m_what, m_where, m_code); } - virtual int GetId() const { return eiASN1Exception; } - }; - - class NoSuchDLLException : public LogicalException - { - public: - typedef LogicalException BaseType; - typedef NoSuchDLLException Type; - - NoSuchDLLException(const char* msg = 0, const char* where = 0, ulong code = 0) - : LogicalException(msg, where, code) - { } - - virtual Type* Clone() const { return TypedClone(); } - virtual void Throw() const { throw Type(m_what, m_where, m_code); } - virtual int GetId() const { return eiNoSuchDLLException; } - }; - - class PasswordException : public LogicalException - { - public: - typedef LogicalException BaseType; - typedef PasswordException Type; - - PasswordException(const char* msg = 0, const char* where = 0, ulong code = 0) - : LogicalException(msg, where, code) - { } - - virtual Type* Clone() const { return TypedClone(); } - virtual void Throw() const { throw Type(m_what, m_where, m_code); } - virtual int GetId() const { return eiPasswordException; } - }; - - class ArithmeticException : public LogicalException - { - public: - typedef LogicalException BaseType; - typedef ArithmeticException Type; - - ArithmeticException(const char* msg = 0, const char* where = 0, ulong code = 0) - : LogicalException(msg, where, code) - { } - - virtual Type* Clone() const { return TypedClone(); } - virtual void Throw() const { throw Type(m_what, m_where, m_code); } - virtual int GetId() const { return eiArithmeticException; } - }; - - class MessageDigestException : public LogicalException - { - public: - typedef LogicalException BaseType; - typedef MessageDigestException Type; - - MessageDigestException(const char* msg = 0, const char* where = 0, ulong code = 0) - : LogicalException(msg, where, code) - { } - - virtual Type* Clone() const { return TypedClone(); } - virtual void Throw() const { throw Type(m_what, m_where, m_code); } - virtual int GetId() const { return eiMessageDigestException; } - }; - - class PaddingException : public LogicalException - { - public: - typedef LogicalException BaseType; - typedef PaddingException Type; - - PaddingException(const char* msg = 0, const char* where = 0, ulong code = 0) - : LogicalException(msg, where, code) - { } - - virtual Type* Clone() const { return TypedClone(); } - virtual void Throw() const { throw Type(m_what, m_where, m_code); } - virtual int GetId() const { return eiPaddingException; } - }; - - class SignatureException : public LogicalException - { - public: - typedef LogicalException BaseType; - typedef SignatureException Type; - - SignatureException(const char* msg = 0, const char* where = 0, ulong code = 0) - : LogicalException(msg, where, code) - { } - - virtual Type* Clone() const { return TypedClone(); } - virtual void Throw() const { throw Type(m_what, m_where, m_code); } - virtual int GetId() const { return eiSignatureException; } - }; - - // --------------------------------------------------------------------------- - class AlgorithmException : public LogicalException - { - public: - typedef LogicalException BaseType; - typedef AlgorithmException Type; - - AlgorithmException(const char* msg = 0, const char* where = 0, ulong code = 0) - : LogicalException(msg, where, code) - { } - - virtual Type* Clone() const { return TypedClone(); } - virtual void Throw() const { throw Type(m_what, m_where, m_code); } - virtual int GetId() const { return eiAlgorithmException; } - }; - - class InvalidAlgorithmParameterException : public AlgorithmException - { - public: - typedef AlgorithmException BaseType; - typedef InvalidAlgorithmParameterException Type; - - InvalidAlgorithmParameterException(const char* msg = 0, const char* where = 0, ulong code = 0) - : AlgorithmException(msg, where, code) - { } - - virtual Type* Clone() const { return TypedClone(); } - virtual void Throw() const { throw Type(m_what, m_where, m_code); } - virtual int GetId() const { return eiInvalidAlgorithmParameterException; } - }; - - class NoSuchAlgorithmException : public AlgorithmException - { - public: - typedef AlgorithmException BaseType; - typedef NoSuchAlgorithmException Type; - - NoSuchAlgorithmException(const char* msg = 0, const char* where = 0, const char* algorithm = 0) - : AlgorithmException(msg, where) - , m_algorithm(algorithm) - { - m_algorithm.push_back(0); - } - - // GCC 4.2.1 whats to have it - virtual ~NoSuchAlgorithmException() - { } - - virtual Type* Clone() const { return TypedClone(algorithm()); } - virtual void Throw() const { throw Type(m_what, m_where, algorithm()); } - virtual int GetId() const { return eiNoSuchAlgorithmException; } - - const char* algorithm() const { return reinterpret_cast(&m_algorithm[0]); } - - protected: - mutable Blob m_algorithm; - }; - - // --------------------------------------------------------------------------- - class CertificateException : public LogicalException - { - public: - typedef LogicalException BaseType; - typedef CertificateException Type; - - CertificateException(const char* msg = 0, const char* where = 0, ulong code = 0) - : LogicalException(msg, where, code) - { } - - virtual Type* Clone() const { return TypedClone(); } - virtual void Throw() const { throw Type(m_what, m_where, m_code); } - virtual int GetId() const { return eiCertificateException; } - }; - - class InvalidCertificateException : public CertificateException - { - public: - typedef CertificateException BaseType; - typedef InvalidCertificateException Type; - - InvalidCertificateException(const char* msg = 0, const char* where = 0, ulong code = 0) - : CertificateException(msg, where, code) - { } - - virtual Type* Clone() const { return TypedClone(); } - virtual void Throw() const { throw Type(m_what, m_where, m_code); } - virtual int GetId() const { return eiInvalidCertificateException; } - }; - - class CertificateEncodingException : public CertificateException - { - public: - typedef CertificateException BaseType; - typedef CertificateEncodingException Type; - - CertificateEncodingException(const char* msg = 0, const char* where = 0, ulong code = 0) - : CertificateException(msg, where, code) - { } - - virtual Type* Clone() const { return TypedClone(); } - virtual void Throw() const { throw Type(m_what, m_where, m_code); } - virtual int GetId() const { return eiCertificateEncodingException; } - }; - - class CertificateExpiredException : public CertificateException - { - public: - typedef CertificateException BaseType; - typedef CertificateExpiredException Type; - - CertificateExpiredException(const char* msg = 0, const char* where = 0, ulong code = 0) - : CertificateException(msg, where, code) - { } - - virtual Type* Clone() const { return TypedClone(); } - virtual void Throw() const { throw Type(m_what, m_where, m_code); } - virtual int GetId() const { return eiCertificateExpiredException; } - }; - - class CertificateNotYetValidException : public CertificateException - { - public: - typedef CertificateException BaseType; - typedef CertificateNotYetValidException Type; - - CertificateNotYetValidException(const char* msg = 0, const char* where = 0, ulong code = 0) - : CertificateException(msg, where, code) - { } - - virtual Type* Clone() const { return TypedClone(); } - virtual void Throw() const { throw Type(m_what, m_where, m_code); } - virtual int GetId() const { return eiCertificateNotYetValidException; } - }; - - class CertificateParsingException : public CertificateException - { - public: - typedef CertificateException BaseType; - typedef CertificateParsingException Type; - - CertificateParsingException(const char* msg = 0, const char* where = 0, ulong code = 0) - : CertificateException(msg, where, code) - { } - - virtual Type* Clone() const { return TypedClone(); } - virtual void Throw() const { throw Type(m_what, m_where, m_code); } - virtual int GetId() const { return eiCertificateParsingException; } - }; - - // --------------------------------------------------------------------------- - class KeyException : public LogicalException - { - public: - typedef LogicalException BaseType; - typedef KeyException Type; - - KeyException(const char* msg = 0, const char* where = 0, ulong code = 0) - : LogicalException(msg, where, code) - { } - - virtual Type* Clone() const { return TypedClone(); } - virtual void Throw() const { throw Type(m_what, m_where, m_code); } - virtual int GetId() const { return eiKeyException; } - }; - - class InvalidKeyException : public KeyException - { - public: - typedef KeyException BaseType; - typedef InvalidKeyException Type; - - InvalidKeyException(const char* msg = 0, const char* where = 0, ulong code = 0) - : KeyException(msg, where, code) - { } - - virtual Type* Clone() const { return TypedClone(); } - virtual void Throw() const { throw Type(m_what, m_where, m_code); } - virtual int GetId() const { return eiInvalidKeyException; } - }; - - class KeyManagementException : public KeyException - { - public: - typedef KeyException BaseType; - typedef KeyManagementException Type; - - KeyManagementException(const char* msg = 0, const char* where = 0, ulong code = 0) - : KeyException(msg, where, code) - { } - - virtual Type* Clone() const { return TypedClone(); } - virtual void Throw() const { throw Type(m_what, m_where, m_code); } - virtual int GetId() const { return eiKeyManagementException; } - }; - - // --------------------------------------------------------------------------- - class EACException : public LogicalException - { - public: - typedef LogicalException BaseType; - typedef EACException Type; - - EACException(const char* msg = 0, const char* where = 0, ulong code = 0) - : LogicalException(msg, where, code) - { } - - virtual Type* Clone() const { return TypedClone(); } - virtual void Throw() const { throw Type(m_what, m_where, m_code); } - virtual int GetId() const { return eiEACException; } - }; - - class EACDataException : public EACException - { - public: - typedef EACException BaseType; - typedef EACDataException Type; - - EACDataException(const char* msg = 0, const char* where = 0, ulong code = 0) - : EACException(msg, where, code) - { } - - virtual Type* Clone() const { return TypedClone(); } - virtual void Throw() const { throw Type(m_what, m_where, m_code); } - virtual int GetId() const { return eiEACDataException; } - }; - - class EACMRZException : public EACDataException - { - public: - typedef EACDataException BaseType; - typedef EACMRZException Type; - - EACMRZException(const char* msg = 0, const char* where = 0, ulong code = 0) - : EACDataException(msg, where, code) - { } - - virtual Type* Clone() const { return TypedClone(); } - virtual void Throw() const { throw Type(m_what, m_where, m_code); } - virtual int GetId() const { return eiEACMRZException; } - }; - - class EACCVCertException : public EACDataException - { - public: - typedef EACDataException BaseType; - typedef EACCVCertException Type; - - EACCVCertException(const char* msg = 0, const char* where = 0, ulong code = 0) - : EACDataException(msg, where, code) - { } - - virtual Type* Clone() const { return TypedClone(); } - virtual void Throw() const { throw Type(m_what, m_where, m_code); } - virtual int GetId() const { return eiEACCVCertException; } - }; - - // --------------------------------------------------------------------------- - class SmartcardException : public LogicalException - { - public: - typedef LogicalException BaseType; - typedef SmartcardException Type; - - SmartcardException(const char* msg = 0, const char* where = 0, ulong code = 0) - : LogicalException(msg, where, code) - { } - - virtual Type* Clone() const { return TypedClone(); } - virtual void Throw() const { throw Type(m_what, m_where, m_code); } - virtual int GetId() const { return eiSmartcardException; } - }; - - class CardOutOfMemoryException : public SmartcardException - { - public: - typedef SmartcardException BaseType; - typedef CardOutOfMemoryException Type; - - CardOutOfMemoryException(const char* msg = 0, const char* where = 0, ulong code = 0) - : SmartcardException(msg, where, code) - { } - - virtual Type* Clone() const { return TypedClone(); } - virtual void Throw() const { throw Type(m_what, m_where, m_code); } - virtual int GetId() const { return eiCardOutOfMemoryException; } - }; - - class InvalidPinException : public SmartcardException - { - public: - typedef SmartcardException BaseType; - typedef InvalidPinException Type; - - InvalidPinException(const char* msg = 0, const char* where = 0, ulong code = 0) - : SmartcardException(msg, where, code) - { } - - virtual Type* Clone() const { return TypedClone(); } - virtual void Throw() const { throw Type(m_what, m_where, m_code); } - virtual int GetId() const { return eiInvalidPinException; } - }; - - class PinLockedException : public SmartcardException - { - public: - typedef SmartcardException BaseType; - typedef PinLockedException Type; - - PinLockedException(const char* msg = 0, const char* where = 0, ulong code = 0) - : SmartcardException(msg, where, code) - { } - - virtual Type* Clone() const { return TypedClone(); } - virtual void Throw() const { throw Type(m_what, m_where, m_code); } - virtual int GetId() const { return eiPinLockedException; } - }; - - class PinExpiredException : public SmartcardException - { - public: - typedef SmartcardException BaseType; - typedef PinExpiredException Type; - - PinExpiredException(const char* msg = 0, const char* where = 0, ulong code = 0) - : SmartcardException(msg, where, code) - { } - - virtual Type* Clone() const { return TypedClone(); } - virtual void Throw() const { throw Type(m_what, m_where, m_code); } - virtual int GetId() const { return eiPinExpiredException; } - }; - - class PinLenRangeException : public SmartcardException - { - public: - typedef SmartcardException BaseType; - typedef PinLenRangeException Type; - - PinLenRangeException(const char* msg = 0, const char* where = 0, ulong code = 0) - : SmartcardException(msg, where, code) - { } - - virtual Type* Clone() const { return TypedClone(); } - virtual void Throw() const { throw Type(m_what, m_where, m_code); } - virtual int GetId() const { return eiPinLenRangeException; } - }; - - class InvalidCRKeyException : public SmartcardException - { - public: - typedef SmartcardException BaseType; - typedef InvalidCRKeyException Type; - - InvalidCRKeyException(const char* msg = 0, const char* where = 0, ulong code = 0) - : SmartcardException(msg, where, code) - { } - - virtual Type* Clone() const { return TypedClone(); } - virtual void Throw() const { throw Type(m_what, m_where, m_code); } - virtual int GetId() const { return eiInvalidCRKeyException; } - }; - - class InvalidCardException : public SmartcardException - { - public: - typedef SmartcardException BaseType; - typedef InvalidCardException Type; - - InvalidCardException(const char* msg = 0, const char* where = 0, ulong code = 0) - : SmartcardException(msg, where, code) - { } - - virtual Type* Clone() const { return TypedClone(); } - virtual void Throw() const { throw Type(m_what, m_where, m_code); } - virtual int GetId() const { return eiInvalidCardException; } - }; - - class InvalidAuthException : public SmartcardException - { - public: - typedef SmartcardException BaseType; - typedef InvalidAuthException Type; - - InvalidAuthException(const char* msg = 0, const char* where = 0, ulong code = 0) - : SmartcardException(msg, where, code) - { } - - virtual Type* Clone() const { return TypedClone(); } - virtual void Throw() const { throw Type(m_what, m_where, m_code); } - virtual int GetId() const { return eiInvalidAuthException; } - }; - - class InvalidAuthObjectException : public SmartcardException - { - public: - typedef SmartcardException BaseType; - typedef InvalidAuthObjectException Type; - - InvalidAuthObjectException(const char* msg = 0, const char* where = 0, ulong code = 0) - : SmartcardException(msg, where, code) - { } - - virtual Type* Clone() const { return TypedClone(); } - virtual void Throw() const { throw Type(m_what, m_where, m_code); } - virtual int GetId() const { return eiInvalidAuthObjectException; } - }; - - class AuthProtocolException : public SmartcardException - { - public: - typedef SmartcardException BaseType; - typedef AuthProtocolException Type; - - AuthProtocolException(const char* msg = 0, const char* where = 0, ulong code = 0) - : SmartcardException(msg, where, code) - { } - - virtual Type* Clone() const { return TypedClone(); } - virtual void Throw() const { throw Type(m_what, m_where, m_code); } - virtual int GetId() const { return eiAuthProtocolException; } - }; - - class AuthConstrainedException : public SmartcardException - { - public: - typedef SmartcardException BaseType; - typedef AuthConstrainedException Type; - - AuthConstrainedException(const char* msg = 0, const char* where = 0, ulong code = 0) - : SmartcardException(msg, where, code) - { } - - virtual Type* Clone() const { return TypedClone(); } - virtual void Throw() const { throw Type(m_what, m_where, m_code); } - virtual int GetId() const { return eiAuthConstrainedException; } - }; - - class SecureMessagingException : public SmartcardException - { - public: - typedef SmartcardException BaseType; - typedef SecureMessagingException Type; - - SecureMessagingException(const char* msg = 0, const char* where = 0, ulong code = 0) - : SmartcardException(msg, where, code) - { } - - virtual Type* Clone() const { return TypedClone(); } - virtual void Throw() const { throw Type(m_what, m_where, m_code); } - virtual int GetId() const { return eiSecureMessagingException; } - }; - - class SMWrapException : public SecureMessagingException - { - public: - typedef SecureMessagingException BaseType; - typedef SMWrapException Type; - - SMWrapException(const char* msg = 0, const char* where = 0, ulong code = 0) - : SecureMessagingException(msg, where, code) - { } - - virtual Type* Clone() const { return TypedClone(); } - virtual void Throw() const { throw Type(m_what, m_where, m_code); } - virtual int GetId() const { return eiSMWrapException; } - }; - - class SMUnwrapException : public SecureMessagingException - { - public: - typedef SecureMessagingException BaseType; - typedef SMUnwrapException Type; - - SMUnwrapException(const char* msg = 0, const char* where = 0, ulong code = 0) - : SecureMessagingException(msg, where, code) - { } - - virtual Type* Clone() const { return TypedClone(); } - virtual void Throw() const { throw Type(m_what, m_where, m_code); } - virtual int GetId() const { return eiSMUnwrapException; } - }; - - // --------------------------------------------------------------------------- - class SubsystemException : public LogicalException - { - public: - typedef LogicalException BaseType; - typedef SubsystemException Type; - - SubsystemException(const char* msg = 0, const char* where = 0, ulong code = 0) - : LogicalException(msg, where, code) - { } - - virtual Type* Clone() const { return TypedClone(); } - virtual void Throw() const { throw Type(m_what, m_where, m_code); } - virtual int GetId() const { return eiSubsystemException; } - }; - - class NoSuchSubsystemException : public SubsystemException - { - public: - typedef SubsystemException BaseType; - typedef NoSuchSubsystemException Type; - - NoSuchSubsystemException(const char* msg = 0, const char* where = 0, ulong code = 0) - : SubsystemException(msg, where, code) - { } - - virtual Type* Clone() const { return TypedClone(); } - virtual void Throw() const { throw Type(m_what, m_where, m_code); } - virtual int GetId() const { return eiNoSuchSubsystemException; } - }; - -#else - - #define throw(_x) _exit(_x) - - int Exception(const char* msg = 0, const char* where = 0, ulong code = 0); - int BadException(const char* msg = 0, const char* where = 0, ulong code = 0); - int NullPointerException(const char* msg = 0, const char* where = 0, ulong code = 0); - int OutOfRangeException(const char* msg = 0, const char* where = 0, ulong code = 0); - int BadCastException(const char* msg = 0, const char* where = 0, ulong code = 0); - int BadNumericCast(const char* msg = 0, const char* where = 0, ulong code = 0); - int RuntimeException(const char* msg = 0, const char* where = 0, ulong code = 0); - int BadAllocException(const char* msg = 0, const char* where = 0, ulong code = 0); - int NotSupportedException(const char* msg = 0, const char* where = 0, ulong code = 0); - int NotImplementedException(const char* msg = 0, const char* where = 0, ulong code = 0); - int InvalidParameterException(const char* msg = 0, const char* where = 0, ulong code = 0); - int SynchronizationException(const char* msg = 0, const char* where = 0, ulong code = 0); - int LogicalException(const char* msg = 0, const char* where = 0, ulong code = 0); - int AlgorithmException(const char* msg = 0, const char* where = 0, ulong code = 0); - int InvalidAlgorithmParameterException(const char* msg = 0, const char* where = 0, ulong code = 0); - int NoSuchAlgorithmException(const char* msg = 0, const char* where = 0, const char* algorithm); - int ArithmeticException(const char* msg = 0, const char* where = 0, ulong code = 0); - int CertificateException(const char* msg = 0, const char* where = 0, ulong code = 0); - int CertificateEncodingException(const char* msg = 0, const char* where = 0, ulong code = 0); - int CertificateExpiredException(const char* msg = 0, const char* where = 0, ulong code = 0); - int CertificateNotYetValidException(const char* msg = 0, const char* where = 0, ulong code = 0); - int CertificateParsingException(const char* msg = 0, const char* where = 0, ulong code = 0); - int KeyException(const char* msg = 0, const char* where = 0, ulong code = 0); - int InvalidKeyException(const char* msg = 0, const char* where = 0, ulong code = 0); - int KeyManagementException(const char* msg = 0, const char* where = 0, ulong code = 0); - int MessageDigestException(const char* msg = 0, const char* where = 0, ulong code = 0); - int PaddingException(const char* msg = 0, const char* where = 0, ulong code = 0); - int SignatureException(const char* msg = 0, const char* where = 0, ulong code = 0); - int EACException(const char* msg = 0, const char* where = 0, ulong code = 0); - int EACDataException(const char* msg = 0, const char* where = 0, ulong code = 0); - int EACMRZException(const char* msg = 0, const char* where = 0, ulong code = 0); - int EACCVCertException(const char* msg = 0, const char* where = 0, ulong code = 0); - int SmartcardException(const char* msg = 0, const char* where = 0, ulong code = 0); - int CardOutOfMemoryException(const char* msg = 0, const char* where = 0, ulong code = 0); - int InvalidPinException(const char* msg = 0, const char* where = 0, ulong code = 0); - int InvalidCardException(const char* msg = 0, const char* where = 0, ulong code = 0); - int InvalidAuthObjectException(const char* msg = 0, const char* where = 0, ulong code = 0); - int AuthProtocolException(const char* msg = 0, const char* where = 0, ulong code = 0); - int AuthConstrainedException(const char* msg = 0, const char* where = 0, ulong code = 0); - int SecureMessagingException(const char* msg = 0, const char* where = 0, ulong code = 0); - int SMWrapException(const char* msg = 0, const char* where = 0, ulong code = 0); - int SMUnwrapException(const char* msg = 0, const char* where = 0, ulong code = 0); - int SubsystemException(const char* msg = 0, const char* where = 0, ulong code = 0); - int NoSuchSubsystemException(const char* msg = 0, const char* where = 0, ulong code = 0); - -#endif // UNDER_CE_30 - -}// namespace act - -#endif // ACT_Exception_h +////////////////////////////////////////////////////////////////////////////////// +// Name: actException.h +// Product: cv act library +// Purpose: exception hierarchy +// +// Copyright: (c) 2000 cv cryptovision GmbH +// all rights reserved +// Licence: The conditions for the use of this software are regulated +// in the cv act library licence agreement. +////////////////////////////////////////////////////////////////////////////////// + +#ifndef ACT_Exception_h +#define ACT_Exception_h + +#include +#include + +#include "actMove.h" +#include "actBlob.h" + +namespace act +{ + // --------------------------------------------------------------------------- + enum ExceptionId + { + eiException = 0, + eiBadException = eiException + 1, + eiNullPointerException, + eiOutOfRangeException, + + eiBadCastException = eiException + 10, + eiBadNumericCast, + eiNegativeOverflow, + eiPositiveOverflow, + + eiRuntimeException = eiException + 20, + eiBadAllocException, + eiNotSupportedException, + eiNotImplementedException, + eiInvalidParameterException, + eiSynchronizationException, + + eiLogicalException = eiException + 40, + eiASN1Exception, + eiNoSuchDLLException, + eiPasswordException, + eiArithmeticException, + eiMessageDigestException, + eiPaddingException, + eiSignatureException, + + eiAlgorithmException = eiException + 80, + eiInvalidAlgorithmParameterException, + eiNoSuchAlgorithmException, + + eiCertificateException = eiException + 80, + eiInvalidCertificateException, + eiCertificateEncodingException, + eiCertificateExpiredException, + eiCertificateNotYetValidException, + eiCertificateParsingException, + + eiKeyException = eiException + 100, + eiInvalidKeyException, + eiKeyManagementException, + + eiEACException = eiException + 120, + eiEACDataException, + eiEACMRZException, + eiEACCVCertException, + + eiSmartcardException = eiException + 140, + eiCardOutOfMemoryException, + eiInvalidPinException, + eiPinLockedException, + eiPinExpiredException, + eiPinLenRangeException, + eiInvalidCRKeyException, + eiInvalidCardException, + eiInvalidAuthException, + eiInvalidAuthObjectException, + eiAuthProtocolException, + eiAuthConstrainedException, + eiSecureMessagingException, + eiSMWrapException, + eiSMUnwrapException, + + eiSubsystemException = eiException + 180, + eiNoSuchSubsystemException, + }; + +#ifndef UNDER_CE_30 + + // --------------------------------------------------------------------------- + class FileAndLine + { + public: + FileAndLine(const char* file = 0, int line = 0) + : m_line(line) + , m_file(file) + { } + + FileAndLine(const FileAndLine& other) + : m_line(other.line()) + , m_file(other.file()) + { } + + int line() const { return m_line; } + const char* file() const { return m_file; } + + // assignment operators. + FileAndLine& operator=(const FileAndLine& other) + { + m_line = other.line(); + m_file = other.file(); + return *this; + } + + private: + int m_line; + const char* m_file; + }; + + // + // base class for all exceptions thrown by cv act library + // --------------------------------------------------------------------------- + class Exception + { + public: + typedef Exception Type; + + explicit Exception(const char* msg = 0, const char* where = 0, ulong code = 0) + : m_what(msg) + , m_where(where) + , m_code(code) + { } + + explicit Exception(const std::exception& other) + : m_what(other.what()) + , m_where(0) + , m_code(0) + { } + + template + explicit Exception(const T& other) + : m_what(other.what()) + , m_where(other.where()) + , m_code(0) + { } + + virtual ~Exception() + { } + + template + _ExceptionT* TypedClone() const + { + return new(std::nothrow) _ExceptionT(m_what, m_where, m_code); + } + + template + _ExceptionT* TypedClone(const ParamT& param) const + { + return new(std::nothrow) _ExceptionT(m_what, m_where, param); + } + + template + void TypedThrow() const { throw _ExceptionT(m_what, m_where, m_code); } + + template + void TypedThrow(const ParamT& param) const { throw _ExceptionT(m_what, m_where, param); } + + virtual Exception* Clone() const { return new(std::nothrow) Exception(*this); } + virtual int GetId() const { return eiException; } + virtual void Throw() const { throw Exception(*this); } + + const char* what() const { return m_what != 0 ? m_what : ""; } + const char* where() const { return m_where != 0 ? m_where : ""; } + ulong code() const { return m_code; } + + template + friend ExceptionT& modify(ExceptionT& e, const char* what, const char* where) + { + if(what != 0) e.m_what = what; + if(where != 0) e.m_where = where; + return e; + } + + protected: + const char* m_what; + const char* m_where; + ulong m_code; + }; + + // + // ExceptionType<> + // --------------------------------------------------------------------------- + template + < + const int _exceptionId, + class ExceptionT, + class BaseT, + typename OtherT = void + > + class ExceptionType : public BaseT, public OtherT + { + protected: + typedef BaseT BaseType; + typedef OtherT OtherType; + enum { exceptionId = _exceptionId }; + + public: + ExceptionType(const char* msg, const char* where, ulong code) + : BaseType(msg, where, code) + , OtherT() + { } + + ExceptionT& operator<<(const OtherType& other) + { + *static_cast(this) = other; + return *static_cast(this); + } + + template + _ExceptionT* TypedClone() const + { + _ExceptionT* e = new(std::nothrow) _ExceptionT(BaseT::m_what, BaseT::m_where, BaseT::m_code); + if(e != 0) *e << *this; + return e; + } + + virtual void Throw() const { throw ExceptionT(BaseT::m_what, BaseT::m_where, BaseT::m_code); } + virtual int GetId() const { return exceptionId; } + }; + + template + < + const int _exceptionId, + class ExceptionT, + class BaseT + > + class ExceptionType<_exceptionId, ExceptionT, BaseT, void> : public BaseT + { + protected: + typedef BaseT BaseType; + enum { exceptionId = _exceptionId }; + + public: + ExceptionType(const char* msg, const char* where, ulong code) + : BaseType(msg, where, code) + { } + + virtual void Throw() const { throw ExceptionT(BaseT::m_what, BaseT::m_where, BaseT::m_code); } + virtual int GetId() const { return exceptionId; } + }; + + // --------------------------------------------------------------------------- + class BadException : + public ExceptionType + { + public: + typedef ExceptionType BaseType; + typedef BadException Type; + using BaseType::exceptionId; + + BadException(const char* msg = 0, const char* where = 0, ulong code = 0) + : BaseType(msg, where, code) + { } + }; + + class NullPointerException : + public ExceptionType + { + public: + typedef ExceptionType BaseType; + typedef NullPointerException Type; + using BaseType::exceptionId; + + NullPointerException(const char* msg = 0, const char* where = 0, ulong code = 0) + : BaseType(msg, where, code) + { } + }; + + class OutOfRangeException : + public ExceptionType + { + public: + typedef ExceptionType BaseType; + typedef OutOfRangeException Type; + using BaseType::exceptionId; + + OutOfRangeException(const char* msg = 0, const char* where = 0, ulong code = 0) + : BaseType(msg, where, code) + { } + }; + + // --------------------------------------------------------------------------- + class BadCastException : + public ExceptionType + { + public: + typedef ExceptionType BaseType; + typedef BadCastException Type; + using BaseType::exceptionId; + + BadCastException(const char* msg = 0, const char* where = 0, ulong code = 0) + : BaseType(msg, where, code) + { } + }; + + class BadNumericCast : + public ExceptionType + { + public: + typedef ExceptionType BaseType; + typedef BadNumericCast Type; + using BaseType::exceptionId; + + BadNumericCast(const char* msg = 0, const char* where = 0, ulong code = 0) + : BaseType(msg, where, code) + { } + + template + void operator()(overflow_type overflow) + { + switch(eiBadNumericCast + overflow) + { + case eiNegativeOverflow: TypedThrow >(); + case eiPositiveOverflow: TypedThrow >(); + default: /* do nothing */; + } + } + }; + + // --------------------------------------------------------------------------- + class RuntimeException : + public ExceptionType + { + public: + typedef ExceptionType BaseType; + typedef RuntimeException Type; + using BaseType::exceptionId; + + RuntimeException(const char* msg = 0, const char* where = 0, ulong code = 0) + : BaseType(msg, where, code) + { } + }; + + class BadAllocException : + public ExceptionType + { + public: + typedef ExceptionType BaseType; + typedef BadAllocException Type; + using BaseType::exceptionId; + + BadAllocException(const char* msg = 0, const char* where = 0, ulong code = 0) + : BaseType(msg, where, code) + { } + }; + + class NotSupportedException : + public ExceptionType + { + public: + typedef ExceptionType BaseType; + typedef NotSupportedException Type; + using BaseType::exceptionId; + using BaseType::operator<<; + + explicit NotSupportedException(const char* msg = 0, const char* where = 0, ulong code = 0) + : BaseType(msg, where, code) + { } + + virtual Type* Clone() const { return TypedClone(); } + }; + + class NotImplementedException : + public ExceptionType + { + public: + typedef ExceptionType BaseType; + typedef NotImplementedException Type; + using BaseType::exceptionId; + using BaseType::operator<<; + + NotImplementedException(const char* msg = 0, const char* where = 0, ulong code = 0) + : BaseType(msg, where, code) + { } + + virtual Type* Clone() const { return TypedClone(); } + }; + + class InvalidParameterException : + public ExceptionType + { + public: + typedef ExceptionType BaseType; + typedef InvalidParameterException Type; + using BaseType::exceptionId; + using BaseType::operator<<; + + InvalidParameterException(const char* msg = 0, const char* where = 0, ulong code = 0) + : BaseType(msg, where, code) + { } + + virtual Type* Clone() const { return TypedClone(); } + }; + + class SynchronizationException : + public ExceptionType + { + public: + typedef ExceptionType BaseType; + typedef SynchronizationException Type; + using BaseType::exceptionId; + using BaseType::operator<<; + + SynchronizationException(const char* msg = 0, const char* where = 0, ulong code = 0) + : BaseType(msg, where, code) + { } + + virtual Type* Clone() const { return TypedClone(); } + }; + + // --------------------------------------------------------------------------- + class LogicalException : public Exception + { + public: + typedef Exception BaseType; + typedef LogicalException Type; + + LogicalException(const char* msg = 0, const char* where = 0, ulong code = 0) + : Exception(msg, where, code) + { } + + virtual Type* Clone() const { return TypedClone(); } + virtual void Throw() const { throw Type(m_what, m_where, m_code); } + virtual int GetId() const { return eiLogicalException; } + }; + + class ASN1Exception : public LogicalException + { + public: + typedef LogicalException BaseType; + typedef ASN1Exception Type; + + ASN1Exception(const char* msg = 0, const char* where = 0, ulong code = 0) + : LogicalException(msg, where, code) + { } + + virtual Type* Clone() const { return TypedClone(); } + virtual void Throw() const { throw Type(m_what, m_where, m_code); } + virtual int GetId() const { return eiASN1Exception; } + }; + + class NoSuchDLLException : public LogicalException + { + public: + typedef LogicalException BaseType; + typedef NoSuchDLLException Type; + + NoSuchDLLException(const char* msg = 0, const char* where = 0, ulong code = 0) + : LogicalException(msg, where, code) + { } + + virtual Type* Clone() const { return TypedClone(); } + virtual void Throw() const { throw Type(m_what, m_where, m_code); } + virtual int GetId() const { return eiNoSuchDLLException; } + }; + + class PasswordException : public LogicalException + { + public: + typedef LogicalException BaseType; + typedef PasswordException Type; + + PasswordException(const char* msg = 0, const char* where = 0, ulong code = 0) + : LogicalException(msg, where, code) + { } + + virtual Type* Clone() const { return TypedClone(); } + virtual void Throw() const { throw Type(m_what, m_where, m_code); } + virtual int GetId() const { return eiPasswordException; } + }; + + class ArithmeticException : public LogicalException + { + public: + typedef LogicalException BaseType; + typedef ArithmeticException Type; + + ArithmeticException(const char* msg = 0, const char* where = 0, ulong code = 0) + : LogicalException(msg, where, code) + { } + + virtual Type* Clone() const { return TypedClone(); } + virtual void Throw() const { throw Type(m_what, m_where, m_code); } + virtual int GetId() const { return eiArithmeticException; } + }; + + class MessageDigestException : public LogicalException + { + public: + typedef LogicalException BaseType; + typedef MessageDigestException Type; + + MessageDigestException(const char* msg = 0, const char* where = 0, ulong code = 0) + : LogicalException(msg, where, code) + { } + + virtual Type* Clone() const { return TypedClone(); } + virtual void Throw() const { throw Type(m_what, m_where, m_code); } + virtual int GetId() const { return eiMessageDigestException; } + }; + + class PaddingException : public LogicalException + { + public: + typedef LogicalException BaseType; + typedef PaddingException Type; + + PaddingException(const char* msg = 0, const char* where = 0, ulong code = 0) + : LogicalException(msg, where, code) + { } + + virtual Type* Clone() const { return TypedClone(); } + virtual void Throw() const { throw Type(m_what, m_where, m_code); } + virtual int GetId() const { return eiPaddingException; } + }; + + class SignatureException : public LogicalException + { + public: + typedef LogicalException BaseType; + typedef SignatureException Type; + + SignatureException(const char* msg = 0, const char* where = 0, ulong code = 0) + : LogicalException(msg, where, code) + { } + + virtual Type* Clone() const { return TypedClone(); } + virtual void Throw() const { throw Type(m_what, m_where, m_code); } + virtual int GetId() const { return eiSignatureException; } + }; + + // --------------------------------------------------------------------------- + class AlgorithmException : public LogicalException + { + public: + typedef LogicalException BaseType; + typedef AlgorithmException Type; + + AlgorithmException(const char* msg = 0, const char* where = 0, ulong code = 0) + : LogicalException(msg, where, code) + { } + + virtual Type* Clone() const { return TypedClone(); } + virtual void Throw() const { throw Type(m_what, m_where, m_code); } + virtual int GetId() const { return eiAlgorithmException; } + }; + + class InvalidAlgorithmParameterException : public AlgorithmException + { + public: + typedef AlgorithmException BaseType; + typedef InvalidAlgorithmParameterException Type; + + InvalidAlgorithmParameterException(const char* msg = 0, const char* where = 0, ulong code = 0) + : AlgorithmException(msg, where, code) + { } + + virtual Type* Clone() const { return TypedClone(); } + virtual void Throw() const { throw Type(m_what, m_where, m_code); } + virtual int GetId() const { return eiInvalidAlgorithmParameterException; } + }; + + class NoSuchAlgorithmException : public AlgorithmException + { + public: + typedef AlgorithmException BaseType; + typedef NoSuchAlgorithmException Type; + + NoSuchAlgorithmException(const char* msg = 0, const char* where = 0, const char* algorithm = 0) + : AlgorithmException(msg, where) + , m_algorithm(algorithm) + { + m_algorithm.push_back(0); + } + + // GCC 4.2.1 whats to have it + virtual ~NoSuchAlgorithmException() + { } + + virtual Type* Clone() const { return TypedClone(algorithm()); } + virtual void Throw() const { throw Type(m_what, m_where, algorithm()); } + virtual int GetId() const { return eiNoSuchAlgorithmException; } + + const char* algorithm() const { return reinterpret_cast(&m_algorithm[0]); } + + protected: + mutable Blob m_algorithm; + }; + + // --------------------------------------------------------------------------- + class CertificateException : public LogicalException + { + public: + typedef LogicalException BaseType; + typedef CertificateException Type; + + CertificateException(const char* msg = 0, const char* where = 0, ulong code = 0) + : LogicalException(msg, where, code) + { } + + virtual Type* Clone() const { return TypedClone(); } + virtual void Throw() const { throw Type(m_what, m_where, m_code); } + virtual int GetId() const { return eiCertificateException; } + }; + + class InvalidCertificateException : public CertificateException + { + public: + typedef CertificateException BaseType; + typedef InvalidCertificateException Type; + + InvalidCertificateException(const char* msg = 0, const char* where = 0, ulong code = 0) + : CertificateException(msg, where, code) + { } + + virtual Type* Clone() const { return TypedClone(); } + virtual void Throw() const { throw Type(m_what, m_where, m_code); } + virtual int GetId() const { return eiInvalidCertificateException; } + }; + + class CertificateEncodingException : public CertificateException + { + public: + typedef CertificateException BaseType; + typedef CertificateEncodingException Type; + + CertificateEncodingException(const char* msg = 0, const char* where = 0, ulong code = 0) + : CertificateException(msg, where, code) + { } + + virtual Type* Clone() const { return TypedClone(); } + virtual void Throw() const { throw Type(m_what, m_where, m_code); } + virtual int GetId() const { return eiCertificateEncodingException; } + }; + + class CertificateExpiredException : public CertificateException + { + public: + typedef CertificateException BaseType; + typedef CertificateExpiredException Type; + + CertificateExpiredException(const char* msg = 0, const char* where = 0, ulong code = 0) + : CertificateException(msg, where, code) + { } + + virtual Type* Clone() const { return TypedClone(); } + virtual void Throw() const { throw Type(m_what, m_where, m_code); } + virtual int GetId() const { return eiCertificateExpiredException; } + }; + + class CertificateNotYetValidException : public CertificateException + { + public: + typedef CertificateException BaseType; + typedef CertificateNotYetValidException Type; + + CertificateNotYetValidException(const char* msg = 0, const char* where = 0, ulong code = 0) + : CertificateException(msg, where, code) + { } + + virtual Type* Clone() const { return TypedClone(); } + virtual void Throw() const { throw Type(m_what, m_where, m_code); } + virtual int GetId() const { return eiCertificateNotYetValidException; } + }; + + class CertificateParsingException : public CertificateException + { + public: + typedef CertificateException BaseType; + typedef CertificateParsingException Type; + + CertificateParsingException(const char* msg = 0, const char* where = 0, ulong code = 0) + : CertificateException(msg, where, code) + { } + + virtual Type* Clone() const { return TypedClone(); } + virtual void Throw() const { throw Type(m_what, m_where, m_code); } + virtual int GetId() const { return eiCertificateParsingException; } + }; + + // --------------------------------------------------------------------------- + class KeyException : public LogicalException + { + public: + typedef LogicalException BaseType; + typedef KeyException Type; + + KeyException(const char* msg = 0, const char* where = 0, ulong code = 0) + : LogicalException(msg, where, code) + { } + + virtual Type* Clone() const { return TypedClone(); } + virtual void Throw() const { throw Type(m_what, m_where, m_code); } + virtual int GetId() const { return eiKeyException; } + }; + + class InvalidKeyException : public KeyException + { + public: + typedef KeyException BaseType; + typedef InvalidKeyException Type; + + InvalidKeyException(const char* msg = 0, const char* where = 0, ulong code = 0) + : KeyException(msg, where, code) + { } + + virtual Type* Clone() const { return TypedClone(); } + virtual void Throw() const { throw Type(m_what, m_where, m_code); } + virtual int GetId() const { return eiInvalidKeyException; } + }; + + class KeyManagementException : public KeyException + { + public: + typedef KeyException BaseType; + typedef KeyManagementException Type; + + KeyManagementException(const char* msg = 0, const char* where = 0, ulong code = 0) + : KeyException(msg, where, code) + { } + + virtual Type* Clone() const { return TypedClone(); } + virtual void Throw() const { throw Type(m_what, m_where, m_code); } + virtual int GetId() const { return eiKeyManagementException; } + }; + + // --------------------------------------------------------------------------- + class EACException : public LogicalException + { + public: + typedef LogicalException BaseType; + typedef EACException Type; + + EACException(const char* msg = 0, const char* where = 0, ulong code = 0) + : LogicalException(msg, where, code) + { } + + virtual Type* Clone() const { return TypedClone(); } + virtual void Throw() const { throw Type(m_what, m_where, m_code); } + virtual int GetId() const { return eiEACException; } + }; + + class EACDataException : public EACException + { + public: + typedef EACException BaseType; + typedef EACDataException Type; + + EACDataException(const char* msg = 0, const char* where = 0, ulong code = 0) + : EACException(msg, where, code) + { } + + virtual Type* Clone() const { return TypedClone(); } + virtual void Throw() const { throw Type(m_what, m_where, m_code); } + virtual int GetId() const { return eiEACDataException; } + }; + + class EACMRZException : public EACDataException + { + public: + typedef EACDataException BaseType; + typedef EACMRZException Type; + + EACMRZException(const char* msg = 0, const char* where = 0, ulong code = 0) + : EACDataException(msg, where, code) + { } + + virtual Type* Clone() const { return TypedClone(); } + virtual void Throw() const { throw Type(m_what, m_where, m_code); } + virtual int GetId() const { return eiEACMRZException; } + }; + + class EACCVCertException : public EACDataException + { + public: + typedef EACDataException BaseType; + typedef EACCVCertException Type; + + EACCVCertException(const char* msg = 0, const char* where = 0, ulong code = 0) + : EACDataException(msg, where, code) + { } + + virtual Type* Clone() const { return TypedClone(); } + virtual void Throw() const { throw Type(m_what, m_where, m_code); } + virtual int GetId() const { return eiEACCVCertException; } + }; + + // --------------------------------------------------------------------------- + class SmartcardException : public LogicalException + { + public: + typedef LogicalException BaseType; + typedef SmartcardException Type; + + SmartcardException(const char* msg = 0, const char* where = 0, ulong code = 0) + : LogicalException(msg, where, code) + { } + + virtual Type* Clone() const { return TypedClone(); } + virtual void Throw() const { throw Type(m_what, m_where, m_code); } + virtual int GetId() const { return eiSmartcardException; } + }; + + class CardOutOfMemoryException : public SmartcardException + { + public: + typedef SmartcardException BaseType; + typedef CardOutOfMemoryException Type; + + CardOutOfMemoryException(const char* msg = 0, const char* where = 0, ulong code = 0) + : SmartcardException(msg, where, code) + { } + + virtual Type* Clone() const { return TypedClone(); } + virtual void Throw() const { throw Type(m_what, m_where, m_code); } + virtual int GetId() const { return eiCardOutOfMemoryException; } + }; + + class InvalidPinException : public SmartcardException + { + public: + typedef SmartcardException BaseType; + typedef InvalidPinException Type; + + InvalidPinException(const char* msg = 0, const char* where = 0, ulong code = 0) + : SmartcardException(msg, where, code) + { } + + virtual Type* Clone() const { return TypedClone(); } + virtual void Throw() const { throw Type(m_what, m_where, m_code); } + virtual int GetId() const { return eiInvalidPinException; } + }; + + class PinLockedException : public SmartcardException + { + public: + typedef SmartcardException BaseType; + typedef PinLockedException Type; + + PinLockedException(const char* msg = 0, const char* where = 0, ulong code = 0) + : SmartcardException(msg, where, code) + { } + + virtual Type* Clone() const { return TypedClone(); } + virtual void Throw() const { throw Type(m_what, m_where, m_code); } + virtual int GetId() const { return eiPinLockedException; } + }; + + class PinExpiredException : public SmartcardException + { + public: + typedef SmartcardException BaseType; + typedef PinExpiredException Type; + + PinExpiredException(const char* msg = 0, const char* where = 0, ulong code = 0) + : SmartcardException(msg, where, code) + { } + + virtual Type* Clone() const { return TypedClone(); } + virtual void Throw() const { throw Type(m_what, m_where, m_code); } + virtual int GetId() const { return eiPinExpiredException; } + }; + + class PinLenRangeException : public SmartcardException + { + public: + typedef SmartcardException BaseType; + typedef PinLenRangeException Type; + + PinLenRangeException(const char* msg = 0, const char* where = 0, ulong code = 0) + : SmartcardException(msg, where, code) + { } + + virtual Type* Clone() const { return TypedClone(); } + virtual void Throw() const { throw Type(m_what, m_where, m_code); } + virtual int GetId() const { return eiPinLenRangeException; } + }; + + class InvalidCRKeyException : public SmartcardException + { + public: + typedef SmartcardException BaseType; + typedef InvalidCRKeyException Type; + + InvalidCRKeyException(const char* msg = 0, const char* where = 0, ulong code = 0) + : SmartcardException(msg, where, code) + { } + + virtual Type* Clone() const { return TypedClone(); } + virtual void Throw() const { throw Type(m_what, m_where, m_code); } + virtual int GetId() const { return eiInvalidCRKeyException; } + }; + + class InvalidCardException : public SmartcardException + { + public: + typedef SmartcardException BaseType; + typedef InvalidCardException Type; + + InvalidCardException(const char* msg = 0, const char* where = 0, ulong code = 0) + : SmartcardException(msg, where, code) + { } + + virtual Type* Clone() const { return TypedClone(); } + virtual void Throw() const { throw Type(m_what, m_where, m_code); } + virtual int GetId() const { return eiInvalidCardException; } + }; + + class InvalidAuthException : public SmartcardException + { + public: + typedef SmartcardException BaseType; + typedef InvalidAuthException Type; + + InvalidAuthException(const char* msg = 0, const char* where = 0, ulong code = 0) + : SmartcardException(msg, where, code) + { } + + virtual Type* Clone() const { return TypedClone(); } + virtual void Throw() const { throw Type(m_what, m_where, m_code); } + virtual int GetId() const { return eiInvalidAuthException; } + }; + + class InvalidAuthObjectException : public SmartcardException + { + public: + typedef SmartcardException BaseType; + typedef InvalidAuthObjectException Type; + + InvalidAuthObjectException(const char* msg = 0, const char* where = 0, ulong code = 0) + : SmartcardException(msg, where, code) + { } + + virtual Type* Clone() const { return TypedClone(); } + virtual void Throw() const { throw Type(m_what, m_where, m_code); } + virtual int GetId() const { return eiInvalidAuthObjectException; } + }; + + class AuthProtocolException : public SmartcardException + { + public: + typedef SmartcardException BaseType; + typedef AuthProtocolException Type; + + AuthProtocolException(const char* msg = 0, const char* where = 0, ulong code = 0) + : SmartcardException(msg, where, code) + { } + + virtual Type* Clone() const { return TypedClone(); } + virtual void Throw() const { throw Type(m_what, m_where, m_code); } + virtual int GetId() const { return eiAuthProtocolException; } + }; + + class AuthConstrainedException : public SmartcardException + { + public: + typedef SmartcardException BaseType; + typedef AuthConstrainedException Type; + + AuthConstrainedException(const char* msg = 0, const char* where = 0, ulong code = 0) + : SmartcardException(msg, where, code) + { } + + virtual Type* Clone() const { return TypedClone(); } + virtual void Throw() const { throw Type(m_what, m_where, m_code); } + virtual int GetId() const { return eiAuthConstrainedException; } + }; + + class SecureMessagingException : public SmartcardException + { + public: + typedef SmartcardException BaseType; + typedef SecureMessagingException Type; + + SecureMessagingException(const char* msg = 0, const char* where = 0, ulong code = 0) + : SmartcardException(msg, where, code) + { } + + virtual Type* Clone() const { return TypedClone(); } + virtual void Throw() const { throw Type(m_what, m_where, m_code); } + virtual int GetId() const { return eiSecureMessagingException; } + }; + + class SMWrapException : public SecureMessagingException + { + public: + typedef SecureMessagingException BaseType; + typedef SMWrapException Type; + + SMWrapException(const char* msg = 0, const char* where = 0, ulong code = 0) + : SecureMessagingException(msg, where, code) + { } + + virtual Type* Clone() const { return TypedClone(); } + virtual void Throw() const { throw Type(m_what, m_where, m_code); } + virtual int GetId() const { return eiSMWrapException; } + }; + + class SMUnwrapException : public SecureMessagingException + { + public: + typedef SecureMessagingException BaseType; + typedef SMUnwrapException Type; + + SMUnwrapException(const char* msg = 0, const char* where = 0, ulong code = 0) + : SecureMessagingException(msg, where, code) + { } + + virtual Type* Clone() const { return TypedClone(); } + virtual void Throw() const { throw Type(m_what, m_where, m_code); } + virtual int GetId() const { return eiSMUnwrapException; } + }; + + // --------------------------------------------------------------------------- + class SubsystemException : public LogicalException + { + public: + typedef LogicalException BaseType; + typedef SubsystemException Type; + + SubsystemException(const char* msg = 0, const char* where = 0, ulong code = 0) + : LogicalException(msg, where, code) + { } + + virtual Type* Clone() const { return TypedClone(); } + virtual void Throw() const { throw Type(m_what, m_where, m_code); } + virtual int GetId() const { return eiSubsystemException; } + }; + + class NoSuchSubsystemException : public SubsystemException + { + public: + typedef SubsystemException BaseType; + typedef NoSuchSubsystemException Type; + + NoSuchSubsystemException(const char* msg = 0, const char* where = 0, ulong code = 0) + : SubsystemException(msg, where, code) + { } + + virtual Type* Clone() const { return TypedClone(); } + virtual void Throw() const { throw Type(m_what, m_where, m_code); } + virtual int GetId() const { return eiNoSuchSubsystemException; } + }; + +#else + + #define throw(_x) _exit(_x) + + int Exception(const char* msg = 0, const char* where = 0, ulong code = 0); + int BadException(const char* msg = 0, const char* where = 0, ulong code = 0); + int NullPointerException(const char* msg = 0, const char* where = 0, ulong code = 0); + int OutOfRangeException(const char* msg = 0, const char* where = 0, ulong code = 0); + int BadCastException(const char* msg = 0, const char* where = 0, ulong code = 0); + int BadNumericCast(const char* msg = 0, const char* where = 0, ulong code = 0); + int RuntimeException(const char* msg = 0, const char* where = 0, ulong code = 0); + int BadAllocException(const char* msg = 0, const char* where = 0, ulong code = 0); + int NotSupportedException(const char* msg = 0, const char* where = 0, ulong code = 0); + int NotImplementedException(const char* msg = 0, const char* where = 0, ulong code = 0); + int InvalidParameterException(const char* msg = 0, const char* where = 0, ulong code = 0); + int SynchronizationException(const char* msg = 0, const char* where = 0, ulong code = 0); + int LogicalException(const char* msg = 0, const char* where = 0, ulong code = 0); + int AlgorithmException(const char* msg = 0, const char* where = 0, ulong code = 0); + int InvalidAlgorithmParameterException(const char* msg = 0, const char* where = 0, ulong code = 0); + int NoSuchAlgorithmException(const char* msg = 0, const char* where = 0, const char* algorithm); + int ArithmeticException(const char* msg = 0, const char* where = 0, ulong code = 0); + int CertificateException(const char* msg = 0, const char* where = 0, ulong code = 0); + int CertificateEncodingException(const char* msg = 0, const char* where = 0, ulong code = 0); + int CertificateExpiredException(const char* msg = 0, const char* where = 0, ulong code = 0); + int CertificateNotYetValidException(const char* msg = 0, const char* where = 0, ulong code = 0); + int CertificateParsingException(const char* msg = 0, const char* where = 0, ulong code = 0); + int KeyException(const char* msg = 0, const char* where = 0, ulong code = 0); + int InvalidKeyException(const char* msg = 0, const char* where = 0, ulong code = 0); + int KeyManagementException(const char* msg = 0, const char* where = 0, ulong code = 0); + int MessageDigestException(const char* msg = 0, const char* where = 0, ulong code = 0); + int PaddingException(const char* msg = 0, const char* where = 0, ulong code = 0); + int SignatureException(const char* msg = 0, const char* where = 0, ulong code = 0); + int EACException(const char* msg = 0, const char* where = 0, ulong code = 0); + int EACDataException(const char* msg = 0, const char* where = 0, ulong code = 0); + int EACMRZException(const char* msg = 0, const char* where = 0, ulong code = 0); + int EACCVCertException(const char* msg = 0, const char* where = 0, ulong code = 0); + int SmartcardException(const char* msg = 0, const char* where = 0, ulong code = 0); + int CardOutOfMemoryException(const char* msg = 0, const char* where = 0, ulong code = 0); + int InvalidPinException(const char* msg = 0, const char* where = 0, ulong code = 0); + int InvalidCardException(const char* msg = 0, const char* where = 0, ulong code = 0); + int InvalidAuthObjectException(const char* msg = 0, const char* where = 0, ulong code = 0); + int AuthProtocolException(const char* msg = 0, const char* where = 0, ulong code = 0); + int AuthConstrainedException(const char* msg = 0, const char* where = 0, ulong code = 0); + int SecureMessagingException(const char* msg = 0, const char* where = 0, ulong code = 0); + int SMWrapException(const char* msg = 0, const char* where = 0, ulong code = 0); + int SMUnwrapException(const char* msg = 0, const char* where = 0, ulong code = 0); + int SubsystemException(const char* msg = 0, const char* where = 0, ulong code = 0); + int NoSuchSubsystemException(const char* msg = 0, const char* where = 0, ulong code = 0); + +#endif // UNDER_CE_30 + +}// namespace act + +#endif // ACT_Exception_h diff --git a/actlibrary/MacOSX-10.6-x86_64/Release/include/actFactoryReg.h b/actlibrary/include/actFactoryReg.h similarity index 96% rename from actlibrary/MacOSX-10.6-x86_64/Release/include/actFactoryReg.h rename to actlibrary/include/actFactoryReg.h index 175da36..4d76813 100644 --- a/actlibrary/MacOSX-10.6-x86_64/Release/include/actFactoryReg.h +++ b/actlibrary/include/actFactoryReg.h @@ -1,146 +1,146 @@ -// --------------------------------------------------------------------------- -// Name: actFactoryReg.h -// Product: cv act library -// Purpose: Templates for simple factory-registry implementation. -// -// Copyright: (c) 2008 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -// -// Autor: Markus Tesche -// Date: 06/02/2008 -// --------------------------------------------------------------------------- - -#ifndef ACT_FactoryReg_h -#define ACT_FactoryReg_h - -#include -#include - -namespace act -{ - // - // FactoryMapEntry<> - template - struct FactoryMapEntry - { - typedef char KeyType; - - struct KeyLessPredicate - : public std::binary_function - { - bool operator()(const KeyType* left, const KeyType* right) const - { - if(left == 0) return false; - if(right == 0) return true; - return strcmp(left, right) < 0; - } - }; - - typedef std::map - < const KeyType*, CreatePtrT, KeyLessPredicate - > MapType; - - static const KeyType* Empty; - - const KeyType* Name; - CreatePtrT createPtr; - }; - - template - const typename FactoryMapEntry::KeyType* - FactoryMapEntry::Empty = ""; - - - // - // FactoryReg<> - template - < - class ResultT, - class CreatePtrT, - class MapEntryT, - class MapT = typename MapEntryT::MapType - > - class FactoryReg - { - public: - typedef typename MapEntryT::KeyType KeyType; - typedef MapEntryT MapEntryType; - typedef MapT MapType; - - // Creates default ... - static ResultT* Create(const KeyType* name) - { - if(name == 0) name = MapEntryType::Empty; - typename MapType::const_iterator result(g_map.find(name)); - return result != g_map.end() ? result->second(name) : 0; - } - - template - static ResultT* Create(const KeyType* name, ParamT* param) - { - if(name == 0) name = MapEntryType::Empty; - typename MapType::const_iterator result(g_map.find(name)); - return result != g_map.end() ? result->second(name, param) : 0; - } - - template - static ResultT* Create(ParamT* param) { return Create(0, param); } - static ResultT* Create() { return Create(0); } - - static const KeyType* GetName(void* createptr) - { - if(createptr == 0) return 0; - for(typename MapType::const_iterator i(g_map.begin()), - end(g_map.end()); i != end; ++i) - if(i->second == createptr) - return i->first; - - return 0; - } - - static const KeyType* GetNextName(const KeyType* name) - { - if(name == 0) - return g_map.empty() == true ? 0 : g_map.begin()->first; - - typename MapType::const_iterator result(g_map.find(name)); - return result == g_map.end() || ++result == g_map.end() ? 0 : result->first; - } - - static CreatePtrT GetCreatePointer(const KeyType* name) - { - if(name != 0) - { - typename MapType::const_iterator result(g_map.find(name)); - return result != g_map.end() ? result->second : 0; - } - return 0; - } - - static void Insert(const KeyType* name, CreatePtrT createPtr) - { - std::pair - result(g_map.insert(typename MapType::value_type(name, createPtr))); - } - - static void Insert(const MapEntryType* entry) - { - while(entry->Name != 0) - { - Insert(entry->Name, entry->createPtr); - ++entry; - } - } - - protected: - static MapT g_map; - }; - - template - MapT FactoryReg::g_map; - -} // namespace act - -#endif // ACT_FactoryReg_h +// --------------------------------------------------------------------------- +// Name: actFactoryReg.h +// Product: cv act library +// Purpose: Templates for simple factory-registry implementation. +// +// Copyright: (c) 2008 cv cryptovision GmbH +// all rights reserved +// Licence: The conditions for the use of this software are regulated +// in the cv act library licence agreement. +// +// Autor: Markus Tesche +// Date: 06/02/2008 +// --------------------------------------------------------------------------- + +#ifndef ACT_FactoryReg_h +#define ACT_FactoryReg_h + +#include +#include + +namespace act +{ + // + // FactoryMapEntry<> + template + struct FactoryMapEntry + { + typedef char KeyType; + + struct KeyLessPredicate + : public std::binary_function + { + bool operator()(const KeyType* left, const KeyType* right) const + { + if(left == 0) return false; + if(right == 0) return true; + return strcmp(left, right) < 0; + } + }; + + typedef std::map + < const KeyType*, CreatePtrT, KeyLessPredicate + > MapType; + + static const KeyType* Empty; + + const KeyType* Name; + CreatePtrT createPtr; + }; + + template + const typename FactoryMapEntry::KeyType* + FactoryMapEntry::Empty = ""; + + + // + // FactoryReg<> + template + < + class ResultT, + class CreatePtrT, + class MapEntryT, + class MapT = typename MapEntryT::MapType + > + class FactoryReg + { + public: + typedef typename MapEntryT::KeyType KeyType; + typedef MapEntryT MapEntryType; + typedef MapT MapType; + + // Creates default ... + static ResultT* Create(const KeyType* name) + { + if(name == 0) name = MapEntryType::Empty; + typename MapType::const_iterator result(g_map.find(name)); + return result != g_map.end() ? result->second(name) : 0; + } + + template + static ResultT* Create(const KeyType* name, ParamT* param) + { + if(name == 0) name = MapEntryType::Empty; + typename MapType::const_iterator result(g_map.find(name)); + return result != g_map.end() ? result->second(name, param) : 0; + } + + template + static ResultT* Create(ParamT* param) { return Create(0, param); } + static ResultT* Create() { return Create(0); } + + static const KeyType* GetName(void* createptr) + { + if(createptr == 0) return 0; + for(typename MapType::const_iterator i(g_map.begin()), + end(g_map.end()); i != end; ++i) + if(i->second == createptr) + return i->first; + + return 0; + } + + static const KeyType* GetNextName(const KeyType* name) + { + if(name == 0) + return g_map.empty() == true ? 0 : g_map.begin()->first; + + typename MapType::const_iterator result(g_map.find(name)); + return result == g_map.end() || ++result == g_map.end() ? 0 : result->first; + } + + static CreatePtrT GetCreatePointer(const KeyType* name) + { + if(name != 0) + { + typename MapType::const_iterator result(g_map.find(name)); + return result != g_map.end() ? result->second : 0; + } + return 0; + } + + static void Insert(const KeyType* name, CreatePtrT createPtr) + { + std::pair + result(g_map.insert(typename MapType::value_type(name, createPtr))); + } + + static void Insert(const MapEntryType* entry) + { + while(entry->Name != 0) + { + Insert(entry->Name, entry->createPtr); + ++entry; + } + } + + protected: + static MapT g_map; + }; + + template + MapT FactoryReg::g_map; + +} // namespace act + +#endif // ACT_FactoryReg_h diff --git a/actlibrary/MacOSX-10.5-x86_64/Release/include/actHandle.h b/actlibrary/include/actHandle.h similarity index 95% rename from actlibrary/MacOSX-10.5-x86_64/Release/include/actHandle.h rename to actlibrary/include/actHandle.h index fb01279..b61d2d1 100644 --- a/actlibrary/MacOSX-10.5-x86_64/Release/include/actHandle.h +++ b/actlibrary/include/actHandle.h @@ -1,98 +1,98 @@ -////////////////////////////////////////////////////////////////////////// -// Name: actHandle.h -// Product: cv act library -// Purpose: Handle helper templates -// -// Copyright: (c) 2010 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -// -// Autor: Markus Tesche -// Date: 07/27/2010 -////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_Handle_h -#define ACT_Handle_h - -#include "actMove.h" -#include "actException.h" - -namespace act -{ - // - // Handle - class Handle - { - public: - virtual ~Handle() { /* essential */ } - - template TypeT* as() const; - template TypeT& requiredAs() const; - - template - friend inline TypeT& getPointer(const Handle& handle) - { - return handle.as(); - } - - template - friend inline TypeT& getRef(const Handle& handle) - { - return handle.requiredAs(); - } - }; - - // - // ValueHandle<> - template - class ValueHandle : public Handle - { - public: - typedef TypeT value_type; - - ValueHandle() : m_val() { } - explicit ValueHandle(const TypeT& other) : m_val(other) { } - - template - explicit ValueHandle(move_from other) : m_val() { other.move(m_val); } - - template void operator=(const O& other) { m_val = other; } - template void operator=(move_from other) { other.move(m_val); } - - inline TypeT& valueRef() const { return m_val; } - - inline operator TypeT&() const { return m_val; } - - inline TypeT& operator*() const { return m_val; } - inline TypeT* operator->() const { return &m_val; } - - private: - mutable TypeT m_val; - - private: - friend class Handle; - }; - - // - // Handle::as<> - template - inline TypeT* Handle::as() const - { - const ValueHandle* self = dynamic_cast*>(this); - return self != 0 ? &self->m_val : 0; - } - - // - // Handle::requiredAs<> - template - inline TypeT& Handle::requiredAs() const - { - TypeT* value = as(); - if(value != 0) return *value; - throw NullPointerException("invalid handle value type"); - } - -} // namespace act - -#endif // ACT_Handle_h +////////////////////////////////////////////////////////////////////////// +// Name: actHandle.h +// Product: cv act library +// Purpose: Handle helper templates +// +// Copyright: (c) 2010 cv cryptovision GmbH +// all rights reserved +// Licence: The conditions for the use of this software are regulated +// in the cv act library licence agreement. +// +// Autor: Markus Tesche +// Date: 07/27/2010 +////////////////////////////////////////////////////////////////////////// + +#ifndef ACT_Handle_h +#define ACT_Handle_h + +#include "actMove.h" +#include "actException.h" + +namespace act +{ + // + // Handle + class Handle + { + public: + virtual ~Handle() { /* essential */ } + + template TypeT* as() const; + template TypeT& requiredAs() const; + + template + friend inline TypeT& getPointer(const Handle& handle) + { + return handle.as(); + } + + template + friend inline TypeT& getRef(const Handle& handle) + { + return handle.requiredAs(); + } + }; + + // + // ValueHandle<> + template + class ValueHandle : public Handle + { + public: + typedef TypeT value_type; + + ValueHandle() : m_val() { } + explicit ValueHandle(const TypeT& other) : m_val(other) { } + + template + explicit ValueHandle(move_from other) : m_val() { other.move(m_val); } + + template void operator=(const O& other) { m_val = other; } + template void operator=(move_from other) { other.move(m_val); } + + inline TypeT& valueRef() const { return m_val; } + + inline operator TypeT&() const { return m_val; } + + inline TypeT& operator*() const { return m_val; } + inline TypeT* operator->() const { return &m_val; } + + private: + mutable TypeT m_val; + + private: + friend class Handle; + }; + + // + // Handle::as<> + template + inline TypeT* Handle::as() const + { + const ValueHandle* self = dynamic_cast*>(this); + return self != 0 ? &self->m_val : 0; + } + + // + // Handle::requiredAs<> + template + inline TypeT& Handle::requiredAs() const + { + TypeT* value = as(); + if(value != 0) return *value; + throw NullPointerException("invalid handle value type"); + } + +} // namespace act + +#endif // ACT_Handle_h diff --git a/actlibrary/MacOSX-10.4-ppc/Release/include/actHashKit.h b/actlibrary/include/actHashKit.h similarity index 96% rename from actlibrary/MacOSX-10.4-ppc/Release/include/actHashKit.h rename to actlibrary/include/actHashKit.h index d2a817b..dcd3e8d 100644 --- a/actlibrary/MacOSX-10.4-ppc/Release/include/actHashKit.h +++ b/actlibrary/include/actHashKit.h @@ -1,32 +1,32 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actHashKit.h -// Product: cv act library -// Purpose: declaration of all factory functions -// -// Copyright: (c) 2000 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_HASHKIT_H -#define ACT_HASHKIT_H - -namespace act -{ - class IHashAlg; - IHashAlg* CreateMD2(); - IHashAlg* CreateMD4(); - IHashAlg* CreateMD5(); - IHashAlg* CreateRipemd128(); - IHashAlg* CreateRipemd160(); - IHashAlg* CreateSHA0(); - IHashAlg* CreateSHA1(); - IHashAlg* CreateSHA224(); - IHashAlg* CreateSHA256(); - IHashAlg* CreateSHA384(); - IHashAlg* CreateSHA512(); - IHashAlg* CreateDummyHash(); -} -#endif - +////////////////////////////////////////////////////////////////////////////////// +// Name: actHashKit.h +// Product: cv act library +// Purpose: declaration of all factory functions +// +// Copyright: (c) 2000 cv cryptovision GmbH +// all rights reserved +// Licence: The conditions for the use of this software are regulated +// in the cv act library licence agreement. +////////////////////////////////////////////////////////////////////////////////// + +#ifndef ACT_HASHKIT_H +#define ACT_HASHKIT_H + +namespace act +{ + class IHashAlg; + IHashAlg* CreateMD2(); + IHashAlg* CreateMD4(); + IHashAlg* CreateMD5(); + IHashAlg* CreateRipemd128(); + IHashAlg* CreateRipemd160(); + IHashAlg* CreateSHA0(); + IHashAlg* CreateSHA1(); + IHashAlg* CreateSHA224(); + IHashAlg* CreateSHA256(); + IHashAlg* CreateSHA384(); + IHashAlg* CreateSHA512(); + IHashAlg* CreateDummyHash(); +} +#endif + diff --git a/actlibrary/MacOSX-10.5-x86_64/Release/include/actHashReg.h b/actlibrary/include/actHashReg.h similarity index 96% rename from actlibrary/MacOSX-10.5-x86_64/Release/include/actHashReg.h rename to actlibrary/include/actHashReg.h index 896039d..5e9b6fc 100644 --- a/actlibrary/MacOSX-10.5-x86_64/Release/include/actHashReg.h +++ b/actlibrary/include/actHashReg.h @@ -1,40 +1,40 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actHashReg.h -// Product: cv act library -// Purpose: registry for factory functions in actHashKit.h -// -// Copyright: (c) 2000 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_HashReg_H -#define ACT_HashReg_H - -namespace act -{ - class IHashAlg; - - typedef IHashAlg* (*CreateHashPtr)(); - - struct HashMapEntry - { - const char* Name; - CreateHashPtr CreatePtr; - }; - - class HashReg - { - public: - static IHashAlg* CreateHashAlg(const char* name); - static CreateHashPtr GetCreatePointer(const char* name); - static const char* GetName(void* createptr); - static const char* GetNextName(const char* name); - static void Insert(const char* name, CreateHashPtr createptr); - static void Insert(const HashMapEntry* hashmap); - }; - -} // namespace act - -#endif // ACT_HashReg_H +////////////////////////////////////////////////////////////////////////////////// +// Name: actHashReg.h +// Product: cv act library +// Purpose: registry for factory functions in actHashKit.h +// +// Copyright: (c) 2000 cv cryptovision GmbH +// all rights reserved +// Licence: The conditions for the use of this software are regulated +// in the cv act library licence agreement. +////////////////////////////////////////////////////////////////////////////////// + +#ifndef ACT_HashReg_H +#define ACT_HashReg_H + +namespace act +{ + class IHashAlg; + + typedef IHashAlg* (*CreateHashPtr)(); + + struct HashMapEntry + { + const char* Name; + CreateHashPtr CreatePtr; + }; + + class HashReg + { + public: + static IHashAlg* CreateHashAlg(const char* name); + static CreateHashPtr GetCreatePointer(const char* name); + static const char* GetName(void* createptr); + static const char* GetNextName(const char* name); + static void Insert(const char* name, CreateHashPtr createptr); + static void Insert(const HashMapEntry* hashmap); + }; + +} // namespace act + +#endif // ACT_HashReg_H diff --git a/actlibrary/MacOSX-10.6-x86_64/Release/include/actIAccessCondition.h b/actlibrary/include/actIAccessCondition.h similarity index 95% rename from actlibrary/MacOSX-10.6-x86_64/Release/include/actIAccessCondition.h rename to actlibrary/include/actIAccessCondition.h index a6d9da3..936ac01 100644 --- a/actlibrary/MacOSX-10.6-x86_64/Release/include/actIAccessCondition.h +++ b/actlibrary/include/actIAccessCondition.h @@ -1,163 +1,163 @@ -// --------------------------------------------------------------------------- -// Name: actIAccessConditions.h -// Product: cv act library -// Purpose: The IAccessCondition interface is used to map access conditions for -// Files, Keys etc. on specific smartcard's -// -// Copyright: (c) 2008 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -// -// Autor: Markus Tesche -// Date: 10/29/2008 -// --------------------------------------------------------------------------- - -#ifndef ACT_IAccessConditions_h -#define ACT_IAccessConditions_h - -#include "actBlob.h" -#include "actIRefCounted.h" - -namespace act -{ - class IToken; - class ISCardOS; - - enum - { - AC_AUTH_ID_MASK = 0x7f, - }; - - enum ACType - { - AC_TYPE_UNKNOWN = 0, - AC_TYPE_RAW = 1, // Already transformed for specific OS - AC_TYPE_GENERIC = 2 // OS independant, requires to be transformed before used - }; - - // SCard object specific rights by type - enum ACSCardObjType - { - // { AC_TOKEN_USER, AC_TOKEN_SO, AC_TOKEN_USER_OR_SO } - AC_OBJ_MAP = 0x00, // Used for access condition (f.e. tag 0x86) - AC_OBJREF_MAP = 0x01, // Used as object reference for access condition - - AC_RIGHTS_EF = 0x02, // Access Rights for EF's - AC_RIGHTS_DF = 0x03, // Access Rights for DF's - AC_RIGHTS_KEY = 0x04, // Access Rights for Key Objects - AC_RIGHTS_AUTH = 0x05, // Access Rights for Authentication Objects - // ... add additional types here - }; - - // SCard specific rights - enum ACSCard - { - AC_ALWAYS = 0x00, - // Any other from 0x01..0x7f - AC_NEVER = 0xff - }; - - // Token specific rights - enum ACToken - { - AC_TOKEN_USER = 0x80, - AC_TOKEN_SO = 0x81, - AC_TOKEN_USER_OR_SO = 0x82, - AC_TOKEN_USER_AND_SO = 0x83, - AC_TOKEN_ADMIN = 0x84, - - AC_TOKEN_FLAG = 0x80, - }; - - // AuthId Index - enum AIIndex - { - AI_INVALID = -1, - AI_USER = AC_TOKEN_USER & ~AC_TOKEN_FLAG, - AI_SO = AC_TOKEN_SO & ~AC_TOKEN_FLAG, - AI_USER_OR_SO = AC_TOKEN_USER_OR_SO & ~AC_TOKEN_FLAG, - AI_USER_AND_SO = AC_TOKEN_USER_AND_SO & ~AC_TOKEN_FLAG, - AI_ADMIN = AC_TOKEN_ADMIN & ~AC_TOKEN_FLAG, - }; - - enum ACOperation - { - AC_OR = 0x00, - AC_AND = 0x01, - }; - - enum ACMode - { - AC_MODE_READ = 0, - AC_MODE_UPDATE = 1, - AC_MODE_EXECUTE = 2, - AC_MODE_DELETE = 3, - }; - - enum ACRight - { - // Used for EF/DF - AC_READ = 0x00, - AC_WRITE = 0x01, - AC_UPDATE = 0x01, - AC_APPEND = 0x02, - AC_DEACTIVATE = 0x03, - AC_LOCK = 0x03, - AC_ACTIVATE = 0x04, - AC_UNLOCK = 0x04, - AC_DELETE = 0x05, - AC_ADMIN = 0x06, - AC_CREATE = 0x07, - AC_INCREASE = 0x08, - AC_DECREASE = 0x09, - AC_TERMINATE = 0x0a, - - // Used for Objects - AC_USE = 0x00, - AC_CHANGE = 0x01, - AC_UNBLOCK = 0x02, - AC_GENKEY = 0x07, - AC_SIGN = 0x08, - AC_DEC = 0x09, - AC_ENC = 0x0a, - }; - - enum ACRange - { - AC_FIRST = AC_READ, - AC_LAST = AC_ENC, - }; - - // - // IAccessCondition - class IAccessCondition : public IRefCounted - { - public: - virtual IAccessCondition* Clone() const = 0; - - virtual const char* GetName() const = 0; - virtual ACType GetAcType() const = 0; - - virtual Blob& GetAccessRights() = 0; - virtual const Blob& GetAccessRights() const = 0; - - virtual IAccessCondition* ConvertAc(const IToken* token, ACType acdest) const = 0; - }; - - // - // IAcConverter - class IAcConverter - { - protected: - virtual ~IAcConverter() { } - - public: - virtual IAccessCondition* ConvertAc(const IAccessCondition* ac, ACType acdest) const = 0; - virtual Blob ConvertAc(const IAccessCondition* ac) const = 0; - virtual IAccessCondition* ConvertAc(const Blob& ac) const = 0; - }; - -} // namespace act - -#endif // ACT_IAccessConditions_h +// --------------------------------------------------------------------------- +// Name: actIAccessConditions.h +// Product: cv act library +// Purpose: The IAccessCondition interface is used to map access conditions for +// Files, Keys etc. on specific smartcard's +// +// Copyright: (c) 2008 cv cryptovision GmbH +// all rights reserved +// Licence: The conditions for the use of this software are regulated +// in the cv act library licence agreement. +// +// Autor: Markus Tesche +// Date: 10/29/2008 +// --------------------------------------------------------------------------- + +#ifndef ACT_IAccessConditions_h +#define ACT_IAccessConditions_h + +#include "actBlob.h" +#include "actIRefCounted.h" + +namespace act +{ + class IToken; + class ISCardOS; + + enum + { + AC_AUTH_ID_MASK = 0x7f, + }; + + enum ACType + { + AC_TYPE_UNKNOWN = 0, + AC_TYPE_RAW = 1, // Already transformed for specific OS + AC_TYPE_GENERIC = 2 // OS independant, requires to be transformed before used + }; + + // SCard object specific rights by type + enum ACSCardObjType + { + // { AC_TOKEN_USER, AC_TOKEN_SO, AC_TOKEN_USER_OR_SO } + AC_OBJ_MAP = 0x00, // Used for access condition (f.e. tag 0x86) + AC_OBJREF_MAP = 0x01, // Used as object reference for access condition + + AC_RIGHTS_EF = 0x02, // Access Rights for EF's + AC_RIGHTS_DF = 0x03, // Access Rights for DF's + AC_RIGHTS_KEY = 0x04, // Access Rights for Key Objects + AC_RIGHTS_AUTH = 0x05, // Access Rights for Authentication Objects + // ... add additional types here + }; + + // SCard specific rights + enum ACSCard + { + AC_ALWAYS = 0x00, + // Any other from 0x01..0x7f + AC_NEVER = 0xff + }; + + // Token specific rights + enum ACToken + { + AC_TOKEN_USER = 0x80, + AC_TOKEN_SO = 0x81, + AC_TOKEN_USER_OR_SO = 0x82, + AC_TOKEN_USER_AND_SO = 0x83, + AC_TOKEN_ADMIN = 0x84, + + AC_TOKEN_FLAG = 0x80, + }; + + // AuthId Index + enum AIIndex + { + AI_INVALID = -1, + AI_USER = AC_TOKEN_USER & ~AC_TOKEN_FLAG, + AI_SO = AC_TOKEN_SO & ~AC_TOKEN_FLAG, + AI_USER_OR_SO = AC_TOKEN_USER_OR_SO & ~AC_TOKEN_FLAG, + AI_USER_AND_SO = AC_TOKEN_USER_AND_SO & ~AC_TOKEN_FLAG, + AI_ADMIN = AC_TOKEN_ADMIN & ~AC_TOKEN_FLAG, + }; + + enum ACOperation + { + AC_OR = 0x00, + AC_AND = 0x01, + }; + + enum ACMode + { + AC_MODE_READ = 0, + AC_MODE_UPDATE = 1, + AC_MODE_EXECUTE = 2, + AC_MODE_DELETE = 3, + }; + + enum ACRight + { + // Used for EF/DF + AC_READ = 0x00, + AC_WRITE = 0x01, + AC_UPDATE = 0x01, + AC_APPEND = 0x02, + AC_DEACTIVATE = 0x03, + AC_LOCK = 0x03, + AC_ACTIVATE = 0x04, + AC_UNLOCK = 0x04, + AC_DELETE = 0x05, + AC_ADMIN = 0x06, + AC_CREATE = 0x07, + AC_INCREASE = 0x08, + AC_DECREASE = 0x09, + AC_TERMINATE = 0x0a, + + // Used for Objects + AC_USE = 0x00, + AC_CHANGE = 0x01, + AC_UNBLOCK = 0x02, + AC_GENKEY = 0x07, + AC_SIGN = 0x08, + AC_DEC = 0x09, + AC_ENC = 0x0a, + }; + + enum ACRange + { + AC_FIRST = AC_READ, + AC_LAST = AC_ENC, + }; + + // + // IAccessCondition + class IAccessCondition : public IRefCounted + { + public: + virtual IAccessCondition* Clone() const = 0; + + virtual const char* GetName() const = 0; + virtual ACType GetAcType() const = 0; + + virtual Blob& GetAccessRights() = 0; + virtual const Blob& GetAccessRights() const = 0; + + virtual IAccessCondition* ConvertAc(const IToken* token, ACType acdest) const = 0; + }; + + // + // IAcConverter + class IAcConverter + { + protected: + virtual ~IAcConverter() { } + + public: + virtual IAccessCondition* ConvertAc(const IAccessCondition* ac, ACType acdest) const = 0; + virtual Blob ConvertAc(const IAccessCondition* ac) const = 0; + virtual IAccessCondition* ConvertAc(const Blob& ac) const = 0; + }; + +} // namespace act + +#endif // ACT_IAccessConditions_h diff --git a/actlibrary/MacOSX-10.6-x86_64/Release/include/actIAgreementKey.h b/actlibrary/include/actIAgreementKey.h similarity index 96% rename from actlibrary/MacOSX-10.6-x86_64/Release/include/actIAgreementKey.h rename to actlibrary/include/actIAgreementKey.h index 7ff4ef1..ea71dc2 100644 --- a/actlibrary/MacOSX-10.6-x86_64/Release/include/actIAgreementKey.h +++ b/actlibrary/include/actIAgreementKey.h @@ -1,32 +1,32 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actIAgreementKey.h -// Product: cv act library -// Purpose: The abstract class IAgreementKey derived from IKey is the -// interface to all key agreements. -// -// Copyright: (c) 2000 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_IAgreementKey_H -#define ACT_IAgreementKey_H - -#include "actIKey.h" - -namespace act -{ - class IDerivator; - - class IAgreementKey : public IKey - { - public: - virtual void SetDerivator(IDerivator* derivator) = 0; - virtual const IDerivator* GetDerivator() const = 0; - virtual IDerivator* GetDerivator() = 0; - }; - -} // namespace act - -#endif // ACT_IAgreementKey_H +////////////////////////////////////////////////////////////////////////////////// +// Name: actIAgreementKey.h +// Product: cv act library +// Purpose: The abstract class IAgreementKey derived from IKey is the +// interface to all key agreements. +// +// Copyright: (c) 2000 cv cryptovision GmbH +// all rights reserved +// Licence: The conditions for the use of this software are regulated +// in the cv act library licence agreement. +////////////////////////////////////////////////////////////////////////////////// + +#ifndef ACT_IAgreementKey_H +#define ACT_IAgreementKey_H + +#include "actIKey.h" + +namespace act +{ + class IDerivator; + + class IAgreementKey : public IKey + { + public: + virtual void SetDerivator(IDerivator* derivator) = 0; + virtual const IDerivator* GetDerivator() const = 0; + virtual IDerivator* GetDerivator() = 0; + }; + +} // namespace act + +#endif // ACT_IAgreementKey_H diff --git a/actlibrary/MacOSX-10.4-ppc/Release/include/actIAlgorithm.h b/actlibrary/include/actIAlgorithm.h similarity index 96% rename from actlibrary/MacOSX-10.4-ppc/Release/include/actIAlgorithm.h rename to actlibrary/include/actIAlgorithm.h index 23cdb2c..7108372 100644 --- a/actlibrary/MacOSX-10.4-ppc/Release/include/actIAlgorithm.h +++ b/actlibrary/include/actIAlgorithm.h @@ -1,38 +1,38 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actIAlgorithm.h -// Product: cv act library -// Purpose: IAlgorithm is an abstract base. All concrete algorithm-classes are -// derived from IAlgorithm. -// -// Copyright: (c) 2000 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_IAlgorithm_h -#define ACT_IAlgorithm_h - -#include "actBasics.h" - -namespace act -{ - class Blob; - - class IAlgorithm - { - public: - virtual ~IAlgorithm() { } - - virtual void Write(const Blob& input) = 0; - virtual void Write(const byte* input, size_t insize) = 0; - virtual void Finalize() = 0; - virtual size_t GetAvailableSize() const = 0; - virtual size_t Read(Blob& output, size_t max = 0) = 0; - virtual size_t Read(byte* outbuffer, size_t buffersize) = 0; - virtual status_t GetStatus() const = 0; - }; - -} // namespace act - -#endif // ACT_IAlgorithm_h +////////////////////////////////////////////////////////////////////////////////// +// Name: actIAlgorithm.h +// Product: cv act library +// Purpose: IAlgorithm is an abstract base. All concrete algorithm-classes are +// derived from IAlgorithm. +// +// Copyright: (c) 2000 cv cryptovision GmbH +// all rights reserved +// Licence: The conditions for the use of this software are regulated +// in the cv act library licence agreement. +////////////////////////////////////////////////////////////////////////////////// + +#ifndef ACT_IAlgorithm_h +#define ACT_IAlgorithm_h + +#include "actBasics.h" + +namespace act +{ + class Blob; + + class IAlgorithm + { + public: + virtual ~IAlgorithm() { } + + virtual void Write(const Blob& input) = 0; + virtual void Write(const byte* input, size_t insize) = 0; + virtual void Finalize() = 0; + virtual size_t GetAvailableSize() const = 0; + virtual size_t Read(Blob& output, size_t max = 0) = 0; + virtual size_t Read(byte* outbuffer, size_t buffersize) = 0; + virtual status_t GetStatus() const = 0; + }; + +} // namespace act + +#endif // ACT_IAlgorithm_h diff --git a/actlibrary/MacOSX-10.4-ppc/Release/include/actIBlockCipher.h b/actlibrary/include/actIBlockCipher.h similarity index 96% rename from actlibrary/MacOSX-10.4-ppc/Release/include/actIBlockCipher.h rename to actlibrary/include/actIBlockCipher.h index 10338cd..37600f0 100644 --- a/actlibrary/MacOSX-10.4-ppc/Release/include/actIBlockCipher.h +++ b/actlibrary/include/actIBlockCipher.h @@ -1,53 +1,53 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actIBlockCipher.h -// Product: cv act library -// Purpose: The class IBlockCipher creates the symmetric BlockCypher, which is -// defined by IBockCipherKey and IBlockCipherMode. It offers operations -// like encrypt, decrypt and queries involving validity or keylength etc. -// -// Copyright: (c) 2000 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_IBlockCipher_h -#define ACT_IBlockCipher_h - -#include "actBasics.h" -#include - -namespace act -{ - - class Blob; - - class IBlockCipher - { - public: - virtual IBlockCipher* Clone() const =0; - virtual void Import( const Blob& indata ) =0; - virtual void Export( Blob& outdata ) const =0; - - virtual void SetRawKey( const Blob& keyblob ) =0; - virtual void GetRawKey( Blob& keyblob ) const =0; - - virtual void Encrypt(const byte* in,byte* out) const =0; - virtual void Decrypt(const byte* in,byte* out) const =0; - - virtual size_t GetKeySize(size_t keysize=0) const =0; - virtual size_t GetMinKeySize() const =0; - virtual size_t GetMaxKeySize() const =0; - virtual size_t GetNextKeySize(size_t prevsize) const =0; - virtual size_t GetBlockSize() const =0; - - virtual void* GetCreatePointer() const =0; - - virtual ~IBlockCipher() {}; - }; - - -}// namespace act - -#endif - +////////////////////////////////////////////////////////////////////////////////// +// Name: actIBlockCipher.h +// Product: cv act library +// Purpose: The class IBlockCipher creates the symmetric BlockCypher, which is +// defined by IBockCipherKey and IBlockCipherMode. It offers operations +// like encrypt, decrypt and queries involving validity or keylength etc. +// +// Copyright: (c) 2000 cv cryptovision GmbH +// all rights reserved +// Licence: The conditions for the use of this software are regulated +// in the cv act library licence agreement. +////////////////////////////////////////////////////////////////////////////////// + +#ifndef ACT_IBlockCipher_h +#define ACT_IBlockCipher_h + +#include "actBasics.h" +#include + +namespace act +{ + + class Blob; + + class IBlockCipher + { + public: + virtual IBlockCipher* Clone() const =0; + virtual void Import( const Blob& indata ) =0; + virtual void Export( Blob& outdata ) const =0; + + virtual void SetRawKey( const Blob& keyblob ) =0; + virtual void GetRawKey( Blob& keyblob ) const =0; + + virtual void Encrypt(const byte* in,byte* out) const =0; + virtual void Decrypt(const byte* in,byte* out) const =0; + + virtual size_t GetKeySize(size_t keysize=0) const =0; + virtual size_t GetMinKeySize() const =0; + virtual size_t GetMaxKeySize() const =0; + virtual size_t GetNextKeySize(size_t prevsize) const =0; + virtual size_t GetBlockSize() const =0; + + virtual void* GetCreatePointer() const =0; + + virtual ~IBlockCipher() {}; + }; + + +}// namespace act + +#endif + diff --git a/actlibrary/MacOSX-10.6-x86_64/Release/include/actIBlockCipherKey.h b/actlibrary/include/actIBlockCipherKey.h similarity index 96% rename from actlibrary/MacOSX-10.6-x86_64/Release/include/actIBlockCipherKey.h rename to actlibrary/include/actIBlockCipherKey.h index 3b93cd7..8a6ea80 100644 --- a/actlibrary/MacOSX-10.6-x86_64/Release/include/actIBlockCipherKey.h +++ b/actlibrary/include/actIBlockCipherKey.h @@ -1,48 +1,48 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actIBlockCipherKey.h -// Product: cv act library -// Purpose: The class IBlockCipherKey extends the interface of the class IKey -// and supports the peculiarities of symmetric keys. -// -// -// Copyright: (c) 2000 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_IBlockCipherKey_h -#define ACT_IBlockCipherKey_h - -#include "actIKey.h" - -namespace act -{ - class IPadding; - class IBlockCipher; - class IBlockCipherMode; - class IDerivator; - - class IBlockCipherKey : public IKey - { - public: - virtual void SetPadding(IPadding* padding) = 0; - virtual const IPadding* GetPadding() const = 0; - virtual IPadding* GetPadding() = 0; - - virtual void SetCipher(IBlockCipher* cipher) = 0; - virtual const IBlockCipher* GetCipher() const = 0; - virtual IBlockCipher* GetCipher() = 0; - - virtual void SetMode(IBlockCipherMode* mode) = 0; - virtual const IBlockCipherMode* GetMode() const = 0; - virtual IBlockCipherMode* GetMode() = 0; - - virtual void SetDerivator(IDerivator* derive) = 0; - virtual const IDerivator* GetDerivator() const = 0; - virtual IDerivator* GetDerivator() = 0; - }; - -} //namespace act - -#endif // ACT_IBlockCipherKey_h +////////////////////////////////////////////////////////////////////////////////// +// Name: actIBlockCipherKey.h +// Product: cv act library +// Purpose: The class IBlockCipherKey extends the interface of the class IKey +// and supports the peculiarities of symmetric keys. +// +// +// Copyright: (c) 2000 cv cryptovision GmbH +// all rights reserved +// Licence: The conditions for the use of this software are regulated +// in the cv act library licence agreement. +////////////////////////////////////////////////////////////////////////////////// + +#ifndef ACT_IBlockCipherKey_h +#define ACT_IBlockCipherKey_h + +#include "actIKey.h" + +namespace act +{ + class IPadding; + class IBlockCipher; + class IBlockCipherMode; + class IDerivator; + + class IBlockCipherKey : public IKey + { + public: + virtual void SetPadding(IPadding* padding) = 0; + virtual const IPadding* GetPadding() const = 0; + virtual IPadding* GetPadding() = 0; + + virtual void SetCipher(IBlockCipher* cipher) = 0; + virtual const IBlockCipher* GetCipher() const = 0; + virtual IBlockCipher* GetCipher() = 0; + + virtual void SetMode(IBlockCipherMode* mode) = 0; + virtual const IBlockCipherMode* GetMode() const = 0; + virtual IBlockCipherMode* GetMode() = 0; + + virtual void SetDerivator(IDerivator* derive) = 0; + virtual const IDerivator* GetDerivator() const = 0; + virtual IDerivator* GetDerivator() = 0; + }; + +} //namespace act + +#endif // ACT_IBlockCipherKey_h diff --git a/actlibrary/MacOSX-10.4-ppc/Release/include/actIBlockCipherMode.h b/actlibrary/include/actIBlockCipherMode.h similarity index 97% rename from actlibrary/MacOSX-10.4-ppc/Release/include/actIBlockCipherMode.h rename to actlibrary/include/actIBlockCipherMode.h index c6f5267..8db4cf2 100644 --- a/actlibrary/MacOSX-10.4-ppc/Release/include/actIBlockCipherMode.h +++ b/actlibrary/include/actIBlockCipherMode.h @@ -1,45 +1,45 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actIBlockCipherMode.h -// Product: cv act library -// Purpose: By using this interface every blockcipher-algorithm can be run in -// the modes CBC or ECB. Other modes e.g. OFB or CFB are supported. -// -// Copyright: (c) 2000 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_IBlockCipherMode_h -#define ACT_IBlockCipherMode_h - -#include "actBasics.h" - -namespace act -{ - class IBlockCipher; - class IAlgorithm; - class IPadding; - class Blob; - - class IBlockCipherMode - { - public: - virtual IBlockCipherMode* Clone() const =0; - virtual void Import(const Blob& indata) =0; - virtual void Export(Blob& outdata) const =0; - virtual void SetParam(paramid_t id, const Blob &blob) =0; - virtual void SetParam(paramid_t id, int val) =0; - virtual void SetParam(paramid_t id, const char* cstr) =0; - virtual int GetParam(paramid_t) const =0; - virtual void GetParam(paramid_t, Blob &blob) const =0; - virtual IAlgorithm* CreateEncAlgorithm(IBlockCipher* cipher, IPadding* padding, const Blob& iv) const=0; - virtual IAlgorithm* CreateDecAlgorithm(IBlockCipher* cipher, IPadding* padding) const=0; - virtual void* GetCreatePointer() const=0; - virtual ~IBlockCipherMode() {} - }; -} // namespace act - -#endif - - +////////////////////////////////////////////////////////////////////////////////// +// Name: actIBlockCipherMode.h +// Product: cv act library +// Purpose: By using this interface every blockcipher-algorithm can be run in +// the modes CBC or ECB. Other modes e.g. OFB or CFB are supported. +// +// Copyright: (c) 2000 cv cryptovision GmbH +// all rights reserved +// Licence: The conditions for the use of this software are regulated +// in the cv act library licence agreement. +////////////////////////////////////////////////////////////////////////////////// + +#ifndef ACT_IBlockCipherMode_h +#define ACT_IBlockCipherMode_h + +#include "actBasics.h" + +namespace act +{ + class IBlockCipher; + class IAlgorithm; + class IPadding; + class Blob; + + class IBlockCipherMode + { + public: + virtual IBlockCipherMode* Clone() const =0; + virtual void Import(const Blob& indata) =0; + virtual void Export(Blob& outdata) const =0; + virtual void SetParam(paramid_t id, const Blob &blob) =0; + virtual void SetParam(paramid_t id, int val) =0; + virtual void SetParam(paramid_t id, const char* cstr) =0; + virtual int GetParam(paramid_t) const =0; + virtual void GetParam(paramid_t, Blob &blob) const =0; + virtual IAlgorithm* CreateEncAlgorithm(IBlockCipher* cipher, IPadding* padding, const Blob& iv) const=0; + virtual IAlgorithm* CreateDecAlgorithm(IBlockCipher* cipher, IPadding* padding) const=0; + virtual void* GetCreatePointer() const=0; + virtual ~IBlockCipherMode() {} + }; +} // namespace act + +#endif + + diff --git a/actlibrary/MacOSX-10.5-x86_64/Release/include/actICBCMACKey.h b/actlibrary/include/actICBCMACKey.h similarity index 96% rename from actlibrary/MacOSX-10.5-x86_64/Release/include/actICBCMACKey.h rename to actlibrary/include/actICBCMACKey.h index d8dbe6c..d203f13 100644 --- a/actlibrary/MacOSX-10.5-x86_64/Release/include/actICBCMACKey.h +++ b/actlibrary/include/actICBCMACKey.h @@ -1,31 +1,31 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actICBCMACKey.h -// Product: cv act library -// Purpose: interface for the class CBCMAC. -// -// Copyright: (c) 2000 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_ICBCMACKey_h -#define ACT_ICBCMACKey_h - -#include "actIMACKey.h" - -namespace act -{ - class IBlockCipher; - - class ICBCMACKey : public IMACKey - { - public: - virtual void SetCipher(IBlockCipher* cipher) = 0; - virtual const IBlockCipher* GetCipher() const = 0; - virtual IBlockCipher* GetCipher() = 0; - }; - -} // namespace act - -#endif // ACT_ICBCMACKey_h +////////////////////////////////////////////////////////////////////////////////// +// Name: actICBCMACKey.h +// Product: cv act library +// Purpose: interface for the class CBCMAC. +// +// Copyright: (c) 2000 cv cryptovision GmbH +// all rights reserved +// Licence: The conditions for the use of this software are regulated +// in the cv act library licence agreement. +////////////////////////////////////////////////////////////////////////////////// + +#ifndef ACT_ICBCMACKey_h +#define ACT_ICBCMACKey_h + +#include "actIMACKey.h" + +namespace act +{ + class IBlockCipher; + + class ICBCMACKey : public IMACKey + { + public: + virtual void SetCipher(IBlockCipher* cipher) = 0; + virtual const IBlockCipher* GetCipher() const = 0; + virtual IBlockCipher* GetCipher() = 0; + }; + +} // namespace act + +#endif // ACT_ICBCMACKey_h diff --git a/actlibrary/MacOSX-10.4-ppc/Release/include/actICRL.h b/actlibrary/include/actICRL.h similarity index 96% rename from actlibrary/MacOSX-10.4-ppc/Release/include/actICRL.h rename to actlibrary/include/actICRL.h index 2bb598b..1f1fc81 100644 --- a/actlibrary/MacOSX-10.4-ppc/Release/include/actICRL.h +++ b/actlibrary/include/actICRL.h @@ -1,51 +1,51 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actICRL.h -// Product: cv act library -// Purpose: The abstract class ICRL (Certificate Revocation List) can be used -// to check whether a certificate has been revoked. -// -// Copyright: (c) 2000 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_ICRL_h -#define ACT_ICRL_h - -namespace act -{ - class IKey; - class ICertificate; - class Blob; - - class ICRL - { - public: - - virtual ICRL* Clone() const=0; - virtual void Import(const Blob& crlblob)=0; - virtual void Export(Blob& crlblob) const =0; - virtual void SetParam(paramid_t id,const Blob& blob) =0; - virtual void SetParam(paramid_t id,int val) =0; - virtual void SetParam(paramid_t id,const char* cstr) =0; - virtual void GetParam(paramid_t id,Blob& blob) const =0; - virtual int GetParam(paramid_t) const =0; - - virtual void Revoke(const ICertificate* cert) =0; - virtual bool IsRevoked(const ICertificate* Cert) const =0; - virtual void RemoveRevokation(const ICertificate* cert) =0; - - virtual void Revoke(const Blob& blob) = 0; - virtual bool IsRevoked(const Blob& blob) const = 0; - virtual void RemoveRevokation(const Blob& blob) = 0; - - virtual void Sign(const IKey* privkey) =0; - virtual int Verify(const IKey* pubkey) const =0; - virtual void* GetCreatePointer() const=0; - virtual ~ICRL() {}; - }; -} // namespace act - -#endif - +////////////////////////////////////////////////////////////////////////////////// +// Name: actICRL.h +// Product: cv act library +// Purpose: The abstract class ICRL (Certificate Revocation List) can be used +// to check whether a certificate has been revoked. +// +// Copyright: (c) 2000 cv cryptovision GmbH +// all rights reserved +// Licence: The conditions for the use of this software are regulated +// in the cv act library licence agreement. +////////////////////////////////////////////////////////////////////////////////// + +#ifndef ACT_ICRL_h +#define ACT_ICRL_h + +namespace act +{ + class IKey; + class ICertificate; + class Blob; + + class ICRL + { + public: + + virtual ICRL* Clone() const=0; + virtual void Import(const Blob& crlblob)=0; + virtual void Export(Blob& crlblob) const =0; + virtual void SetParam(paramid_t id,const Blob& blob) =0; + virtual void SetParam(paramid_t id,int val) =0; + virtual void SetParam(paramid_t id,const char* cstr) =0; + virtual void GetParam(paramid_t id,Blob& blob) const =0; + virtual int GetParam(paramid_t) const =0; + + virtual void Revoke(const ICertificate* cert) =0; + virtual bool IsRevoked(const ICertificate* Cert) const =0; + virtual void RemoveRevokation(const ICertificate* cert) =0; + + virtual void Revoke(const Blob& blob) = 0; + virtual bool IsRevoked(const Blob& blob) const = 0; + virtual void RemoveRevokation(const Blob& blob) = 0; + + virtual void Sign(const IKey* privkey) =0; + virtual int Verify(const IKey* pubkey) const =0; + virtual void* GetCreatePointer() const=0; + virtual ~ICRL() {}; + }; +} // namespace act + +#endif + diff --git a/actlibrary/MacOSX-10.4-ppc/Release/include/actICertificate.h b/actlibrary/include/actICertificate.h similarity index 96% rename from actlibrary/MacOSX-10.4-ppc/Release/include/actICertificate.h rename to actlibrary/include/actICertificate.h index eadfe0b..d16d05a 100644 --- a/actlibrary/MacOSX-10.4-ppc/Release/include/actICertificate.h +++ b/actlibrary/include/actICertificate.h @@ -1,44 +1,44 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actICertificate.h -// Product: cv act library -// Purpose: The abstract class ICertificate enables access to a certificate, e.g. -// its public key and the corresponding validity. -// -// Copyright: (c) 2000 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_ICertificate_h -#define ACT_ICertificate_h - -#include "actBasics.h" -#include "actIParam.h" - -namespace act -{ - class IKey; - class Blob; - - class ICertificate : public IParam - { - public: - virtual ~ICertificate() { }; - - virtual ICertificate* Clone() const = 0; - virtual void Import(const Blob& certblob) = 0; - virtual void Export(Blob& certblob) const = 0; - - virtual void SetPublicKey(const IKey* pubkey) = 0; - virtual IKey* CreatePublicKey(const char* = 0) const = 0; - - virtual void Sign(const IKey* privkey) = 0; - virtual int Verify(const IKey* pubkey) const = 0; - - virtual void* GetCreatePointer() const = 0; - }; - -} // namespace act - -#endif // ACT_ICertificate_h +////////////////////////////////////////////////////////////////////////////////// +// Name: actICertificate.h +// Product: cv act library +// Purpose: The abstract class ICertificate enables access to a certificate, e.g. +// its public key and the corresponding validity. +// +// Copyright: (c) 2000 cv cryptovision GmbH +// all rights reserved +// Licence: The conditions for the use of this software are regulated +// in the cv act library licence agreement. +////////////////////////////////////////////////////////////////////////////////// + +#ifndef ACT_ICertificate_h +#define ACT_ICertificate_h + +#include "actBasics.h" +#include "actIParam.h" + +namespace act +{ + class IKey; + class Blob; + + class ICertificate : public IParam + { + public: + virtual ~ICertificate() { }; + + virtual ICertificate* Clone() const = 0; + virtual void Import(const Blob& certblob) = 0; + virtual void Export(Blob& certblob) const = 0; + + virtual void SetPublicKey(const IKey* pubkey) = 0; + virtual IKey* CreatePublicKey(const char* = 0) const = 0; + + virtual void Sign(const IKey* privkey) = 0; + virtual int Verify(const IKey* pubkey) const = 0; + + virtual void* GetCreatePointer() const = 0; + }; + +} // namespace act + +#endif // ACT_ICertificate_h diff --git a/actlibrary/MacOSX-10.5-x86_64/Release/include/actIDerivator.h b/actlibrary/include/actIDerivator.h similarity index 96% rename from actlibrary/MacOSX-10.5-x86_64/Release/include/actIDerivator.h rename to actlibrary/include/actIDerivator.h index e8b7140..807c0f6 100644 --- a/actlibrary/MacOSX-10.5-x86_64/Release/include/actIDerivator.h +++ b/actlibrary/include/actIDerivator.h @@ -1,45 +1,45 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actIDerivator.h -// Product: cv act library -// Purpose: This interface provides a shared secret key (the last step in -// a Key Agreement Scheme). -// -// Copyright: (c) 2006 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_IDerivator_h -#define ACT_IDerivator_h - -#include"actBasics.h" - -namespace act -{ - class Blob; - - class IDerivator - { - public: - virtual IDerivator* Clone() const=0; - - virtual void Import(const Blob &blob)=0; - virtual void Export(Blob &blob) const=0; - - virtual void SetParam(paramid_t id,const Blob &blob)=0; - virtual void SetParam(paramid_t id,int val)=0; - virtual void SetParam(paramid_t id,const char* cstr)=0; - virtual void GetParam(paramid_t id,Blob &blob) const=0; - virtual int GetParam(paramid_t) const=0; - - virtual void Derive(const Blob& secret, const Blob& salt, Blob& keymat) const=0; - - virtual void* GetCreatePointer() const =0; - virtual ~IDerivator() {} - }; -} // namespace act - -#endif - - +////////////////////////////////////////////////////////////////////////////////// +// Name: actIDerivator.h +// Product: cv act library +// Purpose: This interface provides a shared secret key (the last step in +// a Key Agreement Scheme). +// +// Copyright: (c) 2006 cv cryptovision GmbH +// all rights reserved +// Licence: The conditions for the use of this software are regulated +// in the cv act library licence agreement. +////////////////////////////////////////////////////////////////////////////////// + +#ifndef ACT_IDerivator_h +#define ACT_IDerivator_h + +#include"actBasics.h" + +namespace act +{ + class Blob; + + class IDerivator + { + public: + virtual IDerivator* Clone() const=0; + + virtual void Import(const Blob &blob)=0; + virtual void Export(Blob &blob) const=0; + + virtual void SetParam(paramid_t id,const Blob &blob)=0; + virtual void SetParam(paramid_t id,int val)=0; + virtual void SetParam(paramid_t id,const char* cstr)=0; + virtual void GetParam(paramid_t id,Blob &blob) const=0; + virtual int GetParam(paramid_t) const=0; + + virtual void Derive(const Blob& secret, const Blob& salt, Blob& keymat) const=0; + + virtual void* GetCreatePointer() const =0; + virtual ~IDerivator() {} + }; +} // namespace act + +#endif + + diff --git a/actlibrary/MacOSX-10.4-ppc/Release/include/actIDerivatorWithHash.h b/actlibrary/include/actIDerivatorWithHash.h similarity index 96% rename from actlibrary/MacOSX-10.4-ppc/Release/include/actIDerivatorWithHash.h rename to actlibrary/include/actIDerivatorWithHash.h index b1bdaf9..081ec16 100644 --- a/actlibrary/MacOSX-10.4-ppc/Release/include/actIDerivatorWithHash.h +++ b/actlibrary/include/actIDerivatorWithHash.h @@ -1,33 +1,33 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actIDerivatorWithHash.h -// Product: cv act library -// Purpose: The abstract class IDerivatorWithHash is derived from IDerivator and -// uses hash algorithms. -// -// Copyright: (c) 2000 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_IDerivatorWithHash_h -#define ACT_IDerivatorWithHash_h - -#include "actIDerivator.h" - -namespace act -{ - class IHashAlg; - - class IDerivatorWithHash : public IDerivator - { - public: - virtual void SetHash(IHashAlg* hash) =0; - virtual const IHashAlg* GetHash() const =0; - virtual IHashAlg* GetHash() =0; - }; -} // namespace act - -#endif - - +////////////////////////////////////////////////////////////////////////////////// +// Name: actIDerivatorWithHash.h +// Product: cv act library +// Purpose: The abstract class IDerivatorWithHash is derived from IDerivator and +// uses hash algorithms. +// +// Copyright: (c) 2000 cv cryptovision GmbH +// all rights reserved +// Licence: The conditions for the use of this software are regulated +// in the cv act library licence agreement. +////////////////////////////////////////////////////////////////////////////////// + +#ifndef ACT_IDerivatorWithHash_h +#define ACT_IDerivatorWithHash_h + +#include "actIDerivator.h" + +namespace act +{ + class IHashAlg; + + class IDerivatorWithHash : public IDerivator + { + public: + virtual void SetHash(IHashAlg* hash) =0; + virtual const IHashAlg* GetHash() const =0; + virtual IHashAlg* GetHash() =0; + }; +} // namespace act + +#endif + + diff --git a/actlibrary/MacOSX-10.6-x86_64/Release/include/actIEMSAAlg.h b/actlibrary/include/actIEMSAAlg.h similarity index 96% rename from actlibrary/MacOSX-10.6-x86_64/Release/include/actIEMSAAlg.h rename to actlibrary/include/actIEMSAAlg.h index 0aaec1d..3d3ecaf 100644 --- a/actlibrary/MacOSX-10.6-x86_64/Release/include/actIEMSAAlg.h +++ b/actlibrary/include/actIEMSAAlg.h @@ -1,49 +1,49 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actIEMSAAlg.h -// Product: cv act library -// Purpose: IEMSAAlg (Encoding Methods for Signatures with Appendix) is an -// abstract class derived from IAlgorithm. Encoding methods do not -// use keys. These algorithms prepare the data to sign. They can be -// implemented with or without hash functions. -// -// Copyright: (c) 2000 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_IEMSAAlg_h -#define ACT_IEMSAAlg_h - -#include "actBasics.h" -#include "actIAlgorithm.h" - -namespace act -{ - - class IEMSAAlg : public IAlgorithm - { - public: - virtual IEMSAAlg* Clone() const =0; - - virtual void Import(const Blob &blob) =0; - virtual void Export(Blob &blob) const =0; - virtual void SetParam(paramid_t id,const Blob &blob) =0; - virtual void SetParam(paramid_t id,int val) =0; - virtual void SetParam(paramid_t id,const char* cstr) =0; - virtual void GetParam(paramid_t id,Blob &blob) const =0; - virtual int GetParam(paramid_t) const =0; - - virtual void Reset(size_t sizeinbits) =0; - - virtual void* GetCreatePointer() const =0; - - virtual bool Verify(const Blob &em, const Blob &sig_inv) =0; - - virtual ~IEMSAAlg(){} - }; -} // namespace act - -#endif - - +////////////////////////////////////////////////////////////////////////////////// +// Name: actIEMSAAlg.h +// Product: cv act library +// Purpose: IEMSAAlg (Encoding Methods for Signatures with Appendix) is an +// abstract class derived from IAlgorithm. Encoding methods do not +// use keys. These algorithms prepare the data to sign. They can be +// implemented with or without hash functions. +// +// Copyright: (c) 2000 cv cryptovision GmbH +// all rights reserved +// Licence: The conditions for the use of this software are regulated +// in the cv act library licence agreement. +////////////////////////////////////////////////////////////////////////////////// + +#ifndef ACT_IEMSAAlg_h +#define ACT_IEMSAAlg_h + +#include "actBasics.h" +#include "actIAlgorithm.h" + +namespace act +{ + + class IEMSAAlg : public IAlgorithm + { + public: + virtual IEMSAAlg* Clone() const =0; + + virtual void Import(const Blob &blob) =0; + virtual void Export(Blob &blob) const =0; + virtual void SetParam(paramid_t id,const Blob &blob) =0; + virtual void SetParam(paramid_t id,int val) =0; + virtual void SetParam(paramid_t id,const char* cstr) =0; + virtual void GetParam(paramid_t id,Blob &blob) const =0; + virtual int GetParam(paramid_t) const =0; + + virtual void Reset(size_t sizeinbits) =0; + + virtual void* GetCreatePointer() const =0; + + virtual bool Verify(const Blob &em, const Blob &sig_inv) =0; + + virtual ~IEMSAAlg(){} + }; +} // namespace act + +#endif + + diff --git a/actlibrary/MacOSX-10.6-x86_64/Release/include/actIEMSAWithHashAlg.h b/actlibrary/include/actIEMSAWithHashAlg.h similarity index 96% rename from actlibrary/MacOSX-10.6-x86_64/Release/include/actIEMSAWithHashAlg.h rename to actlibrary/include/actIEMSAWithHashAlg.h index 9a928c1..79d73c3 100644 --- a/actlibrary/MacOSX-10.6-x86_64/Release/include/actIEMSAWithHashAlg.h +++ b/actlibrary/include/actIEMSAWithHashAlg.h @@ -1,34 +1,34 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actIEMSAWithHashAlg.h -// Product: cv act library -// Purpose: IEMSAWithHashAlg is the abstract class derived from IEMSAAlg -// which provides access on the aggregated hashobject of an -// EMSA-object. -// -// Copyright: (c) 2000 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_IEMSAWithHashAlg_h -#define ACT_IEMSAWithHashAlg_h - -#include "actIEMSAAlg.h" - -namespace act -{ - class IHashAlg; - - class IEMSAWithHashAlg : public IEMSAAlg - { - public: - virtual void SetHash(IHashAlg* hash) =0; - virtual const IHashAlg* GetHash() const =0; - virtual IHashAlg* GetHash() =0; - }; -} // namespace act - -#endif - - +////////////////////////////////////////////////////////////////////////////////// +// Name: actIEMSAWithHashAlg.h +// Product: cv act library +// Purpose: IEMSAWithHashAlg is the abstract class derived from IEMSAAlg +// which provides access on the aggregated hashobject of an +// EMSA-object. +// +// Copyright: (c) 2000 cv cryptovision GmbH +// all rights reserved +// Licence: The conditions for the use of this software are regulated +// in the cv act library licence agreement. +////////////////////////////////////////////////////////////////////////////////// + +#ifndef ACT_IEMSAWithHashAlg_h +#define ACT_IEMSAWithHashAlg_h + +#include "actIEMSAAlg.h" + +namespace act +{ + class IHashAlg; + + class IEMSAWithHashAlg : public IEMSAAlg + { + public: + virtual void SetHash(IHashAlg* hash) =0; + virtual const IHashAlg* GetHash() const =0; + virtual IHashAlg* GetHash() =0; + }; +} // namespace act + +#endif + + diff --git a/actlibrary/MacOSX-10.6-x86_64/Release/include/actIEventHandler.h b/actlibrary/include/actIEventHandler.h similarity index 96% rename from actlibrary/MacOSX-10.6-x86_64/Release/include/actIEventHandler.h rename to actlibrary/include/actIEventHandler.h index 115662f..cac7704 100644 --- a/actlibrary/MacOSX-10.6-x86_64/Release/include/actIEventHandler.h +++ b/actlibrary/include/actIEventHandler.h @@ -1,54 +1,54 @@ -// --------------------------------------------------------------------------- -// Name: actIEventHandler.h -// Product: cv act library -// Purpose: Interfaces required to receive token, slot or subsystem events -// -// Copyright: (c) 2002 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -// -// Autor: Dr. Xiangdong Wang (XWG) -// Markus Tesche -// Date: 03/26/2002 -// --------------------------------------------------------------------------- - -#ifndef ACT_IEventHandler_h -#define ACT_IEventHandler_h - -#include "actTypeTags.h" -#include "actIRefCounted.h" - -namespace act -{ - enum EventCode - { - TOKEN_REMOVED = 0x00000010, - TOKEN_INSERTED = 0x00000020, - SLOT_REMOVED = 0x00000040, - SLOT_INSERTED = 0x00000080, - SUBSYSTEM_STOPPED = 0x00000100, - SUBSYSTEM_STARTED = 0x00000200, - MONITORING_STOPPED = 0x00000400, - MONITORING_STARTED = 0x00000800, - MONITORING_ERROR = 0x80000000, - }; - - class ISubsystem; - class IEventMonitoring; - - // - // IEventHandler - class IEventHandler : public IRefCounted - { - public: - virtual IEventHandler* Clone() = 0; - virtual void Source(IEventMonitoring* source) = 0; - virtual void OnEvent(int event, ISubsystem* source) = 0; - }; - - typedef TypeTag TagEH; - -} // namespace act - -#endif // ACT_IEventHandler_h +// --------------------------------------------------------------------------- +// Name: actIEventHandler.h +// Product: cv act library +// Purpose: Interfaces required to receive token, slot or subsystem events +// +// Copyright: (c) 2002 cv cryptovision GmbH +// all rights reserved +// Licence: The conditions for the use of this software are regulated +// in the cv act library licence agreement. +// +// Autor: Dr. Xiangdong Wang (XWG) +// Markus Tesche +// Date: 03/26/2002 +// --------------------------------------------------------------------------- + +#ifndef ACT_IEventHandler_h +#define ACT_IEventHandler_h + +#include "actTypeTags.h" +#include "actIRefCounted.h" + +namespace act +{ + enum EventCode + { + TOKEN_REMOVED = 0x00000010, + TOKEN_INSERTED = 0x00000020, + SLOT_REMOVED = 0x00000040, + SLOT_INSERTED = 0x00000080, + SUBSYSTEM_STOPPED = 0x00000100, + SUBSYSTEM_STARTED = 0x00000200, + MONITORING_STOPPED = 0x00000400, + MONITORING_STARTED = 0x00000800, + MONITORING_ERROR = 0x80000000, + }; + + class ISubsystem; + class IEventMonitoring; + + // + // IEventHandler + class IEventHandler : public IRefCounted + { + public: + virtual IEventHandler* Clone() = 0; + virtual void Source(IEventMonitoring* source) = 0; + virtual void OnEvent(int event, ISubsystem* source) = 0; + }; + + typedef TypeTag TagEH; + +} // namespace act + +#endif // ACT_IEventHandler_h diff --git a/actlibrary/MacOSX-10.4-ppc/Release/include/actIEventMonitoring.h b/actlibrary/include/actIEventMonitoring.h similarity index 96% rename from actlibrary/MacOSX-10.4-ppc/Release/include/actIEventMonitoring.h rename to actlibrary/include/actIEventMonitoring.h index 0aee7db..b90889c 100644 --- a/actlibrary/MacOSX-10.4-ppc/Release/include/actIEventMonitoring.h +++ b/actlibrary/include/actIEventMonitoring.h @@ -1,36 +1,36 @@ -// --------------------------------------------------------------------------- -// Name: actIEventMonitoring.h -// Product: cv act library -// Purpose: Interface for event monitoring enabled objects. -// -// Copyright: (c) 2010 cv cryptovision GmbH -// all rights reserved. -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -// -// Autor: Markus Tesche (MTE) -// Date: 08/20/2010 -// --------------------------------------------------------------------------- - -#ifndef ACT_IEventMonitoring_h -#define ACT_IEventMonitoring_h - -namespace act -{ - class IEventHandler; - - // - // IEventMonitoring - class IEventMonitoring - { - public: - virtual ~IEventMonitoring() { } - - virtual bool IsMonitored() const = 0; - virtual void StopMonitor(bool force = false) = 0; - virtual void StartMonitor(IEventHandler* cmd) = 0; - }; - -} // namespace act - -#endif // ACT_IEventMonitoring_h +// --------------------------------------------------------------------------- +// Name: actIEventMonitoring.h +// Product: cv act library +// Purpose: Interface for event monitoring enabled objects. +// +// Copyright: (c) 2010 cv cryptovision GmbH +// all rights reserved. +// Licence: The conditions for the use of this software are regulated +// in the cv act library licence agreement. +// +// Autor: Markus Tesche (MTE) +// Date: 08/20/2010 +// --------------------------------------------------------------------------- + +#ifndef ACT_IEventMonitoring_h +#define ACT_IEventMonitoring_h + +namespace act +{ + class IEventHandler; + + // + // IEventMonitoring + class IEventMonitoring + { + public: + virtual ~IEventMonitoring() { } + + virtual bool IsMonitored() const = 0; + virtual void StopMonitor(bool force = false) = 0; + virtual void StartMonitor(IEventHandler* cmd) = 0; + }; + +} // namespace act + +#endif // ACT_IEventMonitoring_h diff --git a/actlibrary/MacOSX-10.5-x86_64/Release/include/actIHashAlg.h b/actlibrary/include/actIHashAlg.h similarity index 96% rename from actlibrary/MacOSX-10.5-x86_64/Release/include/actIHashAlg.h rename to actlibrary/include/actIHashAlg.h index 8620c51..62ee8f9 100644 --- a/actlibrary/MacOSX-10.5-x86_64/Release/include/actIHashAlg.h +++ b/actlibrary/include/actIHashAlg.h @@ -1,42 +1,42 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actIHashAlg.h -// Product: cv act library -// Purpose: IHashAlg is an abstract base class, which provides the interface -// of all hash-algorithms. -// -// Copyright: (c) 2000 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_IHASHALG_H -#define ACT_IHASHALG_H - -#include "actIAlgorithm.h" - -namespace act -{ - - class IHashAlg : public IAlgorithm - { - public: - virtual IHashAlg* Clone() const =0; - virtual void Import(const Blob& indata) =0; - virtual void Export(Blob& outdata) const =0; - virtual void SetParam(paramid_t id,const Blob &blob) =0; - virtual void SetParam(paramid_t id,int val) =0; - virtual void SetParam(paramid_t id,const char* cstr) =0; - virtual void GetParam(paramid_t id,Blob &blob) const =0; - virtual int GetParam(paramid_t) const =0; - virtual size_t GetBlockSize() const = 0; - virtual size_t GetHashSize() const = 0; - virtual void Reset() =0; - virtual void* GetCreatePointer() const =0; - virtual ~IHashAlg() {} - }; - -} // namespace act -#endif - - +////////////////////////////////////////////////////////////////////////////////// +// Name: actIHashAlg.h +// Product: cv act library +// Purpose: IHashAlg is an abstract base class, which provides the interface +// of all hash-algorithms. +// +// Copyright: (c) 2000 cv cryptovision GmbH +// all rights reserved +// Licence: The conditions for the use of this software are regulated +// in the cv act library licence agreement. +////////////////////////////////////////////////////////////////////////////////// + +#ifndef ACT_IHASHALG_H +#define ACT_IHASHALG_H + +#include "actIAlgorithm.h" + +namespace act +{ + + class IHashAlg : public IAlgorithm + { + public: + virtual IHashAlg* Clone() const =0; + virtual void Import(const Blob& indata) =0; + virtual void Export(Blob& outdata) const =0; + virtual void SetParam(paramid_t id,const Blob &blob) =0; + virtual void SetParam(paramid_t id,int val) =0; + virtual void SetParam(paramid_t id,const char* cstr) =0; + virtual void GetParam(paramid_t id,Blob &blob) const =0; + virtual int GetParam(paramid_t) const =0; + virtual size_t GetBlockSize() const = 0; + virtual size_t GetHashSize() const = 0; + virtual void Reset() =0; + virtual void* GetCreatePointer() const =0; + virtual ~IHashAlg() {} + }; + +} // namespace act +#endif + + diff --git a/actlibrary/MacOSX-10.4-ppc/Release/include/actIHashMACKey.h b/actlibrary/include/actIHashMACKey.h similarity index 96% rename from actlibrary/MacOSX-10.4-ppc/Release/include/actIHashMACKey.h rename to actlibrary/include/actIHashMACKey.h index 29719fe..4089147 100644 --- a/actlibrary/MacOSX-10.4-ppc/Release/include/actIHashMACKey.h +++ b/actlibrary/include/actIHashMACKey.h @@ -1,32 +1,32 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actIHashMacKey.h -// Product: cv act library -// Purpose: interface for the class HashMAC -// -// Copyright: (c) 2000 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_IHashMACKey_h -#define ACT_IHashMACKey_h - -#include "actIMACKey.h" - -namespace act -{ - class IHashAlg; - - class IHashMACKey : public IMACKey - { - public: - virtual void SetHash(IHashAlg* cipher) =0; - virtual const IHashAlg* GetHash() const =0; - virtual IHashAlg* GetHash() =0; - }; - -} // namespace act - -#endif - +////////////////////////////////////////////////////////////////////////////////// +// Name: actIHashMacKey.h +// Product: cv act library +// Purpose: interface for the class HashMAC +// +// Copyright: (c) 2000 cv cryptovision GmbH +// all rights reserved +// Licence: The conditions for the use of this software are regulated +// in the cv act library licence agreement. +////////////////////////////////////////////////////////////////////////////////// + +#ifndef ACT_IHashMACKey_h +#define ACT_IHashMACKey_h + +#include "actIMACKey.h" + +namespace act +{ + class IHashAlg; + + class IHashMACKey : public IMACKey + { + public: + virtual void SetHash(IHashAlg* cipher) =0; + virtual const IHashAlg* GetHash() const =0; + virtual IHashAlg* GetHash() =0; + }; + +} // namespace act + +#endif + diff --git a/actlibrary/MacOSX-10.4-ppc/Release/include/actIIESKey.h b/actlibrary/include/actIIESKey.h similarity index 96% rename from actlibrary/MacOSX-10.4-ppc/Release/include/actIIESKey.h rename to actlibrary/include/actIIESKey.h index e54a7f4..392b4b5 100644 --- a/actlibrary/MacOSX-10.4-ppc/Release/include/actIIESKey.h +++ b/actlibrary/include/actIIESKey.h @@ -1,35 +1,35 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actIIESKey.h -// Product: cv act library -// Purpose: The interface IIESKey enables access to the aggregated objects of -// an IES-key, like DL-IES or EC-IES. -// -// Copyright: (c) 2000 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_IIESKey_H -#define ACT_IIESKey_H - -#include "actIKey.h" - -namespace act -{ - class IAgreementKey; - class IMACKey; - - class IIESKey : public IKey - { - public: - virtual void SetMAC(IMACKey* mac) =0; - virtual const IMACKey* GetMAC() const =0; - virtual IMACKey* GetMAC() =0; - virtual void SetAgreement(IAgreementKey* derivator) =0; - virtual const IAgreementKey* GetAgreement() const =0; - virtual IAgreementKey* GetAgreement() =0; - }; -} // act -#endif - +////////////////////////////////////////////////////////////////////////////////// +// Name: actIIESKey.h +// Product: cv act library +// Purpose: The interface IIESKey enables access to the aggregated objects of +// an IES-key, like DL-IES or EC-IES. +// +// Copyright: (c) 2000 cv cryptovision GmbH +// all rights reserved +// Licence: The conditions for the use of this software are regulated +// in the cv act library licence agreement. +////////////////////////////////////////////////////////////////////////////////// + +#ifndef ACT_IIESKey_H +#define ACT_IIESKey_H + +#include "actIKey.h" + +namespace act +{ + class IAgreementKey; + class IMACKey; + + class IIESKey : public IKey + { + public: + virtual void SetMAC(IMACKey* mac) =0; + virtual const IMACKey* GetMAC() const =0; + virtual IMACKey* GetMAC() =0; + virtual void SetAgreement(IAgreementKey* derivator) =0; + virtual const IAgreementKey* GetAgreement() const =0; + virtual IAgreementKey* GetAgreement() =0; + }; +} // act +#endif + diff --git a/actlibrary/MacOSX-10.6-x86_64/Release/include/actIKey.h b/actlibrary/include/actIKey.h similarity index 96% rename from actlibrary/MacOSX-10.6-x86_64/Release/include/actIKey.h rename to actlibrary/include/actIKey.h index 3ed1a9e..8104dfb 100644 --- a/actlibrary/MacOSX-10.6-x86_64/Release/include/actIKey.h +++ b/actlibrary/include/actIKey.h @@ -1,45 +1,45 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actIKey.h -// Product: cv act library -// Purpose: IKey is an abstract base class. All concrete Key-classes are -// derived from IKey. -// -// Copyright: (c) 2000 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_IKey_h -#define ACT_IKey_h - -#include "actIParam.h" -#include "actBlob.h" - -namespace act -{ - class IAlgorithm; - class IRNGAlg; - - class IKey : public IParam - { - public: - virtual ~IKey() { } - - virtual IKey* Clone() const = 0; - - virtual void Import(const Blob& keyblob) = 0; - virtual void Export(Blob& keyblob, export_t type = DEFAULT) const = 0; - - virtual void Generate(IRNGAlg* prng = 0) = 0; - virtual void Derive(const Blob& data, const Blob& salt = Blob()) = 0; - - virtual IAlgorithm* CreateAlgorithm(mode_t Mode) const = 0; - virtual IAlgorithm* CreateAlgorithm(mode_t Mode, const Blob& data) const = 0; - - virtual void* GetCreatePointer() const = 0; - }; - -} // namespace act - -#endif // ACT_IKey_h +////////////////////////////////////////////////////////////////////////////////// +// Name: actIKey.h +// Product: cv act library +// Purpose: IKey is an abstract base class. All concrete Key-classes are +// derived from IKey. +// +// Copyright: (c) 2000 cv cryptovision GmbH +// all rights reserved +// Licence: The conditions for the use of this software are regulated +// in the cv act library licence agreement. +////////////////////////////////////////////////////////////////////////////////// + +#ifndef ACT_IKey_h +#define ACT_IKey_h + +#include "actIParam.h" +#include "actBlob.h" + +namespace act +{ + class IAlgorithm; + class IRNGAlg; + + class IKey : public IParam + { + public: + virtual ~IKey() { } + + virtual IKey* Clone() const = 0; + + virtual void Import(const Blob& keyblob) = 0; + virtual void Export(Blob& keyblob, export_t type = DEFAULT) const = 0; + + virtual void Generate(IRNGAlg* prng = 0) = 0; + virtual void Derive(const Blob& data, const Blob& salt = Blob()) = 0; + + virtual IAlgorithm* CreateAlgorithm(mode_t Mode) const = 0; + virtual IAlgorithm* CreateAlgorithm(mode_t Mode, const Blob& data) const = 0; + + virtual void* GetCreatePointer() const = 0; + }; + +} // namespace act + +#endif // ACT_IKey_h diff --git a/actlibrary/MacOSX-10.5-x86_64/Release/include/actIKeyDerivation.h b/actlibrary/include/actIKeyDerivation.h similarity index 96% rename from actlibrary/MacOSX-10.5-x86_64/Release/include/actIKeyDerivation.h rename to actlibrary/include/actIKeyDerivation.h index f8909eb..5745ce2 100644 --- a/actlibrary/MacOSX-10.5-x86_64/Release/include/actIKeyDerivation.h +++ b/actlibrary/include/actIKeyDerivation.h @@ -1,70 +1,70 @@ -// --------------------------------------------------------------------------- -// Name: actIKeyDerivation.h -// Product: cv act library -// Purpose: IKeyDerivation for general prupose -// -// Copyright: (c) 2003-2010 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -// -// Autor: Ulrich Birkenhauer -// Markus Tesche -// Date: 07/05/2010 -// --------------------------------------------------------------------------- - -#ifndef ACT_IKeyDerivation_h -#define ACT_IKeyDerivation_h - -#include "actMove.h" -#include "actMode.h" - -#include "actIParam.h" -#include "actIRefCounted.h" - -namespace act -{ - enum KDParam - { - KD_DATA = SALT, - KD_HASH = HASH, - KD_SERIAL = SERIALNR, - KD_DERIVATOR = DERIVATOR, - KD_MODE = BCMODE, // key configuration - KD_PADDING = PADDING, // key configuration - }; - - enum KDMode - { - KD_MODE_DEFAULT = 0, - KD_MODE_CARD_MANAGER, - - KD_MODE_LAST - }; - - class IKeyDerivation; - class IBlockCipherKey; - - typedef void (*DerivationFunc)(IKeyDerivation* owner, const Blob& data, - Blob& k_enc, Blob& k_mac, Blob& k_kek); - - // - // IKeyDerivation - class IKeyDerivation - : public IParam - , public IRefCounted - { - public: - virtual Blob Derive(const Blob& deriveData) = 0; - virtual void Derive(uint mode, const Blob& data, Blob& k_enc, Blob& k_mac) = 0; - virtual void Derive(uint mode, const Blob& data, Blob& k_enc, Blob& k_mac, Blob& k_kek) = 0; - - virtual void SetKey(IBlockCipherKey* key) = 0; - // - // If mode already registered, it will be overwritten and the previous will be returned. - virtual DerivationFunc Register(uint mode, DerivationFunc df) = 0; - }; - -} // namespace act - -#endif // ACT_IKeyDerivation_h +// --------------------------------------------------------------------------- +// Name: actIKeyDerivation.h +// Product: cv act library +// Purpose: IKeyDerivation for general prupose +// +// Copyright: (c) 2003-2010 cv cryptovision GmbH +// all rights reserved +// Licence: The conditions for the use of this software are regulated +// in the cv act library licence agreement. +// +// Autor: Ulrich Birkenhauer +// Markus Tesche +// Date: 07/05/2010 +// --------------------------------------------------------------------------- + +#ifndef ACT_IKeyDerivation_h +#define ACT_IKeyDerivation_h + +#include "actMove.h" +#include "actMode.h" + +#include "actIParam.h" +#include "actIRefCounted.h" + +namespace act +{ + enum KDParam + { + KD_DATA = SALT, + KD_HASH = HASH, + KD_SERIAL = SERIALNR, + KD_DERIVATOR = DERIVATOR, + KD_MODE = BCMODE, // key configuration + KD_PADDING = PADDING, // key configuration + }; + + enum KDMode + { + KD_MODE_DEFAULT = 0, + KD_MODE_CARD_MANAGER, + + KD_MODE_LAST + }; + + class IKeyDerivation; + class IBlockCipherKey; + + typedef void (*DerivationFunc)(IKeyDerivation* owner, const Blob& data, + Blob& k_enc, Blob& k_mac, Blob& k_kek); + + // + // IKeyDerivation + class IKeyDerivation + : public IParam + , public IRefCounted + { + public: + virtual Blob Derive(const Blob& deriveData) = 0; + virtual void Derive(uint mode, const Blob& data, Blob& k_enc, Blob& k_mac) = 0; + virtual void Derive(uint mode, const Blob& data, Blob& k_enc, Blob& k_mac, Blob& k_kek) = 0; + + virtual void SetKey(IBlockCipherKey* key) = 0; + // + // If mode already registered, it will be overwritten and the previous will be returned. + virtual DerivationFunc Register(uint mode, DerivationFunc df) = 0; + }; + +} // namespace act + +#endif // ACT_IKeyDerivation_h diff --git a/actlibrary/MacOSX-10.4-ppc/Release/include/actIKeyFactory.h b/actlibrary/include/actIKeyFactory.h similarity index 96% rename from actlibrary/MacOSX-10.4-ppc/Release/include/actIKeyFactory.h rename to actlibrary/include/actIKeyFactory.h index 711d883..87b27a6 100644 --- a/actlibrary/MacOSX-10.4-ppc/Release/include/actIKeyFactory.h +++ b/actlibrary/include/actIKeyFactory.h @@ -1,48 +1,48 @@ -// --------------------------------------------------------------------------- -// Name: actIKeyFactory.h -// Product: cv act library -// Purpose: IKeyFactory and IKeyFactoryChain interface -// -// Copyright: (c) 2008 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -// -// Autor: Markus Tesche -// Date: 05/18/2008 -// --------------------------------------------------------------------------- - -#ifndef ACT_IKeyFactory_h -#define ACT_IKeyFactory_h - -#include "actTokenBase.h" - -namespace act -{ - class ITokenKey; - class ITokenBlockCipher; - class ITokenBlockCipherKey; - - class IKeyFactory - { - protected: - virtual ~IKeyFactory() - { } - - public: - virtual ITokenKey* CreateKey(int type, FileInfo& fi, int usage, bool cleartoken) = 0; - - virtual ITokenBlockCipher* CreateBlockCipher(FileInfo& fi) = 0; - virtual ITokenBlockCipherKey* CreateBlockCipherKey(ITokenBlockCipher* cipher, bool cleartoken) = 0; - virtual ITokenBlockCipherKey* CreateBlockCipherAndKey(FileInfo& fi, bool cleartoken) = 0; - }; - - class IKeyFactoryChain : public IKeyFactory - { - public: - virtual void SetNext(IKeyFactoryChain* next) = 0; - }; - -} // namespace act - -#endif // ACT_IKeyFactory_h +// --------------------------------------------------------------------------- +// Name: actIKeyFactory.h +// Product: cv act library +// Purpose: IKeyFactory and IKeyFactoryChain interface +// +// Copyright: (c) 2008 cv cryptovision GmbH +// all rights reserved +// Licence: The conditions for the use of this software are regulated +// in the cv act library licence agreement. +// +// Autor: Markus Tesche +// Date: 05/18/2008 +// --------------------------------------------------------------------------- + +#ifndef ACT_IKeyFactory_h +#define ACT_IKeyFactory_h + +#include "actTokenBase.h" + +namespace act +{ + class ITokenKey; + class ITokenBlockCipher; + class ITokenBlockCipherKey; + + class IKeyFactory + { + protected: + virtual ~IKeyFactory() + { } + + public: + virtual ITokenKey* CreateKey(int type, FileInfo& fi, int usage, bool cleartoken) = 0; + + virtual ITokenBlockCipher* CreateBlockCipher(FileInfo& fi) = 0; + virtual ITokenBlockCipherKey* CreateBlockCipherKey(ITokenBlockCipher* cipher, bool cleartoken) = 0; + virtual ITokenBlockCipherKey* CreateBlockCipherAndKey(FileInfo& fi, bool cleartoken) = 0; + }; + + class IKeyFactoryChain : public IKeyFactory + { + public: + virtual void SetNext(IKeyFactoryChain* next) = 0; + }; + +} // namespace act + +#endif // ACT_IKeyFactory_h diff --git a/actlibrary/MacOSX-10.6-x86_64/Release/include/actIMACKey.h b/actlibrary/include/actIMACKey.h similarity index 96% rename from actlibrary/MacOSX-10.6-x86_64/Release/include/actIMACKey.h rename to actlibrary/include/actIMACKey.h index b630e74..d89042c 100644 --- a/actlibrary/MacOSX-10.6-x86_64/Release/include/actIMACKey.h +++ b/actlibrary/include/actIMACKey.h @@ -1,27 +1,27 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actIMACKEY.h -// Product: cv act library -// Purpose: interface for the class CBCMAC -// -// Copyright: (c) 2000 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_IMACKey_h -#define ACT_IMACKey_h - -#include "actIKey.h" - -namespace act -{ - class IMACKey : public IKey - { - public: - virtual const char* KeyName() const = 0; - }; - -} // namespace act - -#endif // ACT_IMACKey_h +////////////////////////////////////////////////////////////////////////////////// +// Name: actIMACKEY.h +// Product: cv act library +// Purpose: interface for the class CBCMAC +// +// Copyright: (c) 2000 cv cryptovision GmbH +// all rights reserved +// Licence: The conditions for the use of this software are regulated +// in the cv act library licence agreement. +////////////////////////////////////////////////////////////////////////////////// + +#ifndef ACT_IMACKey_h +#define ACT_IMACKey_h + +#include "actIKey.h" + +namespace act +{ + class IMACKey : public IKey + { + public: + virtual const char* KeyName() const = 0; + }; + +} // namespace act + +#endif // ACT_IMACKey_h diff --git a/actlibrary/MacOSX-10.5-x86_64/Release/include/actIPKCS15Behavior.h b/actlibrary/include/actIPKCS15Behavior.h similarity index 97% rename from actlibrary/MacOSX-10.5-x86_64/Release/include/actIPKCS15Behavior.h rename to actlibrary/include/actIPKCS15Behavior.h index 174cd51..ee28397 100644 --- a/actlibrary/MacOSX-10.5-x86_64/Release/include/actIPKCS15Behavior.h +++ b/actlibrary/include/actIPKCS15Behavior.h @@ -1,89 +1,89 @@ -// --------------------------------------------------------------------------- -// Name: actIPKCS15Behavior.h -// Product: cv act library -// Purpose: IPKCS15Behavior interface, encapsulates Manufacturer specific logic -// for PKCS15 to cvProfile mapping. -// -// Copyright: (c) 2002-2008 cv cryptovision GmbH all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -// -// Autor: Markus Tesche -// Date: 06/02/2008 -// --------------------------------------------------------------------------- - -#ifndef ACT_IPKCS15Behavior_h -#define ACT_IPKCS15Behavior_h - -#include "actISCardOSBehavior.h" - -#include "cvProfileInfos.h" - -namespace act -{ - class IAuthIdRef; - - class IToken; - class ITokenPIN; - class ITokenKey; - class ITokenFile; - class ITokenFileMap; - class ISecurityManager; - class ITokenBlockCipherKey; - - class PKCS15Container; - struct PKCS15Path; - struct PKCS15Object; - - // - // IPKCS15Behavior - class IPKCS15Behavior : public ISCardOSBehavior - { - public: - virtual void Init(IToken* token) = 0; - - virtual int GetTokenType(const IToken* token) const throw() = 0; - virtual void GetProfileCapabilities(ITokenConfig* tkcfg) const = 0; - - virtual bool IsReadOnly() const = 0; - virtual const Blob& GetMID() const = 0; - - // Returns a valid instance or throws ! - virtual ITokenFile* GetPath() const = 0; - virtual ITokenFile* GetTokenFile(const Blob& p15path) = 0; - virtual ITokenFile* GetTokenFile(const PKCS15Path& p15path) = 0; - - virtual ITokenPIN* GetPin(IToken* token, const PKCS15Object& p15object, bool use_obj_ref = false) = 0; - - // NOTE: If one of these functions return false, the object gets destroyed - // and is not added to the corresponding collection, therefore not accessable! - virtual bool InitTokenPIN(ITokenPIN* pin, const PKCS15Object& p15object) = 0; - virtual bool InitTokenKey(ITokenKey* key, const FileInfo& fi, int usage, const PKCS15Object& p15object) = 0; - virtual bool InitTokenKey(ITokenBlockCipherKey* key, const FileInfo& fi, const PKCS15Object& p15object) = 0; - - virtual FIDType GetFirstFID(byte obj_type, size_t key_size = 0) const = 0; - virtual void GetObjectInfo(FIDType fid, Blob& object_path, byte* obj_ref, byte obj_type, size_t key_size = 0) const = 0; - - virtual FIDType TransformKeyReference(FIDType id, bool to_on_card_reference = false, bool* bReference = 0) const = 0; - - virtual FIDType GetNativeFID(byte obj_type, const FIDType fid, byte object_reference = 0) const = 0; - - virtual void GetRelativeFilePath(Blob& absolute_filepath) const = 0; - - virtual const Blob& GetACTokenRights() const = 0; - virtual Blob GetAccessRights(const ITokenPIN* pin, byte obj_type) const = 0; - virtual Blob GetAccessRights(IAuthIdRef* authIdRef, IAuthIdRef* parentAuthIdRef, byte obj_type) const = 0; - - virtual ISecurityManager* SecurityManager(IToken* token, int authManagerType) const = 0; - virtual void CreateAuthObj(ITokenPIN* pin, byte obj_type) const = 0; - - virtual bool GetNativePubKeySupport() const = 0; - virtual Blob ReadNativePublicKey(ISCardOS* os, FIDType fid) const = 0; - virtual Blob ReadNativeECPublicKey(ISCardOS* os, FIDType fid) const = 0; - virtual FIDType GetNativePubKeyInfo(FIDType priv_key_fid, const PublicKeyInfo& info, - PKCS15Object& p15object) const = 0; - }; - -} // namespace act - -#endif // ACT_IPKCS15Behavior_h +// --------------------------------------------------------------------------- +// Name: actIPKCS15Behavior.h +// Product: cv act library +// Purpose: IPKCS15Behavior interface, encapsulates Manufacturer specific logic +// for PKCS15 to cvProfile mapping. +// +// Copyright: (c) 2002-2008 cv cryptovision GmbH all rights reserved +// Licence: The conditions for the use of this software are regulated +// in the cv act library licence agreement. +// +// Autor: Markus Tesche +// Date: 06/02/2008 +// --------------------------------------------------------------------------- + +#ifndef ACT_IPKCS15Behavior_h +#define ACT_IPKCS15Behavior_h + +#include "actISCardOSBehavior.h" + +#include "cvProfileInfos.h" + +namespace act +{ + class IAuthIdRef; + + class IToken; + class ITokenPIN; + class ITokenKey; + class ITokenFile; + class ITokenFileMap; + class ISecurityManager; + class ITokenBlockCipherKey; + + class PKCS15Container; + struct PKCS15Path; + struct PKCS15Object; + + // + // IPKCS15Behavior + class IPKCS15Behavior : public ISCardOSBehavior + { + public: + virtual void Init(IToken* token) = 0; + + virtual int GetTokenType(const IToken* token) const throw() = 0; + virtual void GetProfileCapabilities(ITokenConfig* tkcfg) const = 0; + + virtual bool IsReadOnly() const = 0; + virtual const Blob& GetMID() const = 0; + + // Returns a valid instance or throws ! + virtual ITokenFile* GetPath() const = 0; + virtual ITokenFile* GetTokenFile(const Blob& p15path) = 0; + virtual ITokenFile* GetTokenFile(const PKCS15Path& p15path) = 0; + + virtual ITokenPIN* GetPin(IToken* token, const PKCS15Object& p15object, bool use_obj_ref = false) = 0; + + // NOTE: If one of these functions return false, the object gets destroyed + // and is not added to the corresponding collection, therefore not accessable! + virtual bool InitTokenPIN(ITokenPIN* pin, const PKCS15Object& p15object) = 0; + virtual bool InitTokenKey(ITokenKey* key, const FileInfo& fi, int usage, const PKCS15Object& p15object) = 0; + virtual bool InitTokenKey(ITokenBlockCipherKey* key, const FileInfo& fi, const PKCS15Object& p15object) = 0; + + virtual FIDType GetFirstFID(byte obj_type, size_t key_size = 0) const = 0; + virtual void GetObjectInfo(FIDType fid, Blob& object_path, byte* obj_ref, byte obj_type, size_t key_size = 0) const = 0; + + virtual FIDType TransformKeyReference(FIDType id, bool to_on_card_reference = false, bool* bReference = 0) const = 0; + + virtual FIDType GetNativeFID(byte obj_type, const FIDType fid, byte object_reference = 0) const = 0; + + virtual void GetRelativeFilePath(Blob& absolute_filepath) const = 0; + + virtual const Blob& GetACTokenRights() const = 0; + virtual Blob GetAccessRights(const ITokenPIN* pin, byte obj_type) const = 0; + virtual Blob GetAccessRights(IAuthIdRef* authIdRef, IAuthIdRef* parentAuthIdRef, byte obj_type) const = 0; + + virtual ISecurityManager* SecurityManager(IToken* token, int authManagerType) const = 0; + virtual void CreateAuthObj(ITokenPIN* pin, byte obj_type) const = 0; + + virtual bool GetNativePubKeySupport() const = 0; + virtual Blob ReadNativePublicKey(ISCardOS* os, FIDType fid) const = 0; + virtual Blob ReadNativeECPublicKey(ISCardOS* os, FIDType fid) const = 0; + virtual FIDType GetNativePubKeyInfo(FIDType priv_key_fid, const PublicKeyInfo& info, + PKCS15Object& p15object) const = 0; + }; + +} // namespace act + +#endif // ACT_IPKCS15Behavior_h diff --git a/actlibrary/MacOSX-10.4-ppc/Release/include/actIPadding.h b/actlibrary/include/actIPadding.h similarity index 96% rename from actlibrary/MacOSX-10.4-ppc/Release/include/actIPadding.h rename to actlibrary/include/actIPadding.h index c916e21..e8b8bce 100644 --- a/actlibrary/MacOSX-10.4-ppc/Release/include/actIPadding.h +++ b/actlibrary/include/actIPadding.h @@ -1,47 +1,47 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actIPadding.h -// Product: cv act library -// Purpose: With the abstract class IPadding input data can be filled to obtain -// a certain length and also to invert this process. E.g. PKCS1-v1_5 is -// a padding. -// -// Copyright: (c) 2000 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_IPadding_h -#define ACT_IPadding_h -#include "actBasics.h" - -namespace act -{ - - class Blob; - - class IPadding - { - public: - - virtual IPadding* Clone() const=0; - - virtual void Import(const Blob& indata) =0; - virtual void Export(Blob& outdata) const =0; - virtual void SetParam(paramid_t id,const Blob &blob) =0; - virtual void SetParam(paramid_t id,int val) =0; - virtual void SetParam(paramid_t id,const char* cstr) =0; - virtual void GetParam(paramid_t id,Blob &blob) const =0; - virtual int GetParam(paramid_t) const =0; - - virtual void Pad(Blob& Buffer, size_t len) const =0; - virtual size_t Unpad(Blob& Buffer) const =0; - - virtual void* GetCreatePointer() const =0; - virtual ~IPadding() {} - }; - - -} //namespace act -#endif - +////////////////////////////////////////////////////////////////////////////////// +// Name: actIPadding.h +// Product: cv act library +// Purpose: With the abstract class IPadding input data can be filled to obtain +// a certain length and also to invert this process. E.g. PKCS1-v1_5 is +// a padding. +// +// Copyright: (c) 2000 cv cryptovision GmbH +// all rights reserved +// Licence: The conditions for the use of this software are regulated +// in the cv act library licence agreement. +////////////////////////////////////////////////////////////////////////////////// + +#ifndef ACT_IPadding_h +#define ACT_IPadding_h +#include "actBasics.h" + +namespace act +{ + + class Blob; + + class IPadding + { + public: + + virtual IPadding* Clone() const=0; + + virtual void Import(const Blob& indata) =0; + virtual void Export(Blob& outdata) const =0; + virtual void SetParam(paramid_t id,const Blob &blob) =0; + virtual void SetParam(paramid_t id,int val) =0; + virtual void SetParam(paramid_t id,const char* cstr) =0; + virtual void GetParam(paramid_t id,Blob &blob) const =0; + virtual int GetParam(paramid_t) const =0; + + virtual void Pad(Blob& Buffer, size_t len) const =0; + virtual size_t Unpad(Blob& Buffer) const =0; + + virtual void* GetCreatePointer() const =0; + virtual ~IPadding() {} + }; + + +} //namespace act +#endif + diff --git a/actlibrary/MacOSX-10.5-x86_64/Release/include/actIParam.h b/actlibrary/include/actIParam.h similarity index 96% rename from actlibrary/MacOSX-10.5-x86_64/Release/include/actIParam.h rename to actlibrary/include/actIParam.h index ee8d26b..c410f6f 100644 --- a/actlibrary/MacOSX-10.5-x86_64/Release/include/actIParam.h +++ b/actlibrary/include/actIParam.h @@ -1,67 +1,67 @@ -// --------------------------------------------------------------------------- -// Name: actIParam.h -// Product: cv act library -// Purpose: Declares act::IParam interface. -// -// Copyright: (c) 2006 cv cryptovision GmbH -// all rights reserved. -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -// -// Autor: Markus Tesche (MTE) -// Date: 3/1/2006 -// --------------------------------------------------------------------------- - -#ifndef ACT_IParam_h -#define ACT_IParam_h - -#include "actBasics.h" - -namespace act -{ - class Blob; - - enum - { - PARAM_ANY = -3, - PARAM_UNKNOWN_SIZE = -2, - PARAM_INVALID_VALUE = -1, - PARAM_FALSE = 0, - PARAM_TRUE = 1 - }; - - static inline int param_bool(bool value) - { - return value == true ? PARAM_TRUE : PARAM_FALSE; - } - - // - // IParam - class IParam - { - public: - virtual ~IParam() { } - - virtual void SetParam(paramid_t id, int value) = 0; - virtual void SetParam(paramid_t id, const char* value) = 0; - virtual void SetParam(paramid_t id, const Blob& value) = 0; - - // - // Get value for id, otherwise PARAM_INVALID_VALUE. - // NOTE: May throws an act::Exception derived exception. - virtual int GetParam(paramid_t id) const = 0; - - // - // Get value for id, returns size[PARAM_UNKNOWN_SIZE|0-n] or PARAM_INVALID_VALUE. - // NOTE: May throws an act::Exception derived exception. - virtual size_t GetParam(paramid_t id, const char** value) const = 0; - - // - // Get value for id, returns size[PARAM_UNKNOWN_SIZE|0-n] or PARAM_INVALID_VALUE. - // NOTE: May throws an act::Exception derived exception. - virtual size_t GetParam(paramid_t id, Blob& value) const = 0; - }; - -} // namespace act - -#endif // ACT_IParam_h +// --------------------------------------------------------------------------- +// Name: actIParam.h +// Product: cv act library +// Purpose: Declares act::IParam interface. +// +// Copyright: (c) 2006 cv cryptovision GmbH +// all rights reserved. +// Licence: The conditions for the use of this software are regulated +// in the cv act library licence agreement. +// +// Autor: Markus Tesche (MTE) +// Date: 3/1/2006 +// --------------------------------------------------------------------------- + +#ifndef ACT_IParam_h +#define ACT_IParam_h + +#include "actBasics.h" + +namespace act +{ + class Blob; + + enum + { + PARAM_ANY = -3, + PARAM_UNKNOWN_SIZE = -2, + PARAM_INVALID_VALUE = -1, + PARAM_FALSE = 0, + PARAM_TRUE = 1 + }; + + static inline int param_bool(bool value) + { + return value == true ? PARAM_TRUE : PARAM_FALSE; + } + + // + // IParam + class IParam + { + public: + virtual ~IParam() { } + + virtual void SetParam(paramid_t id, int value) = 0; + virtual void SetParam(paramid_t id, const char* value) = 0; + virtual void SetParam(paramid_t id, const Blob& value) = 0; + + // + // Get value for id, otherwise PARAM_INVALID_VALUE. + // NOTE: May throws an act::Exception derived exception. + virtual int GetParam(paramid_t id) const = 0; + + // + // Get value for id, returns size[PARAM_UNKNOWN_SIZE|0-n] or PARAM_INVALID_VALUE. + // NOTE: May throws an act::Exception derived exception. + virtual size_t GetParam(paramid_t id, const char** value) const = 0; + + // + // Get value for id, returns size[PARAM_UNKNOWN_SIZE|0-n] or PARAM_INVALID_VALUE. + // NOTE: May throws an act::Exception derived exception. + virtual size_t GetParam(paramid_t id, Blob& value) const = 0; + }; + +} // namespace act + +#endif // ACT_IParam_h diff --git a/actlibrary/MacOSX-10.6-x86_64/Release/include/actIRNGAlg.h b/actlibrary/include/actIRNGAlg.h similarity index 96% rename from actlibrary/MacOSX-10.6-x86_64/Release/include/actIRNGAlg.h rename to actlibrary/include/actIRNGAlg.h index 521be1d..d5df623 100644 --- a/actlibrary/MacOSX-10.6-x86_64/Release/include/actIRNGAlg.h +++ b/actlibrary/include/actIRNGAlg.h @@ -1,38 +1,38 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actIRNGAlg.h -// Product: cv act library -// Purpose: IRNGAlg is the interface for Random Number Generators. -// -// Copyright: (c) 2000 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_IRNGAlg_h -#define ACT_IRNGAlg_h - -#include "actIAlgorithm.h" - -namespace act -{ - class Blob; - - class IRNGAlg : public IAlgorithm - { - public: - virtual IRNGAlg* Clone() const = 0; - virtual void Import(const Blob& keyblob) = 0; - virtual void Export(Blob& keyblob) const = 0; - virtual void SetParam(paramid_t id, const Blob& blob) = 0; - virtual void SetParam(paramid_t id, int val) = 0; - virtual void SetParam(paramid_t id, const char* cstr) = 0; - virtual int GetParam(paramid_t id) const = 0; - virtual void GetParam(paramid_t id, Blob& blob) const = 0; - - virtual void* GetCreatePointer() const = 0; - }; - -} // namespace act - -#endif // ACT_IRNGAlg_h +////////////////////////////////////////////////////////////////////////////////// +// Name: actIRNGAlg.h +// Product: cv act library +// Purpose: IRNGAlg is the interface for Random Number Generators. +// +// Copyright: (c) 2000 cv cryptovision GmbH +// all rights reserved +// Licence: The conditions for the use of this software are regulated +// in the cv act library licence agreement. +////////////////////////////////////////////////////////////////////////////////// + +#ifndef ACT_IRNGAlg_h +#define ACT_IRNGAlg_h + +#include "actIAlgorithm.h" + +namespace act +{ + class Blob; + + class IRNGAlg : public IAlgorithm + { + public: + virtual IRNGAlg* Clone() const = 0; + virtual void Import(const Blob& keyblob) = 0; + virtual void Export(Blob& keyblob) const = 0; + virtual void SetParam(paramid_t id, const Blob& blob) = 0; + virtual void SetParam(paramid_t id, int val) = 0; + virtual void SetParam(paramid_t id, const char* cstr) = 0; + virtual int GetParam(paramid_t id) const = 0; + virtual void GetParam(paramid_t id, Blob& blob) const = 0; + + virtual void* GetCreatePointer() const = 0; + }; + +} // namespace act + +#endif // ACT_IRNGAlg_h diff --git a/actlibrary/MacOSX-10.5-x86_64/Release/include/actIRSAKey.h b/actlibrary/include/actIRSAKey.h similarity index 96% rename from actlibrary/MacOSX-10.5-x86_64/Release/include/actIRSAKey.h rename to actlibrary/include/actIRSAKey.h index 96bcdac..a83e947 100644 --- a/actlibrary/MacOSX-10.5-x86_64/Release/include/actIRSAKey.h +++ b/actlibrary/include/actIRSAKey.h @@ -1,32 +1,32 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actIRSAKey.h -// Product: cv act library -// Purpose: IRSAKey is the interface for the class IRSAKey enabling access to -// the aggregated padding-object of an RSAKeys. -// -// Copyright: (c) 2000 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_IRSAKey_h -#define ACT_IRSAKey_h - -#include "actISignatureKey.h" - -namespace act -{ - class IPadding; - - class IRSAKey : public ISignatureKey - { - public: - virtual void SetPadding(IPadding* padding) = 0; - virtual const IPadding* GetPadding() const = 0; - virtual IPadding* GetPadding() = 0; - }; - -} // namespace act - -#endif // ACT_IRSAKey_h +////////////////////////////////////////////////////////////////////////////////// +// Name: actIRSAKey.h +// Product: cv act library +// Purpose: IRSAKey is the interface for the class IRSAKey enabling access to +// the aggregated padding-object of an RSAKeys. +// +// Copyright: (c) 2000 cv cryptovision GmbH +// all rights reserved +// Licence: The conditions for the use of this software are regulated +// in the cv act library licence agreement. +////////////////////////////////////////////////////////////////////////////////// + +#ifndef ACT_IRSAKey_h +#define ACT_IRSAKey_h + +#include "actISignatureKey.h" + +namespace act +{ + class IPadding; + + class IRSAKey : public ISignatureKey + { + public: + virtual void SetPadding(IPadding* padding) = 0; + virtual const IPadding* GetPadding() const = 0; + virtual IPadding* GetPadding() = 0; + }; + +} // namespace act + +#endif // ACT_IRSAKey_h diff --git a/actlibrary/MacOSX-10.6-x86_64/Release/include/actIRefCounted.h b/actlibrary/include/actIRefCounted.h similarity index 96% rename from actlibrary/MacOSX-10.6-x86_64/Release/include/actIRefCounted.h rename to actlibrary/include/actIRefCounted.h index 5c66ef0..13ac1c6 100644 --- a/actlibrary/MacOSX-10.6-x86_64/Release/include/actIRefCounted.h +++ b/actlibrary/include/actIRefCounted.h @@ -1,33 +1,33 @@ -// --------------------------------------------------------------------------- -// Name: actIRefCounted.h -// Product: cv act library -// Purpose: The IRefCounted interface. -// -// Copyright: (c) 2006 cv cryptovision GmbH -// all rights reserved. -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -// -// Autor: Markus Tesche (MTE) -// Date: 1/18/2006 -// --------------------------------------------------------------------------- - -#ifndef ACT_IRefCounted_h -#define ACT_IRefCounted_h - -namespace act -{ - // - // IRefCounted, methods for reference counting. - class IRefCounted - { - public: - virtual ~IRefCounted() { } - - virtual void AddRef() = 0; - virtual void Release() = 0; - }; - -} // namespace act - -#endif // ACT_IRefCounted_h +// --------------------------------------------------------------------------- +// Name: actIRefCounted.h +// Product: cv act library +// Purpose: The IRefCounted interface. +// +// Copyright: (c) 2006 cv cryptovision GmbH +// all rights reserved. +// Licence: The conditions for the use of this software are regulated +// in the cv act library licence agreement. +// +// Autor: Markus Tesche (MTE) +// Date: 1/18/2006 +// --------------------------------------------------------------------------- + +#ifndef ACT_IRefCounted_h +#define ACT_IRefCounted_h + +namespace act +{ + // + // IRefCounted, methods for reference counting. + class IRefCounted + { + public: + virtual ~IRefCounted() { } + + virtual void AddRef() = 0; + virtual void Release() = 0; + }; + +} // namespace act + +#endif // ACT_IRefCounted_h diff --git a/actlibrary/MacOSX-10.6-x86_64/Release/include/actISCardAccess.h b/actlibrary/include/actISCardAccess.h similarity index 96% rename from actlibrary/MacOSX-10.6-x86_64/Release/include/actISCardAccess.h rename to actlibrary/include/actISCardAccess.h index 3f59b31..d42bd0a 100644 --- a/actlibrary/MacOSX-10.6-x86_64/Release/include/actISCardAccess.h +++ b/actlibrary/include/actISCardAccess.h @@ -1,198 +1,198 @@ -// --------------------------------------------------------------------------- -// Name: actISCardAccess.h -// Product: cv act library -// Purpose: The class ISCardAccess manages the operations with the smartcards and readers -// -// Copyright: (c) 2002 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -// -// Autor: Dr. Xiangdong Wang (XWG) -// Date: 03/21/2002 -// --------------------------------------------------------------------------- - -#ifndef ACT_ISCardAccess_h -#define ACT_ISCardAccess_h - -#include "actBlob.h" -#include "actIRefCounted.h" -#include "actISynchronize.h" - -namespace act -{ - class SyncObject; - - const ushort RESPONSE_MAXLEN = 2048; - - enum ReturnCode - { - APDU_RESPONSE_MASK = 0xffff, - - APDU_OK = 0x9000, - APDU_OK1 = 0x9001, - - // error codes defined in ISO7816-4 - APDU_STATE_UNCHANGED = 0x6200, - APDU_RETURN_CORRUPTED = 0x6281, - APDU_END_REACHED = 0x6282, - APDU_SELECTFILE_INVALID = 0x6283, - APDU_FCI_FORMAT = 0x6284, - - APDU_AUTHEN_FAILED = 0x6300, - APDU_RETRY_COUNTER = 0x63C0, - APDU_FILE_FILLED_UP = 0x6381, - - APDU_STATE_UNCHANGED2 = 0x6400, - - APDU_STATE_CHANGED = 0x6500, - APDU_MEMORY_FAILURE = 0x6581, - - APDU_SECURITY_ERROR = 0x6600, // not defined in ISO7816 - - APDU_WRONG_LEN = 0x6700, - - APDU_NO_CLA_FUNCTION = 0x6800, - APDU_NO_LOGICAL_CHANNEL = 0x6881, - APDU_NO_SM = 0x6882, - - APDU_CMD_NOT_ALLOWED = 0x6900, - APDU_CMD_INCOMPATIBLE = 0x6981, - APDU_SECURITY_STATE = 0x6982, - APDU_AUTHEN_BLOCKED = 0x6983, - APDU_REF_DATA_INVALID = 0x6984, - APDU_NO_CONDITION = 0x6985, - APDU_CMD_EF_NOT_ALLOWED = 0x6986, - APDU_SM_DATA_MISSING = 0x6987, - APDU_SM_DATA_INCORRECT = 0x6988, - - APDU_WRONG_PARAMETER = 0x6A00, - APDU_WRONG_DATA = 0x6A80, - APDU_FUNCTION_NOT_SUPPORTED = 0x6A81, - APDU_FILE_NOT_FOUND = 0x6A82, - APDU_RECORD_NOT_FOUND = 0x6A83, - APDU_NOT_ENOUGH_MEMORY = 0x6A84, - APDU_LC_TLV_INCONSISTENT = 0x6A85, - APDU_INVALID_P1P2 = 0x6A86, - APDU_LC_P1P2_INCONSISTENT = 0x6A87, - APDU_REF_DATA_NOT_FOUND = 0x6A88, - APDU_FILE_ALREADY_EXISTS = 0x6A89, - - APDU_WRONG_PARAMETER2 = 0x6B00, - - APDU_WRONG_LE = 0x6C00, - - APDU_INS_INVALID = 0x6D00, - - APDU_CLA_INVALID = 0x6E00, - - APDU_TECHNICAL_ERROR = 0x6F00, - - - // other error codes depend on card OS - APDU_NO_ICC = 0x64A1, - APDU_PROTOCOL_ERROR = 0x64A8, - - APDU_NO_AC_RIGHT = 0x6982, - APDU_PIN_LOCKED = 0x6983, - APDU_PIN_FORMAT_ERROR = 0x6984, - - APDU_OBJECT_NOT_FOUND = 0x6A88, - - APDU_KEYGEN_FAILED = 0x6F83, // ACOS - - - // JavaCardOS - APDU_MORE_DATA_AVAILABLE = 0x6310, - APDU_APPLET_SELECTION_FAILED = 0x6999, - APDU_PIN_FAILED = 0x69C0, - APDU_ASSERT = 0x6FFF, - APDU_ASSERT_NOTRANSACTION = 0x6FFE, - }; - - enum ProtocolType - { - PROTOCOL_UNDEFINED = 0x00000, // There is no active protocol. - PROTOCOL_T0 = 0x00001, // T=0 is the active protocol. - PROTOCOL_T1 = 0x00002, // T=1 is the active protocol. - PROTOCOL_RAW = 0x10000 // Raw is the active protocol. - }; - - enum DispositionType - { - LEAVE_CARD = 0, // Don't do anything special. - RESET_CARD = 1, // Reset the card. - UNPOWER_CARD = 2, // Power down the card. - EJECT_CARD = 3 // Eject the card. - }; - - inline bool APDUSUCCESS(word sw1sw2) - { - return sw1sw2 == act::APDU_OK - || sw1sw2 == act::APDU_OK1; - } - - // extract - template - inline word apdu_response(const ExceptionT& e) - { - return word(e.code() & APDU_RESPONSE_MASK); - } - - // LengthInfo - struct LengthInfo; - typedef LengthInfo VerifyInfo; - - class ISlot; - class ISCardSM; - - // --------------------------------------------------------------------------- - class ISCardAccess - : public IRefCounted - , public ISynchronize - { - public: - virtual ~ISCardAccess() - { } - - virtual long GetProtocol() const = 0; - virtual void SetProtocol(long protocol) = 0; - - virtual ulong GetTimeout() const = 0; - virtual bool SetTimeout(ulong timeout_msec) = 0; - - virtual void Open() = 0; - virtual void Close() = 0; - virtual void ResetCard() = 0; - virtual long CancelCardOperation() = 0; - - virtual void BeginTransaction() = 0; - virtual void EndTransaction(DispositionType disposition = LEAVE_CARD) = 0; - virtual ulong GetTransactionDepth() const = 0; - - virtual const ISlot* GetSlot() const = 0; - - virtual word SendCard(const Blob& cmd, Blob& response, ushort response_len = RESPONSE_MAXLEN) = 0; - - virtual Blob GetResponse() const = 0; - virtual Blob& GetResponse(Blob& response) const = 0; - - virtual word Send(const Blob& cmd) = 0; - virtual word Send(const Blob& header, const Blob& data) = 0; - virtual word Send(const Blob& header, const Blob& data, byte le) = 0; - - // Extended APDU - virtual word SendX(const Blob& header, const Blob& data) = 0; - virtual word SendX(const Blob& header, const Blob& data, ushort le) = 0; - - // Secure Pin Entry - virtual word SendVerifyToReader(const Blob& apdu, const VerifyInfo& info) = 0; - - // Secure Messaging - virtual ISCardSM* GetSM() const = 0; - virtual void SetSM(ISCardSM* sm) = 0; - }; - -} // namespace act - -#endif // ACT_ISCardAccess_h +// --------------------------------------------------------------------------- +// Name: actISCardAccess.h +// Product: cv act library +// Purpose: The class ISCardAccess manages the operations with the smartcards and readers +// +// Copyright: (c) 2002 cv cryptovision GmbH +// all rights reserved +// Licence: The conditions for the use of this software are regulated +// in the cv act library licence agreement. +// +// Autor: Dr. Xiangdong Wang (XWG) +// Date: 03/21/2002 +// --------------------------------------------------------------------------- + +#ifndef ACT_ISCardAccess_h +#define ACT_ISCardAccess_h + +#include "actBlob.h" +#include "actIRefCounted.h" +#include "actISynchronize.h" + +namespace act +{ + class SyncObject; + + const ushort RESPONSE_MAXLEN = 2048; + + enum ReturnCode + { + APDU_RESPONSE_MASK = 0xffff, + + APDU_OK = 0x9000, + APDU_OK1 = 0x9001, + + // error codes defined in ISO7816-4 + APDU_STATE_UNCHANGED = 0x6200, + APDU_RETURN_CORRUPTED = 0x6281, + APDU_END_REACHED = 0x6282, + APDU_SELECTFILE_INVALID = 0x6283, + APDU_FCI_FORMAT = 0x6284, + + APDU_AUTHEN_FAILED = 0x6300, + APDU_RETRY_COUNTER = 0x63C0, + APDU_FILE_FILLED_UP = 0x6381, + + APDU_STATE_UNCHANGED2 = 0x6400, + + APDU_STATE_CHANGED = 0x6500, + APDU_MEMORY_FAILURE = 0x6581, + + APDU_SECURITY_ERROR = 0x6600, // not defined in ISO7816 + + APDU_WRONG_LEN = 0x6700, + + APDU_NO_CLA_FUNCTION = 0x6800, + APDU_NO_LOGICAL_CHANNEL = 0x6881, + APDU_NO_SM = 0x6882, + + APDU_CMD_NOT_ALLOWED = 0x6900, + APDU_CMD_INCOMPATIBLE = 0x6981, + APDU_SECURITY_STATE = 0x6982, + APDU_AUTHEN_BLOCKED = 0x6983, + APDU_REF_DATA_INVALID = 0x6984, + APDU_NO_CONDITION = 0x6985, + APDU_CMD_EF_NOT_ALLOWED = 0x6986, + APDU_SM_DATA_MISSING = 0x6987, + APDU_SM_DATA_INCORRECT = 0x6988, + + APDU_WRONG_PARAMETER = 0x6A00, + APDU_WRONG_DATA = 0x6A80, + APDU_FUNCTION_NOT_SUPPORTED = 0x6A81, + APDU_FILE_NOT_FOUND = 0x6A82, + APDU_RECORD_NOT_FOUND = 0x6A83, + APDU_NOT_ENOUGH_MEMORY = 0x6A84, + APDU_LC_TLV_INCONSISTENT = 0x6A85, + APDU_INVALID_P1P2 = 0x6A86, + APDU_LC_P1P2_INCONSISTENT = 0x6A87, + APDU_REF_DATA_NOT_FOUND = 0x6A88, + APDU_FILE_ALREADY_EXISTS = 0x6A89, + + APDU_WRONG_PARAMETER2 = 0x6B00, + + APDU_WRONG_LE = 0x6C00, + + APDU_INS_INVALID = 0x6D00, + + APDU_CLA_INVALID = 0x6E00, + + APDU_TECHNICAL_ERROR = 0x6F00, + + + // other error codes depend on card OS + APDU_NO_ICC = 0x64A1, + APDU_PROTOCOL_ERROR = 0x64A8, + + APDU_NO_AC_RIGHT = 0x6982, + APDU_PIN_LOCKED = 0x6983, + APDU_PIN_FORMAT_ERROR = 0x6984, + + APDU_OBJECT_NOT_FOUND = 0x6A88, + + APDU_KEYGEN_FAILED = 0x6F83, // ACOS + + + // JavaCardOS + APDU_MORE_DATA_AVAILABLE = 0x6310, + APDU_APPLET_SELECTION_FAILED = 0x6999, + APDU_PIN_FAILED = 0x69C0, + APDU_ASSERT = 0x6FFF, + APDU_ASSERT_NOTRANSACTION = 0x6FFE, + }; + + enum ProtocolType + { + PROTOCOL_UNDEFINED = 0x00000, // There is no active protocol. + PROTOCOL_T0 = 0x00001, // T=0 is the active protocol. + PROTOCOL_T1 = 0x00002, // T=1 is the active protocol. + PROTOCOL_RAW = 0x10000 // Raw is the active protocol. + }; + + enum DispositionType + { + LEAVE_CARD = 0, // Don't do anything special. + RESET_CARD = 1, // Reset the card. + UNPOWER_CARD = 2, // Power down the card. + EJECT_CARD = 3 // Eject the card. + }; + + inline bool APDUSUCCESS(word sw1sw2) + { + return sw1sw2 == act::APDU_OK + || sw1sw2 == act::APDU_OK1; + } + + // extract + template + inline word apdu_response(const ExceptionT& e) + { + return word(e.code() & APDU_RESPONSE_MASK); + } + + // LengthInfo + struct LengthInfo; + typedef LengthInfo VerifyInfo; + + class ISlot; + class ISCardSM; + + // --------------------------------------------------------------------------- + class ISCardAccess + : public IRefCounted + , public ISynchronize + { + public: + virtual ~ISCardAccess() + { } + + virtual long GetProtocol() const = 0; + virtual void SetProtocol(long protocol) = 0; + + virtual ulong GetTimeout() const = 0; + virtual bool SetTimeout(ulong timeout_msec) = 0; + + virtual void Open() = 0; + virtual void Close() = 0; + virtual void ResetCard() = 0; + virtual long CancelCardOperation() = 0; + + virtual void BeginTransaction() = 0; + virtual void EndTransaction(DispositionType disposition = LEAVE_CARD) = 0; + virtual ulong GetTransactionDepth() const = 0; + + virtual const ISlot* GetSlot() const = 0; + + virtual word SendCard(const Blob& cmd, Blob& response, ushort response_len = RESPONSE_MAXLEN) = 0; + + virtual Blob GetResponse() const = 0; + virtual Blob& GetResponse(Blob& response) const = 0; + + virtual word Send(const Blob& cmd) = 0; + virtual word Send(const Blob& header, const Blob& data) = 0; + virtual word Send(const Blob& header, const Blob& data, byte le) = 0; + + // Extended APDU + virtual word SendX(const Blob& header, const Blob& data) = 0; + virtual word SendX(const Blob& header, const Blob& data, ushort le) = 0; + + // Secure Pin Entry + virtual word SendVerifyToReader(const Blob& apdu, const VerifyInfo& info) = 0; + + // Secure Messaging + virtual ISCardSM* GetSM() const = 0; + virtual void SetSM(ISCardSM* sm) = 0; + }; + +} // namespace act + +#endif // ACT_ISCardAccess_h diff --git a/actlibrary/MacOSX-10.6-x86_64/Release/include/actISCardOS.h b/actlibrary/include/actISCardOS.h similarity index 97% rename from actlibrary/MacOSX-10.6-x86_64/Release/include/actISCardOS.h rename to actlibrary/include/actISCardOS.h index 53f2d62..75bc7ec 100644 --- a/actlibrary/MacOSX-10.6-x86_64/Release/include/actISCardOS.h +++ b/actlibrary/include/actISCardOS.h @@ -1,262 +1,262 @@ -// --------------------------------------------------------------------------- -// Name: actISCardOS.h -// Product: cv act library -// Purpose: The class ISCardOS accesses the card operating system -// -// Copyright: (c) 2002 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -// -// Autor: Dr. Xiangdong Wang (XWG) -// Date: 03/21/2002 -// --------------------------------------------------------------------------- - -#ifndef ACT_ISCardOS_h -#define ACT_ISCardOS_h - -#include "actBlob.h" -#include "actTokenBase.h" - -#include "actITokenPIN.h" -#include "actITokenConfig.h" -#include "actITokenInitializer.h" - -#include "actIRefCounted.h" -#include "actIAccessCondition.h" - -namespace act -{ - class IKey; - class IEMSAAlg; - class ITokenFile; - class ISCardAccess; - class ISCardOSBehavior; - class IKeyDerivation; - - class EFDIR; - - const FIDType FID_EF_DIR = 0x2F00; - const FIDType FID_EF_ATR = 0x2F01; - - // - // ISO 7816-4 - enum SCardFileType - { - BINARY = 0x01, - LINEAR_FIXED = 0x02, - LINEAR_TLV = 0x05, - LINEAR_VARIABLE = 0x04, - CYCLIC_FIXED = 0x06, - DF = 0x38 - }; - - // - // ISO 7816-4 - enum SCardRecordMode - { - ABSOLUTE_MODE = 0x04 - }; - - // - // ISO 7816-4 - enum SCardSelectType - { - MFType = 0x00, - DFType = 0x01, - EFType = 0x02, - AIDType = 0x04, - PathType = 0x08 - }; - - enum SCardSelectMode - { - FCI = 0x00, // FCI template - FCP = 0x04, // FCP template - FMD = 0x08, // FMD template - NoData = 0x0c, // No response data - }; - - enum SCardError - { - SCARD_SUCCESS = 0, - SCARD_FUNCTION_NOT_SUPPORTED = -1, - SCARD_FUNCTION_FAILED = -2 - }; - - // - // ISCardOS - class ISCardOS - : public IRefCounted - , public IAcConverter - { - public: - virtual ~ISCardOS() { } - - // ISCardOS - virtual ISCardOS* Clone() const = 0; - - virtual bool IsMoC() = 0; - virtual const char* GetName() const = 0; - virtual Blob GetSerialNumber() const = 0; // hardware serial number - virtual Blob GetCardId(unsigned short fid_card_id) = 0; - virtual Blob GetCardCF(unsigned short fid_card_cf) = 0; - - virtual ISCardAccess* GetAccess() const = 0; - - virtual Blob ComputeDigitalSignature(const Blob& data, int mode = SIGN_DATA) = 0; - virtual Blob ComputeDigitalSignature(IEMSAAlg* emsa, int mode = SIGN_DATA) = 0; - virtual Blob Encipher(const Blob& plaintext) = 0; - virtual Blob Decipher(const Blob& encrypted_data) = 0; - virtual Blob AgreeKey(const Blob& pubkey) = 0; - - virtual void ComputeECDigitalSignature(const Blob& data, Blob& signature) = 0; - - virtual Blob SelectFile(const int filetype, const char* filepath) = 0; // return file control information - virtual Blob SelectFile(const int filetype, const Blob& filepath) = 0; // return file control information - virtual Blob SelectFile(const int filetype, FIDType fid) = 0; // return file control information - virtual Blob SelectApp(const Blob& aid, SCardSelectMode mode = NoData) = 0; - - // EF.DIR - virtual EFDIR* GetEFDIR(ushort fid = FID_INVALID) = 0; - - virtual int GetEFSize(FIDType fid) = 0; - virtual int GetEFSize(const Blob& filepath, Blob& fci) = 0; - virtual void GetFCI(FIDType fid, Blob& fci) = 0; - virtual Blob GetFCIValue(const Blob& fci, const byte tag) = 0; - virtual byte GetFileInfo(const Blob& fc_data, unsigned short& ef_size, size_t& num_of_records) = 0; - - // select and read binary - virtual Blob ReadBinary(const char* filepath) = 0; - virtual Blob ReadBinary(const Blob& filepath) = 0; - virtual Blob ReadBinary(FIDType fid) = 0; - - // read/update binary, file is selected, file size is known - virtual Blob ReadSelectedBinary(size_t file_size, unsigned short offset = 0) = 0; - virtual void UpdateSelectedBinary(const Blob& data, unsigned short offset = 0) = 0; - - // select and update binary - virtual void UpdateBinary(const Blob& filepath, const Blob& data, unsigned short offset = 0) = 0; - virtual void UpdateBinary(FIDType fid, const Blob& data, unsigned short offset = 0) = 0; - - // read binary with XL-APDUs - virtual Blob ReadBinaryX(const char* filepath) = 0; - virtual Blob ReadBinaryX(const Blob& filepath) = 0; - virtual Blob ReadBinaryX(FIDType fid) = 0; - virtual Blob ReadSelectedBinaryX(size_t file_size, unsigned short offset = 0) = 0; - - // update binary with XL-APDUs - virtual void UpdateBinaryX(const Blob& filepath, const Blob& data, unsigned short offset = 0) = 0; - virtual void UpdateBinaryX(FIDType fid, const Blob& data, unsigned short offset = 0) = 0; - virtual void UpdateSelectedBinaryX(const Blob& data, unsigned short offset = 0) = 0; - - // record read/write (file must be selected) - virtual Blob ReadRecord(byte mode) = 0; // p2 - virtual Blob ReadRecord(byte rec_id, byte mode) = 0; // p1, p2 - virtual void UpdateRecord(const Blob& data, byte rec_id, byte mode) = 0; // data, p1, p2 - virtual void AppendRecord(const Blob& data, byte ef_id = 0) = 0; // data, p2 - - // record write (includes file selection and resize) - virtual void UpdateRecord(const Blob& filepath, const Blob& data, byte rec_id, byte mode) = 0; - virtual void AppendRecord(const Blob& filepath, const Blob& data) = 0; - - virtual void DeleteEF(const Blob& fid) = 0; - virtual void DeleteEF(FIDType fid) = 0; - - virtual void CreateEF(const Blob& fcp) = 0; - virtual void CreateEF(const Blob& fid, unsigned short len, bool secure = false) = 0; - virtual void CreateEF(FIDType fid, unsigned short len, bool secure = false) = 0; - - virtual void CreateEF_TLV(FIDType fid, unsigned short len, unsigned short num_of_records = 1) = 0; - virtual void CreateEF_TLV(const Blob& fid, unsigned short len, unsigned short num_of_records = 1) = 0; - - virtual unsigned short GetOSFileOffset() const = 0; - - // get/put dat - virtual Blob GetData(ushort tag, ushort le = 0) const = 0; // INS=CA - virtual void PutData(ushort tag, const Blob& data) = 0; // INS=DA - - // MSE/PSO functions - virtual void ManageSecurityEnvironment(byte p1, byte p2, const Blob& data = Blob()) = 0; - virtual void PerformSecurityOperation(Blob& response, byte p1, byte p2, const Blob& data, bool chaining = false) = 0; - virtual void PerformSecurityOperationX(Blob& response, byte p1, byte p2, const Blob& data) = 0; // explicit extended APDU - - // ISO authentication functions - virtual void ExternalAuthenticate(byte key_id, const Blob& response, bool odd_INS = false) = 0; // INS=82/83, P1=00, P2=key_id - virtual Blob InternalAuthenticate(byte key_id, const Blob& challenge, bool odd_INS = false) = 0; // INS=88/89, P1=00, P2=key_id - virtual Blob MutualAuthenticate(byte key_id, const Blob& auth_data, bool odd_INS = false) = 0; // INS=82/83, P1=00, P2=key_id - virtual Blob GeneralAuthenticate(byte key_id, const Blob& auth_data, bool chaining = false, bool odd_INS = false) = 0; // INS=86/87, P1=00, P2=key_id - - virtual void ResetRetryCounter(byte p1, byte p2, const Blob& data) = 0; - virtual void Verify(byte p1, byte p2, const Blob& data, bool odd_INS = false) = 0; // INS=20/21 - - // random functions - virtual Blob GetChallenge(byte le = byte(8)) const = 0; - virtual Blob GetRandom(const unsigned long count) const = 0; - - // token type / config - virtual ProfileType GetProfileType(bool refresh = false) = 0; - - virtual void SetTokenConfig(ITokenConfig* tkcfg) = 0; - virtual ITokenConfig* GetTokenConfig() const = 0; - - // set/get behavior - virtual void SetBehavior(ISCardOSBehavior* behave) = 0; - virtual ISCardOSBehavior* GetBehavior() = 0; - - // access rights - virtual void SetAccessRights(const Blob& access_rights) = 0; - virtual void SetAccessRights(move_from access_rights) = 0; - virtual void SetExplicitRights(IAccessCondition* ac, size_t ac_cnt = 1) = 0; - - virtual bool HasExplicitRights() const = 0; - - virtual Blob GetAccessRights() = 0; - virtual IAccessCondition* GetAccessRights(const Blob& fci) = 0; - virtual Blob GetAccessRights(ACSCardObjType ac_obj_type, bool tagged) const = 0; - - // selected path - virtual void SetSelectedPath(ITokenFile* selected_path) const = 0; - virtual ITokenFile* GetSelectedPath() const = 0; - - // key derivation - virtual void SetKeyDerivation(IKeyDerivation* key_derivation) = 0; - virtual IKeyDerivation* GetKeyDerivation() const = 0; - - // key handling - virtual void GenerateRSAKeyPair(int key_id, size_t key_size, // in bits - Blob& pubkey) = 0; - - virtual void ImportRSAKeyPair(int key_id, const Blob& prime_p, - const Blob& prime_q, const Blob& priv_exp, Blob& pubkey) = 0; - - virtual void GenerateECKeyPair(Blob& pubkey) = 0; - - virtual void GenerateECKeyPair(int key_id, const Blob& curve_oid, - const Blob& curve_param, Blob& pubkey) = 0; - - virtual void ImportECKeyPair(int key_nr, const Blob& curve_oid, - const Blob& curve_param, const Blob& privkey, const Blob& pubkey) = 0; - - virtual void ImportDESKey(int key_id, const Blob& keyblob) = 0; - - virtual void DeletePrivateKeyObj(FIDType fid) = 0; - virtual void DeleteECPrivateKeyObj(FIDType fid) = 0; - virtual void DeleteBlockCipherKeyObj(FIDType fid) = 0; - virtual void SelectKey(int key_id) = 0; - - // authentication functions - virtual Blob ComputeResponse(const Blob& auth_key, const Blob& challenge) const = 0; - virtual void UpdateExternalAuthenticateKey(byte key_id, const Blob& auth_key) = 0; - - virtual void ResetSecurityStatus() = 0; - virtual SecStatus GetSecurityStatus(byte obj_ref, Blob& context) const = 0; - - // token initialization - virtual void SetDefaultLabel(move_from label) = 0; - virtual ITokenInitializer* GetTokenInitializer() = 0; - }; - -} // namespace act - -#endif // ACT_ISCardOS_h +// --------------------------------------------------------------------------- +// Name: actISCardOS.h +// Product: cv act library +// Purpose: The class ISCardOS accesses the card operating system +// +// Copyright: (c) 2002 cv cryptovision GmbH +// all rights reserved +// Licence: The conditions for the use of this software are regulated +// in the cv act library licence agreement. +// +// Autor: Dr. Xiangdong Wang (XWG) +// Date: 03/21/2002 +// --------------------------------------------------------------------------- + +#ifndef ACT_ISCardOS_h +#define ACT_ISCardOS_h + +#include "actBlob.h" +#include "actTokenBase.h" + +#include "actITokenPIN.h" +#include "actITokenConfig.h" +#include "actITokenInitializer.h" + +#include "actIRefCounted.h" +#include "actIAccessCondition.h" + +namespace act +{ + class IKey; + class IEMSAAlg; + class ITokenFile; + class ISCardAccess; + class ISCardOSBehavior; + class IKeyDerivation; + + class EFDIR; + + const FIDType FID_EF_DIR = 0x2F00; + const FIDType FID_EF_ATR = 0x2F01; + + // + // ISO 7816-4 + enum SCardFileType + { + BINARY = 0x01, + LINEAR_FIXED = 0x02, + LINEAR_TLV = 0x05, + LINEAR_VARIABLE = 0x04, + CYCLIC_FIXED = 0x06, + DF = 0x38 + }; + + // + // ISO 7816-4 + enum SCardRecordMode + { + ABSOLUTE_MODE = 0x04 + }; + + // + // ISO 7816-4 + enum SCardSelectType + { + MFType = 0x00, + DFType = 0x01, + EFType = 0x02, + AIDType = 0x04, + PathType = 0x08 + }; + + enum SCardSelectMode + { + FCI = 0x00, // FCI template + FCP = 0x04, // FCP template + FMD = 0x08, // FMD template + NoData = 0x0c, // No response data + }; + + enum SCardError + { + SCARD_SUCCESS = 0, + SCARD_FUNCTION_NOT_SUPPORTED = -1, + SCARD_FUNCTION_FAILED = -2 + }; + + // + // ISCardOS + class ISCardOS + : public IRefCounted + , public IAcConverter + { + public: + virtual ~ISCardOS() { } + + // ISCardOS + virtual ISCardOS* Clone() const = 0; + + virtual bool IsMoC() = 0; + virtual const char* GetName() const = 0; + virtual Blob GetSerialNumber() const = 0; // hardware serial number + virtual Blob GetCardId(unsigned short fid_card_id) = 0; + virtual Blob GetCardCF(unsigned short fid_card_cf) = 0; + + virtual ISCardAccess* GetAccess() const = 0; + + virtual Blob ComputeDigitalSignature(const Blob& data, int mode = SIGN_DATA) = 0; + virtual Blob ComputeDigitalSignature(IEMSAAlg* emsa, int mode = SIGN_DATA) = 0; + virtual Blob Encipher(const Blob& plaintext) = 0; + virtual Blob Decipher(const Blob& encrypted_data) = 0; + virtual Blob AgreeKey(const Blob& pubkey) = 0; + + virtual void ComputeECDigitalSignature(const Blob& data, Blob& signature) = 0; + + virtual Blob SelectFile(const int filetype, const char* filepath) = 0; // return file control information + virtual Blob SelectFile(const int filetype, const Blob& filepath) = 0; // return file control information + virtual Blob SelectFile(const int filetype, FIDType fid) = 0; // return file control information + virtual Blob SelectApp(const Blob& aid, SCardSelectMode mode = NoData) = 0; + + // EF.DIR + virtual EFDIR* GetEFDIR(ushort fid = FID_INVALID) = 0; + + virtual int GetEFSize(FIDType fid) = 0; + virtual int GetEFSize(const Blob& filepath, Blob& fci) = 0; + virtual void GetFCI(FIDType fid, Blob& fci) = 0; + virtual Blob GetFCIValue(const Blob& fci, const byte tag) = 0; + virtual byte GetFileInfo(const Blob& fc_data, unsigned short& ef_size, size_t& num_of_records) = 0; + + // select and read binary + virtual Blob ReadBinary(const char* filepath) = 0; + virtual Blob ReadBinary(const Blob& filepath) = 0; + virtual Blob ReadBinary(FIDType fid) = 0; + + // read/update binary, file is selected, file size is known + virtual Blob ReadSelectedBinary(size_t file_size, unsigned short offset = 0) = 0; + virtual void UpdateSelectedBinary(const Blob& data, unsigned short offset = 0) = 0; + + // select and update binary + virtual void UpdateBinary(const Blob& filepath, const Blob& data, unsigned short offset = 0) = 0; + virtual void UpdateBinary(FIDType fid, const Blob& data, unsigned short offset = 0) = 0; + + // read binary with XL-APDUs + virtual Blob ReadBinaryX(const char* filepath) = 0; + virtual Blob ReadBinaryX(const Blob& filepath) = 0; + virtual Blob ReadBinaryX(FIDType fid) = 0; + virtual Blob ReadSelectedBinaryX(size_t file_size, unsigned short offset = 0) = 0; + + // update binary with XL-APDUs + virtual void UpdateBinaryX(const Blob& filepath, const Blob& data, unsigned short offset = 0) = 0; + virtual void UpdateBinaryX(FIDType fid, const Blob& data, unsigned short offset = 0) = 0; + virtual void UpdateSelectedBinaryX(const Blob& data, unsigned short offset = 0) = 0; + + // record read/write (file must be selected) + virtual Blob ReadRecord(byte mode) = 0; // p2 + virtual Blob ReadRecord(byte rec_id, byte mode) = 0; // p1, p2 + virtual void UpdateRecord(const Blob& data, byte rec_id, byte mode) = 0; // data, p1, p2 + virtual void AppendRecord(const Blob& data, byte ef_id = 0) = 0; // data, p2 + + // record write (includes file selection and resize) + virtual void UpdateRecord(const Blob& filepath, const Blob& data, byte rec_id, byte mode) = 0; + virtual void AppendRecord(const Blob& filepath, const Blob& data) = 0; + + virtual void DeleteEF(const Blob& fid) = 0; + virtual void DeleteEF(FIDType fid) = 0; + + virtual void CreateEF(const Blob& fcp) = 0; + virtual void CreateEF(const Blob& fid, unsigned short len, bool secure = false) = 0; + virtual void CreateEF(FIDType fid, unsigned short len, bool secure = false) = 0; + + virtual void CreateEF_TLV(FIDType fid, unsigned short len, unsigned short num_of_records = 1) = 0; + virtual void CreateEF_TLV(const Blob& fid, unsigned short len, unsigned short num_of_records = 1) = 0; + + virtual unsigned short GetOSFileOffset() const = 0; + + // get/put dat + virtual Blob GetData(ushort tag, ushort le = 0) const = 0; // INS=CA + virtual void PutData(ushort tag, const Blob& data) = 0; // INS=DA + + // MSE/PSO functions + virtual void ManageSecurityEnvironment(byte p1, byte p2, const Blob& data = Blob()) = 0; + virtual void PerformSecurityOperation(Blob& response, byte p1, byte p2, const Blob& data, bool chaining = false) = 0; + virtual void PerformSecurityOperationX(Blob& response, byte p1, byte p2, const Blob& data) = 0; // explicit extended APDU + + // ISO authentication functions + virtual void ExternalAuthenticate(byte key_id, const Blob& response, bool odd_INS = false) = 0; // INS=82/83, P1=00, P2=key_id + virtual Blob InternalAuthenticate(byte key_id, const Blob& challenge, bool odd_INS = false) = 0; // INS=88/89, P1=00, P2=key_id + virtual Blob MutualAuthenticate(byte key_id, const Blob& auth_data, bool odd_INS = false) = 0; // INS=82/83, P1=00, P2=key_id + virtual Blob GeneralAuthenticate(byte key_id, const Blob& auth_data, bool chaining = false, bool odd_INS = false) = 0; // INS=86/87, P1=00, P2=key_id + + virtual void ResetRetryCounter(byte p1, byte p2, const Blob& data) = 0; + virtual void Verify(byte p1, byte p2, const Blob& data, bool odd_INS = false) = 0; // INS=20/21 + + // random functions + virtual Blob GetChallenge(byte le = byte(8)) const = 0; + virtual Blob GetRandom(const unsigned long count) const = 0; + + // token type / config + virtual ProfileType GetProfileType(bool refresh = false) = 0; + + virtual void SetTokenConfig(ITokenConfig* tkcfg) = 0; + virtual ITokenConfig* GetTokenConfig() const = 0; + + // set/get behavior + virtual void SetBehavior(ISCardOSBehavior* behave) = 0; + virtual ISCardOSBehavior* GetBehavior() = 0; + + // access rights + virtual void SetAccessRights(const Blob& access_rights) = 0; + virtual void SetAccessRights(move_from access_rights) = 0; + virtual void SetExplicitRights(IAccessCondition* ac, size_t ac_cnt = 1) = 0; + + virtual bool HasExplicitRights() const = 0; + + virtual Blob GetAccessRights() = 0; + virtual IAccessCondition* GetAccessRights(const Blob& fci) = 0; + virtual Blob GetAccessRights(ACSCardObjType ac_obj_type, bool tagged) const = 0; + + // selected path + virtual void SetSelectedPath(ITokenFile* selected_path) const = 0; + virtual ITokenFile* GetSelectedPath() const = 0; + + // key derivation + virtual void SetKeyDerivation(IKeyDerivation* key_derivation) = 0; + virtual IKeyDerivation* GetKeyDerivation() const = 0; + + // key handling + virtual void GenerateRSAKeyPair(int key_id, size_t key_size, // in bits + Blob& pubkey) = 0; + + virtual void ImportRSAKeyPair(int key_id, const Blob& prime_p, + const Blob& prime_q, const Blob& priv_exp, Blob& pubkey) = 0; + + virtual void GenerateECKeyPair(Blob& pubkey) = 0; + + virtual void GenerateECKeyPair(int key_id, const Blob& curve_oid, + const Blob& curve_param, Blob& pubkey) = 0; + + virtual void ImportECKeyPair(int key_nr, const Blob& curve_oid, + const Blob& curve_param, const Blob& privkey, const Blob& pubkey) = 0; + + virtual void ImportDESKey(int key_id, const Blob& keyblob) = 0; + + virtual void DeletePrivateKeyObj(FIDType fid) = 0; + virtual void DeleteECPrivateKeyObj(FIDType fid) = 0; + virtual void DeleteBlockCipherKeyObj(FIDType fid) = 0; + virtual void SelectKey(int key_id) = 0; + + // authentication functions + virtual Blob ComputeResponse(const Blob& auth_key, const Blob& challenge) const = 0; + virtual void UpdateExternalAuthenticateKey(byte key_id, const Blob& auth_key) = 0; + + virtual void ResetSecurityStatus() = 0; + virtual SecStatus GetSecurityStatus(byte obj_ref, Blob& context) const = 0; + + // token initialization + virtual void SetDefaultLabel(move_from label) = 0; + virtual ITokenInitializer* GetTokenInitializer() = 0; + }; + +} // namespace act + +#endif // ACT_ISCardOS_h diff --git a/actlibrary/MacOSX-10.4-ppc/Release/include/actISCardOSBehavior.h b/actlibrary/include/actISCardOSBehavior.h similarity index 97% rename from actlibrary/MacOSX-10.4-ppc/Release/include/actISCardOSBehavior.h rename to actlibrary/include/actISCardOSBehavior.h index da9c27c..e5d6497 100644 --- a/actlibrary/MacOSX-10.4-ppc/Release/include/actISCardOSBehavior.h +++ b/actlibrary/include/actISCardOSBehavior.h @@ -1,79 +1,79 @@ -// --------------------------------------------------------------------------- -// Name: actISCardOSBehavior.h -// Product: cv act library -// Purpose: ISCardOSBehavior interface, encapsulates CardOS specific logic -// for security operations. -// -// Copyright: (c) 2002-2008 cv cryptovision GmbH all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -// -// Autor: Markus Tesche -// Date: 06/03/2008 -// --------------------------------------------------------------------------- - -#ifndef ACT_ISCardOSBehavior_h -#define ACT_ISCardOSBehavior_h - -#include "actIRefCounted.h" - -namespace act -{ - class Blob; - class IEMSAAlg; - class ISCardOS; - class ITokenPIN; - - enum OSBehavior - { - NONE_BEHAVIOR = 0x00000000, - - // algorithm behaviors - SIGN_BEHAVIOR = 0x00000001, - VERIFY_BEHAVIOR = 0x00000002, - DECRYPT_BEHAVIOR = 0x00000004, - ENCRYPT_BEHAVIOR = 0x00000008, - AGREEMENT_BEHAVIOR = 0x00000010, - ALGORITHM_BEHAVIOR_MASK = 0x000000FF, - - // key behaviors - GENERATE_KEY_BEHAVIOR = 0x00000100, - IMPORT_KEY_BEHAVIOR = 0x00000200, - DELETE_PRIVKEY_BEHAVIOR = 0x00000400, - KEY_BEHAVIOR_MASK = 0x0000FF00, - - // PIN behaviors - VERIFY_PIN_BEHAVIOR = 0x00010000, - CHANGE_PIN_BEHAVIOR = 0x00020000, - SET_PIN_BEHAVIOR = 0x00040000, - UNLOCK_PIN_BEHAVIOR = 0x00080000, - PIN_BEHAVIOR_MASK = 0x00FF0000 - }; - - // - // ISCardOSBehavior - class ISCardOSBehavior : public IRefCounted - { - public: - virtual bool Supports(int behavior) const throw() = 0; - - virtual Blob ComputeDigitalSignature(ISCardOS* os, const Blob& data, int mode) = 0; - virtual Blob ComputeDigitalSignature(ISCardOS* os, IEMSAAlg* emsa, int mode) = 0; - virtual Blob Encipher(ISCardOS* os, const Blob& plaintext) = 0; - virtual Blob Decipher(ISCardOS* os, const Blob& encrypted_data) = 0; - virtual Blob AgreeKey(ISCardOS* os, const Blob& pubkey) = 0; - - virtual void GenerateRSAKeyPair(ISCardOS* os, byte key_num, size_t key_size) = 0; - virtual void ImportRSAKeyPair(ISCardOS* os, int key_id, const Blob& prime_p, const Blob& prime_q, - const Blob& priv_exp, Blob& pubkey) = 0; - virtual void DeletePrivateKeyObj(ISCardOS* os, unsigned short fid) = 0; - - virtual void doVerifyPinCmd(const ITokenPIN* token_pin, const Blob& pin_value) = 0; - virtual void doChangePinCmd(const ITokenPIN* token_pin, const Blob& oldnew_value) = 0; - virtual void doSetPinValueCmd(const ITokenPIN* token_pin, const Blob& newpin_value) = 0; - virtual void UnlockPin(const ITokenPIN* token_pin, const Blob& new_pin) = 0; - }; - -} // namespace act - -#endif // ACT_ISCardOSBehavior_h +// --------------------------------------------------------------------------- +// Name: actISCardOSBehavior.h +// Product: cv act library +// Purpose: ISCardOSBehavior interface, encapsulates CardOS specific logic +// for security operations. +// +// Copyright: (c) 2002-2008 cv cryptovision GmbH all rights reserved +// Licence: The conditions for the use of this software are regulated +// in the cv act library licence agreement. +// +// Autor: Markus Tesche +// Date: 06/03/2008 +// --------------------------------------------------------------------------- + +#ifndef ACT_ISCardOSBehavior_h +#define ACT_ISCardOSBehavior_h + +#include "actIRefCounted.h" + +namespace act +{ + class Blob; + class IEMSAAlg; + class ISCardOS; + class ITokenPIN; + + enum OSBehavior + { + NONE_BEHAVIOR = 0x00000000, + + // algorithm behaviors + SIGN_BEHAVIOR = 0x00000001, + VERIFY_BEHAVIOR = 0x00000002, + DECRYPT_BEHAVIOR = 0x00000004, + ENCRYPT_BEHAVIOR = 0x00000008, + AGREEMENT_BEHAVIOR = 0x00000010, + ALGORITHM_BEHAVIOR_MASK = 0x000000FF, + + // key behaviors + GENERATE_KEY_BEHAVIOR = 0x00000100, + IMPORT_KEY_BEHAVIOR = 0x00000200, + DELETE_PRIVKEY_BEHAVIOR = 0x00000400, + KEY_BEHAVIOR_MASK = 0x0000FF00, + + // PIN behaviors + VERIFY_PIN_BEHAVIOR = 0x00010000, + CHANGE_PIN_BEHAVIOR = 0x00020000, + SET_PIN_BEHAVIOR = 0x00040000, + UNLOCK_PIN_BEHAVIOR = 0x00080000, + PIN_BEHAVIOR_MASK = 0x00FF0000 + }; + + // + // ISCardOSBehavior + class ISCardOSBehavior : public IRefCounted + { + public: + virtual bool Supports(int behavior) const throw() = 0; + + virtual Blob ComputeDigitalSignature(ISCardOS* os, const Blob& data, int mode) = 0; + virtual Blob ComputeDigitalSignature(ISCardOS* os, IEMSAAlg* emsa, int mode) = 0; + virtual Blob Encipher(ISCardOS* os, const Blob& plaintext) = 0; + virtual Blob Decipher(ISCardOS* os, const Blob& encrypted_data) = 0; + virtual Blob AgreeKey(ISCardOS* os, const Blob& pubkey) = 0; + + virtual void GenerateRSAKeyPair(ISCardOS* os, byte key_num, size_t key_size) = 0; + virtual void ImportRSAKeyPair(ISCardOS* os, int key_id, const Blob& prime_p, const Blob& prime_q, + const Blob& priv_exp, Blob& pubkey) = 0; + virtual void DeletePrivateKeyObj(ISCardOS* os, unsigned short fid) = 0; + + virtual void doVerifyPinCmd(const ITokenPIN* token_pin, const Blob& pin_value) = 0; + virtual void doChangePinCmd(const ITokenPIN* token_pin, const Blob& oldnew_value) = 0; + virtual void doSetPinValueCmd(const ITokenPIN* token_pin, const Blob& newpin_value) = 0; + virtual void UnlockPin(const ITokenPIN* token_pin, const Blob& new_pin) = 0; + }; + +} // namespace act + +#endif // ACT_ISCardOSBehavior_h diff --git a/actlibrary/MacOSX-10.5-x86_64/Release/include/actISecurityManager.h b/actlibrary/include/actISecurityManager.h similarity index 96% rename from actlibrary/MacOSX-10.5-x86_64/Release/include/actISecurityManager.h rename to actlibrary/include/actISecurityManager.h index ecaccd8..d827cd4 100644 --- a/actlibrary/MacOSX-10.5-x86_64/Release/include/actISecurityManager.h +++ b/actlibrary/include/actISecurityManager.h @@ -1,60 +1,60 @@ -// --------------------------------------------------------------------------- -// Name: actISecurityManager.h -// Product: cv act library -// Purpose: ISecurityManager used to manage the token authentication objects. -// -// Copyright: (c) 2008 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -// -// Autor: Markus Tesche (MTE) -// Date: 08/05/2008 -// --------------------------------------------------------------------------- - -#ifndef ACT_ISecurityManager_h -#define ACT_ISecurityManager_h - -#include "actBasics.h" -#include "actIRefCounted.h" - -namespace act -{ - class ITokenPIN; - class IAuthIdRef; - - enum SecManType - { - SecManUnknown = 0, - SecManPIN, - SecManBio, - }; - - // - // ISecurityManager - // TODO: MTE: Add access control management - class ISecurityManager : public IRefCounted - { - public: - virtual SecManType GetType() const = 0; - virtual void Delete(ITokenPIN* auth_obj) = 0; - }; - - class IPINManager : public ISecurityManager - { - public: - // NOTE: MTE: pin can be empty! - virtual ITokenPIN* Create(IAuthIdRef* authIdRef, IAuthIdRef* parentAuthIdRef, - int retryCount, const Blob& pin) = 0; - }; - - class IBioManager : public ISecurityManager - { - public: - virtual ITokenPIN* Create(IAuthIdRef* authIdRef, IAuthIdRef* parentAuthIdRef, - int retryCount, int bioFinger) = 0; - }; - -} // namespace act - -#endif // ACT_ISecurityManager_h +// --------------------------------------------------------------------------- +// Name: actISecurityManager.h +// Product: cv act library +// Purpose: ISecurityManager used to manage the token authentication objects. +// +// Copyright: (c) 2008 cv cryptovision GmbH +// all rights reserved +// Licence: The conditions for the use of this software are regulated +// in the cv act library licence agreement. +// +// Autor: Markus Tesche (MTE) +// Date: 08/05/2008 +// --------------------------------------------------------------------------- + +#ifndef ACT_ISecurityManager_h +#define ACT_ISecurityManager_h + +#include "actBasics.h" +#include "actIRefCounted.h" + +namespace act +{ + class ITokenPIN; + class IAuthIdRef; + + enum SecManType + { + SecManUnknown = 0, + SecManPIN, + SecManBio, + }; + + // + // ISecurityManager + // TODO: MTE: Add access control management + class ISecurityManager : public IRefCounted + { + public: + virtual SecManType GetType() const = 0; + virtual void Delete(ITokenPIN* auth_obj) = 0; + }; + + class IPINManager : public ISecurityManager + { + public: + // NOTE: MTE: pin can be empty! + virtual ITokenPIN* Create(IAuthIdRef* authIdRef, IAuthIdRef* parentAuthIdRef, + int retryCount, const Blob& pin) = 0; + }; + + class IBioManager : public ISecurityManager + { + public: + virtual ITokenPIN* Create(IAuthIdRef* authIdRef, IAuthIdRef* parentAuthIdRef, + int retryCount, int bioFinger) = 0; + }; + +} // namespace act + +#endif // ACT_ISecurityManager_h diff --git a/actlibrary/MacOSX-10.6-x86_64/Release/include/actISignatureKey.h b/actlibrary/include/actISignatureKey.h similarity index 96% rename from actlibrary/MacOSX-10.6-x86_64/Release/include/actISignatureKey.h rename to actlibrary/include/actISignatureKey.h index 2538580..a677acc 100644 --- a/actlibrary/MacOSX-10.6-x86_64/Release/include/actISignatureKey.h +++ b/actlibrary/include/actISignatureKey.h @@ -1,32 +1,32 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actISignatureKey.h -// Product: cv act library -// Purpose: The interface ISignatureKey enables access to the aggregated -// EMSA-object of the SignatureKeys. -// -// Copyright: (c) 2000 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_ISignatureKey_h -#define ACT_ISignatureKey_h - -#include "actIKey.h" - -namespace act -{ - class IEMSAAlg; - - class ISignatureKey : public IKey - { - public: - virtual void SetEncoder(IEMSAAlg* padding) = 0; - virtual const IEMSAAlg* GetEncoder() const = 0; - virtual IEMSAAlg* GetEncoder() = 0; - }; - -} // namespace act - -#endif // ACT_ISignatureKey_h +////////////////////////////////////////////////////////////////////////////////// +// Name: actISignatureKey.h +// Product: cv act library +// Purpose: The interface ISignatureKey enables access to the aggregated +// EMSA-object of the SignatureKeys. +// +// Copyright: (c) 2000 cv cryptovision GmbH +// all rights reserved +// Licence: The conditions for the use of this software are regulated +// in the cv act library licence agreement. +////////////////////////////////////////////////////////////////////////////////// + +#ifndef ACT_ISignatureKey_h +#define ACT_ISignatureKey_h + +#include "actIKey.h" + +namespace act +{ + class IEMSAAlg; + + class ISignatureKey : public IKey + { + public: + virtual void SetEncoder(IEMSAAlg* padding) = 0; + virtual const IEMSAAlg* GetEncoder() const = 0; + virtual IEMSAAlg* GetEncoder() = 0; + }; + +} // namespace act + +#endif // ACT_ISignatureKey_h diff --git a/actlibrary/MacOSX-10.6-x86_64/Release/include/actISlot.h b/actlibrary/include/actISlot.h similarity index 96% rename from actlibrary/MacOSX-10.6-x86_64/Release/include/actISlot.h rename to actlibrary/include/actISlot.h index b3a2efd..fa25c47 100644 --- a/actlibrary/MacOSX-10.6-x86_64/Release/include/actISlot.h +++ b/actlibrary/include/actISlot.h @@ -1,82 +1,82 @@ -// --------------------------------------------------------------------------- -// Name: actISlot.h -// Product: cv act library -// Purpose: The class ISlot manages the Tokens -// -// Copyright: (c) 2002 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -// -// Autor: Dr. Xiangdong Wang (XWG) -// Date: 03/26/2002 -// --------------------------------------------------------------------------- - -#ifndef ACT_ISlot_h -#define ACT_ISlot_h - -#include "actBasics.h" -#include "actBlob.h" - -#include "actIRefCounted.h" -#include "actISynchronize.h" -#include "actIEventMonitoring.h" - -namespace act -{ - class IToken; - class ITokenConfig; - class ISCardOS; - class ISCardAccess; - class ISubsystem; - - // --------------------------------------------------------------------------- - class ISlot - : public IRefCounted - , public ISynchronize - , public IEventMonitoring - { - protected: - virtual ~ISlot() { } - - public: - virtual ISlot* Clone() const = 0; - - virtual bool IsTokenPresent() const = 0; - virtual const char* GetName() const = 0; - virtual ISubsystem* GetSystem() const = 0; - - virtual Blob GetATR() const = 0; - virtual Blob GetHistoricalBytes() const = 0; - - virtual ISCardOS* CreateOS(const Blob& historical_bytes = Blob()) = 0; - virtual IToken* CreateToken(ISCardOS* os = 0) = 0; - virtual ISCardAccess* CreateAccess() = 0; - - virtual void SetTokenConfig(ITokenConfig* tkcfg) = 0; - - virtual bool HasSecurePinEntry(ISCardAccess* ac = 0) const = 0; - virtual bool HasSecurePinChange(ISCardAccess* ac = 0) const = 0; - - virtual void SetParam(paramid_t id,int val) = 0; - virtual int GetParam(paramid_t id) const = 0; - }; - - // --------------------------------------------------------------------------- - struct ATRCardInfo - { - const char* name; - const char* atr; - const char* atr_mask; - }; - - // --------------------------------------------------------------------------- - void InitCardInfoMap(const ATRCardInfo* mapCardInfo); - const ATRCardInfo* GetATRCardInfo(const Blob& atr); - const char* GetOSName(const Blob& atr); - Blob GetHistoricalBytes(const Blob& atr); - bool GetATRStructInfo(const Blob& atr, size_t& his_pos, size_t& his_len, bool& has_tck); - -} // namespace act - -#endif // ACT_ISlot_h +// --------------------------------------------------------------------------- +// Name: actISlot.h +// Product: cv act library +// Purpose: The class ISlot manages the Tokens +// +// Copyright: (c) 2002 cv cryptovision GmbH +// all rights reserved +// Licence: The conditions for the use of this software are regulated +// in the cv act library licence agreement. +// +// Autor: Dr. Xiangdong Wang (XWG) +// Date: 03/26/2002 +// --------------------------------------------------------------------------- + +#ifndef ACT_ISlot_h +#define ACT_ISlot_h + +#include "actBasics.h" +#include "actBlob.h" + +#include "actIRefCounted.h" +#include "actISynchronize.h" +#include "actIEventMonitoring.h" + +namespace act +{ + class IToken; + class ITokenConfig; + class ISCardOS; + class ISCardAccess; + class ISubsystem; + + // --------------------------------------------------------------------------- + class ISlot + : public IRefCounted + , public ISynchronize + , public IEventMonitoring + { + protected: + virtual ~ISlot() { } + + public: + virtual ISlot* Clone() const = 0; + + virtual bool IsTokenPresent() const = 0; + virtual const char* GetName() const = 0; + virtual ISubsystem* GetSystem() const = 0; + + virtual Blob GetATR() const = 0; + virtual Blob GetHistoricalBytes() const = 0; + + virtual ISCardOS* CreateOS(const Blob& historical_bytes = Blob()) = 0; + virtual IToken* CreateToken(ISCardOS* os = 0) = 0; + virtual ISCardAccess* CreateAccess() = 0; + + virtual void SetTokenConfig(ITokenConfig* tkcfg) = 0; + + virtual bool HasSecurePinEntry(ISCardAccess* ac = 0) const = 0; + virtual bool HasSecurePinChange(ISCardAccess* ac = 0) const = 0; + + virtual void SetParam(paramid_t id,int val) = 0; + virtual int GetParam(paramid_t id) const = 0; + }; + + // --------------------------------------------------------------------------- + struct ATRCardInfo + { + const char* name; + const char* atr; + const char* atr_mask; + }; + + // --------------------------------------------------------------------------- + void InitCardInfoMap(const ATRCardInfo* mapCardInfo); + const ATRCardInfo* GetATRCardInfo(const Blob& atr); + const char* GetOSName(const Blob& atr); + Blob GetHistoricalBytes(const Blob& atr); + bool GetATRStructInfo(const Blob& atr, size_t& his_pos, size_t& his_len, bool& has_tck); + +} // namespace act + +#endif // ACT_ISlot_h diff --git a/actlibrary/MacOSX-10.6-x86_64/Release/include/actISlotMonitor.h b/actlibrary/include/actISlotMonitor.h similarity index 96% rename from actlibrary/MacOSX-10.6-x86_64/Release/include/actISlotMonitor.h rename to actlibrary/include/actISlotMonitor.h index 358abc0..c957360 100644 --- a/actlibrary/MacOSX-10.6-x86_64/Release/include/actISlotMonitor.h +++ b/actlibrary/include/actISlotMonitor.h @@ -1,39 +1,39 @@ -// --------------------------------------------------------------------------- -// Name: actISlotMonitor.h -// Product: cv act library -// Purpose: The class SlotMonitor notifies the slot events -// -// Copyright: (c) 2002 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -// -// Autor: Dr. Xiangdong Wang (XWG) -// Date: 05/27/2002 -// --------------------------------------------------------------------------- - -#ifndef ACT_ISlotMonitor_h -#define ACT_ISlotMonitor_h - -#include "actIRefCounted.h" - -namespace act -{ - class IEventHandler; - - // - // ISlotMonitor - class ISlotMonitor : public IRefCounted - { - public: - virtual void Stop() = 0; - virtual void Start(IEventHandler* cmd) = 0; - virtual bool Interrupted() const = 0; - - protected: - virtual void Run() = 0; - }; - -} // namespace act - -#endif // ACT_ISlotMonitor_h +// --------------------------------------------------------------------------- +// Name: actISlotMonitor.h +// Product: cv act library +// Purpose: The class SlotMonitor notifies the slot events +// +// Copyright: (c) 2002 cv cryptovision GmbH +// all rights reserved +// Licence: The conditions for the use of this software are regulated +// in the cv act library licence agreement. +// +// Autor: Dr. Xiangdong Wang (XWG) +// Date: 05/27/2002 +// --------------------------------------------------------------------------- + +#ifndef ACT_ISlotMonitor_h +#define ACT_ISlotMonitor_h + +#include "actIRefCounted.h" + +namespace act +{ + class IEventHandler; + + // + // ISlotMonitor + class ISlotMonitor : public IRefCounted + { + public: + virtual void Stop() = 0; + virtual void Start(IEventHandler* cmd) = 0; + virtual bool Interrupted() const = 0; + + protected: + virtual void Run() = 0; + }; + +} // namespace act + +#endif // ACT_ISlotMonitor_h diff --git a/actlibrary/MacOSX-10.5-x86_64/Release/include/actIStreamCipher.h b/actlibrary/include/actIStreamCipher.h similarity index 96% rename from actlibrary/MacOSX-10.5-x86_64/Release/include/actIStreamCipher.h rename to actlibrary/include/actIStreamCipher.h index 4c53d98..3d215c6 100644 --- a/actlibrary/MacOSX-10.5-x86_64/Release/include/actIStreamCipher.h +++ b/actlibrary/include/actIStreamCipher.h @@ -1,51 +1,51 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actIStreamCipher.h -// Product: cv act library -// Purpose: The class IStreamCipher creates the symmetric StreamCipher, which is -// defined by IStreamCipherKey. It offers operations like encrypt, decrypt -// and queries involving validity or keylength etc. -// -// Copyright: (c) 2001 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_IStreamCipher_h -#define ACT_IStreamCipher_h - -#include "actBasics.h" - -namespace act -{ - - class Blob; - - class IStreamCipher - { - public: - - virtual IStreamCipher* Clone() const =0; - virtual void Import( const Blob& indata ) =0; - virtual void Export( Blob& outdata ) const =0; - - virtual void SetRawKey( const Blob& keyblob ) =0; - virtual void GetRawKey( Blob& keyblob ) const =0; - - virtual void Process(const byte* input, byte* output, size_t input_len) const =0; - - virtual size_t GetKeySize(size_t keysize=0) const =0; - virtual size_t GetMinKeySize() const =0; - virtual size_t GetMaxKeySize() const =0; - virtual size_t GetNextKeySize(size_t prevsize) const =0; - - virtual void* GetCreatePointer() const =0; - - virtual ~IStreamCipher() {}; - }; - - -}// namespace act - -#endif - +////////////////////////////////////////////////////////////////////////////////// +// Name: actIStreamCipher.h +// Product: cv act library +// Purpose: The class IStreamCipher creates the symmetric StreamCipher, which is +// defined by IStreamCipherKey. It offers operations like encrypt, decrypt +// and queries involving validity or keylength etc. +// +// Copyright: (c) 2001 cv cryptovision GmbH +// all rights reserved +// Licence: The conditions for the use of this software are regulated +// in the cv act library licence agreement. +////////////////////////////////////////////////////////////////////////////////// + +#ifndef ACT_IStreamCipher_h +#define ACT_IStreamCipher_h + +#include "actBasics.h" + +namespace act +{ + + class Blob; + + class IStreamCipher + { + public: + + virtual IStreamCipher* Clone() const =0; + virtual void Import( const Blob& indata ) =0; + virtual void Export( Blob& outdata ) const =0; + + virtual void SetRawKey( const Blob& keyblob ) =0; + virtual void GetRawKey( Blob& keyblob ) const =0; + + virtual void Process(const byte* input, byte* output, size_t input_len) const =0; + + virtual size_t GetKeySize(size_t keysize=0) const =0; + virtual size_t GetMinKeySize() const =0; + virtual size_t GetMaxKeySize() const =0; + virtual size_t GetNextKeySize(size_t prevsize) const =0; + + virtual void* GetCreatePointer() const =0; + + virtual ~IStreamCipher() {}; + }; + + +}// namespace act + +#endif + diff --git a/actlibrary/MacOSX-10.6-x86_64/Release/include/actIStreamCipherKey.h b/actlibrary/include/actIStreamCipherKey.h similarity index 96% rename from actlibrary/MacOSX-10.6-x86_64/Release/include/actIStreamCipherKey.h rename to actlibrary/include/actIStreamCipherKey.h index 7282893..9c2ebff 100644 --- a/actlibrary/MacOSX-10.6-x86_64/Release/include/actIStreamCipherKey.h +++ b/actlibrary/include/actIStreamCipherKey.h @@ -1,39 +1,39 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actIStreamCipherKey.h -// Product: cv act library -// Purpose: The class IStreamCipherKey extends the interface of the class IKey -// and supports the peculiarities of symmetric keys. -// -// -// Copyright: (c) 2001 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_IStreamCipherKey_h -#define ACT_IStreamCipherKey_h - -#include "actIKey.h" - -namespace act -{ - class IStreamCipher; - class IDerivator; - - class IStreamCipherKey : public IKey - { - public: - - virtual void SetCipher(IStreamCipher* cipher) = 0; - virtual const IStreamCipher* GetCipher() const = 0; - virtual IStreamCipher* GetCipher() = 0; - - virtual void SetDerivator(IDerivator* derive) = 0; - virtual const IDerivator* GetDerivator() const = 0; - virtual IDerivator* GetDerivator() = 0; - }; - -} //namespace act - -#endif // ACT_IStreamCipherKey_h +////////////////////////////////////////////////////////////////////////////////// +// Name: actIStreamCipherKey.h +// Product: cv act library +// Purpose: The class IStreamCipherKey extends the interface of the class IKey +// and supports the peculiarities of symmetric keys. +// +// +// Copyright: (c) 2001 cv cryptovision GmbH +// all rights reserved +// Licence: The conditions for the use of this software are regulated +// in the cv act library licence agreement. +////////////////////////////////////////////////////////////////////////////////// + +#ifndef ACT_IStreamCipherKey_h +#define ACT_IStreamCipherKey_h + +#include "actIKey.h" + +namespace act +{ + class IStreamCipher; + class IDerivator; + + class IStreamCipherKey : public IKey + { + public: + + virtual void SetCipher(IStreamCipher* cipher) = 0; + virtual const IStreamCipher* GetCipher() const = 0; + virtual IStreamCipher* GetCipher() = 0; + + virtual void SetDerivator(IDerivator* derive) = 0; + virtual const IDerivator* GetDerivator() const = 0; + virtual IDerivator* GetDerivator() = 0; + }; + +} //namespace act + +#endif // ACT_IStreamCipherKey_h diff --git a/actlibrary/MacOSX-10.4-ppc/Release/include/actISubsystem.h b/actlibrary/include/actISubsystem.h similarity index 96% rename from actlibrary/MacOSX-10.4-ppc/Release/include/actISubsystem.h rename to actlibrary/include/actISubsystem.h index 731b4cd..e00c150 100644 --- a/actlibrary/MacOSX-10.4-ppc/Release/include/actISubsystem.h +++ b/actlibrary/include/actISubsystem.h @@ -1,54 +1,54 @@ -// --------------------------------------------------------------------------- -// Name: actISubsystem.h -// Product: cv act library -// Purpose: The class ISubsystem detects and manages the slots -// -// Copyright: (c) 2002 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -// -// Autor: Dr. Xiangdong Wang (XWG) -// Date: 03/26/2002 -// --------------------------------------------------------------------------- - -#ifndef ACT_ISubsystem_h -#define ACT_ISubsystem_h - -#include "actBasics.h" -#include "actIRefCounted.h" -#include "actISynchronize.h" -#include "actIEventMonitoring.h" - -namespace act -{ - class ISlot; - class ITokenConfig; - - // - // ISubsystem - class ISubsystem - : public IRefCounted - , public ISynchronize - , public IEventMonitoring - { - public: - virtual void Refresh() = 0; - virtual bool Disconnect() = 0; - virtual bool Install(size_t port) = 0; - virtual const char* GetName() const = 0; - - // SlotList - virtual int GetSlotNumber() const = 0; - virtual const ISlot* GetSlot(int pos) const = 0; - virtual ISlot* CreateSlot(const char* name) = 0; - - virtual void SetTokenConfig(ITokenConfig* tkcfg) = 0; - - protected: - virtual ~ISubsystem() { } - }; - -} // namespace act - -#endif // ACT_ISubsystem_h +// --------------------------------------------------------------------------- +// Name: actISubsystem.h +// Product: cv act library +// Purpose: The class ISubsystem detects and manages the slots +// +// Copyright: (c) 2002 cv cryptovision GmbH +// all rights reserved +// Licence: The conditions for the use of this software are regulated +// in the cv act library licence agreement. +// +// Autor: Dr. Xiangdong Wang (XWG) +// Date: 03/26/2002 +// --------------------------------------------------------------------------- + +#ifndef ACT_ISubsystem_h +#define ACT_ISubsystem_h + +#include "actBasics.h" +#include "actIRefCounted.h" +#include "actISynchronize.h" +#include "actIEventMonitoring.h" + +namespace act +{ + class ISlot; + class ITokenConfig; + + // + // ISubsystem + class ISubsystem + : public IRefCounted + , public ISynchronize + , public IEventMonitoring + { + public: + virtual void Refresh() = 0; + virtual bool Disconnect() = 0; + virtual bool Install(size_t port) = 0; + virtual const char* GetName() const = 0; + + // SlotList + virtual int GetSlotNumber() const = 0; + virtual const ISlot* GetSlot(int pos) const = 0; + virtual ISlot* CreateSlot(const char* name) = 0; + + virtual void SetTokenConfig(ITokenConfig* tkcfg) = 0; + + protected: + virtual ~ISubsystem() { } + }; + +} // namespace act + +#endif // ACT_ISubsystem_h diff --git a/actlibrary/MacOSX-10.6-x86_64/Release/include/actISubsystemConfig.h b/actlibrary/include/actISubsystemConfig.h similarity index 96% rename from actlibrary/MacOSX-10.6-x86_64/Release/include/actISubsystemConfig.h rename to actlibrary/include/actISubsystemConfig.h index 165ac6e..c1ec064 100644 --- a/actlibrary/MacOSX-10.6-x86_64/Release/include/actISubsystemConfig.h +++ b/actlibrary/include/actISubsystemConfig.h @@ -1,38 +1,38 @@ -// --------------------------------------------------------------------------- -// Name: actISubsystemConfig.h -// Product: cv act library -// Purpose: The Subsystem configuration. -// -// Copyright: (c) 2006 cv cryptovision GmbH -// all rights reserved. -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -// -// Autor: Markus Tesche (MTE) -// Date: 1/12/2006 -// --------------------------------------------------------------------------- - -#ifndef ACT_ISubsystemConfig_h -#define ACT_ISubsystemConfig_h - -#include "actIRefCounted.h" - -namespace act -{ - class ISubsystem; - - // - // ISubsystemConfig - class ISubsystemConfig : public IRefCounted - { - public: - // Returns the Subsystem name. - virtual const char* GetName() const = 0; - - // Configures the Subsystem, if fails throws an Exception. - virtual void ConfigureSubsystem(ISubsystem*) = 0; - }; - -} // namespace act - -#endif // ACT_ISubsystemConfig_h +// --------------------------------------------------------------------------- +// Name: actISubsystemConfig.h +// Product: cv act library +// Purpose: The Subsystem configuration. +// +// Copyright: (c) 2006 cv cryptovision GmbH +// all rights reserved. +// Licence: The conditions for the use of this software are regulated +// in the cv act library licence agreement. +// +// Autor: Markus Tesche (MTE) +// Date: 1/12/2006 +// --------------------------------------------------------------------------- + +#ifndef ACT_ISubsystemConfig_h +#define ACT_ISubsystemConfig_h + +#include "actIRefCounted.h" + +namespace act +{ + class ISubsystem; + + // + // ISubsystemConfig + class ISubsystemConfig : public IRefCounted + { + public: + // Returns the Subsystem name. + virtual const char* GetName() const = 0; + + // Configures the Subsystem, if fails throws an Exception. + virtual void ConfigureSubsystem(ISubsystem*) = 0; + }; + +} // namespace act + +#endif // ACT_ISubsystemConfig_h diff --git a/actlibrary/MacOSX-10.4-ppc/Release/include/actISynchronize.h b/actlibrary/include/actISynchronize.h similarity index 96% rename from actlibrary/MacOSX-10.4-ppc/Release/include/actISynchronize.h rename to actlibrary/include/actISynchronize.h index c8f1ef6..8eb7c84 100644 --- a/actlibrary/MacOSX-10.4-ppc/Release/include/actISynchronize.h +++ b/actlibrary/include/actISynchronize.h @@ -1,43 +1,43 @@ -////////////////////////////////////////////////////////////////////////// -// Name: actISynchronize.h -// Product: cv act library -// Purpose: Implemented by types supporting multithreading synchronization. -// -// Copyright: (c) 2010 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -// -// Autor: Markus Tesche -// Date: 07/27/2010 -////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_ISynchronize_h -#define ACT_ISynchronize_h - -namespace act -{ - class Handle; - - // - // ISynchronize - class ISynchronize - { - protected: - virtual ~ISynchronize() { } - - public: - virtual void Lock() = 0; - virtual void Unlock() = 0; - virtual long LockCount() const = 0; - - virtual const Handle& syncHandle() const = 0; - }; - - inline void Lock(ISynchronize& object) { object.Lock(); } - inline void Unlock(ISynchronize& object) { object.Unlock(); } - inline long LockCount(const ISynchronize& object) { return object.LockCount(); } - -} // namespace act - -#endif // ACT_ISynchronize_h +////////////////////////////////////////////////////////////////////////// +// Name: actISynchronize.h +// Product: cv act library +// Purpose: Implemented by types supporting multithreading synchronization. +// +// Copyright: (c) 2010 cv cryptovision GmbH +// all rights reserved +// Licence: The conditions for the use of this software are regulated +// in the cv act library licence agreement. +// +// Autor: Markus Tesche +// Date: 07/27/2010 +////////////////////////////////////////////////////////////////////////// + +#ifndef ACT_ISynchronize_h +#define ACT_ISynchronize_h + +namespace act +{ + class Handle; + + // + // ISynchronize + class ISynchronize + { + protected: + virtual ~ISynchronize() { } + + public: + virtual void Lock() = 0; + virtual void Unlock() = 0; + virtual long LockCount() const = 0; + + virtual const Handle& syncHandle() const = 0; + }; + + inline void Lock(ISynchronize& object) { object.Lock(); } + inline void Unlock(ISynchronize& object) { object.Unlock(); } + inline long LockCount(const ISynchronize& object) { return object.LockCount(); } + +} // namespace act + +#endif // ACT_ISynchronize_h diff --git a/actlibrary/MacOSX-10.6-x86_64/Release/include/actIToken.h b/actlibrary/include/actIToken.h similarity index 96% rename from actlibrary/MacOSX-10.6-x86_64/Release/include/actIToken.h rename to actlibrary/include/actIToken.h index 15d0ac2..9d33862 100644 --- a/actlibrary/MacOSX-10.6-x86_64/Release/include/actIToken.h +++ b/actlibrary/include/actIToken.h @@ -1,165 +1,165 @@ -// --------------------------------------------------------------------------- -// Name: actIToken.h -// Product: cv act library -// Purpose: The IToken interface represents the profile and the application -// supported by a token. -// -// Copyright: (c) 2002 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -// -// Autor: Dr. Xiangdong Wang (XWG) -// Date: 03/22/2002 -// --------------------------------------------------------------------------- - -#ifndef ACT_IToken_h -#define ACT_IToken_h - -#include "actBlob.h" -#include "actBasics.h" -#include "actTokenBase.h" - -#include "actISynchronize.h" -#include "actITokenFileCache.h" -#include "actIAccessCondition.h" - -namespace act -{ - class IKey; - class IEMSAAlg; - class ICertificate; - class IAuthIdRef; - class ITokenPIN; - class ITokenAuth; - class ITokenFile; - class ITokenFileMap; - class ITokenConfig; - class ITokenKeyIterator; - class ISecurityManager; - class ITokenAuthIterator; - - struct CertEntry - { - int usage; - Blob certblob; - }; - - // - // ITokenView - class ITokenView - { - protected: - virtual ~ITokenView() { } - - public: - virtual IToken* GetToken() = 0; - - virtual ITokenView* GetPrev() const = 0; - virtual ITokenView* GetNext() const = 0; - - virtual ITokenFile* GetPath() const = 0; - virtual ITokenFileMap* GetFileMap() const = 0; - - virtual bool Equals(const ITokenView* other) const = 0; - - // Divide view into partitions, based on type[PATH|PIN] - virtual size_t Split(paramid_t type) = 0; - virtual ITokenView* SetDefault() = 0; - }; - - // - // IToken - class IToken - : public IRefCounted - , public IAcConverter - , public ISynchronize - { - protected: - virtual ~IToken() { } - - public: - virtual ITokenView* GetView() const = 0; - virtual ITokenConfig* GetConfig() const = 0; - virtual ITokenFile* GetTokenFile(const Blob& path) = 0; - - virtual int GetStatus() const = 0; - virtual int GetType() const = 0; - virtual ProfileType GetProfileType() = 0; - virtual const char* GetName() const = 0; - - // Returns the serial number, which may (!) be empty or equal the hardware serial! - virtual Blob GetSerialNumber() const = 0; - virtual Blob GetCardholderName() const = 0; - virtual Blob GetRandom(const unsigned long count) const = 0; - virtual void SetSeed(const Blob& seed) = 0; - - // Generate a new key - virtual IKey* NewKey(int key_type) = 0; - - // Add key to token, takes ownership - even on exception! - virtual void AddKey(IKey* key) = 0; - virtual bool RemoveKey(IKey* key) = 0; - - // Write/Import a (soft) key to token - virtual IKey* WriteKey(const IKey* key) = 0; - - // Get a token key instance from matching certificate - virtual IKey* CreateKey(const Blob& cert) const = 0; - virtual IKey* CreateKey(const ICertificate* cert) const = 0; - - // Key Objects - virtual int GetKeyNumber() const = 0; - virtual IKey* GetKey(int pos) const = 0; - virtual ITokenKeyIterator* GetKeyIterator(KeyType type, const Blob& authId = Blob()) = 0; - - // Certificate Objects - virtual int GetCertificateNumber() const = 0; - virtual CertEntry GetCertificate(int pos) const = 0; - - // Write/Delete a certificate (corresponding to a key) to token - virtual void WriteCertificate(const Blob& cert, IKey* key = 0) = 0; - virtual void DeleteCertificate(const Blob& cert, IKey* key = 0) = 0; - - // Authentication Objects - virtual ITokenAuth* GetAuth() const = 0; - virtual ISecurityManager* SecurityManager(int authManagerType) = 0; - virtual ITokenAuthIterator* GetAuthIterator(int type, const Blob& authId = Blob()) = 0; - - virtual int GetPinNumber() const = 0; - virtual ITokenPIN* GetPin(const IAuthIdRef* authIdRef, const ITokenFile* location) const = 0; - virtual ITokenPIN* GetPin(int pos, const ITokenFile* location) const = 0; - virtual ITokenPIN* GetPin(const char* pin_name) const = 0; - virtual ITokenPIN* GetPin(const Blob& authId) const = 0; - - virtual ITokenPIN* GetUserPin() const = 0; - virtual ITokenPIN* GetSOPin() const = 0; - virtual void VerifyUserPin(const Blob& pinvalue) = 0; - virtual void ChangeUserPin(const Blob& oldpin, const Blob& newpin) = 0; - virtual void UnlockUserPin(const Blob& so_pin, const Blob& new_userpin) = 0; - virtual void VerifySOPin(const Blob& pinvalue) = 0; - virtual void ChangeSOPin(const Blob& oldpin, const Blob& newpin) = 0; - - virtual bool ResetSecurityState() const = 0; - - // Token specific - virtual void SelectDataPath() const = 0; // TODO: MTE: To be removed soon! - virtual ISCardOS* GetOS() const = 0; // TODO: MTE: To be removed soon! - - // Delete a key pair from token with matching token key or certificate - virtual void DeleteKeyPair(const IKey* key) = 0; - virtual void DeleteKeyPair(const Blob& cert) = 0; - - virtual bool IsPKCS15() const = 0; - virtual bool IsReadOnly() const = 0; - virtual bool LoginRequired() const = 0; - - virtual bool IsLocked() const = 0; - - virtual Blob GetCardId() const = 0; - virtual Blob GetCardCF() const = 0; - }; - -} // namespace act - -#endif // ACT_IToken_h +// --------------------------------------------------------------------------- +// Name: actIToken.h +// Product: cv act library +// Purpose: The IToken interface represents the profile and the application +// supported by a token. +// +// Copyright: (c) 2002 cv cryptovision GmbH +// all rights reserved +// Licence: The conditions for the use of this software are regulated +// in the cv act library licence agreement. +// +// Autor: Dr. Xiangdong Wang (XWG) +// Date: 03/22/2002 +// --------------------------------------------------------------------------- + +#ifndef ACT_IToken_h +#define ACT_IToken_h + +#include "actBlob.h" +#include "actBasics.h" +#include "actTokenBase.h" + +#include "actISynchronize.h" +#include "actITokenFileCache.h" +#include "actIAccessCondition.h" + +namespace act +{ + class IKey; + class IEMSAAlg; + class ICertificate; + class IAuthIdRef; + class ITokenPIN; + class ITokenAuth; + class ITokenFile; + class ITokenFileMap; + class ITokenConfig; + class ITokenKeyIterator; + class ISecurityManager; + class ITokenAuthIterator; + + struct CertEntry + { + int usage; + Blob certblob; + }; + + // + // ITokenView + class ITokenView + { + protected: + virtual ~ITokenView() { } + + public: + virtual IToken* GetToken() = 0; + + virtual ITokenView* GetPrev() const = 0; + virtual ITokenView* GetNext() const = 0; + + virtual ITokenFile* GetPath() const = 0; + virtual ITokenFileMap* GetFileMap() const = 0; + + virtual bool Equals(const ITokenView* other) const = 0; + + // Divide view into partitions, based on type[PATH|PIN] + virtual size_t Split(paramid_t type) = 0; + virtual ITokenView* SetDefault() = 0; + }; + + // + // IToken + class IToken + : public IRefCounted + , public IAcConverter + , public ISynchronize + { + protected: + virtual ~IToken() { } + + public: + virtual ITokenView* GetView() const = 0; + virtual ITokenConfig* GetConfig() const = 0; + virtual ITokenFile* GetTokenFile(const Blob& path) = 0; + + virtual int GetStatus() const = 0; + virtual int GetType() const = 0; + virtual ProfileType GetProfileType() = 0; + virtual const char* GetName() const = 0; + + // Returns the serial number, which may (!) be empty or equal the hardware serial! + virtual Blob GetSerialNumber() const = 0; + virtual Blob GetCardholderName() const = 0; + virtual Blob GetRandom(const unsigned long count) const = 0; + virtual void SetSeed(const Blob& seed) = 0; + + // Generate a new key + virtual IKey* NewKey(int key_type) = 0; + + // Add key to token, takes ownership - even on exception! + virtual void AddKey(IKey* key) = 0; + virtual bool RemoveKey(IKey* key) = 0; + + // Write/Import a (soft) key to token + virtual IKey* WriteKey(const IKey* key) = 0; + + // Get a token key instance from matching certificate + virtual IKey* CreateKey(const Blob& cert) const = 0; + virtual IKey* CreateKey(const ICertificate* cert) const = 0; + + // Key Objects + virtual int GetKeyNumber() const = 0; + virtual IKey* GetKey(int pos) const = 0; + virtual ITokenKeyIterator* GetKeyIterator(KeyType type, const Blob& authId = Blob()) = 0; + + // Certificate Objects + virtual int GetCertificateNumber() const = 0; + virtual CertEntry GetCertificate(int pos) const = 0; + + // Write/Delete a certificate (corresponding to a key) to token + virtual void WriteCertificate(const Blob& cert, IKey* key = 0) = 0; + virtual void DeleteCertificate(const Blob& cert, IKey* key = 0) = 0; + + // Authentication Objects + virtual ITokenAuth* GetAuth() const = 0; + virtual ISecurityManager* SecurityManager(int authManagerType) = 0; + virtual ITokenAuthIterator* GetAuthIterator(int type, const Blob& authId = Blob()) = 0; + + virtual int GetPinNumber() const = 0; + virtual ITokenPIN* GetPin(const IAuthIdRef* authIdRef, const ITokenFile* location) const = 0; + virtual ITokenPIN* GetPin(int pos, const ITokenFile* location) const = 0; + virtual ITokenPIN* GetPin(const char* pin_name) const = 0; + virtual ITokenPIN* GetPin(const Blob& authId) const = 0; + + virtual ITokenPIN* GetUserPin() const = 0; + virtual ITokenPIN* GetSOPin() const = 0; + virtual void VerifyUserPin(const Blob& pinvalue) = 0; + virtual void ChangeUserPin(const Blob& oldpin, const Blob& newpin) = 0; + virtual void UnlockUserPin(const Blob& so_pin, const Blob& new_userpin) = 0; + virtual void VerifySOPin(const Blob& pinvalue) = 0; + virtual void ChangeSOPin(const Blob& oldpin, const Blob& newpin) = 0; + + virtual bool ResetSecurityState() const = 0; + + // Token specific + virtual void SelectDataPath() const = 0; // TODO: MTE: To be removed soon! + virtual ISCardOS* GetOS() const = 0; // TODO: MTE: To be removed soon! + + // Delete a key pair from token with matching token key or certificate + virtual void DeleteKeyPair(const IKey* key) = 0; + virtual void DeleteKeyPair(const Blob& cert) = 0; + + virtual bool IsPKCS15() const = 0; + virtual bool IsReadOnly() const = 0; + virtual bool LoginRequired() const = 0; + + virtual bool IsLocked() const = 0; + + virtual Blob GetCardId() const = 0; + virtual Blob GetCardCF() const = 0; + }; + +} // namespace act + +#endif // ACT_IToken_h diff --git a/actlibrary/MacOSX-10.6-x86_64/Release/include/actITokenAuth.h b/actlibrary/include/actITokenAuth.h similarity index 96% rename from actlibrary/MacOSX-10.6-x86_64/Release/include/actITokenAuth.h rename to actlibrary/include/actITokenAuth.h index cd6d150..7d09042 100644 --- a/actlibrary/MacOSX-10.6-x86_64/Release/include/actITokenAuth.h +++ b/actlibrary/include/actITokenAuth.h @@ -1,139 +1,139 @@ -// --------------------------------------------------------------------------- -// Name: actITokenAuth.h -// Product: cv act library -// Purpose: The ITokenAuth interface represents a IToken authentication state -// using one the ITokenPIN objects owned by a token. -// -// Copyright: (c) 2007 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -// -// Autor: Markus Tesche (MTE) -// Date: 11/09/2007 -// --------------------------------------------------------------------------- - -#ifndef ACT_ITokenAuth_h -#define ACT_ITokenAuth_h - -#include "actBlob.h" -#include "actBasics.h" -#include "actIRefCounted.h" - -namespace act -{ - class AuthInfo; - - class IToken; - class ITokenPIN; - class ITokenFile; - class IAuthIdRef; - class IAuthConstrained; - - enum AuthConstrainedType - { - AUTH_CONSTRAINED_ALWAYS = 0, - AUTH_CONSTRAINED_NOT, - AUTH_CONSTRAINED_AND, - AUTH_CONSTRAINED_OR, - }; - - // - // IAuthFactory - class IAuthFactory - { - public: - virtual IAuthIdRef* CreateAuthIdRef(const Blob& authId, ITokenFile* path, - byte constrained_mode = AUTH_CONSTRAINED_ALWAYS) = 0; - - virtual ITokenPIN* CreatePin(const AuthInfo& ai, byte objRef, ITokenFile* path, - IAuthIdRef* authIdRef, IAuthIdRef* parentAuthIdRef) = 0; - - // TODO: MTE: deprecated, use CreatePin(const AuthInfo&...) instead - virtual ITokenPIN* CreatePin(int type, int usage, byte objRef, int minLen, - int maxLen, IAuthIdRef* authIdRef, const char* name = 0) = 0; - - protected: - virtual ~IAuthFactory() { } - }; - - - // - // IAuthIdRef - class IAuthIdRef : public IRefCounted - { - public: - virtual byte GetAuthIdByte() const = 0; - virtual const Blob& GetAuthId() const = 0; - virtual IAuthConstrained* GetAuthConstrained() = 0; - - virtual bool Equals(const Blob& authId) const = 0; - }; - - // - // IAuthIdRefIterator - class IAuthIdRefIterator : public IRefCounted - { - public: - virtual void Reset() = 0; - virtual IAuthIdRef* Next() = 0; - }; - - - // - // ITokenAuthIterator - class ITokenAuthIterator : public IRefCounted - { - public: - virtual void Reset(ITokenFile* parent = 0) = 0; - virtual ITokenPIN* Next() = 0; - }; - - // - // ITokenAuth - class ITokenAuth : public IRefCounted - { - public: - virtual bool Login(ITokenPIN* auth_obj, const Blob& pin) = 0; - - virtual bool Logout() = 0; - virtual bool Logout(const ITokenPIN* auth_obj) = 0; - virtual bool LogoutEx(bool reset_security_state) = 0; - - virtual Blob GetChallenge(const ITokenPIN* auth_obj) = 0; - - virtual IToken* GetToken() const = 0; - virtual ITokenPIN* GetAuthenticated() const = 0; - virtual ITokenPIN* GetAuthenticated(size_t index) const = 0; - - virtual bool NeedsPINValue() const = 0; - virtual bool HasChallenge() const = 0; - virtual bool HasChallenge(const ITokenPIN* auth_obj) const = 0; - virtual bool IsAuthenticated(const ITokenPIN* auth_obj) const = 0; - virtual bool IsAuthenticated(bool verify_security_state = false) const = 0; - - /*! - * Clears the internal authentication state for given auth_obj. - * - * If auth_obj is not authenticated: - * - do nothing - * - return false - * - * If auth_obj is authenticated: - * - remove auth_obj from authenticated-list. - * - return true - * - * \note does NOT reset the card's authentication state! - * - * \param auth_obj \ref ITokenPIN - * \return true if succeeded, false if not - */ - virtual bool Invalidate(ITokenPIN* auth_obj) = 0; - virtual bool Select(const ITokenPIN* auth_obj, bool force) = 0; - - virtual ITokenAuthIterator* Iterator(int type, const Blob& authId = Blob()) const = 0; - }; - -} // namespace act - -#endif // ACT_ITokenAuth_h +// --------------------------------------------------------------------------- +// Name: actITokenAuth.h +// Product: cv act library +// Purpose: The ITokenAuth interface represents a IToken authentication state +// using one the ITokenPIN objects owned by a token. +// +// Copyright: (c) 2007 cv cryptovision GmbH +// all rights reserved +// Licence: The conditions for the use of this software are regulated +// in the cv act library licence agreement. +// +// Autor: Markus Tesche (MTE) +// Date: 11/09/2007 +// --------------------------------------------------------------------------- + +#ifndef ACT_ITokenAuth_h +#define ACT_ITokenAuth_h + +#include "actBlob.h" +#include "actBasics.h" +#include "actIRefCounted.h" + +namespace act +{ + class AuthInfo; + + class IToken; + class ITokenPIN; + class ITokenFile; + class IAuthIdRef; + class IAuthConstrained; + + enum AuthConstrainedType + { + AUTH_CONSTRAINED_ALWAYS = 0, + AUTH_CONSTRAINED_NOT, + AUTH_CONSTRAINED_AND, + AUTH_CONSTRAINED_OR, + }; + + // + // IAuthFactory + class IAuthFactory + { + public: + virtual IAuthIdRef* CreateAuthIdRef(const Blob& authId, ITokenFile* path, + byte constrained_mode = AUTH_CONSTRAINED_ALWAYS) = 0; + + virtual ITokenPIN* CreatePin(const AuthInfo& ai, byte objRef, ITokenFile* path, + IAuthIdRef* authIdRef, IAuthIdRef* parentAuthIdRef) = 0; + + // TODO: MTE: deprecated, use CreatePin(const AuthInfo&...) instead + virtual ITokenPIN* CreatePin(int type, int usage, byte objRef, int minLen, + int maxLen, IAuthIdRef* authIdRef, const char* name = 0) = 0; + + protected: + virtual ~IAuthFactory() { } + }; + + + // + // IAuthIdRef + class IAuthIdRef : public IRefCounted + { + public: + virtual byte GetAuthIdByte() const = 0; + virtual const Blob& GetAuthId() const = 0; + virtual IAuthConstrained* GetAuthConstrained() = 0; + + virtual bool Equals(const Blob& authId) const = 0; + }; + + // + // IAuthIdRefIterator + class IAuthIdRefIterator : public IRefCounted + { + public: + virtual void Reset() = 0; + virtual IAuthIdRef* Next() = 0; + }; + + + // + // ITokenAuthIterator + class ITokenAuthIterator : public IRefCounted + { + public: + virtual void Reset(ITokenFile* parent = 0) = 0; + virtual ITokenPIN* Next() = 0; + }; + + // + // ITokenAuth + class ITokenAuth : public IRefCounted + { + public: + virtual bool Login(ITokenPIN* auth_obj, const Blob& pin) = 0; + + virtual bool Logout() = 0; + virtual bool Logout(const ITokenPIN* auth_obj) = 0; + virtual bool LogoutEx(bool reset_security_state) = 0; + + virtual Blob GetChallenge(const ITokenPIN* auth_obj) = 0; + + virtual IToken* GetToken() const = 0; + virtual ITokenPIN* GetAuthenticated() const = 0; + virtual ITokenPIN* GetAuthenticated(size_t index) const = 0; + + virtual bool NeedsPINValue() const = 0; + virtual bool HasChallenge() const = 0; + virtual bool HasChallenge(const ITokenPIN* auth_obj) const = 0; + virtual bool IsAuthenticated(const ITokenPIN* auth_obj) const = 0; + virtual bool IsAuthenticated(bool verify_security_state = false) const = 0; + + /*! + * Clears the internal authentication state for given auth_obj. + * + * If auth_obj is not authenticated: + * - do nothing + * - return false + * + * If auth_obj is authenticated: + * - remove auth_obj from authenticated-list. + * - return true + * + * \note does NOT reset the card's authentication state! + * + * \param auth_obj \ref ITokenPIN + * \return true if succeeded, false if not + */ + virtual bool Invalidate(ITokenPIN* auth_obj) = 0; + virtual bool Select(const ITokenPIN* auth_obj, bool force) = 0; + + virtual ITokenAuthIterator* Iterator(int type, const Blob& authId = Blob()) const = 0; + }; + +} // namespace act + +#endif // ACT_ITokenAuth_h diff --git a/actlibrary/MacOSX-10.4-ppc/Release/include/actITokenAuthOwner.h b/actlibrary/include/actITokenAuthOwner.h similarity index 96% rename from actlibrary/MacOSX-10.4-ppc/Release/include/actITokenAuthOwner.h rename to actlibrary/include/actITokenAuthOwner.h index c53eccc..2c8335c 100644 --- a/actlibrary/MacOSX-10.4-ppc/Release/include/actITokenAuthOwner.h +++ b/actlibrary/include/actITokenAuthOwner.h @@ -1,39 +1,39 @@ -// --------------------------------------------------------------------------- -// Name: actITokenAuthOwner.h -// Product: cv act library -// Purpose: The ITokenAuthOwner interface is used by objects which requires -// authentication like token keys. -// -// Copyright: (c) 2008 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -// -// Autor: Markus Tesche -// Date: 08/10/2008 -// --------------------------------------------------------------------------- - -#ifndef ACT_ITokenAuthOwner_h -#define ACT_ITokenAuthOwner_h - -namespace act -{ - class ITokenPIN; - class IAuthIdRef; - - // - // ITokenAuthOwner - class ITokenAuthOwner - { - public: - virtual void SetPin(ITokenPIN* pin) = 0; - virtual ITokenPIN* GetPin() const = 0; - virtual IAuthIdRef* GetAuthIdRef() const = 0; - - protected: - virtual ~ITokenAuthOwner() { } - }; - -} // namespace act - -#endif // ACT_ITokenAuthOwner_h +// --------------------------------------------------------------------------- +// Name: actITokenAuthOwner.h +// Product: cv act library +// Purpose: The ITokenAuthOwner interface is used by objects which requires +// authentication like token keys. +// +// Copyright: (c) 2008 cv cryptovision GmbH +// all rights reserved +// Licence: The conditions for the use of this software are regulated +// in the cv act library licence agreement. +// +// Autor: Markus Tesche +// Date: 08/10/2008 +// --------------------------------------------------------------------------- + +#ifndef ACT_ITokenAuthOwner_h +#define ACT_ITokenAuthOwner_h + +namespace act +{ + class ITokenPIN; + class IAuthIdRef; + + // + // ITokenAuthOwner + class ITokenAuthOwner + { + public: + virtual void SetPin(ITokenPIN* pin) = 0; + virtual ITokenPIN* GetPin() const = 0; + virtual IAuthIdRef* GetAuthIdRef() const = 0; + + protected: + virtual ~ITokenAuthOwner() { } + }; + +} // namespace act + +#endif // ACT_ITokenAuthOwner_h diff --git a/actlibrary/MacOSX-10.4-ppc/Release/include/actITokenBlockCipher.h b/actlibrary/include/actITokenBlockCipher.h similarity index 96% rename from actlibrary/MacOSX-10.4-ppc/Release/include/actITokenBlockCipher.h rename to actlibrary/include/actITokenBlockCipher.h index 014efe1..4ed6741 100644 --- a/actlibrary/MacOSX-10.4-ppc/Release/include/actITokenBlockCipher.h +++ b/actlibrary/include/actITokenBlockCipher.h @@ -1,45 +1,45 @@ -// --------------------------------------------------------------------------- -// Name: actITokenBlockCipher.h -// Product: cv act library -// Purpose: The interface ITokenBlockCipher encapsulates operations using a -// symmetric key stored on a secure token. -// -// Copyright: (c) 2008 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -// -// Autor: Markus Tesche -// Date: 05/15/2008 -// --------------------------------------------------------------------------- - -#ifndef ACT_ITokenBlockCipher_h -#define ACT_ITokenBlockCipher_h - -#include "actBlob.h" -#include "actIBlockCipher.h" - -namespace act -{ - class IToken; - class ITokenConfig; - - // - // ITokenBlockCipher - class ITokenBlockCipher : public IBlockCipher - { - public: - virtual ITokenBlockCipher* Clone() const = 0; - - virtual void Configure(ITokenConfig* tkcfg) = 0; - virtual Blob GetCipherName() const = 0; - virtual Blob GetLabel() const = 0; - - virtual int GetKeyNumber() const = 0; - - virtual IToken* GetToken() const = 0; - }; - -} // namespace act - -#endif // ACT_ITokenBlockCipher_h +// --------------------------------------------------------------------------- +// Name: actITokenBlockCipher.h +// Product: cv act library +// Purpose: The interface ITokenBlockCipher encapsulates operations using a +// symmetric key stored on a secure token. +// +// Copyright: (c) 2008 cv cryptovision GmbH +// all rights reserved +// Licence: The conditions for the use of this software are regulated +// in the cv act library licence agreement. +// +// Autor: Markus Tesche +// Date: 05/15/2008 +// --------------------------------------------------------------------------- + +#ifndef ACT_ITokenBlockCipher_h +#define ACT_ITokenBlockCipher_h + +#include "actBlob.h" +#include "actIBlockCipher.h" + +namespace act +{ + class IToken; + class ITokenConfig; + + // + // ITokenBlockCipher + class ITokenBlockCipher : public IBlockCipher + { + public: + virtual ITokenBlockCipher* Clone() const = 0; + + virtual void Configure(ITokenConfig* tkcfg) = 0; + virtual Blob GetCipherName() const = 0; + virtual Blob GetLabel() const = 0; + + virtual int GetKeyNumber() const = 0; + + virtual IToken* GetToken() const = 0; + }; + +} // namespace act + +#endif // ACT_ITokenBlockCipher_h diff --git a/actlibrary/MacOSX-10.5-x86_64/Release/include/actITokenBlockCipherKey.h b/actlibrary/include/actITokenBlockCipherKey.h similarity index 96% rename from actlibrary/MacOSX-10.5-x86_64/Release/include/actITokenBlockCipherKey.h rename to actlibrary/include/actITokenBlockCipherKey.h index 3f13e59..0d435f1 100644 --- a/actlibrary/MacOSX-10.5-x86_64/Release/include/actITokenBlockCipherKey.h +++ b/actlibrary/include/actITokenBlockCipherKey.h @@ -1,59 +1,59 @@ -// --------------------------------------------------------------------------- -// Name: actITokenBlockCipherKey.h -// Product: cv act library -// Purpose: The interface ITokenBlockCipherKey enables access to a key stored -// on a secure token. -// -// Copyright: (c) 2008 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -// -// Autor: Markus Tesche -// Date: 05/15/2008 -// --------------------------------------------------------------------------- - -#ifndef ACT_ITokenBlockCipherKey_h -#define ACT_ITokenBlockCipherKey_h - -#include "actTokenBase.h" - -#include "actIBlockCipherKey.h" - -#include "actITokenAuthOwner.h" -#include "actITokenFileOwner.h" -#include "actITokenBlockCipher.h" - -namespace act -{ - class IToken; - class ITokenConfig; - - // - // ITokenBlockCipherKey - class ITokenBlockCipherKey - : public IBlockCipherKey - , public ITokenAuthOwner - , public ITokenFileOwner - { - public: - virtual ITokenBlockCipherKey* Clone() const = 0; - - virtual ITokenBlockCipher* GetCipher() = 0; - virtual const ITokenBlockCipher* GetCipher() const = 0; - - virtual KeyType GetType() const = 0; - virtual IToken* GetToken() const = 0; - virtual const char* GetName() const = 0; - virtual void Configure(ITokenConfig* tkcfg) = 0; - - virtual void SetRawKey(const Blob& raw_key) = 0; - virtual void GetRawKey(Blob& raw_key) const = 0; - - virtual void SetMode(const char* modename) = 0; - virtual void SetPadding(const char* padname) = 0; - }; - -} // namespace act - -#endif // ACT_ITokenBlockCipherKey_h +// --------------------------------------------------------------------------- +// Name: actITokenBlockCipherKey.h +// Product: cv act library +// Purpose: The interface ITokenBlockCipherKey enables access to a key stored +// on a secure token. +// +// Copyright: (c) 2008 cv cryptovision GmbH +// all rights reserved +// Licence: The conditions for the use of this software are regulated +// in the cv act library licence agreement. +// +// Autor: Markus Tesche +// Date: 05/15/2008 +// --------------------------------------------------------------------------- + +#ifndef ACT_ITokenBlockCipherKey_h +#define ACT_ITokenBlockCipherKey_h + +#include "actTokenBase.h" + +#include "actIBlockCipherKey.h" + +#include "actITokenAuthOwner.h" +#include "actITokenFileOwner.h" +#include "actITokenBlockCipher.h" + +namespace act +{ + class IToken; + class ITokenConfig; + + // + // ITokenBlockCipherKey + class ITokenBlockCipherKey + : public IBlockCipherKey + , public ITokenAuthOwner + , public ITokenFileOwner + { + public: + virtual ITokenBlockCipherKey* Clone() const = 0; + + virtual ITokenBlockCipher* GetCipher() = 0; + virtual const ITokenBlockCipher* GetCipher() const = 0; + + virtual KeyType GetType() const = 0; + virtual IToken* GetToken() const = 0; + virtual const char* GetName() const = 0; + virtual void Configure(ITokenConfig* tkcfg) = 0; + + virtual void SetRawKey(const Blob& raw_key) = 0; + virtual void GetRawKey(Blob& raw_key) const = 0; + + virtual void SetMode(const char* modename) = 0; + virtual void SetPadding(const char* padname) = 0; + }; + +} // namespace act + +#endif // ACT_ITokenBlockCipherKey_h diff --git a/actlibrary/MacOSX-10.6-x86_64/Release/include/actITokenConfig.h b/actlibrary/include/actITokenConfig.h similarity index 96% rename from actlibrary/MacOSX-10.6-x86_64/Release/include/actITokenConfig.h rename to actlibrary/include/actITokenConfig.h index cecaa7e..49f57b8 100644 --- a/actlibrary/MacOSX-10.6-x86_64/Release/include/actITokenConfig.h +++ b/actlibrary/include/actITokenConfig.h @@ -1,60 +1,60 @@ -// --------------------------------------------------------------------------- -// Name: actITokenConfig.h -// Product: cv act library -// Purpose: IToken configuration. -// -// Copyright: (c) 2008 cv cryptovision GmbH -// all rights reserved. -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -// -// Autor: Markus Tesche -// Date: 11/07/2008 -// --------------------------------------------------------------------------- - -#ifndef ACT_ITokenConfig_h -#define ACT_ITokenConfig_h - -#include "actIParam.h" -#include "actIRefCounted.h" - -namespace act -{ - class ISCardOS; - class IToken; - class ITokenPIN; - class ITokenAuth; - class ITokenKey; - class ITokenBlockCipher; - class ITokenBlockCipherKey; - class ITokenFileMap; - class ITokenFileCache; - - // - // ITokenConfig - class ITokenConfig - : public IParam - , virtual public IRefCounted - { - public: - virtual ITokenConfig* Clone() const = 0; - - // Individual card detection - virtual bool IsSupported(ISCardOS* os) const = 0; - - // Configures the token, if fails throws an Exception - virtual void Configure(IToken* token) const = 0; - virtual void Configure(ITokenPIN* auth_obj) const = 0; - virtual void Configure(ITokenKey* key) const = 0; - virtual void Configure(ITokenBlockCipher* cipher) const = 0; - virtual void Configure(ITokenBlockCipherKey* key) const = 0; - - // Factory's for token helper objects - virtual ITokenAuth* CreateAuth(IToken* token) = 0; - virtual ITokenFileMap* CreateFileMap(const IToken* token) = 0; - virtual ITokenFileCache* CreateFileCache(IToken* token) = 0; - }; - -} // namespace act - -#endif // ACT_ITokenConfig_h +// --------------------------------------------------------------------------- +// Name: actITokenConfig.h +// Product: cv act library +// Purpose: IToken configuration. +// +// Copyright: (c) 2008 cv cryptovision GmbH +// all rights reserved. +// Licence: The conditions for the use of this software are regulated +// in the cv act library licence agreement. +// +// Autor: Markus Tesche +// Date: 11/07/2008 +// --------------------------------------------------------------------------- + +#ifndef ACT_ITokenConfig_h +#define ACT_ITokenConfig_h + +#include "actIParam.h" +#include "actIRefCounted.h" + +namespace act +{ + class ISCardOS; + class IToken; + class ITokenPIN; + class ITokenAuth; + class ITokenKey; + class ITokenBlockCipher; + class ITokenBlockCipherKey; + class ITokenFileMap; + class ITokenFileCache; + + // + // ITokenConfig + class ITokenConfig + : public IParam + , virtual public IRefCounted + { + public: + virtual ITokenConfig* Clone() const = 0; + + // Individual card detection + virtual bool IsSupported(ISCardOS* os) const = 0; + + // Configures the token, if fails throws an Exception + virtual void Configure(IToken* token) const = 0; + virtual void Configure(ITokenPIN* auth_obj) const = 0; + virtual void Configure(ITokenKey* key) const = 0; + virtual void Configure(ITokenBlockCipher* cipher) const = 0; + virtual void Configure(ITokenBlockCipherKey* key) const = 0; + + // Factory's for token helper objects + virtual ITokenAuth* CreateAuth(IToken* token) = 0; + virtual ITokenFileMap* CreateFileMap(const IToken* token) = 0; + virtual ITokenFileCache* CreateFileCache(IToken* token) = 0; + }; + +} // namespace act + +#endif // ACT_ITokenConfig_h diff --git a/actlibrary/MacOSX-10.6-x86_64/Release/include/actITokenExtension.h b/actlibrary/include/actITokenExtension.h similarity index 96% rename from actlibrary/MacOSX-10.6-x86_64/Release/include/actITokenExtension.h rename to actlibrary/include/actITokenExtension.h index 784c418..cc3cd01 100644 --- a/actlibrary/MacOSX-10.6-x86_64/Release/include/actITokenExtension.h +++ b/actlibrary/include/actITokenExtension.h @@ -1,39 +1,39 @@ -// --------------------------------------------------------------------------- -// Name: actITokenExtension.h -// Product: cv act library -// Purpose: Interface ITokenExtension provides functionality to register extensions to -// IToken derived objects. -// -// Copyright: (c) 2008 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -// -// Autor: Markus Tesche -// Date: 12/02/2008 -// --------------------------------------------------------------------------- - -#ifndef ACT_ITokenExtension_h -#define ACT_ITokenExtension_h - -#include "actIRefCounted.h" - -namespace act -{ - class IToken; - - // - // ITokenExtension - class ITokenExtension : public IRefCounted - { - protected: - virtual ~ITokenExtension() { } - - public: - virtual void* GetCreatePtr() throw() = 0; - virtual bool Register(IToken* token) = 0; - }; - -} // namespace act - -#endif // ACT_ITokenExtension_h +// --------------------------------------------------------------------------- +// Name: actITokenExtension.h +// Product: cv act library +// Purpose: Interface ITokenExtension provides functionality to register extensions to +// IToken derived objects. +// +// Copyright: (c) 2008 cv cryptovision GmbH +// all rights reserved +// Licence: The conditions for the use of this software are regulated +// in the cv act library licence agreement. +// +// Autor: Markus Tesche +// Date: 12/02/2008 +// --------------------------------------------------------------------------- + +#ifndef ACT_ITokenExtension_h +#define ACT_ITokenExtension_h + +#include "actIRefCounted.h" + +namespace act +{ + class IToken; + + // + // ITokenExtension + class ITokenExtension : public IRefCounted + { + protected: + virtual ~ITokenExtension() { } + + public: + virtual void* GetCreatePtr() throw() = 0; + virtual bool Register(IToken* token) = 0; + }; + +} // namespace act + +#endif // ACT_ITokenExtension_h diff --git a/actlibrary/MacOSX-10.4-ppc/Release/include/actITokenFile.h b/actlibrary/include/actITokenFile.h similarity index 96% rename from actlibrary/MacOSX-10.4-ppc/Release/include/actITokenFile.h rename to actlibrary/include/actITokenFile.h index 4f42757..842c28f 100644 --- a/actlibrary/MacOSX-10.4-ppc/Release/include/actITokenFile.h +++ b/actlibrary/include/actITokenFile.h @@ -1,71 +1,71 @@ -// --------------------------------------------------------------------------- -// Name: actITokenFile.h -// Product: cv act library -// Purpose: ITokenFile represents a simple smartcard file with path. -// -// Copyright: (c) 2008 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -// -// Autor: Markus Tesche -// Date: 09/02/2008 -// --------------------------------------------------------------------------- - -#ifndef ACT_TokenFile_h -#define ACT_TokenFile_h - -#include "actBlob.h" -#include "actIRefCounted.h" - -namespace act -{ - class ISCardOS; - - enum FILETYPE - { - UKType = -1 - }; - - // - // ITokenFile - class ITokenFile : public IRefCounted - { - public: - virtual ITokenFile* Clone() const = 0; - - virtual bool IsValid() const = 0; - - virtual bool Equals(const Blob& path) const = 0; - virtual bool Equals(const ISCardOS* os) const = 0; - virtual bool Equals(const ITokenFile* other) const = 0; - virtual bool IsParent(const ITokenFile* other, size_t* mismatch = 0) const = 0; - - virtual Blob& RefFCI() = 0; - virtual const Blob& GetFCI() const = 0; - - virtual Blob& RefAID() = 0; - virtual const Blob& GetAID() const = 0; - - virtual int GetFileType() const = 0; - virtual size_t GetFileLength() const = 0; - virtual const Blob& GetFilePath() const = 0; - virtual size_t GetFullLength() const = 0; - virtual size_t GetFullPath(Blob& path) const = 0; - - virtual ITokenFile* GetRelativeTo() const = 0; - virtual void SetRelativeTo(ITokenFile* parent) = 0; - virtual ITokenFile* MakeRelativeTo(ITokenFile* parent) = 0; - - virtual void SetFilePath(const Blob& filepath, int filetype) = 0; - virtual void SetFilePath(move_from filepath, int filetype) = 0; - - virtual const Blob& SelectApp(ISCardOS* os, int selectmode) = 0; - virtual const Blob& SelectFile(ISCardOS* os, int selectmode) = 0; - - virtual bool ProbeFilePath(ISCardOS* os, bool cut_non_existing) = 0; - }; - -} // namespace act - -#endif // ACT_TokenFile_h +// --------------------------------------------------------------------------- +// Name: actITokenFile.h +// Product: cv act library +// Purpose: ITokenFile represents a simple smartcard file with path. +// +// Copyright: (c) 2008 cv cryptovision GmbH +// all rights reserved +// Licence: The conditions for the use of this software are regulated +// in the cv act library licence agreement. +// +// Autor: Markus Tesche +// Date: 09/02/2008 +// --------------------------------------------------------------------------- + +#ifndef ACT_TokenFile_h +#define ACT_TokenFile_h + +#include "actBlob.h" +#include "actIRefCounted.h" + +namespace act +{ + class ISCardOS; + + enum FILETYPE + { + UKType = -1 + }; + + // + // ITokenFile + class ITokenFile : public IRefCounted + { + public: + virtual ITokenFile* Clone() const = 0; + + virtual bool IsValid() const = 0; + + virtual bool Equals(const Blob& path) const = 0; + virtual bool Equals(const ISCardOS* os) const = 0; + virtual bool Equals(const ITokenFile* other) const = 0; + virtual bool IsParent(const ITokenFile* other, size_t* mismatch = 0) const = 0; + + virtual Blob& RefFCI() = 0; + virtual const Blob& GetFCI() const = 0; + + virtual Blob& RefAID() = 0; + virtual const Blob& GetAID() const = 0; + + virtual int GetFileType() const = 0; + virtual size_t GetFileLength() const = 0; + virtual const Blob& GetFilePath() const = 0; + virtual size_t GetFullLength() const = 0; + virtual size_t GetFullPath(Blob& path) const = 0; + + virtual ITokenFile* GetRelativeTo() const = 0; + virtual void SetRelativeTo(ITokenFile* parent) = 0; + virtual ITokenFile* MakeRelativeTo(ITokenFile* parent) = 0; + + virtual void SetFilePath(const Blob& filepath, int filetype) = 0; + virtual void SetFilePath(move_from filepath, int filetype) = 0; + + virtual const Blob& SelectApp(ISCardOS* os, int selectmode) = 0; + virtual const Blob& SelectFile(ISCardOS* os, int selectmode) = 0; + + virtual bool ProbeFilePath(ISCardOS* os, bool cut_non_existing) = 0; + }; + +} // namespace act + +#endif // ACT_TokenFile_h diff --git a/actlibrary/MacOSX-10.6-x86_64/Release/include/actITokenFileCache.h b/actlibrary/include/actITokenFileCache.h similarity index 96% rename from actlibrary/MacOSX-10.6-x86_64/Release/include/actITokenFileCache.h rename to actlibrary/include/actITokenFileCache.h index 0991040..c38fc15 100644 --- a/actlibrary/MacOSX-10.6-x86_64/Release/include/actITokenFileCache.h +++ b/actlibrary/include/actITokenFileCache.h @@ -1,42 +1,42 @@ -// --------------------------------------------------------------------------- -// Name: actITokenFileCache.h -// Product: cv act library -// Purpose: Interface used for FID based binary cache. -// -// Copyright: (c) 2008 cv cryptovision GmbH -// all rights reserved. -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -// -// Autor: Markus Tesche -// Date: 11/07/2008 -// --------------------------------------------------------------------------- - -#ifndef ACT_ITokenFileCache_h -#define ACT_ITokenFileCache_h - -#include "actIRefCounted.h" - -#include - -namespace act -{ - class Blob; - class IToken; - - // - // ITokenFileCache - class ITokenFileCache : public IRefCounted - { - protected: - typedef std::map CacheMap; - - public: - virtual bool InitCache(IToken* token) = 0; - virtual Blob GetCache(const Blob& filepath) const = 0; - virtual void PutCache(const Blob& filepath, const Blob& memory) const = 0; - }; - -} // namespace act - -#endif // ACT_ITokenFileCache_h +// --------------------------------------------------------------------------- +// Name: actITokenFileCache.h +// Product: cv act library +// Purpose: Interface used for FID based binary cache. +// +// Copyright: (c) 2008 cv cryptovision GmbH +// all rights reserved. +// Licence: The conditions for the use of this software are regulated +// in the cv act library licence agreement. +// +// Autor: Markus Tesche +// Date: 11/07/2008 +// --------------------------------------------------------------------------- + +#ifndef ACT_ITokenFileCache_h +#define ACT_ITokenFileCache_h + +#include "actIRefCounted.h" + +#include + +namespace act +{ + class Blob; + class IToken; + + // + // ITokenFileCache + class ITokenFileCache : public IRefCounted + { + protected: + typedef std::map CacheMap; + + public: + virtual bool InitCache(IToken* token) = 0; + virtual Blob GetCache(const Blob& filepath) const = 0; + virtual void PutCache(const Blob& filepath, const Blob& memory) const = 0; + }; + +} // namespace act + +#endif // ACT_ITokenFileCache_h diff --git a/actlibrary/MacOSX-10.5-x86_64/Release/include/actITokenFileOwner.h b/actlibrary/include/actITokenFileOwner.h similarity index 96% rename from actlibrary/MacOSX-10.5-x86_64/Release/include/actITokenFileOwner.h rename to actlibrary/include/actITokenFileOwner.h index 1762d31..fd5c9bf 100644 --- a/actlibrary/MacOSX-10.5-x86_64/Release/include/actITokenFileOwner.h +++ b/actlibrary/include/actITokenFileOwner.h @@ -1,37 +1,37 @@ -// --------------------------------------------------------------------------- -// Name: actITokenFileOwner.h -// Product: cv act library -// Purpose: The ITokenFileOwner interface is implemented by objects which -// refer to a specific location on token represented by ITokenFile. -// -// Copyright: (c) 2010 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -// -// Autor: Markus Tesche -// Date: 28/03/2010 -// --------------------------------------------------------------------------- - -#ifndef ACT_ITokenFileOwner_h -#define ACT_ITokenFileOwner_h - -namespace act -{ - class ITokenFile; - - // - // ITokenFileOwner - class ITokenFileOwner - { - public: - virtual ITokenFile* GetPath() const = 0; - virtual void SetPath(ITokenFile* file) = 0; - - protected: - virtual ~ITokenFileOwner() { } - }; - -} // namespace act - -#endif // ACT_ITokenFileOwner_h +// --------------------------------------------------------------------------- +// Name: actITokenFileOwner.h +// Product: cv act library +// Purpose: The ITokenFileOwner interface is implemented by objects which +// refer to a specific location on token represented by ITokenFile. +// +// Copyright: (c) 2010 cv cryptovision GmbH +// all rights reserved +// Licence: The conditions for the use of this software are regulated +// in the cv act library licence agreement. +// +// Autor: Markus Tesche +// Date: 28/03/2010 +// --------------------------------------------------------------------------- + +#ifndef ACT_ITokenFileOwner_h +#define ACT_ITokenFileOwner_h + +namespace act +{ + class ITokenFile; + + // + // ITokenFileOwner + class ITokenFileOwner + { + public: + virtual ITokenFile* GetPath() const = 0; + virtual void SetPath(ITokenFile* file) = 0; + + protected: + virtual ~ITokenFileOwner() { } + }; + +} // namespace act + +#endif // ACT_ITokenFileOwner_h diff --git a/actlibrary/MacOSX-10.6-x86_64/Release/include/actITokenInitializer.h b/actlibrary/include/actITokenInitializer.h similarity index 96% rename from actlibrary/MacOSX-10.6-x86_64/Release/include/actITokenInitializer.h rename to actlibrary/include/actITokenInitializer.h index 0de6aef..8b23f57 100644 --- a/actlibrary/MacOSX-10.6-x86_64/Release/include/actITokenInitializer.h +++ b/actlibrary/include/actITokenInitializer.h @@ -1,131 +1,131 @@ -// --------------------------------------------------------------------------- -// Name: actITokenInitializer.h -// Product: cv act library -// Purpose: ITokenInitializer interface declares common token profile initialization functionality. -// -// Copyright: (c) 2009 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -// -// Autor: Markus Tesche -// Date: 04/20/2009 -// --------------------------------------------------------------------------- - -#ifndef ACT_ITokenInitializer_h -#define ACT_ITokenInitializer_h - -#include "actBlob.h" -#include "actTokenBase.h" -#include "actIRefCounted.h" - -namespace act -{ - extern const byte PIN_PAD_CHAR; - - struct TIData - { - private: - TIData(const TIData&) throw(); - TIData& operator=(const TIData&) throw(); - - public: - TIData(const char* _profile_name = 0) - : profile_name(_profile_name) - , profile_type(PROFILE_UNKNOWN) - , retry_counter(3) - , pin_pad_byte(PIN_PAD_CHAR) - , enable_pin_padding(false) - , enable_pin_pce_so(false) - , enable_pin_pce_user(false) - , enable_minidriver(false) - , enable_minidriver_pnp(false) - , enable_biometric(false) - , enable_biometric_pins(false) - , load_only(false) - , load_package_MoC(false) - , load_package_2048(false) - , load_package_ecc(false) - { } - - Blob atr_historical_bytes; - Blob atr_historical_bytes_suffix; - Blob card_pin; - Blob so_pin; - Blob user_pin; - Blob serial_number; - Blob last_update_pin_utc; - Blob challenge_response_key; - Blob binary_data; - - const char* profile_name; - ProfileType profile_type; - - short retry_counter; - byte pin_pad_byte; - - bool enable_pin_padding; - bool enable_pin_pce_so; - bool enable_pin_pce_user; - bool enable_minidriver; - bool enable_minidriver_pnp; - bool enable_biometric; - bool enable_biometric_pins; - - bool load_only; - bool load_package_MoC; - bool load_package_2048; - bool load_package_ecc; - }; - - struct TITokenInfo - { - TITokenInfo(size_t pin_len_max, size_t pin_len_min, size_t _key_len_cr) - : serial_number_len(16) - , key_len_cr(_key_len_cr) - { - pin_len_max_admin = pin_len_max_so = pin_len_max_user = pin_len_max; - pin_len_min_admin = pin_len_min_so = pin_len_min_user = pin_len_min; - } - - size_t serial_number_len; - - size_t key_len_cr; - - size_t pin_len_max_admin; - size_t pin_len_max_so; - size_t pin_len_max_user; - - size_t pin_len_min_admin; - size_t pin_len_min_so; - size_t pin_len_min_user; - }; - - class ISCardOS; - class IProfileGenerator; - class ISCardCmdObserver; - - // - // ITokenInitializer - class ITokenInitializer : public IRefCounted - { - public: - virtual ISCardOS* GetOS() const= 0; - virtual const TITokenInfo& GetTokenInfo() const = 0; - virtual const ProfileType* GetSupportedProfileList() const = 0; - - virtual bool SupportsProfile(ProfileType profile_type) const = 0; - virtual void SetGenerator(IProfileGenerator* generator) = 0; - virtual void SetObserver(ISCardCmdObserver* observer) = 0; - - virtual bool EraseProfile(const Blob& card_pin) = 0; - virtual bool ExistProfile(bool& is_pkcs15, bool& requires_adminpin) = 0; - virtual void CreateProfile(TIData& data, ProfileType profile_type) = 0; - virtual void FinalizeProfile(TIData& data) = 0; - - virtual void PinChangeReminder(TIData& data, bool enable) = 0; - }; - -} // namespace act - -#endif // ACT_ITokenInitializer_h +// --------------------------------------------------------------------------- +// Name: actITokenInitializer.h +// Product: cv act library +// Purpose: ITokenInitializer interface declares common token profile initialization functionality. +// +// Copyright: (c) 2009 cv cryptovision GmbH +// all rights reserved +// Licence: The conditions for the use of this software are regulated +// in the cv act library licence agreement. +// +// Autor: Markus Tesche +// Date: 04/20/2009 +// --------------------------------------------------------------------------- + +#ifndef ACT_ITokenInitializer_h +#define ACT_ITokenInitializer_h + +#include "actBlob.h" +#include "actTokenBase.h" +#include "actIRefCounted.h" + +namespace act +{ + extern const byte PIN_PAD_CHAR; + + struct TIData + { + private: + TIData(const TIData&) throw(); + TIData& operator=(const TIData&) throw(); + + public: + TIData(const char* _profile_name = 0) + : profile_name(_profile_name) + , profile_type(PROFILE_UNKNOWN) + , retry_counter(3) + , pin_pad_byte(PIN_PAD_CHAR) + , enable_pin_padding(false) + , enable_pin_pce_so(false) + , enable_pin_pce_user(false) + , enable_minidriver(false) + , enable_minidriver_pnp(false) + , enable_biometric(false) + , enable_biometric_pins(false) + , load_only(false) + , load_package_MoC(false) + , load_package_2048(false) + , load_package_ecc(false) + { } + + Blob atr_historical_bytes; + Blob atr_historical_bytes_suffix; + Blob card_pin; + Blob so_pin; + Blob user_pin; + Blob serial_number; + Blob last_update_pin_utc; + Blob challenge_response_key; + Blob binary_data; + + const char* profile_name; + ProfileType profile_type; + + short retry_counter; + byte pin_pad_byte; + + bool enable_pin_padding; + bool enable_pin_pce_so; + bool enable_pin_pce_user; + bool enable_minidriver; + bool enable_minidriver_pnp; + bool enable_biometric; + bool enable_biometric_pins; + + bool load_only; + bool load_package_MoC; + bool load_package_2048; + bool load_package_ecc; + }; + + struct TITokenInfo + { + TITokenInfo(size_t pin_len_max, size_t pin_len_min, size_t _key_len_cr) + : serial_number_len(16) + , key_len_cr(_key_len_cr) + { + pin_len_max_admin = pin_len_max_so = pin_len_max_user = pin_len_max; + pin_len_min_admin = pin_len_min_so = pin_len_min_user = pin_len_min; + } + + size_t serial_number_len; + + size_t key_len_cr; + + size_t pin_len_max_admin; + size_t pin_len_max_so; + size_t pin_len_max_user; + + size_t pin_len_min_admin; + size_t pin_len_min_so; + size_t pin_len_min_user; + }; + + class ISCardOS; + class IProfileGenerator; + class ISCardCmdObserver; + + // + // ITokenInitializer + class ITokenInitializer : public IRefCounted + { + public: + virtual ISCardOS* GetOS() const= 0; + virtual const TITokenInfo& GetTokenInfo() const = 0; + virtual const ProfileType* GetSupportedProfileList() const = 0; + + virtual bool SupportsProfile(ProfileType profile_type) const = 0; + virtual void SetGenerator(IProfileGenerator* generator) = 0; + virtual void SetObserver(ISCardCmdObserver* observer) = 0; + + virtual bool EraseProfile(const Blob& card_pin) = 0; + virtual bool ExistProfile(bool& is_pkcs15, bool& requires_adminpin) = 0; + virtual void CreateProfile(TIData& data, ProfileType profile_type) = 0; + virtual void FinalizeProfile(TIData& data) = 0; + + virtual void PinChangeReminder(TIData& data, bool enable) = 0; + }; + +} // namespace act + +#endif // ACT_ITokenInitializer_h diff --git a/actlibrary/MacOSX-10.6-x86_64/Release/include/actITokenKey.h b/actlibrary/include/actITokenKey.h similarity index 96% rename from actlibrary/MacOSX-10.6-x86_64/Release/include/actITokenKey.h rename to actlibrary/include/actITokenKey.h index 47e21bb..76231b9 100644 --- a/actlibrary/MacOSX-10.6-x86_64/Release/include/actITokenKey.h +++ b/actlibrary/include/actITokenKey.h @@ -1,64 +1,64 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actITokenKey.h -// Product: cv act library -// Purpose: The interface ITokenKey enables access to a key stored in a secure token. -// -// Copyright: (c) 2003 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_ITokenKey_h -#define ACT_ITokenKey_h - -#include "actIRefCounted.h" -#include "actISignatureKey.h" -#include "actITokenAuthOwner.h" -#include "actITokenFileOwner.h" - -#include "actTokenBase.h" - -namespace act -{ - class IToken; - class ITokenConfig; - - // - // ITokenKeyIterator - class ITokenKeyIterator : public IRefCounted - { - public: - virtual void Reset(ITokenFile* parent = 0) = 0; - virtual IKey* Next() = 0; - }; - - // - // ITokenKey - class ITokenKey - : public ISignatureKey - , public ITokenAuthOwner - , public ITokenFileOwner - { - public: - virtual ITokenKey* Clone() const = 0; - - virtual KeyType GetType() const = 0; - virtual IToken* GetToken() const = 0; - virtual const char* GetName() const = 0; - virtual void Configure(ITokenConfig* tkcfg) = 0; - - virtual Blob GetCertificate() const = 0; - virtual IKey* GetPublicKey() const = 0; - - virtual void VerifyPin(const Blob& pin) = 0; - - virtual Blob GetID() const = 0; - virtual Blob GetSubject() const = 0; - - virtual ITokenKeyIterator* Iterator(KeyType type, const Blob& authId = Blob()) const = 0; - }; - -} // namespace act - -#endif // ACT_ITokenKey_h +////////////////////////////////////////////////////////////////////////////////// +// Name: actITokenKey.h +// Product: cv act library +// Purpose: The interface ITokenKey enables access to a key stored in a secure token. +// +// Copyright: (c) 2003 cv cryptovision GmbH +// all rights reserved +// Licence: The conditions for the use of this software are regulated +// in the cv act library licence agreement. +////////////////////////////////////////////////////////////////////////////////// + +#ifndef ACT_ITokenKey_h +#define ACT_ITokenKey_h + +#include "actIRefCounted.h" +#include "actISignatureKey.h" +#include "actITokenAuthOwner.h" +#include "actITokenFileOwner.h" + +#include "actTokenBase.h" + +namespace act +{ + class IToken; + class ITokenConfig; + + // + // ITokenKeyIterator + class ITokenKeyIterator : public IRefCounted + { + public: + virtual void Reset(ITokenFile* parent = 0) = 0; + virtual IKey* Next() = 0; + }; + + // + // ITokenKey + class ITokenKey + : public ISignatureKey + , public ITokenAuthOwner + , public ITokenFileOwner + { + public: + virtual ITokenKey* Clone() const = 0; + + virtual KeyType GetType() const = 0; + virtual IToken* GetToken() const = 0; + virtual const char* GetName() const = 0; + virtual void Configure(ITokenConfig* tkcfg) = 0; + + virtual Blob GetCertificate() const = 0; + virtual IKey* GetPublicKey() const = 0; + + virtual void VerifyPin(const Blob& pin) = 0; + + virtual Blob GetID() const = 0; + virtual Blob GetSubject() const = 0; + + virtual ITokenKeyIterator* Iterator(KeyType type, const Blob& authId = Blob()) const = 0; + }; + +} // namespace act + +#endif // ACT_ITokenKey_h diff --git a/actlibrary/MacOSX-10.6-x86_64/Release/include/actITokenPIN.h b/actlibrary/include/actITokenPIN.h similarity index 96% rename from actlibrary/MacOSX-10.6-x86_64/Release/include/actITokenPIN.h rename to actlibrary/include/actITokenPIN.h index 3da8440..fcd09c0 100644 --- a/actlibrary/MacOSX-10.6-x86_64/Release/include/actITokenPIN.h +++ b/actlibrary/include/actITokenPIN.h @@ -1,221 +1,221 @@ -// --------------------------------------------------------------------------- -// Name: actITokenPIN.h -// Product: cv act library -// Purpose: The class ITokenPIN defines the interfaces of the PIN operations -// -// Copyright: (c) 2002 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -// -// Autor: Dr. Xiangdong Wang (XWG) -// Date: 04/05/2002 -// --------------------------------------------------------------------------- - -#ifndef ACT_ITokenPIN_h -#define ACT_ITokenPIN_h - -#include "actBasics.h" -#include "actDate.h" -#include "actBlob.h" - -#include "actITokenAuth.h" -#include "actITokenFileOwner.h" -#include "actIRefCounted.h" - -#include "actTokenBase.h" - -namespace act -{ - enum PINType - { - UNKNOWN_PIN = 0x0000, - SO_PIN = 0x0001, - USER_PIN = 0x0002, - UNBLOCK_PIN = 0x0003, - - PIN_MASK = 0x000F, - - EXAUTH_PIN = 0x0010, - BIOMETRIC_PIN = 0x0020, - CERTBASED_PIN = 0x0040, - - BAC_PIN = 0x0100, - ICAO_PIN = 0x0200, - - EAC_PACE_PIN = 0x0400, - EAC_TA_PIN = 0x0800, - EAC_CA_PIN = 0x1000, - - PIN_TYPE_MASK = 0x7fff, - - AUTHENTICATED_PIN = 0x8000, // Current authenticated PIN - - // combined types - EXAUTH_SO_PIN = EXAUTH_PIN | SO_PIN, - EXAUTH_UNBLOCK_PIN = EXAUTH_PIN | UNBLOCK_PIN, - - BIOMETRIC_USER_PIN = BIOMETRIC_PIN | USER_PIN, - BIOMETRIC_SO_PIN = BIOMETRIC_PIN | SO_PIN, - - EAC_PACE_UNKNOWN_PIN = EAC_PACE_PIN | UNKNOWN_PIN, - EAC_PACE_SO_PIN = EAC_PACE_PIN | SO_PIN, - EAC_PACE_USER_PIN = EAC_PACE_PIN | USER_PIN, - EAC_PACE_UNBLOCK_PIN = EAC_PACE_PIN | UNBLOCK_PIN, - - EAC_TA_UNKNOWN_PIN = EAC_TA_PIN | UNKNOWN_PIN, - EAC_TA_USER_PIN = EAC_TA_PIN | USER_PIN, - - EAC_CA_UNKNOWN_PIN = EAC_CA_PIN | UNKNOWN_PIN, - EAC_CA_USER_PIN = EAC_CA_PIN | USER_PIN, - }; - - enum PINFlags - { - PIN_INITIALIZED = (1 << 0), - PIN_IS_LOCAL = (1 << 1), - PIN_CASE_SENSITIVE = (1 << 2), - PIN_CHANGE_DISABLED = (1 << 3), - PIN_UNBLOCK_DISABLED = (1 << 4), - PIN_DISABLE_ALLOWED = (1 << 5), - PIN_NEEDS_PADDING = (1 << 6), - PIN_NEEDS_UPDATE = (1 << 7), - PIN_REQUIRES_SM = (1 << 8), - PIN_REQUIRES_NO_DATA = (1 << 9), - PIN_REQUIRES_ENCRYPTION = (1 << 10), - PIN_CHANGE_REQUIRES_OLD = (1 << 11), - PIN_IS_DEFAULT = (1 << 12), // marks the one and only default pin - - PIN_FLAGS_MASK = (1 << 13) - 1, - - // combined flags - PIN_FLAGS = PIN_INITIALIZED | PIN_IS_LOCAL | PIN_CASE_SENSITIVE, - PIN_FLAGS_DEFAULT = PIN_IS_DEFAULT | PIN_FLAGS, - PIN_FLAGS_SO = PIN_INITIALIZED | PIN_IS_LOCAL | PIN_CASE_SENSITIVE | PIN_UNBLOCK_DISABLED, - PIN_FLAGS_EXAUTH = PIN_INITIALIZED | PIN_IS_LOCAL, - PIN_FLAGS_BIOMETRIC = PIN_INITIALIZED | PIN_IS_LOCAL, - PIN_FLAGS_CERTBASED = PIN_INITIALIZED | PIN_IS_LOCAL | PIN_REQUIRES_NO_DATA | PIN_CHANGE_DISABLED | PIN_UNBLOCK_DISABLED, - }; - - enum AuthDataEncoding - { - PIN_ENCODING_UNKNOWN = -1, - PIN_ENCODING_BINARY = 0, - PIN_ENCODING_ASCII_NUMERIC, - PIN_ENCODING_UTF8, - PIN_ENCODING_BCD, - PIN_ENCODING_HALF_NIBBLE_BCD, - PIN_ENCODING_ISO9564_1, - - PIN_ENCODING = PIN_ENCODING_ASCII_NUMERIC, - }; - - enum AuthId - { - AUTHID_INVALID = 0x00, - }; - - enum BioFinger - { - FINGER_UNKNOWN = 0, - FINGER_RIGHT_THUMB = 1, - FINGER_RIGHT_INDEX = 2, - FINGER_RIGHT_MIDDLE = 3, - FINGER_RIGHT_RING = 4, - FINGER_RIGHT_LITTLE = 5, - FINGER_LEFT_THUMB = 6, - FINGER_LEFT_INDEX = 7, - FINGER_LEFT_MIDDLE = 8, - FINGER_LEFT_RING = 9, - FINGER_LEFT_LITTLE = 10 - }; - - class IAuthIdRef; - class ITokenFile; - class IToken; - class ISCardOS; - class AuthInfo; - - // - // ITokenPIN - class ITokenPIN - : public IRefCounted - , public ITokenFileOwner - { - public: - virtual ITokenPIN* Clone() const = 0; - virtual bool Equals(const ITokenPIN* other) const = 0; - virtual int Compare(const ITokenPIN* other) const = 0; - - virtual int GetType() const = 0; - virtual int GetUsage() const = 0; - virtual byte GetObjRef() const = 0; - virtual IToken* GetToken() const = 0; - virtual const char* GetName() const = 0; - virtual AuthDataEncoding GetEncoding() const = 0; - - virtual const AuthInfo* GetInfo() const = 0; - virtual void SetInfo(const AuthInfo* ai) = 0; - - virtual void SetDefault(bool is_default) = 0; - virtual bool IsDefault() const = 0; - - virtual bool IsInitialized() const = 0; - virtual bool IsAuthenticated() const = 0; - - virtual bool NeedsUpdate() const = 0; - virtual bool NeedsPINValue() const = 0; - - virtual bool GetLengthInfo(LengthInfo& info) const = 0; - virtual bool CheckPinLength(const Blob& pin) const = 0; - virtual bool GetLastChange(Date& date, bool& supported) const = 0; - - virtual void VerifyPin(const Blob& pin) = 0; - - // NOTE: ChangePin preserves the authentication state if successfull - // TODO: MTE: Describe in detail! - virtual void ChangePin(const Blob& oldpin, const Blob& newpin) = 0; - - // NOTE: UnlockPin preserves the authentication state if successfull - // TODO: MTE: Describe in detail! - virtual void UnlockPin(ITokenPIN* so, const Blob& pin, const Blob& newpin) = 0; - - // NOTE: SetPinValue preserves the authentication state if successfull - // TODO: MTE: Describe in detail! - virtual void SetPinValue(ITokenPIN* so, const Blob& so_pin, const Blob& newpin) = 0; - - virtual void Select(ISCardOS* os = 0) const = 0; - - virtual ITokenPIN* GetParent() const = 0; - - virtual IAuthIdRef* GetAuthIdRef() const = 0; - virtual IAuthIdRef* GetParentAuthIdRef() const = 0; - - // Bio extensions - virtual byte GetFinger() const = 0; - virtual bool GetBioHeader(Blob& bioheader) = 0; - - // ExternalAuth Key extensions - virtual Blob GetChallenge() const = 0; - virtual void ResetChallenge() = 0; - virtual Blob ComputeResponse(const Blob& auth_key, const Blob& challenge) const = 0; - - // Certificate based authentication extensions - virtual void SetCHAT(const Blob& chat) = 0; - virtual void SetCHAT(move_from chat) = 0; - virtual Blob GetCHAT() const = 0; - - protected: - // SCard Functionality - virtual Blob doGetChallenge() const = 0; - virtual void doResetChallenge() const = 0; - virtual void doVerify(const Blob& pin) const = 0; - virtual SecStatus doGetSecurityStatus(Blob& context) const = 0; - - private: - friend class TokenAuth; - }; - -} // namespace act - -#endif // ACT_ITokenPIN_h +// --------------------------------------------------------------------------- +// Name: actITokenPIN.h +// Product: cv act library +// Purpose: The class ITokenPIN defines the interfaces of the PIN operations +// +// Copyright: (c) 2002 cv cryptovision GmbH +// all rights reserved +// Licence: The conditions for the use of this software are regulated +// in the cv act library licence agreement. +// +// Autor: Dr. Xiangdong Wang (XWG) +// Date: 04/05/2002 +// --------------------------------------------------------------------------- + +#ifndef ACT_ITokenPIN_h +#define ACT_ITokenPIN_h + +#include "actBasics.h" +#include "actDate.h" +#include "actBlob.h" + +#include "actITokenAuth.h" +#include "actITokenFileOwner.h" +#include "actIRefCounted.h" + +#include "actTokenBase.h" + +namespace act +{ + enum PINType + { + UNKNOWN_PIN = 0x0000, + SO_PIN = 0x0001, + USER_PIN = 0x0002, + UNBLOCK_PIN = 0x0003, + + PIN_MASK = 0x000F, + + EXAUTH_PIN = 0x0010, + BIOMETRIC_PIN = 0x0020, + CERTBASED_PIN = 0x0040, + + BAC_PIN = 0x0100, + ICAO_PIN = 0x0200, + + EAC_PACE_PIN = 0x0400, + EAC_TA_PIN = 0x0800, + EAC_CA_PIN = 0x1000, + + PIN_TYPE_MASK = 0x7fff, + + AUTHENTICATED_PIN = 0x8000, // Current authenticated PIN + + // combined types + EXAUTH_SO_PIN = EXAUTH_PIN | SO_PIN, + EXAUTH_UNBLOCK_PIN = EXAUTH_PIN | UNBLOCK_PIN, + + BIOMETRIC_USER_PIN = BIOMETRIC_PIN | USER_PIN, + BIOMETRIC_SO_PIN = BIOMETRIC_PIN | SO_PIN, + + EAC_PACE_UNKNOWN_PIN = EAC_PACE_PIN | UNKNOWN_PIN, + EAC_PACE_SO_PIN = EAC_PACE_PIN | SO_PIN, + EAC_PACE_USER_PIN = EAC_PACE_PIN | USER_PIN, + EAC_PACE_UNBLOCK_PIN = EAC_PACE_PIN | UNBLOCK_PIN, + + EAC_TA_UNKNOWN_PIN = EAC_TA_PIN | UNKNOWN_PIN, + EAC_TA_USER_PIN = EAC_TA_PIN | USER_PIN, + + EAC_CA_UNKNOWN_PIN = EAC_CA_PIN | UNKNOWN_PIN, + EAC_CA_USER_PIN = EAC_CA_PIN | USER_PIN, + }; + + enum PINFlags + { + PIN_INITIALIZED = (1 << 0), + PIN_IS_LOCAL = (1 << 1), + PIN_CASE_SENSITIVE = (1 << 2), + PIN_CHANGE_DISABLED = (1 << 3), + PIN_UNBLOCK_DISABLED = (1 << 4), + PIN_DISABLE_ALLOWED = (1 << 5), + PIN_NEEDS_PADDING = (1 << 6), + PIN_NEEDS_UPDATE = (1 << 7), + PIN_REQUIRES_SM = (1 << 8), + PIN_REQUIRES_NO_DATA = (1 << 9), + PIN_REQUIRES_ENCRYPTION = (1 << 10), + PIN_CHANGE_REQUIRES_OLD = (1 << 11), + PIN_IS_DEFAULT = (1 << 12), // marks the one and only default pin + + PIN_FLAGS_MASK = (1 << 13) - 1, + + // combined flags + PIN_FLAGS = PIN_INITIALIZED | PIN_IS_LOCAL | PIN_CASE_SENSITIVE, + PIN_FLAGS_DEFAULT = PIN_IS_DEFAULT | PIN_FLAGS, + PIN_FLAGS_SO = PIN_INITIALIZED | PIN_IS_LOCAL | PIN_CASE_SENSITIVE | PIN_UNBLOCK_DISABLED, + PIN_FLAGS_EXAUTH = PIN_INITIALIZED | PIN_IS_LOCAL, + PIN_FLAGS_BIOMETRIC = PIN_INITIALIZED | PIN_IS_LOCAL, + PIN_FLAGS_CERTBASED = PIN_INITIALIZED | PIN_IS_LOCAL | PIN_REQUIRES_NO_DATA | PIN_CHANGE_DISABLED | PIN_UNBLOCK_DISABLED, + }; + + enum AuthDataEncoding + { + PIN_ENCODING_UNKNOWN = -1, + PIN_ENCODING_BINARY = 0, + PIN_ENCODING_ASCII_NUMERIC, + PIN_ENCODING_UTF8, + PIN_ENCODING_BCD, + PIN_ENCODING_HALF_NIBBLE_BCD, + PIN_ENCODING_ISO9564_1, + + PIN_ENCODING = PIN_ENCODING_ASCII_NUMERIC, + }; + + enum AuthId + { + AUTHID_INVALID = 0x00, + }; + + enum BioFinger + { + FINGER_UNKNOWN = 0, + FINGER_RIGHT_THUMB = 1, + FINGER_RIGHT_INDEX = 2, + FINGER_RIGHT_MIDDLE = 3, + FINGER_RIGHT_RING = 4, + FINGER_RIGHT_LITTLE = 5, + FINGER_LEFT_THUMB = 6, + FINGER_LEFT_INDEX = 7, + FINGER_LEFT_MIDDLE = 8, + FINGER_LEFT_RING = 9, + FINGER_LEFT_LITTLE = 10 + }; + + class IAuthIdRef; + class ITokenFile; + class IToken; + class ISCardOS; + class AuthInfo; + + // + // ITokenPIN + class ITokenPIN + : public IRefCounted + , public ITokenFileOwner + { + public: + virtual ITokenPIN* Clone() const = 0; + virtual bool Equals(const ITokenPIN* other) const = 0; + virtual int Compare(const ITokenPIN* other) const = 0; + + virtual int GetType() const = 0; + virtual int GetUsage() const = 0; + virtual byte GetObjRef() const = 0; + virtual IToken* GetToken() const = 0; + virtual const char* GetName() const = 0; + virtual AuthDataEncoding GetEncoding() const = 0; + + virtual const AuthInfo* GetInfo() const = 0; + virtual void SetInfo(const AuthInfo* ai) = 0; + + virtual void SetDefault(bool is_default) = 0; + virtual bool IsDefault() const = 0; + + virtual bool IsInitialized() const = 0; + virtual bool IsAuthenticated() const = 0; + + virtual bool NeedsUpdate() const = 0; + virtual bool NeedsPINValue() const = 0; + + virtual bool GetLengthInfo(LengthInfo& info) const = 0; + virtual bool CheckPinLength(const Blob& pin) const = 0; + virtual bool GetLastChange(Date& date, bool& supported) const = 0; + + virtual void VerifyPin(const Blob& pin) = 0; + + // NOTE: ChangePin preserves the authentication state if successfull + // TODO: MTE: Describe in detail! + virtual void ChangePin(const Blob& oldpin, const Blob& newpin) = 0; + + // NOTE: UnlockPin preserves the authentication state if successfull + // TODO: MTE: Describe in detail! + virtual void UnlockPin(ITokenPIN* so, const Blob& pin, const Blob& newpin) = 0; + + // NOTE: SetPinValue preserves the authentication state if successfull + // TODO: MTE: Describe in detail! + virtual void SetPinValue(ITokenPIN* so, const Blob& so_pin, const Blob& newpin) = 0; + + virtual void Select(ISCardOS* os = 0) const = 0; + + virtual ITokenPIN* GetParent() const = 0; + + virtual IAuthIdRef* GetAuthIdRef() const = 0; + virtual IAuthIdRef* GetParentAuthIdRef() const = 0; + + // Bio extensions + virtual byte GetFinger() const = 0; + virtual bool GetBioHeader(Blob& bioheader) = 0; + + // ExternalAuth Key extensions + virtual Blob GetChallenge() const = 0; + virtual void ResetChallenge() = 0; + virtual Blob ComputeResponse(const Blob& auth_key, const Blob& challenge) const = 0; + + // Certificate based authentication extensions + virtual void SetCHAT(const Blob& chat) = 0; + virtual void SetCHAT(move_from chat) = 0; + virtual Blob GetCHAT() const = 0; + + protected: + // SCard Functionality + virtual Blob doGetChallenge() const = 0; + virtual void doResetChallenge() const = 0; + virtual void doVerify(const Blob& pin) const = 0; + virtual SecStatus doGetSecurityStatus(Blob& context) const = 0; + + private: + friend class TokenAuth; + }; + +} // namespace act + +#endif // ACT_ITokenPIN_h diff --git a/actlibrary/MacOSX-10.5-x86_64/Release/include/actIX509CRL.h b/actlibrary/include/actIX509CRL.h similarity index 97% rename from actlibrary/MacOSX-10.5-x86_64/Release/include/actIX509CRL.h rename to actlibrary/include/actIX509CRL.h index 750ddd6..1a68377 100644 --- a/actlibrary/MacOSX-10.5-x86_64/Release/include/actIX509CRL.h +++ b/actlibrary/include/actIX509CRL.h @@ -1,48 +1,48 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actIX509CRL.h -// Product: cv act library -// Purpose: -// -// Copyright: (c) 2000 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_IX509CRL_h -#define ACT_IX509CRL_h -#include "actICRL.h" -#include "actX509Extension.h" - -namespace act -{ - - class IX509CRL: public ICRL - { - public: - virtual void SetThisUpdate(const Date &date )=0; - virtual void SetNextUpdate(const Date &date )=0; - virtual void GetThisUpdate(Date &date ) const=0; - virtual void GetNextUpdate(Date &date ) const=0; - - virtual X509Extension GetExtension(const char* oid) const=0; - virtual X509Extension GetExtension(const act::Blob& oidbl) const=0; - virtual void SetExtension(const X509Extension &ext)=0; - virtual X509Extension GetNextExtension(const X509Extension& ext) const=0; - virtual void RemoveExtension(const char* oid)=0; - - virtual Blob GetNextEntry(const Blob& certsernr) const=0; - - virtual void SetEntryRevocationDate(const Blob& certsn, const Date &vnbefore )=0; - virtual void GetEntryRevocationDate(const Blob& certsn, Date &vnbefore ) const=0; - - virtual X509Extension GetEntryExtension(const Blob& certsn, const char* oid) const=0; - virtual void SetEntryExtension(const Blob& certsn, const X509Extension &ext)=0; - virtual X509Extension GetNextEntryExtension(const Blob& certsn,const X509Extension& ext) const=0; - virtual void RemoveEntryExtension(const Blob& certsn,const char* oid)=0; - - }; -} // namespace act - -#endif - +////////////////////////////////////////////////////////////////////////////////// +// Name: actIX509CRL.h +// Product: cv act library +// Purpose: +// +// Copyright: (c) 2000 cv cryptovision GmbH +// all rights reserved +// Licence: The conditions for the use of this software are regulated +// in the cv act library licence agreement. +////////////////////////////////////////////////////////////////////////////////// + +#ifndef ACT_IX509CRL_h +#define ACT_IX509CRL_h +#include "actICRL.h" +#include "actX509Extension.h" + +namespace act +{ + + class IX509CRL: public ICRL + { + public: + virtual void SetThisUpdate(const Date &date )=0; + virtual void SetNextUpdate(const Date &date )=0; + virtual void GetThisUpdate(Date &date ) const=0; + virtual void GetNextUpdate(Date &date ) const=0; + + virtual X509Extension GetExtension(const char* oid) const=0; + virtual X509Extension GetExtension(const act::Blob& oidbl) const=0; + virtual void SetExtension(const X509Extension &ext)=0; + virtual X509Extension GetNextExtension(const X509Extension& ext) const=0; + virtual void RemoveExtension(const char* oid)=0; + + virtual Blob GetNextEntry(const Blob& certsernr) const=0; + + virtual void SetEntryRevocationDate(const Blob& certsn, const Date &vnbefore )=0; + virtual void GetEntryRevocationDate(const Blob& certsn, Date &vnbefore ) const=0; + + virtual X509Extension GetEntryExtension(const Blob& certsn, const char* oid) const=0; + virtual void SetEntryExtension(const Blob& certsn, const X509Extension &ext)=0; + virtual X509Extension GetNextEntryExtension(const Blob& certsn,const X509Extension& ext) const=0; + virtual void RemoveEntryExtension(const Blob& certsn,const char* oid)=0; + + }; +} // namespace act + +#endif + diff --git a/actlibrary/MacOSX-10.6-x86_64/Release/include/actIX509Certificate.h b/actlibrary/include/actIX509Certificate.h similarity index 97% rename from actlibrary/MacOSX-10.6-x86_64/Release/include/actIX509Certificate.h rename to actlibrary/include/actIX509Certificate.h index 85d6907..e7e843d 100644 --- a/actlibrary/MacOSX-10.6-x86_64/Release/include/actIX509Certificate.h +++ b/actlibrary/include/actIX509Certificate.h @@ -1,46 +1,46 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actIX509Certificate.h -// Product: cv act library -// Purpose: The abstract class IX509Certificate enables access to a certificate, -// e.g. its public key and the corresponding validity. -// -// Copyright: (c) 2000 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_IX509Certificate_h -#define ACT_IX509Certificate_h - -#include "actBasics.h" -#include "actDate.h" -#include "actICertificate.h" -#include "actX509Extension.h" - -namespace act -{ - class IKey; - class Blob; - - class IX509Certificate : public ICertificate - { - public: - - virtual void SetValidityNotBefore(const Date &vnbefore ) =0; - virtual void SetValidityNotAfter(const Date &vnafter ) =0; - virtual void GetValidityNotBefore(Date &vnbefore ) const =0; - virtual void GetValidityNotAfter(Date &vnafter ) const =0; - - virtual bool CheckValidity(const Date& date = Date() ) const =0; - - virtual X509Extension GetExtension(const char* oid) const=0; - virtual X509Extension GetExtension(const act::Blob& oidbl) const=0; - virtual void SetExtension(const X509Extension &ext)=0; - virtual X509Extension GetNextExtension(const X509Extension& ext) const=0; - virtual void RemoveExtension(const char* oid)=0; - }; -} // namespace act - -#endif - +////////////////////////////////////////////////////////////////////////////////// +// Name: actIX509Certificate.h +// Product: cv act library +// Purpose: The abstract class IX509Certificate enables access to a certificate, +// e.g. its public key and the corresponding validity. +// +// Copyright: (c) 2000 cv cryptovision GmbH +// all rights reserved +// Licence: The conditions for the use of this software are regulated +// in the cv act library licence agreement. +////////////////////////////////////////////////////////////////////////////////// + +#ifndef ACT_IX509Certificate_h +#define ACT_IX509Certificate_h + +#include "actBasics.h" +#include "actDate.h" +#include "actICertificate.h" +#include "actX509Extension.h" + +namespace act +{ + class IKey; + class Blob; + + class IX509Certificate : public ICertificate + { + public: + + virtual void SetValidityNotBefore(const Date &vnbefore ) =0; + virtual void SetValidityNotAfter(const Date &vnafter ) =0; + virtual void GetValidityNotBefore(Date &vnbefore ) const =0; + virtual void GetValidityNotAfter(Date &vnafter ) const =0; + + virtual bool CheckValidity(const Date& date = Date() ) const =0; + + virtual X509Extension GetExtension(const char* oid) const=0; + virtual X509Extension GetExtension(const act::Blob& oidbl) const=0; + virtual void SetExtension(const X509Extension &ext)=0; + virtual X509Extension GetNextExtension(const X509Extension& ext) const=0; + virtual void RemoveExtension(const char* oid)=0; + }; +} // namespace act + +#endif + diff --git a/actlibrary/MacOSX-10.6-x86_64/Release/include/actInit.h b/actlibrary/include/actInit.h similarity index 97% rename from actlibrary/MacOSX-10.6-x86_64/Release/include/actInit.h rename to actlibrary/include/actInit.h index 36f0099..42f440c 100644 --- a/actlibrary/MacOSX-10.6-x86_64/Release/include/actInit.h +++ b/actlibrary/include/actInit.h @@ -1,578 +1,578 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actInit.h -// Product: cv act library -// Purpose: initialize the map entries of the objects -// -// Copyright: (c) 2007 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -// remarks: -// declare NO_SMARTCARD: no smartcard support required. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef actInit_h -#define actInit_h - -#include "actEnv.h" -#include "actKeyKit.h" -#include "actKeyReg.h" -#include "actBlockCipherKit.h" -#include "actBlockCipherReg.h" -#include "actBlockCipherModeReg.h" -#include "actBlockCipherModeKit.h" -#include "actStreamCipherKit.h" -#include "actStreamCipherReg.h" -#include "actHashKit.h" -#include "actHashReg.h" -#include "actEMSAReg.h" -#include "actEMSAKit.h" -#include "actDerivatorReg.h" -#include "actDerivatorKit.h" -#include "actPaddingReg.h" -#include "actPaddingKit.h" -#include "actCertificateReg.h" -#include "actCertificateKit.h" -#include "actX509KeyReg.h" -#include "actX509SignReg.h" -#include "actX509SignHashReg.h" -#include "actX509Kit.h" -#include "actDefaultRNG.h" -#include "actRNGKit.h" - -#ifndef NO_SMARTCARD -// NOTE: To Enable support for additional smartcards / profiles define: -// ACT_SUPPORT_TCOS_NETKEY30 -# include "actSCardOSReg.h" -# include "actSCardOSKit.h" -# include "actSCardTokenReg.h" -# include "actSCardTokenKit.h" -# include "actSubsystemReg.h" -# include "actSubsystemKit.h" -# include "actSlotMonitorReg.h" -# include "actSlotMonitorKit.h" -# include "actTokenExtensionReg.h" -# include "actTokenExtensionKit.h" -# include "actTokenAuthProtocolReg.h" -# include "actTokenAuthProtocolKit.h" -# include "actJCAppletKit.h" -# include "actJCAppletReg.h" -# include "actPKCS15BehaviorReg.h" -# include "actPKCS15BehaviorKit.h" -# include "actProfileGeneratorReg.h" -# include "actProfileGeneratorKit.h" -#endif // NO_SMARTCARD - -namespace act -{ - // ------------------------------------------------------------------------ - const KeyMapEntry KeyMap[] = - { - { "BlockCipher", CreateBlockCipherKey }, - { "StreamCipher", CreateStreamCipherKey }, - - { "IES", CreateIESKey }, - { "DSA", CreateDSAKey }, - { "RSA", CreateRSAKey }, - { "ECDSA", CreateECDSAKey }, - { "ECGDSA", CreateECGDSAKey }, - - { "DH", CreateDHKey }, - { "ECDH", CreateECDHKey }, - - { "HashMAC", CreateHashMACKey }, - { "CBCMAC", CreateCBCMACKey }, - { "SecretKeyMAC", CreateSecretKeyMACKey }, - { "RetailCFBMAC", CreateRetailCFBMACKey }, - { "iMAC3", Create_iMAC3Key }, // ISO9797-1 M2 Alg 3 MAC8 - { "CMAC", CreateCMACKey }, // NIST 800-38B CMAC - { 0, 0 } - }; - - // ------------------------------------------------------------------------ - const BlockCipherMapEntry BlockCipherMap[] = - { - { "AES", CreateRijndael }, - { "DES", CreateDES }, - { "TripleDES", CreateTripleDES }, - { "CAST128", CreateCAST128 }, - { "BlowFish", CreateBlowFish }, - { "Mars", CreateMars }, - { "Serpent", CreateSerpent }, - { "Rijndael", CreateRijndael }, - { "TwoFish", CreateTwoFish }, - { "RC2", CreateRC2 }, - //{ "RC6", CreateRC6 }, - { 0, 0 } - }; - - // ------------------------------------------------------------------------ - const BlockCipherModeMapEntry BlockCipherModeMap[] = - { - { "ECB", CreateECBMode }, - { "CBC", CreateCBCMode }, - { "CFB", CreateCFBMode }, - { "OFB", CreateOFBMode }, - { "CTR", CreateCTRMode }, - { 0, 0 } - }; - - // ------------------------------------------------------------------------ - const StreamCipherMapEntry StreamCipherMap[] = - { - { "ARC4", CreateARC4 }, - { 0, 0 } - }; - - // ------------------------------------------------------------------------ - const HashMapEntry HashMap[] = - { - { "MD2", CreateMD2 }, - { "MD4", CreateMD4 }, - { "MD5", CreateMD5 }, - { "RIPEMD128", CreateRipemd128 }, - { "RIPEMD160", CreateRipemd160 }, - { "SHA0", CreateSHA0 }, - { "SHA1", CreateSHA1 }, - { "SHA224", CreateSHA224 }, - { "SHA256", CreateSHA256 }, - { "SHA384", CreateSHA384 }, - { "SHA512", CreateSHA512 }, - { "DummyHash", CreateDummyHash }, - { 0, 0 } - }; - - // ------------------------------------------------------------------------ - const EMSAMapEntry EMSAMap[] = - { - { "EMSA1", CreateEMSA1 }, - { "PKCS1V1_5EMSA", CreatePKCS1V1_5EMSA }, - { "TLS_EMSA", CreateTLS_EMSA}, - { "PKCS1_PSS_EMSA", CreatePKCS1_PSS_EMSA }, - { "DummyEMSA", CreateDummyEMSA }, // Used for "Hash on Card" - { 0, 0 } - }; - - // ------------------------------------------------------------------------ - const DerivatorMapEntry DerivatorMap[] = - { - { "KDF1", CreateKDF1 }, // IEEE P1363 KDF1 - { "KDF2", CreateX963KDF }, // IEEE P1363 KDF2 (= X963KDF) - { "X963KDF", CreateX963KDF }, // ANSI X9.63 KDF - { "PBKDF1", CreatePBKDF1 }, // PKCS#5 PBKDF1 - { "PBKDF2", CreatePBKDF2 }, // PKCS#5 PBKDF2 - { "EACKDF", CreateEACKDF }, // EAC 2.01, BSI TR-03110 A.2.3 - { "SessionKDF", CreateEACKDF }, // BSI TR-03111 (= EACKDF) - { 0, 0 } - }; - - // ------------------------------------------------------------------------ - const PaddingMapEntry PaddingMap[] = - { - { "PKCS5", CreatePKCS5Pad }, - { "RSAES", CreatePKCS1V1_5EMEPad }, - { "ISO", CreateOneAndZerosPad }, - { "ISO9796", CreateISO9796Pad }, - { "NOPAD", CreateNoPad }, - { 0, 0 } - }; - - // ------------------------------------------------------------------------ - const CertificateMapEntry CertificateMap[] = - { - { "X509", CreateX509Certificate }, - { "CV", CreateCVCertificate }, - { 0, 0 } - }; - - // ------------------------------------------------------------------------ - const CRLMapEntry CRLMap[] = - { - { "X509", CreateX509CRL }, - { 0, 0 } - }; - - // ------------------------------------------------------------------------ - const X509KeyMapEntry X509KeyMap[] = - { - { "1.2.840.113549.1.1.1", CreateRSAKey, X509ToRSA, RSAToX509 }, - { "2.5.8.1.1", CreateRSAKey, X509ToRSA, RSAToX509 }, - { "1.2.840.10040.4.1", CreateDSAKey, X509ToDSA, DSAToX509 }, - { "1.3.14.3.2.20", CreateDSAKey, X509ToDSA, DSAToX509 }, - { "1.3.14.3.2.12", CreateDSAKey, X509ToDSA, DSAToX509 }, // secude DSA oid - { "1.2.840.10046.2.1", CreateDHKey, X509ToDH, DHToX509 }, - { "1.2.840.10045.2.1", CreateECDSAKey, X509ToECDSA, ECDSAToX509 }, - { "1.2.840.10045.2.1", CreateECDHKey, X509ToECDSA, ECDSAToX509 }, - { 0, 0, 0, 0 } - }; - - // ------------------------------------------------------------------------ - const X509SignMapEntry X509SignMap[] = - { - { CreateRSAKey, RSAGetAlgID, RSASetAlgID }, - { CreateDSAKey, DSAGetAlgID, DSASetAlgID }, - { CreateECDSAKey, ECDSAGetAlgID, ECDSASetAlgID }, - { CreateDHKey, DHGetAlgID, DHSetAlgID }, - { CreateECDHKey, ECDHGetAlgID, ECDHSetAlgID }, - { 0, 0, 0 } - }; - - // ------------------------------------------------------------------------ - const X509SignHashMapEntry X509SignHashMap[] = - { - // RSA - { "1.2.840.113549.1.1.2", "MD2", "RSA" }, // md2WithRSAEncryption - { "1.2.840.113549.1.1.3", "MD4", "RSA" }, // md4WithRSAEncryption - { "1.2.840.113549.1.1.4", "MD5", "RSA" }, // md5WithRSAEncryption - { "1.2.840.113549.1.1.5", "SHA1", "RSA" }, // shaWithRSAEncryption - { "1.3.14.3.2.29", "SHA1", "RSA" }, - { "1.2.840.113549.1.1.11", "SHA256", "RSA" }, // sha256WithRSAEncryption - { "1.2.840.113549.1.1.12", "SHA384", "RSA" }, // sha384WithRSAEncryption - { "1.2.840.113549.1.1.13", "SHA512", "RSA" }, // sha512WithRSAEncryption - { "1.2.840.113549.1.1.14", "SHA224", "RSA" }, // sha224WithRSAEncryption - { "1.3.36.3.3.1.2", "RIPEMD160", "RSA" }, - { "1.3.36.3.3.1.3", "RIPEMD128", "RSA" }, - // DSA - { "1.2.840.10040.4.3", "SHA1", "DSA" }, - { "1.3.14.3.2.28", "SHA1", "DSA" }, - { "1.3.14.3.2.27", "SHA1", "DSA" }, // secude DSA oid - // ECDSA - { "1.2.840.10045.4.1", "SHA1", "ECDSA" }, // ecdsa-with-Sha1 - { "1.2.840.10045.2.1", "SHA1", "ECDSA" }, // ecdsa-with-Sha1 (deprecated) - { "1.2.840.10045.4.3.1", "SHA224", "ECDSA" }, // ecdsa-with-Sha224 - { "1.2.840.10045.4.3.2", "SHA256", "ECDSA" }, // ecdsa-with-Sha256 - { "1.2.840.10045.4.3.3", "SHA384", "ECDSA" }, // ecdsa-with-Sha384 - { "1.2.840.10045.4.3.4", "SHA512", "ECDSA" }, // ecdsa-with-Sha512 - // DH - { "1.3.6.1.5.5.7.6.4", "SHA1", "DH" }, // DH-POP - // ECDH - { "1.2.840.10045.2.1", "SHA1", "ECDH" }, // "ECDH-POP" - { 0, 0, 0 } - }; - -#ifndef NO_SMARTCARD - // ------------------------------------------------------------------------ - const SCardOSMapEntry SCardOSMap[] = - { - // NOTE: Only lower case historical bytes ! - /* - { "0064050a020131809000", CreateTCOS }, // NetKey (TCOS V2R1) - { "00640560020331809000", CreateTCOS }, // NetKey (TCOS V2R3) - { "0064057b020331809000", CreateTCOS }, // NetKey (TCOS V2R?) - { "00640514020231809000", CreateTCOS }, // etrust (TCOS V2R2) - { "00640561020331809000", CreateTCOS }, // TCOS USB Crypt Token - { "0068d276000028ff051e3180009000", CreateMicardOS }, // Micardo P2.1 - { "4d4943323045", CreateMicardo20E }, // Micardo EC 2.0 - { "0068d276000028ff05233180009000", CreateMicardo23E }, // Micardo EC 2.3 - */ - - // ACOS - { "454d56203033202006", CreateACOS_D01 }, // Austria Card ACOS EMV-D01 - { "44492030324d", CreateACOS_D01 }, // Austria Card ACOS EMV-D01 contactless - { "455041000000000228505900000000", CreateACOS_A04 }, // Austria Card ACOS EMV-A04/A05 - { "455041000000000000000000000000", CreateACOS_A04 }, // Austria Card ACOS EMV-A04/A05 - - // CardOS - { "c802", CreateCardOS_M4 }, // CardOS M4.0 siemens profile - { "c803", CreateCardOS_M4 }, // CardOS M4.01 siemens profile - { "c804", CreateCardOS_M4 }, // CardOS M4.01a siemens profile - { "4d346376", CreateCardOS_M4 }, // CardOS M4.01(a) cv profile - { "4d3463765f4d", CreateCardOS_M4_MoC }, // CardOS M4.01_M cv profile - { "4d3463765f45", CreateCardOS_M4_ECC }, // CardOS M4.01_E cv profile - { "c806", CreateCardOS_V4 }, // CardOS V4.2 - { "c807", CreateCardOS_V4 }, // CardOS V4.3 - { "c808", CreateCardOS_V4 }, // CardOS V4.3B - { "c809", CreateCardOS_V4 }, // CardOS V4.2B - { "c80a", CreateCardOS_V4 }, // CardOS V4.2B DI - { "0000c80a3381b100", CreateCardOS_V4 }, // CardOS V4.2B DI contactless - { "c80b", CreateCardOS_V4 }, // CardOS V4.2C - { "c80d", CreateCardOS_V4 }, // CardOS V4.4 - { "56346376", CreateCardOS_V4 }, // CardOS V4.2/4.3/4.3B cv profile - { "563432626376", CreateCardOS_V4 }, // CardOS V4.2b cv profile - { "5634326244496376", CreateCardOS_V4 }, // CardOS V4.2b DI cv profile - { "563432636376", CreateCardOS_V4 }, // CardOS V4.2c cv profile - { "5634346376", CreateCardOS_V4 }, // CardOS V4.4 cv profile - { "563463765f45", CreateCardOS_V4_ECC }, // CardOS V4.3B ECC cv profile - { "006b0508c806012101434e53103180", CreateCardOS_V4 }, // CardOS V4.2 CNS profile, 2004.02.20 - { "006b0508c807012101434e53103180", CreateCardOS_V4 }, // CardOS V4.3 CNS profile, 2004.02.20 - { "006b0508c808012101434e53103180", CreateCardOS_V4 }, // CardOS V4.3B CNS profile, 2004.02.20 - { "006b0508c806011101434e53103180", CreateCardOS_V4 }, // CardOS V4.2 CNS profile, 2005.03.11 - { "006b0508c807011101434e53103180", CreateCardOS_V4 }, // CardOS V4.3 CNS profile, 2005.03.11 - { "006b0508c808011101434e53103180", CreateCardOS_V4 }, // CardOS V4.3B CNS profile, 2005.03.11 - { "006b0508c808011101434e53103180", CreateCardOS_V4 }, // CardOS V4.3B CNS profile, 2005.03.11 - { "4b53776973735369676e", CreateCardOS_V4 }, // CardOS V4.3B/V4.4 ATR by SwissSign - - // STARCOS - //{ "53504b32339000", CreateStarCOS_3_0}, // G&D STARCOS SPK 2.3 - { "80670412b0030300008101", CreateStarCOS_3_0 }, // G&D STARCOS 3.0 (creational state) - { "80670412b0030300008105", CreateStarCOS_3_0 }, // G&D STARCOS 3.0 - { "80670412b003030000", CreateStarCOS_3_0 }, // G&D STARCOS 3.0 contactless - { "80655343010d067394211b8101", CreateStarCOS_3_0 }, // G&D STARCOS 3.1 (creational state) - { "80655343010d067394211b8105", CreateStarCOS_3_0 }, // G&D STARCOS 3.1 - { "0064051eb20031b0739621db019000", CreateStarCOS_3_2 }, // G&D STARCOS 3.2 (creational state) - { "0064051eb20031b0739621db059000", CreateStarCOS_3_2 }, // G&D STARCOS 3.2 - - // TCOS -#ifdef ACT_SUPPORT_TCOS_NETKEY30 - { "00640411030131c073f701d0009000", CreateTCOS_3_0 }, // NetKey (TCOS 3.0) -#endif - // JavaCards - { "8073002113574a544861314a00", CreateJavaCardOS_2_2 }, // G&D SmartCafe Expert 64 (cfg1) - { "8073002113574a544861314700", CreateJavaCardOS_2_2 }, // G&D SmartCafe Expert 64 (cfg2) - { "8073002113574a544861314800", CreateJavaCardOS_2_2 }, // G&D SmartCafe Expert 64 (cfg3) - { "8073002113574a544861314b00", CreateJavaCardOS_2_2 }, // G&D SmartCafe Expert 64 (cfg4) - { "8073002113574a544861314c00", CreateJavaCardOS_2_2 }, // G&D SmartCafe Expert 64 (cfg5) - { "8073002113574a544861314900", CreateJavaCardOS_2_2 }, // G&D SmartCafe Expert 64 (cfg8) - { "404d4f504153530000000000000000", CreateJavaCardOS_2_2 }, // G&D SmartCafe Expert 64 (XMC2) - - { "534653452d43583332322d56180308", CreateJavaCardOS_2_1_1 },// G&D SmartCafe Expert 2.0 - { "0073c84013009000", CreateJavaCardOS_2_2_1 }, // G&D SmartCafe Expert 3.0 / 3.1 / 3.1 contactless - { "4138004133b1020073c840130090", CreateJavaCardOS_2_2_1 }, // G&D SmartCafe Expert 3.1 contactless (SCM SDI010, Firmware V6.28) - { "4138004133b10073c84013009000", CreateJavaCardOS_2_2_1 }, // G&D SmartCafe Expert 3.1 contactless (SCM SDI010, Firmware V6.32) - { "73667465206364313434", CreateJavaCardOS_2_2_1 }, // G&D SmartCafe Expert 3.2 PIV 144 KB - { "736674652D6364303830", CreateJavaCardOS_2_2_1 }, // G&D SmartCafe Expert 3.2 PIV 80 KB - { "73667465", CreateJavaCardOS_2_2_1 }, // G&D SmartCafe Expert 3.2 (sfte) - { "736674652d6e66", CreateJavaCardOS_2_2_1 }, // G&D SmartCafe Expert 3.2 (sfte-nf) - { "73c840130090009b", CreateJavaCardOS_2_2_1 }, // G&D SmartCafe Expert 3.2 USB Token - { "736674652063643038302d6e66", CreateJavaCardOS_2_2_1 }, // G&D SmartCafe Expert 3.2 (sfte cd080-nf) - { "53462d3443432d3031", CreateJavaCardOS_2_2_1 }, // G&D SmartCafe Expert 5.0 - { "53504b323544499000", CreateJavaCardOS_2_2_1 }, // G&D Mobile Security Card 3.x - { "4d5343", CreateJavaCardOS_2_2_1 }, // G&D Mobile Security Card 3.x - - //{ "4a434f503230", CreateJavaCardOS_2_1 }, // JCOP 20 - { "4a434f503231563232", CreateJavaCardOS_2_2_1 }, // JCOP 21 V2.2 - { "4a434f50323156323331", CreateJavaCardOS_2_2_1 }, // JCOP 21 V2.3.1 - { "4a434f503331563231", CreateJavaCardOS_2_1 }, // JCOP 31 V2.1 - { "4a434f503331563232", CreateJavaCardOS_2_2_1 }, // JCOP 31 V2.2 - { "4a434f50333156323331", CreateJavaCardOS_2_2_1 }, // JCOP 31 V2.3.1 - { "4a434f503331563234", CreateJavaCardOS_2_2_1 }, // JCOP 31 V2.4 - //{ "4a434f5033313336474454", CreateJavaCardOS_2_2_1 }, // JCOP 31 36GDT - { "4a434f503431563232", CreateJavaCardOS_2_2_1 }, // JCOP 41 V2.2 / V2.2 contactless - { "4128001133b04a434f5034315632", CreateJavaCardOS_2_2_1 }, // JCOP 41 V2.2 contactless (SCM SDI010, Firmware V6.32) - { "4a434f50343156323231", CreateJavaCardOS_2_2_1 }, // JCOP 41 V2.2.1 - { "4138001133b04a434f5034315632", CreateJavaCardOS_2_2_1 }, // JCOP 41 V2.2.1 contactless - { "4a434f50343156323331", CreateJavaCardOS_2_2_1 }, // JCOP 41 V2.3.1 - { "4a434f50343156323332", CreateJavaCardOS_2_2_1 }, // JCOP 41 V2.3.2 - { "4a434f503431563234", CreateJavaCardOS_2_2_1 }, // JCOP 41 V2.4 - { "4a434f5076323431", CreateJavaCardOS_2_2_2 }, // JCOP v2.4.1 - { "434f50343156323231ff", CreateJavaCardOS_2_2_1 }, // JCOP 41 V2.2.1 (IDptoken 200) - { "4a434f507632343262657461", CreateJavaCardOS_2_2_2 }, // JCOP v2.4.2 beta - { "0073c84000009000", CreateJavaCardOS_2_2_1 }, // JCOP V2.3.2 - - { "4a434f50563231", CreateJavaCardOS_2_1 }, // JCOP V2.1 - { "4a434f50563232", CreateJavaCardOS_2_2_1 }, // JCOP V2.2 - { "4a434f5056323231", CreateJavaCardOS_2_2_1 }, // JCOP V2.2.1 - { "4a434f50563233", CreateJavaCardOS_2_2_1 }, // JCOP V2.3 - { "4a434f5056323331", CreateJavaCardOS_2_2_1 }, // JCOP V2.3.1 - { "4a434f5056323332", CreateJavaCardOS_2_2_1 }, // JCOP V2.3.2 - { "4a434f50563234", CreateJavaCardOS_2_2_1 }, // JCOP V2.4 - { "4a434f5056323431", CreateJavaCardOS_2_2_2 }, // JCOP V2.4.1 - { "4a434f5056323432", CreateJavaCardOS_2_2_2 }, // JCOP V2.4.2 - - { "4a434f5033314d34", CreateJavaCardOS_2_2_1 }, // Austriacard JCOP31M4 - { "4a434f5032315632325f", CreateJavaCardOS_2_2_1 }, // AustriaCard JCOP 21 V2.2, T0, T1 - { "4a434f5033315632325f", CreateJavaCardOS_2_2_1 }, // AustriaCard JCOP 31 V2.2, T0, T1 - { "4a434f5034315632345f", CreateJavaCardOS_2_2_1 }, // AustriaCard JCOP 41 V2.4, T0, T1 - { "4a434f50563234314143", CreateJavaCardOS_2_2_1 }, // AustriaCard JCOP V2.4.1, T0, T1 - - { "5257414e44415f4944", CreateJavaCardOS_2_2_1 }, // AustriaCard JCOP V2.4.1 'RWANDA_ID' - { "44654c61527565", CreateJavaCardOS_2_2_1 }, // AustriaCard JCOP V2.4.1 'DeLaRue' - - { "803180664090a4561b1183019000", CreateJavaCardOS_2_2_1 }, // Infineon jTOP 20ID - - { "80318065b0831148c883009000", CreateJavaCardOS_2_2_1 }, // Gemalto TOP IM GX4 - //{ "80318065b08301029083009000", CreateJavaCardOS_2_2_1 }, // Gemalto I-DENTITY CARD - { "8065b08301017483009000", CreateJavaCardOS_2_1_1 }, // Gemplus GemXpresso Pro R3 - { "8065b08301037483009000", CreateJavaCardOS_2_1_1 }, // Gemplus GemXpresso Pro R3 - //{ "8065a20101013d72d643", CreateJavaCardOS_2_1_1 }, // Gemplus GemXpresso Pro R3 E32 PK - - { "0031c06477e30300829000", CreateJavaCardOS_2_1_1 }, // Oberthur CosmopolIC 64K v5.2D - - { "8059017f4849444a43327300011b", CreateJavaCardOS_2_2_2 }, // HID Crescendo C700 (JC2s) ("Standard JavaCard, T0/1, Platform Default Packages") - { "804f0ca0000003060a001d00000000", CreateJavaCardOS_2_2_2 },// HID Crescendo C700 (JC2s) contactless - - { ACT_ISO7816OS_NAME, CreateISO7816OS }, // use act::ISO7816OS as fallback - { 0, 0 } - }; - - // ------------------------------------------------------------------------ - const SCardTokenMapEntry SCardTokenMap[] = - { - // Passport - { IsEPAProfile, CreateEPAProfile }, - - // PKCS#15 - { IsM4PKCS15Profile, CreateM4PKCS15Profile }, - { IsV4PKCS15ECProfile, CreateV4PKCS15ECProfile }, - { IsV4PKCS15Profile, CreateV4PKCS15Profile }, - { IsJCPKCS15ECProfile, CreateJCPKCS15ECProfile }, - { IsJCPKCS15Profile, CreateJCPKCS15Profile }, - { IsACOSPKCS15Profile, CreateACOSPKCS15Profile }, - { IsStarCOSPKCS15Profile, CreateStarCOSPKCS15Profile }, - - // ACOS - { IsACOScvProfile, CreateACOScvProfile }, - - // CardOS - { IsM4cvMoCProfile, CreateM4cvMoCProfile }, - { IsM4cvECProfile, CreateM4cvECProfile }, - { IsV4cvECProfile, CreateV4cvECProfile }, - { IsV4cvProfile, CreateV4cvProfile }, - { IsM4cvProfile, CreateM4cvProfile }, - // { IsV4CNSProfile, CreateV4CNSProfile }, - - // TCOS -#ifdef ACT_SUPPORT_TCOS_NETKEY30 - { IsNetKey30Token, CreateNetKey30Token }, -#endif - - // JavaCardOS - { IsJCProfile, CreateJCProfile }, - // { IsJavaCardAppletManager, CreateJavaCardAppletManager }, - - /* - { IsStarCOSToken, CreateStarCOSToken }, - { IsNetKey2000Token, CreateNetKey2000Token }, - { IsNetKeyE4Token, CreateNetKeyE4Token }, - { IsNetKeyPKSToken, CreateNetKeyPKSToken }, - { IsNetKeyOldToken, CreateNetKeyOldToken }, - { IseTrustToken, CreateeTrustToken }, - { IsMicardoECToken, CreateMicardoECToken }, - { IsM4SiemensProfile, CreateM4SiemensProfile }, - */ - { 0, 0 } - }; - - // ------------------------------------------------------------------------ - const ProfileGeneratorMapEntry ProfileGeneratorMap[] = - { - { "JavaCardOS", CreateJCPKCS15Generator }, - { 0, 0 } - }; - - // ------------------------------------------------------------------------ - const PKCS15BehaviorMapEntry PKCS15BehaviorMap[] = - { - { "cv cryptovision gmbh (c) v1.0j", CreateJCPKCS15Behavior }, - { "cv cryptovision gmbh (c) v1.0jEAC", CreateJCPKCS15mEACBehavior }, - { "cv cryptovision gmbh (c) v1.0n", CreateV4PKCS15Behavior }, - { "cv cryptovision gmbh (c) v1.0na", CreateACOSPKCS15Behavior }, - { "cv cryptovision gmbh (c) v1.0ns", CreateStarCOSPKCS15Behavior }, - { "A.E.T. Europe B.V.", CreateSafeSignBehavior }, - { "Giesecke&Devrient GmbH", CreateStarSignBehavior }, - { "D-TRUST GmbH (C)", CreateDTRUSTBehavior }, - { "Siemens AG (C)", CreateHiPathBehavior }, - { "Technology Nexus", CreateNexusBehavior }, - { "Volkswagen AG", CreateVWBehavior }, - { "", CreatePKCS15Behavior }, // default - { 0, 0 } - }; - - // ------------------------------------------------------------------------ - const TokenExtensionMapEntry TokenExtensionMap[] = - { - { "MDProfileExt", CreateMDProfileExt }, // Minidriver FS Profile Extension - -# if defined(ACT_WIN32) && !defined(ACT_MINGW) - { "EAC 2.01 TA", CreateEACTAwithCAPI }, - -# endif - { 0, 0 } - }; - - // ------------------------------------------------------------------------ - const TokenAuthProtocolMapEntry TokenAuthProtocolMap[] = - { - { "EAC 2.01 PACE", CreateTokenAuthPACE }, - { "EAC 2.01 TA", CreateTokenAuthTA }, - { "EAC 2.01 CA", CreateTokenAuthCA }, - { "BAC", CreateTokenAuthBAC }, - { 0, 0 } - }; - - // ------------------------------------------------------------------------ - const SubsystemMapEntry SubsystemMap[] = - { - { "PCSC", CreatePCSCSystem, CreatePCSCSystemEx }, - { "CTAPI", CreateCTAPISystem, 0 }, - { "PKCS11", CreatePKCS11System, 0 }, - -# if defined(ACT_WIN32) && !defined(ACT_MINGW) - { "CSP", CreateCSPSystem, 0 }, - -# endif - { 0, 0, 0 } - }; - - // ------------------------------------------------------------------------ - const SlotMonitorRegEntry SlotMonitorMap[] = - { - { "PCSC", { CreatePCSCSlotMonitor, CreatePCSCSystemSlotMonitor } }, - { "CTAPI", { CreateSlotMonitor, 0 } }, - { "PKCS11", { CreateSlotMonitor, 0 } }, - -# if defined(ACT_WIN32) && !defined(ACT_MINGW) - { "CSP", { CreateSlotMonitor, 0 } }, - -# endif - { 0, { 0, 0 } } - }; - - // ------------------------------------------------------------------------ - const JCardAppletEntry JCardAppletMap[] = - { - // AID if it is equal to 0 then all AID are able - // function returns true if the Applet can used - // creates an new applet - // number of PIN's Key's Certificate's - // if they are -1 then it will be checked - // if they are biger or equal to 0 they are const - { "D276000098C00000", IsJCProfileApplet, CreateJCProfileApplet, 1, 1, 0 }, - { 0, 0, 0, 0, 0, 0 } - }; -#endif // NO_SMARTCARD - - // ------------------------------------------------------------------------ - // Version: V1R4M4 - const char* GetVersion(); - - // ------------------------------------------------------------------------ - inline void Init(bool bAlwaysInit = false) - { - static bool loaded = false; - if(loaded == true && bAlwaysInit == false) - return; - - KeyReg::Insert(KeyMap); - BlockCipherReg::Insert(BlockCipherMap); - BlockCipherModeReg::Insert(BlockCipherModeMap); - StreamCipherReg::Insert(StreamCipherMap); - HashReg::Insert(HashMap); - EMSAReg::Insert(EMSAMap); - DerivatorReg::Insert(DerivatorMap); - PaddingReg::Insert(PaddingMap); - CertificateReg::Insert(CertificateMap); - CRLReg::Insert(CRLMap); - X509KeyReg::Insert(X509KeyMap); - X509SignReg::Insert(X509SignMap); - X509SignHashReg::Insert(X509SignHashMap); - -#ifndef NO_SMARTCARD - SubsystemReg::Insert(SubsystemMap); - SlotMonitorReg::Insert(SlotMonitorMap); - SCardOSReg::Insert(SCardOSMap); - SCardTokenReg::Insert(SCardTokenMap); - ProfileGeneratorReg::Insert(ProfileGeneratorMap); - PKCS15BehaviorReg::Insert(PKCS15BehaviorMap); - TokenExtensionReg::Insert(TokenExtensionMap); - TokenAuthProtocolReg::Insert(TokenAuthProtocolMap); - JCardAppletReg::Insert(JCardAppletMap); -#endif - CreateFastRNG = CreateFIPS186; - CreateStrongRNG = CreateBBS; - loaded = true; - } - -} // namespace act - -#endif // actInit_h +////////////////////////////////////////////////////////////////////////////////// +// Name: actInit.h +// Product: cv act library +// Purpose: initialize the map entries of the objects +// +// Copyright: (c) 2007 cv cryptovision GmbH +// all rights reserved +// Licence: The conditions for the use of this software are regulated +// in the cv act library licence agreement. +// remarks: +// declare NO_SMARTCARD: no smartcard support required. +////////////////////////////////////////////////////////////////////////////////// + +#ifndef actInit_h +#define actInit_h + +#include "actEnv.h" +#include "actKeyKit.h" +#include "actKeyReg.h" +#include "actBlockCipherKit.h" +#include "actBlockCipherReg.h" +#include "actBlockCipherModeReg.h" +#include "actBlockCipherModeKit.h" +#include "actStreamCipherKit.h" +#include "actStreamCipherReg.h" +#include "actHashKit.h" +#include "actHashReg.h" +#include "actEMSAReg.h" +#include "actEMSAKit.h" +#include "actDerivatorReg.h" +#include "actDerivatorKit.h" +#include "actPaddingReg.h" +#include "actPaddingKit.h" +#include "actCertificateReg.h" +#include "actCertificateKit.h" +#include "actX509KeyReg.h" +#include "actX509SignReg.h" +#include "actX509SignHashReg.h" +#include "actX509Kit.h" +#include "actDefaultRNG.h" +#include "actRNGKit.h" + +#ifndef NO_SMARTCARD +// NOTE: To Enable support for additional smartcards / profiles define: +// ACT_SUPPORT_TCOS_NETKEY30 +# include "actSCardOSReg.h" +# include "actSCardOSKit.h" +# include "actSCardTokenReg.h" +# include "actSCardTokenKit.h" +# include "actSubsystemReg.h" +# include "actSubsystemKit.h" +# include "actSlotMonitorReg.h" +# include "actSlotMonitorKit.h" +# include "actTokenExtensionReg.h" +# include "actTokenExtensionKit.h" +# include "actTokenAuthProtocolReg.h" +# include "actTokenAuthProtocolKit.h" +# include "actJCAppletKit.h" +# include "actJCAppletReg.h" +# include "actPKCS15BehaviorReg.h" +# include "actPKCS15BehaviorKit.h" +# include "actProfileGeneratorReg.h" +# include "actProfileGeneratorKit.h" +#endif // NO_SMARTCARD + +namespace act +{ + // ------------------------------------------------------------------------ + const KeyMapEntry KeyMap[] = + { + { "BlockCipher", CreateBlockCipherKey }, + { "StreamCipher", CreateStreamCipherKey }, + + { "IES", CreateIESKey }, + { "DSA", CreateDSAKey }, + { "RSA", CreateRSAKey }, + { "ECDSA", CreateECDSAKey }, + { "ECGDSA", CreateECGDSAKey }, + + { "DH", CreateDHKey }, + { "ECDH", CreateECDHKey }, + + { "HashMAC", CreateHashMACKey }, + { "CBCMAC", CreateCBCMACKey }, + { "SecretKeyMAC", CreateSecretKeyMACKey }, + { "RetailCFBMAC", CreateRetailCFBMACKey }, + { "iMAC3", Create_iMAC3Key }, // ISO9797-1 M2 Alg 3 MAC8 + { "CMAC", CreateCMACKey }, // NIST 800-38B CMAC + { 0, 0 } + }; + + // ------------------------------------------------------------------------ + const BlockCipherMapEntry BlockCipherMap[] = + { + { "AES", CreateRijndael }, + { "DES", CreateDES }, + { "TripleDES", CreateTripleDES }, + { "CAST128", CreateCAST128 }, + { "BlowFish", CreateBlowFish }, + { "Mars", CreateMars }, + { "Serpent", CreateSerpent }, + { "Rijndael", CreateRijndael }, + { "TwoFish", CreateTwoFish }, + { "RC2", CreateRC2 }, + //{ "RC6", CreateRC6 }, + { 0, 0 } + }; + + // ------------------------------------------------------------------------ + const BlockCipherModeMapEntry BlockCipherModeMap[] = + { + { "ECB", CreateECBMode }, + { "CBC", CreateCBCMode }, + { "CFB", CreateCFBMode }, + { "OFB", CreateOFBMode }, + { "CTR", CreateCTRMode }, + { 0, 0 } + }; + + // ------------------------------------------------------------------------ + const StreamCipherMapEntry StreamCipherMap[] = + { + { "ARC4", CreateARC4 }, + { 0, 0 } + }; + + // ------------------------------------------------------------------------ + const HashMapEntry HashMap[] = + { + { "MD2", CreateMD2 }, + { "MD4", CreateMD4 }, + { "MD5", CreateMD5 }, + { "RIPEMD128", CreateRipemd128 }, + { "RIPEMD160", CreateRipemd160 }, + { "SHA0", CreateSHA0 }, + { "SHA1", CreateSHA1 }, + { "SHA224", CreateSHA224 }, + { "SHA256", CreateSHA256 }, + { "SHA384", CreateSHA384 }, + { "SHA512", CreateSHA512 }, + { "DummyHash", CreateDummyHash }, + { 0, 0 } + }; + + // ------------------------------------------------------------------------ + const EMSAMapEntry EMSAMap[] = + { + { "EMSA1", CreateEMSA1 }, + { "PKCS1V1_5EMSA", CreatePKCS1V1_5EMSA }, + { "TLS_EMSA", CreateTLS_EMSA}, + { "PKCS1_PSS_EMSA", CreatePKCS1_PSS_EMSA }, + { "DummyEMSA", CreateDummyEMSA }, // Used for "Hash on Card" + { 0, 0 } + }; + + // ------------------------------------------------------------------------ + const DerivatorMapEntry DerivatorMap[] = + { + { "KDF1", CreateKDF1 }, // IEEE P1363 KDF1 + { "KDF2", CreateX963KDF }, // IEEE P1363 KDF2 (= X963KDF) + { "X963KDF", CreateX963KDF }, // ANSI X9.63 KDF + { "PBKDF1", CreatePBKDF1 }, // PKCS#5 PBKDF1 + { "PBKDF2", CreatePBKDF2 }, // PKCS#5 PBKDF2 + { "EACKDF", CreateEACKDF }, // EAC 2.01, BSI TR-03110 A.2.3 + { "SessionKDF", CreateEACKDF }, // BSI TR-03111 (= EACKDF) + { 0, 0 } + }; + + // ------------------------------------------------------------------------ + const PaddingMapEntry PaddingMap[] = + { + { "PKCS5", CreatePKCS5Pad }, + { "RSAES", CreatePKCS1V1_5EMEPad }, + { "ISO", CreateOneAndZerosPad }, + { "ISO9796", CreateISO9796Pad }, + { "NOPAD", CreateNoPad }, + { 0, 0 } + }; + + // ------------------------------------------------------------------------ + const CertificateMapEntry CertificateMap[] = + { + { "X509", CreateX509Certificate }, + { "CV", CreateCVCertificate }, + { 0, 0 } + }; + + // ------------------------------------------------------------------------ + const CRLMapEntry CRLMap[] = + { + { "X509", CreateX509CRL }, + { 0, 0 } + }; + + // ------------------------------------------------------------------------ + const X509KeyMapEntry X509KeyMap[] = + { + { "1.2.840.113549.1.1.1", CreateRSAKey, X509ToRSA, RSAToX509 }, + { "2.5.8.1.1", CreateRSAKey, X509ToRSA, RSAToX509 }, + { "1.2.840.10040.4.1", CreateDSAKey, X509ToDSA, DSAToX509 }, + { "1.3.14.3.2.20", CreateDSAKey, X509ToDSA, DSAToX509 }, + { "1.3.14.3.2.12", CreateDSAKey, X509ToDSA, DSAToX509 }, // secude DSA oid + { "1.2.840.10046.2.1", CreateDHKey, X509ToDH, DHToX509 }, + { "1.2.840.10045.2.1", CreateECDSAKey, X509ToECDSA, ECDSAToX509 }, + { "1.2.840.10045.2.1", CreateECDHKey, X509ToECDSA, ECDSAToX509 }, + { 0, 0, 0, 0 } + }; + + // ------------------------------------------------------------------------ + const X509SignMapEntry X509SignMap[] = + { + { CreateRSAKey, RSAGetAlgID, RSASetAlgID }, + { CreateDSAKey, DSAGetAlgID, DSASetAlgID }, + { CreateECDSAKey, ECDSAGetAlgID, ECDSASetAlgID }, + { CreateDHKey, DHGetAlgID, DHSetAlgID }, + { CreateECDHKey, ECDHGetAlgID, ECDHSetAlgID }, + { 0, 0, 0 } + }; + + // ------------------------------------------------------------------------ + const X509SignHashMapEntry X509SignHashMap[] = + { + // RSA + { "1.2.840.113549.1.1.2", "MD2", "RSA" }, // md2WithRSAEncryption + { "1.2.840.113549.1.1.3", "MD4", "RSA" }, // md4WithRSAEncryption + { "1.2.840.113549.1.1.4", "MD5", "RSA" }, // md5WithRSAEncryption + { "1.2.840.113549.1.1.5", "SHA1", "RSA" }, // shaWithRSAEncryption + { "1.3.14.3.2.29", "SHA1", "RSA" }, + { "1.2.840.113549.1.1.11", "SHA256", "RSA" }, // sha256WithRSAEncryption + { "1.2.840.113549.1.1.12", "SHA384", "RSA" }, // sha384WithRSAEncryption + { "1.2.840.113549.1.1.13", "SHA512", "RSA" }, // sha512WithRSAEncryption + { "1.2.840.113549.1.1.14", "SHA224", "RSA" }, // sha224WithRSAEncryption + { "1.3.36.3.3.1.2", "RIPEMD160", "RSA" }, + { "1.3.36.3.3.1.3", "RIPEMD128", "RSA" }, + // DSA + { "1.2.840.10040.4.3", "SHA1", "DSA" }, + { "1.3.14.3.2.28", "SHA1", "DSA" }, + { "1.3.14.3.2.27", "SHA1", "DSA" }, // secude DSA oid + // ECDSA + { "1.2.840.10045.4.1", "SHA1", "ECDSA" }, // ecdsa-with-Sha1 + { "1.2.840.10045.2.1", "SHA1", "ECDSA" }, // ecdsa-with-Sha1 (deprecated) + { "1.2.840.10045.4.3.1", "SHA224", "ECDSA" }, // ecdsa-with-Sha224 + { "1.2.840.10045.4.3.2", "SHA256", "ECDSA" }, // ecdsa-with-Sha256 + { "1.2.840.10045.4.3.3", "SHA384", "ECDSA" }, // ecdsa-with-Sha384 + { "1.2.840.10045.4.3.4", "SHA512", "ECDSA" }, // ecdsa-with-Sha512 + // DH + { "1.3.6.1.5.5.7.6.4", "SHA1", "DH" }, // DH-POP + // ECDH + { "1.2.840.10045.2.1", "SHA1", "ECDH" }, // "ECDH-POP" + { 0, 0, 0 } + }; + +#ifndef NO_SMARTCARD + // ------------------------------------------------------------------------ + const SCardOSMapEntry SCardOSMap[] = + { + // NOTE: Only lower case historical bytes ! + /* + { "0064050a020131809000", CreateTCOS }, // NetKey (TCOS V2R1) + { "00640560020331809000", CreateTCOS }, // NetKey (TCOS V2R3) + { "0064057b020331809000", CreateTCOS }, // NetKey (TCOS V2R?) + { "00640514020231809000", CreateTCOS }, // etrust (TCOS V2R2) + { "00640561020331809000", CreateTCOS }, // TCOS USB Crypt Token + { "0068d276000028ff051e3180009000", CreateMicardOS }, // Micardo P2.1 + { "4d4943323045", CreateMicardo20E }, // Micardo EC 2.0 + { "0068d276000028ff05233180009000", CreateMicardo23E }, // Micardo EC 2.3 + */ + + // ACOS + { "454d56203033202006", CreateACOS_D01 }, // Austria Card ACOS EMV-D01 + { "44492030324d", CreateACOS_D01 }, // Austria Card ACOS EMV-D01 contactless + { "455041000000000228505900000000", CreateACOS_A04 }, // Austria Card ACOS EMV-A04/A05 + { "455041000000000000000000000000", CreateACOS_A04 }, // Austria Card ACOS EMV-A04/A05 + + // CardOS + { "c802", CreateCardOS_M4 }, // CardOS M4.0 siemens profile + { "c803", CreateCardOS_M4 }, // CardOS M4.01 siemens profile + { "c804", CreateCardOS_M4 }, // CardOS M4.01a siemens profile + { "4d346376", CreateCardOS_M4 }, // CardOS M4.01(a) cv profile + { "4d3463765f4d", CreateCardOS_M4_MoC }, // CardOS M4.01_M cv profile + { "4d3463765f45", CreateCardOS_M4_ECC }, // CardOS M4.01_E cv profile + { "c806", CreateCardOS_V4 }, // CardOS V4.2 + { "c807", CreateCardOS_V4 }, // CardOS V4.3 + { "c808", CreateCardOS_V4 }, // CardOS V4.3B + { "c809", CreateCardOS_V4 }, // CardOS V4.2B + { "c80a", CreateCardOS_V4 }, // CardOS V4.2B DI + { "0000c80a3381b100", CreateCardOS_V4 }, // CardOS V4.2B DI contactless + { "c80b", CreateCardOS_V4 }, // CardOS V4.2C + { "c80d", CreateCardOS_V4 }, // CardOS V4.4 + { "56346376", CreateCardOS_V4 }, // CardOS V4.2/4.3/4.3B cv profile + { "563432626376", CreateCardOS_V4 }, // CardOS V4.2b cv profile + { "5634326244496376", CreateCardOS_V4 }, // CardOS V4.2b DI cv profile + { "563432636376", CreateCardOS_V4 }, // CardOS V4.2c cv profile + { "5634346376", CreateCardOS_V4 }, // CardOS V4.4 cv profile + { "563463765f45", CreateCardOS_V4_ECC }, // CardOS V4.3B ECC cv profile + { "006b0508c806012101434e53103180", CreateCardOS_V4 }, // CardOS V4.2 CNS profile, 2004.02.20 + { "006b0508c807012101434e53103180", CreateCardOS_V4 }, // CardOS V4.3 CNS profile, 2004.02.20 + { "006b0508c808012101434e53103180", CreateCardOS_V4 }, // CardOS V4.3B CNS profile, 2004.02.20 + { "006b0508c806011101434e53103180", CreateCardOS_V4 }, // CardOS V4.2 CNS profile, 2005.03.11 + { "006b0508c807011101434e53103180", CreateCardOS_V4 }, // CardOS V4.3 CNS profile, 2005.03.11 + { "006b0508c808011101434e53103180", CreateCardOS_V4 }, // CardOS V4.3B CNS profile, 2005.03.11 + { "006b0508c808011101434e53103180", CreateCardOS_V4 }, // CardOS V4.3B CNS profile, 2005.03.11 + { "4b53776973735369676e", CreateCardOS_V4 }, // CardOS V4.3B/V4.4 ATR by SwissSign + + // STARCOS + //{ "53504b32339000", CreateStarCOS_3_0}, // G&D STARCOS SPK 2.3 + { "80670412b0030300008101", CreateStarCOS_3_0 }, // G&D STARCOS 3.0 (creational state) + { "80670412b0030300008105", CreateStarCOS_3_0 }, // G&D STARCOS 3.0 + { "80670412b003030000", CreateStarCOS_3_0 }, // G&D STARCOS 3.0 contactless + { "80655343010d067394211b8101", CreateStarCOS_3_0 }, // G&D STARCOS 3.1 (creational state) + { "80655343010d067394211b8105", CreateStarCOS_3_0 }, // G&D STARCOS 3.1 + { "0064051eb20031b0739621db019000", CreateStarCOS_3_2 }, // G&D STARCOS 3.2 (creational state) + { "0064051eb20031b0739621db059000", CreateStarCOS_3_2 }, // G&D STARCOS 3.2 + + // TCOS +#ifdef ACT_SUPPORT_TCOS_NETKEY30 + { "00640411030131c073f701d0009000", CreateTCOS_3_0 }, // NetKey (TCOS 3.0) +#endif + // JavaCards + { "8073002113574a544861314a00", CreateJavaCardOS_2_2 }, // G&D SmartCafe Expert 64 (cfg1) + { "8073002113574a544861314700", CreateJavaCardOS_2_2 }, // G&D SmartCafe Expert 64 (cfg2) + { "8073002113574a544861314800", CreateJavaCardOS_2_2 }, // G&D SmartCafe Expert 64 (cfg3) + { "8073002113574a544861314b00", CreateJavaCardOS_2_2 }, // G&D SmartCafe Expert 64 (cfg4) + { "8073002113574a544861314c00", CreateJavaCardOS_2_2 }, // G&D SmartCafe Expert 64 (cfg5) + { "8073002113574a544861314900", CreateJavaCardOS_2_2 }, // G&D SmartCafe Expert 64 (cfg8) + { "404d4f504153530000000000000000", CreateJavaCardOS_2_2 }, // G&D SmartCafe Expert 64 (XMC2) + + { "534653452d43583332322d56180308", CreateJavaCardOS_2_1_1 },// G&D SmartCafe Expert 2.0 + { "0073c84013009000", CreateJavaCardOS_2_2_1 }, // G&D SmartCafe Expert 3.0 / 3.1 / 3.1 contactless + { "4138004133b1020073c840130090", CreateJavaCardOS_2_2_1 }, // G&D SmartCafe Expert 3.1 contactless (SCM SDI010, Firmware V6.28) + { "4138004133b10073c84013009000", CreateJavaCardOS_2_2_1 }, // G&D SmartCafe Expert 3.1 contactless (SCM SDI010, Firmware V6.32) + { "73667465206364313434", CreateJavaCardOS_2_2_1 }, // G&D SmartCafe Expert 3.2 PIV 144 KB + { "736674652D6364303830", CreateJavaCardOS_2_2_1 }, // G&D SmartCafe Expert 3.2 PIV 80 KB + { "73667465", CreateJavaCardOS_2_2_1 }, // G&D SmartCafe Expert 3.2 (sfte) + { "736674652d6e66", CreateJavaCardOS_2_2_1 }, // G&D SmartCafe Expert 3.2 (sfte-nf) + { "73c840130090009b", CreateJavaCardOS_2_2_1 }, // G&D SmartCafe Expert 3.2 USB Token + { "736674652063643038302d6e66", CreateJavaCardOS_2_2_1 }, // G&D SmartCafe Expert 3.2 (sfte cd080-nf) + { "53462d3443432d3031", CreateJavaCardOS_2_2_1 }, // G&D SmartCafe Expert 5.0 + { "53504b323544499000", CreateJavaCardOS_2_2_1 }, // G&D Mobile Security Card 3.x + { "4d5343", CreateJavaCardOS_2_2_1 }, // G&D Mobile Security Card 3.x + + //{ "4a434f503230", CreateJavaCardOS_2_1 }, // JCOP 20 + { "4a434f503231563232", CreateJavaCardOS_2_2_1 }, // JCOP 21 V2.2 + { "4a434f50323156323331", CreateJavaCardOS_2_2_1 }, // JCOP 21 V2.3.1 + { "4a434f503331563231", CreateJavaCardOS_2_1 }, // JCOP 31 V2.1 + { "4a434f503331563232", CreateJavaCardOS_2_2_1 }, // JCOP 31 V2.2 + { "4a434f50333156323331", CreateJavaCardOS_2_2_1 }, // JCOP 31 V2.3.1 + { "4a434f503331563234", CreateJavaCardOS_2_2_1 }, // JCOP 31 V2.4 + //{ "4a434f5033313336474454", CreateJavaCardOS_2_2_1 }, // JCOP 31 36GDT + { "4a434f503431563232", CreateJavaCardOS_2_2_1 }, // JCOP 41 V2.2 / V2.2 contactless + { "4128001133b04a434f5034315632", CreateJavaCardOS_2_2_1 }, // JCOP 41 V2.2 contactless (SCM SDI010, Firmware V6.32) + { "4a434f50343156323231", CreateJavaCardOS_2_2_1 }, // JCOP 41 V2.2.1 + { "4138001133b04a434f5034315632", CreateJavaCardOS_2_2_1 }, // JCOP 41 V2.2.1 contactless + { "4a434f50343156323331", CreateJavaCardOS_2_2_1 }, // JCOP 41 V2.3.1 + { "4a434f50343156323332", CreateJavaCardOS_2_2_1 }, // JCOP 41 V2.3.2 + { "4a434f503431563234", CreateJavaCardOS_2_2_1 }, // JCOP 41 V2.4 + { "4a434f5076323431", CreateJavaCardOS_2_2_2 }, // JCOP v2.4.1 + { "434f50343156323231ff", CreateJavaCardOS_2_2_1 }, // JCOP 41 V2.2.1 (IDptoken 200) + { "4a434f507632343262657461", CreateJavaCardOS_2_2_2 }, // JCOP v2.4.2 beta + { "0073c84000009000", CreateJavaCardOS_2_2_1 }, // JCOP V2.3.2 + + { "4a434f50563231", CreateJavaCardOS_2_1 }, // JCOP V2.1 + { "4a434f50563232", CreateJavaCardOS_2_2_1 }, // JCOP V2.2 + { "4a434f5056323231", CreateJavaCardOS_2_2_1 }, // JCOP V2.2.1 + { "4a434f50563233", CreateJavaCardOS_2_2_1 }, // JCOP V2.3 + { "4a434f5056323331", CreateJavaCardOS_2_2_1 }, // JCOP V2.3.1 + { "4a434f5056323332", CreateJavaCardOS_2_2_1 }, // JCOP V2.3.2 + { "4a434f50563234", CreateJavaCardOS_2_2_1 }, // JCOP V2.4 + { "4a434f5056323431", CreateJavaCardOS_2_2_2 }, // JCOP V2.4.1 + { "4a434f5056323432", CreateJavaCardOS_2_2_2 }, // JCOP V2.4.2 + + { "4a434f5033314d34", CreateJavaCardOS_2_2_1 }, // Austriacard JCOP31M4 + { "4a434f5032315632325f", CreateJavaCardOS_2_2_1 }, // AustriaCard JCOP 21 V2.2, T0, T1 + { "4a434f5033315632325f", CreateJavaCardOS_2_2_1 }, // AustriaCard JCOP 31 V2.2, T0, T1 + { "4a434f5034315632345f", CreateJavaCardOS_2_2_1 }, // AustriaCard JCOP 41 V2.4, T0, T1 + { "4a434f50563234314143", CreateJavaCardOS_2_2_1 }, // AustriaCard JCOP V2.4.1, T0, T1 + + { "5257414e44415f4944", CreateJavaCardOS_2_2_1 }, // AustriaCard JCOP V2.4.1 'RWANDA_ID' + { "44654c61527565", CreateJavaCardOS_2_2_1 }, // AustriaCard JCOP V2.4.1 'DeLaRue' + + { "803180664090a4561b1183019000", CreateJavaCardOS_2_2_1 }, // Infineon jTOP 20ID + + { "80318065b0831148c883009000", CreateJavaCardOS_2_2_1 }, // Gemalto TOP IM GX4 + //{ "80318065b08301029083009000", CreateJavaCardOS_2_2_1 }, // Gemalto I-DENTITY CARD + { "8065b08301017483009000", CreateJavaCardOS_2_1_1 }, // Gemplus GemXpresso Pro R3 + { "8065b08301037483009000", CreateJavaCardOS_2_1_1 }, // Gemplus GemXpresso Pro R3 + //{ "8065a20101013d72d643", CreateJavaCardOS_2_1_1 }, // Gemplus GemXpresso Pro R3 E32 PK + + { "0031c06477e30300829000", CreateJavaCardOS_2_1_1 }, // Oberthur CosmopolIC 64K v5.2D + + { "8059017f4849444a43327300011b", CreateJavaCardOS_2_2_2 }, // HID Crescendo C700 (JC2s) ("Standard JavaCard, T0/1, Platform Default Packages") + { "804f0ca0000003060a001d00000000", CreateJavaCardOS_2_2_2 },// HID Crescendo C700 (JC2s) contactless + + { ACT_ISO7816OS_NAME, CreateISO7816OS }, // use act::ISO7816OS as fallback + { 0, 0 } + }; + + // ------------------------------------------------------------------------ + const SCardTokenMapEntry SCardTokenMap[] = + { + // Passport + { IsEPAProfile, CreateEPAProfile }, + + // PKCS#15 + { IsM4PKCS15Profile, CreateM4PKCS15Profile }, + { IsV4PKCS15ECProfile, CreateV4PKCS15ECProfile }, + { IsV4PKCS15Profile, CreateV4PKCS15Profile }, + { IsJCPKCS15ECProfile, CreateJCPKCS15ECProfile }, + { IsJCPKCS15Profile, CreateJCPKCS15Profile }, + { IsACOSPKCS15Profile, CreateACOSPKCS15Profile }, + { IsStarCOSPKCS15Profile, CreateStarCOSPKCS15Profile }, + + // ACOS + { IsACOScvProfile, CreateACOScvProfile }, + + // CardOS + { IsM4cvMoCProfile, CreateM4cvMoCProfile }, + { IsM4cvECProfile, CreateM4cvECProfile }, + { IsV4cvECProfile, CreateV4cvECProfile }, + { IsV4cvProfile, CreateV4cvProfile }, + { IsM4cvProfile, CreateM4cvProfile }, + // { IsV4CNSProfile, CreateV4CNSProfile }, + + // TCOS +#ifdef ACT_SUPPORT_TCOS_NETKEY30 + { IsNetKey30Token, CreateNetKey30Token }, +#endif + + // JavaCardOS + { IsJCProfile, CreateJCProfile }, + // { IsJavaCardAppletManager, CreateJavaCardAppletManager }, + + /* + { IsStarCOSToken, CreateStarCOSToken }, + { IsNetKey2000Token, CreateNetKey2000Token }, + { IsNetKeyE4Token, CreateNetKeyE4Token }, + { IsNetKeyPKSToken, CreateNetKeyPKSToken }, + { IsNetKeyOldToken, CreateNetKeyOldToken }, + { IseTrustToken, CreateeTrustToken }, + { IsMicardoECToken, CreateMicardoECToken }, + { IsM4SiemensProfile, CreateM4SiemensProfile }, + */ + { 0, 0 } + }; + + // ------------------------------------------------------------------------ + const ProfileGeneratorMapEntry ProfileGeneratorMap[] = + { + { "JavaCardOS", CreateJCPKCS15Generator }, + { 0, 0 } + }; + + // ------------------------------------------------------------------------ + const PKCS15BehaviorMapEntry PKCS15BehaviorMap[] = + { + { "cv cryptovision gmbh (c) v1.0j", CreateJCPKCS15Behavior }, + { "cv cryptovision gmbh (c) v1.0jEAC", CreateJCPKCS15mEACBehavior }, + { "cv cryptovision gmbh (c) v1.0n", CreateV4PKCS15Behavior }, + { "cv cryptovision gmbh (c) v1.0na", CreateACOSPKCS15Behavior }, + { "cv cryptovision gmbh (c) v1.0ns", CreateStarCOSPKCS15Behavior }, + { "A.E.T. Europe B.V.", CreateSafeSignBehavior }, + { "Giesecke&Devrient GmbH", CreateStarSignBehavior }, + { "D-TRUST GmbH (C)", CreateDTRUSTBehavior }, + { "Siemens AG (C)", CreateHiPathBehavior }, + { "Technology Nexus", CreateNexusBehavior }, + { "Volkswagen AG", CreateVWBehavior }, + { "", CreatePKCS15Behavior }, // default + { 0, 0 } + }; + + // ------------------------------------------------------------------------ + const TokenExtensionMapEntry TokenExtensionMap[] = + { + { "MDProfileExt", CreateMDProfileExt }, // Minidriver FS Profile Extension + +# if defined(ACT_WIN32) && !defined(ACT_MINGW) + { "EAC 2.01 TA", CreateEACTAwithCAPI }, + +# endif + { 0, 0 } + }; + + // ------------------------------------------------------------------------ + const TokenAuthProtocolMapEntry TokenAuthProtocolMap[] = + { + { "EAC 2.01 PACE", CreateTokenAuthPACE }, + { "EAC 2.01 TA", CreateTokenAuthTA }, + { "EAC 2.01 CA", CreateTokenAuthCA }, + { "BAC", CreateTokenAuthBAC }, + { 0, 0 } + }; + + // ------------------------------------------------------------------------ + const SubsystemMapEntry SubsystemMap[] = + { + { "PCSC", CreatePCSCSystem, CreatePCSCSystemEx }, + { "CTAPI", CreateCTAPISystem, 0 }, + { "PKCS11", CreatePKCS11System, 0 }, + +# if defined(ACT_WIN32) && !defined(ACT_MINGW) + { "CSP", CreateCSPSystem, 0 }, + +# endif + { 0, 0, 0 } + }; + + // ------------------------------------------------------------------------ + const SlotMonitorRegEntry SlotMonitorMap[] = + { + { "PCSC", { CreatePCSCSlotMonitor, CreatePCSCSystemSlotMonitor } }, + { "CTAPI", { CreateSlotMonitor, 0 } }, + { "PKCS11", { CreateSlotMonitor, 0 } }, + +# if defined(ACT_WIN32) && !defined(ACT_MINGW) + { "CSP", { CreateSlotMonitor, 0 } }, + +# endif + { 0, { 0, 0 } } + }; + + // ------------------------------------------------------------------------ + const JCardAppletEntry JCardAppletMap[] = + { + // AID if it is equal to 0 then all AID are able + // function returns true if the Applet can used + // creates an new applet + // number of PIN's Key's Certificate's + // if they are -1 then it will be checked + // if they are biger or equal to 0 they are const + { "D276000098C00000", IsJCProfileApplet, CreateJCProfileApplet, 1, 1, 0 }, + { 0, 0, 0, 0, 0, 0 } + }; +#endif // NO_SMARTCARD + + // ------------------------------------------------------------------------ + // Version: V1R4M4 + const char* GetVersion(); + + // ------------------------------------------------------------------------ + inline void Init(bool bAlwaysInit = false) + { + static bool loaded = false; + if(loaded == true && bAlwaysInit == false) + return; + + KeyReg::Insert(KeyMap); + BlockCipherReg::Insert(BlockCipherMap); + BlockCipherModeReg::Insert(BlockCipherModeMap); + StreamCipherReg::Insert(StreamCipherMap); + HashReg::Insert(HashMap); + EMSAReg::Insert(EMSAMap); + DerivatorReg::Insert(DerivatorMap); + PaddingReg::Insert(PaddingMap); + CertificateReg::Insert(CertificateMap); + CRLReg::Insert(CRLMap); + X509KeyReg::Insert(X509KeyMap); + X509SignReg::Insert(X509SignMap); + X509SignHashReg::Insert(X509SignHashMap); + +#ifndef NO_SMARTCARD + SubsystemReg::Insert(SubsystemMap); + SlotMonitorReg::Insert(SlotMonitorMap); + SCardOSReg::Insert(SCardOSMap); + SCardTokenReg::Insert(SCardTokenMap); + ProfileGeneratorReg::Insert(ProfileGeneratorMap); + PKCS15BehaviorReg::Insert(PKCS15BehaviorMap); + TokenExtensionReg::Insert(TokenExtensionMap); + TokenAuthProtocolReg::Insert(TokenAuthProtocolMap); + JCardAppletReg::Insert(JCardAppletMap); +#endif + CreateFastRNG = CreateFIPS186; + CreateStrongRNG = CreateBBS; + loaded = true; + } + +} // namespace act + +#endif // actInit_h diff --git a/actlibrary/MacOSX-10.4-ppc/Release/include/actJCAppletKit.h b/actlibrary/include/actJCAppletKit.h similarity index 96% rename from actlibrary/MacOSX-10.4-ppc/Release/include/actJCAppletKit.h rename to actlibrary/include/actJCAppletKit.h index 0d48e6d..bb0ab7a 100644 --- a/actlibrary/MacOSX-10.4-ppc/Release/include/actJCAppletKit.h +++ b/actlibrary/include/actJCAppletKit.h @@ -1,30 +1,30 @@ -// --------------------------------------------------------------------------- -// Name: actAppletKit.h -// Product: cv act library -// Purpose: registry for factory functions to create JavaCard Applet -// -// Copyright: (c) 2002 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -// -// Autor: -// Date: 02/10/2003 -// --------------------------------------------------------------------------- - -#ifndef ACT_AppletKit_h -#define ACT_AppletKit_h - -#include "actBlob.h" - -namespace act -{ - class IToken; - class JavaCardOS; - - bool IsJCProfileApplet(JavaCardOS* os, const Blob& aid); - IToken* CreateJCProfileApplet(JavaCardOS* os, const Blob& aid); - -} // namespace act - -#endif // ACT_AppletKit_h +// --------------------------------------------------------------------------- +// Name: actAppletKit.h +// Product: cv act library +// Purpose: registry for factory functions to create JavaCard Applet +// +// Copyright: (c) 2002 cv cryptovision GmbH +// all rights reserved +// Licence: The conditions for the use of this software are regulated +// in the cv act library licence agreement. +// +// Autor: +// Date: 02/10/2003 +// --------------------------------------------------------------------------- + +#ifndef ACT_AppletKit_h +#define ACT_AppletKit_h + +#include "actBlob.h" + +namespace act +{ + class IToken; + class JavaCardOS; + + bool IsJCProfileApplet(JavaCardOS* os, const Blob& aid); + IToken* CreateJCProfileApplet(JavaCardOS* os, const Blob& aid); + +} // namespace act + +#endif // ACT_AppletKit_h diff --git a/actlibrary/MacOSX-10.6-x86_64/Release/include/actJCAppletReg.h b/actlibrary/include/actJCAppletReg.h similarity index 96% rename from actlibrary/MacOSX-10.6-x86_64/Release/include/actJCAppletReg.h rename to actlibrary/include/actJCAppletReg.h index a8dfa8f..6e3e04b 100644 --- a/actlibrary/MacOSX-10.6-x86_64/Release/include/actJCAppletReg.h +++ b/actlibrary/include/actJCAppletReg.h @@ -1,62 +1,62 @@ -// --------------------------------------------------------------------------- -// Name: actAppletReg.h -// Product: cv act library -// Purpose: registry for factory functions to create JavaCardApplet object -// -// Copyright: (c) 2002 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -// -// Autor: -// Date: 02/10/2003 -// --------------------------------------------------------------------------- - -#ifndef ACT_AppletReg_h -#define ACT_AppletReg_h - -#ifdef _MSC_VER -#pragma warning (disable:4786) -#endif - -namespace act -{ - class JavaCardOS; - class IToken; - class Blob; - - typedef IToken* (*CreateJCardAppletPtr)(JavaCardOS*, const Blob& aid); - typedef bool (*CheckJCardAppletPtr)(JavaCardOS*, const Blob& aid); - - struct JCardAppletEntry - { - const char* hexid; - CheckJCardAppletPtr CheckPtr; - CreateJCardAppletPtr CreatePtr; - int keys; - int certs; - int auth_objs; - }; - - struct JCardAppletInfoEntry - { - int keys; - int certs; - int auth_objs; - }; - - class JCardAppletReg - { - public: - static IToken* CreateJCardApplet(JavaCardOS* os, const Blob& aid); - static JCardAppletInfoEntry GetJCardAppletInfo(JavaCardOS* os, const Blob& aid); - static bool IsJCardApplet(JavaCardOS* os, const Blob& aid); - - static void Insert(const JCardAppletEntry* entry); - static void Insert(const char* id, CheckJCardAppletPtr checkptr, CreateJCardAppletPtr createptr, - int keys = -1, int auth_objs = -1, int certs = -1); - }; - -} // namespace act - -#endif // ACT_AppletReg_h +// --------------------------------------------------------------------------- +// Name: actAppletReg.h +// Product: cv act library +// Purpose: registry for factory functions to create JavaCardApplet object +// +// Copyright: (c) 2002 cv cryptovision GmbH +// all rights reserved +// Licence: The conditions for the use of this software are regulated +// in the cv act library licence agreement. +// +// Autor: +// Date: 02/10/2003 +// --------------------------------------------------------------------------- + +#ifndef ACT_AppletReg_h +#define ACT_AppletReg_h + +#ifdef _MSC_VER +#pragma warning (disable:4786) +#endif + +namespace act +{ + class JavaCardOS; + class IToken; + class Blob; + + typedef IToken* (*CreateJCardAppletPtr)(JavaCardOS*, const Blob& aid); + typedef bool (*CheckJCardAppletPtr)(JavaCardOS*, const Blob& aid); + + struct JCardAppletEntry + { + const char* hexid; + CheckJCardAppletPtr CheckPtr; + CreateJCardAppletPtr CreatePtr; + int keys; + int certs; + int auth_objs; + }; + + struct JCardAppletInfoEntry + { + int keys; + int certs; + int auth_objs; + }; + + class JCardAppletReg + { + public: + static IToken* CreateJCardApplet(JavaCardOS* os, const Blob& aid); + static JCardAppletInfoEntry GetJCardAppletInfo(JavaCardOS* os, const Blob& aid); + static bool IsJCardApplet(JavaCardOS* os, const Blob& aid); + + static void Insert(const JCardAppletEntry* entry); + static void Insert(const char* id, CheckJCardAppletPtr checkptr, CreateJCardAppletPtr createptr, + int keys = -1, int auth_objs = -1, int certs = -1); + }; + +} // namespace act + +#endif // ACT_AppletReg_h diff --git a/actlibrary/MacOSX-10.4-ppc/Release/include/actJCSecureChannelReg.h b/actlibrary/include/actJCSecureChannelReg.h similarity index 95% rename from actlibrary/MacOSX-10.4-ppc/Release/include/actJCSecureChannelReg.h rename to actlibrary/include/actJCSecureChannelReg.h index 1eb4b32..54e5d03 100644 --- a/actlibrary/MacOSX-10.4-ppc/Release/include/actJCSecureChannelReg.h +++ b/actlibrary/include/actJCSecureChannelReg.h @@ -1,43 +1,43 @@ -//----------------------------------------------------------------------------- -// Name: actJCSecureChannelReg.h -// Product: cv act library -// Purpose: -// -// Copyright: (c) 2003 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for use of this software are regulated -// in the cv act libary licence agreement. -// -// Autor: -// Data: 08.10.2003 15:53:14 -//----------------------------------------------------------------------------- - -#ifndef __ACTJCSECURECHANNELREG_H__ -#define __ACTJCSECURECHANNELREG_H__ - -namespace act -{ - class Blob; - - struct JCSecureChannelEntry { - const char* hexvalue; - }; - - - class JCardSecureChannelReg - { - public: - static Blob GetValue(int i); - static int GetNumber(); - - - static void Insert(const char* hexvalue); - static void Insert(const JCSecureChannelEntry* entry); - - }; - -} - - - -#endif //__ACTJCSECURECHANNELREG_H__ +//----------------------------------------------------------------------------- +// Name: actJCSecureChannelReg.h +// Product: cv act library +// Purpose: +// +// Copyright: (c) 2003 cv cryptovision GmbH +// all rights reserved +// Licence: The conditions for use of this software are regulated +// in the cv act libary licence agreement. +// +// Autor: +// Data: 08.10.2003 15:53:14 +//----------------------------------------------------------------------------- + +#ifndef __ACTJCSECURECHANNELREG_H__ +#define __ACTJCSECURECHANNELREG_H__ + +namespace act +{ + class Blob; + + struct JCSecureChannelEntry { + const char* hexvalue; + }; + + + class JCardSecureChannelReg + { + public: + static Blob GetValue(int i); + static int GetNumber(); + + + static void Insert(const char* hexvalue); + static void Insert(const JCSecureChannelEntry* entry); + + }; + +} + + + +#endif //__ACTJCSECURECHANNELREG_H__ diff --git a/actlibrary/MacOSX-10.6-x86_64/Release/include/actKey.h b/actlibrary/include/actKey.h similarity index 96% rename from actlibrary/MacOSX-10.6-x86_64/Release/include/actKey.h rename to actlibrary/include/actKey.h index 5030c0c..8a1fd3c 100644 --- a/actlibrary/MacOSX-10.6-x86_64/Release/include/actKey.h +++ b/actlibrary/include/actKey.h @@ -1,82 +1,82 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actKey.h -// Product: cv act library -// Purpose: The class Key manages information relevant to keys (e.g. -// domain parameters or the key itself). In the case of symmetric -// encryption only a (the) secret key is generated. In the case of -// of asymetric encryption a private and a public key are generated. -// This handle allows a universal approach for different families of -// algorithms. -// -// -// Copyright: (c) 2000 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_Key_h -#define ACT_Key_h - -#include "actBasics.h" -#include "actBlob.h" - -namespace act -{ - class IRNGAlg; - class IAlgorithm; - class IKey; - class ICertificate; - - class Key - { - public: - Key(); - Key(const Key& key); - Key(IKey* keyptr); - Key(const Blob& keyblob); - Key(const ICertificate* cert); - Key(const char* keytype); - - void Import(const Blob& keyblob); - void Export(Blob& keyblob, export_t type = DEFAULT) const; - - void SetParam(paramid_t id, const Blob& blob); - void SetParam(paramid_t id, int val); - void SetParam(paramid_t id, const char* cstr); - - int GetParam(paramid_t id) const; - void GetParam(paramid_t id, Blob& blob) const; - - void Generate(IAlgorithm* prng = 0); - void Derive(const Blob& data, const Blob& salt = Blob()); - - IAlgorithm* CreateAlgorithm(mode_t Mode) const; - IAlgorithm* CreateAlgorithm(mode_t Mode, const Blob& data) const; - - IKey* GetPointer(); - const IKey* GetPointer() const; - operator IKey*(); - operator const IKey*() const; - - IKey* ReleasePointer(); - - template - inline KeyTypeT* As() { return static_cast(GetPointer()); } - - template - inline const KeyTypeT* As() const { return static_cast(GetPointer()); } - - Key& operator=(const Key& key); - Key& Reset(IKey* key); - Key& Required(const char* where = 0); - - ~Key(); - - private: - IKey *mKey; - }; - -} // namespace act - -#endif // ACT_Key_h +////////////////////////////////////////////////////////////////////////////////// +// Name: actKey.h +// Product: cv act library +// Purpose: The class Key manages information relevant to keys (e.g. +// domain parameters or the key itself). In the case of symmetric +// encryption only a (the) secret key is generated. In the case of +// of asymetric encryption a private and a public key are generated. +// This handle allows a universal approach for different families of +// algorithms. +// +// +// Copyright: (c) 2000 cv cryptovision GmbH +// all rights reserved +// Licence: The conditions for the use of this software are regulated +// in the cv act library licence agreement. +////////////////////////////////////////////////////////////////////////////////// + +#ifndef ACT_Key_h +#define ACT_Key_h + +#include "actBasics.h" +#include "actBlob.h" + +namespace act +{ + class IRNGAlg; + class IAlgorithm; + class IKey; + class ICertificate; + + class Key + { + public: + Key(); + Key(const Key& key); + Key(IKey* keyptr); + Key(const Blob& keyblob); + Key(const ICertificate* cert); + Key(const char* keytype); + + void Import(const Blob& keyblob); + void Export(Blob& keyblob, export_t type = DEFAULT) const; + + void SetParam(paramid_t id, const Blob& blob); + void SetParam(paramid_t id, int val); + void SetParam(paramid_t id, const char* cstr); + + int GetParam(paramid_t id) const; + void GetParam(paramid_t id, Blob& blob) const; + + void Generate(IAlgorithm* prng = 0); + void Derive(const Blob& data, const Blob& salt = Blob()); + + IAlgorithm* CreateAlgorithm(mode_t Mode) const; + IAlgorithm* CreateAlgorithm(mode_t Mode, const Blob& data) const; + + IKey* GetPointer(); + const IKey* GetPointer() const; + operator IKey*(); + operator const IKey*() const; + + IKey* ReleasePointer(); + + template + inline KeyTypeT* As() { return static_cast(GetPointer()); } + + template + inline const KeyTypeT* As() const { return static_cast(GetPointer()); } + + Key& operator=(const Key& key); + Key& Reset(IKey* key); + Key& Required(const char* where = 0); + + ~Key(); + + private: + IKey *mKey; + }; + +} // namespace act + +#endif // ACT_Key_h diff --git a/actlibrary/MacOSX-10.4-ppc/Release/include/actKeyKit.h b/actlibrary/include/actKeyKit.h similarity index 95% rename from actlibrary/MacOSX-10.4-ppc/Release/include/actKeyKit.h rename to actlibrary/include/actKeyKit.h index e8a7730..4255da6 100644 --- a/actlibrary/MacOSX-10.4-ppc/Release/include/actKeyKit.h +++ b/actlibrary/include/actKeyKit.h @@ -1,43 +1,43 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actKeyKit.h -// Product: cv act library -// Purpose: declaration of all factory functions -// -// Copyright: (c) 2000 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_KeyKit_h -#define ACT_KeyKit_h - -namespace act -{ - class IKey; - - IKey* CreateBlockCipherKey(); - - IKey* CreateStreamCipherKey(); - - IKey* CreateHashMACKey(); - IKey* CreateCBCMACKey(); - IKey* CreateSecretKeyMACKey(); - IKey* CreateRetailCFBMACKey(); - IKey* Create_iMAC3Key(); - IKey* CreateCMACKey(); - - IKey* CreateRSAKey(); - - IKey* CreateDSAKey(); - IKey* CreateECDSAKey(); - IKey* CreateECGDSAKey(); - - IKey* CreateDHKey(); - IKey* CreateECDHKey(); - - IKey* CreateIESKey(); - -} // namespace act - -#endif // ACT_KeyKit_h +////////////////////////////////////////////////////////////////////////////////// +// Name: actKeyKit.h +// Product: cv act library +// Purpose: declaration of all factory functions +// +// Copyright: (c) 2000 cv cryptovision GmbH +// all rights reserved +// Licence: The conditions for the use of this software are regulated +// in the cv act library licence agreement. +////////////////////////////////////////////////////////////////////////////////// + +#ifndef ACT_KeyKit_h +#define ACT_KeyKit_h + +namespace act +{ + class IKey; + + IKey* CreateBlockCipherKey(); + + IKey* CreateStreamCipherKey(); + + IKey* CreateHashMACKey(); + IKey* CreateCBCMACKey(); + IKey* CreateSecretKeyMACKey(); + IKey* CreateRetailCFBMACKey(); + IKey* Create_iMAC3Key(); + IKey* CreateCMACKey(); + + IKey* CreateRSAKey(); + + IKey* CreateDSAKey(); + IKey* CreateECDSAKey(); + IKey* CreateECGDSAKey(); + + IKey* CreateDHKey(); + IKey* CreateECDHKey(); + + IKey* CreateIESKey(); + +} // namespace act + +#endif // ACT_KeyKit_h diff --git a/actlibrary/MacOSX-10.4-ppc/Release/include/actKeyReg.h b/actlibrary/include/actKeyReg.h similarity index 96% rename from actlibrary/MacOSX-10.4-ppc/Release/include/actKeyReg.h rename to actlibrary/include/actKeyReg.h index 14caa8c..caa67ef 100644 --- a/actlibrary/MacOSX-10.4-ppc/Release/include/actKeyReg.h +++ b/actlibrary/include/actKeyReg.h @@ -1,40 +1,40 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actKeyReg.h -// Product: cv act library -// Purpose: registry for factory functions in actKeyKit.h -// -// Copyright: (c) 2000 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_KeyReg_h -#define ACT_KeyReg_h - -namespace act -{ - class IKey; - - typedef IKey* (*CreateKeyPtr)(); - - struct KeyMapEntry - { - const char* Name; - CreateKeyPtr CreatePtr; - }; - - class KeyReg - { - public: - static IKey* CreateKey(const char* name); - static CreateKeyPtr GetCreatePointer(const char* name); - static const char* GetName(void* createptr); - static const char* GetNextName(const char* name); - static void Insert(const char* name, CreateKeyPtr createptr); - static void Insert(const KeyMapEntry* keymap); - }; - -} // namespace act - -#endif // ACT_KeyReg_h +////////////////////////////////////////////////////////////////////////////////// +// Name: actKeyReg.h +// Product: cv act library +// Purpose: registry for factory functions in actKeyKit.h +// +// Copyright: (c) 2000 cv cryptovision GmbH +// all rights reserved +// Licence: The conditions for the use of this software are regulated +// in the cv act library licence agreement. +////////////////////////////////////////////////////////////////////////////////// + +#ifndef ACT_KeyReg_h +#define ACT_KeyReg_h + +namespace act +{ + class IKey; + + typedef IKey* (*CreateKeyPtr)(); + + struct KeyMapEntry + { + const char* Name; + CreateKeyPtr CreatePtr; + }; + + class KeyReg + { + public: + static IKey* CreateKey(const char* name); + static CreateKeyPtr GetCreatePointer(const char* name); + static const char* GetName(void* createptr); + static const char* GetNextName(const char* name); + static void Insert(const char* name, CreateKeyPtr createptr); + static void Insert(const KeyMapEntry* keymap); + }; + +} // namespace act + +#endif // ACT_KeyReg_h diff --git a/actlibrary/MacOSX-10.5-x86_64/Release/include/actLogger.h b/actlibrary/include/actLogger.h similarity index 97% rename from actlibrary/MacOSX-10.5-x86_64/Release/include/actLogger.h rename to actlibrary/include/actLogger.h index 103b1ed..9bfd3d6 100644 --- a/actlibrary/MacOSX-10.5-x86_64/Release/include/actLogger.h +++ b/actlibrary/include/actLogger.h @@ -1,110 +1,110 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actLogger.h -// Product: cv act library -// Purpose: Logger -// -// Copyright: (c) 2000-2001 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_Logger_h -#define ACT_Logger_h - -#include "actDebug.h" -#include "actBlob.h" - -#include "SyncObject.h" - -// for convenience: -#ifdef _MSC_VER -# define ACT_SNPRINTF _snprintf -#else -# include -# define ACT_SNPRINTF snprintf -#endif - -// -// MTE [11/1/2006]: Added addtional accessing macros. -// NOTE: Redefine to use another Logger. -#define ACT_LOGGER(x) act::Logger::x - -// -// MTE [11/1/2006]: Added to replace direct usage of ACT_LOGGER(LogInit)(). -#define ACT_LOGISENABLED() (ACT_DEBUG != 0 || ACT_LOGGER(LogInit)()) - -// -// MTE [11/1/2006]: Changed to use ACT_LOGISENABLED(). -#define ACT_LOGINFO(info) { if(ACT_LOGISENABLED()) ACT_LOGGER(Log)(ACT_LOGGER(LEVEL_INFO), info); } -#define ACT_LOGWARN(warn) { if(ACT_LOGISENABLED()) ACT_LOGGER(Log)(ACT_LOGGER(LEVEL_WARN), warn); } -#define ACT_LOGERROR(error) { if(ACT_LOGISENABLED()) ACT_LOGGER(Log)(ACT_LOGGER(LEVEL_ERROR), error); } -#define ACT_LOGEXCEPTION(e) { if(ACT_LOGISENABLED()) { char buf[1024]; ACT_SNPRINTF(buf, 1024, "Exception:\t '%s' in '%s'", e.what(), e.where()); ACT_LOGERROR(buf) }} - -#define ACT_LOGINFODATA(info, data) { if(ACT_LOGISENABLED()) ACT_LOGGER(Log)(ACT_LOGGER(LEVEL_INFO), info, data); } -#define ACT_LOGWARNDATA(warn, data) { if(ACT_LOGISENABLED()) ACT_LOGGER(Log)(ACT_LOGGER(LEVEL_WARN), warn, data); } -#define ACT_LOGERRORDATA(error, data) { if(ACT_LOGISENABLED()) ACT_LOGGER(Log)(ACT_LOGGER(LEVEL_ERROR), error, data); } -#define ACT_LOGBLOB(blob) { if(ACT_LOGISENABLED()) ACT_LOGGER(Log)(ACT_LOGGER(LEVEL_INFO), #blob, blob); } - -#define ACT_LOGVALUE(name, value, format) { if(ACT_LOGISENABLED()) { char buf[256]; ACT_SNPRINTF(buf, 256, name " :\t " format, value); ACT_LOGINFO(buf) }} - -#define ACT_LOGINT(value) ACT_LOGVALUE(#value, int(value), "%i") -#define ACT_LOGHEX(value) ACT_LOGVALUE(#value, act::ulong(value), "0x%08x") -#define ACT_LOGSTRING(value) ACT_LOGVALUE(#value, value, "%s") - -#define ACT_LOGNAMEDINT(name, value) ACT_LOGVALUE(name, int(value), "%i") -#define ACT_LOGNAMEDHEX(name, value) ACT_LOGVALUE(name, act::ulong(value), "0x%08x") -#define ACT_LOGNAMEDSTRING(name, value) ACT_LOGVALUE(name, value, "%s") - -#ifdef WIN32 -#define ACT_LOGPTR(value) ACT_LOGINT(value) -#else -#define ACT_LOGPTR(value) ACT_LOGVALUE(#value, value, "%lp") -#endif - -// TODO: MTE: What about this "nice" construct ? -#define ACT_LOGPOINTER(p) { if(ACT_LOGISENABLED()) { if(p != 0) ACT_LOGINT(*p) else ACT_LOGHEX(p) }} -#define ACT_LOGISNULL(p) { if(ACT_LOGISENABLED()) { char buf[256]; if(p != 0) ACT_SNPRINTF(buf, 256, #p " :\t *"); else ACT_SNPRINTF(buf, 256, #p " :\t 0"); ACT_LOGINFO(buf) }} - - -namespace act -{ - class Logger - { - public: - enum Levels - { - LEVEL_OFF = 0, - LEVEL_ERROR = 30, - LEVEL_WARNING = 50, - LEVEL_WARN = LEVEL_WARNING, - LEVEL_INFO = 80, - LEVEL_MAX = 99 - }; - - static void SetLogger(Logger* pLogger); - static void FreeLogger(); - static void Log(short level, const char* msg); - static void Log(short level, const Blob& blobmsg); - static void Log(short level, const char* msg, const Blob& blobmsg); - static void SetLoglevel(short level); - static bool LogInit() - { - return(s_pLogger != 0 ? true : false); - } - - protected: - Logger(){} - virtual ~Logger(){} - virtual void doLog(short level, const char* msg) = 0; - virtual void doSetLoglevel(short level) = 0; - - private: - static Logger* s_pLogger; - static SyncObject m_sync; - }; - -} // namespace act - -#endif // ACT_Logger_h - +////////////////////////////////////////////////////////////////////////////////// +// Name: actLogger.h +// Product: cv act library +// Purpose: Logger +// +// Copyright: (c) 2000-2001 cv cryptovision GmbH +// all rights reserved +// Licence: The conditions for the use of this software are regulated +// in the cv act library licence agreement. +////////////////////////////////////////////////////////////////////////////////// + +#ifndef ACT_Logger_h +#define ACT_Logger_h + +#include "actDebug.h" +#include "actBlob.h" + +#include "SyncObject.h" + +// for convenience: +#ifdef _MSC_VER +# define ACT_SNPRINTF _snprintf +#else +# include +# define ACT_SNPRINTF snprintf +#endif + +// +// MTE [11/1/2006]: Added addtional accessing macros. +// NOTE: Redefine to use another Logger. +#define ACT_LOGGER(x) act::Logger::x + +// +// MTE [11/1/2006]: Added to replace direct usage of ACT_LOGGER(LogInit)(). +#define ACT_LOGISENABLED() (ACT_DEBUG != 0 || ACT_LOGGER(LogInit)()) + +// +// MTE [11/1/2006]: Changed to use ACT_LOGISENABLED(). +#define ACT_LOGINFO(info) { if(ACT_LOGISENABLED()) ACT_LOGGER(Log)(ACT_LOGGER(LEVEL_INFO), info); } +#define ACT_LOGWARN(warn) { if(ACT_LOGISENABLED()) ACT_LOGGER(Log)(ACT_LOGGER(LEVEL_WARN), warn); } +#define ACT_LOGERROR(error) { if(ACT_LOGISENABLED()) ACT_LOGGER(Log)(ACT_LOGGER(LEVEL_ERROR), error); } +#define ACT_LOGEXCEPTION(e) { if(ACT_LOGISENABLED()) { char buf[1024]; ACT_SNPRINTF(buf, 1024, "Exception:\t '%s' in '%s'", e.what(), e.where()); ACT_LOGERROR(buf) }} + +#define ACT_LOGINFODATA(info, data) { if(ACT_LOGISENABLED()) ACT_LOGGER(Log)(ACT_LOGGER(LEVEL_INFO), info, data); } +#define ACT_LOGWARNDATA(warn, data) { if(ACT_LOGISENABLED()) ACT_LOGGER(Log)(ACT_LOGGER(LEVEL_WARN), warn, data); } +#define ACT_LOGERRORDATA(error, data) { if(ACT_LOGISENABLED()) ACT_LOGGER(Log)(ACT_LOGGER(LEVEL_ERROR), error, data); } +#define ACT_LOGBLOB(blob) { if(ACT_LOGISENABLED()) ACT_LOGGER(Log)(ACT_LOGGER(LEVEL_INFO), #blob, blob); } + +#define ACT_LOGVALUE(name, value, format) { if(ACT_LOGISENABLED()) { char buf[256]; ACT_SNPRINTF(buf, 256, name " :\t " format, value); ACT_LOGINFO(buf) }} + +#define ACT_LOGINT(value) ACT_LOGVALUE(#value, int(value), "%i") +#define ACT_LOGHEX(value) ACT_LOGVALUE(#value, act::ulong(value), "0x%08x") +#define ACT_LOGSTRING(value) ACT_LOGVALUE(#value, value, "%s") + +#define ACT_LOGNAMEDINT(name, value) ACT_LOGVALUE(name, int(value), "%i") +#define ACT_LOGNAMEDHEX(name, value) ACT_LOGVALUE(name, act::ulong(value), "0x%08x") +#define ACT_LOGNAMEDSTRING(name, value) ACT_LOGVALUE(name, value, "%s") + +#ifdef WIN32 +#define ACT_LOGPTR(value) ACT_LOGINT(value) +#else +#define ACT_LOGPTR(value) ACT_LOGVALUE(#value, value, "%lp") +#endif + +// TODO: MTE: What about this "nice" construct ? +#define ACT_LOGPOINTER(p) { if(ACT_LOGISENABLED()) { if(p != 0) ACT_LOGINT(*p) else ACT_LOGHEX(p) }} +#define ACT_LOGISNULL(p) { if(ACT_LOGISENABLED()) { char buf[256]; if(p != 0) ACT_SNPRINTF(buf, 256, #p " :\t *"); else ACT_SNPRINTF(buf, 256, #p " :\t 0"); ACT_LOGINFO(buf) }} + + +namespace act +{ + class Logger + { + public: + enum Levels + { + LEVEL_OFF = 0, + LEVEL_ERROR = 30, + LEVEL_WARNING = 50, + LEVEL_WARN = LEVEL_WARNING, + LEVEL_INFO = 80, + LEVEL_MAX = 99 + }; + + static void SetLogger(Logger* pLogger); + static void FreeLogger(); + static void Log(short level, const char* msg); + static void Log(short level, const Blob& blobmsg); + static void Log(short level, const char* msg, const Blob& blobmsg); + static void SetLoglevel(short level); + static bool LogInit() + { + return(s_pLogger != 0 ? true : false); + } + + protected: + Logger(){} + virtual ~Logger(){} + virtual void doLog(short level, const char* msg) = 0; + virtual void doSetLoglevel(short level) = 0; + + private: + static Logger* s_pLogger; + static SyncObject m_sync; + }; + +} // namespace act + +#endif // ACT_Logger_h + diff --git a/actlibrary/MacOSX-10.5-x86_64/Release/include/actMode.h b/actlibrary/include/actMode.h similarity index 93% rename from actlibrary/MacOSX-10.5-x86_64/Release/include/actMode.h rename to actlibrary/include/actMode.h index 3c4bdb9..4e9f3d3 100644 --- a/actlibrary/MacOSX-10.5-x86_64/Release/include/actMode.h +++ b/actlibrary/include/actMode.h @@ -1,269 +1,269 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actMode.h -// Product: cv act library -// Purpose: enumerations -// -// Copyright: (c) 2006 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_Mode_h -#define ACT_Mode_h - -namespace act -{ - enum - { - MODE_RANGE_BEGIN = 100, - - ENCRYPT = 100, - DECRYPT, - SIGN, - VERIFY, - MAC, - - PRIVATE =200, - PUBLIC, - SECRET, - DOMAINPARAMS, - PKCS8_TYPE, - - CIPHER = 300, - PADDING, - DERIVATOR, - BCMODE, - KEYSIZE, - RAWKEY, - IV, - BLOCKSIZE, - CHAINING_VALUE, - CHAINING_BITCOUNT, - EFFECTIVE_KEYSIZE, - SHAREDDATA_1, - SHAREDDATA_2, - KEYDATALEN, - ITERATIONCOUNT, - COUNTER, - OUTDATALEN, - - ENCODER=400, - PRIVATEKEY, - PUBLICKEY, - PUBLICSIZE, - KEY, - SIGNATURE, - AGREEMENT, - - MODULO=500, - PRIME_P, - PRIME_Q, - MODULOSIZE, - PRIME_P_SIZE, - PRIME_Q_SIZE, - CRT_EXPONENT_1, - CRT_EXPONENT_2, - CRT_COEFFICIENT, - PKCS1_PRIVATEKEY, - PKCS1_PUBLICKEY, - - CURVE=600, - PUBLIC_X, - PUBLIC_Y, - STATICPUBLIC_X, - STATICPUBLIC_Y, - EPHEMERALPUBLIC_X, - EPHEMERALPUBLIC_Y, - CURVEPARAM, - PUBLICKEY_EXPORT_TYPE, - BASEPOINT_EXPORT_TYPE, - COMPRESSED, - UNCOMPRESSED, - HYBRID, - IMPLICITLYCA, - GF2CURVE, - PRIMECURVE, - ENCODE_SIGNATURE, - PLAIN_SECRET, - - RING = 700, - RINGORDER, - RINGGENERATOR, - COFACTOR, - COMPATIBLE, - NEWEPHEMERAL, - CHECKDOMAINPARAMS, - - STATICPRIVATEKEY, - STATICPUBLICKEY, - EPHEMERALPRIVATEKEY, - EPHEMERALPUBLICKEY, - - PIN = 800, - CARDTYPE, - CARDPORTTYPE, - PORTNR, - DLLNAME, - READERNAME, - CHANGEMASTERPIN, - CHANGEPIN, - USERPIN, - MASTERPIN, - PINPAD, - USERNAME, - INFOTEXT, - SIGNKEY, - ENCKEY, - SIGNCERTIFICATE, - ENCCERTIFICATE, - ROOTCERTIFICATE, - LOCK_KEY, - DHKEY, - DHCERTIFICATE, - PERSONALIZED, - READERNAMES, - AID, - PATH, - NULLPIN, - SELECTKEY, - ALLCERTIFICATE, - APPLICATION, - KEYUSAGE, - MECHANISM, - CERTIFICATE, - DATA, - KEYTYPE, - LABEL, - ID, - - CTAPI_PORT = 900, - PCSC_PORT, - - CARDOS_CARD = 1000, - TCOS_CARD, - CVACT_CARD, - PKCS11_CARD, - MICARDOEC_CARD, - STARCOSPK_CARD, - ETRUST_CARD, -// MICARDOPUBLIC_CARD, - CARDOSM4_CARD, - MICARDOP21_CARD, - - HASH=1100, - SALT, - SALT_LENGTH, - EMLEN, - - X = 1200, - SEED, - MULTIPLIER, - - VERSION = 1300, - ISSUER, - SUBJECT, - SERIALNR, - ISSUER_DER, - SUBJECT_DER, - ISSUER_UID, - SUBJECT_UID, - NOTBEFORE_DER, - NOTAFTER_DER, - THISUPDATE_DER, - NEXTUPDATE_DER, - TBS, - - CVPROFILEID = 1400, - CVCAREFERENCE, - CVHOLDERREFERENCE, - CVHATEMPLATE, - CVEACTEMPLATE, - CVEFFECTIVEDATE, - CVEXPIRATIONDATE, - CVPUBLICKEY_TLV, - CVPUBLICKEY_MECHANISM, - - // GF(P)-Curves - SECGp112r1 = 0x1000, - SECGp112r2, - SECGp128r1, - SECGp128r2, - SECGp160r1, - SECGp160r2, - SECGp160k1, - ANSIp192r1, - ANSIp192r2, - ANSIp192r3, - NISTp192r1, - SECGp192r1, - SECGp192k1, - NISTp224r1, - SECGp224r1, - SECGp224k1, - ANSIp239r1, - ANSIp239r2, - ANSIp239r3, - ANSIp256r1, - NISTp256r1, - SECGp256r1, - SECGp256k1, - NISTp384r1, - NISTp521r1, - brainpoolP256r1, - brainpoolP256t1, - - // GF(2^m)-Curves - SECGz113r1 = 0x1200, - SECGz113r2, - SECGz131r1, - SECGz131r2, - ANSIz163r1, - ANSIz163r2, - ANSIz163r3, - NISTz163r1, - NISTz163k1, - SECGz163r1, - SECGz163r2, - SECGz163k1, - ANSIz176w1, - ANSIz191r1, - ANSIz191r2, - ANSIz191r3, - SECGz193r1, - SECGz193r2, - ANSIz208w1, - NISTz233r1, - NISTz233k1, - SECGz233r1, - SECGz233k1, - ANSIz239r1, - ANSIz239r2, - ANSIz239r3, - SECGz239k1, - ANSIz272w1, - NISTz283r1, - NISTz283k1, - SECGz283r1, - SECGz283k1, - ANSIz304w1, - ANSIz359r1, - ANSIz368w1, - NISTz409r1, - NISTz409k1, - SECGz409r1, - SECGz409k1, - ANSIz431r1, - NISTz571r1, - NISTz571k1, - SECGz571r1, - SECGz571k1, - - MODE_RANGE_LAST = 0x1400, // insert new elements here - - TOKEN_CONFIG = 0x2000, // token config start - }; - -} // namespace act - -#endif // ACT_Mode_h +////////////////////////////////////////////////////////////////////////////////// +// Name: actMode.h +// Product: cv act library +// Purpose: enumerations +// +// Copyright: (c) 2006 cv cryptovision GmbH +// all rights reserved +// Licence: The conditions for the use of this software are regulated +// in the cv act library licence agreement. +////////////////////////////////////////////////////////////////////////////////// + +#ifndef ACT_Mode_h +#define ACT_Mode_h + +namespace act +{ + enum + { + MODE_RANGE_BEGIN = 100, + + ENCRYPT = 100, + DECRYPT, + SIGN, + VERIFY, + MAC, + + PRIVATE =200, + PUBLIC, + SECRET, + DOMAINPARAMS, + PKCS8_TYPE, + + CIPHER = 300, + PADDING, + DERIVATOR, + BCMODE, + KEYSIZE, + RAWKEY, + IV, + BLOCKSIZE, + CHAINING_VALUE, + CHAINING_BITCOUNT, + EFFECTIVE_KEYSIZE, + SHAREDDATA_1, + SHAREDDATA_2, + KEYDATALEN, + ITERATIONCOUNT, + COUNTER, + OUTDATALEN, + + ENCODER=400, + PRIVATEKEY, + PUBLICKEY, + PUBLICSIZE, + KEY, + SIGNATURE, + AGREEMENT, + + MODULO=500, + PRIME_P, + PRIME_Q, + MODULOSIZE, + PRIME_P_SIZE, + PRIME_Q_SIZE, + CRT_EXPONENT_1, + CRT_EXPONENT_2, + CRT_COEFFICIENT, + PKCS1_PRIVATEKEY, + PKCS1_PUBLICKEY, + + CURVE=600, + PUBLIC_X, + PUBLIC_Y, + STATICPUBLIC_X, + STATICPUBLIC_Y, + EPHEMERALPUBLIC_X, + EPHEMERALPUBLIC_Y, + CURVEPARAM, + PUBLICKEY_EXPORT_TYPE, + BASEPOINT_EXPORT_TYPE, + COMPRESSED, + UNCOMPRESSED, + HYBRID, + IMPLICITLYCA, + GF2CURVE, + PRIMECURVE, + ENCODE_SIGNATURE, + PLAIN_SECRET, + + RING = 700, + RINGORDER, + RINGGENERATOR, + COFACTOR, + COMPATIBLE, + NEWEPHEMERAL, + CHECKDOMAINPARAMS, + + STATICPRIVATEKEY, + STATICPUBLICKEY, + EPHEMERALPRIVATEKEY, + EPHEMERALPUBLICKEY, + + PIN = 800, + CARDTYPE, + CARDPORTTYPE, + PORTNR, + DLLNAME, + READERNAME, + CHANGEMASTERPIN, + CHANGEPIN, + USERPIN, + MASTERPIN, + PINPAD, + USERNAME, + INFOTEXT, + SIGNKEY, + ENCKEY, + SIGNCERTIFICATE, + ENCCERTIFICATE, + ROOTCERTIFICATE, + LOCK_KEY, + DHKEY, + DHCERTIFICATE, + PERSONALIZED, + READERNAMES, + AID, + PATH, + NULLPIN, + SELECTKEY, + ALLCERTIFICATE, + APPLICATION, + KEYUSAGE, + MECHANISM, + CERTIFICATE, + DATA, + KEYTYPE, + LABEL, + ID, + + CTAPI_PORT = 900, + PCSC_PORT, + + CARDOS_CARD = 1000, + TCOS_CARD, + CVACT_CARD, + PKCS11_CARD, + MICARDOEC_CARD, + STARCOSPK_CARD, + ETRUST_CARD, +// MICARDOPUBLIC_CARD, + CARDOSM4_CARD, + MICARDOP21_CARD, + + HASH=1100, + SALT, + SALT_LENGTH, + EMLEN, + + X = 1200, + SEED, + MULTIPLIER, + + VERSION = 1300, + ISSUER, + SUBJECT, + SERIALNR, + ISSUER_DER, + SUBJECT_DER, + ISSUER_UID, + SUBJECT_UID, + NOTBEFORE_DER, + NOTAFTER_DER, + THISUPDATE_DER, + NEXTUPDATE_DER, + TBS, + + CVPROFILEID = 1400, + CVCAREFERENCE, + CVHOLDERREFERENCE, + CVHATEMPLATE, + CVEACTEMPLATE, + CVEFFECTIVEDATE, + CVEXPIRATIONDATE, + CVPUBLICKEY_TLV, + CVPUBLICKEY_MECHANISM, + + // GF(P)-Curves + SECGp112r1 = 0x1000, + SECGp112r2, + SECGp128r1, + SECGp128r2, + SECGp160r1, + SECGp160r2, + SECGp160k1, + ANSIp192r1, + ANSIp192r2, + ANSIp192r3, + NISTp192r1, + SECGp192r1, + SECGp192k1, + NISTp224r1, + SECGp224r1, + SECGp224k1, + ANSIp239r1, + ANSIp239r2, + ANSIp239r3, + ANSIp256r1, + NISTp256r1, + SECGp256r1, + SECGp256k1, + NISTp384r1, + NISTp521r1, + brainpoolP256r1, + brainpoolP256t1, + + // GF(2^m)-Curves + SECGz113r1 = 0x1200, + SECGz113r2, + SECGz131r1, + SECGz131r2, + ANSIz163r1, + ANSIz163r2, + ANSIz163r3, + NISTz163r1, + NISTz163k1, + SECGz163r1, + SECGz163r2, + SECGz163k1, + ANSIz176w1, + ANSIz191r1, + ANSIz191r2, + ANSIz191r3, + SECGz193r1, + SECGz193r2, + ANSIz208w1, + NISTz233r1, + NISTz233k1, + SECGz233r1, + SECGz233k1, + ANSIz239r1, + ANSIz239r2, + ANSIz239r3, + SECGz239k1, + ANSIz272w1, + NISTz283r1, + NISTz283k1, + SECGz283r1, + SECGz283k1, + ANSIz304w1, + ANSIz359r1, + ANSIz368w1, + NISTz409r1, + NISTz409k1, + SECGz409r1, + SECGz409k1, + ANSIz431r1, + NISTz571r1, + NISTz571k1, + SECGz571r1, + SECGz571k1, + + MODE_RANGE_LAST = 0x1400, // insert new elements here + + TOKEN_CONFIG = 0x2000, // token config start + }; + +} // namespace act + +#endif // ACT_Mode_h diff --git a/actlibrary/MacOSX-10.4-ppc/Release/include/actMove.h b/actlibrary/include/actMove.h similarity index 96% rename from actlibrary/MacOSX-10.4-ppc/Release/include/actMove.h rename to actlibrary/include/actMove.h index ebf1d6f..79495ff 100644 --- a/actlibrary/MacOSX-10.4-ppc/Release/include/actMove.h +++ b/actlibrary/include/actMove.h @@ -1,133 +1,133 @@ -////////////////////////////////////////////////////////////////////////// -// Name: actMove.h -// Product: cv act library -// Purpose: template<>'s to implement move semantics -// -// Copyright: (c) 2010 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -// -// Autor: Markus Tesche -// Date: 07/25/2010 -////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_Move_h -#define ACT_Move_h - -namespace act -{ - // - // type_of used to dismantle T resulting in T' - // -------------------------------------------------------------------------------- - template struct type_of { typedef T type; }; - template struct type_of { typedef T type; }; - template struct type_of { typedef T type; }; - template struct type_of { typedef T type; }; - template struct type_of { typedef T type; }; - template struct type_of { typedef T type; }; - - // - // is_const - // -------------------------------------------------------------------------------- - template struct is_const { enum { value = 0 }; }; - template struct is_const { enum { value = 1 }; }; - template struct is_const { enum { value = 0 }; }; - template struct is_const { enum { value = 1 }; }; - template struct is_const { enum { value = 0 }; }; - template struct is_const { enum { value = 1 }; }; - - // - // /brief move_from<...> used to implement move semantics - // -------------------------------------------------------------------------------- - template - class move_from; - - // - // /brief move_from default spcialization, holds reference to type T - // -------------------------------------------------------------------------------- - template - class move_from - { - public: - typedef typename type_of::type type_t; - - explicit move_from(type_t& ref) - : m_ref(ref) - { } - - template - move_from(const move_from& other) - : m_ref(other.source()) - { } - - inline type_t& source() const { return m_ref; } - template O& source() const { return m_ref; } - - template void swap(O& other) { m_ref.swap(other); } - template O& move(O& other) { m_ref.swap(other); return other; } - - private: - type_t& m_ref; - - private: - template - friend class move_from; - }; - - // - // /brief move_from spcialization takes ownership of 'swapped-in' source data - // -------------------------------------------------------------------------------- - template - class move_from : public move_from - { - public: - typedef typename type_of::type type_t; - - explicit move_from(type_t& ref) - : move_from(m_value) - { - ref.swap(m_value); - } - - template - move_from(move_from other) - : move_from(m_value) - { - other.swap(m_value); - } - - private: - typename move_from::type_t m_value; - }; - - // - // /brief move_empty used as default move_from<...> function parameter - // -------------------------------------------------------------------------------- - template - class move_empty : public move_from - { - public: - move_empty() - : move_from(m_empty) - { } - - move_empty(const move_empty&) - : move_from(m_empty) - { } - - inline move_empty& operator=(const move_empty&) { return *this; } - - private: - T m_empty; - }; - - // - // /brief move<> helper function - // -------------------------------------------------------------------------------- - template - move_from move(T& ref) { return move_from(ref); } - -} // namespace act - -#endif // ACT_Move_h +////////////////////////////////////////////////////////////////////////// +// Name: actMove.h +// Product: cv act library +// Purpose: template<>'s to implement move semantics +// +// Copyright: (c) 2010 cv cryptovision GmbH +// all rights reserved +// Licence: The conditions for the use of this software are regulated +// in the cv act library licence agreement. +// +// Autor: Markus Tesche +// Date: 07/25/2010 +////////////////////////////////////////////////////////////////////////// + +#ifndef ACT_Move_h +#define ACT_Move_h + +namespace act +{ + // + // type_of used to dismantle T resulting in T' + // -------------------------------------------------------------------------------- + template struct type_of { typedef T type; }; + template struct type_of { typedef T type; }; + template struct type_of { typedef T type; }; + template struct type_of { typedef T type; }; + template struct type_of { typedef T type; }; + template struct type_of { typedef T type; }; + + // + // is_const + // -------------------------------------------------------------------------------- + template struct is_const { enum { value = 0 }; }; + template struct is_const { enum { value = 1 }; }; + template struct is_const { enum { value = 0 }; }; + template struct is_const { enum { value = 1 }; }; + template struct is_const { enum { value = 0 }; }; + template struct is_const { enum { value = 1 }; }; + + // + // /brief move_from<...> used to implement move semantics + // -------------------------------------------------------------------------------- + template + class move_from; + + // + // /brief move_from default spcialization, holds reference to type T + // -------------------------------------------------------------------------------- + template + class move_from + { + public: + typedef typename type_of::type type_t; + + explicit move_from(type_t& ref) + : m_ref(ref) + { } + + template + move_from(const move_from& other) + : m_ref(other.source()) + { } + + inline type_t& source() const { return m_ref; } + template O& source() const { return m_ref; } + + template void swap(O& other) { m_ref.swap(other); } + template O& move(O& other) { m_ref.swap(other); return other; } + + private: + type_t& m_ref; + + private: + template + friend class move_from; + }; + + // + // /brief move_from spcialization takes ownership of 'swapped-in' source data + // -------------------------------------------------------------------------------- + template + class move_from : public move_from + { + public: + typedef typename type_of::type type_t; + + explicit move_from(type_t& ref) + : move_from(m_value) + { + ref.swap(m_value); + } + + template + move_from(move_from other) + : move_from(m_value) + { + other.swap(m_value); + } + + private: + typename move_from::type_t m_value; + }; + + // + // /brief move_empty used as default move_from<...> function parameter + // -------------------------------------------------------------------------------- + template + class move_empty : public move_from + { + public: + move_empty() + : move_from(m_empty) + { } + + move_empty(const move_empty&) + : move_from(m_empty) + { } + + inline move_empty& operator=(const move_empty&) { return *this; } + + private: + T m_empty; + }; + + // + // /brief move<> helper function + // -------------------------------------------------------------------------------- + template + move_from move(T& ref) { return move_from(ref); } + +} // namespace act + +#endif // ACT_Move_h diff --git a/actlibrary/MacOSX-10.4-ppc/Release/include/actOID.h b/actlibrary/include/actOID.h similarity index 98% rename from actlibrary/MacOSX-10.4-ppc/Release/include/actOID.h rename to actlibrary/include/actOID.h index 527f660..5cd2196 100644 --- a/actlibrary/MacOSX-10.4-ppc/Release/include/actOID.h +++ b/actlibrary/include/actOID.h @@ -1,2103 +1,2103 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actOID.h -// Product: cv act library -// Purpose: -// -// -// Copyright: (c) 2000 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_OID_H -#define ACT_OID_H - -#define CV_OID_DEF(x) (act::Blob((x),(x)+sizeof((x)))) - -#ifdef _MSC_VER -#pragma warning(disable : 4305) //Verkuerzung von 'static const int' in 'static const unsigned char' -#pragma warning(disable : 4309) //Verkuerzung eines konstanten Wertes -#endif - -//1.2.840.10045.4.1 ECDSA cvECDSA -static const unsigned char cvOID_cvECDSA[] = {0x2a, 0x86, 0x48, 0xce, 0x3d, 0x04, 0x01}; -//1.2.840.113549.1.9.1 Alternate Name cvAlternateName -static const unsigned char cvOID_cvAlternateName[] = {0x2a, 0x86, 0x48, 0x86, 0xf7, 0x0d, 0x01, 0x09, 0x01}; - -//0.2.262.1.10 Deutsche Telekom Telesec -static const unsigned char cvOID_Telesec [] = { 0x02, 0x82, 0x06, 0x01, 0x0A}; -//0.2.262.1.10.0 Telesec extension -static const unsigned char cvOID_extension [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x00}; -//0.2.262.1.10.1 Telesec mechanism -static const unsigned char cvOID_mechanism [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x01}; -//0.2.262.1.10.1.0 Telesec mechanism authentication -static const unsigned char cvOID_authentication [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x01, 0x00}; -//0.2.262.1.10.1.0.1 Telesec authentication passwordAuthentication -static const unsigned char cvOID_passwordAuthentication [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x01, 0x00, 0x01}; -//0.2.262.1.10.1.0.2 Telesec authentication protectedPasswordAuthentication -static const unsigned char cvOID_protectedPasswordAuthentication [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x01, 0x00, 0x02}; -//0.2.262.1.10.1.0.3 Telesec authentication oneWayX509Authentication -static const unsigned char cvOID_oneWayX509Authentication [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x01, 0x00, 0x03}; -//0.2.262.1.10.1.0.4 Telesec authentication twoWayX509Authentication -static const unsigned char cvOID_twoWayX509Authentication [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x01, 0x00, 0x04}; -//0.2.262.1.10.1.0.5 Telesec authentication threeWayX509Authentication -static const unsigned char cvOID_threeWayX509Authentication [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x01, 0x00, 0x05}; -//0.2.262.1.10.1.0.6 Telesec authentication oneWayISO9798Authentication -static const unsigned char cvOID_oneWayISO9798Authentication [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x01, 0x00, 0x06}; -//0.2.262.1.10.1.0.7 Telesec authentication twoWayISO9798Authentication -static const unsigned char cvOID_twoWayISO9798Authentication [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x01, 0x00, 0x07}; -//0.2.262.1.10.1.0.8 Telesec authentication telekomAuthentication -static const unsigned char cvOID_telekomAuthentication [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x01, 0x00, 0x08}; -//0.2.262.1.10.1.1 Telesec mechanism signature -static const unsigned char cvOID_signature [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x01, 0x01}; -//0.2.262.1.10.1.1.1 Telesec mechanism md4WithRSAAndISO9697 -static const unsigned char cvOID_md4WithRSAAndISO9697 [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x01, 0x01, 0x01}; -//0.2.262.1.10.1.1.2 Telesec mechanism md4WithRSAAndTelesecSignatureStandard -static const unsigned char cvOID_md4WithRSAAndTelesecSignatureStandard [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x01, 0x01, 0x02}; -//0.2.262.1.10.1.1.3 Telesec mechanism md5WithRSAAndISO9697 -static const unsigned char cvOID_md5WithRSAAndISO9697 [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x01, 0x01, 0x03}; -//0.2.262.1.10.1.1.4 Telesec mechanism md5WithRSAAndTelesecSignatureStandard -static const unsigned char cvOID_md5WithRSAAndTelesecSignatureStandard [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x01, 0x01, 0x04}; -//0.2.262.1.10.1.1.5 Telesec mechanism ripemd160WithRSAAndTelekomSignatureStandard -static const unsigned char cvOID_ripemd160WithRSAAndTelekomSignatureStandard [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x01, 0x01, 0x05}; -//0.2.262.1.10.1.1.9 Telesec signature hbciRsaSignature -static const unsigned char cvOID_hbciRsaSignature [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x01, 0x01, 0x09}; -//0.2.262.1.10.1.2 Telesec mechanism encryption -static const unsigned char cvOID_encryption [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x01, 0x02}; -//0.2.262.1.10.1.2.0 Telesec encryption none -static const unsigned char cvOID_none [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x01, 0x02, 0x00}; -//0.2.262.1.10.1.2.1 Telesec encryption rsaTelesec -static const unsigned char cvOID_rsaTelesec [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x01, 0x02, 0x01}; -//0.2.262.1.10.1.2.2 Telesec encryption des -static const unsigned char cvOID_des [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x01, 0x02, 0x02}; -//0.2.262.1.10.1.2.2.1 Telesec encryption desECB -static const unsigned char cvOID_desECB [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x01, 0x02, 0x02, 0x01}; -//0.2.262.1.10.1.2.2.2 Telesec encryption desCBC -static const unsigned char cvOID_desCBC [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x01, 0x02, 0x02, 0x02}; -//0.2.262.1.10.1.2.2.3 Telesec encryption desOFB -static const unsigned char cvOID_desOFB [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x01, 0x02, 0x02, 0x03}; -//0.2.262.1.10.1.2.2.4 Telesec encryption desCFB8 -static const unsigned char cvOID_desCFB8 [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x01, 0x02, 0x02, 0x04}; -//0.2.262.1.10.1.2.2.5 Telesec encryption desCFB64 -static const unsigned char cvOID_desCFB64 [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x01, 0x02, 0x02, 0x05}; -//0.2.262.1.10.1.2.3 Telesec encryption des3 -static const unsigned char cvOID_des3 [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x01, 0x02, 0x03}; -//0.2.262.1.10.1.2.3.1 Telesec encryption des3ECB -static const unsigned char cvOID_des3ECB [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x01, 0x02, 0x03, 0x01}; -//0.2.262.1.10.1.2.3.2 Telesec encryption des3CBC -static const unsigned char cvOID_des3CBC [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x01, 0x02, 0x03, 0x02}; -//0.2.262.1.10.1.2.3.3 Telesec encryption des3OFB -static const unsigned char cvOID_des3OFB [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x01, 0x02, 0x03, 0x03}; -//0.2.262.1.10.1.2.3.4 Telesec encryption des3CFB8 -static const unsigned char cvOID_des3CFB8 [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x01, 0x02, 0x03, 0x04}; -//0.2.262.1.10.1.2.3.5 Telesec encryption des3CFB64 -static const unsigned char cvOID_des3CFB64 [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x01, 0x02, 0x03, 0x05}; -//0.2.262.1.10.1.2.4 Telesec encryption magenta -static const unsigned char cvOID_magenta [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x01, 0x02, 0x04}; -//0.2.262.1.10.1.2.5 Telesec encryption idea -static const unsigned char cvOID_idea [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x01, 0x02, 0x05}; -//0.2.262.1.10.1.2.5.1 Telesec encryption ideaECB -static const unsigned char cvOID_ideaECB_Telesec [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x01, 0x02, 0x05, 0x01}; -//0.2.262.1.10.1.2.5.2 Telesec encryption ideaCBC -static const unsigned char cvOID_ideaCBC_Telesec [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x01, 0x02, 0x05, 0x02}; -//0.2.262.1.10.1.2.5.3 Telesec encryption ideaOFB -static const unsigned char cvOID_ideaOFB_Telesec [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x01, 0x02, 0x05, 0x03}; -//0.2.262.1.10.1.2.5.4 Telesec encryption ideaCFB8 -static const unsigned char cvOID_ideaCFB8_Telesec [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x01, 0x02, 0x05, 0x04}; -//0.2.262.1.10.1.2.5.5 Telesec encryption ideaCFB64 -static const unsigned char cvOID_ideaCFB64_Telesec [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x01, 0x02, 0x05, 0x05}; -//0.2.262.1.10.1.3 Telesec mechanism oneWayFunction -static const unsigned char cvOID_oneWayFunction [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x01, 0x03}; -//0.2.262.1.10.1.3.1 Telesec one-way function md4 -static const unsigned char cvOID_md4_Telesec [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x01, 0x03, 0x01}; -//0.2.262.1.10.1.3.2 Telesec one-way function md5 -static const unsigned char cvOID_md5_Telesec [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x01, 0x03, 0x02}; -//0.2.262.1.10.1.3.3 Telesec one-way function sqModNX509 -static const unsigned char cvOID_sqModNX509 [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x01, 0x03, 0x03}; -//0.2.262.1.10.1.3.4 Telesec one-way function sqModNISO -static const unsigned char cvOID_sqModNISO [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x01, 0x03, 0x04}; -//0.2.262.1.10.1.3.5 Telesec one-way function ripemd128 -static const unsigned char cvOID_ripemd128 [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x01, 0x03, 0x05}; -//0.2.262.1.10.1.3.6 Telesec one-way function hashUsingBlockCipher -static const unsigned char cvOID_hashUsingBlockCipher [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x01, 0x03, 0x06}; -//0.2.262.1.10.1.3.7 Telesec one-way function mac -static const unsigned char cvOID_mac [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x01, 0x03, 0x07}; -//0.2.262.1.10.1.3.8 Telesec one-way function ripemd160 -static const unsigned char cvOID_ripemd160 [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x01, 0x03, 0x08}; -//0.2.262.1.10.1.4 Telesec mechanism fecFunction -static const unsigned char cvOID_fecFunction [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x01, 0x04}; -//0.2.262.1.10.1.4.1 Telesec mechanism reedSolomon -static const unsigned char cvOID_reedSolomon [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x01, 0x04, 0x01}; -//0.2.262.1.10.2 Telesec module -static const unsigned char cvOID_module_Telesec [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x02}; -//0.2.262.1.10.2.0 Telesec module algorithms -static const unsigned char cvOID_algorithms [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x02, 0x00}; -//0.2.262.1.10.2.1 Telesec module attributeTypes -static const unsigned char cvOID_attributeTypes [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x02, 0x01}; -//0.2.262.1.10.2.2 Telesec module certificateTypes -static const unsigned char cvOID_certificateTypes [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x02, 0x02}; -//0.2.262.1.10.2.3).. Telesec module messageTypes -static const unsigned char cvOID_messageTypes [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x02, 0x03}; -//0.2.262.1.10.2.4 Telesec module plProtocol -static const unsigned char cvOID_plProtocol [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x02, 0x04}; -//0.2.262.1.10.2.5 Telesec module smeAndComponentsOfSme -static const unsigned char cvOID_smeAndComponentsOfSme [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x02, 0x05}; -//0.2.262.1.10.2.6 Telesec module fec -static const unsigned char cvOID_fec [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x02, 0x06}; -//0.2.262.1.10.2.7 Telesec module usefulDefinitions -static const unsigned char cvOID_usefulDefinitions [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x02, 0x07}; -//0.2.262.1.10.2.8 Telesec module stefiles -static const unsigned char cvOID_stefiles [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x02, 0x08}; -//0.2.262.1.10.2.9 Telesec module sadmib -static const unsigned char cvOID_sadmib [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x02, 0x09}; -//0.2.262.1.10.2.10 Telesec module electronicOrder -static const unsigned char cvOID_electronicOrder [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x02, 0x0A}; -//0.2.262.1.10.2.11 Telesec module telesecTtpAsymmetricApplication -static const unsigned char cvOID_telesecTtpAsymmetricApplication [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x02, 0x0B}; -//0.2.262.1.10.2.12)..... Telesec module telesecTtpBasisApplication -static const unsigned char cvOID_telesecTtpBasisApplication [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x02, 0x0C}; -//0.2.262.1.10.2.13)....... Telesec module telesecTtpMessages -static const unsigned char cvOID_telesecTtpMessages [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x02, 0x0D}; -//0.2.262.1.10.2.14)....... Telesec module telesecTtpTimeStampApplication -static const unsigned char cvOID_telesecTtpTimeStampApplication [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x02, 0x0E}; -//0.2.262.1.10.3 Telesec objectClass -static const unsigned char cvOID_objectClass_Telesec [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x03}; -//0.2.262.1.10.3.0 Telesec object class telesecOtherName -static const unsigned char cvOID_telesecOtherName_Telesec [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x03, 0x00}; -//0.2.262.1.10.3.1 Telesec object class directory -static const unsigned char cvOID_directory_Telesec [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x03, 0x01}; -//0.2.262.1.10.3.2 Telesec object class directoryType -static const unsigned char cvOID_directoryType_Telesec [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x03, 0x02}; -//0.2.262.1.10.3.3 Telesec object class directroyGroup -static const unsigned char cvOID_directroyGroup_Telesec [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x03, 0x03}; -//0.2.262.1.10.3.4 Telesec object class directoryUser -static const unsigned char cvOID_directoryUser_Telesec [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x03, 0x04}; -//0.2.262.1.10.3.5 Telesec object class symmetricKeyEntry -static const unsigned char cvOID_symmetricKeyEntry [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x03, 0x05}; -//0.2.262.1.10.4 Telesec package -static const unsigned char cvOID_package [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x04}; -//0.2.262.1.10.5 Telesec parameter -static const unsigned char cvOID_parameter [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x05}; -//0.2.262.1.10.6 Telesec nameBinding -static const unsigned char cvOID_nameBinding [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x06}; -//0.2.262.1.10.7 Telesec attribute -static const unsigned char cvOID_attribute_Telesec [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x07}; -//0.2.262.1.10.7.0 Telesec attribute applicationGroupIdentifier -static const unsigned char cvOID_applicationGroupIdentifier [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x07, 0x00}; -//0.2.262.1.10.7.1 Telesec attribute certificateType -static const unsigned char cvOID_certificateType [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x07, 0x01}; -//0.2.262.1.10.7.2 Telesec attribute telesecCertificate -static const unsigned char cvOID_Certificate_Telesec [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x07, 0x02}; -//0.2.262.1.10.7.3 Telesec attribute certificateNumber -static const unsigned char cvOID_certificateNumber [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x07, 0x03}; -//0.2.262.1.10.7.4 Telesec attribute certificateRevocationList -static const unsigned char cvOID_certificateRevocationList_Telesec [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x07, 0x04}; -//0.2.262.1.10.7.5 Telesec attribute creationDate -static const unsigned char cvOID_creationDate [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x07, 0x05}; -//0.2.262.1.10.7.6).... Telesec attribute issuer -static const unsigned char cvOID_issuer [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x07, 0x06}; -//0.2.262.1.10.7.7 Telesec attribute namingAuthority -static const unsigned char cvOID_namingAuthority [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x07, 0x07}; -//0.2.262.1.10.7.8 Telesec attribute publicKeyDirectory -static const unsigned char cvOID_publicKeyDirectory [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x07, 0x08}; -//0.2.262.1.10.7.9).. Telesec attribute securityDomain -static const unsigned char cvOID_securityDomain [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x07, 0x09}; -//0.2.262.1.10.7.10)..... Telesec attribute subject -static const unsigned char cvOID_subject [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x07, 0x0A}; -//0.2.262.1.10.7.11 Telesec attribute timeOfRevocation -static const unsigned char cvOID_timeOfRevocation [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x07, 0x0B}; -//0.2.262.1.10.7.12 Telesec attribute userGroupReference -static const unsigned char cvOID_userGroupReference [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x07, 0x0C}; -//0.2.262.1.10.7.13 Telesec attribute validity -static const unsigned char cvOID_validity [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x07, 0x0D}; -//0.2.262.1.10.7.14 Telesec attribute zert93 -static const unsigned char cvOID_zert93 [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x07, 0x0E}; -//0.2.262.1.10.7.15 Telesec attribute securityMessEnv -static const unsigned char cvOID_securityMessEnv [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x07, 0x0F}; -//0.2.262.1.10.7.16 Telesec attribute anonymizedPublicKeyDirectory -static const unsigned char cvOID_anonymizedPublicKeyDirectory [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x07, 0x10}; -//0.2.262.1.10.7.17 Telesec attribute telesecGivenName -static const unsigned char cvOID_telesecGivenName [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x07, 0x11}; -//0.2.262.1.10.7.18). Telesec attribute nameAdditions -static const unsigned char cvOID_nameAdditions [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x07, 0x12}; -//0.2.262.1.10.7.19 Telesec attribute telesecPostalCode -static const unsigned char cvOID_telesecPostalCode [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x07, 0x13}; -//0.2.262.1.10.7.20 Telesec attribute nameDistinguisher -static const unsigned char cvOID_nameDistinguisher [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x07, 0x14}; -//0.2.262.1.10.7.21 Telesec attribute telesecCertificateList -static const unsigned char cvOID_telesecCertificateList [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x07, 0x15}; -//0.2.262.1.10.7.22 Telesec attribute teletrustCertificateList -static const unsigned char cvOID_teletrustCertificateList [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x07, 0x16}; -//0.2.262.1.10.7.23)... Telesec attribute x509CertificateList -static const unsigned char cvOID_x509CertificateList [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x07, 0x17}; -//0.2.262.1.10.7.24 Telesec attribute timeOfIssue -static const unsigned char cvOID_timeOfIssue [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x07, 0x18}; -//0.2.262.1.10.7.25 Telesec attribute physicalCardNumber -static const unsigned char cvOID_physicalCardNumber [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x07, 0x19}; -//0.2.262.1.10.7.26)........ Telesec attribute fileType -static const unsigned char cvOID_fileType [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x07, 0x1A}; -//0.2.262.1.10.7.27 Telesec attribute ctlFileIsArchive -static const unsigned char cvOID_ctlFileIsArchive [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x07, 0x1B}; -//0.2.262.1.10.7.28)........ Telesec attribute emailAddress -static const unsigned char cvOID_emailAddress [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x07, 0x1C}; -//0.2.262.1.10.7.29)........ Telesec attribute certificateTemplateList -static const unsigned char cvOID_certificateTemplateList [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x07, 0x1D}; -//0.2.262.1.10.7.30)........ Telesec attribute directoryName -static const unsigned char cvOID_directoryName [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x07, 0x1E}; -//0.2.262.1.10.7.31)........ Telesec attribute directoryTypeName -static const unsigned char cvOID_directoryTypeName [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x07, 0x1F}; -//0.2.262.1.10.7.32 Telesec attribute directoryGroupName -static const unsigned char cvOID_directoryGroupName [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x07, 0x20}; -//0.2.262.1.10.7.33 Telesec attribute directoryUserName -static const unsigned char cvOID_directoryUserName [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x07, 0x21}; -//0.2.262.1.10.7.34 Telesec attribute revocationFlag -static const unsigned char cvOID_revocationFlag [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x07, 0x22}; -//0.2.262.1.10.7.35 Telesec attribute symmetricKeyEntryName -static const unsigned char cvOID_symmetricKeyEntryName [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x07, 0x23}; -//0.2.262.1.10.7.36 Telesec attribute glNumber -static const unsigned char cvOID_glNumber [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x07, 0x24}; -//0.2.262.1.10.7.37 Telesec attribute goNumber -static const unsigned char cvOID_goNumber [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x07, 0x25}; -//0.2.262.1.10.7.38 Telesec attribute gKeyData -static const unsigned char cvOID_gKeyData [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x07, 0x26}; -//0.2.262.1.10.7.39 Telesec attribute zKeyData -static const unsigned char cvOID_zKeyData [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x07, 0x27}; -//0.2.262.1.10.7.40 Telesec attribute ktKeyData -static const unsigned char cvOID_ktKeyData [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x07, 0x28}; -//0.2.262.1.10.7.41 Telesec attribute ktKeyNumber -static const unsigned char cvOID_ktKeyNumber [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x07, 0x2A}; -//0.2.262.1.10.7.51 Telesec attribute timeOfRevocationGen -static const unsigned char cvOID_timeOfRevocationGen [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x07, 0x33}; -//0.2.262.1.10.7.52).... Telesec attribute liabilityText -static const unsigned char cvOID_liabilityText [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x07, 0x34}; -//0.2.262.1.10.8 Telesec attributeGroup -static const unsigned char cvOID_attributeGroup [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x08}; -//0.2.262.1.10.9 Telesec action -static const unsigned char cvOID_action [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x09}; -//0.2.262.1.10.10 Telesec notification -static const unsigned char cvOID_notification [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x0A}; -//0.2.262.1.10.11 Telesec snmp-mibs -static const unsigned char cvOID_snmp_mibs [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x0B}; -//0.2.262.1.10.11.1 Telesec SNMP MIBs securityApplication -static const unsigned char cvOID_securityApplication [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x0B, 0x01}; -//0.2.262.1.10.12 Telesec certAndCrlExtensionDefinitions -static const unsigned char cvOID_certAndCrlExtensionDefinitions [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x0C}; -//0.2.262.1.10.12.0 Telesec cert/CRL extension certExtensionLiabilityLimitationExt -static const unsigned char cvOID_certExtensionLiabilityLimitationExt [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x0C, 0x00}; -//0.2.262.1.10.12.1 Telesec cert/CRL extension telesecCertIdExt -static const unsigned char cvOID_telesecCertIdExt [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x0C, 0x01}; -//0.2.262.1.10.12.2 Telesec cert/CRL extension telesecPolicyIdentifier -static const unsigned char cvOID_telesecPolicyIdentifier [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x0C, 0x02}; -//0.2.262.1.10.12.3 Telesec cert/CRL extension telesecPolicyQualifierID -static const unsigned char cvOID_telesecPolicyQualifierID [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x0C, 0x03}; -//0.2.262.1.10.12.4 Telesec cert/CRL extension telesecCRLFilteredExt -static const unsigned char cvOID_telesecCRLFilteredExt [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x0C, 0x04}; -//0.2.262.1.10.12.5 Telesec cert/CRL extension telesecCRLFilterExt -static const unsigned char cvOID_telesecCRLFilterExt [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x0C, 0x05}; -//0.2.262.1.10.12.6 Telesec cert/CRL extension telesecNamingAuthorityExt -static const unsigned char cvOID_telesecNamingAuthorityExt [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x0C, 0x06}; -//0.9.2342.19200300.1.3 Some oddball X.500 attribute collection rfc822Mailbox -static const unsigned char cvOID_rfc822Mailbox [] = { 0x09, 0x92, 0x26, 0x89, 0x93, 0xF2, 0x2C, 0x01, 0x03}; -//0.9.2342.19200300.100.1.25 Men are from Mars, this OID is from Pluto domainComponent -static const unsigned char cvOID_domainComponent [] = { 0x09, 0x92, 0x26, 0x89, 0x93, 0xF2, 0x2C, 0x64, 0x01, 0x019}; -//1.2.36.75878867.1.100.1.1 Certificates Australia CA Certificates Australia policyIdentifier -static const unsigned char cvOID_Certificates_Australia_policyIdentifier [] = { 0x2A, 0x24, 0xA4, 0x97, 0xA3, 0x53, 0x01, 0x64, 0x01, 0x01}; -//1.2.36.68980861.1.1.2 Signet CA Signet personal -static const unsigned char cvOID_Signet_personal [] = { 0x2A, 0x24, 0xA0, 0xF2, 0xA0, 0x7D, 0x01, 0x01, 0x02}; -//1.2.36.68980861.1.1.3 Signet CA Signet business -static const unsigned char cvOID_Signet_business [] = { 0x2A, 0x24, 0xA0, 0xF2, 0xA0, 0x7D, 0x01, 0x01, 0x03}; -//1.2.36.68980861.1.1.4 Signet CA Signet legal -static const unsigned char cvOID_Signet_legal [] = { 0x2A, 0x24, 0xA0, 0xF2, 0xA0, 0x7D, 0x01, 0x01, 0x04}; -//1.2.36.68980861.1.1.10 Signet CA Signet pilot -static const unsigned char cvOID_Signet_pilot [] = { 0x2A, 0x24, 0xA0, 0xF2, 0xA0, 0x7D, 0x01, 0x01, 0x0A}; -//1.2.36.68980861.1.1.11 Signet CA Signet intraNet -static const unsigned char cvOID_Signet_intraNet [] = { 0x2A, 0x24, 0xA0, 0xF2, 0xA0, 0x7D, 0x01, 0x01, 0x0B}; -//1.2.36.68980861.1.1.20 Signet CA Signet securityPolicy -static const unsigned char cvOID_Signet_securityPolicy [] = { 0x2A, 0x24, 0xA0, 0xF2, 0xA0, 0x7D, 0x01, 0x01, 0x14}; -//1.2.392.200011.61.1.1.1 Mitsubishi security algorithm symmetric-encryption-algorithm -static const unsigned char cvOID_symmetric_encryption_algorithm [] = { 0x2A, 0x83, 0x08, 0x8C, 0x1A, 0x4B, 0x3D, 0x01, 0x01, 0x01}; -//1.2.392.200011.61.1.1.1.1 Mitsubishi security algorithm misty1-cbc -static const unsigned char cvOID_misty1_cbc [] = { 0x2A, 0x83, 0x08, 0x8C, 0x9A, 0x4B, 0x3D, 0x01, 0x01, 0x01, 0x01}; -//1.2.752.34.1 SEIS Project seis-cp -static const unsigned char cvOID_seis_cp [] = { 0x2A, 0x85, 0x70, 0x22, 0x01}; -//1.2.752.34.1.1 SEIS Project certificate policies SEIS high-assurnace certificatePolicy -static const unsigned char cvOID_SEIS_high_assurnace_certificatePolicy [] = { 0x2A, 0x85, 0x70, 0x22, 0x01, 0x01}; -//1.2.752.34.1.2 SEIS Project certificate policies SEIS GAK certificatePolicy -static const unsigned char cvOID_SEIS_GAK_certificatePolicy [] = { 0x2A, 0x85, 0x70, 0x22, 0x01, 0x02}; -//1.2.752.34.2 SEIS Project SEIS pe -static const unsigned char cvOID_SEIS_pe [] = { 0x2A, 0x85, 0x70, 0x22, 0x02}; -//1.2.752.34.3 SEIS Project SEIS at -static const unsigned char cvOID_SEIS_at [] = { 0x2A, 0x85, 0x70, 0x22, 0x03}; -//1.2.752.34.3.1 SEIS Project attribute SEIS at-personalIdentifier -static const unsigned char cvOID_SEIS_at_personalIdentifier [] = { 0x2A, 0x85, 0x70, 0x22, 0x03, 0x01}; -//1.2.840.10040.1 ANSI X9.57 module -static const unsigned char cvOID_module [] = { 0x2A, 0x86, 0x48, 0xCE, 0x38, 0x01}; -//1.2.840.10040.1.1 ANSI X9.57 module x9f1-cert-mgmt -static const unsigned char cvOID_x9f1_cert_mgmt [] = { 0x2A, 0x86, 0x48, 0xCE, 0x38, 0x01, 0x01}; -//1.2.840.10040.2 ANSI X9.57 holdinstruction -static const unsigned char cvOID_holdinstruction [] = { 0x2A, 0x86, 0x48, 0xCE, 0x38, 0x02}; -//1.2.840.10040.2.1 ANSI X9.57 hold instruction holdinstruction-none -static const unsigned char cvOID_holdinstruction_none [] = { 0x2A, 0x86, 0x48, 0xCE, 0x38, 0x02, 0x01}; -//1.2.840.10040.2.2 ANSI X9.57 hold instruction callissuer -static const unsigned char cvOID_callissuer [] = { 0x2A, 0x86, 0x48, 0xCE, 0x38, 0x02, 0x02}; -//1.2.840.10040.2.3 ANSI X9.57 hold instruction reject -static const unsigned char cvOID_reject [] = { 0x2A, 0x86, 0x48, 0xCE, 0x38, 0x02, 0x03}; -//1.2.840.10040.2.4 ANSI X9.57 hold instruction pickupToken -static const unsigned char cvOID_pickupToken [] = { 0x2A, 0x86, 0x48, 0xCE, 0x38, 0x02, 0x04}; -//1.2.840.10040.3 ANSI X9.57 attribute -static const unsigned char cvOID_attribute [] = { 0x2A, 0x86, 0x48, 0xCE, 0x38, 0x03}; -//1.2.840.10040.3.1 ANSI X9.57 attribute countersignature -static const unsigned char cvOID_countersignature [] = { 0x2A, 0x86, 0x48, 0xCE, 0x38, 0x03, 0x01}; -//1.2.840.10040.3.2 ANSI X9.57 attribute attribute-cert -static const unsigned char cvOID_attribute_cert [] = { 0x2A, 0x86, 0x48, 0xCE, 0x38, 0x03, 0x02}; -//1.2.840.10040.4 ANSI X9.57 algorithm -static const unsigned char cvOID_algorithm [] = { 0x2A, 0x86, 0x48, 0xCE, 0x38, 0x04}; -//1.2.840.10040.4.1 ANSI X9.57 algorithm dsa -static const unsigned char cvOID_dsa [] = { 0x2A, 0x86, 0x48, 0xCE, 0x38, 0x04, 0x01}; -//1.2.840.10040.4.2 ANSI X9.57 algorithm dsa-match -static const unsigned char cvOID_dsa_match [] = { 0x2A, 0x86, 0x48, 0xCE, 0x38, 0x04, 0x02}; -//1.2.840.10040.4.3 ANSI X9.57 algorithm dsaWithSha1 -static const unsigned char cvOID_dsaWithSha1 [] = { 0x2A, 0x86, 0x48, 0xCE, 0x38, 0x04, 0x03}; -//1.2.840.10045.1 ANSI X9.62. This OID is also assigned as ecdsa-with-SHA1 fieldType -static const unsigned char cvOID_fieldType [] = { 0x2A, 0x86, 0x48, 0xCE, 0x3D, 0x01}; -//1.2.840.10045.1.1 ANSI X9.62 field type prime-field -static const unsigned char cvOID_prime_field [] = { 0x2A, 0x86, 0x48, 0xCE, 0x3D, 0x01, 0x01}; -//1.2.840.10045.1.2 ANSI X9.62 field type characteristic-two-field -static const unsigned char cvOID_characteristic_two_field [] = { 0x2A, 0x86, 0x48, 0xCE, 0x3D, 0x01, 0x02}; -//1.2.840.10045.1.2.3 ANSI X9.62 field type characteristic-two-basis -static const unsigned char cvOID_characteristic_two_basis [] = { 0x2A, 0x86, 0x48, 0xCE, 0x3D, 0x01, 0x02, 0x03}; -//1.2.840.10045.1.2.3.1 ANSI X9.62 field basis onBasis -static const unsigned char cvOID_onBasis [] = { 0x2A, 0x86, 0x48, 0xCE, 0x3D, 0x01, 0x02, 0x03, 0x01}; -//1.2.840.10045.1.2.3.2 ANSI X9.62 field basis tpBasis -static const unsigned char cvOID_tpBasis [] = { 0x2A, 0x86, 0x48, 0xCE, 0x3D, 0x01, 0x02, 0x03, 0x02}; -//1.2.840.10045.1.2.3.3 ANSI X9.62 field basis ppBasis -static const unsigned char cvOID_ppBasis [] = { 0x2A, 0x86, 0x48, 0xCE, 0x3D, 0x01, 0x02, 0x03, 0x03}; -//1.2.840.10045.2 ANSI X9.62 publicKeyType -static const unsigned char cvOID_publicKeyType [] = { 0x2A, 0x86, 0x48, 0xCE, 0x3D, 0x02}; -//1.2.840.10045.2.1 ANSI X9.62 public key type ecPublicKey -static const unsigned char cvOID_ecPublicKey [] = { 0x2A, 0x86, 0x48, 0xCE, 0x3D, 0x02, 0x01}; -//1.2.840.10046.1 ANSI X9.42 fieldType -static const unsigned char cvOID_fieldType42 [] = { 0x2A, 0x86, 0x48, 0xCE, 0x3E, 0x01}; -//1.2.840.10046.1.1 ANSI X9.42 field type gf-prime -static const unsigned char cvOID_gf_prime [] = { 0x2A, 0x86, 0x48, 0xCE, 0x3E, 0x01, 0x01}; -//1.2.840.10046.2 ANSI X9.42 numberType -static const unsigned char cvOID_numberType [] = { 0x2A, 0x86, 0x48, 0xCE, 0x3E, 0x02}; -//1.2.840.10046.2.1 ANSI X9.42 number type dhPublicKey -static const unsigned char cvOID_dhPublicKey [] = { 0x2A, 0x86, 0x48, 0xCE, 0x3E, 0x02, 0x01}; -//1.2.840.10046.3 ANSI X9.42 scheme -static const unsigned char cvOID_scheme [] = { 0x2A, 0x86, 0x48, 0xCE, 0x3E, 0x03}; -//1.2.840.10046.3.1 ANSI X9.42 scheme dhStatic -static const unsigned char cvOID_dhStatic [] = { 0x2A, 0x86, 0x48, 0xCE, 0x3E, 0x03, 0x01}; -//1.2.840.10046.3.2 ANSI X9.42 scheme dhEphem -static const unsigned char cvOID_dhEphem [] = { 0x2A, 0x86, 0x48, 0xCE, 0x3E, 0x03, 0x02}; -//1.2.840.10046.3.3 ANSI X9.42 scheme dhHybrid1 -static const unsigned char cvOID_dhHybrid1 [] = { 0x2A, 0x86, 0x48, 0xCE, 0x3E, 0x03, 0x03}; -//1.2.840.10046.3.4 ANSI X9.42 scheme dhHybrid2 -static const unsigned char cvOID_dhHybrid2 [] = { 0x2A, 0x86, 0x48, 0xCE, 0x3E, 0x03, 0x04}; -//1.2.840.10046.3.5 ANSI X9.42 scheme mqv2 -static const unsigned char cvOID_mqv2 [] = { 0x2A, 0x86, 0x48, 0xCE, 0x3E, 0x03, 0x05}; -//1.2.840.10046.3.6 ANSI X9.42 scheme mqv1 -static const unsigned char cvOID_mqv1 [] = { 0x2A, 0x86, 0x48, 0xCE, 0x3E, 0x03, 0x06}; -//1.2.840.113533.7.65.0 Nortel Secure Networks ce (1 2 840 113533 7 65) entrustVersInfo -static const unsigned char cvOID_entrustVersInfo [] = { 0x2A, 0x86, 0x48, 0x86, 0xF6, 0x7D, 0x07, 0x41, 0x00}; -//1.2.840.113533.7.66.3 Nortel Secure Networks alg (1 2 840 113533 7 66) cast3CBC -static const unsigned char cvOID_cast3CBC [] = { 0x2A, 0x86, 0x48, 0x86, 0xF6, 0x7D, 0x07, 0x42, 0x03}; -//1.2.840.113533.7.66.10 Nortel Secure Networks alg (1 2 840 113533 7 66) cast5CBC -static const unsigned char cvOID_cast5CBC [] = { 0x2A, 0x86, 0x48, 0x86, 0xF6, 0x7D, 0x07, 0x42, 0x0A}; -//1.2.840.113533.7.66.11 Nortel Secure Networks alg (1 2 840 113533 7 66) cast5MAC -static const unsigned char cvOID_cast5MAC [] = { 0x2A, 0x86, 0x48, 0x86, 0xF6, 0x7D, 0x07, 0x42, 0x0B}; -//1.2.840.113533.7.66.12 Nortel Secure Networks alg (1 2 840 113533 7 66) pbeWithMD5AndCAST5-CBC -static const unsigned char cvOID_pbeWithMD5AndCAST5_CBC [] = { 0x2A, 0x86, 0x48, 0x86, 0xF6, 0x7D, 0x07, 0x42, 0x0C}; -//1.2.840.113533.7.66.13 Nortel Secure Networks alg (1 2 840 113533 7 66) passwordBasedMac -static const unsigned char cvOID_passwordBasedMac [] = { 0x2A, 0x86, 0x48, 0x86, 0xF6, 0x7D, 0x07, 0x42, 0x0D}; -//1.2.840.113 -static const unsigned char cvOID_entrustUser [] = { 0x2A, 0x86, 0x48, 0x86, 0xF6, 0x7D, 0x07, 0x43, 0x0C}; -//1.2.840.113533.7.68.0 Nortel Secure Networks at (1 2 840 113533 7 68) entrustCAInfo -static const unsigned char cvOID_entrustCAInfo [] = { 0x2A, 0x86, 0x48, 0x86, 0xF6, 0x7D, 0x07, 0x44, 0x00}; -//1.2.840.113533.7.68.10 Nortel Secure Networks at (1 2 840 113533 7 68) attributeCertificate -static const unsigned char cvOID_attributeCertificate [] = { 0x2A, 0x86, 0x48, 0x86, 0xF6, 0x7D, 0x07, 0x44, 0x0A}; -//1.2.840.113549.1.1.1 PKCS #1 rsaEncryption -static const unsigned char cvOID_rsaEncryption [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x01, 0x01}; -//1.2.840.113549.1.1.2 PKCS #1 md2withRSAEncryption -static const unsigned char cvOID_md2withRSAEncryption [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x01, 0x02}; -//1.2.840.113549.1.1.3 PKCS #1 md4withRSAEncryption -static const unsigned char cvOID_md4withRSAEncryption [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x01, 0x03}; -//1.2.840.113549.1.1.4 PKCS #1 md5withRSAEncryption -static const unsigned char cvOID_md5withRSAEncryption [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x01, 0x04}; -//1.2.840.113549.1.1.5 PKCS #1 sha1withRSAEncryption -static const unsigned char cvOID_sha1withRSAEncryption [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x01, 0x05}; -//1.2.840.113549.1.1.6 PKCS #1. This OID may also be assigned as ripemd160WithRSAEncryption rsaOAEPEncryptionSET -static const unsigned char cvOID_rsaOAEPEncryptionSET [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x01, 0x06}; -//1.2.840.113549.1.1.8 PKCS #1. id-mgf1 (0x2A864886F70D010108) -static const unsigned char cvOID_mgf1 [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x01, 0x08}; -//1.2.840.113549.1.1.10 PKCS #1. id-RSASSA-PSS (0x2A864886F70D01010A) -static const unsigned char cvOID_rsaSSA_PSS [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x01, 0x0A}; -//1.2.840.113549.1.2 Obsolete BSAFE OID bsafeRsaEncr -static const unsigned char cvOID_bsafeRsaEncr [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x01}; -//1.2.840.113549.1.3.1 PKCS #3 dhKeyAgreement -static const unsigned char cvOID_dhKeyAgreement [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x03, 0x01}; -//1.2.840.113549.1.5.1 PKCS #5 pbeWithMD2AndDES-CBC -static const unsigned char cvOID_pbeWithMD2AndDES_CBC [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x05, 0x01}; -//1.2.840.113549.1.5.3 PKCS #5 pbeWithMD5AndDES-CBC -static const unsigned char cvOID_pbeWithMD5AndDES_CBC [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x05, 0x03}; -//1.2.840.113549.1.5.4 PKCS #5 pbeWithMD2AndRC2-CBC -static const unsigned char cvOID_pbeWithMD2AndRC2_CBC [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x05, 0x04}; -//1.2.840.113549.1.5.6 PKCS #5 pbeWithMD5AndRC2-CBC -static const unsigned char cvOID_pbeWithMD5AndRC2_CBC [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x05, 0x06}; -//1.2.840.113549.1.5.9 PKCS #5, used in BSAFE only pbeWithMD5AndXOR -static const unsigned char cvOID_pbeWithMD5AndXOR [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x05, 0x09}; -//1.2.840.113549.1.5.10 PKCS #5 pbeWithSHAAndDES-CBC -static const unsigned char cvOID_pbeWithSHAAndDES_CBC [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x05, 0x0A}; -//1.2.840.113549.1.5.12 PKCS #5 v2.0 id-PBKDF2 -static const unsigned char cvOID_id_PBKDF2 [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x05, 0x0C}; -//1.2.840.113549.1.5.13 PKCS #5 v2.0 id-PBES2 -static const unsigned char cvOID_id_PBES2 [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x05, 0x0D}; -//1.2.840.113549.1.5.14 PKCS #5 v2.0 id-PBMAC1 -static const unsigned char cvOID_id_PBMAC1 [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x05, 0x0E}; -//1.2.840.113549.1.7.1 PKCS #7 data -static const unsigned char cvOID_data [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x07, 0x01}; -//1.2.840.113549.1.7.2 PKCS #7 signedData -static const unsigned char cvOID_signedData [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x07, 0x02}; -//1.2.840.113549.1.7.3 PKCS #7 envelopedData -static const unsigned char cvOID_envelopedData [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x07, 0x03}; -//1.2.840.113549.1.7.4 PKCS #7 signedAndEnvelopedData -static const unsigned char cvOID_signedAndEnvelopedData [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x07, 0x04}; -//1.2.840.113549.1.7.5 PKCS #7 digestedData -static const unsigned char cvOID_digestedData [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x07, 0x05}; -//1.2.840.113549.1.7.6 PKCS #7 encryptedData -static const unsigned char cvOID_encryptedData [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x07, 0x06}; -//1.2.840.113549.1.7.7 PKCS #7 experimental dataWithAttributes -static const unsigned char cvOID_dataWithAttributes [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x07, 0x07}; -//1.2.840.113549.1.7.8 PKCS #7 experimental encryptedPrivateKeyInfo -static const unsigned char cvOID_encryptedPrivateKeyInfo [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x07, 0x08}; -//1.2.840.113549.1.9.1 PKCS #9 (1 2 840 113549 1 9). Deprecated, use an altName extension instead emailAddress -static const unsigned char cvOID_emailAddress_PKCS9 [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x09, 0x01}; -//1.2.840.113549.1.9.2 PKCS #9 (1 2 840 113549 1 9) unstructuredName -static const unsigned char cvOID_unstructuredName [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x09, 0x02}; -//1.2.840.113549.1.9.3 PKCS #9 (1 2 840 113549 1 9) contentType -static const unsigned char cvOID_contentType [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x09, 0x03}; -//1.2.840.113549.1.9.4 PKCS #9 (1 2 840 113549 1 9) messageDigest -static const unsigned char cvOID_messageDigest [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x09, 0x04}; -//1.2.840.113549.1.9.5 PKCS #9 (1 2 840 113549 1 9) signingTime -static const unsigned char cvOID_signingTime [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x09, 0x05}; -//1.2.840.113549.1.9.6 PKCS #9 (1 2 840 113549 1 9) countersignature -static const unsigned char cvOID_countersignature_PKCS9 [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x09, 0x06}; -//1.2.840.113549.1.9.7 PKCS #9 (1 2 840 113549 1 9) challengePassword -static const unsigned char cvOID_challengePassword [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x09, 0x07}; -//1.2.840.113549.1.9.8 PKCS #9 (1 2 840 113549 1 9) unstructuredAddress -static const unsigned char cvOID_unstructuredAddress [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x09, 0x08}; -//1.2.840.113549.1.9.9 PKCS #9 (1 2 840 113549 1 9) extendedCertificateAttributes -static const unsigned char cvOID_extendedCertificateAttributes [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x09, 0x09}; -//1.2.840.113549.1.9.10 PKCS #9 (1 2 840 113549 1 9) experimental issuerAndSerialNumber -static const unsigned char cvOID_issuerAndSerialNumber [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x09, 0x0A}; -//1.2.840.113549.1.9.11 PKCS #9 (1 2 840 113549 1 9) experimental passwordCheck -static const unsigned char cvOID_passwordCheck [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x09, 0x0B}; -//1.2.840.113549.1.9.12 PKCS #9 (1 2 840 113549 1 9) experimental publicKey -static const unsigned char cvOID_publicKey [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x09, 0x0C}; -//1.2.840.113549.1.9.13 PKCS #9 (1 2 840 113549 1 9) experimental signingDescription -static const unsigned char cvOID_signingDescription [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x09, 0x0D}; -//1.2.840.113549.1.9.14 PKCS #9 (1 2 840 113549 1 9) experimental extensionReq -static const unsigned char cvOID_extensionReq [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x09, 0x0E}; -//1.2.840.113549.1.9.15 PKCS #9 (1 2 840 113549 1 9). This OID was formerly assigned as symmetricCapabilities, then reassigned as SMIMECapabilities, then renamed to the current name sMIMECapabilities -static const unsigned char cvOID_sMIMECapabilities [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x09, 0x0F}; -//1.2.840.113549.1.9.15.1 sMIMECapabilities (1 2 840 113549 1 9 15) preferSignedData -static const unsigned char cvOID_preferSignedData [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x09, 0x0F, 0x01}; -//1.2.840.113549.1.9.15.2 sMIMECapabilities (1 2 840 113549 1 9 15) canNotDecryptAny -static const unsigned char cvOID_canNotDecryptAny [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x09, 0x0F, 0x02}; -//1.2.840.113549.1.9.15.3 sMIMECapabilities (1 2 840 113549 1 9 15). Deprecated, use (1 2 840 113549 1 9 16 2 1) instead receiptRequest -static const unsigned char cvOID_receiptRequest [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x09, 0x0F, 0x03}; -//1.2.840.113549.1.9.15.4 sMIMECapabilities (1 2 840 113549 1 9 15). Deprecated, use (1 2 840 113549 1 9 16 1 1) instead receipt -static const unsigned char cvOID_receipt [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x09, 0x0F, 0x04}; -//1.2.840.113549.1.9.15.5 sMIMECapabilities (1 2 840 113549 1 9 15). Deprecated, use (1 2 840 113549 1 9 16 2 4) instead contentHints -static const unsigned char cvOID_contentHints [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x09, 0x0F, 0x05}; -//1.2.840.113549.1.9.15.6 sMIMECapabilities (1 2 840 113549 1 9 15). Deprecated, use (1 2 840 113549 1 9 16 2 3) instead mlExpansionHistory -static const unsigned char cvOID_mlExpansionHistory [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x09, 0x0F, 0x06}; -//1.2.840.113549.1.9.16 PKCS #9 (1 2 840 113549 1 9) id-sMIME -static const unsigned char cvOID_id_sMIME [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x09, 0x10}; -//1.2.840.113549.1.9.16.0 id-sMIME (1 2 840 113549 1 9 16) id-mod -static const unsigned char cvOID_id_mod [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x09, 0x10, 0x00}; -//1.2.840.113549.1.9.16.0.1 S/MIME Modules (1 2 840 113549 1 9 16 0) id-mod-cms -static const unsigned char cvOID_id_mod_cms [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x09, 0x10, 0x00, 0x01}; -//1.2.840.113549.1.9.16.0.2 S/MIME Modules (1 2 840 113549 1 9 16 0) id-mod-ess -static const unsigned char cvOID_id_mod_ess [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x09, 0x10, 0x00, 0x02}; -//1.2.840.113549.1.9.16.1 id-sMIME (1 2 840 113549 1 9 16) id-ct -static const unsigned char cvOID_id_ct [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x09, 0x10, 0x01}; -//1.2.840.113549.1.9.16.1.1 S/MIME Content Types (1 2 840 113549 1 9 16 1) id-ct-receipt -static const unsigned char cvOID_id_ct_receipt [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x09, 0x10, 0x01, 0x01}; -//1.2.840.113549.1.9.16.1.2 S/MIME Content Types (1 2 840 113549 1 9 16 1) id-ct-authData -static const unsigned char cvOID_id_ct_authData [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x09, 0x10, 0x01, 0x02}; -//1.2.840.113549.1.9.16.1.3 S/MIME Content Types (1 2 840 113549 1 9 16 1) id-ct-compressedData -static const unsigned char cvOID_id_ct_compressedData [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x09, 0x10, 0x01, 0x03}; -//1.2.840.113549.1.9.16.2 id-sMIME (1 2 840 113549 1 9 16) id-aa -static const unsigned char cvOID_id_aa [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x09, 0x10, 0x02}; -//1.2.840.113549.1.9.16.2.1 S/MIME Authenticated Attributes (1 2 840 113549 1 9 16 2) id-aa-receiptRequest -static const unsigned char cvOID_id_aa_receiptRequest [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x09, 0x10, 0x02, 0x01}; -//1.2.840.113549.1.9.16.2.2 S/MIME Authenticated Attributes (1 2 840 113549 1 9 16 2) id-aa-securityLabel -static const unsigned char cvOID_id_aa_securityLabel [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x09, 0x10, 0x02, 0x02}; -//1.2.840.113549.1.9.16.2.3 S/MIME Authenticated Attributes (1 2 840 113549 1 9 16 2) id-aa-mlExpandHistory -static const unsigned char cvOID_id_aa_mlExpandHistory [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x09, 0x10, 0x02, 0x03}; -//1.2.840.113549.1.9.16.2.4 S/MIME Authenticated Attributes (1 2 840 113549 1 9 16 2) id-aa-contentHint -static const unsigned char cvOID_id_aa_contentHint [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x09, 0x10, 0x02, 0x04}; -//1.2.840.113549.1.9.16.2.5 S/MIME Authenticated Attributes (1 2 840 113549 1 9 16 2) id-aa-msgSigDigest -static const unsigned char cvOID_id_aa_msgSigDigest [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x09, 0x10, 0x02, 0x05}; -//1.2.840.113549.1.9.16.2.7 S/MIME Authenticated Attributes (1 2 840 113549 1 9 16 2) id-aa-contentIdentifier -static const unsigned char cvOID_id_aa_contentIdentifier [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x09, 0x10, 0x02, 0x07}; -//1.2.840.113549.1.9.16.2.8 S/MIME Authenticated Attributes (1 2 840 113549 1 9 16 2) id-aa-macValue -static const unsigned char cvOID_id_aa_macValue [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x09, 0x10, 0x02, 0x08}; -//1.2.840.113549.1.9.16.2.9 S/MIME Authenticated Attributes (1 2 840 113549 1 9 16 2) id-aa-equivalentLabels -static const unsigned char cvOID_id_aa_equivalentLabels [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x09, 0x10, 0x02, 0x09}; -//1.2.840.113549.1.9.16.2.10 S/MIME Authenticated Attributes (1 2 840 113549 1 9 16 2) id-aa-contentReference -static const unsigned char cvOID_id_aa_contentReference [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x09, 0x10, 0x02, 0x0A}; -//1.2.840.113549.1.9.16.3.5 S/MIME Algorithms (1 2 840 113549 1 9 16 3) id-alg-ESDH -static const unsigned char cvOID_id_alg_ESDH [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x09, 0x10, 0x03, 0x05}; -//1.2.840.113549.1.9.16.3.6 S/MIME Algorithms (1 2 840 113549 1 9 16 3) id-alg-CMS3DESwrap -static const unsigned char cvOID_id_alg_CMS3DESwrap [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x09, 0x10, 0x03, 0x06}; -//1.2.840.113549.1.9.16.3.7 S/MIME Algorithms (1 2 840 113549 1 9 16 3) id-alg-CMSRC2wrap -static const unsigned char cvOID_id_alg_CMSRC2wrap [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x09, 0x10, 0x03, 0x07}; -//1.2.840.113549.1.9.16.3.8 S/MIME Algorithms (1 2 840 113549 1 9 16 3) id-alg-zlib -static const unsigned char cvOID_id_alg_zlib [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x09, 0x10, 0x03, 0x08}; -//1.2.840.113549.1.9.20 PKCS #9 (1 2 840 113549 1 9) friendlyName (for PKCS #12) -static const unsigned char cvOID_friendlyName [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x09, 0x14}; -//1.2.840.113549.1.9.21 PKCS #9 (1 2 840 113549 1 9) localKeyID (for PKCS #12) -static const unsigned char cvOID_localKeyID[] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x09, 0x15}; -//1.2.840.113549.1.9.22 PKCS #9 (1 2 840 113549 1 9) certTypes (for PKCS #12) -static const unsigned char cvOID_certTypes[] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x09, 0x16}; -//1.2.840.113549.1.9.22.1 PKCS #9 (1 2 840 113549 1 9) x509Certificate (for PKCS #12) -static const unsigned char cvOID_x509Certificate[] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x09, 0x16, 0x01}; -//1.2.840.113549.1.9.22.2 PKCS #9 (1 2 840 113549 1 9) sdsiCertificate (for PKCS #12) -static const unsigned char cvOID_sdsiCertificate [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x09, 0x16, 0x02}; -//1.2.840.113549.1.9.23 PKCS #9 (1 2 840 113549 1 9) crlTypes (for PKCS #12) -static const unsigned char cvOID_crlTypes[] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x09, 0x17}; -//1.2.840.113549.1.9.23.1 PKCS #9 (1 2 840 113549 1 9) x509Crl (for PKCS #12) -static const unsigned char cvOID_x509Crl[] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x09, 0x17, 0x01}; -//1.2.840.113549.1.12.1 This OID was formerly assigned as PKCS #12 modeID pkcs-12-PbeIds -static const unsigned char cvOID_pkcs_12_PbeIds [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x0C, 0x01}; -//1.2.840.113549.1.12.1.1 PKCS #12 PbeIds (1 2 840 113549 1 12 1). This OID was formerly assigned as pkcs-12-OfflineTransportMode pbeWithSHAAnd128BitRC4 -static const unsigned char cvOID_pbeWithSHAAnd128BitRC4 [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x0C, 0x01, 0x01}; -//1.2.840.113549.1.12.1.2 PKCS #12 PbeIds (1 2 840 113549 1 12 2). This OID was formerly assigned as pkcs-12-OnlineTransportMode pbeWithSHAAnd40BitRC4 -static const unsigned char cvOID_pbeWithSHAAnd40BitRC4 [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x0C, 0x01, 0x02}; -//1.2.840.113549.1.12.1.3 PKCS #12 PbeIds (1 2 840 113549 1 12 3) pbeWithSHAAnd3-KeyTripleDES-CBC -static const unsigned char cvOID_pbeWithSHAAnd3_KeyTripleDES_CBC [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x0C, 0x01, 0x03}; -//1.2.840.113549.1.12.1.4 PKCS #12 PbeIds (1 2 840 113549 1 12 3) pbeWithSHAAnd2-KeyTripleDES-CBC -static const unsigned char cvOID_pbeWithSHAAnd2_KeyTripleDES_CBC [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x0C, 0x01, 0x04}; -//1.2.840.113549.1.12.1.5 PKCS #12 PbeIds (1 2 840 113549 1 12 3) pbeWithSHAAnd128BitRC2-CBC -static const unsigned char cvOID_pbeWithSHAAnd128BitRC2_CBC [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x0C, 0x01, 0x05}; -//1.2.840.113549.1.12.1.6 PKCS #12 PbeIds (1 2 840 113549 1 12 3) pbeWithSHAAnd40BitRC2-CBC -static const unsigned char cvOID_pbeWithSHAAnd40BitRC2_CBC [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x0C, 0x01, 0x06}; -//1.2.840.113549.1.12.2 Deprecated pkcs-12-ESPVKID -static const unsigned char cvOID_pkcs_12_ESPVKID [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x0C, 0x02}; -//1.2.840.113549.1.12.2.1 PKCS #12 ESPVKID (1 2 840 113549 1 12 2). Deprecated, use (1 2 840 113549 1 12 3 5) instead pkcs-12-PKCS8KeyShrouding -static const unsigned char cvOID_pkcs_12_PKCS8KeyShrouding [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x0C, 0x02, 0x01}; -//1.2.840.113549.1.12.3.1 PKCS #12 BagIds (1 2 840 113549 1 12 3) pkcs-12-keyBagId -static const unsigned char cvOID_pkcs_12_keyBagId [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x0C, 0x03, 0x01}; -//1.2.840.113549.1.12.3.2 PKCS #12 BagIds (1 2 840 113549 1 12 3) pkcs-12-certAndCRLBagId -static const unsigned char cvOID_pkcs_12_certAndCRLBagId [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x0C, 0x03, 0x02}; -//1.2.840.113549.1.12.3.3 PKCS #12 BagIds (1 2 840 113549 1 12 3) pkcs-12-secretBagId -static const unsigned char cvOID_pkcs_12_secretBagId [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x0C, 0x03, 0x03}; -//1.2.840.113549.1.12.3.4 PKCS #12 BagIds (1 2 840 113549 1 12 3) pkcs-12-safeContentsId -static const unsigned char cvOID_pkcs_12_safeContentsId [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x0C, 0x03, 0x04}; -//1.2.840.113549.1.12.3.5 PKCS #12 BagIds (1 2 840 113549 1 12 3) pkcs-12-pkcs-8ShroudedKeyBagId -static const unsigned char cvOID_pkcs_12_pkcs_8ShroudedKeyBagId [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x0C, 0x03, 0x05}; -//1.2.840.113549.1.12.4 Deprecated pkcs-12-CertBagID -static const unsigned char cvOID_pkcs_12_CertBagID [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x0C, 0x04}; -//1.2.840.113549.1.12.4.1 PKCS #12 CertBagID (1 2 840 113549 1 12 4). This OID was formerly assigned as pkcs-12-X509CertCRLBag pkcs-12-X509CertCRLBagID -static const unsigned char cvOID_pkcs_12_X509CertCRLBagID [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x0C, 0x04, 0x01}; -//1.2.840.113549.1.12.4.2 PKCS #12 CertBagID (1 2 840 113549 1 12 4). This OID was formerly assigned as pkcs-12-SDSICertBag pkcs-12-SDSICertBagID -static const unsigned char cvOID_pkcs_12_SDSICertBagID [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x0C, 0x04, 0x02}; -//1.2.840.113549.1.12.5.1 PKCS #12 OID (1 2 840 113549 1 12 5). Deprecated, use the partially compatible (1 2 840 113549 1 12 1) OIDs instead pkcs-12-PBEID -static const unsigned char cvOID_pkcs_12_PBEID [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x0C, 0x05, 0x01}; -//1.2.840.113549.1.12.5.1.1 PKCS #12 OID PBEID (1 2 840 113549 1 12 5 1). Deprecated, use (1 2 840 113549 1 12 1 1) instead pkcs-12-PBEWithSha1And128BitRC4 -static const unsigned char cvOID_pkcs_12_PBEWithSha1And128BitRC4 [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x0C, 0x05, 0x01, 0x01}; -//1.2.840.113549.1.12.5.1.2 PKCS #12 OID PBEID (1 2 840 113549 1 12 5 1). Deprecated, use (1 2 840 113549 1 12 1 2) instead pkcs-12-PBEWithSha1And40BitRC4 -static const unsigned char cvOID_pkcs_12_PBEWithSha1And40BitRC4 [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x0C, 0x05, 0x01, 0x02}; -//1.2.840.113549.1.12.5.1.3 PKCS #12 OID PBEID (1 2 840 113549 1 12 5 1). Deprecated, use the incompatible but similar (1 2 840 113549 1 12 1 3) or (1 2 840 113549 1 12 1 4) instead pkcs-12-PBEWithSha1AndTripleDESCBC -static const unsigned char cvOID_pkcs_12_PBEWithSha1AndTripleDESCBC [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x0C, 0x05, 0x01, 0x03}; -//1.2.840.113549.1.12.5.1.4 PKCS #12 OID PBEID (1 2 840 113549 1 12 5 1). Deprecated, use (1 2 840 113549 1 12 1 5) instead pkcs-12-PBEWithSha1And128BitRC2CBC -static const unsigned char cvOID_pkcs_12_PBEWithSha1And128BitRC2CBC [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x0C, 0x05, 0x01, 0x04}; -//1.2.840.113549.1.12.5.1.5 PKCS #12 OID PBEID (1 2 840 113549 1 12 5 1). Deprecated, use (1 2 840 113549 1 12 1 6) instead pkcs-12-PBEWithSha1And40BitRC2CBC -static const unsigned char cvOID_pkcs_12_PBEWithSha1And40BitRC2CBC [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x0C, 0x05, 0x01, 0x05}; -//1.2.840.113549.1.12.5.1.6 PKCS #12 OID PBEID (1 2 840 113549 1 12 5 1). Deprecated, use the incompatible but similar (1 2 840 113549 1 12 1 1) or (1 2 840 113549 1 12 1 2) instead pkcs-12-PBEWithSha1AndRC4 -static const unsigned char cvOID_pkcs_12_PBEWithSha1AndRC4 [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x0C, 0x05, 0x01, 0x06}; -//1.2.840.113549.1.12.5.1.7 PKCS #12 OID PBEID (1 2 840 113549 1 12 5 1). Deprecated, use the incompatible but similar (1 2 840 113549 1 12 1 5) or (1 2 840 113549 1 12 1 6) instead pkcs-12-PBEWithSha1AndRC2CBC -static const unsigned char cvOID_pkcs_12_PBEWithSha1AndRC2CBC [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x0C, 0x05, 0x01, 0x07}; -//1.2.840.113549.1.12.5.2.1 PKCS #12 OID EnvelopingID (1 2 840 113549 1 12 5 2). Deprecated, use the conventional PKCS #1 OIDs instead pkcs-12-RSAEncryptionWith128BitRC4 -static const unsigned char cvOID_pkcs_12_RSAEncryptionWith128BitRC4 [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x0C, 0x05, 0x02, 0x01}; -//1.2.840.113549.1.12.5.2.2 PKCS #12 OID EnvelopingID (1 2 840 113549 1 12 5 2). Deprecated, use the conventional PKCS #1 OIDs instead pkcs-12-RSAEncryptionWith40BitRC4 -static const unsigned char cvOID_pkcs_12_RSAEncryptionWith40BitRC4 [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x0C, 0x05, 0x02, 0x02}; -//1.2.840.113549.1.12.5.2.3 PKCS #12 OID EnvelopingID (1 2 840 113549 1 12 5 2). Deprecated, use the conventional PKCS #1 OIDs instead pkcs-12-RSAEncryptionWithTripleDES -static const unsigned char cvOID_pkcs_12_RSAEncryptionWithTripleDES [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x0C, 0x05, 0x02, 0x03}; -//1.2.840.113549.1.12.5.3.1 PKCS #12 OID SignatureID (1 2 840 113549 1 12 5 3). Deprecated, use the conventional PKCS #1 OIDs instead pkcs-12-RSASignatureWithSHA1Digest -static const unsigned char cvOID_pkcs_12_RSASignatureWithSHA1Digest [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x0C, 0x05, 0x03, 0x01}; -//1.2.840.113549.1.12.10.1.1 PKCS #12 BagIds (1 2 840 113549 1 12 10 1) pkcs-12-keyBag -static const unsigned char cvOID_pkcs_12_keyBag [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x0C, 0x0A, 0x01, 0x01}; -//1.2.840.113549.1.12.10.1.2 PKCS #12 BagIds (1 2 840 113549 1 12 10 1) pkcs-12-pkcs-8ShroudedKeyBag -static const unsigned char cvOID_pkcs_12_pkcs_8ShroudedKeyBag [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x0C, 0x0A, 0x01, 0x02}; -//1.2.840.113549.1.12.10.1.3 PKCS #12 BagIds (1 2 840 113549 1 12 10 1) pkcs-12-certBag -static const unsigned char cvOID_pkcs_12_certBag [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x0C, 0x0A, 0x01, 0x03}; -//1.2.840.113549.1.12.10.1.4 PKCS #12 BagIds (1 2 840 113549 1 12 10 1) pkcs-12-crlBag -static const unsigned char cvOID_pkcs_12_crlBag [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x0C, 0x0A, 0x01, 0x04}; -//1.2.840.113549.1.12.10.1.5 PKCS #12 BagIds (1 2 840 113549 1 12 10 1) pkcs-12-secretBag -static const unsigned char cvOID_pkcs_12_secretBag [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x0C, 0x0A, 0x01, 0x05}; -//1.2.840.113549.1.12.10.1.6 PKCS #12 BagIds (1 2 840 113549 1 12 10 1) pkcs-12-safeContentsBag -static const unsigned char cvOID_pkcs_12_safeContentsBag [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x0C, 0x0A, 0x01, 0x06}; -//1.2.840.113549.2.2 RSADSI digestAlgorithm (1 2 840 113549 2) md2 -static const unsigned char cvOID_md2 [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x02, 0x02}; -//1.2.840.113549.2.4 RSADSI digestAlgorithm (1 2 840 113549 2) md4 -static const unsigned char cvOID_md4 [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x02, 0x04}; -//1.2.840.113549.2.5 RSADSI digestAlgorithm (1 2 840 113549 2) md5 -static const unsigned char cvOID_md5 [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x02, 0x05}; -//1.2.840.113549.3.2 RSADSI encryptionAlgorithm (1 2 840 113549 3) rc2CBC -static const unsigned char cvOID_rc2CBC [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x03, 0x02}; -//1.2.840.113549.3.3 RSADSI encryptionAlgorithm (1 2 840 113549 3) rc2ECB -static const unsigned char cvOID_rc2ECB [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x03, 0x03}; -//1.2.840.113549.3.4 RSADSI encryptionAlgorithm (1 2 840 113549 3) rc4 -static const unsigned char cvOID_rc4 [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x03, 0x04}; -//1.2.840.113549.3.5 RSADSI encryptionAlgorithm (1 2 840 113549 3) rc4WithMAC -static const unsigned char cvOID_rc4WithMAC [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x03, 0x05}; -//1.2.840.113549.3.6 RSADSI encryptionAlgorithm (1 2 840 113549 3) desx-CBC -static const unsigned char cvOID_desx_CBC [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x03, 0x06}; -//1.2.840.113549.3.7 RSADSI encryptionAlgorithm (1 2 840 113549 3) des-EDE3-CBC -static const unsigned char cvOID_des_EDE3_CBC [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x03, 0x07}; -//1.2.840.113549.3.8 RSADSI encryptionAlgorithm (1 2 840 113549 3) rc5CBC -static const unsigned char cvOID_rc5CBC [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x03, 0x08}; -//1.2.840.113549.3.9 RSADSI encryptionAlgorithm (1 2 840 113549 3) rc5-CBCPad -static const unsigned char cvOID_rc5_CBCPad [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x03, 0x09}; -//1.2.840.113549.3.10 RSADSI encryptionAlgorithm (1 2 840 113549 3). Formerly called CDMFCBCPad desCDMF -static const unsigned char cvOID_desCDMF [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x03, 0x0A}; -//1.3.6.1.4.1.188.7.1.1 Ascom Systech ascom -static const unsigned char cvOID_ascom [] = { 0x2B, 0x06, 0x01, 0x04, 0x01, 0x81, 0x3C, 0x07, 0x01, 0x01}; -//1.3.6.1.4.1.188.7.1.1.1 Ascom Systech ideaECB -static const unsigned char cvOID_ideaECB [] = { 0x2B, 0x06, 0x01, 0x04, 0x01, 0x81, 0x3C, 0x07, 0x01, 0x01, 0x01}; -//1.3.6.1.4.1.188.7.1.1.2 Ascom Systech ideaCBC -static const unsigned char cvOID_ideaCBC [] = { 0x2B, 0x06, 0x01, 0x04, 0x01, 0x81, 0x3C, 0x07, 0x01, 0x01, 0x02}; -//1.3.6.1.4.1.188.7.1.1.3 Ascom Systech ideaCFB -static const unsigned char cvOID_ideaCFB [] = { 0x2B, 0x06, 0x01, 0x04, 0x01, 0x81, 0x3C, 0x07, 0x01, 0x01, 0x03}; -//1.3.6.1.4.1.188.7.1.1.4 Ascom Systech ideaOFB -static const unsigned char cvOID_ideaOFB [] = { 0x2B, 0x06, 0x01, 0x04, 0x01, 0x81, 0x3C, 0x07, 0x01, 0x01, 0x04}; -//1.2.840.113556.4.3 Microsoft microsoftExcel -static const unsigned char cvOID_microsoftExcel [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x14, 0x04, 0x03}; -//1.2.840.113556.4.4 Microsoft titledWithOID -static const unsigned char cvOID_titledWithOID [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x14, 0x04, 0x04}; -//1.2.840.113556.4.5 Microsoft microsoftPowerPoint -static const unsigned char cvOID_microsoftPowerPoint [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x14, 0x04, 0x05}; -//1.3.6.1.4.1.311.2.1.4 Microsoft code signing spcIndirectDataContext -static const unsigned char cvOID_spcIndirectDataContext [] = { 0x2B, 0x06, 0x01, 0x04, 0x01, 0x82, 0x37, 0x02, 0x01, 0x04}; -//1.3.6.1.4.1.311.2.1.10 Microsoft code signing. Also known as policyLink spcAgencyInfo -static const unsigned char cvOID_spcAgencyInfo [] = { 0x2B, 0x06, 0x01, 0x04, 0x01, 0x82, 0x37, 0x02, 0x01, 0x0A}; -//1.3.6.1.4.1.311.2.1.11 Microsoft code signing spcStatementType -static const unsigned char cvOID_spcStatementType [] = { 0x2B, 0x06, 0x01, 0x04, 0x01, 0x82, 0x37, 0x02, 0x01, 0x0B}; -//1.3.6.1.4.1.311.2.1.12 Microsoft code signing spcSpOpusInfo -static const unsigned char cvOID_spcSpOpusInfo [] = { 0x2B, 0x06, 0x01, 0x04, 0x01, 0x82, 0x37, 0x02, 0x01, 0x0C}; -//1.3.6.1.4.1.311.2.1.14 Microsoft certReqExtensions -static const unsigned char cvOID_certReqExtensions [] = { 0x2B, 0x06, 0x01, 0x04, 0x01, 0x82, 0x37, 0x02, 0x01, 0x0E}; -//1.3.6.1.4.1.311.2.1.15 Microsoft code signing spcPelmageData -static const unsigned char cvOID_spcPelmageData [] = { 0x2B, 0x06, 0x01, 0x04, 0x01, 0x82, 0x37, 0x02, 0x01, 0x0F}; -//1.3.6.1.4.1.311.2.1.20 Microsoft code signing. Also known as "glue extension" spcLink (type 1) -static const unsigned char cvOID_spcLink_1[] = { 0x2B, 0x06, 0x01, 0x04, 0x01, 0x82, 0x37, 0x02, 0x01, 0x14}; -//1.3.6.1.4.1.311.2.1.21 Microsoft individualCodeSigning -static const unsigned char cvOID_individualCodeSigning [] = { 0x2B, 0x06, 0x01, 0x04, 0x01, 0x82, 0x37, 0x02, 0x01, 0x15}; -//1.3.6.1.4.1.311.2.1.22 Microsoft commercialCodeSigning -static const unsigned char cvOID_commercialCodeSigning [] = { 0x2B, 0x06, 0x01, 0x04, 0x01, 0x82, 0x37, 0x02, 0x01, 0x16}; -//1.3.6.1.4.1.311.2.1.25 Microsoft code signing. Also known as "glue extension" spcLink (type 2) -static const unsigned char cvOID_spcLink_2[] = { 0x2B, 0x06, 0x01, 0x04, 0x01, 0x82, 0x37, 0x02, 0x01, 0x19}; -//1.3.6.1.4.1.311.2.1.26 Microsoft code signing spcMinimalCriteriaInfo -static const unsigned char cvOID_spcMinimalCriteriaInfo [] = { 0x2B, 0x06, 0x01, 0x04, 0x01, 0x82, 0x37, 0x02, 0x01, 0x1A}; -//1.3.6.1.4.1.311.2.1.27 Microsoft code signing spcFinancialCriteriaInfo -static const unsigned char cvOID_spcFinancialCriteriaInfo [] = { 0x2B, 0x06, 0x01, 0x04, 0x01, 0x82, 0x37, 0x02, 0x01, 0x1B}; -//1.3.6.1.4.1.311.2.1.28 Microsoft code signing. Also known as "glue extension" spcLink (type 3) -static const unsigned char cvOID_spcLink_3[] = { 0x2B, 0x06, 0x01, 0x04, 0x01, 0x82, 0x37, 0x02, 0x01, 0x1C}; -//1.3.6.1.4.1.311.3.2.1 Microsoft code signing timestampCountersignature -static const unsigned char cvOID_timestampCountersignature [] = { 0x2B, 0x06, 0x01, 0x04, 0x01, 0x82, 0x37, 0x03, 0x02, 0x01}; -//1.3.6.1.4.1.311.10.1 Microsoft PKCS #7 contentType certTrustList -static const unsigned char cvOID_certTrustList [] = { 0x2B, 0x06, 0x01, 0x04, 0x01, 0x82, 0x37, 0x0A, 0x01}; -//1.3.6.1.4.1.311.10.2 Microsoft nextUpdateLocation -static const unsigned char cvOID_nextUpdateLocation [] = { 0x2B, 0x06, 0x01, 0x04, 0x01, 0x82, 0x37, 0x0A, 0x02}; -//1.3.6.1.4.1.311.10.3.1 Microsoft enhanced key usage certTrustListSigning -static const unsigned char cvOID_certTrustListSigning [] = { 0x2B, 0x06, 0x01, 0x04, 0x01, 0x82, 0x37, 0x0A, 0x03, 0x01}; -//1.3.6.1.4.1.311.10.3.2 Microsoft enhanced key usage timeStampSigning -static const unsigned char cvOID_timeStampSigning [] = { 0x2B, 0x06, 0x01, 0x04, 0x01, 0x82, 0x37, 0x0A, 0x03, 0x02}; -//1.3.6.1.4.1.311.10.3.3 Microsoft enhanced key usage serverGatedCrypto -static const unsigned char cvOID_serverGatedCrypto [] = { 0x2B, 0x06, 0x01, 0x04, 0x01, 0x82, 0x37, 0x0A, 0x03, 0x03}; -//1.3.6.1.4.1.311.10.3.4 Microsoft enhanced key usage encryptedFileSystem -static const unsigned char cvOID_encryptedFileSystem [] = { 0x2B, 0x06, 0x01, 0x04, 0x01, 0x82, 0x37, 0x0A, 0x03, 0x04}; -//1.3.6.1.4.1.311.10.4.1 Microsoft attribute yesnoTrustAttr -static const unsigned char cvOID_yesnoTrustAttr [] = { 0x2B, 0x06, 0x01, 0x04, 0x01, 0x82, 0x37, 0x0A, 0x04, 0x01}; -//1.3.6.1.4.1.311.16.4 Microsoft S/MIME cert attribute microsoftEncryptionCert -static const unsigned char cvOID_microsoftEncryptionCert [] = { 0x2B, 0x06, 0x01, 0x04, 0x01, 0x82, 0x37, 0x10, 0x04}; -//1.3.6.1.4.1.311.20.2.2 Microsoft enhanced key usage smartcardLogon -static const unsigned char cvOID_smartcardLogon [] = { 0x2B, 0x06, 0x01, 0x04, 0x01, 0x82, 0x37, 0x14, 0x02, 0x02}; -//1.3.6.1.4.1.311.21.1 Microsoft attribute cAKeyCertIndexPair -static const unsigned char cvOID_cAKeyCertIndexPair [] = { 0x2B, 0x06, 0x01, 0x04, 0x01, 0x82, 0x37, 0x15, 0x01}; -//1.3.6.1.4.1.311.13.2.2 Microsoft attribute Unknown MS CryptoAPI-related extension -static const unsigned char cvOID_Unknown_MS_CryptoAPI_related_extension [] = { 0x2B, 0x06, 0x01, 0x04, 0x01, 0x82, 0x37, 0x0D, 0x02, 0x02}; -//1.3.6.1.4.1.311.16.4 Microsoft attribute microsoftRecipientInfo -static const unsigned char cvOID_microsoftRecipientInfo [] = { 0x2B, 0x06, 0x01, 0x04, 0x01, 0x82, 0x37, 0x10, 0x04}; -//1.3.6.1.4.1.2428.10.1.1 UNINETT PCA UNINETT policyIdentifier -static const unsigned char cvOID_UNINETT_policyIdentifier [] = { 0x2B, 0x06, 0x01, 0x04, 0x01, 0x92, 0x7C, 0x0A, 0x01, 0x01}; -//1.3.6.1.4.1.2712.10 ICE-TEL CA ICE-TEL policyIdentifier -static const unsigned char cvOID_ICE_TEL_policyIdentifier [] = { 0x2B, 0x06, 0x01, 0x04, 0x01, 0x95, 0x18, 0x0A}; -//1.3.6.1.4.1.2786.1.1.1 ICE-TEL CA policy ICE-TEL Italian policyIdentifier -static const unsigned char cvOID_ICE_TEL_Italian_policyIdentifier [] = { 0x2B, 0x06, 0x01, 0x04, 0x01, 0x95, 0x62, 0x01, 0x01, 0x01}; -//1.3.6.1.4.1.3029.1.1 cryptlib encryption algorithm blowfishECB -static const unsigned char cvOID_blowfishECB [] = { 0x2B, 0x06, 0x01, 0x04, 0x01, 0x97, 0x55, 0x01, 0x01}; -//1.3.6.1.4.1.3029.1.2 cryptlib encr -static const unsigned char cvOID_blowfishCBC [] = { 0x2B, 0x06, 0x01, 0x04, 0x01, 0x97, 0x55, 0x01, 0x02}; -//1.3.6.1.4.1.3029.1.3 cryptlib encryption algorithm blowfishCFB -static const unsigned char cvOID_blowfishCFB [] = { 0x2B, 0x06, 0x01, 0x04, 0x01, 0x97, 0x55, 0x01, 0x03}; -//1.3.6.1.4.1.3029.1.4 cryptlib encryption algorithm blowfishOFB -static const unsigned char cvOID_blowfishOFB [] = { 0x2B, 0x06, 0x01, 0x04, 0x01, 0x97, 0x55, 0x01, 0x04}; -//1.3.6.1.4.1.3029.3.1 cryptlib public-key algorithm elgamal -static const unsigned char cvOID_elgamal [] = { 0x2B, 0x06, 0x01, 0x04, 0x01, 0x97, 0x55, 0x03, 0x01}; -//1.3.6.1.4.1.3029.3.1.1 cryptlib public-key algorithm elgamalWithSHA-1 -static const unsigned char cvOID_elgamalWithSHA_1 [] = { 0x2B, 0x06, 0x01, 0x04, 0x01, 0x97, 0x55, 0x03, 0x01, 0x01}; -//1.3.6.1.4.1.3029.3.1.2 cryptlib public-key algorithm elgamalWithRIPEMD-160 -static const unsigned char cvOID_elgamalWithRIPEMD_160 [] = { 0x2B, 0x06, 0x01, 0x04, 0x01, 0x97, 0x55, 0x03, 0x01, 0x02}; -//1.3.6.1.4.1.3029.32.1 cryptlib cryptlibPrivateKey -static const unsigned char cvOID_cryptlibPrivateKey [] = { 0x2B, 0x06, 0x01, 0x04, 0x01, 0x97, 0x55, 0x20, 0x01}; -//1.3.6.1.4.1.3029.42.11172.1 cryptlib special MPEG-of-cat OID mpeg-1 -static const unsigned char cvOID_mpeg_1 [] = { 0x2B, 0x06, 0x01, 0x04, 0x01, 0x97, 0x55, 0x2A, 0xD7, 0x24, 0x01}; -//1.3.6.1.5.5.7.1 PKIX privateExtension -static const unsigned char cvOID_privateExtension [] = { 0x2B, 0x06, 0x01, 0x05, 0x05, 0x07, 0x01}; -//1.3.6.1.5.5.7.1.1 PKIX private extension authorityInfoAccess -static const unsigned char cvOID_authorityInfoAccess [] = { 0x2B, 0x06, 0x01, 0x05, 0x05, 0x07, 0x01, 0x01}; - -//ame -//1.3.6.1.5.5.7.1.11 PKIX private extension subjectInfoAccess -static const unsigned char cvOID_subjectInfoAccess [] = { 0x2B, 0x06, 0x01, 0x05, 0x05, 0x07, 0x01, 0x0a}; - -//1.3.6.1.5.5.7.2 PKIX policyQualifierIds -static const unsigned char cvOID_policyQualifierIds [] = { 0x2B, 0x06, 0x01, 0x05, 0x05, 0x07, 0x02}; -//1.3.6.1.5.5.7.2.1 PKIX policy qualifier cps -static const unsigned char cvOID_cps [] = { 0x2B, 0x06, 0x01, 0x05, 0x05, 0x07, 0x02, 0x01}; -//1.3.6.1.5.5.7.2.2 PKIX policy qualifier unotice -static const unsigned char cvOID_unotice [] = { 0x2B, 0x06, 0x01, 0x05, 0x05, 0x07, 0x02, 0x02}; -//1.3.6.1.5.5.7.3 PKIX keyPurpose -static const unsigned char cvOID_keyPurpose [] = { 0x2B, 0x06, 0x01, 0x05, 0x05, 0x07, 0x03}; -//1.3.6.1.5.5.7.3.1 PKIX key purpose serverAuth -static const unsigned char cvOID_serverAuth [] = { 0x2B, 0x06, 0x01, 0x05, 0x05, 0x07, 0x03, 0x01}; -//1.3.6.1.5.5.7.3.2 PKIX key purpose clientAuth -static const unsigned char cvOID_clientAuth [] = { 0x2B, 0x06, 0x01, 0x05, 0x05, 0x07, 0x03, 0x02}; -//1.3.6.1.5.5.7.3.3 PKIX key purpose codeSigning -static const unsigned char cvOID_codeSigning [] = { 0x2B, 0x06, 0x01, 0x05, 0x05, 0x07, 0x03, 0x03}; -//1.3.6.1.5.5.7.3.4 PKIX key purpose emailProtection -static const unsigned char cvOID_emailProtection [] = { 0x2B, 0x06, 0x01, 0x05, 0x05, 0x07, 0x03, 0x04}; -//1.3.6.1.5.5.7.3.5 PKIX key purpose ipsecEndSystem -static const unsigned char cvOID_ipsecEndSystem [] = { 0x2B, 0x06, 0x01, 0x05, 0x05, 0x07, 0x03, 0x05}; -//1.3.6.1.5.5.7.3.6 PKIX key purpose ipsecTunnel -static const unsigned char cvOID_ipsecTunnel [] = { 0x2B, 0x06, 0x01, 0x05, 0x05, 0x07, 0x03, 0x06}; -//1.3.6.1.5.5.7.3.7 PKIX key purpose ipsecUser -static const unsigned char cvOID_ipsecUser [] = { 0x2B, 0x06, 0x01, 0x05, 0x05, 0x07, 0x03, 0x07}; -//1.3.6.1.5.5.7.3.8 PKIX key purpose timeStamping -static const unsigned char cvOID_timeStamping [] = { 0x2B, 0x06, 0x01, 0x05, 0x05, 0x07, 0x03, 0x08}; -//ame -//1.3.6.1.5.5.7.3.9 PKIX key purpose OCSPSigning -static const unsigned char cvOID_OCSPSigning [] = { 0x2B, 0x06, 0x01, 0x05, 0x05, 0x07, 0x03, 0x09}; -//1.3.6.1.5.5.7.4 PKIX cmpInformationTypes -static const unsigned char cvOID_cmpInformationTypes [] = { 0x2B, 0x06, 0x01, 0x05, 0x05, 0x07, 0x04}; -//1.3.6.1.5.5.7.4.1 PKIX CMP information caProtEncCert -static const unsigned char cvOID_caProtEncCert [] = { 0x2B, 0x06, 0x01, 0x05, 0x05, 0x07, 0x04, 0x01}; -//1.3.6.1.5.5.7.4.2 PKIX CMP information signKeyPairTypes -static const unsigned char cvOID_signKeyPairTypes [] = { 0x2B, 0x06, 0x01, 0x05, 0x05, 0x07, 0x04, 0x02}; -//1.3.6.1.5.5.7.4.3 PKIX CMP information encKeyPairTypes -static const unsigned char cvOID_encKeyPairTypes [] = { 0x2B, 0x06, 0x01, 0x05, 0x05, 0x07, 0x04, 0x03}; -//1.3.6.1.5.5.7.4.4 PKIX CMP information preferredSymmAlg -static const unsigned char cvOID_preferredSymmAlg [] = { 0x2B, 0x06, 0x01, 0x05, 0x05, 0x07, 0x04, 0x04}; -//1.3.6.1.5.5.7.4.5 PKIX CMP information caKeyUpdateInfo -static const unsigned char cvOID_caKeyUpdateInfo [] = { 0x2B, 0x06, 0x01, 0x05, 0x05, 0x07, 0x04, 0x05}; -//1.3.6.1.5.5.7.4.6 PKIX CMP information currentCRL -static const unsigned char cvOID_currentCRL [] = { 0x2B, 0x06, 0x01, 0x05, 0x05, 0x07, 0x04, 0x06}; -//1.3.6.1.5.5.7.6.3 PKIX algorithm dh-sig-hmac-sha1 -static const unsigned char cvOID_dh_sig_hmac_sha1 [] = { 0x2B, 0x06, 0x01, 0x05, 0x05, 0x07, 0x06, 0x03}; -//1.3.6.1.5.5.7.6.4 PKIX algorithm dh-pop -static const unsigned char cvOID_dh_pop [] = { 0x2B, 0x06, 0x01, 0x05, 0x05, 0x07, 0x06, 0x04}; -//1.3.6.1.5.5.7.48.1 PKIX authority info access descriptor ocsp -static const unsigned char cvOID_ocsp [] = { 0x2B, 0x06, 0x01, 0x05, 0x05, 0x07, 0x30, 0x01}; -//1.3.6.1.5.5.7.48.2 PKIX authority info access descriptor caIssuers -static const unsigned char cvOID_caIssuers [] = { 0x2B, 0x06, 0x01, 0x05, 0x05, 0x07, 0x30, 0x02}; - -//ame -//1.3.6.1.5.5.7.48.3 PKIX subject info access descriptor timeStamping -static const unsigned char cvOID_info_timeStamping [] = { 0x2B, 0x06, 0x01, 0x05, 0x05, 0x07, 0x30, 0x03}; -//1.3.6.1.5.5.7.48.5 PKIX subject info access descriptor caRepository -static const unsigned char cvOID_caRepository [] = { 0x2B, 0x06, 0x01, 0x05, 0x05, 0x07, 0x30, 0x05}; - -//1.3.6.1.5.5.8.1.1 ISAKMP HMAC algorithm HMAC-MD5 -static const unsigned char cvOID_HMAC_MD5 [] = { 0x2B, 0x06, 0x01, 0x05, 0x05, 0x08, 0x01, 0x01}; -//1.3.6.1.5.5.8.1.2 ISAKMP HMAC algorithm HMAC-SHA -static const unsigned char cvOID_HMAC_SHA [] = { 0x2B, 0x06, 0x01, 0x05, 0x05, 0x08, 0x01, 0x02}; -//1.3.6.1.5.5.8.1.3 ISAKMP HMAC algorithm HMAC-Tiger -static const unsigned char cvOID_HMAC_Tiger [] = { 0x2B, 0x06, 0x01, 0x05, 0x05, 0x08, 0x01, 0x03}; -//1.3.6.1.5.5.8.2.2 ipsec_kp_ike_intermediate -static const unsigned char cvOID_iKEIntermediate[] = { 0x2B, 0x06, 0x01, 0x05, 0x05, 0x08, 0x02, 0x02}; - -//1.3.12.2.1011.7.1 DASS algorithm decEncryptionAlgorithm -static const unsigned char cvOID_decEncryptionAlgorithm [] = { 0x2B, 0x0C, 0x02, 0x87, 0x73, 0x07, 0x01}; -//1.3.12.2.1011.7.1.2 DASS encryption algorithm decDEA -static const unsigned char cvOID_decDEA [] = { 0x2B, 0x0C, 0x02, 0x87, 0x73, 0x07, 0x01, 0x02}; -//1.3.12.2.1011.7.2 DASS algorithm decHashAlgorithm -static const unsigned char cvOID_decHashAlgorithm [] = { 0x2B, 0x0C, 0x02, 0x87, 0x73, 0x07, 0x02}; -//1.3.12.2.1011.7.2.1 DASS hash algorithm decMD2 -static const unsigned char cvOID_decMD2 [] = { 0x2B, 0x0C, 0x02, 0x87, 0x73, 0x07, 0x02, 0x01}; -//1.3.12.2.1011.7.2.2 DASS hash algorithm decMD4 -static const unsigned char cvOID_decMD4 [] = { 0x2B, 0x0C, 0x02, 0x87, 0x73, 0x07, 0x02, 0x02}; -//1.3.12.2.1011.7.3 DASS algorithm decSignatureAlgorithm -static const unsigned char cvOID_decSignatureAlgorithm [] = { 0x2B, 0x0C, 0x02, 0x87, 0x73, 0x07, 0x03}; -//1.3.12.2.1011.7.3.1 DASS signature algorithm decMD2withRSA -static const unsigned char cvOID_decMD2withRSA [] = { 0x2B, 0x0C, 0x02, 0x87, 0x73, 0x07, 0x03, 0x01}; -//1.3.12.2.1011.7.3.2 DASS signature algorithm decMD4withRSA -static const unsigned char cvOID_decMD4withRSA [] = { 0x2B, 0x0C, 0x02, 0x87, 0x73, 0x07, 0x03, 0x02}; -//1.3.12.2.1011.7.3.3 DASS signature algorithm decDEAMAC -static const unsigned char cvOID_decDEAMAC [] = { 0x2B, 0x0C, 0x02, 0x87, 0x73, 0x07, 0x03, 0x03}; -//1.3.14.2.26.5 Unsure about this OID sha -static const unsigned char cvOID_sha [] = { 0x2B, 0x0E, 0x02, 0x1A, 0x05}; -//1.3.14.3.2.1.1 X.509. Unsure about this OID rsa -static const unsigned char cvOID_rsa [] = { 0x2B, 0x0E, 0x03, 0x02, 0x01, 0x01}; -//1.3.14.3.2.2 Oddball OIW OID md4WitRSA -static const unsigned char cvOID_md4WitRSA [] = { 0x2B, 0x0E, 0x03, 0x02, 0x02}; -//1.3.14.3.2.3 Oddball OIW OID md5WithRSA -static const unsigned char cvOID_md5WithRSA [] = { 0x2B, 0x0E, 0x03, 0x02, 0x03}; -//1.3.14.3.2.4 Oddball OIW OID md4WithRSAEncryption -static const unsigned char cvOID_md4WithRSAEncryption [] = { 0x2B, 0x0E, 0x03, 0x02, 0x04}; -//1.3.14.3.2.2.1 X.509. Deprecated sqmod-N -static const unsigned char cvOID_sqmod_N [] = { 0x2B, 0x0E, 0x03, 0x02, 0x02, 0x01}; -//1.3.14.3.2.3.1 X.509. Deprecated sqmod-NwithRSA -static const unsigned char cvOID_sqmod_NwithRSA [] = { 0x2B, 0x0E, 0x03, 0x02, 0x03, 0x01}; -//1.3.14.3.2.11 ISO 9796-2, also X9.31 Part 1 rsaSignature -static const unsigned char cvOID_rsaSignature [] = { 0x2B, 0x0E, 0x03, 0x02, 0x0B}; -////1.3.14.3.2.12 OIW?, supposedly from an incomplete version of SDN.701 (doesn't match final SDN.701) dsa -//static const unsigned char cvOID_dsa [] = { 0x2B, 0x0E, 0x03, 0x02, 0x0C}; -//1.3.14.3.2.14 Oddball OIW OID using 9796-2 padding rules mdc2WithRSASignature -static const unsigned char cvOID_mdc2WithRSASignature [] = { 0x2B, 0x0E, 0x03, 0x02, 0x0E}; -//1.3.14.3.2.15 Oddball OIW OID using 9796-2 padding rules shaWithRSASignature -static const unsigned char cvOID_shaWithRSASignature [] = { 0x2B, 0x0E, 0x03, 0x02, 0x0F}; -//1.3.14.3.2.16 Oddball OIW OID. Deprecated, use a plain DH OID instead dhWithCommonModulus -static const unsigned char cvOID_dhWithCommonModulus [] = { 0x2B, 0x0E, 0x03, 0x02, 0x10}; -//1.3.14.3.2.17 Oddball OIW OID. Mode is ECB desEDE -static const unsigned char cvOID_desEDE [] = { 0x2B, 0x0E, 0x03, 0x02, 0x11}; -////1.3.14.3.2.18 Oddball OIW OID sha -//static const unsigned char cvOID_sha [] = { 0x2B, 0x0E, 0x03, 0x02, 0x12}; -//1.3.14.3.2.19 Oddball OIW OID, DES-based hash, planned for X9.31 Part 2 mdc-2 -static const unsigned char cvOID_mdc_2 [] = { 0x2B, 0x0E, 0x03, 0x02, 0x13}; -//1.3.14.3.2.20 Oddball OIW OID. Deprecated, use a plain DSA OID instead dsaCommon -static const unsigned char cvOID_dsaCommon [] = { 0x2B, 0x0E, 0x03, 0x02, 0x14}; -//1.3.14.3.2.21 Oddball OIW OID. Deprecated, use a plain dsaWithSHA OID instead dsaCommonWithSHA -static const unsigned char cvOID_dsaCommonWithSHA [] = { 0x2B, 0x0E, 0x03, 0x02, 0x15}; -//1.3.14.3.2.22 Oddball OIW OID rsaKeyTransport -static const unsigned char cvOID_rsaKeyTransport [] = { 0x2B, 0x0E, 0x03, 0x02, 0x16}; -//1.3.14.3.2.23 Oddball OIW OID keyed-hash-seal -static const unsigned char cvOID_keyed_hash_seal [] = { 0x2B, 0x0E, 0x03, 0x02, 0x17}; -//1.3.14.3.2.24 Oddball OIW OID using 9796-2 padding rules md2WithRSASignature -static const unsigned char cvOID_md2WithRSASignature [] = { 0x2B, 0x0E, 0x03, 0x02, 0x18}; -//1.3.14.3.2.25 Oddball OIW OID using 9796-2 padding rules md5WithRSASignature -static const unsigned char cvOID_md5WithRSASignature [] = { 0x2B, 0x0E, 0x03, 0x02, 0x19}; -//1.3.14.3.2.26 OIW sha1 -static const unsigned char cvOID_sha1 [] = { 0x2B, 0x0E, 0x03, 0x02, 0x1A}; -//1.3.14.3.2.27 OIW. This OID may also be assigned as ripemd-160 dsaWithSHA1 -static const unsigned char cvOID_dsaWithSHA1 [] = { 0x2B, 0x0E, 0x03, 0x02, 0x1B}; -//1.3.14.3.2.28 OIW dsaWithCommonSHA1 -static const unsigned char cvOID_dsaWithCommonSHA1 [] = { 0x2B, 0x0E, 0x03, 0x02, 0x1C}; -//1.3.14.3.2.29 Oddball OIW OID sha-1WithRSAEncryption -static const unsigned char cvOID_sha_1WithRSAEncryption [] = { 0x2B, 0x0E, 0x03, 0x02, 0x1D}; -//1.3.14.3.3.1 Oddball OIW OID simple-strong-auth-mechanism -static const unsigned char cvOID_simple_strong_auth_mechanism [] = { 0x2B, 0x0E, 0x03, 0x03, 0x01}; -//1.3.14.7.2.1.1 Unsure about this OID ElGamal -static const unsigned char cvOID_ElGamal [] = { 0x2B, 0x0E, 0x07, 0x02, 0x01, 0x01}; -//1.3.14.7.2.3.1 Unsure about this OID md2WithRSA -static const unsigned char cvOID_md2WithRSA [] = { 0x2B, 0x0E, 0x07, 0x02, 0x03, 0x01}; -//1.3.14.7.2.3.2 Unsure about this OID md2WithElGamal -static const unsigned char cvOID_md2WithElGamal [] = { 0x2B, 0x0E, 0x07, 0x02, 0x03, 0x02}; -//1.3.36.1 Teletrust document document -static const unsigned char cvOID_document [] = { 0x2B, 0x24, 0x01}; -//1.3.36.1.1 Teletrust document finalVersion -static const unsigned char cvOID_finalVersion [] = { 0x2B, 0x24, 0x01, 0x01}; -//1.3.36.1.2 Teletrust document draft -static const unsigned char cvOID_draft [] = { 0x2B, 0x24, 0x01, 0x02}; -//1.3.36.2 Teletrust sio sio -static const unsigned char cvOID_sio [] = { 0x2B, 0x24, 0x02}; -//1.3.36.2.1 Teletrust sio sedu -static const unsigned char cvOID_sedu [] = { 0x2B, 0x24, 0x02, 0x01}; -//1.3.36.3 Teletrust algorithm algorithm -static const unsigned char cvOID_algorithm_Teletrust[] = { 0x2B, 0x24, 0x03}; -//1.3.36.3.1 Teletrust algorithm encryptionAlgorithm -static const unsigned char cvOID_encryptionAlgorithm_Teletrust [] = { 0x2B, 0x24, 0x03, 0x01}; -//1.3.36.3.1.1 Teletrust encryption algorithm des -static const unsigned char cvOID_des_Teletrust [] = { 0x2B, 0x24, 0x03, 0x01, 0x01}; -//1.3.36.3.1.1.1 Teletrust encryption algorithm desECB_pad -static const unsigned char cvOID_desECB_pad [] = { 0x2B, 0x24, 0x03, 0x01, 0x01, 0x01}; -//1.3.36.3.1.1.1.1 Teletrust encryption algorithm desECB_ISOpad -static const unsigned char cvOID_desECB_ISOpad [] = { 0x2B, 0x24, 0x03, 0x01, 0x01, 0x01, 0x01}; -//1.3.36.3.1.1.2.1 Teletrust encryption algorithm desCBC_pad -static const unsigned char cvOID_desCBC_pad [] = { 0x2B, 0x24, 0x03, 0x01, 0x01, 0x02, 0x01}; -//1.3.36.3.1.1.2.1.1 Teletrust encryption algorithm desCBC_ISOpad -static const unsigned char cvOID_desCBC_ISOpad [] = { 0x2B, 0x24, 0x03, 0x01, 0x01, 0x02, 0x01, 0x01}; -//1.3.36.3.1.3 Teletrust encryption algorithm des_3 -static const unsigned char cvOID_des_3 [] = { 0x2B, 0x24, 0x03, 0x01, 0x03}; -//1.3.36.3.1.3.1.1 Teletrust encryption algorithm. EDE triple DES des_3ECB_pad -static const unsigned char cvOID_des_3ECB_pad [] = { 0x2B, 0x24, 0x03, 0x01, 0x03, 0x01, 0x01}; -//1.3.36.3.1.3.1.1.1 Teletrust encryption algorithm. EDE triple DES des_3ECB_ISOpad -static const unsigned char cvOID_des_3ECB_ISOpad [] = { 0x2B, 0x24, 0x03, 0x01, 0x03, 0x01, 0x01, 0x01}; -//1.3.36.3.1.3.2.1 Teletrust encryption algorithm. EDE triple DES des_3CBC_pad -static const unsigned char cvOID_des_3CBC_pad [] = { 0x2B, 0x24, 0x03, 0x01, 0x03, 0x02, 0x01}; -//1.3.36.3.1.3.2.1.1 Teletrust encryption algorithm. EDE triple DES des_3CBC_ISOpad -static const unsigned char cvOID_des_3CBC_ISOpad [] = { 0x2B, 0x24, 0x03, 0x01, 0x03, 0x02, 0x01, 0x01}; -//1.3.36.3.1.2 Teletrust encryption algorithm idea -static const unsigned char cvOID_idea_Teletrust [] = { 0x2B, 0x24, 0x03, 0x01, 0x02}; -//1.3.36.3.1.2.1 Teletrust encryption algorithm ideaECB -static const unsigned char cvOID_ideaECB_Teletrust [] = { 0x2B, 0x24, 0x03, 0x01, 0x02, 0x01}; -//1.3.36.3.1.2.1.1 Teletrust encryption algorithm ideaECB_pad -static const unsigned char cvOID_ideaECB_pad [] = { 0x2B, 0x24, 0x03, 0x01, 0x02, 0x01, 0x01}; -//1.3.36.3.1.2.1.1.1 Teletrust encryption algorithm ideaECB_ISOpad -static const unsigned char cvOID_ideaECB_ISOpad [] = { 0x2B, 0x24, 0x03, 0x01, 0x02, 0x01, 0x01, 0x01}; -//1.3.36.3.1.2.2 Teletrust encryption algorithm ideaCBC -static const unsigned char cvOID_ideaCBC_Teletrust [] = { 0x2B, 0x24, 0x03, 0x01, 0x02, 0x02}; -//1.3.36.3.1.2.2.1 Teletrust encryption algorithm ideaCBC_pad -static const unsigned char cvOID_ideaCBC_pad [] = { 0x2B, 0x24, 0x03, 0x01, 0x02, 0x02, 0x01}; -//1.3.36.3.1.2.2.1.1 Teletrust encryption algorithm ideaCBC_ISOpad -static const unsigned char cvOID_ideaCBC_ISOpad [] = { 0x2B, 0x24, 0x03, 0x01, 0x02, 0x02, 0x01, 0x01}; -//1.3.36.3.1.2.3 Teletrust encryption algorithm ideaOFB -static const unsigned char cvOID_ideaOFB_Teletrust [] = { 0x2B, 0x24, 0x03, 0x01, 0x02, 0x03}; -//1.3.36.3.1.2.4 Teletrust encryption algorithm ideaCFB -static const unsigned char cvOID_ideaCFB_Teletrust [] = { 0x2B, 0x24, 0x03, 0x01, 0x02, 0x04}; -//1.3.36.3.1.4 Teletrust encryption algorithm rsaEncryption -static const unsigned char cvOID_rsaEncryption_Teletrust [] = { 0x2B, 0x24, 0x03, 0x01, 0x04}; -//1.3.36.3.1.4.512.17 Teletrust encryption algorithm rsaEncryptionWithlmod512expe17 -static const unsigned char cvOID_rsaEncryptionWithlmod512expe17 [] = { 0x2B, 0x24, 0x03, 0x01, 0x04, 0x84, 0x00, 0x11}; -//1.3.36.3.1.5 Teletrust encryption algorithm bsi-1 -static const unsigned char cvOID_bsi_1 [] = { 0x2B, 0x24, 0x03, 0x01, 0x05}; -//1.3.36.3.1.5.1 Teletrust encryption algorithm bsi_1ECB_pad -static const unsigned char cvOID_bsi_1ECB_pad [] = { 0x2B, 0x24, 0x03, 0x01, 0x05, 0x01}; -//1.3.36.3.1.5.2 Teletrust encryption algorithm bsi_1CBC_pad -static const unsigned char cvOID_bsi_1CBC_pad [] = { 0x2B, 0x24, 0x03, 0x01, 0x05, 0x02}; -//1.3.36.3.1.5.2.1 Teletrust encryption algorithm bsi_1CBC_PEMpad -static const unsigned char cvOID_bsi_1CBC_PEMpad [] = { 0x2B, 0x24, 0x03, 0x01, 0x05, 0x02, 0x01}; -//1.3.36.3.2 Teletrust algorithm hashAlgorithm -static const unsigned char cvOID_hashAlgorithm [] = { 0x2B, 0x24, 0x03, 0x02}; -//1.3.36.3.2.1 Teletrust hash algorithm ripemd160 -static const unsigned char cvOID_ripemd160_Teletrust [] = { 0x2B, 0x24, 0x03, 0x02, 0x01}; -//1.3.36.3.2.2 Teletrust hash algorithm ripemd128 -static const unsigned char cvOID_ripemd128_Teletrust [] = { 0x2B, 0x24, 0x03, 0x02, 0x02}; -//1.3.36.3.2.3 Teletrust hash algorithm ripemd256 -static const unsigned char cvOID_ripemd256 [] = { 0x2B, 0x24, 0x03, 0x02, 0x03}; -//1.3.36.3.2.4 Teletrust hash algorithm mdc2singleLength -static const unsigned char cvOID_mdc2singleLength [] = { 0x2B, 0x24, 0x03, 0x02, 0x04}; -//1.3.36.3.2.5 Teletrust hash algorithm mdc2doubleLength -static const unsigned char cvOID_mdc2doubleLength [] = { 0x2B, 0x24, 0x03, 0x02, 0x05}; -//1.3.36.3.3 Teletrust algorithm signatureAlgorithm -static const unsigned char cvOID_signatureAlgorithm [] = { 0x2B, 0x24, 0x03, 0x03}; -//1.3.36.3.3.1 Teletrust signature algorithm rsaSignature -static const unsigned char cvOID_rsaSignature_Teletrust [] = { 0x2B, 0x24, 0x03, 0x03, 0x01}; -//1.3.36.3.3.1.1 Teletrust signature algorithm rsaSignatureWithsha1 -static const unsigned char cvOID_rsaSignatureWithsha1 [] = { 0x2B, 0x24, 0x03, 0x03, 0x01, 0x01}; -//1.3.36.3.3.1.1.512.2 Teletrust signature algorithm rsaSignatureWithsha1_l512_l2 -static const unsigned char cvOID_rsaSignatureWithsha1_l512_l2 [] = { 0x2B, 0x24, 0x03, 0x03, 0x01, 0x01, 0x84, 0x00, 0x02}; -//1.3.36.3.3.1.1.640.2 Teletrust signature algorithm rsaSignatureWithsha1_l640_l2 -static const unsigned char cvOID_rsaSignatureWithsha1_l640_l2 [] = { 0x2B, 0x24, 0x03, 0x03, 0x01, 0x01, 0x85, 0x00, 0x02}; -//1.3.36.3.3.1.1.768.2 Teletrust signature algorithm rsaSignatureWithsha1_l768_l2 -static const unsigned char cvOID_rsaSignatureWithsha1_l768_l2 [] = { 0x2B, 0x24, 0x03, 0x03, 0x01, 0x01, 0x86, 0x00, 0x02}; -//1.3.36.3.3.1.1.892.2 Teletrust signature algorithm rsaSignatureWithsha1_l896_l2 -static const unsigned char cvOID_rsaSignatureWithsha1_l896_l2 [] = { 0x2B, 0x24, 0x03, 0x03, 0x01, 0x01, 0x87, 0x00, 0x02}; -//1.3.36.3.3.1.1.1024.2 Teletrust signature algorithm rsaSignatureWithsha1_l1024_l2 -static const unsigned char cvOID_rsaSignatureWithsha1_l1024_l2 [] = { 0x2B, 0x24, 0x03, 0x03, 0x01, 0x01, 0x88, 0x00, 0x02}; -//1.3.36.3.3.1.1.512.3 Teletrust signature algorithm rsaSignatureWithsha1_l512_l3 -static const unsigned char cvOID_rsaSignatureWithsha1_l512_l3 [] = { 0x2B, 0x24, 0x03, 0x03, 0x01, 0x01, 0x84, 0x00, 0x03}; -//1.3.36.3.3.1.1.640.3 Teletrust signature algorithm rsaSignatureWithsha1_l640_l3 -static const unsigned char cvOID_rsaSignatureWithsha1_l640_l3 [] = { 0x2B, 0x24, 0x03, 0x03, 0x01, 0x01, 0x85, 0x00, 0x03}; -//1.3.36.3.3.1.1.768.3 Teletrust signature algorithm rsaSignatureWithsha1_l768_l3 -static const unsigned char cvOID_rsaSignatureWithsha1_l768_l3 [] = { 0x2B, 0x24, 0x03, 0x03, 0x01, 0x01, 0x86, 0x00, 0x03}; -//1.3.36.3.3.1.1.896.3 Teletrust signature algorithm rsaSignatureWithsha1_l896_l3 -static const unsigned char cvOID_rsaSignatureWithsha1_l896_l3 [] = { 0x2B, 0x24, 0x03, 0x03, 0x01, 0x01, 0x87, 0x00, 0x03}; -//1.3.36.3.3.1.1.1024.3 Teletrust signature algorithm rsaSignatureWithsha1_l1024_l3 -static const unsigned char cvOID_rsaSignatureWithsha1_l1024_l3 [] = { 0x2B, 0x24, 0x03, 0x03, 0x01, 0x01, 0x88, 0x00, 0x03}; -//1.3.36.3.3.1.1.512.5 Teletrust signature algorithm rsaSignatureWithsha1_l512_l5 -static const unsigned char cvOID_rsaSignatureWithsha1_l512_l5 [] = { 0x2B, 0x24, 0x03, 0x03, 0x01, 0x01, 0x84, 0x00, 0x05}; -//1.3.36.3.3.1.1.640.5 Teletrust signature algorithm rsaSignatureWithsha1_l640_l5 -static const unsigned char cvOID_rsaSignatureWithsha1_l640_l5 [] = { 0x2B, 0x24, 0x03, 0x03, 0x01, 0x01, 0x85, 0x00, 0x05}; -//1.3.36.3.3.1.1.768.5 Teletrust signature algorithm rsaSignatureWithsha1_l768_l5 -static const unsigned char cvOID_rsaSignatureWithsha1_l768_l5 [] = { 0x2B, 0x24, 0x03, 0x03, 0x01, 0x01, 0x86, 0x00, 0x05}; -//1.3.36.3.3.1.1.896.5 Teletrust signature algorithm rsaSignatureWithsha1_l896_l5 -static const unsigned char cvOID_rsaSignatureWithsha1_l896_l5 [] = { 0x2B, 0x24, 0x03, 0x03, 0x01, 0x01, 0x87, 0x00, 0x05}; -//1.3.36.3.3.1.1.1024.5 Teletrust signature algorithm rsaSignatureWithsha1_l1024_l5 -static const unsigned char cvOID_rsaSignatureWithsha1_l1024_l5 [] = { 0x2B, 0x24, 0x03, 0x03, 0x01, 0x01, 0x88, 0x00, 0x05}; -//1.3.36.3.3.1.1.512.9 Teletrust signature algorithm rsaSignatureWithsha1_l512_l9 -static const unsigned char cvOID_rsaSignatureWithsha1_l512_l9 [] = { 0x2B, 0x24, 0x03, 0x03, 0x01, 0x01, 0x84, 0x00, 0x09}; -//1.3.36.3.3.1.1.640.9 Teletrust signature algorithm rsaSignatureWithsha1_l640_l9 -static const unsigned char cvOID_rsaSignatureWithsha1_l640_l9 [] = { 0x2B, 0x24, 0x03, 0x03, 0x01, 0x01, 0x85, 0x00, 0x09}; -//1.3.36.3.3.1.1.768.9 Teletrust signature algorithm rsaSignatureWithsha1_l768_l9 -static const unsigned char cvOID_rsaSignatureWithsha1_l768_l9 [] = { 0x2B, 0x24, 0x03, 0x03, 0x01, 0x01, 0x86, 0x00, 0x09}; -//1.3.36.3.3.1.1.896.9 Teletrust signature algorithm rsaSignatureWithsha1_l896_l9 -static const unsigned char cvOID_rsaSignatureWithsha1_l896_l9 [] = { 0x2B, 0x24, 0x03, 0x03, 0x01, 0x01, 0x87, 0x00, 0x09}; -//1.3.36.3.3.1.1.1024.9 Teletrust signature algorithm rsaSignatureWithsha1_l1024_l9 -static const unsigned char cvOID_rsaSignatureWithsha1_l1024_l9 [] = { 0x2B, 0x24, 0x03, 0x03, 0x01, 0x01, 0x88, 0x00, 0x09}; -//1.3.36.3.3.1.1.512.11 Teletrust signature algorithm rsaSignatureWithsha1_l512_l11 -static const unsigned char cvOID_rsaSignatureWithsha1_l512_l11 [] = { 0x2B, 0x24, 0x03, 0x03, 0x01, 0x01, 0x84, 0x00, 0x11}; -//1.3.36.3.3.1.1.640.11 Teletrust signature algorithm rsaSignatureWithsha1_l640_l11 -static const unsigned char cvOID_rsaSignatureWithsha1_l640_l11 [] = { 0x2B, 0x24, 0x03, 0x03, 0x01, 0x01, 0x85, 0x00, 0x11}; -//1.3.36.3.3.1.1.768.11 Teletrust signature algorithm rsaSignatureWithsha1_l768_l11 -static const unsigned char cvOID_rsaSignatureWithsha1_l768_l11 [] = { 0x2B, 0x24, 0x03, 0x03, 0x01, 0x01, 0x86, 0x00, 0x11}; -//1.3.36.3.3.1.1.896.11 Teletrust signature algorithm rsaSignatureWithsha1_l896_l11 -static const unsigned char cvOID_rsaSignatureWithsha1_l896_l11 [] = { 0x2B, 0x24, 0x03, 0x03, 0x01, 0x01, 0x87, 0x00, 0x11}; -//1.3.36.3.3.1.1.1024.11 Teletrust signature algorithm rsaSignatureWithsha1_l1024_l11 -static const unsigned char cvOID_rsaSignatureWithsha1_l1024_l11 [] = { 0x2B, 0x24, 0x03, 0x03, 0x01, 0x01, 0x88, 0x00, 0x11}; -//1.3.36.3.3.1.2 Teletrust signature algorithm rsaSignatureWithripemd160 -static const unsigned char cvOID_rsaSignatureWithripemd160 [] = { 0x2B, 0x24, 0x03, 0x03, 0x01, 0x02}; -//1.3.36.3.3.1.2.512.2 Teletrust signature algorithm rsaSignatureWithripemd160_l512_l2 -static const unsigned char cvOID_rsaSignatureWithripemd160_l512_l2 [] = { 0x2B, 0x24, 0x03, 0x03, 0x01, 0x02, 0x84, 0x00, 0x02}; -//1.3.36.3.3.1.2.640.2 Teletrust signature algorithm rsaSignatureWithripemd160_l640_l2 -static const unsigned char cvOID_rsaSignatureWithripemd160_l640_l2 [] = { 0x2B, 0x24, 0x03, 0x03, 0x01, 0x02, 0x85, 0x00, 0x02}; -//1.3.36.3.3.1.2.768.2 Teletrust signature algorithm rsaSignatureWithripemd160_l768_l2 -static const unsigned char cvOID_rsaSignatureWithripemd160_l768_l2 [] = { 0x2B, 0x24, 0x03, 0x03, 0x01, 0x02, 0x86, 0x00, 0x02}; -//1.3.36.3.3.1.2.892.2 Teletrust signature algorithm rsaSignatureWithripemd160_l896_l2 -static const unsigned char cvOID_rsaSignatureWithripemd160_l896_l2 [] = { 0x2B, 0x24, 0x03, 0x03, 0x01, 0x02, 0x87, 0x00, 0x02}; -//1.3.36.3.3.1.2.1024.2 Teletrust signature algorithm rsaSignatureWithripemd160_l1024_l2 -static const unsigned char cvOID_rsaSignatureWithripemd160_l1024_l2 [] = { 0x2B, 0x24, 0x03, 0x03, 0x01, 0x02, 0x88, 0x00, 0x02}; -//1.3.36.3.3.1.2.512.3 Teletrust signature algorithm rsaSignatureWithripemd160_l512_l3 -static const unsigned char cvOID_rsaSignatureWithripemd160_l512_l3 [] = { 0x2B, 0x24, 0x03, 0x03, 0x01, 0x02, 0x84, 0x00, 0x03}; -//1.3.36.3.3.1.2.640.3 Teletrust signature algorithm rsaSignatureWithripemd160_l640_l3 -static const unsigned char cvOID_rsaSignatureWithripemd160_l640_l3 [] = { 0x2B, 0x24, 0x03, 0x03, 0x01, 0x02, 0x85, 0x00, 0x03}; -//1.3.36.3.3.1.2.768.3 Teletrust signature algorithm rsaSignatureWithripemd160_l768_l3 -static const unsigned char cvOID_rsaSignatureWithripemd160_l768_l3 [] = { 0x2B, 0x24, 0x03, 0x03, 0x01, 0x02, 0x86, 0x00, 0x03}; -//1.3.36.3.3.1.2.896.3 Teletrust signature algorithm rsaSignatureWithripemd160_l896_l3 -static const unsigned char cvOID_rsaSignatureWithripemd160_l896_l3 [] = { 0x2B, 0x24, 0x03, 0x03, 0x01, 0x02, 0x87, 0x00, 0x03}; -//1.3.36.3.3.1.2.1024.3 Teletrust signature algorithm rsaSignatureWithripemd160_l1024_l3 -static const unsigned char cvOID_rsaSignatureWithripemd160_l1024_l3 [] = { 0x2B, 0x24, 0x03, 0x03, 0x01, 0x02, 0x88, 0x00, 0x03}; -//1.3.36.3.3.1.2.512.5 Teletrust signature algorithm rsaSignatureWithripemd160_l512_l5 -static const unsigned char cvOID_rsaSignatureWithripemd160_l512_l5 [] = { 0x2B, 0x24, 0x03, 0x03, 0x01, 0x02, 0x84, 0x00, 0x05}; -//1.3.36.3.3.1.2.640.5 Teletrust signature algorithm rsaSignatureWithripemd160_l640_l5 -static const unsigned char cvOID_rsaSignatureWithripemd160_l640_l5 [] = { 0x2B, 0x24, 0x03, 0x03, 0x01, 0x02, 0x85, 0x00, 0x05}; -//1.3.36.3.3.1.2.768.5 Teletrust signature algorithm rsaSignatureWithripemd160_l768_l5 -static const unsigned char cvOID_rsaSignatureWithripemd160_l768_l5 [] = { 0x2B, 0x24, 0x03, 0x03, 0x01, 0x02, 0x86, 0x00, 0x05}; -//1.3.36.3.3.1.2.896.5 Teletrust signature algorithm rsaSignatureWithripemd160_l896_l5 -static const unsigned char cvOID_rsaSignatureWithripemd160_l896_l5 [] = { 0x2B, 0x24, 0x03, 0x03, 0x01, 0x02, 0x87, 0x00, 0x05}; -//1.3.36.3.3.1.2.1024.5 Teletrust signature algorithm rsaSignatureWithripemd160_l1024_l5 -static const unsigned char cvOID_rsaSignatureWithripemd160_l1024_l5 [] = { 0x2B, 0x24, 0x03, 0x03, 0x01, 0x02, 0x88, 0x00, 0x05}; -//1.3.36.3.3.1.2.512.9 Teletrust signature algorithm rsaSignatureWithripemd160_l512_l9 -static const unsigned char cvOID_rsaSignatureWithripemd160_l512_l9 [] = { 0x2B, 0x24, 0x03, 0x03, 0x01, 0x02, 0x84, 0x00, 0x09}; -//1.3.36.3.3.1.2.640.9 Teletrust signature algorithm rsaSignatureWithripemd160_l640_l9 -static const unsigned char cvOID_rsaSignatureWithripemd160_l640_l9 [] = { 0x2B, 0x24, 0x03, 0x03, 0x01, 0x02, 0x85, 0x00, 0x09}; -//1.3.36.3.3.1.2.768.9 Teletrust signature algorithm rsaSignatureWithripemd160_l768_l9 -static const unsigned char cvOID_rsaSignatureWithripemd160_l768_l9 [] = { 0x2B, 0x24, 0x03, 0x03, 0x01, 0x02, 0x86, 0x00, 0x09}; -//1.3.36.3.3.1.2.896.9 Teletrust signature algorithm rsaSignatureWithripemd160_l896_l9 -static const unsigned char cvOID_rsaSignatureWithripemd160_l896_l9 [] = { 0x2B, 0x24, 0x03, 0x03, 0x01, 0x02, 0x87, 0x00, 0x09}; -//1.3.36.3.3.1.2.1024.9 Teletrust signature algorithm rsaSignatureWithripemd160_l1024_l9 -static const unsigned char cvOID_rsaSignatureWithripemd160_l1024_l9 [] = { 0x2B, 0x24, 0x03, 0x03, 0x01, 0x02, 0x88, 0x00, 0x09}; -//1.3.36.3.3.1.2.512.11 Teletrust signature algorithm rsaSignatureWithripemd160_l512_l11 -static const unsigned char cvOID_rsaSignatureWithripemd160_l512_l11 [] = { 0x2B, 0x24, 0x03, 0x03, 0x01, 0x02, 0x84, 0x00, 0x11}; -//1.3.36.3.3.1.2.640.11 Teletrust signature algorithm rsaSignatureWithripemd160_l640_l11 -static const unsigned char cvOID_rsaSignatureWithripemd160_l640_l11 [] = { 0x2B, 0x24, 0x03, 0x03, 0x01, 0x02, 0x85, 0x00, 0x11}; -//1.3.36.3.3.1.2.768.11 Teletrust signature algorithm rsaSignatureWithripemd160_l768_l11 -static const unsigned char cvOID_rsaSignatureWithripemd160_l768_l11 [] = { 0x2B, 0x24, 0x03, 0x03, 0x01, 0x02, 0x86, 0x00, 0x11}; -//1.3.36.3.3.1.2.896.11 Teletrust signature algorithm rsaSignatureWithripemd160_l896_l11 -static const unsigned char cvOID_rsaSignatureWithripemd160_l896_l11 [] = { 0x2B, 0x24, 0x03, 0x03, 0x01, 0x02, 0x87, 0x00, 0x11}; -//1.3.36.3.3.1.2.1024.11 Teletrust signature algorithm rsaSignatureWithripemd160_l1024_l11 -static const unsigned char cvOID_rsaSignatureWithripemd160_l1024_l11 [] = { 0x2B, 0x24, 0x03, 0x03, 0x01, 0x02, 0x88, 0x00, 0x11}; -//1.3.36.3.3.1.3 Teletrust signature algorithm rsaSignatureWithrimpemd128 -static const unsigned char cvOID_rsaSignatureWithrimpemd128 [] = { 0x2B, 0x24, 0x03, 0x03, 0x01, 0x03}; -//1.3.36.3.3.1.4 Teletrust signature algorithm rsaSignatureWithrimpemd256 -static const unsigned char cvOID_rsaSignatureWithrimpemd256 [] = { 0x2B, 0x24, 0x03, 0x03, 0x01, 0x04}; -//1.3.36.3.3.2 Teletrust signature algorithm ecsieSign -static const unsigned char cvOID_ecsieSign [] = { 0x2B, 0x24, 0x03, 0x03, 0x02}; -//1.3.36.3.3.2.1 Teletrust signature algorithm ecsieSignWithsha1 -static const unsigned char cvOID_ecsieSignWithsha1 [] = { 0x2B, 0x24, 0x03, 0x03, 0x02, 0x01}; -//1.3.36.3.3.2.2 Teletrust signature algorithm ecsieSignWithripemd160 -static const unsigned char cvOID_ecsieSignWithripemd160 [] = { 0x2B, 0x24, 0x03, 0x03, 0x02, 0x02}; -//1.3.36.3.3.2.3 Teletrust signature algorithm ecsieSignWithmd2 -static const unsigned char cvOID_ecsieSignWithmd2 [] = { 0x2B, 0x24, 0x03, 0x03, 0x02, 0x03}; -//1.3.36.3.3.2.4 Teletrust signature algorithm ecsieSignWithmd5 -static const unsigned char cvOID_ecsieSignWithmd5 [] = { 0x2B, 0x24, 0x03, 0x03, 0x02, 0x04}; -//1.3.36.3.4 Teletrust algorithm signatureScheme -static const unsigned char cvOID_signatureScheme [] = { 0x2B, 0x24, 0x03, 0x04}; -//1.3.36.3.4.1 Teletrust signature scheme sigS_ISO9796-1 -static const unsigned char cvOID_sigS_ISO9796_1 [] = { 0x2B, 0x24, 0x03, 0x04, 0x01}; -//1.3.36.3.4.2 Teletrust signature scheme sigS_ISO9796-2 -static const unsigned char cvOID_sigS_ISO9796_2 [] = { 0x2B, 0x24, 0x03, 0x04, 0x02}; -//1.3.36.3.4.2.1 Teletrust signature scheme. Unsure what this is supposed to be sigS_ISO9796-2Withred -static const unsigned char cvOID_sigS_ISO9796_2Withred [] = { 0x2B, 0x24, 0x03, 0x04, 0x02, 0x01}; -//1.3.36.3.4.2.2 Teletrust signature scheme. Unsure what this is supposed to be sigS_ISO9796-2Withrsa -static const unsigned char cvOID_sigS_ISO9796_2Withrsa [] = { 0x2B, 0x24, 0x03, 0x04, 0x02, 0x02}; -//1.3.36.3.4.2.3 Teletrust signature scheme. 9796-2 with random number in padding field sigS_ISO9796-2Withrnd -static const unsigned char cvOID_sigS_ISO9796_2Withrnd [] = { 0x2B, 0x24, 0x03, 0x04, 0x02, 0x03}; -//1.3.36.4 Teletrust attribute attribute -static const unsigned char cvOID_attribute_Teletrust [] = { 0x2B, 0x24, 0x04}; -//1.3.36.5 Teletrust policy policy -static const unsigned char cvOID_policy [] = { 0x2B, 0x24, 0x05}; -//1.3.36.6 Teletrust API api -static const unsigned char cvOID_api [] = { 0x2B, 0x24, 0x06}; -//1.3.36.6.1 Teletrust API manufacturer-specific_api -static const unsigned char cvOID_manufacturer_specific_api [] = { 0x2B, 0x24, 0x06, 0x01}; -//1.3.36.6.1.1 Teletrust API utimaco-api -static const unsigned char cvOID_utimaco_api [] = { 0x2B, 0x24, 0x06, 0x01, 0x01}; -//1.3.36.6.2 Teletrust API functionality-specific_api -static const unsigned char cvOID_functionality_specific_api [] = { 0x2B, 0x24, 0x06, 0x02}; -//1.3.36.7 Teletrust key management keymgmnt -static const unsigned char cvOID_keymgmnt [] = { 0x2B, 0x24, 0x07}; -//1.3.36.7.1 Teletrust key management keyagree -static const unsigned char cvOID_keyagree [] = { 0x2B, 0x24, 0x07, 0x01}; -//1.3.36.7.1.1 Teletrust key management bsiPKE -static const unsigned char cvOID_bsiPKE [] = { 0x2B, 0x24, 0x07, 0x01, 0x01}; -//1.3.36.7.2 Teletrust key management keytrans -static const unsigned char cvOID_keytrans [] = { 0x2B, 0x24, 0x07, 0x02}; -//1.3.36.7.2.1 Teletrust key management. 9796-2 with key stored in hash field encISO9796-2Withrsa -static const unsigned char cvOID_encISO9796_2Withrsa [] = { 0x2B, 0x24, 0x07, 0x02, 0x01}; -//1.3.36.8.1.1 Teletrust policy sigiSigConform -static const unsigned char cvOID_sigiSigConform [] = { 0x2B, 0x24, 0x08, 0x01, 0x01}; -//1.3.36.8.2.1 Teletrust extended key usage directoryService -static const unsigned char cvOID_directoryService [] = { 0x2B, 0x24, 0x08, 0x02, 0x01}; -//1.3.36.8.3.1 Teletrust attribute dateOfCertGen -static const unsigned char cvOID_dateOfCertGen [] = { 0x2B, 0x24, 0x08, 0x03, 0x01}; -//1.3.36.8.3.2 Teletrust attribute procuration -static const unsigned char cvOID_procuration [] = { 0x2B, 0x24, 0x08, 0x03, 0x02}; -//1.3.36.8.3.3 Teletrust attribute admission -static const unsigned char cvOID_admission [] = { 0x2B, 0x24, 0x08, 0x03, 0x03}; -//1.3.36.8.3.4 Teletrust attribute monetaryLimit -static const unsigned char cvOID_monetaryLimit [] = { 0x2B, 0x24, 0x08, 0x03, 0x04}; -//1.3.36.8.3.5 Teletrust attribute declarationOfMajority -static const unsigned char cvOID_declarationOfMajority [] = { 0x2B, 0x24, 0x08, 0x03, 0x05}; -//1.3.36.8.3.6 Teletrust attribute integratedCircuitCardSerialNumber -static const unsigned char cvOID_integratedCircuitCardSerialNumber [] = { 0x2B, 0x24, 0x08, 0x03, 0x06}; -//1.3.36.8.3.7 Teletrust attribute pKReference -static const unsigned char cvOID_pKReference [] = { 0x2B, 0x24, 0x08, 0x03, 0x07}; -//1.3.36.8.3.8 Teletrust attribute restriction -static const unsigned char cvOID_restriction_1 [] = { 0x2B, 0x24, 0x08, 0x03, 0x08}; -//1.3.36.8.3.9 Teletrust attribute retrieveIfAllowed -static const unsigned char cvOID_retrieveIfAllowed [] = { 0x2B, 0x24, 0x08, 0x03, 0x09}; -//1.3.36.8.3.10 Teletrust attribute requestedCertificate -static const unsigned char cvOID_requestedCertificate [] = { 0x2B, 0x24, 0x08, 0x03, 0x0A}; -//1.3.36.8.3.11 Teletrust attribute namingAuthorities -static const unsigned char cvOID_namingAuthorities [] = { 0x2B, 0x24, 0x08, 0x03, 0x0B}; -//1.3.36.8.3.12 Teletrust attribute certInDirSince -static const unsigned char cvOID_certInDirSince [] = { 0x2B, 0x24, 0x08, 0x03, 0x0C}; -//1.3.36.8.3.13 Teletrust attribute certHash -static const unsigned char cvOID_certHash [] = { 0x2B, 0x24, 0x08, 0x03, 0x0D}; -//1.3.36.8.4.1 Teletrust OtherName attribute personalData -static const unsigned char cvOID_personalData [] = { 0x2B, 0x24, 0x08, 0x04, 0x01}; -//1.3.36.8.4.8 Teletrust attribute certificate attribute restriction -static const unsigned char cvOID_restriction_2 [] = { 0x2B, 0x24, 0x08, 0x04, 0x08}; -//1.3.36.8.5.1.1.1 Teletrust signature algorithm rsaIndicateSHA1 -static const unsigned char cvOID_rsaIndicateSHA1 [] = { 0x2B, 0x24, 0x08, 0x05, 0x01, 0x01, 0x01}; -//1.3.36.8.5.1.1.2 Teletrust signature algorithm rsaIndicateRIPEMD160 -static const unsigned char cvOID_rsaIndicateRIPEMD160 [] = { 0x2B, 0x24, 0x08, 0x05, 0x01, 0x01, 0x02}; -//1.3.36.8.5.1.1.3 Teletrust signature algorithm rsaWithSHA1 -static const unsigned char cvOID_rsaWithSHA1 [] = { 0x2B, 0x24, 0x08, 0x05, 0x01, 0x01, 0x03}; -//1.3.36.8.5.1.1.4 Teletrust signature algorithm rsaWithRIPEMD160 -static const unsigned char cvOID_rsaWithRIPEMD160 [] = { 0x2B, 0x24, 0x08, 0x05, 0x01, 0x01, 0x04}; -//1.3.36.8.5.1.2.1 Teletrust signature algorithm dsaExtended -static const unsigned char cvOID_dsaExtended [] = { 0x2B, 0x24, 0x08, 0x05, 0x01, 0x02, 0x01}; -//1.3.36.8.5.1.2.2 Teletrust signature algorithm dsaWithRIPEMD160 -static const unsigned char cvOID_dsaWithRIPEMD160 [] = { 0x2B, 0x24, 0x08, 0x05, 0x01, 0x02, 0x02}; -//1.3.36.8.6.1 Teletrust signature attributes cert -static const unsigned char cvOID_cert [] = { 0x2B, 0x24, 0x08, 0x06, 0x01}; -//1.3.36.8.6.2 Teletrust signature attributes certRef -static const unsigned char cvOID_certRef [] = { 0x2B, 0x24, 0x08, 0x06, 0x02}; -//1.3.36.8.6.3 Teletrust signature attributes attrCert -static const unsigned char cvOID_attrCert [] = { 0x2B, 0x24, 0x08, 0x06, 0x03}; -//1.3.36.8.6.4 Teletrust signature attributes attrRef -static const unsigned char cvOID_attrRef [] = { 0x2B, 0x24, 0x08, 0x06, 0x04}; -//1.3.36.8.6.5 Teletrust signature attributes fileName -static const unsigned char cvOID_fileName [] = { 0x2B, 0x24, 0x08, 0x06, 0x05}; -//1.3.36.8.6.6 Teletrust signature attributes storageTime -static const unsigned char cvOID_storageTime [] = { 0x2B, 0x24, 0x08, 0x06, 0x06}; -//1.3.36.8.6.7 Teletrust signature attributes fileSize -static const unsigned char cvOID_fileSize [] = { 0x2B, 0x24, 0x08, 0x06, 0x07}; -//1.3.36.8.6.8 Teletrust signature attributes location -static const unsigned char cvOID_location [] = { 0x2B, 0x24, 0x08, 0x06, 0x08}; -//1.3.36.8.6.9 Teletrust signature attributes sigNumber -static const unsigned char cvOID_sigNumber [] = { 0x2B, 0x24, 0x08, 0x06, 0x09}; -//1.3.36.8.6.10 Teletrust signature attributes autoGen -static const unsigned char cvOID_autoGen [] = { 0x2B, 0x24, 0x08, 0x06, 0x0A}; -//1.3.36.8.7.1.1 Teletrust presentation types ptAdobeILL -static const unsigned char cvOID_ptAdobeILL [] = { 0x2B, 0x24, 0x08, 0x07, 0x01, 0x01}; -//1.3.36.8.7.1.2 Teletrust presentation types ptAmiPro -static const unsigned char cvOID_ptAmiPro [] = { 0x2B, 0x24, 0x08, 0x07, 0x01, 0x02}; -//1.3.36.8.7.1.3 Teletrust presentation types ptAutoCAD -static const unsigned char cvOID_ptAutoCAD [] = { 0x2B, 0x24, 0x08, 0x07, 0x01, 0x03}; -//1.3.36.8.7.1.4 Teletrust presentation types ptBinary -static const unsigned char cvOID_ptBinary [] = { 0x2B, 0x24, 0x08, 0x07, 0x01, 0x04}; -//1.3.36.8.7.1.5 Teletrust presentation types ptBMP -static const unsigned char cvOID_ptBMP [] = { 0x2B, 0x24, 0x08, 0x07, 0x01, 0x05}; -//1.3.36.8.7.1.6 Teletrust presentation types ptCGM -static const unsigned char cvOID_ptCGM [] = { 0x2B, 0x24, 0x08, 0x07, 0x01, 0x06}; -//1.3.36.8.7.1.7 Teletrust presentation types ptCorelCRT -static const unsigned char cvOID_ptCorelCRT [] = { 0x2B, 0x24, 0x08, 0x07, 0x01, 0x07}; -//1.3.36.8.7.1.8 Teletrust presentation types ptCorelDRW -static const unsigned char cvOID_ptCorelDRW [] = { 0x2B, 0x24, 0x08, 0x07, 0x01, 0x08}; -//1.3.36.8.7.1.9 Teletrust presentation types ptCorelEXC -static const unsigned char cvOID_ptCorelEXC [] = { 0x2B, 0x24, 0x08, 0x07, 0x01, 0x09}; -//1.3.36.8.7.1.10 Teletrust presentation types ptCorelPHT -static const unsigned char cvOID_ptCorelPHT [] = { 0x2B, 0x24, 0x08, 0x07, 0x01, 0x0A}; -//1.3.36.8.7.1.11 Teletrust presentation types ptDraw -static const unsigned char cvOID_ptDraw [] = { 0x2B, 0x24, 0x08, 0x07, 0x01, 0x0B}; -//1.3.36.8.7.1.12 Teletrust presentation types ptDVI -static const unsigned char cvOID_ptDVI [] = { 0x2B, 0x24, 0x08, 0x07, 0x01, 0x0C}; -//1.3.36.8.7.1.13 Teletrust presentation types ptEPS -static const unsigned char cvOID_ptEPS [] = { 0x2B, 0x24, 0x08, 0x07, 0x01, 0x0D}; -//1.3.36.8.7.1.14 Teletrust presentation types ptExcel -static const unsigned char cvOID_ptExcel [] = { 0x2B, 0x24, 0x08, 0x07, 0x01, 0x0E}; -//1.3.36.8.7.1.15 Teletrust presentation types ptGEM -static const unsigned char cvOID_ptGEM [] = { 0x2B, 0x24, 0x08, 0x07, 0x01, 0x0F}; -//1.3.36.8.7.1.16 Teletrust presentation types ptGIF -static const unsigned char cvOID_ptGIF [] = { 0x2B, 0x24, 0x08, 0x07, 0x01, 0x10}; -//1.3.36.8.7.1.17 Teletrust presentation types ptHPGL -static const unsigned char cvOID_ptHPGL [] = { 0x2B, 0x24, 0x08, 0x07, 0x01, 0x11}; -//1.3.36.8.7.1.18 Teletrust presentation types ptJPEG -static const unsigned char cvOID_ptJPEG [] = { 0x2B, 0x24, 0x08, 0x07, 0x01, 0x12}; -//1.3.36.8.7.1.19 Teletrust presentation types ptKodak -static const unsigned char cvOID_ptKodak [] = { 0x2B, 0x24, 0x08, 0x07, 0x01, 0x13}; -//1.3.36.8.7.1.20 Teletrust presentation types ptLaTeX -static const unsigned char cvOID_ptLaTeX [] = { 0x2B, 0x24, 0x08, 0x07, 0x01, 0x14}; -//1.3.36.8.7.1.21 Teletrust presentation types ptLotus -static const unsigned char cvOID_ptLotus [] = { 0x2B, 0x24, 0x08, 0x07, 0x01, 0x15}; -//1.3.36.8.7.1.22 Teletrust presentation types ptLotusPIC -static const unsigned char cvOID_ptLotusPIC [] = { 0x2B, 0x24, 0x08, 0x07, 0x01, 0x16}; -//1.3.36.8.7.1.23 Teletrust presentation types ptMacPICT -static const unsigned char cvOID_ptMacPICT [] = { 0x2B, 0x24, 0x08, 0x07, 0x01, 0x17}; -//1.3.36.8.7.1.24 Teletrust presentation types ptMacWord -static const unsigned char cvOID_ptMacWord [] = { 0x2B, 0x24, 0x08, 0x07, 0x01, 0x18}; -//1.3.36.8.7.1.25 Teletrust presentation types ptMSWfD -static const unsigned char cvOID_ptMSWfD [] = { 0x2B, 0x24, 0x08, 0x07, 0x01, 0x19}; -//1.3.36.8.7.1.26 Teletrust presentation types ptMSWord -static const unsigned char cvOID_ptMSWord [] = { 0x2B, 0x24, 0x08, 0x07, 0x01, 0x1A}; -//1.3.36.8.7.1.27 Teletrust presentation types ptMSWord2 -static const unsigned char cvOID_ptMSWord2 [] = { 0x2B, 0x24, 0x08, 0x07, 0x01, 0x1B}; -//1.3.36.8.7.1.28 Teletrust presentation types ptMSWord6 -static const unsigned char cvOID_ptMSWord6 [] = { 0x2B, 0x24, 0x08, 0x07, 0x01, 0x1C}; -//1.3.36.8.7.1.29 Teletrust presentation types ptMSWord8 -static const unsigned char cvOID_ptMSWord8 [] = { 0x2B, 0x24, 0x08, 0x07, 0x01, 0x1D}; -//1.3.36.8.7.1.30 Teletrust presentation types ptPDF -static const unsigned char cvOID_ptPDF [] = { 0x2B, 0x24, 0x08, 0x07, 0x01, 0x1E}; -//1.3.36.8.7.1.31 Teletrust presentation types ptPIF -static const unsigned char cvOID_ptPIF [] = { 0x2B, 0x24, 0x08, 0x07, 0x01, 0x1F}; -//1.3.36.8.7.1.32 Teletrust presentation types ptPostscript -static const unsigned char cvOID_ptPostscript [] = { 0x2B, 0x24, 0x08, 0x07, 0x01, 0x20}; -//1.3.36.8.7.1.33 Teletrust presentation types ptRTF -static const unsigned char cvOID_ptRTF [] = { 0x2B, 0x24, 0x08, 0x07, 0x01, 0x21}; -//1.3.36.8.7.1.34 Teletrust presentation types ptSCITEX -static const unsigned char cvOID_ptSCITEX [] = { 0x2B, 0x24, 0x08, 0x07, 0x01, 0x22}; -//1.3.36.8.7.1.35 Teletrust presentation types ptTAR -static const unsigned char cvOID_ptTAR [] = { 0x2B, 0x24, 0x08, 0x07, 0x01, 0x23}; -//1.3.36.8.7.1.36 Teletrust presentation types ptTarga -static const unsigned char cvOID_ptTarga [] = { 0x2B, 0x24, 0x08, 0x07, 0x01, 0x24}; -//1.3.36.8.7.1.37 Teletrust presentation types ptTeX -static const unsigned char cvOID_ptTeX [] = { 0x2B, 0x24, 0x08, 0x07, 0x01, 0x25}; -//1.3.36.8.7.1.38 Teletrust presentation types ptText -static const unsigned char cvOID_ptText [] = { 0x2B, 0x24, 0x08, 0x07, 0x01, 0x26}; -//1.3.36.8.7.1.39 Teletrust presentation types ptTIFF -static const unsigned char cvOID_ptTIFF [] = { 0x2B, 0x24, 0x08, 0x07, 0x01, 0x27}; -//1.3.36.8.7.1.40 Teletrust presentation types ptTIFF-FC -static const unsigned char cvOID_ptTIFF_FC [] = { 0x2B, 0x24, 0x08, 0x07, 0x01, 0x28}; -//1.3.36.8.7.1.41 Teletrust presentation types ptUID -static const unsigned char cvOID_ptUID [] = { 0x2B, 0x24, 0x08, 0x07, 0x01, 0x29}; -//1.3.36.8.7.1.42 Teletrust presentation types ptUUEncode -static const unsigned char cvOID_ptUUEncode [] = { 0x2B, 0x24, 0x08, 0x07, 0x01, 0x2A}; -//1.3.36.8.7.1.43 Teletrust presentation types ptWMF -static const unsigned char cvOID_ptWMF [] = { 0x2B, 0x24, 0x08, 0x07, 0x01, 0x2B}; -//1.3.36.8.7.1.44 Teletrust presentation types ptWordPerfect -static const unsigned char cvOID_ptWordPerfect [] = { 0x2B, 0x24, 0x08, 0x07, 0x01, 0x2C}; -//1.3.36.8.7.1.45 Teletrust presentation types ptWPGrph -static const unsigned char cvOID_ptWPGrph [] = { 0x2B, 0x24, 0x08, 0x07, 0x01, 0x2D}; -//1.3.101.1.4 Thawte thawte-ce -static const unsigned char cvOID_thawte_ce [] = { 0x2B, 0x65, 0x01, 0x04}; -//1.3.101.1.4.1 Thawte certificate extension strongExtranet -static const unsigned char cvOID_strongExtranet [] = { 0x2B, 0x65, 0x01, 0x04, 0x01}; -//2.5.4.0 X.520 id-at (2 5 4) objectClass -static const unsigned char cvOID_objectClass [] = { 0x55, 0x04, 0x00}; -//2.5.4.1 X.520 id-at (2 5 4) aliasedEntryName -static const unsigned char cvOID_aliasedEntryName [] = { 0x55, 0x04, 0x01}; -//2.5.4.2 X.520 id-at (2 5 4) knowledgeInformation -static const unsigned char cvOID_knowledgeInformation [] = { 0x55, 0x04, 0x02}; -//2.5.4.3 X.520 id-at (2 5 4) commonName -static const unsigned char cvOID_commonName [] = { 0x55, 0x04, 0x03}; -//2.5.4.4 X.520 id-at (2 5 4) surname -static const unsigned char cvOID_surname [] = { 0x55, 0x04, 0x04}; -//2.5.4.5 X.520 id-at (2 5 4) serialNumber -static const unsigned char cvOID_serialNumber [] = { 0x55, 0x04, 0x05}; -//2.5.4.6 X.520 id-at (2 5 4) countryName -static const unsigned char cvOID_countryName [] = { 0x55, 0x04, 0x06}; -//2.5.4.7 X.520 id-at (2 5 4) localityName -static const unsigned char cvOID_localityName [] = { 0x55, 0x04, 0x07}; -//2.5.4.7.1 X.520 id-at (2 5 4) collectiveLocalityName -static const unsigned char cvOID_collectiveLocalityName [] = { 0x55, 0x04, 0x07, 0x01}; -//2.5.4.8 X.520 id-at (2 5 4) stateOrProvinceName -static const unsigned char cvOID_stateOrProvinceName [] = { 0x55, 0x04, 0x08}; -//2.5.4.8.1 X.520 id-at (2 5 4) collectiveStateOrProvinceName -static const unsigned char cvOID_collectiveStateOrProvinceName [] = { 0x55, 0x04, 0x08, 0x01}; -//2.5.4.9 X.520 id-at (2 5 4) streetAddress -static const unsigned char cvOID_streetAddress [] = { 0x55, 0x04, 0x09}; -//2.5.4.9.1 X.520 id-at (2 5 4) collectiveStreetAddress -static const unsigned char cvOID_collectiveStreetAddress [] = { 0x55, 0x04, 0x09, 0x01}; -//2.5.4.10 X.520 id-at (2 5 4) organizationName -static const unsigned char cvOID_organizationName [] = { 0x55, 0x04, 0x0A}; -//2.5.4.10.1 X.520 id-at (2 5 4) collectiveOrganizationName -static const unsigned char cvOID_collectiveOrganizationName [] = { 0x55, 0x04, 0x0A, 0x01}; -//2.5.4.11 X.520 id-at (2 5 4) organizationalUnitName -static const unsigned char cvOID_organizationalUnitName [] = { 0x55, 0x04, 0x0B}; -//2.5.4.11.1 X.520 id-at (2 5 4) collectiveOrganizationalUnitName -static const unsigned char cvOID_collectiveOrganizationalUnitName [] = { 0x55, 0x04, 0x0B, 0x01}; -//2.5.4.12 X.520 id-at (2 5 4) title -static const unsigned char cvOID_title [] = { 0x55, 0x04, 0x0C}; -//2.5.4.13 X.520 id-at (2 5 4) description -static const unsigned char cvOID_description [] = { 0x55, 0x04, 0x0D}; -//2.5.4.14 X.520 id-at (2 5 4) searchGuide -static const unsigned char cvOID_searchGuide [] = { 0x55, 0x04, 0x0E}; -//2.5.4.15 X.520 id-at (2 5 4) businessCategory -static const unsigned char cvOID_businessCategory [] = { 0x55, 0x04, 0x0F}; -//2.5.4.16 X.520 id-at (2 5 4) postalAddress -static const unsigned char cvOID_postalAddress [] = { 0x55, 0x04, 0x10}; -//2.5.4.16.1 X.520 id-at (2 5 4) collectivePostalAddress -static const unsigned char cvOID_collectivePostalAddress [] = { 0x55, 0x04, 0x10, 0x01}; -//2.5.4.17 X.520 id-at (2 5 4) postalCode -static const unsigned char cvOID_postalCode [] = { 0x55, 0x04, 0x11}; -//2.5.4.17.1 X.520 id-at (2 5 4) collectivePostalCode -static const unsigned char cvOID_collectivePostalCode [] = { 0x55, 0x04, 0x11, 0x01}; -//2.5.4.18 X.520 id-at (2 5 4) postOfficeBox -static const unsigned char cvOID_postOfficeBox [] = { 0x55, 0x04, 0x12}; -//2.5.4.18.1 X.520 id-at (2 5 4) collectivePostOfficeBox -static const unsigned char cvOID_collectivePostOfficeBox [] = { 0x55, 0x04, 0x12, 0x01}; -//2.5.4.19 X.520 id-at (2 5 4) physicalDeliveryOfficeName -static const unsigned char cvOID_physicalDeliveryOfficeName [] = { 0x55, 0x04, 0x13}; -//2.5.4.19.1 X.520 id-at (2 5 4) collectivePhysicalDeliveryOfficeName -static const unsigned char cvOID_collectivePhysicalDeliveryOfficeName [] = { 0x55, 0x04, 0x13, 0x01}; -//2.5.4.20 X.520 id-at (2 5 4) telephoneNumber -static const unsigned char cvOID_telephoneNumber [] = { 0x55, 0x04, 0x14}; -//2.5.4.20.1 X.520 id-at (2 5 4) collectiveTelephoneNumber -static const unsigned char cvOID_collectiveTelephoneNumber [] = { 0x55, 0x04, 0x14, 0x01}; -//2.5.4.21 X.520 id-at (2 5 4) telexNumber -static const unsigned char cvOID_telexNumber [] = { 0x55, 0x04, 0x15}; -//2.5.4.21.1 X.520 id-at (2 5 4) collectiveTelexNumber -static const unsigned char cvOID_collectiveTelexNumber [] = { 0x55, 0x04, 0x15, 0x01}; -//2.5.4.22 X.520 id-at (2 5 4) teletexTerminalIdentifier -static const unsigned char cvOID_teletexTerminalIdentifier [] = { 0x55, 0x04, 0x16}; -//2.5.4.22.1 X.520 id-at (2 5 4) collectiveTeletexTerminalIdentifier -static const unsigned char cvOID_collectiveTeletexTerminalIdentifier [] = { 0x55, 0x04, 0x16, 0x01}; -//2.5.4.23 X.520 id-at (2 5 4) facsimileTelephoneNumber -static const unsigned char cvOID_facsimileTelephoneNumber [] = { 0x55, 0x04, 0x17}; -//2.5.4.23.1 X.520 id-at (2 5 4) collectiveFacsimileTelephoneNumber -static const unsigned char cvOID_collectiveFacsimileTelephoneNumber [] = { 0x55, 0x04, 0x17, 0x01}; -//2.5.4.24 X.520 id-at (2 5 4) x121Address -static const unsigned char cvOID_x121Address [] = { 0x55, 0x04, 0x18}; -//2.5.4.25 X.520 id-at (2 5 4) internationalISDNNumber -static const unsigned char cvOID_internationalISDNNumber [] = { 0x55, 0x04, 0x19}; -//2.5.4.25.1 X.520 id-at (2 5 4) collectiveInternationalISDNNumber -static const unsigned char cvOID_collectiveInternationalISDNNumber [] = { 0x55, 0x04, 0x19, 0x01}; -//2.5.4.26 X.520 id-at (2 5 4) registeredAddress -static const unsigned char cvOID_registeredAddress [] = { 0x55, 0x04, 0x1A}; -//2.5.4.27 X.520 id-at (2 5 4) destinationIndicator -static const unsigned char cvOID_destinationIndicator [] = { 0x55, 0x04, 0x1B}; -//2.5.4.28 X.520 id-at (2 5 4) preferredDeliveryMehtod -static const unsigned char cvOID_preferredDeliveryMehtod [] = { 0x55, 0x04, 0x1C}; -//2.5.4.29 X.520 id-at (2 5 4) presentationAddress -static const unsigned char cvOID_presentationAddress [] = { 0x55, 0x04, 0x1D}; -//2.5.4.30 X.520 id-at (2 5 4) supportedApplicationContext -static const unsigned char cvOID_supportedApplicationContext [] = { 0x55, 0x04, 0x1E}; -//2.5.4.31 X.520 id-at (2 5 4) member -static const unsigned char cvOID_member [] = { 0x55, 0x04, 0x1F}; -//2.5.4.32 X.520 id-at (2 5 4) owner -static const unsigned char cvOID_owner [] = { 0x55, 0x04, 0x20}; -//2.5.4.33 X.520 id-at (2 5 4) roleOccupant -static const unsigned char cvOID_roleOccupant [] = { 0x55, 0x04, 0x21}; -//2.5.4.34 X.520 id-at (2 5 4) seeAlso -static const unsigned char cvOID_seeAlso [] = { 0x55, 0x04, 0x22}; -//2.5.4.35 X.520 id-at (2 5 4) userPassword -static const unsigned char cvOID_userPassword [] = { 0x55, 0x04, 0x23}; -//2.5.4.36 X.520 id-at (2 5 4) userCertificate -static const unsigned char cvOID_userCertificate [] = { 0x55, 0x04, 0x24}; -//2.5.4.37 X.520 id-at (2 5 4) caCertificate -static const unsigned char cvOID_caCertificate [] = { 0x55, 0x04, 0x25}; -//2.5.4.38 X.520 id-at (2 5 4) authorityRevocationList -static const unsigned char cvOID_authorityRevocationList [] = { 0x55, 0x04, 0x26}; -//2.5.4.39 X.520 id-at (2 5 4) certificateRevocationList -static const unsigned char cvOID_certificateRevocationList [] = { 0x55, 0x04, 0x27}; -//2.5.4.40 X.520 id-at (2 5 4) crossCertificatePair -static const unsigned char cvOID_crossCertificatePair_2 [] = { 0x55, 0x04, 0x28}; -//2.5.4.41 X.520 id-at (2 5 4) name -static const unsigned char cvOID_name [] = { 0x55, 0x04, 0x29}; -//2.5.4.42 X.520 id-at (2 5 4) givenName -static const unsigned char cvOID_givenName [] = { 0x55, 0x04, 0x2A}; -//2.5.4.43 X.520 id-at (2 5 4) initials -static const unsigned char cvOID_initials [] = { 0x55, 0x04, 0x2B}; -//2.5.4.44 X.520 id-at (2 5 4) generationQualifier -static const unsigned char cvOID_generationQualifier [] = { 0x55, 0x04, 0x2C}; -//2.5.4.45 X.520 id-at (2 5 4) uniqueIdentifier -static const unsigned char cvOID_uniqueIdentifier [] = { 0x55, 0x04, 0x2D}; -//2.5.4.46 X.520 id-at (2 5 4) dnQualifier -static const unsigned char cvOID_dnQualifier [] = { 0x55, 0x04, 0x2E}; -//2.5.4.47 X.520 id-at (2 5 4) enhancedSearchGuide -static const unsigned char cvOID_enhancedSearchGuide [] = { 0x55, 0x04, 0x2F}; -//2.5.4.48 X.520 id-at (2 5 4) protocolInformation -static const unsigned char cvOID_protocolInformation [] = { 0x55, 0x04, 0x30}; -//2.5.4.49 X.520 id-at (2 5 4) distinguishedName -static const unsigned char cvOID_distinguishedName [] = { 0x55, 0x04, 0x31}; -//2.5.4.50 X.520 id-at (2 5 4) uniqueMember -static const unsigned char cvOID_uniqueMember [] = { 0x55, 0x04, 0x32}; -//2.5.4.51 X.520 id-at (2 5 4) houseIdentifier -static const unsigned char cvOID_houseIdentifier [] = { 0x55, 0x04, 0x33}; -//2.5.4.52 X.520 id-at (2 5 4) supportedAlgorithms -static const unsigned char cvOID_supportedAlgorithms [] = { 0x55, 0x04, 0x34}; -//2.5.4.53 X.520 id-at (2 5 4) deltaRevocationList -static const unsigned char cvOID_deltaRevocationList [] = { 0x55, 0x04, 0x35}; -//2.5.4.55 X.520 id-at (2 5 4) clearance -static const unsigned char cvOID_clearance [] = { 0x55, 0x04, 0x36}; -//2.5.4.58 X.520 id-at (2 5 4) crossCertificatePair -static const unsigned char cvOID_crossCertificatePair_1 [] = { 0x55, 0x04, 0x3A}; -//2.5.4.65 Naming attributes of type X520Pseudonym -static const unsigned char cvOID_pseudonym[] = { 0x55, 0x04, 0x41}; -//2.5.8.1.1 X.500 algorithms. Ambiguous, since no padding rules specified rsa -static const unsigned char cvOID_rsa_X500 [] = { 0x55, 0x08, 0x01, 0x01}; -//2.5.29.1 X.509 id-ce (2 5 29). Deprecated, use (2 5 29 35) instead authorityKeyIdentifier -static const unsigned char cvOID_authorityKeyIdentifier_old[] = { 0x55, 0x1D, 0x01}; -//2.5.29.2 X.509 id-ce (2 5 29). Obsolete, use keyUsage/extKeyUsage instead keyAttributes -static const unsigned char cvOID_keyAttributes [] = { 0x55, 0x1D, 0x02}; -//2.5.29.3 X.509 id-ce (2 5 29). Deprecated, use (2 5 29 32) instead certificatePolicies -static const unsigned char cvOID_certificatePolicies_old [] = { 0x55, 0x1D, 0x03}; -//2.5.29.4 X.509 id-ce (2 5 29). Obsolete, use keyUsage/extKeyUsage instead keyUsageRestriction -static const unsigned char cvOID_keyUsageRestriction [] = { 0x55, 0x1D, 0x04}; -//2.5.29.5 X.509 id-ce (2 5 29). Deprecated, use (2 5 29 33) instead policyMapping -static const unsigned char cvOID_policyMapping [] = { 0x55, 0x1D, 0x05}; -//2.5.29.6 X.509 id-ce (2 5 29). Obsolete, use namestatic constraints instead subtreesstatic constraint -static const unsigned char cvOID_subtreesconstraint [] = { 0x55, 0x1D, 0x06}; -//2.5.29.7 X.509 id-ce (2 5 29). Deprecated, use (2 5 29 17) instead subjectAltName -static const unsigned char cvOID_subjectAltName_old [] = { 0x55, 0x1D, 0x07}; -//2.5.29.8 X.509 id-ce (2 5 29). Deprecated, use (2 5 29 18) instead issuerAltName -static const unsigned char cvOID_issuerAltName_old [] = { 0x55, 0x1D, 0x08}; -//2.5.29.9 X.509 id-ce (2 5 29) subjectDirectoryAttributes -static const unsigned char cvOID_subjectDirectoryAttributes [] = { 0x55, 0x1D, 0x09}; -//2.5.29.10 X.509 id-ce (2 5 29). Deprecated, use (2 5 29 19) instead basicstatic constraints -static const unsigned char cvOID_basicconstraints_old [] = { 0x55, 0x1D, 0x0A}; -//2.5.29.11 X.509 id-ce (2 5 29). Deprecated, use (2 5 29 30) instead namestatic constraints -static const unsigned char cvOID_nameconstraints_old [] = { 0x55, 0x1D, 0x0B}; -//2.5.29.12 X.509 id-ce (2 5 29). Deprecated, use (2 5 29 36) instead policystatic constraints -static const unsigned char cvOID_policyconstraints_old_1 [] = { 0x55, 0x1D, 0x0C}; -//2.5.29.13 X.509 id-ce (2 5 29). Deprecated, use (2 5 29 19) instead basicstatic constraints -static const unsigned char cvOID_basicconstraints_2 [] = { 0x55, 0x1D, 0x0D}; -//2.5.29.14 X.509 id-ce (2 5 29) subjectKeyIdentifier -static const unsigned char cvOID_subjectKeyIdentifier[] = { 0x55, 0x1D, 0x0E}; -//2.5.29.15 X.509 id-ce (2 5 29) keyUsage -static const unsigned char cvOID_keyUsage[] = { 0x55, 0x1D, 0x0F}; -//2.5.29.16 X.509 id-ce (2 5 29) privateKeyUsagePeriod -static const unsigned char cvOID_privateKeyUsagePeriod [] = { 0x55, 0x1D, 0x10}; -//2.5.29.17 X.509 id-ce (2 5 29) subjectAltName -static const unsigned char cvOID_subjectAltName [] = { 0x55, 0x1D, 0x11}; -//2.5.29.18 X.509 id-ce (2 5 29) issuerAltName -static const unsigned char cvOID_issuerAltName [] = { 0x55, 0x1D, 0x12}; -//2.5.29.19 X.509 id-ce (2 5 29) basicstatic constraints -static const unsigned char cvOID_basicconstraints[] = { 0x55, 0x1D, 0x13}; -//2.5.29.20 X.509 id-ce (2 5 29) cRLNumber -static const unsigned char cvOID_cRLNumber [] = { 0x55, 0x1D, 0x14}; -//2.5.29.21 X.509 id-ce (2 5 29) cRLReason -static const unsigned char cvOID_cRLReason [] = { 0x55, 0x1D, 0x15}; -//2.5.29.22 X.509 id-ce (2 5 29). Deprecated, alternative OID uncertain expirationDate -static const unsigned char cvOID_expirationDate [] = { 0x55, 0x1D, 0x16}; -//2.5.29.23 X.509 id-ce (2 5 29) instructionCode -static const unsigned char cvOID_instructionCode [] = { 0x55, 0x1D, 0x17}; -//2.5.29.24 X.509 id-ce (2 5 29) invalidityDate -static const unsigned char cvOID_invalidityDate [] = { 0x55, 0x1D, 0x18}; -//2.5.29.25 X.509 id-ce (2 5 29). Deprecated, use (2 5 29 31) instead cRLDistributionPoints -static const unsigned char cvOID_cRLDistributionPoints_old [] = { 0x55, 0x1D, 0x19}; -//2.5.29.26 X.509 id-ce (2 5 29). Deprecated, use (2 5 29 28) instead issuingDistributionPoint -static const unsigned char cvOID_issuingDistributionPoint_old [] = { 0x55, 0x1D, 0x1A}; -//2.5.29.27 X.509 id-ce (2 5 29) deltaCRLIndicator -static const unsigned char cvOID_deltaCRLIndicator [] = { 0x55, 0x1D, 0x1B}; -//2.5.29.28 X.509 id-ce (2 5 29) issuingDistributionPoint -static const unsigned char cvOID_issuingDistributionPoint [] = { 0x55, 0x1D, 0x1C}; -//2.5.29.29 X.509 id-ce (2 5 29) certificateIssuer -static const unsigned char cvOID_certificateIssuer [] = { 0x55, 0x1D, 0x1D}; -//2.5.29.30 X.509 id-ce (2 5 29) namestatic constraints -static const unsigned char cvOID_nameconstraints [] = { 0x55, 0x1D, 0x1E}; -//2.5.29.31 X.509 id-ce (2 5 29) cRLDistributionPoints -static const unsigned char cvOID_cRLDistributionPoints[] = { 0x55, 0x1D, 0x1F}; -//2.5.29.32 X.509 id-ce (2 5 29) certificatePolicies -static const unsigned char cvOID_certificatePolicies [] = { 0x55, 0x1D, 0x20}; -//2.5.29.32.0 X.509 id-ce (2 5 29.0) anyPolicies -static const unsigned char cvOID_anyPolicies [] = { 0x55, 0x1D, 0x20, 0x00}; -//2.5.29.33 X.509 id-ce (2 5 29) policyMappings -static const unsigned char cvOID_policyMappings [] = { 0x55, 0x1D, 0x21}; -//2.5.29.34 X.509 id-ce (2 5 29). Deprecated, use (2 5 29 36) instead policystatic constraints -static const unsigned char cvOID_policyconstraints_old_2 [] = { 0x55, 0x1D, 0x22}; -//2.5.29.35 X.509 id-ce (2 5 29) authorityKeyIdentifier -static const unsigned char cvOID_authorityKeyIdentifier [] = { 0x55, 0x1D, 0x23}; -//2.5.29.36 X.509 id-ce (2 5 29) policystatic constraints -static const unsigned char cvOID_policyconstraints [] = { 0x55, 0x1D, 0x24}; -//2.5.29.37 X.509 id-ce (2 5 29) extKeyUsage -static const unsigned char cvOID_extKeyUsage [] = { 0x55, 0x1D, 0x25}; -//2.5.29.37.0 anyExtendedKeyUsage id-ce-extKeyUsage 0 -static const unsigned char cvOID_anyExtendedKeyUsage [] = { 0x55, 0x1D, 0x25, 0x00}; -//ame -//2.5.29.46 X.509 id-ce (2 5 29) id-ce-freshestCRL -static const unsigned char cvOID_freshestCRL [] = { 0x55, 0x1D, 0x2E}; -//2.5.29.54 X.509 id-ce (2 5 29) inhibitAnyPolicy -static const unsigned char cvOID_inhibitAnyPolicy [] = { 0x55, 0x1D, 0x36}; - -//2.16.840.1.101.2.1.1.1 SDN.700 INFOSEC algorithms sdnsSignatureAlgorithm -static const unsigned char cvOID_sdnsSignatureAlgorithm [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x01, 0x01}; -//2.16.840.1.101.2.1.1.2 SDN.700 INFOSEC algorithms. Formerly known as mosaicSignatureAlgorithm, this OID is better known as dsaWithSHA-1. fortezzaSignatureAlgorithm -static const unsigned char cvOID_fortezzaSignatureAlgorithm [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x01, 0x02}; -//2.16.840.1.101.2.1.1.3 SDN.700 INFOSEC algorithms sdnsConfidentialityAlgorithm -static const unsigned char cvOID_sdnsConfidentialityAlgorithm [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x01, 0x03}; -//2.16.840.1.101.2.1.1.4 SDN.700 INFOSEC algorithms. Formerly known as mosaicConfidentialityAlgorithm fortezzaConfidentialityAlgorithm -static const unsigned char cvOID_fortezzaConfidentialityAlgorithm [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x01, 0x04}; -//2.16.840.1.101.2.1.1.5 SDN.700 INFOSEC algorithms sdnsIntegrityAlgorithm -static const unsigned char cvOID_sdnsIntegrityAlgorithm [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x01, 0x05}; -//2.16.840.1.101.2.1.1.6 SDN.700 INFOSEC algorithms. Formerly known as mosaicIntegrityAlgorithm fortezzaIntegrityAlgorithm -static const unsigned char cvOID_fortezzaIntegrityAlgorithm [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x01, 0x06}; -//2.16.840.1.101.2.1.1.7 SDN.700 INFOSEC algorithms sdnsTokenProtectionAlgorithm -static const unsigned char cvOID_sdnsTokenProtectionAlgorithm [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x01, 0x07}; -//2.16.840.1.101.2.1.1.8 SDN.700 INFOSEC algorithms. Formerly know as mosaicTokenProtectionAlgorithm fortezzaTokenProtectionAlgorithm -static const unsigned char cvOID_fortezzaTokenProtectionAlgorithm [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x01, 0x08}; -//2.16.840.1.101.2.1.1.9 SDN.700 INFOSEC algorithms sdnsKeyManagementAlgorithm -static const unsigned char cvOID_sdnsKeyManagementAlgorithm [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x01, 0x09}; -//2.16.840.1.101.2.1.1.10 SDN.700 INFOSEC algorithms. Formerly known as mosaicKeyManagementAlgorithm fortezzaKeyManagementAlgorithm -static const unsigned char cvOID_fortezzaKeyManagementAlgorithm [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x01, 0x0A}; -//2.16.840.1.101.2.1.1.11 SDN.700 INFOSEC algorithms sdnsKMandSigAlgorithm -static const unsigned char cvOID_sdnsKMandSigAlgorithm [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x01, 0x0B}; -//2.16.840.1.101.2.1.1.12 SDN.700 INFOSEC algorithms. Formerly known as mosaicKMandSigAlgorithm fortezzaKMandSigAlgorithm -static const unsigned char cvOID_fortezzaKMandSigAlgorithm [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x01, 0x0C}; -//2.16.840.1.101.2.1.1.13 SDN.700 INFOSEC algorithms suiteASignatureAlgorithm -static const unsigned char cvOID_suiteASignatureAlgorithm [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x01, 0x0D}; -//2.16.840.1.101.2.1.1.14 SDN.700 INFOSEC algorithms suiteAConfidentialityAlgorithm -static const unsigned char cvOID_suiteAConfidentialityAlgorithm [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x01, 0x0E}; -//2.16.840.1.101.2.1.1.15 SDN.700 INFOSEC algorithms suiteAIntegrityAlgorithm -static const unsigned char cvOID_suiteAIntegrityAlgorithm [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x01, 0x0F}; -//2.16.840.1.101.2.1.1.16 SDN.700 INFOSEC algorithms suiteATokenProtectionAlgorithm -static const unsigned char cvOID_suiteATokenProtectionAlgorithm [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x01, 0x10}; -//2.16.840.1.101.2.1.1.17 SDN.700 INFOSEC algorithms suiteAKeyManagementAlgorithm -static const unsigned char cvOID_suiteAKeyManagementAlgorithm [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x01, 0x11}; -//2.16.840.1.101.2.1.1.18 SDN.700 INFOSEC algorithms suiteAKMandSigAlgorithm -static const unsigned char cvOID_suiteAKMandSigAlgorithm [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x01, 0x12}; -//2.16.840.1.101.2.1.1.19 SDN.700 INFOSEC algorithms. Formerly known as mosaicUpdatedSigAlgorithm fortezzaUpdatedSigAlgorithm -static const unsigned char cvOID_fortezzaUpdatedSigAlgorithm [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x01, 0x13}; -//2.16.840.1.101.2.1.1.20 SDN.700 INFOSEC algorithms. Formerly known as mosaicKMandUpdSigAlgorithms fortezzaKMandUpdSigAlgorithms -static const unsigned char cvOID_fortezzaKMandUpdSigAlgorithms [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x01, 0x14}; -//2.16.840.1.101.2.1.1.21 SDN.700 INFOSEC algorithms. Formerly known as mosaicUpdatedIntegAlgorithm fortezzaUpdatedIntegAlgorithm -static const unsigned char cvOID_fortezzaUpdatedIntegAlgorithm [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x01, 0x15}; -//2.16.840.1.101.2.1.1.22 SDN.700 INFOSEC algorithms. Formerly known as mosaicKeyEncryptionAlgorithm keyExchangeAlgorithm -static const unsigned char cvOID_keyExchangeAlgorithm [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x01, 0x16}; -//2.16.840.1.101.2.1.1.23 SDN.700 INFOSEC algorithms fortezzaWrap80Algorithm -static const unsigned char cvOID_fortezzaWrap80Algorithm [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x01, 0x17}; -//2.16.840.1.101.2.1.1.24 SDN.700 INFOSEC algorithms kEAKeyEncryptionAlgorithm -static const unsigned char cvOID_kEAKeyEncryptionAlgorithm [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x01, 0x18}; -//2.16.840.1.101.2.1.2.1 SDN.700 INFOSEC format rfc822MessageFormat -static const unsigned char cvOID_rfc822MessageFormat [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x02, 0x01}; -//2.16.840.1.101.2.1.2.2 SDN.700 INFOSEC format emptyContent -static const unsigned char cvOID_emptyContent [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x02, 0x02}; -//2.16.840.1.101.2.1.2.3 SDN.700 INFOSEC format cspContentType -static const unsigned char cvOID_cspContentType [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x02, 0x03}; -//2.16.840.1.101.2.1.2.42 SDN.700 INFOSEC format mspRev3ContentType -static const unsigned char cvOID_mspRev3ContentType [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x02, 0x2A}; -//2.16.840.1.101.2.1.2.48 SDN.700 INFOSEC format mspContentType -static const unsigned char cvOID_mspContentType [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x02, 0x30}; -//2.16.840.1.101.2.1.2.49 SDN.700 INFOSEC format mspRekeyAgentProtocol -static const unsigned char cvOID_mspRekeyAgentProtocol [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x02, 0x31}; -//2.16.840.1.101.2.1.2.50 SDN.700 INFOSEC format mspMMP -static const unsigned char cvOID_mspMMP [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x02, 0x32}; -//2.16.840.1.101.2.1.2.66 SDN.700 INFOSEC format mspRev3-1ContentType -static const unsigned char cvOID_mspRev3_1ContentType [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x02, 0x42}; -//2.16.840.1.101.2.1.2.72 SDN.700 INFOSEC format forwardedMSPMessageBodyPart -static const unsigned char cvOID_forwardedMSPMessageBodyPart [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x02, 0x48}; -//2.16.840.1.101.2.1.2.73 SDN.700 INFOSEC format mspForwardedMessageParameters -static const unsigned char cvOID_mspForwardedMessageParameters [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x02, 0x49}; -//2.16.840.1.101.2.1.2.74 SDN.700 INFOSEC format forwardedCSPMsgBodyPart -static const unsigned char cvOID_forwardedCSPMsgBodyPart [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x02, 0x50}; -//2.16.840.1.101.2.1.2.75 SDN.700 INFOSEC format cspForwardedMessageParameters -static const unsigned char cvOID_cspForwardedMessageParameters [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x02, 0x51}; -//2.16.840.1.101.2.1.2.76 SDN.700 INFOSEC format mspMMP2 -static const unsigned char cvOID_mspMMP2 [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x02, 0x52}; -//2.16.840.1.101.2.1.3.1 SDN.700 INFOSEC policy sdnsSecurityPolicy -static const unsigned char cvOID_sdnsSecurityPolicy [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x03, 0x01}; -//2.16.840.1.101.2.1.3.2 SDN.700 INFOSEC policy sdnsPRBAC -static const unsigned char cvOID_sdnsPRBAC [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x03, 0x02}; -//2.16.840.1.101.2.1.3.3 SDN.700 INFOSEC policy mosaicPRBAC -static const unsigned char cvOID_mosaicPRBAC [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x03, 0x03}; -//2.16.840.1.101.2.1.3.10 SDN.700 INFOSEC policy siSecurityPolicy -static const unsigned char cvOID_siSecurityPolicy [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x03, 0x0A}; -//2.16.840.1.101.2.1.3.10.0 SDN.700 INFOSEC policy (obsolete) siNASP -static const unsigned char cvOID_siNASP [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x03, 0x0A, 0x00}; -//2.16.840.1.101.2.1.3.10.1 SDN.700 INFOSEC policy (obsolete) siELCO -static const unsigned char cvOID_siELCO [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x03, 0x0A, 0x01}; -//2.16.840.1.101.2.1.3.10.2 SDN.700 INFOSEC policy (obsolete) siTK -static const unsigned char cvOID_siTK [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x03, 0x0A, 0x02}; -//2.16.840.1.101.2.1.3.10.3 SDN.700 INFOSEC policy (obsolete) siDSAP -static const unsigned char cvOID_siDSAP [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x03, 0x0A, 0x03}; -//2.16.840.1.101.2.1.3.10.4 SDN.700 INFOSEC policy (obsolete) siSSSS -static const unsigned char cvOID_siSSSS [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x03, 0x0A, 0x04}; -//2.16.840.1.101.2.1.3.10.5 SDN.700 INFOSEC policy (obsolete) siDNASP -static const unsigned char cvOID_siDNASP [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x03, 0x0A, 0x05}; -//2.16.840.1.101.2.1.3.10.6 SDN.700 INFOSEC policy (obsolete) siBYEMAN -static const unsigned char cvOID_siBYEMAN [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x03, 0x0A, 0x06}; -//2.16.840.1.101.2.1.3.10.7 SDN.700 INFOSEC policy (obsolete) siREL-US -static const unsigned char cvOID_siREL_US [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x03, 0x0A, 0x07}; -//2.16.840.1.101.2.1.3.10.8 SDN.700 INFOSEC policy (obsolete) siREL-AUS -static const unsigned char cvOID_siREL_AUS [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x03, 0x0A, 0x08}; -//2.16.840.1.101.2.1.3.10.9 SDN.700 INFOSEC policy (obsolete) siREL-CAN -static const unsigned char cvOID_siREL_CAN [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x03, 0x0A, 0x09}; -//2.16.840.1.101.2.1.3.10.10 SDN.700 INFOSEC policy (obsolete) siREL_UK -static const unsigned char cvOID_siREL_UK [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x03, 0x0A, 0x0A}; -//2.16.840.1.101.2.1.3.10.11 SDN.700 INFOSEC policy (obsolete) siREL-NZ -static const unsigned char cvOID_siREL_NZ [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x03, 0x0A, 0x0B}; -//2.16.840.1.101.2.1.3.10.12 SDN.700 INFOSEC policy (obsolete) siGeneric -static const unsigned char cvOID_siGeneric [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x03, 0x0A, 0x0C}; -//2.16.840.1.101.2.1.3.11 SDN.700 INFOSEC policy genser -static const unsigned char cvOID_genser [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x03, 0x0B}; -//2.16.840.1.101.2.1.3.11.0 SDN.700 INFOSEC policy (obsolete) genserNations -static const unsigned char cvOID_genserNations [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x03, 0x0B, 0x00}; -//2.16.840.1.101.2.1.3.11.1 SDN.700 INFOSEC policy (obsolete) genserComsec -static const unsigned char cvOID_genserComsec [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x03, 0x0B, 0x01}; -//2.16.840.1.101.2.1.3.11.2 SDN.700 INFOSEC policy (obsolete) genserAcquisition -static const unsigned char cvOID_genserAcquisition [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x03, 0x0B, 0x02}; -//2.16.840.1.101.2.1.3.11.3 SDN.700 INFOSEC policy genserSecurityCategories -static const unsigned char cvOID_genserSecurityCategories [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x03, 0x0B, 0x03}; -//2.16.840.1.101.2.1.3.11.3.0 SDN.700 INFOSEC GENSER policy genserTagSetName -static const unsigned char cvOID_genserTagSetName [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x03, 0x0B, 0x03, 0x00}; -//2.16.840.1.101.2.1.3.12 SDN.700 INFOSEC policy defaultSecurityPolicy -static const unsigned char cvOID_defaultSecurityPolicy [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x03, 0x0C}; -//2.16.840.1.101.2.1.3.13 SDN.700 INFOSEC policy capcoMarkings -static const unsigned char cvOID_capcoMarkings [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x03, 0x0D}; -//2.16.840.1.101.2.1.3.13.0 SDN.700 INFOSEC policy CAPCO markings capcoSecurityCategories -static const unsigned char cvOID_capcoSecurityCategories [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x03, 0x0D, 0x00}; -//2.16.840.1.101.2.1.3.13.0.1 SDN.700 INFOSEC policy CAPCO markings capcoTagSetName1 -static const unsigned char cvOID_capcoTagSetName1 [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x03, 0x0D, 0x00, 0x01}; -//2.16.840.1.101.2.1.3.13.0.2 SDN.700 INFOSEC policy CAPCO markings capcoTagSetName2 -static const unsigned char cvOID_capcoTagSetName2 [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x03, 0x0D, 0x00, 0x02}; -//2.16.840.1.101.2.1.3.13.0.3 SDN.700 INFOSEC policy CAPCO markings capcoTagSetName3 -static const unsigned char cvOID_capcoTagSetName3 [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x03, 0x0D, 0x00, 0x03}; -//2.16.840.1.101.2.1.3.13.0.4 SDN.700 INFOSEC policy CAPCO markings capcoTagSetName4 -static const unsigned char cvOID_capcoTagSetName4 [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x03, 0x0D, 0x00, 0x04}; -//2.16.840.1.101.2.1.5.1 SDN.700 INFOSEC attributes (superseded) sdnsKeyManagementCertificate -static const unsigned char cvOID_sdnsKeyManagementCertificate [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x05, 0x01}; -//2.16.840.1.101.2.1.5.2 SDN.700 INFOSEC attributes (superseded) sdnsUserSignatureCertificate -static const unsigned char cvOID_sdnsUserSignatureCertificate [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x05, 0x02}; -//2.16.840.1.101.2.1.5.3 SDN.700 INFOSEC attributes (superseded) sdnsKMandSigCertificate -static const unsigned char cvOID_sdnsKMandSigCertificate [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x05, 0x03}; -//2.16.840.1.101.2.1.5.4 SDN.700 INFOSEC attributes (superseded) fortezzaKeyManagementCertificate -static const unsigned char cvOID_fortezzaKeyManagementCertificate [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x05, 0x04}; -//2.16.840.1.101.2.1.5.5 SDN.700 INFOSEC attributes (superseded) fortezzaKMandSigCertificate -static const unsigned char cvOID_fortezzaKMandSigCertificate [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x05, 0x05}; -//2.16.840.1.101.2.1.5.6 SDN.700 INFOSEC attributes (superseded) fortezzaUserSignatureCertificate -static const unsigned char cvOID_fortezzaUserSignatureCertificate [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x05, 0x06}; -//2.16.840.1.101.2.1.5.7 SDN.700 INFOSEC attributes (superseded) fortezzaCASignatureCertificate -static const unsigned char cvOID_fortezzaCASignatureCertificate [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x05, 0x07}; -//2.16.840.1.101.2.1.5.8 SDN.700 INFOSEC attributes (superseded) sdnsCASignatureCertificate -static const unsigned char cvOID_sdnsCASignatureCertificate [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x05, 0x08}; -//2.16.840.1.101.2.1.5.10 SDN.700 INFOSEC attributes (superseded) auxiliaryVector -static const unsigned char cvOID_auxiliaryVector [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x05, 0x0A}; -//2.16.840.1.101.2.1.5.11 SDN.700 INFOSEC attributes mlReceiptPolicy -static const unsigned char cvOID_mlReceiptPolicy [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x05, 0x0B}; -//2.16.840.1.101.2.1.5.12 SDN.700 INFOSEC attributes mlMembership -static const unsigned char cvOID_mlMembership [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x05, 0x0C}; -//2.16.840.1.101.2.1.5.13 SDN.700 INFOSEC attributes mlAdministrators -static const unsigned char cvOID_mlAdministrators [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x05, 0x0D}; -//2.16.840.1.101.2.1.5.14 SDN.700 INFOSEC attributes alid -static const unsigned char cvOID_alid [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x05, 0x0E}; -//2.16.840.1.101.2.1.5.20 SDN.700 INFOSEC attributes janUKMs -static const unsigned char cvOID_janUKMs [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x05, 0x14}; -//2.16.840.1.101.2.1.5.21 SDN.700 INFOSEC attributes febUKMs -static const unsigned char cvOID_febUKMs [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x05, 0x15}; -//2.16.840.1.101.2.1.5.22 SDN.700 INFOSEC attributes marUKMs -static const unsigned char cvOID_marUKMs [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x05, 0x16}; -//2.16.840.1.101.2.1.5.23 SDN.700 INFOSEC attributes aprUKMs -static const unsigned char cvOID_aprUKMs [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x05, 0x17}; -//2.16.840.1.101.2.1.5.24 SDN.700 INFOSEC attributes mayUKMs -static const unsigned char cvOID_mayUKMs [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x05, 0x18}; -//2.16.840.1.101.2.1.5.25 SDN.700 INFOSEC attributes junUKMs -static const unsigned char cvOID_junUKMs [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x05, 0x19}; -//2.16.840.1.101.2.1.5.26 SDN.700 INFOSEC attributes julUKMs -static const unsigned char cvOID_julUKMs [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x05, 0x1A}; -//2.16.840.1.101.2.1.5.27 SDN.700 INFOSEC attributes augUKMs -static const unsigned char cvOID_augUKMs [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x05, 0x1B}; -//2.16.840.1.101.2.1.5.28 SDN.700 INFOSEC attributes sepUKMs -static const unsigned char cvOID_sepUKMs [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x05, 0x1C}; -//2.16.840.1.101.2.1.5.29 SDN.700 INFOSEC attributes octUKMs -static const unsigned char cvOID_octUKMs [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x05, 0x1D}; -//2.16.840.1.101.2.1.5.30 SDN.700 INFOSEC attributes novUKMs -static const unsigned char cvOID_novUKMs [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x05, 0x1E}; -//2.16.840.1.101.2.1.5.21 SDN.700 INFOSEC attributes decUKMs -static const unsigned char cvOID_decUKMs [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x05, 0x1F}; -//2.16.840.1.101.2.1.5.40 SDN.700 INFOSEC attributes metaSDNSckl -static const unsigned char cvOID_metaSDNSckl [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x05, 0x28}; -//2.16.840.1.101.2.1.5.41 SDN.700 INFOSEC attributes sdnsCKL -static const unsigned char cvOID_sdnsCKL [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x05, 0x29}; -//2.16.840.1.101.2.1.5.42 SDN.700 INFOSEC attributes metaSDNSsignatureCKL -static const unsigned char cvOID_metaSDNSsignatureCKL [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x05, 0x2A}; -//2.16.840.1.101.2.1.5.43 SDN.700 INFOSEC attributes sdnsSignatureCKL -static const unsigned char cvOID_sdnsSignatureCKL [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x05, 0x2B}; -//2.16.840.1.101.2.1.5.44 SDN.700 INFOSEC attributes sdnsCertificateRevocationList -static const unsigned char cvOID_sdnsCertificateRevocationList [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x05, 0x2C}; -//2.16.840.1.101.2.1.5.45 SDN.700 INFOSEC attributes (superseded) fortezzaCertificateRevocationList -static const unsigned char cvOID_fortezzaCertificateRevocationList [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x05, 0x2D}; -//2.16.840.1.101.2.1.5.46 SDN.700 INFOSEC attributes fortezzaCKL -static const unsigned char cvOID_fortezzaCKL [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x05, 0x2E}; -//2.16.840.1.101.2.1.5.47 SDN.700 INFOSEC attributes alExemptedAddressProcessor -static const unsigned char cvOID_alExemptedAddressProcessor [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x05, 0x2F}; -//2.16.840.1.101.2.1.5.48 SDN.700 INFOSEC attributes (obsolete) guard -static const unsigned char cvOID_guard [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x05, 0x30}; -//2.16.840.1.101.2.1.5.49 SDN.700 INFOSEC attributes (obsolete) algorithmsSupported -static const unsigned char cvOID_algorithmsSupported [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x05, 0x31}; -//2.16.840.1.101.2.1.5.50 SDN.700 INFOSEC attributes (obsolete) suiteAKeyManagementCertificate -static const unsigned char cvOID_suiteAKeyManagementCertificate [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x05, 0x32}; -//2.16.840.1.101.2.1.5.51 SDN.700 INFOSEC attributes (obsolete) suiteAKMandSigCertificate -static const unsigned char cvOID_suiteAKMandSigCertificate [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x05, 0x33}; -//2.16.840.1.101.2.1.5.52 SDN.700 INFOSEC attributes (obsolete) suiteAUserSignatureCertificate -static const unsigned char cvOID_suiteAUserSignatureCertificate [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x05, 0x34}; -//2.16.840.1.101.2.1.5.53 SDN.700 INFOSEC attributes prbacInfo -static const unsigned char cvOID_prbacInfo [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x05, 0x35}; -//2.16.840.1.101.2.1.5.54 SDN.700 INFOSEC attributes prbacCAstatic constraints -static const unsigned char cvOID_prbacCAconstraints [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x05, 0x36}; -//2.16.840.1.101.2.1.5.55 SDN.700 INFOSEC attributes sigOrKMPrivileges -static const unsigned char cvOID_sigOrKMPrivileges [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x05, 0x37}; -//2.16.840.1.101.2.1.5.56 SDN.700 INFOSEC attributes commPrivileges -static const unsigned char cvOID_commPrivileges [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x05, 0x38}; -//2.16.840.1.101.2.1.5.57 SDN.700 INFOSEC attributes labeledAttribute -static const unsigned char cvOID_labeledAttribute [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x05, 0x39}; -//2.16.840.1.101.2.1.5.58 SDN.700 INFOSEC attributes (obsolete) policyInformationFile -static const unsigned char cvOID_policyInformationFile [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x05, 0x3A}; -//2.16.840.1.101.2.1.5.59 SDN.700 INFOSEC attributes secPolicyInformationFile -static const unsigned char cvOID_secPolicyInformationFile [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x05, 0x3B}; -//2.16.840.1.101.2.1.5.60 SDN.700 INFOSEC attributes cAClearancestatic constraint -static const unsigned char cvOID_cAClearanceconstraint [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x05, 0x3C}; -//2.16.840.1.101.2.1.7.1 SDN.700 INFOSEC extensions cspExtns -static const unsigned char cvOID_cspExtns [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x07, 0x01}; -//2.16.840.1.101.2.1.7.1.0 SDN.700 INFOSEC extensions cspCsExtn -static const unsigned char cvOID_cspCsExtn [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x07, 0x01, 0x00}; -//2.16.840.1.101.2.1.8.1 SDN.700 INFOSEC security category mISSISecurityCategories -static const unsigned char cvOID_mISSISecurityCategories [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x08, 0x01}; -//2.16.840.1.101.2.1.8.2 SDN.700 INFOSEC security category standardSecurityLabelPrivileges -static const unsigned char cvOID_standardSecurityLabelPrivileges [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x08, 0x02}; -//2.16.840.1.101.2.1.10.1 SDN.700 INFOSEC privileges sigPrivileges -static const unsigned char cvOID_sigPrivileges [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x0A, 0x01}; -//2.16.840.1.101.2.1.10.2 SDN.700 INFOSEC privileges kmPrivileges -static const unsigned char cvOID_kmPrivileges [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x0A, 0x02}; -//2.16.840.1.101.2.1.10.3 SDN.700 INFOSEC privileges namedTagSetPrivilege -static const unsigned char cvOID_namedTagSetPrivilege [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x0A, 0x03}; -//2.16.840.1.101.2.1.11.1 SDN.700 INFOSEC certificate policy ukDemo -static const unsigned char cvOID_ukDemo [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x0B, 0x01}; -//2.16.840.1.101.2.1.11.2 SDN.700 INFOSEC certificate policy usDODClass2 -static const unsigned char cvOID_usDODClass2 [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x0B, 0x02}; -//2.16.840.1.101.2.1.11.3 SDN.700 INFOSEC certificate policy usMediumPilot -static const unsigned char cvOID_usMediumPilot [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x0B, 0x03}; -//2.16.840.1.101.2.1.11.4 SDN.700 INFOSEC certificate policy usDODClass4 -static const unsigned char cvOID_usDODClass4 [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x0B, 0x04}; -//2.16.840.1.101.2.1.11.5 SDN.700 INFOSEC certificate policy usDODClass3 -static const unsigned char cvOID_usDODClass3 [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x0B, 0x05}; -//2.16.840.1.101.2.1.11.6 SDN.700 INFOSEC certificate policy usDODClass5 -static const unsigned char cvOID_usDODClass5 [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x0B, 0x06}; -//2.16.840.1.101.2.1.12.0 SDN.700 INFOSEC test objects testSecurityPolicy -static const unsigned char cvOID_testSecurityPolicy [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x0C, 0x00}; -//2.16.840.1.101.2.1.12.0.1 SDN.700 INFOSEC test objects tsp1 -static const unsigned char cvOID_tsp1 [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x0C, 0x00, 0x01}; -//2.16.840.1.101.2.1.12.0.1.0 SDN.700 INFOSEC test objects tsp1SecurityCategories -static const unsigned char cvOID_tsp1SecurityCategories [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x0C, 0x00, 0x01, 0x00}; -//2.16.840.1.101.2.1.12.0.1.0.0 SDN.700 INFOSEC test objects tsp1TagSetZero -static const unsigned char cvOID_tsp1TagSetZero [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x0C, 0x00, 0x01, 0x00, 0x00}; -//2.16.840.1.101.2.1.12.0.1.0.1 SDN.700 INFOSEC test objects tsp1TagSetOne -static const unsigned char cvOID_tsp1TagSetOne [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x0C, 0x00, 0x01, 0x00, 0x01}; -//2.16.840.1.101.2.1.12.0.1.0.2 SDN.700 INFOSEC test objects tsp1TagSetTwo -static const unsigned char cvOID_tsp1TagSetTwo [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x0C, 0x00, 0x01, 0x00, 0x02}; -//2.16.840.1.101.2.1.12.0.2 SDN.700 INFOSEC test objects tsp2 -static const unsigned char cvOID_tsp2 [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x0C, 0x00, 0x02}; -//2.16.840.1.101.2.1.12.0.2.0 SDN.700 INFOSEC test objects tsp2SecurityCategories -static const unsigned char cvOID_tsp2SecurityCategories [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x0C, 0x00, 0x02, 0x00}; -//2.16.840.1.101.2.1.12.0.2.0.0 SDN.700 INFOSEC test objects tsp2TagSetZero -static const unsigned char cvOID_tsp2TagSetZero [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x0C, 0x00, 0x02, 0x00, 0x00}; -//2.16.840.1.101.2.1.12.0.2.0.1 SDN.700 INFOSEC test objects tsp2TagSetOne -static const unsigned char cvOID_tsp2TagSetOne [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x0C, 0x00, 0x02, 0x00, 0x01}; -//2.16.840.1.101.2.1.12.0.2.0.2 SDN.700 INFOSEC test objects tsp2TagSetTwo -static const unsigned char cvOID_tsp2TagSetTwo [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x0C, 0x00, 0x02, 0x00, 0x02}; -//2.16.840.1.101.2.1.12.0.3 SDN.700 INFOSEC test objects kafka -static const unsigned char cvOID_kafka [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x0C, 0x00, 0x03}; -//2.16.840.1.101.2.1.12.0.3.0 SDN.700 INFOSEC test objects kafkaSecurityCategories -static const unsigned char cvOID_kafkaSecurityCategories [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x0C, 0x00, 0x03, 0x00}; -//2.16.840.1.101.2.1.12.0.3.0.1 SDN.700 INFOSEC test objects kafkaTagSetName1 -static const unsigned char cvOID_kafkaTagSetName1 [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x0C, 0x00, 0x03, 0x00, 0x01}; -//2.16.840.1.101.2.1.12.0.3.0.2 SDN.700 INFOSEC test objects kafkaTagSetName2 -static const unsigned char cvOID_kafkaTagSetName2 [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x0C, 0x00, 0x03, 0x00, 0x02}; -//2.16.840.1.101.2.1.12.0.3.0.3 SDN.700 INFOSEC test objects kafkaTagSetName3 -static const unsigned char cvOID_kafkaTagSetName3 [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x0C, 0x00, 0x03, 0x00, 0x03}; -//2.16.840.1.101.2.1.12.1.1 SDN.700 INFOSEC test objects tcp1 -static const unsigned char cvOID_tcp1 [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x0C, 0x01, 0x01}; -//2.16.840.1.101.3.1 CSOR GAK slabel -static const unsigned char cvOID_slabel [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x03, 0x01}; -//2.16.840.1.101.3.2 CSOR GAK pki -static const unsigned char cvOID_pki [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x03, 0x02}; -//2.16.840.1.101.3.2.1 CSOR GAK policy GAK policyIdentifier -static const unsigned char cvOID_GAK_policyIdentifier [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x03, 0x02, 0x01}; -//2.16.840.1.101.3.2.2 CSOR GAK extended key usage GAK -static const unsigned char cvOID_GAK [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x03, 0x02, 0x02}; -//2.16.840.1.101.3.2.2.1 CSOR GAK extended key usage kRAKey -static const unsigned char cvOID_kRAKey [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x03, 0x02, 0x02, 0x01}; -//2.16.840.1.101.3.2.3 CSOR GAK extensions extensions -static const unsigned char cvOID_extensions [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x03, 0x02, 0x03}; -//2.16.840.1.101.3.2.3.1 CSOR GAK extensions kRTechnique -static const unsigned char cvOID_kRTechnique [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x03, 0x02, 0x03, 0x01}; -//2.16.840.1.101.3.2.3.2 CSOR GAK extensions kRecoveryCapable -static const unsigned char cvOID_kRecoveryCapable [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x03, 0x02, 0x03, 0x02}; -//2.16.840.1.101.3.2.3.3 CSOR GAK extensions kR -static const unsigned char cvOID_kR [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x03, 0x02, 0x03, 0x03}; -//2.16.840.1.101.3.2.4 CSOR GAK keyrecoveryschemes -static const unsigned char cvOID_keyrecoveryschemes [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x03, 0x02, 0x04}; -//2.16.840.1.101.3.2.5 CSOR GAK krapola -static const unsigned char cvOID_krapola [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x03, 0x02, 0x05}; -//2.16.840.1.101.3.3 CSOR GAK arpa -static const unsigned char cvOID_arpa [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x03, 0x03}; -//2.16.840.1.113719.1.9 Novell pki -static const unsigned char cvOID_pki_Novell [] = { 0x60, 0x86, 0x48, 0x01, 0x86, 0xF8, 0x37, 0x01, 0x09}; -//2.16.840.1.113719.1.9.4 Novell PKI pkiAttributeType -static const unsigned char cvOID_pkiAttributeType [] = { 0x60, 0x86, 0x48, 0x01, 0x86, 0xF8, 0x37, 0x01, 0x09, 0x04}; -//2.16.840.1.113719.1.9.4.1 Novell PKI attribute type registeredAttributes -static const unsigned char cvOID_registeredAttributes [] = { 0x60, 0x86, 0x48, 0x01, 0x86, 0xF8, 0x37, 0x01, 0x09, 0x04, 0x01}; -//2.16.840.1.113719.1.9.4.2 Novell PKI attribute type relianceLimit -static const unsigned char cvOID_relianceLimit [] = { 0x60, 0x86, 0x48, 0x01, 0x86, 0xF8, 0x37, 0x01, 0x09, 0x04, 0x02}; -//2.16.840.1.113730.1 Netscape cert-extension -static const unsigned char cvOID_cert_extension [] = { 0x60, 0x86, 0x48, 0x01, 0x86, 0xF8, 0x42, 0x01}; -//2.16.840.1.113730.1.1 Netscape certificate extension netscape-cert-type -static const unsigned char cvOID_netscape_cert_type [] = { 0x60, 0x86, 0x48, 0x01, 0x86, 0xF8, 0x42, 0x01, 0x01}; -//2.16.840.1.113730.1.2 Netscape certificate extension netscape-base-url -static const unsigned char cvOID_netscape_base_url [] = { 0x60, 0x86, 0x48, 0x01, 0x86, 0xF8, 0x42, 0x01, 0x02}; -//2.16.840.1.113730.1.3 Netscape certificate extension netscape-revocation-url -static const unsigned char cvOID_netscape_revocation_url [] = { 0x60, 0x86, 0x48, 0x01, 0x86, 0xF8, 0x42, 0x01, 0x03}; -//2.16.840.1.113730.1.4 Netscape certificate extension netscape-ca-revocation-url -static const unsigned char cvOID_netscape_ca_revocation_url [] = { 0x60, 0x86, 0x48, 0x01, 0x86, 0xF8, 0x42, 0x01, 0x04}; -//2.16.840.1.113730.1.7 Netscape certificate extension netscape-cert-renewal-url -static const unsigned char cvOID_netscape_cert_renewal_url [] = { 0x60, 0x86, 0x48, 0x01, 0x86, 0xF8, 0x42, 0x01, 0x07}; -//2.16.840.1.113730.1.8 Netscape certificate extension netscape-ca-policy-url -static const unsigned char cvOID_netscape_ca_policy_url [] = { 0x60, 0x86, 0x48, 0x01, 0x86, 0xF8, 0x42, 0x01, 0x08}; -//2.16.840.1.113730.1.9 Netscape certificate extension HomePage-url -static const unsigned char cvOID_HomePage_url [] = { 0x60, 0x86, 0x48, 0x01, 0x86, 0xF8, 0x42, 0x01, 0x09}; -//2.16.840.1.113730.1.10 Netscape certificate extension EntityLogo -static const unsigned char cvOID_EntityLogo [] = { 0x60, 0x86, 0x48, 0x01, 0x86, 0xF8, 0x42, 0x01, 0x0A}; -//2.16.840.1.113730.1.11 Netscape certificate extension UserPicture -static const unsigned char cvOID_UserPicture [] = { 0x60, 0x86, 0x48, 0x01, 0x86, 0xF8, 0x42, 0x01, 0x0B}; -//2.16.840.1.113730.1.12 Netscape certificate extension netscape-ssl-server-name -static const unsigned char cvOID_netscape_ssl_server_name [] = { 0x60, 0x86, 0x48, 0x01, 0x86, 0xF8, 0x42, 0x01, 0x0C}; -//2.16.840.1.113730.1.13 Netscape certificate extension netscape-comment -static const unsigned char cvOID_netscape_comment [] = { 0x60, 0x86, 0x48, 0x01, 0x86, 0xF8, 0x42, 0x01, 0x0D}; -//2.16.840.1.113730.2 Netscape data-type -static const unsigned char cvOID_data_type [] = { 0x60, 0x86, 0x48, 0x01, 0x86, 0xF8, 0x42, 0x02}; -//2.16.840.1.113730.2.1 Netscape data type dataGIF -static const unsigned char cvOID_dataGIF [] = { 0x60, 0x86, 0x48, 0x01, 0x86, 0xF8, 0x42, 0x02, 0x01}; -//2.16.840.1.113730.2.2 Netscape data type dataJPEG -static const unsigned char cvOID_dataJPEG [] = { 0x60, 0x86, 0x48, 0x01, 0x86, 0xF8, 0x42, 0x02, 0x02}; -//2.16.840.1.113730.2.3 Netscape data type dataURL -static const unsigned char cvOID_dataURL [] = { 0x60, 0x86, 0x48, 0x01, 0x86, 0xF8, 0x42, 0x02, 0x03}; -//2.16.840.1.113730.2.4 Netscape data type dataHTML -static const unsigned char cvOID_dataHTML [] = { 0x60, 0x86, 0x48, 0x01, 0x86, 0xF8, 0x42, 0x02, 0x04}; -//2.16.840.1.113730.2.5 Netscape data type certSequence -static const unsigned char cvOID_certSequence [] = { 0x60, 0x86, 0x48, 0x01, 0x86, 0xF8, 0x42, 0x02, 0x05}; -//2.16.840.1.113730.2.6 Netscape certificate extension certURL -static const unsigned char cvOID_certURL [] = { 0x60, 0x86, 0x48, 0x01, 0x86, 0xF8, 0x42, 0x02, 0x06}; -//2.16.840.1.113730.3 Netscape directory -static const unsigned char cvOID_directory [] = { 0x60, 0x86, 0x48, 0x01, 0x86, 0xF8, 0x42, 0x03}; -//2.16.840.1.113730.3.1 Netscape directory ldapDefinitions -static const unsigned char cvOID_ldapDefinitions [] = { 0x60, 0x86, 0x48, 0x01, 0x86, 0xF8, 0x42, 0x03, 0x01}; -//2.16.840.1.113730.3.1.1 Netscape LDAP definitions carLicense -static const unsigned char cvOID_carLicense [] = { 0x60, 0x86, 0x48, 0x01, 0x86, 0xF8, 0x42, 0x03, 0x01, 0x01}; -//2.16.840.1.113730.3.1.2 Netscape LDAP definitions departmentNumber -static const unsigned char cvOID_departmentNumber [] = { 0x60, 0x86, 0x48, 0x01, 0x86, 0xF8, 0x42, 0x03, 0x01, 0x02}; -//2.16.840.1.113730.3.1.3 Netscape LDAP definitions employeeNumber -static const unsigned char cvOID_employeeNumber [] = { 0x60, 0x86, 0x48, 0x01, 0x86, 0xF8, 0x42, 0x03, 0x01, 0x03}; -//2.16.840.1.113730.3.1.4 Netscape LDAP definitions employeeType -static const unsigned char cvOID_employeeType [] = { 0x60, 0x86, 0x48, 0x01, 0x86, 0xF8, 0x42, 0x03, 0x01, 0x04}; -//2.16.840.1.113730.3.2.2 Netscape LDAP definitions inetOrgPerson -static const unsigned char cvOID_inetOrgPerson [] = { 0x60, 0x86, 0x48, 0x01, 0x86, 0xF8, 0x42, 0x03, 0x02, 0x02}; -//2.16.840.1.113730.4.1 Netscape serverGatedCrypto -static const unsigned char cvOID_serverGatedCrypto_Netscape [] = { 0x60, 0x86, 0x48, 0x01, 0x86, 0xF8, 0x42, 0x04, 0x01}; -//2.16.840.1.113733.1.6.3 Verisign Unknown Verisign extension -static const unsigned char cvOID_Unknown_Verisign_extension_1 [] = { 0x60, 0x86, 0x48, 0x01, 0x86, 0xF8, 0x45, 0x01, 0x06, 0x03}; -//2.16.840.1.113733.1.6.6 Verisign Unknown Verisign extension -static const unsigned char cvOID_Unknown_Verisign_extension_2 [] = { 0x60, 0x86, 0x48, 0x01, 0x86, 0xF8, 0x45, 0x01, 0x06, 0x06}; -//2.16.840.1.113733.1.7.1.1 Verisign Verisign certificatePolicy -static const unsigned char cvOID_Verisign_certificatePolicy [] = { 0x60, 0x86, 0x48, 0x01, 0x86, 0xF8, 0x45, 0x01, 0x07, 0x01, 0x01}; -//2.16.840.1.113733.1.7.1.1.1 Verisign Unknown Verisign policy qualifier -static const unsigned char cvOID_Unknown_Verisign_policy_qualifier_1 [] = { 0x60, 0x86, 0x48, 0x01, 0x86, 0xF8, 0x45, 0x01, 0x07, 0x01, 0x01, 0x01}; -//2.16.840.1.113733.1.7.1.1.2 Verisign Unknown Verisign policy qualifier -static const unsigned char cvOID_Unknown_Verisign_policy_qualifier_2 [] = { 0x60, 0x86, 0x48, 0x01, 0x86, 0xF8, 0x45, 0x01, 0x07, 0x01, 0x01, 0x02}; -//2.16.840.1.113733.1.8.1 Verisign Verisign SGC CA? -static const unsigned char cvOID_Verisign_SGC_CA [] = { 0x60, 0x86, 0x48, 0x01, 0x86, 0xF8, 0x45, 0x01, 0x08, 0x01}; -//2.23.42.0 SET contentType -static const unsigned char cvOID_contentType_SET [] = { 0x67, 0x2A, 0x00}; -//2.23.42.0.0 SET contentType PANData -static const unsigned char cvOID_PANData [] = { 0x67, 0x2A, 0x00, 0x00}; -//2.23.42.0.1 SET contentType PANToken -static const unsigned char cvOID_PANToken [] = { 0x67, 0x2A, 0x00, 0x01}; -//2.23.42.0.2 SET contentType PANOnly -static const unsigned char cvOID_PANOnly [] = { 0x67, 0x2A, 0x00, 0x02}; -//2.23.42.1 SET msgExt -static const unsigned char cvOID_msgExt [] = { 0x67, 0x2A, 0x01}; -//2.23.42.2 SET field -static const unsigned char cvOID_field [] = { 0x67, 0x2A, 0x02}; -//2.23.42.2.0 SET field fullName -static const unsigned char cvOID_fullName [] = { 0x67, 0x2A, 0x02, 0x00}; -//2.23.42.2.1 SET field givenName -static const unsigned char cvOID_givenName_SET [] = { 0x67, 0x2A, 0x02, 0x01}; -//2.23.42.2.2 SET field familyName -static const unsigned char cvOID_familyName [] = { 0x67, 0x2A, 0x02, 0x02}; -//2.23.42.2.3 SET field birthFamilyName -static const unsigned char cvOID_birthFamilyName [] = { 0x67, 0x2A, 0x02, 0x03}; -//2.23.42.2.4 SET field placeName -static const unsigned char cvOID_placeName [] = { 0x67, 0x2A, 0x02, 0x04}; -//2.23.42.2.5 SET field identificationNumber -static const unsigned char cvOID_identificationNumber [] = { 0x67, 0x2A, 0x02, 0x05}; -//2.23.42.2.6 SET field month -static const unsigned char cvOID_month [] = { 0x67, 0x2A, 0x02, 0x06}; -//2.23.42.2.7 SET field date -static const unsigned char cvOID_date [] = { 0x67, 0x2A, 0x02, 0x07}; -//2.23.42.2.8 SET field address -static const unsigned char cvOID_address [] = { 0x67, 0x2A, 0x02, 0x08}; -//2.23.42.2.9 SET field telephone -static const unsigned char cvOID_telephone [] = { 0x67, 0x2A, 0x02, 0x09}; -//2.23.42.2.10 SET field amount -static const unsigned char cvOID_amount [] = { 0x67, 0x2A, 0x02, 0x0A}; -//2.23.42.2.7.11 SET field accountNumber -static const unsigned char cvOID_accountNumber [] = { 0x67, 0x2A, 0x02, 0x0B}; -//2.23.42.2.7.12 SET field passPhrase -static const unsigned char cvOID_passPhrase [] = { 0x67, 0x2A, 0x02, 0x0C}; -//2.23.42.3 SET attribute -static const unsigned char cvOID_attribute_SET [] = { 0x67, 0x2A, 0x03}; -//2.23.42.3.0 SET attribute cert -static const unsigned char cvOID_cert_SET [] = { 0x67, 0x2A, 0x03, 0x00}; -//2.23.42.3.0.0 SET cert attribute rootKeyThumb -static const unsigned char cvOID_rootKeyThumb [] = { 0x67, 0x2A, 0x03, 0x00, 0x00}; -//2.23.42.3.0.1 SET cert attribute additionalPolicy -static const unsigned char cvOID_additionalPolicy [] = { 0x67, 0x2A, 0x03, 0x00, 0x01}; -//2.23.42.4 SET algorithm -static const unsigned char cvOID_algorithm_SET [] = { 0x67, 0x2A, 0x04}; -//2.23.42.5 SET policy -static const unsigned char cvOID_policy_SET [] = { 0x67, 0x2A, 0x05}; -//2.23.42.5.0 SET policy root -static const unsigned char cvOID_root [] = { 0x67, 0x2A, 0x05, 0x00}; -//2.23.42.6 SET module -static const unsigned char cvOID_module_SET [] = { 0x67, 0x2A, 0x06}; -//2.23.42.7 SET certExt -static const unsigned char cvOID_certExt [] = { 0x67, 0x2A, 0x07}; -//2.23.42.7.0 SET cert extension hashedRootKey -static const unsigned char cvOID_hashedRootKey [] = { 0x67, 0x2A, 0x07, 0x00}; -//2.23.42.7.1 SET cert extension certificateType -static const unsigned char cvOID_certificateType_SET [] = { 0x67, 0x2A, 0x07, 0x01}; -//2.23.42.7.2 SET cert extension merchantData -static const unsigned char cvOID_merchantData [] = { 0x67, 0x2A, 0x07, 0x02}; -//2.23.42.7.3 SET cert extension cardCertRequired -static const unsigned char cvOID_cardCertRequired [] = { 0x67, 0x2A, 0x07, 0x03}; -//2.23.42.7.4 SET cert extension tunneling -static const unsigned char cvOID_tunneling [] = { 0x67, 0x2A, 0x07, 0x04}; -//2.23.42.7.5 SET cert extension setExtensions -static const unsigned char cvOID_setExtensions [] = { 0x67, 0x2A, 0x07, 0x05}; -//2.23.42.7.6 SET cert extension setQualifier -static const unsigned char cvOID_setQualifier [] = { 0x67, 0x2A, 0x07, 0x06}; -//2.23.42.8 SET brand -static const unsigned char cvOID_brand [] = { 0x67, 0x2A, 0x08}; -//2.23.42.8.1 SET brand IATA-ATA -static const unsigned char cvOID_IATA_ATA [] = { 0x67, 0x2A, 0x08, 0x01}; -//2.23.42.8.4 SET brand VISA -static const unsigned char cvOID_VISA [] = { 0x67, 0x2A, 0x08, 0x04}; -//2.23.42.8.5 SET brand MasterCard -static const unsigned char cvOID_MasterCard [] = { 0x67, 0x2A, 0x08, 0x05}; -//2.23.42.8.30 SET brand Diners -static const unsigned char cvOID_Diners [] = { 0x67, 0x2A, 0x08, 0x1E}; -//2.23.42.8.34 SET brand AmericanExpress -static const unsigned char cvOID_AmericanExpress [] = { 0x67, 0x2A, 0x08, 0x22}; -//2.23.42.8.6011 SET brand Novus -static const unsigned char cvOID_Novus [] = { 0x67, 0x2A, 0x08, 0xAE, 0x7B}; -//2.23.42.9 SET vendor -static const unsigned char cvOID_vendor [] = { 0x67, 0x2A, 0x09}; -//2.23.42.9.0 SET vendor GlobeSet -static const unsigned char cvOID_GlobeSet [] = { 0x67, 0x2A, 0x09, 0x00}; -//2.23.42.9.1 SET vendor IBM -static const unsigned char cvOID_IBM [] = { 0x67, 0x2A, 0x09, 0x01}; -//2.23.42.9.2 SET vendor CyberCash -static const unsigned char cvOID_CyberCash [] = { 0x67, 0x2A, 0x09, 0x02}; -//2.23.42.9.3 SET vendor Terisa -static const unsigned char cvOID_Terisa [] = { 0x67, 0x2A, 0x09, 0x03}; -//2.23.42.9.4 SET vendor RSADSI -static const unsigned char cvOID_RSADSI [] = { 0x67, 0x2A, 0x09, 0x04}; -//2.23.42.9.5 SET vendor VeriFone -static const unsigned char cvOID_VeriFone [] = { 0x67, 0x2A, 0x09, 0x05}; -//2.23.42.9.6 SET vendor TrinTech -static const unsigned char cvOID_TrinTech [] = { 0x67, 0x2A, 0x09, 0x06}; -//2.23.42.9.7 SET vendor BankGate -static const unsigned char cvOID_BankGate [] = { 0x67, 0x2A, 0x09, 0x07}; -//2.23.42.9.8 SET vendor GTE -static const unsigned char cvOID_GTE [] = { 0x67, 0x2A, 0x09, 0x08}; -//2.23.42.9.9 SET vendor CompuSource -static const unsigned char cvOID_CompuSource [] = { 0x67, 0x2A, 0x09, 0x09}; -//2.23.42.9.10 SET vendor Griffin -static const unsigned char cvOID_Griffin [] = { 0x67, 0x2A, 0x09, 0x0A}; -//2.23.42.9.11 SET vendor Certicom -static const unsigned char cvOID_Certicom [] = { 0x67, 0x2A, 0x09, 0x0B}; -//2.23.42.9.12 SET vendor OSS -static const unsigned char cvOID_OSS [] = { 0x67, 0x2A, 0x09, 0x0C}; -//2.23.42.9.13 SET vendor TenthMountain -static const unsigned char cvOID_TenthMountain [] = { 0x67, 0x2A, 0x09, 0x0D}; -//2.23.42.9.14 SET vendor Antares -static const unsigned char cvOID_Antares [] = { 0x67, 0x2A, 0x09, 0x0E}; -//2.23.42.9.15 SET vendor ECC -static const unsigned char cvOID_ECC [] = { 0x67, 0x2A, 0x09, 0x0F}; -//2.23.42.9.16 SET vendor Maithean -static const unsigned char cvOID_Maithean [] = { 0x67, 0x2A, 0x09, 0x10}; -//2.23.42.9.17 SET vendor Netscape -static const unsigned char cvOID_Netscape [] = { 0x67, 0x2A, 0x09, 0x11}; -//2.23.42.9.18 SET vendor Verisign -static const unsigned char cvOID_Verisign [] = { 0x67, 0x2A, 0x09, 0x12}; -//2.23.42.9.19 SET vendor BlueMoney -static const unsigned char cvOID_BlueMoney [] = { 0x67, 0x2A, 0x09, 0x13}; -//2.23.42.9.20 SET vendor Lacerte -static const unsigned char cvOID_Lacerte [] = { 0x67, 0x2A, 0x09, 0x14}; -//2.23.42.9.21 SET vendor Fujitsu -static const unsigned char cvOID_Fujitsu [] = { 0x67, 0x2A, 0x09, 0x15}; -//2.23.42.9.22 SET vendor eLab -static const unsigned char cvOID_eLab [] = { 0x67, 0x2A, 0x09, 0x16}; -//2.23.42.9.23 SET vendor Entrust -static const unsigned char cvOID_Entrust [] = { 0x67, 0x2A, 0x09, 0x17}; -//2.23.42.9.24 SET vendor VIAnet -static const unsigned char cvOID_VIAnet [] = { 0x67, 0x2A, 0x09, 0x18}; -//2.23.42.9.25 SET vendor III -static const unsigned char cvOID_III [] = { 0x67, 0x2A, 0x09, 0x19}; -//2.23.42.9.26 SET vendor OpenMarket -static const unsigned char cvOID_OpenMarket [] = { 0x67, 0x2A, 0x09, 0x1A}; -//2.23.42.9.27 SET vendor Lexem -static const unsigned char cvOID_Lexem [] = { 0x67, 0x2A, 0x09, 0x1B}; -//2.23.42.9.28 SET vendor Intertrader -static const unsigned char cvOID_Intertrader [] = { 0x67, 0x2A, 0x09, 0x1C}; -//2.23.42.9.29 SET vendor Persimmon -static const unsigned char cvOID_Persimmon [] = { 0x67, 0x2A, 0x09, 0x1D}; -//2.23.42.9.30 SET vendor NABLE -static const unsigned char cvOID_NABLE [] = { 0x67, 0x2A, 0x09, 0x1E}; -//2.23.42.9.31 SET vendor espace-net -static const unsigned char cvOID_espace_net [] = { 0x67, 0x2A, 0x09, 0x1F}; -//2.23.42.9.32 SET vendor Hitachi -static const unsigned char cvOID_Hitachi [] = { 0x67, 0x2A, 0x09, 0x20}; -//2.23.42.9.33 SET vendor Microsoft -static const unsigned char cvOID_Microsoft [] = { 0x67, 0x2A, 0x09, 0x21}; -//2.23.42.9.34 SET vendor NEC -static const unsigned char cvOID_NEC [] = { 0x67, 0x2A, 0x09, 0x22}; -//2.23.42.9.35 SET vendor Mitsubishi -static const unsigned char cvOID_Mitsubishi [] = { 0x67, 0x2A, 0x09, 0x23}; -//2.23.42.9.36 SET vendor NCR -static const unsigned char cvOID_NCR [] = { 0x67, 0x2A, 0x09, 0x24}; -//2.23.42.9.37 SET vendor e-COMM -static const unsigned char cvOID_e_COMM [] = { 0x67, 0x2A, 0x09, 0x25}; -//2.23.42.9.38 SET vendor Gemplus -static const unsigned char cvOID_Gemplus [] = { 0x67, 0x2A, 0x09, 0x26}; -//2.23.42.10 SET national -static const unsigned char cvOID_national [] = { 0x67, 0x2A, 0x0A}; -//2.23.42.10.192 SET national Japan -static const unsigned char cvOID_Japan [] = { 0x67, 0x2A, 0x0A, 0x81, 0x40}; -//2.54.1775.2 SET. Deprecated, use (2 23 42 7 0) instead hashedRootKey -static const unsigned char cvOID_hashedRootKey_old [] = { 0x86, 0x8D, 0x6F, 0x02}; -//2.54.1775.3 SET. Deprecated, use (2 23 42 7 0) instead certificateType -static const unsigned char cvOID_certificateType_old [] = { 0x86, 0x8D, 0x6F, 0x03}; -//2.54.1775.4 SET. Deprecated, use (2 23 42 7 0) instead merchantData -static const unsigned char cvOID_merchantData_old [] = { 0x86, 0x8D, 0x6F, 0x04}; -//2.54.1775.5 SET. Deprecated, use (2 23 42 7 0) instead cardCertRequired -static const unsigned char cvOID_cardCertRequired_old [] = { 0x86, 0x8D, 0x6F, 0x05}; -//2.54.1775.6 SET. Deprecated, use (2 23 42 7 0) instead tunneling -static const unsigned char cvOID_tunneling_old [] = { 0x86, 0x8D, 0x6F, 0x06}; -//2.54.1775.7 SET. Deprecated, use (2 23 42 7 0) instead setQualifier -static const unsigned char cvOID_setQualifier_old [] = { 0x86, 0x8D, 0x6F, 0x07}; -//2.54.1775.99 SET. Deprecated, use (2 23 42 7 0) instead set-data -static const unsigned char cvOID_set_data_old [] = { 0x86, 0x8D, 0x6F, 0x63}; - -#ifdef _MSC_VER -#pragma warning(default : 4305) -#pragma warning(default : 4309) -#endif - -#endif - +////////////////////////////////////////////////////////////////////////////////// +// Name: actOID.h +// Product: cv act library +// Purpose: +// +// +// Copyright: (c) 2000 cv cryptovision GmbH +// all rights reserved +// Licence: The conditions for the use of this software are regulated +// in the cv act library licence agreement. +////////////////////////////////////////////////////////////////////////////////// + +#ifndef ACT_OID_H +#define ACT_OID_H + +#define CV_OID_DEF(x) (act::Blob((x),(x)+sizeof((x)))) + +#ifdef _MSC_VER +#pragma warning(disable : 4305) //Verkuerzung von 'static const int' in 'static const unsigned char' +#pragma warning(disable : 4309) //Verkuerzung eines konstanten Wertes +#endif + +//1.2.840.10045.4.1 ECDSA cvECDSA +static const unsigned char cvOID_cvECDSA[] = {0x2a, 0x86, 0x48, 0xce, 0x3d, 0x04, 0x01}; +//1.2.840.113549.1.9.1 Alternate Name cvAlternateName +static const unsigned char cvOID_cvAlternateName[] = {0x2a, 0x86, 0x48, 0x86, 0xf7, 0x0d, 0x01, 0x09, 0x01}; + +//0.2.262.1.10 Deutsche Telekom Telesec +static const unsigned char cvOID_Telesec [] = { 0x02, 0x82, 0x06, 0x01, 0x0A}; +//0.2.262.1.10.0 Telesec extension +static const unsigned char cvOID_extension [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x00}; +//0.2.262.1.10.1 Telesec mechanism +static const unsigned char cvOID_mechanism [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x01}; +//0.2.262.1.10.1.0 Telesec mechanism authentication +static const unsigned char cvOID_authentication [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x01, 0x00}; +//0.2.262.1.10.1.0.1 Telesec authentication passwordAuthentication +static const unsigned char cvOID_passwordAuthentication [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x01, 0x00, 0x01}; +//0.2.262.1.10.1.0.2 Telesec authentication protectedPasswordAuthentication +static const unsigned char cvOID_protectedPasswordAuthentication [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x01, 0x00, 0x02}; +//0.2.262.1.10.1.0.3 Telesec authentication oneWayX509Authentication +static const unsigned char cvOID_oneWayX509Authentication [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x01, 0x00, 0x03}; +//0.2.262.1.10.1.0.4 Telesec authentication twoWayX509Authentication +static const unsigned char cvOID_twoWayX509Authentication [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x01, 0x00, 0x04}; +//0.2.262.1.10.1.0.5 Telesec authentication threeWayX509Authentication +static const unsigned char cvOID_threeWayX509Authentication [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x01, 0x00, 0x05}; +//0.2.262.1.10.1.0.6 Telesec authentication oneWayISO9798Authentication +static const unsigned char cvOID_oneWayISO9798Authentication [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x01, 0x00, 0x06}; +//0.2.262.1.10.1.0.7 Telesec authentication twoWayISO9798Authentication +static const unsigned char cvOID_twoWayISO9798Authentication [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x01, 0x00, 0x07}; +//0.2.262.1.10.1.0.8 Telesec authentication telekomAuthentication +static const unsigned char cvOID_telekomAuthentication [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x01, 0x00, 0x08}; +//0.2.262.1.10.1.1 Telesec mechanism signature +static const unsigned char cvOID_signature [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x01, 0x01}; +//0.2.262.1.10.1.1.1 Telesec mechanism md4WithRSAAndISO9697 +static const unsigned char cvOID_md4WithRSAAndISO9697 [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x01, 0x01, 0x01}; +//0.2.262.1.10.1.1.2 Telesec mechanism md4WithRSAAndTelesecSignatureStandard +static const unsigned char cvOID_md4WithRSAAndTelesecSignatureStandard [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x01, 0x01, 0x02}; +//0.2.262.1.10.1.1.3 Telesec mechanism md5WithRSAAndISO9697 +static const unsigned char cvOID_md5WithRSAAndISO9697 [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x01, 0x01, 0x03}; +//0.2.262.1.10.1.1.4 Telesec mechanism md5WithRSAAndTelesecSignatureStandard +static const unsigned char cvOID_md5WithRSAAndTelesecSignatureStandard [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x01, 0x01, 0x04}; +//0.2.262.1.10.1.1.5 Telesec mechanism ripemd160WithRSAAndTelekomSignatureStandard +static const unsigned char cvOID_ripemd160WithRSAAndTelekomSignatureStandard [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x01, 0x01, 0x05}; +//0.2.262.1.10.1.1.9 Telesec signature hbciRsaSignature +static const unsigned char cvOID_hbciRsaSignature [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x01, 0x01, 0x09}; +//0.2.262.1.10.1.2 Telesec mechanism encryption +static const unsigned char cvOID_encryption [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x01, 0x02}; +//0.2.262.1.10.1.2.0 Telesec encryption none +static const unsigned char cvOID_none [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x01, 0x02, 0x00}; +//0.2.262.1.10.1.2.1 Telesec encryption rsaTelesec +static const unsigned char cvOID_rsaTelesec [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x01, 0x02, 0x01}; +//0.2.262.1.10.1.2.2 Telesec encryption des +static const unsigned char cvOID_des [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x01, 0x02, 0x02}; +//0.2.262.1.10.1.2.2.1 Telesec encryption desECB +static const unsigned char cvOID_desECB [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x01, 0x02, 0x02, 0x01}; +//0.2.262.1.10.1.2.2.2 Telesec encryption desCBC +static const unsigned char cvOID_desCBC [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x01, 0x02, 0x02, 0x02}; +//0.2.262.1.10.1.2.2.3 Telesec encryption desOFB +static const unsigned char cvOID_desOFB [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x01, 0x02, 0x02, 0x03}; +//0.2.262.1.10.1.2.2.4 Telesec encryption desCFB8 +static const unsigned char cvOID_desCFB8 [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x01, 0x02, 0x02, 0x04}; +//0.2.262.1.10.1.2.2.5 Telesec encryption desCFB64 +static const unsigned char cvOID_desCFB64 [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x01, 0x02, 0x02, 0x05}; +//0.2.262.1.10.1.2.3 Telesec encryption des3 +static const unsigned char cvOID_des3 [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x01, 0x02, 0x03}; +//0.2.262.1.10.1.2.3.1 Telesec encryption des3ECB +static const unsigned char cvOID_des3ECB [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x01, 0x02, 0x03, 0x01}; +//0.2.262.1.10.1.2.3.2 Telesec encryption des3CBC +static const unsigned char cvOID_des3CBC [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x01, 0x02, 0x03, 0x02}; +//0.2.262.1.10.1.2.3.3 Telesec encryption des3OFB +static const unsigned char cvOID_des3OFB [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x01, 0x02, 0x03, 0x03}; +//0.2.262.1.10.1.2.3.4 Telesec encryption des3CFB8 +static const unsigned char cvOID_des3CFB8 [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x01, 0x02, 0x03, 0x04}; +//0.2.262.1.10.1.2.3.5 Telesec encryption des3CFB64 +static const unsigned char cvOID_des3CFB64 [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x01, 0x02, 0x03, 0x05}; +//0.2.262.1.10.1.2.4 Telesec encryption magenta +static const unsigned char cvOID_magenta [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x01, 0x02, 0x04}; +//0.2.262.1.10.1.2.5 Telesec encryption idea +static const unsigned char cvOID_idea [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x01, 0x02, 0x05}; +//0.2.262.1.10.1.2.5.1 Telesec encryption ideaECB +static const unsigned char cvOID_ideaECB_Telesec [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x01, 0x02, 0x05, 0x01}; +//0.2.262.1.10.1.2.5.2 Telesec encryption ideaCBC +static const unsigned char cvOID_ideaCBC_Telesec [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x01, 0x02, 0x05, 0x02}; +//0.2.262.1.10.1.2.5.3 Telesec encryption ideaOFB +static const unsigned char cvOID_ideaOFB_Telesec [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x01, 0x02, 0x05, 0x03}; +//0.2.262.1.10.1.2.5.4 Telesec encryption ideaCFB8 +static const unsigned char cvOID_ideaCFB8_Telesec [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x01, 0x02, 0x05, 0x04}; +//0.2.262.1.10.1.2.5.5 Telesec encryption ideaCFB64 +static const unsigned char cvOID_ideaCFB64_Telesec [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x01, 0x02, 0x05, 0x05}; +//0.2.262.1.10.1.3 Telesec mechanism oneWayFunction +static const unsigned char cvOID_oneWayFunction [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x01, 0x03}; +//0.2.262.1.10.1.3.1 Telesec one-way function md4 +static const unsigned char cvOID_md4_Telesec [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x01, 0x03, 0x01}; +//0.2.262.1.10.1.3.2 Telesec one-way function md5 +static const unsigned char cvOID_md5_Telesec [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x01, 0x03, 0x02}; +//0.2.262.1.10.1.3.3 Telesec one-way function sqModNX509 +static const unsigned char cvOID_sqModNX509 [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x01, 0x03, 0x03}; +//0.2.262.1.10.1.3.4 Telesec one-way function sqModNISO +static const unsigned char cvOID_sqModNISO [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x01, 0x03, 0x04}; +//0.2.262.1.10.1.3.5 Telesec one-way function ripemd128 +static const unsigned char cvOID_ripemd128 [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x01, 0x03, 0x05}; +//0.2.262.1.10.1.3.6 Telesec one-way function hashUsingBlockCipher +static const unsigned char cvOID_hashUsingBlockCipher [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x01, 0x03, 0x06}; +//0.2.262.1.10.1.3.7 Telesec one-way function mac +static const unsigned char cvOID_mac [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x01, 0x03, 0x07}; +//0.2.262.1.10.1.3.8 Telesec one-way function ripemd160 +static const unsigned char cvOID_ripemd160 [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x01, 0x03, 0x08}; +//0.2.262.1.10.1.4 Telesec mechanism fecFunction +static const unsigned char cvOID_fecFunction [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x01, 0x04}; +//0.2.262.1.10.1.4.1 Telesec mechanism reedSolomon +static const unsigned char cvOID_reedSolomon [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x01, 0x04, 0x01}; +//0.2.262.1.10.2 Telesec module +static const unsigned char cvOID_module_Telesec [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x02}; +//0.2.262.1.10.2.0 Telesec module algorithms +static const unsigned char cvOID_algorithms [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x02, 0x00}; +//0.2.262.1.10.2.1 Telesec module attributeTypes +static const unsigned char cvOID_attributeTypes [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x02, 0x01}; +//0.2.262.1.10.2.2 Telesec module certificateTypes +static const unsigned char cvOID_certificateTypes [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x02, 0x02}; +//0.2.262.1.10.2.3).. Telesec module messageTypes +static const unsigned char cvOID_messageTypes [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x02, 0x03}; +//0.2.262.1.10.2.4 Telesec module plProtocol +static const unsigned char cvOID_plProtocol [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x02, 0x04}; +//0.2.262.1.10.2.5 Telesec module smeAndComponentsOfSme +static const unsigned char cvOID_smeAndComponentsOfSme [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x02, 0x05}; +//0.2.262.1.10.2.6 Telesec module fec +static const unsigned char cvOID_fec [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x02, 0x06}; +//0.2.262.1.10.2.7 Telesec module usefulDefinitions +static const unsigned char cvOID_usefulDefinitions [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x02, 0x07}; +//0.2.262.1.10.2.8 Telesec module stefiles +static const unsigned char cvOID_stefiles [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x02, 0x08}; +//0.2.262.1.10.2.9 Telesec module sadmib +static const unsigned char cvOID_sadmib [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x02, 0x09}; +//0.2.262.1.10.2.10 Telesec module electronicOrder +static const unsigned char cvOID_electronicOrder [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x02, 0x0A}; +//0.2.262.1.10.2.11 Telesec module telesecTtpAsymmetricApplication +static const unsigned char cvOID_telesecTtpAsymmetricApplication [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x02, 0x0B}; +//0.2.262.1.10.2.12)..... Telesec module telesecTtpBasisApplication +static const unsigned char cvOID_telesecTtpBasisApplication [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x02, 0x0C}; +//0.2.262.1.10.2.13)....... Telesec module telesecTtpMessages +static const unsigned char cvOID_telesecTtpMessages [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x02, 0x0D}; +//0.2.262.1.10.2.14)....... Telesec module telesecTtpTimeStampApplication +static const unsigned char cvOID_telesecTtpTimeStampApplication [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x02, 0x0E}; +//0.2.262.1.10.3 Telesec objectClass +static const unsigned char cvOID_objectClass_Telesec [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x03}; +//0.2.262.1.10.3.0 Telesec object class telesecOtherName +static const unsigned char cvOID_telesecOtherName_Telesec [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x03, 0x00}; +//0.2.262.1.10.3.1 Telesec object class directory +static const unsigned char cvOID_directory_Telesec [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x03, 0x01}; +//0.2.262.1.10.3.2 Telesec object class directoryType +static const unsigned char cvOID_directoryType_Telesec [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x03, 0x02}; +//0.2.262.1.10.3.3 Telesec object class directroyGroup +static const unsigned char cvOID_directroyGroup_Telesec [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x03, 0x03}; +//0.2.262.1.10.3.4 Telesec object class directoryUser +static const unsigned char cvOID_directoryUser_Telesec [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x03, 0x04}; +//0.2.262.1.10.3.5 Telesec object class symmetricKeyEntry +static const unsigned char cvOID_symmetricKeyEntry [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x03, 0x05}; +//0.2.262.1.10.4 Telesec package +static const unsigned char cvOID_package [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x04}; +//0.2.262.1.10.5 Telesec parameter +static const unsigned char cvOID_parameter [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x05}; +//0.2.262.1.10.6 Telesec nameBinding +static const unsigned char cvOID_nameBinding [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x06}; +//0.2.262.1.10.7 Telesec attribute +static const unsigned char cvOID_attribute_Telesec [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x07}; +//0.2.262.1.10.7.0 Telesec attribute applicationGroupIdentifier +static const unsigned char cvOID_applicationGroupIdentifier [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x07, 0x00}; +//0.2.262.1.10.7.1 Telesec attribute certificateType +static const unsigned char cvOID_certificateType [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x07, 0x01}; +//0.2.262.1.10.7.2 Telesec attribute telesecCertificate +static const unsigned char cvOID_Certificate_Telesec [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x07, 0x02}; +//0.2.262.1.10.7.3 Telesec attribute certificateNumber +static const unsigned char cvOID_certificateNumber [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x07, 0x03}; +//0.2.262.1.10.7.4 Telesec attribute certificateRevocationList +static const unsigned char cvOID_certificateRevocationList_Telesec [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x07, 0x04}; +//0.2.262.1.10.7.5 Telesec attribute creationDate +static const unsigned char cvOID_creationDate [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x07, 0x05}; +//0.2.262.1.10.7.6).... Telesec attribute issuer +static const unsigned char cvOID_issuer [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x07, 0x06}; +//0.2.262.1.10.7.7 Telesec attribute namingAuthority +static const unsigned char cvOID_namingAuthority [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x07, 0x07}; +//0.2.262.1.10.7.8 Telesec attribute publicKeyDirectory +static const unsigned char cvOID_publicKeyDirectory [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x07, 0x08}; +//0.2.262.1.10.7.9).. Telesec attribute securityDomain +static const unsigned char cvOID_securityDomain [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x07, 0x09}; +//0.2.262.1.10.7.10)..... Telesec attribute subject +static const unsigned char cvOID_subject [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x07, 0x0A}; +//0.2.262.1.10.7.11 Telesec attribute timeOfRevocation +static const unsigned char cvOID_timeOfRevocation [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x07, 0x0B}; +//0.2.262.1.10.7.12 Telesec attribute userGroupReference +static const unsigned char cvOID_userGroupReference [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x07, 0x0C}; +//0.2.262.1.10.7.13 Telesec attribute validity +static const unsigned char cvOID_validity [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x07, 0x0D}; +//0.2.262.1.10.7.14 Telesec attribute zert93 +static const unsigned char cvOID_zert93 [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x07, 0x0E}; +//0.2.262.1.10.7.15 Telesec attribute securityMessEnv +static const unsigned char cvOID_securityMessEnv [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x07, 0x0F}; +//0.2.262.1.10.7.16 Telesec attribute anonymizedPublicKeyDirectory +static const unsigned char cvOID_anonymizedPublicKeyDirectory [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x07, 0x10}; +//0.2.262.1.10.7.17 Telesec attribute telesecGivenName +static const unsigned char cvOID_telesecGivenName [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x07, 0x11}; +//0.2.262.1.10.7.18). Telesec attribute nameAdditions +static const unsigned char cvOID_nameAdditions [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x07, 0x12}; +//0.2.262.1.10.7.19 Telesec attribute telesecPostalCode +static const unsigned char cvOID_telesecPostalCode [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x07, 0x13}; +//0.2.262.1.10.7.20 Telesec attribute nameDistinguisher +static const unsigned char cvOID_nameDistinguisher [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x07, 0x14}; +//0.2.262.1.10.7.21 Telesec attribute telesecCertificateList +static const unsigned char cvOID_telesecCertificateList [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x07, 0x15}; +//0.2.262.1.10.7.22 Telesec attribute teletrustCertificateList +static const unsigned char cvOID_teletrustCertificateList [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x07, 0x16}; +//0.2.262.1.10.7.23)... Telesec attribute x509CertificateList +static const unsigned char cvOID_x509CertificateList [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x07, 0x17}; +//0.2.262.1.10.7.24 Telesec attribute timeOfIssue +static const unsigned char cvOID_timeOfIssue [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x07, 0x18}; +//0.2.262.1.10.7.25 Telesec attribute physicalCardNumber +static const unsigned char cvOID_physicalCardNumber [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x07, 0x19}; +//0.2.262.1.10.7.26)........ Telesec attribute fileType +static const unsigned char cvOID_fileType [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x07, 0x1A}; +//0.2.262.1.10.7.27 Telesec attribute ctlFileIsArchive +static const unsigned char cvOID_ctlFileIsArchive [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x07, 0x1B}; +//0.2.262.1.10.7.28)........ Telesec attribute emailAddress +static const unsigned char cvOID_emailAddress [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x07, 0x1C}; +//0.2.262.1.10.7.29)........ Telesec attribute certificateTemplateList +static const unsigned char cvOID_certificateTemplateList [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x07, 0x1D}; +//0.2.262.1.10.7.30)........ Telesec attribute directoryName +static const unsigned char cvOID_directoryName [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x07, 0x1E}; +//0.2.262.1.10.7.31)........ Telesec attribute directoryTypeName +static const unsigned char cvOID_directoryTypeName [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x07, 0x1F}; +//0.2.262.1.10.7.32 Telesec attribute directoryGroupName +static const unsigned char cvOID_directoryGroupName [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x07, 0x20}; +//0.2.262.1.10.7.33 Telesec attribute directoryUserName +static const unsigned char cvOID_directoryUserName [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x07, 0x21}; +//0.2.262.1.10.7.34 Telesec attribute revocationFlag +static const unsigned char cvOID_revocationFlag [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x07, 0x22}; +//0.2.262.1.10.7.35 Telesec attribute symmetricKeyEntryName +static const unsigned char cvOID_symmetricKeyEntryName [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x07, 0x23}; +//0.2.262.1.10.7.36 Telesec attribute glNumber +static const unsigned char cvOID_glNumber [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x07, 0x24}; +//0.2.262.1.10.7.37 Telesec attribute goNumber +static const unsigned char cvOID_goNumber [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x07, 0x25}; +//0.2.262.1.10.7.38 Telesec attribute gKeyData +static const unsigned char cvOID_gKeyData [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x07, 0x26}; +//0.2.262.1.10.7.39 Telesec attribute zKeyData +static const unsigned char cvOID_zKeyData [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x07, 0x27}; +//0.2.262.1.10.7.40 Telesec attribute ktKeyData +static const unsigned char cvOID_ktKeyData [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x07, 0x28}; +//0.2.262.1.10.7.41 Telesec attribute ktKeyNumber +static const unsigned char cvOID_ktKeyNumber [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x07, 0x2A}; +//0.2.262.1.10.7.51 Telesec attribute timeOfRevocationGen +static const unsigned char cvOID_timeOfRevocationGen [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x07, 0x33}; +//0.2.262.1.10.7.52).... Telesec attribute liabilityText +static const unsigned char cvOID_liabilityText [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x07, 0x34}; +//0.2.262.1.10.8 Telesec attributeGroup +static const unsigned char cvOID_attributeGroup [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x08}; +//0.2.262.1.10.9 Telesec action +static const unsigned char cvOID_action [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x09}; +//0.2.262.1.10.10 Telesec notification +static const unsigned char cvOID_notification [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x0A}; +//0.2.262.1.10.11 Telesec snmp-mibs +static const unsigned char cvOID_snmp_mibs [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x0B}; +//0.2.262.1.10.11.1 Telesec SNMP MIBs securityApplication +static const unsigned char cvOID_securityApplication [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x0B, 0x01}; +//0.2.262.1.10.12 Telesec certAndCrlExtensionDefinitions +static const unsigned char cvOID_certAndCrlExtensionDefinitions [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x0C}; +//0.2.262.1.10.12.0 Telesec cert/CRL extension certExtensionLiabilityLimitationExt +static const unsigned char cvOID_certExtensionLiabilityLimitationExt [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x0C, 0x00}; +//0.2.262.1.10.12.1 Telesec cert/CRL extension telesecCertIdExt +static const unsigned char cvOID_telesecCertIdExt [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x0C, 0x01}; +//0.2.262.1.10.12.2 Telesec cert/CRL extension telesecPolicyIdentifier +static const unsigned char cvOID_telesecPolicyIdentifier [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x0C, 0x02}; +//0.2.262.1.10.12.3 Telesec cert/CRL extension telesecPolicyQualifierID +static const unsigned char cvOID_telesecPolicyQualifierID [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x0C, 0x03}; +//0.2.262.1.10.12.4 Telesec cert/CRL extension telesecCRLFilteredExt +static const unsigned char cvOID_telesecCRLFilteredExt [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x0C, 0x04}; +//0.2.262.1.10.12.5 Telesec cert/CRL extension telesecCRLFilterExt +static const unsigned char cvOID_telesecCRLFilterExt [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x0C, 0x05}; +//0.2.262.1.10.12.6 Telesec cert/CRL extension telesecNamingAuthorityExt +static const unsigned char cvOID_telesecNamingAuthorityExt [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x0C, 0x06}; +//0.9.2342.19200300.1.3 Some oddball X.500 attribute collection rfc822Mailbox +static const unsigned char cvOID_rfc822Mailbox [] = { 0x09, 0x92, 0x26, 0x89, 0x93, 0xF2, 0x2C, 0x01, 0x03}; +//0.9.2342.19200300.100.1.25 Men are from Mars, this OID is from Pluto domainComponent +static const unsigned char cvOID_domainComponent [] = { 0x09, 0x92, 0x26, 0x89, 0x93, 0xF2, 0x2C, 0x64, 0x01, 0x019}; +//1.2.36.75878867.1.100.1.1 Certificates Australia CA Certificates Australia policyIdentifier +static const unsigned char cvOID_Certificates_Australia_policyIdentifier [] = { 0x2A, 0x24, 0xA4, 0x97, 0xA3, 0x53, 0x01, 0x64, 0x01, 0x01}; +//1.2.36.68980861.1.1.2 Signet CA Signet personal +static const unsigned char cvOID_Signet_personal [] = { 0x2A, 0x24, 0xA0, 0xF2, 0xA0, 0x7D, 0x01, 0x01, 0x02}; +//1.2.36.68980861.1.1.3 Signet CA Signet business +static const unsigned char cvOID_Signet_business [] = { 0x2A, 0x24, 0xA0, 0xF2, 0xA0, 0x7D, 0x01, 0x01, 0x03}; +//1.2.36.68980861.1.1.4 Signet CA Signet legal +static const unsigned char cvOID_Signet_legal [] = { 0x2A, 0x24, 0xA0, 0xF2, 0xA0, 0x7D, 0x01, 0x01, 0x04}; +//1.2.36.68980861.1.1.10 Signet CA Signet pilot +static const unsigned char cvOID_Signet_pilot [] = { 0x2A, 0x24, 0xA0, 0xF2, 0xA0, 0x7D, 0x01, 0x01, 0x0A}; +//1.2.36.68980861.1.1.11 Signet CA Signet intraNet +static const unsigned char cvOID_Signet_intraNet [] = { 0x2A, 0x24, 0xA0, 0xF2, 0xA0, 0x7D, 0x01, 0x01, 0x0B}; +//1.2.36.68980861.1.1.20 Signet CA Signet securityPolicy +static const unsigned char cvOID_Signet_securityPolicy [] = { 0x2A, 0x24, 0xA0, 0xF2, 0xA0, 0x7D, 0x01, 0x01, 0x14}; +//1.2.392.200011.61.1.1.1 Mitsubishi security algorithm symmetric-encryption-algorithm +static const unsigned char cvOID_symmetric_encryption_algorithm [] = { 0x2A, 0x83, 0x08, 0x8C, 0x1A, 0x4B, 0x3D, 0x01, 0x01, 0x01}; +//1.2.392.200011.61.1.1.1.1 Mitsubishi security algorithm misty1-cbc +static const unsigned char cvOID_misty1_cbc [] = { 0x2A, 0x83, 0x08, 0x8C, 0x9A, 0x4B, 0x3D, 0x01, 0x01, 0x01, 0x01}; +//1.2.752.34.1 SEIS Project seis-cp +static const unsigned char cvOID_seis_cp [] = { 0x2A, 0x85, 0x70, 0x22, 0x01}; +//1.2.752.34.1.1 SEIS Project certificate policies SEIS high-assurnace certificatePolicy +static const unsigned char cvOID_SEIS_high_assurnace_certificatePolicy [] = { 0x2A, 0x85, 0x70, 0x22, 0x01, 0x01}; +//1.2.752.34.1.2 SEIS Project certificate policies SEIS GAK certificatePolicy +static const unsigned char cvOID_SEIS_GAK_certificatePolicy [] = { 0x2A, 0x85, 0x70, 0x22, 0x01, 0x02}; +//1.2.752.34.2 SEIS Project SEIS pe +static const unsigned char cvOID_SEIS_pe [] = { 0x2A, 0x85, 0x70, 0x22, 0x02}; +//1.2.752.34.3 SEIS Project SEIS at +static const unsigned char cvOID_SEIS_at [] = { 0x2A, 0x85, 0x70, 0x22, 0x03}; +//1.2.752.34.3.1 SEIS Project attribute SEIS at-personalIdentifier +static const unsigned char cvOID_SEIS_at_personalIdentifier [] = { 0x2A, 0x85, 0x70, 0x22, 0x03, 0x01}; +//1.2.840.10040.1 ANSI X9.57 module +static const unsigned char cvOID_module [] = { 0x2A, 0x86, 0x48, 0xCE, 0x38, 0x01}; +//1.2.840.10040.1.1 ANSI X9.57 module x9f1-cert-mgmt +static const unsigned char cvOID_x9f1_cert_mgmt [] = { 0x2A, 0x86, 0x48, 0xCE, 0x38, 0x01, 0x01}; +//1.2.840.10040.2 ANSI X9.57 holdinstruction +static const unsigned char cvOID_holdinstruction [] = { 0x2A, 0x86, 0x48, 0xCE, 0x38, 0x02}; +//1.2.840.10040.2.1 ANSI X9.57 hold instruction holdinstruction-none +static const unsigned char cvOID_holdinstruction_none [] = { 0x2A, 0x86, 0x48, 0xCE, 0x38, 0x02, 0x01}; +//1.2.840.10040.2.2 ANSI X9.57 hold instruction callissuer +static const unsigned char cvOID_callissuer [] = { 0x2A, 0x86, 0x48, 0xCE, 0x38, 0x02, 0x02}; +//1.2.840.10040.2.3 ANSI X9.57 hold instruction reject +static const unsigned char cvOID_reject [] = { 0x2A, 0x86, 0x48, 0xCE, 0x38, 0x02, 0x03}; +//1.2.840.10040.2.4 ANSI X9.57 hold instruction pickupToken +static const unsigned char cvOID_pickupToken [] = { 0x2A, 0x86, 0x48, 0xCE, 0x38, 0x02, 0x04}; +//1.2.840.10040.3 ANSI X9.57 attribute +static const unsigned char cvOID_attribute [] = { 0x2A, 0x86, 0x48, 0xCE, 0x38, 0x03}; +//1.2.840.10040.3.1 ANSI X9.57 attribute countersignature +static const unsigned char cvOID_countersignature [] = { 0x2A, 0x86, 0x48, 0xCE, 0x38, 0x03, 0x01}; +//1.2.840.10040.3.2 ANSI X9.57 attribute attribute-cert +static const unsigned char cvOID_attribute_cert [] = { 0x2A, 0x86, 0x48, 0xCE, 0x38, 0x03, 0x02}; +//1.2.840.10040.4 ANSI X9.57 algorithm +static const unsigned char cvOID_algorithm [] = { 0x2A, 0x86, 0x48, 0xCE, 0x38, 0x04}; +//1.2.840.10040.4.1 ANSI X9.57 algorithm dsa +static const unsigned char cvOID_dsa [] = { 0x2A, 0x86, 0x48, 0xCE, 0x38, 0x04, 0x01}; +//1.2.840.10040.4.2 ANSI X9.57 algorithm dsa-match +static const unsigned char cvOID_dsa_match [] = { 0x2A, 0x86, 0x48, 0xCE, 0x38, 0x04, 0x02}; +//1.2.840.10040.4.3 ANSI X9.57 algorithm dsaWithSha1 +static const unsigned char cvOID_dsaWithSha1 [] = { 0x2A, 0x86, 0x48, 0xCE, 0x38, 0x04, 0x03}; +//1.2.840.10045.1 ANSI X9.62. This OID is also assigned as ecdsa-with-SHA1 fieldType +static const unsigned char cvOID_fieldType [] = { 0x2A, 0x86, 0x48, 0xCE, 0x3D, 0x01}; +//1.2.840.10045.1.1 ANSI X9.62 field type prime-field +static const unsigned char cvOID_prime_field [] = { 0x2A, 0x86, 0x48, 0xCE, 0x3D, 0x01, 0x01}; +//1.2.840.10045.1.2 ANSI X9.62 field type characteristic-two-field +static const unsigned char cvOID_characteristic_two_field [] = { 0x2A, 0x86, 0x48, 0xCE, 0x3D, 0x01, 0x02}; +//1.2.840.10045.1.2.3 ANSI X9.62 field type characteristic-two-basis +static const unsigned char cvOID_characteristic_two_basis [] = { 0x2A, 0x86, 0x48, 0xCE, 0x3D, 0x01, 0x02, 0x03}; +//1.2.840.10045.1.2.3.1 ANSI X9.62 field basis onBasis +static const unsigned char cvOID_onBasis [] = { 0x2A, 0x86, 0x48, 0xCE, 0x3D, 0x01, 0x02, 0x03, 0x01}; +//1.2.840.10045.1.2.3.2 ANSI X9.62 field basis tpBasis +static const unsigned char cvOID_tpBasis [] = { 0x2A, 0x86, 0x48, 0xCE, 0x3D, 0x01, 0x02, 0x03, 0x02}; +//1.2.840.10045.1.2.3.3 ANSI X9.62 field basis ppBasis +static const unsigned char cvOID_ppBasis [] = { 0x2A, 0x86, 0x48, 0xCE, 0x3D, 0x01, 0x02, 0x03, 0x03}; +//1.2.840.10045.2 ANSI X9.62 publicKeyType +static const unsigned char cvOID_publicKeyType [] = { 0x2A, 0x86, 0x48, 0xCE, 0x3D, 0x02}; +//1.2.840.10045.2.1 ANSI X9.62 public key type ecPublicKey +static const unsigned char cvOID_ecPublicKey [] = { 0x2A, 0x86, 0x48, 0xCE, 0x3D, 0x02, 0x01}; +//1.2.840.10046.1 ANSI X9.42 fieldType +static const unsigned char cvOID_fieldType42 [] = { 0x2A, 0x86, 0x48, 0xCE, 0x3E, 0x01}; +//1.2.840.10046.1.1 ANSI X9.42 field type gf-prime +static const unsigned char cvOID_gf_prime [] = { 0x2A, 0x86, 0x48, 0xCE, 0x3E, 0x01, 0x01}; +//1.2.840.10046.2 ANSI X9.42 numberType +static const unsigned char cvOID_numberType [] = { 0x2A, 0x86, 0x48, 0xCE, 0x3E, 0x02}; +//1.2.840.10046.2.1 ANSI X9.42 number type dhPublicKey +static const unsigned char cvOID_dhPublicKey [] = { 0x2A, 0x86, 0x48, 0xCE, 0x3E, 0x02, 0x01}; +//1.2.840.10046.3 ANSI X9.42 scheme +static const unsigned char cvOID_scheme [] = { 0x2A, 0x86, 0x48, 0xCE, 0x3E, 0x03}; +//1.2.840.10046.3.1 ANSI X9.42 scheme dhStatic +static const unsigned char cvOID_dhStatic [] = { 0x2A, 0x86, 0x48, 0xCE, 0x3E, 0x03, 0x01}; +//1.2.840.10046.3.2 ANSI X9.42 scheme dhEphem +static const unsigned char cvOID_dhEphem [] = { 0x2A, 0x86, 0x48, 0xCE, 0x3E, 0x03, 0x02}; +//1.2.840.10046.3.3 ANSI X9.42 scheme dhHybrid1 +static const unsigned char cvOID_dhHybrid1 [] = { 0x2A, 0x86, 0x48, 0xCE, 0x3E, 0x03, 0x03}; +//1.2.840.10046.3.4 ANSI X9.42 scheme dhHybrid2 +static const unsigned char cvOID_dhHybrid2 [] = { 0x2A, 0x86, 0x48, 0xCE, 0x3E, 0x03, 0x04}; +//1.2.840.10046.3.5 ANSI X9.42 scheme mqv2 +static const unsigned char cvOID_mqv2 [] = { 0x2A, 0x86, 0x48, 0xCE, 0x3E, 0x03, 0x05}; +//1.2.840.10046.3.6 ANSI X9.42 scheme mqv1 +static const unsigned char cvOID_mqv1 [] = { 0x2A, 0x86, 0x48, 0xCE, 0x3E, 0x03, 0x06}; +//1.2.840.113533.7.65.0 Nortel Secure Networks ce (1 2 840 113533 7 65) entrustVersInfo +static const unsigned char cvOID_entrustVersInfo [] = { 0x2A, 0x86, 0x48, 0x86, 0xF6, 0x7D, 0x07, 0x41, 0x00}; +//1.2.840.113533.7.66.3 Nortel Secure Networks alg (1 2 840 113533 7 66) cast3CBC +static const unsigned char cvOID_cast3CBC [] = { 0x2A, 0x86, 0x48, 0x86, 0xF6, 0x7D, 0x07, 0x42, 0x03}; +//1.2.840.113533.7.66.10 Nortel Secure Networks alg (1 2 840 113533 7 66) cast5CBC +static const unsigned char cvOID_cast5CBC [] = { 0x2A, 0x86, 0x48, 0x86, 0xF6, 0x7D, 0x07, 0x42, 0x0A}; +//1.2.840.113533.7.66.11 Nortel Secure Networks alg (1 2 840 113533 7 66) cast5MAC +static const unsigned char cvOID_cast5MAC [] = { 0x2A, 0x86, 0x48, 0x86, 0xF6, 0x7D, 0x07, 0x42, 0x0B}; +//1.2.840.113533.7.66.12 Nortel Secure Networks alg (1 2 840 113533 7 66) pbeWithMD5AndCAST5-CBC +static const unsigned char cvOID_pbeWithMD5AndCAST5_CBC [] = { 0x2A, 0x86, 0x48, 0x86, 0xF6, 0x7D, 0x07, 0x42, 0x0C}; +//1.2.840.113533.7.66.13 Nortel Secure Networks alg (1 2 840 113533 7 66) passwordBasedMac +static const unsigned char cvOID_passwordBasedMac [] = { 0x2A, 0x86, 0x48, 0x86, 0xF6, 0x7D, 0x07, 0x42, 0x0D}; +//1.2.840.113 +static const unsigned char cvOID_entrustUser [] = { 0x2A, 0x86, 0x48, 0x86, 0xF6, 0x7D, 0x07, 0x43, 0x0C}; +//1.2.840.113533.7.68.0 Nortel Secure Networks at (1 2 840 113533 7 68) entrustCAInfo +static const unsigned char cvOID_entrustCAInfo [] = { 0x2A, 0x86, 0x48, 0x86, 0xF6, 0x7D, 0x07, 0x44, 0x00}; +//1.2.840.113533.7.68.10 Nortel Secure Networks at (1 2 840 113533 7 68) attributeCertificate +static const unsigned char cvOID_attributeCertificate [] = { 0x2A, 0x86, 0x48, 0x86, 0xF6, 0x7D, 0x07, 0x44, 0x0A}; +//1.2.840.113549.1.1.1 PKCS #1 rsaEncryption +static const unsigned char cvOID_rsaEncryption [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x01, 0x01}; +//1.2.840.113549.1.1.2 PKCS #1 md2withRSAEncryption +static const unsigned char cvOID_md2withRSAEncryption [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x01, 0x02}; +//1.2.840.113549.1.1.3 PKCS #1 md4withRSAEncryption +static const unsigned char cvOID_md4withRSAEncryption [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x01, 0x03}; +//1.2.840.113549.1.1.4 PKCS #1 md5withRSAEncryption +static const unsigned char cvOID_md5withRSAEncryption [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x01, 0x04}; +//1.2.840.113549.1.1.5 PKCS #1 sha1withRSAEncryption +static const unsigned char cvOID_sha1withRSAEncryption [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x01, 0x05}; +//1.2.840.113549.1.1.6 PKCS #1. This OID may also be assigned as ripemd160WithRSAEncryption rsaOAEPEncryptionSET +static const unsigned char cvOID_rsaOAEPEncryptionSET [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x01, 0x06}; +//1.2.840.113549.1.1.8 PKCS #1. id-mgf1 (0x2A864886F70D010108) +static const unsigned char cvOID_mgf1 [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x01, 0x08}; +//1.2.840.113549.1.1.10 PKCS #1. id-RSASSA-PSS (0x2A864886F70D01010A) +static const unsigned char cvOID_rsaSSA_PSS [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x01, 0x0A}; +//1.2.840.113549.1.2 Obsolete BSAFE OID bsafeRsaEncr +static const unsigned char cvOID_bsafeRsaEncr [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x01}; +//1.2.840.113549.1.3.1 PKCS #3 dhKeyAgreement +static const unsigned char cvOID_dhKeyAgreement [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x03, 0x01}; +//1.2.840.113549.1.5.1 PKCS #5 pbeWithMD2AndDES-CBC +static const unsigned char cvOID_pbeWithMD2AndDES_CBC [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x05, 0x01}; +//1.2.840.113549.1.5.3 PKCS #5 pbeWithMD5AndDES-CBC +static const unsigned char cvOID_pbeWithMD5AndDES_CBC [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x05, 0x03}; +//1.2.840.113549.1.5.4 PKCS #5 pbeWithMD2AndRC2-CBC +static const unsigned char cvOID_pbeWithMD2AndRC2_CBC [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x05, 0x04}; +//1.2.840.113549.1.5.6 PKCS #5 pbeWithMD5AndRC2-CBC +static const unsigned char cvOID_pbeWithMD5AndRC2_CBC [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x05, 0x06}; +//1.2.840.113549.1.5.9 PKCS #5, used in BSAFE only pbeWithMD5AndXOR +static const unsigned char cvOID_pbeWithMD5AndXOR [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x05, 0x09}; +//1.2.840.113549.1.5.10 PKCS #5 pbeWithSHAAndDES-CBC +static const unsigned char cvOID_pbeWithSHAAndDES_CBC [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x05, 0x0A}; +//1.2.840.113549.1.5.12 PKCS #5 v2.0 id-PBKDF2 +static const unsigned char cvOID_id_PBKDF2 [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x05, 0x0C}; +//1.2.840.113549.1.5.13 PKCS #5 v2.0 id-PBES2 +static const unsigned char cvOID_id_PBES2 [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x05, 0x0D}; +//1.2.840.113549.1.5.14 PKCS #5 v2.0 id-PBMAC1 +static const unsigned char cvOID_id_PBMAC1 [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x05, 0x0E}; +//1.2.840.113549.1.7.1 PKCS #7 data +static const unsigned char cvOID_data [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x07, 0x01}; +//1.2.840.113549.1.7.2 PKCS #7 signedData +static const unsigned char cvOID_signedData [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x07, 0x02}; +//1.2.840.113549.1.7.3 PKCS #7 envelopedData +static const unsigned char cvOID_envelopedData [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x07, 0x03}; +//1.2.840.113549.1.7.4 PKCS #7 signedAndEnvelopedData +static const unsigned char cvOID_signedAndEnvelopedData [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x07, 0x04}; +//1.2.840.113549.1.7.5 PKCS #7 digestedData +static const unsigned char cvOID_digestedData [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x07, 0x05}; +//1.2.840.113549.1.7.6 PKCS #7 encryptedData +static const unsigned char cvOID_encryptedData [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x07, 0x06}; +//1.2.840.113549.1.7.7 PKCS #7 experimental dataWithAttributes +static const unsigned char cvOID_dataWithAttributes [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x07, 0x07}; +//1.2.840.113549.1.7.8 PKCS #7 experimental encryptedPrivateKeyInfo +static const unsigned char cvOID_encryptedPrivateKeyInfo [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x07, 0x08}; +//1.2.840.113549.1.9.1 PKCS #9 (1 2 840 113549 1 9). Deprecated, use an altName extension instead emailAddress +static const unsigned char cvOID_emailAddress_PKCS9 [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x09, 0x01}; +//1.2.840.113549.1.9.2 PKCS #9 (1 2 840 113549 1 9) unstructuredName +static const unsigned char cvOID_unstructuredName [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x09, 0x02}; +//1.2.840.113549.1.9.3 PKCS #9 (1 2 840 113549 1 9) contentType +static const unsigned char cvOID_contentType [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x09, 0x03}; +//1.2.840.113549.1.9.4 PKCS #9 (1 2 840 113549 1 9) messageDigest +static const unsigned char cvOID_messageDigest [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x09, 0x04}; +//1.2.840.113549.1.9.5 PKCS #9 (1 2 840 113549 1 9) signingTime +static const unsigned char cvOID_signingTime [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x09, 0x05}; +//1.2.840.113549.1.9.6 PKCS #9 (1 2 840 113549 1 9) countersignature +static const unsigned char cvOID_countersignature_PKCS9 [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x09, 0x06}; +//1.2.840.113549.1.9.7 PKCS #9 (1 2 840 113549 1 9) challengePassword +static const unsigned char cvOID_challengePassword [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x09, 0x07}; +//1.2.840.113549.1.9.8 PKCS #9 (1 2 840 113549 1 9) unstructuredAddress +static const unsigned char cvOID_unstructuredAddress [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x09, 0x08}; +//1.2.840.113549.1.9.9 PKCS #9 (1 2 840 113549 1 9) extendedCertificateAttributes +static const unsigned char cvOID_extendedCertificateAttributes [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x09, 0x09}; +//1.2.840.113549.1.9.10 PKCS #9 (1 2 840 113549 1 9) experimental issuerAndSerialNumber +static const unsigned char cvOID_issuerAndSerialNumber [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x09, 0x0A}; +//1.2.840.113549.1.9.11 PKCS #9 (1 2 840 113549 1 9) experimental passwordCheck +static const unsigned char cvOID_passwordCheck [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x09, 0x0B}; +//1.2.840.113549.1.9.12 PKCS #9 (1 2 840 113549 1 9) experimental publicKey +static const unsigned char cvOID_publicKey [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x09, 0x0C}; +//1.2.840.113549.1.9.13 PKCS #9 (1 2 840 113549 1 9) experimental signingDescription +static const unsigned char cvOID_signingDescription [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x09, 0x0D}; +//1.2.840.113549.1.9.14 PKCS #9 (1 2 840 113549 1 9) experimental extensionReq +static const unsigned char cvOID_extensionReq [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x09, 0x0E}; +//1.2.840.113549.1.9.15 PKCS #9 (1 2 840 113549 1 9). This OID was formerly assigned as symmetricCapabilities, then reassigned as SMIMECapabilities, then renamed to the current name sMIMECapabilities +static const unsigned char cvOID_sMIMECapabilities [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x09, 0x0F}; +//1.2.840.113549.1.9.15.1 sMIMECapabilities (1 2 840 113549 1 9 15) preferSignedData +static const unsigned char cvOID_preferSignedData [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x09, 0x0F, 0x01}; +//1.2.840.113549.1.9.15.2 sMIMECapabilities (1 2 840 113549 1 9 15) canNotDecryptAny +static const unsigned char cvOID_canNotDecryptAny [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x09, 0x0F, 0x02}; +//1.2.840.113549.1.9.15.3 sMIMECapabilities (1 2 840 113549 1 9 15). Deprecated, use (1 2 840 113549 1 9 16 2 1) instead receiptRequest +static const unsigned char cvOID_receiptRequest [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x09, 0x0F, 0x03}; +//1.2.840.113549.1.9.15.4 sMIMECapabilities (1 2 840 113549 1 9 15). Deprecated, use (1 2 840 113549 1 9 16 1 1) instead receipt +static const unsigned char cvOID_receipt [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x09, 0x0F, 0x04}; +//1.2.840.113549.1.9.15.5 sMIMECapabilities (1 2 840 113549 1 9 15). Deprecated, use (1 2 840 113549 1 9 16 2 4) instead contentHints +static const unsigned char cvOID_contentHints [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x09, 0x0F, 0x05}; +//1.2.840.113549.1.9.15.6 sMIMECapabilities (1 2 840 113549 1 9 15). Deprecated, use (1 2 840 113549 1 9 16 2 3) instead mlExpansionHistory +static const unsigned char cvOID_mlExpansionHistory [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x09, 0x0F, 0x06}; +//1.2.840.113549.1.9.16 PKCS #9 (1 2 840 113549 1 9) id-sMIME +static const unsigned char cvOID_id_sMIME [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x09, 0x10}; +//1.2.840.113549.1.9.16.0 id-sMIME (1 2 840 113549 1 9 16) id-mod +static const unsigned char cvOID_id_mod [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x09, 0x10, 0x00}; +//1.2.840.113549.1.9.16.0.1 S/MIME Modules (1 2 840 113549 1 9 16 0) id-mod-cms +static const unsigned char cvOID_id_mod_cms [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x09, 0x10, 0x00, 0x01}; +//1.2.840.113549.1.9.16.0.2 S/MIME Modules (1 2 840 113549 1 9 16 0) id-mod-ess +static const unsigned char cvOID_id_mod_ess [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x09, 0x10, 0x00, 0x02}; +//1.2.840.113549.1.9.16.1 id-sMIME (1 2 840 113549 1 9 16) id-ct +static const unsigned char cvOID_id_ct [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x09, 0x10, 0x01}; +//1.2.840.113549.1.9.16.1.1 S/MIME Content Types (1 2 840 113549 1 9 16 1) id-ct-receipt +static const unsigned char cvOID_id_ct_receipt [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x09, 0x10, 0x01, 0x01}; +//1.2.840.113549.1.9.16.1.2 S/MIME Content Types (1 2 840 113549 1 9 16 1) id-ct-authData +static const unsigned char cvOID_id_ct_authData [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x09, 0x10, 0x01, 0x02}; +//1.2.840.113549.1.9.16.1.3 S/MIME Content Types (1 2 840 113549 1 9 16 1) id-ct-compressedData +static const unsigned char cvOID_id_ct_compressedData [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x09, 0x10, 0x01, 0x03}; +//1.2.840.113549.1.9.16.2 id-sMIME (1 2 840 113549 1 9 16) id-aa +static const unsigned char cvOID_id_aa [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x09, 0x10, 0x02}; +//1.2.840.113549.1.9.16.2.1 S/MIME Authenticated Attributes (1 2 840 113549 1 9 16 2) id-aa-receiptRequest +static const unsigned char cvOID_id_aa_receiptRequest [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x09, 0x10, 0x02, 0x01}; +//1.2.840.113549.1.9.16.2.2 S/MIME Authenticated Attributes (1 2 840 113549 1 9 16 2) id-aa-securityLabel +static const unsigned char cvOID_id_aa_securityLabel [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x09, 0x10, 0x02, 0x02}; +//1.2.840.113549.1.9.16.2.3 S/MIME Authenticated Attributes (1 2 840 113549 1 9 16 2) id-aa-mlExpandHistory +static const unsigned char cvOID_id_aa_mlExpandHistory [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x09, 0x10, 0x02, 0x03}; +//1.2.840.113549.1.9.16.2.4 S/MIME Authenticated Attributes (1 2 840 113549 1 9 16 2) id-aa-contentHint +static const unsigned char cvOID_id_aa_contentHint [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x09, 0x10, 0x02, 0x04}; +//1.2.840.113549.1.9.16.2.5 S/MIME Authenticated Attributes (1 2 840 113549 1 9 16 2) id-aa-msgSigDigest +static const unsigned char cvOID_id_aa_msgSigDigest [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x09, 0x10, 0x02, 0x05}; +//1.2.840.113549.1.9.16.2.7 S/MIME Authenticated Attributes (1 2 840 113549 1 9 16 2) id-aa-contentIdentifier +static const unsigned char cvOID_id_aa_contentIdentifier [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x09, 0x10, 0x02, 0x07}; +//1.2.840.113549.1.9.16.2.8 S/MIME Authenticated Attributes (1 2 840 113549 1 9 16 2) id-aa-macValue +static const unsigned char cvOID_id_aa_macValue [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x09, 0x10, 0x02, 0x08}; +//1.2.840.113549.1.9.16.2.9 S/MIME Authenticated Attributes (1 2 840 113549 1 9 16 2) id-aa-equivalentLabels +static const unsigned char cvOID_id_aa_equivalentLabels [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x09, 0x10, 0x02, 0x09}; +//1.2.840.113549.1.9.16.2.10 S/MIME Authenticated Attributes (1 2 840 113549 1 9 16 2) id-aa-contentReference +static const unsigned char cvOID_id_aa_contentReference [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x09, 0x10, 0x02, 0x0A}; +//1.2.840.113549.1.9.16.3.5 S/MIME Algorithms (1 2 840 113549 1 9 16 3) id-alg-ESDH +static const unsigned char cvOID_id_alg_ESDH [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x09, 0x10, 0x03, 0x05}; +//1.2.840.113549.1.9.16.3.6 S/MIME Algorithms (1 2 840 113549 1 9 16 3) id-alg-CMS3DESwrap +static const unsigned char cvOID_id_alg_CMS3DESwrap [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x09, 0x10, 0x03, 0x06}; +//1.2.840.113549.1.9.16.3.7 S/MIME Algorithms (1 2 840 113549 1 9 16 3) id-alg-CMSRC2wrap +static const unsigned char cvOID_id_alg_CMSRC2wrap [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x09, 0x10, 0x03, 0x07}; +//1.2.840.113549.1.9.16.3.8 S/MIME Algorithms (1 2 840 113549 1 9 16 3) id-alg-zlib +static const unsigned char cvOID_id_alg_zlib [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x09, 0x10, 0x03, 0x08}; +//1.2.840.113549.1.9.20 PKCS #9 (1 2 840 113549 1 9) friendlyName (for PKCS #12) +static const unsigned char cvOID_friendlyName [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x09, 0x14}; +//1.2.840.113549.1.9.21 PKCS #9 (1 2 840 113549 1 9) localKeyID (for PKCS #12) +static const unsigned char cvOID_localKeyID[] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x09, 0x15}; +//1.2.840.113549.1.9.22 PKCS #9 (1 2 840 113549 1 9) certTypes (for PKCS #12) +static const unsigned char cvOID_certTypes[] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x09, 0x16}; +//1.2.840.113549.1.9.22.1 PKCS #9 (1 2 840 113549 1 9) x509Certificate (for PKCS #12) +static const unsigned char cvOID_x509Certificate[] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x09, 0x16, 0x01}; +//1.2.840.113549.1.9.22.2 PKCS #9 (1 2 840 113549 1 9) sdsiCertificate (for PKCS #12) +static const unsigned char cvOID_sdsiCertificate [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x09, 0x16, 0x02}; +//1.2.840.113549.1.9.23 PKCS #9 (1 2 840 113549 1 9) crlTypes (for PKCS #12) +static const unsigned char cvOID_crlTypes[] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x09, 0x17}; +//1.2.840.113549.1.9.23.1 PKCS #9 (1 2 840 113549 1 9) x509Crl (for PKCS #12) +static const unsigned char cvOID_x509Crl[] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x09, 0x17, 0x01}; +//1.2.840.113549.1.12.1 This OID was formerly assigned as PKCS #12 modeID pkcs-12-PbeIds +static const unsigned char cvOID_pkcs_12_PbeIds [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x0C, 0x01}; +//1.2.840.113549.1.12.1.1 PKCS #12 PbeIds (1 2 840 113549 1 12 1). This OID was formerly assigned as pkcs-12-OfflineTransportMode pbeWithSHAAnd128BitRC4 +static const unsigned char cvOID_pbeWithSHAAnd128BitRC4 [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x0C, 0x01, 0x01}; +//1.2.840.113549.1.12.1.2 PKCS #12 PbeIds (1 2 840 113549 1 12 2). This OID was formerly assigned as pkcs-12-OnlineTransportMode pbeWithSHAAnd40BitRC4 +static const unsigned char cvOID_pbeWithSHAAnd40BitRC4 [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x0C, 0x01, 0x02}; +//1.2.840.113549.1.12.1.3 PKCS #12 PbeIds (1 2 840 113549 1 12 3) pbeWithSHAAnd3-KeyTripleDES-CBC +static const unsigned char cvOID_pbeWithSHAAnd3_KeyTripleDES_CBC [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x0C, 0x01, 0x03}; +//1.2.840.113549.1.12.1.4 PKCS #12 PbeIds (1 2 840 113549 1 12 3) pbeWithSHAAnd2-KeyTripleDES-CBC +static const unsigned char cvOID_pbeWithSHAAnd2_KeyTripleDES_CBC [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x0C, 0x01, 0x04}; +//1.2.840.113549.1.12.1.5 PKCS #12 PbeIds (1 2 840 113549 1 12 3) pbeWithSHAAnd128BitRC2-CBC +static const unsigned char cvOID_pbeWithSHAAnd128BitRC2_CBC [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x0C, 0x01, 0x05}; +//1.2.840.113549.1.12.1.6 PKCS #12 PbeIds (1 2 840 113549 1 12 3) pbeWithSHAAnd40BitRC2-CBC +static const unsigned char cvOID_pbeWithSHAAnd40BitRC2_CBC [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x0C, 0x01, 0x06}; +//1.2.840.113549.1.12.2 Deprecated pkcs-12-ESPVKID +static const unsigned char cvOID_pkcs_12_ESPVKID [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x0C, 0x02}; +//1.2.840.113549.1.12.2.1 PKCS #12 ESPVKID (1 2 840 113549 1 12 2). Deprecated, use (1 2 840 113549 1 12 3 5) instead pkcs-12-PKCS8KeyShrouding +static const unsigned char cvOID_pkcs_12_PKCS8KeyShrouding [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x0C, 0x02, 0x01}; +//1.2.840.113549.1.12.3.1 PKCS #12 BagIds (1 2 840 113549 1 12 3) pkcs-12-keyBagId +static const unsigned char cvOID_pkcs_12_keyBagId [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x0C, 0x03, 0x01}; +//1.2.840.113549.1.12.3.2 PKCS #12 BagIds (1 2 840 113549 1 12 3) pkcs-12-certAndCRLBagId +static const unsigned char cvOID_pkcs_12_certAndCRLBagId [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x0C, 0x03, 0x02}; +//1.2.840.113549.1.12.3.3 PKCS #12 BagIds (1 2 840 113549 1 12 3) pkcs-12-secretBagId +static const unsigned char cvOID_pkcs_12_secretBagId [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x0C, 0x03, 0x03}; +//1.2.840.113549.1.12.3.4 PKCS #12 BagIds (1 2 840 113549 1 12 3) pkcs-12-safeContentsId +static const unsigned char cvOID_pkcs_12_safeContentsId [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x0C, 0x03, 0x04}; +//1.2.840.113549.1.12.3.5 PKCS #12 BagIds (1 2 840 113549 1 12 3) pkcs-12-pkcs-8ShroudedKeyBagId +static const unsigned char cvOID_pkcs_12_pkcs_8ShroudedKeyBagId [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x0C, 0x03, 0x05}; +//1.2.840.113549.1.12.4 Deprecated pkcs-12-CertBagID +static const unsigned char cvOID_pkcs_12_CertBagID [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x0C, 0x04}; +//1.2.840.113549.1.12.4.1 PKCS #12 CertBagID (1 2 840 113549 1 12 4). This OID was formerly assigned as pkcs-12-X509CertCRLBag pkcs-12-X509CertCRLBagID +static const unsigned char cvOID_pkcs_12_X509CertCRLBagID [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x0C, 0x04, 0x01}; +//1.2.840.113549.1.12.4.2 PKCS #12 CertBagID (1 2 840 113549 1 12 4). This OID was formerly assigned as pkcs-12-SDSICertBag pkcs-12-SDSICertBagID +static const unsigned char cvOID_pkcs_12_SDSICertBagID [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x0C, 0x04, 0x02}; +//1.2.840.113549.1.12.5.1 PKCS #12 OID (1 2 840 113549 1 12 5). Deprecated, use the partially compatible (1 2 840 113549 1 12 1) OIDs instead pkcs-12-PBEID +static const unsigned char cvOID_pkcs_12_PBEID [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x0C, 0x05, 0x01}; +//1.2.840.113549.1.12.5.1.1 PKCS #12 OID PBEID (1 2 840 113549 1 12 5 1). Deprecated, use (1 2 840 113549 1 12 1 1) instead pkcs-12-PBEWithSha1And128BitRC4 +static const unsigned char cvOID_pkcs_12_PBEWithSha1And128BitRC4 [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x0C, 0x05, 0x01, 0x01}; +//1.2.840.113549.1.12.5.1.2 PKCS #12 OID PBEID (1 2 840 113549 1 12 5 1). Deprecated, use (1 2 840 113549 1 12 1 2) instead pkcs-12-PBEWithSha1And40BitRC4 +static const unsigned char cvOID_pkcs_12_PBEWithSha1And40BitRC4 [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x0C, 0x05, 0x01, 0x02}; +//1.2.840.113549.1.12.5.1.3 PKCS #12 OID PBEID (1 2 840 113549 1 12 5 1). Deprecated, use the incompatible but similar (1 2 840 113549 1 12 1 3) or (1 2 840 113549 1 12 1 4) instead pkcs-12-PBEWithSha1AndTripleDESCBC +static const unsigned char cvOID_pkcs_12_PBEWithSha1AndTripleDESCBC [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x0C, 0x05, 0x01, 0x03}; +//1.2.840.113549.1.12.5.1.4 PKCS #12 OID PBEID (1 2 840 113549 1 12 5 1). Deprecated, use (1 2 840 113549 1 12 1 5) instead pkcs-12-PBEWithSha1And128BitRC2CBC +static const unsigned char cvOID_pkcs_12_PBEWithSha1And128BitRC2CBC [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x0C, 0x05, 0x01, 0x04}; +//1.2.840.113549.1.12.5.1.5 PKCS #12 OID PBEID (1 2 840 113549 1 12 5 1). Deprecated, use (1 2 840 113549 1 12 1 6) instead pkcs-12-PBEWithSha1And40BitRC2CBC +static const unsigned char cvOID_pkcs_12_PBEWithSha1And40BitRC2CBC [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x0C, 0x05, 0x01, 0x05}; +//1.2.840.113549.1.12.5.1.6 PKCS #12 OID PBEID (1 2 840 113549 1 12 5 1). Deprecated, use the incompatible but similar (1 2 840 113549 1 12 1 1) or (1 2 840 113549 1 12 1 2) instead pkcs-12-PBEWithSha1AndRC4 +static const unsigned char cvOID_pkcs_12_PBEWithSha1AndRC4 [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x0C, 0x05, 0x01, 0x06}; +//1.2.840.113549.1.12.5.1.7 PKCS #12 OID PBEID (1 2 840 113549 1 12 5 1). Deprecated, use the incompatible but similar (1 2 840 113549 1 12 1 5) or (1 2 840 113549 1 12 1 6) instead pkcs-12-PBEWithSha1AndRC2CBC +static const unsigned char cvOID_pkcs_12_PBEWithSha1AndRC2CBC [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x0C, 0x05, 0x01, 0x07}; +//1.2.840.113549.1.12.5.2.1 PKCS #12 OID EnvelopingID (1 2 840 113549 1 12 5 2). Deprecated, use the conventional PKCS #1 OIDs instead pkcs-12-RSAEncryptionWith128BitRC4 +static const unsigned char cvOID_pkcs_12_RSAEncryptionWith128BitRC4 [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x0C, 0x05, 0x02, 0x01}; +//1.2.840.113549.1.12.5.2.2 PKCS #12 OID EnvelopingID (1 2 840 113549 1 12 5 2). Deprecated, use the conventional PKCS #1 OIDs instead pkcs-12-RSAEncryptionWith40BitRC4 +static const unsigned char cvOID_pkcs_12_RSAEncryptionWith40BitRC4 [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x0C, 0x05, 0x02, 0x02}; +//1.2.840.113549.1.12.5.2.3 PKCS #12 OID EnvelopingID (1 2 840 113549 1 12 5 2). Deprecated, use the conventional PKCS #1 OIDs instead pkcs-12-RSAEncryptionWithTripleDES +static const unsigned char cvOID_pkcs_12_RSAEncryptionWithTripleDES [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x0C, 0x05, 0x02, 0x03}; +//1.2.840.113549.1.12.5.3.1 PKCS #12 OID SignatureID (1 2 840 113549 1 12 5 3). Deprecated, use the conventional PKCS #1 OIDs instead pkcs-12-RSASignatureWithSHA1Digest +static const unsigned char cvOID_pkcs_12_RSASignatureWithSHA1Digest [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x0C, 0x05, 0x03, 0x01}; +//1.2.840.113549.1.12.10.1.1 PKCS #12 BagIds (1 2 840 113549 1 12 10 1) pkcs-12-keyBag +static const unsigned char cvOID_pkcs_12_keyBag [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x0C, 0x0A, 0x01, 0x01}; +//1.2.840.113549.1.12.10.1.2 PKCS #12 BagIds (1 2 840 113549 1 12 10 1) pkcs-12-pkcs-8ShroudedKeyBag +static const unsigned char cvOID_pkcs_12_pkcs_8ShroudedKeyBag [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x0C, 0x0A, 0x01, 0x02}; +//1.2.840.113549.1.12.10.1.3 PKCS #12 BagIds (1 2 840 113549 1 12 10 1) pkcs-12-certBag +static const unsigned char cvOID_pkcs_12_certBag [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x0C, 0x0A, 0x01, 0x03}; +//1.2.840.113549.1.12.10.1.4 PKCS #12 BagIds (1 2 840 113549 1 12 10 1) pkcs-12-crlBag +static const unsigned char cvOID_pkcs_12_crlBag [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x0C, 0x0A, 0x01, 0x04}; +//1.2.840.113549.1.12.10.1.5 PKCS #12 BagIds (1 2 840 113549 1 12 10 1) pkcs-12-secretBag +static const unsigned char cvOID_pkcs_12_secretBag [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x0C, 0x0A, 0x01, 0x05}; +//1.2.840.113549.1.12.10.1.6 PKCS #12 BagIds (1 2 840 113549 1 12 10 1) pkcs-12-safeContentsBag +static const unsigned char cvOID_pkcs_12_safeContentsBag [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x0C, 0x0A, 0x01, 0x06}; +//1.2.840.113549.2.2 RSADSI digestAlgorithm (1 2 840 113549 2) md2 +static const unsigned char cvOID_md2 [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x02, 0x02}; +//1.2.840.113549.2.4 RSADSI digestAlgorithm (1 2 840 113549 2) md4 +static const unsigned char cvOID_md4 [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x02, 0x04}; +//1.2.840.113549.2.5 RSADSI digestAlgorithm (1 2 840 113549 2) md5 +static const unsigned char cvOID_md5 [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x02, 0x05}; +//1.2.840.113549.3.2 RSADSI encryptionAlgorithm (1 2 840 113549 3) rc2CBC +static const unsigned char cvOID_rc2CBC [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x03, 0x02}; +//1.2.840.113549.3.3 RSADSI encryptionAlgorithm (1 2 840 113549 3) rc2ECB +static const unsigned char cvOID_rc2ECB [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x03, 0x03}; +//1.2.840.113549.3.4 RSADSI encryptionAlgorithm (1 2 840 113549 3) rc4 +static const unsigned char cvOID_rc4 [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x03, 0x04}; +//1.2.840.113549.3.5 RSADSI encryptionAlgorithm (1 2 840 113549 3) rc4WithMAC +static const unsigned char cvOID_rc4WithMAC [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x03, 0x05}; +//1.2.840.113549.3.6 RSADSI encryptionAlgorithm (1 2 840 113549 3) desx-CBC +static const unsigned char cvOID_desx_CBC [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x03, 0x06}; +//1.2.840.113549.3.7 RSADSI encryptionAlgorithm (1 2 840 113549 3) des-EDE3-CBC +static const unsigned char cvOID_des_EDE3_CBC [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x03, 0x07}; +//1.2.840.113549.3.8 RSADSI encryptionAlgorithm (1 2 840 113549 3) rc5CBC +static const unsigned char cvOID_rc5CBC [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x03, 0x08}; +//1.2.840.113549.3.9 RSADSI encryptionAlgorithm (1 2 840 113549 3) rc5-CBCPad +static const unsigned char cvOID_rc5_CBCPad [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x03, 0x09}; +//1.2.840.113549.3.10 RSADSI encryptionAlgorithm (1 2 840 113549 3). Formerly called CDMFCBCPad desCDMF +static const unsigned char cvOID_desCDMF [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x03, 0x0A}; +//1.3.6.1.4.1.188.7.1.1 Ascom Systech ascom +static const unsigned char cvOID_ascom [] = { 0x2B, 0x06, 0x01, 0x04, 0x01, 0x81, 0x3C, 0x07, 0x01, 0x01}; +//1.3.6.1.4.1.188.7.1.1.1 Ascom Systech ideaECB +static const unsigned char cvOID_ideaECB [] = { 0x2B, 0x06, 0x01, 0x04, 0x01, 0x81, 0x3C, 0x07, 0x01, 0x01, 0x01}; +//1.3.6.1.4.1.188.7.1.1.2 Ascom Systech ideaCBC +static const unsigned char cvOID_ideaCBC [] = { 0x2B, 0x06, 0x01, 0x04, 0x01, 0x81, 0x3C, 0x07, 0x01, 0x01, 0x02}; +//1.3.6.1.4.1.188.7.1.1.3 Ascom Systech ideaCFB +static const unsigned char cvOID_ideaCFB [] = { 0x2B, 0x06, 0x01, 0x04, 0x01, 0x81, 0x3C, 0x07, 0x01, 0x01, 0x03}; +//1.3.6.1.4.1.188.7.1.1.4 Ascom Systech ideaOFB +static const unsigned char cvOID_ideaOFB [] = { 0x2B, 0x06, 0x01, 0x04, 0x01, 0x81, 0x3C, 0x07, 0x01, 0x01, 0x04}; +//1.2.840.113556.4.3 Microsoft microsoftExcel +static const unsigned char cvOID_microsoftExcel [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x14, 0x04, 0x03}; +//1.2.840.113556.4.4 Microsoft titledWithOID +static const unsigned char cvOID_titledWithOID [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x14, 0x04, 0x04}; +//1.2.840.113556.4.5 Microsoft microsoftPowerPoint +static const unsigned char cvOID_microsoftPowerPoint [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x14, 0x04, 0x05}; +//1.3.6.1.4.1.311.2.1.4 Microsoft code signing spcIndirectDataContext +static const unsigned char cvOID_spcIndirectDataContext [] = { 0x2B, 0x06, 0x01, 0x04, 0x01, 0x82, 0x37, 0x02, 0x01, 0x04}; +//1.3.6.1.4.1.311.2.1.10 Microsoft code signing. Also known as policyLink spcAgencyInfo +static const unsigned char cvOID_spcAgencyInfo [] = { 0x2B, 0x06, 0x01, 0x04, 0x01, 0x82, 0x37, 0x02, 0x01, 0x0A}; +//1.3.6.1.4.1.311.2.1.11 Microsoft code signing spcStatementType +static const unsigned char cvOID_spcStatementType [] = { 0x2B, 0x06, 0x01, 0x04, 0x01, 0x82, 0x37, 0x02, 0x01, 0x0B}; +//1.3.6.1.4.1.311.2.1.12 Microsoft code signing spcSpOpusInfo +static const unsigned char cvOID_spcSpOpusInfo [] = { 0x2B, 0x06, 0x01, 0x04, 0x01, 0x82, 0x37, 0x02, 0x01, 0x0C}; +//1.3.6.1.4.1.311.2.1.14 Microsoft certReqExtensions +static const unsigned char cvOID_certReqExtensions [] = { 0x2B, 0x06, 0x01, 0x04, 0x01, 0x82, 0x37, 0x02, 0x01, 0x0E}; +//1.3.6.1.4.1.311.2.1.15 Microsoft code signing spcPelmageData +static const unsigned char cvOID_spcPelmageData [] = { 0x2B, 0x06, 0x01, 0x04, 0x01, 0x82, 0x37, 0x02, 0x01, 0x0F}; +//1.3.6.1.4.1.311.2.1.20 Microsoft code signing. Also known as "glue extension" spcLink (type 1) +static const unsigned char cvOID_spcLink_1[] = { 0x2B, 0x06, 0x01, 0x04, 0x01, 0x82, 0x37, 0x02, 0x01, 0x14}; +//1.3.6.1.4.1.311.2.1.21 Microsoft individualCodeSigning +static const unsigned char cvOID_individualCodeSigning [] = { 0x2B, 0x06, 0x01, 0x04, 0x01, 0x82, 0x37, 0x02, 0x01, 0x15}; +//1.3.6.1.4.1.311.2.1.22 Microsoft commercialCodeSigning +static const unsigned char cvOID_commercialCodeSigning [] = { 0x2B, 0x06, 0x01, 0x04, 0x01, 0x82, 0x37, 0x02, 0x01, 0x16}; +//1.3.6.1.4.1.311.2.1.25 Microsoft code signing. Also known as "glue extension" spcLink (type 2) +static const unsigned char cvOID_spcLink_2[] = { 0x2B, 0x06, 0x01, 0x04, 0x01, 0x82, 0x37, 0x02, 0x01, 0x19}; +//1.3.6.1.4.1.311.2.1.26 Microsoft code signing spcMinimalCriteriaInfo +static const unsigned char cvOID_spcMinimalCriteriaInfo [] = { 0x2B, 0x06, 0x01, 0x04, 0x01, 0x82, 0x37, 0x02, 0x01, 0x1A}; +//1.3.6.1.4.1.311.2.1.27 Microsoft code signing spcFinancialCriteriaInfo +static const unsigned char cvOID_spcFinancialCriteriaInfo [] = { 0x2B, 0x06, 0x01, 0x04, 0x01, 0x82, 0x37, 0x02, 0x01, 0x1B}; +//1.3.6.1.4.1.311.2.1.28 Microsoft code signing. Also known as "glue extension" spcLink (type 3) +static const unsigned char cvOID_spcLink_3[] = { 0x2B, 0x06, 0x01, 0x04, 0x01, 0x82, 0x37, 0x02, 0x01, 0x1C}; +//1.3.6.1.4.1.311.3.2.1 Microsoft code signing timestampCountersignature +static const unsigned char cvOID_timestampCountersignature [] = { 0x2B, 0x06, 0x01, 0x04, 0x01, 0x82, 0x37, 0x03, 0x02, 0x01}; +//1.3.6.1.4.1.311.10.1 Microsoft PKCS #7 contentType certTrustList +static const unsigned char cvOID_certTrustList [] = { 0x2B, 0x06, 0x01, 0x04, 0x01, 0x82, 0x37, 0x0A, 0x01}; +//1.3.6.1.4.1.311.10.2 Microsoft nextUpdateLocation +static const unsigned char cvOID_nextUpdateLocation [] = { 0x2B, 0x06, 0x01, 0x04, 0x01, 0x82, 0x37, 0x0A, 0x02}; +//1.3.6.1.4.1.311.10.3.1 Microsoft enhanced key usage certTrustListSigning +static const unsigned char cvOID_certTrustListSigning [] = { 0x2B, 0x06, 0x01, 0x04, 0x01, 0x82, 0x37, 0x0A, 0x03, 0x01}; +//1.3.6.1.4.1.311.10.3.2 Microsoft enhanced key usage timeStampSigning +static const unsigned char cvOID_timeStampSigning [] = { 0x2B, 0x06, 0x01, 0x04, 0x01, 0x82, 0x37, 0x0A, 0x03, 0x02}; +//1.3.6.1.4.1.311.10.3.3 Microsoft enhanced key usage serverGatedCrypto +static const unsigned char cvOID_serverGatedCrypto [] = { 0x2B, 0x06, 0x01, 0x04, 0x01, 0x82, 0x37, 0x0A, 0x03, 0x03}; +//1.3.6.1.4.1.311.10.3.4 Microsoft enhanced key usage encryptedFileSystem +static const unsigned char cvOID_encryptedFileSystem [] = { 0x2B, 0x06, 0x01, 0x04, 0x01, 0x82, 0x37, 0x0A, 0x03, 0x04}; +//1.3.6.1.4.1.311.10.4.1 Microsoft attribute yesnoTrustAttr +static const unsigned char cvOID_yesnoTrustAttr [] = { 0x2B, 0x06, 0x01, 0x04, 0x01, 0x82, 0x37, 0x0A, 0x04, 0x01}; +//1.3.6.1.4.1.311.16.4 Microsoft S/MIME cert attribute microsoftEncryptionCert +static const unsigned char cvOID_microsoftEncryptionCert [] = { 0x2B, 0x06, 0x01, 0x04, 0x01, 0x82, 0x37, 0x10, 0x04}; +//1.3.6.1.4.1.311.20.2.2 Microsoft enhanced key usage smartcardLogon +static const unsigned char cvOID_smartcardLogon [] = { 0x2B, 0x06, 0x01, 0x04, 0x01, 0x82, 0x37, 0x14, 0x02, 0x02}; +//1.3.6.1.4.1.311.21.1 Microsoft attribute cAKeyCertIndexPair +static const unsigned char cvOID_cAKeyCertIndexPair [] = { 0x2B, 0x06, 0x01, 0x04, 0x01, 0x82, 0x37, 0x15, 0x01}; +//1.3.6.1.4.1.311.13.2.2 Microsoft attribute Unknown MS CryptoAPI-related extension +static const unsigned char cvOID_Unknown_MS_CryptoAPI_related_extension [] = { 0x2B, 0x06, 0x01, 0x04, 0x01, 0x82, 0x37, 0x0D, 0x02, 0x02}; +//1.3.6.1.4.1.311.16.4 Microsoft attribute microsoftRecipientInfo +static const unsigned char cvOID_microsoftRecipientInfo [] = { 0x2B, 0x06, 0x01, 0x04, 0x01, 0x82, 0x37, 0x10, 0x04}; +//1.3.6.1.4.1.2428.10.1.1 UNINETT PCA UNINETT policyIdentifier +static const unsigned char cvOID_UNINETT_policyIdentifier [] = { 0x2B, 0x06, 0x01, 0x04, 0x01, 0x92, 0x7C, 0x0A, 0x01, 0x01}; +//1.3.6.1.4.1.2712.10 ICE-TEL CA ICE-TEL policyIdentifier +static const unsigned char cvOID_ICE_TEL_policyIdentifier [] = { 0x2B, 0x06, 0x01, 0x04, 0x01, 0x95, 0x18, 0x0A}; +//1.3.6.1.4.1.2786.1.1.1 ICE-TEL CA policy ICE-TEL Italian policyIdentifier +static const unsigned char cvOID_ICE_TEL_Italian_policyIdentifier [] = { 0x2B, 0x06, 0x01, 0x04, 0x01, 0x95, 0x62, 0x01, 0x01, 0x01}; +//1.3.6.1.4.1.3029.1.1 cryptlib encryption algorithm blowfishECB +static const unsigned char cvOID_blowfishECB [] = { 0x2B, 0x06, 0x01, 0x04, 0x01, 0x97, 0x55, 0x01, 0x01}; +//1.3.6.1.4.1.3029.1.2 cryptlib encr +static const unsigned char cvOID_blowfishCBC [] = { 0x2B, 0x06, 0x01, 0x04, 0x01, 0x97, 0x55, 0x01, 0x02}; +//1.3.6.1.4.1.3029.1.3 cryptlib encryption algorithm blowfishCFB +static const unsigned char cvOID_blowfishCFB [] = { 0x2B, 0x06, 0x01, 0x04, 0x01, 0x97, 0x55, 0x01, 0x03}; +//1.3.6.1.4.1.3029.1.4 cryptlib encryption algorithm blowfishOFB +static const unsigned char cvOID_blowfishOFB [] = { 0x2B, 0x06, 0x01, 0x04, 0x01, 0x97, 0x55, 0x01, 0x04}; +//1.3.6.1.4.1.3029.3.1 cryptlib public-key algorithm elgamal +static const unsigned char cvOID_elgamal [] = { 0x2B, 0x06, 0x01, 0x04, 0x01, 0x97, 0x55, 0x03, 0x01}; +//1.3.6.1.4.1.3029.3.1.1 cryptlib public-key algorithm elgamalWithSHA-1 +static const unsigned char cvOID_elgamalWithSHA_1 [] = { 0x2B, 0x06, 0x01, 0x04, 0x01, 0x97, 0x55, 0x03, 0x01, 0x01}; +//1.3.6.1.4.1.3029.3.1.2 cryptlib public-key algorithm elgamalWithRIPEMD-160 +static const unsigned char cvOID_elgamalWithRIPEMD_160 [] = { 0x2B, 0x06, 0x01, 0x04, 0x01, 0x97, 0x55, 0x03, 0x01, 0x02}; +//1.3.6.1.4.1.3029.32.1 cryptlib cryptlibPrivateKey +static const unsigned char cvOID_cryptlibPrivateKey [] = { 0x2B, 0x06, 0x01, 0x04, 0x01, 0x97, 0x55, 0x20, 0x01}; +//1.3.6.1.4.1.3029.42.11172.1 cryptlib special MPEG-of-cat OID mpeg-1 +static const unsigned char cvOID_mpeg_1 [] = { 0x2B, 0x06, 0x01, 0x04, 0x01, 0x97, 0x55, 0x2A, 0xD7, 0x24, 0x01}; +//1.3.6.1.5.5.7.1 PKIX privateExtension +static const unsigned char cvOID_privateExtension [] = { 0x2B, 0x06, 0x01, 0x05, 0x05, 0x07, 0x01}; +//1.3.6.1.5.5.7.1.1 PKIX private extension authorityInfoAccess +static const unsigned char cvOID_authorityInfoAccess [] = { 0x2B, 0x06, 0x01, 0x05, 0x05, 0x07, 0x01, 0x01}; + +//ame +//1.3.6.1.5.5.7.1.11 PKIX private extension subjectInfoAccess +static const unsigned char cvOID_subjectInfoAccess [] = { 0x2B, 0x06, 0x01, 0x05, 0x05, 0x07, 0x01, 0x0a}; + +//1.3.6.1.5.5.7.2 PKIX policyQualifierIds +static const unsigned char cvOID_policyQualifierIds [] = { 0x2B, 0x06, 0x01, 0x05, 0x05, 0x07, 0x02}; +//1.3.6.1.5.5.7.2.1 PKIX policy qualifier cps +static const unsigned char cvOID_cps [] = { 0x2B, 0x06, 0x01, 0x05, 0x05, 0x07, 0x02, 0x01}; +//1.3.6.1.5.5.7.2.2 PKIX policy qualifier unotice +static const unsigned char cvOID_unotice [] = { 0x2B, 0x06, 0x01, 0x05, 0x05, 0x07, 0x02, 0x02}; +//1.3.6.1.5.5.7.3 PKIX keyPurpose +static const unsigned char cvOID_keyPurpose [] = { 0x2B, 0x06, 0x01, 0x05, 0x05, 0x07, 0x03}; +//1.3.6.1.5.5.7.3.1 PKIX key purpose serverAuth +static const unsigned char cvOID_serverAuth [] = { 0x2B, 0x06, 0x01, 0x05, 0x05, 0x07, 0x03, 0x01}; +//1.3.6.1.5.5.7.3.2 PKIX key purpose clientAuth +static const unsigned char cvOID_clientAuth [] = { 0x2B, 0x06, 0x01, 0x05, 0x05, 0x07, 0x03, 0x02}; +//1.3.6.1.5.5.7.3.3 PKIX key purpose codeSigning +static const unsigned char cvOID_codeSigning [] = { 0x2B, 0x06, 0x01, 0x05, 0x05, 0x07, 0x03, 0x03}; +//1.3.6.1.5.5.7.3.4 PKIX key purpose emailProtection +static const unsigned char cvOID_emailProtection [] = { 0x2B, 0x06, 0x01, 0x05, 0x05, 0x07, 0x03, 0x04}; +//1.3.6.1.5.5.7.3.5 PKIX key purpose ipsecEndSystem +static const unsigned char cvOID_ipsecEndSystem [] = { 0x2B, 0x06, 0x01, 0x05, 0x05, 0x07, 0x03, 0x05}; +//1.3.6.1.5.5.7.3.6 PKIX key purpose ipsecTunnel +static const unsigned char cvOID_ipsecTunnel [] = { 0x2B, 0x06, 0x01, 0x05, 0x05, 0x07, 0x03, 0x06}; +//1.3.6.1.5.5.7.3.7 PKIX key purpose ipsecUser +static const unsigned char cvOID_ipsecUser [] = { 0x2B, 0x06, 0x01, 0x05, 0x05, 0x07, 0x03, 0x07}; +//1.3.6.1.5.5.7.3.8 PKIX key purpose timeStamping +static const unsigned char cvOID_timeStamping [] = { 0x2B, 0x06, 0x01, 0x05, 0x05, 0x07, 0x03, 0x08}; +//ame +//1.3.6.1.5.5.7.3.9 PKIX key purpose OCSPSigning +static const unsigned char cvOID_OCSPSigning [] = { 0x2B, 0x06, 0x01, 0x05, 0x05, 0x07, 0x03, 0x09}; +//1.3.6.1.5.5.7.4 PKIX cmpInformationTypes +static const unsigned char cvOID_cmpInformationTypes [] = { 0x2B, 0x06, 0x01, 0x05, 0x05, 0x07, 0x04}; +//1.3.6.1.5.5.7.4.1 PKIX CMP information caProtEncCert +static const unsigned char cvOID_caProtEncCert [] = { 0x2B, 0x06, 0x01, 0x05, 0x05, 0x07, 0x04, 0x01}; +//1.3.6.1.5.5.7.4.2 PKIX CMP information signKeyPairTypes +static const unsigned char cvOID_signKeyPairTypes [] = { 0x2B, 0x06, 0x01, 0x05, 0x05, 0x07, 0x04, 0x02}; +//1.3.6.1.5.5.7.4.3 PKIX CMP information encKeyPairTypes +static const unsigned char cvOID_encKeyPairTypes [] = { 0x2B, 0x06, 0x01, 0x05, 0x05, 0x07, 0x04, 0x03}; +//1.3.6.1.5.5.7.4.4 PKIX CMP information preferredSymmAlg +static const unsigned char cvOID_preferredSymmAlg [] = { 0x2B, 0x06, 0x01, 0x05, 0x05, 0x07, 0x04, 0x04}; +//1.3.6.1.5.5.7.4.5 PKIX CMP information caKeyUpdateInfo +static const unsigned char cvOID_caKeyUpdateInfo [] = { 0x2B, 0x06, 0x01, 0x05, 0x05, 0x07, 0x04, 0x05}; +//1.3.6.1.5.5.7.4.6 PKIX CMP information currentCRL +static const unsigned char cvOID_currentCRL [] = { 0x2B, 0x06, 0x01, 0x05, 0x05, 0x07, 0x04, 0x06}; +//1.3.6.1.5.5.7.6.3 PKIX algorithm dh-sig-hmac-sha1 +static const unsigned char cvOID_dh_sig_hmac_sha1 [] = { 0x2B, 0x06, 0x01, 0x05, 0x05, 0x07, 0x06, 0x03}; +//1.3.6.1.5.5.7.6.4 PKIX algorithm dh-pop +static const unsigned char cvOID_dh_pop [] = { 0x2B, 0x06, 0x01, 0x05, 0x05, 0x07, 0x06, 0x04}; +//1.3.6.1.5.5.7.48.1 PKIX authority info access descriptor ocsp +static const unsigned char cvOID_ocsp [] = { 0x2B, 0x06, 0x01, 0x05, 0x05, 0x07, 0x30, 0x01}; +//1.3.6.1.5.5.7.48.2 PKIX authority info access descriptor caIssuers +static const unsigned char cvOID_caIssuers [] = { 0x2B, 0x06, 0x01, 0x05, 0x05, 0x07, 0x30, 0x02}; + +//ame +//1.3.6.1.5.5.7.48.3 PKIX subject info access descriptor timeStamping +static const unsigned char cvOID_info_timeStamping [] = { 0x2B, 0x06, 0x01, 0x05, 0x05, 0x07, 0x30, 0x03}; +//1.3.6.1.5.5.7.48.5 PKIX subject info access descriptor caRepository +static const unsigned char cvOID_caRepository [] = { 0x2B, 0x06, 0x01, 0x05, 0x05, 0x07, 0x30, 0x05}; + +//1.3.6.1.5.5.8.1.1 ISAKMP HMAC algorithm HMAC-MD5 +static const unsigned char cvOID_HMAC_MD5 [] = { 0x2B, 0x06, 0x01, 0x05, 0x05, 0x08, 0x01, 0x01}; +//1.3.6.1.5.5.8.1.2 ISAKMP HMAC algorithm HMAC-SHA +static const unsigned char cvOID_HMAC_SHA [] = { 0x2B, 0x06, 0x01, 0x05, 0x05, 0x08, 0x01, 0x02}; +//1.3.6.1.5.5.8.1.3 ISAKMP HMAC algorithm HMAC-Tiger +static const unsigned char cvOID_HMAC_Tiger [] = { 0x2B, 0x06, 0x01, 0x05, 0x05, 0x08, 0x01, 0x03}; +//1.3.6.1.5.5.8.2.2 ipsec_kp_ike_intermediate +static const unsigned char cvOID_iKEIntermediate[] = { 0x2B, 0x06, 0x01, 0x05, 0x05, 0x08, 0x02, 0x02}; + +//1.3.12.2.1011.7.1 DASS algorithm decEncryptionAlgorithm +static const unsigned char cvOID_decEncryptionAlgorithm [] = { 0x2B, 0x0C, 0x02, 0x87, 0x73, 0x07, 0x01}; +//1.3.12.2.1011.7.1.2 DASS encryption algorithm decDEA +static const unsigned char cvOID_decDEA [] = { 0x2B, 0x0C, 0x02, 0x87, 0x73, 0x07, 0x01, 0x02}; +//1.3.12.2.1011.7.2 DASS algorithm decHashAlgorithm +static const unsigned char cvOID_decHashAlgorithm [] = { 0x2B, 0x0C, 0x02, 0x87, 0x73, 0x07, 0x02}; +//1.3.12.2.1011.7.2.1 DASS hash algorithm decMD2 +static const unsigned char cvOID_decMD2 [] = { 0x2B, 0x0C, 0x02, 0x87, 0x73, 0x07, 0x02, 0x01}; +//1.3.12.2.1011.7.2.2 DASS hash algorithm decMD4 +static const unsigned char cvOID_decMD4 [] = { 0x2B, 0x0C, 0x02, 0x87, 0x73, 0x07, 0x02, 0x02}; +//1.3.12.2.1011.7.3 DASS algorithm decSignatureAlgorithm +static const unsigned char cvOID_decSignatureAlgorithm [] = { 0x2B, 0x0C, 0x02, 0x87, 0x73, 0x07, 0x03}; +//1.3.12.2.1011.7.3.1 DASS signature algorithm decMD2withRSA +static const unsigned char cvOID_decMD2withRSA [] = { 0x2B, 0x0C, 0x02, 0x87, 0x73, 0x07, 0x03, 0x01}; +//1.3.12.2.1011.7.3.2 DASS signature algorithm decMD4withRSA +static const unsigned char cvOID_decMD4withRSA [] = { 0x2B, 0x0C, 0x02, 0x87, 0x73, 0x07, 0x03, 0x02}; +//1.3.12.2.1011.7.3.3 DASS signature algorithm decDEAMAC +static const unsigned char cvOID_decDEAMAC [] = { 0x2B, 0x0C, 0x02, 0x87, 0x73, 0x07, 0x03, 0x03}; +//1.3.14.2.26.5 Unsure about this OID sha +static const unsigned char cvOID_sha [] = { 0x2B, 0x0E, 0x02, 0x1A, 0x05}; +//1.3.14.3.2.1.1 X.509. Unsure about this OID rsa +static const unsigned char cvOID_rsa [] = { 0x2B, 0x0E, 0x03, 0x02, 0x01, 0x01}; +//1.3.14.3.2.2 Oddball OIW OID md4WitRSA +static const unsigned char cvOID_md4WitRSA [] = { 0x2B, 0x0E, 0x03, 0x02, 0x02}; +//1.3.14.3.2.3 Oddball OIW OID md5WithRSA +static const unsigned char cvOID_md5WithRSA [] = { 0x2B, 0x0E, 0x03, 0x02, 0x03}; +//1.3.14.3.2.4 Oddball OIW OID md4WithRSAEncryption +static const unsigned char cvOID_md4WithRSAEncryption [] = { 0x2B, 0x0E, 0x03, 0x02, 0x04}; +//1.3.14.3.2.2.1 X.509. Deprecated sqmod-N +static const unsigned char cvOID_sqmod_N [] = { 0x2B, 0x0E, 0x03, 0x02, 0x02, 0x01}; +//1.3.14.3.2.3.1 X.509. Deprecated sqmod-NwithRSA +static const unsigned char cvOID_sqmod_NwithRSA [] = { 0x2B, 0x0E, 0x03, 0x02, 0x03, 0x01}; +//1.3.14.3.2.11 ISO 9796-2, also X9.31 Part 1 rsaSignature +static const unsigned char cvOID_rsaSignature [] = { 0x2B, 0x0E, 0x03, 0x02, 0x0B}; +////1.3.14.3.2.12 OIW?, supposedly from an incomplete version of SDN.701 (doesn't match final SDN.701) dsa +//static const unsigned char cvOID_dsa [] = { 0x2B, 0x0E, 0x03, 0x02, 0x0C}; +//1.3.14.3.2.14 Oddball OIW OID using 9796-2 padding rules mdc2WithRSASignature +static const unsigned char cvOID_mdc2WithRSASignature [] = { 0x2B, 0x0E, 0x03, 0x02, 0x0E}; +//1.3.14.3.2.15 Oddball OIW OID using 9796-2 padding rules shaWithRSASignature +static const unsigned char cvOID_shaWithRSASignature [] = { 0x2B, 0x0E, 0x03, 0x02, 0x0F}; +//1.3.14.3.2.16 Oddball OIW OID. Deprecated, use a plain DH OID instead dhWithCommonModulus +static const unsigned char cvOID_dhWithCommonModulus [] = { 0x2B, 0x0E, 0x03, 0x02, 0x10}; +//1.3.14.3.2.17 Oddball OIW OID. Mode is ECB desEDE +static const unsigned char cvOID_desEDE [] = { 0x2B, 0x0E, 0x03, 0x02, 0x11}; +////1.3.14.3.2.18 Oddball OIW OID sha +//static const unsigned char cvOID_sha [] = { 0x2B, 0x0E, 0x03, 0x02, 0x12}; +//1.3.14.3.2.19 Oddball OIW OID, DES-based hash, planned for X9.31 Part 2 mdc-2 +static const unsigned char cvOID_mdc_2 [] = { 0x2B, 0x0E, 0x03, 0x02, 0x13}; +//1.3.14.3.2.20 Oddball OIW OID. Deprecated, use a plain DSA OID instead dsaCommon +static const unsigned char cvOID_dsaCommon [] = { 0x2B, 0x0E, 0x03, 0x02, 0x14}; +//1.3.14.3.2.21 Oddball OIW OID. Deprecated, use a plain dsaWithSHA OID instead dsaCommonWithSHA +static const unsigned char cvOID_dsaCommonWithSHA [] = { 0x2B, 0x0E, 0x03, 0x02, 0x15}; +//1.3.14.3.2.22 Oddball OIW OID rsaKeyTransport +static const unsigned char cvOID_rsaKeyTransport [] = { 0x2B, 0x0E, 0x03, 0x02, 0x16}; +//1.3.14.3.2.23 Oddball OIW OID keyed-hash-seal +static const unsigned char cvOID_keyed_hash_seal [] = { 0x2B, 0x0E, 0x03, 0x02, 0x17}; +//1.3.14.3.2.24 Oddball OIW OID using 9796-2 padding rules md2WithRSASignature +static const unsigned char cvOID_md2WithRSASignature [] = { 0x2B, 0x0E, 0x03, 0x02, 0x18}; +//1.3.14.3.2.25 Oddball OIW OID using 9796-2 padding rules md5WithRSASignature +static const unsigned char cvOID_md5WithRSASignature [] = { 0x2B, 0x0E, 0x03, 0x02, 0x19}; +//1.3.14.3.2.26 OIW sha1 +static const unsigned char cvOID_sha1 [] = { 0x2B, 0x0E, 0x03, 0x02, 0x1A}; +//1.3.14.3.2.27 OIW. This OID may also be assigned as ripemd-160 dsaWithSHA1 +static const unsigned char cvOID_dsaWithSHA1 [] = { 0x2B, 0x0E, 0x03, 0x02, 0x1B}; +//1.3.14.3.2.28 OIW dsaWithCommonSHA1 +static const unsigned char cvOID_dsaWithCommonSHA1 [] = { 0x2B, 0x0E, 0x03, 0x02, 0x1C}; +//1.3.14.3.2.29 Oddball OIW OID sha-1WithRSAEncryption +static const unsigned char cvOID_sha_1WithRSAEncryption [] = { 0x2B, 0x0E, 0x03, 0x02, 0x1D}; +//1.3.14.3.3.1 Oddball OIW OID simple-strong-auth-mechanism +static const unsigned char cvOID_simple_strong_auth_mechanism [] = { 0x2B, 0x0E, 0x03, 0x03, 0x01}; +//1.3.14.7.2.1.1 Unsure about this OID ElGamal +static const unsigned char cvOID_ElGamal [] = { 0x2B, 0x0E, 0x07, 0x02, 0x01, 0x01}; +//1.3.14.7.2.3.1 Unsure about this OID md2WithRSA +static const unsigned char cvOID_md2WithRSA [] = { 0x2B, 0x0E, 0x07, 0x02, 0x03, 0x01}; +//1.3.14.7.2.3.2 Unsure about this OID md2WithElGamal +static const unsigned char cvOID_md2WithElGamal [] = { 0x2B, 0x0E, 0x07, 0x02, 0x03, 0x02}; +//1.3.36.1 Teletrust document document +static const unsigned char cvOID_document [] = { 0x2B, 0x24, 0x01}; +//1.3.36.1.1 Teletrust document finalVersion +static const unsigned char cvOID_finalVersion [] = { 0x2B, 0x24, 0x01, 0x01}; +//1.3.36.1.2 Teletrust document draft +static const unsigned char cvOID_draft [] = { 0x2B, 0x24, 0x01, 0x02}; +//1.3.36.2 Teletrust sio sio +static const unsigned char cvOID_sio [] = { 0x2B, 0x24, 0x02}; +//1.3.36.2.1 Teletrust sio sedu +static const unsigned char cvOID_sedu [] = { 0x2B, 0x24, 0x02, 0x01}; +//1.3.36.3 Teletrust algorithm algorithm +static const unsigned char cvOID_algorithm_Teletrust[] = { 0x2B, 0x24, 0x03}; +//1.3.36.3.1 Teletrust algorithm encryptionAlgorithm +static const unsigned char cvOID_encryptionAlgorithm_Teletrust [] = { 0x2B, 0x24, 0x03, 0x01}; +//1.3.36.3.1.1 Teletrust encryption algorithm des +static const unsigned char cvOID_des_Teletrust [] = { 0x2B, 0x24, 0x03, 0x01, 0x01}; +//1.3.36.3.1.1.1 Teletrust encryption algorithm desECB_pad +static const unsigned char cvOID_desECB_pad [] = { 0x2B, 0x24, 0x03, 0x01, 0x01, 0x01}; +//1.3.36.3.1.1.1.1 Teletrust encryption algorithm desECB_ISOpad +static const unsigned char cvOID_desECB_ISOpad [] = { 0x2B, 0x24, 0x03, 0x01, 0x01, 0x01, 0x01}; +//1.3.36.3.1.1.2.1 Teletrust encryption algorithm desCBC_pad +static const unsigned char cvOID_desCBC_pad [] = { 0x2B, 0x24, 0x03, 0x01, 0x01, 0x02, 0x01}; +//1.3.36.3.1.1.2.1.1 Teletrust encryption algorithm desCBC_ISOpad +static const unsigned char cvOID_desCBC_ISOpad [] = { 0x2B, 0x24, 0x03, 0x01, 0x01, 0x02, 0x01, 0x01}; +//1.3.36.3.1.3 Teletrust encryption algorithm des_3 +static const unsigned char cvOID_des_3 [] = { 0x2B, 0x24, 0x03, 0x01, 0x03}; +//1.3.36.3.1.3.1.1 Teletrust encryption algorithm. EDE triple DES des_3ECB_pad +static const unsigned char cvOID_des_3ECB_pad [] = { 0x2B, 0x24, 0x03, 0x01, 0x03, 0x01, 0x01}; +//1.3.36.3.1.3.1.1.1 Teletrust encryption algorithm. EDE triple DES des_3ECB_ISOpad +static const unsigned char cvOID_des_3ECB_ISOpad [] = { 0x2B, 0x24, 0x03, 0x01, 0x03, 0x01, 0x01, 0x01}; +//1.3.36.3.1.3.2.1 Teletrust encryption algorithm. EDE triple DES des_3CBC_pad +static const unsigned char cvOID_des_3CBC_pad [] = { 0x2B, 0x24, 0x03, 0x01, 0x03, 0x02, 0x01}; +//1.3.36.3.1.3.2.1.1 Teletrust encryption algorithm. EDE triple DES des_3CBC_ISOpad +static const unsigned char cvOID_des_3CBC_ISOpad [] = { 0x2B, 0x24, 0x03, 0x01, 0x03, 0x02, 0x01, 0x01}; +//1.3.36.3.1.2 Teletrust encryption algorithm idea +static const unsigned char cvOID_idea_Teletrust [] = { 0x2B, 0x24, 0x03, 0x01, 0x02}; +//1.3.36.3.1.2.1 Teletrust encryption algorithm ideaECB +static const unsigned char cvOID_ideaECB_Teletrust [] = { 0x2B, 0x24, 0x03, 0x01, 0x02, 0x01}; +//1.3.36.3.1.2.1.1 Teletrust encryption algorithm ideaECB_pad +static const unsigned char cvOID_ideaECB_pad [] = { 0x2B, 0x24, 0x03, 0x01, 0x02, 0x01, 0x01}; +//1.3.36.3.1.2.1.1.1 Teletrust encryption algorithm ideaECB_ISOpad +static const unsigned char cvOID_ideaECB_ISOpad [] = { 0x2B, 0x24, 0x03, 0x01, 0x02, 0x01, 0x01, 0x01}; +//1.3.36.3.1.2.2 Teletrust encryption algorithm ideaCBC +static const unsigned char cvOID_ideaCBC_Teletrust [] = { 0x2B, 0x24, 0x03, 0x01, 0x02, 0x02}; +//1.3.36.3.1.2.2.1 Teletrust encryption algorithm ideaCBC_pad +static const unsigned char cvOID_ideaCBC_pad [] = { 0x2B, 0x24, 0x03, 0x01, 0x02, 0x02, 0x01}; +//1.3.36.3.1.2.2.1.1 Teletrust encryption algorithm ideaCBC_ISOpad +static const unsigned char cvOID_ideaCBC_ISOpad [] = { 0x2B, 0x24, 0x03, 0x01, 0x02, 0x02, 0x01, 0x01}; +//1.3.36.3.1.2.3 Teletrust encryption algorithm ideaOFB +static const unsigned char cvOID_ideaOFB_Teletrust [] = { 0x2B, 0x24, 0x03, 0x01, 0x02, 0x03}; +//1.3.36.3.1.2.4 Teletrust encryption algorithm ideaCFB +static const unsigned char cvOID_ideaCFB_Teletrust [] = { 0x2B, 0x24, 0x03, 0x01, 0x02, 0x04}; +//1.3.36.3.1.4 Teletrust encryption algorithm rsaEncryption +static const unsigned char cvOID_rsaEncryption_Teletrust [] = { 0x2B, 0x24, 0x03, 0x01, 0x04}; +//1.3.36.3.1.4.512.17 Teletrust encryption algorithm rsaEncryptionWithlmod512expe17 +static const unsigned char cvOID_rsaEncryptionWithlmod512expe17 [] = { 0x2B, 0x24, 0x03, 0x01, 0x04, 0x84, 0x00, 0x11}; +//1.3.36.3.1.5 Teletrust encryption algorithm bsi-1 +static const unsigned char cvOID_bsi_1 [] = { 0x2B, 0x24, 0x03, 0x01, 0x05}; +//1.3.36.3.1.5.1 Teletrust encryption algorithm bsi_1ECB_pad +static const unsigned char cvOID_bsi_1ECB_pad [] = { 0x2B, 0x24, 0x03, 0x01, 0x05, 0x01}; +//1.3.36.3.1.5.2 Teletrust encryption algorithm bsi_1CBC_pad +static const unsigned char cvOID_bsi_1CBC_pad [] = { 0x2B, 0x24, 0x03, 0x01, 0x05, 0x02}; +//1.3.36.3.1.5.2.1 Teletrust encryption algorithm bsi_1CBC_PEMpad +static const unsigned char cvOID_bsi_1CBC_PEMpad [] = { 0x2B, 0x24, 0x03, 0x01, 0x05, 0x02, 0x01}; +//1.3.36.3.2 Teletrust algorithm hashAlgorithm +static const unsigned char cvOID_hashAlgorithm [] = { 0x2B, 0x24, 0x03, 0x02}; +//1.3.36.3.2.1 Teletrust hash algorithm ripemd160 +static const unsigned char cvOID_ripemd160_Teletrust [] = { 0x2B, 0x24, 0x03, 0x02, 0x01}; +//1.3.36.3.2.2 Teletrust hash algorithm ripemd128 +static const unsigned char cvOID_ripemd128_Teletrust [] = { 0x2B, 0x24, 0x03, 0x02, 0x02}; +//1.3.36.3.2.3 Teletrust hash algorithm ripemd256 +static const unsigned char cvOID_ripemd256 [] = { 0x2B, 0x24, 0x03, 0x02, 0x03}; +//1.3.36.3.2.4 Teletrust hash algorithm mdc2singleLength +static const unsigned char cvOID_mdc2singleLength [] = { 0x2B, 0x24, 0x03, 0x02, 0x04}; +//1.3.36.3.2.5 Teletrust hash algorithm mdc2doubleLength +static const unsigned char cvOID_mdc2doubleLength [] = { 0x2B, 0x24, 0x03, 0x02, 0x05}; +//1.3.36.3.3 Teletrust algorithm signatureAlgorithm +static const unsigned char cvOID_signatureAlgorithm [] = { 0x2B, 0x24, 0x03, 0x03}; +//1.3.36.3.3.1 Teletrust signature algorithm rsaSignature +static const unsigned char cvOID_rsaSignature_Teletrust [] = { 0x2B, 0x24, 0x03, 0x03, 0x01}; +//1.3.36.3.3.1.1 Teletrust signature algorithm rsaSignatureWithsha1 +static const unsigned char cvOID_rsaSignatureWithsha1 [] = { 0x2B, 0x24, 0x03, 0x03, 0x01, 0x01}; +//1.3.36.3.3.1.1.512.2 Teletrust signature algorithm rsaSignatureWithsha1_l512_l2 +static const unsigned char cvOID_rsaSignatureWithsha1_l512_l2 [] = { 0x2B, 0x24, 0x03, 0x03, 0x01, 0x01, 0x84, 0x00, 0x02}; +//1.3.36.3.3.1.1.640.2 Teletrust signature algorithm rsaSignatureWithsha1_l640_l2 +static const unsigned char cvOID_rsaSignatureWithsha1_l640_l2 [] = { 0x2B, 0x24, 0x03, 0x03, 0x01, 0x01, 0x85, 0x00, 0x02}; +//1.3.36.3.3.1.1.768.2 Teletrust signature algorithm rsaSignatureWithsha1_l768_l2 +static const unsigned char cvOID_rsaSignatureWithsha1_l768_l2 [] = { 0x2B, 0x24, 0x03, 0x03, 0x01, 0x01, 0x86, 0x00, 0x02}; +//1.3.36.3.3.1.1.892.2 Teletrust signature algorithm rsaSignatureWithsha1_l896_l2 +static const unsigned char cvOID_rsaSignatureWithsha1_l896_l2 [] = { 0x2B, 0x24, 0x03, 0x03, 0x01, 0x01, 0x87, 0x00, 0x02}; +//1.3.36.3.3.1.1.1024.2 Teletrust signature algorithm rsaSignatureWithsha1_l1024_l2 +static const unsigned char cvOID_rsaSignatureWithsha1_l1024_l2 [] = { 0x2B, 0x24, 0x03, 0x03, 0x01, 0x01, 0x88, 0x00, 0x02}; +//1.3.36.3.3.1.1.512.3 Teletrust signature algorithm rsaSignatureWithsha1_l512_l3 +static const unsigned char cvOID_rsaSignatureWithsha1_l512_l3 [] = { 0x2B, 0x24, 0x03, 0x03, 0x01, 0x01, 0x84, 0x00, 0x03}; +//1.3.36.3.3.1.1.640.3 Teletrust signature algorithm rsaSignatureWithsha1_l640_l3 +static const unsigned char cvOID_rsaSignatureWithsha1_l640_l3 [] = { 0x2B, 0x24, 0x03, 0x03, 0x01, 0x01, 0x85, 0x00, 0x03}; +//1.3.36.3.3.1.1.768.3 Teletrust signature algorithm rsaSignatureWithsha1_l768_l3 +static const unsigned char cvOID_rsaSignatureWithsha1_l768_l3 [] = { 0x2B, 0x24, 0x03, 0x03, 0x01, 0x01, 0x86, 0x00, 0x03}; +//1.3.36.3.3.1.1.896.3 Teletrust signature algorithm rsaSignatureWithsha1_l896_l3 +static const unsigned char cvOID_rsaSignatureWithsha1_l896_l3 [] = { 0x2B, 0x24, 0x03, 0x03, 0x01, 0x01, 0x87, 0x00, 0x03}; +//1.3.36.3.3.1.1.1024.3 Teletrust signature algorithm rsaSignatureWithsha1_l1024_l3 +static const unsigned char cvOID_rsaSignatureWithsha1_l1024_l3 [] = { 0x2B, 0x24, 0x03, 0x03, 0x01, 0x01, 0x88, 0x00, 0x03}; +//1.3.36.3.3.1.1.512.5 Teletrust signature algorithm rsaSignatureWithsha1_l512_l5 +static const unsigned char cvOID_rsaSignatureWithsha1_l512_l5 [] = { 0x2B, 0x24, 0x03, 0x03, 0x01, 0x01, 0x84, 0x00, 0x05}; +//1.3.36.3.3.1.1.640.5 Teletrust signature algorithm rsaSignatureWithsha1_l640_l5 +static const unsigned char cvOID_rsaSignatureWithsha1_l640_l5 [] = { 0x2B, 0x24, 0x03, 0x03, 0x01, 0x01, 0x85, 0x00, 0x05}; +//1.3.36.3.3.1.1.768.5 Teletrust signature algorithm rsaSignatureWithsha1_l768_l5 +static const unsigned char cvOID_rsaSignatureWithsha1_l768_l5 [] = { 0x2B, 0x24, 0x03, 0x03, 0x01, 0x01, 0x86, 0x00, 0x05}; +//1.3.36.3.3.1.1.896.5 Teletrust signature algorithm rsaSignatureWithsha1_l896_l5 +static const unsigned char cvOID_rsaSignatureWithsha1_l896_l5 [] = { 0x2B, 0x24, 0x03, 0x03, 0x01, 0x01, 0x87, 0x00, 0x05}; +//1.3.36.3.3.1.1.1024.5 Teletrust signature algorithm rsaSignatureWithsha1_l1024_l5 +static const unsigned char cvOID_rsaSignatureWithsha1_l1024_l5 [] = { 0x2B, 0x24, 0x03, 0x03, 0x01, 0x01, 0x88, 0x00, 0x05}; +//1.3.36.3.3.1.1.512.9 Teletrust signature algorithm rsaSignatureWithsha1_l512_l9 +static const unsigned char cvOID_rsaSignatureWithsha1_l512_l9 [] = { 0x2B, 0x24, 0x03, 0x03, 0x01, 0x01, 0x84, 0x00, 0x09}; +//1.3.36.3.3.1.1.640.9 Teletrust signature algorithm rsaSignatureWithsha1_l640_l9 +static const unsigned char cvOID_rsaSignatureWithsha1_l640_l9 [] = { 0x2B, 0x24, 0x03, 0x03, 0x01, 0x01, 0x85, 0x00, 0x09}; +//1.3.36.3.3.1.1.768.9 Teletrust signature algorithm rsaSignatureWithsha1_l768_l9 +static const unsigned char cvOID_rsaSignatureWithsha1_l768_l9 [] = { 0x2B, 0x24, 0x03, 0x03, 0x01, 0x01, 0x86, 0x00, 0x09}; +//1.3.36.3.3.1.1.896.9 Teletrust signature algorithm rsaSignatureWithsha1_l896_l9 +static const unsigned char cvOID_rsaSignatureWithsha1_l896_l9 [] = { 0x2B, 0x24, 0x03, 0x03, 0x01, 0x01, 0x87, 0x00, 0x09}; +//1.3.36.3.3.1.1.1024.9 Teletrust signature algorithm rsaSignatureWithsha1_l1024_l9 +static const unsigned char cvOID_rsaSignatureWithsha1_l1024_l9 [] = { 0x2B, 0x24, 0x03, 0x03, 0x01, 0x01, 0x88, 0x00, 0x09}; +//1.3.36.3.3.1.1.512.11 Teletrust signature algorithm rsaSignatureWithsha1_l512_l11 +static const unsigned char cvOID_rsaSignatureWithsha1_l512_l11 [] = { 0x2B, 0x24, 0x03, 0x03, 0x01, 0x01, 0x84, 0x00, 0x11}; +//1.3.36.3.3.1.1.640.11 Teletrust signature algorithm rsaSignatureWithsha1_l640_l11 +static const unsigned char cvOID_rsaSignatureWithsha1_l640_l11 [] = { 0x2B, 0x24, 0x03, 0x03, 0x01, 0x01, 0x85, 0x00, 0x11}; +//1.3.36.3.3.1.1.768.11 Teletrust signature algorithm rsaSignatureWithsha1_l768_l11 +static const unsigned char cvOID_rsaSignatureWithsha1_l768_l11 [] = { 0x2B, 0x24, 0x03, 0x03, 0x01, 0x01, 0x86, 0x00, 0x11}; +//1.3.36.3.3.1.1.896.11 Teletrust signature algorithm rsaSignatureWithsha1_l896_l11 +static const unsigned char cvOID_rsaSignatureWithsha1_l896_l11 [] = { 0x2B, 0x24, 0x03, 0x03, 0x01, 0x01, 0x87, 0x00, 0x11}; +//1.3.36.3.3.1.1.1024.11 Teletrust signature algorithm rsaSignatureWithsha1_l1024_l11 +static const unsigned char cvOID_rsaSignatureWithsha1_l1024_l11 [] = { 0x2B, 0x24, 0x03, 0x03, 0x01, 0x01, 0x88, 0x00, 0x11}; +//1.3.36.3.3.1.2 Teletrust signature algorithm rsaSignatureWithripemd160 +static const unsigned char cvOID_rsaSignatureWithripemd160 [] = { 0x2B, 0x24, 0x03, 0x03, 0x01, 0x02}; +//1.3.36.3.3.1.2.512.2 Teletrust signature algorithm rsaSignatureWithripemd160_l512_l2 +static const unsigned char cvOID_rsaSignatureWithripemd160_l512_l2 [] = { 0x2B, 0x24, 0x03, 0x03, 0x01, 0x02, 0x84, 0x00, 0x02}; +//1.3.36.3.3.1.2.640.2 Teletrust signature algorithm rsaSignatureWithripemd160_l640_l2 +static const unsigned char cvOID_rsaSignatureWithripemd160_l640_l2 [] = { 0x2B, 0x24, 0x03, 0x03, 0x01, 0x02, 0x85, 0x00, 0x02}; +//1.3.36.3.3.1.2.768.2 Teletrust signature algorithm rsaSignatureWithripemd160_l768_l2 +static const unsigned char cvOID_rsaSignatureWithripemd160_l768_l2 [] = { 0x2B, 0x24, 0x03, 0x03, 0x01, 0x02, 0x86, 0x00, 0x02}; +//1.3.36.3.3.1.2.892.2 Teletrust signature algorithm rsaSignatureWithripemd160_l896_l2 +static const unsigned char cvOID_rsaSignatureWithripemd160_l896_l2 [] = { 0x2B, 0x24, 0x03, 0x03, 0x01, 0x02, 0x87, 0x00, 0x02}; +//1.3.36.3.3.1.2.1024.2 Teletrust signature algorithm rsaSignatureWithripemd160_l1024_l2 +static const unsigned char cvOID_rsaSignatureWithripemd160_l1024_l2 [] = { 0x2B, 0x24, 0x03, 0x03, 0x01, 0x02, 0x88, 0x00, 0x02}; +//1.3.36.3.3.1.2.512.3 Teletrust signature algorithm rsaSignatureWithripemd160_l512_l3 +static const unsigned char cvOID_rsaSignatureWithripemd160_l512_l3 [] = { 0x2B, 0x24, 0x03, 0x03, 0x01, 0x02, 0x84, 0x00, 0x03}; +//1.3.36.3.3.1.2.640.3 Teletrust signature algorithm rsaSignatureWithripemd160_l640_l3 +static const unsigned char cvOID_rsaSignatureWithripemd160_l640_l3 [] = { 0x2B, 0x24, 0x03, 0x03, 0x01, 0x02, 0x85, 0x00, 0x03}; +//1.3.36.3.3.1.2.768.3 Teletrust signature algorithm rsaSignatureWithripemd160_l768_l3 +static const unsigned char cvOID_rsaSignatureWithripemd160_l768_l3 [] = { 0x2B, 0x24, 0x03, 0x03, 0x01, 0x02, 0x86, 0x00, 0x03}; +//1.3.36.3.3.1.2.896.3 Teletrust signature algorithm rsaSignatureWithripemd160_l896_l3 +static const unsigned char cvOID_rsaSignatureWithripemd160_l896_l3 [] = { 0x2B, 0x24, 0x03, 0x03, 0x01, 0x02, 0x87, 0x00, 0x03}; +//1.3.36.3.3.1.2.1024.3 Teletrust signature algorithm rsaSignatureWithripemd160_l1024_l3 +static const unsigned char cvOID_rsaSignatureWithripemd160_l1024_l3 [] = { 0x2B, 0x24, 0x03, 0x03, 0x01, 0x02, 0x88, 0x00, 0x03}; +//1.3.36.3.3.1.2.512.5 Teletrust signature algorithm rsaSignatureWithripemd160_l512_l5 +static const unsigned char cvOID_rsaSignatureWithripemd160_l512_l5 [] = { 0x2B, 0x24, 0x03, 0x03, 0x01, 0x02, 0x84, 0x00, 0x05}; +//1.3.36.3.3.1.2.640.5 Teletrust signature algorithm rsaSignatureWithripemd160_l640_l5 +static const unsigned char cvOID_rsaSignatureWithripemd160_l640_l5 [] = { 0x2B, 0x24, 0x03, 0x03, 0x01, 0x02, 0x85, 0x00, 0x05}; +//1.3.36.3.3.1.2.768.5 Teletrust signature algorithm rsaSignatureWithripemd160_l768_l5 +static const unsigned char cvOID_rsaSignatureWithripemd160_l768_l5 [] = { 0x2B, 0x24, 0x03, 0x03, 0x01, 0x02, 0x86, 0x00, 0x05}; +//1.3.36.3.3.1.2.896.5 Teletrust signature algorithm rsaSignatureWithripemd160_l896_l5 +static const unsigned char cvOID_rsaSignatureWithripemd160_l896_l5 [] = { 0x2B, 0x24, 0x03, 0x03, 0x01, 0x02, 0x87, 0x00, 0x05}; +//1.3.36.3.3.1.2.1024.5 Teletrust signature algorithm rsaSignatureWithripemd160_l1024_l5 +static const unsigned char cvOID_rsaSignatureWithripemd160_l1024_l5 [] = { 0x2B, 0x24, 0x03, 0x03, 0x01, 0x02, 0x88, 0x00, 0x05}; +//1.3.36.3.3.1.2.512.9 Teletrust signature algorithm rsaSignatureWithripemd160_l512_l9 +static const unsigned char cvOID_rsaSignatureWithripemd160_l512_l9 [] = { 0x2B, 0x24, 0x03, 0x03, 0x01, 0x02, 0x84, 0x00, 0x09}; +//1.3.36.3.3.1.2.640.9 Teletrust signature algorithm rsaSignatureWithripemd160_l640_l9 +static const unsigned char cvOID_rsaSignatureWithripemd160_l640_l9 [] = { 0x2B, 0x24, 0x03, 0x03, 0x01, 0x02, 0x85, 0x00, 0x09}; +//1.3.36.3.3.1.2.768.9 Teletrust signature algorithm rsaSignatureWithripemd160_l768_l9 +static const unsigned char cvOID_rsaSignatureWithripemd160_l768_l9 [] = { 0x2B, 0x24, 0x03, 0x03, 0x01, 0x02, 0x86, 0x00, 0x09}; +//1.3.36.3.3.1.2.896.9 Teletrust signature algorithm rsaSignatureWithripemd160_l896_l9 +static const unsigned char cvOID_rsaSignatureWithripemd160_l896_l9 [] = { 0x2B, 0x24, 0x03, 0x03, 0x01, 0x02, 0x87, 0x00, 0x09}; +//1.3.36.3.3.1.2.1024.9 Teletrust signature algorithm rsaSignatureWithripemd160_l1024_l9 +static const unsigned char cvOID_rsaSignatureWithripemd160_l1024_l9 [] = { 0x2B, 0x24, 0x03, 0x03, 0x01, 0x02, 0x88, 0x00, 0x09}; +//1.3.36.3.3.1.2.512.11 Teletrust signature algorithm rsaSignatureWithripemd160_l512_l11 +static const unsigned char cvOID_rsaSignatureWithripemd160_l512_l11 [] = { 0x2B, 0x24, 0x03, 0x03, 0x01, 0x02, 0x84, 0x00, 0x11}; +//1.3.36.3.3.1.2.640.11 Teletrust signature algorithm rsaSignatureWithripemd160_l640_l11 +static const unsigned char cvOID_rsaSignatureWithripemd160_l640_l11 [] = { 0x2B, 0x24, 0x03, 0x03, 0x01, 0x02, 0x85, 0x00, 0x11}; +//1.3.36.3.3.1.2.768.11 Teletrust signature algorithm rsaSignatureWithripemd160_l768_l11 +static const unsigned char cvOID_rsaSignatureWithripemd160_l768_l11 [] = { 0x2B, 0x24, 0x03, 0x03, 0x01, 0x02, 0x86, 0x00, 0x11}; +//1.3.36.3.3.1.2.896.11 Teletrust signature algorithm rsaSignatureWithripemd160_l896_l11 +static const unsigned char cvOID_rsaSignatureWithripemd160_l896_l11 [] = { 0x2B, 0x24, 0x03, 0x03, 0x01, 0x02, 0x87, 0x00, 0x11}; +//1.3.36.3.3.1.2.1024.11 Teletrust signature algorithm rsaSignatureWithripemd160_l1024_l11 +static const unsigned char cvOID_rsaSignatureWithripemd160_l1024_l11 [] = { 0x2B, 0x24, 0x03, 0x03, 0x01, 0x02, 0x88, 0x00, 0x11}; +//1.3.36.3.3.1.3 Teletrust signature algorithm rsaSignatureWithrimpemd128 +static const unsigned char cvOID_rsaSignatureWithrimpemd128 [] = { 0x2B, 0x24, 0x03, 0x03, 0x01, 0x03}; +//1.3.36.3.3.1.4 Teletrust signature algorithm rsaSignatureWithrimpemd256 +static const unsigned char cvOID_rsaSignatureWithrimpemd256 [] = { 0x2B, 0x24, 0x03, 0x03, 0x01, 0x04}; +//1.3.36.3.3.2 Teletrust signature algorithm ecsieSign +static const unsigned char cvOID_ecsieSign [] = { 0x2B, 0x24, 0x03, 0x03, 0x02}; +//1.3.36.3.3.2.1 Teletrust signature algorithm ecsieSignWithsha1 +static const unsigned char cvOID_ecsieSignWithsha1 [] = { 0x2B, 0x24, 0x03, 0x03, 0x02, 0x01}; +//1.3.36.3.3.2.2 Teletrust signature algorithm ecsieSignWithripemd160 +static const unsigned char cvOID_ecsieSignWithripemd160 [] = { 0x2B, 0x24, 0x03, 0x03, 0x02, 0x02}; +//1.3.36.3.3.2.3 Teletrust signature algorithm ecsieSignWithmd2 +static const unsigned char cvOID_ecsieSignWithmd2 [] = { 0x2B, 0x24, 0x03, 0x03, 0x02, 0x03}; +//1.3.36.3.3.2.4 Teletrust signature algorithm ecsieSignWithmd5 +static const unsigned char cvOID_ecsieSignWithmd5 [] = { 0x2B, 0x24, 0x03, 0x03, 0x02, 0x04}; +//1.3.36.3.4 Teletrust algorithm signatureScheme +static const unsigned char cvOID_signatureScheme [] = { 0x2B, 0x24, 0x03, 0x04}; +//1.3.36.3.4.1 Teletrust signature scheme sigS_ISO9796-1 +static const unsigned char cvOID_sigS_ISO9796_1 [] = { 0x2B, 0x24, 0x03, 0x04, 0x01}; +//1.3.36.3.4.2 Teletrust signature scheme sigS_ISO9796-2 +static const unsigned char cvOID_sigS_ISO9796_2 [] = { 0x2B, 0x24, 0x03, 0x04, 0x02}; +//1.3.36.3.4.2.1 Teletrust signature scheme. Unsure what this is supposed to be sigS_ISO9796-2Withred +static const unsigned char cvOID_sigS_ISO9796_2Withred [] = { 0x2B, 0x24, 0x03, 0x04, 0x02, 0x01}; +//1.3.36.3.4.2.2 Teletrust signature scheme. Unsure what this is supposed to be sigS_ISO9796-2Withrsa +static const unsigned char cvOID_sigS_ISO9796_2Withrsa [] = { 0x2B, 0x24, 0x03, 0x04, 0x02, 0x02}; +//1.3.36.3.4.2.3 Teletrust signature scheme. 9796-2 with random number in padding field sigS_ISO9796-2Withrnd +static const unsigned char cvOID_sigS_ISO9796_2Withrnd [] = { 0x2B, 0x24, 0x03, 0x04, 0x02, 0x03}; +//1.3.36.4 Teletrust attribute attribute +static const unsigned char cvOID_attribute_Teletrust [] = { 0x2B, 0x24, 0x04}; +//1.3.36.5 Teletrust policy policy +static const unsigned char cvOID_policy [] = { 0x2B, 0x24, 0x05}; +//1.3.36.6 Teletrust API api +static const unsigned char cvOID_api [] = { 0x2B, 0x24, 0x06}; +//1.3.36.6.1 Teletrust API manufacturer-specific_api +static const unsigned char cvOID_manufacturer_specific_api [] = { 0x2B, 0x24, 0x06, 0x01}; +//1.3.36.6.1.1 Teletrust API utimaco-api +static const unsigned char cvOID_utimaco_api [] = { 0x2B, 0x24, 0x06, 0x01, 0x01}; +//1.3.36.6.2 Teletrust API functionality-specific_api +static const unsigned char cvOID_functionality_specific_api [] = { 0x2B, 0x24, 0x06, 0x02}; +//1.3.36.7 Teletrust key management keymgmnt +static const unsigned char cvOID_keymgmnt [] = { 0x2B, 0x24, 0x07}; +//1.3.36.7.1 Teletrust key management keyagree +static const unsigned char cvOID_keyagree [] = { 0x2B, 0x24, 0x07, 0x01}; +//1.3.36.7.1.1 Teletrust key management bsiPKE +static const unsigned char cvOID_bsiPKE [] = { 0x2B, 0x24, 0x07, 0x01, 0x01}; +//1.3.36.7.2 Teletrust key management keytrans +static const unsigned char cvOID_keytrans [] = { 0x2B, 0x24, 0x07, 0x02}; +//1.3.36.7.2.1 Teletrust key management. 9796-2 with key stored in hash field encISO9796-2Withrsa +static const unsigned char cvOID_encISO9796_2Withrsa [] = { 0x2B, 0x24, 0x07, 0x02, 0x01}; +//1.3.36.8.1.1 Teletrust policy sigiSigConform +static const unsigned char cvOID_sigiSigConform [] = { 0x2B, 0x24, 0x08, 0x01, 0x01}; +//1.3.36.8.2.1 Teletrust extended key usage directoryService +static const unsigned char cvOID_directoryService [] = { 0x2B, 0x24, 0x08, 0x02, 0x01}; +//1.3.36.8.3.1 Teletrust attribute dateOfCertGen +static const unsigned char cvOID_dateOfCertGen [] = { 0x2B, 0x24, 0x08, 0x03, 0x01}; +//1.3.36.8.3.2 Teletrust attribute procuration +static const unsigned char cvOID_procuration [] = { 0x2B, 0x24, 0x08, 0x03, 0x02}; +//1.3.36.8.3.3 Teletrust attribute admission +static const unsigned char cvOID_admission [] = { 0x2B, 0x24, 0x08, 0x03, 0x03}; +//1.3.36.8.3.4 Teletrust attribute monetaryLimit +static const unsigned char cvOID_monetaryLimit [] = { 0x2B, 0x24, 0x08, 0x03, 0x04}; +//1.3.36.8.3.5 Teletrust attribute declarationOfMajority +static const unsigned char cvOID_declarationOfMajority [] = { 0x2B, 0x24, 0x08, 0x03, 0x05}; +//1.3.36.8.3.6 Teletrust attribute integratedCircuitCardSerialNumber +static const unsigned char cvOID_integratedCircuitCardSerialNumber [] = { 0x2B, 0x24, 0x08, 0x03, 0x06}; +//1.3.36.8.3.7 Teletrust attribute pKReference +static const unsigned char cvOID_pKReference [] = { 0x2B, 0x24, 0x08, 0x03, 0x07}; +//1.3.36.8.3.8 Teletrust attribute restriction +static const unsigned char cvOID_restriction_1 [] = { 0x2B, 0x24, 0x08, 0x03, 0x08}; +//1.3.36.8.3.9 Teletrust attribute retrieveIfAllowed +static const unsigned char cvOID_retrieveIfAllowed [] = { 0x2B, 0x24, 0x08, 0x03, 0x09}; +//1.3.36.8.3.10 Teletrust attribute requestedCertificate +static const unsigned char cvOID_requestedCertificate [] = { 0x2B, 0x24, 0x08, 0x03, 0x0A}; +//1.3.36.8.3.11 Teletrust attribute namingAuthorities +static const unsigned char cvOID_namingAuthorities [] = { 0x2B, 0x24, 0x08, 0x03, 0x0B}; +//1.3.36.8.3.12 Teletrust attribute certInDirSince +static const unsigned char cvOID_certInDirSince [] = { 0x2B, 0x24, 0x08, 0x03, 0x0C}; +//1.3.36.8.3.13 Teletrust attribute certHash +static const unsigned char cvOID_certHash [] = { 0x2B, 0x24, 0x08, 0x03, 0x0D}; +//1.3.36.8.4.1 Teletrust OtherName attribute personalData +static const unsigned char cvOID_personalData [] = { 0x2B, 0x24, 0x08, 0x04, 0x01}; +//1.3.36.8.4.8 Teletrust attribute certificate attribute restriction +static const unsigned char cvOID_restriction_2 [] = { 0x2B, 0x24, 0x08, 0x04, 0x08}; +//1.3.36.8.5.1.1.1 Teletrust signature algorithm rsaIndicateSHA1 +static const unsigned char cvOID_rsaIndicateSHA1 [] = { 0x2B, 0x24, 0x08, 0x05, 0x01, 0x01, 0x01}; +//1.3.36.8.5.1.1.2 Teletrust signature algorithm rsaIndicateRIPEMD160 +static const unsigned char cvOID_rsaIndicateRIPEMD160 [] = { 0x2B, 0x24, 0x08, 0x05, 0x01, 0x01, 0x02}; +//1.3.36.8.5.1.1.3 Teletrust signature algorithm rsaWithSHA1 +static const unsigned char cvOID_rsaWithSHA1 [] = { 0x2B, 0x24, 0x08, 0x05, 0x01, 0x01, 0x03}; +//1.3.36.8.5.1.1.4 Teletrust signature algorithm rsaWithRIPEMD160 +static const unsigned char cvOID_rsaWithRIPEMD160 [] = { 0x2B, 0x24, 0x08, 0x05, 0x01, 0x01, 0x04}; +//1.3.36.8.5.1.2.1 Teletrust signature algorithm dsaExtended +static const unsigned char cvOID_dsaExtended [] = { 0x2B, 0x24, 0x08, 0x05, 0x01, 0x02, 0x01}; +//1.3.36.8.5.1.2.2 Teletrust signature algorithm dsaWithRIPEMD160 +static const unsigned char cvOID_dsaWithRIPEMD160 [] = { 0x2B, 0x24, 0x08, 0x05, 0x01, 0x02, 0x02}; +//1.3.36.8.6.1 Teletrust signature attributes cert +static const unsigned char cvOID_cert [] = { 0x2B, 0x24, 0x08, 0x06, 0x01}; +//1.3.36.8.6.2 Teletrust signature attributes certRef +static const unsigned char cvOID_certRef [] = { 0x2B, 0x24, 0x08, 0x06, 0x02}; +//1.3.36.8.6.3 Teletrust signature attributes attrCert +static const unsigned char cvOID_attrCert [] = { 0x2B, 0x24, 0x08, 0x06, 0x03}; +//1.3.36.8.6.4 Teletrust signature attributes attrRef +static const unsigned char cvOID_attrRef [] = { 0x2B, 0x24, 0x08, 0x06, 0x04}; +//1.3.36.8.6.5 Teletrust signature attributes fileName +static const unsigned char cvOID_fileName [] = { 0x2B, 0x24, 0x08, 0x06, 0x05}; +//1.3.36.8.6.6 Teletrust signature attributes storageTime +static const unsigned char cvOID_storageTime [] = { 0x2B, 0x24, 0x08, 0x06, 0x06}; +//1.3.36.8.6.7 Teletrust signature attributes fileSize +static const unsigned char cvOID_fileSize [] = { 0x2B, 0x24, 0x08, 0x06, 0x07}; +//1.3.36.8.6.8 Teletrust signature attributes location +static const unsigned char cvOID_location [] = { 0x2B, 0x24, 0x08, 0x06, 0x08}; +//1.3.36.8.6.9 Teletrust signature attributes sigNumber +static const unsigned char cvOID_sigNumber [] = { 0x2B, 0x24, 0x08, 0x06, 0x09}; +//1.3.36.8.6.10 Teletrust signature attributes autoGen +static const unsigned char cvOID_autoGen [] = { 0x2B, 0x24, 0x08, 0x06, 0x0A}; +//1.3.36.8.7.1.1 Teletrust presentation types ptAdobeILL +static const unsigned char cvOID_ptAdobeILL [] = { 0x2B, 0x24, 0x08, 0x07, 0x01, 0x01}; +//1.3.36.8.7.1.2 Teletrust presentation types ptAmiPro +static const unsigned char cvOID_ptAmiPro [] = { 0x2B, 0x24, 0x08, 0x07, 0x01, 0x02}; +//1.3.36.8.7.1.3 Teletrust presentation types ptAutoCAD +static const unsigned char cvOID_ptAutoCAD [] = { 0x2B, 0x24, 0x08, 0x07, 0x01, 0x03}; +//1.3.36.8.7.1.4 Teletrust presentation types ptBinary +static const unsigned char cvOID_ptBinary [] = { 0x2B, 0x24, 0x08, 0x07, 0x01, 0x04}; +//1.3.36.8.7.1.5 Teletrust presentation types ptBMP +static const unsigned char cvOID_ptBMP [] = { 0x2B, 0x24, 0x08, 0x07, 0x01, 0x05}; +//1.3.36.8.7.1.6 Teletrust presentation types ptCGM +static const unsigned char cvOID_ptCGM [] = { 0x2B, 0x24, 0x08, 0x07, 0x01, 0x06}; +//1.3.36.8.7.1.7 Teletrust presentation types ptCorelCRT +static const unsigned char cvOID_ptCorelCRT [] = { 0x2B, 0x24, 0x08, 0x07, 0x01, 0x07}; +//1.3.36.8.7.1.8 Teletrust presentation types ptCorelDRW +static const unsigned char cvOID_ptCorelDRW [] = { 0x2B, 0x24, 0x08, 0x07, 0x01, 0x08}; +//1.3.36.8.7.1.9 Teletrust presentation types ptCorelEXC +static const unsigned char cvOID_ptCorelEXC [] = { 0x2B, 0x24, 0x08, 0x07, 0x01, 0x09}; +//1.3.36.8.7.1.10 Teletrust presentation types ptCorelPHT +static const unsigned char cvOID_ptCorelPHT [] = { 0x2B, 0x24, 0x08, 0x07, 0x01, 0x0A}; +//1.3.36.8.7.1.11 Teletrust presentation types ptDraw +static const unsigned char cvOID_ptDraw [] = { 0x2B, 0x24, 0x08, 0x07, 0x01, 0x0B}; +//1.3.36.8.7.1.12 Teletrust presentation types ptDVI +static const unsigned char cvOID_ptDVI [] = { 0x2B, 0x24, 0x08, 0x07, 0x01, 0x0C}; +//1.3.36.8.7.1.13 Teletrust presentation types ptEPS +static const unsigned char cvOID_ptEPS [] = { 0x2B, 0x24, 0x08, 0x07, 0x01, 0x0D}; +//1.3.36.8.7.1.14 Teletrust presentation types ptExcel +static const unsigned char cvOID_ptExcel [] = { 0x2B, 0x24, 0x08, 0x07, 0x01, 0x0E}; +//1.3.36.8.7.1.15 Teletrust presentation types ptGEM +static const unsigned char cvOID_ptGEM [] = { 0x2B, 0x24, 0x08, 0x07, 0x01, 0x0F}; +//1.3.36.8.7.1.16 Teletrust presentation types ptGIF +static const unsigned char cvOID_ptGIF [] = { 0x2B, 0x24, 0x08, 0x07, 0x01, 0x10}; +//1.3.36.8.7.1.17 Teletrust presentation types ptHPGL +static const unsigned char cvOID_ptHPGL [] = { 0x2B, 0x24, 0x08, 0x07, 0x01, 0x11}; +//1.3.36.8.7.1.18 Teletrust presentation types ptJPEG +static const unsigned char cvOID_ptJPEG [] = { 0x2B, 0x24, 0x08, 0x07, 0x01, 0x12}; +//1.3.36.8.7.1.19 Teletrust presentation types ptKodak +static const unsigned char cvOID_ptKodak [] = { 0x2B, 0x24, 0x08, 0x07, 0x01, 0x13}; +//1.3.36.8.7.1.20 Teletrust presentation types ptLaTeX +static const unsigned char cvOID_ptLaTeX [] = { 0x2B, 0x24, 0x08, 0x07, 0x01, 0x14}; +//1.3.36.8.7.1.21 Teletrust presentation types ptLotus +static const unsigned char cvOID_ptLotus [] = { 0x2B, 0x24, 0x08, 0x07, 0x01, 0x15}; +//1.3.36.8.7.1.22 Teletrust presentation types ptLotusPIC +static const unsigned char cvOID_ptLotusPIC [] = { 0x2B, 0x24, 0x08, 0x07, 0x01, 0x16}; +//1.3.36.8.7.1.23 Teletrust presentation types ptMacPICT +static const unsigned char cvOID_ptMacPICT [] = { 0x2B, 0x24, 0x08, 0x07, 0x01, 0x17}; +//1.3.36.8.7.1.24 Teletrust presentation types ptMacWord +static const unsigned char cvOID_ptMacWord [] = { 0x2B, 0x24, 0x08, 0x07, 0x01, 0x18}; +//1.3.36.8.7.1.25 Teletrust presentation types ptMSWfD +static const unsigned char cvOID_ptMSWfD [] = { 0x2B, 0x24, 0x08, 0x07, 0x01, 0x19}; +//1.3.36.8.7.1.26 Teletrust presentation types ptMSWord +static const unsigned char cvOID_ptMSWord [] = { 0x2B, 0x24, 0x08, 0x07, 0x01, 0x1A}; +//1.3.36.8.7.1.27 Teletrust presentation types ptMSWord2 +static const unsigned char cvOID_ptMSWord2 [] = { 0x2B, 0x24, 0x08, 0x07, 0x01, 0x1B}; +//1.3.36.8.7.1.28 Teletrust presentation types ptMSWord6 +static const unsigned char cvOID_ptMSWord6 [] = { 0x2B, 0x24, 0x08, 0x07, 0x01, 0x1C}; +//1.3.36.8.7.1.29 Teletrust presentation types ptMSWord8 +static const unsigned char cvOID_ptMSWord8 [] = { 0x2B, 0x24, 0x08, 0x07, 0x01, 0x1D}; +//1.3.36.8.7.1.30 Teletrust presentation types ptPDF +static const unsigned char cvOID_ptPDF [] = { 0x2B, 0x24, 0x08, 0x07, 0x01, 0x1E}; +//1.3.36.8.7.1.31 Teletrust presentation types ptPIF +static const unsigned char cvOID_ptPIF [] = { 0x2B, 0x24, 0x08, 0x07, 0x01, 0x1F}; +//1.3.36.8.7.1.32 Teletrust presentation types ptPostscript +static const unsigned char cvOID_ptPostscript [] = { 0x2B, 0x24, 0x08, 0x07, 0x01, 0x20}; +//1.3.36.8.7.1.33 Teletrust presentation types ptRTF +static const unsigned char cvOID_ptRTF [] = { 0x2B, 0x24, 0x08, 0x07, 0x01, 0x21}; +//1.3.36.8.7.1.34 Teletrust presentation types ptSCITEX +static const unsigned char cvOID_ptSCITEX [] = { 0x2B, 0x24, 0x08, 0x07, 0x01, 0x22}; +//1.3.36.8.7.1.35 Teletrust presentation types ptTAR +static const unsigned char cvOID_ptTAR [] = { 0x2B, 0x24, 0x08, 0x07, 0x01, 0x23}; +//1.3.36.8.7.1.36 Teletrust presentation types ptTarga +static const unsigned char cvOID_ptTarga [] = { 0x2B, 0x24, 0x08, 0x07, 0x01, 0x24}; +//1.3.36.8.7.1.37 Teletrust presentation types ptTeX +static const unsigned char cvOID_ptTeX [] = { 0x2B, 0x24, 0x08, 0x07, 0x01, 0x25}; +//1.3.36.8.7.1.38 Teletrust presentation types ptText +static const unsigned char cvOID_ptText [] = { 0x2B, 0x24, 0x08, 0x07, 0x01, 0x26}; +//1.3.36.8.7.1.39 Teletrust presentation types ptTIFF +static const unsigned char cvOID_ptTIFF [] = { 0x2B, 0x24, 0x08, 0x07, 0x01, 0x27}; +//1.3.36.8.7.1.40 Teletrust presentation types ptTIFF-FC +static const unsigned char cvOID_ptTIFF_FC [] = { 0x2B, 0x24, 0x08, 0x07, 0x01, 0x28}; +//1.3.36.8.7.1.41 Teletrust presentation types ptUID +static const unsigned char cvOID_ptUID [] = { 0x2B, 0x24, 0x08, 0x07, 0x01, 0x29}; +//1.3.36.8.7.1.42 Teletrust presentation types ptUUEncode +static const unsigned char cvOID_ptUUEncode [] = { 0x2B, 0x24, 0x08, 0x07, 0x01, 0x2A}; +//1.3.36.8.7.1.43 Teletrust presentation types ptWMF +static const unsigned char cvOID_ptWMF [] = { 0x2B, 0x24, 0x08, 0x07, 0x01, 0x2B}; +//1.3.36.8.7.1.44 Teletrust presentation types ptWordPerfect +static const unsigned char cvOID_ptWordPerfect [] = { 0x2B, 0x24, 0x08, 0x07, 0x01, 0x2C}; +//1.3.36.8.7.1.45 Teletrust presentation types ptWPGrph +static const unsigned char cvOID_ptWPGrph [] = { 0x2B, 0x24, 0x08, 0x07, 0x01, 0x2D}; +//1.3.101.1.4 Thawte thawte-ce +static const unsigned char cvOID_thawte_ce [] = { 0x2B, 0x65, 0x01, 0x04}; +//1.3.101.1.4.1 Thawte certificate extension strongExtranet +static const unsigned char cvOID_strongExtranet [] = { 0x2B, 0x65, 0x01, 0x04, 0x01}; +//2.5.4.0 X.520 id-at (2 5 4) objectClass +static const unsigned char cvOID_objectClass [] = { 0x55, 0x04, 0x00}; +//2.5.4.1 X.520 id-at (2 5 4) aliasedEntryName +static const unsigned char cvOID_aliasedEntryName [] = { 0x55, 0x04, 0x01}; +//2.5.4.2 X.520 id-at (2 5 4) knowledgeInformation +static const unsigned char cvOID_knowledgeInformation [] = { 0x55, 0x04, 0x02}; +//2.5.4.3 X.520 id-at (2 5 4) commonName +static const unsigned char cvOID_commonName [] = { 0x55, 0x04, 0x03}; +//2.5.4.4 X.520 id-at (2 5 4) surname +static const unsigned char cvOID_surname [] = { 0x55, 0x04, 0x04}; +//2.5.4.5 X.520 id-at (2 5 4) serialNumber +static const unsigned char cvOID_serialNumber [] = { 0x55, 0x04, 0x05}; +//2.5.4.6 X.520 id-at (2 5 4) countryName +static const unsigned char cvOID_countryName [] = { 0x55, 0x04, 0x06}; +//2.5.4.7 X.520 id-at (2 5 4) localityName +static const unsigned char cvOID_localityName [] = { 0x55, 0x04, 0x07}; +//2.5.4.7.1 X.520 id-at (2 5 4) collectiveLocalityName +static const unsigned char cvOID_collectiveLocalityName [] = { 0x55, 0x04, 0x07, 0x01}; +//2.5.4.8 X.520 id-at (2 5 4) stateOrProvinceName +static const unsigned char cvOID_stateOrProvinceName [] = { 0x55, 0x04, 0x08}; +//2.5.4.8.1 X.520 id-at (2 5 4) collectiveStateOrProvinceName +static const unsigned char cvOID_collectiveStateOrProvinceName [] = { 0x55, 0x04, 0x08, 0x01}; +//2.5.4.9 X.520 id-at (2 5 4) streetAddress +static const unsigned char cvOID_streetAddress [] = { 0x55, 0x04, 0x09}; +//2.5.4.9.1 X.520 id-at (2 5 4) collectiveStreetAddress +static const unsigned char cvOID_collectiveStreetAddress [] = { 0x55, 0x04, 0x09, 0x01}; +//2.5.4.10 X.520 id-at (2 5 4) organizationName +static const unsigned char cvOID_organizationName [] = { 0x55, 0x04, 0x0A}; +//2.5.4.10.1 X.520 id-at (2 5 4) collectiveOrganizationName +static const unsigned char cvOID_collectiveOrganizationName [] = { 0x55, 0x04, 0x0A, 0x01}; +//2.5.4.11 X.520 id-at (2 5 4) organizationalUnitName +static const unsigned char cvOID_organizationalUnitName [] = { 0x55, 0x04, 0x0B}; +//2.5.4.11.1 X.520 id-at (2 5 4) collectiveOrganizationalUnitName +static const unsigned char cvOID_collectiveOrganizationalUnitName [] = { 0x55, 0x04, 0x0B, 0x01}; +//2.5.4.12 X.520 id-at (2 5 4) title +static const unsigned char cvOID_title [] = { 0x55, 0x04, 0x0C}; +//2.5.4.13 X.520 id-at (2 5 4) description +static const unsigned char cvOID_description [] = { 0x55, 0x04, 0x0D}; +//2.5.4.14 X.520 id-at (2 5 4) searchGuide +static const unsigned char cvOID_searchGuide [] = { 0x55, 0x04, 0x0E}; +//2.5.4.15 X.520 id-at (2 5 4) businessCategory +static const unsigned char cvOID_businessCategory [] = { 0x55, 0x04, 0x0F}; +//2.5.4.16 X.520 id-at (2 5 4) postalAddress +static const unsigned char cvOID_postalAddress [] = { 0x55, 0x04, 0x10}; +//2.5.4.16.1 X.520 id-at (2 5 4) collectivePostalAddress +static const unsigned char cvOID_collectivePostalAddress [] = { 0x55, 0x04, 0x10, 0x01}; +//2.5.4.17 X.520 id-at (2 5 4) postalCode +static const unsigned char cvOID_postalCode [] = { 0x55, 0x04, 0x11}; +//2.5.4.17.1 X.520 id-at (2 5 4) collectivePostalCode +static const unsigned char cvOID_collectivePostalCode [] = { 0x55, 0x04, 0x11, 0x01}; +//2.5.4.18 X.520 id-at (2 5 4) postOfficeBox +static const unsigned char cvOID_postOfficeBox [] = { 0x55, 0x04, 0x12}; +//2.5.4.18.1 X.520 id-at (2 5 4) collectivePostOfficeBox +static const unsigned char cvOID_collectivePostOfficeBox [] = { 0x55, 0x04, 0x12, 0x01}; +//2.5.4.19 X.520 id-at (2 5 4) physicalDeliveryOfficeName +static const unsigned char cvOID_physicalDeliveryOfficeName [] = { 0x55, 0x04, 0x13}; +//2.5.4.19.1 X.520 id-at (2 5 4) collectivePhysicalDeliveryOfficeName +static const unsigned char cvOID_collectivePhysicalDeliveryOfficeName [] = { 0x55, 0x04, 0x13, 0x01}; +//2.5.4.20 X.520 id-at (2 5 4) telephoneNumber +static const unsigned char cvOID_telephoneNumber [] = { 0x55, 0x04, 0x14}; +//2.5.4.20.1 X.520 id-at (2 5 4) collectiveTelephoneNumber +static const unsigned char cvOID_collectiveTelephoneNumber [] = { 0x55, 0x04, 0x14, 0x01}; +//2.5.4.21 X.520 id-at (2 5 4) telexNumber +static const unsigned char cvOID_telexNumber [] = { 0x55, 0x04, 0x15}; +//2.5.4.21.1 X.520 id-at (2 5 4) collectiveTelexNumber +static const unsigned char cvOID_collectiveTelexNumber [] = { 0x55, 0x04, 0x15, 0x01}; +//2.5.4.22 X.520 id-at (2 5 4) teletexTerminalIdentifier +static const unsigned char cvOID_teletexTerminalIdentifier [] = { 0x55, 0x04, 0x16}; +//2.5.4.22.1 X.520 id-at (2 5 4) collectiveTeletexTerminalIdentifier +static const unsigned char cvOID_collectiveTeletexTerminalIdentifier [] = { 0x55, 0x04, 0x16, 0x01}; +//2.5.4.23 X.520 id-at (2 5 4) facsimileTelephoneNumber +static const unsigned char cvOID_facsimileTelephoneNumber [] = { 0x55, 0x04, 0x17}; +//2.5.4.23.1 X.520 id-at (2 5 4) collectiveFacsimileTelephoneNumber +static const unsigned char cvOID_collectiveFacsimileTelephoneNumber [] = { 0x55, 0x04, 0x17, 0x01}; +//2.5.4.24 X.520 id-at (2 5 4) x121Address +static const unsigned char cvOID_x121Address [] = { 0x55, 0x04, 0x18}; +//2.5.4.25 X.520 id-at (2 5 4) internationalISDNNumber +static const unsigned char cvOID_internationalISDNNumber [] = { 0x55, 0x04, 0x19}; +//2.5.4.25.1 X.520 id-at (2 5 4) collectiveInternationalISDNNumber +static const unsigned char cvOID_collectiveInternationalISDNNumber [] = { 0x55, 0x04, 0x19, 0x01}; +//2.5.4.26 X.520 id-at (2 5 4) registeredAddress +static const unsigned char cvOID_registeredAddress [] = { 0x55, 0x04, 0x1A}; +//2.5.4.27 X.520 id-at (2 5 4) destinationIndicator +static const unsigned char cvOID_destinationIndicator [] = { 0x55, 0x04, 0x1B}; +//2.5.4.28 X.520 id-at (2 5 4) preferredDeliveryMehtod +static const unsigned char cvOID_preferredDeliveryMehtod [] = { 0x55, 0x04, 0x1C}; +//2.5.4.29 X.520 id-at (2 5 4) presentationAddress +static const unsigned char cvOID_presentationAddress [] = { 0x55, 0x04, 0x1D}; +//2.5.4.30 X.520 id-at (2 5 4) supportedApplicationContext +static const unsigned char cvOID_supportedApplicationContext [] = { 0x55, 0x04, 0x1E}; +//2.5.4.31 X.520 id-at (2 5 4) member +static const unsigned char cvOID_member [] = { 0x55, 0x04, 0x1F}; +//2.5.4.32 X.520 id-at (2 5 4) owner +static const unsigned char cvOID_owner [] = { 0x55, 0x04, 0x20}; +//2.5.4.33 X.520 id-at (2 5 4) roleOccupant +static const unsigned char cvOID_roleOccupant [] = { 0x55, 0x04, 0x21}; +//2.5.4.34 X.520 id-at (2 5 4) seeAlso +static const unsigned char cvOID_seeAlso [] = { 0x55, 0x04, 0x22}; +//2.5.4.35 X.520 id-at (2 5 4) userPassword +static const unsigned char cvOID_userPassword [] = { 0x55, 0x04, 0x23}; +//2.5.4.36 X.520 id-at (2 5 4) userCertificate +static const unsigned char cvOID_userCertificate [] = { 0x55, 0x04, 0x24}; +//2.5.4.37 X.520 id-at (2 5 4) caCertificate +static const unsigned char cvOID_caCertificate [] = { 0x55, 0x04, 0x25}; +//2.5.4.38 X.520 id-at (2 5 4) authorityRevocationList +static const unsigned char cvOID_authorityRevocationList [] = { 0x55, 0x04, 0x26}; +//2.5.4.39 X.520 id-at (2 5 4) certificateRevocationList +static const unsigned char cvOID_certificateRevocationList [] = { 0x55, 0x04, 0x27}; +//2.5.4.40 X.520 id-at (2 5 4) crossCertificatePair +static const unsigned char cvOID_crossCertificatePair_2 [] = { 0x55, 0x04, 0x28}; +//2.5.4.41 X.520 id-at (2 5 4) name +static const unsigned char cvOID_name [] = { 0x55, 0x04, 0x29}; +//2.5.4.42 X.520 id-at (2 5 4) givenName +static const unsigned char cvOID_givenName [] = { 0x55, 0x04, 0x2A}; +//2.5.4.43 X.520 id-at (2 5 4) initials +static const unsigned char cvOID_initials [] = { 0x55, 0x04, 0x2B}; +//2.5.4.44 X.520 id-at (2 5 4) generationQualifier +static const unsigned char cvOID_generationQualifier [] = { 0x55, 0x04, 0x2C}; +//2.5.4.45 X.520 id-at (2 5 4) uniqueIdentifier +static const unsigned char cvOID_uniqueIdentifier [] = { 0x55, 0x04, 0x2D}; +//2.5.4.46 X.520 id-at (2 5 4) dnQualifier +static const unsigned char cvOID_dnQualifier [] = { 0x55, 0x04, 0x2E}; +//2.5.4.47 X.520 id-at (2 5 4) enhancedSearchGuide +static const unsigned char cvOID_enhancedSearchGuide [] = { 0x55, 0x04, 0x2F}; +//2.5.4.48 X.520 id-at (2 5 4) protocolInformation +static const unsigned char cvOID_protocolInformation [] = { 0x55, 0x04, 0x30}; +//2.5.4.49 X.520 id-at (2 5 4) distinguishedName +static const unsigned char cvOID_distinguishedName [] = { 0x55, 0x04, 0x31}; +//2.5.4.50 X.520 id-at (2 5 4) uniqueMember +static const unsigned char cvOID_uniqueMember [] = { 0x55, 0x04, 0x32}; +//2.5.4.51 X.520 id-at (2 5 4) houseIdentifier +static const unsigned char cvOID_houseIdentifier [] = { 0x55, 0x04, 0x33}; +//2.5.4.52 X.520 id-at (2 5 4) supportedAlgorithms +static const unsigned char cvOID_supportedAlgorithms [] = { 0x55, 0x04, 0x34}; +//2.5.4.53 X.520 id-at (2 5 4) deltaRevocationList +static const unsigned char cvOID_deltaRevocationList [] = { 0x55, 0x04, 0x35}; +//2.5.4.55 X.520 id-at (2 5 4) clearance +static const unsigned char cvOID_clearance [] = { 0x55, 0x04, 0x36}; +//2.5.4.58 X.520 id-at (2 5 4) crossCertificatePair +static const unsigned char cvOID_crossCertificatePair_1 [] = { 0x55, 0x04, 0x3A}; +//2.5.4.65 Naming attributes of type X520Pseudonym +static const unsigned char cvOID_pseudonym[] = { 0x55, 0x04, 0x41}; +//2.5.8.1.1 X.500 algorithms. Ambiguous, since no padding rules specified rsa +static const unsigned char cvOID_rsa_X500 [] = { 0x55, 0x08, 0x01, 0x01}; +//2.5.29.1 X.509 id-ce (2 5 29). Deprecated, use (2 5 29 35) instead authorityKeyIdentifier +static const unsigned char cvOID_authorityKeyIdentifier_old[] = { 0x55, 0x1D, 0x01}; +//2.5.29.2 X.509 id-ce (2 5 29). Obsolete, use keyUsage/extKeyUsage instead keyAttributes +static const unsigned char cvOID_keyAttributes [] = { 0x55, 0x1D, 0x02}; +//2.5.29.3 X.509 id-ce (2 5 29). Deprecated, use (2 5 29 32) instead certificatePolicies +static const unsigned char cvOID_certificatePolicies_old [] = { 0x55, 0x1D, 0x03}; +//2.5.29.4 X.509 id-ce (2 5 29). Obsolete, use keyUsage/extKeyUsage instead keyUsageRestriction +static const unsigned char cvOID_keyUsageRestriction [] = { 0x55, 0x1D, 0x04}; +//2.5.29.5 X.509 id-ce (2 5 29). Deprecated, use (2 5 29 33) instead policyMapping +static const unsigned char cvOID_policyMapping [] = { 0x55, 0x1D, 0x05}; +//2.5.29.6 X.509 id-ce (2 5 29). Obsolete, use namestatic constraints instead subtreesstatic constraint +static const unsigned char cvOID_subtreesconstraint [] = { 0x55, 0x1D, 0x06}; +//2.5.29.7 X.509 id-ce (2 5 29). Deprecated, use (2 5 29 17) instead subjectAltName +static const unsigned char cvOID_subjectAltName_old [] = { 0x55, 0x1D, 0x07}; +//2.5.29.8 X.509 id-ce (2 5 29). Deprecated, use (2 5 29 18) instead issuerAltName +static const unsigned char cvOID_issuerAltName_old [] = { 0x55, 0x1D, 0x08}; +//2.5.29.9 X.509 id-ce (2 5 29) subjectDirectoryAttributes +static const unsigned char cvOID_subjectDirectoryAttributes [] = { 0x55, 0x1D, 0x09}; +//2.5.29.10 X.509 id-ce (2 5 29). Deprecated, use (2 5 29 19) instead basicstatic constraints +static const unsigned char cvOID_basicconstraints_old [] = { 0x55, 0x1D, 0x0A}; +//2.5.29.11 X.509 id-ce (2 5 29). Deprecated, use (2 5 29 30) instead namestatic constraints +static const unsigned char cvOID_nameconstraints_old [] = { 0x55, 0x1D, 0x0B}; +//2.5.29.12 X.509 id-ce (2 5 29). Deprecated, use (2 5 29 36) instead policystatic constraints +static const unsigned char cvOID_policyconstraints_old_1 [] = { 0x55, 0x1D, 0x0C}; +//2.5.29.13 X.509 id-ce (2 5 29). Deprecated, use (2 5 29 19) instead basicstatic constraints +static const unsigned char cvOID_basicconstraints_2 [] = { 0x55, 0x1D, 0x0D}; +//2.5.29.14 X.509 id-ce (2 5 29) subjectKeyIdentifier +static const unsigned char cvOID_subjectKeyIdentifier[] = { 0x55, 0x1D, 0x0E}; +//2.5.29.15 X.509 id-ce (2 5 29) keyUsage +static const unsigned char cvOID_keyUsage[] = { 0x55, 0x1D, 0x0F}; +//2.5.29.16 X.509 id-ce (2 5 29) privateKeyUsagePeriod +static const unsigned char cvOID_privateKeyUsagePeriod [] = { 0x55, 0x1D, 0x10}; +//2.5.29.17 X.509 id-ce (2 5 29) subjectAltName +static const unsigned char cvOID_subjectAltName [] = { 0x55, 0x1D, 0x11}; +//2.5.29.18 X.509 id-ce (2 5 29) issuerAltName +static const unsigned char cvOID_issuerAltName [] = { 0x55, 0x1D, 0x12}; +//2.5.29.19 X.509 id-ce (2 5 29) basicstatic constraints +static const unsigned char cvOID_basicconstraints[] = { 0x55, 0x1D, 0x13}; +//2.5.29.20 X.509 id-ce (2 5 29) cRLNumber +static const unsigned char cvOID_cRLNumber [] = { 0x55, 0x1D, 0x14}; +//2.5.29.21 X.509 id-ce (2 5 29) cRLReason +static const unsigned char cvOID_cRLReason [] = { 0x55, 0x1D, 0x15}; +//2.5.29.22 X.509 id-ce (2 5 29). Deprecated, alternative OID uncertain expirationDate +static const unsigned char cvOID_expirationDate [] = { 0x55, 0x1D, 0x16}; +//2.5.29.23 X.509 id-ce (2 5 29) instructionCode +static const unsigned char cvOID_instructionCode [] = { 0x55, 0x1D, 0x17}; +//2.5.29.24 X.509 id-ce (2 5 29) invalidityDate +static const unsigned char cvOID_invalidityDate [] = { 0x55, 0x1D, 0x18}; +//2.5.29.25 X.509 id-ce (2 5 29). Deprecated, use (2 5 29 31) instead cRLDistributionPoints +static const unsigned char cvOID_cRLDistributionPoints_old [] = { 0x55, 0x1D, 0x19}; +//2.5.29.26 X.509 id-ce (2 5 29). Deprecated, use (2 5 29 28) instead issuingDistributionPoint +static const unsigned char cvOID_issuingDistributionPoint_old [] = { 0x55, 0x1D, 0x1A}; +//2.5.29.27 X.509 id-ce (2 5 29) deltaCRLIndicator +static const unsigned char cvOID_deltaCRLIndicator [] = { 0x55, 0x1D, 0x1B}; +//2.5.29.28 X.509 id-ce (2 5 29) issuingDistributionPoint +static const unsigned char cvOID_issuingDistributionPoint [] = { 0x55, 0x1D, 0x1C}; +//2.5.29.29 X.509 id-ce (2 5 29) certificateIssuer +static const unsigned char cvOID_certificateIssuer [] = { 0x55, 0x1D, 0x1D}; +//2.5.29.30 X.509 id-ce (2 5 29) namestatic constraints +static const unsigned char cvOID_nameconstraints [] = { 0x55, 0x1D, 0x1E}; +//2.5.29.31 X.509 id-ce (2 5 29) cRLDistributionPoints +static const unsigned char cvOID_cRLDistributionPoints[] = { 0x55, 0x1D, 0x1F}; +//2.5.29.32 X.509 id-ce (2 5 29) certificatePolicies +static const unsigned char cvOID_certificatePolicies [] = { 0x55, 0x1D, 0x20}; +//2.5.29.32.0 X.509 id-ce (2 5 29.0) anyPolicies +static const unsigned char cvOID_anyPolicies [] = { 0x55, 0x1D, 0x20, 0x00}; +//2.5.29.33 X.509 id-ce (2 5 29) policyMappings +static const unsigned char cvOID_policyMappings [] = { 0x55, 0x1D, 0x21}; +//2.5.29.34 X.509 id-ce (2 5 29). Deprecated, use (2 5 29 36) instead policystatic constraints +static const unsigned char cvOID_policyconstraints_old_2 [] = { 0x55, 0x1D, 0x22}; +//2.5.29.35 X.509 id-ce (2 5 29) authorityKeyIdentifier +static const unsigned char cvOID_authorityKeyIdentifier [] = { 0x55, 0x1D, 0x23}; +//2.5.29.36 X.509 id-ce (2 5 29) policystatic constraints +static const unsigned char cvOID_policyconstraints [] = { 0x55, 0x1D, 0x24}; +//2.5.29.37 X.509 id-ce (2 5 29) extKeyUsage +static const unsigned char cvOID_extKeyUsage [] = { 0x55, 0x1D, 0x25}; +//2.5.29.37.0 anyExtendedKeyUsage id-ce-extKeyUsage 0 +static const unsigned char cvOID_anyExtendedKeyUsage [] = { 0x55, 0x1D, 0x25, 0x00}; +//ame +//2.5.29.46 X.509 id-ce (2 5 29) id-ce-freshestCRL +static const unsigned char cvOID_freshestCRL [] = { 0x55, 0x1D, 0x2E}; +//2.5.29.54 X.509 id-ce (2 5 29) inhibitAnyPolicy +static const unsigned char cvOID_inhibitAnyPolicy [] = { 0x55, 0x1D, 0x36}; + +//2.16.840.1.101.2.1.1.1 SDN.700 INFOSEC algorithms sdnsSignatureAlgorithm +static const unsigned char cvOID_sdnsSignatureAlgorithm [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x01, 0x01}; +//2.16.840.1.101.2.1.1.2 SDN.700 INFOSEC algorithms. Formerly known as mosaicSignatureAlgorithm, this OID is better known as dsaWithSHA-1. fortezzaSignatureAlgorithm +static const unsigned char cvOID_fortezzaSignatureAlgorithm [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x01, 0x02}; +//2.16.840.1.101.2.1.1.3 SDN.700 INFOSEC algorithms sdnsConfidentialityAlgorithm +static const unsigned char cvOID_sdnsConfidentialityAlgorithm [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x01, 0x03}; +//2.16.840.1.101.2.1.1.4 SDN.700 INFOSEC algorithms. Formerly known as mosaicConfidentialityAlgorithm fortezzaConfidentialityAlgorithm +static const unsigned char cvOID_fortezzaConfidentialityAlgorithm [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x01, 0x04}; +//2.16.840.1.101.2.1.1.5 SDN.700 INFOSEC algorithms sdnsIntegrityAlgorithm +static const unsigned char cvOID_sdnsIntegrityAlgorithm [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x01, 0x05}; +//2.16.840.1.101.2.1.1.6 SDN.700 INFOSEC algorithms. Formerly known as mosaicIntegrityAlgorithm fortezzaIntegrityAlgorithm +static const unsigned char cvOID_fortezzaIntegrityAlgorithm [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x01, 0x06}; +//2.16.840.1.101.2.1.1.7 SDN.700 INFOSEC algorithms sdnsTokenProtectionAlgorithm +static const unsigned char cvOID_sdnsTokenProtectionAlgorithm [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x01, 0x07}; +//2.16.840.1.101.2.1.1.8 SDN.700 INFOSEC algorithms. Formerly know as mosaicTokenProtectionAlgorithm fortezzaTokenProtectionAlgorithm +static const unsigned char cvOID_fortezzaTokenProtectionAlgorithm [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x01, 0x08}; +//2.16.840.1.101.2.1.1.9 SDN.700 INFOSEC algorithms sdnsKeyManagementAlgorithm +static const unsigned char cvOID_sdnsKeyManagementAlgorithm [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x01, 0x09}; +//2.16.840.1.101.2.1.1.10 SDN.700 INFOSEC algorithms. Formerly known as mosaicKeyManagementAlgorithm fortezzaKeyManagementAlgorithm +static const unsigned char cvOID_fortezzaKeyManagementAlgorithm [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x01, 0x0A}; +//2.16.840.1.101.2.1.1.11 SDN.700 INFOSEC algorithms sdnsKMandSigAlgorithm +static const unsigned char cvOID_sdnsKMandSigAlgorithm [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x01, 0x0B}; +//2.16.840.1.101.2.1.1.12 SDN.700 INFOSEC algorithms. Formerly known as mosaicKMandSigAlgorithm fortezzaKMandSigAlgorithm +static const unsigned char cvOID_fortezzaKMandSigAlgorithm [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x01, 0x0C}; +//2.16.840.1.101.2.1.1.13 SDN.700 INFOSEC algorithms suiteASignatureAlgorithm +static const unsigned char cvOID_suiteASignatureAlgorithm [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x01, 0x0D}; +//2.16.840.1.101.2.1.1.14 SDN.700 INFOSEC algorithms suiteAConfidentialityAlgorithm +static const unsigned char cvOID_suiteAConfidentialityAlgorithm [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x01, 0x0E}; +//2.16.840.1.101.2.1.1.15 SDN.700 INFOSEC algorithms suiteAIntegrityAlgorithm +static const unsigned char cvOID_suiteAIntegrityAlgorithm [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x01, 0x0F}; +//2.16.840.1.101.2.1.1.16 SDN.700 INFOSEC algorithms suiteATokenProtectionAlgorithm +static const unsigned char cvOID_suiteATokenProtectionAlgorithm [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x01, 0x10}; +//2.16.840.1.101.2.1.1.17 SDN.700 INFOSEC algorithms suiteAKeyManagementAlgorithm +static const unsigned char cvOID_suiteAKeyManagementAlgorithm [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x01, 0x11}; +//2.16.840.1.101.2.1.1.18 SDN.700 INFOSEC algorithms suiteAKMandSigAlgorithm +static const unsigned char cvOID_suiteAKMandSigAlgorithm [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x01, 0x12}; +//2.16.840.1.101.2.1.1.19 SDN.700 INFOSEC algorithms. Formerly known as mosaicUpdatedSigAlgorithm fortezzaUpdatedSigAlgorithm +static const unsigned char cvOID_fortezzaUpdatedSigAlgorithm [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x01, 0x13}; +//2.16.840.1.101.2.1.1.20 SDN.700 INFOSEC algorithms. Formerly known as mosaicKMandUpdSigAlgorithms fortezzaKMandUpdSigAlgorithms +static const unsigned char cvOID_fortezzaKMandUpdSigAlgorithms [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x01, 0x14}; +//2.16.840.1.101.2.1.1.21 SDN.700 INFOSEC algorithms. Formerly known as mosaicUpdatedIntegAlgorithm fortezzaUpdatedIntegAlgorithm +static const unsigned char cvOID_fortezzaUpdatedIntegAlgorithm [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x01, 0x15}; +//2.16.840.1.101.2.1.1.22 SDN.700 INFOSEC algorithms. Formerly known as mosaicKeyEncryptionAlgorithm keyExchangeAlgorithm +static const unsigned char cvOID_keyExchangeAlgorithm [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x01, 0x16}; +//2.16.840.1.101.2.1.1.23 SDN.700 INFOSEC algorithms fortezzaWrap80Algorithm +static const unsigned char cvOID_fortezzaWrap80Algorithm [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x01, 0x17}; +//2.16.840.1.101.2.1.1.24 SDN.700 INFOSEC algorithms kEAKeyEncryptionAlgorithm +static const unsigned char cvOID_kEAKeyEncryptionAlgorithm [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x01, 0x18}; +//2.16.840.1.101.2.1.2.1 SDN.700 INFOSEC format rfc822MessageFormat +static const unsigned char cvOID_rfc822MessageFormat [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x02, 0x01}; +//2.16.840.1.101.2.1.2.2 SDN.700 INFOSEC format emptyContent +static const unsigned char cvOID_emptyContent [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x02, 0x02}; +//2.16.840.1.101.2.1.2.3 SDN.700 INFOSEC format cspContentType +static const unsigned char cvOID_cspContentType [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x02, 0x03}; +//2.16.840.1.101.2.1.2.42 SDN.700 INFOSEC format mspRev3ContentType +static const unsigned char cvOID_mspRev3ContentType [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x02, 0x2A}; +//2.16.840.1.101.2.1.2.48 SDN.700 INFOSEC format mspContentType +static const unsigned char cvOID_mspContentType [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x02, 0x30}; +//2.16.840.1.101.2.1.2.49 SDN.700 INFOSEC format mspRekeyAgentProtocol +static const unsigned char cvOID_mspRekeyAgentProtocol [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x02, 0x31}; +//2.16.840.1.101.2.1.2.50 SDN.700 INFOSEC format mspMMP +static const unsigned char cvOID_mspMMP [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x02, 0x32}; +//2.16.840.1.101.2.1.2.66 SDN.700 INFOSEC format mspRev3-1ContentType +static const unsigned char cvOID_mspRev3_1ContentType [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x02, 0x42}; +//2.16.840.1.101.2.1.2.72 SDN.700 INFOSEC format forwardedMSPMessageBodyPart +static const unsigned char cvOID_forwardedMSPMessageBodyPart [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x02, 0x48}; +//2.16.840.1.101.2.1.2.73 SDN.700 INFOSEC format mspForwardedMessageParameters +static const unsigned char cvOID_mspForwardedMessageParameters [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x02, 0x49}; +//2.16.840.1.101.2.1.2.74 SDN.700 INFOSEC format forwardedCSPMsgBodyPart +static const unsigned char cvOID_forwardedCSPMsgBodyPart [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x02, 0x50}; +//2.16.840.1.101.2.1.2.75 SDN.700 INFOSEC format cspForwardedMessageParameters +static const unsigned char cvOID_cspForwardedMessageParameters [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x02, 0x51}; +//2.16.840.1.101.2.1.2.76 SDN.700 INFOSEC format mspMMP2 +static const unsigned char cvOID_mspMMP2 [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x02, 0x52}; +//2.16.840.1.101.2.1.3.1 SDN.700 INFOSEC policy sdnsSecurityPolicy +static const unsigned char cvOID_sdnsSecurityPolicy [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x03, 0x01}; +//2.16.840.1.101.2.1.3.2 SDN.700 INFOSEC policy sdnsPRBAC +static const unsigned char cvOID_sdnsPRBAC [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x03, 0x02}; +//2.16.840.1.101.2.1.3.3 SDN.700 INFOSEC policy mosaicPRBAC +static const unsigned char cvOID_mosaicPRBAC [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x03, 0x03}; +//2.16.840.1.101.2.1.3.10 SDN.700 INFOSEC policy siSecurityPolicy +static const unsigned char cvOID_siSecurityPolicy [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x03, 0x0A}; +//2.16.840.1.101.2.1.3.10.0 SDN.700 INFOSEC policy (obsolete) siNASP +static const unsigned char cvOID_siNASP [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x03, 0x0A, 0x00}; +//2.16.840.1.101.2.1.3.10.1 SDN.700 INFOSEC policy (obsolete) siELCO +static const unsigned char cvOID_siELCO [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x03, 0x0A, 0x01}; +//2.16.840.1.101.2.1.3.10.2 SDN.700 INFOSEC policy (obsolete) siTK +static const unsigned char cvOID_siTK [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x03, 0x0A, 0x02}; +//2.16.840.1.101.2.1.3.10.3 SDN.700 INFOSEC policy (obsolete) siDSAP +static const unsigned char cvOID_siDSAP [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x03, 0x0A, 0x03}; +//2.16.840.1.101.2.1.3.10.4 SDN.700 INFOSEC policy (obsolete) siSSSS +static const unsigned char cvOID_siSSSS [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x03, 0x0A, 0x04}; +//2.16.840.1.101.2.1.3.10.5 SDN.700 INFOSEC policy (obsolete) siDNASP +static const unsigned char cvOID_siDNASP [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x03, 0x0A, 0x05}; +//2.16.840.1.101.2.1.3.10.6 SDN.700 INFOSEC policy (obsolete) siBYEMAN +static const unsigned char cvOID_siBYEMAN [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x03, 0x0A, 0x06}; +//2.16.840.1.101.2.1.3.10.7 SDN.700 INFOSEC policy (obsolete) siREL-US +static const unsigned char cvOID_siREL_US [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x03, 0x0A, 0x07}; +//2.16.840.1.101.2.1.3.10.8 SDN.700 INFOSEC policy (obsolete) siREL-AUS +static const unsigned char cvOID_siREL_AUS [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x03, 0x0A, 0x08}; +//2.16.840.1.101.2.1.3.10.9 SDN.700 INFOSEC policy (obsolete) siREL-CAN +static const unsigned char cvOID_siREL_CAN [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x03, 0x0A, 0x09}; +//2.16.840.1.101.2.1.3.10.10 SDN.700 INFOSEC policy (obsolete) siREL_UK +static const unsigned char cvOID_siREL_UK [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x03, 0x0A, 0x0A}; +//2.16.840.1.101.2.1.3.10.11 SDN.700 INFOSEC policy (obsolete) siREL-NZ +static const unsigned char cvOID_siREL_NZ [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x03, 0x0A, 0x0B}; +//2.16.840.1.101.2.1.3.10.12 SDN.700 INFOSEC policy (obsolete) siGeneric +static const unsigned char cvOID_siGeneric [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x03, 0x0A, 0x0C}; +//2.16.840.1.101.2.1.3.11 SDN.700 INFOSEC policy genser +static const unsigned char cvOID_genser [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x03, 0x0B}; +//2.16.840.1.101.2.1.3.11.0 SDN.700 INFOSEC policy (obsolete) genserNations +static const unsigned char cvOID_genserNations [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x03, 0x0B, 0x00}; +//2.16.840.1.101.2.1.3.11.1 SDN.700 INFOSEC policy (obsolete) genserComsec +static const unsigned char cvOID_genserComsec [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x03, 0x0B, 0x01}; +//2.16.840.1.101.2.1.3.11.2 SDN.700 INFOSEC policy (obsolete) genserAcquisition +static const unsigned char cvOID_genserAcquisition [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x03, 0x0B, 0x02}; +//2.16.840.1.101.2.1.3.11.3 SDN.700 INFOSEC policy genserSecurityCategories +static const unsigned char cvOID_genserSecurityCategories [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x03, 0x0B, 0x03}; +//2.16.840.1.101.2.1.3.11.3.0 SDN.700 INFOSEC GENSER policy genserTagSetName +static const unsigned char cvOID_genserTagSetName [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x03, 0x0B, 0x03, 0x00}; +//2.16.840.1.101.2.1.3.12 SDN.700 INFOSEC policy defaultSecurityPolicy +static const unsigned char cvOID_defaultSecurityPolicy [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x03, 0x0C}; +//2.16.840.1.101.2.1.3.13 SDN.700 INFOSEC policy capcoMarkings +static const unsigned char cvOID_capcoMarkings [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x03, 0x0D}; +//2.16.840.1.101.2.1.3.13.0 SDN.700 INFOSEC policy CAPCO markings capcoSecurityCategories +static const unsigned char cvOID_capcoSecurityCategories [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x03, 0x0D, 0x00}; +//2.16.840.1.101.2.1.3.13.0.1 SDN.700 INFOSEC policy CAPCO markings capcoTagSetName1 +static const unsigned char cvOID_capcoTagSetName1 [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x03, 0x0D, 0x00, 0x01}; +//2.16.840.1.101.2.1.3.13.0.2 SDN.700 INFOSEC policy CAPCO markings capcoTagSetName2 +static const unsigned char cvOID_capcoTagSetName2 [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x03, 0x0D, 0x00, 0x02}; +//2.16.840.1.101.2.1.3.13.0.3 SDN.700 INFOSEC policy CAPCO markings capcoTagSetName3 +static const unsigned char cvOID_capcoTagSetName3 [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x03, 0x0D, 0x00, 0x03}; +//2.16.840.1.101.2.1.3.13.0.4 SDN.700 INFOSEC policy CAPCO markings capcoTagSetName4 +static const unsigned char cvOID_capcoTagSetName4 [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x03, 0x0D, 0x00, 0x04}; +//2.16.840.1.101.2.1.5.1 SDN.700 INFOSEC attributes (superseded) sdnsKeyManagementCertificate +static const unsigned char cvOID_sdnsKeyManagementCertificate [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x05, 0x01}; +//2.16.840.1.101.2.1.5.2 SDN.700 INFOSEC attributes (superseded) sdnsUserSignatureCertificate +static const unsigned char cvOID_sdnsUserSignatureCertificate [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x05, 0x02}; +//2.16.840.1.101.2.1.5.3 SDN.700 INFOSEC attributes (superseded) sdnsKMandSigCertificate +static const unsigned char cvOID_sdnsKMandSigCertificate [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x05, 0x03}; +//2.16.840.1.101.2.1.5.4 SDN.700 INFOSEC attributes (superseded) fortezzaKeyManagementCertificate +static const unsigned char cvOID_fortezzaKeyManagementCertificate [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x05, 0x04}; +//2.16.840.1.101.2.1.5.5 SDN.700 INFOSEC attributes (superseded) fortezzaKMandSigCertificate +static const unsigned char cvOID_fortezzaKMandSigCertificate [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x05, 0x05}; +//2.16.840.1.101.2.1.5.6 SDN.700 INFOSEC attributes (superseded) fortezzaUserSignatureCertificate +static const unsigned char cvOID_fortezzaUserSignatureCertificate [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x05, 0x06}; +//2.16.840.1.101.2.1.5.7 SDN.700 INFOSEC attributes (superseded) fortezzaCASignatureCertificate +static const unsigned char cvOID_fortezzaCASignatureCertificate [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x05, 0x07}; +//2.16.840.1.101.2.1.5.8 SDN.700 INFOSEC attributes (superseded) sdnsCASignatureCertificate +static const unsigned char cvOID_sdnsCASignatureCertificate [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x05, 0x08}; +//2.16.840.1.101.2.1.5.10 SDN.700 INFOSEC attributes (superseded) auxiliaryVector +static const unsigned char cvOID_auxiliaryVector [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x05, 0x0A}; +//2.16.840.1.101.2.1.5.11 SDN.700 INFOSEC attributes mlReceiptPolicy +static const unsigned char cvOID_mlReceiptPolicy [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x05, 0x0B}; +//2.16.840.1.101.2.1.5.12 SDN.700 INFOSEC attributes mlMembership +static const unsigned char cvOID_mlMembership [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x05, 0x0C}; +//2.16.840.1.101.2.1.5.13 SDN.700 INFOSEC attributes mlAdministrators +static const unsigned char cvOID_mlAdministrators [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x05, 0x0D}; +//2.16.840.1.101.2.1.5.14 SDN.700 INFOSEC attributes alid +static const unsigned char cvOID_alid [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x05, 0x0E}; +//2.16.840.1.101.2.1.5.20 SDN.700 INFOSEC attributes janUKMs +static const unsigned char cvOID_janUKMs [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x05, 0x14}; +//2.16.840.1.101.2.1.5.21 SDN.700 INFOSEC attributes febUKMs +static const unsigned char cvOID_febUKMs [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x05, 0x15}; +//2.16.840.1.101.2.1.5.22 SDN.700 INFOSEC attributes marUKMs +static const unsigned char cvOID_marUKMs [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x05, 0x16}; +//2.16.840.1.101.2.1.5.23 SDN.700 INFOSEC attributes aprUKMs +static const unsigned char cvOID_aprUKMs [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x05, 0x17}; +//2.16.840.1.101.2.1.5.24 SDN.700 INFOSEC attributes mayUKMs +static const unsigned char cvOID_mayUKMs [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x05, 0x18}; +//2.16.840.1.101.2.1.5.25 SDN.700 INFOSEC attributes junUKMs +static const unsigned char cvOID_junUKMs [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x05, 0x19}; +//2.16.840.1.101.2.1.5.26 SDN.700 INFOSEC attributes julUKMs +static const unsigned char cvOID_julUKMs [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x05, 0x1A}; +//2.16.840.1.101.2.1.5.27 SDN.700 INFOSEC attributes augUKMs +static const unsigned char cvOID_augUKMs [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x05, 0x1B}; +//2.16.840.1.101.2.1.5.28 SDN.700 INFOSEC attributes sepUKMs +static const unsigned char cvOID_sepUKMs [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x05, 0x1C}; +//2.16.840.1.101.2.1.5.29 SDN.700 INFOSEC attributes octUKMs +static const unsigned char cvOID_octUKMs [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x05, 0x1D}; +//2.16.840.1.101.2.1.5.30 SDN.700 INFOSEC attributes novUKMs +static const unsigned char cvOID_novUKMs [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x05, 0x1E}; +//2.16.840.1.101.2.1.5.21 SDN.700 INFOSEC attributes decUKMs +static const unsigned char cvOID_decUKMs [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x05, 0x1F}; +//2.16.840.1.101.2.1.5.40 SDN.700 INFOSEC attributes metaSDNSckl +static const unsigned char cvOID_metaSDNSckl [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x05, 0x28}; +//2.16.840.1.101.2.1.5.41 SDN.700 INFOSEC attributes sdnsCKL +static const unsigned char cvOID_sdnsCKL [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x05, 0x29}; +//2.16.840.1.101.2.1.5.42 SDN.700 INFOSEC attributes metaSDNSsignatureCKL +static const unsigned char cvOID_metaSDNSsignatureCKL [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x05, 0x2A}; +//2.16.840.1.101.2.1.5.43 SDN.700 INFOSEC attributes sdnsSignatureCKL +static const unsigned char cvOID_sdnsSignatureCKL [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x05, 0x2B}; +//2.16.840.1.101.2.1.5.44 SDN.700 INFOSEC attributes sdnsCertificateRevocationList +static const unsigned char cvOID_sdnsCertificateRevocationList [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x05, 0x2C}; +//2.16.840.1.101.2.1.5.45 SDN.700 INFOSEC attributes (superseded) fortezzaCertificateRevocationList +static const unsigned char cvOID_fortezzaCertificateRevocationList [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x05, 0x2D}; +//2.16.840.1.101.2.1.5.46 SDN.700 INFOSEC attributes fortezzaCKL +static const unsigned char cvOID_fortezzaCKL [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x05, 0x2E}; +//2.16.840.1.101.2.1.5.47 SDN.700 INFOSEC attributes alExemptedAddressProcessor +static const unsigned char cvOID_alExemptedAddressProcessor [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x05, 0x2F}; +//2.16.840.1.101.2.1.5.48 SDN.700 INFOSEC attributes (obsolete) guard +static const unsigned char cvOID_guard [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x05, 0x30}; +//2.16.840.1.101.2.1.5.49 SDN.700 INFOSEC attributes (obsolete) algorithmsSupported +static const unsigned char cvOID_algorithmsSupported [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x05, 0x31}; +//2.16.840.1.101.2.1.5.50 SDN.700 INFOSEC attributes (obsolete) suiteAKeyManagementCertificate +static const unsigned char cvOID_suiteAKeyManagementCertificate [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x05, 0x32}; +//2.16.840.1.101.2.1.5.51 SDN.700 INFOSEC attributes (obsolete) suiteAKMandSigCertificate +static const unsigned char cvOID_suiteAKMandSigCertificate [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x05, 0x33}; +//2.16.840.1.101.2.1.5.52 SDN.700 INFOSEC attributes (obsolete) suiteAUserSignatureCertificate +static const unsigned char cvOID_suiteAUserSignatureCertificate [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x05, 0x34}; +//2.16.840.1.101.2.1.5.53 SDN.700 INFOSEC attributes prbacInfo +static const unsigned char cvOID_prbacInfo [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x05, 0x35}; +//2.16.840.1.101.2.1.5.54 SDN.700 INFOSEC attributes prbacCAstatic constraints +static const unsigned char cvOID_prbacCAconstraints [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x05, 0x36}; +//2.16.840.1.101.2.1.5.55 SDN.700 INFOSEC attributes sigOrKMPrivileges +static const unsigned char cvOID_sigOrKMPrivileges [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x05, 0x37}; +//2.16.840.1.101.2.1.5.56 SDN.700 INFOSEC attributes commPrivileges +static const unsigned char cvOID_commPrivileges [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x05, 0x38}; +//2.16.840.1.101.2.1.5.57 SDN.700 INFOSEC attributes labeledAttribute +static const unsigned char cvOID_labeledAttribute [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x05, 0x39}; +//2.16.840.1.101.2.1.5.58 SDN.700 INFOSEC attributes (obsolete) policyInformationFile +static const unsigned char cvOID_policyInformationFile [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x05, 0x3A}; +//2.16.840.1.101.2.1.5.59 SDN.700 INFOSEC attributes secPolicyInformationFile +static const unsigned char cvOID_secPolicyInformationFile [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x05, 0x3B}; +//2.16.840.1.101.2.1.5.60 SDN.700 INFOSEC attributes cAClearancestatic constraint +static const unsigned char cvOID_cAClearanceconstraint [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x05, 0x3C}; +//2.16.840.1.101.2.1.7.1 SDN.700 INFOSEC extensions cspExtns +static const unsigned char cvOID_cspExtns [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x07, 0x01}; +//2.16.840.1.101.2.1.7.1.0 SDN.700 INFOSEC extensions cspCsExtn +static const unsigned char cvOID_cspCsExtn [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x07, 0x01, 0x00}; +//2.16.840.1.101.2.1.8.1 SDN.700 INFOSEC security category mISSISecurityCategories +static const unsigned char cvOID_mISSISecurityCategories [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x08, 0x01}; +//2.16.840.1.101.2.1.8.2 SDN.700 INFOSEC security category standardSecurityLabelPrivileges +static const unsigned char cvOID_standardSecurityLabelPrivileges [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x08, 0x02}; +//2.16.840.1.101.2.1.10.1 SDN.700 INFOSEC privileges sigPrivileges +static const unsigned char cvOID_sigPrivileges [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x0A, 0x01}; +//2.16.840.1.101.2.1.10.2 SDN.700 INFOSEC privileges kmPrivileges +static const unsigned char cvOID_kmPrivileges [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x0A, 0x02}; +//2.16.840.1.101.2.1.10.3 SDN.700 INFOSEC privileges namedTagSetPrivilege +static const unsigned char cvOID_namedTagSetPrivilege [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x0A, 0x03}; +//2.16.840.1.101.2.1.11.1 SDN.700 INFOSEC certificate policy ukDemo +static const unsigned char cvOID_ukDemo [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x0B, 0x01}; +//2.16.840.1.101.2.1.11.2 SDN.700 INFOSEC certificate policy usDODClass2 +static const unsigned char cvOID_usDODClass2 [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x0B, 0x02}; +//2.16.840.1.101.2.1.11.3 SDN.700 INFOSEC certificate policy usMediumPilot +static const unsigned char cvOID_usMediumPilot [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x0B, 0x03}; +//2.16.840.1.101.2.1.11.4 SDN.700 INFOSEC certificate policy usDODClass4 +static const unsigned char cvOID_usDODClass4 [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x0B, 0x04}; +//2.16.840.1.101.2.1.11.5 SDN.700 INFOSEC certificate policy usDODClass3 +static const unsigned char cvOID_usDODClass3 [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x0B, 0x05}; +//2.16.840.1.101.2.1.11.6 SDN.700 INFOSEC certificate policy usDODClass5 +static const unsigned char cvOID_usDODClass5 [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x0B, 0x06}; +//2.16.840.1.101.2.1.12.0 SDN.700 INFOSEC test objects testSecurityPolicy +static const unsigned char cvOID_testSecurityPolicy [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x0C, 0x00}; +//2.16.840.1.101.2.1.12.0.1 SDN.700 INFOSEC test objects tsp1 +static const unsigned char cvOID_tsp1 [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x0C, 0x00, 0x01}; +//2.16.840.1.101.2.1.12.0.1.0 SDN.700 INFOSEC test objects tsp1SecurityCategories +static const unsigned char cvOID_tsp1SecurityCategories [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x0C, 0x00, 0x01, 0x00}; +//2.16.840.1.101.2.1.12.0.1.0.0 SDN.700 INFOSEC test objects tsp1TagSetZero +static const unsigned char cvOID_tsp1TagSetZero [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x0C, 0x00, 0x01, 0x00, 0x00}; +//2.16.840.1.101.2.1.12.0.1.0.1 SDN.700 INFOSEC test objects tsp1TagSetOne +static const unsigned char cvOID_tsp1TagSetOne [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x0C, 0x00, 0x01, 0x00, 0x01}; +//2.16.840.1.101.2.1.12.0.1.0.2 SDN.700 INFOSEC test objects tsp1TagSetTwo +static const unsigned char cvOID_tsp1TagSetTwo [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x0C, 0x00, 0x01, 0x00, 0x02}; +//2.16.840.1.101.2.1.12.0.2 SDN.700 INFOSEC test objects tsp2 +static const unsigned char cvOID_tsp2 [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x0C, 0x00, 0x02}; +//2.16.840.1.101.2.1.12.0.2.0 SDN.700 INFOSEC test objects tsp2SecurityCategories +static const unsigned char cvOID_tsp2SecurityCategories [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x0C, 0x00, 0x02, 0x00}; +//2.16.840.1.101.2.1.12.0.2.0.0 SDN.700 INFOSEC test objects tsp2TagSetZero +static const unsigned char cvOID_tsp2TagSetZero [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x0C, 0x00, 0x02, 0x00, 0x00}; +//2.16.840.1.101.2.1.12.0.2.0.1 SDN.700 INFOSEC test objects tsp2TagSetOne +static const unsigned char cvOID_tsp2TagSetOne [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x0C, 0x00, 0x02, 0x00, 0x01}; +//2.16.840.1.101.2.1.12.0.2.0.2 SDN.700 INFOSEC test objects tsp2TagSetTwo +static const unsigned char cvOID_tsp2TagSetTwo [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x0C, 0x00, 0x02, 0x00, 0x02}; +//2.16.840.1.101.2.1.12.0.3 SDN.700 INFOSEC test objects kafka +static const unsigned char cvOID_kafka [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x0C, 0x00, 0x03}; +//2.16.840.1.101.2.1.12.0.3.0 SDN.700 INFOSEC test objects kafkaSecurityCategories +static const unsigned char cvOID_kafkaSecurityCategories [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x0C, 0x00, 0x03, 0x00}; +//2.16.840.1.101.2.1.12.0.3.0.1 SDN.700 INFOSEC test objects kafkaTagSetName1 +static const unsigned char cvOID_kafkaTagSetName1 [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x0C, 0x00, 0x03, 0x00, 0x01}; +//2.16.840.1.101.2.1.12.0.3.0.2 SDN.700 INFOSEC test objects kafkaTagSetName2 +static const unsigned char cvOID_kafkaTagSetName2 [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x0C, 0x00, 0x03, 0x00, 0x02}; +//2.16.840.1.101.2.1.12.0.3.0.3 SDN.700 INFOSEC test objects kafkaTagSetName3 +static const unsigned char cvOID_kafkaTagSetName3 [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x0C, 0x00, 0x03, 0x00, 0x03}; +//2.16.840.1.101.2.1.12.1.1 SDN.700 INFOSEC test objects tcp1 +static const unsigned char cvOID_tcp1 [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x0C, 0x01, 0x01}; +//2.16.840.1.101.3.1 CSOR GAK slabel +static const unsigned char cvOID_slabel [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x03, 0x01}; +//2.16.840.1.101.3.2 CSOR GAK pki +static const unsigned char cvOID_pki [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x03, 0x02}; +//2.16.840.1.101.3.2.1 CSOR GAK policy GAK policyIdentifier +static const unsigned char cvOID_GAK_policyIdentifier [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x03, 0x02, 0x01}; +//2.16.840.1.101.3.2.2 CSOR GAK extended key usage GAK +static const unsigned char cvOID_GAK [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x03, 0x02, 0x02}; +//2.16.840.1.101.3.2.2.1 CSOR GAK extended key usage kRAKey +static const unsigned char cvOID_kRAKey [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x03, 0x02, 0x02, 0x01}; +//2.16.840.1.101.3.2.3 CSOR GAK extensions extensions +static const unsigned char cvOID_extensions [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x03, 0x02, 0x03}; +//2.16.840.1.101.3.2.3.1 CSOR GAK extensions kRTechnique +static const unsigned char cvOID_kRTechnique [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x03, 0x02, 0x03, 0x01}; +//2.16.840.1.101.3.2.3.2 CSOR GAK extensions kRecoveryCapable +static const unsigned char cvOID_kRecoveryCapable [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x03, 0x02, 0x03, 0x02}; +//2.16.840.1.101.3.2.3.3 CSOR GAK extensions kR +static const unsigned char cvOID_kR [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x03, 0x02, 0x03, 0x03}; +//2.16.840.1.101.3.2.4 CSOR GAK keyrecoveryschemes +static const unsigned char cvOID_keyrecoveryschemes [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x03, 0x02, 0x04}; +//2.16.840.1.101.3.2.5 CSOR GAK krapola +static const unsigned char cvOID_krapola [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x03, 0x02, 0x05}; +//2.16.840.1.101.3.3 CSOR GAK arpa +static const unsigned char cvOID_arpa [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x03, 0x03}; +//2.16.840.1.113719.1.9 Novell pki +static const unsigned char cvOID_pki_Novell [] = { 0x60, 0x86, 0x48, 0x01, 0x86, 0xF8, 0x37, 0x01, 0x09}; +//2.16.840.1.113719.1.9.4 Novell PKI pkiAttributeType +static const unsigned char cvOID_pkiAttributeType [] = { 0x60, 0x86, 0x48, 0x01, 0x86, 0xF8, 0x37, 0x01, 0x09, 0x04}; +//2.16.840.1.113719.1.9.4.1 Novell PKI attribute type registeredAttributes +static const unsigned char cvOID_registeredAttributes [] = { 0x60, 0x86, 0x48, 0x01, 0x86, 0xF8, 0x37, 0x01, 0x09, 0x04, 0x01}; +//2.16.840.1.113719.1.9.4.2 Novell PKI attribute type relianceLimit +static const unsigned char cvOID_relianceLimit [] = { 0x60, 0x86, 0x48, 0x01, 0x86, 0xF8, 0x37, 0x01, 0x09, 0x04, 0x02}; +//2.16.840.1.113730.1 Netscape cert-extension +static const unsigned char cvOID_cert_extension [] = { 0x60, 0x86, 0x48, 0x01, 0x86, 0xF8, 0x42, 0x01}; +//2.16.840.1.113730.1.1 Netscape certificate extension netscape-cert-type +static const unsigned char cvOID_netscape_cert_type [] = { 0x60, 0x86, 0x48, 0x01, 0x86, 0xF8, 0x42, 0x01, 0x01}; +//2.16.840.1.113730.1.2 Netscape certificate extension netscape-base-url +static const unsigned char cvOID_netscape_base_url [] = { 0x60, 0x86, 0x48, 0x01, 0x86, 0xF8, 0x42, 0x01, 0x02}; +//2.16.840.1.113730.1.3 Netscape certificate extension netscape-revocation-url +static const unsigned char cvOID_netscape_revocation_url [] = { 0x60, 0x86, 0x48, 0x01, 0x86, 0xF8, 0x42, 0x01, 0x03}; +//2.16.840.1.113730.1.4 Netscape certificate extension netscape-ca-revocation-url +static const unsigned char cvOID_netscape_ca_revocation_url [] = { 0x60, 0x86, 0x48, 0x01, 0x86, 0xF8, 0x42, 0x01, 0x04}; +//2.16.840.1.113730.1.7 Netscape certificate extension netscape-cert-renewal-url +static const unsigned char cvOID_netscape_cert_renewal_url [] = { 0x60, 0x86, 0x48, 0x01, 0x86, 0xF8, 0x42, 0x01, 0x07}; +//2.16.840.1.113730.1.8 Netscape certificate extension netscape-ca-policy-url +static const unsigned char cvOID_netscape_ca_policy_url [] = { 0x60, 0x86, 0x48, 0x01, 0x86, 0xF8, 0x42, 0x01, 0x08}; +//2.16.840.1.113730.1.9 Netscape certificate extension HomePage-url +static const unsigned char cvOID_HomePage_url [] = { 0x60, 0x86, 0x48, 0x01, 0x86, 0xF8, 0x42, 0x01, 0x09}; +//2.16.840.1.113730.1.10 Netscape certificate extension EntityLogo +static const unsigned char cvOID_EntityLogo [] = { 0x60, 0x86, 0x48, 0x01, 0x86, 0xF8, 0x42, 0x01, 0x0A}; +//2.16.840.1.113730.1.11 Netscape certificate extension UserPicture +static const unsigned char cvOID_UserPicture [] = { 0x60, 0x86, 0x48, 0x01, 0x86, 0xF8, 0x42, 0x01, 0x0B}; +//2.16.840.1.113730.1.12 Netscape certificate extension netscape-ssl-server-name +static const unsigned char cvOID_netscape_ssl_server_name [] = { 0x60, 0x86, 0x48, 0x01, 0x86, 0xF8, 0x42, 0x01, 0x0C}; +//2.16.840.1.113730.1.13 Netscape certificate extension netscape-comment +static const unsigned char cvOID_netscape_comment [] = { 0x60, 0x86, 0x48, 0x01, 0x86, 0xF8, 0x42, 0x01, 0x0D}; +//2.16.840.1.113730.2 Netscape data-type +static const unsigned char cvOID_data_type [] = { 0x60, 0x86, 0x48, 0x01, 0x86, 0xF8, 0x42, 0x02}; +//2.16.840.1.113730.2.1 Netscape data type dataGIF +static const unsigned char cvOID_dataGIF [] = { 0x60, 0x86, 0x48, 0x01, 0x86, 0xF8, 0x42, 0x02, 0x01}; +//2.16.840.1.113730.2.2 Netscape data type dataJPEG +static const unsigned char cvOID_dataJPEG [] = { 0x60, 0x86, 0x48, 0x01, 0x86, 0xF8, 0x42, 0x02, 0x02}; +//2.16.840.1.113730.2.3 Netscape data type dataURL +static const unsigned char cvOID_dataURL [] = { 0x60, 0x86, 0x48, 0x01, 0x86, 0xF8, 0x42, 0x02, 0x03}; +//2.16.840.1.113730.2.4 Netscape data type dataHTML +static const unsigned char cvOID_dataHTML [] = { 0x60, 0x86, 0x48, 0x01, 0x86, 0xF8, 0x42, 0x02, 0x04}; +//2.16.840.1.113730.2.5 Netscape data type certSequence +static const unsigned char cvOID_certSequence [] = { 0x60, 0x86, 0x48, 0x01, 0x86, 0xF8, 0x42, 0x02, 0x05}; +//2.16.840.1.113730.2.6 Netscape certificate extension certURL +static const unsigned char cvOID_certURL [] = { 0x60, 0x86, 0x48, 0x01, 0x86, 0xF8, 0x42, 0x02, 0x06}; +//2.16.840.1.113730.3 Netscape directory +static const unsigned char cvOID_directory [] = { 0x60, 0x86, 0x48, 0x01, 0x86, 0xF8, 0x42, 0x03}; +//2.16.840.1.113730.3.1 Netscape directory ldapDefinitions +static const unsigned char cvOID_ldapDefinitions [] = { 0x60, 0x86, 0x48, 0x01, 0x86, 0xF8, 0x42, 0x03, 0x01}; +//2.16.840.1.113730.3.1.1 Netscape LDAP definitions carLicense +static const unsigned char cvOID_carLicense [] = { 0x60, 0x86, 0x48, 0x01, 0x86, 0xF8, 0x42, 0x03, 0x01, 0x01}; +//2.16.840.1.113730.3.1.2 Netscape LDAP definitions departmentNumber +static const unsigned char cvOID_departmentNumber [] = { 0x60, 0x86, 0x48, 0x01, 0x86, 0xF8, 0x42, 0x03, 0x01, 0x02}; +//2.16.840.1.113730.3.1.3 Netscape LDAP definitions employeeNumber +static const unsigned char cvOID_employeeNumber [] = { 0x60, 0x86, 0x48, 0x01, 0x86, 0xF8, 0x42, 0x03, 0x01, 0x03}; +//2.16.840.1.113730.3.1.4 Netscape LDAP definitions employeeType +static const unsigned char cvOID_employeeType [] = { 0x60, 0x86, 0x48, 0x01, 0x86, 0xF8, 0x42, 0x03, 0x01, 0x04}; +//2.16.840.1.113730.3.2.2 Netscape LDAP definitions inetOrgPerson +static const unsigned char cvOID_inetOrgPerson [] = { 0x60, 0x86, 0x48, 0x01, 0x86, 0xF8, 0x42, 0x03, 0x02, 0x02}; +//2.16.840.1.113730.4.1 Netscape serverGatedCrypto +static const unsigned char cvOID_serverGatedCrypto_Netscape [] = { 0x60, 0x86, 0x48, 0x01, 0x86, 0xF8, 0x42, 0x04, 0x01}; +//2.16.840.1.113733.1.6.3 Verisign Unknown Verisign extension +static const unsigned char cvOID_Unknown_Verisign_extension_1 [] = { 0x60, 0x86, 0x48, 0x01, 0x86, 0xF8, 0x45, 0x01, 0x06, 0x03}; +//2.16.840.1.113733.1.6.6 Verisign Unknown Verisign extension +static const unsigned char cvOID_Unknown_Verisign_extension_2 [] = { 0x60, 0x86, 0x48, 0x01, 0x86, 0xF8, 0x45, 0x01, 0x06, 0x06}; +//2.16.840.1.113733.1.7.1.1 Verisign Verisign certificatePolicy +static const unsigned char cvOID_Verisign_certificatePolicy [] = { 0x60, 0x86, 0x48, 0x01, 0x86, 0xF8, 0x45, 0x01, 0x07, 0x01, 0x01}; +//2.16.840.1.113733.1.7.1.1.1 Verisign Unknown Verisign policy qualifier +static const unsigned char cvOID_Unknown_Verisign_policy_qualifier_1 [] = { 0x60, 0x86, 0x48, 0x01, 0x86, 0xF8, 0x45, 0x01, 0x07, 0x01, 0x01, 0x01}; +//2.16.840.1.113733.1.7.1.1.2 Verisign Unknown Verisign policy qualifier +static const unsigned char cvOID_Unknown_Verisign_policy_qualifier_2 [] = { 0x60, 0x86, 0x48, 0x01, 0x86, 0xF8, 0x45, 0x01, 0x07, 0x01, 0x01, 0x02}; +//2.16.840.1.113733.1.8.1 Verisign Verisign SGC CA? +static const unsigned char cvOID_Verisign_SGC_CA [] = { 0x60, 0x86, 0x48, 0x01, 0x86, 0xF8, 0x45, 0x01, 0x08, 0x01}; +//2.23.42.0 SET contentType +static const unsigned char cvOID_contentType_SET [] = { 0x67, 0x2A, 0x00}; +//2.23.42.0.0 SET contentType PANData +static const unsigned char cvOID_PANData [] = { 0x67, 0x2A, 0x00, 0x00}; +//2.23.42.0.1 SET contentType PANToken +static const unsigned char cvOID_PANToken [] = { 0x67, 0x2A, 0x00, 0x01}; +//2.23.42.0.2 SET contentType PANOnly +static const unsigned char cvOID_PANOnly [] = { 0x67, 0x2A, 0x00, 0x02}; +//2.23.42.1 SET msgExt +static const unsigned char cvOID_msgExt [] = { 0x67, 0x2A, 0x01}; +//2.23.42.2 SET field +static const unsigned char cvOID_field [] = { 0x67, 0x2A, 0x02}; +//2.23.42.2.0 SET field fullName +static const unsigned char cvOID_fullName [] = { 0x67, 0x2A, 0x02, 0x00}; +//2.23.42.2.1 SET field givenName +static const unsigned char cvOID_givenName_SET [] = { 0x67, 0x2A, 0x02, 0x01}; +//2.23.42.2.2 SET field familyName +static const unsigned char cvOID_familyName [] = { 0x67, 0x2A, 0x02, 0x02}; +//2.23.42.2.3 SET field birthFamilyName +static const unsigned char cvOID_birthFamilyName [] = { 0x67, 0x2A, 0x02, 0x03}; +//2.23.42.2.4 SET field placeName +static const unsigned char cvOID_placeName [] = { 0x67, 0x2A, 0x02, 0x04}; +//2.23.42.2.5 SET field identificationNumber +static const unsigned char cvOID_identificationNumber [] = { 0x67, 0x2A, 0x02, 0x05}; +//2.23.42.2.6 SET field month +static const unsigned char cvOID_month [] = { 0x67, 0x2A, 0x02, 0x06}; +//2.23.42.2.7 SET field date +static const unsigned char cvOID_date [] = { 0x67, 0x2A, 0x02, 0x07}; +//2.23.42.2.8 SET field address +static const unsigned char cvOID_address [] = { 0x67, 0x2A, 0x02, 0x08}; +//2.23.42.2.9 SET field telephone +static const unsigned char cvOID_telephone [] = { 0x67, 0x2A, 0x02, 0x09}; +//2.23.42.2.10 SET field amount +static const unsigned char cvOID_amount [] = { 0x67, 0x2A, 0x02, 0x0A}; +//2.23.42.2.7.11 SET field accountNumber +static const unsigned char cvOID_accountNumber [] = { 0x67, 0x2A, 0x02, 0x0B}; +//2.23.42.2.7.12 SET field passPhrase +static const unsigned char cvOID_passPhrase [] = { 0x67, 0x2A, 0x02, 0x0C}; +//2.23.42.3 SET attribute +static const unsigned char cvOID_attribute_SET [] = { 0x67, 0x2A, 0x03}; +//2.23.42.3.0 SET attribute cert +static const unsigned char cvOID_cert_SET [] = { 0x67, 0x2A, 0x03, 0x00}; +//2.23.42.3.0.0 SET cert attribute rootKeyThumb +static const unsigned char cvOID_rootKeyThumb [] = { 0x67, 0x2A, 0x03, 0x00, 0x00}; +//2.23.42.3.0.1 SET cert attribute additionalPolicy +static const unsigned char cvOID_additionalPolicy [] = { 0x67, 0x2A, 0x03, 0x00, 0x01}; +//2.23.42.4 SET algorithm +static const unsigned char cvOID_algorithm_SET [] = { 0x67, 0x2A, 0x04}; +//2.23.42.5 SET policy +static const unsigned char cvOID_policy_SET [] = { 0x67, 0x2A, 0x05}; +//2.23.42.5.0 SET policy root +static const unsigned char cvOID_root [] = { 0x67, 0x2A, 0x05, 0x00}; +//2.23.42.6 SET module +static const unsigned char cvOID_module_SET [] = { 0x67, 0x2A, 0x06}; +//2.23.42.7 SET certExt +static const unsigned char cvOID_certExt [] = { 0x67, 0x2A, 0x07}; +//2.23.42.7.0 SET cert extension hashedRootKey +static const unsigned char cvOID_hashedRootKey [] = { 0x67, 0x2A, 0x07, 0x00}; +//2.23.42.7.1 SET cert extension certificateType +static const unsigned char cvOID_certificateType_SET [] = { 0x67, 0x2A, 0x07, 0x01}; +//2.23.42.7.2 SET cert extension merchantData +static const unsigned char cvOID_merchantData [] = { 0x67, 0x2A, 0x07, 0x02}; +//2.23.42.7.3 SET cert extension cardCertRequired +static const unsigned char cvOID_cardCertRequired [] = { 0x67, 0x2A, 0x07, 0x03}; +//2.23.42.7.4 SET cert extension tunneling +static const unsigned char cvOID_tunneling [] = { 0x67, 0x2A, 0x07, 0x04}; +//2.23.42.7.5 SET cert extension setExtensions +static const unsigned char cvOID_setExtensions [] = { 0x67, 0x2A, 0x07, 0x05}; +//2.23.42.7.6 SET cert extension setQualifier +static const unsigned char cvOID_setQualifier [] = { 0x67, 0x2A, 0x07, 0x06}; +//2.23.42.8 SET brand +static const unsigned char cvOID_brand [] = { 0x67, 0x2A, 0x08}; +//2.23.42.8.1 SET brand IATA-ATA +static const unsigned char cvOID_IATA_ATA [] = { 0x67, 0x2A, 0x08, 0x01}; +//2.23.42.8.4 SET brand VISA +static const unsigned char cvOID_VISA [] = { 0x67, 0x2A, 0x08, 0x04}; +//2.23.42.8.5 SET brand MasterCard +static const unsigned char cvOID_MasterCard [] = { 0x67, 0x2A, 0x08, 0x05}; +//2.23.42.8.30 SET brand Diners +static const unsigned char cvOID_Diners [] = { 0x67, 0x2A, 0x08, 0x1E}; +//2.23.42.8.34 SET brand AmericanExpress +static const unsigned char cvOID_AmericanExpress [] = { 0x67, 0x2A, 0x08, 0x22}; +//2.23.42.8.6011 SET brand Novus +static const unsigned char cvOID_Novus [] = { 0x67, 0x2A, 0x08, 0xAE, 0x7B}; +//2.23.42.9 SET vendor +static const unsigned char cvOID_vendor [] = { 0x67, 0x2A, 0x09}; +//2.23.42.9.0 SET vendor GlobeSet +static const unsigned char cvOID_GlobeSet [] = { 0x67, 0x2A, 0x09, 0x00}; +//2.23.42.9.1 SET vendor IBM +static const unsigned char cvOID_IBM [] = { 0x67, 0x2A, 0x09, 0x01}; +//2.23.42.9.2 SET vendor CyberCash +static const unsigned char cvOID_CyberCash [] = { 0x67, 0x2A, 0x09, 0x02}; +//2.23.42.9.3 SET vendor Terisa +static const unsigned char cvOID_Terisa [] = { 0x67, 0x2A, 0x09, 0x03}; +//2.23.42.9.4 SET vendor RSADSI +static const unsigned char cvOID_RSADSI [] = { 0x67, 0x2A, 0x09, 0x04}; +//2.23.42.9.5 SET vendor VeriFone +static const unsigned char cvOID_VeriFone [] = { 0x67, 0x2A, 0x09, 0x05}; +//2.23.42.9.6 SET vendor TrinTech +static const unsigned char cvOID_TrinTech [] = { 0x67, 0x2A, 0x09, 0x06}; +//2.23.42.9.7 SET vendor BankGate +static const unsigned char cvOID_BankGate [] = { 0x67, 0x2A, 0x09, 0x07}; +//2.23.42.9.8 SET vendor GTE +static const unsigned char cvOID_GTE [] = { 0x67, 0x2A, 0x09, 0x08}; +//2.23.42.9.9 SET vendor CompuSource +static const unsigned char cvOID_CompuSource [] = { 0x67, 0x2A, 0x09, 0x09}; +//2.23.42.9.10 SET vendor Griffin +static const unsigned char cvOID_Griffin [] = { 0x67, 0x2A, 0x09, 0x0A}; +//2.23.42.9.11 SET vendor Certicom +static const unsigned char cvOID_Certicom [] = { 0x67, 0x2A, 0x09, 0x0B}; +//2.23.42.9.12 SET vendor OSS +static const unsigned char cvOID_OSS [] = { 0x67, 0x2A, 0x09, 0x0C}; +//2.23.42.9.13 SET vendor TenthMountain +static const unsigned char cvOID_TenthMountain [] = { 0x67, 0x2A, 0x09, 0x0D}; +//2.23.42.9.14 SET vendor Antares +static const unsigned char cvOID_Antares [] = { 0x67, 0x2A, 0x09, 0x0E}; +//2.23.42.9.15 SET vendor ECC +static const unsigned char cvOID_ECC [] = { 0x67, 0x2A, 0x09, 0x0F}; +//2.23.42.9.16 SET vendor Maithean +static const unsigned char cvOID_Maithean [] = { 0x67, 0x2A, 0x09, 0x10}; +//2.23.42.9.17 SET vendor Netscape +static const unsigned char cvOID_Netscape [] = { 0x67, 0x2A, 0x09, 0x11}; +//2.23.42.9.18 SET vendor Verisign +static const unsigned char cvOID_Verisign [] = { 0x67, 0x2A, 0x09, 0x12}; +//2.23.42.9.19 SET vendor BlueMoney +static const unsigned char cvOID_BlueMoney [] = { 0x67, 0x2A, 0x09, 0x13}; +//2.23.42.9.20 SET vendor Lacerte +static const unsigned char cvOID_Lacerte [] = { 0x67, 0x2A, 0x09, 0x14}; +//2.23.42.9.21 SET vendor Fujitsu +static const unsigned char cvOID_Fujitsu [] = { 0x67, 0x2A, 0x09, 0x15}; +//2.23.42.9.22 SET vendor eLab +static const unsigned char cvOID_eLab [] = { 0x67, 0x2A, 0x09, 0x16}; +//2.23.42.9.23 SET vendor Entrust +static const unsigned char cvOID_Entrust [] = { 0x67, 0x2A, 0x09, 0x17}; +//2.23.42.9.24 SET vendor VIAnet +static const unsigned char cvOID_VIAnet [] = { 0x67, 0x2A, 0x09, 0x18}; +//2.23.42.9.25 SET vendor III +static const unsigned char cvOID_III [] = { 0x67, 0x2A, 0x09, 0x19}; +//2.23.42.9.26 SET vendor OpenMarket +static const unsigned char cvOID_OpenMarket [] = { 0x67, 0x2A, 0x09, 0x1A}; +//2.23.42.9.27 SET vendor Lexem +static const unsigned char cvOID_Lexem [] = { 0x67, 0x2A, 0x09, 0x1B}; +//2.23.42.9.28 SET vendor Intertrader +static const unsigned char cvOID_Intertrader [] = { 0x67, 0x2A, 0x09, 0x1C}; +//2.23.42.9.29 SET vendor Persimmon +static const unsigned char cvOID_Persimmon [] = { 0x67, 0x2A, 0x09, 0x1D}; +//2.23.42.9.30 SET vendor NABLE +static const unsigned char cvOID_NABLE [] = { 0x67, 0x2A, 0x09, 0x1E}; +//2.23.42.9.31 SET vendor espace-net +static const unsigned char cvOID_espace_net [] = { 0x67, 0x2A, 0x09, 0x1F}; +//2.23.42.9.32 SET vendor Hitachi +static const unsigned char cvOID_Hitachi [] = { 0x67, 0x2A, 0x09, 0x20}; +//2.23.42.9.33 SET vendor Microsoft +static const unsigned char cvOID_Microsoft [] = { 0x67, 0x2A, 0x09, 0x21}; +//2.23.42.9.34 SET vendor NEC +static const unsigned char cvOID_NEC [] = { 0x67, 0x2A, 0x09, 0x22}; +//2.23.42.9.35 SET vendor Mitsubishi +static const unsigned char cvOID_Mitsubishi [] = { 0x67, 0x2A, 0x09, 0x23}; +//2.23.42.9.36 SET vendor NCR +static const unsigned char cvOID_NCR [] = { 0x67, 0x2A, 0x09, 0x24}; +//2.23.42.9.37 SET vendor e-COMM +static const unsigned char cvOID_e_COMM [] = { 0x67, 0x2A, 0x09, 0x25}; +//2.23.42.9.38 SET vendor Gemplus +static const unsigned char cvOID_Gemplus [] = { 0x67, 0x2A, 0x09, 0x26}; +//2.23.42.10 SET national +static const unsigned char cvOID_national [] = { 0x67, 0x2A, 0x0A}; +//2.23.42.10.192 SET national Japan +static const unsigned char cvOID_Japan [] = { 0x67, 0x2A, 0x0A, 0x81, 0x40}; +//2.54.1775.2 SET. Deprecated, use (2 23 42 7 0) instead hashedRootKey +static const unsigned char cvOID_hashedRootKey_old [] = { 0x86, 0x8D, 0x6F, 0x02}; +//2.54.1775.3 SET. Deprecated, use (2 23 42 7 0) instead certificateType +static const unsigned char cvOID_certificateType_old [] = { 0x86, 0x8D, 0x6F, 0x03}; +//2.54.1775.4 SET. Deprecated, use (2 23 42 7 0) instead merchantData +static const unsigned char cvOID_merchantData_old [] = { 0x86, 0x8D, 0x6F, 0x04}; +//2.54.1775.5 SET. Deprecated, use (2 23 42 7 0) instead cardCertRequired +static const unsigned char cvOID_cardCertRequired_old [] = { 0x86, 0x8D, 0x6F, 0x05}; +//2.54.1775.6 SET. Deprecated, use (2 23 42 7 0) instead tunneling +static const unsigned char cvOID_tunneling_old [] = { 0x86, 0x8D, 0x6F, 0x06}; +//2.54.1775.7 SET. Deprecated, use (2 23 42 7 0) instead setQualifier +static const unsigned char cvOID_setQualifier_old [] = { 0x86, 0x8D, 0x6F, 0x07}; +//2.54.1775.99 SET. Deprecated, use (2 23 42 7 0) instead set-data +static const unsigned char cvOID_set_data_old [] = { 0x86, 0x8D, 0x6F, 0x63}; + +#ifdef _MSC_VER +#pragma warning(default : 4305) +#pragma warning(default : 4309) +#endif + +#endif + diff --git a/actlibrary/MacOSX-10.4-ppc/Release/include/actPKCS15BehaviorKit.h b/actlibrary/include/actPKCS15BehaviorKit.h similarity index 97% rename from actlibrary/MacOSX-10.4-ppc/Release/include/actPKCS15BehaviorKit.h rename to actlibrary/include/actPKCS15BehaviorKit.h index cdac8da..f604971 100644 --- a/actlibrary/MacOSX-10.4-ppc/Release/include/actPKCS15BehaviorKit.h +++ b/actlibrary/include/actPKCS15BehaviorKit.h @@ -1,43 +1,43 @@ -// --------------------------------------------------------------------------- -// Name: actPKCS15BehaviorKit.h -// Product: cv act library -// Purpose: Factory functions to create specific PKCS15Behavior objects. -// -// Copyright: (c) 2008 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -// -// Autor: Markus Tesche -// Date: 06/02/2008 -// --------------------------------------------------------------------------- - -#ifndef ACT_PKCS15BehaviorKit_h -#define ACT_PKCS15BehaviorKit_h - -#include - -namespace act -{ - class IToken; - class IPKCS15Behavior; - - // default behavior, does nothing - IPKCS15Behavior* CreatePKCS15Behavior(const char* mid, IToken* token); - - // specialized behavior - IPKCS15Behavior* CreateSafeSignBehavior(const char* mid, IToken* token); - IPKCS15Behavior* CreateStarSignBehavior(const char* mid, IToken* token); - IPKCS15Behavior* CreateJCPKCS15Behavior(const char* mid, IToken* token); - IPKCS15Behavior* CreateJCPKCS15mEACBehavior(const char* mid, IToken* token); - IPKCS15Behavior* CreateHiPathBehavior(const char* mid, IToken* token); - IPKCS15Behavior* CreateV4PKCS15Behavior(const char* mid, IToken* token); - IPKCS15Behavior* CreateACOSPKCS15Behavior(const char* mid, IToken* token); - IPKCS15Behavior* CreateStarCOSPKCS15Behavior(const char* mid, IToken* token); - IPKCS15Behavior* CreateNexusBehavior(const char* mid, IToken* token); - IPKCS15Behavior* CreateVWBehavior(const char* mid, IToken* token); // Nexus derived - IPKCS15Behavior* CreateDTRUSTBehavior(const char* mid, IToken* token); // Nexus derived - -} // namespace act - -#endif // ACT_PKCS15BehaviorKit_h +// --------------------------------------------------------------------------- +// Name: actPKCS15BehaviorKit.h +// Product: cv act library +// Purpose: Factory functions to create specific PKCS15Behavior objects. +// +// Copyright: (c) 2008 cv cryptovision GmbH +// all rights reserved +// Licence: The conditions for the use of this software are regulated +// in the cv act library licence agreement. +// +// Autor: Markus Tesche +// Date: 06/02/2008 +// --------------------------------------------------------------------------- + +#ifndef ACT_PKCS15BehaviorKit_h +#define ACT_PKCS15BehaviorKit_h + +#include + +namespace act +{ + class IToken; + class IPKCS15Behavior; + + // default behavior, does nothing + IPKCS15Behavior* CreatePKCS15Behavior(const char* mid, IToken* token); + + // specialized behavior + IPKCS15Behavior* CreateSafeSignBehavior(const char* mid, IToken* token); + IPKCS15Behavior* CreateStarSignBehavior(const char* mid, IToken* token); + IPKCS15Behavior* CreateJCPKCS15Behavior(const char* mid, IToken* token); + IPKCS15Behavior* CreateJCPKCS15mEACBehavior(const char* mid, IToken* token); + IPKCS15Behavior* CreateHiPathBehavior(const char* mid, IToken* token); + IPKCS15Behavior* CreateV4PKCS15Behavior(const char* mid, IToken* token); + IPKCS15Behavior* CreateACOSPKCS15Behavior(const char* mid, IToken* token); + IPKCS15Behavior* CreateStarCOSPKCS15Behavior(const char* mid, IToken* token); + IPKCS15Behavior* CreateNexusBehavior(const char* mid, IToken* token); + IPKCS15Behavior* CreateVWBehavior(const char* mid, IToken* token); // Nexus derived + IPKCS15Behavior* CreateDTRUSTBehavior(const char* mid, IToken* token); // Nexus derived + +} // namespace act + +#endif // ACT_PKCS15BehaviorKit_h diff --git a/actlibrary/MacOSX-10.6-x86_64/Release/include/actPKCS15BehaviorReg.h b/actlibrary/include/actPKCS15BehaviorReg.h similarity index 96% rename from actlibrary/MacOSX-10.6-x86_64/Release/include/actPKCS15BehaviorReg.h rename to actlibrary/include/actPKCS15BehaviorReg.h index 56f39a2..1c83c37 100644 --- a/actlibrary/MacOSX-10.6-x86_64/Release/include/actPKCS15BehaviorReg.h +++ b/actlibrary/include/actPKCS15BehaviorReg.h @@ -1,34 +1,34 @@ -// --------------------------------------------------------------------------- -// Name: actPKCS15BehaviorReg.h -// Product: cv act library -// Purpose: Registry for factory functions to create specific PKCS15Behavior objects. -// -// Copyright: (c) 2008 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -// -// Autor: Markus Tesche -// Date: 06/02/2008 -// --------------------------------------------------------------------------- - -#ifndef ACT_PKCS15BehaviorReg_h -#define ACT_PKCS15BehaviorReg_h - -#include "actFactoryReg.h" - -namespace act -{ - class IToken; - class IPKCS15Behavior; - - typedef IPKCS15Behavior* (*CreatePKCS15BehaviorPtr)(const char* mid, IToken* token); - typedef FactoryMapEntry PKCS15BehaviorMapEntry; - - typedef FactoryReg - < IPKCS15Behavior, CreatePKCS15BehaviorPtr, PKCS15BehaviorMapEntry - > PKCS15BehaviorReg; - -} // namespace act - -#endif // ACT_PKCS15BehaviorReg_h +// --------------------------------------------------------------------------- +// Name: actPKCS15BehaviorReg.h +// Product: cv act library +// Purpose: Registry for factory functions to create specific PKCS15Behavior objects. +// +// Copyright: (c) 2008 cv cryptovision GmbH +// all rights reserved +// Licence: The conditions for the use of this software are regulated +// in the cv act library licence agreement. +// +// Autor: Markus Tesche +// Date: 06/02/2008 +// --------------------------------------------------------------------------- + +#ifndef ACT_PKCS15BehaviorReg_h +#define ACT_PKCS15BehaviorReg_h + +#include "actFactoryReg.h" + +namespace act +{ + class IToken; + class IPKCS15Behavior; + + typedef IPKCS15Behavior* (*CreatePKCS15BehaviorPtr)(const char* mid, IToken* token); + typedef FactoryMapEntry PKCS15BehaviorMapEntry; + + typedef FactoryReg + < IPKCS15Behavior, CreatePKCS15BehaviorPtr, PKCS15BehaviorMapEntry + > PKCS15BehaviorReg; + +} // namespace act + +#endif // ACT_PKCS15BehaviorReg_h diff --git a/actlibrary/MacOSX-10.6-x86_64/Release/include/actPaddingKit.h b/actlibrary/include/actPaddingKit.h similarity index 96% rename from actlibrary/MacOSX-10.6-x86_64/Release/include/actPaddingKit.h rename to actlibrary/include/actPaddingKit.h index 01fb93e..aa5a845 100644 --- a/actlibrary/MacOSX-10.6-x86_64/Release/include/actPaddingKit.h +++ b/actlibrary/include/actPaddingKit.h @@ -1,26 +1,26 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actPaddingKit.h -// Product: cv act library -// Purpose: declaration of all factory functions -// -// Copyright: (c) 2000 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_PaddingKit_h -#define ACT_PaddingKit_h - -namespace act -{ - class IPadding; - - IPadding* CreatePKCS5Pad(); - IPadding* CreatePKCS1V1_5EMEPad(); - IPadding* CreateOneAndZerosPad(); - IPadding* CreateISO9796Pad(); - IPadding* CreateNoPad(); -} -#endif - +////////////////////////////////////////////////////////////////////////////////// +// Name: actPaddingKit.h +// Product: cv act library +// Purpose: declaration of all factory functions +// +// Copyright: (c) 2000 cv cryptovision GmbH +// all rights reserved +// Licence: The conditions for the use of this software are regulated +// in the cv act library licence agreement. +////////////////////////////////////////////////////////////////////////////////// + +#ifndef ACT_PaddingKit_h +#define ACT_PaddingKit_h + +namespace act +{ + class IPadding; + + IPadding* CreatePKCS5Pad(); + IPadding* CreatePKCS1V1_5EMEPad(); + IPadding* CreateOneAndZerosPad(); + IPadding* CreateISO9796Pad(); + IPadding* CreateNoPad(); +} +#endif + diff --git a/actlibrary/MacOSX-10.5-x86_64/Release/include/actPaddingReg.h b/actlibrary/include/actPaddingReg.h similarity index 96% rename from actlibrary/MacOSX-10.5-x86_64/Release/include/actPaddingReg.h rename to actlibrary/include/actPaddingReg.h index 4cad768..80710c2 100644 --- a/actlibrary/MacOSX-10.5-x86_64/Release/include/actPaddingReg.h +++ b/actlibrary/include/actPaddingReg.h @@ -1,41 +1,41 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actPaddingReg.h -// Product: cv act library -// Purpose: registry for the factory functions in actPaddingKit.h -// -// Copyright: (c) 2000 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_PaddingReg_h -#define ACT_PaddingReg_h - -namespace act -{ - class IPadding; - class Blob; - - typedef IPadding* (*CreatePaddingPtr)(); - - struct PaddingMapEntry - { - const char* Name; - CreatePaddingPtr CreatePtr; - }; - - class PaddingReg - { - public: - static IPadding* CreatePadding(const char* name); - static CreatePaddingPtr GetCreatePointer(const char* name); - static const char* GetName(void* createptr); - static const char* GetNextName(const char* name); - static void Insert(const char* name, CreatePaddingPtr createptr); - static void Insert(const PaddingMapEntry* paddingmap); - }; - -} // namespace act - -#endif // ACT_PaddingReg_h +////////////////////////////////////////////////////////////////////////////////// +// Name: actPaddingReg.h +// Product: cv act library +// Purpose: registry for the factory functions in actPaddingKit.h +// +// Copyright: (c) 2000 cv cryptovision GmbH +// all rights reserved +// Licence: The conditions for the use of this software are regulated +// in the cv act library licence agreement. +////////////////////////////////////////////////////////////////////////////////// + +#ifndef ACT_PaddingReg_h +#define ACT_PaddingReg_h + +namespace act +{ + class IPadding; + class Blob; + + typedef IPadding* (*CreatePaddingPtr)(); + + struct PaddingMapEntry + { + const char* Name; + CreatePaddingPtr CreatePtr; + }; + + class PaddingReg + { + public: + static IPadding* CreatePadding(const char* name); + static CreatePaddingPtr GetCreatePointer(const char* name); + static const char* GetName(void* createptr); + static const char* GetNextName(const char* name); + static void Insert(const char* name, CreatePaddingPtr createptr); + static void Insert(const PaddingMapEntry* paddingmap); + }; + +} // namespace act + +#endif // ACT_PaddingReg_h diff --git a/actlibrary/MacOSX-10.6-x86_64/Release/include/actProfileGeneratorKit.h b/actlibrary/include/actProfileGeneratorKit.h similarity index 96% rename from actlibrary/MacOSX-10.6-x86_64/Release/include/actProfileGeneratorKit.h rename to actlibrary/include/actProfileGeneratorKit.h index 1992c43..5f6cccf 100644 --- a/actlibrary/MacOSX-10.6-x86_64/Release/include/actProfileGeneratorKit.h +++ b/actlibrary/include/actProfileGeneratorKit.h @@ -1,26 +1,26 @@ -// --------------------------------------------------------------------------- -// Name: actProfileGeneratorKit.h -// Product: cv act library -// Purpose: Factory functions for smartcard profile generators. -// -// Copyright: (c) 2009 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -// -// Autor: Markus Tesche -// Date: 12/18/2009 -// --------------------------------------------------------------------------- - -#ifndef ACT_ProfileGeneratorKit_h -#define ACT_ProfileGeneratorKit_h - -namespace act -{ - class IProfileGenerator; - - IProfileGenerator* CreateJCPKCS15Generator(const char* name); - -} // namespace act - -#endif // ACT_ProfileGeneratorKit_h +// --------------------------------------------------------------------------- +// Name: actProfileGeneratorKit.h +// Product: cv act library +// Purpose: Factory functions for smartcard profile generators. +// +// Copyright: (c) 2009 cv cryptovision GmbH +// all rights reserved +// Licence: The conditions for the use of this software are regulated +// in the cv act library licence agreement. +// +// Autor: Markus Tesche +// Date: 12/18/2009 +// --------------------------------------------------------------------------- + +#ifndef ACT_ProfileGeneratorKit_h +#define ACT_ProfileGeneratorKit_h + +namespace act +{ + class IProfileGenerator; + + IProfileGenerator* CreateJCPKCS15Generator(const char* name); + +} // namespace act + +#endif // ACT_ProfileGeneratorKit_h diff --git a/actlibrary/MacOSX-10.4-ppc/Release/include/actProfileGeneratorReg.h b/actlibrary/include/actProfileGeneratorReg.h similarity index 96% rename from actlibrary/MacOSX-10.4-ppc/Release/include/actProfileGeneratorReg.h rename to actlibrary/include/actProfileGeneratorReg.h index 0a8f6be..d1d99d7 100644 --- a/actlibrary/MacOSX-10.4-ppc/Release/include/actProfileGeneratorReg.h +++ b/actlibrary/include/actProfileGeneratorReg.h @@ -1,33 +1,33 @@ -// --------------------------------------------------------------------------- -// Name: actProfileGeneratorReg.h -// Product: cv act library -// Purpose: factory functions registry to create IProfileGenerator objects. -// -// Copyright: (c) 2009 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -// -// Autor: Markus Tesche -// Date: 12/18/2009 -// --------------------------------------------------------------------------- - -#ifndef ACT_ProfileGeneratorReg_h -#define ACT_ProfileGeneratorReg_h - -#include "actFactoryReg.h" - -namespace act -{ - class IProfileGenerator; - - typedef IProfileGenerator* (*CreateProfileGeneratorPtr)(const char*); - typedef FactoryMapEntry ProfileGeneratorMapEntry; - - typedef FactoryReg - < IProfileGenerator, CreateProfileGeneratorPtr, ProfileGeneratorMapEntry - > ProfileGeneratorReg; - -} // namespace act - -#endif // ACT_ProfileGeneratorReg_h +// --------------------------------------------------------------------------- +// Name: actProfileGeneratorReg.h +// Product: cv act library +// Purpose: factory functions registry to create IProfileGenerator objects. +// +// Copyright: (c) 2009 cv cryptovision GmbH +// all rights reserved +// Licence: The conditions for the use of this software are regulated +// in the cv act library licence agreement. +// +// Autor: Markus Tesche +// Date: 12/18/2009 +// --------------------------------------------------------------------------- + +#ifndef ACT_ProfileGeneratorReg_h +#define ACT_ProfileGeneratorReg_h + +#include "actFactoryReg.h" + +namespace act +{ + class IProfileGenerator; + + typedef IProfileGenerator* (*CreateProfileGeneratorPtr)(const char*); + typedef FactoryMapEntry ProfileGeneratorMapEntry; + + typedef FactoryReg + < IProfileGenerator, CreateProfileGeneratorPtr, ProfileGeneratorMapEntry + > ProfileGeneratorReg; + +} // namespace act + +#endif // ACT_ProfileGeneratorReg_h diff --git a/actlibrary/MacOSX-10.6-x86_64/Release/include/actRNGKit.h b/actlibrary/include/actRNGKit.h similarity index 96% rename from actlibrary/MacOSX-10.6-x86_64/Release/include/actRNGKit.h rename to actlibrary/include/actRNGKit.h index 6a8b886..6ae1de4 100644 --- a/actlibrary/MacOSX-10.6-x86_64/Release/include/actRNGKit.h +++ b/actlibrary/include/actRNGKit.h @@ -1,44 +1,44 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actRNGKit.h -// Product: cv act library -// Purpose: declaration of all factory functions -// -// Copyright: (c) 2010 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_RNGKit_h -#define ACT_RNGKit_h -namespace act -{ - class IRNGAlg; - - // Dummy PRNG (uses rand() / srand(time(0))) - IRNGAlg* CreateDummyPRNG(); - - // Deterministic PRNGs - IRNGAlg* CreateARC4RNG(); - IRNGAlg* CreateBBS(); - IRNGAlg* CreateFIPS186(); - IRNGAlg* CreateFIPS186DES(); - IRNGAlg* CreateLCG(); - - // AIS 20, K1 - K4 evaluated deterministic PRNG - IRNGAlg* CreateFIPS186K4(); - - // 'True' RNGs - IRNGAlg* CreateDevRandomRNG(); -#ifndef UNDER_CE_30 - IRNGAlg* CreateWinRNG(); -#endif - - // Token RNG (uses IToken::GetRandom()) -#ifndef NO_SMARTCARD - IRNGAlg* CreateTokenRNG(); -#endif -} - -#endif - +////////////////////////////////////////////////////////////////////////////////// +// Name: actRNGKit.h +// Product: cv act library +// Purpose: declaration of all factory functions +// +// Copyright: (c) 2010 cv cryptovision GmbH +// all rights reserved +// Licence: The conditions for the use of this software are regulated +// in the cv act library licence agreement. +////////////////////////////////////////////////////////////////////////////////// + +#ifndef ACT_RNGKit_h +#define ACT_RNGKit_h +namespace act +{ + class IRNGAlg; + + // Dummy PRNG (uses rand() / srand(time(0))) + IRNGAlg* CreateDummyPRNG(); + + // Deterministic PRNGs + IRNGAlg* CreateARC4RNG(); + IRNGAlg* CreateBBS(); + IRNGAlg* CreateFIPS186(); + IRNGAlg* CreateFIPS186DES(); + IRNGAlg* CreateLCG(); + + // AIS 20, K1 - K4 evaluated deterministic PRNG + IRNGAlg* CreateFIPS186K4(); + + // 'True' RNGs + IRNGAlg* CreateDevRandomRNG(); +#ifndef UNDER_CE_30 + IRNGAlg* CreateWinRNG(); +#endif + + // Token RNG (uses IToken::GetRandom()) +#ifndef NO_SMARTCARD + IRNGAlg* CreateTokenRNG(); +#endif +} + +#endif + diff --git a/actlibrary/MacOSX-10.4-ppc/Release/include/actSCardLock.h b/actlibrary/include/actSCardLock.h similarity index 95% rename from actlibrary/MacOSX-10.4-ppc/Release/include/actSCardLock.h rename to actlibrary/include/actSCardLock.h index 3bc753e..ff4fbd1 100644 --- a/actlibrary/MacOSX-10.4-ppc/Release/include/actSCardLock.h +++ b/actlibrary/include/actSCardLock.h @@ -1,51 +1,51 @@ -// --------------------------------------------------------------------------- -// Name: actSCardLock.h -// Product: cv act library -// Purpose: Smartcard transaction lock -// -// Copyright: (c) 2009 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -// -// Autor: Markus Tesche -// Date: 07/10/2009 -// --------------------------------------------------------------------------- - -#ifndef ACT_SCardLock_H -#define ACT_SCardLock_H - -#include "actEnv.h" - -#if defined(ACT_64) -# define LOCK_SIZE 32 -#else -# define LOCK_SIZE 16 -#endif - -namespace act -{ - class ISCardOS; - - class SCardLock - { - private: - SCardLock() { } - SCardLock(const SCardLock&) { } - - public: - SCardLock(ISCardOS* os); - ~SCardLock(); - - void Lock(ISCardOS* os); - void Unlock(); - - private: - byte m_lock[LOCK_SIZE]; - }; - -} // namespace act - -#undef LOCK_SIZE - -#endif // ACT_SCardLock_H +// --------------------------------------------------------------------------- +// Name: actSCardLock.h +// Product: cv act library +// Purpose: Smartcard transaction lock +// +// Copyright: (c) 2009 cv cryptovision GmbH +// all rights reserved +// Licence: The conditions for the use of this software are regulated +// in the cv act library licence agreement. +// +// Autor: Markus Tesche +// Date: 07/10/2009 +// --------------------------------------------------------------------------- + +#ifndef ACT_SCardLock_H +#define ACT_SCardLock_H + +#include "actEnv.h" + +#if defined(ACT_64) +# define LOCK_SIZE 32 +#else +# define LOCK_SIZE 16 +#endif + +namespace act +{ + class ISCardOS; + + class SCardLock + { + private: + SCardLock() { } + SCardLock(const SCardLock&) { } + + public: + SCardLock(ISCardOS* os); + ~SCardLock(); + + void Lock(ISCardOS* os); + void Unlock(); + + private: + byte m_lock[LOCK_SIZE]; + }; + +} // namespace act + +#undef LOCK_SIZE + +#endif // ACT_SCardLock_H diff --git a/actlibrary/MacOSX-10.6-x86_64/Release/include/actSCardOSKit.h b/actlibrary/include/actSCardOSKit.h similarity index 96% rename from actlibrary/MacOSX-10.6-x86_64/Release/include/actSCardOSKit.h rename to actlibrary/include/actSCardOSKit.h index 79ae7b0..9c4bce8 100644 --- a/actlibrary/MacOSX-10.6-x86_64/Release/include/actSCardOSKit.h +++ b/actlibrary/include/actSCardOSKit.h @@ -1,170 +1,170 @@ -// --------------------------------------------------------------------------- -// Name: actSCardOSKit.h -// Product: cv act library -// Purpose: registry for factory functions to create SCardOS object -// -// Copyright: (c) 2002 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -// -// Autor: Dr. Xiangdong Wang (XWG) -// Date: 05/13/2002 -// --------------------------------------------------------------------------- - -#ifndef ACT_SCardOSKit_h -#define ACT_SCardOSKit_h - -namespace act -{ - class ISCardOS; - class ISCardAccess; - - /* - ISCardOS* CreateMicardOS(ISCardAccess*); - ISCardOS* CreateMicardo20E(ISCardAccess*); - ISCardOS* CreateMicardo23E(ISCardAccess* ac); - */ - - bool IsACOS(CreateSCardOSPtr ptr); - ISCardOS* CreateACOS_D01(ISCardAccess*); - ISCardOS* CreateACOS_A04(ISCardAccess*); - - bool IsCardOS_M4(CreateSCardOSPtr ptr); - ISCardOS* CreateCardOS_M4(ISCardAccess*); - ISCardOS* CreateCardOS_M4_MoC(ISCardAccess*); - - bool IsCardOS_M4_ECC(CreateSCardOSPtr ptr); - ISCardOS* CreateCardOS_M4_ECC(ISCardAccess*); - - bool IsCardOS_V4(CreateSCardOSPtr ptr); - ISCardOS* CreateCardOS_V4(ISCardAccess*); - - bool IsCardOS_V4_ECC(CreateSCardOSPtr ptr); - ISCardOS* CreateCardOS_V4_ECC(ISCardAccess*); - - bool IsStarCOS(CreateSCardOSPtr ptr); - ISCardOS* CreateStarCOS_3_0(ISCardAccess*); - ISCardOS* CreateStarCOS_3_2(ISCardAccess*); - - bool IsTCOS(CreateSCardOSPtr ptr); - ISCardOS* CreateTCOS_3_0(ISCardAccess*); - - bool IsJavaCardOS(CreateSCardOSPtr ptr); - ISCardOS* CreateJavaCardOS_2_2_2(ISCardAccess*); - ISCardOS* CreateJavaCardOS_2_2_1(ISCardAccess*); - ISCardOS* CreateJavaCardOS_2_2(ISCardAccess*); - ISCardOS* CreateJavaCardOS_2_1_2(ISCardAccess*); - ISCardOS* CreateJavaCardOS_2_1_1(ISCardAccess*); - ISCardOS* CreateJavaCardOS_2_1(ISCardAccess*); - - bool IsISO7816OS(CreateSCardOSPtr ptr); - ISCardOS* CreateISO7816OS(ISCardAccess*); - - // - // Passport OS - // --------------------------------------------------------------------------- - bool IsBACOS(CreateSCardOSPtr ptr); - ISCardOS* CreateBACOS(ISCardAccess* ac); - - bool IsEACOS(CreateSCardOSPtr ptr); - ISCardOS* CreateEACOS(ISCardAccess* ac); - - bool IsEACOS201(CreateSCardOSPtr ptr); - ISCardOS* CreateEACOS201(ISCardAccess* ac); - - bool IsEPAOS(CreateSCardOSPtr ptr); - ISCardOS* CreateEPAOS(ISCardAccess* ac); - - - // --------------------------------------------------------------------------- - inline bool IsACOS(CreateSCardOSPtr ptr) - { - return ptr == CreateACOS_D01 - || ptr == CreateACOS_A04; - } - - // --------------------------------------------------------------------------- - inline bool IsCardOS_M4(CreateSCardOSPtr ptr) - { - return ptr == CreateCardOS_M4 - || ptr == CreateCardOS_M4_MoC; - } - - // --------------------------------------------------------------------------- - inline bool IsCardOS_M4_ECC(CreateSCardOSPtr ptr) - { - return ptr == CreateCardOS_M4_ECC; - } - - // --------------------------------------------------------------------------- - inline bool IsCardOS_V4(CreateSCardOSPtr ptr) - { - return ptr == CreateCardOS_V4; - } - - // --------------------------------------------------------------------------- - inline bool IsCardOS_V4_ECC(CreateSCardOSPtr ptr) - { - return ptr == CreateCardOS_V4_ECC; - } - - // --------------------------------------------------------------------------- - inline bool IsStarCOS(CreateSCardOSPtr ptr) - { - return ptr == CreateStarCOS_3_0 - || ptr == CreateStarCOS_3_2; - } - - // --------------------------------------------------------------------------- - inline bool IsTCOS(CreateSCardOSPtr ptr) - { - return ptr == CreateTCOS_3_0; - } - - // --------------------------------------------------------------------------- - inline bool IsJavaCardOS(CreateSCardOSPtr ptr) - { - return ptr == CreateJavaCardOS_2_2_2 - || ptr == CreateJavaCardOS_2_2_1 - || ptr == CreateJavaCardOS_2_2 - || ptr == CreateJavaCardOS_2_1_2 - || ptr == CreateJavaCardOS_2_1_1 - || ptr == CreateJavaCardOS_2_1; - } - - // --------------------------------------------------------------------------- - inline bool IsISO7816OS(CreateSCardOSPtr ptr) - { - return ptr == CreateISO7816OS; - } - - // - // Passport OS - // --------------------------------------------------------------------------- - inline bool IsBACOS(CreateSCardOSPtr ptr) - { - return ptr == CreateBACOS; - } - - // --------------------------------------------------------------------------- - inline bool IsEACOS(CreateSCardOSPtr ptr) - { - return ptr == CreateEACOS; - } - - // --------------------------------------------------------------------------- - inline bool IsEACOS201(CreateSCardOSPtr ptr) - { - return ptr == CreateEACOS201; - } - - // --------------------------------------------------------------------------- - inline bool IsEPAOS(CreateSCardOSPtr ptr) - { - return ptr == CreateEPAOS; - } - -} // namespace act - -#endif // ACT_SCardOSKit_h +// --------------------------------------------------------------------------- +// Name: actSCardOSKit.h +// Product: cv act library +// Purpose: registry for factory functions to create SCardOS object +// +// Copyright: (c) 2002 cv cryptovision GmbH +// all rights reserved +// Licence: The conditions for the use of this software are regulated +// in the cv act library licence agreement. +// +// Autor: Dr. Xiangdong Wang (XWG) +// Date: 05/13/2002 +// --------------------------------------------------------------------------- + +#ifndef ACT_SCardOSKit_h +#define ACT_SCardOSKit_h + +namespace act +{ + class ISCardOS; + class ISCardAccess; + + /* + ISCardOS* CreateMicardOS(ISCardAccess*); + ISCardOS* CreateMicardo20E(ISCardAccess*); + ISCardOS* CreateMicardo23E(ISCardAccess* ac); + */ + + bool IsACOS(CreateSCardOSPtr ptr); + ISCardOS* CreateACOS_D01(ISCardAccess*); + ISCardOS* CreateACOS_A04(ISCardAccess*); + + bool IsCardOS_M4(CreateSCardOSPtr ptr); + ISCardOS* CreateCardOS_M4(ISCardAccess*); + ISCardOS* CreateCardOS_M4_MoC(ISCardAccess*); + + bool IsCardOS_M4_ECC(CreateSCardOSPtr ptr); + ISCardOS* CreateCardOS_M4_ECC(ISCardAccess*); + + bool IsCardOS_V4(CreateSCardOSPtr ptr); + ISCardOS* CreateCardOS_V4(ISCardAccess*); + + bool IsCardOS_V4_ECC(CreateSCardOSPtr ptr); + ISCardOS* CreateCardOS_V4_ECC(ISCardAccess*); + + bool IsStarCOS(CreateSCardOSPtr ptr); + ISCardOS* CreateStarCOS_3_0(ISCardAccess*); + ISCardOS* CreateStarCOS_3_2(ISCardAccess*); + + bool IsTCOS(CreateSCardOSPtr ptr); + ISCardOS* CreateTCOS_3_0(ISCardAccess*); + + bool IsJavaCardOS(CreateSCardOSPtr ptr); + ISCardOS* CreateJavaCardOS_2_2_2(ISCardAccess*); + ISCardOS* CreateJavaCardOS_2_2_1(ISCardAccess*); + ISCardOS* CreateJavaCardOS_2_2(ISCardAccess*); + ISCardOS* CreateJavaCardOS_2_1_2(ISCardAccess*); + ISCardOS* CreateJavaCardOS_2_1_1(ISCardAccess*); + ISCardOS* CreateJavaCardOS_2_1(ISCardAccess*); + + bool IsISO7816OS(CreateSCardOSPtr ptr); + ISCardOS* CreateISO7816OS(ISCardAccess*); + + // + // Passport OS + // --------------------------------------------------------------------------- + bool IsBACOS(CreateSCardOSPtr ptr); + ISCardOS* CreateBACOS(ISCardAccess* ac); + + bool IsEACOS(CreateSCardOSPtr ptr); + ISCardOS* CreateEACOS(ISCardAccess* ac); + + bool IsEACOS201(CreateSCardOSPtr ptr); + ISCardOS* CreateEACOS201(ISCardAccess* ac); + + bool IsEPAOS(CreateSCardOSPtr ptr); + ISCardOS* CreateEPAOS(ISCardAccess* ac); + + + // --------------------------------------------------------------------------- + inline bool IsACOS(CreateSCardOSPtr ptr) + { + return ptr == CreateACOS_D01 + || ptr == CreateACOS_A04; + } + + // --------------------------------------------------------------------------- + inline bool IsCardOS_M4(CreateSCardOSPtr ptr) + { + return ptr == CreateCardOS_M4 + || ptr == CreateCardOS_M4_MoC; + } + + // --------------------------------------------------------------------------- + inline bool IsCardOS_M4_ECC(CreateSCardOSPtr ptr) + { + return ptr == CreateCardOS_M4_ECC; + } + + // --------------------------------------------------------------------------- + inline bool IsCardOS_V4(CreateSCardOSPtr ptr) + { + return ptr == CreateCardOS_V4; + } + + // --------------------------------------------------------------------------- + inline bool IsCardOS_V4_ECC(CreateSCardOSPtr ptr) + { + return ptr == CreateCardOS_V4_ECC; + } + + // --------------------------------------------------------------------------- + inline bool IsStarCOS(CreateSCardOSPtr ptr) + { + return ptr == CreateStarCOS_3_0 + || ptr == CreateStarCOS_3_2; + } + + // --------------------------------------------------------------------------- + inline bool IsTCOS(CreateSCardOSPtr ptr) + { + return ptr == CreateTCOS_3_0; + } + + // --------------------------------------------------------------------------- + inline bool IsJavaCardOS(CreateSCardOSPtr ptr) + { + return ptr == CreateJavaCardOS_2_2_2 + || ptr == CreateJavaCardOS_2_2_1 + || ptr == CreateJavaCardOS_2_2 + || ptr == CreateJavaCardOS_2_1_2 + || ptr == CreateJavaCardOS_2_1_1 + || ptr == CreateJavaCardOS_2_1; + } + + // --------------------------------------------------------------------------- + inline bool IsISO7816OS(CreateSCardOSPtr ptr) + { + return ptr == CreateISO7816OS; + } + + // + // Passport OS + // --------------------------------------------------------------------------- + inline bool IsBACOS(CreateSCardOSPtr ptr) + { + return ptr == CreateBACOS; + } + + // --------------------------------------------------------------------------- + inline bool IsEACOS(CreateSCardOSPtr ptr) + { + return ptr == CreateEACOS; + } + + // --------------------------------------------------------------------------- + inline bool IsEACOS201(CreateSCardOSPtr ptr) + { + return ptr == CreateEACOS201; + } + + // --------------------------------------------------------------------------- + inline bool IsEPAOS(CreateSCardOSPtr ptr) + { + return ptr == CreateEPAOS; + } + +} // namespace act + +#endif // ACT_SCardOSKit_h diff --git a/actlibrary/MacOSX-10.5-x86_64/Release/include/actSCardOSReg.h b/actlibrary/include/actSCardOSReg.h similarity index 96% rename from actlibrary/MacOSX-10.5-x86_64/Release/include/actSCardOSReg.h rename to actlibrary/include/actSCardOSReg.h index 4156615..f96ee7b 100644 --- a/actlibrary/MacOSX-10.5-x86_64/Release/include/actSCardOSReg.h +++ b/actlibrary/include/actSCardOSReg.h @@ -1,46 +1,46 @@ -// --------------------------------------------------------------------------- -// Name: actSCardOSReg.h -// Product: cv act library -// Purpose: factory functions registry to create SCardOS objects. -// -// Copyright: (c) 2002 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -// -// Autor: Dr. Xiangdong Wang (XWG) -// Date: 04/09/2002 -// --------------------------------------------------------------------------- - -#ifndef ACT_SCardOSReg_h -#define ACT_SCardOSReg_h - -namespace act -{ -# define ACT_ISO7816OS_NAME "ISO7816OS" - - class ISCardOS; - class ISCardAccess; - - typedef ISCardOS* (*CreateSCardOSPtr)(ISCardAccess*); - - struct SCardOSMapEntry - { - const char* Name; - CreateSCardOSPtr CreatePtr; - }; - - class SCardOSReg - { - public: - static ISCardOS* CreateSCardOS(const char* name, ISCardAccess* ac); - static CreateSCardOSPtr GetCreatePointer(const char* name); - static const char* GetName(void* createptr); - static const char* GetNextName(const char* name); - static void Insert(const char* name, CreateSCardOSPtr createptr); - static void Insert(const SCardOSMapEntry* entry); - }; - -} // namespace act - -#endif // ACT_SCardOSReg_h +// --------------------------------------------------------------------------- +// Name: actSCardOSReg.h +// Product: cv act library +// Purpose: factory functions registry to create SCardOS objects. +// +// Copyright: (c) 2002 cv cryptovision GmbH +// all rights reserved +// Licence: The conditions for the use of this software are regulated +// in the cv act library licence agreement. +// +// Autor: Dr. Xiangdong Wang (XWG) +// Date: 04/09/2002 +// --------------------------------------------------------------------------- + +#ifndef ACT_SCardOSReg_h +#define ACT_SCardOSReg_h + +namespace act +{ +# define ACT_ISO7816OS_NAME "ISO7816OS" + + class ISCardOS; + class ISCardAccess; + + typedef ISCardOS* (*CreateSCardOSPtr)(ISCardAccess*); + + struct SCardOSMapEntry + { + const char* Name; + CreateSCardOSPtr CreatePtr; + }; + + class SCardOSReg + { + public: + static ISCardOS* CreateSCardOS(const char* name, ISCardAccess* ac); + static CreateSCardOSPtr GetCreatePointer(const char* name); + static const char* GetName(void* createptr); + static const char* GetNextName(const char* name); + static void Insert(const char* name, CreateSCardOSPtr createptr); + static void Insert(const SCardOSMapEntry* entry); + }; + +} // namespace act + +#endif // ACT_SCardOSReg_h diff --git a/actlibrary/MacOSX-10.6-x86_64/Release/include/actSCardTokenKit.h b/actlibrary/include/actSCardTokenKit.h similarity index 96% rename from actlibrary/MacOSX-10.6-x86_64/Release/include/actSCardTokenKit.h rename to actlibrary/include/actSCardTokenKit.h index 90cb011..7b2d70f 100644 --- a/actlibrary/MacOSX-10.6-x86_64/Release/include/actSCardTokenKit.h +++ b/actlibrary/include/actSCardTokenKit.h @@ -1,105 +1,105 @@ -// --------------------------------------------------------------------------- -// Name: actSCardTokenKit.h -// Product: cv act library -// Purpose: registry for factory functions to create SCardOS and SCardToken objects -// -// Copyright: (c) 2002 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -// -// Autor: Dr. Xiangdong Wang (XWG) -// Date: 05/14/2002 -// --------------------------------------------------------------------------- - -#ifndef ACT_SCardTokenKit_h -#define ACT_SCardTokenKit_h - -namespace act -{ - class ISCardOS; - class SCardToken; - - bool IsStarCOSToken(ISCardOS* os); - SCardToken* CreateStarCOSToken(ISCardOS* os); - - bool IsV4cvProfile(ISCardOS* os); - SCardToken* CreateV4cvProfile(ISCardOS* os); - - bool IsV4cvECProfile(ISCardOS* os); - SCardToken* CreateV4cvECProfile(ISCardOS* os); - - bool IsV4CNSProfile(ISCardOS* os); - SCardToken* CreateV4CNSProfile(ISCardOS* os); - - bool IsNetKey2000Token(ISCardOS* os); - SCardToken* CreateNetKey2000Token(ISCardOS* os); - - bool IsNetKeyE4Token(ISCardOS* os); - SCardToken* CreateNetKeyE4Token(ISCardOS* os); - - bool IsNetKey30Token(ISCardOS* os); - SCardToken* CreateNetKey30Token(ISCardOS* os); - - bool IsNetKeyPKSToken(ISCardOS* os); - SCardToken* CreateNetKeyPKSToken(ISCardOS* os); - - bool IsNetKeyOldToken(ISCardOS* os); - SCardToken* CreateNetKeyOldToken(ISCardOS* os); - - bool IseTrustToken(ISCardOS* os); - SCardToken* CreateeTrustToken(ISCardOS* os); - - bool IsMicardoECToken(ISCardOS* os); - SCardToken* CreateMicardoECToken(ISCardOS* os); - - bool IsM4cvProfile(ISCardOS* os); - SCardToken* CreateM4cvProfile(ISCardOS* os); - - bool IsACOScvProfile(ISCardOS* os); - SCardToken* CreateACOScvProfile(ISCardOS* os); - - bool IsM4SiemensProfile(ISCardOS* os); - SCardToken* CreateM4SiemensProfile(ISCardOS* os); - - bool IsM4cvECProfile(ISCardOS* os); - SCardToken* CreateM4cvECProfile(ISCardOS* os); - - bool IsM4cvMoCProfile(ISCardOS* os); - SCardToken* CreateM4cvMoCProfile(ISCardOS* os); - - bool IsJavaCardAppletManager(ISCardOS* os); - SCardToken* CreateJavaCardAppletManager(ISCardOS* os); - - bool IsJCProfile(ISCardOS* os); - SCardToken* CreateJCProfile(ISCardOS* os); - - // PKCS#15 Profiles - bool IsM4PKCS15Profile(ISCardOS* os); - SCardToken* CreateM4PKCS15Profile(ISCardOS* os); - - bool IsV4PKCS15Profile(ISCardOS* os); - SCardToken* CreateV4PKCS15Profile(ISCardOS* os); - - bool IsV4PKCS15ECProfile(ISCardOS* os); - SCardToken* CreateV4PKCS15ECProfile(ISCardOS* os); - - bool IsJCPKCS15Profile(ISCardOS* os); - SCardToken* CreateJCPKCS15Profile(ISCardOS* os); - - bool IsJCPKCS15ECProfile(ISCardOS* os); - SCardToken* CreateJCPKCS15ECProfile(ISCardOS* os); - - bool IsACOSPKCS15Profile(ISCardOS* os); - SCardToken* CreateACOSPKCS15Profile(ISCardOS* os); - - bool IsStarCOSPKCS15Profile(ISCardOS* os); - SCardToken* CreateStarCOSPKCS15Profile(ISCardOS* os); - - // Passport - bool IsEPAProfile(ISCardOS* os); - SCardToken* CreateEPAProfile(ISCardOS* os); - -} // namespace act - -#endif // ACT_SCardTokenKit_h +// --------------------------------------------------------------------------- +// Name: actSCardTokenKit.h +// Product: cv act library +// Purpose: registry for factory functions to create SCardOS and SCardToken objects +// +// Copyright: (c) 2002 cv cryptovision GmbH +// all rights reserved +// Licence: The conditions for the use of this software are regulated +// in the cv act library licence agreement. +// +// Autor: Dr. Xiangdong Wang (XWG) +// Date: 05/14/2002 +// --------------------------------------------------------------------------- + +#ifndef ACT_SCardTokenKit_h +#define ACT_SCardTokenKit_h + +namespace act +{ + class ISCardOS; + class SCardToken; + + bool IsStarCOSToken(ISCardOS* os); + SCardToken* CreateStarCOSToken(ISCardOS* os); + + bool IsV4cvProfile(ISCardOS* os); + SCardToken* CreateV4cvProfile(ISCardOS* os); + + bool IsV4cvECProfile(ISCardOS* os); + SCardToken* CreateV4cvECProfile(ISCardOS* os); + + bool IsV4CNSProfile(ISCardOS* os); + SCardToken* CreateV4CNSProfile(ISCardOS* os); + + bool IsNetKey2000Token(ISCardOS* os); + SCardToken* CreateNetKey2000Token(ISCardOS* os); + + bool IsNetKeyE4Token(ISCardOS* os); + SCardToken* CreateNetKeyE4Token(ISCardOS* os); + + bool IsNetKey30Token(ISCardOS* os); + SCardToken* CreateNetKey30Token(ISCardOS* os); + + bool IsNetKeyPKSToken(ISCardOS* os); + SCardToken* CreateNetKeyPKSToken(ISCardOS* os); + + bool IsNetKeyOldToken(ISCardOS* os); + SCardToken* CreateNetKeyOldToken(ISCardOS* os); + + bool IseTrustToken(ISCardOS* os); + SCardToken* CreateeTrustToken(ISCardOS* os); + + bool IsMicardoECToken(ISCardOS* os); + SCardToken* CreateMicardoECToken(ISCardOS* os); + + bool IsM4cvProfile(ISCardOS* os); + SCardToken* CreateM4cvProfile(ISCardOS* os); + + bool IsACOScvProfile(ISCardOS* os); + SCardToken* CreateACOScvProfile(ISCardOS* os); + + bool IsM4SiemensProfile(ISCardOS* os); + SCardToken* CreateM4SiemensProfile(ISCardOS* os); + + bool IsM4cvECProfile(ISCardOS* os); + SCardToken* CreateM4cvECProfile(ISCardOS* os); + + bool IsM4cvMoCProfile(ISCardOS* os); + SCardToken* CreateM4cvMoCProfile(ISCardOS* os); + + bool IsJavaCardAppletManager(ISCardOS* os); + SCardToken* CreateJavaCardAppletManager(ISCardOS* os); + + bool IsJCProfile(ISCardOS* os); + SCardToken* CreateJCProfile(ISCardOS* os); + + // PKCS#15 Profiles + bool IsM4PKCS15Profile(ISCardOS* os); + SCardToken* CreateM4PKCS15Profile(ISCardOS* os); + + bool IsV4PKCS15Profile(ISCardOS* os); + SCardToken* CreateV4PKCS15Profile(ISCardOS* os); + + bool IsV4PKCS15ECProfile(ISCardOS* os); + SCardToken* CreateV4PKCS15ECProfile(ISCardOS* os); + + bool IsJCPKCS15Profile(ISCardOS* os); + SCardToken* CreateJCPKCS15Profile(ISCardOS* os); + + bool IsJCPKCS15ECProfile(ISCardOS* os); + SCardToken* CreateJCPKCS15ECProfile(ISCardOS* os); + + bool IsACOSPKCS15Profile(ISCardOS* os); + SCardToken* CreateACOSPKCS15Profile(ISCardOS* os); + + bool IsStarCOSPKCS15Profile(ISCardOS* os); + SCardToken* CreateStarCOSPKCS15Profile(ISCardOS* os); + + // Passport + bool IsEPAProfile(ISCardOS* os); + SCardToken* CreateEPAProfile(ISCardOS* os); + +} // namespace act + +#endif // ACT_SCardTokenKit_h diff --git a/actlibrary/MacOSX-10.6-x86_64/Release/include/actSCardTokenReg.h b/actlibrary/include/actSCardTokenReg.h similarity index 96% rename from actlibrary/MacOSX-10.6-x86_64/Release/include/actSCardTokenReg.h rename to actlibrary/include/actSCardTokenReg.h index 3f26385..9a877d3 100644 --- a/actlibrary/MacOSX-10.6-x86_64/Release/include/actSCardTokenReg.h +++ b/actlibrary/include/actSCardTokenReg.h @@ -1,42 +1,42 @@ -// --------------------------------------------------------------------------- -// Name: actSCardTokenReg.h -// Product: cv act library -// Purpose: factory functions registry to create SCardToken objects. -// -// Copyright: (c) 2002 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -// -// Autor: Dr. Xiangdong Wang (XWG) -// Date: 05/13/2002 -// --------------------------------------------------------------------------- - -#ifndef ACT_SCardTokenReg_h -#define ACT_SCardTokenReg_h - -namespace act -{ - class ISCardOS; - class SCardToken; - - typedef bool (*CheckSCardTokenPtr)(ISCardOS*); - typedef SCardToken* (*CreateSCardTokenPtr)(ISCardOS*); - - struct SCardTokenMapEntry - { - CheckSCardTokenPtr CheckPtr; - CreateSCardTokenPtr CreatePtr; - }; - - class SCardTokenReg - { - public: - static SCardToken* CreateSCardToken(ISCardOS* os); - static void Insert(CheckSCardTokenPtr checkptr, CreateSCardTokenPtr createptr); - static void Insert(const SCardTokenMapEntry* entry); - }; - -} // namespace act - -#endif // ACT_SCardTokenReg_h +// --------------------------------------------------------------------------- +// Name: actSCardTokenReg.h +// Product: cv act library +// Purpose: factory functions registry to create SCardToken objects. +// +// Copyright: (c) 2002 cv cryptovision GmbH +// all rights reserved +// Licence: The conditions for the use of this software are regulated +// in the cv act library licence agreement. +// +// Autor: Dr. Xiangdong Wang (XWG) +// Date: 05/13/2002 +// --------------------------------------------------------------------------- + +#ifndef ACT_SCardTokenReg_h +#define ACT_SCardTokenReg_h + +namespace act +{ + class ISCardOS; + class SCardToken; + + typedef bool (*CheckSCardTokenPtr)(ISCardOS*); + typedef SCardToken* (*CreateSCardTokenPtr)(ISCardOS*); + + struct SCardTokenMapEntry + { + CheckSCardTokenPtr CheckPtr; + CreateSCardTokenPtr CreatePtr; + }; + + class SCardTokenReg + { + public: + static SCardToken* CreateSCardToken(ISCardOS* os); + static void Insert(CheckSCardTokenPtr checkptr, CreateSCardTokenPtr createptr); + static void Insert(const SCardTokenMapEntry* entry); + }; + +} // namespace act + +#endif // ACT_SCardTokenReg_h diff --git a/actlibrary/MacOSX-10.5-x86_64/Release/include/actSCardUtil.h b/actlibrary/include/actSCardUtil.h similarity index 96% rename from actlibrary/MacOSX-10.5-x86_64/Release/include/actSCardUtil.h rename to actlibrary/include/actSCardUtil.h index 2b890d0..12482f3 100644 --- a/actlibrary/MacOSX-10.5-x86_64/Release/include/actSCardUtil.h +++ b/actlibrary/include/actSCardUtil.h @@ -1,27 +1,27 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actSCardUtil.h -// Product: cv act library -// Purpose: useful global functions -// -// Copyright: (c) 2008 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef actSCardUtil_h -#define actSCardUtil_h - -namespace act -{ - // --------------------------------------------------------------------------- - template - inline BlobT short2blob(unsigned short n) - { - byte data[2] = { byte((n >> 8) & 0xff), byte(n & 0xff) }; - return BlobT(&data[0], &data[0] + sizeof(data)); - } - -} // namespace act - -#endif // actSCardUtil_h +////////////////////////////////////////////////////////////////////////////////// +// Name: actSCardUtil.h +// Product: cv act library +// Purpose: useful global functions +// +// Copyright: (c) 2008 cv cryptovision GmbH +// all rights reserved +// Licence: The conditions for the use of this software are regulated +// in the cv act library licence agreement. +////////////////////////////////////////////////////////////////////////////////// + +#ifndef actSCardUtil_h +#define actSCardUtil_h + +namespace act +{ + // --------------------------------------------------------------------------- + template + inline BlobT short2blob(unsigned short n) + { + byte data[2] = { byte((n >> 8) & 0xff), byte(n & 0xff) }; + return BlobT(&data[0], &data[0] + sizeof(data)); + } + +} // namespace act + +#endif // actSCardUtil_h diff --git a/actlibrary/MacOSX-10.5-x86_64/Release/include/actSlotManager.h b/actlibrary/include/actSlotManager.h similarity index 96% rename from actlibrary/MacOSX-10.5-x86_64/Release/include/actSlotManager.h rename to actlibrary/include/actSlotManager.h index 63875f2..1a5af3b 100644 --- a/actlibrary/MacOSX-10.5-x86_64/Release/include/actSlotManager.h +++ b/actlibrary/include/actSlotManager.h @@ -1,81 +1,81 @@ -// --------------------------------------------------------------------------- -// Name: actSlotManager.h -// Product: cv act library -// Purpose: The class SlotManager detects and manages the subsystems and the slots -// -// Copyright: (c) 2002 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -// -// Autor: Dr. Xiangdong Wang -// Markus Tesche -// Date: 03/26/2002 -// --------------------------------------------------------------------------- - -#ifndef ACT_SlotManager_h -#define ACT_SlotManager_h - -#include "actIEventMonitoring.h" - -namespace act -{ - class ISubsystem; - class ISubsystemConfig; - - class ISlot; - class ITokenConfig; - - // - // SlotManager - class SlotManager : public IEventMonitoring - { - private: - struct SubsystemList - { - SubsystemList(ISubsystem* system, SubsystemList* next = 0); - ~SubsystemList(); - - SubsystemList* insert(SubsystemList* prev); - SubsystemList* remove(SubsystemList* prev); - - ISubsystem* system; - SubsystemList* next; - }; - - public: - SlotManager(ITokenConfig* tkcfg = 0); - ~SlotManager(); - - bool Install(ISubsystem* system); - bool Install(ISubsystemConfig* config); - - void Refresh(); - void Disconnect(); - ISubsystem* GetSystem(size_t pos = 0) const; - - // SlotList - int GetSlotNumber() const; - const ISlot* GetSlot(int pos) const; - ISlot* CreateSlot(const char* name) const; - - // IEventMonitoring functions - virtual bool IsMonitored() const; - virtual void StopMonitor(bool force = false); - virtual void StartMonitor(IEventHandler* cmd); - - protected: - IEventHandler* SetMonitor(SubsystemList* begin, IEventHandler* cmd, bool force); - - private: - int m_total; - ITokenConfig* m_tkcfg; - SubsystemList* m_begin; - SubsystemList* m_current; - IEventHandler* m_cmd_root; - IEventHandler* m_cmd_current; - }; - -} // namespace act - -#endif // ACT_SlotManager_h +// --------------------------------------------------------------------------- +// Name: actSlotManager.h +// Product: cv act library +// Purpose: The class SlotManager detects and manages the subsystems and the slots +// +// Copyright: (c) 2002 cv cryptovision GmbH +// all rights reserved +// Licence: The conditions for the use of this software are regulated +// in the cv act library licence agreement. +// +// Autor: Dr. Xiangdong Wang +// Markus Tesche +// Date: 03/26/2002 +// --------------------------------------------------------------------------- + +#ifndef ACT_SlotManager_h +#define ACT_SlotManager_h + +#include "actIEventMonitoring.h" + +namespace act +{ + class ISubsystem; + class ISubsystemConfig; + + class ISlot; + class ITokenConfig; + + // + // SlotManager + class SlotManager : public IEventMonitoring + { + private: + struct SubsystemList + { + SubsystemList(ISubsystem* system, SubsystemList* next = 0); + ~SubsystemList(); + + SubsystemList* insert(SubsystemList* prev); + SubsystemList* remove(SubsystemList* prev); + + ISubsystem* system; + SubsystemList* next; + }; + + public: + SlotManager(ITokenConfig* tkcfg = 0); + ~SlotManager(); + + bool Install(ISubsystem* system); + bool Install(ISubsystemConfig* config); + + void Refresh(); + void Disconnect(); + ISubsystem* GetSystem(size_t pos = 0) const; + + // SlotList + int GetSlotNumber() const; + const ISlot* GetSlot(int pos) const; + ISlot* CreateSlot(const char* name) const; + + // IEventMonitoring functions + virtual bool IsMonitored() const; + virtual void StopMonitor(bool force = false); + virtual void StartMonitor(IEventHandler* cmd); + + protected: + IEventHandler* SetMonitor(SubsystemList* begin, IEventHandler* cmd, bool force); + + private: + int m_total; + ITokenConfig* m_tkcfg; + SubsystemList* m_begin; + SubsystemList* m_current; + IEventHandler* m_cmd_root; + IEventHandler* m_cmd_current; + }; + +} // namespace act + +#endif // ACT_SlotManager_h diff --git a/actlibrary/MacOSX-10.4-ppc/Release/include/actSlotMonitorKit.h b/actlibrary/include/actSlotMonitorKit.h similarity index 96% rename from actlibrary/MacOSX-10.4-ppc/Release/include/actSlotMonitorKit.h rename to actlibrary/include/actSlotMonitorKit.h index 043e5c9..df6d07a 100644 --- a/actlibrary/MacOSX-10.4-ppc/Release/include/actSlotMonitorKit.h +++ b/actlibrary/include/actSlotMonitorKit.h @@ -1,32 +1,32 @@ -// --------------------------------------------------------------------------- -// Name: actSlotMonitorKit.h -// Product: cv act library -// Purpose: registry for factory functions to create slot monitors -// -// Copyright: (c) 2009 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -// -// Autor: Markus Tesche -// Date: 04/12/2009 -// --------------------------------------------------------------------------- - -#ifndef ACT_SlotMonitorKit_h -#define ACT_SlotMonitorKit_h - -namespace act -{ - class ISubsystem; - class ISlot; - class ISlotMonitor; - - // default polling slot monitor - ISlotMonitor* CreateSlotMonitor(ISlot*); - - ISlotMonitor* CreatePCSCSlotMonitor(ISlot*); - ISlotMonitor* CreatePCSCSystemSlotMonitor(ISubsystem*); - -} // namespace act - -#endif // ACT_SlotMonitorKit_h +// --------------------------------------------------------------------------- +// Name: actSlotMonitorKit.h +// Product: cv act library +// Purpose: registry for factory functions to create slot monitors +// +// Copyright: (c) 2009 cv cryptovision GmbH +// all rights reserved +// Licence: The conditions for the use of this software are regulated +// in the cv act library licence agreement. +// +// Autor: Markus Tesche +// Date: 04/12/2009 +// --------------------------------------------------------------------------- + +#ifndef ACT_SlotMonitorKit_h +#define ACT_SlotMonitorKit_h + +namespace act +{ + class ISubsystem; + class ISlot; + class ISlotMonitor; + + // default polling slot monitor + ISlotMonitor* CreateSlotMonitor(ISlot*); + + ISlotMonitor* CreatePCSCSlotMonitor(ISlot*); + ISlotMonitor* CreatePCSCSystemSlotMonitor(ISubsystem*); + +} // namespace act + +#endif // ACT_SlotMonitorKit_h diff --git a/actlibrary/MacOSX-10.4-ppc/Release/include/actSlotMonitorReg.h b/actlibrary/include/actSlotMonitorReg.h similarity index 96% rename from actlibrary/MacOSX-10.4-ppc/Release/include/actSlotMonitorReg.h rename to actlibrary/include/actSlotMonitorReg.h index 60a8d7e..507190d 100644 --- a/actlibrary/MacOSX-10.4-ppc/Release/include/actSlotMonitorReg.h +++ b/actlibrary/include/actSlotMonitorReg.h @@ -1,54 +1,54 @@ -// --------------------------------------------------------------------------- -// Name: actSlotMonitorReg.h -// Product: cv act library -// Purpose: factory functions registry to create Slot-Monitor objects. -// -// Copyright: (c) 2009 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -// -// Autor: Markus Tesche -// Date: 04/12/2009 -// --------------------------------------------------------------------------- - -#ifndef ACT_SlotMonitoReg_h -#define ACT_SlotMonitoReg_h - -#include "actFactoryReg.h" - -namespace act -{ - class ISubsystem; - class ISlot; - class ISlotMonitor; - - typedef ISlotMonitor* (*CreateSlotMonitorPtr)(ISlot*); - typedef ISlotMonitor* (*CreateSystemSlotMonitorPtr)(ISubsystem*); - - struct SlotMonitorRegCreatePtr - { - ISlotMonitor* operator()(const char*, ISlot* slot) const - { - return createSlotMonitor != 0 ? createSlotMonitor(slot) : 0; - } - - ISlotMonitor* operator()(const char*, ISubsystem* system) const - { - return createSystemSlotMonitor != 0 ? createSystemSlotMonitor(system) : 0; - } - - CreateSlotMonitorPtr createSlotMonitor; - CreateSystemSlotMonitorPtr createSystemSlotMonitor; - }; - - - typedef FactoryMapEntry SlotMonitorRegEntry; - - typedef FactoryReg - < ISlotMonitor, SlotMonitorRegCreatePtr, SlotMonitorRegEntry - > SlotMonitorReg; - -} // namespace act - -#endif // ACT_SlotMonitoReg_h +// --------------------------------------------------------------------------- +// Name: actSlotMonitorReg.h +// Product: cv act library +// Purpose: factory functions registry to create Slot-Monitor objects. +// +// Copyright: (c) 2009 cv cryptovision GmbH +// all rights reserved +// Licence: The conditions for the use of this software are regulated +// in the cv act library licence agreement. +// +// Autor: Markus Tesche +// Date: 04/12/2009 +// --------------------------------------------------------------------------- + +#ifndef ACT_SlotMonitoReg_h +#define ACT_SlotMonitoReg_h + +#include "actFactoryReg.h" + +namespace act +{ + class ISubsystem; + class ISlot; + class ISlotMonitor; + + typedef ISlotMonitor* (*CreateSlotMonitorPtr)(ISlot*); + typedef ISlotMonitor* (*CreateSystemSlotMonitorPtr)(ISubsystem*); + + struct SlotMonitorRegCreatePtr + { + ISlotMonitor* operator()(const char*, ISlot* slot) const + { + return createSlotMonitor != 0 ? createSlotMonitor(slot) : 0; + } + + ISlotMonitor* operator()(const char*, ISubsystem* system) const + { + return createSystemSlotMonitor != 0 ? createSystemSlotMonitor(system) : 0; + } + + CreateSlotMonitorPtr createSlotMonitor; + CreateSystemSlotMonitorPtr createSystemSlotMonitor; + }; + + + typedef FactoryMapEntry SlotMonitorRegEntry; + + typedef FactoryReg + < ISlotMonitor, SlotMonitorRegCreatePtr, SlotMonitorRegEntry + > SlotMonitorReg; + +} // namespace act + +#endif // ACT_SlotMonitoReg_h diff --git a/actlibrary/MacOSX-10.6-x86_64/Release/include/actState.h b/actlibrary/include/actState.h similarity index 96% rename from actlibrary/MacOSX-10.6-x86_64/Release/include/actState.h rename to actlibrary/include/actState.h index c7e1cbf..e066f20 100644 --- a/actlibrary/MacOSX-10.6-x86_64/Release/include/actState.h +++ b/actlibrary/include/actState.h @@ -1,29 +1,29 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actState.h -// Product: cv act library -// Purpose: -// -// Copyright: (c) 2000 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_STATE_H -#define ACT_STATE_H - -namespace act -{ - - const int READY=0; - const int SIGNATURE_OK=1; - const int IS_FINALIZED=2; - const int DECRYPT_ERROR=3; - const int CERTIFICATE_OK=4; - const int CERTIFICATE_ERROR=5; - const int VERIFY_ERROR=6; - -} // namspace act - -#endif - +////////////////////////////////////////////////////////////////////////////////// +// Name: actState.h +// Product: cv act library +// Purpose: +// +// Copyright: (c) 2000 cv cryptovision GmbH +// all rights reserved +// Licence: The conditions for the use of this software are regulated +// in the cv act library licence agreement. +////////////////////////////////////////////////////////////////////////////////// + +#ifndef ACT_STATE_H +#define ACT_STATE_H + +namespace act +{ + + const int READY=0; + const int SIGNATURE_OK=1; + const int IS_FINALIZED=2; + const int DECRYPT_ERROR=3; + const int CERTIFICATE_OK=4; + const int CERTIFICATE_ERROR=5; + const int VERIFY_ERROR=6; + +} // namspace act + +#endif + diff --git a/actlibrary/MacOSX-10.6-x86_64/Release/include/actStreamCipherKit.h b/actlibrary/include/actStreamCipherKit.h similarity index 96% rename from actlibrary/MacOSX-10.6-x86_64/Release/include/actStreamCipherKit.h rename to actlibrary/include/actStreamCipherKit.h index efc74fa..27039b1 100644 --- a/actlibrary/MacOSX-10.6-x86_64/Release/include/actStreamCipherKit.h +++ b/actlibrary/include/actStreamCipherKit.h @@ -1,22 +1,22 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actStreamCipherKit.h -// Product: cv act library -// Purpose: declaration of all factory functions -// -// Copyright: (c) 2001 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_StreamCipherKit_h -#define ACT_StreamCipherKit_h - -namespace act -{ - class IStreamCipher; - - IStreamCipher* CreateARC4(); -} -#endif - +////////////////////////////////////////////////////////////////////////////////// +// Name: actStreamCipherKit.h +// Product: cv act library +// Purpose: declaration of all factory functions +// +// Copyright: (c) 2001 cv cryptovision GmbH +// all rights reserved +// Licence: The conditions for the use of this software are regulated +// in the cv act library licence agreement. +////////////////////////////////////////////////////////////////////////////////// + +#ifndef ACT_StreamCipherKit_h +#define ACT_StreamCipherKit_h + +namespace act +{ + class IStreamCipher; + + IStreamCipher* CreateARC4(); +} +#endif + diff --git a/actlibrary/MacOSX-10.5-x86_64/Release/include/actStreamCipherReg.h b/actlibrary/include/actStreamCipherReg.h similarity index 96% rename from actlibrary/MacOSX-10.5-x86_64/Release/include/actStreamCipherReg.h rename to actlibrary/include/actStreamCipherReg.h index 4cc5b22..0f4c30d 100644 --- a/actlibrary/MacOSX-10.5-x86_64/Release/include/actStreamCipherReg.h +++ b/actlibrary/include/actStreamCipherReg.h @@ -1,39 +1,39 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actStreamCipherReg.h -// Product: cv act library -// Purpose: registry for factory functions in actStreamCipherKit.h -// -// Copyright: (c) 2001 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_StreamCipherReg_h -#define ACT_StreamCipherReg_h - -namespace act -{ - class IStreamCipher; - - typedef IStreamCipher* (*CreateStreamCipherPtr)(); - - struct StreamCipherMapEntry { - const char* Name; - CreateStreamCipherPtr CreatePtr; - }; - - class StreamCipherReg - { - public: - static IStreamCipher* CreateStreamCipher(const char* name); - static CreateStreamCipherPtr GetCreatePointer(const char* name); - static const char* GetName(void* createptr); - static const char* GetNextName(const char* name); - static void Insert(const char* name,CreateStreamCipherPtr createptr); - static void Insert(const StreamCipherMapEntry* map); - }; -} - -#endif - +////////////////////////////////////////////////////////////////////////////////// +// Name: actStreamCipherReg.h +// Product: cv act library +// Purpose: registry for factory functions in actStreamCipherKit.h +// +// Copyright: (c) 2001 cv cryptovision GmbH +// all rights reserved +// Licence: The conditions for the use of this software are regulated +// in the cv act library licence agreement. +////////////////////////////////////////////////////////////////////////////////// + +#ifndef ACT_StreamCipherReg_h +#define ACT_StreamCipherReg_h + +namespace act +{ + class IStreamCipher; + + typedef IStreamCipher* (*CreateStreamCipherPtr)(); + + struct StreamCipherMapEntry { + const char* Name; + CreateStreamCipherPtr CreatePtr; + }; + + class StreamCipherReg + { + public: + static IStreamCipher* CreateStreamCipher(const char* name); + static CreateStreamCipherPtr GetCreatePointer(const char* name); + static const char* GetName(void* createptr); + static const char* GetNextName(const char* name); + static void Insert(const char* name,CreateStreamCipherPtr createptr); + static void Insert(const StreamCipherMapEntry* map); + }; +} + +#endif + diff --git a/actlibrary/MacOSX-10.4-ppc/Release/include/actSubsystemKit.h b/actlibrary/include/actSubsystemKit.h similarity index 96% rename from actlibrary/MacOSX-10.4-ppc/Release/include/actSubsystemKit.h rename to actlibrary/include/actSubsystemKit.h index c3452f0..ccdc15c 100644 --- a/actlibrary/MacOSX-10.4-ppc/Release/include/actSubsystemKit.h +++ b/actlibrary/include/actSubsystemKit.h @@ -1,33 +1,33 @@ -// --------------------------------------------------------------------------- -// Name: actSubsystemKit.h -// Product: cv act library -// Purpose: registry for factory functions to create subsystem -// -// Copyright: (c) 2002 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -// -// Autor: Dr. Xiangdong Wang (XWG) -// Date: 05/13/2002 -// --------------------------------------------------------------------------- - -#ifndef ACT_SubsystemKit_h -#define ACT_SubsystemKit_h - -namespace act -{ - class ISubsystem; - class ISubsystemConfig; - - ISubsystem* CreateCTAPISystem(const char*); - - ISubsystem* CreatePCSCSystem(const char*); - ISubsystem* CreatePCSCSystemEx(ISubsystemConfig*); - - ISubsystem* CreateCSPSystem(const char*); - ISubsystem* CreatePKCS11System(const char*); - -} // namespace act - -#endif // ACT_SubsystemKit_h +// --------------------------------------------------------------------------- +// Name: actSubsystemKit.h +// Product: cv act library +// Purpose: registry for factory functions to create subsystem +// +// Copyright: (c) 2002 cv cryptovision GmbH +// all rights reserved +// Licence: The conditions for the use of this software are regulated +// in the cv act library licence agreement. +// +// Autor: Dr. Xiangdong Wang (XWG) +// Date: 05/13/2002 +// --------------------------------------------------------------------------- + +#ifndef ACT_SubsystemKit_h +#define ACT_SubsystemKit_h + +namespace act +{ + class ISubsystem; + class ISubsystemConfig; + + ISubsystem* CreateCTAPISystem(const char*); + + ISubsystem* CreatePCSCSystem(const char*); + ISubsystem* CreatePCSCSystemEx(ISubsystemConfig*); + + ISubsystem* CreateCSPSystem(const char*); + ISubsystem* CreatePKCS11System(const char*); + +} // namespace act + +#endif // ACT_SubsystemKit_h diff --git a/actlibrary/MacOSX-10.6-x86_64/Release/include/actSubsystemReg.h b/actlibrary/include/actSubsystemReg.h similarity index 96% rename from actlibrary/MacOSX-10.6-x86_64/Release/include/actSubsystemReg.h rename to actlibrary/include/actSubsystemReg.h index 7a82df8..004cad8 100644 --- a/actlibrary/MacOSX-10.6-x86_64/Release/include/actSubsystemReg.h +++ b/actlibrary/include/actSubsystemReg.h @@ -1,53 +1,53 @@ -// --------------------------------------------------------------------------- -// Name: actSubsystemReg.h -// Product: cv act library -// Purpose: factory functions registry to create Subsystem objects. -// -// Copyright: (c) 2002 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -// -// Autor: Dr. Xiangdong Wang (XWG) -// Markus Tesche -// Date: 05/14/2002 -// --------------------------------------------------------------------------- - -#ifndef ACT_SubsystemReg_h -#define ACT_SubsystemReg_h - -namespace act -{ - class ISubsystem; - class ISubsystemConfig; - - typedef ISubsystem* (*CreateSubsystemPtr)(const char*); - typedef ISubsystem* (*CreateSubsystemExPtr)(ISubsystemConfig*); - - struct SubsystemMapEntry - { - const char* Name; - CreateSubsystemPtr CreatePtr; - CreateSubsystemExPtr CreateExPtr; - }; - - class SubsystemReg - { - public: - static ISubsystem* CreateSubsystem(ISubsystemConfig* config); - static ISubsystem* CreateSubsystem(const char* name, const char* dll_name = 0); - - static CreateSubsystemPtr GetCreatePointer(const char* name); - static CreateSubsystemExPtr GetCreateExPointer(const char* name); - - static const char* GetName(void* createptr); - static const char* GetNextName(const char* name); - - static void Insert(const char* name, CreateSubsystemPtr createptr); - static void Insert(const char* name, CreateSubsystemExPtr createexptr); - static void Insert(const SubsystemMapEntry* map); - }; - -} // namespace act - -#endif // ACT_SubsystemReg_h +// --------------------------------------------------------------------------- +// Name: actSubsystemReg.h +// Product: cv act library +// Purpose: factory functions registry to create Subsystem objects. +// +// Copyright: (c) 2002 cv cryptovision GmbH +// all rights reserved +// Licence: The conditions for the use of this software are regulated +// in the cv act library licence agreement. +// +// Autor: Dr. Xiangdong Wang (XWG) +// Markus Tesche +// Date: 05/14/2002 +// --------------------------------------------------------------------------- + +#ifndef ACT_SubsystemReg_h +#define ACT_SubsystemReg_h + +namespace act +{ + class ISubsystem; + class ISubsystemConfig; + + typedef ISubsystem* (*CreateSubsystemPtr)(const char*); + typedef ISubsystem* (*CreateSubsystemExPtr)(ISubsystemConfig*); + + struct SubsystemMapEntry + { + const char* Name; + CreateSubsystemPtr CreatePtr; + CreateSubsystemExPtr CreateExPtr; + }; + + class SubsystemReg + { + public: + static ISubsystem* CreateSubsystem(ISubsystemConfig* config); + static ISubsystem* CreateSubsystem(const char* name, const char* dll_name = 0); + + static CreateSubsystemPtr GetCreatePointer(const char* name); + static CreateSubsystemExPtr GetCreateExPointer(const char* name); + + static const char* GetName(void* createptr); + static const char* GetNextName(const char* name); + + static void Insert(const char* name, CreateSubsystemPtr createptr); + static void Insert(const char* name, CreateSubsystemExPtr createexptr); + static void Insert(const SubsystemMapEntry* map); + }; + +} // namespace act + +#endif // ACT_SubsystemReg_h diff --git a/actlibrary/MacOSX-10.5-x86_64/Release/include/actTokenAuthProtocolKit.h b/actlibrary/include/actTokenAuthProtocolKit.h similarity index 97% rename from actlibrary/MacOSX-10.5-x86_64/Release/include/actTokenAuthProtocolKit.h rename to actlibrary/include/actTokenAuthProtocolKit.h index d528776..21057ca 100644 --- a/actlibrary/MacOSX-10.5-x86_64/Release/include/actTokenAuthProtocolKit.h +++ b/actlibrary/include/actTokenAuthProtocolKit.h @@ -1,30 +1,30 @@ -// --------------------------------------------------------------------------- -// Name: actTokenAuthProtocolKit.h -// Product: cv act library -// Purpose: Factory functions to create specific ITokenAuthProtocol objects. -// -// Copyright: (c) 2009 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -// -// Autor: Markus Tesche -// Date: 14/10/2008 -// --------------------------------------------------------------------------- - -#ifndef ACT_TokenAuthProtocolKit_h -#define ACT_TokenAuthProtocolKit_h - -namespace act -{ - class ITokenAuthProtocol; - - ITokenAuthProtocol* CreateTokenAuthPACE(const char* name); // EACv2-PACE - ITokenAuthProtocol* CreateTokenAuthTA(const char* name); // EACv2-TA - ITokenAuthProtocol* CreateTokenAuthCA(const char* name); // EACv2-CA - - ITokenAuthProtocol* CreateTokenAuthBAC(const char* name); // EACv1-BAC - -} // namespace act - -#endif // ACT_TokenAuthProtocolKit_h +// --------------------------------------------------------------------------- +// Name: actTokenAuthProtocolKit.h +// Product: cv act library +// Purpose: Factory functions to create specific ITokenAuthProtocol objects. +// +// Copyright: (c) 2009 cv cryptovision GmbH +// all rights reserved +// Licence: The conditions for the use of this software are regulated +// in the cv act library licence agreement. +// +// Autor: Markus Tesche +// Date: 14/10/2008 +// --------------------------------------------------------------------------- + +#ifndef ACT_TokenAuthProtocolKit_h +#define ACT_TokenAuthProtocolKit_h + +namespace act +{ + class ITokenAuthProtocol; + + ITokenAuthProtocol* CreateTokenAuthPACE(const char* name); // EACv2-PACE + ITokenAuthProtocol* CreateTokenAuthTA(const char* name); // EACv2-TA + ITokenAuthProtocol* CreateTokenAuthCA(const char* name); // EACv2-CA + + ITokenAuthProtocol* CreateTokenAuthBAC(const char* name); // EACv1-BAC + +} // namespace act + +#endif // ACT_TokenAuthProtocolKit_h diff --git a/actlibrary/MacOSX-10.4-ppc/Release/include/actTokenAuthProtocolReg.h b/actlibrary/include/actTokenAuthProtocolReg.h similarity index 96% rename from actlibrary/MacOSX-10.4-ppc/Release/include/actTokenAuthProtocolReg.h rename to actlibrary/include/actTokenAuthProtocolReg.h index 9f2924d..6becc88 100644 --- a/actlibrary/MacOSX-10.4-ppc/Release/include/actTokenAuthProtocolReg.h +++ b/actlibrary/include/actTokenAuthProtocolReg.h @@ -1,33 +1,33 @@ -// --------------------------------------------------------------------------- -// Name: actTokenAuthProtocolReg.h -// Product: cv act library -// Purpose: factory functions registry to create ITokenAuthProtocol objects. -// -// Copyright: (c) 2009 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -// -// Autor: Markus Tesche -// Date: 14/10/2009 -// --------------------------------------------------------------------------- - -#ifndef ACT_TokenAuthProtocolReg_h -#define ACT_TokenAuthProtocolReg_h - -#include "actFactoryReg.h" - -namespace act -{ - class ITokenAuthProtocol; - - typedef ITokenAuthProtocol* (*CreateTokenAuthProtocolPtr)(const char*); - typedef FactoryMapEntry TokenAuthProtocolMapEntry; - - typedef FactoryReg - < ITokenAuthProtocol, CreateTokenAuthProtocolPtr, TokenAuthProtocolMapEntry - > TokenAuthProtocolReg; - -} // namespace act - -#endif // ACT_TokenAuthProtocolReg_h +// --------------------------------------------------------------------------- +// Name: actTokenAuthProtocolReg.h +// Product: cv act library +// Purpose: factory functions registry to create ITokenAuthProtocol objects. +// +// Copyright: (c) 2009 cv cryptovision GmbH +// all rights reserved +// Licence: The conditions for the use of this software are regulated +// in the cv act library licence agreement. +// +// Autor: Markus Tesche +// Date: 14/10/2009 +// --------------------------------------------------------------------------- + +#ifndef ACT_TokenAuthProtocolReg_h +#define ACT_TokenAuthProtocolReg_h + +#include "actFactoryReg.h" + +namespace act +{ + class ITokenAuthProtocol; + + typedef ITokenAuthProtocol* (*CreateTokenAuthProtocolPtr)(const char*); + typedef FactoryMapEntry TokenAuthProtocolMapEntry; + + typedef FactoryReg + < ITokenAuthProtocol, CreateTokenAuthProtocolPtr, TokenAuthProtocolMapEntry + > TokenAuthProtocolReg; + +} // namespace act + +#endif // ACT_TokenAuthProtocolReg_h diff --git a/actlibrary/MacOSX-10.6-x86_64/Release/include/actTokenBase.h b/actlibrary/include/actTokenBase.h similarity index 95% rename from actlibrary/MacOSX-10.6-x86_64/Release/include/actTokenBase.h rename to actlibrary/include/actTokenBase.h index d31b0e7..dc4f125 100644 --- a/actlibrary/MacOSX-10.6-x86_64/Release/include/actTokenBase.h +++ b/actlibrary/include/actTokenBase.h @@ -1,200 +1,200 @@ -// --------------------------------------------------------------------------- -// Name: actTokenBase.h -// Product: cv act library -// Purpose: Declares common token enums and constants. -// -// Copyright: (c) 2010 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -// -// Autor: Markus Tesche -// Date: 03/24/2010 -// --------------------------------------------------------------------------- - -#ifndef ACT_TokenBase_h -#define ACT_TokenBase_h - -namespace act -{ - enum TokenError - { - TOKEN_SUCCESS = 0, - TOKEN_FUNCTION_NOT_SUPPORTED = -1, - TOKEN_FUNCTION_FAILED = -2, - TOKEN_LOCKED = -3 - }; - - enum TokenType - { - TOKEN_RSA = 0x0001, - TOKEN_DSA = 0x0002, - TOKEN_DH = 0x0004, - TOKEN_ECDSA = 0x0008, - TOKEN_ECDH = 0x0010, - TOKEN_SECRET = 0x0080, - - TOKEN_BAC = 0x0100, - TOKEN_EAC = 0x0200, - TOKEN_EPA = 0x0400, - }; - - enum TokenStatusCode - { - TOKEN_EMPTY = 0x0000, - TOKEN_INITIALIZED = 0x0001, - TOKEN_PERSONALIZED = 0x0002 - }; - - enum ProfileType - { - PROFILE_EMPTY = 0x00, - PROFILE_CV = 0x01, - PROFILE_CNS = 0x02, - PROFILE_GDO = 0x03, - PROFILE_CVEC = 0x04, - PROFILE_SIGG = 0x05, - PROFILE_JC = 0x06, - PROFILE_MICARDOEC = 0x07, - PROFILE_STARCOS = 0x08, - PROFILE_NETKEY = 0x09, - PROFILE_CVMOC = 0x0a, - - PROFILE_PKCS15 = 0x0f, - PROFILE_PKCS15_mEAC = 0x10, // includes PACE-Pin's - PROFILE_PKCS15_mEAC_TA = 0x11, // includes PACE-Pin's and TA-IS, TA-ST, TA-AT - - PROFILE_BAC = 0x80, - PROFILE_EAC = 0x81, - PROFILE_EAC201 = 0x82, - PROFILE_EPA = 0x83, - - PROFILE_PKCS11 = 0xa0, - PROFILE_CSP = 0xa1, - PROFILE_MD = 0xa2, - - PROFILE_ANY = 0xfe, - PROFILE_UNKNOWN = 0xff - }; - - // usage of key, pin - enum KeyUsage - { - KEY_EMPTY = 0x0000, - SIGN_DATA = 0x0001, - DEC_DATA = 0x0002, - AGREE_KEY = 0x0004, - AUTH_DATA = 0x0008, - BLOCKCIPHER_KEY = 0x0010, - VERIFY_DATA = 0x0020, - ENC_DATA = 0x0040, - UNLOCK_PIN = 0x0100, - UPDATE_BINARY = 0x0200, - DELETE_BINARY = 0x0400, - ALL_USAGE = 0xffff, - - // custom usage - SIGN_HASH = 0x00010000, - CUSTOM_USAGE_MASK = 0xffff0000, - - // combined usage - ENC_DEC_DATA = DEC_DATA | ENC_DATA, - SIGN_DEC_DATA = DEC_DATA | SIGN_DATA, - SIGN_HASH_DATA = SIGN_HASH | SIGN_DATA, - }; - - enum KeyType - { // NOTE: Never change (!), used for serialization. - KEY_UNKNOWN = 0xffff, - - KEY_RSA = 0x0000, - KEY_DSA = 0x0001, - KEY_DH = 0x0002, - KEY_ECDSA = 0x0003, - KEY_ECDH = 0x0004, - - KEY_SECRET = 0x0010, - KEY_DES = 0x0001 + KEY_SECRET, - KEY_2DES = 0x0002 + KEY_SECRET, - KEY_3DES = 0x0003 + KEY_SECRET, - KEY_AES = 0x0004 + KEY_SECRET, - - KEY_TYPE_MASK = 0x001f - }; - - enum CertificateType - { // NOTE: Never change (!), used for serialization. - CERT_UNKNOWN = 0xffff, - - CERT_X509 = 0x0000, - CERT_CV = 0x0001 - }; - - enum CertificateUsage - { - EMPTY_CERT = 0x0000, - SIGN_CERT = 0x0001, - DEC_CERT = 0x0002, - ROOT_CERT = 0x0004, - AUTH_CERT = 0x0008, - CA_CERT = 0x0010, - SMARTCARD_LOGON_CERT = 0x0100, // lib version >= 1.5 - UNSPECIFIED_CERT = 0xffff - }; - - enum SecStatus - { - SS_INVALID = 0x0000, - SS_AUTHENTICATED = 0x0001, - SS_UNKNOWN = 0xffff, - }; - - enum AUTH_OBJ_TYPE - { - AUTH_OBJ_PIN = 0xff, // -1 - AUTH_OBJ_BIOMETRIC = 0xfe, // -2 - }; - - typedef ulong IDType; - typedef ushort FIDType; - - const IDType ID_INVALID = 0; - const FIDType FID_INVALID = 0x0000; - - // - // FileInfo - struct FileInfo - { - explicit FileInfo(FIDType val_fid = FID_INVALID, IDType val_rec_nr = ID_INVALID) - : fid(val_fid) - , rec_nr(val_rec_nr) - { } - - FIDType fid; - IDType rec_nr; - }; - - // LengthInfo - struct LengthInfo - { - LengthInfo(ulong _minLen = 0, ulong _maxLen = 0, ulong _storedLen = 0) - : minLen(_minLen) - , maxLen(_maxLen) - , storedLen(_storedLen) - { } - - void swap(LengthInfo& other) - { - std::swap(minLen, other.minLen); - std::swap(storedLen, other.storedLen); - std::swap(maxLen, other.maxLen); - } - - ulong minLen; - ulong storedLen; - ulong maxLen; - }; - -} // namespace act - -#endif // ACT_TokenBase_h +// --------------------------------------------------------------------------- +// Name: actTokenBase.h +// Product: cv act library +// Purpose: Declares common token enums and constants. +// +// Copyright: (c) 2010 cv cryptovision GmbH +// all rights reserved +// Licence: The conditions for the use of this software are regulated +// in the cv act library licence agreement. +// +// Autor: Markus Tesche +// Date: 03/24/2010 +// --------------------------------------------------------------------------- + +#ifndef ACT_TokenBase_h +#define ACT_TokenBase_h + +namespace act +{ + enum TokenError + { + TOKEN_SUCCESS = 0, + TOKEN_FUNCTION_NOT_SUPPORTED = -1, + TOKEN_FUNCTION_FAILED = -2, + TOKEN_LOCKED = -3 + }; + + enum TokenType + { + TOKEN_RSA = 0x0001, + TOKEN_DSA = 0x0002, + TOKEN_DH = 0x0004, + TOKEN_ECDSA = 0x0008, + TOKEN_ECDH = 0x0010, + TOKEN_SECRET = 0x0080, + + TOKEN_BAC = 0x0100, + TOKEN_EAC = 0x0200, + TOKEN_EPA = 0x0400, + }; + + enum TokenStatusCode + { + TOKEN_EMPTY = 0x0000, + TOKEN_INITIALIZED = 0x0001, + TOKEN_PERSONALIZED = 0x0002 + }; + + enum ProfileType + { + PROFILE_EMPTY = 0x00, + PROFILE_CV = 0x01, + PROFILE_CNS = 0x02, + PROFILE_GDO = 0x03, + PROFILE_CVEC = 0x04, + PROFILE_SIGG = 0x05, + PROFILE_JC = 0x06, + PROFILE_MICARDOEC = 0x07, + PROFILE_STARCOS = 0x08, + PROFILE_NETKEY = 0x09, + PROFILE_CVMOC = 0x0a, + + PROFILE_PKCS15 = 0x0f, + PROFILE_PKCS15_mEAC = 0x10, // includes PACE-Pin's + PROFILE_PKCS15_mEAC_TA = 0x11, // includes PACE-Pin's and TA-IS, TA-ST, TA-AT + + PROFILE_BAC = 0x80, + PROFILE_EAC = 0x81, + PROFILE_EAC201 = 0x82, + PROFILE_EPA = 0x83, + + PROFILE_PKCS11 = 0xa0, + PROFILE_CSP = 0xa1, + PROFILE_MD = 0xa2, + + PROFILE_ANY = 0xfe, + PROFILE_UNKNOWN = 0xff + }; + + // usage of key, pin + enum KeyUsage + { + KEY_EMPTY = 0x0000, + SIGN_DATA = 0x0001, + DEC_DATA = 0x0002, + AGREE_KEY = 0x0004, + AUTH_DATA = 0x0008, + BLOCKCIPHER_KEY = 0x0010, + VERIFY_DATA = 0x0020, + ENC_DATA = 0x0040, + UNLOCK_PIN = 0x0100, + UPDATE_BINARY = 0x0200, + DELETE_BINARY = 0x0400, + ALL_USAGE = 0xffff, + + // custom usage + SIGN_HASH = 0x00010000, + CUSTOM_USAGE_MASK = 0xffff0000, + + // combined usage + ENC_DEC_DATA = DEC_DATA | ENC_DATA, + SIGN_DEC_DATA = DEC_DATA | SIGN_DATA, + SIGN_HASH_DATA = SIGN_HASH | SIGN_DATA, + }; + + enum KeyType + { // NOTE: Never change (!), used for serialization. + KEY_UNKNOWN = 0xffff, + + KEY_RSA = 0x0000, + KEY_DSA = 0x0001, + KEY_DH = 0x0002, + KEY_ECDSA = 0x0003, + KEY_ECDH = 0x0004, + + KEY_SECRET = 0x0010, + KEY_DES = 0x0001 + KEY_SECRET, + KEY_2DES = 0x0002 + KEY_SECRET, + KEY_3DES = 0x0003 + KEY_SECRET, + KEY_AES = 0x0004 + KEY_SECRET, + + KEY_TYPE_MASK = 0x001f + }; + + enum CertificateType + { // NOTE: Never change (!), used for serialization. + CERT_UNKNOWN = 0xffff, + + CERT_X509 = 0x0000, + CERT_CV = 0x0001 + }; + + enum CertificateUsage + { + EMPTY_CERT = 0x0000, + SIGN_CERT = 0x0001, + DEC_CERT = 0x0002, + ROOT_CERT = 0x0004, + AUTH_CERT = 0x0008, + CA_CERT = 0x0010, + SMARTCARD_LOGON_CERT = 0x0100, // lib version >= 1.5 + UNSPECIFIED_CERT = 0xffff + }; + + enum SecStatus + { + SS_INVALID = 0x0000, + SS_AUTHENTICATED = 0x0001, + SS_UNKNOWN = 0xffff, + }; + + enum AUTH_OBJ_TYPE + { + AUTH_OBJ_PIN = 0xff, // -1 + AUTH_OBJ_BIOMETRIC = 0xfe, // -2 + }; + + typedef ulong IDType; + typedef ushort FIDType; + + const IDType ID_INVALID = 0; + const FIDType FID_INVALID = 0x0000; + + // + // FileInfo + struct FileInfo + { + explicit FileInfo(FIDType val_fid = FID_INVALID, IDType val_rec_nr = ID_INVALID) + : fid(val_fid) + , rec_nr(val_rec_nr) + { } + + FIDType fid; + IDType rec_nr; + }; + + // LengthInfo + struct LengthInfo + { + LengthInfo(ulong _minLen = 0, ulong _maxLen = 0, ulong _storedLen = 0) + : minLen(_minLen) + , maxLen(_maxLen) + , storedLen(_storedLen) + { } + + void swap(LengthInfo& other) + { + std::swap(minLen, other.minLen); + std::swap(storedLen, other.storedLen); + std::swap(maxLen, other.maxLen); + } + + ulong minLen; + ulong storedLen; + ulong maxLen; + }; + +} // namespace act + +#endif // ACT_TokenBase_h diff --git a/actlibrary/MacOSX-10.6-x86_64/Release/include/actTokenConfig.h b/actlibrary/include/actTokenConfig.h similarity index 97% rename from actlibrary/MacOSX-10.6-x86_64/Release/include/actTokenConfig.h rename to actlibrary/include/actTokenConfig.h index 45844c1..7241dc9 100644 --- a/actlibrary/MacOSX-10.6-x86_64/Release/include/actTokenConfig.h +++ b/actlibrary/include/actTokenConfig.h @@ -1,104 +1,104 @@ -// --------------------------------------------------------------------------- -// Name: actTokenConfig.h -// Product: cv act library -// Purpose: Declares all availabl param_id's for ITokenCofing. -// -// Copyright: (c) 2009 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -// -// Autor: Markus Tesche -// Date: 05/07/2009 -// --------------------------------------------------------------------------- - -#ifndef ACT_TokenConfig_h -#define ACT_TokenConfig_h - -#include "actMode.h" -#include "actIParam.h" - -namespace act -{ - // according to ISO 24727-3, definition of supported Data Set's - enum DataSetList - { - DATA_SET_NONE = 0, - DATA_SET_PUBLIC_DATA = (1 << 0), - DATA_SET_PRIVATE_DATA = (1 << 1), - DATA_SET_CERTIFICATES = (1 << 2), - DATA_SET_USEFUL_CERTIFICATES = (1 << 3), - DATA_SET_TRUSTED_CERTIFICATES = (1 << 4), - DATA_SET_TRUSTED_PUBLIC_KEYS = (1 << 5), - // - // ... - DATA_SET_NEXT = (1 << 6), - DATA_SET_MASK = DATA_SET_NEXT - 1, - DATA_SET_ALL = PARAM_INVALID_VALUE, - }; - - enum ObjectTypeList - { - OBJECT_TYPE_NONE = 0, - OBJECT_TYPE_KEY_DES = (1 << 0), - OBJECT_TYPE_KEY_2DES = (1 << 1), - OBJECT_TYPE_KEY_3DES = (1 << 2), - OBJECT_TYPE_KEY_AES = (1 << 3), - OBJECT_TYPE_KEY_RSA = (1 << 4), - OBJECT_TYPE_KEY_DSA = (1 << 5), - OBJECT_TYPE_KEY_DH = (1 << 6), - OBJECT_TYPE_KEY_ECC = (1 << 7), - OBJECT_TYPE_DATA = (1 << 8), - OBJECT_TYPE_CERTIFICATE = (1 << 9), - OBJECT_TYPE_USEFUL_CERTIFICATE = (1 << 10), - OBJECT_TYPE_TRUSTED_CERTIFICATE = (1 << 11), - OBJECT_TYPE_TRUSTED_PUBLIC_KEY = (1 << 12), - // - // Mark an object as private - OBJECT_TYPE_PRVIVATE = (1 << 13), - // - // ... - OBJECT_TYPE_NEXT = (1 << 14), - OBJECT_TYPE_MASK = OBJECT_TYPE_NEXT - 1, - OBJECT_TYPE_ALL = PARAM_INVALID_VALUE, - }; - - enum ObjectAttributeList - { - OBJECT_ATTR_LABEL_P = OBJECT_TYPE_NEXT, - OBJECT_ATTR_LABEL_P_PUB = OBJECT_ATTR_LABEL_P, - OBJECT_ATTR_LABEL_P_PRV = OBJECT_ATTR_LABEL_P | OBJECT_TYPE_PRVIVATE, - }; - - enum - { - TC_TYPE = TOKEN_CONFIG, - TC_HAS_TOKEN_CAPABILITIES, - TC_HAS_WRITABLE_AODF, - TC_IS_MOC_ENABLED, - TC_IS_MINIDRIVER_ENABLED, - TC_IS_PROFILE_ERASABLE, - TC_PINPAD_CHAR, - TC_DATA_SET_LIST, - TC_OBJECT_TYPE_LIST, - // - // Object naming - Label Prefix - TC_LABEL_P_PRV_DES = OBJECT_ATTR_LABEL_P_PRV + OBJECT_TYPE_KEY_DES, - TC_LABEL_P_PRV_2DES = OBJECT_ATTR_LABEL_P_PRV + OBJECT_TYPE_KEY_2DES, - TC_LABEL_P_PRV_3DES = OBJECT_ATTR_LABEL_P_PRV + OBJECT_TYPE_KEY_3DES, - TC_LABEL_P_PRV_AES = OBJECT_ATTR_LABEL_P_PRV + OBJECT_TYPE_KEY_AES, - TC_LABEL_P_PUB_RSA = OBJECT_ATTR_LABEL_P_PUB + OBJECT_TYPE_KEY_RSA, - TC_LABEL_P_PRV_RSA = OBJECT_ATTR_LABEL_P_PRV + OBJECT_TYPE_KEY_RSA, - TC_LABEL_P_PUB_ECC = OBJECT_ATTR_LABEL_P_PUB + OBJECT_TYPE_KEY_ECC, - TC_LABEL_P_PRV_ECC = OBJECT_ATTR_LABEL_P_PRV + OBJECT_TYPE_KEY_ECC, - TC_LABEL_P_PUB_DATA = OBJECT_ATTR_LABEL_P_PUB + OBJECT_TYPE_DATA, - TC_LABEL_P_PRV_DATA = OBJECT_ATTR_LABEL_P_PRV + OBJECT_TYPE_DATA, - TC_LABEL_P_PUB_CERTIFICATE = OBJECT_ATTR_LABEL_P_PUB + OBJECT_TYPE_CERTIFICATE, - TC_LABEL_P_PUB_USEFUL_CERTIFICATE = OBJECT_ATTR_LABEL_P_PUB + OBJECT_TYPE_USEFUL_CERTIFICATE, - TC_LABEL_P_PUB_TRUSTED_CERTIFICATE = OBJECT_ATTR_LABEL_P_PUB + OBJECT_TYPE_TRUSTED_CERTIFICATE, - TC_LABEL_P_PUB_TRUSTED_PUBLIC_KEY = OBJECT_ATTR_LABEL_P_PUB + OBJECT_TYPE_TRUSTED_PUBLIC_KEY, - }; - -} // namespace act - -#endif // ACT_TokenConfig_h +// --------------------------------------------------------------------------- +// Name: actTokenConfig.h +// Product: cv act library +// Purpose: Declares all availabl param_id's for ITokenCofing. +// +// Copyright: (c) 2009 cv cryptovision GmbH +// all rights reserved +// Licence: The conditions for the use of this software are regulated +// in the cv act library licence agreement. +// +// Autor: Markus Tesche +// Date: 05/07/2009 +// --------------------------------------------------------------------------- + +#ifndef ACT_TokenConfig_h +#define ACT_TokenConfig_h + +#include "actMode.h" +#include "actIParam.h" + +namespace act +{ + // according to ISO 24727-3, definition of supported Data Set's + enum DataSetList + { + DATA_SET_NONE = 0, + DATA_SET_PUBLIC_DATA = (1 << 0), + DATA_SET_PRIVATE_DATA = (1 << 1), + DATA_SET_CERTIFICATES = (1 << 2), + DATA_SET_USEFUL_CERTIFICATES = (1 << 3), + DATA_SET_TRUSTED_CERTIFICATES = (1 << 4), + DATA_SET_TRUSTED_PUBLIC_KEYS = (1 << 5), + // + // ... + DATA_SET_NEXT = (1 << 6), + DATA_SET_MASK = DATA_SET_NEXT - 1, + DATA_SET_ALL = PARAM_INVALID_VALUE, + }; + + enum ObjectTypeList + { + OBJECT_TYPE_NONE = 0, + OBJECT_TYPE_KEY_DES = (1 << 0), + OBJECT_TYPE_KEY_2DES = (1 << 1), + OBJECT_TYPE_KEY_3DES = (1 << 2), + OBJECT_TYPE_KEY_AES = (1 << 3), + OBJECT_TYPE_KEY_RSA = (1 << 4), + OBJECT_TYPE_KEY_DSA = (1 << 5), + OBJECT_TYPE_KEY_DH = (1 << 6), + OBJECT_TYPE_KEY_ECC = (1 << 7), + OBJECT_TYPE_DATA = (1 << 8), + OBJECT_TYPE_CERTIFICATE = (1 << 9), + OBJECT_TYPE_USEFUL_CERTIFICATE = (1 << 10), + OBJECT_TYPE_TRUSTED_CERTIFICATE = (1 << 11), + OBJECT_TYPE_TRUSTED_PUBLIC_KEY = (1 << 12), + // + // Mark an object as private + OBJECT_TYPE_PRVIVATE = (1 << 13), + // + // ... + OBJECT_TYPE_NEXT = (1 << 14), + OBJECT_TYPE_MASK = OBJECT_TYPE_NEXT - 1, + OBJECT_TYPE_ALL = PARAM_INVALID_VALUE, + }; + + enum ObjectAttributeList + { + OBJECT_ATTR_LABEL_P = OBJECT_TYPE_NEXT, + OBJECT_ATTR_LABEL_P_PUB = OBJECT_ATTR_LABEL_P, + OBJECT_ATTR_LABEL_P_PRV = OBJECT_ATTR_LABEL_P | OBJECT_TYPE_PRVIVATE, + }; + + enum + { + TC_TYPE = TOKEN_CONFIG, + TC_HAS_TOKEN_CAPABILITIES, + TC_HAS_WRITABLE_AODF, + TC_IS_MOC_ENABLED, + TC_IS_MINIDRIVER_ENABLED, + TC_IS_PROFILE_ERASABLE, + TC_PINPAD_CHAR, + TC_DATA_SET_LIST, + TC_OBJECT_TYPE_LIST, + // + // Object naming - Label Prefix + TC_LABEL_P_PRV_DES = OBJECT_ATTR_LABEL_P_PRV + OBJECT_TYPE_KEY_DES, + TC_LABEL_P_PRV_2DES = OBJECT_ATTR_LABEL_P_PRV + OBJECT_TYPE_KEY_2DES, + TC_LABEL_P_PRV_3DES = OBJECT_ATTR_LABEL_P_PRV + OBJECT_TYPE_KEY_3DES, + TC_LABEL_P_PRV_AES = OBJECT_ATTR_LABEL_P_PRV + OBJECT_TYPE_KEY_AES, + TC_LABEL_P_PUB_RSA = OBJECT_ATTR_LABEL_P_PUB + OBJECT_TYPE_KEY_RSA, + TC_LABEL_P_PRV_RSA = OBJECT_ATTR_LABEL_P_PRV + OBJECT_TYPE_KEY_RSA, + TC_LABEL_P_PUB_ECC = OBJECT_ATTR_LABEL_P_PUB + OBJECT_TYPE_KEY_ECC, + TC_LABEL_P_PRV_ECC = OBJECT_ATTR_LABEL_P_PRV + OBJECT_TYPE_KEY_ECC, + TC_LABEL_P_PUB_DATA = OBJECT_ATTR_LABEL_P_PUB + OBJECT_TYPE_DATA, + TC_LABEL_P_PRV_DATA = OBJECT_ATTR_LABEL_P_PRV + OBJECT_TYPE_DATA, + TC_LABEL_P_PUB_CERTIFICATE = OBJECT_ATTR_LABEL_P_PUB + OBJECT_TYPE_CERTIFICATE, + TC_LABEL_P_PUB_USEFUL_CERTIFICATE = OBJECT_ATTR_LABEL_P_PUB + OBJECT_TYPE_USEFUL_CERTIFICATE, + TC_LABEL_P_PUB_TRUSTED_CERTIFICATE = OBJECT_ATTR_LABEL_P_PUB + OBJECT_TYPE_TRUSTED_CERTIFICATE, + TC_LABEL_P_PUB_TRUSTED_PUBLIC_KEY = OBJECT_ATTR_LABEL_P_PUB + OBJECT_TYPE_TRUSTED_PUBLIC_KEY, + }; + +} // namespace act + +#endif // ACT_TokenConfig_h diff --git a/actlibrary/MacOSX-10.5-x86_64/Release/include/actTokenExtensionKit.h b/actlibrary/include/actTokenExtensionKit.h similarity index 97% rename from actlibrary/MacOSX-10.5-x86_64/Release/include/actTokenExtensionKit.h rename to actlibrary/include/actTokenExtensionKit.h index f087bdc..838b2c4 100644 --- a/actlibrary/MacOSX-10.5-x86_64/Release/include/actTokenExtensionKit.h +++ b/actlibrary/include/actTokenExtensionKit.h @@ -1,28 +1,28 @@ -// --------------------------------------------------------------------------- -// Name: actTokenExtensionKit.h -// Product: cv act library -// Purpose: Factory functions to create specific ITokenExtension objects. -// -// Copyright: (c) 2008 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -// -// Autor: Markus Tesche -// Date: 12/02/2008 -// --------------------------------------------------------------------------- - -#ifndef ACT_TokenExtensionKit_h -#define ACT_TokenExtensionKit_h - -namespace act -{ - class IToken; - class ITokenExtension; - - ITokenExtension* CreateMDProfileExt(const char* name, IToken*); // Minidriver - ITokenExtension* CreateEACTAwithCAPI(const char* name, IToken*); // EACv2-TA with CAPI - -} // namespace act - -#endif // ACT_TokenExtensionKit_h +// --------------------------------------------------------------------------- +// Name: actTokenExtensionKit.h +// Product: cv act library +// Purpose: Factory functions to create specific ITokenExtension objects. +// +// Copyright: (c) 2008 cv cryptovision GmbH +// all rights reserved +// Licence: The conditions for the use of this software are regulated +// in the cv act library licence agreement. +// +// Autor: Markus Tesche +// Date: 12/02/2008 +// --------------------------------------------------------------------------- + +#ifndef ACT_TokenExtensionKit_h +#define ACT_TokenExtensionKit_h + +namespace act +{ + class IToken; + class ITokenExtension; + + ITokenExtension* CreateMDProfileExt(const char* name, IToken*); // Minidriver + ITokenExtension* CreateEACTAwithCAPI(const char* name, IToken*); // EACv2-TA with CAPI + +} // namespace act + +#endif // ACT_TokenExtensionKit_h diff --git a/actlibrary/MacOSX-10.6-x86_64/Release/include/actTokenExtensionReg.h b/actlibrary/include/actTokenExtensionReg.h similarity index 96% rename from actlibrary/MacOSX-10.6-x86_64/Release/include/actTokenExtensionReg.h rename to actlibrary/include/actTokenExtensionReg.h index f961078..a7f0b63 100644 --- a/actlibrary/MacOSX-10.6-x86_64/Release/include/actTokenExtensionReg.h +++ b/actlibrary/include/actTokenExtensionReg.h @@ -1,34 +1,34 @@ -// --------------------------------------------------------------------------- -// Name: actTokenExtensionReg.h -// Product: cv act library -// Purpose: factory functions registry to create ITokenExtension objects. -// -// Copyright: (c) 2008 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -// -// Autor: Markus Tesche -// Date: 12/02/2008 -// --------------------------------------------------------------------------- - -#ifndef ACT_TokenExtensionReg_h -#define ACT_TokenExtensionReg_h - -#include "actFactoryReg.h" - -namespace act -{ - class IToken; - class ITokenExtension; - - typedef ITokenExtension* (*CreateTokenExtensionPtr)(const char*, IToken*); - typedef FactoryMapEntry TokenExtensionMapEntry; - - typedef FactoryReg - < ITokenExtension, CreateTokenExtensionPtr, TokenExtensionMapEntry - > TokenExtensionReg; - -} // namespace act - -#endif // ACT_TokenExtensionReg_h +// --------------------------------------------------------------------------- +// Name: actTokenExtensionReg.h +// Product: cv act library +// Purpose: factory functions registry to create ITokenExtension objects. +// +// Copyright: (c) 2008 cv cryptovision GmbH +// all rights reserved +// Licence: The conditions for the use of this software are regulated +// in the cv act library licence agreement. +// +// Autor: Markus Tesche +// Date: 12/02/2008 +// --------------------------------------------------------------------------- + +#ifndef ACT_TokenExtensionReg_h +#define ACT_TokenExtensionReg_h + +#include "actFactoryReg.h" + +namespace act +{ + class IToken; + class ITokenExtension; + + typedef ITokenExtension* (*CreateTokenExtensionPtr)(const char*, IToken*); + typedef FactoryMapEntry TokenExtensionMapEntry; + + typedef FactoryReg + < ITokenExtension, CreateTokenExtensionPtr, TokenExtensionMapEntry + > TokenExtensionReg; + +} // namespace act + +#endif // ACT_TokenExtensionReg_h diff --git a/actlibrary/MacOSX-10.4-ppc/Release/include/actTools.h b/actlibrary/include/actTools.h similarity index 97% rename from actlibrary/MacOSX-10.4-ppc/Release/include/actTools.h rename to actlibrary/include/actTools.h index c22c455..c79ae1d 100644 --- a/actlibrary/MacOSX-10.4-ppc/Release/include/actTools.h +++ b/actlibrary/include/actTools.h @@ -1,93 +1,93 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actTools.h -// Product: cv act library -// Purpose: useful global functions -// -// Copyright: (c) 2000 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_Tools_h -#define ACT_Tools_h - -#include "actMode.h" -#include "actBlob.h" - -namespace act -{ - class IKey; - - // Functions for RSA public key and private key operation. - // Both functions return the plain result of the modular - // exponentiation using the public or private exponent. - // - // 1) Calculate m^e mod n, where e is the public exponent - Blob RSAPublicKeyOperation(IKey* rsa_key, const Blob& m); - // 2) Calculate c^d mod n, where d is the private exponent - Blob RSAPrivateKeyOperation(IKey* rsa_key, const Blob& c); - - - // Function for PKCS#3 Diffie-Hellman. - // The function initializes an act::IKey Diffie-Hellman key object - // from PKCS#3 DH parameters p and g (prime and generator). - void PKCS3DHKeyToDHKey(const Blob& prime, const Blob& generator, IKey *dhKey); - - - // Read pfx file and get private key - Blob getPKCS8Key(const Blob& pfx_data, const char* password); - // Read pfx file and get the own (user) certificate - Blob getOwnCertificateFromPfx(const Blob& pfx_data, const char* password); - - - // Function to encode an ASN1 object identifier in binary form - // example EncodeOID("0.2.262.1.10.1.3.8") = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x01, 0x03, 0x08 } - Blob EncodeOID(const char* oid); - - - // Converts a signed decimal number or hexadecimal number (with prefix "0x" / "-0x") - // into a Blob (Twos-Complement representation for negative numbers) - Blob EncodeNumber(const char* number); - Blob EncodeNumber(int number); - - - // CRC functions - - // CRC-16 (direct mode, no zero bit augmentation) - // - // Poly : 0x8005 (x^16 + x^15 + x^2 + 1) - // RefIn : True (bit reflection on the input bytes) - // RefOut : True (bit reflection on the final CRC value) - // XorOut : 0x0000 (no XOR on the returned CRC value) - unsigned long CalculateCRC16(const act::byte* message, size_t message_len, - unsigned long crc_init_value = 0x0000); - unsigned long CalculateCRC16(const act::Blob& message, - unsigned long crc_init_value = 0x0000); - - // CRC-16 CCIT (direct mode, no zero bit augmentation) - // - // Poly : 0x1021 (x^16 + x^12 + x^5 + 1) - // RefIn : False (no bit reflection on the input bytes) - // RefOut : False (no bit reflection on the final CRC value) - // XorOut : 0x0000 (no XOR on the returned CRC value) - unsigned long CalculateCRC16CCITT(const act::byte* message, size_t message_len, - unsigned long crc_init_value = 0xFFFF); - unsigned long CalculateCRC16CCITT(const act::Blob& message, - unsigned long crc_init_value = 0xFFFF); - - // CRC-32 (direct mode, no zero bit augmentation) - // - // Poly : 0x04C11DB7 (x^32 + x^26 + x^23 + x^22 + x^16 + x^12 + x^11 + ... - // ... + x^10 + x^8 + x^7 + x^5 + x^4 + x^2 + x^ + 1) - // RefIn : True (bit reflection on the input bytes) - // RefOut : True (bit reflection on the final CRC value) - // XorOut : 0xFFFFFFFF (XOR on the returned CRC value) - unsigned long CalculateCRC32(const act::byte* message, size_t message_len, - unsigned long crc_init_value = 0xFFFFFFFF); - unsigned long CalculateCRC32(const act::Blob& message, - unsigned long crc_init_value = 0xFFFFFFFF); - -} // namespace act - -#endif // ACT_Tools_h +////////////////////////////////////////////////////////////////////////////////// +// Name: actTools.h +// Product: cv act library +// Purpose: useful global functions +// +// Copyright: (c) 2000 cv cryptovision GmbH +// all rights reserved +// Licence: The conditions for the use of this software are regulated +// in the cv act library licence agreement. +////////////////////////////////////////////////////////////////////////////////// + +#ifndef ACT_Tools_h +#define ACT_Tools_h + +#include "actMode.h" +#include "actBlob.h" + +namespace act +{ + class IKey; + + // Functions for RSA public key and private key operation. + // Both functions return the plain result of the modular + // exponentiation using the public or private exponent. + // + // 1) Calculate m^e mod n, where e is the public exponent + Blob RSAPublicKeyOperation(IKey* rsa_key, const Blob& m); + // 2) Calculate c^d mod n, where d is the private exponent + Blob RSAPrivateKeyOperation(IKey* rsa_key, const Blob& c); + + + // Function for PKCS#3 Diffie-Hellman. + // The function initializes an act::IKey Diffie-Hellman key object + // from PKCS#3 DH parameters p and g (prime and generator). + void PKCS3DHKeyToDHKey(const Blob& prime, const Blob& generator, IKey *dhKey); + + + // Read pfx file and get private key + Blob getPKCS8Key(const Blob& pfx_data, const char* password); + // Read pfx file and get the own (user) certificate + Blob getOwnCertificateFromPfx(const Blob& pfx_data, const char* password); + + + // Function to encode an ASN1 object identifier in binary form + // example EncodeOID("0.2.262.1.10.1.3.8") = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x01, 0x03, 0x08 } + Blob EncodeOID(const char* oid); + + + // Converts a signed decimal number or hexadecimal number (with prefix "0x" / "-0x") + // into a Blob (Twos-Complement representation for negative numbers) + Blob EncodeNumber(const char* number); + Blob EncodeNumber(int number); + + + // CRC functions + + // CRC-16 (direct mode, no zero bit augmentation) + // + // Poly : 0x8005 (x^16 + x^15 + x^2 + 1) + // RefIn : True (bit reflection on the input bytes) + // RefOut : True (bit reflection on the final CRC value) + // XorOut : 0x0000 (no XOR on the returned CRC value) + unsigned long CalculateCRC16(const act::byte* message, size_t message_len, + unsigned long crc_init_value = 0x0000); + unsigned long CalculateCRC16(const act::Blob& message, + unsigned long crc_init_value = 0x0000); + + // CRC-16 CCIT (direct mode, no zero bit augmentation) + // + // Poly : 0x1021 (x^16 + x^12 + x^5 + 1) + // RefIn : False (no bit reflection on the input bytes) + // RefOut : False (no bit reflection on the final CRC value) + // XorOut : 0x0000 (no XOR on the returned CRC value) + unsigned long CalculateCRC16CCITT(const act::byte* message, size_t message_len, + unsigned long crc_init_value = 0xFFFF); + unsigned long CalculateCRC16CCITT(const act::Blob& message, + unsigned long crc_init_value = 0xFFFF); + + // CRC-32 (direct mode, no zero bit augmentation) + // + // Poly : 0x04C11DB7 (x^32 + x^26 + x^23 + x^22 + x^16 + x^12 + x^11 + ... + // ... + x^10 + x^8 + x^7 + x^5 + x^4 + x^2 + x^ + 1) + // RefIn : True (bit reflection on the input bytes) + // RefOut : True (bit reflection on the final CRC value) + // XorOut : 0xFFFFFFFF (XOR on the returned CRC value) + unsigned long CalculateCRC32(const act::byte* message, size_t message_len, + unsigned long crc_init_value = 0xFFFFFFFF); + unsigned long CalculateCRC32(const act::Blob& message, + unsigned long crc_init_value = 0xFFFFFFFF); + +} // namespace act + +#endif // ACT_Tools_h diff --git a/actlibrary/MacOSX-10.6-x86_64/Release/include/actToolsECC.h b/actlibrary/include/actToolsECC.h similarity index 97% rename from actlibrary/MacOSX-10.6-x86_64/Release/include/actToolsECC.h rename to actlibrary/include/actToolsECC.h index 246b99f..cc10ba6 100644 --- a/actlibrary/MacOSX-10.6-x86_64/Release/include/actToolsECC.h +++ b/actlibrary/include/actToolsECC.h @@ -1,99 +1,99 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actToolsECC.h -// Product: cv act library -// Purpose: useful ECC functions -// -// Copyright: (c) 2009 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_ToolsECC_h -#define ACT_ToolsECC_h - -#include "actMode.h" -#include "actBlob.h" -#include "actIKey.h" - -namespace act -{ - // Functions for ECC scalar multiplication, addition of points. - // Input points must be in ASN.1 point representation (uncompressed, - // compressed or hybrid). The output point will be in ASN.1 representation - // as indicated in 'output_format'. - // - // 1) Calculate s * Q, s unsigned in ASN.1 OCTET STRING representation - // (leading zeros will be ignored) - Blob ECMultiplyPoint(IKey* ec_key, const Blob& s, const Blob& Q, - int output_format = UNCOMPRESSED); - // 2) Calculate Q1 + Q2 - Blob ECAddPoints(IKey* ec_key, const Blob& Q1, const Blob& Q2, - int output_format = UNCOMPRESSED); - - - // Functions to encode an (EC-)DSA signature (r, s) in ASN1 format and backwards. - // - // 1) Plain signature I/O as string - // - for encode: r and s must be in hex notation - // - for decode: the user has to allocate r and s buffers - void EncodeSignature(const char* r, const char* s, Blob& signature_ASN1); - void DecodeSignature(const Blob& signature_ASN1, char* r, char* s); - // 2) Plain signature I/O as byte array (Blob) - // - r and s I/O in big endian representation - void EncodeSignature(const Blob& r, const Blob& s, Blob& signature_ASN1); - void DecodeSignature(const Blob& signature_ASN1, Blob& r, Blob& s); - // 3) Plain signature I/O as byte array (Blob) - // - r_s length even, left haft = r, right half = s - // - if order_bytes is non zero, decode output length is 2 * order_bytes - void EncodeSignature(const Blob& r_s, Blob& signature_ASN1); - void DecodeSignature(const Blob& signature_ASN1, Blob& r_s, size_t order_bytes = 0); - - - // Tools for elliptic curves over GF(P). - // The basepoint can be given by it's coordinates (Gx, Gy) or as - // COMPRESSED, UNCOMPRESSED or HYBRID octetstring G corresponding - // to ANSI X9.62/63 standard. - // By default, the basepoint will be encoded in UNCOMPRESSED format. - - Blob EncodePrimeCurveParam(const Blob& p, const Blob& a, const Blob& b, - const Blob& Gx, const Blob& Gy, const Blob& n, const Blob& h, - int output_type = UNCOMPRESSED); - - Blob EncodePrimeCurveParam(const Blob& p, const Blob& a, const Blob& b, - const Blob& G, const Blob& n, const Blob& h, int output_type = UNCOMPRESSED); - - // dto. for elliptic curves over GF(2^m), tri- or pentanomial basis. - - // tri- or pentanomial in hex presentation - Blob EncodeGF2CurveParam(const Blob& p, const Blob& a, const Blob& b, - const Blob& Gx, const Blob& Gy, const Blob& n, const Blob& h, - int output_type = UNCOMPRESSED); - - // tri- or pentanomial in hex presentation - Blob EncodeGF2CurveParam(const Blob& p, const Blob& a, const Blob& b, - const Blob& G, const Blob& n, const Blob& h, int output_type = UNCOMPRESSED); - - // f(t) = t^m + t^k + 1 - Blob EncodeTrinomialCurveParam(const int m, const int k, - const Blob& a, const Blob& b, const Blob& Gx, const Blob& Gy, - const Blob& n, const Blob& h, int output_type = UNCOMPRESSED); - - // f(t) = t^m + t^k + 1 - Blob EncodeTrinomialCurveParam(const int m, const int k, - const Blob& a, const Blob& b, const Blob& G, const Blob& n, - const Blob& h, int output_type = UNCOMPRESSED); - - // f(t) = t^m + t^k3 + t^k2 + t^k1 + 1 - Blob EncodePentanomialCurveParam(const int m, const int k3, const int k2, - const int k1, const Blob& a, const Blob& b, const Blob& Gx, const Blob& Gy, - const Blob& n, const Blob& h, int output_type = UNCOMPRESSED); - - // f(t) = t^m + t^k3 + t^k2 + t^k1 + 1 - Blob EncodePentanomialCurveParam(const int m, const int k3, const int k2, - const int k1, const Blob& a, const Blob& b, const Blob& G, - const Blob& n, const Blob& h, int output_type = UNCOMPRESSED); - -} // namespace act - -#endif // ACT_ToolsECC_h +////////////////////////////////////////////////////////////////////////////////// +// Name: actToolsECC.h +// Product: cv act library +// Purpose: useful ECC functions +// +// Copyright: (c) 2009 cv cryptovision GmbH +// all rights reserved +// Licence: The conditions for the use of this software are regulated +// in the cv act library licence agreement. +////////////////////////////////////////////////////////////////////////////////// + +#ifndef ACT_ToolsECC_h +#define ACT_ToolsECC_h + +#include "actMode.h" +#include "actBlob.h" +#include "actIKey.h" + +namespace act +{ + // Functions for ECC scalar multiplication, addition of points. + // Input points must be in ASN.1 point representation (uncompressed, + // compressed or hybrid). The output point will be in ASN.1 representation + // as indicated in 'output_format'. + // + // 1) Calculate s * Q, s unsigned in ASN.1 OCTET STRING representation + // (leading zeros will be ignored) + Blob ECMultiplyPoint(IKey* ec_key, const Blob& s, const Blob& Q, + int output_format = UNCOMPRESSED); + // 2) Calculate Q1 + Q2 + Blob ECAddPoints(IKey* ec_key, const Blob& Q1, const Blob& Q2, + int output_format = UNCOMPRESSED); + + + // Functions to encode an (EC-)DSA signature (r, s) in ASN1 format and backwards. + // + // 1) Plain signature I/O as string + // - for encode: r and s must be in hex notation + // - for decode: the user has to allocate r and s buffers + void EncodeSignature(const char* r, const char* s, Blob& signature_ASN1); + void DecodeSignature(const Blob& signature_ASN1, char* r, char* s); + // 2) Plain signature I/O as byte array (Blob) + // - r and s I/O in big endian representation + void EncodeSignature(const Blob& r, const Blob& s, Blob& signature_ASN1); + void DecodeSignature(const Blob& signature_ASN1, Blob& r, Blob& s); + // 3) Plain signature I/O as byte array (Blob) + // - r_s length even, left haft = r, right half = s + // - if order_bytes is non zero, decode output length is 2 * order_bytes + void EncodeSignature(const Blob& r_s, Blob& signature_ASN1); + void DecodeSignature(const Blob& signature_ASN1, Blob& r_s, size_t order_bytes = 0); + + + // Tools for elliptic curves over GF(P). + // The basepoint can be given by it's coordinates (Gx, Gy) or as + // COMPRESSED, UNCOMPRESSED or HYBRID octetstring G corresponding + // to ANSI X9.62/63 standard. + // By default, the basepoint will be encoded in UNCOMPRESSED format. + + Blob EncodePrimeCurveParam(const Blob& p, const Blob& a, const Blob& b, + const Blob& Gx, const Blob& Gy, const Blob& n, const Blob& h, + int output_type = UNCOMPRESSED); + + Blob EncodePrimeCurveParam(const Blob& p, const Blob& a, const Blob& b, + const Blob& G, const Blob& n, const Blob& h, int output_type = UNCOMPRESSED); + + // dto. for elliptic curves over GF(2^m), tri- or pentanomial basis. + + // tri- or pentanomial in hex presentation + Blob EncodeGF2CurveParam(const Blob& p, const Blob& a, const Blob& b, + const Blob& Gx, const Blob& Gy, const Blob& n, const Blob& h, + int output_type = UNCOMPRESSED); + + // tri- or pentanomial in hex presentation + Blob EncodeGF2CurveParam(const Blob& p, const Blob& a, const Blob& b, + const Blob& G, const Blob& n, const Blob& h, int output_type = UNCOMPRESSED); + + // f(t) = t^m + t^k + 1 + Blob EncodeTrinomialCurveParam(const int m, const int k, + const Blob& a, const Blob& b, const Blob& Gx, const Blob& Gy, + const Blob& n, const Blob& h, int output_type = UNCOMPRESSED); + + // f(t) = t^m + t^k + 1 + Blob EncodeTrinomialCurveParam(const int m, const int k, + const Blob& a, const Blob& b, const Blob& G, const Blob& n, + const Blob& h, int output_type = UNCOMPRESSED); + + // f(t) = t^m + t^k3 + t^k2 + t^k1 + 1 + Blob EncodePentanomialCurveParam(const int m, const int k3, const int k2, + const int k1, const Blob& a, const Blob& b, const Blob& Gx, const Blob& Gy, + const Blob& n, const Blob& h, int output_type = UNCOMPRESSED); + + // f(t) = t^m + t^k3 + t^k2 + t^k1 + 1 + Blob EncodePentanomialCurveParam(const int m, const int k3, const int k2, + const int k1, const Blob& a, const Blob& b, const Blob& G, + const Blob& n, const Blob& h, int output_type = UNCOMPRESSED); + +} // namespace act + +#endif // ACT_ToolsECC_h diff --git a/actlibrary/MacOSX-10.6-x86_64/Release/include/actToolsRSA.h b/actlibrary/include/actToolsRSA.h similarity index 97% rename from actlibrary/MacOSX-10.6-x86_64/Release/include/actToolsRSA.h rename to actlibrary/include/actToolsRSA.h index b79c55b..a9f8b1f 100644 --- a/actlibrary/MacOSX-10.6-x86_64/Release/include/actToolsRSA.h +++ b/actlibrary/include/actToolsRSA.h @@ -1,19 +1,19 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actToolsRSA.h -// Product: cv act library -// Purpose: useful RSA functions -// -// Copyright: (c) 2000 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_TOOLS_RSA_H -#define ACT_TOOLS_RSA_H - -#include "actTools.h" - -// TODO: MTE: Move all RSA functions from "actTools.h" to here! include inside "actTools.h" - -#endif // ACT_TOOLS_RSA_H +////////////////////////////////////////////////////////////////////////////////// +// Name: actToolsRSA.h +// Product: cv act library +// Purpose: useful RSA functions +// +// Copyright: (c) 2000 cv cryptovision GmbH +// all rights reserved +// Licence: The conditions for the use of this software are regulated +// in the cv act library licence agreement. +////////////////////////////////////////////////////////////////////////////////// + +#ifndef ACT_TOOLS_RSA_H +#define ACT_TOOLS_RSA_H + +#include "actTools.h" + +// TODO: MTE: Move all RSA functions from "actTools.h" to here! include inside "actTools.h" + +#endif // ACT_TOOLS_RSA_H diff --git a/actlibrary/MacOSX-10.6-x86_64/Release/include/actTypeTags.h b/actlibrary/include/actTypeTags.h similarity index 96% rename from actlibrary/MacOSX-10.6-x86_64/Release/include/actTypeTags.h rename to actlibrary/include/actTypeTags.h index a844a0d..fe0b198 100644 --- a/actlibrary/MacOSX-10.6-x86_64/Release/include/actTypeTags.h +++ b/actlibrary/include/actTypeTags.h @@ -1,32 +1,32 @@ -// --------------------------------------------------------------------------- -// Name: actTypeTags.h -// Product: cv act library -// Purpose: TypeTag<> and usibility forward declarations. -// -// Copyright: (c) 2010 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -// -// Autor: Markus Tesche -// Date: 09/10/2010 -// --------------------------------------------------------------------------- - -#ifndef ACT_TypeTags_h -#define ACT_TypeTags_h - -namespace act -{ - // - // TypeTag<> - template - struct TypeTag { typedef TypeT Type; }; - - // - // CloneFactory<> - template - struct CloneFactory; - -} // namespace act - -#endif // ACT_TypeTags_h +// --------------------------------------------------------------------------- +// Name: actTypeTags.h +// Product: cv act library +// Purpose: TypeTag<> and usibility forward declarations. +// +// Copyright: (c) 2010 cv cryptovision GmbH +// all rights reserved +// Licence: The conditions for the use of this software are regulated +// in the cv act library licence agreement. +// +// Autor: Markus Tesche +// Date: 09/10/2010 +// --------------------------------------------------------------------------- + +#ifndef ACT_TypeTags_h +#define ACT_TypeTags_h + +namespace act +{ + // + // TypeTag<> + template + struct TypeTag { typedef TypeT Type; }; + + // + // CloneFactory<> + template + struct CloneFactory; + +} // namespace act + +#endif // ACT_TypeTags_h diff --git a/actlibrary/MacOSX-10.6-x86_64/Release/include/actX509Extension.h b/actlibrary/include/actX509Extension.h similarity index 96% rename from actlibrary/MacOSX-10.6-x86_64/Release/include/actX509Extension.h rename to actlibrary/include/actX509Extension.h index 51f59f0..84f43d0 100644 --- a/actlibrary/MacOSX-10.6-x86_64/Release/include/actX509Extension.h +++ b/actlibrary/include/actX509Extension.h @@ -1,50 +1,50 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actX509Extension.h -// Product: cv act library -// Purpose: -// -// Copyright: (c) 2000 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_X509Extension_H -#define ACT_X509Extension_H - -#include "actBlob.h" - -namespace act -{ - class X509Extension - { - public: - X509Extension(); - X509Extension(const Blob& oid, const Blob& value, bool critflag); - X509Extension(const char* oid, const Blob& value, bool critflag); - - void GetOID(Blob& oid) const; - void GetOIDString(Blob& oid) const; - void SetOID(const Blob& oid); - void SetOIDString(const char* oid); - - void GetValue(Blob& value) const; - void SetValue(const Blob& value); - - bool IsCritical() const; - void SetCritical(bool crit = true); - - void GetDER(Blob& der) const; - void SetDER(const Blob& der); - - bool IsPresent() { return mValue.size() > 0; } - - private: - Blob mOID; - Blob mValue; - bool mCrit; - }; - -} // namespace act - -#endif // ACT_X509Extension_H +////////////////////////////////////////////////////////////////////////////////// +// Name: actX509Extension.h +// Product: cv act library +// Purpose: +// +// Copyright: (c) 2000 cv cryptovision GmbH +// all rights reserved +// Licence: The conditions for the use of this software are regulated +// in the cv act library licence agreement. +////////////////////////////////////////////////////////////////////////////////// + +#ifndef ACT_X509Extension_H +#define ACT_X509Extension_H + +#include "actBlob.h" + +namespace act +{ + class X509Extension + { + public: + X509Extension(); + X509Extension(const Blob& oid, const Blob& value, bool critflag); + X509Extension(const char* oid, const Blob& value, bool critflag); + + void GetOID(Blob& oid) const; + void GetOIDString(Blob& oid) const; + void SetOID(const Blob& oid); + void SetOIDString(const char* oid); + + void GetValue(Blob& value) const; + void SetValue(const Blob& value); + + bool IsCritical() const; + void SetCritical(bool crit = true); + + void GetDER(Blob& der) const; + void SetDER(const Blob& der); + + bool IsPresent() { return mValue.size() > 0; } + + private: + Blob mOID; + Blob mValue; + bool mCrit; + }; + +} // namespace act + +#endif // ACT_X509Extension_H diff --git a/actlibrary/MacOSX-10.5-x86_64/Release/include/actX509KeyReg.h b/actlibrary/include/actX509KeyReg.h similarity index 96% rename from actlibrary/MacOSX-10.5-x86_64/Release/include/actX509KeyReg.h rename to actlibrary/include/actX509KeyReg.h index 619a17d..eb68458 100644 --- a/actlibrary/MacOSX-10.5-x86_64/Release/include/actX509KeyReg.h +++ b/actlibrary/include/actX509KeyReg.h @@ -1,48 +1,48 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actX509KeyReg.h -// Product: cv act library -// Purpose: registry for factory functions in actX509Kit.h -// -// Copyright: (c) 2000 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_X509KeyReg_h -#define ACT_X509KeyReg_h - -namespace act -{ - class IKey; - class Blob; - - typedef IKey* (*CreateKeyPtr)(); - typedef void (*X509ToKeyPtr)(const Blob& pkinfo, IKey* key); - typedef void (*KeyToX509Ptr)(const IKey* key, Blob& pkinfo ); - - struct X509KeyMapEntry - { - const char* OID; - CreateKeyPtr CreatePtr; - X509ToKeyPtr X509ToKey; - KeyToX509Ptr KeyToX509; - }; - - class X509KeyReg - { - public: - static IKey* CreateX509Key(const Blob& pkInfo); - static void GetX509KeyInfo(const IKey* key, Blob& pkInfo); - - static CreateKeyPtr GetCreatePointer(const char* oid); - static const char* GetOID(void* createptr); - static const char* GetNextOID(const char* oid); - - static void Insert(const char* name, CreateKeyPtr createptr, X509ToKeyPtr x509tokey, KeyToX509Ptr keytox509); - static void Insert(const X509KeyMapEntry* keymap); - }; - -} // namespace act - -#endif // ACT_X509KeyReg_h +////////////////////////////////////////////////////////////////////////////////// +// Name: actX509KeyReg.h +// Product: cv act library +// Purpose: registry for factory functions in actX509Kit.h +// +// Copyright: (c) 2000 cv cryptovision GmbH +// all rights reserved +// Licence: The conditions for the use of this software are regulated +// in the cv act library licence agreement. +////////////////////////////////////////////////////////////////////////////////// + +#ifndef ACT_X509KeyReg_h +#define ACT_X509KeyReg_h + +namespace act +{ + class IKey; + class Blob; + + typedef IKey* (*CreateKeyPtr)(); + typedef void (*X509ToKeyPtr)(const Blob& pkinfo, IKey* key); + typedef void (*KeyToX509Ptr)(const IKey* key, Blob& pkinfo ); + + struct X509KeyMapEntry + { + const char* OID; + CreateKeyPtr CreatePtr; + X509ToKeyPtr X509ToKey; + KeyToX509Ptr KeyToX509; + }; + + class X509KeyReg + { + public: + static IKey* CreateX509Key(const Blob& pkInfo); + static void GetX509KeyInfo(const IKey* key, Blob& pkInfo); + + static CreateKeyPtr GetCreatePointer(const char* oid); + static const char* GetOID(void* createptr); + static const char* GetNextOID(const char* oid); + + static void Insert(const char* name, CreateKeyPtr createptr, X509ToKeyPtr x509tokey, KeyToX509Ptr keytox509); + static void Insert(const X509KeyMapEntry* keymap); + }; + +} // namespace act + +#endif // ACT_X509KeyReg_h diff --git a/actlibrary/MacOSX-10.6-x86_64/Release/include/actX509Kit.h b/actlibrary/include/actX509Kit.h similarity index 97% rename from actlibrary/MacOSX-10.6-x86_64/Release/include/actX509Kit.h rename to actlibrary/include/actX509Kit.h index bb0affb..a00697d 100644 --- a/actlibrary/MacOSX-10.6-x86_64/Release/include/actX509Kit.h +++ b/actlibrary/include/actX509Kit.h @@ -1,45 +1,45 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actX509Kit.h -// Product: cv act library -// Purpose: declaration of all factory functions -// -// Copyright: (c) 2000 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_X509Kit_h -#define ACT_X509Kit_h - -namespace act -{ - class Blob; - class IKey; - - void X509ToRSA(const Blob& pkinfo, IKey* key); - void RSAToX509(const IKey* key, Blob& pkinfo); - void RSAGetAlgID(const IKey* key, Blob& algid); - void RSASetAlgID(const Blob& algid, IKey* key ); - - void X509ToDSA(const Blob& pkinfo, IKey* key); - void DSAToX509(const IKey* key, Blob& pkinfo); - void DSAGetAlgID(const IKey* key, Blob& algid); - void DSASetAlgID(const Blob& algid, IKey* key ); - - void X509ToECDSA(const Blob& pkinfo, IKey* key); - void ECDSAToX509(const IKey* key, Blob& pkinfo); - void ECDSAGetAlgID(const IKey* key, Blob& algid); - void ECDSASetAlgID(const Blob& algid, IKey* key ); - - void X509ToDH(const Blob& pkinfo, IKey* key); - void DHToX509(const IKey* key, Blob& pkinfo); - void DHGetAlgID(const IKey* key, Blob& algid); - void DHSetAlgID(const Blob& algid, IKey* key ); - - void ECDHGetAlgID(const IKey* key, Blob& algid); - void ECDHSetAlgID(const Blob& algid, IKey* key ); - -} -#endif - +////////////////////////////////////////////////////////////////////////////////// +// Name: actX509Kit.h +// Product: cv act library +// Purpose: declaration of all factory functions +// +// Copyright: (c) 2000 cv cryptovision GmbH +// all rights reserved +// Licence: The conditions for the use of this software are regulated +// in the cv act library licence agreement. +////////////////////////////////////////////////////////////////////////////////// + +#ifndef ACT_X509Kit_h +#define ACT_X509Kit_h + +namespace act +{ + class Blob; + class IKey; + + void X509ToRSA(const Blob& pkinfo, IKey* key); + void RSAToX509(const IKey* key, Blob& pkinfo); + void RSAGetAlgID(const IKey* key, Blob& algid); + void RSASetAlgID(const Blob& algid, IKey* key ); + + void X509ToDSA(const Blob& pkinfo, IKey* key); + void DSAToX509(const IKey* key, Blob& pkinfo); + void DSAGetAlgID(const IKey* key, Blob& algid); + void DSASetAlgID(const Blob& algid, IKey* key ); + + void X509ToECDSA(const Blob& pkinfo, IKey* key); + void ECDSAToX509(const IKey* key, Blob& pkinfo); + void ECDSAGetAlgID(const IKey* key, Blob& algid); + void ECDSASetAlgID(const Blob& algid, IKey* key ); + + void X509ToDH(const Blob& pkinfo, IKey* key); + void DHToX509(const IKey* key, Blob& pkinfo); + void DHGetAlgID(const IKey* key, Blob& algid); + void DHSetAlgID(const Blob& algid, IKey* key ); + + void ECDHGetAlgID(const IKey* key, Blob& algid); + void ECDHSetAlgID(const Blob& algid, IKey* key ); + +} +#endif + diff --git a/actlibrary/MacOSX-10.6-x86_64/Release/include/actX509SignHashReg.h b/actlibrary/include/actX509SignHashReg.h similarity index 96% rename from actlibrary/MacOSX-10.6-x86_64/Release/include/actX509SignHashReg.h rename to actlibrary/include/actX509SignHashReg.h index d4a01d5..0c2cb77 100644 --- a/actlibrary/MacOSX-10.6-x86_64/Release/include/actX509SignHashReg.h +++ b/actlibrary/include/actX509SignHashReg.h @@ -1,40 +1,40 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actX509SignHashReg.h -// Product: cv act library -// Purpose: registry for factory functions in actX509Kit.h -// -// Copyright: (c) 2000-2001 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_X509SignHashReg_h -#define ACT_X509SignHashReg_h - -namespace act -{ - class Blob; - - // ------------------------------------------------------------------------ - struct X509SignHashMapEntry { - const char* OID; - const char* HashAlg; - const char* SignAlg; - }; - - // ------------------------------------------------------------------------ - class X509SignHashReg - { - public: - static void GetOID(const char* algo, const char* sign_algo, Blob& algid); - static const char* GetHashAlg(const Blob& algid); - static const char* GetSignAlg(const Blob& algid); - static void Insert(const X509SignHashMapEntry* map); - - static const char* GetHashAlg(const Blob& algid, const char* sign_algo); // deprecated - }; - -} -#endif - +////////////////////////////////////////////////////////////////////////////////// +// Name: actX509SignHashReg.h +// Product: cv act library +// Purpose: registry for factory functions in actX509Kit.h +// +// Copyright: (c) 2000-2001 cv cryptovision GmbH +// all rights reserved +// Licence: The conditions for the use of this software are regulated +// in the cv act library licence agreement. +////////////////////////////////////////////////////////////////////////////////// + +#ifndef ACT_X509SignHashReg_h +#define ACT_X509SignHashReg_h + +namespace act +{ + class Blob; + + // ------------------------------------------------------------------------ + struct X509SignHashMapEntry { + const char* OID; + const char* HashAlg; + const char* SignAlg; + }; + + // ------------------------------------------------------------------------ + class X509SignHashReg + { + public: + static void GetOID(const char* algo, const char* sign_algo, Blob& algid); + static const char* GetHashAlg(const Blob& algid); + static const char* GetSignAlg(const Blob& algid); + static void Insert(const X509SignHashMapEntry* map); + + static const char* GetHashAlg(const Blob& algid, const char* sign_algo); // deprecated + }; + +} +#endif + diff --git a/actlibrary/MacOSX-10.5-x86_64/Release/include/actX509SignReg.h b/actlibrary/include/actX509SignReg.h similarity index 96% rename from actlibrary/MacOSX-10.5-x86_64/Release/include/actX509SignReg.h rename to actlibrary/include/actX509SignReg.h index 74b48a2..6b7a861 100644 --- a/actlibrary/MacOSX-10.5-x86_64/Release/include/actX509SignReg.h +++ b/actlibrary/include/actX509SignReg.h @@ -1,41 +1,41 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actX509SignReg.h -// Product: cv act library -// Purpose: registry for factory functions in actX509Kit.h -// -// Copyright: (c) 2000 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_X509SignReg_h -#define ACT_X509SignReg_h - -namespace act -{ - class IKey; - class Blob; - - typedef IKey* (*CreateKeyPtr)(); - typedef void (*GetX509AlgIDPtr)(const IKey* key, Blob& algid); - typedef void (*SetX509AlgIDPtr)(const Blob& algid, IKey* key); - - struct X509SignMapEntry { - CreateKeyPtr CreatePtr; - GetX509AlgIDPtr GetAlgID; - SetX509AlgIDPtr SetAlgID; - }; - - class X509SignReg - { - public: - static void GetAlgID(const IKey* key, Blob& algid); - static void SetAlgID(const Blob& algid, IKey* key); - - static void Insert(CreateKeyPtr createptr, GetX509AlgIDPtr getalgid, SetX509AlgIDPtr setalgid ); - static void Insert(const X509SignMapEntry* keymap); - }; -} -#endif - +////////////////////////////////////////////////////////////////////////////////// +// Name: actX509SignReg.h +// Product: cv act library +// Purpose: registry for factory functions in actX509Kit.h +// +// Copyright: (c) 2000 cv cryptovision GmbH +// all rights reserved +// Licence: The conditions for the use of this software are regulated +// in the cv act library licence agreement. +////////////////////////////////////////////////////////////////////////////////// + +#ifndef ACT_X509SignReg_h +#define ACT_X509SignReg_h + +namespace act +{ + class IKey; + class Blob; + + typedef IKey* (*CreateKeyPtr)(); + typedef void (*GetX509AlgIDPtr)(const IKey* key, Blob& algid); + typedef void (*SetX509AlgIDPtr)(const Blob& algid, IKey* key); + + struct X509SignMapEntry { + CreateKeyPtr CreatePtr; + GetX509AlgIDPtr GetAlgID; + SetX509AlgIDPtr SetAlgID; + }; + + class X509SignReg + { + public: + static void GetAlgID(const IKey* key, Blob& algid); + static void SetAlgID(const Blob& algid, IKey* key); + + static void Insert(CreateKeyPtr createptr, GetX509AlgIDPtr getalgid, SetX509AlgIDPtr setalgid ); + static void Insert(const X509SignMapEntry* keymap); + }; +} +#endif + diff --git a/actlibrary/mingw32-i586/Release/include/actAlgorithm.h b/actlibrary/mingw32-i586/Release/include/actAlgorithm.h deleted file mode 100644 index 035471e..0000000 --- a/actlibrary/mingw32-i586/Release/include/actAlgorithm.h +++ /dev/null @@ -1,73 +0,0 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actAlgorithm.h -// Product: cv act library -// Purpose: The class Algorithm generates algorithms for encryption and signing. -// The class Key defined these algorithms. By using this handle the -// necessary methods (e.g. hash-algorithms, verifying-primitiva, etc.) -// can be generated. -// -// Copyright: (c) 2000 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_Algorithm_h -#define ACT_Algorithm_h - -#include "actBasics.h" - -namespace act -{ - class IAlgorithm; - class IKey; - class Blob; - - class Algorithm - { - private: - Algorithm(const Algorithm&); - Algorithm &operator=(const Algorithm&); - - public: - Algorithm(IAlgorithm* alg); - Algorithm(const IKey* key, mode_t mode); - Algorithm(const IKey* key, mode_t mode, const Blob& data); - Algorithm(const char* name); - ~Algorithm(); - - void Write(const Blob& indata); - void Write(const byte* indata, size_t insize); - - void Finalize(); - - size_t Read(Blob& outdata, size_t max = 0); - size_t Read(byte* outbuffer, size_t buffersize); - - size_t GetAvailableSize() const; - status_t GetStatus() const; - - Algorithm& operator<<(const Blob& indata) { Write(indata); return *this; } - Algorithm& operator<<(Algorithm& (*manipulator)(Algorithm &alg)) { return manipulator(*this); } - Algorithm& operator>>(Blob& outdata) { Read(outdata); return *this; } - - operator IAlgorithm*(); - operator const IAlgorithm* () const; - IAlgorithm* GetPointer(); - const IAlgorithm* GetPointer() const; - - IAlgorithm* ReleasePointer(); - - private: - IAlgorithm* mAlg; - }; - - inline Algorithm& final(Algorithm& alg) - { - alg.Finalize(); - return alg; - } - -} // namespace act - -#endif // ACT_Algorithm_h diff --git a/actlibrary/mingw32-i586/Release/include/actAllocator.h b/actlibrary/mingw32-i586/Release/include/actAllocator.h deleted file mode 100644 index ce0bfb2..0000000 --- a/actlibrary/mingw32-i586/Release/include/actAllocator.h +++ /dev/null @@ -1,107 +0,0 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actAllocator.h -// Product: cv act library -// Purpose: -// -// Copyright: (c) 2008 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -// -// Autor: Markus Tesche (MTE) -// Date: 09/29/2008 -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_Allocator_h -#define ACT_Allocator_h - -#include "actBasics.h" - -// -------------------------------------------------------------------------------- -namespace act -{ - // - // Allocator<> - template - class Allocator - { - public: - typedef SizeT size_type; - typedef TypeT value_type; - typedef value_type* pointer; - typedef value_type& reference; - typedef const value_type* const_pointer; - typedef const value_type& const_reference; - - protected: - typedef Allocator ThisT; - typedef pointer (*fptr_allocate)(ThisT*, size_type n, const void* hint); - typedef void (*fptr_deallocate)(ThisT*, pointer p, size_type n); - - private: - Allocator(const Allocator&); - Allocator& operator=(const Allocator&); - - protected: - Allocator(fptr_allocate pAllocate, fptr_deallocate pDeallocate) throw() - : m_pAllocate(pAllocate) - , m_pDeallocate(pDeallocate) - { } - - public: - inline pointer allocate(size_type n, const void* hint) - { - return m_pAllocate(this, n, hint); - } - - inline void deallocate(pointer p, size_type n) - { - if(p != 0) m_pDeallocate(this, p, n); - } - - protected: - fptr_allocate m_pAllocate; - fptr_deallocate m_pDeallocate; - }; - - // - // AllocatorImpl<> - template - < - class AllocatorT, - class BaseT = Allocator - > - class AllocatorImpl : public BaseT - { - public: - typedef typename BaseT::pointer pointer; - typedef typename BaseT::size_type size_type; - - protected: - typedef AllocatorImpl ThisT; - - public: - AllocatorImpl() throw() - : BaseT(_allocate, _deallocate) - { } - - AllocatorT& ref_alloc() { return m_Alloc; } - - private: - inline static pointer _allocate(BaseT* pThis, size_type n, const void* hint) - { - return static_cast(pThis)->m_Alloc.allocate(n, hint); - } - - inline static void _deallocate(BaseT* pThis, pointer p, size_type n) - { - static_cast(pThis)->m_Alloc.deallocate(p, n); - } - - private: - AllocatorT m_Alloc; - }; - -} // namespace act - -#endif // ACT_Allocator_h diff --git a/actlibrary/mingw32-i586/Release/include/actBasics.h b/actlibrary/mingw32-i586/Release/include/actBasics.h deleted file mode 100644 index 39057d6..0000000 --- a/actlibrary/mingw32-i586/Release/include/actBasics.h +++ /dev/null @@ -1,93 +0,0 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actBasics.h -// Product: cv act library -// Purpose: integration of globally available identifiers -// -// Copyright: (c) 2000 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_Basics_h -#define ACT_Basics_h - -#include "actEnv.h" - -#ifndef ACT_LITTLE_ENDIAN -# define ACT_LITTLE_ENDIAN -#endif - -#if defined(__BIG_ENDIAN__) || \ - defined(__sun__) || \ - defined(__sparc) || \ - defined(__sparc__) || \ - defined(__ppc__) || \ - defined(__ppc64__) -# undef ACT_LITTLE_ENDIAN -#endif // __sun__ - - -#ifndef NO_STL_SUPPORT -# include // used for ptrdiff_t,size_t -#else -# ifndef _PTRDIFF_T_DEFINED - typedef int ptrdiff_t; -# define _PTRDIFF_T_DEFINED -# endif - - -# ifndef _SIZE_T_DEFINED - typedef unsigned int size_t; -# define _SIZE_T_DEFINED -# endif -#endif // NO_STL_SUPPORT - -namespace act -{ - typedef unsigned long ulong; - typedef unsigned int uint; - typedef unsigned short ushort; - typedef unsigned char uchar; - typedef unsigned char byte; - typedef unsigned short word; - typedef unsigned int dword; - -#if defined(_MSC_VER) & !defined(__MWERKS__) - using ::size_t; - using ::ptrdiff_t; -#else - using std::size_t; - using std::ptrdiff_t; -#endif - - typedef int paramid_t; - typedef int status_t; - typedef int mode_t; - typedef int export_t; - - typedef ushort uint16; - typedef uint uint32; -#if defined(__GNUC__) || defined(__MWERKS__) - typedef unsigned long long uint64; -# define U64(x) x##ULL -#else - //#ifdef _MSC_EXTENSIONS - typedef unsigned __int64 uint64; -# define U64(x) x##ui64 -#endif - -#if defined(__GNUC__) -# define GCC_VERSION (__GNUC__ * 10000 + __GNUC_MINOR__ * 100 + __GNUC_PATCHLEVEL__) -#endif - - const export_t DEFAULT = 0; - - // - // scoped_delete<> - template - struct scoped_delete { }; - -} // namespace act - -#endif // ACT_Basics_h diff --git a/actlibrary/mingw32-i586/Release/include/actBlob.h b/actlibrary/mingw32-i586/Release/include/actBlob.h deleted file mode 100644 index e42687d..0000000 --- a/actlibrary/mingw32-i586/Release/include/actBlob.h +++ /dev/null @@ -1,644 +0,0 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actBlob.h -// Product: cv act library -// Purpose: The datatype Blob (Binary Large Object) is a universal type, which -// can be used for any data. The class Blob almost behaves like -// std::vector with the difference that freed memory -// is filled with zeros to enhance security. -// -// Copyright: (c) 2000 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_Blob_h -#define ACT_Blob_h - -#include "actMove.h" -#include "actBasics.h" -#include "actAllocator.h" - -#ifndef UNDER_CE_30 -# include -#endif // UNDER_CE_30 - -#ifndef NO_STL_SUPPORT -# include // used for reserve_iterator -# include // used for string -#else - // -------------------------------------------------------------------------------- - // if there is no STL support, we define reverse_iterator here. - // -------------------------------------------------------------------------------- - namespace std - { - // ITERATOR TAGS (from ) - struct input_iterator_tag {}; - struct output_iterator_tag {}; - struct forward_iterator_tag - : public input_iterator_tag {}; - struct bidirectional_iterator_tag - : public forward_iterator_tag {}; - struct random_access_iterator_tag - : public bidirectional_iterator_tag {}; - - // TEMPLATE CLASS iterator (from ) - template - struct iterator { - typedef _C iterator_category; - typedef _Ty value_type; - typedef _D distance_type; - }; - template - struct _Bidit : public iterator {}; - template - struct _Ranit : public iterator {}; - - // TEMPLATE CLASS iterator_traits (from ) - template - struct iterator_traits { - typedef _It::iterator_category iterator_category; - typedef _It::value_type value_type; - typedef _It::distance_type distance_type; - }; - - - // TEMPLATE CLASS reverse_iterator (from ) - template - class reverse_iterator : public _Ranit<_Ty, _D> { - public: - typedef reverse_iterator<_RI, _Ty, _Rt, _Pt, _D> _Myt; - typedef _RI iter_type; - typedef _Rt reference_type; - typedef _Pt pointer_type; - reverse_iterator() - {} - explicit reverse_iterator(_RI _X) - : current(_X) {} - _RI base() const - {return(current); } - _Rt operator*() const - {return(*(current - 1)); } - // _Pt operator->() const - // {return(&**this); } - _Myt& operator++() - {--current; - return(*this); } - _Myt operator++(int) - {_Myt _Tmp = *this; - --current; - return(_Tmp); } - _Myt& operator--() - {++current; - return(*this); } - _Myt operator--(int) - {_Myt _Tmp = *this; - ++current; - return(_Tmp); } - _Myt& operator+=(_D _N) - {current -= _N; - return(*this); } - _Myt operator+(_D _N) const - {return(_Myt(current - _N)); } - _Myt& operator-=(_D _N) - {current += _N; - return(*this); } - _Myt operator-(_D _N) const - {return(_Myt(current + _N)); } - _Rt operator[](_D _N) const - {return(*(*this + _N)); } - protected: - _RI current; - }; - template inline - bool __cdecl operator==( - const reverse_iterator<_RI, _Ty, _Rt, _Pt, _D>& _X, - const reverse_iterator<_RI, _Ty, _Rt, _Pt, _D>& _Y) - {return(get_base(_X) == get_base(_Y)); } - template inline - bool __cdecl operator!=( - const reverse_iterator<_RI, _Ty, _Rt, _Pt, _D>& _X, - const reverse_iterator<_RI, _Ty, _Rt, _Pt, _D>& _Y) - {return(!(_X == _Y)); } - template inline - bool __cdecl operator<( - const reverse_iterator<_RI, _Ty, _Rt, _Pt, _D>& _X, - const reverse_iterator<_RI, _Ty, _Rt, _Pt, _D>& _Y) - {return(get_base(_Y) < get_base(_X)); } - template inline - bool __cdecl operator>( - const reverse_iterator<_RI, _Ty, _Rt, _Pt, _D>& _X, - const reverse_iterator<_RI, _Ty, _Rt, _Pt, _D>& _Y) - {return(_Y < _X); } - template inline - bool __cdecl operator<=( - const reverse_iterator<_RI, _Ty, _Rt, _Pt, _D>& _X, - const reverse_iterator<_RI, _Ty, _Rt, _Pt, _D>& _Y) - {return(!(_Y < _X)); } - template inline - bool __cdecl operator>=( - const reverse_iterator<_RI, _Ty, _Rt, _Pt, _D>& _X, - const reverse_iterator<_RI, _Ty, _Rt, _Pt, _D>& _Y) - {return(!(_X < _Y)); } - template inline - _D __cdecl operator-( - const reverse_iterator<_RI, _Ty, _Rt, _Pt, _D>& _X, - const reverse_iterator<_RI, _Ty, _Rt, _Pt, _D>& _Y) - {return(get_base(_Y) - get_base(_X)); } - template inline - reverse_iterator<_RI, _Ty, _Rt, _Pt, _D> __cdecl operator+(_D _N, - const reverse_iterator<_RI, _Ty, _Rt, _Pt, _D>& _Y) - {return(reverse_iterator<_RI, _Ty, _Rt, _Pt, _D>( - get_base(_Y) - _N)); } - } // namespace std - -#endif //NO_STL_SUPPORT - -// -------------------------------------------------------------------------------- -namespace act -{ - // - // byte_array for fixed data - struct byte_array - { - const act::byte* value; - const size_t size; - }; - - inline byte_array make_array(const act::byte* value = 0, size_t size = 0) - { - const byte_array ba = { value, size }; - return ba; - }; - -#ifndef ACT_NO_BYTE_ARRAY_MACROS -# define _A(x) x.value, x.size -# define _B(x) act::make_array(reinterpret_cast(x), sizeof(x) - sizeof(x[0])) -# define _C(x) act::make_array(reinterpret_cast(x), sizeof(x)) -# define _H(x) { (const act::byte*) x, sizeof(x) - sizeof(x[0]) } -#endif - -#if(_MSC_VER >= 1300) - template - < - class _Ty, - class _Diff, - class _Pointer, - class _Reference, - class _Pointer2, - class _Reference2 - > - class _Ptrit : - public std::iterator - { // wrap pointer as random-access iterator - public: - typedef _Ptrit<_Ty, _Diff, _Pointer, _Reference, _Pointer2, _Reference2> _Myt; - - _Ptrit() - { // construct with uninitialized wrapped pointer - } - - _Ptrit(_Pointer _Ptr) : current(_Ptr) - { // construct wrapped pointer from _Ptr - } - - _Ptrit(const _Ptrit<_Ty, _Diff, _Pointer2, _Reference2, _Pointer2, _Reference2>& _Iter) - : current(_Iter.base()) - { // const converter or copy constructor - } - - _Pointer base() const - { // return wrapped pointer - return current; - } - - _Reference operator*() const - { // return designated value - return *current; - } - - _Pointer operator->() const - { // return pointer to class object - return &**this; - } - - _Myt& operator++() - { // preincrement - ++current; - return *this; - } - - _Myt operator++(int) - { // postincrement - _Myt _Tmp = *this; - ++current; - return _Tmp; - } - - _Myt& operator--() - { // predecrement - --current; - return *this; - } - - _Myt operator--(int) - { // postdecrement - _Myt _Tmp = *this; - --current; - return _Tmp; - } - - bool operator==(size_t _Right) const - { // test if wrapped pointer == integer (null pointer constant) - return current == (_Pointer) _Right; - } - - bool operator==(const _Myt& _Right) const - { // test for iterator equality - return current == _Right.current; - } - - bool operator!=(const _Myt& _Right) const - { // test for iterator inequality - return !(*this == _Right); - } - - _Myt& operator+=(_Diff _Off) - { // increment by integer - current += _Off; - return *this; - } - - _Myt operator+(_Diff _Off) const - { // return this + integer - return _Myt(current + _Off); - } - - _Myt& operator-=(_Diff _Off) - { // decrement by integer - current -= _Off; - return *this; - } - - _Myt operator-(_Diff _Off) const - { // return this - integer - return _Myt(current - _Off); - } - - _Reference operator[](_Diff _Off) const - { // subscript - return *(*this + _Off); - } - - bool operator<(const _Myt& _Right) const - { // test if this < _Right - return current < _Right.current; - } - - bool operator>(const _Myt& _Right) const - { // test if this > _Right - return _Right < *this; - } - - bool operator<=(const _Myt& _Right) const - { // test if this <= _Right - return !(_Right < *this); - } - - bool operator>=(const _Myt& _Right) const - { // test if this >= _Right - return !(*this < _Right); - } - - _Diff operator-(const _Myt& _Right) const - { // return difference of iterators - return current - _Right.current; - } - - protected: - _Pointer current; // the wrapped pointer - }; - -#endif // _MSC_VER >= 1300 - - // - // Blob - class Blob - { - protected: - struct flags - { - byte copy_on_write:1; - byte external_allocated:1; - - flags() throw() - : copy_on_write(0) - , external_allocated(0) - { } - }; - - public: - typedef Allocator _Alloc; - typedef _Alloc allocator_type; - typedef _Alloc::size_type size_type; - typedef _Alloc::value_type value_type; - typedef value_type* pointer; - typedef value_type& reference; - typedef const value_type* const_pointer; - typedef const value_type& const_reference; - typedef ptrdiff_t difference_type; - -#if(_MSC_VER >= 1300) - typedef _Ptrit - < value_type, difference_type, pointer, reference, pointer, reference - > iterator; - - typedef _Ptrit - < value_type, difference_type, const_pointer, const_reference, pointer, reference - > const_iterator; - - inline static pointer get_base(iterator it) { return it.base(); } - inline static const_pointer get_base(const_iterator it) { return it.base(); } - -#else - typedef byte* iterator; - typedef const byte* const_iterator; - - inline static pointer get_base(iterator it) { return it; } - inline static const_pointer get_base(const_iterator it) { return it; } - -#endif - -#if (_MSC_VER >= 1200) && (_MSC_VER < 1300) - typedef std::reverse_iterator - < iterator, value_type, reference, pointer, difference_type - > reverse_iterator; - - typedef std::reverse_iterator - < const_iterator, value_type, const_reference, const_pointer, difference_type - > const_reverse_iterator; - -#else - typedef std::reverse_iterator reverse_iterator; - typedef std::reverse_iterator const_reverse_iterator; - -#endif - // construct/copy/destroy - Blob(); - - explicit Blob(allocator_type* allocator); - explicit Blob(const char* str, allocator_type* allocator = dAllocator); - -#ifndef NO_STL_SUPPORT - explicit Blob(std::string& str, allocator_type* allocator = dAllocator); - explicit Blob(const std::string& str, allocator_type* allocator = dAllocator); -#endif // NO_STL_SUPPORT - - explicit Blob(const byte_array& ba, allocator_type* allocator = dAllocator); - explicit Blob(size_type n, byte v = byte(0), allocator_type* allocator = dAllocator); - - template - Blob(inputit f, inputit l, allocator_type* allocator = dAllocator) - : mFirst(0), mLast(0), mEnd(0), mAllocator(allocator) - { - insert(begin(), f, l); - } - - Blob(move_from other); - Blob(const Blob& other); - ~Blob(); - - Blob& operator=(const Blob& other); - Blob& operator=(move_from other); - - template - void assign(inputit f, inputit l) - { - erase(begin(), end()); - insert(begin(), f, l); - } - - void assign(const byte_array& ba); - void assign(size_type n, byte x = byte(0)); - - // capacity - bool empty() const { return size() == 0; } - size_type size() const { return mFirst == 0 ? 0 : mLast - mFirst; } - size_type capacity() const { return mFirst == 0 ? 0 : mEnd - mFirst; } - size_type max_size() const; - void reserve(size_type n); - void resize(size_type n, byte x = byte(0)); - - // iterators - iterator begin() { return mFirst; } - const_iterator begin() const { return const_iterator(mFirst); } - iterator end() { return mLast; } - const_iterator end() const { return const_iterator(mLast); } - reverse_iterator rbegin() { return reverse_iterator(end()); } - const_reverse_iterator rbegin() const { return const_reverse_iterator(end()); } - reverse_iterator rend() { return reverse_iterator(begin()); } - const_reverse_iterator rend() const { return const_reverse_iterator(begin()); } - - - // element access: - reference at(size_type p); - const_reference at(size_type p) const; - reference operator[](size_type p) { return *(begin() + p); } - const_reference operator[](size_type p) const { return *(begin() + p); } - - reference front() { return *begin(); } - const_reference front() const { return *begin(); } - reference back() { return *(end() - 1); } - const_reference back() const { return *(end() - 1); } - - // modifiers - void push_back(byte x) { insert(end(), x); } - void pop_back() { erase(end() - 1); } - - void insert(iterator p, size_type m, byte x); - iterator insert(iterator p, byte x = byte(0)); - - template - void insert(iterator p, inputit f, inputit l) - { - size_type m = 0; - _distance(f, l, m); - if(size_type(mEnd - mLast) < m) - { - size_type n = size(); - n = aligned_size(n + (m < n ? n : m)); - iterator s = allocate(n, (void*) 0); - iterator q = ucopy(mFirst, p, s); - q = ucopy(f, l, q); - ucopy(p, mLast, q); - _destroy(mFirst, mLast); - deallocate(get_base(mFirst), mEnd - mFirst); - mEnd = s + n; - mLast = s + size() + m; - mFirst = s; - } - else if(size_type(mLast - p) < m) - { - ucopy(p, mLast, p + m); - ucopy(f + (mLast - p), l, mLast); - copy(f, f + (mLast - p), p); - mLast += m; - } - else if(0 < m) - { - ucopy(mLast - m, mLast, mLast); - copy_backward(p, mLast - m, mLast); - copy(f, l, p); - mLast += m; - } - } - - Blob& append(const Blob& x) - { - insert(end(), x.begin(), x.end()); - return *this; - } - - Blob& append(size_type m, byte x) - { - insert(end(), m, x); - return *this; - } - - template - Blob& append(inputit f, inputit l) - { - insert(end(), f, l); - return *this; - } - - iterator erase(iterator p); - iterator erase(iterator f, iterator l); - void clear(); - void swap(Blob& x); - - // used by compare operators - bool _eq(const Blob& x) const; - bool _lt(const Blob& x) const; - - allocator_type* get_allocator() const { return mAllocator; } - static allocator_type* set_default_allocator(allocator_type* allocator) - { - std::swap(dAllocator, allocator); - return allocator; - } - - private: - template - outputit copy(inputit f, inputit l, outputit x) - { - for(; f != l; ++x, ++f) - *x = *f; - return x; - } - - iterator copy_backward(const_iterator f, const_iterator l, iterator x); - - template - outputit ucopy(inputit f, inputit l, outputit p) - { - for(; f != l; ++p, ++f) - construct(get_base(p), *f); - return p; - } - - void fill(iterator f, const_iterator l, byte x); - void ufill(iterator f, size_type n, byte x); - - size_type distance(const_iterator f, const_iterator l) const; - - template - void _distance(inputit f, inputit l, size_type& n) const - { - for(; f != l; ++f) - ++n; - } - - bool equal(const_iterator f, const_iterator l, const_iterator x) const; - bool lexicographical_compare(const_iterator f1, const_iterator l1, const_iterator f2, const_iterator l2) const; - - byte* allocate(size_type n, const void* hint); - void deallocate(pointer p, size_type n); - - void construct(byte* p, const_reference v) { *p = v; } - void destroy(byte* p) { *p = 0; } - - void _destroy(iterator f, iterator l); - - void outofrange() const; - - static size_type aligned_size(size_type size); - - protected: - flags mFlags; - iterator mFirst, mLast, mEnd; - allocator_type* mAllocator; - static allocator_type* dAllocator; - }; - -#ifndef UNDER_CE_30 - std::ostream &operator<<(std::ostream& os, const Blob& blob); -#endif // UNDER_CE_30 - - - // -------------------------------------------------------------------------------- - inline bool operator==(const Blob& x, const Blob&y) - { - return x._eq(y); - } - - inline bool operator!=(const Blob& x, const Blob&y) - { - return !(x._eq(y)); - } - - inline bool operator<(const Blob& x, const Blob&y) - { - return x._lt(y); - } - - inline bool operator>=(const Blob& x, const Blob&y) - { - return !(x._lt(y)); - } - - inline bool operator<=(const Blob& x, const Blob&y) - { - return x._eq(y) || x._lt(y); - } - - inline bool operator>(const Blob& x, const Blob&y) - { - return !(x._eq(y) || x._lt(y)); - } - -} // namespace act - -// -------------------------------------------------------------------------------- -namespace std -{ - // --------------------------------------------------------------------------- - inline void swap(act::Blob& left, act::Blob& right) { left.swap(right); } - -} // namespace std - -#endif // ACT_Blob_h diff --git a/actlibrary/mingw32-i586/Release/include/actBlockCipherKit.h b/actlibrary/mingw32-i586/Release/include/actBlockCipherKit.h deleted file mode 100644 index e89cc2a..0000000 --- a/actlibrary/mingw32-i586/Release/include/actBlockCipherKit.h +++ /dev/null @@ -1,31 +0,0 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actBlockCipherKit.h -// Product: cv act library -// Purpose: declaration of all factory functions -// -// Copyright: (c) 2000 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_BlockCipherKit_h -#define ACT_BlockCipherKit_h - -namespace act -{ - class IBlockCipher; - - IBlockCipher* CreateDES(); - IBlockCipher* CreateTripleDES(); - IBlockCipher* CreateCAST128(); - IBlockCipher* CreateBlowFish(); - IBlockCipher* CreateTwoFish(); - IBlockCipher* CreateMars(); - IBlockCipher* CreateRijndael(); - IBlockCipher* CreateSerpent(); - IBlockCipher* CreateRC2(); - //IBlockCipher* CreateRC6(); -} -#endif - diff --git a/actlibrary/mingw32-i586/Release/include/actBlockCipherModeKit.h b/actlibrary/mingw32-i586/Release/include/actBlockCipherModeKit.h deleted file mode 100644 index ee2bd0a..0000000 --- a/actlibrary/mingw32-i586/Release/include/actBlockCipherModeKit.h +++ /dev/null @@ -1,27 +0,0 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actBlockCipherModeKit.h -// Product: cv act library -// Purpose: declaration of all factory functions -// -// Copyright: (c) 2000 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - - -#ifndef ACT_BlockCipherModeKit_h -#define ACT_BlockCipherModeKit_h - -namespace act -{ - class IBlockCipherMode; - - IBlockCipherMode* CreateECBMode(); - IBlockCipherMode* CreateCBCMode(); - IBlockCipherMode* CreateCFBMode(); - IBlockCipherMode* CreateOFBMode(); - IBlockCipherMode* CreateCTRMode(); -} -#endif - diff --git a/actlibrary/mingw32-i586/Release/include/actBlockCipherModeReg.h b/actlibrary/mingw32-i586/Release/include/actBlockCipherModeReg.h deleted file mode 100644 index 6ce7d63..0000000 --- a/actlibrary/mingw32-i586/Release/include/actBlockCipherModeReg.h +++ /dev/null @@ -1,40 +0,0 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actBlockCipherModeReg.h -// Product: cv act library -// Purpose: registry for factory functions in actBlockCipherModeKit.h -// -// Copyright: (c) 2000 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_BlockCipherModeReg_h -#define ACT_BlockCipherModeReg_h - -namespace act -{ - class IBlockCipherMode; - - typedef IBlockCipherMode* (*CreateBlockCipherModePtr)(); - - struct BlockCipherModeMapEntry - { - const char* Name; - CreateBlockCipherModePtr CreatePtr; - }; - - class BlockCipherModeReg - { - public: - static IBlockCipherMode* CreateBlockCipherMode(const char* name); - static CreateBlockCipherModePtr GetCreatePointer(const char* name); - static const char* GetName(void* createptr); - static const char* GetNextName(const char* name); - static void Insert(const char* name, CreateBlockCipherModePtr createptr); - static void Insert(const BlockCipherModeMapEntry* map); - }; - -} // namespace act - -#endif // ACT_BlockCipherModeReg_h diff --git a/actlibrary/mingw32-i586/Release/include/actBlockCipherReg.h b/actlibrary/mingw32-i586/Release/include/actBlockCipherReg.h deleted file mode 100644 index 7f96a90..0000000 --- a/actlibrary/mingw32-i586/Release/include/actBlockCipherReg.h +++ /dev/null @@ -1,39 +0,0 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actBlockCipherReg.h -// Product: cv act library -// Purpose: registry for factory functions in actBlockCipherKit.h -// -// Copyright: (c) 2000 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_BlockCipherReg_h -#define ACT_BlockCipherReg_h - -namespace act -{ - class IBlockCipher; - - typedef IBlockCipher* (*CreateBlockCipherPtr)(); - - struct BlockCipherMapEntry { - const char* Name; - CreateBlockCipherPtr CreatePtr; - }; - - class BlockCipherReg - { - public: - static IBlockCipher* CreateBlockCipher(const char* name); - static CreateBlockCipherPtr GetCreatePointer(const char* name); - static const char* GetName(void* createptr); - static const char* GetNextName(const char* name); - static void Insert(const char* name,CreateBlockCipherPtr createptr); - static void Insert(const BlockCipherMapEntry* map); - }; -} - -#endif - diff --git a/actlibrary/mingw32-i586/Release/include/actCRL.h b/actlibrary/mingw32-i586/Release/include/actCRL.h deleted file mode 100644 index 9922439..0000000 --- a/actlibrary/mingw32-i586/Release/include/actCRL.h +++ /dev/null @@ -1,68 +0,0 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actCRL.h -// Product: cv act library -// Purpose: -// -// Copyright: (c) 2000 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_CRL_h -#define ACT_CRL_h -#include "actBasics.h" - -namespace act -{ - class IKey; - class Blob; - class ICertificate; - class ICRL; - class CRL - { - public: - CRL(const char* type); - CRL(const char* type, const Blob& crlblob); - CRL(const CRL& crl); - - void SetParam(paramid_t id,const Blob& blob); - void SetParam(paramid_t id,int val); - void SetParam(paramid_t id,const char* cstr); - void GetParam(paramid_t id,Blob& blob) const; - int GetParam(paramid_t) const; - - void Import(const Blob& crl); - void Export(Blob& crl) const; - - void Revoke(const ICertificate* cert); - bool IsRevoked(const ICertificate* Cert) const; - void RemoveRevokation(const ICertificate* cert); - - void Revoke(const Blob& blob); - bool IsRevoked(const Blob& blob) const; - void RemoveRevokation(const Blob& blob); - - void Sign(const IKey* privkey); - int Verify(const IKey* pubkey) const; - - const ICRL* GetPointer() const; - ICRL* GetPointer(); - - operator const ICRL* () const; - operator ICRL* (); - - - ICRL* ReleasePointer(); - - CRL& operator= (const CRL& crl); - - ~CRL(); - private: - ICRL* mCRL; - }; - -}; // namespace act - -#endif - diff --git a/actlibrary/mingw32-i586/Release/include/actCertificate.h b/actlibrary/mingw32-i586/Release/include/actCertificate.h deleted file mode 100644 index f8d063b..0000000 --- a/actlibrary/mingw32-i586/Release/include/actCertificate.h +++ /dev/null @@ -1,67 +0,0 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actCertificate.h -// Product: cv act library -// Purpose: The concrete class Certificate enables direct access to a certificate, -// e.g. its public key and the corresponding validity. -// -// Copyright: (c) 2000 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_Certificate_h -#define ACT_Certificate_h - -#include "actBasics.h" - -namespace act -{ - class IKey; - class Blob; - class ICertificate; - - class Certificate - { - public: - Certificate(); - Certificate(const char* type); - Certificate(const char* type, const Blob& certblob); - Certificate(const Certificate& cert); - - void SetParam(paramid_t id, const Blob& blob); - void SetParam(paramid_t id, int val); - void SetParam(paramid_t id, const char* cstr); - void GetParam(paramid_t id, Blob& blob) const; - int GetParam(paramid_t id) const; - - void Import(const Blob& certblob); - void Export(Blob& certblob) const; - - void SetPublicKey(const IKey* pubkey); - IKey* CreatePublicKey(const char* = 0) const; - - void Sign(const IKey* privkey); - int Verify(const IKey* pubkey) const; - - const ICertificate* GetPointer() const; - ICertificate* GetPointer(); - - operator const ICertificate*() const; - operator ICertificate*(); - - ICertificate* ReleasePointer(); - - Certificate& operator=(const Certificate& cert); - Certificate& Reset(ICertificate* cert); - Certificate& Required(const char* where = 0); - - ~Certificate(); - - private: - ICertificate* mCert; - }; - -}; // namespace act - -#endif // ACT_Certificate_h diff --git a/actlibrary/mingw32-i586/Release/include/actCertificateKit.h b/actlibrary/mingw32-i586/Release/include/actCertificateKit.h deleted file mode 100644 index 9387a39..0000000 --- a/actlibrary/mingw32-i586/Release/include/actCertificateKit.h +++ /dev/null @@ -1,28 +0,0 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actCertificateKit.h -// Product: cv act library -// Purpose: declaration of all factory functions -// -// Copyright: (c) 2000 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_CERTIFICATEKIT_H -#define ACT_CERTIFICATEKIT_H - -namespace act -{ - class ICertificate; - class ICRL; - class ICVCertRequest; - - ICertificate* CreateX509Certificate(); - ICRL* CreateX509CRL(); - - ICertificate* CreateCVCertificate(); - ICVCertRequest* CreateCVCertRequest(); -} -#endif - diff --git a/actlibrary/mingw32-i586/Release/include/actCertificateReg.h b/actlibrary/mingw32-i586/Release/include/actCertificateReg.h deleted file mode 100644 index afd7a75..0000000 --- a/actlibrary/mingw32-i586/Release/include/actCertificateReg.h +++ /dev/null @@ -1,56 +0,0 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actCertificateReg.h -// Product: cv act library -// Purpose: -// -// Copyright: (c) 2000 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_CERTIFICATEREG_H -#define ACT_CERTIFICATEREG_H - -namespace act -{ - class ICertificate; - class ICRL; - - typedef ICertificate* (*CreateCertificatePtr)(); - typedef ICRL* (*CreateCRLPtr)(); - - struct CertificateMapEntry { - const char* Name; - CreateCertificatePtr CreatePtr; - }; - - struct CRLMapEntry { - const char* Name; - CreateCRLPtr CreatePtr; - }; - - class CertificateReg - { - public: - static ICertificate* CreateCertificate(const char* name); - static CreateCertificatePtr GetCreatePointer(const char* name); - static const char* GetName(void* createptr); - static const char* GetNextName(const char* name); - static void Insert(const char* name, CreateCertificatePtr createptr); - static void Insert(const CertificateMapEntry* certmap); - }; - - class CRLReg - { - public: - static ICRL* CreateCRL(const char* name); - static CreateCRLPtr GetCreatePointer(const char* name); - static const char* GetName(void* createptr); - static const char* GetNextName(const char* name); - static void Insert(const char* name, CreateCRLPtr createptr); - static void Insert(const CRLMapEntry* certmap); - }; -} -#endif - diff --git a/actlibrary/mingw32-i586/Release/include/actDate.h b/actlibrary/mingw32-i586/Release/include/actDate.h deleted file mode 100644 index 5d08c74..0000000 --- a/actlibrary/mingw32-i586/Release/include/actDate.h +++ /dev/null @@ -1,109 +0,0 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actDate.h -// Product: cv act library -// Purpose: The Date function used in act Library -// -// Copyright: (c) 2000 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_Date_h -#define ACT_Date_h - -#include "actBasics.h" - -#if defined(ACT_POSIX) -# include -#endif - -namespace act -{ - class Blob; - - class Date - { - public: - Date(); //today - Date(int day, int month ,int year); - Date(int day, int month, int year, int hour, int minute, int sec); - Date(const Blob& der); - - Date(const unsigned char* ch, const unsigned int size); - - Date& SetToday(); - - int GetDay() const { return m_day; } - int GetMonth() const { return m_month; } - int GetYear() const { return m_year; } - int GetHour() const { return m_hour; } - int GetMinute() const { return m_min; } - int GetSecond() const { return m_sec; } - - void IgnoreTime(bool b); // ignore time(hour, min,sec) in the operators - const Date& operator=(const Date&); - bool operator>(const Date&) const; - bool operator>=(const Date&) const; - bool operator<(const Date&) const; - bool operator<=(const Date&) const; - bool operator==(const Date&) const; - bool operator!=(const Date&) const; - - const Date& AddMonths(int m); - const Date& SubMonths(int m); - const Date& AddYears(int y); - const Date& SubYears(int y); - const Date& AddDays(int d); - const Date& SubDays(int d); - const Date& AddHours(int h); - const Date& SubHours(int h); - const Date& AddMinutes(int m); - const Date& SubMinutes(int m); - const Date& AddSecond(int m); - const Date& SubSecond(int m); - - int DayOfWeek() const; // 0:Sunday, 1=Monday ... 6=Saturday - int IsLeap(int y) const; // 1:leapyear, 0:else - int DaysPerMonth(int m, int y) const; - long GetDifference(const Date& d2) const; - - long GetJulian() const; - long GetJulian(int d, int m, int y) const; - void ConvertFromJulian(long jd, int& d, int& m, int& y); - - Blob Encode() const; - size_t Encode(Blob& encoded) const; - - Blob EncodeToGeneralizedTime() const; - Blob GetGeneralizedTimeString() const; - Blob GetLocalTimeString() const; // fixed format: "DD/MM/YYYY HH:MM:SS" - - operator Blob() const; - - int GetDayFromWeekDay (int weekday, int year, int month, int which); - -#if defined(ACT_POSIX) - static void copyDatetm(act::Date a, struct tm& b); - static void copytmDate(struct tm a, act::Date& b); -#endif - - private: - Date& SetYear(int year) { m_year = year; return *this; } - Date& SetMonth(int month) { m_month = month; return *this; } - Date& SetDay(int day) { m_day = day; return *this; } - Date& SetHour(int hour) { m_hour = hour; return *this; } - Date& SetMinute(int minute) { m_min = minute; return *this; } - Date& SetSecond(int sec) { m_sec = sec; return *this; } - bool IsValid() const; - void AdjustDays(); - - private: - int m_day, m_month, m_year; - int m_hour, m_min, m_sec; - bool m_ignore_time; - }; - -} // namespace act - -#endif // ACT_Date_h diff --git a/actlibrary/mingw32-i586/Release/include/actDebug.h b/actlibrary/mingw32-i586/Release/include/actDebug.h deleted file mode 100644 index 623c00a..0000000 --- a/actlibrary/mingw32-i586/Release/include/actDebug.h +++ /dev/null @@ -1,295 +0,0 @@ -////////////////////////////////////////////////////////////////////////// -// Name: actDebug.h -// Product: cv act library -// Purpose: Integration of globally available debug macros and functions -// -// Copyright: (c) 2005 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -// -// Autor: Markus Tesche (MTE) -// Date: 12/15/2005 -////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_Debug_h -#define ACT_Debug_h - -#include "actEnv.h" -#include "actBasics.h" -#include "actException.h" - -// -// ACT_NOOP use for semicolon terminated non operating macros. -#ifdef _MSC_VER -# if _MSC_VER >= 1210 -# define ACT_NOOP __noop -# else -# define ACT_NOOP ((void) 0) -# endif -// MSVC specific -# if !defined(DEBUG_NEW) -# if defined(_DEBUG) && !defined(_WIN32_WCE) -# include -# define DEBUG_NEW new(_NORMAL_BLOCK, __FILE__, __LINE__) -# else -# define DEBUG_NEW new -# endif -# endif -#else -# define ACT_NOOP ((void) 0) -# define DEBUG_NEW new -#endif - -// -// Declare all debug macros for release builds. -#ifdef _DEBUG -# ifdef UNDER_CE -# define ACT_ASSERT ACT_NOOP -# define ACT_ASSERT_ALWAYS(m, l, f) ACT_NOOP -# endif -# define ACT_DEBUG 1 -# define ACT_DEBUG_PARAM(p) p -# define ACT_DEBUG_SOURCE() act::FileAndLine(__FILE__, __LINE__) -# define ACT_NOT_IMPLEMENTED(m, w) throw act::NotImplementedException(m, w) << ACT_DEBUG_SOURCE() -#else -# define ACT_DEBUG 0 -# define ACT_DEBUG_SOURCE() act::FileAndLine() -# define ACT_NOT_IMPLEMENTED(m, w) throw act::NotImplementedException(m, w) -# if defined(_MSC_VER) && _MSC_VER < 1210 -# define ACT_DEBUG_PARAM(p) p -# define ACT_TRACE ACT_NOOP -# define ACT_TRACELOG ACT_NOOP -# define ACT_ASSERT ACT_NOOP -# else -# define ACT_DEBUG_PARAM(p) -# define ACT_TRACE(...) ACT_NOOP -# define ACT_TRACELOG(...) ACT_NOOP -# define ACT_ASSERT(e) ACT_NOOP -# endif -# define ACT_ASSERT_ALWAYS(m, l, f) ACT_NOOP -# define ACT_ASSERT_ON_THROW(m) ACT_NOOP -#endif // _DEBUG - -// -// ACT_ASSERT -#ifndef ACT_ASSERT -# if defined(_MSC_VER) -# include -# define ACT_ASSERT _ASSERTE -# else -# include -# define ACT_ASSERT assert -# endif -#endif // ACT_ASSERT - -// -// ACT_ASSERT_ALWAYS -#ifndef ACT_ASSERT_ALWAYS -# if defined(_MSC_VER) -# include -# define ACT_ASSERT_ALWAYS(m, f, l) _RPT_BASE((_CRT_ASSERT, f, l, 0, m)) -# else -# include -# define ACT_ASSERT_ALWAYS(m, f, l) assert(f == 0) -# endif -#endif // ACT_ASSERT_ALWAYS - -// -// ACT_ASSERT_ON_THROW -#ifndef ACT_ASSERT_ON_THROW -namespace act -{ - class CheckForNoThrow : public FileAndLine - { - public: - CheckForNoThrow(const char* msg, const char* file = 0, int line = 0) - : FileAndLine(file, line) - , m_msg(msg) - { } - - ~CheckForNoThrow() - { - const bool uc = ::std::uncaught_exception(); - if(uc == true) ACT_ASSERT_ALWAYS(m_msg, file(), line()); - } - - private: - const char* m_msg; - }; - -} // namespace act - -#define ACT_ASSERT_ON_THROW(m) act::CheckForNoThrow __dbg_check_for_nothrow(m, __FILE__, __LINE__) -#endif // ACT_ASSERT_ON_THROW - -// -// ACT_ENABLE_TRACE -#ifdef ACT_ENABLE_TRACE -# ifdef ACT_TRACE -# undef ACT_TRACE -# endif -# ifdef ACT_TRACELOG -# undef ACT_TRACELOG -# endif -#endif - -// -// ACT_TRACE -#ifndef ACT_TRACE - -#ifndef ACT_TRACE_BUFFER -#define ACT_TRACE_BUFFER 1024 -#endif - -#include -#include -#include - -#if defined(ACT_WIN32) || defined(ACT_WIN32_WCE) -#include - -namespace act -{ - struct Trace - { - void __cdecl operator()(const char* pFormat, va_list ptr, const char* pFileName = 0, int nLine = 0) const - { - char szBuf[ACT_TRACE_BUFFER] = {'\0'}; - int nLen = 0; - - if(pFileName != 0) { - int nTemp = _snprintf(szBuf + nLen, ACT_TRACE_BUFFER - nLen, "%s(%d) : ", pFileName, nLine); - if(nTemp < 0) - nLen = ACT_TRACE_BUFFER; - else nLen += nTemp; - } - - _vsnprintf(szBuf + nLen, ACT_TRACE_BUFFER - nLen, pFormat, ptr); - szBuf[ACT_TRACE_BUFFER - 1] = 0; -#ifndef UNDER_CE - ::OutputDebugStringA(szBuf); -#else - { - wchar_t wtmp[ACT_TRACE_BUFFER]; - mbstowcs(wtmp, szBuf, ACT_TRACE_BUFFER); - ::OutputDebugStringW(wtmp); - } -#endif - } - }; - -} // namespace act - -#elif defined(ACT_POSIX) -#include - -namespace act -{ - struct Trace - { - void operator()(const char* pFormat, va_list ptr, const char* pFileName = 0, int nLine = 0) const - { - char szBuf[ACT_TRACE_BUFFER] = {'\0'}; - int nLen = 0; - - if(pFileName != 0) { - int nTemp = snprintf(szBuf + nLen, ACT_TRACE_BUFFER - nLen, "%s(%d) : ", pFileName, nLine); - if(nTemp < 0) - nLen = ACT_TRACE_BUFFER; - else nLen += nTemp; - } - - vsnprintf(szBuf + nLen, ACT_TRACE_BUFFER - nLen, pFormat, ptr); - szBuf[ACT_TRACE_BUFFER - 1] = 0; - - syslog(LOG_DEBUG, "%s", szBuf); - } - }; - -} // namespace act - -#else -# error act::Trace not implemented for this platform - -#endif - -// -// act::TraceFileAndLine -namespace act -{ - class TraceFileAndLine : public FileAndLine - { - public: - TraceFileAndLine() { } - TraceFileAndLine(const FileAndLine& fl) : FileAndLine(fl) { } - TraceFileAndLine(const char * file, int line) : FileAndLine(file, line) { } - - inline void setFileAndLine(const FileAndLine* fl) - { - if(fl != 0) *static_cast(this) = *fl; - } - - inline TraceFileAndLine& operator<<(const FileAndLine& fl) - { - *static_cast(this) = fl; - return *this; - } - - // - // default va_list based trace. - void operator()(const char* pFormat, ...) - { - va_list ptr; va_start(ptr, pFormat); - Trace()(pFormat, ptr, file(), line()); - va_end(ptr); - } - - // - // Exception trace. - void operator()(const Exception& e) - { - setFileAndLine(dynamic_cast(&e)); - switch(e.GetId()) - { - case eiNoSuchAlgorithmException: - (*this)("%s['0x%08x', '%&s', '%s', '%s']\n", - typeid(e).name(), - static_cast(e).algorithm(), - e.code(), e.what(), e.where()); - break; - - default: - (*this)("%s['0x%08x', '%s', '%s']\n", - typeid(e).name(), e.code(), e.what(), e.where()); - } - } - - void operator()(const Exception& e, const char* pName) - { - setFileAndLine(dynamic_cast(&e)); - switch(e.GetId()) - { - case eiNoSuchAlgorithmException: - (*this)("%s : %s['0x%08x', '%s', '%s', '%s']\n", pName, - typeid(e).name(), - e.code(), - static_cast(e).algorithm(), - e.what(), e.where()); - break; - - default: - (*this)("%s : %s['0x%08x', '%s', '%s']\n", pName, - typeid(e).name(), - e.code(), e.what(), e.where()); - } - } - }; - -} // namespace act - -#define ACT_TRACE act::TraceFileAndLine(__FILE__, __LINE__) -#define ACT_TRACELOG act::TraceFileAndLine() - -#endif // ACT_TRACE -#endif // ACT_Debug_h diff --git a/actlibrary/mingw32-i586/Release/include/actDefaultRNG.h b/actlibrary/mingw32-i586/Release/include/actDefaultRNG.h deleted file mode 100644 index 6d44af6..0000000 --- a/actlibrary/mingw32-i586/Release/include/actDefaultRNG.h +++ /dev/null @@ -1,24 +0,0 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actDefaultRNG.h -// Product: cv act library -// Purpose: actDefaultRNG.h provides defaults for the class IRNGAlg. -// -// Copyright: (c) 2000 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_DefaultRNG_h -#define ACT_DefaultRNG_h -namespace act -{ - class IRNGAlg; - typedef IRNGAlg* (*CreateRNGPtr)(); - - extern CreateRNGPtr CreateFastRNG; - extern CreateRNGPtr CreateStrongRNG; -} - -#endif - diff --git a/actlibrary/mingw32-i586/Release/include/actDerivatorKit.h b/actlibrary/mingw32-i586/Release/include/actDerivatorKit.h deleted file mode 100644 index 8339d09..0000000 --- a/actlibrary/mingw32-i586/Release/include/actDerivatorKit.h +++ /dev/null @@ -1,27 +0,0 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actDerivatorKit.h -// Product: cv act library -// Purpose: declaration of all factory functions -// -// Copyright: (c) 2006 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_DerivatorKit_h -#define ACT_DerivatorKit_h - -namespace act -{ - class IDerivator; - class Blob; - - IDerivator* CreateKDF1(); - IDerivator* CreateX963KDF(); - IDerivator* CreatePBKDF1(); - IDerivator* CreatePBKDF2(); - IDerivator* CreateEACKDF(); -} -#endif - diff --git a/actlibrary/mingw32-i586/Release/include/actDerivatorReg.h b/actlibrary/mingw32-i586/Release/include/actDerivatorReg.h deleted file mode 100644 index 32fe672..0000000 --- a/actlibrary/mingw32-i586/Release/include/actDerivatorReg.h +++ /dev/null @@ -1,41 +0,0 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actDerivatorReg.h -// Product: cv act library -// Purpose: registry for the factory functions in actDerivatorKit.h -// -// Copyright: (c) 2000 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_DerivatorReg_h -#define ACT_DerivatorReg_h - -namespace act -{ - class IDerivator; - class Blob; - - typedef IDerivator* (*CreateDerivatorPtr)(); - - struct DerivatorMapEntry - { - const char* Name; - CreateDerivatorPtr CreatePtr; - }; - - class DerivatorReg - { - public: - static IDerivator* CreateDerivator(const char* name); - static CreateDerivatorPtr GetCreatePointer(const char* name); - static const char* GetName(void* createptr); - static const char* GetNextName(const char* name); - static void Insert(const char* name, CreateDerivatorPtr createptr); - static void Insert(const DerivatorMapEntry* derivatormap); - }; - -} // namespace act - -#endif // ACT_DerivatorReg_h diff --git a/actlibrary/mingw32-i586/Release/include/actEMSAKit.h b/actlibrary/mingw32-i586/Release/include/actEMSAKit.h deleted file mode 100644 index 460f614..0000000 --- a/actlibrary/mingw32-i586/Release/include/actEMSAKit.h +++ /dev/null @@ -1,28 +0,0 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actEMSAKit.h -// Product: cv act library -// Purpose: declaration of all factory functions -// -// Copyright: (c) 2000 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_EMSAKit_h -#define ACT_EMSAKit_h - -namespace act -{ - class IEMSAAlg; - - IEMSAAlg* CreateEMSA1(); - IEMSAAlg* CreatePKCS1V1_5EMSA(); - IEMSAAlg* CreateTLS_EMSA(); - IEMSAAlg* CreatePKCS1_PSS_EMSA(); - - IEMSAAlg* CreateDummyEMSA(); - -} -#endif - diff --git a/actlibrary/mingw32-i586/Release/include/actEMSAReg.h b/actlibrary/mingw32-i586/Release/include/actEMSAReg.h deleted file mode 100644 index c5e92f0..0000000 --- a/actlibrary/mingw32-i586/Release/include/actEMSAReg.h +++ /dev/null @@ -1,40 +0,0 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actEMSAReg.h -// Product: cv act library -// Purpose: registry for factory functions in actEMSAKit.h -// -// Copyright: (c) 2000 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_EMSAReg_h -#define ACT_EMSAReg_h - -namespace act -{ - class IEMSAAlg; - - typedef IEMSAAlg* (*CreateEMSAPtr)(); - - struct EMSAMapEntry - { - const char* Name; - CreateEMSAPtr CreatePtr; - }; - - class EMSAReg - { - public: - static IEMSAAlg* CreateEMSAAlg(const char* name); - static CreateEMSAPtr GetCreatePointer(const char* name); - static const char* GetName(void* createptr); - static const char* GetNextName(const char* name); - static void Insert(const char* name, CreateEMSAPtr createptr); - static void Insert(const EMSAMapEntry* map); - }; - -} // namespace act - -#endif // ACT_EMSAReg_h diff --git a/actlibrary/mingw32-i586/Release/include/actEnv.h b/actlibrary/mingw32-i586/Release/include/actEnv.h deleted file mode 100644 index 6a319b8..0000000 --- a/actlibrary/mingw32-i586/Release/include/actEnv.h +++ /dev/null @@ -1,126 +0,0 @@ -////////////////////////////////////////////////////////////////////////// -// Name: actEnv.h -// Product: cv act library -// Purpose: Operating System environment -// -// Copyright: (c) 2009 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -// -// Autor: Markus Tesche -// Date: 04/23/2009 -////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_Env_h -#define ACT_Env_h - -// 64Bit detection ... -#if defined(_WIN64) || \ - defined(__LP64__) || \ - defined(__alpha__) || \ - defined(__ia64__) || \ - defined(__ppc64__) || \ - defined(__s390x__) || \ - defined(__x86_64__) -# define ACT_64 -#endif - -// cygwin -#if defined(__CYGWIN__) -# define ACT_CYGWIN -#endif - -// mingw -#if defined(__MINGW32__) -# define ACT_MINGW -#endif - -// Platform detection ... -#if defined(ACT_WIN32) || \ - defined(ACT_POSIX) || \ - defined(ACT_SOLARIS) || \ - defined(ACT_MACOSX) || \ - defined(ACT_WIN32_WCE) -// do nothing - -#elif defined(_WIN32_WCE) && _WIN32_WCE >= 0x500 -# define ACT_WIN32 -# define ACT_WIN32_WCE - -#elif defined(WIN32) && !defined(__CYGWIN__) -# define ACT_WIN32 - -#elif defined(_MSC_VER) || \ - defined(__BORLANDC__) || \ - defined(__BCPLUSPLUS__) || \ - defined(__MINGW32__) -# define ACT_WIN32 - -#elif defined(__linux__) || \ - defined(__CYGWIN__) || \ - defined(__FreeBSD__) || defined(__NetBSD__) || defined(__OpenBSD__) || \ - defined(__hpux) || \ - defined(__sgi) -# define ACT_POSIX - -#elif defined(_POSIX_SOURCE) || \ - defined(_XOPEN_SOURCE) -# define ACT_POSIX - -#elif defined(__sun) -# define ACT_POSIX -# define ACT_SOLARIS - -#elif defined(__APPLE__) && defined(__MACH__) -# define ACT_POSIX -# define ACT_MACOSX - -#else -# error unable to deteced system environment - -#endif - -// -// ACT_DEPRECATED definition -#if defined(_MSC_VER) -# define ACT_MSC -# if _MSC_FULL_VER >= 140050320 -# define ACT_DEPRECATED(msg) __declspec(deprecated("is deprecated: " msg)) -# else -# define ACT_DEPRECATED(msg) __declspec(deprecated) -# endif -# define ACT_STDEXT_NS std -# define ACT_STDEXT_INC(file) - -#elif defined(__GNUC__) -# define ACT_GCC -# if (__GNUC__ > 3) || (__GNUC__ == 3 && __GNUC_MINOR__ >= 1) -# define ACT_DEPRECATED(msg) __attribute__((__deprecated__)) -# endif -# define ACT_STDEXT_NS __gnu_cxx -# define ACT_STDEXT_INC(file) - -#endif - -#if !defined(ACT_DEPRECATED) -# define ACT_DEPRECATED(msg) -#endif - -// -// DLL/Shared Object symbol export/import attribte -#if defined(ACT_MSC) -# define ACT_DYNLIB_EXPORT _declspec(dllexport) -# define ACT_DYNLIB_IMPORT _declspec(dllimport) - -#elif defined(ACT_GCC) && !defined(ACT_MINGW) -# define ACT_DYNLIB_EXPORT __attribute__((visibility("default"))) -# define ACT_DYNLIB_IMPORT - -#else -# define ACT_DYNLIB_EXPORT -# define ACT_DYNLIB_IMPORT - -#endif - -#endif // ACT_Env_h diff --git a/actlibrary/mingw32-i586/Release/include/actException.h b/actlibrary/mingw32-i586/Release/include/actException.h deleted file mode 100644 index caa9636..0000000 --- a/actlibrary/mingw32-i586/Release/include/actException.h +++ /dev/null @@ -1,1112 +0,0 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actException.h -// Product: cv act library -// Purpose: exception hierarchy -// -// Copyright: (c) 2000 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_Exception_h -#define ACT_Exception_h - -#include -#include - -#include "actMove.h" -#include "actBlob.h" - -namespace act -{ - // --------------------------------------------------------------------------- - enum ExceptionId - { - eiException = 0, - eiBadException = eiException + 1, - eiNullPointerException, - eiOutOfRangeException, - - eiBadCastException = eiException + 10, - eiBadNumericCast, - eiNegativeOverflow, - eiPositiveOverflow, - - eiRuntimeException = eiException + 20, - eiBadAllocException, - eiNotSupportedException, - eiNotImplementedException, - eiInvalidParameterException, - eiSynchronizationException, - - eiLogicalException = eiException + 40, - eiASN1Exception, - eiNoSuchDLLException, - eiPasswordException, - eiArithmeticException, - eiMessageDigestException, - eiPaddingException, - eiSignatureException, - - eiAlgorithmException = eiException + 80, - eiInvalidAlgorithmParameterException, - eiNoSuchAlgorithmException, - - eiCertificateException = eiException + 80, - eiInvalidCertificateException, - eiCertificateEncodingException, - eiCertificateExpiredException, - eiCertificateNotYetValidException, - eiCertificateParsingException, - - eiKeyException = eiException + 100, - eiInvalidKeyException, - eiKeyManagementException, - - eiEACException = eiException + 120, - eiEACDataException, - eiEACMRZException, - eiEACCVCertException, - - eiSmartcardException = eiException + 140, - eiCardOutOfMemoryException, - eiInvalidPinException, - eiPinLockedException, - eiPinExpiredException, - eiPinLenRangeException, - eiInvalidCRKeyException, - eiInvalidCardException, - eiInvalidAuthException, - eiInvalidAuthObjectException, - eiAuthProtocolException, - eiAuthConstrainedException, - eiSecureMessagingException, - eiSMWrapException, - eiSMUnwrapException, - - eiSubsystemException = eiException + 180, - eiNoSuchSubsystemException, - }; - -#ifndef UNDER_CE_30 - - // --------------------------------------------------------------------------- - class FileAndLine - { - public: - FileAndLine(const char* file = 0, int line = 0) - : m_line(line) - , m_file(file) - { } - - FileAndLine(const FileAndLine& other) - : m_line(other.line()) - , m_file(other.file()) - { } - - int line() const { return m_line; } - const char* file() const { return m_file; } - - // assignment operators. - FileAndLine& operator=(const FileAndLine& other) - { - m_line = other.line(); - m_file = other.file(); - return *this; - } - - private: - int m_line; - const char* m_file; - }; - - // - // base class for all exceptions thrown by cv act library - // --------------------------------------------------------------------------- - class Exception - { - public: - typedef Exception Type; - - explicit Exception(const char* msg = 0, const char* where = 0, ulong code = 0) - : m_what(msg) - , m_where(where) - , m_code(code) - { } - - explicit Exception(const std::exception& other) - : m_what(other.what()) - , m_where(0) - , m_code(0) - { } - - template - explicit Exception(const T& other) - : m_what(other.what()) - , m_where(other.where()) - , m_code(0) - { } - - virtual ~Exception() - { } - - template - _ExceptionT* TypedClone() const - { - return new(std::nothrow) _ExceptionT(m_what, m_where, m_code); - } - - template - _ExceptionT* TypedClone(const ParamT& param) const - { - return new(std::nothrow) _ExceptionT(m_what, m_where, param); - } - - template - void TypedThrow() const { throw _ExceptionT(m_what, m_where, m_code); } - - template - void TypedThrow(const ParamT& param) const { throw _ExceptionT(m_what, m_where, param); } - - virtual Exception* Clone() const { return new(std::nothrow) Exception(*this); } - virtual int GetId() const { return eiException; } - virtual void Throw() const { throw Exception(*this); } - - const char* what() const { return m_what != 0 ? m_what : ""; } - const char* where() const { return m_where != 0 ? m_where : ""; } - ulong code() const { return m_code; } - - template - friend ExceptionT& modify(ExceptionT& e, const char* what, const char* where) - { - if(what != 0) e.m_what = what; - if(where != 0) e.m_where = where; - return e; - } - - protected: - const char* m_what; - const char* m_where; - ulong m_code; - }; - - // - // ExceptionType<> - // --------------------------------------------------------------------------- - template - < - const int _exceptionId, - class ExceptionT, - class BaseT, - typename OtherT = void - > - class ExceptionType : public BaseT, public OtherT - { - protected: - typedef BaseT BaseType; - typedef OtherT OtherType; - enum { exceptionId = _exceptionId }; - - public: - ExceptionType(const char* msg, const char* where, ulong code) - : BaseType(msg, where, code) - , OtherT() - { } - - ExceptionT& operator<<(const OtherType& other) - { - *static_cast(this) = other; - return *static_cast(this); - } - - template - _ExceptionT* TypedClone() const - { - _ExceptionT* e = new(std::nothrow) _ExceptionT(BaseT::m_what, BaseT::m_where, BaseT::m_code); - if(e != 0) *e << *this; - return e; - } - - virtual void Throw() const { throw ExceptionT(BaseT::m_what, BaseT::m_where, BaseT::m_code); } - virtual int GetId() const { return exceptionId; } - }; - - template - < - const int _exceptionId, - class ExceptionT, - class BaseT - > - class ExceptionType<_exceptionId, ExceptionT, BaseT, void> : public BaseT - { - protected: - typedef BaseT BaseType; - enum { exceptionId = _exceptionId }; - - public: - ExceptionType(const char* msg, const char* where, ulong code) - : BaseType(msg, where, code) - { } - - virtual void Throw() const { throw ExceptionT(BaseT::m_what, BaseT::m_where, BaseT::m_code); } - virtual int GetId() const { return exceptionId; } - }; - - // --------------------------------------------------------------------------- - class BadException : - public ExceptionType - { - public: - typedef ExceptionType BaseType; - typedef BadException Type; - using BaseType::exceptionId; - - BadException(const char* msg = 0, const char* where = 0, ulong code = 0) - : BaseType(msg, where, code) - { } - }; - - class NullPointerException : - public ExceptionType - { - public: - typedef ExceptionType BaseType; - typedef NullPointerException Type; - using BaseType::exceptionId; - - NullPointerException(const char* msg = 0, const char* where = 0, ulong code = 0) - : BaseType(msg, where, code) - { } - }; - - class OutOfRangeException : - public ExceptionType - { - public: - typedef ExceptionType BaseType; - typedef OutOfRangeException Type; - using BaseType::exceptionId; - - OutOfRangeException(const char* msg = 0, const char* where = 0, ulong code = 0) - : BaseType(msg, where, code) - { } - }; - - // --------------------------------------------------------------------------- - class BadCastException : - public ExceptionType - { - public: - typedef ExceptionType BaseType; - typedef BadCastException Type; - using BaseType::exceptionId; - - BadCastException(const char* msg = 0, const char* where = 0, ulong code = 0) - : BaseType(msg, where, code) - { } - }; - - class BadNumericCast : - public ExceptionType - { - public: - typedef ExceptionType BaseType; - typedef BadNumericCast Type; - using BaseType::exceptionId; - - BadNumericCast(const char* msg = 0, const char* where = 0, ulong code = 0) - : BaseType(msg, where, code) - { } - - template - void operator()(overflow_type overflow) - { - switch(eiBadNumericCast + overflow) - { - case eiNegativeOverflow: TypedThrow >(); - case eiPositiveOverflow: TypedThrow >(); - default: /* do nothing */; - } - } - }; - - // --------------------------------------------------------------------------- - class RuntimeException : - public ExceptionType - { - public: - typedef ExceptionType BaseType; - typedef RuntimeException Type; - using BaseType::exceptionId; - - RuntimeException(const char* msg = 0, const char* where = 0, ulong code = 0) - : BaseType(msg, where, code) - { } - }; - - class BadAllocException : - public ExceptionType - { - public: - typedef ExceptionType BaseType; - typedef BadAllocException Type; - using BaseType::exceptionId; - - BadAllocException(const char* msg = 0, const char* where = 0, ulong code = 0) - : BaseType(msg, where, code) - { } - }; - - class NotSupportedException : - public ExceptionType - { - public: - typedef ExceptionType BaseType; - typedef NotSupportedException Type; - using BaseType::exceptionId; - using BaseType::operator<<; - - explicit NotSupportedException(const char* msg = 0, const char* where = 0, ulong code = 0) - : BaseType(msg, where, code) - { } - - virtual Type* Clone() const { return TypedClone(); } - }; - - class NotImplementedException : - public ExceptionType - { - public: - typedef ExceptionType BaseType; - typedef NotImplementedException Type; - using BaseType::exceptionId; - using BaseType::operator<<; - - NotImplementedException(const char* msg = 0, const char* where = 0, ulong code = 0) - : BaseType(msg, where, code) - { } - - virtual Type* Clone() const { return TypedClone(); } - }; - - class InvalidParameterException : - public ExceptionType - { - public: - typedef ExceptionType BaseType; - typedef InvalidParameterException Type; - using BaseType::exceptionId; - using BaseType::operator<<; - - InvalidParameterException(const char* msg = 0, const char* where = 0, ulong code = 0) - : BaseType(msg, where, code) - { } - - virtual Type* Clone() const { return TypedClone(); } - }; - - class SynchronizationException : - public ExceptionType - { - public: - typedef ExceptionType BaseType; - typedef SynchronizationException Type; - using BaseType::exceptionId; - using BaseType::operator<<; - - SynchronizationException(const char* msg = 0, const char* where = 0, ulong code = 0) - : BaseType(msg, where, code) - { } - - virtual Type* Clone() const { return TypedClone(); } - }; - - // --------------------------------------------------------------------------- - class LogicalException : public Exception - { - public: - typedef Exception BaseType; - typedef LogicalException Type; - - LogicalException(const char* msg = 0, const char* where = 0, ulong code = 0) - : Exception(msg, where, code) - { } - - virtual Type* Clone() const { return TypedClone(); } - virtual void Throw() const { throw Type(m_what, m_where, m_code); } - virtual int GetId() const { return eiLogicalException; } - }; - - class ASN1Exception : public LogicalException - { - public: - typedef LogicalException BaseType; - typedef ASN1Exception Type; - - ASN1Exception(const char* msg = 0, const char* where = 0, ulong code = 0) - : LogicalException(msg, where, code) - { } - - virtual Type* Clone() const { return TypedClone(); } - virtual void Throw() const { throw Type(m_what, m_where, m_code); } - virtual int GetId() const { return eiASN1Exception; } - }; - - class NoSuchDLLException : public LogicalException - { - public: - typedef LogicalException BaseType; - typedef NoSuchDLLException Type; - - NoSuchDLLException(const char* msg = 0, const char* where = 0, ulong code = 0) - : LogicalException(msg, where, code) - { } - - virtual Type* Clone() const { return TypedClone(); } - virtual void Throw() const { throw Type(m_what, m_where, m_code); } - virtual int GetId() const { return eiNoSuchDLLException; } - }; - - class PasswordException : public LogicalException - { - public: - typedef LogicalException BaseType; - typedef PasswordException Type; - - PasswordException(const char* msg = 0, const char* where = 0, ulong code = 0) - : LogicalException(msg, where, code) - { } - - virtual Type* Clone() const { return TypedClone(); } - virtual void Throw() const { throw Type(m_what, m_where, m_code); } - virtual int GetId() const { return eiPasswordException; } - }; - - class ArithmeticException : public LogicalException - { - public: - typedef LogicalException BaseType; - typedef ArithmeticException Type; - - ArithmeticException(const char* msg = 0, const char* where = 0, ulong code = 0) - : LogicalException(msg, where, code) - { } - - virtual Type* Clone() const { return TypedClone(); } - virtual void Throw() const { throw Type(m_what, m_where, m_code); } - virtual int GetId() const { return eiArithmeticException; } - }; - - class MessageDigestException : public LogicalException - { - public: - typedef LogicalException BaseType; - typedef MessageDigestException Type; - - MessageDigestException(const char* msg = 0, const char* where = 0, ulong code = 0) - : LogicalException(msg, where, code) - { } - - virtual Type* Clone() const { return TypedClone(); } - virtual void Throw() const { throw Type(m_what, m_where, m_code); } - virtual int GetId() const { return eiMessageDigestException; } - }; - - class PaddingException : public LogicalException - { - public: - typedef LogicalException BaseType; - typedef PaddingException Type; - - PaddingException(const char* msg = 0, const char* where = 0, ulong code = 0) - : LogicalException(msg, where, code) - { } - - virtual Type* Clone() const { return TypedClone(); } - virtual void Throw() const { throw Type(m_what, m_where, m_code); } - virtual int GetId() const { return eiPaddingException; } - }; - - class SignatureException : public LogicalException - { - public: - typedef LogicalException BaseType; - typedef SignatureException Type; - - SignatureException(const char* msg = 0, const char* where = 0, ulong code = 0) - : LogicalException(msg, where, code) - { } - - virtual Type* Clone() const { return TypedClone(); } - virtual void Throw() const { throw Type(m_what, m_where, m_code); } - virtual int GetId() const { return eiSignatureException; } - }; - - // --------------------------------------------------------------------------- - class AlgorithmException : public LogicalException - { - public: - typedef LogicalException BaseType; - typedef AlgorithmException Type; - - AlgorithmException(const char* msg = 0, const char* where = 0, ulong code = 0) - : LogicalException(msg, where, code) - { } - - virtual Type* Clone() const { return TypedClone(); } - virtual void Throw() const { throw Type(m_what, m_where, m_code); } - virtual int GetId() const { return eiAlgorithmException; } - }; - - class InvalidAlgorithmParameterException : public AlgorithmException - { - public: - typedef AlgorithmException BaseType; - typedef InvalidAlgorithmParameterException Type; - - InvalidAlgorithmParameterException(const char* msg = 0, const char* where = 0, ulong code = 0) - : AlgorithmException(msg, where, code) - { } - - virtual Type* Clone() const { return TypedClone(); } - virtual void Throw() const { throw Type(m_what, m_where, m_code); } - virtual int GetId() const { return eiInvalidAlgorithmParameterException; } - }; - - class NoSuchAlgorithmException : public AlgorithmException - { - public: - typedef AlgorithmException BaseType; - typedef NoSuchAlgorithmException Type; - - NoSuchAlgorithmException(const char* msg = 0, const char* where = 0, const char* algorithm = 0) - : AlgorithmException(msg, where) - , m_algorithm(algorithm) - { - m_algorithm.push_back(0); - } - - // GCC 4.2.1 whats to have it - virtual ~NoSuchAlgorithmException() - { } - - virtual Type* Clone() const { return TypedClone(algorithm()); } - virtual void Throw() const { throw Type(m_what, m_where, algorithm()); } - virtual int GetId() const { return eiNoSuchAlgorithmException; } - - const char* algorithm() const { return reinterpret_cast(&m_algorithm[0]); } - - protected: - mutable Blob m_algorithm; - }; - - // --------------------------------------------------------------------------- - class CertificateException : public LogicalException - { - public: - typedef LogicalException BaseType; - typedef CertificateException Type; - - CertificateException(const char* msg = 0, const char* where = 0, ulong code = 0) - : LogicalException(msg, where, code) - { } - - virtual Type* Clone() const { return TypedClone(); } - virtual void Throw() const { throw Type(m_what, m_where, m_code); } - virtual int GetId() const { return eiCertificateException; } - }; - - class InvalidCertificateException : public CertificateException - { - public: - typedef CertificateException BaseType; - typedef InvalidCertificateException Type; - - InvalidCertificateException(const char* msg = 0, const char* where = 0, ulong code = 0) - : CertificateException(msg, where, code) - { } - - virtual Type* Clone() const { return TypedClone(); } - virtual void Throw() const { throw Type(m_what, m_where, m_code); } - virtual int GetId() const { return eiInvalidCertificateException; } - }; - - class CertificateEncodingException : public CertificateException - { - public: - typedef CertificateException BaseType; - typedef CertificateEncodingException Type; - - CertificateEncodingException(const char* msg = 0, const char* where = 0, ulong code = 0) - : CertificateException(msg, where, code) - { } - - virtual Type* Clone() const { return TypedClone(); } - virtual void Throw() const { throw Type(m_what, m_where, m_code); } - virtual int GetId() const { return eiCertificateEncodingException; } - }; - - class CertificateExpiredException : public CertificateException - { - public: - typedef CertificateException BaseType; - typedef CertificateExpiredException Type; - - CertificateExpiredException(const char* msg = 0, const char* where = 0, ulong code = 0) - : CertificateException(msg, where, code) - { } - - virtual Type* Clone() const { return TypedClone(); } - virtual void Throw() const { throw Type(m_what, m_where, m_code); } - virtual int GetId() const { return eiCertificateExpiredException; } - }; - - class CertificateNotYetValidException : public CertificateException - { - public: - typedef CertificateException BaseType; - typedef CertificateNotYetValidException Type; - - CertificateNotYetValidException(const char* msg = 0, const char* where = 0, ulong code = 0) - : CertificateException(msg, where, code) - { } - - virtual Type* Clone() const { return TypedClone(); } - virtual void Throw() const { throw Type(m_what, m_where, m_code); } - virtual int GetId() const { return eiCertificateNotYetValidException; } - }; - - class CertificateParsingException : public CertificateException - { - public: - typedef CertificateException BaseType; - typedef CertificateParsingException Type; - - CertificateParsingException(const char* msg = 0, const char* where = 0, ulong code = 0) - : CertificateException(msg, where, code) - { } - - virtual Type* Clone() const { return TypedClone(); } - virtual void Throw() const { throw Type(m_what, m_where, m_code); } - virtual int GetId() const { return eiCertificateParsingException; } - }; - - // --------------------------------------------------------------------------- - class KeyException : public LogicalException - { - public: - typedef LogicalException BaseType; - typedef KeyException Type; - - KeyException(const char* msg = 0, const char* where = 0, ulong code = 0) - : LogicalException(msg, where, code) - { } - - virtual Type* Clone() const { return TypedClone(); } - virtual void Throw() const { throw Type(m_what, m_where, m_code); } - virtual int GetId() const { return eiKeyException; } - }; - - class InvalidKeyException : public KeyException - { - public: - typedef KeyException BaseType; - typedef InvalidKeyException Type; - - InvalidKeyException(const char* msg = 0, const char* where = 0, ulong code = 0) - : KeyException(msg, where, code) - { } - - virtual Type* Clone() const { return TypedClone(); } - virtual void Throw() const { throw Type(m_what, m_where, m_code); } - virtual int GetId() const { return eiInvalidKeyException; } - }; - - class KeyManagementException : public KeyException - { - public: - typedef KeyException BaseType; - typedef KeyManagementException Type; - - KeyManagementException(const char* msg = 0, const char* where = 0, ulong code = 0) - : KeyException(msg, where, code) - { } - - virtual Type* Clone() const { return TypedClone(); } - virtual void Throw() const { throw Type(m_what, m_where, m_code); } - virtual int GetId() const { return eiKeyManagementException; } - }; - - // --------------------------------------------------------------------------- - class EACException : public LogicalException - { - public: - typedef LogicalException BaseType; - typedef EACException Type; - - EACException(const char* msg = 0, const char* where = 0, ulong code = 0) - : LogicalException(msg, where, code) - { } - - virtual Type* Clone() const { return TypedClone(); } - virtual void Throw() const { throw Type(m_what, m_where, m_code); } - virtual int GetId() const { return eiEACException; } - }; - - class EACDataException : public EACException - { - public: - typedef EACException BaseType; - typedef EACDataException Type; - - EACDataException(const char* msg = 0, const char* where = 0, ulong code = 0) - : EACException(msg, where, code) - { } - - virtual Type* Clone() const { return TypedClone(); } - virtual void Throw() const { throw Type(m_what, m_where, m_code); } - virtual int GetId() const { return eiEACDataException; } - }; - - class EACMRZException : public EACDataException - { - public: - typedef EACDataException BaseType; - typedef EACMRZException Type; - - EACMRZException(const char* msg = 0, const char* where = 0, ulong code = 0) - : EACDataException(msg, where, code) - { } - - virtual Type* Clone() const { return TypedClone(); } - virtual void Throw() const { throw Type(m_what, m_where, m_code); } - virtual int GetId() const { return eiEACMRZException; } - }; - - class EACCVCertException : public EACDataException - { - public: - typedef EACDataException BaseType; - typedef EACCVCertException Type; - - EACCVCertException(const char* msg = 0, const char* where = 0, ulong code = 0) - : EACDataException(msg, where, code) - { } - - virtual Type* Clone() const { return TypedClone(); } - virtual void Throw() const { throw Type(m_what, m_where, m_code); } - virtual int GetId() const { return eiEACCVCertException; } - }; - - // --------------------------------------------------------------------------- - class SmartcardException : public LogicalException - { - public: - typedef LogicalException BaseType; - typedef SmartcardException Type; - - SmartcardException(const char* msg = 0, const char* where = 0, ulong code = 0) - : LogicalException(msg, where, code) - { } - - virtual Type* Clone() const { return TypedClone(); } - virtual void Throw() const { throw Type(m_what, m_where, m_code); } - virtual int GetId() const { return eiSmartcardException; } - }; - - class CardOutOfMemoryException : public SmartcardException - { - public: - typedef SmartcardException BaseType; - typedef CardOutOfMemoryException Type; - - CardOutOfMemoryException(const char* msg = 0, const char* where = 0, ulong code = 0) - : SmartcardException(msg, where, code) - { } - - virtual Type* Clone() const { return TypedClone(); } - virtual void Throw() const { throw Type(m_what, m_where, m_code); } - virtual int GetId() const { return eiCardOutOfMemoryException; } - }; - - class InvalidPinException : public SmartcardException - { - public: - typedef SmartcardException BaseType; - typedef InvalidPinException Type; - - InvalidPinException(const char* msg = 0, const char* where = 0, ulong code = 0) - : SmartcardException(msg, where, code) - { } - - virtual Type* Clone() const { return TypedClone(); } - virtual void Throw() const { throw Type(m_what, m_where, m_code); } - virtual int GetId() const { return eiInvalidPinException; } - }; - - class PinLockedException : public SmartcardException - { - public: - typedef SmartcardException BaseType; - typedef PinLockedException Type; - - PinLockedException(const char* msg = 0, const char* where = 0, ulong code = 0) - : SmartcardException(msg, where, code) - { } - - virtual Type* Clone() const { return TypedClone(); } - virtual void Throw() const { throw Type(m_what, m_where, m_code); } - virtual int GetId() const { return eiPinLockedException; } - }; - - class PinExpiredException : public SmartcardException - { - public: - typedef SmartcardException BaseType; - typedef PinExpiredException Type; - - PinExpiredException(const char* msg = 0, const char* where = 0, ulong code = 0) - : SmartcardException(msg, where, code) - { } - - virtual Type* Clone() const { return TypedClone(); } - virtual void Throw() const { throw Type(m_what, m_where, m_code); } - virtual int GetId() const { return eiPinExpiredException; } - }; - - class PinLenRangeException : public SmartcardException - { - public: - typedef SmartcardException BaseType; - typedef PinLenRangeException Type; - - PinLenRangeException(const char* msg = 0, const char* where = 0, ulong code = 0) - : SmartcardException(msg, where, code) - { } - - virtual Type* Clone() const { return TypedClone(); } - virtual void Throw() const { throw Type(m_what, m_where, m_code); } - virtual int GetId() const { return eiPinLenRangeException; } - }; - - class InvalidCRKeyException : public SmartcardException - { - public: - typedef SmartcardException BaseType; - typedef InvalidCRKeyException Type; - - InvalidCRKeyException(const char* msg = 0, const char* where = 0, ulong code = 0) - : SmartcardException(msg, where, code) - { } - - virtual Type* Clone() const { return TypedClone(); } - virtual void Throw() const { throw Type(m_what, m_where, m_code); } - virtual int GetId() const { return eiInvalidCRKeyException; } - }; - - class InvalidCardException : public SmartcardException - { - public: - typedef SmartcardException BaseType; - typedef InvalidCardException Type; - - InvalidCardException(const char* msg = 0, const char* where = 0, ulong code = 0) - : SmartcardException(msg, where, code) - { } - - virtual Type* Clone() const { return TypedClone(); } - virtual void Throw() const { throw Type(m_what, m_where, m_code); } - virtual int GetId() const { return eiInvalidCardException; } - }; - - class InvalidAuthException : public SmartcardException - { - public: - typedef SmartcardException BaseType; - typedef InvalidAuthException Type; - - InvalidAuthException(const char* msg = 0, const char* where = 0, ulong code = 0) - : SmartcardException(msg, where, code) - { } - - virtual Type* Clone() const { return TypedClone(); } - virtual void Throw() const { throw Type(m_what, m_where, m_code); } - virtual int GetId() const { return eiInvalidAuthException; } - }; - - class InvalidAuthObjectException : public SmartcardException - { - public: - typedef SmartcardException BaseType; - typedef InvalidAuthObjectException Type; - - InvalidAuthObjectException(const char* msg = 0, const char* where = 0, ulong code = 0) - : SmartcardException(msg, where, code) - { } - - virtual Type* Clone() const { return TypedClone(); } - virtual void Throw() const { throw Type(m_what, m_where, m_code); } - virtual int GetId() const { return eiInvalidAuthObjectException; } - }; - - class AuthProtocolException : public SmartcardException - { - public: - typedef SmartcardException BaseType; - typedef AuthProtocolException Type; - - AuthProtocolException(const char* msg = 0, const char* where = 0, ulong code = 0) - : SmartcardException(msg, where, code) - { } - - virtual Type* Clone() const { return TypedClone(); } - virtual void Throw() const { throw Type(m_what, m_where, m_code); } - virtual int GetId() const { return eiAuthProtocolException; } - }; - - class AuthConstrainedException : public SmartcardException - { - public: - typedef SmartcardException BaseType; - typedef AuthConstrainedException Type; - - AuthConstrainedException(const char* msg = 0, const char* where = 0, ulong code = 0) - : SmartcardException(msg, where, code) - { } - - virtual Type* Clone() const { return TypedClone(); } - virtual void Throw() const { throw Type(m_what, m_where, m_code); } - virtual int GetId() const { return eiAuthConstrainedException; } - }; - - class SecureMessagingException : public SmartcardException - { - public: - typedef SmartcardException BaseType; - typedef SecureMessagingException Type; - - SecureMessagingException(const char* msg = 0, const char* where = 0, ulong code = 0) - : SmartcardException(msg, where, code) - { } - - virtual Type* Clone() const { return TypedClone(); } - virtual void Throw() const { throw Type(m_what, m_where, m_code); } - virtual int GetId() const { return eiSecureMessagingException; } - }; - - class SMWrapException : public SecureMessagingException - { - public: - typedef SecureMessagingException BaseType; - typedef SMWrapException Type; - - SMWrapException(const char* msg = 0, const char* where = 0, ulong code = 0) - : SecureMessagingException(msg, where, code) - { } - - virtual Type* Clone() const { return TypedClone(); } - virtual void Throw() const { throw Type(m_what, m_where, m_code); } - virtual int GetId() const { return eiSMWrapException; } - }; - - class SMUnwrapException : public SecureMessagingException - { - public: - typedef SecureMessagingException BaseType; - typedef SMUnwrapException Type; - - SMUnwrapException(const char* msg = 0, const char* where = 0, ulong code = 0) - : SecureMessagingException(msg, where, code) - { } - - virtual Type* Clone() const { return TypedClone(); } - virtual void Throw() const { throw Type(m_what, m_where, m_code); } - virtual int GetId() const { return eiSMUnwrapException; } - }; - - // --------------------------------------------------------------------------- - class SubsystemException : public LogicalException - { - public: - typedef LogicalException BaseType; - typedef SubsystemException Type; - - SubsystemException(const char* msg = 0, const char* where = 0, ulong code = 0) - : LogicalException(msg, where, code) - { } - - virtual Type* Clone() const { return TypedClone(); } - virtual void Throw() const { throw Type(m_what, m_where, m_code); } - virtual int GetId() const { return eiSubsystemException; } - }; - - class NoSuchSubsystemException : public SubsystemException - { - public: - typedef SubsystemException BaseType; - typedef NoSuchSubsystemException Type; - - NoSuchSubsystemException(const char* msg = 0, const char* where = 0, ulong code = 0) - : SubsystemException(msg, where, code) - { } - - virtual Type* Clone() const { return TypedClone(); } - virtual void Throw() const { throw Type(m_what, m_where, m_code); } - virtual int GetId() const { return eiNoSuchSubsystemException; } - }; - -#else - - #define throw(_x) _exit(_x) - - int Exception(const char* msg = 0, const char* where = 0, ulong code = 0); - int BadException(const char* msg = 0, const char* where = 0, ulong code = 0); - int NullPointerException(const char* msg = 0, const char* where = 0, ulong code = 0); - int OutOfRangeException(const char* msg = 0, const char* where = 0, ulong code = 0); - int BadCastException(const char* msg = 0, const char* where = 0, ulong code = 0); - int BadNumericCast(const char* msg = 0, const char* where = 0, ulong code = 0); - int RuntimeException(const char* msg = 0, const char* where = 0, ulong code = 0); - int BadAllocException(const char* msg = 0, const char* where = 0, ulong code = 0); - int NotSupportedException(const char* msg = 0, const char* where = 0, ulong code = 0); - int NotImplementedException(const char* msg = 0, const char* where = 0, ulong code = 0); - int InvalidParameterException(const char* msg = 0, const char* where = 0, ulong code = 0); - int SynchronizationException(const char* msg = 0, const char* where = 0, ulong code = 0); - int LogicalException(const char* msg = 0, const char* where = 0, ulong code = 0); - int AlgorithmException(const char* msg = 0, const char* where = 0, ulong code = 0); - int InvalidAlgorithmParameterException(const char* msg = 0, const char* where = 0, ulong code = 0); - int NoSuchAlgorithmException(const char* msg = 0, const char* where = 0, const char* algorithm); - int ArithmeticException(const char* msg = 0, const char* where = 0, ulong code = 0); - int CertificateException(const char* msg = 0, const char* where = 0, ulong code = 0); - int CertificateEncodingException(const char* msg = 0, const char* where = 0, ulong code = 0); - int CertificateExpiredException(const char* msg = 0, const char* where = 0, ulong code = 0); - int CertificateNotYetValidException(const char* msg = 0, const char* where = 0, ulong code = 0); - int CertificateParsingException(const char* msg = 0, const char* where = 0, ulong code = 0); - int KeyException(const char* msg = 0, const char* where = 0, ulong code = 0); - int InvalidKeyException(const char* msg = 0, const char* where = 0, ulong code = 0); - int KeyManagementException(const char* msg = 0, const char* where = 0, ulong code = 0); - int MessageDigestException(const char* msg = 0, const char* where = 0, ulong code = 0); - int PaddingException(const char* msg = 0, const char* where = 0, ulong code = 0); - int SignatureException(const char* msg = 0, const char* where = 0, ulong code = 0); - int EACException(const char* msg = 0, const char* where = 0, ulong code = 0); - int EACDataException(const char* msg = 0, const char* where = 0, ulong code = 0); - int EACMRZException(const char* msg = 0, const char* where = 0, ulong code = 0); - int EACCVCertException(const char* msg = 0, const char* where = 0, ulong code = 0); - int SmartcardException(const char* msg = 0, const char* where = 0, ulong code = 0); - int CardOutOfMemoryException(const char* msg = 0, const char* where = 0, ulong code = 0); - int InvalidPinException(const char* msg = 0, const char* where = 0, ulong code = 0); - int InvalidCardException(const char* msg = 0, const char* where = 0, ulong code = 0); - int InvalidAuthObjectException(const char* msg = 0, const char* where = 0, ulong code = 0); - int AuthProtocolException(const char* msg = 0, const char* where = 0, ulong code = 0); - int AuthConstrainedException(const char* msg = 0, const char* where = 0, ulong code = 0); - int SecureMessagingException(const char* msg = 0, const char* where = 0, ulong code = 0); - int SMWrapException(const char* msg = 0, const char* where = 0, ulong code = 0); - int SMUnwrapException(const char* msg = 0, const char* where = 0, ulong code = 0); - int SubsystemException(const char* msg = 0, const char* where = 0, ulong code = 0); - int NoSuchSubsystemException(const char* msg = 0, const char* where = 0, ulong code = 0); - -#endif // UNDER_CE_30 - -}// namespace act - -#endif // ACT_Exception_h diff --git a/actlibrary/mingw32-i586/Release/include/actFactoryReg.h b/actlibrary/mingw32-i586/Release/include/actFactoryReg.h deleted file mode 100644 index 175da36..0000000 --- a/actlibrary/mingw32-i586/Release/include/actFactoryReg.h +++ /dev/null @@ -1,146 +0,0 @@ -// --------------------------------------------------------------------------- -// Name: actFactoryReg.h -// Product: cv act library -// Purpose: Templates for simple factory-registry implementation. -// -// Copyright: (c) 2008 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -// -// Autor: Markus Tesche -// Date: 06/02/2008 -// --------------------------------------------------------------------------- - -#ifndef ACT_FactoryReg_h -#define ACT_FactoryReg_h - -#include -#include - -namespace act -{ - // - // FactoryMapEntry<> - template - struct FactoryMapEntry - { - typedef char KeyType; - - struct KeyLessPredicate - : public std::binary_function - { - bool operator()(const KeyType* left, const KeyType* right) const - { - if(left == 0) return false; - if(right == 0) return true; - return strcmp(left, right) < 0; - } - }; - - typedef std::map - < const KeyType*, CreatePtrT, KeyLessPredicate - > MapType; - - static const KeyType* Empty; - - const KeyType* Name; - CreatePtrT createPtr; - }; - - template - const typename FactoryMapEntry::KeyType* - FactoryMapEntry::Empty = ""; - - - // - // FactoryReg<> - template - < - class ResultT, - class CreatePtrT, - class MapEntryT, - class MapT = typename MapEntryT::MapType - > - class FactoryReg - { - public: - typedef typename MapEntryT::KeyType KeyType; - typedef MapEntryT MapEntryType; - typedef MapT MapType; - - // Creates default ... - static ResultT* Create(const KeyType* name) - { - if(name == 0) name = MapEntryType::Empty; - typename MapType::const_iterator result(g_map.find(name)); - return result != g_map.end() ? result->second(name) : 0; - } - - template - static ResultT* Create(const KeyType* name, ParamT* param) - { - if(name == 0) name = MapEntryType::Empty; - typename MapType::const_iterator result(g_map.find(name)); - return result != g_map.end() ? result->second(name, param) : 0; - } - - template - static ResultT* Create(ParamT* param) { return Create(0, param); } - static ResultT* Create() { return Create(0); } - - static const KeyType* GetName(void* createptr) - { - if(createptr == 0) return 0; - for(typename MapType::const_iterator i(g_map.begin()), - end(g_map.end()); i != end; ++i) - if(i->second == createptr) - return i->first; - - return 0; - } - - static const KeyType* GetNextName(const KeyType* name) - { - if(name == 0) - return g_map.empty() == true ? 0 : g_map.begin()->first; - - typename MapType::const_iterator result(g_map.find(name)); - return result == g_map.end() || ++result == g_map.end() ? 0 : result->first; - } - - static CreatePtrT GetCreatePointer(const KeyType* name) - { - if(name != 0) - { - typename MapType::const_iterator result(g_map.find(name)); - return result != g_map.end() ? result->second : 0; - } - return 0; - } - - static void Insert(const KeyType* name, CreatePtrT createPtr) - { - std::pair - result(g_map.insert(typename MapType::value_type(name, createPtr))); - } - - static void Insert(const MapEntryType* entry) - { - while(entry->Name != 0) - { - Insert(entry->Name, entry->createPtr); - ++entry; - } - } - - protected: - static MapT g_map; - }; - - template - MapT FactoryReg::g_map; - -} // namespace act - -#endif // ACT_FactoryReg_h diff --git a/actlibrary/mingw32-i586/Release/include/actHandle.h b/actlibrary/mingw32-i586/Release/include/actHandle.h deleted file mode 100644 index fb01279..0000000 --- a/actlibrary/mingw32-i586/Release/include/actHandle.h +++ /dev/null @@ -1,98 +0,0 @@ -////////////////////////////////////////////////////////////////////////// -// Name: actHandle.h -// Product: cv act library -// Purpose: Handle helper templates -// -// Copyright: (c) 2010 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -// -// Autor: Markus Tesche -// Date: 07/27/2010 -////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_Handle_h -#define ACT_Handle_h - -#include "actMove.h" -#include "actException.h" - -namespace act -{ - // - // Handle - class Handle - { - public: - virtual ~Handle() { /* essential */ } - - template TypeT* as() const; - template TypeT& requiredAs() const; - - template - friend inline TypeT& getPointer(const Handle& handle) - { - return handle.as(); - } - - template - friend inline TypeT& getRef(const Handle& handle) - { - return handle.requiredAs(); - } - }; - - // - // ValueHandle<> - template - class ValueHandle : public Handle - { - public: - typedef TypeT value_type; - - ValueHandle() : m_val() { } - explicit ValueHandle(const TypeT& other) : m_val(other) { } - - template - explicit ValueHandle(move_from other) : m_val() { other.move(m_val); } - - template void operator=(const O& other) { m_val = other; } - template void operator=(move_from other) { other.move(m_val); } - - inline TypeT& valueRef() const { return m_val; } - - inline operator TypeT&() const { return m_val; } - - inline TypeT& operator*() const { return m_val; } - inline TypeT* operator->() const { return &m_val; } - - private: - mutable TypeT m_val; - - private: - friend class Handle; - }; - - // - // Handle::as<> - template - inline TypeT* Handle::as() const - { - const ValueHandle* self = dynamic_cast*>(this); - return self != 0 ? &self->m_val : 0; - } - - // - // Handle::requiredAs<> - template - inline TypeT& Handle::requiredAs() const - { - TypeT* value = as(); - if(value != 0) return *value; - throw NullPointerException("invalid handle value type"); - } - -} // namespace act - -#endif // ACT_Handle_h diff --git a/actlibrary/mingw32-i586/Release/include/actHashKit.h b/actlibrary/mingw32-i586/Release/include/actHashKit.h deleted file mode 100644 index d2a817b..0000000 --- a/actlibrary/mingw32-i586/Release/include/actHashKit.h +++ /dev/null @@ -1,32 +0,0 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actHashKit.h -// Product: cv act library -// Purpose: declaration of all factory functions -// -// Copyright: (c) 2000 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_HASHKIT_H -#define ACT_HASHKIT_H - -namespace act -{ - class IHashAlg; - IHashAlg* CreateMD2(); - IHashAlg* CreateMD4(); - IHashAlg* CreateMD5(); - IHashAlg* CreateRipemd128(); - IHashAlg* CreateRipemd160(); - IHashAlg* CreateSHA0(); - IHashAlg* CreateSHA1(); - IHashAlg* CreateSHA224(); - IHashAlg* CreateSHA256(); - IHashAlg* CreateSHA384(); - IHashAlg* CreateSHA512(); - IHashAlg* CreateDummyHash(); -} -#endif - diff --git a/actlibrary/mingw32-i586/Release/include/actHashReg.h b/actlibrary/mingw32-i586/Release/include/actHashReg.h deleted file mode 100644 index 896039d..0000000 --- a/actlibrary/mingw32-i586/Release/include/actHashReg.h +++ /dev/null @@ -1,40 +0,0 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actHashReg.h -// Product: cv act library -// Purpose: registry for factory functions in actHashKit.h -// -// Copyright: (c) 2000 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_HashReg_H -#define ACT_HashReg_H - -namespace act -{ - class IHashAlg; - - typedef IHashAlg* (*CreateHashPtr)(); - - struct HashMapEntry - { - const char* Name; - CreateHashPtr CreatePtr; - }; - - class HashReg - { - public: - static IHashAlg* CreateHashAlg(const char* name); - static CreateHashPtr GetCreatePointer(const char* name); - static const char* GetName(void* createptr); - static const char* GetNextName(const char* name); - static void Insert(const char* name, CreateHashPtr createptr); - static void Insert(const HashMapEntry* hashmap); - }; - -} // namespace act - -#endif // ACT_HashReg_H diff --git a/actlibrary/mingw32-i586/Release/include/actIAccessCondition.h b/actlibrary/mingw32-i586/Release/include/actIAccessCondition.h deleted file mode 100644 index a6d9da3..0000000 --- a/actlibrary/mingw32-i586/Release/include/actIAccessCondition.h +++ /dev/null @@ -1,163 +0,0 @@ -// --------------------------------------------------------------------------- -// Name: actIAccessConditions.h -// Product: cv act library -// Purpose: The IAccessCondition interface is used to map access conditions for -// Files, Keys etc. on specific smartcard's -// -// Copyright: (c) 2008 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -// -// Autor: Markus Tesche -// Date: 10/29/2008 -// --------------------------------------------------------------------------- - -#ifndef ACT_IAccessConditions_h -#define ACT_IAccessConditions_h - -#include "actBlob.h" -#include "actIRefCounted.h" - -namespace act -{ - class IToken; - class ISCardOS; - - enum - { - AC_AUTH_ID_MASK = 0x7f, - }; - - enum ACType - { - AC_TYPE_UNKNOWN = 0, - AC_TYPE_RAW = 1, // Already transformed for specific OS - AC_TYPE_GENERIC = 2 // OS independant, requires to be transformed before used - }; - - // SCard object specific rights by type - enum ACSCardObjType - { - // { AC_TOKEN_USER, AC_TOKEN_SO, AC_TOKEN_USER_OR_SO } - AC_OBJ_MAP = 0x00, // Used for access condition (f.e. tag 0x86) - AC_OBJREF_MAP = 0x01, // Used as object reference for access condition - - AC_RIGHTS_EF = 0x02, // Access Rights for EF's - AC_RIGHTS_DF = 0x03, // Access Rights for DF's - AC_RIGHTS_KEY = 0x04, // Access Rights for Key Objects - AC_RIGHTS_AUTH = 0x05, // Access Rights for Authentication Objects - // ... add additional types here - }; - - // SCard specific rights - enum ACSCard - { - AC_ALWAYS = 0x00, - // Any other from 0x01..0x7f - AC_NEVER = 0xff - }; - - // Token specific rights - enum ACToken - { - AC_TOKEN_USER = 0x80, - AC_TOKEN_SO = 0x81, - AC_TOKEN_USER_OR_SO = 0x82, - AC_TOKEN_USER_AND_SO = 0x83, - AC_TOKEN_ADMIN = 0x84, - - AC_TOKEN_FLAG = 0x80, - }; - - // AuthId Index - enum AIIndex - { - AI_INVALID = -1, - AI_USER = AC_TOKEN_USER & ~AC_TOKEN_FLAG, - AI_SO = AC_TOKEN_SO & ~AC_TOKEN_FLAG, - AI_USER_OR_SO = AC_TOKEN_USER_OR_SO & ~AC_TOKEN_FLAG, - AI_USER_AND_SO = AC_TOKEN_USER_AND_SO & ~AC_TOKEN_FLAG, - AI_ADMIN = AC_TOKEN_ADMIN & ~AC_TOKEN_FLAG, - }; - - enum ACOperation - { - AC_OR = 0x00, - AC_AND = 0x01, - }; - - enum ACMode - { - AC_MODE_READ = 0, - AC_MODE_UPDATE = 1, - AC_MODE_EXECUTE = 2, - AC_MODE_DELETE = 3, - }; - - enum ACRight - { - // Used for EF/DF - AC_READ = 0x00, - AC_WRITE = 0x01, - AC_UPDATE = 0x01, - AC_APPEND = 0x02, - AC_DEACTIVATE = 0x03, - AC_LOCK = 0x03, - AC_ACTIVATE = 0x04, - AC_UNLOCK = 0x04, - AC_DELETE = 0x05, - AC_ADMIN = 0x06, - AC_CREATE = 0x07, - AC_INCREASE = 0x08, - AC_DECREASE = 0x09, - AC_TERMINATE = 0x0a, - - // Used for Objects - AC_USE = 0x00, - AC_CHANGE = 0x01, - AC_UNBLOCK = 0x02, - AC_GENKEY = 0x07, - AC_SIGN = 0x08, - AC_DEC = 0x09, - AC_ENC = 0x0a, - }; - - enum ACRange - { - AC_FIRST = AC_READ, - AC_LAST = AC_ENC, - }; - - // - // IAccessCondition - class IAccessCondition : public IRefCounted - { - public: - virtual IAccessCondition* Clone() const = 0; - - virtual const char* GetName() const = 0; - virtual ACType GetAcType() const = 0; - - virtual Blob& GetAccessRights() = 0; - virtual const Blob& GetAccessRights() const = 0; - - virtual IAccessCondition* ConvertAc(const IToken* token, ACType acdest) const = 0; - }; - - // - // IAcConverter - class IAcConverter - { - protected: - virtual ~IAcConverter() { } - - public: - virtual IAccessCondition* ConvertAc(const IAccessCondition* ac, ACType acdest) const = 0; - virtual Blob ConvertAc(const IAccessCondition* ac) const = 0; - virtual IAccessCondition* ConvertAc(const Blob& ac) const = 0; - }; - -} // namespace act - -#endif // ACT_IAccessConditions_h diff --git a/actlibrary/mingw32-i586/Release/include/actIAgreementKey.h b/actlibrary/mingw32-i586/Release/include/actIAgreementKey.h deleted file mode 100644 index 7ff4ef1..0000000 --- a/actlibrary/mingw32-i586/Release/include/actIAgreementKey.h +++ /dev/null @@ -1,32 +0,0 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actIAgreementKey.h -// Product: cv act library -// Purpose: The abstract class IAgreementKey derived from IKey is the -// interface to all key agreements. -// -// Copyright: (c) 2000 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_IAgreementKey_H -#define ACT_IAgreementKey_H - -#include "actIKey.h" - -namespace act -{ - class IDerivator; - - class IAgreementKey : public IKey - { - public: - virtual void SetDerivator(IDerivator* derivator) = 0; - virtual const IDerivator* GetDerivator() const = 0; - virtual IDerivator* GetDerivator() = 0; - }; - -} // namespace act - -#endif // ACT_IAgreementKey_H diff --git a/actlibrary/mingw32-i586/Release/include/actIAlgorithm.h b/actlibrary/mingw32-i586/Release/include/actIAlgorithm.h deleted file mode 100644 index 23cdb2c..0000000 --- a/actlibrary/mingw32-i586/Release/include/actIAlgorithm.h +++ /dev/null @@ -1,38 +0,0 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actIAlgorithm.h -// Product: cv act library -// Purpose: IAlgorithm is an abstract base. All concrete algorithm-classes are -// derived from IAlgorithm. -// -// Copyright: (c) 2000 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_IAlgorithm_h -#define ACT_IAlgorithm_h - -#include "actBasics.h" - -namespace act -{ - class Blob; - - class IAlgorithm - { - public: - virtual ~IAlgorithm() { } - - virtual void Write(const Blob& input) = 0; - virtual void Write(const byte* input, size_t insize) = 0; - virtual void Finalize() = 0; - virtual size_t GetAvailableSize() const = 0; - virtual size_t Read(Blob& output, size_t max = 0) = 0; - virtual size_t Read(byte* outbuffer, size_t buffersize) = 0; - virtual status_t GetStatus() const = 0; - }; - -} // namespace act - -#endif // ACT_IAlgorithm_h diff --git a/actlibrary/mingw32-i586/Release/include/actIBlockCipher.h b/actlibrary/mingw32-i586/Release/include/actIBlockCipher.h deleted file mode 100644 index 10338cd..0000000 --- a/actlibrary/mingw32-i586/Release/include/actIBlockCipher.h +++ /dev/null @@ -1,53 +0,0 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actIBlockCipher.h -// Product: cv act library -// Purpose: The class IBlockCipher creates the symmetric BlockCypher, which is -// defined by IBockCipherKey and IBlockCipherMode. It offers operations -// like encrypt, decrypt and queries involving validity or keylength etc. -// -// Copyright: (c) 2000 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_IBlockCipher_h -#define ACT_IBlockCipher_h - -#include "actBasics.h" -#include - -namespace act -{ - - class Blob; - - class IBlockCipher - { - public: - virtual IBlockCipher* Clone() const =0; - virtual void Import( const Blob& indata ) =0; - virtual void Export( Blob& outdata ) const =0; - - virtual void SetRawKey( const Blob& keyblob ) =0; - virtual void GetRawKey( Blob& keyblob ) const =0; - - virtual void Encrypt(const byte* in,byte* out) const =0; - virtual void Decrypt(const byte* in,byte* out) const =0; - - virtual size_t GetKeySize(size_t keysize=0) const =0; - virtual size_t GetMinKeySize() const =0; - virtual size_t GetMaxKeySize() const =0; - virtual size_t GetNextKeySize(size_t prevsize) const =0; - virtual size_t GetBlockSize() const =0; - - virtual void* GetCreatePointer() const =0; - - virtual ~IBlockCipher() {}; - }; - - -}// namespace act - -#endif - diff --git a/actlibrary/mingw32-i586/Release/include/actIBlockCipherKey.h b/actlibrary/mingw32-i586/Release/include/actIBlockCipherKey.h deleted file mode 100644 index 3b93cd7..0000000 --- a/actlibrary/mingw32-i586/Release/include/actIBlockCipherKey.h +++ /dev/null @@ -1,48 +0,0 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actIBlockCipherKey.h -// Product: cv act library -// Purpose: The class IBlockCipherKey extends the interface of the class IKey -// and supports the peculiarities of symmetric keys. -// -// -// Copyright: (c) 2000 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_IBlockCipherKey_h -#define ACT_IBlockCipherKey_h - -#include "actIKey.h" - -namespace act -{ - class IPadding; - class IBlockCipher; - class IBlockCipherMode; - class IDerivator; - - class IBlockCipherKey : public IKey - { - public: - virtual void SetPadding(IPadding* padding) = 0; - virtual const IPadding* GetPadding() const = 0; - virtual IPadding* GetPadding() = 0; - - virtual void SetCipher(IBlockCipher* cipher) = 0; - virtual const IBlockCipher* GetCipher() const = 0; - virtual IBlockCipher* GetCipher() = 0; - - virtual void SetMode(IBlockCipherMode* mode) = 0; - virtual const IBlockCipherMode* GetMode() const = 0; - virtual IBlockCipherMode* GetMode() = 0; - - virtual void SetDerivator(IDerivator* derive) = 0; - virtual const IDerivator* GetDerivator() const = 0; - virtual IDerivator* GetDerivator() = 0; - }; - -} //namespace act - -#endif // ACT_IBlockCipherKey_h diff --git a/actlibrary/mingw32-i586/Release/include/actIBlockCipherMode.h b/actlibrary/mingw32-i586/Release/include/actIBlockCipherMode.h deleted file mode 100644 index c6f5267..0000000 --- a/actlibrary/mingw32-i586/Release/include/actIBlockCipherMode.h +++ /dev/null @@ -1,45 +0,0 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actIBlockCipherMode.h -// Product: cv act library -// Purpose: By using this interface every blockcipher-algorithm can be run in -// the modes CBC or ECB. Other modes e.g. OFB or CFB are supported. -// -// Copyright: (c) 2000 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_IBlockCipherMode_h -#define ACT_IBlockCipherMode_h - -#include "actBasics.h" - -namespace act -{ - class IBlockCipher; - class IAlgorithm; - class IPadding; - class Blob; - - class IBlockCipherMode - { - public: - virtual IBlockCipherMode* Clone() const =0; - virtual void Import(const Blob& indata) =0; - virtual void Export(Blob& outdata) const =0; - virtual void SetParam(paramid_t id, const Blob &blob) =0; - virtual void SetParam(paramid_t id, int val) =0; - virtual void SetParam(paramid_t id, const char* cstr) =0; - virtual int GetParam(paramid_t) const =0; - virtual void GetParam(paramid_t, Blob &blob) const =0; - virtual IAlgorithm* CreateEncAlgorithm(IBlockCipher* cipher, IPadding* padding, const Blob& iv) const=0; - virtual IAlgorithm* CreateDecAlgorithm(IBlockCipher* cipher, IPadding* padding) const=0; - virtual void* GetCreatePointer() const=0; - virtual ~IBlockCipherMode() {} - }; -} // namespace act - -#endif - - diff --git a/actlibrary/mingw32-i586/Release/include/actICBCMACKey.h b/actlibrary/mingw32-i586/Release/include/actICBCMACKey.h deleted file mode 100644 index d8dbe6c..0000000 --- a/actlibrary/mingw32-i586/Release/include/actICBCMACKey.h +++ /dev/null @@ -1,31 +0,0 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actICBCMACKey.h -// Product: cv act library -// Purpose: interface for the class CBCMAC. -// -// Copyright: (c) 2000 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_ICBCMACKey_h -#define ACT_ICBCMACKey_h - -#include "actIMACKey.h" - -namespace act -{ - class IBlockCipher; - - class ICBCMACKey : public IMACKey - { - public: - virtual void SetCipher(IBlockCipher* cipher) = 0; - virtual const IBlockCipher* GetCipher() const = 0; - virtual IBlockCipher* GetCipher() = 0; - }; - -} // namespace act - -#endif // ACT_ICBCMACKey_h diff --git a/actlibrary/mingw32-i586/Release/include/actICRL.h b/actlibrary/mingw32-i586/Release/include/actICRL.h deleted file mode 100644 index 2bb598b..0000000 --- a/actlibrary/mingw32-i586/Release/include/actICRL.h +++ /dev/null @@ -1,51 +0,0 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actICRL.h -// Product: cv act library -// Purpose: The abstract class ICRL (Certificate Revocation List) can be used -// to check whether a certificate has been revoked. -// -// Copyright: (c) 2000 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_ICRL_h -#define ACT_ICRL_h - -namespace act -{ - class IKey; - class ICertificate; - class Blob; - - class ICRL - { - public: - - virtual ICRL* Clone() const=0; - virtual void Import(const Blob& crlblob)=0; - virtual void Export(Blob& crlblob) const =0; - virtual void SetParam(paramid_t id,const Blob& blob) =0; - virtual void SetParam(paramid_t id,int val) =0; - virtual void SetParam(paramid_t id,const char* cstr) =0; - virtual void GetParam(paramid_t id,Blob& blob) const =0; - virtual int GetParam(paramid_t) const =0; - - virtual void Revoke(const ICertificate* cert) =0; - virtual bool IsRevoked(const ICertificate* Cert) const =0; - virtual void RemoveRevokation(const ICertificate* cert) =0; - - virtual void Revoke(const Blob& blob) = 0; - virtual bool IsRevoked(const Blob& blob) const = 0; - virtual void RemoveRevokation(const Blob& blob) = 0; - - virtual void Sign(const IKey* privkey) =0; - virtual int Verify(const IKey* pubkey) const =0; - virtual void* GetCreatePointer() const=0; - virtual ~ICRL() {}; - }; -} // namespace act - -#endif - diff --git a/actlibrary/mingw32-i586/Release/include/actICertificate.h b/actlibrary/mingw32-i586/Release/include/actICertificate.h deleted file mode 100644 index eadfe0b..0000000 --- a/actlibrary/mingw32-i586/Release/include/actICertificate.h +++ /dev/null @@ -1,44 +0,0 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actICertificate.h -// Product: cv act library -// Purpose: The abstract class ICertificate enables access to a certificate, e.g. -// its public key and the corresponding validity. -// -// Copyright: (c) 2000 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_ICertificate_h -#define ACT_ICertificate_h - -#include "actBasics.h" -#include "actIParam.h" - -namespace act -{ - class IKey; - class Blob; - - class ICertificate : public IParam - { - public: - virtual ~ICertificate() { }; - - virtual ICertificate* Clone() const = 0; - virtual void Import(const Blob& certblob) = 0; - virtual void Export(Blob& certblob) const = 0; - - virtual void SetPublicKey(const IKey* pubkey) = 0; - virtual IKey* CreatePublicKey(const char* = 0) const = 0; - - virtual void Sign(const IKey* privkey) = 0; - virtual int Verify(const IKey* pubkey) const = 0; - - virtual void* GetCreatePointer() const = 0; - }; - -} // namespace act - -#endif // ACT_ICertificate_h diff --git a/actlibrary/mingw32-i586/Release/include/actIDerivator.h b/actlibrary/mingw32-i586/Release/include/actIDerivator.h deleted file mode 100644 index e8b7140..0000000 --- a/actlibrary/mingw32-i586/Release/include/actIDerivator.h +++ /dev/null @@ -1,45 +0,0 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actIDerivator.h -// Product: cv act library -// Purpose: This interface provides a shared secret key (the last step in -// a Key Agreement Scheme). -// -// Copyright: (c) 2006 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_IDerivator_h -#define ACT_IDerivator_h - -#include"actBasics.h" - -namespace act -{ - class Blob; - - class IDerivator - { - public: - virtual IDerivator* Clone() const=0; - - virtual void Import(const Blob &blob)=0; - virtual void Export(Blob &blob) const=0; - - virtual void SetParam(paramid_t id,const Blob &blob)=0; - virtual void SetParam(paramid_t id,int val)=0; - virtual void SetParam(paramid_t id,const char* cstr)=0; - virtual void GetParam(paramid_t id,Blob &blob) const=0; - virtual int GetParam(paramid_t) const=0; - - virtual void Derive(const Blob& secret, const Blob& salt, Blob& keymat) const=0; - - virtual void* GetCreatePointer() const =0; - virtual ~IDerivator() {} - }; -} // namespace act - -#endif - - diff --git a/actlibrary/mingw32-i586/Release/include/actIDerivatorWithHash.h b/actlibrary/mingw32-i586/Release/include/actIDerivatorWithHash.h deleted file mode 100644 index b1bdaf9..0000000 --- a/actlibrary/mingw32-i586/Release/include/actIDerivatorWithHash.h +++ /dev/null @@ -1,33 +0,0 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actIDerivatorWithHash.h -// Product: cv act library -// Purpose: The abstract class IDerivatorWithHash is derived from IDerivator and -// uses hash algorithms. -// -// Copyright: (c) 2000 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_IDerivatorWithHash_h -#define ACT_IDerivatorWithHash_h - -#include "actIDerivator.h" - -namespace act -{ - class IHashAlg; - - class IDerivatorWithHash : public IDerivator - { - public: - virtual void SetHash(IHashAlg* hash) =0; - virtual const IHashAlg* GetHash() const =0; - virtual IHashAlg* GetHash() =0; - }; -} // namespace act - -#endif - - diff --git a/actlibrary/mingw32-i586/Release/include/actIEMSAAlg.h b/actlibrary/mingw32-i586/Release/include/actIEMSAAlg.h deleted file mode 100644 index 0aaec1d..0000000 --- a/actlibrary/mingw32-i586/Release/include/actIEMSAAlg.h +++ /dev/null @@ -1,49 +0,0 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actIEMSAAlg.h -// Product: cv act library -// Purpose: IEMSAAlg (Encoding Methods for Signatures with Appendix) is an -// abstract class derived from IAlgorithm. Encoding methods do not -// use keys. These algorithms prepare the data to sign. They can be -// implemented with or without hash functions. -// -// Copyright: (c) 2000 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_IEMSAAlg_h -#define ACT_IEMSAAlg_h - -#include "actBasics.h" -#include "actIAlgorithm.h" - -namespace act -{ - - class IEMSAAlg : public IAlgorithm - { - public: - virtual IEMSAAlg* Clone() const =0; - - virtual void Import(const Blob &blob) =0; - virtual void Export(Blob &blob) const =0; - virtual void SetParam(paramid_t id,const Blob &blob) =0; - virtual void SetParam(paramid_t id,int val) =0; - virtual void SetParam(paramid_t id,const char* cstr) =0; - virtual void GetParam(paramid_t id,Blob &blob) const =0; - virtual int GetParam(paramid_t) const =0; - - virtual void Reset(size_t sizeinbits) =0; - - virtual void* GetCreatePointer() const =0; - - virtual bool Verify(const Blob &em, const Blob &sig_inv) =0; - - virtual ~IEMSAAlg(){} - }; -} // namespace act - -#endif - - diff --git a/actlibrary/mingw32-i586/Release/include/actIEMSAWithHashAlg.h b/actlibrary/mingw32-i586/Release/include/actIEMSAWithHashAlg.h deleted file mode 100644 index 9a928c1..0000000 --- a/actlibrary/mingw32-i586/Release/include/actIEMSAWithHashAlg.h +++ /dev/null @@ -1,34 +0,0 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actIEMSAWithHashAlg.h -// Product: cv act library -// Purpose: IEMSAWithHashAlg is the abstract class derived from IEMSAAlg -// which provides access on the aggregated hashobject of an -// EMSA-object. -// -// Copyright: (c) 2000 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_IEMSAWithHashAlg_h -#define ACT_IEMSAWithHashAlg_h - -#include "actIEMSAAlg.h" - -namespace act -{ - class IHashAlg; - - class IEMSAWithHashAlg : public IEMSAAlg - { - public: - virtual void SetHash(IHashAlg* hash) =0; - virtual const IHashAlg* GetHash() const =0; - virtual IHashAlg* GetHash() =0; - }; -} // namespace act - -#endif - - diff --git a/actlibrary/mingw32-i586/Release/include/actIEventHandler.h b/actlibrary/mingw32-i586/Release/include/actIEventHandler.h deleted file mode 100644 index 115662f..0000000 --- a/actlibrary/mingw32-i586/Release/include/actIEventHandler.h +++ /dev/null @@ -1,54 +0,0 @@ -// --------------------------------------------------------------------------- -// Name: actIEventHandler.h -// Product: cv act library -// Purpose: Interfaces required to receive token, slot or subsystem events -// -// Copyright: (c) 2002 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -// -// Autor: Dr. Xiangdong Wang (XWG) -// Markus Tesche -// Date: 03/26/2002 -// --------------------------------------------------------------------------- - -#ifndef ACT_IEventHandler_h -#define ACT_IEventHandler_h - -#include "actTypeTags.h" -#include "actIRefCounted.h" - -namespace act -{ - enum EventCode - { - TOKEN_REMOVED = 0x00000010, - TOKEN_INSERTED = 0x00000020, - SLOT_REMOVED = 0x00000040, - SLOT_INSERTED = 0x00000080, - SUBSYSTEM_STOPPED = 0x00000100, - SUBSYSTEM_STARTED = 0x00000200, - MONITORING_STOPPED = 0x00000400, - MONITORING_STARTED = 0x00000800, - MONITORING_ERROR = 0x80000000, - }; - - class ISubsystem; - class IEventMonitoring; - - // - // IEventHandler - class IEventHandler : public IRefCounted - { - public: - virtual IEventHandler* Clone() = 0; - virtual void Source(IEventMonitoring* source) = 0; - virtual void OnEvent(int event, ISubsystem* source) = 0; - }; - - typedef TypeTag TagEH; - -} // namespace act - -#endif // ACT_IEventHandler_h diff --git a/actlibrary/mingw32-i586/Release/include/actIEventMonitoring.h b/actlibrary/mingw32-i586/Release/include/actIEventMonitoring.h deleted file mode 100644 index 0aee7db..0000000 --- a/actlibrary/mingw32-i586/Release/include/actIEventMonitoring.h +++ /dev/null @@ -1,36 +0,0 @@ -// --------------------------------------------------------------------------- -// Name: actIEventMonitoring.h -// Product: cv act library -// Purpose: Interface for event monitoring enabled objects. -// -// Copyright: (c) 2010 cv cryptovision GmbH -// all rights reserved. -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -// -// Autor: Markus Tesche (MTE) -// Date: 08/20/2010 -// --------------------------------------------------------------------------- - -#ifndef ACT_IEventMonitoring_h -#define ACT_IEventMonitoring_h - -namespace act -{ - class IEventHandler; - - // - // IEventMonitoring - class IEventMonitoring - { - public: - virtual ~IEventMonitoring() { } - - virtual bool IsMonitored() const = 0; - virtual void StopMonitor(bool force = false) = 0; - virtual void StartMonitor(IEventHandler* cmd) = 0; - }; - -} // namespace act - -#endif // ACT_IEventMonitoring_h diff --git a/actlibrary/mingw32-i586/Release/include/actIHashAlg.h b/actlibrary/mingw32-i586/Release/include/actIHashAlg.h deleted file mode 100644 index 8620c51..0000000 --- a/actlibrary/mingw32-i586/Release/include/actIHashAlg.h +++ /dev/null @@ -1,42 +0,0 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actIHashAlg.h -// Product: cv act library -// Purpose: IHashAlg is an abstract base class, which provides the interface -// of all hash-algorithms. -// -// Copyright: (c) 2000 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_IHASHALG_H -#define ACT_IHASHALG_H - -#include "actIAlgorithm.h" - -namespace act -{ - - class IHashAlg : public IAlgorithm - { - public: - virtual IHashAlg* Clone() const =0; - virtual void Import(const Blob& indata) =0; - virtual void Export(Blob& outdata) const =0; - virtual void SetParam(paramid_t id,const Blob &blob) =0; - virtual void SetParam(paramid_t id,int val) =0; - virtual void SetParam(paramid_t id,const char* cstr) =0; - virtual void GetParam(paramid_t id,Blob &blob) const =0; - virtual int GetParam(paramid_t) const =0; - virtual size_t GetBlockSize() const = 0; - virtual size_t GetHashSize() const = 0; - virtual void Reset() =0; - virtual void* GetCreatePointer() const =0; - virtual ~IHashAlg() {} - }; - -} // namespace act -#endif - - diff --git a/actlibrary/mingw32-i586/Release/include/actIHashMACKey.h b/actlibrary/mingw32-i586/Release/include/actIHashMACKey.h deleted file mode 100644 index 29719fe..0000000 --- a/actlibrary/mingw32-i586/Release/include/actIHashMACKey.h +++ /dev/null @@ -1,32 +0,0 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actIHashMacKey.h -// Product: cv act library -// Purpose: interface for the class HashMAC -// -// Copyright: (c) 2000 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_IHashMACKey_h -#define ACT_IHashMACKey_h - -#include "actIMACKey.h" - -namespace act -{ - class IHashAlg; - - class IHashMACKey : public IMACKey - { - public: - virtual void SetHash(IHashAlg* cipher) =0; - virtual const IHashAlg* GetHash() const =0; - virtual IHashAlg* GetHash() =0; - }; - -} // namespace act - -#endif - diff --git a/actlibrary/mingw32-i586/Release/include/actIIESKey.h b/actlibrary/mingw32-i586/Release/include/actIIESKey.h deleted file mode 100644 index e54a7f4..0000000 --- a/actlibrary/mingw32-i586/Release/include/actIIESKey.h +++ /dev/null @@ -1,35 +0,0 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actIIESKey.h -// Product: cv act library -// Purpose: The interface IIESKey enables access to the aggregated objects of -// an IES-key, like DL-IES or EC-IES. -// -// Copyright: (c) 2000 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_IIESKey_H -#define ACT_IIESKey_H - -#include "actIKey.h" - -namespace act -{ - class IAgreementKey; - class IMACKey; - - class IIESKey : public IKey - { - public: - virtual void SetMAC(IMACKey* mac) =0; - virtual const IMACKey* GetMAC() const =0; - virtual IMACKey* GetMAC() =0; - virtual void SetAgreement(IAgreementKey* derivator) =0; - virtual const IAgreementKey* GetAgreement() const =0; - virtual IAgreementKey* GetAgreement() =0; - }; -} // act -#endif - diff --git a/actlibrary/mingw32-i586/Release/include/actIKey.h b/actlibrary/mingw32-i586/Release/include/actIKey.h deleted file mode 100644 index 3ed1a9e..0000000 --- a/actlibrary/mingw32-i586/Release/include/actIKey.h +++ /dev/null @@ -1,45 +0,0 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actIKey.h -// Product: cv act library -// Purpose: IKey is an abstract base class. All concrete Key-classes are -// derived from IKey. -// -// Copyright: (c) 2000 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_IKey_h -#define ACT_IKey_h - -#include "actIParam.h" -#include "actBlob.h" - -namespace act -{ - class IAlgorithm; - class IRNGAlg; - - class IKey : public IParam - { - public: - virtual ~IKey() { } - - virtual IKey* Clone() const = 0; - - virtual void Import(const Blob& keyblob) = 0; - virtual void Export(Blob& keyblob, export_t type = DEFAULT) const = 0; - - virtual void Generate(IRNGAlg* prng = 0) = 0; - virtual void Derive(const Blob& data, const Blob& salt = Blob()) = 0; - - virtual IAlgorithm* CreateAlgorithm(mode_t Mode) const = 0; - virtual IAlgorithm* CreateAlgorithm(mode_t Mode, const Blob& data) const = 0; - - virtual void* GetCreatePointer() const = 0; - }; - -} // namespace act - -#endif // ACT_IKey_h diff --git a/actlibrary/mingw32-i586/Release/include/actIKeyDerivation.h b/actlibrary/mingw32-i586/Release/include/actIKeyDerivation.h deleted file mode 100644 index f8909eb..0000000 --- a/actlibrary/mingw32-i586/Release/include/actIKeyDerivation.h +++ /dev/null @@ -1,70 +0,0 @@ -// --------------------------------------------------------------------------- -// Name: actIKeyDerivation.h -// Product: cv act library -// Purpose: IKeyDerivation for general prupose -// -// Copyright: (c) 2003-2010 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -// -// Autor: Ulrich Birkenhauer -// Markus Tesche -// Date: 07/05/2010 -// --------------------------------------------------------------------------- - -#ifndef ACT_IKeyDerivation_h -#define ACT_IKeyDerivation_h - -#include "actMove.h" -#include "actMode.h" - -#include "actIParam.h" -#include "actIRefCounted.h" - -namespace act -{ - enum KDParam - { - KD_DATA = SALT, - KD_HASH = HASH, - KD_SERIAL = SERIALNR, - KD_DERIVATOR = DERIVATOR, - KD_MODE = BCMODE, // key configuration - KD_PADDING = PADDING, // key configuration - }; - - enum KDMode - { - KD_MODE_DEFAULT = 0, - KD_MODE_CARD_MANAGER, - - KD_MODE_LAST - }; - - class IKeyDerivation; - class IBlockCipherKey; - - typedef void (*DerivationFunc)(IKeyDerivation* owner, const Blob& data, - Blob& k_enc, Blob& k_mac, Blob& k_kek); - - // - // IKeyDerivation - class IKeyDerivation - : public IParam - , public IRefCounted - { - public: - virtual Blob Derive(const Blob& deriveData) = 0; - virtual void Derive(uint mode, const Blob& data, Blob& k_enc, Blob& k_mac) = 0; - virtual void Derive(uint mode, const Blob& data, Blob& k_enc, Blob& k_mac, Blob& k_kek) = 0; - - virtual void SetKey(IBlockCipherKey* key) = 0; - // - // If mode already registered, it will be overwritten and the previous will be returned. - virtual DerivationFunc Register(uint mode, DerivationFunc df) = 0; - }; - -} // namespace act - -#endif // ACT_IKeyDerivation_h diff --git a/actlibrary/mingw32-i586/Release/include/actIKeyFactory.h b/actlibrary/mingw32-i586/Release/include/actIKeyFactory.h deleted file mode 100644 index 711d883..0000000 --- a/actlibrary/mingw32-i586/Release/include/actIKeyFactory.h +++ /dev/null @@ -1,48 +0,0 @@ -// --------------------------------------------------------------------------- -// Name: actIKeyFactory.h -// Product: cv act library -// Purpose: IKeyFactory and IKeyFactoryChain interface -// -// Copyright: (c) 2008 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -// -// Autor: Markus Tesche -// Date: 05/18/2008 -// --------------------------------------------------------------------------- - -#ifndef ACT_IKeyFactory_h -#define ACT_IKeyFactory_h - -#include "actTokenBase.h" - -namespace act -{ - class ITokenKey; - class ITokenBlockCipher; - class ITokenBlockCipherKey; - - class IKeyFactory - { - protected: - virtual ~IKeyFactory() - { } - - public: - virtual ITokenKey* CreateKey(int type, FileInfo& fi, int usage, bool cleartoken) = 0; - - virtual ITokenBlockCipher* CreateBlockCipher(FileInfo& fi) = 0; - virtual ITokenBlockCipherKey* CreateBlockCipherKey(ITokenBlockCipher* cipher, bool cleartoken) = 0; - virtual ITokenBlockCipherKey* CreateBlockCipherAndKey(FileInfo& fi, bool cleartoken) = 0; - }; - - class IKeyFactoryChain : public IKeyFactory - { - public: - virtual void SetNext(IKeyFactoryChain* next) = 0; - }; - -} // namespace act - -#endif // ACT_IKeyFactory_h diff --git a/actlibrary/mingw32-i586/Release/include/actIMACKey.h b/actlibrary/mingw32-i586/Release/include/actIMACKey.h deleted file mode 100644 index b630e74..0000000 --- a/actlibrary/mingw32-i586/Release/include/actIMACKey.h +++ /dev/null @@ -1,27 +0,0 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actIMACKEY.h -// Product: cv act library -// Purpose: interface for the class CBCMAC -// -// Copyright: (c) 2000 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_IMACKey_h -#define ACT_IMACKey_h - -#include "actIKey.h" - -namespace act -{ - class IMACKey : public IKey - { - public: - virtual const char* KeyName() const = 0; - }; - -} // namespace act - -#endif // ACT_IMACKey_h diff --git a/actlibrary/mingw32-i586/Release/include/actIPKCS15Behavior.h b/actlibrary/mingw32-i586/Release/include/actIPKCS15Behavior.h deleted file mode 100644 index 174cd51..0000000 --- a/actlibrary/mingw32-i586/Release/include/actIPKCS15Behavior.h +++ /dev/null @@ -1,89 +0,0 @@ -// --------------------------------------------------------------------------- -// Name: actIPKCS15Behavior.h -// Product: cv act library -// Purpose: IPKCS15Behavior interface, encapsulates Manufacturer specific logic -// for PKCS15 to cvProfile mapping. -// -// Copyright: (c) 2002-2008 cv cryptovision GmbH all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -// -// Autor: Markus Tesche -// Date: 06/02/2008 -// --------------------------------------------------------------------------- - -#ifndef ACT_IPKCS15Behavior_h -#define ACT_IPKCS15Behavior_h - -#include "actISCardOSBehavior.h" - -#include "cvProfileInfos.h" - -namespace act -{ - class IAuthIdRef; - - class IToken; - class ITokenPIN; - class ITokenKey; - class ITokenFile; - class ITokenFileMap; - class ISecurityManager; - class ITokenBlockCipherKey; - - class PKCS15Container; - struct PKCS15Path; - struct PKCS15Object; - - // - // IPKCS15Behavior - class IPKCS15Behavior : public ISCardOSBehavior - { - public: - virtual void Init(IToken* token) = 0; - - virtual int GetTokenType(const IToken* token) const throw() = 0; - virtual void GetProfileCapabilities(ITokenConfig* tkcfg) const = 0; - - virtual bool IsReadOnly() const = 0; - virtual const Blob& GetMID() const = 0; - - // Returns a valid instance or throws ! - virtual ITokenFile* GetPath() const = 0; - virtual ITokenFile* GetTokenFile(const Blob& p15path) = 0; - virtual ITokenFile* GetTokenFile(const PKCS15Path& p15path) = 0; - - virtual ITokenPIN* GetPin(IToken* token, const PKCS15Object& p15object, bool use_obj_ref = false) = 0; - - // NOTE: If one of these functions return false, the object gets destroyed - // and is not added to the corresponding collection, therefore not accessable! - virtual bool InitTokenPIN(ITokenPIN* pin, const PKCS15Object& p15object) = 0; - virtual bool InitTokenKey(ITokenKey* key, const FileInfo& fi, int usage, const PKCS15Object& p15object) = 0; - virtual bool InitTokenKey(ITokenBlockCipherKey* key, const FileInfo& fi, const PKCS15Object& p15object) = 0; - - virtual FIDType GetFirstFID(byte obj_type, size_t key_size = 0) const = 0; - virtual void GetObjectInfo(FIDType fid, Blob& object_path, byte* obj_ref, byte obj_type, size_t key_size = 0) const = 0; - - virtual FIDType TransformKeyReference(FIDType id, bool to_on_card_reference = false, bool* bReference = 0) const = 0; - - virtual FIDType GetNativeFID(byte obj_type, const FIDType fid, byte object_reference = 0) const = 0; - - virtual void GetRelativeFilePath(Blob& absolute_filepath) const = 0; - - virtual const Blob& GetACTokenRights() const = 0; - virtual Blob GetAccessRights(const ITokenPIN* pin, byte obj_type) const = 0; - virtual Blob GetAccessRights(IAuthIdRef* authIdRef, IAuthIdRef* parentAuthIdRef, byte obj_type) const = 0; - - virtual ISecurityManager* SecurityManager(IToken* token, int authManagerType) const = 0; - virtual void CreateAuthObj(ITokenPIN* pin, byte obj_type) const = 0; - - virtual bool GetNativePubKeySupport() const = 0; - virtual Blob ReadNativePublicKey(ISCardOS* os, FIDType fid) const = 0; - virtual Blob ReadNativeECPublicKey(ISCardOS* os, FIDType fid) const = 0; - virtual FIDType GetNativePubKeyInfo(FIDType priv_key_fid, const PublicKeyInfo& info, - PKCS15Object& p15object) const = 0; - }; - -} // namespace act - -#endif // ACT_IPKCS15Behavior_h diff --git a/actlibrary/mingw32-i586/Release/include/actIPadding.h b/actlibrary/mingw32-i586/Release/include/actIPadding.h deleted file mode 100644 index c916e21..0000000 --- a/actlibrary/mingw32-i586/Release/include/actIPadding.h +++ /dev/null @@ -1,47 +0,0 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actIPadding.h -// Product: cv act library -// Purpose: With the abstract class IPadding input data can be filled to obtain -// a certain length and also to invert this process. E.g. PKCS1-v1_5 is -// a padding. -// -// Copyright: (c) 2000 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_IPadding_h -#define ACT_IPadding_h -#include "actBasics.h" - -namespace act -{ - - class Blob; - - class IPadding - { - public: - - virtual IPadding* Clone() const=0; - - virtual void Import(const Blob& indata) =0; - virtual void Export(Blob& outdata) const =0; - virtual void SetParam(paramid_t id,const Blob &blob) =0; - virtual void SetParam(paramid_t id,int val) =0; - virtual void SetParam(paramid_t id,const char* cstr) =0; - virtual void GetParam(paramid_t id,Blob &blob) const =0; - virtual int GetParam(paramid_t) const =0; - - virtual void Pad(Blob& Buffer, size_t len) const =0; - virtual size_t Unpad(Blob& Buffer) const =0; - - virtual void* GetCreatePointer() const =0; - virtual ~IPadding() {} - }; - - -} //namespace act -#endif - diff --git a/actlibrary/mingw32-i586/Release/include/actIParam.h b/actlibrary/mingw32-i586/Release/include/actIParam.h deleted file mode 100644 index ee8d26b..0000000 --- a/actlibrary/mingw32-i586/Release/include/actIParam.h +++ /dev/null @@ -1,67 +0,0 @@ -// --------------------------------------------------------------------------- -// Name: actIParam.h -// Product: cv act library -// Purpose: Declares act::IParam interface. -// -// Copyright: (c) 2006 cv cryptovision GmbH -// all rights reserved. -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -// -// Autor: Markus Tesche (MTE) -// Date: 3/1/2006 -// --------------------------------------------------------------------------- - -#ifndef ACT_IParam_h -#define ACT_IParam_h - -#include "actBasics.h" - -namespace act -{ - class Blob; - - enum - { - PARAM_ANY = -3, - PARAM_UNKNOWN_SIZE = -2, - PARAM_INVALID_VALUE = -1, - PARAM_FALSE = 0, - PARAM_TRUE = 1 - }; - - static inline int param_bool(bool value) - { - return value == true ? PARAM_TRUE : PARAM_FALSE; - } - - // - // IParam - class IParam - { - public: - virtual ~IParam() { } - - virtual void SetParam(paramid_t id, int value) = 0; - virtual void SetParam(paramid_t id, const char* value) = 0; - virtual void SetParam(paramid_t id, const Blob& value) = 0; - - // - // Get value for id, otherwise PARAM_INVALID_VALUE. - // NOTE: May throws an act::Exception derived exception. - virtual int GetParam(paramid_t id) const = 0; - - // - // Get value for id, returns size[PARAM_UNKNOWN_SIZE|0-n] or PARAM_INVALID_VALUE. - // NOTE: May throws an act::Exception derived exception. - virtual size_t GetParam(paramid_t id, const char** value) const = 0; - - // - // Get value for id, returns size[PARAM_UNKNOWN_SIZE|0-n] or PARAM_INVALID_VALUE. - // NOTE: May throws an act::Exception derived exception. - virtual size_t GetParam(paramid_t id, Blob& value) const = 0; - }; - -} // namespace act - -#endif // ACT_IParam_h diff --git a/actlibrary/mingw32-i586/Release/include/actIRNGAlg.h b/actlibrary/mingw32-i586/Release/include/actIRNGAlg.h deleted file mode 100644 index 521be1d..0000000 --- a/actlibrary/mingw32-i586/Release/include/actIRNGAlg.h +++ /dev/null @@ -1,38 +0,0 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actIRNGAlg.h -// Product: cv act library -// Purpose: IRNGAlg is the interface for Random Number Generators. -// -// Copyright: (c) 2000 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_IRNGAlg_h -#define ACT_IRNGAlg_h - -#include "actIAlgorithm.h" - -namespace act -{ - class Blob; - - class IRNGAlg : public IAlgorithm - { - public: - virtual IRNGAlg* Clone() const = 0; - virtual void Import(const Blob& keyblob) = 0; - virtual void Export(Blob& keyblob) const = 0; - virtual void SetParam(paramid_t id, const Blob& blob) = 0; - virtual void SetParam(paramid_t id, int val) = 0; - virtual void SetParam(paramid_t id, const char* cstr) = 0; - virtual int GetParam(paramid_t id) const = 0; - virtual void GetParam(paramid_t id, Blob& blob) const = 0; - - virtual void* GetCreatePointer() const = 0; - }; - -} // namespace act - -#endif // ACT_IRNGAlg_h diff --git a/actlibrary/mingw32-i586/Release/include/actIRSAKey.h b/actlibrary/mingw32-i586/Release/include/actIRSAKey.h deleted file mode 100644 index 96bcdac..0000000 --- a/actlibrary/mingw32-i586/Release/include/actIRSAKey.h +++ /dev/null @@ -1,32 +0,0 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actIRSAKey.h -// Product: cv act library -// Purpose: IRSAKey is the interface for the class IRSAKey enabling access to -// the aggregated padding-object of an RSAKeys. -// -// Copyright: (c) 2000 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_IRSAKey_h -#define ACT_IRSAKey_h - -#include "actISignatureKey.h" - -namespace act -{ - class IPadding; - - class IRSAKey : public ISignatureKey - { - public: - virtual void SetPadding(IPadding* padding) = 0; - virtual const IPadding* GetPadding() const = 0; - virtual IPadding* GetPadding() = 0; - }; - -} // namespace act - -#endif // ACT_IRSAKey_h diff --git a/actlibrary/mingw32-i586/Release/include/actIRefCounted.h b/actlibrary/mingw32-i586/Release/include/actIRefCounted.h deleted file mode 100644 index 5c66ef0..0000000 --- a/actlibrary/mingw32-i586/Release/include/actIRefCounted.h +++ /dev/null @@ -1,33 +0,0 @@ -// --------------------------------------------------------------------------- -// Name: actIRefCounted.h -// Product: cv act library -// Purpose: The IRefCounted interface. -// -// Copyright: (c) 2006 cv cryptovision GmbH -// all rights reserved. -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -// -// Autor: Markus Tesche (MTE) -// Date: 1/18/2006 -// --------------------------------------------------------------------------- - -#ifndef ACT_IRefCounted_h -#define ACT_IRefCounted_h - -namespace act -{ - // - // IRefCounted, methods for reference counting. - class IRefCounted - { - public: - virtual ~IRefCounted() { } - - virtual void AddRef() = 0; - virtual void Release() = 0; - }; - -} // namespace act - -#endif // ACT_IRefCounted_h diff --git a/actlibrary/mingw32-i586/Release/include/actISCardAccess.h b/actlibrary/mingw32-i586/Release/include/actISCardAccess.h deleted file mode 100644 index 3f59b31..0000000 --- a/actlibrary/mingw32-i586/Release/include/actISCardAccess.h +++ /dev/null @@ -1,198 +0,0 @@ -// --------------------------------------------------------------------------- -// Name: actISCardAccess.h -// Product: cv act library -// Purpose: The class ISCardAccess manages the operations with the smartcards and readers -// -// Copyright: (c) 2002 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -// -// Autor: Dr. Xiangdong Wang (XWG) -// Date: 03/21/2002 -// --------------------------------------------------------------------------- - -#ifndef ACT_ISCardAccess_h -#define ACT_ISCardAccess_h - -#include "actBlob.h" -#include "actIRefCounted.h" -#include "actISynchronize.h" - -namespace act -{ - class SyncObject; - - const ushort RESPONSE_MAXLEN = 2048; - - enum ReturnCode - { - APDU_RESPONSE_MASK = 0xffff, - - APDU_OK = 0x9000, - APDU_OK1 = 0x9001, - - // error codes defined in ISO7816-4 - APDU_STATE_UNCHANGED = 0x6200, - APDU_RETURN_CORRUPTED = 0x6281, - APDU_END_REACHED = 0x6282, - APDU_SELECTFILE_INVALID = 0x6283, - APDU_FCI_FORMAT = 0x6284, - - APDU_AUTHEN_FAILED = 0x6300, - APDU_RETRY_COUNTER = 0x63C0, - APDU_FILE_FILLED_UP = 0x6381, - - APDU_STATE_UNCHANGED2 = 0x6400, - - APDU_STATE_CHANGED = 0x6500, - APDU_MEMORY_FAILURE = 0x6581, - - APDU_SECURITY_ERROR = 0x6600, // not defined in ISO7816 - - APDU_WRONG_LEN = 0x6700, - - APDU_NO_CLA_FUNCTION = 0x6800, - APDU_NO_LOGICAL_CHANNEL = 0x6881, - APDU_NO_SM = 0x6882, - - APDU_CMD_NOT_ALLOWED = 0x6900, - APDU_CMD_INCOMPATIBLE = 0x6981, - APDU_SECURITY_STATE = 0x6982, - APDU_AUTHEN_BLOCKED = 0x6983, - APDU_REF_DATA_INVALID = 0x6984, - APDU_NO_CONDITION = 0x6985, - APDU_CMD_EF_NOT_ALLOWED = 0x6986, - APDU_SM_DATA_MISSING = 0x6987, - APDU_SM_DATA_INCORRECT = 0x6988, - - APDU_WRONG_PARAMETER = 0x6A00, - APDU_WRONG_DATA = 0x6A80, - APDU_FUNCTION_NOT_SUPPORTED = 0x6A81, - APDU_FILE_NOT_FOUND = 0x6A82, - APDU_RECORD_NOT_FOUND = 0x6A83, - APDU_NOT_ENOUGH_MEMORY = 0x6A84, - APDU_LC_TLV_INCONSISTENT = 0x6A85, - APDU_INVALID_P1P2 = 0x6A86, - APDU_LC_P1P2_INCONSISTENT = 0x6A87, - APDU_REF_DATA_NOT_FOUND = 0x6A88, - APDU_FILE_ALREADY_EXISTS = 0x6A89, - - APDU_WRONG_PARAMETER2 = 0x6B00, - - APDU_WRONG_LE = 0x6C00, - - APDU_INS_INVALID = 0x6D00, - - APDU_CLA_INVALID = 0x6E00, - - APDU_TECHNICAL_ERROR = 0x6F00, - - - // other error codes depend on card OS - APDU_NO_ICC = 0x64A1, - APDU_PROTOCOL_ERROR = 0x64A8, - - APDU_NO_AC_RIGHT = 0x6982, - APDU_PIN_LOCKED = 0x6983, - APDU_PIN_FORMAT_ERROR = 0x6984, - - APDU_OBJECT_NOT_FOUND = 0x6A88, - - APDU_KEYGEN_FAILED = 0x6F83, // ACOS - - - // JavaCardOS - APDU_MORE_DATA_AVAILABLE = 0x6310, - APDU_APPLET_SELECTION_FAILED = 0x6999, - APDU_PIN_FAILED = 0x69C0, - APDU_ASSERT = 0x6FFF, - APDU_ASSERT_NOTRANSACTION = 0x6FFE, - }; - - enum ProtocolType - { - PROTOCOL_UNDEFINED = 0x00000, // There is no active protocol. - PROTOCOL_T0 = 0x00001, // T=0 is the active protocol. - PROTOCOL_T1 = 0x00002, // T=1 is the active protocol. - PROTOCOL_RAW = 0x10000 // Raw is the active protocol. - }; - - enum DispositionType - { - LEAVE_CARD = 0, // Don't do anything special. - RESET_CARD = 1, // Reset the card. - UNPOWER_CARD = 2, // Power down the card. - EJECT_CARD = 3 // Eject the card. - }; - - inline bool APDUSUCCESS(word sw1sw2) - { - return sw1sw2 == act::APDU_OK - || sw1sw2 == act::APDU_OK1; - } - - // extract - template - inline word apdu_response(const ExceptionT& e) - { - return word(e.code() & APDU_RESPONSE_MASK); - } - - // LengthInfo - struct LengthInfo; - typedef LengthInfo VerifyInfo; - - class ISlot; - class ISCardSM; - - // --------------------------------------------------------------------------- - class ISCardAccess - : public IRefCounted - , public ISynchronize - { - public: - virtual ~ISCardAccess() - { } - - virtual long GetProtocol() const = 0; - virtual void SetProtocol(long protocol) = 0; - - virtual ulong GetTimeout() const = 0; - virtual bool SetTimeout(ulong timeout_msec) = 0; - - virtual void Open() = 0; - virtual void Close() = 0; - virtual void ResetCard() = 0; - virtual long CancelCardOperation() = 0; - - virtual void BeginTransaction() = 0; - virtual void EndTransaction(DispositionType disposition = LEAVE_CARD) = 0; - virtual ulong GetTransactionDepth() const = 0; - - virtual const ISlot* GetSlot() const = 0; - - virtual word SendCard(const Blob& cmd, Blob& response, ushort response_len = RESPONSE_MAXLEN) = 0; - - virtual Blob GetResponse() const = 0; - virtual Blob& GetResponse(Blob& response) const = 0; - - virtual word Send(const Blob& cmd) = 0; - virtual word Send(const Blob& header, const Blob& data) = 0; - virtual word Send(const Blob& header, const Blob& data, byte le) = 0; - - // Extended APDU - virtual word SendX(const Blob& header, const Blob& data) = 0; - virtual word SendX(const Blob& header, const Blob& data, ushort le) = 0; - - // Secure Pin Entry - virtual word SendVerifyToReader(const Blob& apdu, const VerifyInfo& info) = 0; - - // Secure Messaging - virtual ISCardSM* GetSM() const = 0; - virtual void SetSM(ISCardSM* sm) = 0; - }; - -} // namespace act - -#endif // ACT_ISCardAccess_h diff --git a/actlibrary/mingw32-i586/Release/include/actISCardOS.h b/actlibrary/mingw32-i586/Release/include/actISCardOS.h deleted file mode 100644 index 53f2d62..0000000 --- a/actlibrary/mingw32-i586/Release/include/actISCardOS.h +++ /dev/null @@ -1,262 +0,0 @@ -// --------------------------------------------------------------------------- -// Name: actISCardOS.h -// Product: cv act library -// Purpose: The class ISCardOS accesses the card operating system -// -// Copyright: (c) 2002 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -// -// Autor: Dr. Xiangdong Wang (XWG) -// Date: 03/21/2002 -// --------------------------------------------------------------------------- - -#ifndef ACT_ISCardOS_h -#define ACT_ISCardOS_h - -#include "actBlob.h" -#include "actTokenBase.h" - -#include "actITokenPIN.h" -#include "actITokenConfig.h" -#include "actITokenInitializer.h" - -#include "actIRefCounted.h" -#include "actIAccessCondition.h" - -namespace act -{ - class IKey; - class IEMSAAlg; - class ITokenFile; - class ISCardAccess; - class ISCardOSBehavior; - class IKeyDerivation; - - class EFDIR; - - const FIDType FID_EF_DIR = 0x2F00; - const FIDType FID_EF_ATR = 0x2F01; - - // - // ISO 7816-4 - enum SCardFileType - { - BINARY = 0x01, - LINEAR_FIXED = 0x02, - LINEAR_TLV = 0x05, - LINEAR_VARIABLE = 0x04, - CYCLIC_FIXED = 0x06, - DF = 0x38 - }; - - // - // ISO 7816-4 - enum SCardRecordMode - { - ABSOLUTE_MODE = 0x04 - }; - - // - // ISO 7816-4 - enum SCardSelectType - { - MFType = 0x00, - DFType = 0x01, - EFType = 0x02, - AIDType = 0x04, - PathType = 0x08 - }; - - enum SCardSelectMode - { - FCI = 0x00, // FCI template - FCP = 0x04, // FCP template - FMD = 0x08, // FMD template - NoData = 0x0c, // No response data - }; - - enum SCardError - { - SCARD_SUCCESS = 0, - SCARD_FUNCTION_NOT_SUPPORTED = -1, - SCARD_FUNCTION_FAILED = -2 - }; - - // - // ISCardOS - class ISCardOS - : public IRefCounted - , public IAcConverter - { - public: - virtual ~ISCardOS() { } - - // ISCardOS - virtual ISCardOS* Clone() const = 0; - - virtual bool IsMoC() = 0; - virtual const char* GetName() const = 0; - virtual Blob GetSerialNumber() const = 0; // hardware serial number - virtual Blob GetCardId(unsigned short fid_card_id) = 0; - virtual Blob GetCardCF(unsigned short fid_card_cf) = 0; - - virtual ISCardAccess* GetAccess() const = 0; - - virtual Blob ComputeDigitalSignature(const Blob& data, int mode = SIGN_DATA) = 0; - virtual Blob ComputeDigitalSignature(IEMSAAlg* emsa, int mode = SIGN_DATA) = 0; - virtual Blob Encipher(const Blob& plaintext) = 0; - virtual Blob Decipher(const Blob& encrypted_data) = 0; - virtual Blob AgreeKey(const Blob& pubkey) = 0; - - virtual void ComputeECDigitalSignature(const Blob& data, Blob& signature) = 0; - - virtual Blob SelectFile(const int filetype, const char* filepath) = 0; // return file control information - virtual Blob SelectFile(const int filetype, const Blob& filepath) = 0; // return file control information - virtual Blob SelectFile(const int filetype, FIDType fid) = 0; // return file control information - virtual Blob SelectApp(const Blob& aid, SCardSelectMode mode = NoData) = 0; - - // EF.DIR - virtual EFDIR* GetEFDIR(ushort fid = FID_INVALID) = 0; - - virtual int GetEFSize(FIDType fid) = 0; - virtual int GetEFSize(const Blob& filepath, Blob& fci) = 0; - virtual void GetFCI(FIDType fid, Blob& fci) = 0; - virtual Blob GetFCIValue(const Blob& fci, const byte tag) = 0; - virtual byte GetFileInfo(const Blob& fc_data, unsigned short& ef_size, size_t& num_of_records) = 0; - - // select and read binary - virtual Blob ReadBinary(const char* filepath) = 0; - virtual Blob ReadBinary(const Blob& filepath) = 0; - virtual Blob ReadBinary(FIDType fid) = 0; - - // read/update binary, file is selected, file size is known - virtual Blob ReadSelectedBinary(size_t file_size, unsigned short offset = 0) = 0; - virtual void UpdateSelectedBinary(const Blob& data, unsigned short offset = 0) = 0; - - // select and update binary - virtual void UpdateBinary(const Blob& filepath, const Blob& data, unsigned short offset = 0) = 0; - virtual void UpdateBinary(FIDType fid, const Blob& data, unsigned short offset = 0) = 0; - - // read binary with XL-APDUs - virtual Blob ReadBinaryX(const char* filepath) = 0; - virtual Blob ReadBinaryX(const Blob& filepath) = 0; - virtual Blob ReadBinaryX(FIDType fid) = 0; - virtual Blob ReadSelectedBinaryX(size_t file_size, unsigned short offset = 0) = 0; - - // update binary with XL-APDUs - virtual void UpdateBinaryX(const Blob& filepath, const Blob& data, unsigned short offset = 0) = 0; - virtual void UpdateBinaryX(FIDType fid, const Blob& data, unsigned short offset = 0) = 0; - virtual void UpdateSelectedBinaryX(const Blob& data, unsigned short offset = 0) = 0; - - // record read/write (file must be selected) - virtual Blob ReadRecord(byte mode) = 0; // p2 - virtual Blob ReadRecord(byte rec_id, byte mode) = 0; // p1, p2 - virtual void UpdateRecord(const Blob& data, byte rec_id, byte mode) = 0; // data, p1, p2 - virtual void AppendRecord(const Blob& data, byte ef_id = 0) = 0; // data, p2 - - // record write (includes file selection and resize) - virtual void UpdateRecord(const Blob& filepath, const Blob& data, byte rec_id, byte mode) = 0; - virtual void AppendRecord(const Blob& filepath, const Blob& data) = 0; - - virtual void DeleteEF(const Blob& fid) = 0; - virtual void DeleteEF(FIDType fid) = 0; - - virtual void CreateEF(const Blob& fcp) = 0; - virtual void CreateEF(const Blob& fid, unsigned short len, bool secure = false) = 0; - virtual void CreateEF(FIDType fid, unsigned short len, bool secure = false) = 0; - - virtual void CreateEF_TLV(FIDType fid, unsigned short len, unsigned short num_of_records = 1) = 0; - virtual void CreateEF_TLV(const Blob& fid, unsigned short len, unsigned short num_of_records = 1) = 0; - - virtual unsigned short GetOSFileOffset() const = 0; - - // get/put dat - virtual Blob GetData(ushort tag, ushort le = 0) const = 0; // INS=CA - virtual void PutData(ushort tag, const Blob& data) = 0; // INS=DA - - // MSE/PSO functions - virtual void ManageSecurityEnvironment(byte p1, byte p2, const Blob& data = Blob()) = 0; - virtual void PerformSecurityOperation(Blob& response, byte p1, byte p2, const Blob& data, bool chaining = false) = 0; - virtual void PerformSecurityOperationX(Blob& response, byte p1, byte p2, const Blob& data) = 0; // explicit extended APDU - - // ISO authentication functions - virtual void ExternalAuthenticate(byte key_id, const Blob& response, bool odd_INS = false) = 0; // INS=82/83, P1=00, P2=key_id - virtual Blob InternalAuthenticate(byte key_id, const Blob& challenge, bool odd_INS = false) = 0; // INS=88/89, P1=00, P2=key_id - virtual Blob MutualAuthenticate(byte key_id, const Blob& auth_data, bool odd_INS = false) = 0; // INS=82/83, P1=00, P2=key_id - virtual Blob GeneralAuthenticate(byte key_id, const Blob& auth_data, bool chaining = false, bool odd_INS = false) = 0; // INS=86/87, P1=00, P2=key_id - - virtual void ResetRetryCounter(byte p1, byte p2, const Blob& data) = 0; - virtual void Verify(byte p1, byte p2, const Blob& data, bool odd_INS = false) = 0; // INS=20/21 - - // random functions - virtual Blob GetChallenge(byte le = byte(8)) const = 0; - virtual Blob GetRandom(const unsigned long count) const = 0; - - // token type / config - virtual ProfileType GetProfileType(bool refresh = false) = 0; - - virtual void SetTokenConfig(ITokenConfig* tkcfg) = 0; - virtual ITokenConfig* GetTokenConfig() const = 0; - - // set/get behavior - virtual void SetBehavior(ISCardOSBehavior* behave) = 0; - virtual ISCardOSBehavior* GetBehavior() = 0; - - // access rights - virtual void SetAccessRights(const Blob& access_rights) = 0; - virtual void SetAccessRights(move_from access_rights) = 0; - virtual void SetExplicitRights(IAccessCondition* ac, size_t ac_cnt = 1) = 0; - - virtual bool HasExplicitRights() const = 0; - - virtual Blob GetAccessRights() = 0; - virtual IAccessCondition* GetAccessRights(const Blob& fci) = 0; - virtual Blob GetAccessRights(ACSCardObjType ac_obj_type, bool tagged) const = 0; - - // selected path - virtual void SetSelectedPath(ITokenFile* selected_path) const = 0; - virtual ITokenFile* GetSelectedPath() const = 0; - - // key derivation - virtual void SetKeyDerivation(IKeyDerivation* key_derivation) = 0; - virtual IKeyDerivation* GetKeyDerivation() const = 0; - - // key handling - virtual void GenerateRSAKeyPair(int key_id, size_t key_size, // in bits - Blob& pubkey) = 0; - - virtual void ImportRSAKeyPair(int key_id, const Blob& prime_p, - const Blob& prime_q, const Blob& priv_exp, Blob& pubkey) = 0; - - virtual void GenerateECKeyPair(Blob& pubkey) = 0; - - virtual void GenerateECKeyPair(int key_id, const Blob& curve_oid, - const Blob& curve_param, Blob& pubkey) = 0; - - virtual void ImportECKeyPair(int key_nr, const Blob& curve_oid, - const Blob& curve_param, const Blob& privkey, const Blob& pubkey) = 0; - - virtual void ImportDESKey(int key_id, const Blob& keyblob) = 0; - - virtual void DeletePrivateKeyObj(FIDType fid) = 0; - virtual void DeleteECPrivateKeyObj(FIDType fid) = 0; - virtual void DeleteBlockCipherKeyObj(FIDType fid) = 0; - virtual void SelectKey(int key_id) = 0; - - // authentication functions - virtual Blob ComputeResponse(const Blob& auth_key, const Blob& challenge) const = 0; - virtual void UpdateExternalAuthenticateKey(byte key_id, const Blob& auth_key) = 0; - - virtual void ResetSecurityStatus() = 0; - virtual SecStatus GetSecurityStatus(byte obj_ref, Blob& context) const = 0; - - // token initialization - virtual void SetDefaultLabel(move_from label) = 0; - virtual ITokenInitializer* GetTokenInitializer() = 0; - }; - -} // namespace act - -#endif // ACT_ISCardOS_h diff --git a/actlibrary/mingw32-i586/Release/include/actISCardOSBehavior.h b/actlibrary/mingw32-i586/Release/include/actISCardOSBehavior.h deleted file mode 100644 index da9c27c..0000000 --- a/actlibrary/mingw32-i586/Release/include/actISCardOSBehavior.h +++ /dev/null @@ -1,79 +0,0 @@ -// --------------------------------------------------------------------------- -// Name: actISCardOSBehavior.h -// Product: cv act library -// Purpose: ISCardOSBehavior interface, encapsulates CardOS specific logic -// for security operations. -// -// Copyright: (c) 2002-2008 cv cryptovision GmbH all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -// -// Autor: Markus Tesche -// Date: 06/03/2008 -// --------------------------------------------------------------------------- - -#ifndef ACT_ISCardOSBehavior_h -#define ACT_ISCardOSBehavior_h - -#include "actIRefCounted.h" - -namespace act -{ - class Blob; - class IEMSAAlg; - class ISCardOS; - class ITokenPIN; - - enum OSBehavior - { - NONE_BEHAVIOR = 0x00000000, - - // algorithm behaviors - SIGN_BEHAVIOR = 0x00000001, - VERIFY_BEHAVIOR = 0x00000002, - DECRYPT_BEHAVIOR = 0x00000004, - ENCRYPT_BEHAVIOR = 0x00000008, - AGREEMENT_BEHAVIOR = 0x00000010, - ALGORITHM_BEHAVIOR_MASK = 0x000000FF, - - // key behaviors - GENERATE_KEY_BEHAVIOR = 0x00000100, - IMPORT_KEY_BEHAVIOR = 0x00000200, - DELETE_PRIVKEY_BEHAVIOR = 0x00000400, - KEY_BEHAVIOR_MASK = 0x0000FF00, - - // PIN behaviors - VERIFY_PIN_BEHAVIOR = 0x00010000, - CHANGE_PIN_BEHAVIOR = 0x00020000, - SET_PIN_BEHAVIOR = 0x00040000, - UNLOCK_PIN_BEHAVIOR = 0x00080000, - PIN_BEHAVIOR_MASK = 0x00FF0000 - }; - - // - // ISCardOSBehavior - class ISCardOSBehavior : public IRefCounted - { - public: - virtual bool Supports(int behavior) const throw() = 0; - - virtual Blob ComputeDigitalSignature(ISCardOS* os, const Blob& data, int mode) = 0; - virtual Blob ComputeDigitalSignature(ISCardOS* os, IEMSAAlg* emsa, int mode) = 0; - virtual Blob Encipher(ISCardOS* os, const Blob& plaintext) = 0; - virtual Blob Decipher(ISCardOS* os, const Blob& encrypted_data) = 0; - virtual Blob AgreeKey(ISCardOS* os, const Blob& pubkey) = 0; - - virtual void GenerateRSAKeyPair(ISCardOS* os, byte key_num, size_t key_size) = 0; - virtual void ImportRSAKeyPair(ISCardOS* os, int key_id, const Blob& prime_p, const Blob& prime_q, - const Blob& priv_exp, Blob& pubkey) = 0; - virtual void DeletePrivateKeyObj(ISCardOS* os, unsigned short fid) = 0; - - virtual void doVerifyPinCmd(const ITokenPIN* token_pin, const Blob& pin_value) = 0; - virtual void doChangePinCmd(const ITokenPIN* token_pin, const Blob& oldnew_value) = 0; - virtual void doSetPinValueCmd(const ITokenPIN* token_pin, const Blob& newpin_value) = 0; - virtual void UnlockPin(const ITokenPIN* token_pin, const Blob& new_pin) = 0; - }; - -} // namespace act - -#endif // ACT_ISCardOSBehavior_h diff --git a/actlibrary/mingw32-i586/Release/include/actISecurityManager.h b/actlibrary/mingw32-i586/Release/include/actISecurityManager.h deleted file mode 100644 index ecaccd8..0000000 --- a/actlibrary/mingw32-i586/Release/include/actISecurityManager.h +++ /dev/null @@ -1,60 +0,0 @@ -// --------------------------------------------------------------------------- -// Name: actISecurityManager.h -// Product: cv act library -// Purpose: ISecurityManager used to manage the token authentication objects. -// -// Copyright: (c) 2008 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -// -// Autor: Markus Tesche (MTE) -// Date: 08/05/2008 -// --------------------------------------------------------------------------- - -#ifndef ACT_ISecurityManager_h -#define ACT_ISecurityManager_h - -#include "actBasics.h" -#include "actIRefCounted.h" - -namespace act -{ - class ITokenPIN; - class IAuthIdRef; - - enum SecManType - { - SecManUnknown = 0, - SecManPIN, - SecManBio, - }; - - // - // ISecurityManager - // TODO: MTE: Add access control management - class ISecurityManager : public IRefCounted - { - public: - virtual SecManType GetType() const = 0; - virtual void Delete(ITokenPIN* auth_obj) = 0; - }; - - class IPINManager : public ISecurityManager - { - public: - // NOTE: MTE: pin can be empty! - virtual ITokenPIN* Create(IAuthIdRef* authIdRef, IAuthIdRef* parentAuthIdRef, - int retryCount, const Blob& pin) = 0; - }; - - class IBioManager : public ISecurityManager - { - public: - virtual ITokenPIN* Create(IAuthIdRef* authIdRef, IAuthIdRef* parentAuthIdRef, - int retryCount, int bioFinger) = 0; - }; - -} // namespace act - -#endif // ACT_ISecurityManager_h diff --git a/actlibrary/mingw32-i586/Release/include/actISignatureKey.h b/actlibrary/mingw32-i586/Release/include/actISignatureKey.h deleted file mode 100644 index 2538580..0000000 --- a/actlibrary/mingw32-i586/Release/include/actISignatureKey.h +++ /dev/null @@ -1,32 +0,0 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actISignatureKey.h -// Product: cv act library -// Purpose: The interface ISignatureKey enables access to the aggregated -// EMSA-object of the SignatureKeys. -// -// Copyright: (c) 2000 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_ISignatureKey_h -#define ACT_ISignatureKey_h - -#include "actIKey.h" - -namespace act -{ - class IEMSAAlg; - - class ISignatureKey : public IKey - { - public: - virtual void SetEncoder(IEMSAAlg* padding) = 0; - virtual const IEMSAAlg* GetEncoder() const = 0; - virtual IEMSAAlg* GetEncoder() = 0; - }; - -} // namespace act - -#endif // ACT_ISignatureKey_h diff --git a/actlibrary/mingw32-i586/Release/include/actISlot.h b/actlibrary/mingw32-i586/Release/include/actISlot.h deleted file mode 100644 index b3a2efd..0000000 --- a/actlibrary/mingw32-i586/Release/include/actISlot.h +++ /dev/null @@ -1,82 +0,0 @@ -// --------------------------------------------------------------------------- -// Name: actISlot.h -// Product: cv act library -// Purpose: The class ISlot manages the Tokens -// -// Copyright: (c) 2002 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -// -// Autor: Dr. Xiangdong Wang (XWG) -// Date: 03/26/2002 -// --------------------------------------------------------------------------- - -#ifndef ACT_ISlot_h -#define ACT_ISlot_h - -#include "actBasics.h" -#include "actBlob.h" - -#include "actIRefCounted.h" -#include "actISynchronize.h" -#include "actIEventMonitoring.h" - -namespace act -{ - class IToken; - class ITokenConfig; - class ISCardOS; - class ISCardAccess; - class ISubsystem; - - // --------------------------------------------------------------------------- - class ISlot - : public IRefCounted - , public ISynchronize - , public IEventMonitoring - { - protected: - virtual ~ISlot() { } - - public: - virtual ISlot* Clone() const = 0; - - virtual bool IsTokenPresent() const = 0; - virtual const char* GetName() const = 0; - virtual ISubsystem* GetSystem() const = 0; - - virtual Blob GetATR() const = 0; - virtual Blob GetHistoricalBytes() const = 0; - - virtual ISCardOS* CreateOS(const Blob& historical_bytes = Blob()) = 0; - virtual IToken* CreateToken(ISCardOS* os = 0) = 0; - virtual ISCardAccess* CreateAccess() = 0; - - virtual void SetTokenConfig(ITokenConfig* tkcfg) = 0; - - virtual bool HasSecurePinEntry(ISCardAccess* ac = 0) const = 0; - virtual bool HasSecurePinChange(ISCardAccess* ac = 0) const = 0; - - virtual void SetParam(paramid_t id,int val) = 0; - virtual int GetParam(paramid_t id) const = 0; - }; - - // --------------------------------------------------------------------------- - struct ATRCardInfo - { - const char* name; - const char* atr; - const char* atr_mask; - }; - - // --------------------------------------------------------------------------- - void InitCardInfoMap(const ATRCardInfo* mapCardInfo); - const ATRCardInfo* GetATRCardInfo(const Blob& atr); - const char* GetOSName(const Blob& atr); - Blob GetHistoricalBytes(const Blob& atr); - bool GetATRStructInfo(const Blob& atr, size_t& his_pos, size_t& his_len, bool& has_tck); - -} // namespace act - -#endif // ACT_ISlot_h diff --git a/actlibrary/mingw32-i586/Release/include/actISlotMonitor.h b/actlibrary/mingw32-i586/Release/include/actISlotMonitor.h deleted file mode 100644 index 358abc0..0000000 --- a/actlibrary/mingw32-i586/Release/include/actISlotMonitor.h +++ /dev/null @@ -1,39 +0,0 @@ -// --------------------------------------------------------------------------- -// Name: actISlotMonitor.h -// Product: cv act library -// Purpose: The class SlotMonitor notifies the slot events -// -// Copyright: (c) 2002 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -// -// Autor: Dr. Xiangdong Wang (XWG) -// Date: 05/27/2002 -// --------------------------------------------------------------------------- - -#ifndef ACT_ISlotMonitor_h -#define ACT_ISlotMonitor_h - -#include "actIRefCounted.h" - -namespace act -{ - class IEventHandler; - - // - // ISlotMonitor - class ISlotMonitor : public IRefCounted - { - public: - virtual void Stop() = 0; - virtual void Start(IEventHandler* cmd) = 0; - virtual bool Interrupted() const = 0; - - protected: - virtual void Run() = 0; - }; - -} // namespace act - -#endif // ACT_ISlotMonitor_h diff --git a/actlibrary/mingw32-i586/Release/include/actIStreamCipher.h b/actlibrary/mingw32-i586/Release/include/actIStreamCipher.h deleted file mode 100644 index 4c53d98..0000000 --- a/actlibrary/mingw32-i586/Release/include/actIStreamCipher.h +++ /dev/null @@ -1,51 +0,0 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actIStreamCipher.h -// Product: cv act library -// Purpose: The class IStreamCipher creates the symmetric StreamCipher, which is -// defined by IStreamCipherKey. It offers operations like encrypt, decrypt -// and queries involving validity or keylength etc. -// -// Copyright: (c) 2001 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_IStreamCipher_h -#define ACT_IStreamCipher_h - -#include "actBasics.h" - -namespace act -{ - - class Blob; - - class IStreamCipher - { - public: - - virtual IStreamCipher* Clone() const =0; - virtual void Import( const Blob& indata ) =0; - virtual void Export( Blob& outdata ) const =0; - - virtual void SetRawKey( const Blob& keyblob ) =0; - virtual void GetRawKey( Blob& keyblob ) const =0; - - virtual void Process(const byte* input, byte* output, size_t input_len) const =0; - - virtual size_t GetKeySize(size_t keysize=0) const =0; - virtual size_t GetMinKeySize() const =0; - virtual size_t GetMaxKeySize() const =0; - virtual size_t GetNextKeySize(size_t prevsize) const =0; - - virtual void* GetCreatePointer() const =0; - - virtual ~IStreamCipher() {}; - }; - - -}// namespace act - -#endif - diff --git a/actlibrary/mingw32-i586/Release/include/actIStreamCipherKey.h b/actlibrary/mingw32-i586/Release/include/actIStreamCipherKey.h deleted file mode 100644 index 7282893..0000000 --- a/actlibrary/mingw32-i586/Release/include/actIStreamCipherKey.h +++ /dev/null @@ -1,39 +0,0 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actIStreamCipherKey.h -// Product: cv act library -// Purpose: The class IStreamCipherKey extends the interface of the class IKey -// and supports the peculiarities of symmetric keys. -// -// -// Copyright: (c) 2001 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_IStreamCipherKey_h -#define ACT_IStreamCipherKey_h - -#include "actIKey.h" - -namespace act -{ - class IStreamCipher; - class IDerivator; - - class IStreamCipherKey : public IKey - { - public: - - virtual void SetCipher(IStreamCipher* cipher) = 0; - virtual const IStreamCipher* GetCipher() const = 0; - virtual IStreamCipher* GetCipher() = 0; - - virtual void SetDerivator(IDerivator* derive) = 0; - virtual const IDerivator* GetDerivator() const = 0; - virtual IDerivator* GetDerivator() = 0; - }; - -} //namespace act - -#endif // ACT_IStreamCipherKey_h diff --git a/actlibrary/mingw32-i586/Release/include/actISubsystem.h b/actlibrary/mingw32-i586/Release/include/actISubsystem.h deleted file mode 100644 index 731b4cd..0000000 --- a/actlibrary/mingw32-i586/Release/include/actISubsystem.h +++ /dev/null @@ -1,54 +0,0 @@ -// --------------------------------------------------------------------------- -// Name: actISubsystem.h -// Product: cv act library -// Purpose: The class ISubsystem detects and manages the slots -// -// Copyright: (c) 2002 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -// -// Autor: Dr. Xiangdong Wang (XWG) -// Date: 03/26/2002 -// --------------------------------------------------------------------------- - -#ifndef ACT_ISubsystem_h -#define ACT_ISubsystem_h - -#include "actBasics.h" -#include "actIRefCounted.h" -#include "actISynchronize.h" -#include "actIEventMonitoring.h" - -namespace act -{ - class ISlot; - class ITokenConfig; - - // - // ISubsystem - class ISubsystem - : public IRefCounted - , public ISynchronize - , public IEventMonitoring - { - public: - virtual void Refresh() = 0; - virtual bool Disconnect() = 0; - virtual bool Install(size_t port) = 0; - virtual const char* GetName() const = 0; - - // SlotList - virtual int GetSlotNumber() const = 0; - virtual const ISlot* GetSlot(int pos) const = 0; - virtual ISlot* CreateSlot(const char* name) = 0; - - virtual void SetTokenConfig(ITokenConfig* tkcfg) = 0; - - protected: - virtual ~ISubsystem() { } - }; - -} // namespace act - -#endif // ACT_ISubsystem_h diff --git a/actlibrary/mingw32-i586/Release/include/actISubsystemConfig.h b/actlibrary/mingw32-i586/Release/include/actISubsystemConfig.h deleted file mode 100644 index 165ac6e..0000000 --- a/actlibrary/mingw32-i586/Release/include/actISubsystemConfig.h +++ /dev/null @@ -1,38 +0,0 @@ -// --------------------------------------------------------------------------- -// Name: actISubsystemConfig.h -// Product: cv act library -// Purpose: The Subsystem configuration. -// -// Copyright: (c) 2006 cv cryptovision GmbH -// all rights reserved. -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -// -// Autor: Markus Tesche (MTE) -// Date: 1/12/2006 -// --------------------------------------------------------------------------- - -#ifndef ACT_ISubsystemConfig_h -#define ACT_ISubsystemConfig_h - -#include "actIRefCounted.h" - -namespace act -{ - class ISubsystem; - - // - // ISubsystemConfig - class ISubsystemConfig : public IRefCounted - { - public: - // Returns the Subsystem name. - virtual const char* GetName() const = 0; - - // Configures the Subsystem, if fails throws an Exception. - virtual void ConfigureSubsystem(ISubsystem*) = 0; - }; - -} // namespace act - -#endif // ACT_ISubsystemConfig_h diff --git a/actlibrary/mingw32-i586/Release/include/actISynchronize.h b/actlibrary/mingw32-i586/Release/include/actISynchronize.h deleted file mode 100644 index c8f1ef6..0000000 --- a/actlibrary/mingw32-i586/Release/include/actISynchronize.h +++ /dev/null @@ -1,43 +0,0 @@ -////////////////////////////////////////////////////////////////////////// -// Name: actISynchronize.h -// Product: cv act library -// Purpose: Implemented by types supporting multithreading synchronization. -// -// Copyright: (c) 2010 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -// -// Autor: Markus Tesche -// Date: 07/27/2010 -////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_ISynchronize_h -#define ACT_ISynchronize_h - -namespace act -{ - class Handle; - - // - // ISynchronize - class ISynchronize - { - protected: - virtual ~ISynchronize() { } - - public: - virtual void Lock() = 0; - virtual void Unlock() = 0; - virtual long LockCount() const = 0; - - virtual const Handle& syncHandle() const = 0; - }; - - inline void Lock(ISynchronize& object) { object.Lock(); } - inline void Unlock(ISynchronize& object) { object.Unlock(); } - inline long LockCount(const ISynchronize& object) { return object.LockCount(); } - -} // namespace act - -#endif // ACT_ISynchronize_h diff --git a/actlibrary/mingw32-i586/Release/include/actIToken.h b/actlibrary/mingw32-i586/Release/include/actIToken.h deleted file mode 100644 index 15d0ac2..0000000 --- a/actlibrary/mingw32-i586/Release/include/actIToken.h +++ /dev/null @@ -1,165 +0,0 @@ -// --------------------------------------------------------------------------- -// Name: actIToken.h -// Product: cv act library -// Purpose: The IToken interface represents the profile and the application -// supported by a token. -// -// Copyright: (c) 2002 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -// -// Autor: Dr. Xiangdong Wang (XWG) -// Date: 03/22/2002 -// --------------------------------------------------------------------------- - -#ifndef ACT_IToken_h -#define ACT_IToken_h - -#include "actBlob.h" -#include "actBasics.h" -#include "actTokenBase.h" - -#include "actISynchronize.h" -#include "actITokenFileCache.h" -#include "actIAccessCondition.h" - -namespace act -{ - class IKey; - class IEMSAAlg; - class ICertificate; - class IAuthIdRef; - class ITokenPIN; - class ITokenAuth; - class ITokenFile; - class ITokenFileMap; - class ITokenConfig; - class ITokenKeyIterator; - class ISecurityManager; - class ITokenAuthIterator; - - struct CertEntry - { - int usage; - Blob certblob; - }; - - // - // ITokenView - class ITokenView - { - protected: - virtual ~ITokenView() { } - - public: - virtual IToken* GetToken() = 0; - - virtual ITokenView* GetPrev() const = 0; - virtual ITokenView* GetNext() const = 0; - - virtual ITokenFile* GetPath() const = 0; - virtual ITokenFileMap* GetFileMap() const = 0; - - virtual bool Equals(const ITokenView* other) const = 0; - - // Divide view into partitions, based on type[PATH|PIN] - virtual size_t Split(paramid_t type) = 0; - virtual ITokenView* SetDefault() = 0; - }; - - // - // IToken - class IToken - : public IRefCounted - , public IAcConverter - , public ISynchronize - { - protected: - virtual ~IToken() { } - - public: - virtual ITokenView* GetView() const = 0; - virtual ITokenConfig* GetConfig() const = 0; - virtual ITokenFile* GetTokenFile(const Blob& path) = 0; - - virtual int GetStatus() const = 0; - virtual int GetType() const = 0; - virtual ProfileType GetProfileType() = 0; - virtual const char* GetName() const = 0; - - // Returns the serial number, which may (!) be empty or equal the hardware serial! - virtual Blob GetSerialNumber() const = 0; - virtual Blob GetCardholderName() const = 0; - virtual Blob GetRandom(const unsigned long count) const = 0; - virtual void SetSeed(const Blob& seed) = 0; - - // Generate a new key - virtual IKey* NewKey(int key_type) = 0; - - // Add key to token, takes ownership - even on exception! - virtual void AddKey(IKey* key) = 0; - virtual bool RemoveKey(IKey* key) = 0; - - // Write/Import a (soft) key to token - virtual IKey* WriteKey(const IKey* key) = 0; - - // Get a token key instance from matching certificate - virtual IKey* CreateKey(const Blob& cert) const = 0; - virtual IKey* CreateKey(const ICertificate* cert) const = 0; - - // Key Objects - virtual int GetKeyNumber() const = 0; - virtual IKey* GetKey(int pos) const = 0; - virtual ITokenKeyIterator* GetKeyIterator(KeyType type, const Blob& authId = Blob()) = 0; - - // Certificate Objects - virtual int GetCertificateNumber() const = 0; - virtual CertEntry GetCertificate(int pos) const = 0; - - // Write/Delete a certificate (corresponding to a key) to token - virtual void WriteCertificate(const Blob& cert, IKey* key = 0) = 0; - virtual void DeleteCertificate(const Blob& cert, IKey* key = 0) = 0; - - // Authentication Objects - virtual ITokenAuth* GetAuth() const = 0; - virtual ISecurityManager* SecurityManager(int authManagerType) = 0; - virtual ITokenAuthIterator* GetAuthIterator(int type, const Blob& authId = Blob()) = 0; - - virtual int GetPinNumber() const = 0; - virtual ITokenPIN* GetPin(const IAuthIdRef* authIdRef, const ITokenFile* location) const = 0; - virtual ITokenPIN* GetPin(int pos, const ITokenFile* location) const = 0; - virtual ITokenPIN* GetPin(const char* pin_name) const = 0; - virtual ITokenPIN* GetPin(const Blob& authId) const = 0; - - virtual ITokenPIN* GetUserPin() const = 0; - virtual ITokenPIN* GetSOPin() const = 0; - virtual void VerifyUserPin(const Blob& pinvalue) = 0; - virtual void ChangeUserPin(const Blob& oldpin, const Blob& newpin) = 0; - virtual void UnlockUserPin(const Blob& so_pin, const Blob& new_userpin) = 0; - virtual void VerifySOPin(const Blob& pinvalue) = 0; - virtual void ChangeSOPin(const Blob& oldpin, const Blob& newpin) = 0; - - virtual bool ResetSecurityState() const = 0; - - // Token specific - virtual void SelectDataPath() const = 0; // TODO: MTE: To be removed soon! - virtual ISCardOS* GetOS() const = 0; // TODO: MTE: To be removed soon! - - // Delete a key pair from token with matching token key or certificate - virtual void DeleteKeyPair(const IKey* key) = 0; - virtual void DeleteKeyPair(const Blob& cert) = 0; - - virtual bool IsPKCS15() const = 0; - virtual bool IsReadOnly() const = 0; - virtual bool LoginRequired() const = 0; - - virtual bool IsLocked() const = 0; - - virtual Blob GetCardId() const = 0; - virtual Blob GetCardCF() const = 0; - }; - -} // namespace act - -#endif // ACT_IToken_h diff --git a/actlibrary/mingw32-i586/Release/include/actITokenAuth.h b/actlibrary/mingw32-i586/Release/include/actITokenAuth.h deleted file mode 100644 index cd6d150..0000000 --- a/actlibrary/mingw32-i586/Release/include/actITokenAuth.h +++ /dev/null @@ -1,139 +0,0 @@ -// --------------------------------------------------------------------------- -// Name: actITokenAuth.h -// Product: cv act library -// Purpose: The ITokenAuth interface represents a IToken authentication state -// using one the ITokenPIN objects owned by a token. -// -// Copyright: (c) 2007 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -// -// Autor: Markus Tesche (MTE) -// Date: 11/09/2007 -// --------------------------------------------------------------------------- - -#ifndef ACT_ITokenAuth_h -#define ACT_ITokenAuth_h - -#include "actBlob.h" -#include "actBasics.h" -#include "actIRefCounted.h" - -namespace act -{ - class AuthInfo; - - class IToken; - class ITokenPIN; - class ITokenFile; - class IAuthIdRef; - class IAuthConstrained; - - enum AuthConstrainedType - { - AUTH_CONSTRAINED_ALWAYS = 0, - AUTH_CONSTRAINED_NOT, - AUTH_CONSTRAINED_AND, - AUTH_CONSTRAINED_OR, - }; - - // - // IAuthFactory - class IAuthFactory - { - public: - virtual IAuthIdRef* CreateAuthIdRef(const Blob& authId, ITokenFile* path, - byte constrained_mode = AUTH_CONSTRAINED_ALWAYS) = 0; - - virtual ITokenPIN* CreatePin(const AuthInfo& ai, byte objRef, ITokenFile* path, - IAuthIdRef* authIdRef, IAuthIdRef* parentAuthIdRef) = 0; - - // TODO: MTE: deprecated, use CreatePin(const AuthInfo&...) instead - virtual ITokenPIN* CreatePin(int type, int usage, byte objRef, int minLen, - int maxLen, IAuthIdRef* authIdRef, const char* name = 0) = 0; - - protected: - virtual ~IAuthFactory() { } - }; - - - // - // IAuthIdRef - class IAuthIdRef : public IRefCounted - { - public: - virtual byte GetAuthIdByte() const = 0; - virtual const Blob& GetAuthId() const = 0; - virtual IAuthConstrained* GetAuthConstrained() = 0; - - virtual bool Equals(const Blob& authId) const = 0; - }; - - // - // IAuthIdRefIterator - class IAuthIdRefIterator : public IRefCounted - { - public: - virtual void Reset() = 0; - virtual IAuthIdRef* Next() = 0; - }; - - - // - // ITokenAuthIterator - class ITokenAuthIterator : public IRefCounted - { - public: - virtual void Reset(ITokenFile* parent = 0) = 0; - virtual ITokenPIN* Next() = 0; - }; - - // - // ITokenAuth - class ITokenAuth : public IRefCounted - { - public: - virtual bool Login(ITokenPIN* auth_obj, const Blob& pin) = 0; - - virtual bool Logout() = 0; - virtual bool Logout(const ITokenPIN* auth_obj) = 0; - virtual bool LogoutEx(bool reset_security_state) = 0; - - virtual Blob GetChallenge(const ITokenPIN* auth_obj) = 0; - - virtual IToken* GetToken() const = 0; - virtual ITokenPIN* GetAuthenticated() const = 0; - virtual ITokenPIN* GetAuthenticated(size_t index) const = 0; - - virtual bool NeedsPINValue() const = 0; - virtual bool HasChallenge() const = 0; - virtual bool HasChallenge(const ITokenPIN* auth_obj) const = 0; - virtual bool IsAuthenticated(const ITokenPIN* auth_obj) const = 0; - virtual bool IsAuthenticated(bool verify_security_state = false) const = 0; - - /*! - * Clears the internal authentication state for given auth_obj. - * - * If auth_obj is not authenticated: - * - do nothing - * - return false - * - * If auth_obj is authenticated: - * - remove auth_obj from authenticated-list. - * - return true - * - * \note does NOT reset the card's authentication state! - * - * \param auth_obj \ref ITokenPIN - * \return true if succeeded, false if not - */ - virtual bool Invalidate(ITokenPIN* auth_obj) = 0; - virtual bool Select(const ITokenPIN* auth_obj, bool force) = 0; - - virtual ITokenAuthIterator* Iterator(int type, const Blob& authId = Blob()) const = 0; - }; - -} // namespace act - -#endif // ACT_ITokenAuth_h diff --git a/actlibrary/mingw32-i586/Release/include/actITokenAuthOwner.h b/actlibrary/mingw32-i586/Release/include/actITokenAuthOwner.h deleted file mode 100644 index c53eccc..0000000 --- a/actlibrary/mingw32-i586/Release/include/actITokenAuthOwner.h +++ /dev/null @@ -1,39 +0,0 @@ -// --------------------------------------------------------------------------- -// Name: actITokenAuthOwner.h -// Product: cv act library -// Purpose: The ITokenAuthOwner interface is used by objects which requires -// authentication like token keys. -// -// Copyright: (c) 2008 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -// -// Autor: Markus Tesche -// Date: 08/10/2008 -// --------------------------------------------------------------------------- - -#ifndef ACT_ITokenAuthOwner_h -#define ACT_ITokenAuthOwner_h - -namespace act -{ - class ITokenPIN; - class IAuthIdRef; - - // - // ITokenAuthOwner - class ITokenAuthOwner - { - public: - virtual void SetPin(ITokenPIN* pin) = 0; - virtual ITokenPIN* GetPin() const = 0; - virtual IAuthIdRef* GetAuthIdRef() const = 0; - - protected: - virtual ~ITokenAuthOwner() { } - }; - -} // namespace act - -#endif // ACT_ITokenAuthOwner_h diff --git a/actlibrary/mingw32-i586/Release/include/actITokenBlockCipher.h b/actlibrary/mingw32-i586/Release/include/actITokenBlockCipher.h deleted file mode 100644 index 014efe1..0000000 --- a/actlibrary/mingw32-i586/Release/include/actITokenBlockCipher.h +++ /dev/null @@ -1,45 +0,0 @@ -// --------------------------------------------------------------------------- -// Name: actITokenBlockCipher.h -// Product: cv act library -// Purpose: The interface ITokenBlockCipher encapsulates operations using a -// symmetric key stored on a secure token. -// -// Copyright: (c) 2008 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -// -// Autor: Markus Tesche -// Date: 05/15/2008 -// --------------------------------------------------------------------------- - -#ifndef ACT_ITokenBlockCipher_h -#define ACT_ITokenBlockCipher_h - -#include "actBlob.h" -#include "actIBlockCipher.h" - -namespace act -{ - class IToken; - class ITokenConfig; - - // - // ITokenBlockCipher - class ITokenBlockCipher : public IBlockCipher - { - public: - virtual ITokenBlockCipher* Clone() const = 0; - - virtual void Configure(ITokenConfig* tkcfg) = 0; - virtual Blob GetCipherName() const = 0; - virtual Blob GetLabel() const = 0; - - virtual int GetKeyNumber() const = 0; - - virtual IToken* GetToken() const = 0; - }; - -} // namespace act - -#endif // ACT_ITokenBlockCipher_h diff --git a/actlibrary/mingw32-i586/Release/include/actITokenBlockCipherKey.h b/actlibrary/mingw32-i586/Release/include/actITokenBlockCipherKey.h deleted file mode 100644 index 3f13e59..0000000 --- a/actlibrary/mingw32-i586/Release/include/actITokenBlockCipherKey.h +++ /dev/null @@ -1,59 +0,0 @@ -// --------------------------------------------------------------------------- -// Name: actITokenBlockCipherKey.h -// Product: cv act library -// Purpose: The interface ITokenBlockCipherKey enables access to a key stored -// on a secure token. -// -// Copyright: (c) 2008 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -// -// Autor: Markus Tesche -// Date: 05/15/2008 -// --------------------------------------------------------------------------- - -#ifndef ACT_ITokenBlockCipherKey_h -#define ACT_ITokenBlockCipherKey_h - -#include "actTokenBase.h" - -#include "actIBlockCipherKey.h" - -#include "actITokenAuthOwner.h" -#include "actITokenFileOwner.h" -#include "actITokenBlockCipher.h" - -namespace act -{ - class IToken; - class ITokenConfig; - - // - // ITokenBlockCipherKey - class ITokenBlockCipherKey - : public IBlockCipherKey - , public ITokenAuthOwner - , public ITokenFileOwner - { - public: - virtual ITokenBlockCipherKey* Clone() const = 0; - - virtual ITokenBlockCipher* GetCipher() = 0; - virtual const ITokenBlockCipher* GetCipher() const = 0; - - virtual KeyType GetType() const = 0; - virtual IToken* GetToken() const = 0; - virtual const char* GetName() const = 0; - virtual void Configure(ITokenConfig* tkcfg) = 0; - - virtual void SetRawKey(const Blob& raw_key) = 0; - virtual void GetRawKey(Blob& raw_key) const = 0; - - virtual void SetMode(const char* modename) = 0; - virtual void SetPadding(const char* padname) = 0; - }; - -} // namespace act - -#endif // ACT_ITokenBlockCipherKey_h diff --git a/actlibrary/mingw32-i586/Release/include/actITokenConfig.h b/actlibrary/mingw32-i586/Release/include/actITokenConfig.h deleted file mode 100644 index cecaa7e..0000000 --- a/actlibrary/mingw32-i586/Release/include/actITokenConfig.h +++ /dev/null @@ -1,60 +0,0 @@ -// --------------------------------------------------------------------------- -// Name: actITokenConfig.h -// Product: cv act library -// Purpose: IToken configuration. -// -// Copyright: (c) 2008 cv cryptovision GmbH -// all rights reserved. -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -// -// Autor: Markus Tesche -// Date: 11/07/2008 -// --------------------------------------------------------------------------- - -#ifndef ACT_ITokenConfig_h -#define ACT_ITokenConfig_h - -#include "actIParam.h" -#include "actIRefCounted.h" - -namespace act -{ - class ISCardOS; - class IToken; - class ITokenPIN; - class ITokenAuth; - class ITokenKey; - class ITokenBlockCipher; - class ITokenBlockCipherKey; - class ITokenFileMap; - class ITokenFileCache; - - // - // ITokenConfig - class ITokenConfig - : public IParam - , virtual public IRefCounted - { - public: - virtual ITokenConfig* Clone() const = 0; - - // Individual card detection - virtual bool IsSupported(ISCardOS* os) const = 0; - - // Configures the token, if fails throws an Exception - virtual void Configure(IToken* token) const = 0; - virtual void Configure(ITokenPIN* auth_obj) const = 0; - virtual void Configure(ITokenKey* key) const = 0; - virtual void Configure(ITokenBlockCipher* cipher) const = 0; - virtual void Configure(ITokenBlockCipherKey* key) const = 0; - - // Factory's for token helper objects - virtual ITokenAuth* CreateAuth(IToken* token) = 0; - virtual ITokenFileMap* CreateFileMap(const IToken* token) = 0; - virtual ITokenFileCache* CreateFileCache(IToken* token) = 0; - }; - -} // namespace act - -#endif // ACT_ITokenConfig_h diff --git a/actlibrary/mingw32-i586/Release/include/actITokenExtension.h b/actlibrary/mingw32-i586/Release/include/actITokenExtension.h deleted file mode 100644 index 784c418..0000000 --- a/actlibrary/mingw32-i586/Release/include/actITokenExtension.h +++ /dev/null @@ -1,39 +0,0 @@ -// --------------------------------------------------------------------------- -// Name: actITokenExtension.h -// Product: cv act library -// Purpose: Interface ITokenExtension provides functionality to register extensions to -// IToken derived objects. -// -// Copyright: (c) 2008 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -// -// Autor: Markus Tesche -// Date: 12/02/2008 -// --------------------------------------------------------------------------- - -#ifndef ACT_ITokenExtension_h -#define ACT_ITokenExtension_h - -#include "actIRefCounted.h" - -namespace act -{ - class IToken; - - // - // ITokenExtension - class ITokenExtension : public IRefCounted - { - protected: - virtual ~ITokenExtension() { } - - public: - virtual void* GetCreatePtr() throw() = 0; - virtual bool Register(IToken* token) = 0; - }; - -} // namespace act - -#endif // ACT_ITokenExtension_h diff --git a/actlibrary/mingw32-i586/Release/include/actITokenFile.h b/actlibrary/mingw32-i586/Release/include/actITokenFile.h deleted file mode 100644 index 4f42757..0000000 --- a/actlibrary/mingw32-i586/Release/include/actITokenFile.h +++ /dev/null @@ -1,71 +0,0 @@ -// --------------------------------------------------------------------------- -// Name: actITokenFile.h -// Product: cv act library -// Purpose: ITokenFile represents a simple smartcard file with path. -// -// Copyright: (c) 2008 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -// -// Autor: Markus Tesche -// Date: 09/02/2008 -// --------------------------------------------------------------------------- - -#ifndef ACT_TokenFile_h -#define ACT_TokenFile_h - -#include "actBlob.h" -#include "actIRefCounted.h" - -namespace act -{ - class ISCardOS; - - enum FILETYPE - { - UKType = -1 - }; - - // - // ITokenFile - class ITokenFile : public IRefCounted - { - public: - virtual ITokenFile* Clone() const = 0; - - virtual bool IsValid() const = 0; - - virtual bool Equals(const Blob& path) const = 0; - virtual bool Equals(const ISCardOS* os) const = 0; - virtual bool Equals(const ITokenFile* other) const = 0; - virtual bool IsParent(const ITokenFile* other, size_t* mismatch = 0) const = 0; - - virtual Blob& RefFCI() = 0; - virtual const Blob& GetFCI() const = 0; - - virtual Blob& RefAID() = 0; - virtual const Blob& GetAID() const = 0; - - virtual int GetFileType() const = 0; - virtual size_t GetFileLength() const = 0; - virtual const Blob& GetFilePath() const = 0; - virtual size_t GetFullLength() const = 0; - virtual size_t GetFullPath(Blob& path) const = 0; - - virtual ITokenFile* GetRelativeTo() const = 0; - virtual void SetRelativeTo(ITokenFile* parent) = 0; - virtual ITokenFile* MakeRelativeTo(ITokenFile* parent) = 0; - - virtual void SetFilePath(const Blob& filepath, int filetype) = 0; - virtual void SetFilePath(move_from filepath, int filetype) = 0; - - virtual const Blob& SelectApp(ISCardOS* os, int selectmode) = 0; - virtual const Blob& SelectFile(ISCardOS* os, int selectmode) = 0; - - virtual bool ProbeFilePath(ISCardOS* os, bool cut_non_existing) = 0; - }; - -} // namespace act - -#endif // ACT_TokenFile_h diff --git a/actlibrary/mingw32-i586/Release/include/actITokenFileCache.h b/actlibrary/mingw32-i586/Release/include/actITokenFileCache.h deleted file mode 100644 index 0991040..0000000 --- a/actlibrary/mingw32-i586/Release/include/actITokenFileCache.h +++ /dev/null @@ -1,42 +0,0 @@ -// --------------------------------------------------------------------------- -// Name: actITokenFileCache.h -// Product: cv act library -// Purpose: Interface used for FID based binary cache. -// -// Copyright: (c) 2008 cv cryptovision GmbH -// all rights reserved. -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -// -// Autor: Markus Tesche -// Date: 11/07/2008 -// --------------------------------------------------------------------------- - -#ifndef ACT_ITokenFileCache_h -#define ACT_ITokenFileCache_h - -#include "actIRefCounted.h" - -#include - -namespace act -{ - class Blob; - class IToken; - - // - // ITokenFileCache - class ITokenFileCache : public IRefCounted - { - protected: - typedef std::map CacheMap; - - public: - virtual bool InitCache(IToken* token) = 0; - virtual Blob GetCache(const Blob& filepath) const = 0; - virtual void PutCache(const Blob& filepath, const Blob& memory) const = 0; - }; - -} // namespace act - -#endif // ACT_ITokenFileCache_h diff --git a/actlibrary/mingw32-i586/Release/include/actITokenFileOwner.h b/actlibrary/mingw32-i586/Release/include/actITokenFileOwner.h deleted file mode 100644 index 1762d31..0000000 --- a/actlibrary/mingw32-i586/Release/include/actITokenFileOwner.h +++ /dev/null @@ -1,37 +0,0 @@ -// --------------------------------------------------------------------------- -// Name: actITokenFileOwner.h -// Product: cv act library -// Purpose: The ITokenFileOwner interface is implemented by objects which -// refer to a specific location on token represented by ITokenFile. -// -// Copyright: (c) 2010 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -// -// Autor: Markus Tesche -// Date: 28/03/2010 -// --------------------------------------------------------------------------- - -#ifndef ACT_ITokenFileOwner_h -#define ACT_ITokenFileOwner_h - -namespace act -{ - class ITokenFile; - - // - // ITokenFileOwner - class ITokenFileOwner - { - public: - virtual ITokenFile* GetPath() const = 0; - virtual void SetPath(ITokenFile* file) = 0; - - protected: - virtual ~ITokenFileOwner() { } - }; - -} // namespace act - -#endif // ACT_ITokenFileOwner_h diff --git a/actlibrary/mingw32-i586/Release/include/actITokenInitializer.h b/actlibrary/mingw32-i586/Release/include/actITokenInitializer.h deleted file mode 100644 index 0de6aef..0000000 --- a/actlibrary/mingw32-i586/Release/include/actITokenInitializer.h +++ /dev/null @@ -1,131 +0,0 @@ -// --------------------------------------------------------------------------- -// Name: actITokenInitializer.h -// Product: cv act library -// Purpose: ITokenInitializer interface declares common token profile initialization functionality. -// -// Copyright: (c) 2009 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -// -// Autor: Markus Tesche -// Date: 04/20/2009 -// --------------------------------------------------------------------------- - -#ifndef ACT_ITokenInitializer_h -#define ACT_ITokenInitializer_h - -#include "actBlob.h" -#include "actTokenBase.h" -#include "actIRefCounted.h" - -namespace act -{ - extern const byte PIN_PAD_CHAR; - - struct TIData - { - private: - TIData(const TIData&) throw(); - TIData& operator=(const TIData&) throw(); - - public: - TIData(const char* _profile_name = 0) - : profile_name(_profile_name) - , profile_type(PROFILE_UNKNOWN) - , retry_counter(3) - , pin_pad_byte(PIN_PAD_CHAR) - , enable_pin_padding(false) - , enable_pin_pce_so(false) - , enable_pin_pce_user(false) - , enable_minidriver(false) - , enable_minidriver_pnp(false) - , enable_biometric(false) - , enable_biometric_pins(false) - , load_only(false) - , load_package_MoC(false) - , load_package_2048(false) - , load_package_ecc(false) - { } - - Blob atr_historical_bytes; - Blob atr_historical_bytes_suffix; - Blob card_pin; - Blob so_pin; - Blob user_pin; - Blob serial_number; - Blob last_update_pin_utc; - Blob challenge_response_key; - Blob binary_data; - - const char* profile_name; - ProfileType profile_type; - - short retry_counter; - byte pin_pad_byte; - - bool enable_pin_padding; - bool enable_pin_pce_so; - bool enable_pin_pce_user; - bool enable_minidriver; - bool enable_minidriver_pnp; - bool enable_biometric; - bool enable_biometric_pins; - - bool load_only; - bool load_package_MoC; - bool load_package_2048; - bool load_package_ecc; - }; - - struct TITokenInfo - { - TITokenInfo(size_t pin_len_max, size_t pin_len_min, size_t _key_len_cr) - : serial_number_len(16) - , key_len_cr(_key_len_cr) - { - pin_len_max_admin = pin_len_max_so = pin_len_max_user = pin_len_max; - pin_len_min_admin = pin_len_min_so = pin_len_min_user = pin_len_min; - } - - size_t serial_number_len; - - size_t key_len_cr; - - size_t pin_len_max_admin; - size_t pin_len_max_so; - size_t pin_len_max_user; - - size_t pin_len_min_admin; - size_t pin_len_min_so; - size_t pin_len_min_user; - }; - - class ISCardOS; - class IProfileGenerator; - class ISCardCmdObserver; - - // - // ITokenInitializer - class ITokenInitializer : public IRefCounted - { - public: - virtual ISCardOS* GetOS() const= 0; - virtual const TITokenInfo& GetTokenInfo() const = 0; - virtual const ProfileType* GetSupportedProfileList() const = 0; - - virtual bool SupportsProfile(ProfileType profile_type) const = 0; - virtual void SetGenerator(IProfileGenerator* generator) = 0; - virtual void SetObserver(ISCardCmdObserver* observer) = 0; - - virtual bool EraseProfile(const Blob& card_pin) = 0; - virtual bool ExistProfile(bool& is_pkcs15, bool& requires_adminpin) = 0; - virtual void CreateProfile(TIData& data, ProfileType profile_type) = 0; - virtual void FinalizeProfile(TIData& data) = 0; - - virtual void PinChangeReminder(TIData& data, bool enable) = 0; - }; - -} // namespace act - -#endif // ACT_ITokenInitializer_h diff --git a/actlibrary/mingw32-i586/Release/include/actITokenKey.h b/actlibrary/mingw32-i586/Release/include/actITokenKey.h deleted file mode 100644 index 47e21bb..0000000 --- a/actlibrary/mingw32-i586/Release/include/actITokenKey.h +++ /dev/null @@ -1,64 +0,0 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actITokenKey.h -// Product: cv act library -// Purpose: The interface ITokenKey enables access to a key stored in a secure token. -// -// Copyright: (c) 2003 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_ITokenKey_h -#define ACT_ITokenKey_h - -#include "actIRefCounted.h" -#include "actISignatureKey.h" -#include "actITokenAuthOwner.h" -#include "actITokenFileOwner.h" - -#include "actTokenBase.h" - -namespace act -{ - class IToken; - class ITokenConfig; - - // - // ITokenKeyIterator - class ITokenKeyIterator : public IRefCounted - { - public: - virtual void Reset(ITokenFile* parent = 0) = 0; - virtual IKey* Next() = 0; - }; - - // - // ITokenKey - class ITokenKey - : public ISignatureKey - , public ITokenAuthOwner - , public ITokenFileOwner - { - public: - virtual ITokenKey* Clone() const = 0; - - virtual KeyType GetType() const = 0; - virtual IToken* GetToken() const = 0; - virtual const char* GetName() const = 0; - virtual void Configure(ITokenConfig* tkcfg) = 0; - - virtual Blob GetCertificate() const = 0; - virtual IKey* GetPublicKey() const = 0; - - virtual void VerifyPin(const Blob& pin) = 0; - - virtual Blob GetID() const = 0; - virtual Blob GetSubject() const = 0; - - virtual ITokenKeyIterator* Iterator(KeyType type, const Blob& authId = Blob()) const = 0; - }; - -} // namespace act - -#endif // ACT_ITokenKey_h diff --git a/actlibrary/mingw32-i586/Release/include/actITokenPIN.h b/actlibrary/mingw32-i586/Release/include/actITokenPIN.h deleted file mode 100644 index 3da8440..0000000 --- a/actlibrary/mingw32-i586/Release/include/actITokenPIN.h +++ /dev/null @@ -1,221 +0,0 @@ -// --------------------------------------------------------------------------- -// Name: actITokenPIN.h -// Product: cv act library -// Purpose: The class ITokenPIN defines the interfaces of the PIN operations -// -// Copyright: (c) 2002 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -// -// Autor: Dr. Xiangdong Wang (XWG) -// Date: 04/05/2002 -// --------------------------------------------------------------------------- - -#ifndef ACT_ITokenPIN_h -#define ACT_ITokenPIN_h - -#include "actBasics.h" -#include "actDate.h" -#include "actBlob.h" - -#include "actITokenAuth.h" -#include "actITokenFileOwner.h" -#include "actIRefCounted.h" - -#include "actTokenBase.h" - -namespace act -{ - enum PINType - { - UNKNOWN_PIN = 0x0000, - SO_PIN = 0x0001, - USER_PIN = 0x0002, - UNBLOCK_PIN = 0x0003, - - PIN_MASK = 0x000F, - - EXAUTH_PIN = 0x0010, - BIOMETRIC_PIN = 0x0020, - CERTBASED_PIN = 0x0040, - - BAC_PIN = 0x0100, - ICAO_PIN = 0x0200, - - EAC_PACE_PIN = 0x0400, - EAC_TA_PIN = 0x0800, - EAC_CA_PIN = 0x1000, - - PIN_TYPE_MASK = 0x7fff, - - AUTHENTICATED_PIN = 0x8000, // Current authenticated PIN - - // combined types - EXAUTH_SO_PIN = EXAUTH_PIN | SO_PIN, - EXAUTH_UNBLOCK_PIN = EXAUTH_PIN | UNBLOCK_PIN, - - BIOMETRIC_USER_PIN = BIOMETRIC_PIN | USER_PIN, - BIOMETRIC_SO_PIN = BIOMETRIC_PIN | SO_PIN, - - EAC_PACE_UNKNOWN_PIN = EAC_PACE_PIN | UNKNOWN_PIN, - EAC_PACE_SO_PIN = EAC_PACE_PIN | SO_PIN, - EAC_PACE_USER_PIN = EAC_PACE_PIN | USER_PIN, - EAC_PACE_UNBLOCK_PIN = EAC_PACE_PIN | UNBLOCK_PIN, - - EAC_TA_UNKNOWN_PIN = EAC_TA_PIN | UNKNOWN_PIN, - EAC_TA_USER_PIN = EAC_TA_PIN | USER_PIN, - - EAC_CA_UNKNOWN_PIN = EAC_CA_PIN | UNKNOWN_PIN, - EAC_CA_USER_PIN = EAC_CA_PIN | USER_PIN, - }; - - enum PINFlags - { - PIN_INITIALIZED = (1 << 0), - PIN_IS_LOCAL = (1 << 1), - PIN_CASE_SENSITIVE = (1 << 2), - PIN_CHANGE_DISABLED = (1 << 3), - PIN_UNBLOCK_DISABLED = (1 << 4), - PIN_DISABLE_ALLOWED = (1 << 5), - PIN_NEEDS_PADDING = (1 << 6), - PIN_NEEDS_UPDATE = (1 << 7), - PIN_REQUIRES_SM = (1 << 8), - PIN_REQUIRES_NO_DATA = (1 << 9), - PIN_REQUIRES_ENCRYPTION = (1 << 10), - PIN_CHANGE_REQUIRES_OLD = (1 << 11), - PIN_IS_DEFAULT = (1 << 12), // marks the one and only default pin - - PIN_FLAGS_MASK = (1 << 13) - 1, - - // combined flags - PIN_FLAGS = PIN_INITIALIZED | PIN_IS_LOCAL | PIN_CASE_SENSITIVE, - PIN_FLAGS_DEFAULT = PIN_IS_DEFAULT | PIN_FLAGS, - PIN_FLAGS_SO = PIN_INITIALIZED | PIN_IS_LOCAL | PIN_CASE_SENSITIVE | PIN_UNBLOCK_DISABLED, - PIN_FLAGS_EXAUTH = PIN_INITIALIZED | PIN_IS_LOCAL, - PIN_FLAGS_BIOMETRIC = PIN_INITIALIZED | PIN_IS_LOCAL, - PIN_FLAGS_CERTBASED = PIN_INITIALIZED | PIN_IS_LOCAL | PIN_REQUIRES_NO_DATA | PIN_CHANGE_DISABLED | PIN_UNBLOCK_DISABLED, - }; - - enum AuthDataEncoding - { - PIN_ENCODING_UNKNOWN = -1, - PIN_ENCODING_BINARY = 0, - PIN_ENCODING_ASCII_NUMERIC, - PIN_ENCODING_UTF8, - PIN_ENCODING_BCD, - PIN_ENCODING_HALF_NIBBLE_BCD, - PIN_ENCODING_ISO9564_1, - - PIN_ENCODING = PIN_ENCODING_ASCII_NUMERIC, - }; - - enum AuthId - { - AUTHID_INVALID = 0x00, - }; - - enum BioFinger - { - FINGER_UNKNOWN = 0, - FINGER_RIGHT_THUMB = 1, - FINGER_RIGHT_INDEX = 2, - FINGER_RIGHT_MIDDLE = 3, - FINGER_RIGHT_RING = 4, - FINGER_RIGHT_LITTLE = 5, - FINGER_LEFT_THUMB = 6, - FINGER_LEFT_INDEX = 7, - FINGER_LEFT_MIDDLE = 8, - FINGER_LEFT_RING = 9, - FINGER_LEFT_LITTLE = 10 - }; - - class IAuthIdRef; - class ITokenFile; - class IToken; - class ISCardOS; - class AuthInfo; - - // - // ITokenPIN - class ITokenPIN - : public IRefCounted - , public ITokenFileOwner - { - public: - virtual ITokenPIN* Clone() const = 0; - virtual bool Equals(const ITokenPIN* other) const = 0; - virtual int Compare(const ITokenPIN* other) const = 0; - - virtual int GetType() const = 0; - virtual int GetUsage() const = 0; - virtual byte GetObjRef() const = 0; - virtual IToken* GetToken() const = 0; - virtual const char* GetName() const = 0; - virtual AuthDataEncoding GetEncoding() const = 0; - - virtual const AuthInfo* GetInfo() const = 0; - virtual void SetInfo(const AuthInfo* ai) = 0; - - virtual void SetDefault(bool is_default) = 0; - virtual bool IsDefault() const = 0; - - virtual bool IsInitialized() const = 0; - virtual bool IsAuthenticated() const = 0; - - virtual bool NeedsUpdate() const = 0; - virtual bool NeedsPINValue() const = 0; - - virtual bool GetLengthInfo(LengthInfo& info) const = 0; - virtual bool CheckPinLength(const Blob& pin) const = 0; - virtual bool GetLastChange(Date& date, bool& supported) const = 0; - - virtual void VerifyPin(const Blob& pin) = 0; - - // NOTE: ChangePin preserves the authentication state if successfull - // TODO: MTE: Describe in detail! - virtual void ChangePin(const Blob& oldpin, const Blob& newpin) = 0; - - // NOTE: UnlockPin preserves the authentication state if successfull - // TODO: MTE: Describe in detail! - virtual void UnlockPin(ITokenPIN* so, const Blob& pin, const Blob& newpin) = 0; - - // NOTE: SetPinValue preserves the authentication state if successfull - // TODO: MTE: Describe in detail! - virtual void SetPinValue(ITokenPIN* so, const Blob& so_pin, const Blob& newpin) = 0; - - virtual void Select(ISCardOS* os = 0) const = 0; - - virtual ITokenPIN* GetParent() const = 0; - - virtual IAuthIdRef* GetAuthIdRef() const = 0; - virtual IAuthIdRef* GetParentAuthIdRef() const = 0; - - // Bio extensions - virtual byte GetFinger() const = 0; - virtual bool GetBioHeader(Blob& bioheader) = 0; - - // ExternalAuth Key extensions - virtual Blob GetChallenge() const = 0; - virtual void ResetChallenge() = 0; - virtual Blob ComputeResponse(const Blob& auth_key, const Blob& challenge) const = 0; - - // Certificate based authentication extensions - virtual void SetCHAT(const Blob& chat) = 0; - virtual void SetCHAT(move_from chat) = 0; - virtual Blob GetCHAT() const = 0; - - protected: - // SCard Functionality - virtual Blob doGetChallenge() const = 0; - virtual void doResetChallenge() const = 0; - virtual void doVerify(const Blob& pin) const = 0; - virtual SecStatus doGetSecurityStatus(Blob& context) const = 0; - - private: - friend class TokenAuth; - }; - -} // namespace act - -#endif // ACT_ITokenPIN_h diff --git a/actlibrary/mingw32-i586/Release/include/actIX509CRL.h b/actlibrary/mingw32-i586/Release/include/actIX509CRL.h deleted file mode 100644 index 750ddd6..0000000 --- a/actlibrary/mingw32-i586/Release/include/actIX509CRL.h +++ /dev/null @@ -1,48 +0,0 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actIX509CRL.h -// Product: cv act library -// Purpose: -// -// Copyright: (c) 2000 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_IX509CRL_h -#define ACT_IX509CRL_h -#include "actICRL.h" -#include "actX509Extension.h" - -namespace act -{ - - class IX509CRL: public ICRL - { - public: - virtual void SetThisUpdate(const Date &date )=0; - virtual void SetNextUpdate(const Date &date )=0; - virtual void GetThisUpdate(Date &date ) const=0; - virtual void GetNextUpdate(Date &date ) const=0; - - virtual X509Extension GetExtension(const char* oid) const=0; - virtual X509Extension GetExtension(const act::Blob& oidbl) const=0; - virtual void SetExtension(const X509Extension &ext)=0; - virtual X509Extension GetNextExtension(const X509Extension& ext) const=0; - virtual void RemoveExtension(const char* oid)=0; - - virtual Blob GetNextEntry(const Blob& certsernr) const=0; - - virtual void SetEntryRevocationDate(const Blob& certsn, const Date &vnbefore )=0; - virtual void GetEntryRevocationDate(const Blob& certsn, Date &vnbefore ) const=0; - - virtual X509Extension GetEntryExtension(const Blob& certsn, const char* oid) const=0; - virtual void SetEntryExtension(const Blob& certsn, const X509Extension &ext)=0; - virtual X509Extension GetNextEntryExtension(const Blob& certsn,const X509Extension& ext) const=0; - virtual void RemoveEntryExtension(const Blob& certsn,const char* oid)=0; - - }; -} // namespace act - -#endif - diff --git a/actlibrary/mingw32-i586/Release/include/actIX509Certificate.h b/actlibrary/mingw32-i586/Release/include/actIX509Certificate.h deleted file mode 100644 index 85d6907..0000000 --- a/actlibrary/mingw32-i586/Release/include/actIX509Certificate.h +++ /dev/null @@ -1,46 +0,0 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actIX509Certificate.h -// Product: cv act library -// Purpose: The abstract class IX509Certificate enables access to a certificate, -// e.g. its public key and the corresponding validity. -// -// Copyright: (c) 2000 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_IX509Certificate_h -#define ACT_IX509Certificate_h - -#include "actBasics.h" -#include "actDate.h" -#include "actICertificate.h" -#include "actX509Extension.h" - -namespace act -{ - class IKey; - class Blob; - - class IX509Certificate : public ICertificate - { - public: - - virtual void SetValidityNotBefore(const Date &vnbefore ) =0; - virtual void SetValidityNotAfter(const Date &vnafter ) =0; - virtual void GetValidityNotBefore(Date &vnbefore ) const =0; - virtual void GetValidityNotAfter(Date &vnafter ) const =0; - - virtual bool CheckValidity(const Date& date = Date() ) const =0; - - virtual X509Extension GetExtension(const char* oid) const=0; - virtual X509Extension GetExtension(const act::Blob& oidbl) const=0; - virtual void SetExtension(const X509Extension &ext)=0; - virtual X509Extension GetNextExtension(const X509Extension& ext) const=0; - virtual void RemoveExtension(const char* oid)=0; - }; -} // namespace act - -#endif - diff --git a/actlibrary/mingw32-i586/Release/include/actInit.h b/actlibrary/mingw32-i586/Release/include/actInit.h deleted file mode 100644 index 36f0099..0000000 --- a/actlibrary/mingw32-i586/Release/include/actInit.h +++ /dev/null @@ -1,578 +0,0 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actInit.h -// Product: cv act library -// Purpose: initialize the map entries of the objects -// -// Copyright: (c) 2007 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -// remarks: -// declare NO_SMARTCARD: no smartcard support required. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef actInit_h -#define actInit_h - -#include "actEnv.h" -#include "actKeyKit.h" -#include "actKeyReg.h" -#include "actBlockCipherKit.h" -#include "actBlockCipherReg.h" -#include "actBlockCipherModeReg.h" -#include "actBlockCipherModeKit.h" -#include "actStreamCipherKit.h" -#include "actStreamCipherReg.h" -#include "actHashKit.h" -#include "actHashReg.h" -#include "actEMSAReg.h" -#include "actEMSAKit.h" -#include "actDerivatorReg.h" -#include "actDerivatorKit.h" -#include "actPaddingReg.h" -#include "actPaddingKit.h" -#include "actCertificateReg.h" -#include "actCertificateKit.h" -#include "actX509KeyReg.h" -#include "actX509SignReg.h" -#include "actX509SignHashReg.h" -#include "actX509Kit.h" -#include "actDefaultRNG.h" -#include "actRNGKit.h" - -#ifndef NO_SMARTCARD -// NOTE: To Enable support for additional smartcards / profiles define: -// ACT_SUPPORT_TCOS_NETKEY30 -# include "actSCardOSReg.h" -# include "actSCardOSKit.h" -# include "actSCardTokenReg.h" -# include "actSCardTokenKit.h" -# include "actSubsystemReg.h" -# include "actSubsystemKit.h" -# include "actSlotMonitorReg.h" -# include "actSlotMonitorKit.h" -# include "actTokenExtensionReg.h" -# include "actTokenExtensionKit.h" -# include "actTokenAuthProtocolReg.h" -# include "actTokenAuthProtocolKit.h" -# include "actJCAppletKit.h" -# include "actJCAppletReg.h" -# include "actPKCS15BehaviorReg.h" -# include "actPKCS15BehaviorKit.h" -# include "actProfileGeneratorReg.h" -# include "actProfileGeneratorKit.h" -#endif // NO_SMARTCARD - -namespace act -{ - // ------------------------------------------------------------------------ - const KeyMapEntry KeyMap[] = - { - { "BlockCipher", CreateBlockCipherKey }, - { "StreamCipher", CreateStreamCipherKey }, - - { "IES", CreateIESKey }, - { "DSA", CreateDSAKey }, - { "RSA", CreateRSAKey }, - { "ECDSA", CreateECDSAKey }, - { "ECGDSA", CreateECGDSAKey }, - - { "DH", CreateDHKey }, - { "ECDH", CreateECDHKey }, - - { "HashMAC", CreateHashMACKey }, - { "CBCMAC", CreateCBCMACKey }, - { "SecretKeyMAC", CreateSecretKeyMACKey }, - { "RetailCFBMAC", CreateRetailCFBMACKey }, - { "iMAC3", Create_iMAC3Key }, // ISO9797-1 M2 Alg 3 MAC8 - { "CMAC", CreateCMACKey }, // NIST 800-38B CMAC - { 0, 0 } - }; - - // ------------------------------------------------------------------------ - const BlockCipherMapEntry BlockCipherMap[] = - { - { "AES", CreateRijndael }, - { "DES", CreateDES }, - { "TripleDES", CreateTripleDES }, - { "CAST128", CreateCAST128 }, - { "BlowFish", CreateBlowFish }, - { "Mars", CreateMars }, - { "Serpent", CreateSerpent }, - { "Rijndael", CreateRijndael }, - { "TwoFish", CreateTwoFish }, - { "RC2", CreateRC2 }, - //{ "RC6", CreateRC6 }, - { 0, 0 } - }; - - // ------------------------------------------------------------------------ - const BlockCipherModeMapEntry BlockCipherModeMap[] = - { - { "ECB", CreateECBMode }, - { "CBC", CreateCBCMode }, - { "CFB", CreateCFBMode }, - { "OFB", CreateOFBMode }, - { "CTR", CreateCTRMode }, - { 0, 0 } - }; - - // ------------------------------------------------------------------------ - const StreamCipherMapEntry StreamCipherMap[] = - { - { "ARC4", CreateARC4 }, - { 0, 0 } - }; - - // ------------------------------------------------------------------------ - const HashMapEntry HashMap[] = - { - { "MD2", CreateMD2 }, - { "MD4", CreateMD4 }, - { "MD5", CreateMD5 }, - { "RIPEMD128", CreateRipemd128 }, - { "RIPEMD160", CreateRipemd160 }, - { "SHA0", CreateSHA0 }, - { "SHA1", CreateSHA1 }, - { "SHA224", CreateSHA224 }, - { "SHA256", CreateSHA256 }, - { "SHA384", CreateSHA384 }, - { "SHA512", CreateSHA512 }, - { "DummyHash", CreateDummyHash }, - { 0, 0 } - }; - - // ------------------------------------------------------------------------ - const EMSAMapEntry EMSAMap[] = - { - { "EMSA1", CreateEMSA1 }, - { "PKCS1V1_5EMSA", CreatePKCS1V1_5EMSA }, - { "TLS_EMSA", CreateTLS_EMSA}, - { "PKCS1_PSS_EMSA", CreatePKCS1_PSS_EMSA }, - { "DummyEMSA", CreateDummyEMSA }, // Used for "Hash on Card" - { 0, 0 } - }; - - // ------------------------------------------------------------------------ - const DerivatorMapEntry DerivatorMap[] = - { - { "KDF1", CreateKDF1 }, // IEEE P1363 KDF1 - { "KDF2", CreateX963KDF }, // IEEE P1363 KDF2 (= X963KDF) - { "X963KDF", CreateX963KDF }, // ANSI X9.63 KDF - { "PBKDF1", CreatePBKDF1 }, // PKCS#5 PBKDF1 - { "PBKDF2", CreatePBKDF2 }, // PKCS#5 PBKDF2 - { "EACKDF", CreateEACKDF }, // EAC 2.01, BSI TR-03110 A.2.3 - { "SessionKDF", CreateEACKDF }, // BSI TR-03111 (= EACKDF) - { 0, 0 } - }; - - // ------------------------------------------------------------------------ - const PaddingMapEntry PaddingMap[] = - { - { "PKCS5", CreatePKCS5Pad }, - { "RSAES", CreatePKCS1V1_5EMEPad }, - { "ISO", CreateOneAndZerosPad }, - { "ISO9796", CreateISO9796Pad }, - { "NOPAD", CreateNoPad }, - { 0, 0 } - }; - - // ------------------------------------------------------------------------ - const CertificateMapEntry CertificateMap[] = - { - { "X509", CreateX509Certificate }, - { "CV", CreateCVCertificate }, - { 0, 0 } - }; - - // ------------------------------------------------------------------------ - const CRLMapEntry CRLMap[] = - { - { "X509", CreateX509CRL }, - { 0, 0 } - }; - - // ------------------------------------------------------------------------ - const X509KeyMapEntry X509KeyMap[] = - { - { "1.2.840.113549.1.1.1", CreateRSAKey, X509ToRSA, RSAToX509 }, - { "2.5.8.1.1", CreateRSAKey, X509ToRSA, RSAToX509 }, - { "1.2.840.10040.4.1", CreateDSAKey, X509ToDSA, DSAToX509 }, - { "1.3.14.3.2.20", CreateDSAKey, X509ToDSA, DSAToX509 }, - { "1.3.14.3.2.12", CreateDSAKey, X509ToDSA, DSAToX509 }, // secude DSA oid - { "1.2.840.10046.2.1", CreateDHKey, X509ToDH, DHToX509 }, - { "1.2.840.10045.2.1", CreateECDSAKey, X509ToECDSA, ECDSAToX509 }, - { "1.2.840.10045.2.1", CreateECDHKey, X509ToECDSA, ECDSAToX509 }, - { 0, 0, 0, 0 } - }; - - // ------------------------------------------------------------------------ - const X509SignMapEntry X509SignMap[] = - { - { CreateRSAKey, RSAGetAlgID, RSASetAlgID }, - { CreateDSAKey, DSAGetAlgID, DSASetAlgID }, - { CreateECDSAKey, ECDSAGetAlgID, ECDSASetAlgID }, - { CreateDHKey, DHGetAlgID, DHSetAlgID }, - { CreateECDHKey, ECDHGetAlgID, ECDHSetAlgID }, - { 0, 0, 0 } - }; - - // ------------------------------------------------------------------------ - const X509SignHashMapEntry X509SignHashMap[] = - { - // RSA - { "1.2.840.113549.1.1.2", "MD2", "RSA" }, // md2WithRSAEncryption - { "1.2.840.113549.1.1.3", "MD4", "RSA" }, // md4WithRSAEncryption - { "1.2.840.113549.1.1.4", "MD5", "RSA" }, // md5WithRSAEncryption - { "1.2.840.113549.1.1.5", "SHA1", "RSA" }, // shaWithRSAEncryption - { "1.3.14.3.2.29", "SHA1", "RSA" }, - { "1.2.840.113549.1.1.11", "SHA256", "RSA" }, // sha256WithRSAEncryption - { "1.2.840.113549.1.1.12", "SHA384", "RSA" }, // sha384WithRSAEncryption - { "1.2.840.113549.1.1.13", "SHA512", "RSA" }, // sha512WithRSAEncryption - { "1.2.840.113549.1.1.14", "SHA224", "RSA" }, // sha224WithRSAEncryption - { "1.3.36.3.3.1.2", "RIPEMD160", "RSA" }, - { "1.3.36.3.3.1.3", "RIPEMD128", "RSA" }, - // DSA - { "1.2.840.10040.4.3", "SHA1", "DSA" }, - { "1.3.14.3.2.28", "SHA1", "DSA" }, - { "1.3.14.3.2.27", "SHA1", "DSA" }, // secude DSA oid - // ECDSA - { "1.2.840.10045.4.1", "SHA1", "ECDSA" }, // ecdsa-with-Sha1 - { "1.2.840.10045.2.1", "SHA1", "ECDSA" }, // ecdsa-with-Sha1 (deprecated) - { "1.2.840.10045.4.3.1", "SHA224", "ECDSA" }, // ecdsa-with-Sha224 - { "1.2.840.10045.4.3.2", "SHA256", "ECDSA" }, // ecdsa-with-Sha256 - { "1.2.840.10045.4.3.3", "SHA384", "ECDSA" }, // ecdsa-with-Sha384 - { "1.2.840.10045.4.3.4", "SHA512", "ECDSA" }, // ecdsa-with-Sha512 - // DH - { "1.3.6.1.5.5.7.6.4", "SHA1", "DH" }, // DH-POP - // ECDH - { "1.2.840.10045.2.1", "SHA1", "ECDH" }, // "ECDH-POP" - { 0, 0, 0 } - }; - -#ifndef NO_SMARTCARD - // ------------------------------------------------------------------------ - const SCardOSMapEntry SCardOSMap[] = - { - // NOTE: Only lower case historical bytes ! - /* - { "0064050a020131809000", CreateTCOS }, // NetKey (TCOS V2R1) - { "00640560020331809000", CreateTCOS }, // NetKey (TCOS V2R3) - { "0064057b020331809000", CreateTCOS }, // NetKey (TCOS V2R?) - { "00640514020231809000", CreateTCOS }, // etrust (TCOS V2R2) - { "00640561020331809000", CreateTCOS }, // TCOS USB Crypt Token - { "0068d276000028ff051e3180009000", CreateMicardOS }, // Micardo P2.1 - { "4d4943323045", CreateMicardo20E }, // Micardo EC 2.0 - { "0068d276000028ff05233180009000", CreateMicardo23E }, // Micardo EC 2.3 - */ - - // ACOS - { "454d56203033202006", CreateACOS_D01 }, // Austria Card ACOS EMV-D01 - { "44492030324d", CreateACOS_D01 }, // Austria Card ACOS EMV-D01 contactless - { "455041000000000228505900000000", CreateACOS_A04 }, // Austria Card ACOS EMV-A04/A05 - { "455041000000000000000000000000", CreateACOS_A04 }, // Austria Card ACOS EMV-A04/A05 - - // CardOS - { "c802", CreateCardOS_M4 }, // CardOS M4.0 siemens profile - { "c803", CreateCardOS_M4 }, // CardOS M4.01 siemens profile - { "c804", CreateCardOS_M4 }, // CardOS M4.01a siemens profile - { "4d346376", CreateCardOS_M4 }, // CardOS M4.01(a) cv profile - { "4d3463765f4d", CreateCardOS_M4_MoC }, // CardOS M4.01_M cv profile - { "4d3463765f45", CreateCardOS_M4_ECC }, // CardOS M4.01_E cv profile - { "c806", CreateCardOS_V4 }, // CardOS V4.2 - { "c807", CreateCardOS_V4 }, // CardOS V4.3 - { "c808", CreateCardOS_V4 }, // CardOS V4.3B - { "c809", CreateCardOS_V4 }, // CardOS V4.2B - { "c80a", CreateCardOS_V4 }, // CardOS V4.2B DI - { "0000c80a3381b100", CreateCardOS_V4 }, // CardOS V4.2B DI contactless - { "c80b", CreateCardOS_V4 }, // CardOS V4.2C - { "c80d", CreateCardOS_V4 }, // CardOS V4.4 - { "56346376", CreateCardOS_V4 }, // CardOS V4.2/4.3/4.3B cv profile - { "563432626376", CreateCardOS_V4 }, // CardOS V4.2b cv profile - { "5634326244496376", CreateCardOS_V4 }, // CardOS V4.2b DI cv profile - { "563432636376", CreateCardOS_V4 }, // CardOS V4.2c cv profile - { "5634346376", CreateCardOS_V4 }, // CardOS V4.4 cv profile - { "563463765f45", CreateCardOS_V4_ECC }, // CardOS V4.3B ECC cv profile - { "006b0508c806012101434e53103180", CreateCardOS_V4 }, // CardOS V4.2 CNS profile, 2004.02.20 - { "006b0508c807012101434e53103180", CreateCardOS_V4 }, // CardOS V4.3 CNS profile, 2004.02.20 - { "006b0508c808012101434e53103180", CreateCardOS_V4 }, // CardOS V4.3B CNS profile, 2004.02.20 - { "006b0508c806011101434e53103180", CreateCardOS_V4 }, // CardOS V4.2 CNS profile, 2005.03.11 - { "006b0508c807011101434e53103180", CreateCardOS_V4 }, // CardOS V4.3 CNS profile, 2005.03.11 - { "006b0508c808011101434e53103180", CreateCardOS_V4 }, // CardOS V4.3B CNS profile, 2005.03.11 - { "006b0508c808011101434e53103180", CreateCardOS_V4 }, // CardOS V4.3B CNS profile, 2005.03.11 - { "4b53776973735369676e", CreateCardOS_V4 }, // CardOS V4.3B/V4.4 ATR by SwissSign - - // STARCOS - //{ "53504b32339000", CreateStarCOS_3_0}, // G&D STARCOS SPK 2.3 - { "80670412b0030300008101", CreateStarCOS_3_0 }, // G&D STARCOS 3.0 (creational state) - { "80670412b0030300008105", CreateStarCOS_3_0 }, // G&D STARCOS 3.0 - { "80670412b003030000", CreateStarCOS_3_0 }, // G&D STARCOS 3.0 contactless - { "80655343010d067394211b8101", CreateStarCOS_3_0 }, // G&D STARCOS 3.1 (creational state) - { "80655343010d067394211b8105", CreateStarCOS_3_0 }, // G&D STARCOS 3.1 - { "0064051eb20031b0739621db019000", CreateStarCOS_3_2 }, // G&D STARCOS 3.2 (creational state) - { "0064051eb20031b0739621db059000", CreateStarCOS_3_2 }, // G&D STARCOS 3.2 - - // TCOS -#ifdef ACT_SUPPORT_TCOS_NETKEY30 - { "00640411030131c073f701d0009000", CreateTCOS_3_0 }, // NetKey (TCOS 3.0) -#endif - // JavaCards - { "8073002113574a544861314a00", CreateJavaCardOS_2_2 }, // G&D SmartCafe Expert 64 (cfg1) - { "8073002113574a544861314700", CreateJavaCardOS_2_2 }, // G&D SmartCafe Expert 64 (cfg2) - { "8073002113574a544861314800", CreateJavaCardOS_2_2 }, // G&D SmartCafe Expert 64 (cfg3) - { "8073002113574a544861314b00", CreateJavaCardOS_2_2 }, // G&D SmartCafe Expert 64 (cfg4) - { "8073002113574a544861314c00", CreateJavaCardOS_2_2 }, // G&D SmartCafe Expert 64 (cfg5) - { "8073002113574a544861314900", CreateJavaCardOS_2_2 }, // G&D SmartCafe Expert 64 (cfg8) - { "404d4f504153530000000000000000", CreateJavaCardOS_2_2 }, // G&D SmartCafe Expert 64 (XMC2) - - { "534653452d43583332322d56180308", CreateJavaCardOS_2_1_1 },// G&D SmartCafe Expert 2.0 - { "0073c84013009000", CreateJavaCardOS_2_2_1 }, // G&D SmartCafe Expert 3.0 / 3.1 / 3.1 contactless - { "4138004133b1020073c840130090", CreateJavaCardOS_2_2_1 }, // G&D SmartCafe Expert 3.1 contactless (SCM SDI010, Firmware V6.28) - { "4138004133b10073c84013009000", CreateJavaCardOS_2_2_1 }, // G&D SmartCafe Expert 3.1 contactless (SCM SDI010, Firmware V6.32) - { "73667465206364313434", CreateJavaCardOS_2_2_1 }, // G&D SmartCafe Expert 3.2 PIV 144 KB - { "736674652D6364303830", CreateJavaCardOS_2_2_1 }, // G&D SmartCafe Expert 3.2 PIV 80 KB - { "73667465", CreateJavaCardOS_2_2_1 }, // G&D SmartCafe Expert 3.2 (sfte) - { "736674652d6e66", CreateJavaCardOS_2_2_1 }, // G&D SmartCafe Expert 3.2 (sfte-nf) - { "73c840130090009b", CreateJavaCardOS_2_2_1 }, // G&D SmartCafe Expert 3.2 USB Token - { "736674652063643038302d6e66", CreateJavaCardOS_2_2_1 }, // G&D SmartCafe Expert 3.2 (sfte cd080-nf) - { "53462d3443432d3031", CreateJavaCardOS_2_2_1 }, // G&D SmartCafe Expert 5.0 - { "53504b323544499000", CreateJavaCardOS_2_2_1 }, // G&D Mobile Security Card 3.x - { "4d5343", CreateJavaCardOS_2_2_1 }, // G&D Mobile Security Card 3.x - - //{ "4a434f503230", CreateJavaCardOS_2_1 }, // JCOP 20 - { "4a434f503231563232", CreateJavaCardOS_2_2_1 }, // JCOP 21 V2.2 - { "4a434f50323156323331", CreateJavaCardOS_2_2_1 }, // JCOP 21 V2.3.1 - { "4a434f503331563231", CreateJavaCardOS_2_1 }, // JCOP 31 V2.1 - { "4a434f503331563232", CreateJavaCardOS_2_2_1 }, // JCOP 31 V2.2 - { "4a434f50333156323331", CreateJavaCardOS_2_2_1 }, // JCOP 31 V2.3.1 - { "4a434f503331563234", CreateJavaCardOS_2_2_1 }, // JCOP 31 V2.4 - //{ "4a434f5033313336474454", CreateJavaCardOS_2_2_1 }, // JCOP 31 36GDT - { "4a434f503431563232", CreateJavaCardOS_2_2_1 }, // JCOP 41 V2.2 / V2.2 contactless - { "4128001133b04a434f5034315632", CreateJavaCardOS_2_2_1 }, // JCOP 41 V2.2 contactless (SCM SDI010, Firmware V6.32) - { "4a434f50343156323231", CreateJavaCardOS_2_2_1 }, // JCOP 41 V2.2.1 - { "4138001133b04a434f5034315632", CreateJavaCardOS_2_2_1 }, // JCOP 41 V2.2.1 contactless - { "4a434f50343156323331", CreateJavaCardOS_2_2_1 }, // JCOP 41 V2.3.1 - { "4a434f50343156323332", CreateJavaCardOS_2_2_1 }, // JCOP 41 V2.3.2 - { "4a434f503431563234", CreateJavaCardOS_2_2_1 }, // JCOP 41 V2.4 - { "4a434f5076323431", CreateJavaCardOS_2_2_2 }, // JCOP v2.4.1 - { "434f50343156323231ff", CreateJavaCardOS_2_2_1 }, // JCOP 41 V2.2.1 (IDptoken 200) - { "4a434f507632343262657461", CreateJavaCardOS_2_2_2 }, // JCOP v2.4.2 beta - { "0073c84000009000", CreateJavaCardOS_2_2_1 }, // JCOP V2.3.2 - - { "4a434f50563231", CreateJavaCardOS_2_1 }, // JCOP V2.1 - { "4a434f50563232", CreateJavaCardOS_2_2_1 }, // JCOP V2.2 - { "4a434f5056323231", CreateJavaCardOS_2_2_1 }, // JCOP V2.2.1 - { "4a434f50563233", CreateJavaCardOS_2_2_1 }, // JCOP V2.3 - { "4a434f5056323331", CreateJavaCardOS_2_2_1 }, // JCOP V2.3.1 - { "4a434f5056323332", CreateJavaCardOS_2_2_1 }, // JCOP V2.3.2 - { "4a434f50563234", CreateJavaCardOS_2_2_1 }, // JCOP V2.4 - { "4a434f5056323431", CreateJavaCardOS_2_2_2 }, // JCOP V2.4.1 - { "4a434f5056323432", CreateJavaCardOS_2_2_2 }, // JCOP V2.4.2 - - { "4a434f5033314d34", CreateJavaCardOS_2_2_1 }, // Austriacard JCOP31M4 - { "4a434f5032315632325f", CreateJavaCardOS_2_2_1 }, // AustriaCard JCOP 21 V2.2, T0, T1 - { "4a434f5033315632325f", CreateJavaCardOS_2_2_1 }, // AustriaCard JCOP 31 V2.2, T0, T1 - { "4a434f5034315632345f", CreateJavaCardOS_2_2_1 }, // AustriaCard JCOP 41 V2.4, T0, T1 - { "4a434f50563234314143", CreateJavaCardOS_2_2_1 }, // AustriaCard JCOP V2.4.1, T0, T1 - - { "5257414e44415f4944", CreateJavaCardOS_2_2_1 }, // AustriaCard JCOP V2.4.1 'RWANDA_ID' - { "44654c61527565", CreateJavaCardOS_2_2_1 }, // AustriaCard JCOP V2.4.1 'DeLaRue' - - { "803180664090a4561b1183019000", CreateJavaCardOS_2_2_1 }, // Infineon jTOP 20ID - - { "80318065b0831148c883009000", CreateJavaCardOS_2_2_1 }, // Gemalto TOP IM GX4 - //{ "80318065b08301029083009000", CreateJavaCardOS_2_2_1 }, // Gemalto I-DENTITY CARD - { "8065b08301017483009000", CreateJavaCardOS_2_1_1 }, // Gemplus GemXpresso Pro R3 - { "8065b08301037483009000", CreateJavaCardOS_2_1_1 }, // Gemplus GemXpresso Pro R3 - //{ "8065a20101013d72d643", CreateJavaCardOS_2_1_1 }, // Gemplus GemXpresso Pro R3 E32 PK - - { "0031c06477e30300829000", CreateJavaCardOS_2_1_1 }, // Oberthur CosmopolIC 64K v5.2D - - { "8059017f4849444a43327300011b", CreateJavaCardOS_2_2_2 }, // HID Crescendo C700 (JC2s) ("Standard JavaCard, T0/1, Platform Default Packages") - { "804f0ca0000003060a001d00000000", CreateJavaCardOS_2_2_2 },// HID Crescendo C700 (JC2s) contactless - - { ACT_ISO7816OS_NAME, CreateISO7816OS }, // use act::ISO7816OS as fallback - { 0, 0 } - }; - - // ------------------------------------------------------------------------ - const SCardTokenMapEntry SCardTokenMap[] = - { - // Passport - { IsEPAProfile, CreateEPAProfile }, - - // PKCS#15 - { IsM4PKCS15Profile, CreateM4PKCS15Profile }, - { IsV4PKCS15ECProfile, CreateV4PKCS15ECProfile }, - { IsV4PKCS15Profile, CreateV4PKCS15Profile }, - { IsJCPKCS15ECProfile, CreateJCPKCS15ECProfile }, - { IsJCPKCS15Profile, CreateJCPKCS15Profile }, - { IsACOSPKCS15Profile, CreateACOSPKCS15Profile }, - { IsStarCOSPKCS15Profile, CreateStarCOSPKCS15Profile }, - - // ACOS - { IsACOScvProfile, CreateACOScvProfile }, - - // CardOS - { IsM4cvMoCProfile, CreateM4cvMoCProfile }, - { IsM4cvECProfile, CreateM4cvECProfile }, - { IsV4cvECProfile, CreateV4cvECProfile }, - { IsV4cvProfile, CreateV4cvProfile }, - { IsM4cvProfile, CreateM4cvProfile }, - // { IsV4CNSProfile, CreateV4CNSProfile }, - - // TCOS -#ifdef ACT_SUPPORT_TCOS_NETKEY30 - { IsNetKey30Token, CreateNetKey30Token }, -#endif - - // JavaCardOS - { IsJCProfile, CreateJCProfile }, - // { IsJavaCardAppletManager, CreateJavaCardAppletManager }, - - /* - { IsStarCOSToken, CreateStarCOSToken }, - { IsNetKey2000Token, CreateNetKey2000Token }, - { IsNetKeyE4Token, CreateNetKeyE4Token }, - { IsNetKeyPKSToken, CreateNetKeyPKSToken }, - { IsNetKeyOldToken, CreateNetKeyOldToken }, - { IseTrustToken, CreateeTrustToken }, - { IsMicardoECToken, CreateMicardoECToken }, - { IsM4SiemensProfile, CreateM4SiemensProfile }, - */ - { 0, 0 } - }; - - // ------------------------------------------------------------------------ - const ProfileGeneratorMapEntry ProfileGeneratorMap[] = - { - { "JavaCardOS", CreateJCPKCS15Generator }, - { 0, 0 } - }; - - // ------------------------------------------------------------------------ - const PKCS15BehaviorMapEntry PKCS15BehaviorMap[] = - { - { "cv cryptovision gmbh (c) v1.0j", CreateJCPKCS15Behavior }, - { "cv cryptovision gmbh (c) v1.0jEAC", CreateJCPKCS15mEACBehavior }, - { "cv cryptovision gmbh (c) v1.0n", CreateV4PKCS15Behavior }, - { "cv cryptovision gmbh (c) v1.0na", CreateACOSPKCS15Behavior }, - { "cv cryptovision gmbh (c) v1.0ns", CreateStarCOSPKCS15Behavior }, - { "A.E.T. Europe B.V.", CreateSafeSignBehavior }, - { "Giesecke&Devrient GmbH", CreateStarSignBehavior }, - { "D-TRUST GmbH (C)", CreateDTRUSTBehavior }, - { "Siemens AG (C)", CreateHiPathBehavior }, - { "Technology Nexus", CreateNexusBehavior }, - { "Volkswagen AG", CreateVWBehavior }, - { "", CreatePKCS15Behavior }, // default - { 0, 0 } - }; - - // ------------------------------------------------------------------------ - const TokenExtensionMapEntry TokenExtensionMap[] = - { - { "MDProfileExt", CreateMDProfileExt }, // Minidriver FS Profile Extension - -# if defined(ACT_WIN32) && !defined(ACT_MINGW) - { "EAC 2.01 TA", CreateEACTAwithCAPI }, - -# endif - { 0, 0 } - }; - - // ------------------------------------------------------------------------ - const TokenAuthProtocolMapEntry TokenAuthProtocolMap[] = - { - { "EAC 2.01 PACE", CreateTokenAuthPACE }, - { "EAC 2.01 TA", CreateTokenAuthTA }, - { "EAC 2.01 CA", CreateTokenAuthCA }, - { "BAC", CreateTokenAuthBAC }, - { 0, 0 } - }; - - // ------------------------------------------------------------------------ - const SubsystemMapEntry SubsystemMap[] = - { - { "PCSC", CreatePCSCSystem, CreatePCSCSystemEx }, - { "CTAPI", CreateCTAPISystem, 0 }, - { "PKCS11", CreatePKCS11System, 0 }, - -# if defined(ACT_WIN32) && !defined(ACT_MINGW) - { "CSP", CreateCSPSystem, 0 }, - -# endif - { 0, 0, 0 } - }; - - // ------------------------------------------------------------------------ - const SlotMonitorRegEntry SlotMonitorMap[] = - { - { "PCSC", { CreatePCSCSlotMonitor, CreatePCSCSystemSlotMonitor } }, - { "CTAPI", { CreateSlotMonitor, 0 } }, - { "PKCS11", { CreateSlotMonitor, 0 } }, - -# if defined(ACT_WIN32) && !defined(ACT_MINGW) - { "CSP", { CreateSlotMonitor, 0 } }, - -# endif - { 0, { 0, 0 } } - }; - - // ------------------------------------------------------------------------ - const JCardAppletEntry JCardAppletMap[] = - { - // AID if it is equal to 0 then all AID are able - // function returns true if the Applet can used - // creates an new applet - // number of PIN's Key's Certificate's - // if they are -1 then it will be checked - // if they are biger or equal to 0 they are const - { "D276000098C00000", IsJCProfileApplet, CreateJCProfileApplet, 1, 1, 0 }, - { 0, 0, 0, 0, 0, 0 } - }; -#endif // NO_SMARTCARD - - // ------------------------------------------------------------------------ - // Version: V1R4M4 - const char* GetVersion(); - - // ------------------------------------------------------------------------ - inline void Init(bool bAlwaysInit = false) - { - static bool loaded = false; - if(loaded == true && bAlwaysInit == false) - return; - - KeyReg::Insert(KeyMap); - BlockCipherReg::Insert(BlockCipherMap); - BlockCipherModeReg::Insert(BlockCipherModeMap); - StreamCipherReg::Insert(StreamCipherMap); - HashReg::Insert(HashMap); - EMSAReg::Insert(EMSAMap); - DerivatorReg::Insert(DerivatorMap); - PaddingReg::Insert(PaddingMap); - CertificateReg::Insert(CertificateMap); - CRLReg::Insert(CRLMap); - X509KeyReg::Insert(X509KeyMap); - X509SignReg::Insert(X509SignMap); - X509SignHashReg::Insert(X509SignHashMap); - -#ifndef NO_SMARTCARD - SubsystemReg::Insert(SubsystemMap); - SlotMonitorReg::Insert(SlotMonitorMap); - SCardOSReg::Insert(SCardOSMap); - SCardTokenReg::Insert(SCardTokenMap); - ProfileGeneratorReg::Insert(ProfileGeneratorMap); - PKCS15BehaviorReg::Insert(PKCS15BehaviorMap); - TokenExtensionReg::Insert(TokenExtensionMap); - TokenAuthProtocolReg::Insert(TokenAuthProtocolMap); - JCardAppletReg::Insert(JCardAppletMap); -#endif - CreateFastRNG = CreateFIPS186; - CreateStrongRNG = CreateBBS; - loaded = true; - } - -} // namespace act - -#endif // actInit_h diff --git a/actlibrary/mingw32-i586/Release/include/actJCAppletKit.h b/actlibrary/mingw32-i586/Release/include/actJCAppletKit.h deleted file mode 100644 index 0d48e6d..0000000 --- a/actlibrary/mingw32-i586/Release/include/actJCAppletKit.h +++ /dev/null @@ -1,30 +0,0 @@ -// --------------------------------------------------------------------------- -// Name: actAppletKit.h -// Product: cv act library -// Purpose: registry for factory functions to create JavaCard Applet -// -// Copyright: (c) 2002 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -// -// Autor: -// Date: 02/10/2003 -// --------------------------------------------------------------------------- - -#ifndef ACT_AppletKit_h -#define ACT_AppletKit_h - -#include "actBlob.h" - -namespace act -{ - class IToken; - class JavaCardOS; - - bool IsJCProfileApplet(JavaCardOS* os, const Blob& aid); - IToken* CreateJCProfileApplet(JavaCardOS* os, const Blob& aid); - -} // namespace act - -#endif // ACT_AppletKit_h diff --git a/actlibrary/mingw32-i586/Release/include/actJCAppletReg.h b/actlibrary/mingw32-i586/Release/include/actJCAppletReg.h deleted file mode 100644 index a8dfa8f..0000000 --- a/actlibrary/mingw32-i586/Release/include/actJCAppletReg.h +++ /dev/null @@ -1,62 +0,0 @@ -// --------------------------------------------------------------------------- -// Name: actAppletReg.h -// Product: cv act library -// Purpose: registry for factory functions to create JavaCardApplet object -// -// Copyright: (c) 2002 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -// -// Autor: -// Date: 02/10/2003 -// --------------------------------------------------------------------------- - -#ifndef ACT_AppletReg_h -#define ACT_AppletReg_h - -#ifdef _MSC_VER -#pragma warning (disable:4786) -#endif - -namespace act -{ - class JavaCardOS; - class IToken; - class Blob; - - typedef IToken* (*CreateJCardAppletPtr)(JavaCardOS*, const Blob& aid); - typedef bool (*CheckJCardAppletPtr)(JavaCardOS*, const Blob& aid); - - struct JCardAppletEntry - { - const char* hexid; - CheckJCardAppletPtr CheckPtr; - CreateJCardAppletPtr CreatePtr; - int keys; - int certs; - int auth_objs; - }; - - struct JCardAppletInfoEntry - { - int keys; - int certs; - int auth_objs; - }; - - class JCardAppletReg - { - public: - static IToken* CreateJCardApplet(JavaCardOS* os, const Blob& aid); - static JCardAppletInfoEntry GetJCardAppletInfo(JavaCardOS* os, const Blob& aid); - static bool IsJCardApplet(JavaCardOS* os, const Blob& aid); - - static void Insert(const JCardAppletEntry* entry); - static void Insert(const char* id, CheckJCardAppletPtr checkptr, CreateJCardAppletPtr createptr, - int keys = -1, int auth_objs = -1, int certs = -1); - }; - -} // namespace act - -#endif // ACT_AppletReg_h diff --git a/actlibrary/mingw32-i586/Release/include/actJCSecureChannelReg.h b/actlibrary/mingw32-i586/Release/include/actJCSecureChannelReg.h deleted file mode 100644 index 1eb4b32..0000000 --- a/actlibrary/mingw32-i586/Release/include/actJCSecureChannelReg.h +++ /dev/null @@ -1,43 +0,0 @@ -//----------------------------------------------------------------------------- -// Name: actJCSecureChannelReg.h -// Product: cv act library -// Purpose: -// -// Copyright: (c) 2003 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for use of this software are regulated -// in the cv act libary licence agreement. -// -// Autor: -// Data: 08.10.2003 15:53:14 -//----------------------------------------------------------------------------- - -#ifndef __ACTJCSECURECHANNELREG_H__ -#define __ACTJCSECURECHANNELREG_H__ - -namespace act -{ - class Blob; - - struct JCSecureChannelEntry { - const char* hexvalue; - }; - - - class JCardSecureChannelReg - { - public: - static Blob GetValue(int i); - static int GetNumber(); - - - static void Insert(const char* hexvalue); - static void Insert(const JCSecureChannelEntry* entry); - - }; - -} - - - -#endif //__ACTJCSECURECHANNELREG_H__ diff --git a/actlibrary/mingw32-i586/Release/include/actKey.h b/actlibrary/mingw32-i586/Release/include/actKey.h deleted file mode 100644 index 5030c0c..0000000 --- a/actlibrary/mingw32-i586/Release/include/actKey.h +++ /dev/null @@ -1,82 +0,0 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actKey.h -// Product: cv act library -// Purpose: The class Key manages information relevant to keys (e.g. -// domain parameters or the key itself). In the case of symmetric -// encryption only a (the) secret key is generated. In the case of -// of asymetric encryption a private and a public key are generated. -// This handle allows a universal approach for different families of -// algorithms. -// -// -// Copyright: (c) 2000 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_Key_h -#define ACT_Key_h - -#include "actBasics.h" -#include "actBlob.h" - -namespace act -{ - class IRNGAlg; - class IAlgorithm; - class IKey; - class ICertificate; - - class Key - { - public: - Key(); - Key(const Key& key); - Key(IKey* keyptr); - Key(const Blob& keyblob); - Key(const ICertificate* cert); - Key(const char* keytype); - - void Import(const Blob& keyblob); - void Export(Blob& keyblob, export_t type = DEFAULT) const; - - void SetParam(paramid_t id, const Blob& blob); - void SetParam(paramid_t id, int val); - void SetParam(paramid_t id, const char* cstr); - - int GetParam(paramid_t id) const; - void GetParam(paramid_t id, Blob& blob) const; - - void Generate(IAlgorithm* prng = 0); - void Derive(const Blob& data, const Blob& salt = Blob()); - - IAlgorithm* CreateAlgorithm(mode_t Mode) const; - IAlgorithm* CreateAlgorithm(mode_t Mode, const Blob& data) const; - - IKey* GetPointer(); - const IKey* GetPointer() const; - operator IKey*(); - operator const IKey*() const; - - IKey* ReleasePointer(); - - template - inline KeyTypeT* As() { return static_cast(GetPointer()); } - - template - inline const KeyTypeT* As() const { return static_cast(GetPointer()); } - - Key& operator=(const Key& key); - Key& Reset(IKey* key); - Key& Required(const char* where = 0); - - ~Key(); - - private: - IKey *mKey; - }; - -} // namespace act - -#endif // ACT_Key_h diff --git a/actlibrary/mingw32-i586/Release/include/actKeyKit.h b/actlibrary/mingw32-i586/Release/include/actKeyKit.h deleted file mode 100644 index e8a7730..0000000 --- a/actlibrary/mingw32-i586/Release/include/actKeyKit.h +++ /dev/null @@ -1,43 +0,0 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actKeyKit.h -// Product: cv act library -// Purpose: declaration of all factory functions -// -// Copyright: (c) 2000 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_KeyKit_h -#define ACT_KeyKit_h - -namespace act -{ - class IKey; - - IKey* CreateBlockCipherKey(); - - IKey* CreateStreamCipherKey(); - - IKey* CreateHashMACKey(); - IKey* CreateCBCMACKey(); - IKey* CreateSecretKeyMACKey(); - IKey* CreateRetailCFBMACKey(); - IKey* Create_iMAC3Key(); - IKey* CreateCMACKey(); - - IKey* CreateRSAKey(); - - IKey* CreateDSAKey(); - IKey* CreateECDSAKey(); - IKey* CreateECGDSAKey(); - - IKey* CreateDHKey(); - IKey* CreateECDHKey(); - - IKey* CreateIESKey(); - -} // namespace act - -#endif // ACT_KeyKit_h diff --git a/actlibrary/mingw32-i586/Release/include/actKeyReg.h b/actlibrary/mingw32-i586/Release/include/actKeyReg.h deleted file mode 100644 index 14caa8c..0000000 --- a/actlibrary/mingw32-i586/Release/include/actKeyReg.h +++ /dev/null @@ -1,40 +0,0 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actKeyReg.h -// Product: cv act library -// Purpose: registry for factory functions in actKeyKit.h -// -// Copyright: (c) 2000 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_KeyReg_h -#define ACT_KeyReg_h - -namespace act -{ - class IKey; - - typedef IKey* (*CreateKeyPtr)(); - - struct KeyMapEntry - { - const char* Name; - CreateKeyPtr CreatePtr; - }; - - class KeyReg - { - public: - static IKey* CreateKey(const char* name); - static CreateKeyPtr GetCreatePointer(const char* name); - static const char* GetName(void* createptr); - static const char* GetNextName(const char* name); - static void Insert(const char* name, CreateKeyPtr createptr); - static void Insert(const KeyMapEntry* keymap); - }; - -} // namespace act - -#endif // ACT_KeyReg_h diff --git a/actlibrary/mingw32-i586/Release/include/actLogger.h b/actlibrary/mingw32-i586/Release/include/actLogger.h deleted file mode 100644 index 103b1ed..0000000 --- a/actlibrary/mingw32-i586/Release/include/actLogger.h +++ /dev/null @@ -1,110 +0,0 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actLogger.h -// Product: cv act library -// Purpose: Logger -// -// Copyright: (c) 2000-2001 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_Logger_h -#define ACT_Logger_h - -#include "actDebug.h" -#include "actBlob.h" - -#include "SyncObject.h" - -// for convenience: -#ifdef _MSC_VER -# define ACT_SNPRINTF _snprintf -#else -# include -# define ACT_SNPRINTF snprintf -#endif - -// -// MTE [11/1/2006]: Added addtional accessing macros. -// NOTE: Redefine to use another Logger. -#define ACT_LOGGER(x) act::Logger::x - -// -// MTE [11/1/2006]: Added to replace direct usage of ACT_LOGGER(LogInit)(). -#define ACT_LOGISENABLED() (ACT_DEBUG != 0 || ACT_LOGGER(LogInit)()) - -// -// MTE [11/1/2006]: Changed to use ACT_LOGISENABLED(). -#define ACT_LOGINFO(info) { if(ACT_LOGISENABLED()) ACT_LOGGER(Log)(ACT_LOGGER(LEVEL_INFO), info); } -#define ACT_LOGWARN(warn) { if(ACT_LOGISENABLED()) ACT_LOGGER(Log)(ACT_LOGGER(LEVEL_WARN), warn); } -#define ACT_LOGERROR(error) { if(ACT_LOGISENABLED()) ACT_LOGGER(Log)(ACT_LOGGER(LEVEL_ERROR), error); } -#define ACT_LOGEXCEPTION(e) { if(ACT_LOGISENABLED()) { char buf[1024]; ACT_SNPRINTF(buf, 1024, "Exception:\t '%s' in '%s'", e.what(), e.where()); ACT_LOGERROR(buf) }} - -#define ACT_LOGINFODATA(info, data) { if(ACT_LOGISENABLED()) ACT_LOGGER(Log)(ACT_LOGGER(LEVEL_INFO), info, data); } -#define ACT_LOGWARNDATA(warn, data) { if(ACT_LOGISENABLED()) ACT_LOGGER(Log)(ACT_LOGGER(LEVEL_WARN), warn, data); } -#define ACT_LOGERRORDATA(error, data) { if(ACT_LOGISENABLED()) ACT_LOGGER(Log)(ACT_LOGGER(LEVEL_ERROR), error, data); } -#define ACT_LOGBLOB(blob) { if(ACT_LOGISENABLED()) ACT_LOGGER(Log)(ACT_LOGGER(LEVEL_INFO), #blob, blob); } - -#define ACT_LOGVALUE(name, value, format) { if(ACT_LOGISENABLED()) { char buf[256]; ACT_SNPRINTF(buf, 256, name " :\t " format, value); ACT_LOGINFO(buf) }} - -#define ACT_LOGINT(value) ACT_LOGVALUE(#value, int(value), "%i") -#define ACT_LOGHEX(value) ACT_LOGVALUE(#value, act::ulong(value), "0x%08x") -#define ACT_LOGSTRING(value) ACT_LOGVALUE(#value, value, "%s") - -#define ACT_LOGNAMEDINT(name, value) ACT_LOGVALUE(name, int(value), "%i") -#define ACT_LOGNAMEDHEX(name, value) ACT_LOGVALUE(name, act::ulong(value), "0x%08x") -#define ACT_LOGNAMEDSTRING(name, value) ACT_LOGVALUE(name, value, "%s") - -#ifdef WIN32 -#define ACT_LOGPTR(value) ACT_LOGINT(value) -#else -#define ACT_LOGPTR(value) ACT_LOGVALUE(#value, value, "%lp") -#endif - -// TODO: MTE: What about this "nice" construct ? -#define ACT_LOGPOINTER(p) { if(ACT_LOGISENABLED()) { if(p != 0) ACT_LOGINT(*p) else ACT_LOGHEX(p) }} -#define ACT_LOGISNULL(p) { if(ACT_LOGISENABLED()) { char buf[256]; if(p != 0) ACT_SNPRINTF(buf, 256, #p " :\t *"); else ACT_SNPRINTF(buf, 256, #p " :\t 0"); ACT_LOGINFO(buf) }} - - -namespace act -{ - class Logger - { - public: - enum Levels - { - LEVEL_OFF = 0, - LEVEL_ERROR = 30, - LEVEL_WARNING = 50, - LEVEL_WARN = LEVEL_WARNING, - LEVEL_INFO = 80, - LEVEL_MAX = 99 - }; - - static void SetLogger(Logger* pLogger); - static void FreeLogger(); - static void Log(short level, const char* msg); - static void Log(short level, const Blob& blobmsg); - static void Log(short level, const char* msg, const Blob& blobmsg); - static void SetLoglevel(short level); - static bool LogInit() - { - return(s_pLogger != 0 ? true : false); - } - - protected: - Logger(){} - virtual ~Logger(){} - virtual void doLog(short level, const char* msg) = 0; - virtual void doSetLoglevel(short level) = 0; - - private: - static Logger* s_pLogger; - static SyncObject m_sync; - }; - -} // namespace act - -#endif // ACT_Logger_h - diff --git a/actlibrary/mingw32-i586/Release/include/actMode.h b/actlibrary/mingw32-i586/Release/include/actMode.h deleted file mode 100644 index 3c4bdb9..0000000 --- a/actlibrary/mingw32-i586/Release/include/actMode.h +++ /dev/null @@ -1,269 +0,0 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actMode.h -// Product: cv act library -// Purpose: enumerations -// -// Copyright: (c) 2006 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_Mode_h -#define ACT_Mode_h - -namespace act -{ - enum - { - MODE_RANGE_BEGIN = 100, - - ENCRYPT = 100, - DECRYPT, - SIGN, - VERIFY, - MAC, - - PRIVATE =200, - PUBLIC, - SECRET, - DOMAINPARAMS, - PKCS8_TYPE, - - CIPHER = 300, - PADDING, - DERIVATOR, - BCMODE, - KEYSIZE, - RAWKEY, - IV, - BLOCKSIZE, - CHAINING_VALUE, - CHAINING_BITCOUNT, - EFFECTIVE_KEYSIZE, - SHAREDDATA_1, - SHAREDDATA_2, - KEYDATALEN, - ITERATIONCOUNT, - COUNTER, - OUTDATALEN, - - ENCODER=400, - PRIVATEKEY, - PUBLICKEY, - PUBLICSIZE, - KEY, - SIGNATURE, - AGREEMENT, - - MODULO=500, - PRIME_P, - PRIME_Q, - MODULOSIZE, - PRIME_P_SIZE, - PRIME_Q_SIZE, - CRT_EXPONENT_1, - CRT_EXPONENT_2, - CRT_COEFFICIENT, - PKCS1_PRIVATEKEY, - PKCS1_PUBLICKEY, - - CURVE=600, - PUBLIC_X, - PUBLIC_Y, - STATICPUBLIC_X, - STATICPUBLIC_Y, - EPHEMERALPUBLIC_X, - EPHEMERALPUBLIC_Y, - CURVEPARAM, - PUBLICKEY_EXPORT_TYPE, - BASEPOINT_EXPORT_TYPE, - COMPRESSED, - UNCOMPRESSED, - HYBRID, - IMPLICITLYCA, - GF2CURVE, - PRIMECURVE, - ENCODE_SIGNATURE, - PLAIN_SECRET, - - RING = 700, - RINGORDER, - RINGGENERATOR, - COFACTOR, - COMPATIBLE, - NEWEPHEMERAL, - CHECKDOMAINPARAMS, - - STATICPRIVATEKEY, - STATICPUBLICKEY, - EPHEMERALPRIVATEKEY, - EPHEMERALPUBLICKEY, - - PIN = 800, - CARDTYPE, - CARDPORTTYPE, - PORTNR, - DLLNAME, - READERNAME, - CHANGEMASTERPIN, - CHANGEPIN, - USERPIN, - MASTERPIN, - PINPAD, - USERNAME, - INFOTEXT, - SIGNKEY, - ENCKEY, - SIGNCERTIFICATE, - ENCCERTIFICATE, - ROOTCERTIFICATE, - LOCK_KEY, - DHKEY, - DHCERTIFICATE, - PERSONALIZED, - READERNAMES, - AID, - PATH, - NULLPIN, - SELECTKEY, - ALLCERTIFICATE, - APPLICATION, - KEYUSAGE, - MECHANISM, - CERTIFICATE, - DATA, - KEYTYPE, - LABEL, - ID, - - CTAPI_PORT = 900, - PCSC_PORT, - - CARDOS_CARD = 1000, - TCOS_CARD, - CVACT_CARD, - PKCS11_CARD, - MICARDOEC_CARD, - STARCOSPK_CARD, - ETRUST_CARD, -// MICARDOPUBLIC_CARD, - CARDOSM4_CARD, - MICARDOP21_CARD, - - HASH=1100, - SALT, - SALT_LENGTH, - EMLEN, - - X = 1200, - SEED, - MULTIPLIER, - - VERSION = 1300, - ISSUER, - SUBJECT, - SERIALNR, - ISSUER_DER, - SUBJECT_DER, - ISSUER_UID, - SUBJECT_UID, - NOTBEFORE_DER, - NOTAFTER_DER, - THISUPDATE_DER, - NEXTUPDATE_DER, - TBS, - - CVPROFILEID = 1400, - CVCAREFERENCE, - CVHOLDERREFERENCE, - CVHATEMPLATE, - CVEACTEMPLATE, - CVEFFECTIVEDATE, - CVEXPIRATIONDATE, - CVPUBLICKEY_TLV, - CVPUBLICKEY_MECHANISM, - - // GF(P)-Curves - SECGp112r1 = 0x1000, - SECGp112r2, - SECGp128r1, - SECGp128r2, - SECGp160r1, - SECGp160r2, - SECGp160k1, - ANSIp192r1, - ANSIp192r2, - ANSIp192r3, - NISTp192r1, - SECGp192r1, - SECGp192k1, - NISTp224r1, - SECGp224r1, - SECGp224k1, - ANSIp239r1, - ANSIp239r2, - ANSIp239r3, - ANSIp256r1, - NISTp256r1, - SECGp256r1, - SECGp256k1, - NISTp384r1, - NISTp521r1, - brainpoolP256r1, - brainpoolP256t1, - - // GF(2^m)-Curves - SECGz113r1 = 0x1200, - SECGz113r2, - SECGz131r1, - SECGz131r2, - ANSIz163r1, - ANSIz163r2, - ANSIz163r3, - NISTz163r1, - NISTz163k1, - SECGz163r1, - SECGz163r2, - SECGz163k1, - ANSIz176w1, - ANSIz191r1, - ANSIz191r2, - ANSIz191r3, - SECGz193r1, - SECGz193r2, - ANSIz208w1, - NISTz233r1, - NISTz233k1, - SECGz233r1, - SECGz233k1, - ANSIz239r1, - ANSIz239r2, - ANSIz239r3, - SECGz239k1, - ANSIz272w1, - NISTz283r1, - NISTz283k1, - SECGz283r1, - SECGz283k1, - ANSIz304w1, - ANSIz359r1, - ANSIz368w1, - NISTz409r1, - NISTz409k1, - SECGz409r1, - SECGz409k1, - ANSIz431r1, - NISTz571r1, - NISTz571k1, - SECGz571r1, - SECGz571k1, - - MODE_RANGE_LAST = 0x1400, // insert new elements here - - TOKEN_CONFIG = 0x2000, // token config start - }; - -} // namespace act - -#endif // ACT_Mode_h diff --git a/actlibrary/mingw32-i586/Release/include/actMove.h b/actlibrary/mingw32-i586/Release/include/actMove.h deleted file mode 100644 index ebf1d6f..0000000 --- a/actlibrary/mingw32-i586/Release/include/actMove.h +++ /dev/null @@ -1,133 +0,0 @@ -////////////////////////////////////////////////////////////////////////// -// Name: actMove.h -// Product: cv act library -// Purpose: template<>'s to implement move semantics -// -// Copyright: (c) 2010 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -// -// Autor: Markus Tesche -// Date: 07/25/2010 -////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_Move_h -#define ACT_Move_h - -namespace act -{ - // - // type_of used to dismantle T resulting in T' - // -------------------------------------------------------------------------------- - template struct type_of { typedef T type; }; - template struct type_of { typedef T type; }; - template struct type_of { typedef T type; }; - template struct type_of { typedef T type; }; - template struct type_of { typedef T type; }; - template struct type_of { typedef T type; }; - - // - // is_const - // -------------------------------------------------------------------------------- - template struct is_const { enum { value = 0 }; }; - template struct is_const { enum { value = 1 }; }; - template struct is_const { enum { value = 0 }; }; - template struct is_const { enum { value = 1 }; }; - template struct is_const { enum { value = 0 }; }; - template struct is_const { enum { value = 1 }; }; - - // - // /brief move_from<...> used to implement move semantics - // -------------------------------------------------------------------------------- - template - class move_from; - - // - // /brief move_from default spcialization, holds reference to type T - // -------------------------------------------------------------------------------- - template - class move_from - { - public: - typedef typename type_of::type type_t; - - explicit move_from(type_t& ref) - : m_ref(ref) - { } - - template - move_from(const move_from& other) - : m_ref(other.source()) - { } - - inline type_t& source() const { return m_ref; } - template O& source() const { return m_ref; } - - template void swap(O& other) { m_ref.swap(other); } - template O& move(O& other) { m_ref.swap(other); return other; } - - private: - type_t& m_ref; - - private: - template - friend class move_from; - }; - - // - // /brief move_from spcialization takes ownership of 'swapped-in' source data - // -------------------------------------------------------------------------------- - template - class move_from : public move_from - { - public: - typedef typename type_of::type type_t; - - explicit move_from(type_t& ref) - : move_from(m_value) - { - ref.swap(m_value); - } - - template - move_from(move_from other) - : move_from(m_value) - { - other.swap(m_value); - } - - private: - typename move_from::type_t m_value; - }; - - // - // /brief move_empty used as default move_from<...> function parameter - // -------------------------------------------------------------------------------- - template - class move_empty : public move_from - { - public: - move_empty() - : move_from(m_empty) - { } - - move_empty(const move_empty&) - : move_from(m_empty) - { } - - inline move_empty& operator=(const move_empty&) { return *this; } - - private: - T m_empty; - }; - - // - // /brief move<> helper function - // -------------------------------------------------------------------------------- - template - move_from move(T& ref) { return move_from(ref); } - -} // namespace act - -#endif // ACT_Move_h diff --git a/actlibrary/mingw32-i586/Release/include/actOID.h b/actlibrary/mingw32-i586/Release/include/actOID.h deleted file mode 100644 index 527f660..0000000 --- a/actlibrary/mingw32-i586/Release/include/actOID.h +++ /dev/null @@ -1,2103 +0,0 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actOID.h -// Product: cv act library -// Purpose: -// -// -// Copyright: (c) 2000 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_OID_H -#define ACT_OID_H - -#define CV_OID_DEF(x) (act::Blob((x),(x)+sizeof((x)))) - -#ifdef _MSC_VER -#pragma warning(disable : 4305) //Verkuerzung von 'static const int' in 'static const unsigned char' -#pragma warning(disable : 4309) //Verkuerzung eines konstanten Wertes -#endif - -//1.2.840.10045.4.1 ECDSA cvECDSA -static const unsigned char cvOID_cvECDSA[] = {0x2a, 0x86, 0x48, 0xce, 0x3d, 0x04, 0x01}; -//1.2.840.113549.1.9.1 Alternate Name cvAlternateName -static const unsigned char cvOID_cvAlternateName[] = {0x2a, 0x86, 0x48, 0x86, 0xf7, 0x0d, 0x01, 0x09, 0x01}; - -//0.2.262.1.10 Deutsche Telekom Telesec -static const unsigned char cvOID_Telesec [] = { 0x02, 0x82, 0x06, 0x01, 0x0A}; -//0.2.262.1.10.0 Telesec extension -static const unsigned char cvOID_extension [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x00}; -//0.2.262.1.10.1 Telesec mechanism -static const unsigned char cvOID_mechanism [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x01}; -//0.2.262.1.10.1.0 Telesec mechanism authentication -static const unsigned char cvOID_authentication [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x01, 0x00}; -//0.2.262.1.10.1.0.1 Telesec authentication passwordAuthentication -static const unsigned char cvOID_passwordAuthentication [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x01, 0x00, 0x01}; -//0.2.262.1.10.1.0.2 Telesec authentication protectedPasswordAuthentication -static const unsigned char cvOID_protectedPasswordAuthentication [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x01, 0x00, 0x02}; -//0.2.262.1.10.1.0.3 Telesec authentication oneWayX509Authentication -static const unsigned char cvOID_oneWayX509Authentication [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x01, 0x00, 0x03}; -//0.2.262.1.10.1.0.4 Telesec authentication twoWayX509Authentication -static const unsigned char cvOID_twoWayX509Authentication [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x01, 0x00, 0x04}; -//0.2.262.1.10.1.0.5 Telesec authentication threeWayX509Authentication -static const unsigned char cvOID_threeWayX509Authentication [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x01, 0x00, 0x05}; -//0.2.262.1.10.1.0.6 Telesec authentication oneWayISO9798Authentication -static const unsigned char cvOID_oneWayISO9798Authentication [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x01, 0x00, 0x06}; -//0.2.262.1.10.1.0.7 Telesec authentication twoWayISO9798Authentication -static const unsigned char cvOID_twoWayISO9798Authentication [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x01, 0x00, 0x07}; -//0.2.262.1.10.1.0.8 Telesec authentication telekomAuthentication -static const unsigned char cvOID_telekomAuthentication [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x01, 0x00, 0x08}; -//0.2.262.1.10.1.1 Telesec mechanism signature -static const unsigned char cvOID_signature [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x01, 0x01}; -//0.2.262.1.10.1.1.1 Telesec mechanism md4WithRSAAndISO9697 -static const unsigned char cvOID_md4WithRSAAndISO9697 [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x01, 0x01, 0x01}; -//0.2.262.1.10.1.1.2 Telesec mechanism md4WithRSAAndTelesecSignatureStandard -static const unsigned char cvOID_md4WithRSAAndTelesecSignatureStandard [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x01, 0x01, 0x02}; -//0.2.262.1.10.1.1.3 Telesec mechanism md5WithRSAAndISO9697 -static const unsigned char cvOID_md5WithRSAAndISO9697 [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x01, 0x01, 0x03}; -//0.2.262.1.10.1.1.4 Telesec mechanism md5WithRSAAndTelesecSignatureStandard -static const unsigned char cvOID_md5WithRSAAndTelesecSignatureStandard [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x01, 0x01, 0x04}; -//0.2.262.1.10.1.1.5 Telesec mechanism ripemd160WithRSAAndTelekomSignatureStandard -static const unsigned char cvOID_ripemd160WithRSAAndTelekomSignatureStandard [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x01, 0x01, 0x05}; -//0.2.262.1.10.1.1.9 Telesec signature hbciRsaSignature -static const unsigned char cvOID_hbciRsaSignature [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x01, 0x01, 0x09}; -//0.2.262.1.10.1.2 Telesec mechanism encryption -static const unsigned char cvOID_encryption [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x01, 0x02}; -//0.2.262.1.10.1.2.0 Telesec encryption none -static const unsigned char cvOID_none [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x01, 0x02, 0x00}; -//0.2.262.1.10.1.2.1 Telesec encryption rsaTelesec -static const unsigned char cvOID_rsaTelesec [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x01, 0x02, 0x01}; -//0.2.262.1.10.1.2.2 Telesec encryption des -static const unsigned char cvOID_des [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x01, 0x02, 0x02}; -//0.2.262.1.10.1.2.2.1 Telesec encryption desECB -static const unsigned char cvOID_desECB [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x01, 0x02, 0x02, 0x01}; -//0.2.262.1.10.1.2.2.2 Telesec encryption desCBC -static const unsigned char cvOID_desCBC [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x01, 0x02, 0x02, 0x02}; -//0.2.262.1.10.1.2.2.3 Telesec encryption desOFB -static const unsigned char cvOID_desOFB [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x01, 0x02, 0x02, 0x03}; -//0.2.262.1.10.1.2.2.4 Telesec encryption desCFB8 -static const unsigned char cvOID_desCFB8 [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x01, 0x02, 0x02, 0x04}; -//0.2.262.1.10.1.2.2.5 Telesec encryption desCFB64 -static const unsigned char cvOID_desCFB64 [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x01, 0x02, 0x02, 0x05}; -//0.2.262.1.10.1.2.3 Telesec encryption des3 -static const unsigned char cvOID_des3 [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x01, 0x02, 0x03}; -//0.2.262.1.10.1.2.3.1 Telesec encryption des3ECB -static const unsigned char cvOID_des3ECB [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x01, 0x02, 0x03, 0x01}; -//0.2.262.1.10.1.2.3.2 Telesec encryption des3CBC -static const unsigned char cvOID_des3CBC [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x01, 0x02, 0x03, 0x02}; -//0.2.262.1.10.1.2.3.3 Telesec encryption des3OFB -static const unsigned char cvOID_des3OFB [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x01, 0x02, 0x03, 0x03}; -//0.2.262.1.10.1.2.3.4 Telesec encryption des3CFB8 -static const unsigned char cvOID_des3CFB8 [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x01, 0x02, 0x03, 0x04}; -//0.2.262.1.10.1.2.3.5 Telesec encryption des3CFB64 -static const unsigned char cvOID_des3CFB64 [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x01, 0x02, 0x03, 0x05}; -//0.2.262.1.10.1.2.4 Telesec encryption magenta -static const unsigned char cvOID_magenta [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x01, 0x02, 0x04}; -//0.2.262.1.10.1.2.5 Telesec encryption idea -static const unsigned char cvOID_idea [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x01, 0x02, 0x05}; -//0.2.262.1.10.1.2.5.1 Telesec encryption ideaECB -static const unsigned char cvOID_ideaECB_Telesec [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x01, 0x02, 0x05, 0x01}; -//0.2.262.1.10.1.2.5.2 Telesec encryption ideaCBC -static const unsigned char cvOID_ideaCBC_Telesec [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x01, 0x02, 0x05, 0x02}; -//0.2.262.1.10.1.2.5.3 Telesec encryption ideaOFB -static const unsigned char cvOID_ideaOFB_Telesec [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x01, 0x02, 0x05, 0x03}; -//0.2.262.1.10.1.2.5.4 Telesec encryption ideaCFB8 -static const unsigned char cvOID_ideaCFB8_Telesec [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x01, 0x02, 0x05, 0x04}; -//0.2.262.1.10.1.2.5.5 Telesec encryption ideaCFB64 -static const unsigned char cvOID_ideaCFB64_Telesec [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x01, 0x02, 0x05, 0x05}; -//0.2.262.1.10.1.3 Telesec mechanism oneWayFunction -static const unsigned char cvOID_oneWayFunction [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x01, 0x03}; -//0.2.262.1.10.1.3.1 Telesec one-way function md4 -static const unsigned char cvOID_md4_Telesec [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x01, 0x03, 0x01}; -//0.2.262.1.10.1.3.2 Telesec one-way function md5 -static const unsigned char cvOID_md5_Telesec [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x01, 0x03, 0x02}; -//0.2.262.1.10.1.3.3 Telesec one-way function sqModNX509 -static const unsigned char cvOID_sqModNX509 [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x01, 0x03, 0x03}; -//0.2.262.1.10.1.3.4 Telesec one-way function sqModNISO -static const unsigned char cvOID_sqModNISO [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x01, 0x03, 0x04}; -//0.2.262.1.10.1.3.5 Telesec one-way function ripemd128 -static const unsigned char cvOID_ripemd128 [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x01, 0x03, 0x05}; -//0.2.262.1.10.1.3.6 Telesec one-way function hashUsingBlockCipher -static const unsigned char cvOID_hashUsingBlockCipher [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x01, 0x03, 0x06}; -//0.2.262.1.10.1.3.7 Telesec one-way function mac -static const unsigned char cvOID_mac [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x01, 0x03, 0x07}; -//0.2.262.1.10.1.3.8 Telesec one-way function ripemd160 -static const unsigned char cvOID_ripemd160 [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x01, 0x03, 0x08}; -//0.2.262.1.10.1.4 Telesec mechanism fecFunction -static const unsigned char cvOID_fecFunction [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x01, 0x04}; -//0.2.262.1.10.1.4.1 Telesec mechanism reedSolomon -static const unsigned char cvOID_reedSolomon [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x01, 0x04, 0x01}; -//0.2.262.1.10.2 Telesec module -static const unsigned char cvOID_module_Telesec [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x02}; -//0.2.262.1.10.2.0 Telesec module algorithms -static const unsigned char cvOID_algorithms [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x02, 0x00}; -//0.2.262.1.10.2.1 Telesec module attributeTypes -static const unsigned char cvOID_attributeTypes [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x02, 0x01}; -//0.2.262.1.10.2.2 Telesec module certificateTypes -static const unsigned char cvOID_certificateTypes [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x02, 0x02}; -//0.2.262.1.10.2.3).. Telesec module messageTypes -static const unsigned char cvOID_messageTypes [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x02, 0x03}; -//0.2.262.1.10.2.4 Telesec module plProtocol -static const unsigned char cvOID_plProtocol [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x02, 0x04}; -//0.2.262.1.10.2.5 Telesec module smeAndComponentsOfSme -static const unsigned char cvOID_smeAndComponentsOfSme [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x02, 0x05}; -//0.2.262.1.10.2.6 Telesec module fec -static const unsigned char cvOID_fec [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x02, 0x06}; -//0.2.262.1.10.2.7 Telesec module usefulDefinitions -static const unsigned char cvOID_usefulDefinitions [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x02, 0x07}; -//0.2.262.1.10.2.8 Telesec module stefiles -static const unsigned char cvOID_stefiles [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x02, 0x08}; -//0.2.262.1.10.2.9 Telesec module sadmib -static const unsigned char cvOID_sadmib [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x02, 0x09}; -//0.2.262.1.10.2.10 Telesec module electronicOrder -static const unsigned char cvOID_electronicOrder [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x02, 0x0A}; -//0.2.262.1.10.2.11 Telesec module telesecTtpAsymmetricApplication -static const unsigned char cvOID_telesecTtpAsymmetricApplication [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x02, 0x0B}; -//0.2.262.1.10.2.12)..... Telesec module telesecTtpBasisApplication -static const unsigned char cvOID_telesecTtpBasisApplication [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x02, 0x0C}; -//0.2.262.1.10.2.13)....... Telesec module telesecTtpMessages -static const unsigned char cvOID_telesecTtpMessages [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x02, 0x0D}; -//0.2.262.1.10.2.14)....... Telesec module telesecTtpTimeStampApplication -static const unsigned char cvOID_telesecTtpTimeStampApplication [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x02, 0x0E}; -//0.2.262.1.10.3 Telesec objectClass -static const unsigned char cvOID_objectClass_Telesec [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x03}; -//0.2.262.1.10.3.0 Telesec object class telesecOtherName -static const unsigned char cvOID_telesecOtherName_Telesec [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x03, 0x00}; -//0.2.262.1.10.3.1 Telesec object class directory -static const unsigned char cvOID_directory_Telesec [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x03, 0x01}; -//0.2.262.1.10.3.2 Telesec object class directoryType -static const unsigned char cvOID_directoryType_Telesec [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x03, 0x02}; -//0.2.262.1.10.3.3 Telesec object class directroyGroup -static const unsigned char cvOID_directroyGroup_Telesec [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x03, 0x03}; -//0.2.262.1.10.3.4 Telesec object class directoryUser -static const unsigned char cvOID_directoryUser_Telesec [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x03, 0x04}; -//0.2.262.1.10.3.5 Telesec object class symmetricKeyEntry -static const unsigned char cvOID_symmetricKeyEntry [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x03, 0x05}; -//0.2.262.1.10.4 Telesec package -static const unsigned char cvOID_package [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x04}; -//0.2.262.1.10.5 Telesec parameter -static const unsigned char cvOID_parameter [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x05}; -//0.2.262.1.10.6 Telesec nameBinding -static const unsigned char cvOID_nameBinding [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x06}; -//0.2.262.1.10.7 Telesec attribute -static const unsigned char cvOID_attribute_Telesec [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x07}; -//0.2.262.1.10.7.0 Telesec attribute applicationGroupIdentifier -static const unsigned char cvOID_applicationGroupIdentifier [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x07, 0x00}; -//0.2.262.1.10.7.1 Telesec attribute certificateType -static const unsigned char cvOID_certificateType [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x07, 0x01}; -//0.2.262.1.10.7.2 Telesec attribute telesecCertificate -static const unsigned char cvOID_Certificate_Telesec [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x07, 0x02}; -//0.2.262.1.10.7.3 Telesec attribute certificateNumber -static const unsigned char cvOID_certificateNumber [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x07, 0x03}; -//0.2.262.1.10.7.4 Telesec attribute certificateRevocationList -static const unsigned char cvOID_certificateRevocationList_Telesec [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x07, 0x04}; -//0.2.262.1.10.7.5 Telesec attribute creationDate -static const unsigned char cvOID_creationDate [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x07, 0x05}; -//0.2.262.1.10.7.6).... Telesec attribute issuer -static const unsigned char cvOID_issuer [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x07, 0x06}; -//0.2.262.1.10.7.7 Telesec attribute namingAuthority -static const unsigned char cvOID_namingAuthority [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x07, 0x07}; -//0.2.262.1.10.7.8 Telesec attribute publicKeyDirectory -static const unsigned char cvOID_publicKeyDirectory [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x07, 0x08}; -//0.2.262.1.10.7.9).. Telesec attribute securityDomain -static const unsigned char cvOID_securityDomain [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x07, 0x09}; -//0.2.262.1.10.7.10)..... Telesec attribute subject -static const unsigned char cvOID_subject [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x07, 0x0A}; -//0.2.262.1.10.7.11 Telesec attribute timeOfRevocation -static const unsigned char cvOID_timeOfRevocation [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x07, 0x0B}; -//0.2.262.1.10.7.12 Telesec attribute userGroupReference -static const unsigned char cvOID_userGroupReference [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x07, 0x0C}; -//0.2.262.1.10.7.13 Telesec attribute validity -static const unsigned char cvOID_validity [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x07, 0x0D}; -//0.2.262.1.10.7.14 Telesec attribute zert93 -static const unsigned char cvOID_zert93 [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x07, 0x0E}; -//0.2.262.1.10.7.15 Telesec attribute securityMessEnv -static const unsigned char cvOID_securityMessEnv [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x07, 0x0F}; -//0.2.262.1.10.7.16 Telesec attribute anonymizedPublicKeyDirectory -static const unsigned char cvOID_anonymizedPublicKeyDirectory [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x07, 0x10}; -//0.2.262.1.10.7.17 Telesec attribute telesecGivenName -static const unsigned char cvOID_telesecGivenName [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x07, 0x11}; -//0.2.262.1.10.7.18). Telesec attribute nameAdditions -static const unsigned char cvOID_nameAdditions [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x07, 0x12}; -//0.2.262.1.10.7.19 Telesec attribute telesecPostalCode -static const unsigned char cvOID_telesecPostalCode [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x07, 0x13}; -//0.2.262.1.10.7.20 Telesec attribute nameDistinguisher -static const unsigned char cvOID_nameDistinguisher [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x07, 0x14}; -//0.2.262.1.10.7.21 Telesec attribute telesecCertificateList -static const unsigned char cvOID_telesecCertificateList [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x07, 0x15}; -//0.2.262.1.10.7.22 Telesec attribute teletrustCertificateList -static const unsigned char cvOID_teletrustCertificateList [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x07, 0x16}; -//0.2.262.1.10.7.23)... Telesec attribute x509CertificateList -static const unsigned char cvOID_x509CertificateList [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x07, 0x17}; -//0.2.262.1.10.7.24 Telesec attribute timeOfIssue -static const unsigned char cvOID_timeOfIssue [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x07, 0x18}; -//0.2.262.1.10.7.25 Telesec attribute physicalCardNumber -static const unsigned char cvOID_physicalCardNumber [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x07, 0x19}; -//0.2.262.1.10.7.26)........ Telesec attribute fileType -static const unsigned char cvOID_fileType [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x07, 0x1A}; -//0.2.262.1.10.7.27 Telesec attribute ctlFileIsArchive -static const unsigned char cvOID_ctlFileIsArchive [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x07, 0x1B}; -//0.2.262.1.10.7.28)........ Telesec attribute emailAddress -static const unsigned char cvOID_emailAddress [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x07, 0x1C}; -//0.2.262.1.10.7.29)........ Telesec attribute certificateTemplateList -static const unsigned char cvOID_certificateTemplateList [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x07, 0x1D}; -//0.2.262.1.10.7.30)........ Telesec attribute directoryName -static const unsigned char cvOID_directoryName [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x07, 0x1E}; -//0.2.262.1.10.7.31)........ Telesec attribute directoryTypeName -static const unsigned char cvOID_directoryTypeName [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x07, 0x1F}; -//0.2.262.1.10.7.32 Telesec attribute directoryGroupName -static const unsigned char cvOID_directoryGroupName [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x07, 0x20}; -//0.2.262.1.10.7.33 Telesec attribute directoryUserName -static const unsigned char cvOID_directoryUserName [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x07, 0x21}; -//0.2.262.1.10.7.34 Telesec attribute revocationFlag -static const unsigned char cvOID_revocationFlag [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x07, 0x22}; -//0.2.262.1.10.7.35 Telesec attribute symmetricKeyEntryName -static const unsigned char cvOID_symmetricKeyEntryName [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x07, 0x23}; -//0.2.262.1.10.7.36 Telesec attribute glNumber -static const unsigned char cvOID_glNumber [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x07, 0x24}; -//0.2.262.1.10.7.37 Telesec attribute goNumber -static const unsigned char cvOID_goNumber [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x07, 0x25}; -//0.2.262.1.10.7.38 Telesec attribute gKeyData -static const unsigned char cvOID_gKeyData [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x07, 0x26}; -//0.2.262.1.10.7.39 Telesec attribute zKeyData -static const unsigned char cvOID_zKeyData [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x07, 0x27}; -//0.2.262.1.10.7.40 Telesec attribute ktKeyData -static const unsigned char cvOID_ktKeyData [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x07, 0x28}; -//0.2.262.1.10.7.41 Telesec attribute ktKeyNumber -static const unsigned char cvOID_ktKeyNumber [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x07, 0x2A}; -//0.2.262.1.10.7.51 Telesec attribute timeOfRevocationGen -static const unsigned char cvOID_timeOfRevocationGen [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x07, 0x33}; -//0.2.262.1.10.7.52).... Telesec attribute liabilityText -static const unsigned char cvOID_liabilityText [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x07, 0x34}; -//0.2.262.1.10.8 Telesec attributeGroup -static const unsigned char cvOID_attributeGroup [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x08}; -//0.2.262.1.10.9 Telesec action -static const unsigned char cvOID_action [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x09}; -//0.2.262.1.10.10 Telesec notification -static const unsigned char cvOID_notification [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x0A}; -//0.2.262.1.10.11 Telesec snmp-mibs -static const unsigned char cvOID_snmp_mibs [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x0B}; -//0.2.262.1.10.11.1 Telesec SNMP MIBs securityApplication -static const unsigned char cvOID_securityApplication [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x0B, 0x01}; -//0.2.262.1.10.12 Telesec certAndCrlExtensionDefinitions -static const unsigned char cvOID_certAndCrlExtensionDefinitions [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x0C}; -//0.2.262.1.10.12.0 Telesec cert/CRL extension certExtensionLiabilityLimitationExt -static const unsigned char cvOID_certExtensionLiabilityLimitationExt [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x0C, 0x00}; -//0.2.262.1.10.12.1 Telesec cert/CRL extension telesecCertIdExt -static const unsigned char cvOID_telesecCertIdExt [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x0C, 0x01}; -//0.2.262.1.10.12.2 Telesec cert/CRL extension telesecPolicyIdentifier -static const unsigned char cvOID_telesecPolicyIdentifier [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x0C, 0x02}; -//0.2.262.1.10.12.3 Telesec cert/CRL extension telesecPolicyQualifierID -static const unsigned char cvOID_telesecPolicyQualifierID [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x0C, 0x03}; -//0.2.262.1.10.12.4 Telesec cert/CRL extension telesecCRLFilteredExt -static const unsigned char cvOID_telesecCRLFilteredExt [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x0C, 0x04}; -//0.2.262.1.10.12.5 Telesec cert/CRL extension telesecCRLFilterExt -static const unsigned char cvOID_telesecCRLFilterExt [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x0C, 0x05}; -//0.2.262.1.10.12.6 Telesec cert/CRL extension telesecNamingAuthorityExt -static const unsigned char cvOID_telesecNamingAuthorityExt [] = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x0C, 0x06}; -//0.9.2342.19200300.1.3 Some oddball X.500 attribute collection rfc822Mailbox -static const unsigned char cvOID_rfc822Mailbox [] = { 0x09, 0x92, 0x26, 0x89, 0x93, 0xF2, 0x2C, 0x01, 0x03}; -//0.9.2342.19200300.100.1.25 Men are from Mars, this OID is from Pluto domainComponent -static const unsigned char cvOID_domainComponent [] = { 0x09, 0x92, 0x26, 0x89, 0x93, 0xF2, 0x2C, 0x64, 0x01, 0x019}; -//1.2.36.75878867.1.100.1.1 Certificates Australia CA Certificates Australia policyIdentifier -static const unsigned char cvOID_Certificates_Australia_policyIdentifier [] = { 0x2A, 0x24, 0xA4, 0x97, 0xA3, 0x53, 0x01, 0x64, 0x01, 0x01}; -//1.2.36.68980861.1.1.2 Signet CA Signet personal -static const unsigned char cvOID_Signet_personal [] = { 0x2A, 0x24, 0xA0, 0xF2, 0xA0, 0x7D, 0x01, 0x01, 0x02}; -//1.2.36.68980861.1.1.3 Signet CA Signet business -static const unsigned char cvOID_Signet_business [] = { 0x2A, 0x24, 0xA0, 0xF2, 0xA0, 0x7D, 0x01, 0x01, 0x03}; -//1.2.36.68980861.1.1.4 Signet CA Signet legal -static const unsigned char cvOID_Signet_legal [] = { 0x2A, 0x24, 0xA0, 0xF2, 0xA0, 0x7D, 0x01, 0x01, 0x04}; -//1.2.36.68980861.1.1.10 Signet CA Signet pilot -static const unsigned char cvOID_Signet_pilot [] = { 0x2A, 0x24, 0xA0, 0xF2, 0xA0, 0x7D, 0x01, 0x01, 0x0A}; -//1.2.36.68980861.1.1.11 Signet CA Signet intraNet -static const unsigned char cvOID_Signet_intraNet [] = { 0x2A, 0x24, 0xA0, 0xF2, 0xA0, 0x7D, 0x01, 0x01, 0x0B}; -//1.2.36.68980861.1.1.20 Signet CA Signet securityPolicy -static const unsigned char cvOID_Signet_securityPolicy [] = { 0x2A, 0x24, 0xA0, 0xF2, 0xA0, 0x7D, 0x01, 0x01, 0x14}; -//1.2.392.200011.61.1.1.1 Mitsubishi security algorithm symmetric-encryption-algorithm -static const unsigned char cvOID_symmetric_encryption_algorithm [] = { 0x2A, 0x83, 0x08, 0x8C, 0x1A, 0x4B, 0x3D, 0x01, 0x01, 0x01}; -//1.2.392.200011.61.1.1.1.1 Mitsubishi security algorithm misty1-cbc -static const unsigned char cvOID_misty1_cbc [] = { 0x2A, 0x83, 0x08, 0x8C, 0x9A, 0x4B, 0x3D, 0x01, 0x01, 0x01, 0x01}; -//1.2.752.34.1 SEIS Project seis-cp -static const unsigned char cvOID_seis_cp [] = { 0x2A, 0x85, 0x70, 0x22, 0x01}; -//1.2.752.34.1.1 SEIS Project certificate policies SEIS high-assurnace certificatePolicy -static const unsigned char cvOID_SEIS_high_assurnace_certificatePolicy [] = { 0x2A, 0x85, 0x70, 0x22, 0x01, 0x01}; -//1.2.752.34.1.2 SEIS Project certificate policies SEIS GAK certificatePolicy -static const unsigned char cvOID_SEIS_GAK_certificatePolicy [] = { 0x2A, 0x85, 0x70, 0x22, 0x01, 0x02}; -//1.2.752.34.2 SEIS Project SEIS pe -static const unsigned char cvOID_SEIS_pe [] = { 0x2A, 0x85, 0x70, 0x22, 0x02}; -//1.2.752.34.3 SEIS Project SEIS at -static const unsigned char cvOID_SEIS_at [] = { 0x2A, 0x85, 0x70, 0x22, 0x03}; -//1.2.752.34.3.1 SEIS Project attribute SEIS at-personalIdentifier -static const unsigned char cvOID_SEIS_at_personalIdentifier [] = { 0x2A, 0x85, 0x70, 0x22, 0x03, 0x01}; -//1.2.840.10040.1 ANSI X9.57 module -static const unsigned char cvOID_module [] = { 0x2A, 0x86, 0x48, 0xCE, 0x38, 0x01}; -//1.2.840.10040.1.1 ANSI X9.57 module x9f1-cert-mgmt -static const unsigned char cvOID_x9f1_cert_mgmt [] = { 0x2A, 0x86, 0x48, 0xCE, 0x38, 0x01, 0x01}; -//1.2.840.10040.2 ANSI X9.57 holdinstruction -static const unsigned char cvOID_holdinstruction [] = { 0x2A, 0x86, 0x48, 0xCE, 0x38, 0x02}; -//1.2.840.10040.2.1 ANSI X9.57 hold instruction holdinstruction-none -static const unsigned char cvOID_holdinstruction_none [] = { 0x2A, 0x86, 0x48, 0xCE, 0x38, 0x02, 0x01}; -//1.2.840.10040.2.2 ANSI X9.57 hold instruction callissuer -static const unsigned char cvOID_callissuer [] = { 0x2A, 0x86, 0x48, 0xCE, 0x38, 0x02, 0x02}; -//1.2.840.10040.2.3 ANSI X9.57 hold instruction reject -static const unsigned char cvOID_reject [] = { 0x2A, 0x86, 0x48, 0xCE, 0x38, 0x02, 0x03}; -//1.2.840.10040.2.4 ANSI X9.57 hold instruction pickupToken -static const unsigned char cvOID_pickupToken [] = { 0x2A, 0x86, 0x48, 0xCE, 0x38, 0x02, 0x04}; -//1.2.840.10040.3 ANSI X9.57 attribute -static const unsigned char cvOID_attribute [] = { 0x2A, 0x86, 0x48, 0xCE, 0x38, 0x03}; -//1.2.840.10040.3.1 ANSI X9.57 attribute countersignature -static const unsigned char cvOID_countersignature [] = { 0x2A, 0x86, 0x48, 0xCE, 0x38, 0x03, 0x01}; -//1.2.840.10040.3.2 ANSI X9.57 attribute attribute-cert -static const unsigned char cvOID_attribute_cert [] = { 0x2A, 0x86, 0x48, 0xCE, 0x38, 0x03, 0x02}; -//1.2.840.10040.4 ANSI X9.57 algorithm -static const unsigned char cvOID_algorithm [] = { 0x2A, 0x86, 0x48, 0xCE, 0x38, 0x04}; -//1.2.840.10040.4.1 ANSI X9.57 algorithm dsa -static const unsigned char cvOID_dsa [] = { 0x2A, 0x86, 0x48, 0xCE, 0x38, 0x04, 0x01}; -//1.2.840.10040.4.2 ANSI X9.57 algorithm dsa-match -static const unsigned char cvOID_dsa_match [] = { 0x2A, 0x86, 0x48, 0xCE, 0x38, 0x04, 0x02}; -//1.2.840.10040.4.3 ANSI X9.57 algorithm dsaWithSha1 -static const unsigned char cvOID_dsaWithSha1 [] = { 0x2A, 0x86, 0x48, 0xCE, 0x38, 0x04, 0x03}; -//1.2.840.10045.1 ANSI X9.62. This OID is also assigned as ecdsa-with-SHA1 fieldType -static const unsigned char cvOID_fieldType [] = { 0x2A, 0x86, 0x48, 0xCE, 0x3D, 0x01}; -//1.2.840.10045.1.1 ANSI X9.62 field type prime-field -static const unsigned char cvOID_prime_field [] = { 0x2A, 0x86, 0x48, 0xCE, 0x3D, 0x01, 0x01}; -//1.2.840.10045.1.2 ANSI X9.62 field type characteristic-two-field -static const unsigned char cvOID_characteristic_two_field [] = { 0x2A, 0x86, 0x48, 0xCE, 0x3D, 0x01, 0x02}; -//1.2.840.10045.1.2.3 ANSI X9.62 field type characteristic-two-basis -static const unsigned char cvOID_characteristic_two_basis [] = { 0x2A, 0x86, 0x48, 0xCE, 0x3D, 0x01, 0x02, 0x03}; -//1.2.840.10045.1.2.3.1 ANSI X9.62 field basis onBasis -static const unsigned char cvOID_onBasis [] = { 0x2A, 0x86, 0x48, 0xCE, 0x3D, 0x01, 0x02, 0x03, 0x01}; -//1.2.840.10045.1.2.3.2 ANSI X9.62 field basis tpBasis -static const unsigned char cvOID_tpBasis [] = { 0x2A, 0x86, 0x48, 0xCE, 0x3D, 0x01, 0x02, 0x03, 0x02}; -//1.2.840.10045.1.2.3.3 ANSI X9.62 field basis ppBasis -static const unsigned char cvOID_ppBasis [] = { 0x2A, 0x86, 0x48, 0xCE, 0x3D, 0x01, 0x02, 0x03, 0x03}; -//1.2.840.10045.2 ANSI X9.62 publicKeyType -static const unsigned char cvOID_publicKeyType [] = { 0x2A, 0x86, 0x48, 0xCE, 0x3D, 0x02}; -//1.2.840.10045.2.1 ANSI X9.62 public key type ecPublicKey -static const unsigned char cvOID_ecPublicKey [] = { 0x2A, 0x86, 0x48, 0xCE, 0x3D, 0x02, 0x01}; -//1.2.840.10046.1 ANSI X9.42 fieldType -static const unsigned char cvOID_fieldType42 [] = { 0x2A, 0x86, 0x48, 0xCE, 0x3E, 0x01}; -//1.2.840.10046.1.1 ANSI X9.42 field type gf-prime -static const unsigned char cvOID_gf_prime [] = { 0x2A, 0x86, 0x48, 0xCE, 0x3E, 0x01, 0x01}; -//1.2.840.10046.2 ANSI X9.42 numberType -static const unsigned char cvOID_numberType [] = { 0x2A, 0x86, 0x48, 0xCE, 0x3E, 0x02}; -//1.2.840.10046.2.1 ANSI X9.42 number type dhPublicKey -static const unsigned char cvOID_dhPublicKey [] = { 0x2A, 0x86, 0x48, 0xCE, 0x3E, 0x02, 0x01}; -//1.2.840.10046.3 ANSI X9.42 scheme -static const unsigned char cvOID_scheme [] = { 0x2A, 0x86, 0x48, 0xCE, 0x3E, 0x03}; -//1.2.840.10046.3.1 ANSI X9.42 scheme dhStatic -static const unsigned char cvOID_dhStatic [] = { 0x2A, 0x86, 0x48, 0xCE, 0x3E, 0x03, 0x01}; -//1.2.840.10046.3.2 ANSI X9.42 scheme dhEphem -static const unsigned char cvOID_dhEphem [] = { 0x2A, 0x86, 0x48, 0xCE, 0x3E, 0x03, 0x02}; -//1.2.840.10046.3.3 ANSI X9.42 scheme dhHybrid1 -static const unsigned char cvOID_dhHybrid1 [] = { 0x2A, 0x86, 0x48, 0xCE, 0x3E, 0x03, 0x03}; -//1.2.840.10046.3.4 ANSI X9.42 scheme dhHybrid2 -static const unsigned char cvOID_dhHybrid2 [] = { 0x2A, 0x86, 0x48, 0xCE, 0x3E, 0x03, 0x04}; -//1.2.840.10046.3.5 ANSI X9.42 scheme mqv2 -static const unsigned char cvOID_mqv2 [] = { 0x2A, 0x86, 0x48, 0xCE, 0x3E, 0x03, 0x05}; -//1.2.840.10046.3.6 ANSI X9.42 scheme mqv1 -static const unsigned char cvOID_mqv1 [] = { 0x2A, 0x86, 0x48, 0xCE, 0x3E, 0x03, 0x06}; -//1.2.840.113533.7.65.0 Nortel Secure Networks ce (1 2 840 113533 7 65) entrustVersInfo -static const unsigned char cvOID_entrustVersInfo [] = { 0x2A, 0x86, 0x48, 0x86, 0xF6, 0x7D, 0x07, 0x41, 0x00}; -//1.2.840.113533.7.66.3 Nortel Secure Networks alg (1 2 840 113533 7 66) cast3CBC -static const unsigned char cvOID_cast3CBC [] = { 0x2A, 0x86, 0x48, 0x86, 0xF6, 0x7D, 0x07, 0x42, 0x03}; -//1.2.840.113533.7.66.10 Nortel Secure Networks alg (1 2 840 113533 7 66) cast5CBC -static const unsigned char cvOID_cast5CBC [] = { 0x2A, 0x86, 0x48, 0x86, 0xF6, 0x7D, 0x07, 0x42, 0x0A}; -//1.2.840.113533.7.66.11 Nortel Secure Networks alg (1 2 840 113533 7 66) cast5MAC -static const unsigned char cvOID_cast5MAC [] = { 0x2A, 0x86, 0x48, 0x86, 0xF6, 0x7D, 0x07, 0x42, 0x0B}; -//1.2.840.113533.7.66.12 Nortel Secure Networks alg (1 2 840 113533 7 66) pbeWithMD5AndCAST5-CBC -static const unsigned char cvOID_pbeWithMD5AndCAST5_CBC [] = { 0x2A, 0x86, 0x48, 0x86, 0xF6, 0x7D, 0x07, 0x42, 0x0C}; -//1.2.840.113533.7.66.13 Nortel Secure Networks alg (1 2 840 113533 7 66) passwordBasedMac -static const unsigned char cvOID_passwordBasedMac [] = { 0x2A, 0x86, 0x48, 0x86, 0xF6, 0x7D, 0x07, 0x42, 0x0D}; -//1.2.840.113 -static const unsigned char cvOID_entrustUser [] = { 0x2A, 0x86, 0x48, 0x86, 0xF6, 0x7D, 0x07, 0x43, 0x0C}; -//1.2.840.113533.7.68.0 Nortel Secure Networks at (1 2 840 113533 7 68) entrustCAInfo -static const unsigned char cvOID_entrustCAInfo [] = { 0x2A, 0x86, 0x48, 0x86, 0xF6, 0x7D, 0x07, 0x44, 0x00}; -//1.2.840.113533.7.68.10 Nortel Secure Networks at (1 2 840 113533 7 68) attributeCertificate -static const unsigned char cvOID_attributeCertificate [] = { 0x2A, 0x86, 0x48, 0x86, 0xF6, 0x7D, 0x07, 0x44, 0x0A}; -//1.2.840.113549.1.1.1 PKCS #1 rsaEncryption -static const unsigned char cvOID_rsaEncryption [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x01, 0x01}; -//1.2.840.113549.1.1.2 PKCS #1 md2withRSAEncryption -static const unsigned char cvOID_md2withRSAEncryption [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x01, 0x02}; -//1.2.840.113549.1.1.3 PKCS #1 md4withRSAEncryption -static const unsigned char cvOID_md4withRSAEncryption [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x01, 0x03}; -//1.2.840.113549.1.1.4 PKCS #1 md5withRSAEncryption -static const unsigned char cvOID_md5withRSAEncryption [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x01, 0x04}; -//1.2.840.113549.1.1.5 PKCS #1 sha1withRSAEncryption -static const unsigned char cvOID_sha1withRSAEncryption [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x01, 0x05}; -//1.2.840.113549.1.1.6 PKCS #1. This OID may also be assigned as ripemd160WithRSAEncryption rsaOAEPEncryptionSET -static const unsigned char cvOID_rsaOAEPEncryptionSET [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x01, 0x06}; -//1.2.840.113549.1.1.8 PKCS #1. id-mgf1 (0x2A864886F70D010108) -static const unsigned char cvOID_mgf1 [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x01, 0x08}; -//1.2.840.113549.1.1.10 PKCS #1. id-RSASSA-PSS (0x2A864886F70D01010A) -static const unsigned char cvOID_rsaSSA_PSS [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x01, 0x0A}; -//1.2.840.113549.1.2 Obsolete BSAFE OID bsafeRsaEncr -static const unsigned char cvOID_bsafeRsaEncr [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x01}; -//1.2.840.113549.1.3.1 PKCS #3 dhKeyAgreement -static const unsigned char cvOID_dhKeyAgreement [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x03, 0x01}; -//1.2.840.113549.1.5.1 PKCS #5 pbeWithMD2AndDES-CBC -static const unsigned char cvOID_pbeWithMD2AndDES_CBC [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x05, 0x01}; -//1.2.840.113549.1.5.3 PKCS #5 pbeWithMD5AndDES-CBC -static const unsigned char cvOID_pbeWithMD5AndDES_CBC [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x05, 0x03}; -//1.2.840.113549.1.5.4 PKCS #5 pbeWithMD2AndRC2-CBC -static const unsigned char cvOID_pbeWithMD2AndRC2_CBC [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x05, 0x04}; -//1.2.840.113549.1.5.6 PKCS #5 pbeWithMD5AndRC2-CBC -static const unsigned char cvOID_pbeWithMD5AndRC2_CBC [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x05, 0x06}; -//1.2.840.113549.1.5.9 PKCS #5, used in BSAFE only pbeWithMD5AndXOR -static const unsigned char cvOID_pbeWithMD5AndXOR [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x05, 0x09}; -//1.2.840.113549.1.5.10 PKCS #5 pbeWithSHAAndDES-CBC -static const unsigned char cvOID_pbeWithSHAAndDES_CBC [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x05, 0x0A}; -//1.2.840.113549.1.5.12 PKCS #5 v2.0 id-PBKDF2 -static const unsigned char cvOID_id_PBKDF2 [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x05, 0x0C}; -//1.2.840.113549.1.5.13 PKCS #5 v2.0 id-PBES2 -static const unsigned char cvOID_id_PBES2 [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x05, 0x0D}; -//1.2.840.113549.1.5.14 PKCS #5 v2.0 id-PBMAC1 -static const unsigned char cvOID_id_PBMAC1 [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x05, 0x0E}; -//1.2.840.113549.1.7.1 PKCS #7 data -static const unsigned char cvOID_data [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x07, 0x01}; -//1.2.840.113549.1.7.2 PKCS #7 signedData -static const unsigned char cvOID_signedData [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x07, 0x02}; -//1.2.840.113549.1.7.3 PKCS #7 envelopedData -static const unsigned char cvOID_envelopedData [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x07, 0x03}; -//1.2.840.113549.1.7.4 PKCS #7 signedAndEnvelopedData -static const unsigned char cvOID_signedAndEnvelopedData [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x07, 0x04}; -//1.2.840.113549.1.7.5 PKCS #7 digestedData -static const unsigned char cvOID_digestedData [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x07, 0x05}; -//1.2.840.113549.1.7.6 PKCS #7 encryptedData -static const unsigned char cvOID_encryptedData [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x07, 0x06}; -//1.2.840.113549.1.7.7 PKCS #7 experimental dataWithAttributes -static const unsigned char cvOID_dataWithAttributes [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x07, 0x07}; -//1.2.840.113549.1.7.8 PKCS #7 experimental encryptedPrivateKeyInfo -static const unsigned char cvOID_encryptedPrivateKeyInfo [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x07, 0x08}; -//1.2.840.113549.1.9.1 PKCS #9 (1 2 840 113549 1 9). Deprecated, use an altName extension instead emailAddress -static const unsigned char cvOID_emailAddress_PKCS9 [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x09, 0x01}; -//1.2.840.113549.1.9.2 PKCS #9 (1 2 840 113549 1 9) unstructuredName -static const unsigned char cvOID_unstructuredName [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x09, 0x02}; -//1.2.840.113549.1.9.3 PKCS #9 (1 2 840 113549 1 9) contentType -static const unsigned char cvOID_contentType [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x09, 0x03}; -//1.2.840.113549.1.9.4 PKCS #9 (1 2 840 113549 1 9) messageDigest -static const unsigned char cvOID_messageDigest [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x09, 0x04}; -//1.2.840.113549.1.9.5 PKCS #9 (1 2 840 113549 1 9) signingTime -static const unsigned char cvOID_signingTime [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x09, 0x05}; -//1.2.840.113549.1.9.6 PKCS #9 (1 2 840 113549 1 9) countersignature -static const unsigned char cvOID_countersignature_PKCS9 [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x09, 0x06}; -//1.2.840.113549.1.9.7 PKCS #9 (1 2 840 113549 1 9) challengePassword -static const unsigned char cvOID_challengePassword [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x09, 0x07}; -//1.2.840.113549.1.9.8 PKCS #9 (1 2 840 113549 1 9) unstructuredAddress -static const unsigned char cvOID_unstructuredAddress [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x09, 0x08}; -//1.2.840.113549.1.9.9 PKCS #9 (1 2 840 113549 1 9) extendedCertificateAttributes -static const unsigned char cvOID_extendedCertificateAttributes [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x09, 0x09}; -//1.2.840.113549.1.9.10 PKCS #9 (1 2 840 113549 1 9) experimental issuerAndSerialNumber -static const unsigned char cvOID_issuerAndSerialNumber [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x09, 0x0A}; -//1.2.840.113549.1.9.11 PKCS #9 (1 2 840 113549 1 9) experimental passwordCheck -static const unsigned char cvOID_passwordCheck [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x09, 0x0B}; -//1.2.840.113549.1.9.12 PKCS #9 (1 2 840 113549 1 9) experimental publicKey -static const unsigned char cvOID_publicKey [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x09, 0x0C}; -//1.2.840.113549.1.9.13 PKCS #9 (1 2 840 113549 1 9) experimental signingDescription -static const unsigned char cvOID_signingDescription [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x09, 0x0D}; -//1.2.840.113549.1.9.14 PKCS #9 (1 2 840 113549 1 9) experimental extensionReq -static const unsigned char cvOID_extensionReq [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x09, 0x0E}; -//1.2.840.113549.1.9.15 PKCS #9 (1 2 840 113549 1 9). This OID was formerly assigned as symmetricCapabilities, then reassigned as SMIMECapabilities, then renamed to the current name sMIMECapabilities -static const unsigned char cvOID_sMIMECapabilities [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x09, 0x0F}; -//1.2.840.113549.1.9.15.1 sMIMECapabilities (1 2 840 113549 1 9 15) preferSignedData -static const unsigned char cvOID_preferSignedData [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x09, 0x0F, 0x01}; -//1.2.840.113549.1.9.15.2 sMIMECapabilities (1 2 840 113549 1 9 15) canNotDecryptAny -static const unsigned char cvOID_canNotDecryptAny [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x09, 0x0F, 0x02}; -//1.2.840.113549.1.9.15.3 sMIMECapabilities (1 2 840 113549 1 9 15). Deprecated, use (1 2 840 113549 1 9 16 2 1) instead receiptRequest -static const unsigned char cvOID_receiptRequest [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x09, 0x0F, 0x03}; -//1.2.840.113549.1.9.15.4 sMIMECapabilities (1 2 840 113549 1 9 15). Deprecated, use (1 2 840 113549 1 9 16 1 1) instead receipt -static const unsigned char cvOID_receipt [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x09, 0x0F, 0x04}; -//1.2.840.113549.1.9.15.5 sMIMECapabilities (1 2 840 113549 1 9 15). Deprecated, use (1 2 840 113549 1 9 16 2 4) instead contentHints -static const unsigned char cvOID_contentHints [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x09, 0x0F, 0x05}; -//1.2.840.113549.1.9.15.6 sMIMECapabilities (1 2 840 113549 1 9 15). Deprecated, use (1 2 840 113549 1 9 16 2 3) instead mlExpansionHistory -static const unsigned char cvOID_mlExpansionHistory [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x09, 0x0F, 0x06}; -//1.2.840.113549.1.9.16 PKCS #9 (1 2 840 113549 1 9) id-sMIME -static const unsigned char cvOID_id_sMIME [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x09, 0x10}; -//1.2.840.113549.1.9.16.0 id-sMIME (1 2 840 113549 1 9 16) id-mod -static const unsigned char cvOID_id_mod [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x09, 0x10, 0x00}; -//1.2.840.113549.1.9.16.0.1 S/MIME Modules (1 2 840 113549 1 9 16 0) id-mod-cms -static const unsigned char cvOID_id_mod_cms [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x09, 0x10, 0x00, 0x01}; -//1.2.840.113549.1.9.16.0.2 S/MIME Modules (1 2 840 113549 1 9 16 0) id-mod-ess -static const unsigned char cvOID_id_mod_ess [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x09, 0x10, 0x00, 0x02}; -//1.2.840.113549.1.9.16.1 id-sMIME (1 2 840 113549 1 9 16) id-ct -static const unsigned char cvOID_id_ct [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x09, 0x10, 0x01}; -//1.2.840.113549.1.9.16.1.1 S/MIME Content Types (1 2 840 113549 1 9 16 1) id-ct-receipt -static const unsigned char cvOID_id_ct_receipt [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x09, 0x10, 0x01, 0x01}; -//1.2.840.113549.1.9.16.1.2 S/MIME Content Types (1 2 840 113549 1 9 16 1) id-ct-authData -static const unsigned char cvOID_id_ct_authData [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x09, 0x10, 0x01, 0x02}; -//1.2.840.113549.1.9.16.1.3 S/MIME Content Types (1 2 840 113549 1 9 16 1) id-ct-compressedData -static const unsigned char cvOID_id_ct_compressedData [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x09, 0x10, 0x01, 0x03}; -//1.2.840.113549.1.9.16.2 id-sMIME (1 2 840 113549 1 9 16) id-aa -static const unsigned char cvOID_id_aa [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x09, 0x10, 0x02}; -//1.2.840.113549.1.9.16.2.1 S/MIME Authenticated Attributes (1 2 840 113549 1 9 16 2) id-aa-receiptRequest -static const unsigned char cvOID_id_aa_receiptRequest [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x09, 0x10, 0x02, 0x01}; -//1.2.840.113549.1.9.16.2.2 S/MIME Authenticated Attributes (1 2 840 113549 1 9 16 2) id-aa-securityLabel -static const unsigned char cvOID_id_aa_securityLabel [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x09, 0x10, 0x02, 0x02}; -//1.2.840.113549.1.9.16.2.3 S/MIME Authenticated Attributes (1 2 840 113549 1 9 16 2) id-aa-mlExpandHistory -static const unsigned char cvOID_id_aa_mlExpandHistory [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x09, 0x10, 0x02, 0x03}; -//1.2.840.113549.1.9.16.2.4 S/MIME Authenticated Attributes (1 2 840 113549 1 9 16 2) id-aa-contentHint -static const unsigned char cvOID_id_aa_contentHint [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x09, 0x10, 0x02, 0x04}; -//1.2.840.113549.1.9.16.2.5 S/MIME Authenticated Attributes (1 2 840 113549 1 9 16 2) id-aa-msgSigDigest -static const unsigned char cvOID_id_aa_msgSigDigest [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x09, 0x10, 0x02, 0x05}; -//1.2.840.113549.1.9.16.2.7 S/MIME Authenticated Attributes (1 2 840 113549 1 9 16 2) id-aa-contentIdentifier -static const unsigned char cvOID_id_aa_contentIdentifier [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x09, 0x10, 0x02, 0x07}; -//1.2.840.113549.1.9.16.2.8 S/MIME Authenticated Attributes (1 2 840 113549 1 9 16 2) id-aa-macValue -static const unsigned char cvOID_id_aa_macValue [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x09, 0x10, 0x02, 0x08}; -//1.2.840.113549.1.9.16.2.9 S/MIME Authenticated Attributes (1 2 840 113549 1 9 16 2) id-aa-equivalentLabels -static const unsigned char cvOID_id_aa_equivalentLabels [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x09, 0x10, 0x02, 0x09}; -//1.2.840.113549.1.9.16.2.10 S/MIME Authenticated Attributes (1 2 840 113549 1 9 16 2) id-aa-contentReference -static const unsigned char cvOID_id_aa_contentReference [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x09, 0x10, 0x02, 0x0A}; -//1.2.840.113549.1.9.16.3.5 S/MIME Algorithms (1 2 840 113549 1 9 16 3) id-alg-ESDH -static const unsigned char cvOID_id_alg_ESDH [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x09, 0x10, 0x03, 0x05}; -//1.2.840.113549.1.9.16.3.6 S/MIME Algorithms (1 2 840 113549 1 9 16 3) id-alg-CMS3DESwrap -static const unsigned char cvOID_id_alg_CMS3DESwrap [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x09, 0x10, 0x03, 0x06}; -//1.2.840.113549.1.9.16.3.7 S/MIME Algorithms (1 2 840 113549 1 9 16 3) id-alg-CMSRC2wrap -static const unsigned char cvOID_id_alg_CMSRC2wrap [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x09, 0x10, 0x03, 0x07}; -//1.2.840.113549.1.9.16.3.8 S/MIME Algorithms (1 2 840 113549 1 9 16 3) id-alg-zlib -static const unsigned char cvOID_id_alg_zlib [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x09, 0x10, 0x03, 0x08}; -//1.2.840.113549.1.9.20 PKCS #9 (1 2 840 113549 1 9) friendlyName (for PKCS #12) -static const unsigned char cvOID_friendlyName [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x09, 0x14}; -//1.2.840.113549.1.9.21 PKCS #9 (1 2 840 113549 1 9) localKeyID (for PKCS #12) -static const unsigned char cvOID_localKeyID[] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x09, 0x15}; -//1.2.840.113549.1.9.22 PKCS #9 (1 2 840 113549 1 9) certTypes (for PKCS #12) -static const unsigned char cvOID_certTypes[] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x09, 0x16}; -//1.2.840.113549.1.9.22.1 PKCS #9 (1 2 840 113549 1 9) x509Certificate (for PKCS #12) -static const unsigned char cvOID_x509Certificate[] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x09, 0x16, 0x01}; -//1.2.840.113549.1.9.22.2 PKCS #9 (1 2 840 113549 1 9) sdsiCertificate (for PKCS #12) -static const unsigned char cvOID_sdsiCertificate [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x09, 0x16, 0x02}; -//1.2.840.113549.1.9.23 PKCS #9 (1 2 840 113549 1 9) crlTypes (for PKCS #12) -static const unsigned char cvOID_crlTypes[] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x09, 0x17}; -//1.2.840.113549.1.9.23.1 PKCS #9 (1 2 840 113549 1 9) x509Crl (for PKCS #12) -static const unsigned char cvOID_x509Crl[] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x09, 0x17, 0x01}; -//1.2.840.113549.1.12.1 This OID was formerly assigned as PKCS #12 modeID pkcs-12-PbeIds -static const unsigned char cvOID_pkcs_12_PbeIds [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x0C, 0x01}; -//1.2.840.113549.1.12.1.1 PKCS #12 PbeIds (1 2 840 113549 1 12 1). This OID was formerly assigned as pkcs-12-OfflineTransportMode pbeWithSHAAnd128BitRC4 -static const unsigned char cvOID_pbeWithSHAAnd128BitRC4 [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x0C, 0x01, 0x01}; -//1.2.840.113549.1.12.1.2 PKCS #12 PbeIds (1 2 840 113549 1 12 2). This OID was formerly assigned as pkcs-12-OnlineTransportMode pbeWithSHAAnd40BitRC4 -static const unsigned char cvOID_pbeWithSHAAnd40BitRC4 [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x0C, 0x01, 0x02}; -//1.2.840.113549.1.12.1.3 PKCS #12 PbeIds (1 2 840 113549 1 12 3) pbeWithSHAAnd3-KeyTripleDES-CBC -static const unsigned char cvOID_pbeWithSHAAnd3_KeyTripleDES_CBC [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x0C, 0x01, 0x03}; -//1.2.840.113549.1.12.1.4 PKCS #12 PbeIds (1 2 840 113549 1 12 3) pbeWithSHAAnd2-KeyTripleDES-CBC -static const unsigned char cvOID_pbeWithSHAAnd2_KeyTripleDES_CBC [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x0C, 0x01, 0x04}; -//1.2.840.113549.1.12.1.5 PKCS #12 PbeIds (1 2 840 113549 1 12 3) pbeWithSHAAnd128BitRC2-CBC -static const unsigned char cvOID_pbeWithSHAAnd128BitRC2_CBC [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x0C, 0x01, 0x05}; -//1.2.840.113549.1.12.1.6 PKCS #12 PbeIds (1 2 840 113549 1 12 3) pbeWithSHAAnd40BitRC2-CBC -static const unsigned char cvOID_pbeWithSHAAnd40BitRC2_CBC [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x0C, 0x01, 0x06}; -//1.2.840.113549.1.12.2 Deprecated pkcs-12-ESPVKID -static const unsigned char cvOID_pkcs_12_ESPVKID [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x0C, 0x02}; -//1.2.840.113549.1.12.2.1 PKCS #12 ESPVKID (1 2 840 113549 1 12 2). Deprecated, use (1 2 840 113549 1 12 3 5) instead pkcs-12-PKCS8KeyShrouding -static const unsigned char cvOID_pkcs_12_PKCS8KeyShrouding [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x0C, 0x02, 0x01}; -//1.2.840.113549.1.12.3.1 PKCS #12 BagIds (1 2 840 113549 1 12 3) pkcs-12-keyBagId -static const unsigned char cvOID_pkcs_12_keyBagId [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x0C, 0x03, 0x01}; -//1.2.840.113549.1.12.3.2 PKCS #12 BagIds (1 2 840 113549 1 12 3) pkcs-12-certAndCRLBagId -static const unsigned char cvOID_pkcs_12_certAndCRLBagId [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x0C, 0x03, 0x02}; -//1.2.840.113549.1.12.3.3 PKCS #12 BagIds (1 2 840 113549 1 12 3) pkcs-12-secretBagId -static const unsigned char cvOID_pkcs_12_secretBagId [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x0C, 0x03, 0x03}; -//1.2.840.113549.1.12.3.4 PKCS #12 BagIds (1 2 840 113549 1 12 3) pkcs-12-safeContentsId -static const unsigned char cvOID_pkcs_12_safeContentsId [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x0C, 0x03, 0x04}; -//1.2.840.113549.1.12.3.5 PKCS #12 BagIds (1 2 840 113549 1 12 3) pkcs-12-pkcs-8ShroudedKeyBagId -static const unsigned char cvOID_pkcs_12_pkcs_8ShroudedKeyBagId [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x0C, 0x03, 0x05}; -//1.2.840.113549.1.12.4 Deprecated pkcs-12-CertBagID -static const unsigned char cvOID_pkcs_12_CertBagID [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x0C, 0x04}; -//1.2.840.113549.1.12.4.1 PKCS #12 CertBagID (1 2 840 113549 1 12 4). This OID was formerly assigned as pkcs-12-X509CertCRLBag pkcs-12-X509CertCRLBagID -static const unsigned char cvOID_pkcs_12_X509CertCRLBagID [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x0C, 0x04, 0x01}; -//1.2.840.113549.1.12.4.2 PKCS #12 CertBagID (1 2 840 113549 1 12 4). This OID was formerly assigned as pkcs-12-SDSICertBag pkcs-12-SDSICertBagID -static const unsigned char cvOID_pkcs_12_SDSICertBagID [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x0C, 0x04, 0x02}; -//1.2.840.113549.1.12.5.1 PKCS #12 OID (1 2 840 113549 1 12 5). Deprecated, use the partially compatible (1 2 840 113549 1 12 1) OIDs instead pkcs-12-PBEID -static const unsigned char cvOID_pkcs_12_PBEID [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x0C, 0x05, 0x01}; -//1.2.840.113549.1.12.5.1.1 PKCS #12 OID PBEID (1 2 840 113549 1 12 5 1). Deprecated, use (1 2 840 113549 1 12 1 1) instead pkcs-12-PBEWithSha1And128BitRC4 -static const unsigned char cvOID_pkcs_12_PBEWithSha1And128BitRC4 [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x0C, 0x05, 0x01, 0x01}; -//1.2.840.113549.1.12.5.1.2 PKCS #12 OID PBEID (1 2 840 113549 1 12 5 1). Deprecated, use (1 2 840 113549 1 12 1 2) instead pkcs-12-PBEWithSha1And40BitRC4 -static const unsigned char cvOID_pkcs_12_PBEWithSha1And40BitRC4 [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x0C, 0x05, 0x01, 0x02}; -//1.2.840.113549.1.12.5.1.3 PKCS #12 OID PBEID (1 2 840 113549 1 12 5 1). Deprecated, use the incompatible but similar (1 2 840 113549 1 12 1 3) or (1 2 840 113549 1 12 1 4) instead pkcs-12-PBEWithSha1AndTripleDESCBC -static const unsigned char cvOID_pkcs_12_PBEWithSha1AndTripleDESCBC [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x0C, 0x05, 0x01, 0x03}; -//1.2.840.113549.1.12.5.1.4 PKCS #12 OID PBEID (1 2 840 113549 1 12 5 1). Deprecated, use (1 2 840 113549 1 12 1 5) instead pkcs-12-PBEWithSha1And128BitRC2CBC -static const unsigned char cvOID_pkcs_12_PBEWithSha1And128BitRC2CBC [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x0C, 0x05, 0x01, 0x04}; -//1.2.840.113549.1.12.5.1.5 PKCS #12 OID PBEID (1 2 840 113549 1 12 5 1). Deprecated, use (1 2 840 113549 1 12 1 6) instead pkcs-12-PBEWithSha1And40BitRC2CBC -static const unsigned char cvOID_pkcs_12_PBEWithSha1And40BitRC2CBC [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x0C, 0x05, 0x01, 0x05}; -//1.2.840.113549.1.12.5.1.6 PKCS #12 OID PBEID (1 2 840 113549 1 12 5 1). Deprecated, use the incompatible but similar (1 2 840 113549 1 12 1 1) or (1 2 840 113549 1 12 1 2) instead pkcs-12-PBEWithSha1AndRC4 -static const unsigned char cvOID_pkcs_12_PBEWithSha1AndRC4 [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x0C, 0x05, 0x01, 0x06}; -//1.2.840.113549.1.12.5.1.7 PKCS #12 OID PBEID (1 2 840 113549 1 12 5 1). Deprecated, use the incompatible but similar (1 2 840 113549 1 12 1 5) or (1 2 840 113549 1 12 1 6) instead pkcs-12-PBEWithSha1AndRC2CBC -static const unsigned char cvOID_pkcs_12_PBEWithSha1AndRC2CBC [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x0C, 0x05, 0x01, 0x07}; -//1.2.840.113549.1.12.5.2.1 PKCS #12 OID EnvelopingID (1 2 840 113549 1 12 5 2). Deprecated, use the conventional PKCS #1 OIDs instead pkcs-12-RSAEncryptionWith128BitRC4 -static const unsigned char cvOID_pkcs_12_RSAEncryptionWith128BitRC4 [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x0C, 0x05, 0x02, 0x01}; -//1.2.840.113549.1.12.5.2.2 PKCS #12 OID EnvelopingID (1 2 840 113549 1 12 5 2). Deprecated, use the conventional PKCS #1 OIDs instead pkcs-12-RSAEncryptionWith40BitRC4 -static const unsigned char cvOID_pkcs_12_RSAEncryptionWith40BitRC4 [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x0C, 0x05, 0x02, 0x02}; -//1.2.840.113549.1.12.5.2.3 PKCS #12 OID EnvelopingID (1 2 840 113549 1 12 5 2). Deprecated, use the conventional PKCS #1 OIDs instead pkcs-12-RSAEncryptionWithTripleDES -static const unsigned char cvOID_pkcs_12_RSAEncryptionWithTripleDES [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x0C, 0x05, 0x02, 0x03}; -//1.2.840.113549.1.12.5.3.1 PKCS #12 OID SignatureID (1 2 840 113549 1 12 5 3). Deprecated, use the conventional PKCS #1 OIDs instead pkcs-12-RSASignatureWithSHA1Digest -static const unsigned char cvOID_pkcs_12_RSASignatureWithSHA1Digest [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x0C, 0x05, 0x03, 0x01}; -//1.2.840.113549.1.12.10.1.1 PKCS #12 BagIds (1 2 840 113549 1 12 10 1) pkcs-12-keyBag -static const unsigned char cvOID_pkcs_12_keyBag [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x0C, 0x0A, 0x01, 0x01}; -//1.2.840.113549.1.12.10.1.2 PKCS #12 BagIds (1 2 840 113549 1 12 10 1) pkcs-12-pkcs-8ShroudedKeyBag -static const unsigned char cvOID_pkcs_12_pkcs_8ShroudedKeyBag [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x0C, 0x0A, 0x01, 0x02}; -//1.2.840.113549.1.12.10.1.3 PKCS #12 BagIds (1 2 840 113549 1 12 10 1) pkcs-12-certBag -static const unsigned char cvOID_pkcs_12_certBag [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x0C, 0x0A, 0x01, 0x03}; -//1.2.840.113549.1.12.10.1.4 PKCS #12 BagIds (1 2 840 113549 1 12 10 1) pkcs-12-crlBag -static const unsigned char cvOID_pkcs_12_crlBag [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x0C, 0x0A, 0x01, 0x04}; -//1.2.840.113549.1.12.10.1.5 PKCS #12 BagIds (1 2 840 113549 1 12 10 1) pkcs-12-secretBag -static const unsigned char cvOID_pkcs_12_secretBag [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x0C, 0x0A, 0x01, 0x05}; -//1.2.840.113549.1.12.10.1.6 PKCS #12 BagIds (1 2 840 113549 1 12 10 1) pkcs-12-safeContentsBag -static const unsigned char cvOID_pkcs_12_safeContentsBag [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x0C, 0x0A, 0x01, 0x06}; -//1.2.840.113549.2.2 RSADSI digestAlgorithm (1 2 840 113549 2) md2 -static const unsigned char cvOID_md2 [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x02, 0x02}; -//1.2.840.113549.2.4 RSADSI digestAlgorithm (1 2 840 113549 2) md4 -static const unsigned char cvOID_md4 [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x02, 0x04}; -//1.2.840.113549.2.5 RSADSI digestAlgorithm (1 2 840 113549 2) md5 -static const unsigned char cvOID_md5 [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x02, 0x05}; -//1.2.840.113549.3.2 RSADSI encryptionAlgorithm (1 2 840 113549 3) rc2CBC -static const unsigned char cvOID_rc2CBC [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x03, 0x02}; -//1.2.840.113549.3.3 RSADSI encryptionAlgorithm (1 2 840 113549 3) rc2ECB -static const unsigned char cvOID_rc2ECB [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x03, 0x03}; -//1.2.840.113549.3.4 RSADSI encryptionAlgorithm (1 2 840 113549 3) rc4 -static const unsigned char cvOID_rc4 [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x03, 0x04}; -//1.2.840.113549.3.5 RSADSI encryptionAlgorithm (1 2 840 113549 3) rc4WithMAC -static const unsigned char cvOID_rc4WithMAC [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x03, 0x05}; -//1.2.840.113549.3.6 RSADSI encryptionAlgorithm (1 2 840 113549 3) desx-CBC -static const unsigned char cvOID_desx_CBC [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x03, 0x06}; -//1.2.840.113549.3.7 RSADSI encryptionAlgorithm (1 2 840 113549 3) des-EDE3-CBC -static const unsigned char cvOID_des_EDE3_CBC [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x03, 0x07}; -//1.2.840.113549.3.8 RSADSI encryptionAlgorithm (1 2 840 113549 3) rc5CBC -static const unsigned char cvOID_rc5CBC [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x03, 0x08}; -//1.2.840.113549.3.9 RSADSI encryptionAlgorithm (1 2 840 113549 3) rc5-CBCPad -static const unsigned char cvOID_rc5_CBCPad [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x03, 0x09}; -//1.2.840.113549.3.10 RSADSI encryptionAlgorithm (1 2 840 113549 3). Formerly called CDMFCBCPad desCDMF -static const unsigned char cvOID_desCDMF [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x03, 0x0A}; -//1.3.6.1.4.1.188.7.1.1 Ascom Systech ascom -static const unsigned char cvOID_ascom [] = { 0x2B, 0x06, 0x01, 0x04, 0x01, 0x81, 0x3C, 0x07, 0x01, 0x01}; -//1.3.6.1.4.1.188.7.1.1.1 Ascom Systech ideaECB -static const unsigned char cvOID_ideaECB [] = { 0x2B, 0x06, 0x01, 0x04, 0x01, 0x81, 0x3C, 0x07, 0x01, 0x01, 0x01}; -//1.3.6.1.4.1.188.7.1.1.2 Ascom Systech ideaCBC -static const unsigned char cvOID_ideaCBC [] = { 0x2B, 0x06, 0x01, 0x04, 0x01, 0x81, 0x3C, 0x07, 0x01, 0x01, 0x02}; -//1.3.6.1.4.1.188.7.1.1.3 Ascom Systech ideaCFB -static const unsigned char cvOID_ideaCFB [] = { 0x2B, 0x06, 0x01, 0x04, 0x01, 0x81, 0x3C, 0x07, 0x01, 0x01, 0x03}; -//1.3.6.1.4.1.188.7.1.1.4 Ascom Systech ideaOFB -static const unsigned char cvOID_ideaOFB [] = { 0x2B, 0x06, 0x01, 0x04, 0x01, 0x81, 0x3C, 0x07, 0x01, 0x01, 0x04}; -//1.2.840.113556.4.3 Microsoft microsoftExcel -static const unsigned char cvOID_microsoftExcel [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x14, 0x04, 0x03}; -//1.2.840.113556.4.4 Microsoft titledWithOID -static const unsigned char cvOID_titledWithOID [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x14, 0x04, 0x04}; -//1.2.840.113556.4.5 Microsoft microsoftPowerPoint -static const unsigned char cvOID_microsoftPowerPoint [] = { 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x14, 0x04, 0x05}; -//1.3.6.1.4.1.311.2.1.4 Microsoft code signing spcIndirectDataContext -static const unsigned char cvOID_spcIndirectDataContext [] = { 0x2B, 0x06, 0x01, 0x04, 0x01, 0x82, 0x37, 0x02, 0x01, 0x04}; -//1.3.6.1.4.1.311.2.1.10 Microsoft code signing. Also known as policyLink spcAgencyInfo -static const unsigned char cvOID_spcAgencyInfo [] = { 0x2B, 0x06, 0x01, 0x04, 0x01, 0x82, 0x37, 0x02, 0x01, 0x0A}; -//1.3.6.1.4.1.311.2.1.11 Microsoft code signing spcStatementType -static const unsigned char cvOID_spcStatementType [] = { 0x2B, 0x06, 0x01, 0x04, 0x01, 0x82, 0x37, 0x02, 0x01, 0x0B}; -//1.3.6.1.4.1.311.2.1.12 Microsoft code signing spcSpOpusInfo -static const unsigned char cvOID_spcSpOpusInfo [] = { 0x2B, 0x06, 0x01, 0x04, 0x01, 0x82, 0x37, 0x02, 0x01, 0x0C}; -//1.3.6.1.4.1.311.2.1.14 Microsoft certReqExtensions -static const unsigned char cvOID_certReqExtensions [] = { 0x2B, 0x06, 0x01, 0x04, 0x01, 0x82, 0x37, 0x02, 0x01, 0x0E}; -//1.3.6.1.4.1.311.2.1.15 Microsoft code signing spcPelmageData -static const unsigned char cvOID_spcPelmageData [] = { 0x2B, 0x06, 0x01, 0x04, 0x01, 0x82, 0x37, 0x02, 0x01, 0x0F}; -//1.3.6.1.4.1.311.2.1.20 Microsoft code signing. Also known as "glue extension" spcLink (type 1) -static const unsigned char cvOID_spcLink_1[] = { 0x2B, 0x06, 0x01, 0x04, 0x01, 0x82, 0x37, 0x02, 0x01, 0x14}; -//1.3.6.1.4.1.311.2.1.21 Microsoft individualCodeSigning -static const unsigned char cvOID_individualCodeSigning [] = { 0x2B, 0x06, 0x01, 0x04, 0x01, 0x82, 0x37, 0x02, 0x01, 0x15}; -//1.3.6.1.4.1.311.2.1.22 Microsoft commercialCodeSigning -static const unsigned char cvOID_commercialCodeSigning [] = { 0x2B, 0x06, 0x01, 0x04, 0x01, 0x82, 0x37, 0x02, 0x01, 0x16}; -//1.3.6.1.4.1.311.2.1.25 Microsoft code signing. Also known as "glue extension" spcLink (type 2) -static const unsigned char cvOID_spcLink_2[] = { 0x2B, 0x06, 0x01, 0x04, 0x01, 0x82, 0x37, 0x02, 0x01, 0x19}; -//1.3.6.1.4.1.311.2.1.26 Microsoft code signing spcMinimalCriteriaInfo -static const unsigned char cvOID_spcMinimalCriteriaInfo [] = { 0x2B, 0x06, 0x01, 0x04, 0x01, 0x82, 0x37, 0x02, 0x01, 0x1A}; -//1.3.6.1.4.1.311.2.1.27 Microsoft code signing spcFinancialCriteriaInfo -static const unsigned char cvOID_spcFinancialCriteriaInfo [] = { 0x2B, 0x06, 0x01, 0x04, 0x01, 0x82, 0x37, 0x02, 0x01, 0x1B}; -//1.3.6.1.4.1.311.2.1.28 Microsoft code signing. Also known as "glue extension" spcLink (type 3) -static const unsigned char cvOID_spcLink_3[] = { 0x2B, 0x06, 0x01, 0x04, 0x01, 0x82, 0x37, 0x02, 0x01, 0x1C}; -//1.3.6.1.4.1.311.3.2.1 Microsoft code signing timestampCountersignature -static const unsigned char cvOID_timestampCountersignature [] = { 0x2B, 0x06, 0x01, 0x04, 0x01, 0x82, 0x37, 0x03, 0x02, 0x01}; -//1.3.6.1.4.1.311.10.1 Microsoft PKCS #7 contentType certTrustList -static const unsigned char cvOID_certTrustList [] = { 0x2B, 0x06, 0x01, 0x04, 0x01, 0x82, 0x37, 0x0A, 0x01}; -//1.3.6.1.4.1.311.10.2 Microsoft nextUpdateLocation -static const unsigned char cvOID_nextUpdateLocation [] = { 0x2B, 0x06, 0x01, 0x04, 0x01, 0x82, 0x37, 0x0A, 0x02}; -//1.3.6.1.4.1.311.10.3.1 Microsoft enhanced key usage certTrustListSigning -static const unsigned char cvOID_certTrustListSigning [] = { 0x2B, 0x06, 0x01, 0x04, 0x01, 0x82, 0x37, 0x0A, 0x03, 0x01}; -//1.3.6.1.4.1.311.10.3.2 Microsoft enhanced key usage timeStampSigning -static const unsigned char cvOID_timeStampSigning [] = { 0x2B, 0x06, 0x01, 0x04, 0x01, 0x82, 0x37, 0x0A, 0x03, 0x02}; -//1.3.6.1.4.1.311.10.3.3 Microsoft enhanced key usage serverGatedCrypto -static const unsigned char cvOID_serverGatedCrypto [] = { 0x2B, 0x06, 0x01, 0x04, 0x01, 0x82, 0x37, 0x0A, 0x03, 0x03}; -//1.3.6.1.4.1.311.10.3.4 Microsoft enhanced key usage encryptedFileSystem -static const unsigned char cvOID_encryptedFileSystem [] = { 0x2B, 0x06, 0x01, 0x04, 0x01, 0x82, 0x37, 0x0A, 0x03, 0x04}; -//1.3.6.1.4.1.311.10.4.1 Microsoft attribute yesnoTrustAttr -static const unsigned char cvOID_yesnoTrustAttr [] = { 0x2B, 0x06, 0x01, 0x04, 0x01, 0x82, 0x37, 0x0A, 0x04, 0x01}; -//1.3.6.1.4.1.311.16.4 Microsoft S/MIME cert attribute microsoftEncryptionCert -static const unsigned char cvOID_microsoftEncryptionCert [] = { 0x2B, 0x06, 0x01, 0x04, 0x01, 0x82, 0x37, 0x10, 0x04}; -//1.3.6.1.4.1.311.20.2.2 Microsoft enhanced key usage smartcardLogon -static const unsigned char cvOID_smartcardLogon [] = { 0x2B, 0x06, 0x01, 0x04, 0x01, 0x82, 0x37, 0x14, 0x02, 0x02}; -//1.3.6.1.4.1.311.21.1 Microsoft attribute cAKeyCertIndexPair -static const unsigned char cvOID_cAKeyCertIndexPair [] = { 0x2B, 0x06, 0x01, 0x04, 0x01, 0x82, 0x37, 0x15, 0x01}; -//1.3.6.1.4.1.311.13.2.2 Microsoft attribute Unknown MS CryptoAPI-related extension -static const unsigned char cvOID_Unknown_MS_CryptoAPI_related_extension [] = { 0x2B, 0x06, 0x01, 0x04, 0x01, 0x82, 0x37, 0x0D, 0x02, 0x02}; -//1.3.6.1.4.1.311.16.4 Microsoft attribute microsoftRecipientInfo -static const unsigned char cvOID_microsoftRecipientInfo [] = { 0x2B, 0x06, 0x01, 0x04, 0x01, 0x82, 0x37, 0x10, 0x04}; -//1.3.6.1.4.1.2428.10.1.1 UNINETT PCA UNINETT policyIdentifier -static const unsigned char cvOID_UNINETT_policyIdentifier [] = { 0x2B, 0x06, 0x01, 0x04, 0x01, 0x92, 0x7C, 0x0A, 0x01, 0x01}; -//1.3.6.1.4.1.2712.10 ICE-TEL CA ICE-TEL policyIdentifier -static const unsigned char cvOID_ICE_TEL_policyIdentifier [] = { 0x2B, 0x06, 0x01, 0x04, 0x01, 0x95, 0x18, 0x0A}; -//1.3.6.1.4.1.2786.1.1.1 ICE-TEL CA policy ICE-TEL Italian policyIdentifier -static const unsigned char cvOID_ICE_TEL_Italian_policyIdentifier [] = { 0x2B, 0x06, 0x01, 0x04, 0x01, 0x95, 0x62, 0x01, 0x01, 0x01}; -//1.3.6.1.4.1.3029.1.1 cryptlib encryption algorithm blowfishECB -static const unsigned char cvOID_blowfishECB [] = { 0x2B, 0x06, 0x01, 0x04, 0x01, 0x97, 0x55, 0x01, 0x01}; -//1.3.6.1.4.1.3029.1.2 cryptlib encr -static const unsigned char cvOID_blowfishCBC [] = { 0x2B, 0x06, 0x01, 0x04, 0x01, 0x97, 0x55, 0x01, 0x02}; -//1.3.6.1.4.1.3029.1.3 cryptlib encryption algorithm blowfishCFB -static const unsigned char cvOID_blowfishCFB [] = { 0x2B, 0x06, 0x01, 0x04, 0x01, 0x97, 0x55, 0x01, 0x03}; -//1.3.6.1.4.1.3029.1.4 cryptlib encryption algorithm blowfishOFB -static const unsigned char cvOID_blowfishOFB [] = { 0x2B, 0x06, 0x01, 0x04, 0x01, 0x97, 0x55, 0x01, 0x04}; -//1.3.6.1.4.1.3029.3.1 cryptlib public-key algorithm elgamal -static const unsigned char cvOID_elgamal [] = { 0x2B, 0x06, 0x01, 0x04, 0x01, 0x97, 0x55, 0x03, 0x01}; -//1.3.6.1.4.1.3029.3.1.1 cryptlib public-key algorithm elgamalWithSHA-1 -static const unsigned char cvOID_elgamalWithSHA_1 [] = { 0x2B, 0x06, 0x01, 0x04, 0x01, 0x97, 0x55, 0x03, 0x01, 0x01}; -//1.3.6.1.4.1.3029.3.1.2 cryptlib public-key algorithm elgamalWithRIPEMD-160 -static const unsigned char cvOID_elgamalWithRIPEMD_160 [] = { 0x2B, 0x06, 0x01, 0x04, 0x01, 0x97, 0x55, 0x03, 0x01, 0x02}; -//1.3.6.1.4.1.3029.32.1 cryptlib cryptlibPrivateKey -static const unsigned char cvOID_cryptlibPrivateKey [] = { 0x2B, 0x06, 0x01, 0x04, 0x01, 0x97, 0x55, 0x20, 0x01}; -//1.3.6.1.4.1.3029.42.11172.1 cryptlib special MPEG-of-cat OID mpeg-1 -static const unsigned char cvOID_mpeg_1 [] = { 0x2B, 0x06, 0x01, 0x04, 0x01, 0x97, 0x55, 0x2A, 0xD7, 0x24, 0x01}; -//1.3.6.1.5.5.7.1 PKIX privateExtension -static const unsigned char cvOID_privateExtension [] = { 0x2B, 0x06, 0x01, 0x05, 0x05, 0x07, 0x01}; -//1.3.6.1.5.5.7.1.1 PKIX private extension authorityInfoAccess -static const unsigned char cvOID_authorityInfoAccess [] = { 0x2B, 0x06, 0x01, 0x05, 0x05, 0x07, 0x01, 0x01}; - -//ame -//1.3.6.1.5.5.7.1.11 PKIX private extension subjectInfoAccess -static const unsigned char cvOID_subjectInfoAccess [] = { 0x2B, 0x06, 0x01, 0x05, 0x05, 0x07, 0x01, 0x0a}; - -//1.3.6.1.5.5.7.2 PKIX policyQualifierIds -static const unsigned char cvOID_policyQualifierIds [] = { 0x2B, 0x06, 0x01, 0x05, 0x05, 0x07, 0x02}; -//1.3.6.1.5.5.7.2.1 PKIX policy qualifier cps -static const unsigned char cvOID_cps [] = { 0x2B, 0x06, 0x01, 0x05, 0x05, 0x07, 0x02, 0x01}; -//1.3.6.1.5.5.7.2.2 PKIX policy qualifier unotice -static const unsigned char cvOID_unotice [] = { 0x2B, 0x06, 0x01, 0x05, 0x05, 0x07, 0x02, 0x02}; -//1.3.6.1.5.5.7.3 PKIX keyPurpose -static const unsigned char cvOID_keyPurpose [] = { 0x2B, 0x06, 0x01, 0x05, 0x05, 0x07, 0x03}; -//1.3.6.1.5.5.7.3.1 PKIX key purpose serverAuth -static const unsigned char cvOID_serverAuth [] = { 0x2B, 0x06, 0x01, 0x05, 0x05, 0x07, 0x03, 0x01}; -//1.3.6.1.5.5.7.3.2 PKIX key purpose clientAuth -static const unsigned char cvOID_clientAuth [] = { 0x2B, 0x06, 0x01, 0x05, 0x05, 0x07, 0x03, 0x02}; -//1.3.6.1.5.5.7.3.3 PKIX key purpose codeSigning -static const unsigned char cvOID_codeSigning [] = { 0x2B, 0x06, 0x01, 0x05, 0x05, 0x07, 0x03, 0x03}; -//1.3.6.1.5.5.7.3.4 PKIX key purpose emailProtection -static const unsigned char cvOID_emailProtection [] = { 0x2B, 0x06, 0x01, 0x05, 0x05, 0x07, 0x03, 0x04}; -//1.3.6.1.5.5.7.3.5 PKIX key purpose ipsecEndSystem -static const unsigned char cvOID_ipsecEndSystem [] = { 0x2B, 0x06, 0x01, 0x05, 0x05, 0x07, 0x03, 0x05}; -//1.3.6.1.5.5.7.3.6 PKIX key purpose ipsecTunnel -static const unsigned char cvOID_ipsecTunnel [] = { 0x2B, 0x06, 0x01, 0x05, 0x05, 0x07, 0x03, 0x06}; -//1.3.6.1.5.5.7.3.7 PKIX key purpose ipsecUser -static const unsigned char cvOID_ipsecUser [] = { 0x2B, 0x06, 0x01, 0x05, 0x05, 0x07, 0x03, 0x07}; -//1.3.6.1.5.5.7.3.8 PKIX key purpose timeStamping -static const unsigned char cvOID_timeStamping [] = { 0x2B, 0x06, 0x01, 0x05, 0x05, 0x07, 0x03, 0x08}; -//ame -//1.3.6.1.5.5.7.3.9 PKIX key purpose OCSPSigning -static const unsigned char cvOID_OCSPSigning [] = { 0x2B, 0x06, 0x01, 0x05, 0x05, 0x07, 0x03, 0x09}; -//1.3.6.1.5.5.7.4 PKIX cmpInformationTypes -static const unsigned char cvOID_cmpInformationTypes [] = { 0x2B, 0x06, 0x01, 0x05, 0x05, 0x07, 0x04}; -//1.3.6.1.5.5.7.4.1 PKIX CMP information caProtEncCert -static const unsigned char cvOID_caProtEncCert [] = { 0x2B, 0x06, 0x01, 0x05, 0x05, 0x07, 0x04, 0x01}; -//1.3.6.1.5.5.7.4.2 PKIX CMP information signKeyPairTypes -static const unsigned char cvOID_signKeyPairTypes [] = { 0x2B, 0x06, 0x01, 0x05, 0x05, 0x07, 0x04, 0x02}; -//1.3.6.1.5.5.7.4.3 PKIX CMP information encKeyPairTypes -static const unsigned char cvOID_encKeyPairTypes [] = { 0x2B, 0x06, 0x01, 0x05, 0x05, 0x07, 0x04, 0x03}; -//1.3.6.1.5.5.7.4.4 PKIX CMP information preferredSymmAlg -static const unsigned char cvOID_preferredSymmAlg [] = { 0x2B, 0x06, 0x01, 0x05, 0x05, 0x07, 0x04, 0x04}; -//1.3.6.1.5.5.7.4.5 PKIX CMP information caKeyUpdateInfo -static const unsigned char cvOID_caKeyUpdateInfo [] = { 0x2B, 0x06, 0x01, 0x05, 0x05, 0x07, 0x04, 0x05}; -//1.3.6.1.5.5.7.4.6 PKIX CMP information currentCRL -static const unsigned char cvOID_currentCRL [] = { 0x2B, 0x06, 0x01, 0x05, 0x05, 0x07, 0x04, 0x06}; -//1.3.6.1.5.5.7.6.3 PKIX algorithm dh-sig-hmac-sha1 -static const unsigned char cvOID_dh_sig_hmac_sha1 [] = { 0x2B, 0x06, 0x01, 0x05, 0x05, 0x07, 0x06, 0x03}; -//1.3.6.1.5.5.7.6.4 PKIX algorithm dh-pop -static const unsigned char cvOID_dh_pop [] = { 0x2B, 0x06, 0x01, 0x05, 0x05, 0x07, 0x06, 0x04}; -//1.3.6.1.5.5.7.48.1 PKIX authority info access descriptor ocsp -static const unsigned char cvOID_ocsp [] = { 0x2B, 0x06, 0x01, 0x05, 0x05, 0x07, 0x30, 0x01}; -//1.3.6.1.5.5.7.48.2 PKIX authority info access descriptor caIssuers -static const unsigned char cvOID_caIssuers [] = { 0x2B, 0x06, 0x01, 0x05, 0x05, 0x07, 0x30, 0x02}; - -//ame -//1.3.6.1.5.5.7.48.3 PKIX subject info access descriptor timeStamping -static const unsigned char cvOID_info_timeStamping [] = { 0x2B, 0x06, 0x01, 0x05, 0x05, 0x07, 0x30, 0x03}; -//1.3.6.1.5.5.7.48.5 PKIX subject info access descriptor caRepository -static const unsigned char cvOID_caRepository [] = { 0x2B, 0x06, 0x01, 0x05, 0x05, 0x07, 0x30, 0x05}; - -//1.3.6.1.5.5.8.1.1 ISAKMP HMAC algorithm HMAC-MD5 -static const unsigned char cvOID_HMAC_MD5 [] = { 0x2B, 0x06, 0x01, 0x05, 0x05, 0x08, 0x01, 0x01}; -//1.3.6.1.5.5.8.1.2 ISAKMP HMAC algorithm HMAC-SHA -static const unsigned char cvOID_HMAC_SHA [] = { 0x2B, 0x06, 0x01, 0x05, 0x05, 0x08, 0x01, 0x02}; -//1.3.6.1.5.5.8.1.3 ISAKMP HMAC algorithm HMAC-Tiger -static const unsigned char cvOID_HMAC_Tiger [] = { 0x2B, 0x06, 0x01, 0x05, 0x05, 0x08, 0x01, 0x03}; -//1.3.6.1.5.5.8.2.2 ipsec_kp_ike_intermediate -static const unsigned char cvOID_iKEIntermediate[] = { 0x2B, 0x06, 0x01, 0x05, 0x05, 0x08, 0x02, 0x02}; - -//1.3.12.2.1011.7.1 DASS algorithm decEncryptionAlgorithm -static const unsigned char cvOID_decEncryptionAlgorithm [] = { 0x2B, 0x0C, 0x02, 0x87, 0x73, 0x07, 0x01}; -//1.3.12.2.1011.7.1.2 DASS encryption algorithm decDEA -static const unsigned char cvOID_decDEA [] = { 0x2B, 0x0C, 0x02, 0x87, 0x73, 0x07, 0x01, 0x02}; -//1.3.12.2.1011.7.2 DASS algorithm decHashAlgorithm -static const unsigned char cvOID_decHashAlgorithm [] = { 0x2B, 0x0C, 0x02, 0x87, 0x73, 0x07, 0x02}; -//1.3.12.2.1011.7.2.1 DASS hash algorithm decMD2 -static const unsigned char cvOID_decMD2 [] = { 0x2B, 0x0C, 0x02, 0x87, 0x73, 0x07, 0x02, 0x01}; -//1.3.12.2.1011.7.2.2 DASS hash algorithm decMD4 -static const unsigned char cvOID_decMD4 [] = { 0x2B, 0x0C, 0x02, 0x87, 0x73, 0x07, 0x02, 0x02}; -//1.3.12.2.1011.7.3 DASS algorithm decSignatureAlgorithm -static const unsigned char cvOID_decSignatureAlgorithm [] = { 0x2B, 0x0C, 0x02, 0x87, 0x73, 0x07, 0x03}; -//1.3.12.2.1011.7.3.1 DASS signature algorithm decMD2withRSA -static const unsigned char cvOID_decMD2withRSA [] = { 0x2B, 0x0C, 0x02, 0x87, 0x73, 0x07, 0x03, 0x01}; -//1.3.12.2.1011.7.3.2 DASS signature algorithm decMD4withRSA -static const unsigned char cvOID_decMD4withRSA [] = { 0x2B, 0x0C, 0x02, 0x87, 0x73, 0x07, 0x03, 0x02}; -//1.3.12.2.1011.7.3.3 DASS signature algorithm decDEAMAC -static const unsigned char cvOID_decDEAMAC [] = { 0x2B, 0x0C, 0x02, 0x87, 0x73, 0x07, 0x03, 0x03}; -//1.3.14.2.26.5 Unsure about this OID sha -static const unsigned char cvOID_sha [] = { 0x2B, 0x0E, 0x02, 0x1A, 0x05}; -//1.3.14.3.2.1.1 X.509. Unsure about this OID rsa -static const unsigned char cvOID_rsa [] = { 0x2B, 0x0E, 0x03, 0x02, 0x01, 0x01}; -//1.3.14.3.2.2 Oddball OIW OID md4WitRSA -static const unsigned char cvOID_md4WitRSA [] = { 0x2B, 0x0E, 0x03, 0x02, 0x02}; -//1.3.14.3.2.3 Oddball OIW OID md5WithRSA -static const unsigned char cvOID_md5WithRSA [] = { 0x2B, 0x0E, 0x03, 0x02, 0x03}; -//1.3.14.3.2.4 Oddball OIW OID md4WithRSAEncryption -static const unsigned char cvOID_md4WithRSAEncryption [] = { 0x2B, 0x0E, 0x03, 0x02, 0x04}; -//1.3.14.3.2.2.1 X.509. Deprecated sqmod-N -static const unsigned char cvOID_sqmod_N [] = { 0x2B, 0x0E, 0x03, 0x02, 0x02, 0x01}; -//1.3.14.3.2.3.1 X.509. Deprecated sqmod-NwithRSA -static const unsigned char cvOID_sqmod_NwithRSA [] = { 0x2B, 0x0E, 0x03, 0x02, 0x03, 0x01}; -//1.3.14.3.2.11 ISO 9796-2, also X9.31 Part 1 rsaSignature -static const unsigned char cvOID_rsaSignature [] = { 0x2B, 0x0E, 0x03, 0x02, 0x0B}; -////1.3.14.3.2.12 OIW?, supposedly from an incomplete version of SDN.701 (doesn't match final SDN.701) dsa -//static const unsigned char cvOID_dsa [] = { 0x2B, 0x0E, 0x03, 0x02, 0x0C}; -//1.3.14.3.2.14 Oddball OIW OID using 9796-2 padding rules mdc2WithRSASignature -static const unsigned char cvOID_mdc2WithRSASignature [] = { 0x2B, 0x0E, 0x03, 0x02, 0x0E}; -//1.3.14.3.2.15 Oddball OIW OID using 9796-2 padding rules shaWithRSASignature -static const unsigned char cvOID_shaWithRSASignature [] = { 0x2B, 0x0E, 0x03, 0x02, 0x0F}; -//1.3.14.3.2.16 Oddball OIW OID. Deprecated, use a plain DH OID instead dhWithCommonModulus -static const unsigned char cvOID_dhWithCommonModulus [] = { 0x2B, 0x0E, 0x03, 0x02, 0x10}; -//1.3.14.3.2.17 Oddball OIW OID. Mode is ECB desEDE -static const unsigned char cvOID_desEDE [] = { 0x2B, 0x0E, 0x03, 0x02, 0x11}; -////1.3.14.3.2.18 Oddball OIW OID sha -//static const unsigned char cvOID_sha [] = { 0x2B, 0x0E, 0x03, 0x02, 0x12}; -//1.3.14.3.2.19 Oddball OIW OID, DES-based hash, planned for X9.31 Part 2 mdc-2 -static const unsigned char cvOID_mdc_2 [] = { 0x2B, 0x0E, 0x03, 0x02, 0x13}; -//1.3.14.3.2.20 Oddball OIW OID. Deprecated, use a plain DSA OID instead dsaCommon -static const unsigned char cvOID_dsaCommon [] = { 0x2B, 0x0E, 0x03, 0x02, 0x14}; -//1.3.14.3.2.21 Oddball OIW OID. Deprecated, use a plain dsaWithSHA OID instead dsaCommonWithSHA -static const unsigned char cvOID_dsaCommonWithSHA [] = { 0x2B, 0x0E, 0x03, 0x02, 0x15}; -//1.3.14.3.2.22 Oddball OIW OID rsaKeyTransport -static const unsigned char cvOID_rsaKeyTransport [] = { 0x2B, 0x0E, 0x03, 0x02, 0x16}; -//1.3.14.3.2.23 Oddball OIW OID keyed-hash-seal -static const unsigned char cvOID_keyed_hash_seal [] = { 0x2B, 0x0E, 0x03, 0x02, 0x17}; -//1.3.14.3.2.24 Oddball OIW OID using 9796-2 padding rules md2WithRSASignature -static const unsigned char cvOID_md2WithRSASignature [] = { 0x2B, 0x0E, 0x03, 0x02, 0x18}; -//1.3.14.3.2.25 Oddball OIW OID using 9796-2 padding rules md5WithRSASignature -static const unsigned char cvOID_md5WithRSASignature [] = { 0x2B, 0x0E, 0x03, 0x02, 0x19}; -//1.3.14.3.2.26 OIW sha1 -static const unsigned char cvOID_sha1 [] = { 0x2B, 0x0E, 0x03, 0x02, 0x1A}; -//1.3.14.3.2.27 OIW. This OID may also be assigned as ripemd-160 dsaWithSHA1 -static const unsigned char cvOID_dsaWithSHA1 [] = { 0x2B, 0x0E, 0x03, 0x02, 0x1B}; -//1.3.14.3.2.28 OIW dsaWithCommonSHA1 -static const unsigned char cvOID_dsaWithCommonSHA1 [] = { 0x2B, 0x0E, 0x03, 0x02, 0x1C}; -//1.3.14.3.2.29 Oddball OIW OID sha-1WithRSAEncryption -static const unsigned char cvOID_sha_1WithRSAEncryption [] = { 0x2B, 0x0E, 0x03, 0x02, 0x1D}; -//1.3.14.3.3.1 Oddball OIW OID simple-strong-auth-mechanism -static const unsigned char cvOID_simple_strong_auth_mechanism [] = { 0x2B, 0x0E, 0x03, 0x03, 0x01}; -//1.3.14.7.2.1.1 Unsure about this OID ElGamal -static const unsigned char cvOID_ElGamal [] = { 0x2B, 0x0E, 0x07, 0x02, 0x01, 0x01}; -//1.3.14.7.2.3.1 Unsure about this OID md2WithRSA -static const unsigned char cvOID_md2WithRSA [] = { 0x2B, 0x0E, 0x07, 0x02, 0x03, 0x01}; -//1.3.14.7.2.3.2 Unsure about this OID md2WithElGamal -static const unsigned char cvOID_md2WithElGamal [] = { 0x2B, 0x0E, 0x07, 0x02, 0x03, 0x02}; -//1.3.36.1 Teletrust document document -static const unsigned char cvOID_document [] = { 0x2B, 0x24, 0x01}; -//1.3.36.1.1 Teletrust document finalVersion -static const unsigned char cvOID_finalVersion [] = { 0x2B, 0x24, 0x01, 0x01}; -//1.3.36.1.2 Teletrust document draft -static const unsigned char cvOID_draft [] = { 0x2B, 0x24, 0x01, 0x02}; -//1.3.36.2 Teletrust sio sio -static const unsigned char cvOID_sio [] = { 0x2B, 0x24, 0x02}; -//1.3.36.2.1 Teletrust sio sedu -static const unsigned char cvOID_sedu [] = { 0x2B, 0x24, 0x02, 0x01}; -//1.3.36.3 Teletrust algorithm algorithm -static const unsigned char cvOID_algorithm_Teletrust[] = { 0x2B, 0x24, 0x03}; -//1.3.36.3.1 Teletrust algorithm encryptionAlgorithm -static const unsigned char cvOID_encryptionAlgorithm_Teletrust [] = { 0x2B, 0x24, 0x03, 0x01}; -//1.3.36.3.1.1 Teletrust encryption algorithm des -static const unsigned char cvOID_des_Teletrust [] = { 0x2B, 0x24, 0x03, 0x01, 0x01}; -//1.3.36.3.1.1.1 Teletrust encryption algorithm desECB_pad -static const unsigned char cvOID_desECB_pad [] = { 0x2B, 0x24, 0x03, 0x01, 0x01, 0x01}; -//1.3.36.3.1.1.1.1 Teletrust encryption algorithm desECB_ISOpad -static const unsigned char cvOID_desECB_ISOpad [] = { 0x2B, 0x24, 0x03, 0x01, 0x01, 0x01, 0x01}; -//1.3.36.3.1.1.2.1 Teletrust encryption algorithm desCBC_pad -static const unsigned char cvOID_desCBC_pad [] = { 0x2B, 0x24, 0x03, 0x01, 0x01, 0x02, 0x01}; -//1.3.36.3.1.1.2.1.1 Teletrust encryption algorithm desCBC_ISOpad -static const unsigned char cvOID_desCBC_ISOpad [] = { 0x2B, 0x24, 0x03, 0x01, 0x01, 0x02, 0x01, 0x01}; -//1.3.36.3.1.3 Teletrust encryption algorithm des_3 -static const unsigned char cvOID_des_3 [] = { 0x2B, 0x24, 0x03, 0x01, 0x03}; -//1.3.36.3.1.3.1.1 Teletrust encryption algorithm. EDE triple DES des_3ECB_pad -static const unsigned char cvOID_des_3ECB_pad [] = { 0x2B, 0x24, 0x03, 0x01, 0x03, 0x01, 0x01}; -//1.3.36.3.1.3.1.1.1 Teletrust encryption algorithm. EDE triple DES des_3ECB_ISOpad -static const unsigned char cvOID_des_3ECB_ISOpad [] = { 0x2B, 0x24, 0x03, 0x01, 0x03, 0x01, 0x01, 0x01}; -//1.3.36.3.1.3.2.1 Teletrust encryption algorithm. EDE triple DES des_3CBC_pad -static const unsigned char cvOID_des_3CBC_pad [] = { 0x2B, 0x24, 0x03, 0x01, 0x03, 0x02, 0x01}; -//1.3.36.3.1.3.2.1.1 Teletrust encryption algorithm. EDE triple DES des_3CBC_ISOpad -static const unsigned char cvOID_des_3CBC_ISOpad [] = { 0x2B, 0x24, 0x03, 0x01, 0x03, 0x02, 0x01, 0x01}; -//1.3.36.3.1.2 Teletrust encryption algorithm idea -static const unsigned char cvOID_idea_Teletrust [] = { 0x2B, 0x24, 0x03, 0x01, 0x02}; -//1.3.36.3.1.2.1 Teletrust encryption algorithm ideaECB -static const unsigned char cvOID_ideaECB_Teletrust [] = { 0x2B, 0x24, 0x03, 0x01, 0x02, 0x01}; -//1.3.36.3.1.2.1.1 Teletrust encryption algorithm ideaECB_pad -static const unsigned char cvOID_ideaECB_pad [] = { 0x2B, 0x24, 0x03, 0x01, 0x02, 0x01, 0x01}; -//1.3.36.3.1.2.1.1.1 Teletrust encryption algorithm ideaECB_ISOpad -static const unsigned char cvOID_ideaECB_ISOpad [] = { 0x2B, 0x24, 0x03, 0x01, 0x02, 0x01, 0x01, 0x01}; -//1.3.36.3.1.2.2 Teletrust encryption algorithm ideaCBC -static const unsigned char cvOID_ideaCBC_Teletrust [] = { 0x2B, 0x24, 0x03, 0x01, 0x02, 0x02}; -//1.3.36.3.1.2.2.1 Teletrust encryption algorithm ideaCBC_pad -static const unsigned char cvOID_ideaCBC_pad [] = { 0x2B, 0x24, 0x03, 0x01, 0x02, 0x02, 0x01}; -//1.3.36.3.1.2.2.1.1 Teletrust encryption algorithm ideaCBC_ISOpad -static const unsigned char cvOID_ideaCBC_ISOpad [] = { 0x2B, 0x24, 0x03, 0x01, 0x02, 0x02, 0x01, 0x01}; -//1.3.36.3.1.2.3 Teletrust encryption algorithm ideaOFB -static const unsigned char cvOID_ideaOFB_Teletrust [] = { 0x2B, 0x24, 0x03, 0x01, 0x02, 0x03}; -//1.3.36.3.1.2.4 Teletrust encryption algorithm ideaCFB -static const unsigned char cvOID_ideaCFB_Teletrust [] = { 0x2B, 0x24, 0x03, 0x01, 0x02, 0x04}; -//1.3.36.3.1.4 Teletrust encryption algorithm rsaEncryption -static const unsigned char cvOID_rsaEncryption_Teletrust [] = { 0x2B, 0x24, 0x03, 0x01, 0x04}; -//1.3.36.3.1.4.512.17 Teletrust encryption algorithm rsaEncryptionWithlmod512expe17 -static const unsigned char cvOID_rsaEncryptionWithlmod512expe17 [] = { 0x2B, 0x24, 0x03, 0x01, 0x04, 0x84, 0x00, 0x11}; -//1.3.36.3.1.5 Teletrust encryption algorithm bsi-1 -static const unsigned char cvOID_bsi_1 [] = { 0x2B, 0x24, 0x03, 0x01, 0x05}; -//1.3.36.3.1.5.1 Teletrust encryption algorithm bsi_1ECB_pad -static const unsigned char cvOID_bsi_1ECB_pad [] = { 0x2B, 0x24, 0x03, 0x01, 0x05, 0x01}; -//1.3.36.3.1.5.2 Teletrust encryption algorithm bsi_1CBC_pad -static const unsigned char cvOID_bsi_1CBC_pad [] = { 0x2B, 0x24, 0x03, 0x01, 0x05, 0x02}; -//1.3.36.3.1.5.2.1 Teletrust encryption algorithm bsi_1CBC_PEMpad -static const unsigned char cvOID_bsi_1CBC_PEMpad [] = { 0x2B, 0x24, 0x03, 0x01, 0x05, 0x02, 0x01}; -//1.3.36.3.2 Teletrust algorithm hashAlgorithm -static const unsigned char cvOID_hashAlgorithm [] = { 0x2B, 0x24, 0x03, 0x02}; -//1.3.36.3.2.1 Teletrust hash algorithm ripemd160 -static const unsigned char cvOID_ripemd160_Teletrust [] = { 0x2B, 0x24, 0x03, 0x02, 0x01}; -//1.3.36.3.2.2 Teletrust hash algorithm ripemd128 -static const unsigned char cvOID_ripemd128_Teletrust [] = { 0x2B, 0x24, 0x03, 0x02, 0x02}; -//1.3.36.3.2.3 Teletrust hash algorithm ripemd256 -static const unsigned char cvOID_ripemd256 [] = { 0x2B, 0x24, 0x03, 0x02, 0x03}; -//1.3.36.3.2.4 Teletrust hash algorithm mdc2singleLength -static const unsigned char cvOID_mdc2singleLength [] = { 0x2B, 0x24, 0x03, 0x02, 0x04}; -//1.3.36.3.2.5 Teletrust hash algorithm mdc2doubleLength -static const unsigned char cvOID_mdc2doubleLength [] = { 0x2B, 0x24, 0x03, 0x02, 0x05}; -//1.3.36.3.3 Teletrust algorithm signatureAlgorithm -static const unsigned char cvOID_signatureAlgorithm [] = { 0x2B, 0x24, 0x03, 0x03}; -//1.3.36.3.3.1 Teletrust signature algorithm rsaSignature -static const unsigned char cvOID_rsaSignature_Teletrust [] = { 0x2B, 0x24, 0x03, 0x03, 0x01}; -//1.3.36.3.3.1.1 Teletrust signature algorithm rsaSignatureWithsha1 -static const unsigned char cvOID_rsaSignatureWithsha1 [] = { 0x2B, 0x24, 0x03, 0x03, 0x01, 0x01}; -//1.3.36.3.3.1.1.512.2 Teletrust signature algorithm rsaSignatureWithsha1_l512_l2 -static const unsigned char cvOID_rsaSignatureWithsha1_l512_l2 [] = { 0x2B, 0x24, 0x03, 0x03, 0x01, 0x01, 0x84, 0x00, 0x02}; -//1.3.36.3.3.1.1.640.2 Teletrust signature algorithm rsaSignatureWithsha1_l640_l2 -static const unsigned char cvOID_rsaSignatureWithsha1_l640_l2 [] = { 0x2B, 0x24, 0x03, 0x03, 0x01, 0x01, 0x85, 0x00, 0x02}; -//1.3.36.3.3.1.1.768.2 Teletrust signature algorithm rsaSignatureWithsha1_l768_l2 -static const unsigned char cvOID_rsaSignatureWithsha1_l768_l2 [] = { 0x2B, 0x24, 0x03, 0x03, 0x01, 0x01, 0x86, 0x00, 0x02}; -//1.3.36.3.3.1.1.892.2 Teletrust signature algorithm rsaSignatureWithsha1_l896_l2 -static const unsigned char cvOID_rsaSignatureWithsha1_l896_l2 [] = { 0x2B, 0x24, 0x03, 0x03, 0x01, 0x01, 0x87, 0x00, 0x02}; -//1.3.36.3.3.1.1.1024.2 Teletrust signature algorithm rsaSignatureWithsha1_l1024_l2 -static const unsigned char cvOID_rsaSignatureWithsha1_l1024_l2 [] = { 0x2B, 0x24, 0x03, 0x03, 0x01, 0x01, 0x88, 0x00, 0x02}; -//1.3.36.3.3.1.1.512.3 Teletrust signature algorithm rsaSignatureWithsha1_l512_l3 -static const unsigned char cvOID_rsaSignatureWithsha1_l512_l3 [] = { 0x2B, 0x24, 0x03, 0x03, 0x01, 0x01, 0x84, 0x00, 0x03}; -//1.3.36.3.3.1.1.640.3 Teletrust signature algorithm rsaSignatureWithsha1_l640_l3 -static const unsigned char cvOID_rsaSignatureWithsha1_l640_l3 [] = { 0x2B, 0x24, 0x03, 0x03, 0x01, 0x01, 0x85, 0x00, 0x03}; -//1.3.36.3.3.1.1.768.3 Teletrust signature algorithm rsaSignatureWithsha1_l768_l3 -static const unsigned char cvOID_rsaSignatureWithsha1_l768_l3 [] = { 0x2B, 0x24, 0x03, 0x03, 0x01, 0x01, 0x86, 0x00, 0x03}; -//1.3.36.3.3.1.1.896.3 Teletrust signature algorithm rsaSignatureWithsha1_l896_l3 -static const unsigned char cvOID_rsaSignatureWithsha1_l896_l3 [] = { 0x2B, 0x24, 0x03, 0x03, 0x01, 0x01, 0x87, 0x00, 0x03}; -//1.3.36.3.3.1.1.1024.3 Teletrust signature algorithm rsaSignatureWithsha1_l1024_l3 -static const unsigned char cvOID_rsaSignatureWithsha1_l1024_l3 [] = { 0x2B, 0x24, 0x03, 0x03, 0x01, 0x01, 0x88, 0x00, 0x03}; -//1.3.36.3.3.1.1.512.5 Teletrust signature algorithm rsaSignatureWithsha1_l512_l5 -static const unsigned char cvOID_rsaSignatureWithsha1_l512_l5 [] = { 0x2B, 0x24, 0x03, 0x03, 0x01, 0x01, 0x84, 0x00, 0x05}; -//1.3.36.3.3.1.1.640.5 Teletrust signature algorithm rsaSignatureWithsha1_l640_l5 -static const unsigned char cvOID_rsaSignatureWithsha1_l640_l5 [] = { 0x2B, 0x24, 0x03, 0x03, 0x01, 0x01, 0x85, 0x00, 0x05}; -//1.3.36.3.3.1.1.768.5 Teletrust signature algorithm rsaSignatureWithsha1_l768_l5 -static const unsigned char cvOID_rsaSignatureWithsha1_l768_l5 [] = { 0x2B, 0x24, 0x03, 0x03, 0x01, 0x01, 0x86, 0x00, 0x05}; -//1.3.36.3.3.1.1.896.5 Teletrust signature algorithm rsaSignatureWithsha1_l896_l5 -static const unsigned char cvOID_rsaSignatureWithsha1_l896_l5 [] = { 0x2B, 0x24, 0x03, 0x03, 0x01, 0x01, 0x87, 0x00, 0x05}; -//1.3.36.3.3.1.1.1024.5 Teletrust signature algorithm rsaSignatureWithsha1_l1024_l5 -static const unsigned char cvOID_rsaSignatureWithsha1_l1024_l5 [] = { 0x2B, 0x24, 0x03, 0x03, 0x01, 0x01, 0x88, 0x00, 0x05}; -//1.3.36.3.3.1.1.512.9 Teletrust signature algorithm rsaSignatureWithsha1_l512_l9 -static const unsigned char cvOID_rsaSignatureWithsha1_l512_l9 [] = { 0x2B, 0x24, 0x03, 0x03, 0x01, 0x01, 0x84, 0x00, 0x09}; -//1.3.36.3.3.1.1.640.9 Teletrust signature algorithm rsaSignatureWithsha1_l640_l9 -static const unsigned char cvOID_rsaSignatureWithsha1_l640_l9 [] = { 0x2B, 0x24, 0x03, 0x03, 0x01, 0x01, 0x85, 0x00, 0x09}; -//1.3.36.3.3.1.1.768.9 Teletrust signature algorithm rsaSignatureWithsha1_l768_l9 -static const unsigned char cvOID_rsaSignatureWithsha1_l768_l9 [] = { 0x2B, 0x24, 0x03, 0x03, 0x01, 0x01, 0x86, 0x00, 0x09}; -//1.3.36.3.3.1.1.896.9 Teletrust signature algorithm rsaSignatureWithsha1_l896_l9 -static const unsigned char cvOID_rsaSignatureWithsha1_l896_l9 [] = { 0x2B, 0x24, 0x03, 0x03, 0x01, 0x01, 0x87, 0x00, 0x09}; -//1.3.36.3.3.1.1.1024.9 Teletrust signature algorithm rsaSignatureWithsha1_l1024_l9 -static const unsigned char cvOID_rsaSignatureWithsha1_l1024_l9 [] = { 0x2B, 0x24, 0x03, 0x03, 0x01, 0x01, 0x88, 0x00, 0x09}; -//1.3.36.3.3.1.1.512.11 Teletrust signature algorithm rsaSignatureWithsha1_l512_l11 -static const unsigned char cvOID_rsaSignatureWithsha1_l512_l11 [] = { 0x2B, 0x24, 0x03, 0x03, 0x01, 0x01, 0x84, 0x00, 0x11}; -//1.3.36.3.3.1.1.640.11 Teletrust signature algorithm rsaSignatureWithsha1_l640_l11 -static const unsigned char cvOID_rsaSignatureWithsha1_l640_l11 [] = { 0x2B, 0x24, 0x03, 0x03, 0x01, 0x01, 0x85, 0x00, 0x11}; -//1.3.36.3.3.1.1.768.11 Teletrust signature algorithm rsaSignatureWithsha1_l768_l11 -static const unsigned char cvOID_rsaSignatureWithsha1_l768_l11 [] = { 0x2B, 0x24, 0x03, 0x03, 0x01, 0x01, 0x86, 0x00, 0x11}; -//1.3.36.3.3.1.1.896.11 Teletrust signature algorithm rsaSignatureWithsha1_l896_l11 -static const unsigned char cvOID_rsaSignatureWithsha1_l896_l11 [] = { 0x2B, 0x24, 0x03, 0x03, 0x01, 0x01, 0x87, 0x00, 0x11}; -//1.3.36.3.3.1.1.1024.11 Teletrust signature algorithm rsaSignatureWithsha1_l1024_l11 -static const unsigned char cvOID_rsaSignatureWithsha1_l1024_l11 [] = { 0x2B, 0x24, 0x03, 0x03, 0x01, 0x01, 0x88, 0x00, 0x11}; -//1.3.36.3.3.1.2 Teletrust signature algorithm rsaSignatureWithripemd160 -static const unsigned char cvOID_rsaSignatureWithripemd160 [] = { 0x2B, 0x24, 0x03, 0x03, 0x01, 0x02}; -//1.3.36.3.3.1.2.512.2 Teletrust signature algorithm rsaSignatureWithripemd160_l512_l2 -static const unsigned char cvOID_rsaSignatureWithripemd160_l512_l2 [] = { 0x2B, 0x24, 0x03, 0x03, 0x01, 0x02, 0x84, 0x00, 0x02}; -//1.3.36.3.3.1.2.640.2 Teletrust signature algorithm rsaSignatureWithripemd160_l640_l2 -static const unsigned char cvOID_rsaSignatureWithripemd160_l640_l2 [] = { 0x2B, 0x24, 0x03, 0x03, 0x01, 0x02, 0x85, 0x00, 0x02}; -//1.3.36.3.3.1.2.768.2 Teletrust signature algorithm rsaSignatureWithripemd160_l768_l2 -static const unsigned char cvOID_rsaSignatureWithripemd160_l768_l2 [] = { 0x2B, 0x24, 0x03, 0x03, 0x01, 0x02, 0x86, 0x00, 0x02}; -//1.3.36.3.3.1.2.892.2 Teletrust signature algorithm rsaSignatureWithripemd160_l896_l2 -static const unsigned char cvOID_rsaSignatureWithripemd160_l896_l2 [] = { 0x2B, 0x24, 0x03, 0x03, 0x01, 0x02, 0x87, 0x00, 0x02}; -//1.3.36.3.3.1.2.1024.2 Teletrust signature algorithm rsaSignatureWithripemd160_l1024_l2 -static const unsigned char cvOID_rsaSignatureWithripemd160_l1024_l2 [] = { 0x2B, 0x24, 0x03, 0x03, 0x01, 0x02, 0x88, 0x00, 0x02}; -//1.3.36.3.3.1.2.512.3 Teletrust signature algorithm rsaSignatureWithripemd160_l512_l3 -static const unsigned char cvOID_rsaSignatureWithripemd160_l512_l3 [] = { 0x2B, 0x24, 0x03, 0x03, 0x01, 0x02, 0x84, 0x00, 0x03}; -//1.3.36.3.3.1.2.640.3 Teletrust signature algorithm rsaSignatureWithripemd160_l640_l3 -static const unsigned char cvOID_rsaSignatureWithripemd160_l640_l3 [] = { 0x2B, 0x24, 0x03, 0x03, 0x01, 0x02, 0x85, 0x00, 0x03}; -//1.3.36.3.3.1.2.768.3 Teletrust signature algorithm rsaSignatureWithripemd160_l768_l3 -static const unsigned char cvOID_rsaSignatureWithripemd160_l768_l3 [] = { 0x2B, 0x24, 0x03, 0x03, 0x01, 0x02, 0x86, 0x00, 0x03}; -//1.3.36.3.3.1.2.896.3 Teletrust signature algorithm rsaSignatureWithripemd160_l896_l3 -static const unsigned char cvOID_rsaSignatureWithripemd160_l896_l3 [] = { 0x2B, 0x24, 0x03, 0x03, 0x01, 0x02, 0x87, 0x00, 0x03}; -//1.3.36.3.3.1.2.1024.3 Teletrust signature algorithm rsaSignatureWithripemd160_l1024_l3 -static const unsigned char cvOID_rsaSignatureWithripemd160_l1024_l3 [] = { 0x2B, 0x24, 0x03, 0x03, 0x01, 0x02, 0x88, 0x00, 0x03}; -//1.3.36.3.3.1.2.512.5 Teletrust signature algorithm rsaSignatureWithripemd160_l512_l5 -static const unsigned char cvOID_rsaSignatureWithripemd160_l512_l5 [] = { 0x2B, 0x24, 0x03, 0x03, 0x01, 0x02, 0x84, 0x00, 0x05}; -//1.3.36.3.3.1.2.640.5 Teletrust signature algorithm rsaSignatureWithripemd160_l640_l5 -static const unsigned char cvOID_rsaSignatureWithripemd160_l640_l5 [] = { 0x2B, 0x24, 0x03, 0x03, 0x01, 0x02, 0x85, 0x00, 0x05}; -//1.3.36.3.3.1.2.768.5 Teletrust signature algorithm rsaSignatureWithripemd160_l768_l5 -static const unsigned char cvOID_rsaSignatureWithripemd160_l768_l5 [] = { 0x2B, 0x24, 0x03, 0x03, 0x01, 0x02, 0x86, 0x00, 0x05}; -//1.3.36.3.3.1.2.896.5 Teletrust signature algorithm rsaSignatureWithripemd160_l896_l5 -static const unsigned char cvOID_rsaSignatureWithripemd160_l896_l5 [] = { 0x2B, 0x24, 0x03, 0x03, 0x01, 0x02, 0x87, 0x00, 0x05}; -//1.3.36.3.3.1.2.1024.5 Teletrust signature algorithm rsaSignatureWithripemd160_l1024_l5 -static const unsigned char cvOID_rsaSignatureWithripemd160_l1024_l5 [] = { 0x2B, 0x24, 0x03, 0x03, 0x01, 0x02, 0x88, 0x00, 0x05}; -//1.3.36.3.3.1.2.512.9 Teletrust signature algorithm rsaSignatureWithripemd160_l512_l9 -static const unsigned char cvOID_rsaSignatureWithripemd160_l512_l9 [] = { 0x2B, 0x24, 0x03, 0x03, 0x01, 0x02, 0x84, 0x00, 0x09}; -//1.3.36.3.3.1.2.640.9 Teletrust signature algorithm rsaSignatureWithripemd160_l640_l9 -static const unsigned char cvOID_rsaSignatureWithripemd160_l640_l9 [] = { 0x2B, 0x24, 0x03, 0x03, 0x01, 0x02, 0x85, 0x00, 0x09}; -//1.3.36.3.3.1.2.768.9 Teletrust signature algorithm rsaSignatureWithripemd160_l768_l9 -static const unsigned char cvOID_rsaSignatureWithripemd160_l768_l9 [] = { 0x2B, 0x24, 0x03, 0x03, 0x01, 0x02, 0x86, 0x00, 0x09}; -//1.3.36.3.3.1.2.896.9 Teletrust signature algorithm rsaSignatureWithripemd160_l896_l9 -static const unsigned char cvOID_rsaSignatureWithripemd160_l896_l9 [] = { 0x2B, 0x24, 0x03, 0x03, 0x01, 0x02, 0x87, 0x00, 0x09}; -//1.3.36.3.3.1.2.1024.9 Teletrust signature algorithm rsaSignatureWithripemd160_l1024_l9 -static const unsigned char cvOID_rsaSignatureWithripemd160_l1024_l9 [] = { 0x2B, 0x24, 0x03, 0x03, 0x01, 0x02, 0x88, 0x00, 0x09}; -//1.3.36.3.3.1.2.512.11 Teletrust signature algorithm rsaSignatureWithripemd160_l512_l11 -static const unsigned char cvOID_rsaSignatureWithripemd160_l512_l11 [] = { 0x2B, 0x24, 0x03, 0x03, 0x01, 0x02, 0x84, 0x00, 0x11}; -//1.3.36.3.3.1.2.640.11 Teletrust signature algorithm rsaSignatureWithripemd160_l640_l11 -static const unsigned char cvOID_rsaSignatureWithripemd160_l640_l11 [] = { 0x2B, 0x24, 0x03, 0x03, 0x01, 0x02, 0x85, 0x00, 0x11}; -//1.3.36.3.3.1.2.768.11 Teletrust signature algorithm rsaSignatureWithripemd160_l768_l11 -static const unsigned char cvOID_rsaSignatureWithripemd160_l768_l11 [] = { 0x2B, 0x24, 0x03, 0x03, 0x01, 0x02, 0x86, 0x00, 0x11}; -//1.3.36.3.3.1.2.896.11 Teletrust signature algorithm rsaSignatureWithripemd160_l896_l11 -static const unsigned char cvOID_rsaSignatureWithripemd160_l896_l11 [] = { 0x2B, 0x24, 0x03, 0x03, 0x01, 0x02, 0x87, 0x00, 0x11}; -//1.3.36.3.3.1.2.1024.11 Teletrust signature algorithm rsaSignatureWithripemd160_l1024_l11 -static const unsigned char cvOID_rsaSignatureWithripemd160_l1024_l11 [] = { 0x2B, 0x24, 0x03, 0x03, 0x01, 0x02, 0x88, 0x00, 0x11}; -//1.3.36.3.3.1.3 Teletrust signature algorithm rsaSignatureWithrimpemd128 -static const unsigned char cvOID_rsaSignatureWithrimpemd128 [] = { 0x2B, 0x24, 0x03, 0x03, 0x01, 0x03}; -//1.3.36.3.3.1.4 Teletrust signature algorithm rsaSignatureWithrimpemd256 -static const unsigned char cvOID_rsaSignatureWithrimpemd256 [] = { 0x2B, 0x24, 0x03, 0x03, 0x01, 0x04}; -//1.3.36.3.3.2 Teletrust signature algorithm ecsieSign -static const unsigned char cvOID_ecsieSign [] = { 0x2B, 0x24, 0x03, 0x03, 0x02}; -//1.3.36.3.3.2.1 Teletrust signature algorithm ecsieSignWithsha1 -static const unsigned char cvOID_ecsieSignWithsha1 [] = { 0x2B, 0x24, 0x03, 0x03, 0x02, 0x01}; -//1.3.36.3.3.2.2 Teletrust signature algorithm ecsieSignWithripemd160 -static const unsigned char cvOID_ecsieSignWithripemd160 [] = { 0x2B, 0x24, 0x03, 0x03, 0x02, 0x02}; -//1.3.36.3.3.2.3 Teletrust signature algorithm ecsieSignWithmd2 -static const unsigned char cvOID_ecsieSignWithmd2 [] = { 0x2B, 0x24, 0x03, 0x03, 0x02, 0x03}; -//1.3.36.3.3.2.4 Teletrust signature algorithm ecsieSignWithmd5 -static const unsigned char cvOID_ecsieSignWithmd5 [] = { 0x2B, 0x24, 0x03, 0x03, 0x02, 0x04}; -//1.3.36.3.4 Teletrust algorithm signatureScheme -static const unsigned char cvOID_signatureScheme [] = { 0x2B, 0x24, 0x03, 0x04}; -//1.3.36.3.4.1 Teletrust signature scheme sigS_ISO9796-1 -static const unsigned char cvOID_sigS_ISO9796_1 [] = { 0x2B, 0x24, 0x03, 0x04, 0x01}; -//1.3.36.3.4.2 Teletrust signature scheme sigS_ISO9796-2 -static const unsigned char cvOID_sigS_ISO9796_2 [] = { 0x2B, 0x24, 0x03, 0x04, 0x02}; -//1.3.36.3.4.2.1 Teletrust signature scheme. Unsure what this is supposed to be sigS_ISO9796-2Withred -static const unsigned char cvOID_sigS_ISO9796_2Withred [] = { 0x2B, 0x24, 0x03, 0x04, 0x02, 0x01}; -//1.3.36.3.4.2.2 Teletrust signature scheme. Unsure what this is supposed to be sigS_ISO9796-2Withrsa -static const unsigned char cvOID_sigS_ISO9796_2Withrsa [] = { 0x2B, 0x24, 0x03, 0x04, 0x02, 0x02}; -//1.3.36.3.4.2.3 Teletrust signature scheme. 9796-2 with random number in padding field sigS_ISO9796-2Withrnd -static const unsigned char cvOID_sigS_ISO9796_2Withrnd [] = { 0x2B, 0x24, 0x03, 0x04, 0x02, 0x03}; -//1.3.36.4 Teletrust attribute attribute -static const unsigned char cvOID_attribute_Teletrust [] = { 0x2B, 0x24, 0x04}; -//1.3.36.5 Teletrust policy policy -static const unsigned char cvOID_policy [] = { 0x2B, 0x24, 0x05}; -//1.3.36.6 Teletrust API api -static const unsigned char cvOID_api [] = { 0x2B, 0x24, 0x06}; -//1.3.36.6.1 Teletrust API manufacturer-specific_api -static const unsigned char cvOID_manufacturer_specific_api [] = { 0x2B, 0x24, 0x06, 0x01}; -//1.3.36.6.1.1 Teletrust API utimaco-api -static const unsigned char cvOID_utimaco_api [] = { 0x2B, 0x24, 0x06, 0x01, 0x01}; -//1.3.36.6.2 Teletrust API functionality-specific_api -static const unsigned char cvOID_functionality_specific_api [] = { 0x2B, 0x24, 0x06, 0x02}; -//1.3.36.7 Teletrust key management keymgmnt -static const unsigned char cvOID_keymgmnt [] = { 0x2B, 0x24, 0x07}; -//1.3.36.7.1 Teletrust key management keyagree -static const unsigned char cvOID_keyagree [] = { 0x2B, 0x24, 0x07, 0x01}; -//1.3.36.7.1.1 Teletrust key management bsiPKE -static const unsigned char cvOID_bsiPKE [] = { 0x2B, 0x24, 0x07, 0x01, 0x01}; -//1.3.36.7.2 Teletrust key management keytrans -static const unsigned char cvOID_keytrans [] = { 0x2B, 0x24, 0x07, 0x02}; -//1.3.36.7.2.1 Teletrust key management. 9796-2 with key stored in hash field encISO9796-2Withrsa -static const unsigned char cvOID_encISO9796_2Withrsa [] = { 0x2B, 0x24, 0x07, 0x02, 0x01}; -//1.3.36.8.1.1 Teletrust policy sigiSigConform -static const unsigned char cvOID_sigiSigConform [] = { 0x2B, 0x24, 0x08, 0x01, 0x01}; -//1.3.36.8.2.1 Teletrust extended key usage directoryService -static const unsigned char cvOID_directoryService [] = { 0x2B, 0x24, 0x08, 0x02, 0x01}; -//1.3.36.8.3.1 Teletrust attribute dateOfCertGen -static const unsigned char cvOID_dateOfCertGen [] = { 0x2B, 0x24, 0x08, 0x03, 0x01}; -//1.3.36.8.3.2 Teletrust attribute procuration -static const unsigned char cvOID_procuration [] = { 0x2B, 0x24, 0x08, 0x03, 0x02}; -//1.3.36.8.3.3 Teletrust attribute admission -static const unsigned char cvOID_admission [] = { 0x2B, 0x24, 0x08, 0x03, 0x03}; -//1.3.36.8.3.4 Teletrust attribute monetaryLimit -static const unsigned char cvOID_monetaryLimit [] = { 0x2B, 0x24, 0x08, 0x03, 0x04}; -//1.3.36.8.3.5 Teletrust attribute declarationOfMajority -static const unsigned char cvOID_declarationOfMajority [] = { 0x2B, 0x24, 0x08, 0x03, 0x05}; -//1.3.36.8.3.6 Teletrust attribute integratedCircuitCardSerialNumber -static const unsigned char cvOID_integratedCircuitCardSerialNumber [] = { 0x2B, 0x24, 0x08, 0x03, 0x06}; -//1.3.36.8.3.7 Teletrust attribute pKReference -static const unsigned char cvOID_pKReference [] = { 0x2B, 0x24, 0x08, 0x03, 0x07}; -//1.3.36.8.3.8 Teletrust attribute restriction -static const unsigned char cvOID_restriction_1 [] = { 0x2B, 0x24, 0x08, 0x03, 0x08}; -//1.3.36.8.3.9 Teletrust attribute retrieveIfAllowed -static const unsigned char cvOID_retrieveIfAllowed [] = { 0x2B, 0x24, 0x08, 0x03, 0x09}; -//1.3.36.8.3.10 Teletrust attribute requestedCertificate -static const unsigned char cvOID_requestedCertificate [] = { 0x2B, 0x24, 0x08, 0x03, 0x0A}; -//1.3.36.8.3.11 Teletrust attribute namingAuthorities -static const unsigned char cvOID_namingAuthorities [] = { 0x2B, 0x24, 0x08, 0x03, 0x0B}; -//1.3.36.8.3.12 Teletrust attribute certInDirSince -static const unsigned char cvOID_certInDirSince [] = { 0x2B, 0x24, 0x08, 0x03, 0x0C}; -//1.3.36.8.3.13 Teletrust attribute certHash -static const unsigned char cvOID_certHash [] = { 0x2B, 0x24, 0x08, 0x03, 0x0D}; -//1.3.36.8.4.1 Teletrust OtherName attribute personalData -static const unsigned char cvOID_personalData [] = { 0x2B, 0x24, 0x08, 0x04, 0x01}; -//1.3.36.8.4.8 Teletrust attribute certificate attribute restriction -static const unsigned char cvOID_restriction_2 [] = { 0x2B, 0x24, 0x08, 0x04, 0x08}; -//1.3.36.8.5.1.1.1 Teletrust signature algorithm rsaIndicateSHA1 -static const unsigned char cvOID_rsaIndicateSHA1 [] = { 0x2B, 0x24, 0x08, 0x05, 0x01, 0x01, 0x01}; -//1.3.36.8.5.1.1.2 Teletrust signature algorithm rsaIndicateRIPEMD160 -static const unsigned char cvOID_rsaIndicateRIPEMD160 [] = { 0x2B, 0x24, 0x08, 0x05, 0x01, 0x01, 0x02}; -//1.3.36.8.5.1.1.3 Teletrust signature algorithm rsaWithSHA1 -static const unsigned char cvOID_rsaWithSHA1 [] = { 0x2B, 0x24, 0x08, 0x05, 0x01, 0x01, 0x03}; -//1.3.36.8.5.1.1.4 Teletrust signature algorithm rsaWithRIPEMD160 -static const unsigned char cvOID_rsaWithRIPEMD160 [] = { 0x2B, 0x24, 0x08, 0x05, 0x01, 0x01, 0x04}; -//1.3.36.8.5.1.2.1 Teletrust signature algorithm dsaExtended -static const unsigned char cvOID_dsaExtended [] = { 0x2B, 0x24, 0x08, 0x05, 0x01, 0x02, 0x01}; -//1.3.36.8.5.1.2.2 Teletrust signature algorithm dsaWithRIPEMD160 -static const unsigned char cvOID_dsaWithRIPEMD160 [] = { 0x2B, 0x24, 0x08, 0x05, 0x01, 0x02, 0x02}; -//1.3.36.8.6.1 Teletrust signature attributes cert -static const unsigned char cvOID_cert [] = { 0x2B, 0x24, 0x08, 0x06, 0x01}; -//1.3.36.8.6.2 Teletrust signature attributes certRef -static const unsigned char cvOID_certRef [] = { 0x2B, 0x24, 0x08, 0x06, 0x02}; -//1.3.36.8.6.3 Teletrust signature attributes attrCert -static const unsigned char cvOID_attrCert [] = { 0x2B, 0x24, 0x08, 0x06, 0x03}; -//1.3.36.8.6.4 Teletrust signature attributes attrRef -static const unsigned char cvOID_attrRef [] = { 0x2B, 0x24, 0x08, 0x06, 0x04}; -//1.3.36.8.6.5 Teletrust signature attributes fileName -static const unsigned char cvOID_fileName [] = { 0x2B, 0x24, 0x08, 0x06, 0x05}; -//1.3.36.8.6.6 Teletrust signature attributes storageTime -static const unsigned char cvOID_storageTime [] = { 0x2B, 0x24, 0x08, 0x06, 0x06}; -//1.3.36.8.6.7 Teletrust signature attributes fileSize -static const unsigned char cvOID_fileSize [] = { 0x2B, 0x24, 0x08, 0x06, 0x07}; -//1.3.36.8.6.8 Teletrust signature attributes location -static const unsigned char cvOID_location [] = { 0x2B, 0x24, 0x08, 0x06, 0x08}; -//1.3.36.8.6.9 Teletrust signature attributes sigNumber -static const unsigned char cvOID_sigNumber [] = { 0x2B, 0x24, 0x08, 0x06, 0x09}; -//1.3.36.8.6.10 Teletrust signature attributes autoGen -static const unsigned char cvOID_autoGen [] = { 0x2B, 0x24, 0x08, 0x06, 0x0A}; -//1.3.36.8.7.1.1 Teletrust presentation types ptAdobeILL -static const unsigned char cvOID_ptAdobeILL [] = { 0x2B, 0x24, 0x08, 0x07, 0x01, 0x01}; -//1.3.36.8.7.1.2 Teletrust presentation types ptAmiPro -static const unsigned char cvOID_ptAmiPro [] = { 0x2B, 0x24, 0x08, 0x07, 0x01, 0x02}; -//1.3.36.8.7.1.3 Teletrust presentation types ptAutoCAD -static const unsigned char cvOID_ptAutoCAD [] = { 0x2B, 0x24, 0x08, 0x07, 0x01, 0x03}; -//1.3.36.8.7.1.4 Teletrust presentation types ptBinary -static const unsigned char cvOID_ptBinary [] = { 0x2B, 0x24, 0x08, 0x07, 0x01, 0x04}; -//1.3.36.8.7.1.5 Teletrust presentation types ptBMP -static const unsigned char cvOID_ptBMP [] = { 0x2B, 0x24, 0x08, 0x07, 0x01, 0x05}; -//1.3.36.8.7.1.6 Teletrust presentation types ptCGM -static const unsigned char cvOID_ptCGM [] = { 0x2B, 0x24, 0x08, 0x07, 0x01, 0x06}; -//1.3.36.8.7.1.7 Teletrust presentation types ptCorelCRT -static const unsigned char cvOID_ptCorelCRT [] = { 0x2B, 0x24, 0x08, 0x07, 0x01, 0x07}; -//1.3.36.8.7.1.8 Teletrust presentation types ptCorelDRW -static const unsigned char cvOID_ptCorelDRW [] = { 0x2B, 0x24, 0x08, 0x07, 0x01, 0x08}; -//1.3.36.8.7.1.9 Teletrust presentation types ptCorelEXC -static const unsigned char cvOID_ptCorelEXC [] = { 0x2B, 0x24, 0x08, 0x07, 0x01, 0x09}; -//1.3.36.8.7.1.10 Teletrust presentation types ptCorelPHT -static const unsigned char cvOID_ptCorelPHT [] = { 0x2B, 0x24, 0x08, 0x07, 0x01, 0x0A}; -//1.3.36.8.7.1.11 Teletrust presentation types ptDraw -static const unsigned char cvOID_ptDraw [] = { 0x2B, 0x24, 0x08, 0x07, 0x01, 0x0B}; -//1.3.36.8.7.1.12 Teletrust presentation types ptDVI -static const unsigned char cvOID_ptDVI [] = { 0x2B, 0x24, 0x08, 0x07, 0x01, 0x0C}; -//1.3.36.8.7.1.13 Teletrust presentation types ptEPS -static const unsigned char cvOID_ptEPS [] = { 0x2B, 0x24, 0x08, 0x07, 0x01, 0x0D}; -//1.3.36.8.7.1.14 Teletrust presentation types ptExcel -static const unsigned char cvOID_ptExcel [] = { 0x2B, 0x24, 0x08, 0x07, 0x01, 0x0E}; -//1.3.36.8.7.1.15 Teletrust presentation types ptGEM -static const unsigned char cvOID_ptGEM [] = { 0x2B, 0x24, 0x08, 0x07, 0x01, 0x0F}; -//1.3.36.8.7.1.16 Teletrust presentation types ptGIF -static const unsigned char cvOID_ptGIF [] = { 0x2B, 0x24, 0x08, 0x07, 0x01, 0x10}; -//1.3.36.8.7.1.17 Teletrust presentation types ptHPGL -static const unsigned char cvOID_ptHPGL [] = { 0x2B, 0x24, 0x08, 0x07, 0x01, 0x11}; -//1.3.36.8.7.1.18 Teletrust presentation types ptJPEG -static const unsigned char cvOID_ptJPEG [] = { 0x2B, 0x24, 0x08, 0x07, 0x01, 0x12}; -//1.3.36.8.7.1.19 Teletrust presentation types ptKodak -static const unsigned char cvOID_ptKodak [] = { 0x2B, 0x24, 0x08, 0x07, 0x01, 0x13}; -//1.3.36.8.7.1.20 Teletrust presentation types ptLaTeX -static const unsigned char cvOID_ptLaTeX [] = { 0x2B, 0x24, 0x08, 0x07, 0x01, 0x14}; -//1.3.36.8.7.1.21 Teletrust presentation types ptLotus -static const unsigned char cvOID_ptLotus [] = { 0x2B, 0x24, 0x08, 0x07, 0x01, 0x15}; -//1.3.36.8.7.1.22 Teletrust presentation types ptLotusPIC -static const unsigned char cvOID_ptLotusPIC [] = { 0x2B, 0x24, 0x08, 0x07, 0x01, 0x16}; -//1.3.36.8.7.1.23 Teletrust presentation types ptMacPICT -static const unsigned char cvOID_ptMacPICT [] = { 0x2B, 0x24, 0x08, 0x07, 0x01, 0x17}; -//1.3.36.8.7.1.24 Teletrust presentation types ptMacWord -static const unsigned char cvOID_ptMacWord [] = { 0x2B, 0x24, 0x08, 0x07, 0x01, 0x18}; -//1.3.36.8.7.1.25 Teletrust presentation types ptMSWfD -static const unsigned char cvOID_ptMSWfD [] = { 0x2B, 0x24, 0x08, 0x07, 0x01, 0x19}; -//1.3.36.8.7.1.26 Teletrust presentation types ptMSWord -static const unsigned char cvOID_ptMSWord [] = { 0x2B, 0x24, 0x08, 0x07, 0x01, 0x1A}; -//1.3.36.8.7.1.27 Teletrust presentation types ptMSWord2 -static const unsigned char cvOID_ptMSWord2 [] = { 0x2B, 0x24, 0x08, 0x07, 0x01, 0x1B}; -//1.3.36.8.7.1.28 Teletrust presentation types ptMSWord6 -static const unsigned char cvOID_ptMSWord6 [] = { 0x2B, 0x24, 0x08, 0x07, 0x01, 0x1C}; -//1.3.36.8.7.1.29 Teletrust presentation types ptMSWord8 -static const unsigned char cvOID_ptMSWord8 [] = { 0x2B, 0x24, 0x08, 0x07, 0x01, 0x1D}; -//1.3.36.8.7.1.30 Teletrust presentation types ptPDF -static const unsigned char cvOID_ptPDF [] = { 0x2B, 0x24, 0x08, 0x07, 0x01, 0x1E}; -//1.3.36.8.7.1.31 Teletrust presentation types ptPIF -static const unsigned char cvOID_ptPIF [] = { 0x2B, 0x24, 0x08, 0x07, 0x01, 0x1F}; -//1.3.36.8.7.1.32 Teletrust presentation types ptPostscript -static const unsigned char cvOID_ptPostscript [] = { 0x2B, 0x24, 0x08, 0x07, 0x01, 0x20}; -//1.3.36.8.7.1.33 Teletrust presentation types ptRTF -static const unsigned char cvOID_ptRTF [] = { 0x2B, 0x24, 0x08, 0x07, 0x01, 0x21}; -//1.3.36.8.7.1.34 Teletrust presentation types ptSCITEX -static const unsigned char cvOID_ptSCITEX [] = { 0x2B, 0x24, 0x08, 0x07, 0x01, 0x22}; -//1.3.36.8.7.1.35 Teletrust presentation types ptTAR -static const unsigned char cvOID_ptTAR [] = { 0x2B, 0x24, 0x08, 0x07, 0x01, 0x23}; -//1.3.36.8.7.1.36 Teletrust presentation types ptTarga -static const unsigned char cvOID_ptTarga [] = { 0x2B, 0x24, 0x08, 0x07, 0x01, 0x24}; -//1.3.36.8.7.1.37 Teletrust presentation types ptTeX -static const unsigned char cvOID_ptTeX [] = { 0x2B, 0x24, 0x08, 0x07, 0x01, 0x25}; -//1.3.36.8.7.1.38 Teletrust presentation types ptText -static const unsigned char cvOID_ptText [] = { 0x2B, 0x24, 0x08, 0x07, 0x01, 0x26}; -//1.3.36.8.7.1.39 Teletrust presentation types ptTIFF -static const unsigned char cvOID_ptTIFF [] = { 0x2B, 0x24, 0x08, 0x07, 0x01, 0x27}; -//1.3.36.8.7.1.40 Teletrust presentation types ptTIFF-FC -static const unsigned char cvOID_ptTIFF_FC [] = { 0x2B, 0x24, 0x08, 0x07, 0x01, 0x28}; -//1.3.36.8.7.1.41 Teletrust presentation types ptUID -static const unsigned char cvOID_ptUID [] = { 0x2B, 0x24, 0x08, 0x07, 0x01, 0x29}; -//1.3.36.8.7.1.42 Teletrust presentation types ptUUEncode -static const unsigned char cvOID_ptUUEncode [] = { 0x2B, 0x24, 0x08, 0x07, 0x01, 0x2A}; -//1.3.36.8.7.1.43 Teletrust presentation types ptWMF -static const unsigned char cvOID_ptWMF [] = { 0x2B, 0x24, 0x08, 0x07, 0x01, 0x2B}; -//1.3.36.8.7.1.44 Teletrust presentation types ptWordPerfect -static const unsigned char cvOID_ptWordPerfect [] = { 0x2B, 0x24, 0x08, 0x07, 0x01, 0x2C}; -//1.3.36.8.7.1.45 Teletrust presentation types ptWPGrph -static const unsigned char cvOID_ptWPGrph [] = { 0x2B, 0x24, 0x08, 0x07, 0x01, 0x2D}; -//1.3.101.1.4 Thawte thawte-ce -static const unsigned char cvOID_thawte_ce [] = { 0x2B, 0x65, 0x01, 0x04}; -//1.3.101.1.4.1 Thawte certificate extension strongExtranet -static const unsigned char cvOID_strongExtranet [] = { 0x2B, 0x65, 0x01, 0x04, 0x01}; -//2.5.4.0 X.520 id-at (2 5 4) objectClass -static const unsigned char cvOID_objectClass [] = { 0x55, 0x04, 0x00}; -//2.5.4.1 X.520 id-at (2 5 4) aliasedEntryName -static const unsigned char cvOID_aliasedEntryName [] = { 0x55, 0x04, 0x01}; -//2.5.4.2 X.520 id-at (2 5 4) knowledgeInformation -static const unsigned char cvOID_knowledgeInformation [] = { 0x55, 0x04, 0x02}; -//2.5.4.3 X.520 id-at (2 5 4) commonName -static const unsigned char cvOID_commonName [] = { 0x55, 0x04, 0x03}; -//2.5.4.4 X.520 id-at (2 5 4) surname -static const unsigned char cvOID_surname [] = { 0x55, 0x04, 0x04}; -//2.5.4.5 X.520 id-at (2 5 4) serialNumber -static const unsigned char cvOID_serialNumber [] = { 0x55, 0x04, 0x05}; -//2.5.4.6 X.520 id-at (2 5 4) countryName -static const unsigned char cvOID_countryName [] = { 0x55, 0x04, 0x06}; -//2.5.4.7 X.520 id-at (2 5 4) localityName -static const unsigned char cvOID_localityName [] = { 0x55, 0x04, 0x07}; -//2.5.4.7.1 X.520 id-at (2 5 4) collectiveLocalityName -static const unsigned char cvOID_collectiveLocalityName [] = { 0x55, 0x04, 0x07, 0x01}; -//2.5.4.8 X.520 id-at (2 5 4) stateOrProvinceName -static const unsigned char cvOID_stateOrProvinceName [] = { 0x55, 0x04, 0x08}; -//2.5.4.8.1 X.520 id-at (2 5 4) collectiveStateOrProvinceName -static const unsigned char cvOID_collectiveStateOrProvinceName [] = { 0x55, 0x04, 0x08, 0x01}; -//2.5.4.9 X.520 id-at (2 5 4) streetAddress -static const unsigned char cvOID_streetAddress [] = { 0x55, 0x04, 0x09}; -//2.5.4.9.1 X.520 id-at (2 5 4) collectiveStreetAddress -static const unsigned char cvOID_collectiveStreetAddress [] = { 0x55, 0x04, 0x09, 0x01}; -//2.5.4.10 X.520 id-at (2 5 4) organizationName -static const unsigned char cvOID_organizationName [] = { 0x55, 0x04, 0x0A}; -//2.5.4.10.1 X.520 id-at (2 5 4) collectiveOrganizationName -static const unsigned char cvOID_collectiveOrganizationName [] = { 0x55, 0x04, 0x0A, 0x01}; -//2.5.4.11 X.520 id-at (2 5 4) organizationalUnitName -static const unsigned char cvOID_organizationalUnitName [] = { 0x55, 0x04, 0x0B}; -//2.5.4.11.1 X.520 id-at (2 5 4) collectiveOrganizationalUnitName -static const unsigned char cvOID_collectiveOrganizationalUnitName [] = { 0x55, 0x04, 0x0B, 0x01}; -//2.5.4.12 X.520 id-at (2 5 4) title -static const unsigned char cvOID_title [] = { 0x55, 0x04, 0x0C}; -//2.5.4.13 X.520 id-at (2 5 4) description -static const unsigned char cvOID_description [] = { 0x55, 0x04, 0x0D}; -//2.5.4.14 X.520 id-at (2 5 4) searchGuide -static const unsigned char cvOID_searchGuide [] = { 0x55, 0x04, 0x0E}; -//2.5.4.15 X.520 id-at (2 5 4) businessCategory -static const unsigned char cvOID_businessCategory [] = { 0x55, 0x04, 0x0F}; -//2.5.4.16 X.520 id-at (2 5 4) postalAddress -static const unsigned char cvOID_postalAddress [] = { 0x55, 0x04, 0x10}; -//2.5.4.16.1 X.520 id-at (2 5 4) collectivePostalAddress -static const unsigned char cvOID_collectivePostalAddress [] = { 0x55, 0x04, 0x10, 0x01}; -//2.5.4.17 X.520 id-at (2 5 4) postalCode -static const unsigned char cvOID_postalCode [] = { 0x55, 0x04, 0x11}; -//2.5.4.17.1 X.520 id-at (2 5 4) collectivePostalCode -static const unsigned char cvOID_collectivePostalCode [] = { 0x55, 0x04, 0x11, 0x01}; -//2.5.4.18 X.520 id-at (2 5 4) postOfficeBox -static const unsigned char cvOID_postOfficeBox [] = { 0x55, 0x04, 0x12}; -//2.5.4.18.1 X.520 id-at (2 5 4) collectivePostOfficeBox -static const unsigned char cvOID_collectivePostOfficeBox [] = { 0x55, 0x04, 0x12, 0x01}; -//2.5.4.19 X.520 id-at (2 5 4) physicalDeliveryOfficeName -static const unsigned char cvOID_physicalDeliveryOfficeName [] = { 0x55, 0x04, 0x13}; -//2.5.4.19.1 X.520 id-at (2 5 4) collectivePhysicalDeliveryOfficeName -static const unsigned char cvOID_collectivePhysicalDeliveryOfficeName [] = { 0x55, 0x04, 0x13, 0x01}; -//2.5.4.20 X.520 id-at (2 5 4) telephoneNumber -static const unsigned char cvOID_telephoneNumber [] = { 0x55, 0x04, 0x14}; -//2.5.4.20.1 X.520 id-at (2 5 4) collectiveTelephoneNumber -static const unsigned char cvOID_collectiveTelephoneNumber [] = { 0x55, 0x04, 0x14, 0x01}; -//2.5.4.21 X.520 id-at (2 5 4) telexNumber -static const unsigned char cvOID_telexNumber [] = { 0x55, 0x04, 0x15}; -//2.5.4.21.1 X.520 id-at (2 5 4) collectiveTelexNumber -static const unsigned char cvOID_collectiveTelexNumber [] = { 0x55, 0x04, 0x15, 0x01}; -//2.5.4.22 X.520 id-at (2 5 4) teletexTerminalIdentifier -static const unsigned char cvOID_teletexTerminalIdentifier [] = { 0x55, 0x04, 0x16}; -//2.5.4.22.1 X.520 id-at (2 5 4) collectiveTeletexTerminalIdentifier -static const unsigned char cvOID_collectiveTeletexTerminalIdentifier [] = { 0x55, 0x04, 0x16, 0x01}; -//2.5.4.23 X.520 id-at (2 5 4) facsimileTelephoneNumber -static const unsigned char cvOID_facsimileTelephoneNumber [] = { 0x55, 0x04, 0x17}; -//2.5.4.23.1 X.520 id-at (2 5 4) collectiveFacsimileTelephoneNumber -static const unsigned char cvOID_collectiveFacsimileTelephoneNumber [] = { 0x55, 0x04, 0x17, 0x01}; -//2.5.4.24 X.520 id-at (2 5 4) x121Address -static const unsigned char cvOID_x121Address [] = { 0x55, 0x04, 0x18}; -//2.5.4.25 X.520 id-at (2 5 4) internationalISDNNumber -static const unsigned char cvOID_internationalISDNNumber [] = { 0x55, 0x04, 0x19}; -//2.5.4.25.1 X.520 id-at (2 5 4) collectiveInternationalISDNNumber -static const unsigned char cvOID_collectiveInternationalISDNNumber [] = { 0x55, 0x04, 0x19, 0x01}; -//2.5.4.26 X.520 id-at (2 5 4) registeredAddress -static const unsigned char cvOID_registeredAddress [] = { 0x55, 0x04, 0x1A}; -//2.5.4.27 X.520 id-at (2 5 4) destinationIndicator -static const unsigned char cvOID_destinationIndicator [] = { 0x55, 0x04, 0x1B}; -//2.5.4.28 X.520 id-at (2 5 4) preferredDeliveryMehtod -static const unsigned char cvOID_preferredDeliveryMehtod [] = { 0x55, 0x04, 0x1C}; -//2.5.4.29 X.520 id-at (2 5 4) presentationAddress -static const unsigned char cvOID_presentationAddress [] = { 0x55, 0x04, 0x1D}; -//2.5.4.30 X.520 id-at (2 5 4) supportedApplicationContext -static const unsigned char cvOID_supportedApplicationContext [] = { 0x55, 0x04, 0x1E}; -//2.5.4.31 X.520 id-at (2 5 4) member -static const unsigned char cvOID_member [] = { 0x55, 0x04, 0x1F}; -//2.5.4.32 X.520 id-at (2 5 4) owner -static const unsigned char cvOID_owner [] = { 0x55, 0x04, 0x20}; -//2.5.4.33 X.520 id-at (2 5 4) roleOccupant -static const unsigned char cvOID_roleOccupant [] = { 0x55, 0x04, 0x21}; -//2.5.4.34 X.520 id-at (2 5 4) seeAlso -static const unsigned char cvOID_seeAlso [] = { 0x55, 0x04, 0x22}; -//2.5.4.35 X.520 id-at (2 5 4) userPassword -static const unsigned char cvOID_userPassword [] = { 0x55, 0x04, 0x23}; -//2.5.4.36 X.520 id-at (2 5 4) userCertificate -static const unsigned char cvOID_userCertificate [] = { 0x55, 0x04, 0x24}; -//2.5.4.37 X.520 id-at (2 5 4) caCertificate -static const unsigned char cvOID_caCertificate [] = { 0x55, 0x04, 0x25}; -//2.5.4.38 X.520 id-at (2 5 4) authorityRevocationList -static const unsigned char cvOID_authorityRevocationList [] = { 0x55, 0x04, 0x26}; -//2.5.4.39 X.520 id-at (2 5 4) certificateRevocationList -static const unsigned char cvOID_certificateRevocationList [] = { 0x55, 0x04, 0x27}; -//2.5.4.40 X.520 id-at (2 5 4) crossCertificatePair -static const unsigned char cvOID_crossCertificatePair_2 [] = { 0x55, 0x04, 0x28}; -//2.5.4.41 X.520 id-at (2 5 4) name -static const unsigned char cvOID_name [] = { 0x55, 0x04, 0x29}; -//2.5.4.42 X.520 id-at (2 5 4) givenName -static const unsigned char cvOID_givenName [] = { 0x55, 0x04, 0x2A}; -//2.5.4.43 X.520 id-at (2 5 4) initials -static const unsigned char cvOID_initials [] = { 0x55, 0x04, 0x2B}; -//2.5.4.44 X.520 id-at (2 5 4) generationQualifier -static const unsigned char cvOID_generationQualifier [] = { 0x55, 0x04, 0x2C}; -//2.5.4.45 X.520 id-at (2 5 4) uniqueIdentifier -static const unsigned char cvOID_uniqueIdentifier [] = { 0x55, 0x04, 0x2D}; -//2.5.4.46 X.520 id-at (2 5 4) dnQualifier -static const unsigned char cvOID_dnQualifier [] = { 0x55, 0x04, 0x2E}; -//2.5.4.47 X.520 id-at (2 5 4) enhancedSearchGuide -static const unsigned char cvOID_enhancedSearchGuide [] = { 0x55, 0x04, 0x2F}; -//2.5.4.48 X.520 id-at (2 5 4) protocolInformation -static const unsigned char cvOID_protocolInformation [] = { 0x55, 0x04, 0x30}; -//2.5.4.49 X.520 id-at (2 5 4) distinguishedName -static const unsigned char cvOID_distinguishedName [] = { 0x55, 0x04, 0x31}; -//2.5.4.50 X.520 id-at (2 5 4) uniqueMember -static const unsigned char cvOID_uniqueMember [] = { 0x55, 0x04, 0x32}; -//2.5.4.51 X.520 id-at (2 5 4) houseIdentifier -static const unsigned char cvOID_houseIdentifier [] = { 0x55, 0x04, 0x33}; -//2.5.4.52 X.520 id-at (2 5 4) supportedAlgorithms -static const unsigned char cvOID_supportedAlgorithms [] = { 0x55, 0x04, 0x34}; -//2.5.4.53 X.520 id-at (2 5 4) deltaRevocationList -static const unsigned char cvOID_deltaRevocationList [] = { 0x55, 0x04, 0x35}; -//2.5.4.55 X.520 id-at (2 5 4) clearance -static const unsigned char cvOID_clearance [] = { 0x55, 0x04, 0x36}; -//2.5.4.58 X.520 id-at (2 5 4) crossCertificatePair -static const unsigned char cvOID_crossCertificatePair_1 [] = { 0x55, 0x04, 0x3A}; -//2.5.4.65 Naming attributes of type X520Pseudonym -static const unsigned char cvOID_pseudonym[] = { 0x55, 0x04, 0x41}; -//2.5.8.1.1 X.500 algorithms. Ambiguous, since no padding rules specified rsa -static const unsigned char cvOID_rsa_X500 [] = { 0x55, 0x08, 0x01, 0x01}; -//2.5.29.1 X.509 id-ce (2 5 29). Deprecated, use (2 5 29 35) instead authorityKeyIdentifier -static const unsigned char cvOID_authorityKeyIdentifier_old[] = { 0x55, 0x1D, 0x01}; -//2.5.29.2 X.509 id-ce (2 5 29). Obsolete, use keyUsage/extKeyUsage instead keyAttributes -static const unsigned char cvOID_keyAttributes [] = { 0x55, 0x1D, 0x02}; -//2.5.29.3 X.509 id-ce (2 5 29). Deprecated, use (2 5 29 32) instead certificatePolicies -static const unsigned char cvOID_certificatePolicies_old [] = { 0x55, 0x1D, 0x03}; -//2.5.29.4 X.509 id-ce (2 5 29). Obsolete, use keyUsage/extKeyUsage instead keyUsageRestriction -static const unsigned char cvOID_keyUsageRestriction [] = { 0x55, 0x1D, 0x04}; -//2.5.29.5 X.509 id-ce (2 5 29). Deprecated, use (2 5 29 33) instead policyMapping -static const unsigned char cvOID_policyMapping [] = { 0x55, 0x1D, 0x05}; -//2.5.29.6 X.509 id-ce (2 5 29). Obsolete, use namestatic constraints instead subtreesstatic constraint -static const unsigned char cvOID_subtreesconstraint [] = { 0x55, 0x1D, 0x06}; -//2.5.29.7 X.509 id-ce (2 5 29). Deprecated, use (2 5 29 17) instead subjectAltName -static const unsigned char cvOID_subjectAltName_old [] = { 0x55, 0x1D, 0x07}; -//2.5.29.8 X.509 id-ce (2 5 29). Deprecated, use (2 5 29 18) instead issuerAltName -static const unsigned char cvOID_issuerAltName_old [] = { 0x55, 0x1D, 0x08}; -//2.5.29.9 X.509 id-ce (2 5 29) subjectDirectoryAttributes -static const unsigned char cvOID_subjectDirectoryAttributes [] = { 0x55, 0x1D, 0x09}; -//2.5.29.10 X.509 id-ce (2 5 29). Deprecated, use (2 5 29 19) instead basicstatic constraints -static const unsigned char cvOID_basicconstraints_old [] = { 0x55, 0x1D, 0x0A}; -//2.5.29.11 X.509 id-ce (2 5 29). Deprecated, use (2 5 29 30) instead namestatic constraints -static const unsigned char cvOID_nameconstraints_old [] = { 0x55, 0x1D, 0x0B}; -//2.5.29.12 X.509 id-ce (2 5 29). Deprecated, use (2 5 29 36) instead policystatic constraints -static const unsigned char cvOID_policyconstraints_old_1 [] = { 0x55, 0x1D, 0x0C}; -//2.5.29.13 X.509 id-ce (2 5 29). Deprecated, use (2 5 29 19) instead basicstatic constraints -static const unsigned char cvOID_basicconstraints_2 [] = { 0x55, 0x1D, 0x0D}; -//2.5.29.14 X.509 id-ce (2 5 29) subjectKeyIdentifier -static const unsigned char cvOID_subjectKeyIdentifier[] = { 0x55, 0x1D, 0x0E}; -//2.5.29.15 X.509 id-ce (2 5 29) keyUsage -static const unsigned char cvOID_keyUsage[] = { 0x55, 0x1D, 0x0F}; -//2.5.29.16 X.509 id-ce (2 5 29) privateKeyUsagePeriod -static const unsigned char cvOID_privateKeyUsagePeriod [] = { 0x55, 0x1D, 0x10}; -//2.5.29.17 X.509 id-ce (2 5 29) subjectAltName -static const unsigned char cvOID_subjectAltName [] = { 0x55, 0x1D, 0x11}; -//2.5.29.18 X.509 id-ce (2 5 29) issuerAltName -static const unsigned char cvOID_issuerAltName [] = { 0x55, 0x1D, 0x12}; -//2.5.29.19 X.509 id-ce (2 5 29) basicstatic constraints -static const unsigned char cvOID_basicconstraints[] = { 0x55, 0x1D, 0x13}; -//2.5.29.20 X.509 id-ce (2 5 29) cRLNumber -static const unsigned char cvOID_cRLNumber [] = { 0x55, 0x1D, 0x14}; -//2.5.29.21 X.509 id-ce (2 5 29) cRLReason -static const unsigned char cvOID_cRLReason [] = { 0x55, 0x1D, 0x15}; -//2.5.29.22 X.509 id-ce (2 5 29). Deprecated, alternative OID uncertain expirationDate -static const unsigned char cvOID_expirationDate [] = { 0x55, 0x1D, 0x16}; -//2.5.29.23 X.509 id-ce (2 5 29) instructionCode -static const unsigned char cvOID_instructionCode [] = { 0x55, 0x1D, 0x17}; -//2.5.29.24 X.509 id-ce (2 5 29) invalidityDate -static const unsigned char cvOID_invalidityDate [] = { 0x55, 0x1D, 0x18}; -//2.5.29.25 X.509 id-ce (2 5 29). Deprecated, use (2 5 29 31) instead cRLDistributionPoints -static const unsigned char cvOID_cRLDistributionPoints_old [] = { 0x55, 0x1D, 0x19}; -//2.5.29.26 X.509 id-ce (2 5 29). Deprecated, use (2 5 29 28) instead issuingDistributionPoint -static const unsigned char cvOID_issuingDistributionPoint_old [] = { 0x55, 0x1D, 0x1A}; -//2.5.29.27 X.509 id-ce (2 5 29) deltaCRLIndicator -static const unsigned char cvOID_deltaCRLIndicator [] = { 0x55, 0x1D, 0x1B}; -//2.5.29.28 X.509 id-ce (2 5 29) issuingDistributionPoint -static const unsigned char cvOID_issuingDistributionPoint [] = { 0x55, 0x1D, 0x1C}; -//2.5.29.29 X.509 id-ce (2 5 29) certificateIssuer -static const unsigned char cvOID_certificateIssuer [] = { 0x55, 0x1D, 0x1D}; -//2.5.29.30 X.509 id-ce (2 5 29) namestatic constraints -static const unsigned char cvOID_nameconstraints [] = { 0x55, 0x1D, 0x1E}; -//2.5.29.31 X.509 id-ce (2 5 29) cRLDistributionPoints -static const unsigned char cvOID_cRLDistributionPoints[] = { 0x55, 0x1D, 0x1F}; -//2.5.29.32 X.509 id-ce (2 5 29) certificatePolicies -static const unsigned char cvOID_certificatePolicies [] = { 0x55, 0x1D, 0x20}; -//2.5.29.32.0 X.509 id-ce (2 5 29.0) anyPolicies -static const unsigned char cvOID_anyPolicies [] = { 0x55, 0x1D, 0x20, 0x00}; -//2.5.29.33 X.509 id-ce (2 5 29) policyMappings -static const unsigned char cvOID_policyMappings [] = { 0x55, 0x1D, 0x21}; -//2.5.29.34 X.509 id-ce (2 5 29). Deprecated, use (2 5 29 36) instead policystatic constraints -static const unsigned char cvOID_policyconstraints_old_2 [] = { 0x55, 0x1D, 0x22}; -//2.5.29.35 X.509 id-ce (2 5 29) authorityKeyIdentifier -static const unsigned char cvOID_authorityKeyIdentifier [] = { 0x55, 0x1D, 0x23}; -//2.5.29.36 X.509 id-ce (2 5 29) policystatic constraints -static const unsigned char cvOID_policyconstraints [] = { 0x55, 0x1D, 0x24}; -//2.5.29.37 X.509 id-ce (2 5 29) extKeyUsage -static const unsigned char cvOID_extKeyUsage [] = { 0x55, 0x1D, 0x25}; -//2.5.29.37.0 anyExtendedKeyUsage id-ce-extKeyUsage 0 -static const unsigned char cvOID_anyExtendedKeyUsage [] = { 0x55, 0x1D, 0x25, 0x00}; -//ame -//2.5.29.46 X.509 id-ce (2 5 29) id-ce-freshestCRL -static const unsigned char cvOID_freshestCRL [] = { 0x55, 0x1D, 0x2E}; -//2.5.29.54 X.509 id-ce (2 5 29) inhibitAnyPolicy -static const unsigned char cvOID_inhibitAnyPolicy [] = { 0x55, 0x1D, 0x36}; - -//2.16.840.1.101.2.1.1.1 SDN.700 INFOSEC algorithms sdnsSignatureAlgorithm -static const unsigned char cvOID_sdnsSignatureAlgorithm [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x01, 0x01}; -//2.16.840.1.101.2.1.1.2 SDN.700 INFOSEC algorithms. Formerly known as mosaicSignatureAlgorithm, this OID is better known as dsaWithSHA-1. fortezzaSignatureAlgorithm -static const unsigned char cvOID_fortezzaSignatureAlgorithm [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x01, 0x02}; -//2.16.840.1.101.2.1.1.3 SDN.700 INFOSEC algorithms sdnsConfidentialityAlgorithm -static const unsigned char cvOID_sdnsConfidentialityAlgorithm [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x01, 0x03}; -//2.16.840.1.101.2.1.1.4 SDN.700 INFOSEC algorithms. Formerly known as mosaicConfidentialityAlgorithm fortezzaConfidentialityAlgorithm -static const unsigned char cvOID_fortezzaConfidentialityAlgorithm [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x01, 0x04}; -//2.16.840.1.101.2.1.1.5 SDN.700 INFOSEC algorithms sdnsIntegrityAlgorithm -static const unsigned char cvOID_sdnsIntegrityAlgorithm [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x01, 0x05}; -//2.16.840.1.101.2.1.1.6 SDN.700 INFOSEC algorithms. Formerly known as mosaicIntegrityAlgorithm fortezzaIntegrityAlgorithm -static const unsigned char cvOID_fortezzaIntegrityAlgorithm [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x01, 0x06}; -//2.16.840.1.101.2.1.1.7 SDN.700 INFOSEC algorithms sdnsTokenProtectionAlgorithm -static const unsigned char cvOID_sdnsTokenProtectionAlgorithm [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x01, 0x07}; -//2.16.840.1.101.2.1.1.8 SDN.700 INFOSEC algorithms. Formerly know as mosaicTokenProtectionAlgorithm fortezzaTokenProtectionAlgorithm -static const unsigned char cvOID_fortezzaTokenProtectionAlgorithm [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x01, 0x08}; -//2.16.840.1.101.2.1.1.9 SDN.700 INFOSEC algorithms sdnsKeyManagementAlgorithm -static const unsigned char cvOID_sdnsKeyManagementAlgorithm [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x01, 0x09}; -//2.16.840.1.101.2.1.1.10 SDN.700 INFOSEC algorithms. Formerly known as mosaicKeyManagementAlgorithm fortezzaKeyManagementAlgorithm -static const unsigned char cvOID_fortezzaKeyManagementAlgorithm [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x01, 0x0A}; -//2.16.840.1.101.2.1.1.11 SDN.700 INFOSEC algorithms sdnsKMandSigAlgorithm -static const unsigned char cvOID_sdnsKMandSigAlgorithm [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x01, 0x0B}; -//2.16.840.1.101.2.1.1.12 SDN.700 INFOSEC algorithms. Formerly known as mosaicKMandSigAlgorithm fortezzaKMandSigAlgorithm -static const unsigned char cvOID_fortezzaKMandSigAlgorithm [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x01, 0x0C}; -//2.16.840.1.101.2.1.1.13 SDN.700 INFOSEC algorithms suiteASignatureAlgorithm -static const unsigned char cvOID_suiteASignatureAlgorithm [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x01, 0x0D}; -//2.16.840.1.101.2.1.1.14 SDN.700 INFOSEC algorithms suiteAConfidentialityAlgorithm -static const unsigned char cvOID_suiteAConfidentialityAlgorithm [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x01, 0x0E}; -//2.16.840.1.101.2.1.1.15 SDN.700 INFOSEC algorithms suiteAIntegrityAlgorithm -static const unsigned char cvOID_suiteAIntegrityAlgorithm [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x01, 0x0F}; -//2.16.840.1.101.2.1.1.16 SDN.700 INFOSEC algorithms suiteATokenProtectionAlgorithm -static const unsigned char cvOID_suiteATokenProtectionAlgorithm [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x01, 0x10}; -//2.16.840.1.101.2.1.1.17 SDN.700 INFOSEC algorithms suiteAKeyManagementAlgorithm -static const unsigned char cvOID_suiteAKeyManagementAlgorithm [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x01, 0x11}; -//2.16.840.1.101.2.1.1.18 SDN.700 INFOSEC algorithms suiteAKMandSigAlgorithm -static const unsigned char cvOID_suiteAKMandSigAlgorithm [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x01, 0x12}; -//2.16.840.1.101.2.1.1.19 SDN.700 INFOSEC algorithms. Formerly known as mosaicUpdatedSigAlgorithm fortezzaUpdatedSigAlgorithm -static const unsigned char cvOID_fortezzaUpdatedSigAlgorithm [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x01, 0x13}; -//2.16.840.1.101.2.1.1.20 SDN.700 INFOSEC algorithms. Formerly known as mosaicKMandUpdSigAlgorithms fortezzaKMandUpdSigAlgorithms -static const unsigned char cvOID_fortezzaKMandUpdSigAlgorithms [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x01, 0x14}; -//2.16.840.1.101.2.1.1.21 SDN.700 INFOSEC algorithms. Formerly known as mosaicUpdatedIntegAlgorithm fortezzaUpdatedIntegAlgorithm -static const unsigned char cvOID_fortezzaUpdatedIntegAlgorithm [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x01, 0x15}; -//2.16.840.1.101.2.1.1.22 SDN.700 INFOSEC algorithms. Formerly known as mosaicKeyEncryptionAlgorithm keyExchangeAlgorithm -static const unsigned char cvOID_keyExchangeAlgorithm [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x01, 0x16}; -//2.16.840.1.101.2.1.1.23 SDN.700 INFOSEC algorithms fortezzaWrap80Algorithm -static const unsigned char cvOID_fortezzaWrap80Algorithm [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x01, 0x17}; -//2.16.840.1.101.2.1.1.24 SDN.700 INFOSEC algorithms kEAKeyEncryptionAlgorithm -static const unsigned char cvOID_kEAKeyEncryptionAlgorithm [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x01, 0x18}; -//2.16.840.1.101.2.1.2.1 SDN.700 INFOSEC format rfc822MessageFormat -static const unsigned char cvOID_rfc822MessageFormat [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x02, 0x01}; -//2.16.840.1.101.2.1.2.2 SDN.700 INFOSEC format emptyContent -static const unsigned char cvOID_emptyContent [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x02, 0x02}; -//2.16.840.1.101.2.1.2.3 SDN.700 INFOSEC format cspContentType -static const unsigned char cvOID_cspContentType [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x02, 0x03}; -//2.16.840.1.101.2.1.2.42 SDN.700 INFOSEC format mspRev3ContentType -static const unsigned char cvOID_mspRev3ContentType [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x02, 0x2A}; -//2.16.840.1.101.2.1.2.48 SDN.700 INFOSEC format mspContentType -static const unsigned char cvOID_mspContentType [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x02, 0x30}; -//2.16.840.1.101.2.1.2.49 SDN.700 INFOSEC format mspRekeyAgentProtocol -static const unsigned char cvOID_mspRekeyAgentProtocol [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x02, 0x31}; -//2.16.840.1.101.2.1.2.50 SDN.700 INFOSEC format mspMMP -static const unsigned char cvOID_mspMMP [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x02, 0x32}; -//2.16.840.1.101.2.1.2.66 SDN.700 INFOSEC format mspRev3-1ContentType -static const unsigned char cvOID_mspRev3_1ContentType [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x02, 0x42}; -//2.16.840.1.101.2.1.2.72 SDN.700 INFOSEC format forwardedMSPMessageBodyPart -static const unsigned char cvOID_forwardedMSPMessageBodyPart [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x02, 0x48}; -//2.16.840.1.101.2.1.2.73 SDN.700 INFOSEC format mspForwardedMessageParameters -static const unsigned char cvOID_mspForwardedMessageParameters [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x02, 0x49}; -//2.16.840.1.101.2.1.2.74 SDN.700 INFOSEC format forwardedCSPMsgBodyPart -static const unsigned char cvOID_forwardedCSPMsgBodyPart [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x02, 0x50}; -//2.16.840.1.101.2.1.2.75 SDN.700 INFOSEC format cspForwardedMessageParameters -static const unsigned char cvOID_cspForwardedMessageParameters [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x02, 0x51}; -//2.16.840.1.101.2.1.2.76 SDN.700 INFOSEC format mspMMP2 -static const unsigned char cvOID_mspMMP2 [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x02, 0x52}; -//2.16.840.1.101.2.1.3.1 SDN.700 INFOSEC policy sdnsSecurityPolicy -static const unsigned char cvOID_sdnsSecurityPolicy [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x03, 0x01}; -//2.16.840.1.101.2.1.3.2 SDN.700 INFOSEC policy sdnsPRBAC -static const unsigned char cvOID_sdnsPRBAC [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x03, 0x02}; -//2.16.840.1.101.2.1.3.3 SDN.700 INFOSEC policy mosaicPRBAC -static const unsigned char cvOID_mosaicPRBAC [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x03, 0x03}; -//2.16.840.1.101.2.1.3.10 SDN.700 INFOSEC policy siSecurityPolicy -static const unsigned char cvOID_siSecurityPolicy [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x03, 0x0A}; -//2.16.840.1.101.2.1.3.10.0 SDN.700 INFOSEC policy (obsolete) siNASP -static const unsigned char cvOID_siNASP [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x03, 0x0A, 0x00}; -//2.16.840.1.101.2.1.3.10.1 SDN.700 INFOSEC policy (obsolete) siELCO -static const unsigned char cvOID_siELCO [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x03, 0x0A, 0x01}; -//2.16.840.1.101.2.1.3.10.2 SDN.700 INFOSEC policy (obsolete) siTK -static const unsigned char cvOID_siTK [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x03, 0x0A, 0x02}; -//2.16.840.1.101.2.1.3.10.3 SDN.700 INFOSEC policy (obsolete) siDSAP -static const unsigned char cvOID_siDSAP [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x03, 0x0A, 0x03}; -//2.16.840.1.101.2.1.3.10.4 SDN.700 INFOSEC policy (obsolete) siSSSS -static const unsigned char cvOID_siSSSS [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x03, 0x0A, 0x04}; -//2.16.840.1.101.2.1.3.10.5 SDN.700 INFOSEC policy (obsolete) siDNASP -static const unsigned char cvOID_siDNASP [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x03, 0x0A, 0x05}; -//2.16.840.1.101.2.1.3.10.6 SDN.700 INFOSEC policy (obsolete) siBYEMAN -static const unsigned char cvOID_siBYEMAN [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x03, 0x0A, 0x06}; -//2.16.840.1.101.2.1.3.10.7 SDN.700 INFOSEC policy (obsolete) siREL-US -static const unsigned char cvOID_siREL_US [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x03, 0x0A, 0x07}; -//2.16.840.1.101.2.1.3.10.8 SDN.700 INFOSEC policy (obsolete) siREL-AUS -static const unsigned char cvOID_siREL_AUS [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x03, 0x0A, 0x08}; -//2.16.840.1.101.2.1.3.10.9 SDN.700 INFOSEC policy (obsolete) siREL-CAN -static const unsigned char cvOID_siREL_CAN [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x03, 0x0A, 0x09}; -//2.16.840.1.101.2.1.3.10.10 SDN.700 INFOSEC policy (obsolete) siREL_UK -static const unsigned char cvOID_siREL_UK [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x03, 0x0A, 0x0A}; -//2.16.840.1.101.2.1.3.10.11 SDN.700 INFOSEC policy (obsolete) siREL-NZ -static const unsigned char cvOID_siREL_NZ [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x03, 0x0A, 0x0B}; -//2.16.840.1.101.2.1.3.10.12 SDN.700 INFOSEC policy (obsolete) siGeneric -static const unsigned char cvOID_siGeneric [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x03, 0x0A, 0x0C}; -//2.16.840.1.101.2.1.3.11 SDN.700 INFOSEC policy genser -static const unsigned char cvOID_genser [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x03, 0x0B}; -//2.16.840.1.101.2.1.3.11.0 SDN.700 INFOSEC policy (obsolete) genserNations -static const unsigned char cvOID_genserNations [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x03, 0x0B, 0x00}; -//2.16.840.1.101.2.1.3.11.1 SDN.700 INFOSEC policy (obsolete) genserComsec -static const unsigned char cvOID_genserComsec [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x03, 0x0B, 0x01}; -//2.16.840.1.101.2.1.3.11.2 SDN.700 INFOSEC policy (obsolete) genserAcquisition -static const unsigned char cvOID_genserAcquisition [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x03, 0x0B, 0x02}; -//2.16.840.1.101.2.1.3.11.3 SDN.700 INFOSEC policy genserSecurityCategories -static const unsigned char cvOID_genserSecurityCategories [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x03, 0x0B, 0x03}; -//2.16.840.1.101.2.1.3.11.3.0 SDN.700 INFOSEC GENSER policy genserTagSetName -static const unsigned char cvOID_genserTagSetName [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x03, 0x0B, 0x03, 0x00}; -//2.16.840.1.101.2.1.3.12 SDN.700 INFOSEC policy defaultSecurityPolicy -static const unsigned char cvOID_defaultSecurityPolicy [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x03, 0x0C}; -//2.16.840.1.101.2.1.3.13 SDN.700 INFOSEC policy capcoMarkings -static const unsigned char cvOID_capcoMarkings [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x03, 0x0D}; -//2.16.840.1.101.2.1.3.13.0 SDN.700 INFOSEC policy CAPCO markings capcoSecurityCategories -static const unsigned char cvOID_capcoSecurityCategories [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x03, 0x0D, 0x00}; -//2.16.840.1.101.2.1.3.13.0.1 SDN.700 INFOSEC policy CAPCO markings capcoTagSetName1 -static const unsigned char cvOID_capcoTagSetName1 [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x03, 0x0D, 0x00, 0x01}; -//2.16.840.1.101.2.1.3.13.0.2 SDN.700 INFOSEC policy CAPCO markings capcoTagSetName2 -static const unsigned char cvOID_capcoTagSetName2 [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x03, 0x0D, 0x00, 0x02}; -//2.16.840.1.101.2.1.3.13.0.3 SDN.700 INFOSEC policy CAPCO markings capcoTagSetName3 -static const unsigned char cvOID_capcoTagSetName3 [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x03, 0x0D, 0x00, 0x03}; -//2.16.840.1.101.2.1.3.13.0.4 SDN.700 INFOSEC policy CAPCO markings capcoTagSetName4 -static const unsigned char cvOID_capcoTagSetName4 [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x03, 0x0D, 0x00, 0x04}; -//2.16.840.1.101.2.1.5.1 SDN.700 INFOSEC attributes (superseded) sdnsKeyManagementCertificate -static const unsigned char cvOID_sdnsKeyManagementCertificate [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x05, 0x01}; -//2.16.840.1.101.2.1.5.2 SDN.700 INFOSEC attributes (superseded) sdnsUserSignatureCertificate -static const unsigned char cvOID_sdnsUserSignatureCertificate [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x05, 0x02}; -//2.16.840.1.101.2.1.5.3 SDN.700 INFOSEC attributes (superseded) sdnsKMandSigCertificate -static const unsigned char cvOID_sdnsKMandSigCertificate [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x05, 0x03}; -//2.16.840.1.101.2.1.5.4 SDN.700 INFOSEC attributes (superseded) fortezzaKeyManagementCertificate -static const unsigned char cvOID_fortezzaKeyManagementCertificate [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x05, 0x04}; -//2.16.840.1.101.2.1.5.5 SDN.700 INFOSEC attributes (superseded) fortezzaKMandSigCertificate -static const unsigned char cvOID_fortezzaKMandSigCertificate [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x05, 0x05}; -//2.16.840.1.101.2.1.5.6 SDN.700 INFOSEC attributes (superseded) fortezzaUserSignatureCertificate -static const unsigned char cvOID_fortezzaUserSignatureCertificate [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x05, 0x06}; -//2.16.840.1.101.2.1.5.7 SDN.700 INFOSEC attributes (superseded) fortezzaCASignatureCertificate -static const unsigned char cvOID_fortezzaCASignatureCertificate [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x05, 0x07}; -//2.16.840.1.101.2.1.5.8 SDN.700 INFOSEC attributes (superseded) sdnsCASignatureCertificate -static const unsigned char cvOID_sdnsCASignatureCertificate [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x05, 0x08}; -//2.16.840.1.101.2.1.5.10 SDN.700 INFOSEC attributes (superseded) auxiliaryVector -static const unsigned char cvOID_auxiliaryVector [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x05, 0x0A}; -//2.16.840.1.101.2.1.5.11 SDN.700 INFOSEC attributes mlReceiptPolicy -static const unsigned char cvOID_mlReceiptPolicy [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x05, 0x0B}; -//2.16.840.1.101.2.1.5.12 SDN.700 INFOSEC attributes mlMembership -static const unsigned char cvOID_mlMembership [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x05, 0x0C}; -//2.16.840.1.101.2.1.5.13 SDN.700 INFOSEC attributes mlAdministrators -static const unsigned char cvOID_mlAdministrators [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x05, 0x0D}; -//2.16.840.1.101.2.1.5.14 SDN.700 INFOSEC attributes alid -static const unsigned char cvOID_alid [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x05, 0x0E}; -//2.16.840.1.101.2.1.5.20 SDN.700 INFOSEC attributes janUKMs -static const unsigned char cvOID_janUKMs [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x05, 0x14}; -//2.16.840.1.101.2.1.5.21 SDN.700 INFOSEC attributes febUKMs -static const unsigned char cvOID_febUKMs [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x05, 0x15}; -//2.16.840.1.101.2.1.5.22 SDN.700 INFOSEC attributes marUKMs -static const unsigned char cvOID_marUKMs [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x05, 0x16}; -//2.16.840.1.101.2.1.5.23 SDN.700 INFOSEC attributes aprUKMs -static const unsigned char cvOID_aprUKMs [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x05, 0x17}; -//2.16.840.1.101.2.1.5.24 SDN.700 INFOSEC attributes mayUKMs -static const unsigned char cvOID_mayUKMs [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x05, 0x18}; -//2.16.840.1.101.2.1.5.25 SDN.700 INFOSEC attributes junUKMs -static const unsigned char cvOID_junUKMs [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x05, 0x19}; -//2.16.840.1.101.2.1.5.26 SDN.700 INFOSEC attributes julUKMs -static const unsigned char cvOID_julUKMs [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x05, 0x1A}; -//2.16.840.1.101.2.1.5.27 SDN.700 INFOSEC attributes augUKMs -static const unsigned char cvOID_augUKMs [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x05, 0x1B}; -//2.16.840.1.101.2.1.5.28 SDN.700 INFOSEC attributes sepUKMs -static const unsigned char cvOID_sepUKMs [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x05, 0x1C}; -//2.16.840.1.101.2.1.5.29 SDN.700 INFOSEC attributes octUKMs -static const unsigned char cvOID_octUKMs [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x05, 0x1D}; -//2.16.840.1.101.2.1.5.30 SDN.700 INFOSEC attributes novUKMs -static const unsigned char cvOID_novUKMs [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x05, 0x1E}; -//2.16.840.1.101.2.1.5.21 SDN.700 INFOSEC attributes decUKMs -static const unsigned char cvOID_decUKMs [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x05, 0x1F}; -//2.16.840.1.101.2.1.5.40 SDN.700 INFOSEC attributes metaSDNSckl -static const unsigned char cvOID_metaSDNSckl [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x05, 0x28}; -//2.16.840.1.101.2.1.5.41 SDN.700 INFOSEC attributes sdnsCKL -static const unsigned char cvOID_sdnsCKL [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x05, 0x29}; -//2.16.840.1.101.2.1.5.42 SDN.700 INFOSEC attributes metaSDNSsignatureCKL -static const unsigned char cvOID_metaSDNSsignatureCKL [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x05, 0x2A}; -//2.16.840.1.101.2.1.5.43 SDN.700 INFOSEC attributes sdnsSignatureCKL -static const unsigned char cvOID_sdnsSignatureCKL [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x05, 0x2B}; -//2.16.840.1.101.2.1.5.44 SDN.700 INFOSEC attributes sdnsCertificateRevocationList -static const unsigned char cvOID_sdnsCertificateRevocationList [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x05, 0x2C}; -//2.16.840.1.101.2.1.5.45 SDN.700 INFOSEC attributes (superseded) fortezzaCertificateRevocationList -static const unsigned char cvOID_fortezzaCertificateRevocationList [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x05, 0x2D}; -//2.16.840.1.101.2.1.5.46 SDN.700 INFOSEC attributes fortezzaCKL -static const unsigned char cvOID_fortezzaCKL [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x05, 0x2E}; -//2.16.840.1.101.2.1.5.47 SDN.700 INFOSEC attributes alExemptedAddressProcessor -static const unsigned char cvOID_alExemptedAddressProcessor [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x05, 0x2F}; -//2.16.840.1.101.2.1.5.48 SDN.700 INFOSEC attributes (obsolete) guard -static const unsigned char cvOID_guard [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x05, 0x30}; -//2.16.840.1.101.2.1.5.49 SDN.700 INFOSEC attributes (obsolete) algorithmsSupported -static const unsigned char cvOID_algorithmsSupported [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x05, 0x31}; -//2.16.840.1.101.2.1.5.50 SDN.700 INFOSEC attributes (obsolete) suiteAKeyManagementCertificate -static const unsigned char cvOID_suiteAKeyManagementCertificate [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x05, 0x32}; -//2.16.840.1.101.2.1.5.51 SDN.700 INFOSEC attributes (obsolete) suiteAKMandSigCertificate -static const unsigned char cvOID_suiteAKMandSigCertificate [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x05, 0x33}; -//2.16.840.1.101.2.1.5.52 SDN.700 INFOSEC attributes (obsolete) suiteAUserSignatureCertificate -static const unsigned char cvOID_suiteAUserSignatureCertificate [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x05, 0x34}; -//2.16.840.1.101.2.1.5.53 SDN.700 INFOSEC attributes prbacInfo -static const unsigned char cvOID_prbacInfo [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x05, 0x35}; -//2.16.840.1.101.2.1.5.54 SDN.700 INFOSEC attributes prbacCAstatic constraints -static const unsigned char cvOID_prbacCAconstraints [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x05, 0x36}; -//2.16.840.1.101.2.1.5.55 SDN.700 INFOSEC attributes sigOrKMPrivileges -static const unsigned char cvOID_sigOrKMPrivileges [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x05, 0x37}; -//2.16.840.1.101.2.1.5.56 SDN.700 INFOSEC attributes commPrivileges -static const unsigned char cvOID_commPrivileges [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x05, 0x38}; -//2.16.840.1.101.2.1.5.57 SDN.700 INFOSEC attributes labeledAttribute -static const unsigned char cvOID_labeledAttribute [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x05, 0x39}; -//2.16.840.1.101.2.1.5.58 SDN.700 INFOSEC attributes (obsolete) policyInformationFile -static const unsigned char cvOID_policyInformationFile [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x05, 0x3A}; -//2.16.840.1.101.2.1.5.59 SDN.700 INFOSEC attributes secPolicyInformationFile -static const unsigned char cvOID_secPolicyInformationFile [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x05, 0x3B}; -//2.16.840.1.101.2.1.5.60 SDN.700 INFOSEC attributes cAClearancestatic constraint -static const unsigned char cvOID_cAClearanceconstraint [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x05, 0x3C}; -//2.16.840.1.101.2.1.7.1 SDN.700 INFOSEC extensions cspExtns -static const unsigned char cvOID_cspExtns [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x07, 0x01}; -//2.16.840.1.101.2.1.7.1.0 SDN.700 INFOSEC extensions cspCsExtn -static const unsigned char cvOID_cspCsExtn [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x07, 0x01, 0x00}; -//2.16.840.1.101.2.1.8.1 SDN.700 INFOSEC security category mISSISecurityCategories -static const unsigned char cvOID_mISSISecurityCategories [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x08, 0x01}; -//2.16.840.1.101.2.1.8.2 SDN.700 INFOSEC security category standardSecurityLabelPrivileges -static const unsigned char cvOID_standardSecurityLabelPrivileges [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x08, 0x02}; -//2.16.840.1.101.2.1.10.1 SDN.700 INFOSEC privileges sigPrivileges -static const unsigned char cvOID_sigPrivileges [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x0A, 0x01}; -//2.16.840.1.101.2.1.10.2 SDN.700 INFOSEC privileges kmPrivileges -static const unsigned char cvOID_kmPrivileges [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x0A, 0x02}; -//2.16.840.1.101.2.1.10.3 SDN.700 INFOSEC privileges namedTagSetPrivilege -static const unsigned char cvOID_namedTagSetPrivilege [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x0A, 0x03}; -//2.16.840.1.101.2.1.11.1 SDN.700 INFOSEC certificate policy ukDemo -static const unsigned char cvOID_ukDemo [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x0B, 0x01}; -//2.16.840.1.101.2.1.11.2 SDN.700 INFOSEC certificate policy usDODClass2 -static const unsigned char cvOID_usDODClass2 [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x0B, 0x02}; -//2.16.840.1.101.2.1.11.3 SDN.700 INFOSEC certificate policy usMediumPilot -static const unsigned char cvOID_usMediumPilot [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x0B, 0x03}; -//2.16.840.1.101.2.1.11.4 SDN.700 INFOSEC certificate policy usDODClass4 -static const unsigned char cvOID_usDODClass4 [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x0B, 0x04}; -//2.16.840.1.101.2.1.11.5 SDN.700 INFOSEC certificate policy usDODClass3 -static const unsigned char cvOID_usDODClass3 [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x0B, 0x05}; -//2.16.840.1.101.2.1.11.6 SDN.700 INFOSEC certificate policy usDODClass5 -static const unsigned char cvOID_usDODClass5 [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x0B, 0x06}; -//2.16.840.1.101.2.1.12.0 SDN.700 INFOSEC test objects testSecurityPolicy -static const unsigned char cvOID_testSecurityPolicy [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x0C, 0x00}; -//2.16.840.1.101.2.1.12.0.1 SDN.700 INFOSEC test objects tsp1 -static const unsigned char cvOID_tsp1 [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x0C, 0x00, 0x01}; -//2.16.840.1.101.2.1.12.0.1.0 SDN.700 INFOSEC test objects tsp1SecurityCategories -static const unsigned char cvOID_tsp1SecurityCategories [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x0C, 0x00, 0x01, 0x00}; -//2.16.840.1.101.2.1.12.0.1.0.0 SDN.700 INFOSEC test objects tsp1TagSetZero -static const unsigned char cvOID_tsp1TagSetZero [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x0C, 0x00, 0x01, 0x00, 0x00}; -//2.16.840.1.101.2.1.12.0.1.0.1 SDN.700 INFOSEC test objects tsp1TagSetOne -static const unsigned char cvOID_tsp1TagSetOne [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x0C, 0x00, 0x01, 0x00, 0x01}; -//2.16.840.1.101.2.1.12.0.1.0.2 SDN.700 INFOSEC test objects tsp1TagSetTwo -static const unsigned char cvOID_tsp1TagSetTwo [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x0C, 0x00, 0x01, 0x00, 0x02}; -//2.16.840.1.101.2.1.12.0.2 SDN.700 INFOSEC test objects tsp2 -static const unsigned char cvOID_tsp2 [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x0C, 0x00, 0x02}; -//2.16.840.1.101.2.1.12.0.2.0 SDN.700 INFOSEC test objects tsp2SecurityCategories -static const unsigned char cvOID_tsp2SecurityCategories [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x0C, 0x00, 0x02, 0x00}; -//2.16.840.1.101.2.1.12.0.2.0.0 SDN.700 INFOSEC test objects tsp2TagSetZero -static const unsigned char cvOID_tsp2TagSetZero [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x0C, 0x00, 0x02, 0x00, 0x00}; -//2.16.840.1.101.2.1.12.0.2.0.1 SDN.700 INFOSEC test objects tsp2TagSetOne -static const unsigned char cvOID_tsp2TagSetOne [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x0C, 0x00, 0x02, 0x00, 0x01}; -//2.16.840.1.101.2.1.12.0.2.0.2 SDN.700 INFOSEC test objects tsp2TagSetTwo -static const unsigned char cvOID_tsp2TagSetTwo [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x0C, 0x00, 0x02, 0x00, 0x02}; -//2.16.840.1.101.2.1.12.0.3 SDN.700 INFOSEC test objects kafka -static const unsigned char cvOID_kafka [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x0C, 0x00, 0x03}; -//2.16.840.1.101.2.1.12.0.3.0 SDN.700 INFOSEC test objects kafkaSecurityCategories -static const unsigned char cvOID_kafkaSecurityCategories [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x0C, 0x00, 0x03, 0x00}; -//2.16.840.1.101.2.1.12.0.3.0.1 SDN.700 INFOSEC test objects kafkaTagSetName1 -static const unsigned char cvOID_kafkaTagSetName1 [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x0C, 0x00, 0x03, 0x00, 0x01}; -//2.16.840.1.101.2.1.12.0.3.0.2 SDN.700 INFOSEC test objects kafkaTagSetName2 -static const unsigned char cvOID_kafkaTagSetName2 [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x0C, 0x00, 0x03, 0x00, 0x02}; -//2.16.840.1.101.2.1.12.0.3.0.3 SDN.700 INFOSEC test objects kafkaTagSetName3 -static const unsigned char cvOID_kafkaTagSetName3 [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x0C, 0x00, 0x03, 0x00, 0x03}; -//2.16.840.1.101.2.1.12.1.1 SDN.700 INFOSEC test objects tcp1 -static const unsigned char cvOID_tcp1 [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x02, 0x01, 0x0C, 0x01, 0x01}; -//2.16.840.1.101.3.1 CSOR GAK slabel -static const unsigned char cvOID_slabel [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x03, 0x01}; -//2.16.840.1.101.3.2 CSOR GAK pki -static const unsigned char cvOID_pki [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x03, 0x02}; -//2.16.840.1.101.3.2.1 CSOR GAK policy GAK policyIdentifier -static const unsigned char cvOID_GAK_policyIdentifier [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x03, 0x02, 0x01}; -//2.16.840.1.101.3.2.2 CSOR GAK extended key usage GAK -static const unsigned char cvOID_GAK [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x03, 0x02, 0x02}; -//2.16.840.1.101.3.2.2.1 CSOR GAK extended key usage kRAKey -static const unsigned char cvOID_kRAKey [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x03, 0x02, 0x02, 0x01}; -//2.16.840.1.101.3.2.3 CSOR GAK extensions extensions -static const unsigned char cvOID_extensions [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x03, 0x02, 0x03}; -//2.16.840.1.101.3.2.3.1 CSOR GAK extensions kRTechnique -static const unsigned char cvOID_kRTechnique [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x03, 0x02, 0x03, 0x01}; -//2.16.840.1.101.3.2.3.2 CSOR GAK extensions kRecoveryCapable -static const unsigned char cvOID_kRecoveryCapable [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x03, 0x02, 0x03, 0x02}; -//2.16.840.1.101.3.2.3.3 CSOR GAK extensions kR -static const unsigned char cvOID_kR [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x03, 0x02, 0x03, 0x03}; -//2.16.840.1.101.3.2.4 CSOR GAK keyrecoveryschemes -static const unsigned char cvOID_keyrecoveryschemes [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x03, 0x02, 0x04}; -//2.16.840.1.101.3.2.5 CSOR GAK krapola -static const unsigned char cvOID_krapola [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x03, 0x02, 0x05}; -//2.16.840.1.101.3.3 CSOR GAK arpa -static const unsigned char cvOID_arpa [] = { 0x60, 0x86, 0x48, 0x01, 0x65, 0x03, 0x03}; -//2.16.840.1.113719.1.9 Novell pki -static const unsigned char cvOID_pki_Novell [] = { 0x60, 0x86, 0x48, 0x01, 0x86, 0xF8, 0x37, 0x01, 0x09}; -//2.16.840.1.113719.1.9.4 Novell PKI pkiAttributeType -static const unsigned char cvOID_pkiAttributeType [] = { 0x60, 0x86, 0x48, 0x01, 0x86, 0xF8, 0x37, 0x01, 0x09, 0x04}; -//2.16.840.1.113719.1.9.4.1 Novell PKI attribute type registeredAttributes -static const unsigned char cvOID_registeredAttributes [] = { 0x60, 0x86, 0x48, 0x01, 0x86, 0xF8, 0x37, 0x01, 0x09, 0x04, 0x01}; -//2.16.840.1.113719.1.9.4.2 Novell PKI attribute type relianceLimit -static const unsigned char cvOID_relianceLimit [] = { 0x60, 0x86, 0x48, 0x01, 0x86, 0xF8, 0x37, 0x01, 0x09, 0x04, 0x02}; -//2.16.840.1.113730.1 Netscape cert-extension -static const unsigned char cvOID_cert_extension [] = { 0x60, 0x86, 0x48, 0x01, 0x86, 0xF8, 0x42, 0x01}; -//2.16.840.1.113730.1.1 Netscape certificate extension netscape-cert-type -static const unsigned char cvOID_netscape_cert_type [] = { 0x60, 0x86, 0x48, 0x01, 0x86, 0xF8, 0x42, 0x01, 0x01}; -//2.16.840.1.113730.1.2 Netscape certificate extension netscape-base-url -static const unsigned char cvOID_netscape_base_url [] = { 0x60, 0x86, 0x48, 0x01, 0x86, 0xF8, 0x42, 0x01, 0x02}; -//2.16.840.1.113730.1.3 Netscape certificate extension netscape-revocation-url -static const unsigned char cvOID_netscape_revocation_url [] = { 0x60, 0x86, 0x48, 0x01, 0x86, 0xF8, 0x42, 0x01, 0x03}; -//2.16.840.1.113730.1.4 Netscape certificate extension netscape-ca-revocation-url -static const unsigned char cvOID_netscape_ca_revocation_url [] = { 0x60, 0x86, 0x48, 0x01, 0x86, 0xF8, 0x42, 0x01, 0x04}; -//2.16.840.1.113730.1.7 Netscape certificate extension netscape-cert-renewal-url -static const unsigned char cvOID_netscape_cert_renewal_url [] = { 0x60, 0x86, 0x48, 0x01, 0x86, 0xF8, 0x42, 0x01, 0x07}; -//2.16.840.1.113730.1.8 Netscape certificate extension netscape-ca-policy-url -static const unsigned char cvOID_netscape_ca_policy_url [] = { 0x60, 0x86, 0x48, 0x01, 0x86, 0xF8, 0x42, 0x01, 0x08}; -//2.16.840.1.113730.1.9 Netscape certificate extension HomePage-url -static const unsigned char cvOID_HomePage_url [] = { 0x60, 0x86, 0x48, 0x01, 0x86, 0xF8, 0x42, 0x01, 0x09}; -//2.16.840.1.113730.1.10 Netscape certificate extension EntityLogo -static const unsigned char cvOID_EntityLogo [] = { 0x60, 0x86, 0x48, 0x01, 0x86, 0xF8, 0x42, 0x01, 0x0A}; -//2.16.840.1.113730.1.11 Netscape certificate extension UserPicture -static const unsigned char cvOID_UserPicture [] = { 0x60, 0x86, 0x48, 0x01, 0x86, 0xF8, 0x42, 0x01, 0x0B}; -//2.16.840.1.113730.1.12 Netscape certificate extension netscape-ssl-server-name -static const unsigned char cvOID_netscape_ssl_server_name [] = { 0x60, 0x86, 0x48, 0x01, 0x86, 0xF8, 0x42, 0x01, 0x0C}; -//2.16.840.1.113730.1.13 Netscape certificate extension netscape-comment -static const unsigned char cvOID_netscape_comment [] = { 0x60, 0x86, 0x48, 0x01, 0x86, 0xF8, 0x42, 0x01, 0x0D}; -//2.16.840.1.113730.2 Netscape data-type -static const unsigned char cvOID_data_type [] = { 0x60, 0x86, 0x48, 0x01, 0x86, 0xF8, 0x42, 0x02}; -//2.16.840.1.113730.2.1 Netscape data type dataGIF -static const unsigned char cvOID_dataGIF [] = { 0x60, 0x86, 0x48, 0x01, 0x86, 0xF8, 0x42, 0x02, 0x01}; -//2.16.840.1.113730.2.2 Netscape data type dataJPEG -static const unsigned char cvOID_dataJPEG [] = { 0x60, 0x86, 0x48, 0x01, 0x86, 0xF8, 0x42, 0x02, 0x02}; -//2.16.840.1.113730.2.3 Netscape data type dataURL -static const unsigned char cvOID_dataURL [] = { 0x60, 0x86, 0x48, 0x01, 0x86, 0xF8, 0x42, 0x02, 0x03}; -//2.16.840.1.113730.2.4 Netscape data type dataHTML -static const unsigned char cvOID_dataHTML [] = { 0x60, 0x86, 0x48, 0x01, 0x86, 0xF8, 0x42, 0x02, 0x04}; -//2.16.840.1.113730.2.5 Netscape data type certSequence -static const unsigned char cvOID_certSequence [] = { 0x60, 0x86, 0x48, 0x01, 0x86, 0xF8, 0x42, 0x02, 0x05}; -//2.16.840.1.113730.2.6 Netscape certificate extension certURL -static const unsigned char cvOID_certURL [] = { 0x60, 0x86, 0x48, 0x01, 0x86, 0xF8, 0x42, 0x02, 0x06}; -//2.16.840.1.113730.3 Netscape directory -static const unsigned char cvOID_directory [] = { 0x60, 0x86, 0x48, 0x01, 0x86, 0xF8, 0x42, 0x03}; -//2.16.840.1.113730.3.1 Netscape directory ldapDefinitions -static const unsigned char cvOID_ldapDefinitions [] = { 0x60, 0x86, 0x48, 0x01, 0x86, 0xF8, 0x42, 0x03, 0x01}; -//2.16.840.1.113730.3.1.1 Netscape LDAP definitions carLicense -static const unsigned char cvOID_carLicense [] = { 0x60, 0x86, 0x48, 0x01, 0x86, 0xF8, 0x42, 0x03, 0x01, 0x01}; -//2.16.840.1.113730.3.1.2 Netscape LDAP definitions departmentNumber -static const unsigned char cvOID_departmentNumber [] = { 0x60, 0x86, 0x48, 0x01, 0x86, 0xF8, 0x42, 0x03, 0x01, 0x02}; -//2.16.840.1.113730.3.1.3 Netscape LDAP definitions employeeNumber -static const unsigned char cvOID_employeeNumber [] = { 0x60, 0x86, 0x48, 0x01, 0x86, 0xF8, 0x42, 0x03, 0x01, 0x03}; -//2.16.840.1.113730.3.1.4 Netscape LDAP definitions employeeType -static const unsigned char cvOID_employeeType [] = { 0x60, 0x86, 0x48, 0x01, 0x86, 0xF8, 0x42, 0x03, 0x01, 0x04}; -//2.16.840.1.113730.3.2.2 Netscape LDAP definitions inetOrgPerson -static const unsigned char cvOID_inetOrgPerson [] = { 0x60, 0x86, 0x48, 0x01, 0x86, 0xF8, 0x42, 0x03, 0x02, 0x02}; -//2.16.840.1.113730.4.1 Netscape serverGatedCrypto -static const unsigned char cvOID_serverGatedCrypto_Netscape [] = { 0x60, 0x86, 0x48, 0x01, 0x86, 0xF8, 0x42, 0x04, 0x01}; -//2.16.840.1.113733.1.6.3 Verisign Unknown Verisign extension -static const unsigned char cvOID_Unknown_Verisign_extension_1 [] = { 0x60, 0x86, 0x48, 0x01, 0x86, 0xF8, 0x45, 0x01, 0x06, 0x03}; -//2.16.840.1.113733.1.6.6 Verisign Unknown Verisign extension -static const unsigned char cvOID_Unknown_Verisign_extension_2 [] = { 0x60, 0x86, 0x48, 0x01, 0x86, 0xF8, 0x45, 0x01, 0x06, 0x06}; -//2.16.840.1.113733.1.7.1.1 Verisign Verisign certificatePolicy -static const unsigned char cvOID_Verisign_certificatePolicy [] = { 0x60, 0x86, 0x48, 0x01, 0x86, 0xF8, 0x45, 0x01, 0x07, 0x01, 0x01}; -//2.16.840.1.113733.1.7.1.1.1 Verisign Unknown Verisign policy qualifier -static const unsigned char cvOID_Unknown_Verisign_policy_qualifier_1 [] = { 0x60, 0x86, 0x48, 0x01, 0x86, 0xF8, 0x45, 0x01, 0x07, 0x01, 0x01, 0x01}; -//2.16.840.1.113733.1.7.1.1.2 Verisign Unknown Verisign policy qualifier -static const unsigned char cvOID_Unknown_Verisign_policy_qualifier_2 [] = { 0x60, 0x86, 0x48, 0x01, 0x86, 0xF8, 0x45, 0x01, 0x07, 0x01, 0x01, 0x02}; -//2.16.840.1.113733.1.8.1 Verisign Verisign SGC CA? -static const unsigned char cvOID_Verisign_SGC_CA [] = { 0x60, 0x86, 0x48, 0x01, 0x86, 0xF8, 0x45, 0x01, 0x08, 0x01}; -//2.23.42.0 SET contentType -static const unsigned char cvOID_contentType_SET [] = { 0x67, 0x2A, 0x00}; -//2.23.42.0.0 SET contentType PANData -static const unsigned char cvOID_PANData [] = { 0x67, 0x2A, 0x00, 0x00}; -//2.23.42.0.1 SET contentType PANToken -static const unsigned char cvOID_PANToken [] = { 0x67, 0x2A, 0x00, 0x01}; -//2.23.42.0.2 SET contentType PANOnly -static const unsigned char cvOID_PANOnly [] = { 0x67, 0x2A, 0x00, 0x02}; -//2.23.42.1 SET msgExt -static const unsigned char cvOID_msgExt [] = { 0x67, 0x2A, 0x01}; -//2.23.42.2 SET field -static const unsigned char cvOID_field [] = { 0x67, 0x2A, 0x02}; -//2.23.42.2.0 SET field fullName -static const unsigned char cvOID_fullName [] = { 0x67, 0x2A, 0x02, 0x00}; -//2.23.42.2.1 SET field givenName -static const unsigned char cvOID_givenName_SET [] = { 0x67, 0x2A, 0x02, 0x01}; -//2.23.42.2.2 SET field familyName -static const unsigned char cvOID_familyName [] = { 0x67, 0x2A, 0x02, 0x02}; -//2.23.42.2.3 SET field birthFamilyName -static const unsigned char cvOID_birthFamilyName [] = { 0x67, 0x2A, 0x02, 0x03}; -//2.23.42.2.4 SET field placeName -static const unsigned char cvOID_placeName [] = { 0x67, 0x2A, 0x02, 0x04}; -//2.23.42.2.5 SET field identificationNumber -static const unsigned char cvOID_identificationNumber [] = { 0x67, 0x2A, 0x02, 0x05}; -//2.23.42.2.6 SET field month -static const unsigned char cvOID_month [] = { 0x67, 0x2A, 0x02, 0x06}; -//2.23.42.2.7 SET field date -static const unsigned char cvOID_date [] = { 0x67, 0x2A, 0x02, 0x07}; -//2.23.42.2.8 SET field address -static const unsigned char cvOID_address [] = { 0x67, 0x2A, 0x02, 0x08}; -//2.23.42.2.9 SET field telephone -static const unsigned char cvOID_telephone [] = { 0x67, 0x2A, 0x02, 0x09}; -//2.23.42.2.10 SET field amount -static const unsigned char cvOID_amount [] = { 0x67, 0x2A, 0x02, 0x0A}; -//2.23.42.2.7.11 SET field accountNumber -static const unsigned char cvOID_accountNumber [] = { 0x67, 0x2A, 0x02, 0x0B}; -//2.23.42.2.7.12 SET field passPhrase -static const unsigned char cvOID_passPhrase [] = { 0x67, 0x2A, 0x02, 0x0C}; -//2.23.42.3 SET attribute -static const unsigned char cvOID_attribute_SET [] = { 0x67, 0x2A, 0x03}; -//2.23.42.3.0 SET attribute cert -static const unsigned char cvOID_cert_SET [] = { 0x67, 0x2A, 0x03, 0x00}; -//2.23.42.3.0.0 SET cert attribute rootKeyThumb -static const unsigned char cvOID_rootKeyThumb [] = { 0x67, 0x2A, 0x03, 0x00, 0x00}; -//2.23.42.3.0.1 SET cert attribute additionalPolicy -static const unsigned char cvOID_additionalPolicy [] = { 0x67, 0x2A, 0x03, 0x00, 0x01}; -//2.23.42.4 SET algorithm -static const unsigned char cvOID_algorithm_SET [] = { 0x67, 0x2A, 0x04}; -//2.23.42.5 SET policy -static const unsigned char cvOID_policy_SET [] = { 0x67, 0x2A, 0x05}; -//2.23.42.5.0 SET policy root -static const unsigned char cvOID_root [] = { 0x67, 0x2A, 0x05, 0x00}; -//2.23.42.6 SET module -static const unsigned char cvOID_module_SET [] = { 0x67, 0x2A, 0x06}; -//2.23.42.7 SET certExt -static const unsigned char cvOID_certExt [] = { 0x67, 0x2A, 0x07}; -//2.23.42.7.0 SET cert extension hashedRootKey -static const unsigned char cvOID_hashedRootKey [] = { 0x67, 0x2A, 0x07, 0x00}; -//2.23.42.7.1 SET cert extension certificateType -static const unsigned char cvOID_certificateType_SET [] = { 0x67, 0x2A, 0x07, 0x01}; -//2.23.42.7.2 SET cert extension merchantData -static const unsigned char cvOID_merchantData [] = { 0x67, 0x2A, 0x07, 0x02}; -//2.23.42.7.3 SET cert extension cardCertRequired -static const unsigned char cvOID_cardCertRequired [] = { 0x67, 0x2A, 0x07, 0x03}; -//2.23.42.7.4 SET cert extension tunneling -static const unsigned char cvOID_tunneling [] = { 0x67, 0x2A, 0x07, 0x04}; -//2.23.42.7.5 SET cert extension setExtensions -static const unsigned char cvOID_setExtensions [] = { 0x67, 0x2A, 0x07, 0x05}; -//2.23.42.7.6 SET cert extension setQualifier -static const unsigned char cvOID_setQualifier [] = { 0x67, 0x2A, 0x07, 0x06}; -//2.23.42.8 SET brand -static const unsigned char cvOID_brand [] = { 0x67, 0x2A, 0x08}; -//2.23.42.8.1 SET brand IATA-ATA -static const unsigned char cvOID_IATA_ATA [] = { 0x67, 0x2A, 0x08, 0x01}; -//2.23.42.8.4 SET brand VISA -static const unsigned char cvOID_VISA [] = { 0x67, 0x2A, 0x08, 0x04}; -//2.23.42.8.5 SET brand MasterCard -static const unsigned char cvOID_MasterCard [] = { 0x67, 0x2A, 0x08, 0x05}; -//2.23.42.8.30 SET brand Diners -static const unsigned char cvOID_Diners [] = { 0x67, 0x2A, 0x08, 0x1E}; -//2.23.42.8.34 SET brand AmericanExpress -static const unsigned char cvOID_AmericanExpress [] = { 0x67, 0x2A, 0x08, 0x22}; -//2.23.42.8.6011 SET brand Novus -static const unsigned char cvOID_Novus [] = { 0x67, 0x2A, 0x08, 0xAE, 0x7B}; -//2.23.42.9 SET vendor -static const unsigned char cvOID_vendor [] = { 0x67, 0x2A, 0x09}; -//2.23.42.9.0 SET vendor GlobeSet -static const unsigned char cvOID_GlobeSet [] = { 0x67, 0x2A, 0x09, 0x00}; -//2.23.42.9.1 SET vendor IBM -static const unsigned char cvOID_IBM [] = { 0x67, 0x2A, 0x09, 0x01}; -//2.23.42.9.2 SET vendor CyberCash -static const unsigned char cvOID_CyberCash [] = { 0x67, 0x2A, 0x09, 0x02}; -//2.23.42.9.3 SET vendor Terisa -static const unsigned char cvOID_Terisa [] = { 0x67, 0x2A, 0x09, 0x03}; -//2.23.42.9.4 SET vendor RSADSI -static const unsigned char cvOID_RSADSI [] = { 0x67, 0x2A, 0x09, 0x04}; -//2.23.42.9.5 SET vendor VeriFone -static const unsigned char cvOID_VeriFone [] = { 0x67, 0x2A, 0x09, 0x05}; -//2.23.42.9.6 SET vendor TrinTech -static const unsigned char cvOID_TrinTech [] = { 0x67, 0x2A, 0x09, 0x06}; -//2.23.42.9.7 SET vendor BankGate -static const unsigned char cvOID_BankGate [] = { 0x67, 0x2A, 0x09, 0x07}; -//2.23.42.9.8 SET vendor GTE -static const unsigned char cvOID_GTE [] = { 0x67, 0x2A, 0x09, 0x08}; -//2.23.42.9.9 SET vendor CompuSource -static const unsigned char cvOID_CompuSource [] = { 0x67, 0x2A, 0x09, 0x09}; -//2.23.42.9.10 SET vendor Griffin -static const unsigned char cvOID_Griffin [] = { 0x67, 0x2A, 0x09, 0x0A}; -//2.23.42.9.11 SET vendor Certicom -static const unsigned char cvOID_Certicom [] = { 0x67, 0x2A, 0x09, 0x0B}; -//2.23.42.9.12 SET vendor OSS -static const unsigned char cvOID_OSS [] = { 0x67, 0x2A, 0x09, 0x0C}; -//2.23.42.9.13 SET vendor TenthMountain -static const unsigned char cvOID_TenthMountain [] = { 0x67, 0x2A, 0x09, 0x0D}; -//2.23.42.9.14 SET vendor Antares -static const unsigned char cvOID_Antares [] = { 0x67, 0x2A, 0x09, 0x0E}; -//2.23.42.9.15 SET vendor ECC -static const unsigned char cvOID_ECC [] = { 0x67, 0x2A, 0x09, 0x0F}; -//2.23.42.9.16 SET vendor Maithean -static const unsigned char cvOID_Maithean [] = { 0x67, 0x2A, 0x09, 0x10}; -//2.23.42.9.17 SET vendor Netscape -static const unsigned char cvOID_Netscape [] = { 0x67, 0x2A, 0x09, 0x11}; -//2.23.42.9.18 SET vendor Verisign -static const unsigned char cvOID_Verisign [] = { 0x67, 0x2A, 0x09, 0x12}; -//2.23.42.9.19 SET vendor BlueMoney -static const unsigned char cvOID_BlueMoney [] = { 0x67, 0x2A, 0x09, 0x13}; -//2.23.42.9.20 SET vendor Lacerte -static const unsigned char cvOID_Lacerte [] = { 0x67, 0x2A, 0x09, 0x14}; -//2.23.42.9.21 SET vendor Fujitsu -static const unsigned char cvOID_Fujitsu [] = { 0x67, 0x2A, 0x09, 0x15}; -//2.23.42.9.22 SET vendor eLab -static const unsigned char cvOID_eLab [] = { 0x67, 0x2A, 0x09, 0x16}; -//2.23.42.9.23 SET vendor Entrust -static const unsigned char cvOID_Entrust [] = { 0x67, 0x2A, 0x09, 0x17}; -//2.23.42.9.24 SET vendor VIAnet -static const unsigned char cvOID_VIAnet [] = { 0x67, 0x2A, 0x09, 0x18}; -//2.23.42.9.25 SET vendor III -static const unsigned char cvOID_III [] = { 0x67, 0x2A, 0x09, 0x19}; -//2.23.42.9.26 SET vendor OpenMarket -static const unsigned char cvOID_OpenMarket [] = { 0x67, 0x2A, 0x09, 0x1A}; -//2.23.42.9.27 SET vendor Lexem -static const unsigned char cvOID_Lexem [] = { 0x67, 0x2A, 0x09, 0x1B}; -//2.23.42.9.28 SET vendor Intertrader -static const unsigned char cvOID_Intertrader [] = { 0x67, 0x2A, 0x09, 0x1C}; -//2.23.42.9.29 SET vendor Persimmon -static const unsigned char cvOID_Persimmon [] = { 0x67, 0x2A, 0x09, 0x1D}; -//2.23.42.9.30 SET vendor NABLE -static const unsigned char cvOID_NABLE [] = { 0x67, 0x2A, 0x09, 0x1E}; -//2.23.42.9.31 SET vendor espace-net -static const unsigned char cvOID_espace_net [] = { 0x67, 0x2A, 0x09, 0x1F}; -//2.23.42.9.32 SET vendor Hitachi -static const unsigned char cvOID_Hitachi [] = { 0x67, 0x2A, 0x09, 0x20}; -//2.23.42.9.33 SET vendor Microsoft -static const unsigned char cvOID_Microsoft [] = { 0x67, 0x2A, 0x09, 0x21}; -//2.23.42.9.34 SET vendor NEC -static const unsigned char cvOID_NEC [] = { 0x67, 0x2A, 0x09, 0x22}; -//2.23.42.9.35 SET vendor Mitsubishi -static const unsigned char cvOID_Mitsubishi [] = { 0x67, 0x2A, 0x09, 0x23}; -//2.23.42.9.36 SET vendor NCR -static const unsigned char cvOID_NCR [] = { 0x67, 0x2A, 0x09, 0x24}; -//2.23.42.9.37 SET vendor e-COMM -static const unsigned char cvOID_e_COMM [] = { 0x67, 0x2A, 0x09, 0x25}; -//2.23.42.9.38 SET vendor Gemplus -static const unsigned char cvOID_Gemplus [] = { 0x67, 0x2A, 0x09, 0x26}; -//2.23.42.10 SET national -static const unsigned char cvOID_national [] = { 0x67, 0x2A, 0x0A}; -//2.23.42.10.192 SET national Japan -static const unsigned char cvOID_Japan [] = { 0x67, 0x2A, 0x0A, 0x81, 0x40}; -//2.54.1775.2 SET. Deprecated, use (2 23 42 7 0) instead hashedRootKey -static const unsigned char cvOID_hashedRootKey_old [] = { 0x86, 0x8D, 0x6F, 0x02}; -//2.54.1775.3 SET. Deprecated, use (2 23 42 7 0) instead certificateType -static const unsigned char cvOID_certificateType_old [] = { 0x86, 0x8D, 0x6F, 0x03}; -//2.54.1775.4 SET. Deprecated, use (2 23 42 7 0) instead merchantData -static const unsigned char cvOID_merchantData_old [] = { 0x86, 0x8D, 0x6F, 0x04}; -//2.54.1775.5 SET. Deprecated, use (2 23 42 7 0) instead cardCertRequired -static const unsigned char cvOID_cardCertRequired_old [] = { 0x86, 0x8D, 0x6F, 0x05}; -//2.54.1775.6 SET. Deprecated, use (2 23 42 7 0) instead tunneling -static const unsigned char cvOID_tunneling_old [] = { 0x86, 0x8D, 0x6F, 0x06}; -//2.54.1775.7 SET. Deprecated, use (2 23 42 7 0) instead setQualifier -static const unsigned char cvOID_setQualifier_old [] = { 0x86, 0x8D, 0x6F, 0x07}; -//2.54.1775.99 SET. Deprecated, use (2 23 42 7 0) instead set-data -static const unsigned char cvOID_set_data_old [] = { 0x86, 0x8D, 0x6F, 0x63}; - -#ifdef _MSC_VER -#pragma warning(default : 4305) -#pragma warning(default : 4309) -#endif - -#endif - diff --git a/actlibrary/mingw32-i586/Release/include/actPKCS15BehaviorKit.h b/actlibrary/mingw32-i586/Release/include/actPKCS15BehaviorKit.h deleted file mode 100644 index cdac8da..0000000 --- a/actlibrary/mingw32-i586/Release/include/actPKCS15BehaviorKit.h +++ /dev/null @@ -1,43 +0,0 @@ -// --------------------------------------------------------------------------- -// Name: actPKCS15BehaviorKit.h -// Product: cv act library -// Purpose: Factory functions to create specific PKCS15Behavior objects. -// -// Copyright: (c) 2008 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -// -// Autor: Markus Tesche -// Date: 06/02/2008 -// --------------------------------------------------------------------------- - -#ifndef ACT_PKCS15BehaviorKit_h -#define ACT_PKCS15BehaviorKit_h - -#include - -namespace act -{ - class IToken; - class IPKCS15Behavior; - - // default behavior, does nothing - IPKCS15Behavior* CreatePKCS15Behavior(const char* mid, IToken* token); - - // specialized behavior - IPKCS15Behavior* CreateSafeSignBehavior(const char* mid, IToken* token); - IPKCS15Behavior* CreateStarSignBehavior(const char* mid, IToken* token); - IPKCS15Behavior* CreateJCPKCS15Behavior(const char* mid, IToken* token); - IPKCS15Behavior* CreateJCPKCS15mEACBehavior(const char* mid, IToken* token); - IPKCS15Behavior* CreateHiPathBehavior(const char* mid, IToken* token); - IPKCS15Behavior* CreateV4PKCS15Behavior(const char* mid, IToken* token); - IPKCS15Behavior* CreateACOSPKCS15Behavior(const char* mid, IToken* token); - IPKCS15Behavior* CreateStarCOSPKCS15Behavior(const char* mid, IToken* token); - IPKCS15Behavior* CreateNexusBehavior(const char* mid, IToken* token); - IPKCS15Behavior* CreateVWBehavior(const char* mid, IToken* token); // Nexus derived - IPKCS15Behavior* CreateDTRUSTBehavior(const char* mid, IToken* token); // Nexus derived - -} // namespace act - -#endif // ACT_PKCS15BehaviorKit_h diff --git a/actlibrary/mingw32-i586/Release/include/actPKCS15BehaviorReg.h b/actlibrary/mingw32-i586/Release/include/actPKCS15BehaviorReg.h deleted file mode 100644 index 56f39a2..0000000 --- a/actlibrary/mingw32-i586/Release/include/actPKCS15BehaviorReg.h +++ /dev/null @@ -1,34 +0,0 @@ -// --------------------------------------------------------------------------- -// Name: actPKCS15BehaviorReg.h -// Product: cv act library -// Purpose: Registry for factory functions to create specific PKCS15Behavior objects. -// -// Copyright: (c) 2008 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -// -// Autor: Markus Tesche -// Date: 06/02/2008 -// --------------------------------------------------------------------------- - -#ifndef ACT_PKCS15BehaviorReg_h -#define ACT_PKCS15BehaviorReg_h - -#include "actFactoryReg.h" - -namespace act -{ - class IToken; - class IPKCS15Behavior; - - typedef IPKCS15Behavior* (*CreatePKCS15BehaviorPtr)(const char* mid, IToken* token); - typedef FactoryMapEntry PKCS15BehaviorMapEntry; - - typedef FactoryReg - < IPKCS15Behavior, CreatePKCS15BehaviorPtr, PKCS15BehaviorMapEntry - > PKCS15BehaviorReg; - -} // namespace act - -#endif // ACT_PKCS15BehaviorReg_h diff --git a/actlibrary/mingw32-i586/Release/include/actPaddingKit.h b/actlibrary/mingw32-i586/Release/include/actPaddingKit.h deleted file mode 100644 index 01fb93e..0000000 --- a/actlibrary/mingw32-i586/Release/include/actPaddingKit.h +++ /dev/null @@ -1,26 +0,0 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actPaddingKit.h -// Product: cv act library -// Purpose: declaration of all factory functions -// -// Copyright: (c) 2000 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_PaddingKit_h -#define ACT_PaddingKit_h - -namespace act -{ - class IPadding; - - IPadding* CreatePKCS5Pad(); - IPadding* CreatePKCS1V1_5EMEPad(); - IPadding* CreateOneAndZerosPad(); - IPadding* CreateISO9796Pad(); - IPadding* CreateNoPad(); -} -#endif - diff --git a/actlibrary/mingw32-i586/Release/include/actPaddingReg.h b/actlibrary/mingw32-i586/Release/include/actPaddingReg.h deleted file mode 100644 index 4cad768..0000000 --- a/actlibrary/mingw32-i586/Release/include/actPaddingReg.h +++ /dev/null @@ -1,41 +0,0 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actPaddingReg.h -// Product: cv act library -// Purpose: registry for the factory functions in actPaddingKit.h -// -// Copyright: (c) 2000 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_PaddingReg_h -#define ACT_PaddingReg_h - -namespace act -{ - class IPadding; - class Blob; - - typedef IPadding* (*CreatePaddingPtr)(); - - struct PaddingMapEntry - { - const char* Name; - CreatePaddingPtr CreatePtr; - }; - - class PaddingReg - { - public: - static IPadding* CreatePadding(const char* name); - static CreatePaddingPtr GetCreatePointer(const char* name); - static const char* GetName(void* createptr); - static const char* GetNextName(const char* name); - static void Insert(const char* name, CreatePaddingPtr createptr); - static void Insert(const PaddingMapEntry* paddingmap); - }; - -} // namespace act - -#endif // ACT_PaddingReg_h diff --git a/actlibrary/mingw32-i586/Release/include/actProfileGeneratorKit.h b/actlibrary/mingw32-i586/Release/include/actProfileGeneratorKit.h deleted file mode 100644 index 1992c43..0000000 --- a/actlibrary/mingw32-i586/Release/include/actProfileGeneratorKit.h +++ /dev/null @@ -1,26 +0,0 @@ -// --------------------------------------------------------------------------- -// Name: actProfileGeneratorKit.h -// Product: cv act library -// Purpose: Factory functions for smartcard profile generators. -// -// Copyright: (c) 2009 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -// -// Autor: Markus Tesche -// Date: 12/18/2009 -// --------------------------------------------------------------------------- - -#ifndef ACT_ProfileGeneratorKit_h -#define ACT_ProfileGeneratorKit_h - -namespace act -{ - class IProfileGenerator; - - IProfileGenerator* CreateJCPKCS15Generator(const char* name); - -} // namespace act - -#endif // ACT_ProfileGeneratorKit_h diff --git a/actlibrary/mingw32-i586/Release/include/actProfileGeneratorReg.h b/actlibrary/mingw32-i586/Release/include/actProfileGeneratorReg.h deleted file mode 100644 index 0a8f6be..0000000 --- a/actlibrary/mingw32-i586/Release/include/actProfileGeneratorReg.h +++ /dev/null @@ -1,33 +0,0 @@ -// --------------------------------------------------------------------------- -// Name: actProfileGeneratorReg.h -// Product: cv act library -// Purpose: factory functions registry to create IProfileGenerator objects. -// -// Copyright: (c) 2009 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -// -// Autor: Markus Tesche -// Date: 12/18/2009 -// --------------------------------------------------------------------------- - -#ifndef ACT_ProfileGeneratorReg_h -#define ACT_ProfileGeneratorReg_h - -#include "actFactoryReg.h" - -namespace act -{ - class IProfileGenerator; - - typedef IProfileGenerator* (*CreateProfileGeneratorPtr)(const char*); - typedef FactoryMapEntry ProfileGeneratorMapEntry; - - typedef FactoryReg - < IProfileGenerator, CreateProfileGeneratorPtr, ProfileGeneratorMapEntry - > ProfileGeneratorReg; - -} // namespace act - -#endif // ACT_ProfileGeneratorReg_h diff --git a/actlibrary/mingw32-i586/Release/include/actRNGKit.h b/actlibrary/mingw32-i586/Release/include/actRNGKit.h deleted file mode 100644 index 6a8b886..0000000 --- a/actlibrary/mingw32-i586/Release/include/actRNGKit.h +++ /dev/null @@ -1,44 +0,0 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actRNGKit.h -// Product: cv act library -// Purpose: declaration of all factory functions -// -// Copyright: (c) 2010 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_RNGKit_h -#define ACT_RNGKit_h -namespace act -{ - class IRNGAlg; - - // Dummy PRNG (uses rand() / srand(time(0))) - IRNGAlg* CreateDummyPRNG(); - - // Deterministic PRNGs - IRNGAlg* CreateARC4RNG(); - IRNGAlg* CreateBBS(); - IRNGAlg* CreateFIPS186(); - IRNGAlg* CreateFIPS186DES(); - IRNGAlg* CreateLCG(); - - // AIS 20, K1 - K4 evaluated deterministic PRNG - IRNGAlg* CreateFIPS186K4(); - - // 'True' RNGs - IRNGAlg* CreateDevRandomRNG(); -#ifndef UNDER_CE_30 - IRNGAlg* CreateWinRNG(); -#endif - - // Token RNG (uses IToken::GetRandom()) -#ifndef NO_SMARTCARD - IRNGAlg* CreateTokenRNG(); -#endif -} - -#endif - diff --git a/actlibrary/mingw32-i586/Release/include/actSCardLock.h b/actlibrary/mingw32-i586/Release/include/actSCardLock.h deleted file mode 100644 index 3bc753e..0000000 --- a/actlibrary/mingw32-i586/Release/include/actSCardLock.h +++ /dev/null @@ -1,51 +0,0 @@ -// --------------------------------------------------------------------------- -// Name: actSCardLock.h -// Product: cv act library -// Purpose: Smartcard transaction lock -// -// Copyright: (c) 2009 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -// -// Autor: Markus Tesche -// Date: 07/10/2009 -// --------------------------------------------------------------------------- - -#ifndef ACT_SCardLock_H -#define ACT_SCardLock_H - -#include "actEnv.h" - -#if defined(ACT_64) -# define LOCK_SIZE 32 -#else -# define LOCK_SIZE 16 -#endif - -namespace act -{ - class ISCardOS; - - class SCardLock - { - private: - SCardLock() { } - SCardLock(const SCardLock&) { } - - public: - SCardLock(ISCardOS* os); - ~SCardLock(); - - void Lock(ISCardOS* os); - void Unlock(); - - private: - byte m_lock[LOCK_SIZE]; - }; - -} // namespace act - -#undef LOCK_SIZE - -#endif // ACT_SCardLock_H diff --git a/actlibrary/mingw32-i586/Release/include/actSCardOSKit.h b/actlibrary/mingw32-i586/Release/include/actSCardOSKit.h deleted file mode 100644 index 79ae7b0..0000000 --- a/actlibrary/mingw32-i586/Release/include/actSCardOSKit.h +++ /dev/null @@ -1,170 +0,0 @@ -// --------------------------------------------------------------------------- -// Name: actSCardOSKit.h -// Product: cv act library -// Purpose: registry for factory functions to create SCardOS object -// -// Copyright: (c) 2002 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -// -// Autor: Dr. Xiangdong Wang (XWG) -// Date: 05/13/2002 -// --------------------------------------------------------------------------- - -#ifndef ACT_SCardOSKit_h -#define ACT_SCardOSKit_h - -namespace act -{ - class ISCardOS; - class ISCardAccess; - - /* - ISCardOS* CreateMicardOS(ISCardAccess*); - ISCardOS* CreateMicardo20E(ISCardAccess*); - ISCardOS* CreateMicardo23E(ISCardAccess* ac); - */ - - bool IsACOS(CreateSCardOSPtr ptr); - ISCardOS* CreateACOS_D01(ISCardAccess*); - ISCardOS* CreateACOS_A04(ISCardAccess*); - - bool IsCardOS_M4(CreateSCardOSPtr ptr); - ISCardOS* CreateCardOS_M4(ISCardAccess*); - ISCardOS* CreateCardOS_M4_MoC(ISCardAccess*); - - bool IsCardOS_M4_ECC(CreateSCardOSPtr ptr); - ISCardOS* CreateCardOS_M4_ECC(ISCardAccess*); - - bool IsCardOS_V4(CreateSCardOSPtr ptr); - ISCardOS* CreateCardOS_V4(ISCardAccess*); - - bool IsCardOS_V4_ECC(CreateSCardOSPtr ptr); - ISCardOS* CreateCardOS_V4_ECC(ISCardAccess*); - - bool IsStarCOS(CreateSCardOSPtr ptr); - ISCardOS* CreateStarCOS_3_0(ISCardAccess*); - ISCardOS* CreateStarCOS_3_2(ISCardAccess*); - - bool IsTCOS(CreateSCardOSPtr ptr); - ISCardOS* CreateTCOS_3_0(ISCardAccess*); - - bool IsJavaCardOS(CreateSCardOSPtr ptr); - ISCardOS* CreateJavaCardOS_2_2_2(ISCardAccess*); - ISCardOS* CreateJavaCardOS_2_2_1(ISCardAccess*); - ISCardOS* CreateJavaCardOS_2_2(ISCardAccess*); - ISCardOS* CreateJavaCardOS_2_1_2(ISCardAccess*); - ISCardOS* CreateJavaCardOS_2_1_1(ISCardAccess*); - ISCardOS* CreateJavaCardOS_2_1(ISCardAccess*); - - bool IsISO7816OS(CreateSCardOSPtr ptr); - ISCardOS* CreateISO7816OS(ISCardAccess*); - - // - // Passport OS - // --------------------------------------------------------------------------- - bool IsBACOS(CreateSCardOSPtr ptr); - ISCardOS* CreateBACOS(ISCardAccess* ac); - - bool IsEACOS(CreateSCardOSPtr ptr); - ISCardOS* CreateEACOS(ISCardAccess* ac); - - bool IsEACOS201(CreateSCardOSPtr ptr); - ISCardOS* CreateEACOS201(ISCardAccess* ac); - - bool IsEPAOS(CreateSCardOSPtr ptr); - ISCardOS* CreateEPAOS(ISCardAccess* ac); - - - // --------------------------------------------------------------------------- - inline bool IsACOS(CreateSCardOSPtr ptr) - { - return ptr == CreateACOS_D01 - || ptr == CreateACOS_A04; - } - - // --------------------------------------------------------------------------- - inline bool IsCardOS_M4(CreateSCardOSPtr ptr) - { - return ptr == CreateCardOS_M4 - || ptr == CreateCardOS_M4_MoC; - } - - // --------------------------------------------------------------------------- - inline bool IsCardOS_M4_ECC(CreateSCardOSPtr ptr) - { - return ptr == CreateCardOS_M4_ECC; - } - - // --------------------------------------------------------------------------- - inline bool IsCardOS_V4(CreateSCardOSPtr ptr) - { - return ptr == CreateCardOS_V4; - } - - // --------------------------------------------------------------------------- - inline bool IsCardOS_V4_ECC(CreateSCardOSPtr ptr) - { - return ptr == CreateCardOS_V4_ECC; - } - - // --------------------------------------------------------------------------- - inline bool IsStarCOS(CreateSCardOSPtr ptr) - { - return ptr == CreateStarCOS_3_0 - || ptr == CreateStarCOS_3_2; - } - - // --------------------------------------------------------------------------- - inline bool IsTCOS(CreateSCardOSPtr ptr) - { - return ptr == CreateTCOS_3_0; - } - - // --------------------------------------------------------------------------- - inline bool IsJavaCardOS(CreateSCardOSPtr ptr) - { - return ptr == CreateJavaCardOS_2_2_2 - || ptr == CreateJavaCardOS_2_2_1 - || ptr == CreateJavaCardOS_2_2 - || ptr == CreateJavaCardOS_2_1_2 - || ptr == CreateJavaCardOS_2_1_1 - || ptr == CreateJavaCardOS_2_1; - } - - // --------------------------------------------------------------------------- - inline bool IsISO7816OS(CreateSCardOSPtr ptr) - { - return ptr == CreateISO7816OS; - } - - // - // Passport OS - // --------------------------------------------------------------------------- - inline bool IsBACOS(CreateSCardOSPtr ptr) - { - return ptr == CreateBACOS; - } - - // --------------------------------------------------------------------------- - inline bool IsEACOS(CreateSCardOSPtr ptr) - { - return ptr == CreateEACOS; - } - - // --------------------------------------------------------------------------- - inline bool IsEACOS201(CreateSCardOSPtr ptr) - { - return ptr == CreateEACOS201; - } - - // --------------------------------------------------------------------------- - inline bool IsEPAOS(CreateSCardOSPtr ptr) - { - return ptr == CreateEPAOS; - } - -} // namespace act - -#endif // ACT_SCardOSKit_h diff --git a/actlibrary/mingw32-i586/Release/include/actSCardOSReg.h b/actlibrary/mingw32-i586/Release/include/actSCardOSReg.h deleted file mode 100644 index 4156615..0000000 --- a/actlibrary/mingw32-i586/Release/include/actSCardOSReg.h +++ /dev/null @@ -1,46 +0,0 @@ -// --------------------------------------------------------------------------- -// Name: actSCardOSReg.h -// Product: cv act library -// Purpose: factory functions registry to create SCardOS objects. -// -// Copyright: (c) 2002 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -// -// Autor: Dr. Xiangdong Wang (XWG) -// Date: 04/09/2002 -// --------------------------------------------------------------------------- - -#ifndef ACT_SCardOSReg_h -#define ACT_SCardOSReg_h - -namespace act -{ -# define ACT_ISO7816OS_NAME "ISO7816OS" - - class ISCardOS; - class ISCardAccess; - - typedef ISCardOS* (*CreateSCardOSPtr)(ISCardAccess*); - - struct SCardOSMapEntry - { - const char* Name; - CreateSCardOSPtr CreatePtr; - }; - - class SCardOSReg - { - public: - static ISCardOS* CreateSCardOS(const char* name, ISCardAccess* ac); - static CreateSCardOSPtr GetCreatePointer(const char* name); - static const char* GetName(void* createptr); - static const char* GetNextName(const char* name); - static void Insert(const char* name, CreateSCardOSPtr createptr); - static void Insert(const SCardOSMapEntry* entry); - }; - -} // namespace act - -#endif // ACT_SCardOSReg_h diff --git a/actlibrary/mingw32-i586/Release/include/actSCardTokenKit.h b/actlibrary/mingw32-i586/Release/include/actSCardTokenKit.h deleted file mode 100644 index 90cb011..0000000 --- a/actlibrary/mingw32-i586/Release/include/actSCardTokenKit.h +++ /dev/null @@ -1,105 +0,0 @@ -// --------------------------------------------------------------------------- -// Name: actSCardTokenKit.h -// Product: cv act library -// Purpose: registry for factory functions to create SCardOS and SCardToken objects -// -// Copyright: (c) 2002 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -// -// Autor: Dr. Xiangdong Wang (XWG) -// Date: 05/14/2002 -// --------------------------------------------------------------------------- - -#ifndef ACT_SCardTokenKit_h -#define ACT_SCardTokenKit_h - -namespace act -{ - class ISCardOS; - class SCardToken; - - bool IsStarCOSToken(ISCardOS* os); - SCardToken* CreateStarCOSToken(ISCardOS* os); - - bool IsV4cvProfile(ISCardOS* os); - SCardToken* CreateV4cvProfile(ISCardOS* os); - - bool IsV4cvECProfile(ISCardOS* os); - SCardToken* CreateV4cvECProfile(ISCardOS* os); - - bool IsV4CNSProfile(ISCardOS* os); - SCardToken* CreateV4CNSProfile(ISCardOS* os); - - bool IsNetKey2000Token(ISCardOS* os); - SCardToken* CreateNetKey2000Token(ISCardOS* os); - - bool IsNetKeyE4Token(ISCardOS* os); - SCardToken* CreateNetKeyE4Token(ISCardOS* os); - - bool IsNetKey30Token(ISCardOS* os); - SCardToken* CreateNetKey30Token(ISCardOS* os); - - bool IsNetKeyPKSToken(ISCardOS* os); - SCardToken* CreateNetKeyPKSToken(ISCardOS* os); - - bool IsNetKeyOldToken(ISCardOS* os); - SCardToken* CreateNetKeyOldToken(ISCardOS* os); - - bool IseTrustToken(ISCardOS* os); - SCardToken* CreateeTrustToken(ISCardOS* os); - - bool IsMicardoECToken(ISCardOS* os); - SCardToken* CreateMicardoECToken(ISCardOS* os); - - bool IsM4cvProfile(ISCardOS* os); - SCardToken* CreateM4cvProfile(ISCardOS* os); - - bool IsACOScvProfile(ISCardOS* os); - SCardToken* CreateACOScvProfile(ISCardOS* os); - - bool IsM4SiemensProfile(ISCardOS* os); - SCardToken* CreateM4SiemensProfile(ISCardOS* os); - - bool IsM4cvECProfile(ISCardOS* os); - SCardToken* CreateM4cvECProfile(ISCardOS* os); - - bool IsM4cvMoCProfile(ISCardOS* os); - SCardToken* CreateM4cvMoCProfile(ISCardOS* os); - - bool IsJavaCardAppletManager(ISCardOS* os); - SCardToken* CreateJavaCardAppletManager(ISCardOS* os); - - bool IsJCProfile(ISCardOS* os); - SCardToken* CreateJCProfile(ISCardOS* os); - - // PKCS#15 Profiles - bool IsM4PKCS15Profile(ISCardOS* os); - SCardToken* CreateM4PKCS15Profile(ISCardOS* os); - - bool IsV4PKCS15Profile(ISCardOS* os); - SCardToken* CreateV4PKCS15Profile(ISCardOS* os); - - bool IsV4PKCS15ECProfile(ISCardOS* os); - SCardToken* CreateV4PKCS15ECProfile(ISCardOS* os); - - bool IsJCPKCS15Profile(ISCardOS* os); - SCardToken* CreateJCPKCS15Profile(ISCardOS* os); - - bool IsJCPKCS15ECProfile(ISCardOS* os); - SCardToken* CreateJCPKCS15ECProfile(ISCardOS* os); - - bool IsACOSPKCS15Profile(ISCardOS* os); - SCardToken* CreateACOSPKCS15Profile(ISCardOS* os); - - bool IsStarCOSPKCS15Profile(ISCardOS* os); - SCardToken* CreateStarCOSPKCS15Profile(ISCardOS* os); - - // Passport - bool IsEPAProfile(ISCardOS* os); - SCardToken* CreateEPAProfile(ISCardOS* os); - -} // namespace act - -#endif // ACT_SCardTokenKit_h diff --git a/actlibrary/mingw32-i586/Release/include/actSCardTokenReg.h b/actlibrary/mingw32-i586/Release/include/actSCardTokenReg.h deleted file mode 100644 index 3f26385..0000000 --- a/actlibrary/mingw32-i586/Release/include/actSCardTokenReg.h +++ /dev/null @@ -1,42 +0,0 @@ -// --------------------------------------------------------------------------- -// Name: actSCardTokenReg.h -// Product: cv act library -// Purpose: factory functions registry to create SCardToken objects. -// -// Copyright: (c) 2002 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -// -// Autor: Dr. Xiangdong Wang (XWG) -// Date: 05/13/2002 -// --------------------------------------------------------------------------- - -#ifndef ACT_SCardTokenReg_h -#define ACT_SCardTokenReg_h - -namespace act -{ - class ISCardOS; - class SCardToken; - - typedef bool (*CheckSCardTokenPtr)(ISCardOS*); - typedef SCardToken* (*CreateSCardTokenPtr)(ISCardOS*); - - struct SCardTokenMapEntry - { - CheckSCardTokenPtr CheckPtr; - CreateSCardTokenPtr CreatePtr; - }; - - class SCardTokenReg - { - public: - static SCardToken* CreateSCardToken(ISCardOS* os); - static void Insert(CheckSCardTokenPtr checkptr, CreateSCardTokenPtr createptr); - static void Insert(const SCardTokenMapEntry* entry); - }; - -} // namespace act - -#endif // ACT_SCardTokenReg_h diff --git a/actlibrary/mingw32-i586/Release/include/actSCardUtil.h b/actlibrary/mingw32-i586/Release/include/actSCardUtil.h deleted file mode 100644 index 2b890d0..0000000 --- a/actlibrary/mingw32-i586/Release/include/actSCardUtil.h +++ /dev/null @@ -1,27 +0,0 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actSCardUtil.h -// Product: cv act library -// Purpose: useful global functions -// -// Copyright: (c) 2008 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef actSCardUtil_h -#define actSCardUtil_h - -namespace act -{ - // --------------------------------------------------------------------------- - template - inline BlobT short2blob(unsigned short n) - { - byte data[2] = { byte((n >> 8) & 0xff), byte(n & 0xff) }; - return BlobT(&data[0], &data[0] + sizeof(data)); - } - -} // namespace act - -#endif // actSCardUtil_h diff --git a/actlibrary/mingw32-i586/Release/include/actSlotManager.h b/actlibrary/mingw32-i586/Release/include/actSlotManager.h deleted file mode 100644 index 63875f2..0000000 --- a/actlibrary/mingw32-i586/Release/include/actSlotManager.h +++ /dev/null @@ -1,81 +0,0 @@ -// --------------------------------------------------------------------------- -// Name: actSlotManager.h -// Product: cv act library -// Purpose: The class SlotManager detects and manages the subsystems and the slots -// -// Copyright: (c) 2002 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -// -// Autor: Dr. Xiangdong Wang -// Markus Tesche -// Date: 03/26/2002 -// --------------------------------------------------------------------------- - -#ifndef ACT_SlotManager_h -#define ACT_SlotManager_h - -#include "actIEventMonitoring.h" - -namespace act -{ - class ISubsystem; - class ISubsystemConfig; - - class ISlot; - class ITokenConfig; - - // - // SlotManager - class SlotManager : public IEventMonitoring - { - private: - struct SubsystemList - { - SubsystemList(ISubsystem* system, SubsystemList* next = 0); - ~SubsystemList(); - - SubsystemList* insert(SubsystemList* prev); - SubsystemList* remove(SubsystemList* prev); - - ISubsystem* system; - SubsystemList* next; - }; - - public: - SlotManager(ITokenConfig* tkcfg = 0); - ~SlotManager(); - - bool Install(ISubsystem* system); - bool Install(ISubsystemConfig* config); - - void Refresh(); - void Disconnect(); - ISubsystem* GetSystem(size_t pos = 0) const; - - // SlotList - int GetSlotNumber() const; - const ISlot* GetSlot(int pos) const; - ISlot* CreateSlot(const char* name) const; - - // IEventMonitoring functions - virtual bool IsMonitored() const; - virtual void StopMonitor(bool force = false); - virtual void StartMonitor(IEventHandler* cmd); - - protected: - IEventHandler* SetMonitor(SubsystemList* begin, IEventHandler* cmd, bool force); - - private: - int m_total; - ITokenConfig* m_tkcfg; - SubsystemList* m_begin; - SubsystemList* m_current; - IEventHandler* m_cmd_root; - IEventHandler* m_cmd_current; - }; - -} // namespace act - -#endif // ACT_SlotManager_h diff --git a/actlibrary/mingw32-i586/Release/include/actSlotMonitorKit.h b/actlibrary/mingw32-i586/Release/include/actSlotMonitorKit.h deleted file mode 100644 index 043e5c9..0000000 --- a/actlibrary/mingw32-i586/Release/include/actSlotMonitorKit.h +++ /dev/null @@ -1,32 +0,0 @@ -// --------------------------------------------------------------------------- -// Name: actSlotMonitorKit.h -// Product: cv act library -// Purpose: registry for factory functions to create slot monitors -// -// Copyright: (c) 2009 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -// -// Autor: Markus Tesche -// Date: 04/12/2009 -// --------------------------------------------------------------------------- - -#ifndef ACT_SlotMonitorKit_h -#define ACT_SlotMonitorKit_h - -namespace act -{ - class ISubsystem; - class ISlot; - class ISlotMonitor; - - // default polling slot monitor - ISlotMonitor* CreateSlotMonitor(ISlot*); - - ISlotMonitor* CreatePCSCSlotMonitor(ISlot*); - ISlotMonitor* CreatePCSCSystemSlotMonitor(ISubsystem*); - -} // namespace act - -#endif // ACT_SlotMonitorKit_h diff --git a/actlibrary/mingw32-i586/Release/include/actSlotMonitorReg.h b/actlibrary/mingw32-i586/Release/include/actSlotMonitorReg.h deleted file mode 100644 index 60a8d7e..0000000 --- a/actlibrary/mingw32-i586/Release/include/actSlotMonitorReg.h +++ /dev/null @@ -1,54 +0,0 @@ -// --------------------------------------------------------------------------- -// Name: actSlotMonitorReg.h -// Product: cv act library -// Purpose: factory functions registry to create Slot-Monitor objects. -// -// Copyright: (c) 2009 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -// -// Autor: Markus Tesche -// Date: 04/12/2009 -// --------------------------------------------------------------------------- - -#ifndef ACT_SlotMonitoReg_h -#define ACT_SlotMonitoReg_h - -#include "actFactoryReg.h" - -namespace act -{ - class ISubsystem; - class ISlot; - class ISlotMonitor; - - typedef ISlotMonitor* (*CreateSlotMonitorPtr)(ISlot*); - typedef ISlotMonitor* (*CreateSystemSlotMonitorPtr)(ISubsystem*); - - struct SlotMonitorRegCreatePtr - { - ISlotMonitor* operator()(const char*, ISlot* slot) const - { - return createSlotMonitor != 0 ? createSlotMonitor(slot) : 0; - } - - ISlotMonitor* operator()(const char*, ISubsystem* system) const - { - return createSystemSlotMonitor != 0 ? createSystemSlotMonitor(system) : 0; - } - - CreateSlotMonitorPtr createSlotMonitor; - CreateSystemSlotMonitorPtr createSystemSlotMonitor; - }; - - - typedef FactoryMapEntry SlotMonitorRegEntry; - - typedef FactoryReg - < ISlotMonitor, SlotMonitorRegCreatePtr, SlotMonitorRegEntry - > SlotMonitorReg; - -} // namespace act - -#endif // ACT_SlotMonitoReg_h diff --git a/actlibrary/mingw32-i586/Release/include/actState.h b/actlibrary/mingw32-i586/Release/include/actState.h deleted file mode 100644 index c7e1cbf..0000000 --- a/actlibrary/mingw32-i586/Release/include/actState.h +++ /dev/null @@ -1,29 +0,0 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actState.h -// Product: cv act library -// Purpose: -// -// Copyright: (c) 2000 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_STATE_H -#define ACT_STATE_H - -namespace act -{ - - const int READY=0; - const int SIGNATURE_OK=1; - const int IS_FINALIZED=2; - const int DECRYPT_ERROR=3; - const int CERTIFICATE_OK=4; - const int CERTIFICATE_ERROR=5; - const int VERIFY_ERROR=6; - -} // namspace act - -#endif - diff --git a/actlibrary/mingw32-i586/Release/include/actStreamCipherKit.h b/actlibrary/mingw32-i586/Release/include/actStreamCipherKit.h deleted file mode 100644 index efc74fa..0000000 --- a/actlibrary/mingw32-i586/Release/include/actStreamCipherKit.h +++ /dev/null @@ -1,22 +0,0 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actStreamCipherKit.h -// Product: cv act library -// Purpose: declaration of all factory functions -// -// Copyright: (c) 2001 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_StreamCipherKit_h -#define ACT_StreamCipherKit_h - -namespace act -{ - class IStreamCipher; - - IStreamCipher* CreateARC4(); -} -#endif - diff --git a/actlibrary/mingw32-i586/Release/include/actStreamCipherReg.h b/actlibrary/mingw32-i586/Release/include/actStreamCipherReg.h deleted file mode 100644 index 4cc5b22..0000000 --- a/actlibrary/mingw32-i586/Release/include/actStreamCipherReg.h +++ /dev/null @@ -1,39 +0,0 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actStreamCipherReg.h -// Product: cv act library -// Purpose: registry for factory functions in actStreamCipherKit.h -// -// Copyright: (c) 2001 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_StreamCipherReg_h -#define ACT_StreamCipherReg_h - -namespace act -{ - class IStreamCipher; - - typedef IStreamCipher* (*CreateStreamCipherPtr)(); - - struct StreamCipherMapEntry { - const char* Name; - CreateStreamCipherPtr CreatePtr; - }; - - class StreamCipherReg - { - public: - static IStreamCipher* CreateStreamCipher(const char* name); - static CreateStreamCipherPtr GetCreatePointer(const char* name); - static const char* GetName(void* createptr); - static const char* GetNextName(const char* name); - static void Insert(const char* name,CreateStreamCipherPtr createptr); - static void Insert(const StreamCipherMapEntry* map); - }; -} - -#endif - diff --git a/actlibrary/mingw32-i586/Release/include/actSubsystemKit.h b/actlibrary/mingw32-i586/Release/include/actSubsystemKit.h deleted file mode 100644 index c3452f0..0000000 --- a/actlibrary/mingw32-i586/Release/include/actSubsystemKit.h +++ /dev/null @@ -1,33 +0,0 @@ -// --------------------------------------------------------------------------- -// Name: actSubsystemKit.h -// Product: cv act library -// Purpose: registry for factory functions to create subsystem -// -// Copyright: (c) 2002 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -// -// Autor: Dr. Xiangdong Wang (XWG) -// Date: 05/13/2002 -// --------------------------------------------------------------------------- - -#ifndef ACT_SubsystemKit_h -#define ACT_SubsystemKit_h - -namespace act -{ - class ISubsystem; - class ISubsystemConfig; - - ISubsystem* CreateCTAPISystem(const char*); - - ISubsystem* CreatePCSCSystem(const char*); - ISubsystem* CreatePCSCSystemEx(ISubsystemConfig*); - - ISubsystem* CreateCSPSystem(const char*); - ISubsystem* CreatePKCS11System(const char*); - -} // namespace act - -#endif // ACT_SubsystemKit_h diff --git a/actlibrary/mingw32-i586/Release/include/actSubsystemReg.h b/actlibrary/mingw32-i586/Release/include/actSubsystemReg.h deleted file mode 100644 index 7a82df8..0000000 --- a/actlibrary/mingw32-i586/Release/include/actSubsystemReg.h +++ /dev/null @@ -1,53 +0,0 @@ -// --------------------------------------------------------------------------- -// Name: actSubsystemReg.h -// Product: cv act library -// Purpose: factory functions registry to create Subsystem objects. -// -// Copyright: (c) 2002 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -// -// Autor: Dr. Xiangdong Wang (XWG) -// Markus Tesche -// Date: 05/14/2002 -// --------------------------------------------------------------------------- - -#ifndef ACT_SubsystemReg_h -#define ACT_SubsystemReg_h - -namespace act -{ - class ISubsystem; - class ISubsystemConfig; - - typedef ISubsystem* (*CreateSubsystemPtr)(const char*); - typedef ISubsystem* (*CreateSubsystemExPtr)(ISubsystemConfig*); - - struct SubsystemMapEntry - { - const char* Name; - CreateSubsystemPtr CreatePtr; - CreateSubsystemExPtr CreateExPtr; - }; - - class SubsystemReg - { - public: - static ISubsystem* CreateSubsystem(ISubsystemConfig* config); - static ISubsystem* CreateSubsystem(const char* name, const char* dll_name = 0); - - static CreateSubsystemPtr GetCreatePointer(const char* name); - static CreateSubsystemExPtr GetCreateExPointer(const char* name); - - static const char* GetName(void* createptr); - static const char* GetNextName(const char* name); - - static void Insert(const char* name, CreateSubsystemPtr createptr); - static void Insert(const char* name, CreateSubsystemExPtr createexptr); - static void Insert(const SubsystemMapEntry* map); - }; - -} // namespace act - -#endif // ACT_SubsystemReg_h diff --git a/actlibrary/mingw32-i586/Release/include/actTokenAuthProtocolKit.h b/actlibrary/mingw32-i586/Release/include/actTokenAuthProtocolKit.h deleted file mode 100644 index d528776..0000000 --- a/actlibrary/mingw32-i586/Release/include/actTokenAuthProtocolKit.h +++ /dev/null @@ -1,30 +0,0 @@ -// --------------------------------------------------------------------------- -// Name: actTokenAuthProtocolKit.h -// Product: cv act library -// Purpose: Factory functions to create specific ITokenAuthProtocol objects. -// -// Copyright: (c) 2009 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -// -// Autor: Markus Tesche -// Date: 14/10/2008 -// --------------------------------------------------------------------------- - -#ifndef ACT_TokenAuthProtocolKit_h -#define ACT_TokenAuthProtocolKit_h - -namespace act -{ - class ITokenAuthProtocol; - - ITokenAuthProtocol* CreateTokenAuthPACE(const char* name); // EACv2-PACE - ITokenAuthProtocol* CreateTokenAuthTA(const char* name); // EACv2-TA - ITokenAuthProtocol* CreateTokenAuthCA(const char* name); // EACv2-CA - - ITokenAuthProtocol* CreateTokenAuthBAC(const char* name); // EACv1-BAC - -} // namespace act - -#endif // ACT_TokenAuthProtocolKit_h diff --git a/actlibrary/mingw32-i586/Release/include/actTokenAuthProtocolReg.h b/actlibrary/mingw32-i586/Release/include/actTokenAuthProtocolReg.h deleted file mode 100644 index 9f2924d..0000000 --- a/actlibrary/mingw32-i586/Release/include/actTokenAuthProtocolReg.h +++ /dev/null @@ -1,33 +0,0 @@ -// --------------------------------------------------------------------------- -// Name: actTokenAuthProtocolReg.h -// Product: cv act library -// Purpose: factory functions registry to create ITokenAuthProtocol objects. -// -// Copyright: (c) 2009 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -// -// Autor: Markus Tesche -// Date: 14/10/2009 -// --------------------------------------------------------------------------- - -#ifndef ACT_TokenAuthProtocolReg_h -#define ACT_TokenAuthProtocolReg_h - -#include "actFactoryReg.h" - -namespace act -{ - class ITokenAuthProtocol; - - typedef ITokenAuthProtocol* (*CreateTokenAuthProtocolPtr)(const char*); - typedef FactoryMapEntry TokenAuthProtocolMapEntry; - - typedef FactoryReg - < ITokenAuthProtocol, CreateTokenAuthProtocolPtr, TokenAuthProtocolMapEntry - > TokenAuthProtocolReg; - -} // namespace act - -#endif // ACT_TokenAuthProtocolReg_h diff --git a/actlibrary/mingw32-i586/Release/include/actTokenBase.h b/actlibrary/mingw32-i586/Release/include/actTokenBase.h deleted file mode 100644 index d31b0e7..0000000 --- a/actlibrary/mingw32-i586/Release/include/actTokenBase.h +++ /dev/null @@ -1,200 +0,0 @@ -// --------------------------------------------------------------------------- -// Name: actTokenBase.h -// Product: cv act library -// Purpose: Declares common token enums and constants. -// -// Copyright: (c) 2010 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -// -// Autor: Markus Tesche -// Date: 03/24/2010 -// --------------------------------------------------------------------------- - -#ifndef ACT_TokenBase_h -#define ACT_TokenBase_h - -namespace act -{ - enum TokenError - { - TOKEN_SUCCESS = 0, - TOKEN_FUNCTION_NOT_SUPPORTED = -1, - TOKEN_FUNCTION_FAILED = -2, - TOKEN_LOCKED = -3 - }; - - enum TokenType - { - TOKEN_RSA = 0x0001, - TOKEN_DSA = 0x0002, - TOKEN_DH = 0x0004, - TOKEN_ECDSA = 0x0008, - TOKEN_ECDH = 0x0010, - TOKEN_SECRET = 0x0080, - - TOKEN_BAC = 0x0100, - TOKEN_EAC = 0x0200, - TOKEN_EPA = 0x0400, - }; - - enum TokenStatusCode - { - TOKEN_EMPTY = 0x0000, - TOKEN_INITIALIZED = 0x0001, - TOKEN_PERSONALIZED = 0x0002 - }; - - enum ProfileType - { - PROFILE_EMPTY = 0x00, - PROFILE_CV = 0x01, - PROFILE_CNS = 0x02, - PROFILE_GDO = 0x03, - PROFILE_CVEC = 0x04, - PROFILE_SIGG = 0x05, - PROFILE_JC = 0x06, - PROFILE_MICARDOEC = 0x07, - PROFILE_STARCOS = 0x08, - PROFILE_NETKEY = 0x09, - PROFILE_CVMOC = 0x0a, - - PROFILE_PKCS15 = 0x0f, - PROFILE_PKCS15_mEAC = 0x10, // includes PACE-Pin's - PROFILE_PKCS15_mEAC_TA = 0x11, // includes PACE-Pin's and TA-IS, TA-ST, TA-AT - - PROFILE_BAC = 0x80, - PROFILE_EAC = 0x81, - PROFILE_EAC201 = 0x82, - PROFILE_EPA = 0x83, - - PROFILE_PKCS11 = 0xa0, - PROFILE_CSP = 0xa1, - PROFILE_MD = 0xa2, - - PROFILE_ANY = 0xfe, - PROFILE_UNKNOWN = 0xff - }; - - // usage of key, pin - enum KeyUsage - { - KEY_EMPTY = 0x0000, - SIGN_DATA = 0x0001, - DEC_DATA = 0x0002, - AGREE_KEY = 0x0004, - AUTH_DATA = 0x0008, - BLOCKCIPHER_KEY = 0x0010, - VERIFY_DATA = 0x0020, - ENC_DATA = 0x0040, - UNLOCK_PIN = 0x0100, - UPDATE_BINARY = 0x0200, - DELETE_BINARY = 0x0400, - ALL_USAGE = 0xffff, - - // custom usage - SIGN_HASH = 0x00010000, - CUSTOM_USAGE_MASK = 0xffff0000, - - // combined usage - ENC_DEC_DATA = DEC_DATA | ENC_DATA, - SIGN_DEC_DATA = DEC_DATA | SIGN_DATA, - SIGN_HASH_DATA = SIGN_HASH | SIGN_DATA, - }; - - enum KeyType - { // NOTE: Never change (!), used for serialization. - KEY_UNKNOWN = 0xffff, - - KEY_RSA = 0x0000, - KEY_DSA = 0x0001, - KEY_DH = 0x0002, - KEY_ECDSA = 0x0003, - KEY_ECDH = 0x0004, - - KEY_SECRET = 0x0010, - KEY_DES = 0x0001 + KEY_SECRET, - KEY_2DES = 0x0002 + KEY_SECRET, - KEY_3DES = 0x0003 + KEY_SECRET, - KEY_AES = 0x0004 + KEY_SECRET, - - KEY_TYPE_MASK = 0x001f - }; - - enum CertificateType - { // NOTE: Never change (!), used for serialization. - CERT_UNKNOWN = 0xffff, - - CERT_X509 = 0x0000, - CERT_CV = 0x0001 - }; - - enum CertificateUsage - { - EMPTY_CERT = 0x0000, - SIGN_CERT = 0x0001, - DEC_CERT = 0x0002, - ROOT_CERT = 0x0004, - AUTH_CERT = 0x0008, - CA_CERT = 0x0010, - SMARTCARD_LOGON_CERT = 0x0100, // lib version >= 1.5 - UNSPECIFIED_CERT = 0xffff - }; - - enum SecStatus - { - SS_INVALID = 0x0000, - SS_AUTHENTICATED = 0x0001, - SS_UNKNOWN = 0xffff, - }; - - enum AUTH_OBJ_TYPE - { - AUTH_OBJ_PIN = 0xff, // -1 - AUTH_OBJ_BIOMETRIC = 0xfe, // -2 - }; - - typedef ulong IDType; - typedef ushort FIDType; - - const IDType ID_INVALID = 0; - const FIDType FID_INVALID = 0x0000; - - // - // FileInfo - struct FileInfo - { - explicit FileInfo(FIDType val_fid = FID_INVALID, IDType val_rec_nr = ID_INVALID) - : fid(val_fid) - , rec_nr(val_rec_nr) - { } - - FIDType fid; - IDType rec_nr; - }; - - // LengthInfo - struct LengthInfo - { - LengthInfo(ulong _minLen = 0, ulong _maxLen = 0, ulong _storedLen = 0) - : minLen(_minLen) - , maxLen(_maxLen) - , storedLen(_storedLen) - { } - - void swap(LengthInfo& other) - { - std::swap(minLen, other.minLen); - std::swap(storedLen, other.storedLen); - std::swap(maxLen, other.maxLen); - } - - ulong minLen; - ulong storedLen; - ulong maxLen; - }; - -} // namespace act - -#endif // ACT_TokenBase_h diff --git a/actlibrary/mingw32-i586/Release/include/actTokenConfig.h b/actlibrary/mingw32-i586/Release/include/actTokenConfig.h deleted file mode 100644 index 45844c1..0000000 --- a/actlibrary/mingw32-i586/Release/include/actTokenConfig.h +++ /dev/null @@ -1,104 +0,0 @@ -// --------------------------------------------------------------------------- -// Name: actTokenConfig.h -// Product: cv act library -// Purpose: Declares all availabl param_id's for ITokenCofing. -// -// Copyright: (c) 2009 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -// -// Autor: Markus Tesche -// Date: 05/07/2009 -// --------------------------------------------------------------------------- - -#ifndef ACT_TokenConfig_h -#define ACT_TokenConfig_h - -#include "actMode.h" -#include "actIParam.h" - -namespace act -{ - // according to ISO 24727-3, definition of supported Data Set's - enum DataSetList - { - DATA_SET_NONE = 0, - DATA_SET_PUBLIC_DATA = (1 << 0), - DATA_SET_PRIVATE_DATA = (1 << 1), - DATA_SET_CERTIFICATES = (1 << 2), - DATA_SET_USEFUL_CERTIFICATES = (1 << 3), - DATA_SET_TRUSTED_CERTIFICATES = (1 << 4), - DATA_SET_TRUSTED_PUBLIC_KEYS = (1 << 5), - // - // ... - DATA_SET_NEXT = (1 << 6), - DATA_SET_MASK = DATA_SET_NEXT - 1, - DATA_SET_ALL = PARAM_INVALID_VALUE, - }; - - enum ObjectTypeList - { - OBJECT_TYPE_NONE = 0, - OBJECT_TYPE_KEY_DES = (1 << 0), - OBJECT_TYPE_KEY_2DES = (1 << 1), - OBJECT_TYPE_KEY_3DES = (1 << 2), - OBJECT_TYPE_KEY_AES = (1 << 3), - OBJECT_TYPE_KEY_RSA = (1 << 4), - OBJECT_TYPE_KEY_DSA = (1 << 5), - OBJECT_TYPE_KEY_DH = (1 << 6), - OBJECT_TYPE_KEY_ECC = (1 << 7), - OBJECT_TYPE_DATA = (1 << 8), - OBJECT_TYPE_CERTIFICATE = (1 << 9), - OBJECT_TYPE_USEFUL_CERTIFICATE = (1 << 10), - OBJECT_TYPE_TRUSTED_CERTIFICATE = (1 << 11), - OBJECT_TYPE_TRUSTED_PUBLIC_KEY = (1 << 12), - // - // Mark an object as private - OBJECT_TYPE_PRVIVATE = (1 << 13), - // - // ... - OBJECT_TYPE_NEXT = (1 << 14), - OBJECT_TYPE_MASK = OBJECT_TYPE_NEXT - 1, - OBJECT_TYPE_ALL = PARAM_INVALID_VALUE, - }; - - enum ObjectAttributeList - { - OBJECT_ATTR_LABEL_P = OBJECT_TYPE_NEXT, - OBJECT_ATTR_LABEL_P_PUB = OBJECT_ATTR_LABEL_P, - OBJECT_ATTR_LABEL_P_PRV = OBJECT_ATTR_LABEL_P | OBJECT_TYPE_PRVIVATE, - }; - - enum - { - TC_TYPE = TOKEN_CONFIG, - TC_HAS_TOKEN_CAPABILITIES, - TC_HAS_WRITABLE_AODF, - TC_IS_MOC_ENABLED, - TC_IS_MINIDRIVER_ENABLED, - TC_IS_PROFILE_ERASABLE, - TC_PINPAD_CHAR, - TC_DATA_SET_LIST, - TC_OBJECT_TYPE_LIST, - // - // Object naming - Label Prefix - TC_LABEL_P_PRV_DES = OBJECT_ATTR_LABEL_P_PRV + OBJECT_TYPE_KEY_DES, - TC_LABEL_P_PRV_2DES = OBJECT_ATTR_LABEL_P_PRV + OBJECT_TYPE_KEY_2DES, - TC_LABEL_P_PRV_3DES = OBJECT_ATTR_LABEL_P_PRV + OBJECT_TYPE_KEY_3DES, - TC_LABEL_P_PRV_AES = OBJECT_ATTR_LABEL_P_PRV + OBJECT_TYPE_KEY_AES, - TC_LABEL_P_PUB_RSA = OBJECT_ATTR_LABEL_P_PUB + OBJECT_TYPE_KEY_RSA, - TC_LABEL_P_PRV_RSA = OBJECT_ATTR_LABEL_P_PRV + OBJECT_TYPE_KEY_RSA, - TC_LABEL_P_PUB_ECC = OBJECT_ATTR_LABEL_P_PUB + OBJECT_TYPE_KEY_ECC, - TC_LABEL_P_PRV_ECC = OBJECT_ATTR_LABEL_P_PRV + OBJECT_TYPE_KEY_ECC, - TC_LABEL_P_PUB_DATA = OBJECT_ATTR_LABEL_P_PUB + OBJECT_TYPE_DATA, - TC_LABEL_P_PRV_DATA = OBJECT_ATTR_LABEL_P_PRV + OBJECT_TYPE_DATA, - TC_LABEL_P_PUB_CERTIFICATE = OBJECT_ATTR_LABEL_P_PUB + OBJECT_TYPE_CERTIFICATE, - TC_LABEL_P_PUB_USEFUL_CERTIFICATE = OBJECT_ATTR_LABEL_P_PUB + OBJECT_TYPE_USEFUL_CERTIFICATE, - TC_LABEL_P_PUB_TRUSTED_CERTIFICATE = OBJECT_ATTR_LABEL_P_PUB + OBJECT_TYPE_TRUSTED_CERTIFICATE, - TC_LABEL_P_PUB_TRUSTED_PUBLIC_KEY = OBJECT_ATTR_LABEL_P_PUB + OBJECT_TYPE_TRUSTED_PUBLIC_KEY, - }; - -} // namespace act - -#endif // ACT_TokenConfig_h diff --git a/actlibrary/mingw32-i586/Release/include/actTokenExtensionKit.h b/actlibrary/mingw32-i586/Release/include/actTokenExtensionKit.h deleted file mode 100644 index f087bdc..0000000 --- a/actlibrary/mingw32-i586/Release/include/actTokenExtensionKit.h +++ /dev/null @@ -1,28 +0,0 @@ -// --------------------------------------------------------------------------- -// Name: actTokenExtensionKit.h -// Product: cv act library -// Purpose: Factory functions to create specific ITokenExtension objects. -// -// Copyright: (c) 2008 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -// -// Autor: Markus Tesche -// Date: 12/02/2008 -// --------------------------------------------------------------------------- - -#ifndef ACT_TokenExtensionKit_h -#define ACT_TokenExtensionKit_h - -namespace act -{ - class IToken; - class ITokenExtension; - - ITokenExtension* CreateMDProfileExt(const char* name, IToken*); // Minidriver - ITokenExtension* CreateEACTAwithCAPI(const char* name, IToken*); // EACv2-TA with CAPI - -} // namespace act - -#endif // ACT_TokenExtensionKit_h diff --git a/actlibrary/mingw32-i586/Release/include/actTokenExtensionReg.h b/actlibrary/mingw32-i586/Release/include/actTokenExtensionReg.h deleted file mode 100644 index f961078..0000000 --- a/actlibrary/mingw32-i586/Release/include/actTokenExtensionReg.h +++ /dev/null @@ -1,34 +0,0 @@ -// --------------------------------------------------------------------------- -// Name: actTokenExtensionReg.h -// Product: cv act library -// Purpose: factory functions registry to create ITokenExtension objects. -// -// Copyright: (c) 2008 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -// -// Autor: Markus Tesche -// Date: 12/02/2008 -// --------------------------------------------------------------------------- - -#ifndef ACT_TokenExtensionReg_h -#define ACT_TokenExtensionReg_h - -#include "actFactoryReg.h" - -namespace act -{ - class IToken; - class ITokenExtension; - - typedef ITokenExtension* (*CreateTokenExtensionPtr)(const char*, IToken*); - typedef FactoryMapEntry TokenExtensionMapEntry; - - typedef FactoryReg - < ITokenExtension, CreateTokenExtensionPtr, TokenExtensionMapEntry - > TokenExtensionReg; - -} // namespace act - -#endif // ACT_TokenExtensionReg_h diff --git a/actlibrary/mingw32-i586/Release/include/actTools.h b/actlibrary/mingw32-i586/Release/include/actTools.h deleted file mode 100644 index c22c455..0000000 --- a/actlibrary/mingw32-i586/Release/include/actTools.h +++ /dev/null @@ -1,93 +0,0 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actTools.h -// Product: cv act library -// Purpose: useful global functions -// -// Copyright: (c) 2000 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_Tools_h -#define ACT_Tools_h - -#include "actMode.h" -#include "actBlob.h" - -namespace act -{ - class IKey; - - // Functions for RSA public key and private key operation. - // Both functions return the plain result of the modular - // exponentiation using the public or private exponent. - // - // 1) Calculate m^e mod n, where e is the public exponent - Blob RSAPublicKeyOperation(IKey* rsa_key, const Blob& m); - // 2) Calculate c^d mod n, where d is the private exponent - Blob RSAPrivateKeyOperation(IKey* rsa_key, const Blob& c); - - - // Function for PKCS#3 Diffie-Hellman. - // The function initializes an act::IKey Diffie-Hellman key object - // from PKCS#3 DH parameters p and g (prime and generator). - void PKCS3DHKeyToDHKey(const Blob& prime, const Blob& generator, IKey *dhKey); - - - // Read pfx file and get private key - Blob getPKCS8Key(const Blob& pfx_data, const char* password); - // Read pfx file and get the own (user) certificate - Blob getOwnCertificateFromPfx(const Blob& pfx_data, const char* password); - - - // Function to encode an ASN1 object identifier in binary form - // example EncodeOID("0.2.262.1.10.1.3.8") = { 0x02, 0x82, 0x06, 0x01, 0x0A, 0x01, 0x03, 0x08 } - Blob EncodeOID(const char* oid); - - - // Converts a signed decimal number or hexadecimal number (with prefix "0x" / "-0x") - // into a Blob (Twos-Complement representation for negative numbers) - Blob EncodeNumber(const char* number); - Blob EncodeNumber(int number); - - - // CRC functions - - // CRC-16 (direct mode, no zero bit augmentation) - // - // Poly : 0x8005 (x^16 + x^15 + x^2 + 1) - // RefIn : True (bit reflection on the input bytes) - // RefOut : True (bit reflection on the final CRC value) - // XorOut : 0x0000 (no XOR on the returned CRC value) - unsigned long CalculateCRC16(const act::byte* message, size_t message_len, - unsigned long crc_init_value = 0x0000); - unsigned long CalculateCRC16(const act::Blob& message, - unsigned long crc_init_value = 0x0000); - - // CRC-16 CCIT (direct mode, no zero bit augmentation) - // - // Poly : 0x1021 (x^16 + x^12 + x^5 + 1) - // RefIn : False (no bit reflection on the input bytes) - // RefOut : False (no bit reflection on the final CRC value) - // XorOut : 0x0000 (no XOR on the returned CRC value) - unsigned long CalculateCRC16CCITT(const act::byte* message, size_t message_len, - unsigned long crc_init_value = 0xFFFF); - unsigned long CalculateCRC16CCITT(const act::Blob& message, - unsigned long crc_init_value = 0xFFFF); - - // CRC-32 (direct mode, no zero bit augmentation) - // - // Poly : 0x04C11DB7 (x^32 + x^26 + x^23 + x^22 + x^16 + x^12 + x^11 + ... - // ... + x^10 + x^8 + x^7 + x^5 + x^4 + x^2 + x^ + 1) - // RefIn : True (bit reflection on the input bytes) - // RefOut : True (bit reflection on the final CRC value) - // XorOut : 0xFFFFFFFF (XOR on the returned CRC value) - unsigned long CalculateCRC32(const act::byte* message, size_t message_len, - unsigned long crc_init_value = 0xFFFFFFFF); - unsigned long CalculateCRC32(const act::Blob& message, - unsigned long crc_init_value = 0xFFFFFFFF); - -} // namespace act - -#endif // ACT_Tools_h diff --git a/actlibrary/mingw32-i586/Release/include/actToolsECC.h b/actlibrary/mingw32-i586/Release/include/actToolsECC.h deleted file mode 100644 index 246b99f..0000000 --- a/actlibrary/mingw32-i586/Release/include/actToolsECC.h +++ /dev/null @@ -1,99 +0,0 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actToolsECC.h -// Product: cv act library -// Purpose: useful ECC functions -// -// Copyright: (c) 2009 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_ToolsECC_h -#define ACT_ToolsECC_h - -#include "actMode.h" -#include "actBlob.h" -#include "actIKey.h" - -namespace act -{ - // Functions for ECC scalar multiplication, addition of points. - // Input points must be in ASN.1 point representation (uncompressed, - // compressed or hybrid). The output point will be in ASN.1 representation - // as indicated in 'output_format'. - // - // 1) Calculate s * Q, s unsigned in ASN.1 OCTET STRING representation - // (leading zeros will be ignored) - Blob ECMultiplyPoint(IKey* ec_key, const Blob& s, const Blob& Q, - int output_format = UNCOMPRESSED); - // 2) Calculate Q1 + Q2 - Blob ECAddPoints(IKey* ec_key, const Blob& Q1, const Blob& Q2, - int output_format = UNCOMPRESSED); - - - // Functions to encode an (EC-)DSA signature (r, s) in ASN1 format and backwards. - // - // 1) Plain signature I/O as string - // - for encode: r and s must be in hex notation - // - for decode: the user has to allocate r and s buffers - void EncodeSignature(const char* r, const char* s, Blob& signature_ASN1); - void DecodeSignature(const Blob& signature_ASN1, char* r, char* s); - // 2) Plain signature I/O as byte array (Blob) - // - r and s I/O in big endian representation - void EncodeSignature(const Blob& r, const Blob& s, Blob& signature_ASN1); - void DecodeSignature(const Blob& signature_ASN1, Blob& r, Blob& s); - // 3) Plain signature I/O as byte array (Blob) - // - r_s length even, left haft = r, right half = s - // - if order_bytes is non zero, decode output length is 2 * order_bytes - void EncodeSignature(const Blob& r_s, Blob& signature_ASN1); - void DecodeSignature(const Blob& signature_ASN1, Blob& r_s, size_t order_bytes = 0); - - - // Tools for elliptic curves over GF(P). - // The basepoint can be given by it's coordinates (Gx, Gy) or as - // COMPRESSED, UNCOMPRESSED or HYBRID octetstring G corresponding - // to ANSI X9.62/63 standard. - // By default, the basepoint will be encoded in UNCOMPRESSED format. - - Blob EncodePrimeCurveParam(const Blob& p, const Blob& a, const Blob& b, - const Blob& Gx, const Blob& Gy, const Blob& n, const Blob& h, - int output_type = UNCOMPRESSED); - - Blob EncodePrimeCurveParam(const Blob& p, const Blob& a, const Blob& b, - const Blob& G, const Blob& n, const Blob& h, int output_type = UNCOMPRESSED); - - // dto. for elliptic curves over GF(2^m), tri- or pentanomial basis. - - // tri- or pentanomial in hex presentation - Blob EncodeGF2CurveParam(const Blob& p, const Blob& a, const Blob& b, - const Blob& Gx, const Blob& Gy, const Blob& n, const Blob& h, - int output_type = UNCOMPRESSED); - - // tri- or pentanomial in hex presentation - Blob EncodeGF2CurveParam(const Blob& p, const Blob& a, const Blob& b, - const Blob& G, const Blob& n, const Blob& h, int output_type = UNCOMPRESSED); - - // f(t) = t^m + t^k + 1 - Blob EncodeTrinomialCurveParam(const int m, const int k, - const Blob& a, const Blob& b, const Blob& Gx, const Blob& Gy, - const Blob& n, const Blob& h, int output_type = UNCOMPRESSED); - - // f(t) = t^m + t^k + 1 - Blob EncodeTrinomialCurveParam(const int m, const int k, - const Blob& a, const Blob& b, const Blob& G, const Blob& n, - const Blob& h, int output_type = UNCOMPRESSED); - - // f(t) = t^m + t^k3 + t^k2 + t^k1 + 1 - Blob EncodePentanomialCurveParam(const int m, const int k3, const int k2, - const int k1, const Blob& a, const Blob& b, const Blob& Gx, const Blob& Gy, - const Blob& n, const Blob& h, int output_type = UNCOMPRESSED); - - // f(t) = t^m + t^k3 + t^k2 + t^k1 + 1 - Blob EncodePentanomialCurveParam(const int m, const int k3, const int k2, - const int k1, const Blob& a, const Blob& b, const Blob& G, - const Blob& n, const Blob& h, int output_type = UNCOMPRESSED); - -} // namespace act - -#endif // ACT_ToolsECC_h diff --git a/actlibrary/mingw32-i586/Release/include/actToolsRSA.h b/actlibrary/mingw32-i586/Release/include/actToolsRSA.h deleted file mode 100644 index b79c55b..0000000 --- a/actlibrary/mingw32-i586/Release/include/actToolsRSA.h +++ /dev/null @@ -1,19 +0,0 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actToolsRSA.h -// Product: cv act library -// Purpose: useful RSA functions -// -// Copyright: (c) 2000 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_TOOLS_RSA_H -#define ACT_TOOLS_RSA_H - -#include "actTools.h" - -// TODO: MTE: Move all RSA functions from "actTools.h" to here! include inside "actTools.h" - -#endif // ACT_TOOLS_RSA_H diff --git a/actlibrary/mingw32-i586/Release/include/actTypeTags.h b/actlibrary/mingw32-i586/Release/include/actTypeTags.h deleted file mode 100644 index a844a0d..0000000 --- a/actlibrary/mingw32-i586/Release/include/actTypeTags.h +++ /dev/null @@ -1,32 +0,0 @@ -// --------------------------------------------------------------------------- -// Name: actTypeTags.h -// Product: cv act library -// Purpose: TypeTag<> and usibility forward declarations. -// -// Copyright: (c) 2010 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -// -// Autor: Markus Tesche -// Date: 09/10/2010 -// --------------------------------------------------------------------------- - -#ifndef ACT_TypeTags_h -#define ACT_TypeTags_h - -namespace act -{ - // - // TypeTag<> - template - struct TypeTag { typedef TypeT Type; }; - - // - // CloneFactory<> - template - struct CloneFactory; - -} // namespace act - -#endif // ACT_TypeTags_h diff --git a/actlibrary/mingw32-i586/Release/include/actX509Extension.h b/actlibrary/mingw32-i586/Release/include/actX509Extension.h deleted file mode 100644 index 51f59f0..0000000 --- a/actlibrary/mingw32-i586/Release/include/actX509Extension.h +++ /dev/null @@ -1,50 +0,0 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actX509Extension.h -// Product: cv act library -// Purpose: -// -// Copyright: (c) 2000 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_X509Extension_H -#define ACT_X509Extension_H - -#include "actBlob.h" - -namespace act -{ - class X509Extension - { - public: - X509Extension(); - X509Extension(const Blob& oid, const Blob& value, bool critflag); - X509Extension(const char* oid, const Blob& value, bool critflag); - - void GetOID(Blob& oid) const; - void GetOIDString(Blob& oid) const; - void SetOID(const Blob& oid); - void SetOIDString(const char* oid); - - void GetValue(Blob& value) const; - void SetValue(const Blob& value); - - bool IsCritical() const; - void SetCritical(bool crit = true); - - void GetDER(Blob& der) const; - void SetDER(const Blob& der); - - bool IsPresent() { return mValue.size() > 0; } - - private: - Blob mOID; - Blob mValue; - bool mCrit; - }; - -} // namespace act - -#endif // ACT_X509Extension_H diff --git a/actlibrary/mingw32-i586/Release/include/actX509KeyReg.h b/actlibrary/mingw32-i586/Release/include/actX509KeyReg.h deleted file mode 100644 index 619a17d..0000000 --- a/actlibrary/mingw32-i586/Release/include/actX509KeyReg.h +++ /dev/null @@ -1,48 +0,0 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actX509KeyReg.h -// Product: cv act library -// Purpose: registry for factory functions in actX509Kit.h -// -// Copyright: (c) 2000 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_X509KeyReg_h -#define ACT_X509KeyReg_h - -namespace act -{ - class IKey; - class Blob; - - typedef IKey* (*CreateKeyPtr)(); - typedef void (*X509ToKeyPtr)(const Blob& pkinfo, IKey* key); - typedef void (*KeyToX509Ptr)(const IKey* key, Blob& pkinfo ); - - struct X509KeyMapEntry - { - const char* OID; - CreateKeyPtr CreatePtr; - X509ToKeyPtr X509ToKey; - KeyToX509Ptr KeyToX509; - }; - - class X509KeyReg - { - public: - static IKey* CreateX509Key(const Blob& pkInfo); - static void GetX509KeyInfo(const IKey* key, Blob& pkInfo); - - static CreateKeyPtr GetCreatePointer(const char* oid); - static const char* GetOID(void* createptr); - static const char* GetNextOID(const char* oid); - - static void Insert(const char* name, CreateKeyPtr createptr, X509ToKeyPtr x509tokey, KeyToX509Ptr keytox509); - static void Insert(const X509KeyMapEntry* keymap); - }; - -} // namespace act - -#endif // ACT_X509KeyReg_h diff --git a/actlibrary/mingw32-i586/Release/include/actX509Kit.h b/actlibrary/mingw32-i586/Release/include/actX509Kit.h deleted file mode 100644 index bb0affb..0000000 --- a/actlibrary/mingw32-i586/Release/include/actX509Kit.h +++ /dev/null @@ -1,45 +0,0 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actX509Kit.h -// Product: cv act library -// Purpose: declaration of all factory functions -// -// Copyright: (c) 2000 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_X509Kit_h -#define ACT_X509Kit_h - -namespace act -{ - class Blob; - class IKey; - - void X509ToRSA(const Blob& pkinfo, IKey* key); - void RSAToX509(const IKey* key, Blob& pkinfo); - void RSAGetAlgID(const IKey* key, Blob& algid); - void RSASetAlgID(const Blob& algid, IKey* key ); - - void X509ToDSA(const Blob& pkinfo, IKey* key); - void DSAToX509(const IKey* key, Blob& pkinfo); - void DSAGetAlgID(const IKey* key, Blob& algid); - void DSASetAlgID(const Blob& algid, IKey* key ); - - void X509ToECDSA(const Blob& pkinfo, IKey* key); - void ECDSAToX509(const IKey* key, Blob& pkinfo); - void ECDSAGetAlgID(const IKey* key, Blob& algid); - void ECDSASetAlgID(const Blob& algid, IKey* key ); - - void X509ToDH(const Blob& pkinfo, IKey* key); - void DHToX509(const IKey* key, Blob& pkinfo); - void DHGetAlgID(const IKey* key, Blob& algid); - void DHSetAlgID(const Blob& algid, IKey* key ); - - void ECDHGetAlgID(const IKey* key, Blob& algid); - void ECDHSetAlgID(const Blob& algid, IKey* key ); - -} -#endif - diff --git a/actlibrary/mingw32-i586/Release/include/actX509SignHashReg.h b/actlibrary/mingw32-i586/Release/include/actX509SignHashReg.h deleted file mode 100644 index d4a01d5..0000000 --- a/actlibrary/mingw32-i586/Release/include/actX509SignHashReg.h +++ /dev/null @@ -1,40 +0,0 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actX509SignHashReg.h -// Product: cv act library -// Purpose: registry for factory functions in actX509Kit.h -// -// Copyright: (c) 2000-2001 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_X509SignHashReg_h -#define ACT_X509SignHashReg_h - -namespace act -{ - class Blob; - - // ------------------------------------------------------------------------ - struct X509SignHashMapEntry { - const char* OID; - const char* HashAlg; - const char* SignAlg; - }; - - // ------------------------------------------------------------------------ - class X509SignHashReg - { - public: - static void GetOID(const char* algo, const char* sign_algo, Blob& algid); - static const char* GetHashAlg(const Blob& algid); - static const char* GetSignAlg(const Blob& algid); - static void Insert(const X509SignHashMapEntry* map); - - static const char* GetHashAlg(const Blob& algid, const char* sign_algo); // deprecated - }; - -} -#endif - diff --git a/actlibrary/mingw32-i586/Release/include/actX509SignReg.h b/actlibrary/mingw32-i586/Release/include/actX509SignReg.h deleted file mode 100644 index 74b48a2..0000000 --- a/actlibrary/mingw32-i586/Release/include/actX509SignReg.h +++ /dev/null @@ -1,41 +0,0 @@ -////////////////////////////////////////////////////////////////////////////////// -// Name: actX509SignReg.h -// Product: cv act library -// Purpose: registry for factory functions in actX509Kit.h -// -// Copyright: (c) 2000 cv cryptovision GmbH -// all rights reserved -// Licence: The conditions for the use of this software are regulated -// in the cv act library licence agreement. -////////////////////////////////////////////////////////////////////////////////// - -#ifndef ACT_X509SignReg_h -#define ACT_X509SignReg_h - -namespace act -{ - class IKey; - class Blob; - - typedef IKey* (*CreateKeyPtr)(); - typedef void (*GetX509AlgIDPtr)(const IKey* key, Blob& algid); - typedef void (*SetX509AlgIDPtr)(const Blob& algid, IKey* key); - - struct X509SignMapEntry { - CreateKeyPtr CreatePtr; - GetX509AlgIDPtr GetAlgID; - SetX509AlgIDPtr SetAlgID; - }; - - class X509SignReg - { - public: - static void GetAlgID(const IKey* key, Blob& algid); - static void SetAlgID(const Blob& algid, IKey* key); - - static void Insert(CreateKeyPtr createptr, GetX509AlgIDPtr getalgid, SetX509AlgIDPtr setalgid ); - static void Insert(const X509SignMapEntry* keymap); - }; -} -#endif -