KdfData.parse constructor

KdfData.parse(
  1. List<int> data
)

Implementation

factory KdfData.parse(List<int> data) {
  if (data[0] == 0x81 && data[1] == 0x01 && data[2] == 0x00) {
    return const KdfData(
        KdfAlgorithm.none, HashAlgorithm.sha256, 0, null, []);
  }
  //TODO: support other KDF algorithms
  throw Exception('KDF is not implemented properly yet.');
}