COSEKey constructor

COSEKey({
  1. COSELabel? keyType,
  2. COSELabels? keyOps,
  3. List<int>? keyId,
  4. COSELabel? algorithmId,
  5. List<int>? baseInitVector,
  6. Map<COSELabel, CborObject<Object?>>? otherHeaders,
})

Implementation

COSEKey({
  this.keyType,
  this.keyOps,
  List<int>? keyId,
  this.algorithmId,
  List<int>? baseInitVector,
  Map<COSELabel, CborObject>? otherHeaders,
}) : keyId = keyId?.immutable,
     baseInitVector = baseInitVector?.immutable,
     otherHeaders = otherHeaders?.immutable;