Update contrib.
2 * Copyright (c) 2006-2010 Nokia Corporation and/or its subsidiary(-ies).
4 * This component and the accompanying materials are made available
5 * under the terms of the License "Eclipse Public License v1.0"
6 * which accompanies this distribution, and is available
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
9 * Initial Contributors:
10 * Nokia Corporation - initial contribution.
15 * crypto key pair definition - asymmetric key pair
26 #ifndef __CRYPTOAPI_KEYPAIR_H__
27 #define __CRYPTOAPI_KEYPAIR_H__
29 #include <cryptospi/keys.h>
35 The Asymmetric Key Pair Definition
37 NONSHARABLE_CLASS(CKeyPair) : public CBase
42 Create a CKeyPair instance from a public and private key. The
43 CKeyPair takes ownership of both keys.
44 @param aPublicKey The public key in the key pair.
45 @param aPrivateKey The private key in the key pair.
46 @return a pointer to a CKeyPair instance
48 IMPORT_C static CKeyPair* NewL(CKey* aPublicKey, CKey* aPrivateKey);
51 Retrieve the public key
53 IMPORT_C const CKey& PublicKey() const;
56 Retrieve the private key
58 IMPORT_C const CKey& PrivateKey() const;
71 void ConstructL(CKey*, CKey*);
75 The public key in the key pair
80 The private key in the key pair
85 } // namespace CryptoSpi
87 #endif //__CRYPTOAPI_KEYPAIR_H__