Location:
signed.h
Link against: crypto.lib
class CSignedObject : public CBase;
Base class for certificates.
CBase
- Base class for all classes to be instantiated on the heap
CSignedObject
- Base class for certificates
Defined in CSignedObject
:
DataElementEncoding()
, Encoding()
, ExternalizeL()
, Fingerprint()
, InternalizeL()
, SetParametersL()
, Signature()
, SignedDataL()
, SigningAlgorithm()
, VerifySignatureL()
, VerifySignatureL()
, iEncoding
, iFingerprint
, iKeyFactory
, iParameters
, iSignature
, iSigningAlgorithm
, ~CSignedObject()
Inherited from CBase
:
Delete()
,
Extension_()
,
operator new()
IMPORT_C TBool VerifySignatureL(const TDesC8 &aEncodedKey) const;
Verifies a signature using the specified encoded key.
|
|
IMPORT_C TBool VerifySignatureL(const TDesC8 &aEncodedKey, const TDesC8 &aHash) const;
Verifies a signature using the specified encoded key and hash.
|
|
IMPORT_C const TPtrC8 Signature() const;
Gets the digital signature.
|
virtual IMPORT_C const TPtrC8 SignedDataL() const=0;
Gets the signed data.
|
IMPORT_C const TPtrC8 Fingerprint() const;
Gets the fingerprint.
The fingerprint returned is the SHA1 hash of the encoding of the entire object.
|
IMPORT_C const TPtrC8 Encoding() const;
Gets the entire encoding.
|
IMPORT_C const CSigningAlgorithmIdentifier &SigningAlgorithm() const;
Gets the signing algorithm ID used.
|
virtual IMPORT_C void ExternalizeL(RWriteStream &aStream) const;
Externalises the encoding of the entire object to a write stream.
The fingerprint and the signed data can be regenerated after restoration.
The presence of this function means that the standard templated operator<<()
can be used to externalise objects of this class.
|
virtual IMPORT_C void InternalizeL(RReadStream &aStream)=0;
Internalises the encoded object from a read stream.
The class makes use of a specification-specific parser class for extracting the various elements, that is provided by a subclass of CSignedObject. For this reason this function is pure virtual.
The presence of this function means that the standard templated operator>>()
can be used to internalise objects of this class.
|
IMPORT_C void SetParametersL(const CSigningKeyParameters &aParameters);
Sets the signing key parameters.
|
virtual IMPORT_C const TPtrC8 *DataElementEncoding(const TUint aIndex) const=0;
Gets the encoded data for the specified encoded data element, in the (to be signed) tbsCertificate data structure, of the signed object.
|
|
protected: HBufC8 * iFingerprint;
The fingerprint.
The SHA1 hash of the encoding of the entire object.
protected: CSigningAlgorithmIdentifier * iSigningAlgorithm;
The signing algorithm ID.