00001 00009 #if !defined(__PKIFCRYPTOPPUTILS_H__) 00010 #define __PKIFCRYPTOPPUTILS_H__ 00011 00012 #include "PKIFdll.h" 00013 00014 FD_SMART_PTR(CPKIFCredential); 00015 FD_SMART_PTR(CPKIFKeyMaterial); 00016 FD_SMART_PTR(CPKIFCertificate); 00017 FD_SMART_PTR(CPKIFBuffer); 00018 00023 CAC_API CPKIFBufferPtr GetTBSCertSequence(const CPKIFCertificate & cert); 00024 CAC_API CPKIFCredentialPtr MakeCredentialFromP8File(const std::string & file ); 00025 CAC_API CPKIFCredentialPtr MakeCredentialFromP8File(const std::string & file, const std::string & certFile ); 00026 CAC_API CPKIFKeyMaterialPtr MakeKeyMaterialFromPKFile(const std::string & file); 00027 CAC_API CPKIFKeyMaterialPtr MakeKeyMaterialFromP8File(const std::string & file); 00028 CAC_API CPKIFBufferPtr GetEncodedSPKIFromKM(const CPKIFKeyMaterial & km); 00029 CAC_API CPKIFBufferPtr DeriveKeyFromSecret(const CPKIFBufferPtr & secret, const CPKIFBufferPtr & sharedInfo, unsigned int keyLength); 00030 00031 #endif