crypto/weakcryptospi/inc/spi/verifierplugin.h
changeset 30 cf642210ecb7
parent 8 35751d3474b7
child 49 2f10d260163b
equal deleted inserted replaced
19:ece3df019add 30:cf642210ecb7
    44 		/**
    44 		/**
    45 		Verify the signature
    45 		Verify the signature
    46 		@param aInput	The hash of the message to be verified
    46 		@param aInput	The hash of the message to be verified
    47 		@param aSignature	The signature of the hash
    47 		@param aSignature	The signature of the hash
    48 		@param aVerificationResult	Indicates the success or failure of the verification
    48 		@param aVerificationResult	Indicates the success or failure of the verification
       
    49 		@leave ...	Any of the crypto error codes defined in 
       
    50   					cryptospi_errs.h or any of the system-wide error codes.
    49 		*/
    51 		*/
    50 		virtual void VerifyL(const TDesC8& aInput, const CCryptoParams& aSignature, TBool& aVerificationResult) = 0;
    52 		virtual void VerifyL(const TDesC8& aInput, const CCryptoParams& aSignature, TBool& aVerificationResult) = 0;
    51 
    53 
    52 		/**
    54 		/**
    53 		Unsign the signature
    55 		Unsign the signature
    54 		@param aOutput	The unsigned hash
    56 		@param aOutput	The unsigned hash
    55 		@param aSignature	The signature of the hash
    57 		@param aSignature	The signature of the hash
       
    58 		@leave ...	Any of the crypto error codes defined in 
       
    59   					cryptospi_errs.h or any of the system-wide error codes.
    56 		*/
    60 		*/
    57 		virtual void InverseSignL(HBufC8*& aOutput, const CCryptoParams& aSignature) = 0;
    61 		virtual void InverseSignL(HBufC8*& aOutput, const CCryptoParams& aSignature) = 0;
    58 		};
    62 		};
    59 
    63 
    60 	class MAsyncVerifier : public MSignatureBase
    64 	class MAsyncVerifier : public MSignatureBase
    65 		Verify the signature
    69 		Verify the signature
    66 		@param aInput	The hash of the message to be verified
    70 		@param aInput	The hash of the message to be verified
    67 		@param aSignature	The signature of the hash
    71 		@param aSignature	The signature of the hash
    68 		@param aVerificationResult	Indicates the success or failure of the verification
    72 		@param aVerificationResult	Indicates the success or failure of the verification
    69 		@param aRequestStatus
    73 		@param aRequestStatus
       
    74 		@leave ...	Any of the crypto error codes defined in 
       
    75   					cryptospi_errs.h or any of the system-wide error codes.
    70 		*/
    76 		*/
    71 		virtual void VerifyL(const TDesC8& aInput, const CCryptoParams& aSignature, TBool& aVerificationResult, TRequestStatus& aRequestStatus) = 0;
    77 		virtual void VerifyL(const TDesC8& aInput, const CCryptoParams& aSignature, TBool& aVerificationResult, TRequestStatus& aRequestStatus) = 0;
    72 
    78 
    73 		/**
    79 		/**
    74 		Unsign the signature
    80 		Unsign the signature
    75 		@param aOutput	The unsigned hash
    81 		@param aOutput	The unsigned hash
    76 		@param aSignature	The signature of the hash
    82 		@param aSignature	The signature of the hash
    77 		@param aRequestStatus the request status.
    83 		@param aRequestStatus the request status.
       
    84 		@leave ...	Any of the crypto error codes defined in 
       
    85   					cryptospi_errs.h or any of the system-wide error codes.
    78 		*/
    86 		*/
    79 		virtual void InverseSignL(HBufC8*& aOutput, const CCryptoParams& aSignature, TRequestStatus& aRequestStatus) = 0;
    87 		virtual void InverseSignL(HBufC8*& aOutput, const CCryptoParams& aSignature, TRequestStatus& aRequestStatus) = 0;
    80 		/**
    88 		/**
    81 		Cancel the outstanding request
    89 		Cancel the outstanding request
    82 		*/
    90 		*/