-
Notifications
You must be signed in to change notification settings - Fork 51
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #9 from andrewwhitehead/more-keys
0.2-pre.3 updates
- Loading branch information
Showing
47 changed files
with
1,348 additions
and
648 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,7 +3,7 @@ members = ["askar-crypto"] | |
|
||
[package] | ||
name = "aries-askar" | ||
version = "0.2.0-pre.2" | ||
version = "0.2.0-pre.3" | ||
authors = ["Hyperledger Aries Contributors <[email protected]>"] | ||
edition = "2018" | ||
description = "Hyperledger Aries Askar secure storage" | ||
|
@@ -38,7 +38,7 @@ pg_test = ["postgres"] | |
hex-literal = "0.3" | ||
|
||
[dependencies] | ||
askar-crypto = { version = "0.2.0-pre.2", path = "./askar-crypto", features = ["argon2", "std"] } | ||
askar-crypto = { version = "0.2.0-pre.3", path = "./askar-crypto", features = ["argon2", "std"] } | ||
async-mutex = "1.4" | ||
async-stream = "0.3" | ||
bs58 = "0.4" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
[package] | ||
name = "askar-crypto" | ||
version = "0.2.0-pre.2" | ||
version = "0.2.0-pre.3" | ||
authors = ["Hyperledger Aries Contributors <[email protected]>"] | ||
edition = "2018" | ||
description = "Hyperledger Aries Askar cryptography" | ||
|
@@ -17,7 +17,7 @@ rustdoc-args = ["--cfg", "docsrs"] | |
[features] | ||
default = ["alloc", "any_key", "all_keys", "crypto_box"] | ||
alloc = [] | ||
std = ["alloc"] | ||
std = ["alloc", "serde/std", "serde-json-core/std"] | ||
all_keys = ["aes", "bls", "chacha", "ec_curves", "ed25519"] | ||
any_key = ["alloc"] | ||
aes = ["aes-core", "aes-gcm", "block-modes", "hmac"] | ||
|
@@ -32,6 +32,7 @@ base64 = { version = "0.13", default-features = false, features = ["alloc"] } | |
criterion = "0.3" | ||
hex-literal = "0.3" | ||
serde_cbor = "0.11" | ||
serde-json-core = { version = "0.4", default-features = false, features = ["std"] } | ||
|
||
[[bench]] | ||
name = "enc" | ||
|
@@ -45,6 +46,7 @@ harness = false | |
aead = "0.3" | ||
aes-core = { package = "aes", version = "0.6", default-features = false, optional = true } | ||
aes-gcm = { version = "0.8", default-features = false, features = ["aes"], optional = true } | ||
arbitrary = { version = "1.0", optional = true, features = ["derive"] } | ||
argon2 = { version = "0.1", default-features = false, features = ["password-hash"], optional = true } | ||
base64 = { version = "0.13", default-features = false } | ||
blake2 = { version = "0.9", default-features = false } | ||
|
@@ -63,7 +65,7 @@ k256 = { version = "0.8", default-features = false, features = ["arithmetic", "e | |
p256 = { version = "0.8", default-features = false, features = ["arithmetic", "ecdsa", "ecdh", "zeroize"], optional = true } | ||
rand = { version = "0.8", default-features = false, features = ["getrandom"] } | ||
serde = { version = "1.0", default-features = false, features = ["derive"] } | ||
serde_json = { version = "1.0", default-features = false } | ||
serde-json-core = { version = "0.4", default-features = false } | ||
subtle = "2.4" | ||
sha2 = { version = "0.9", default-features = false } | ||
x25519-dalek = { version = "1.1", default-features = false, features = ["u64_backend"], optional = true } | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
|
||
target | ||
corpus | ||
artifacts |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
|
||
[package] | ||
name = "askar-crypto-fuzz" | ||
version = "0.0.0" | ||
authors = ["Automatically generated"] | ||
publish = false | ||
edition = "2018" | ||
|
||
[package.metadata] | ||
cargo-fuzz = true | ||
|
||
[dependencies] | ||
libfuzzer-sys = "0.4" | ||
|
||
[dependencies.askar-crypto] | ||
path = ".." | ||
features = ["arbitrary"] | ||
|
||
# Prevent this from interfering with workspaces | ||
[workspace] | ||
members = ["."] | ||
|
||
[[bin]] | ||
name = "from_jwk" | ||
path = "fuzz_targets/from_jwk.rs" | ||
test = false | ||
doc = false | ||
|
||
[[bin]] | ||
name = "from_public_bytes" | ||
path = "fuzz_targets/from_public_bytes.rs" | ||
test = false | ||
doc = false | ||
|
||
[[bin]] | ||
name = "parse_jwk" | ||
path = "fuzz_targets/parse_jwk.rs" | ||
test = false | ||
doc = false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
#![no_main] | ||
use libfuzzer_sys::fuzz_target; | ||
|
||
use askar_crypto::{ | ||
alg::AnyKey, | ||
jwk::{FromJwk, JwkParts}, | ||
}; | ||
|
||
fuzz_target!(|data: JwkParts<'_>| { | ||
let _ = Box::<AnyKey>::from_jwk_parts(data); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
#![no_main] | ||
use libfuzzer_sys::fuzz_target; | ||
|
||
use askar_crypto::alg::{AnyKey, AnyKeyCreate, KeyAlg}; | ||
|
||
fuzz_target!(|data: (KeyAlg, &[u8])| { | ||
let _ = Box::<AnyKey>::from_public_bytes(data.0, data.1); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
#![no_main] | ||
use libfuzzer_sys::fuzz_target; | ||
|
||
use askar_crypto::{alg::AnyKey, jwk::JwkParts}; | ||
|
||
fuzz_target!(|data: &str| { | ||
let _ = JwkParts::from_str(data); | ||
}); |
Oops, something went wrong.