privateKeyPkcs8 property

Uint8List get privateKeyPkcs8

Gets the PKCS#8 encoded private key. Throws if not decrypted.

Implementation

Uint8List get privateKeyPkcs8 {
  if (!isDecrypted()) {
    throw StateError('Entry not decrypted. Call decrypt() first.');
  }
  return pkcs8PrivateKey!;
}