CCmsSignerInfo Class Reference
class CCmsSignerInfo : public CBase
|
Represents CMS signer information as defined in RFC2630. SignedAttributes and UnsignedAttributes are not supported.
Public Member Functions
|
|
~CCmsSignerInfo
()
|
IMPORT_C const
CX509AlgorithmIdentifier
&
|
DigestAlgorithm
()
|
CASN1EncSequence
*
|
EncodeASN1DERLC
()
|
IMPORT_C
TBool
|
IsSignedAttributesPresent
()
|
IMPORT_C
TBool
|
IsUnsignedAttributesPresent
()
|
CCmsSignerInfo
*
|
NewL
(const
TDesC8
&,
TBool
, const
CDSAPrivateKey
&,
CCmsSignerIdentifier
*,
CX509AlgorithmIdentifier
*,
CX509AlgorithmIdentifier
*)
|
CCmsSignerInfo
*
|
NewL
(const
TDesC8
&,
TBool
, const
CRSAPrivateKey
&,
CCmsSignerIdentifier
*,
CX509AlgorithmIdentifier
*,
CX509AlgorithmIdentifier
*)
|
CCmsSignerInfo
*
|
NewL
(const
TDesC8
&)
|
CCmsSignerInfo
*
|
NewLC
(const
TDesC8
&,
TBool
, const
CDSAPrivateKey
&,
CCmsSignerIdentifier
*,
CX509AlgorithmIdentifier
*,
CX509AlgorithmIdentifier
*)
|
CCmsSignerInfo
*
|
NewLC
(const
TDesC8
&,
TBool
, const
CRSAPrivateKey
&,
CCmsSignerIdentifier
*,
CX509AlgorithmIdentifier
*,
CX509AlgorithmIdentifier
*)
|
CCmsSignerInfo
*
|
NewLC
(const
TDesC8
&)
|
IMPORT_C const
CX509AlgorithmIdentifier
&
|
SignatureAlgorithm
()
|
IMPORT_C const
TPtrC8
|
SignatureValue
()
|
IMPORT_C const
CCmsSignerIdentifier
&
|
SignerIdentifier
()
|
IMPORT_C
TInt
|
Version
()
|
Private Member Functions
|
|
CCmsSignerInfo
()
|
void
|
ConstructL
(const
TDesC8
&,
TBool
, const
CDSAPrivateKey
&,
CCmsSignerIdentifier
*,
CX509AlgorithmIdentifier
*,
CX509AlgorithmIdentifier
*)
|
void
|
ConstructL
(const
TDesC8
&,
TBool
, const
CRSAPrivateKey
&,
CCmsSignerIdentifier
*,
CX509AlgorithmIdentifier
*,
CX509AlgorithmIdentifier
*)
|
void
|
ConstructL
(const
TDesC8
&)
|
void
|
DecodeEncryptedDigestL
(const
TDesC8
&)
|
void
|
DecodeSignerIdentifierL
(const
TDesC8
&)
|
CASN1EncBase
*
|
EncodeSignerIdentifierLC
()
|
Constructor & Destructor Documentation
CCmsSignerInfo()
CCmsSignerInfo
|
(
|
)
|
[private]
|
~CCmsSignerInfo()
~CCmsSignerInfo
|
(
|
)
|
[virtual]
|
Member Functions Documentation
ConstructL(const TDesC8 &, TBool, const CDSAPrivateKey &, CCmsSignerIdentifier *, CX509AlgorithmIdentifier *, CX509AlgorithmIdentifier *)
ConstructL(const TDesC8 &, TBool, const CRSAPrivateKey &, CCmsSignerIdentifier *, CX509AlgorithmIdentifier *, CX509AlgorithmIdentifier *)
ConstructL(const TDesC8 &)
void
|
ConstructL
|
(
|
const
TDesC8
&
|
aRawData
|
)
|
[private]
|
Parameters
const
TDesC8
& aRawData
|
the encoded the CMS content info
|
DecodeEncryptedDigestL(const TDesC8 &)
void
|
DecodeEncryptedDigestL
|
(
|
const
TDesC8
&
|
aRawData
|
)
|
[private]
|
Parameters
const
TDesC8
& aRawData
|
the encoded signature
|
DecodeSignerIdentifierL(const TDesC8 &)
void
|
DecodeSignerIdentifierL
|
(
|
const
TDesC8
&
|
aRawData
|
)
|
[private]
|
Decode the signer identifier
Parameters
const
TDesC8
& aRawData
|
the encoded signer identifier
|
DigestAlgorithm()
Returns the digest algorithm identifier.
EncodeASN1DERLC()
Creates the ASN.1 sequence of this CMS signed object and leaves it on the cleanup stack.
EncodeSignerIdentifierLC()
Encode the signer identifier
IsSignedAttributesPresent()
IMPORT_C
TBool
|
IsSignedAttributesPresent
|
(
|
)
|
const
|
Returns whether signed attributes are present or not.
IsUnsignedAttributesPresent()
IMPORT_C
TBool
|
IsUnsignedAttributesPresent
|
(
|
)
|
const
|
Returns whether unsigned attributes are present or not.
NewL(const TDesC8 &, TBool, const CDSAPrivateKey &, CCmsSignerIdentifier *, CX509AlgorithmIdentifier *, CX509AlgorithmIdentifier *)
Creates a CMS signer info object as defined in RFC2630.
Parameters
const
TDesC8
& aDataToBeSigned
|
The data content or its hash to be signed.
|
TBool
aIsHash
|
Indicates whether the first parameter is a hash.
|
const
CDSAPrivateKey
& aKey
|
The DSA private key used to sign.
|
CCmsSignerIdentifier
* aSignerIdentifier
|
The signer identifier. Ownership of the signer identifier is taken by this newly created signer info object. If construction fails, ownership is not transferred. The user needs to push aSignerIdentifier onto the cleanup stack before calling this method, and pop it off the cleanup stack after successful construction.
|
CX509AlgorithmIdentifier
* aDigestAlgorithm
|
The digest algorithm used to create the hash. Ownership of the digest algorithm instance is taken by this newly created signer info object. If construction fails, ownership is not transferred. The user needs to push aDigestAlgorithm onto the cleanup stack before calling this method and pop it off the cleanup stack after successful construction.
|
CX509AlgorithmIdentifier
* aSignatureAlgorithm
|
The signature algorithm to create the signature. Ownership of the signature algorithm instance is taken by this newly created signer info object. If construction fails, ownership is not transferred. The user needs to push aDigestAlgorithm onto the cleanup stack before calling this method and pop it off the cleanup stack after successful construction.
|
NewL(const TDesC8 &, TBool, const CRSAPrivateKey &, CCmsSignerIdentifier *, CX509AlgorithmIdentifier *, CX509AlgorithmIdentifier *)
Creates a CMS signer info object as defined in RFC2630.
Parameters
const
TDesC8
& aDataToBeSigned
|
The data content or its hash to be signed.
|
TBool
aIsHash
|
Indicates whether the first parameter is a hash.
|
const
CRSAPrivateKey
& aKey
|
The RSA private key used to sign.
|
CCmsSignerIdentifier
* aSignerIdentifier
|
The signer identifier. Ownership of the signer identifier is taken by this newly created signer info object. If construction fails, ownership is not transferred. The user needs to push aSignerIdentifier onto the cleanup stack before calling this method, and pop it off the cleanup stack after successful construction.
|
CX509AlgorithmIdentifier
* aDigestAlgorithm
|
The digest algorithm used to create the hash. Ownership of the digest algorithm instance is taken by this newly created signer info object. If construction fails, ownership is not transferred. The user needs to push aDigestAlgorithm onto the cleanup stack before calling this method and pop it off the cleanup stack after successful construction.
|
CX509AlgorithmIdentifier
* aSignatureAlgorithm
|
The signature algorithm to create the signature. Ownership of the signature algorithm instance is taken by this newly created signer info object. If construction fails, ownership is not transferred. The user needs to push aDigestAlgorithm onto the cleanup stack before calling this method and pop it off the cleanup stack after successful construction.
|
NewL(const TDesC8 &)
Creates a CMS signer info object as defined in RFC2630.
Parameters
const
TDesC8
& aRawData
|
the encoded signer info.
|
NewLC(const TDesC8 &, TBool, const CDSAPrivateKey &, CCmsSignerIdentifier *, CX509AlgorithmIdentifier *, CX509AlgorithmIdentifier *)
Creates a CMS signer info object as defined in RFC2630 and leaves it on the cleanup stack.
Parameters
const
TDesC8
& aDataToBeSigned
|
The data content or its hash to be signed.
|
TBool
aIsHash
|
Indicates whether the first parameter is a hash.
|
const
CDSAPrivateKey
& aKey
|
The DSA private key used to sign.
|
CCmsSignerIdentifier
* aSignerIdentifier
|
The signer identifier. Ownership of the signer identifier is taken by this newly created signer info object. If construction fails, ownership is not transferred. The user needs to push aSignerIdentifier onto the cleanup stack before calling this method, and pop it off the cleanup stack after successful construction.
|
CX509AlgorithmIdentifier
* aDigestAlgorithm
|
The digest algorithm used to create the hash. Ownership of the digest algorithm instance is taken by this newly created signer info object. If construction fails, ownership is not transferred. The user needs to push aDigestAlgorithm onto the cleanup stack before calling this method and pop it off the cleanup stack after successful construction.
|
CX509AlgorithmIdentifier
* aSignatureAlgorithm
|
The signature algorithm to create the signature. Ownership of the signature algorithm instance is taken by this newly created signer info object. If construction fails, ownership is not transferred. The user needs to push aDigestAlgorithm onto the cleanup stack before calling this method and pop it off the cleanup stack after successful construction.
|
NewLC(const TDesC8 &, TBool, const CRSAPrivateKey &, CCmsSignerIdentifier *, CX509AlgorithmIdentifier *, CX509AlgorithmIdentifier *)
Creates a CMS signer info object as defined in RFC2630 and leaves it on the cleanup stack.
Parameters
const
TDesC8
& aDataToBeSigned
|
The data content or its hash to be signed.
|
TBool
aIsHash
|
Indicates whether the first parameter is a hash.
|
const
CRSAPrivateKey
& aKey
|
The RSA private key used to sign.
|
CCmsSignerIdentifier
* aSignerIdentifier
|
The signer identifier. Ownership of the signer identifier is taken by this newly created signer info object. If construction fails, ownership is not transferred. The user needs to push aSignerIdentifier onto the cleanup stack before calling this method, and pop it off the cleanup stack after successful construction.
|
CX509AlgorithmIdentifier
* aDigestAlgorithm
|
The digest algorithm used to create the hash. Ownership of the digest algorithm instance is taken by this newly created signer info object. If construction fails, ownership is not transferred. The user needs to push aDigestAlgorithm onto the cleanup stack before calling this method and pop it off the cleanup stack after successful construction.
|
CX509AlgorithmIdentifier
* aSignatureAlgorithm
|
The signature algorithm to create the signature. Ownership of the signature algorithm instance is taken by this newly created signer info object. If construction fails, ownership is not transferred. The user needs to push aDigestAlgorithm onto the cleanup stack before calling this method and pop it off the cleanup stack after successful construction.
|
NewLC(const TDesC8 &)
Creates a CMS signer info object as defined in RFC2630 and leaves it on the cleanup stack.
Parameters
const
TDesC8
& aRawData
|
The encoded signer info.
|
SignatureAlgorithm()
Returns the signature algorithm identifier.
SignatureValue()
IMPORT_C const
TPtrC8
|
SignatureValue
|
(
|
)
|
const
|
Returns the signature value.
SignerIdentifier()
Returns the signer identifier.
Version()
IMPORT_C
TInt
|
Version
|
(
|
)
|
const
|
Returns the version of the CMS signer info object.
Member Data Documentation
CX509AlgorithmIdentifier * iDigestAlgorithm
The digest algorithm identifier
CX509AlgorithmIdentifier * iSignatureAlgorithm
The signature algorithm identifier
HBufC8 * iSignatureValue
HBufC8
*
|
iSignatureValue
|
[private]
|
TBool
iSignedAttributesPresent
TBool
|
iSignedAttributesPresent
|
[private]
|
Represents if the Signed Attribute is present
CCmsSignerIdentifier * iSignerIdentifier
TBool
iUnsignedAttributesPresent
TBool
|
iUnsignedAttributesPresent
|
[private]
|
Represents if the Unsigned Attribute is present
TInt
iVersion
The version of the signer info
Copyright ©2010 Nokia Corporation and/or its subsidiary(-ies).
All rights
reserved. Unless otherwise stated, these materials are provided under the terms of the Eclipse Public License
v1.0.