Public Member Functions

nsIDataSignatureVerifier Interface Reference

An interface for verifying that a given string of data was signed by the private key matching the given public key. More...

import "nsIDataSignatureVerifier.idl";

List of all members.

Public Member Functions

boolean verifyData (in ACString aData, in ACString aSignature, in ACString aPublicKey)
 Verifies that the data matches the data that was used to generate the signature.

Detailed Description

An interface for verifying that a given string of data was signed by the private key matching the given public key.


Member Function Documentation

boolean nsIDataSignatureVerifier::verifyData ( in ACString  aData,
in ACString  aSignature,
in ACString  aPublicKey 
)

Verifies that the data matches the data that was used to generate the signature.

Parameters:
aData The data to be tested.
aSignature The signature of the data, base64 encoded.
aPublicKey The public part of the key used for signing, DER encoded then base64 encoded.
Returns:
true if the signature matches the data, false if not.

The documentation for this interface was generated from the following file: