Implement server_mac_key test

This commit is contained in:
dAxpeDDa
2021-07-30 14:45:27 -07:00
committed by Kevin Lewi
parent 4298deadff
commit ec528eb4d9
4 changed files with 15 additions and 0 deletions
+1
View File
@@ -23,6 +23,7 @@ pub type GenerateKe2Result<K, D, G> = (
<K as KeyExchange<D, G>>::KE2State,
<K as KeyExchange<D, G>>::KE2Message,
Vec<u8>,
generic_array::GenericArray<u8, <D as digest::Digest>::OutputSize>,
);
#[cfg(not(test))]
pub type GenerateKe3Result<K, D, G> = (Vec<u8>, <K as KeyExchange<D, G>>::KE3Message);
+2
View File
@@ -128,6 +128,8 @@ impl<D: Hash, G: Group> KeyExchange<D, G> for TripleDH {
},
#[cfg(test)]
result.3,
#[cfg(test)]
result.1,
))
}