fromTrustedBytes static method

FortisAesKey fromTrustedBytes(
  1. Uint8List bytes
)

Fast-path factory used internally by the builder and ECDH derivation.

Still validates the byte length since the symbol is exported publicly — accepting an invalid size here would surface as a cryptic PointyCastle error on the first AesCipher.encrypt call. Prefer fromBytes in application code.

Implementation

static FortisAesKey fromTrustedBytes(Uint8List bytes) =>
    FortisAesKey.fromBytes(bytes);