0
0
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:
Ehren Kret 2020-05-04 08:25:01 -07:00
parent 992ef7a4c0
commit b58383935f

View File

@ -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,