ASN1Pkcs12Attribute.localKeyID constructor

ASN1Pkcs12Attribute.localKeyID(
  1. Uint8List octets
)

Creates an instance of Attribute for localKeyID with the given octets.

Implementation

ASN1Pkcs12Attribute.localKeyID(Uint8List octets) {
  //attrId = ASN1ObjectIdentifier.fromIdentifierString('1.2.840.113549.1.9.21');
  attrId = ASN1ObjectIdentifier.fromBytes(Uint8List.fromList(
      [0x06, 0x09, 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x09, 0x15]));
  var octetString = ASN1OctetString(octets: octets);
  attrValues = ASN1Set(elements: [octetString]);
}