Switch back to cryspen repo
This commit is contained in:
@@ -23,9 +23,9 @@ nym-crypto = { path = "../crypto" }
|
||||
nym-noise-keys = { path = "keys" }
|
||||
|
||||
nympsq = {path = "../nympsq"}
|
||||
libcrux-ed25519 = { git = "https://github.com/georgio/libcrux" }
|
||||
libcrux-psq = { git = "https://github.com/georgio/libcrux", features = ["test-utils"] }
|
||||
libcrux-kem = { git = "https://github.com/georgio/libcrux" }
|
||||
libcrux-ed25519 = { git = "https://github.com/cryspen/libcrux" }
|
||||
libcrux-psq = { git = "https://github.com/cryspen/libcrux", features = ["test-utils"] }
|
||||
libcrux-kem = { git = "https://github.com/cryspen/libcrux" }
|
||||
rand = "0.9.2"
|
||||
|
||||
[dev-dependencies]
|
||||
|
||||
@@ -11,10 +11,10 @@ thiserror = { workspace = true }
|
||||
# internal
|
||||
nym-crypto = { path = "../crypto", features = ["asymmetric", "serde"]}
|
||||
|
||||
libcrux-traits = { git = "https://github.com/georgio/libcrux" }
|
||||
libcrux-kem = { git = "https://github.com/georgio/libcrux" }
|
||||
libcrux-psq = { git = "https://github.com/georgio/libcrux", features = ["test-utils"] }
|
||||
libcrux-ed25519 = { git = "https://github.com/georgio/libcrux" }
|
||||
libcrux-traits = { git = "https://github.com/cryspen/libcrux" }
|
||||
libcrux-kem = { git = "https://github.com/cryspen/libcrux" }
|
||||
libcrux-psq = { git = "https://github.com/cryspen/libcrux", features = ["test-utils"] }
|
||||
libcrux-ed25519 = { git = "https://github.com/cryspen/libcrux" }
|
||||
rand = "0.9.2"
|
||||
tls_codec = { version = "0.4.2", features = ["derive"] }
|
||||
|
||||
|
||||
@@ -78,11 +78,9 @@ impl<'a, T: PSQ> PSQInitiator<T> {
|
||||
// In other words, instead of using the responder's PSQ message for key confirmation,
|
||||
// we could use a Noise handshake for key confirmation.
|
||||
|
||||
// We need to ask Cryspen to make Initiator.k_pq to be accessible for this.
|
||||
|
||||
pub fn get_psk(&self) -> Option<[u8; 32]> {
|
||||
match &self.state {
|
||||
Some(initiator_state) => Some(initiator_state.unregistered_psk()),
|
||||
Some(initiator_state) => Some(*initiator_state.unregistered_psk()),
|
||||
None => None,
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user