1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
use snafu::*;

#[derive(Debug, Snafu)]
pub enum PBKDF2Errors {
    #[snafu(display("Could not use given salt: {}", error))]
    UseSaltError {
      error: anyhow::Error
    },

    #[snafu(display("Could not calculate PBKDF2 Hash: {}", error))]
    HashError {
      error: anyhow::Error,
    },
}