use crate::RecordError;
#[derive(Debug, PartialEq)]
pub struct ClientFinished<'r> {
pub hmac: &'r [u8],
}
impl<'r> ClientFinished<'r> {
pub fn hmac(&self) -> &[u8] {
self.hmac
}
#[inline]
pub fn parse_wrapped(bytes: &'r [u8]) -> Result<Self, RecordError> {
let hmac = &bytes;
Ok(Self { hmac })
}
}