public final class X963ASN1SharedInfo extends Object implements iaik.asn1.ASN1Type
ASN1SharedInfo ::= SEQUENCE {
keyInfo AlgorithmIdentifier,
entityUInfo [0] OCTET STRING OPTIONAL,
entityVInfo [1] OCTET STRING OPTIONAL,
suppPubInfo [2] OCTET STRING OPTIONAL,
suppPrivInfo [3] OCTET STRING OPTIONAL
}
References:
[1] Certicom Research. 2009. Standards for Efficient Cryptography - SEC 1: Elliptic Curve Cryptography v2.0
X963KDFParameterSpec| Constructor and Description |
|---|
X963ASN1SharedInfo()
Constructs an new empty instance.
|
X963ASN1SharedInfo(iaik.asn1.structures.AlgorithmID keyInfo,
byte[] entityUInfo,
byte[] entityVInfo,
byte[] suppPubInfo,
byte[] suppPrivInfo)
Creates a new instance for given parameters.
|
X963ASN1SharedInfo(iaik.asn1.ASN1Object obj)
Constructs a new instance from an
ASN1Object. |
| Modifier and Type | Method and Description |
|---|---|
void |
decode(iaik.asn1.ASN1Object obj)
Creates a new
ASN1SharedInfo object from the
specified ASN.1 structure. |
iaik.asn1.SEQUENCE |
toASN1Object()
Constructs a new ASN.1 encoding from this shared information of the
following form:
|
public X963ASN1SharedInfo()
public X963ASN1SharedInfo(iaik.asn1.structures.AlgorithmID keyInfo,
byte[] entityUInfo,
byte[] entityVInfo,
byte[] suppPubInfo,
byte[] suppPrivInfo)
keyInfo - the symmetric algorithm for which the key should be derivedentityUInfo - additional information about the scheme's initiator, for instance
the entity's DN or public keyentityVInfo - additional information about the scheme's responder, for instance
the entity's DN or public keysuppPubInfo - additional public information known to both entitiessuppPrivInfo - additional private information known to both entitiespublic X963ASN1SharedInfo(iaik.asn1.ASN1Object obj)
throws iaik.asn1.CodingException
ASN1Object.obj - the ASN1Objectiaik.asn1.CodingException - if obj does not belong to a valid
ASN1SharedInfo SEQUENCEpublic void decode(iaik.asn1.ASN1Object obj)
throws iaik.asn1.CodingException
ASN1SharedInfo object from the
specified ASN.1 structure.decode in interface iaik.asn1.ASN1Typeobj - the ASN.1 object.iaik.asn1.CodingException - if the ASN.1 has an invalid syntaxtoASN1Object()public iaik.asn1.SEQUENCE toASN1Object()
ASN1SharedInfo ::= SEQUENCE {
keyInfo AlgorithmIdentifier,
entityUInfo [0] OCTET STRING OPTIONAL,
entityVInfo [1] OCTET STRING OPTIONAL,
suppPubInfo [2] OCTET STRING OPTIONAL,
suppPrivInfo [3] OCTET STRING OPTIONAL
}
toASN1Object in interface iaik.asn1.ASN1TypeCopyright © 2011–2022 Stiftung SIC. All rights reserved.