mirror of
https://github.com/signalapp/libsignal.git
synced 2024-09-19 19:42:19 +02:00
impl Error for HKDFError
This commit is contained in:
parent
992ef7a4c0
commit
b58383935f
@ -1,6 +1,8 @@
|
||||
use std::error;
|
||||
use std::fmt;
|
||||
|
||||
use hmac::{Hmac, Mac};
|
||||
use sha2::Sha256;
|
||||
use std::fmt;
|
||||
|
||||
#[derive(Debug)]
|
||||
pub enum HKDFError {
|
||||
@ -17,6 +19,8 @@ impl fmt::Display for HKDFError {
|
||||
}
|
||||
}
|
||||
|
||||
impl error::Error for HKDFError {}
|
||||
|
||||
#[derive(Clone, Copy, Debug)]
|
||||
pub struct HKDF {
|
||||
iteration_start_offset: u8,
|
||||
|
Loading…
Reference in New Issue
Block a user