fromDer static method

PublicKey fromDer(
  1. Uint8List der
)

Parses a DER buffer into a public key.

Throws if der is not a SubjectPublicKeyInfo encoded RSA public key with a 2048-bit modulus and the exponent 65537.

Implementation

static PublicKey fromDer(Uint8List der) =>
    PublicKey._(ffi.RsaPublicKey.fromDer(der: der));