Class ChipAuthenticationPublicKeyInfo
Object
|
+--ChipAuthenticationPublicKeyInfo
- class
ChipAuthenticationPublicKeyInfo
This class encodes and decodes ChipAuthenticationPublicKeyInfo objects.
The class implements the following ASN.1 syntax:
ChipAuthenticationPublicKeyInfo ::= SEQUENCE {
protocol OBJECT IDENTIFIER(id-PK-DH | id-PK-ECDH),
chipAuthenticationPublicKey SubjectPublicKeyInfo,
keyId INTEGER OPTIONAL
}
SubjectPublicKeyInfo ::= SEQUENCE {
algorithm AlgorithmIdentifier,
subjectPublicKey BIT STRING
}
AlgorithmIdentifier ::= SEQUENCE {
algorithm OBJECT IDENTIFIER,
parameters ANY DEFINED BY algorithm OPTIONAL
}
Defined in chipauthentication.js
Method Summary |
Object
|
toString()
|
ASN1
|
toTLV()
Convert object to TLV structure
|
<static> ByteString
|
convertUnsignedInteger(<ByteString> value)
Removes leading zeros and prepends a single '00' to ByteStrings which have the most significant bit set.
|
<static> ASN1
|
createECSubjectPublicKeyInfo(publicKey, encodeECDomainParameter)
Creates the EC Public Key as subjectPublicKeyInfo TLV structure object.
|
algorithm
Object algorithm
domainParameter
Object domainParameter
keyId
Object keyId
protocol
Object protocol
publicKey
Object publicKey
standardizedDomainParameter
Object standardizedDomainParameter
ChipAuthenticationPublicKeyInfo
ChipAuthenticationPublicKeyInfo(tlv)
Create a ChipAuthenticationPublicKeyInfo object
Parameters:
the
- optional tlv structure to initialize the object
toString
Object toString()
toTLV
ASN1 toTLV()
Convert object to TLV structure
convertUnsignedInteger
<static> ByteString convertUnsignedInteger(<ByteString> value)
Removes leading zeros and prepends a single '00' to ByteStrings which have the most significant bit set.
This prevent interpretation of the integer representation if converted into
a signed ASN1 INTEGER.
Parameters:
value
- the value to convert
createECSubjectPublicKeyInfo
<static> ASN1 createECSubjectPublicKeyInfo(publicKey, encodeECDomainParameter)
SubjectPublicKeyInfo ::= SEQUENCE {
algorithm AlgorithmIdentifier,
subjectPublicKey BIT STRING }
AlgorithmIdentifier ::= SEQUENCE {
algorithm OBJECT IDENTIFIER,
parameters ANY DEFINED BY algorithm OPTIONAL }
id-ecPublicKey OBJECT IDENTIFIER ::= {
iso(1) member-body(2) us(840) ansi-X9-62(10045) keyType(2) 1 }
ECParameters ::= CHOICE {
namedCurve OBJECT IDENTIFIER,
implicitCurve NULL,
specifiedCurve SpecifiedECDomain }
Returns:
the subjectPublicKey TLV structure
Documentation generated by
JSDoc on Tue Sep 3 22:29:38 2013