Skip to content
This repository has been archived by the owner on Mar 11, 2024. It is now read-only.

Run libursa tests on Ubuntu 20.04 #180

Merged
merged 8 commits into from
Jun 2, 2021
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,10 @@ crate-type = ["cdylib", "staticlib", "rlib"]
lto = true

[workspace]
exclude = [
"libursa",
"libzmix",
]
members = [
"ursa_accumulators",
"ursa_core",
Expand All @@ -35,4 +39,4 @@ default = ["sharing"]
sharing = ["ursa_sharing"]

[dependencies]
ursa_sharing = { version = "0.1", path = "ursa_sharing", optional = true }
ursa_sharing = { version = "0.1", path = "ursa_sharing", optional = true }
2 changes: 1 addition & 1 deletion libursa/src/errors/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ impl fmt::Display for UrsaCryptoError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
let mut first = true;

for cause in Fail::iter_chain(&self.inner) {
for cause in <dyn Fail>::iter_chain(&self.inner) {
if first {
first = false;
writeln!(f, "Error: {}", cause)?;
Expand Down
1 change: 1 addition & 0 deletions libursa/src/kex/secp256k1.rs
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,7 @@ mod ecdh_secp256k1 {
use sha2::digest::generic_array::typenum::U32;
use sha2::Digest;
use zeroize::Zeroize;
#[allow(dead_code)]
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Probably better to remove the dead code. What was coming up?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's not used anywhere, I was just taking a super conservative approach for my changes. I'll go ahead and remove it now.

const PUBLIC_UNCOMPRESSED_KEY_SIZE: usize = 65;

#[cfg_attr(feature = "serde", derive(Serialize, Deserialize))]
Expand Down