fromBytes static method

SecretKey fromBytes(
  1. Uint8List bytes
)

Parses a 520-byte array into a private key.

Format: p (128 bytes) || q (128 bytes) || d (256 bytes) || e (8 bytes), all in big-endian.

Implementation

static SecretKey fromBytes(Uint8List bytes) =>
    SecretKey._(ffi.RsaSecretKey.fromBytes(bytes: bytes));