structstd.crypto.errors[src]

Error Sets

Error SetAuthenticationError[src]

MAC verification failed - The tag doesn't verify for the given ciphertext and secret key

Errors

anyerror means the error set is known only at runtime.

AuthenticationFailed

Source Code

Source code
pub const AuthenticationError = error{AuthenticationFailed}

Error SetOutputTooLongError[src]

The requested output length is too long for the chosen algorithm

Errors

anyerror means the error set is known only at runtime.

OutputTooLong

Source Code

Source code
pub const OutputTooLongError = error{OutputTooLong}

Error SetIdentityElementError[src]

Finite field operation returned the identity element

Errors

anyerror means the error set is known only at runtime.

IdentityElement

Source Code

Source code
pub const IdentityElementError = error{IdentityElement}

Error SetEncodingError[src]

Encoded input cannot be decoded

Errors

anyerror means the error set is known only at runtime.

InvalidEncoding

Source Code

Source code
pub const EncodingError = error{InvalidEncoding}

Error SetSignatureVerificationError[src]

The signature doesn't verify for the given message and public key

Errors

anyerror means the error set is known only at runtime.

SignatureVerificationFailed

Source Code

Source code
pub const SignatureVerificationError = error{SignatureVerificationFailed}

Error SetKeyMismatchError[src]

Both a public and secret key have been provided, but they are incompatible

Errors

anyerror means the error set is known only at runtime.

KeyMismatch

Source Code

Source code
pub const KeyMismatchError = error{KeyMismatch}

Error SetNonCanonicalError[src]

Encoded input is not in canonical form

Errors

anyerror means the error set is known only at runtime.

NonCanonical

Source Code

Source code
pub const NonCanonicalError = error{NonCanonical}

Error SetNotSquareError[src]

Square root has no solutions

Errors

anyerror means the error set is known only at runtime.

NotSquare

Source Code

Source code
pub const NotSquareError = error{NotSquare}

Error SetPasswordVerificationError[src]

Verification string doesn't match the provided password and parameters

Errors

anyerror means the error set is known only at runtime.

PasswordVerificationFailed

Source Code

Source code
pub const PasswordVerificationError = error{PasswordVerificationFailed}

Error SetWeakParametersError[src]

Parameters would be insecure to use

Errors

anyerror means the error set is known only at runtime.

WeakParameters

Source Code

Source code
pub const WeakParametersError = error{WeakParameters}

Error SetWeakPublicKeyError[src]

Public key would be insecure to use

Errors

anyerror means the error set is known only at runtime.

WeakPublicKey

Source Code

Source code
pub const WeakPublicKeyError = error{WeakPublicKey}

Error SetUnexpectedSubgroupError[src]

Point is not in the prime order group

Errors

anyerror means the error set is known only at runtime.

UnexpectedSubgroup

Source Code

Source code
pub const UnexpectedSubgroupError = error{UnexpectedSubgroup}

Error SetError[src]

Any error related to cryptography operations

Errors

anyerror means the error set is known only at runtime.

AuthenticationFailed AuthenticationError
IdentityElement IdentityElementError
InvalidEncoding EncodingError
KeyMismatch KeyMismatchError
NonCanonical NonCanonicalError
NotSquare NotSquareError
OutputTooLong OutputTooLongError
PasswordVerificationFailed PasswordVerificationError
SignatureVerificationFailed SignatureVerificationError
UnexpectedSubgroup UnexpectedSubgroupError
WeakParameters WeakParametersError
WeakPublicKey WeakPublicKeyError

Source Code

Source code
/// MAC verification failed - The tag doesn't verify for the given ciphertext and secret key
pub const AuthenticationError = error{AuthenticationFailed};

/// The requested output length is too long for the chosen algorithm
pub const OutputTooLongError = error{OutputTooLong};

/// Finite field operation returned the identity element
pub const IdentityElementError = error{IdentityElement};

/// Encoded input cannot be decoded
pub const EncodingError = error{InvalidEncoding};

/// The signature doesn't verify for the given message and public key
pub const SignatureVerificationError = error{SignatureVerificationFailed};

/// Both a public and secret key have been provided, but they are incompatible
pub const KeyMismatchError = error{KeyMismatch};

/// Encoded input is not in canonical form
pub const NonCanonicalError = error{NonCanonical};

/// Square root has no solutions
pub const NotSquareError = error{NotSquare};

/// Verification string doesn't match the provided password and parameters
pub const PasswordVerificationError = error{PasswordVerificationFailed};

/// Parameters would be insecure to use
pub const WeakParametersError = error{WeakParameters};

/// Public key would be insecure to use
pub const WeakPublicKeyError = error{WeakPublicKey};

/// Point is not in the prime order group
pub const UnexpectedSubgroupError = error{UnexpectedSubgroup};

/// Any error related to cryptography operations
pub const Error = AuthenticationError || OutputTooLongError || IdentityElementError || EncodingError || SignatureVerificationError || KeyMismatchError || NonCanonicalError || NotSquareError || PasswordVerificationError || WeakParametersError || WeakPublicKeyError || UnexpectedSubgroupError;