crypto/weakcryptospi/inc/spi/cryptokeyagreementapi.h
changeset 33 cf642210ecb7
parent 8 35751d3474b7
equal deleted inserted replaced
29:ece3df019add 33:cf642210ecb7
    59 
    59 
    60 		/**
    60 		/**
    61 		Set the private key for this keyagreement. Reset() is called to reinitialized the keyAgreement
    61 		Set the private key for this keyagreement. Reset() is called to reinitialized the keyAgreement
    62 		@param aSelfPrivateKey	The private key of one of the parties
    62 		@param aSelfPrivateKey	The private key of one of the parties
    63 		@param aParams	The parameters shared between both parties
    63 		@param aParams	The parameters shared between both parties
       
    64 		@leave ...	Any of the crypto error codes defined in 
       
    65   					cryptospi_errs.h or any of the system-wide error codes.		
    64 		*/
    66 		*/
    65 		IMPORT_C void SetKeyL(const CKey& aSelfPrivateKey, const CCryptoParams* aParams);
    67 		IMPORT_C void SetKeyL(const CKey& aSelfPrivateKey, const CCryptoParams* aParams);
    66 
    68 
    67 		/**
    69 		/**
    68 		Performs the key agreement operation.
    70 		Performs the key agreement operation.
    69 		@param aOtherPublicKey	The public key of the other party
    71 		@param aOtherPublicKey	The public key of the other party
    70 		@param aParams	The parameters shared between both parties
    72 		@param aParams	The parameters shared between both parties
    71 		@return A pointer to a CKey instance containing the agreed key
    73 		@return A pointer to a CKey instance containing the agreed key
       
    74 		@leave ...	Any of the crypto error codes defined in 
       
    75   					cryptospi_errs.h or any of the system-wide error codes.
    72 		*/
    76 		*/
    73 		IMPORT_C CKey* AgreeL(const CKey& aOtherPublicKey, const CCryptoParams* aParams);
    77 		IMPORT_C CKey* AgreeL(const CKey& aOtherPublicKey, const CCryptoParams* aParams);
    74 
    78 
    75 	private:
    79 	private:
    76 		/**
    80 		/**
   101 		
   105 		
   102 		/**
   106 		/**
   103 		Set the private key for this keyagreement. Reset() is called to reinitialized the keyAgreement
   107 		Set the private key for this keyagreement. Reset() is called to reinitialized the keyAgreement
   104 		@param aSelfPrivateKey	The private key of one of the parties
   108 		@param aSelfPrivateKey	The private key of one of the parties
   105 		@param aParams	The parameters shared between both parties
   109 		@param aParams	The parameters shared between both parties
       
   110 		@leave ...	Any of the crypto error codes defined in 
       
   111   					cryptospi_errs.h or any of the system-wide error codes.
   106 		*/
   112 		*/
   107 		IMPORT_C void SetKeyL(const CKey& aSelfPrivateKey, const CCryptoParams* aParams);
   113 		IMPORT_C void SetKeyL(const CKey& aSelfPrivateKey, const CCryptoParams* aParams);
   108 		
   114 		
   109 		
   115 		
   110 		/**
   116 		/**
   111 		Performs the key agreement operation.
   117 		Performs the key agreement operation.
   112 		@param aOtherPublicKey	The public key of the other party
   118 		@param aOtherPublicKey	The public key of the other party
   113 		@param aKey A pointer to a CKey instance containing the agreed key
   119 		@param aKey A pointer to a CKey instance containing the agreed key
   114 		@param aParams	The parameters shared between both parties
   120 		@param aParams	The parameters shared between both parties
   115 		@param aRequestStatus
   121 		@param aRequestStatus
       
   122 		@leave ...	Any of the crypto error codes defined in 
       
   123   					cryptospi_errs.h or any of the system-wide error codes.
   116 		*/
   124 		*/
   117 		IMPORT_C void AgreeL(const CKey& aOtherPublicKey, CKey& aKey, const CCryptoParams* aParams, TRequestStatus& aRequestStatus);
   125 		IMPORT_C void AgreeL(const CKey& aOtherPublicKey, CKey& aKey, const CCryptoParams* aParams, TRequestStatus& aRequestStatus);
   118 
   126 
   119 	private:
   127 	private:
   120 		/**
   128 		/**