We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d737a59 commit e89e13bCopy full SHA for e89e13b
digest/src/core_api/wrapper.rs
@@ -89,13 +89,15 @@ where
89
T::BlockSize: IsLess<U256>,
90
Le<T::BlockSize, U256>: NonZero,
91
{
92
+ #[inline]
93
fn new(key: &Key<Self>) -> Self {
94
Self {
95
core: T::new(key),
96
buffer: Default::default(),
97
}
98
99
100
101
fn new_from_slice(key: &[u8]) -> Result<Self, InvalidLength> {
102
Ok(Self {
103
core: T::new_from_slice(key)?,
@@ -110,6 +112,7 @@ where
110
112
111
113
114
115
116
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> Result<(), fmt::Error> {
117
T::write_alg_name(f)?;
118
f.write_str(" { .. }")
0 commit comments