deserialize method

  1. @override
void deserialize(
  1. SerializableInput input
)
override

Interface for intput serialization.

Implementation

@override
void deserialize(SerializableInput input) {
  keytype = deserializeString(input);
  if (!keytype.startsWith('ecdsa-sha2-')) throw FormatException('$keytype');
  keyTypeId = Key.id(keytype);
  if (!Key.ellipticCurveDSA(keyTypeId)) throw FormatException();
  curveName = deserializeString(input);
  q = deserializeStringBytes(input);
  d = deserializeMpInt(input);
  comment = deserializeString(input);
}