diff -r afc583cfa176 -r da2ae96f639b cryptoservices/certificateandkeymgmt/inc/unifiedkeystore_v2.h --- a/cryptoservices/certificateandkeymgmt/inc/unifiedkeystore_v2.h Fri Oct 02 13:15:59 2009 +0300 +++ b/cryptoservices/certificateandkeymgmt/inc/unifiedkeystore_v2.h Mon Oct 12 10:17:04 2009 +0300 @@ -32,6 +32,15 @@ #include +#ifdef SYMBIAN_ENABLE_SDP_WMDRM_SUPPORT +namespace CryptoSpi + { + class CSigner; + class CAsymmetricCipher; + class CCryptoParams; + } +#endif + /** * Unified KeyStore panics * @@ -127,6 +136,23 @@ TRequestStatus& aStatus); virtual void CancelExportPublic(); +#ifdef SYMBIAN_ENABLE_SDP_WMDRM_SUPPORT + virtual void Open(const TCTTokenObjectHandle& aHandle, + CryptoSpi::CSigner*& aSigner, + TRequestStatus& aStatus); + virtual void Open(const TCTTokenObjectHandle& aHandle, + CryptoSpi::CAsymmetricCipher*& asymmetricCipherObj, + TRequestStatus& aStatus); + virtual void Decrypt(const TCTTokenObjectHandle& aHandle, + const TDesC8& aCiphertext, + HBufC8*& aPlaintextPtr, + TRequestStatus& aStatus); + virtual void Sign(const TCTTokenObjectHandle& aHandle, + const TDesC8& aPlaintext, + CryptoSpi::CCryptoParams*& aSignature, + TRequestStatus& aStatus); +#endif + public: // For MCTKeyStoreManager except those (CreateKey, ImportKey, ImportEncryptedKey) // that require a caller-specified store