KDFScrypt.fromCbor constructor

KDFScrypt.fromCbor(
  1. CborListValue v
)

Implementation

factory KDFScrypt.fromCbor(CborListValue v) {
  final int dklen = v.value[0].value;
  final int n = v.value[1].value;
  final int r = v.value[2].value;
  final int p = v.value[3].value;
  final List<int> salt = v.value[4].value;
  return KDFScrypt(dklen: dklen, n: n, r: r, p: p, salt: salt);
}