INNER CODE UNIT · Rust

fmt

celabshq/libcrux · crates/algorithms/chacha20poly1305/src/lib.rs:129

    fn fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result {
        let msg = match self {
            AeadError::PlaintextTooLarge => {
                "The plaintext argument is too large for the library to handle"
            }
            AeadError::CiphertextTooLarge => {
                "The ciphertext argument is too large for the library to handle"
            }
            AeadError::AadTooLarge => {
                "The associated data argument is too large for the library to handle"
            }
            AeadError::CiphertextTooShort => {
                "The provided destination ciphertext does not fit the ciphertext and tag"
            }
            AeadError::PlaintextTooShort => {
                "The provided destination plaintext is too short to fit the decrypted plaintext"
            }
            AeadError::InvalidCiphertext => {

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…