Skip to content

ImportEncryptedKeyErrorCode ​

ImportEncryptedKeyErrorCode ​

Machine-readable failure reason for the importEncrypted* key functions.

Distinguishes a wrong decryption password ('invalid_password') from structurally invalid input or algorithm mismatches ('malformed'), from an encoded KDF iteration count above the caller's limit ('kdf_iterations_exceeded'), and from a decoding limit of micro509's own ('limit_exceeded', see ImportKeyErrorCode).

ts
type ImportEncryptedKeyErrorCode = ImportKeyErrorCode | "invalid_password" | "kdf_iterations_exceeded"

Released under the MIT License.