48 public: |
48 public: |
49 /** |
49 /** |
50 Set the private key for this keyagreement. Reset() is called to reinitialize the keyAgreement |
50 Set the private key for this keyagreement. Reset() is called to reinitialize the keyAgreement |
51 @param aSelfPrivateKey The private key of one of the parties |
51 @param aSelfPrivateKey The private key of one of the parties |
52 @param aParams The parameters shared between both parties |
52 @param aParams The parameters shared between both parties |
|
53 |
|
54 @leave ... Any of the crypto error codes defined in |
|
55 cryptospi_errs.h or any of the system-wide error codes. |
53 */ |
56 */ |
54 virtual void SetKeyL(const CKey& aSelfPrivateKey, const CCryptoParams* aParams) = 0; |
57 virtual void SetKeyL(const CKey& aSelfPrivateKey, const CCryptoParams* aParams) = 0; |
55 |
58 |
56 /** |
59 /** |
57 Performs the key agreement operation. |
60 Performs the key agreement operation. |
58 @param aOtherPublicKey The public key of the other party |
61 @param aOtherPublicKey The public key of the other party |
59 @param aParams The parameters shared between both parties |
62 @param aParams The parameters shared between both parties |
60 @return A pointer to a CKey instance containing the agreed key |
63 @return A pointer to a CKey instance containing the agreed key |
|
64 |
|
65 @leave ... Any of the crypto error codes defined in |
|
66 cryptospi_errs.h or any of the system-wide error codes. |
61 */ |
67 */ |
62 virtual CKey* AgreeL(const CKey& aOtherPublicKey, const CCryptoParams* aParams) = 0; |
68 virtual CKey* AgreeL(const CKey& aOtherPublicKey, const CCryptoParams* aParams) = 0; |
63 }; |
69 }; |
64 |
70 |
65 |
71 |
69 |
75 |
70 /** |
76 /** |
71 Set the private key for this keyagreement. Reset() is called to reinitialize the keyAgreement |
77 Set the private key for this keyagreement. Reset() is called to reinitialize the keyAgreement |
72 @param aSelfPrivateKey The private key of one of the parties |
78 @param aSelfPrivateKey The private key of one of the parties |
73 @param aParams The parameters shared between both parties |
79 @param aParams The parameters shared between both parties |
|
80 |
|
81 @leave ... Any of the crypto error codes defined in |
|
82 cryptospi_errs.h or any of the system-wide error codes. |
74 */ |
83 */ |
75 virtual void SetKeyL(const CKey& aSelfPrivateKey, const CCryptoParams* aParams) = 0; |
84 virtual void SetKeyL(const CKey& aSelfPrivateKey, const CCryptoParams* aParams) = 0; |
76 |
85 |
77 /** |
86 /** |
78 Performs the key agreement operation. |
87 Performs the key agreement operation. |
79 @param aOtherPublicKey The public key of the other party |
88 @param aOtherPublicKey The public key of the other party |
80 @param aKey A pointer to a CKey instance containing the agreed key |
89 @param aKey A pointer to a CKey instance containing the agreed key |
81 @param aParams The parameters shared between both parties |
90 @param aParams The parameters shared between both parties |
82 @param aRequestStatus |
91 @param aRequestStatus |
|
92 |
|
93 @leave ... Any of the crypto error codes defined in |
|
94 cryptospi_errs.h or any of the system-wide error codes. |
83 */ |
95 */ |
84 virtual void AgreeL(const CKey& aOtherPublicKey, CKey& aKey, const CCryptoParams* aParams, TRequestStatus& aRequestStatus) = 0; |
96 virtual void AgreeL(const CKey& aOtherPublicKey, CKey& aKey, const CCryptoParams* aParams, TRequestStatus& aRequestStatus) = 0; |
85 |
97 |
86 /** |
98 /** |
87 Cancel the outstanding request |
99 Cancel the outstanding request |