RsaKeyPairDEKInfo.parse constructor

RsaKeyPairDEKInfo.parse(
  1. String header
)

Implementation

factory RsaKeyPairDEKInfo.parse(String header) {
  final parts = header.split(',');
  if (parts.length != 2) {
    throw FormatException('Invalid DEK-Info header: $header');
  }
  return RsaKeyPairDEKInfo(
    parts[0],
    Uint8List.fromList(hex.decode(parts[1])),
  );
}