Class KeySpecificInfo

  • All Implemented Interfaces:
    ASN1Encodable, Encodable

    public class KeySpecificInfo
    extends ASN1Object
    ASN.1 def for Diffie-Hellman key exchange KeySpecificInfo structure. See RFC 2631, or X9.42, for further details.
      KeySpecificInfo ::= SEQUENCE {
          algorithm OBJECT IDENTIFIER,
          counter OCTET STRING SIZE (4..4)
      }
     
    • Constructor Detail

      • KeySpecificInfo

        public KeySpecificInfo​(ASN1ObjectIdentifier algorithm,
                               ASN1OctetString counter)
        Base constructor.
        Parameters:
        algorithm - algorithm identifier for the CEK.
        counter - initial counter value for key derivation.
    • Method Detail

      • getInstance

        public static KeySpecificInfo getInstance​(java.lang.Object obj)
        Return a KeySpecificInfo object from the passed in object.
        Parameters:
        obj - an object for conversion or a byte[].
        Returns:
        a KeySpecificInfo
      • getAlgorithm

        public ASN1ObjectIdentifier getAlgorithm()
        The object identifier for the CEK wrapping algorithm.
        Returns:
        CEK wrapping algorithm OID.
      • getCounter

        public ASN1OctetString getCounter()
        The initial counter value for key derivation.
        Returns:
        initial counter value as a 4 byte octet string (big endian).