Browse Source

offline SDL build accomplished

pull/11/head
jahway603 1 year ago
parent
commit
011422ad8a
  1. 64
      README.md
  2. 4
      build.sh
  3. 2
      cli/Cargo.toml
  4. 1
      cli/vendor/aes-0.2.0/.cargo-checksum.json
  5. 24
      cli/vendor/aes-0.2.0/Cargo.toml.orig
  6. 68
      cli/vendor/aes-0.2.0/benches/aes128.rs
  7. 69
      cli/vendor/aes-0.2.0/benches/aes192.rs
  8. 68
      cli/vendor/aes-0.2.0/benches/aes256.rs
  9. BIN
      cli/vendor/aes-0.2.0/tests/data/aes128.ciphertexts.bin
  10. BIN
      cli/vendor/aes-0.2.0/tests/data/aes128.index.bin
  11. BIN
      cli/vendor/aes-0.2.0/tests/data/aes128.keys.bin
  12. BIN
      cli/vendor/aes-0.2.0/tests/data/aes128.plaintexts.bin
  13. BIN
      cli/vendor/aes-0.2.0/tests/data/aes192.ciphertexts.bin
  14. BIN
      cli/vendor/aes-0.2.0/tests/data/aes192.index.bin
  15. BIN
      cli/vendor/aes-0.2.0/tests/data/aes192.keys.bin
  16. BIN
      cli/vendor/aes-0.2.0/tests/data/aes192.plaintexts.bin
  17. BIN
      cli/vendor/aes-0.2.0/tests/data/aes256.ciphertexts.bin
  18. BIN
      cli/vendor/aes-0.2.0/tests/data/aes256.index.bin
  19. BIN
      cli/vendor/aes-0.2.0/tests/data/aes256.keys.bin
  20. BIN
      cli/vendor/aes-0.2.0/tests/data/aes256.plaintexts.bin
  21. 10
      cli/vendor/aes-0.2.0/tests/lib.rs
  22. 1
      cli/vendor/crypto-mac-0.4.0/.cargo-checksum.json
  23. 1
      cli/vendor/crypto-mac-0.4.0/.cargo-ok
  24. 13
      cli/vendor/crypto-mac-0.4.0/Cargo.toml.orig
  25. 1
      cli/vendor/hmac-0.4.2/.cargo-checksum.json
  26. 1
      cli/vendor/hmac-0.4.2/.cargo-ok
  27. 19
      cli/vendor/hmac-0.4.2/Cargo.toml.orig
  28. 1
      cli/vendor/hmac-0.4.2/tests/data/md5/1.input.bin
  29. 1
      cli/vendor/hmac-0.4.2/tests/data/md5/1.key.bin
  30. 1
      cli/vendor/hmac-0.4.2/tests/data/md5/1.output.bin
  31. 1
      cli/vendor/hmac-0.4.2/tests/data/md5/2.input.bin
  32. 1
      cli/vendor/hmac-0.4.2/tests/data/md5/2.key.bin
  33. 2
      cli/vendor/hmac-0.4.2/tests/data/md5/2.output.bin
  34. 1
      cli/vendor/hmac-0.4.2/tests/data/md5/3.input.bin
  35. 1
      cli/vendor/hmac-0.4.2/tests/data/md5/3.key.bin
  36. 1
      cli/vendor/hmac-0.4.2/tests/data/md5/3.output.bin
  37. 1
      cli/vendor/hmac-0.4.2/tests/data/md5/4.input.bin
  38. 1
      cli/vendor/hmac-0.4.2/tests/data/md5/4.key.bin
  39. 1
      cli/vendor/hmac-0.4.2/tests/data/md5/4.output.bin
  40. 1
      cli/vendor/hmac-0.4.2/tests/data/sha224/1.input.bin
  41. 1
      cli/vendor/hmac-0.4.2/tests/data/sha224/1.key.bin
  42. 1
      cli/vendor/hmac-0.4.2/tests/data/sha224/1.output.bin
  43. 1
      cli/vendor/hmac-0.4.2/tests/data/sha224/2.input.bin
  44. 1
      cli/vendor/hmac-0.4.2/tests/data/sha224/2.key.bin
  45. BIN
      cli/vendor/hmac-0.4.2/tests/data/sha224/2.output.bin
  46. 1
      cli/vendor/hmac-0.4.2/tests/data/sha224/3.input.bin
  47. 1
      cli/vendor/hmac-0.4.2/tests/data/sha224/3.key.bin
  48. 1
      cli/vendor/hmac-0.4.2/tests/data/sha224/3.output.bin
  49. 1
      cli/vendor/hmac-0.4.2/tests/data/sha224/4.input.bin
  50. 2
      cli/vendor/hmac-0.4.2/tests/data/sha224/4.key.bin
  51. 1
      cli/vendor/hmac-0.4.2/tests/data/sha224/4.output.bin
  52. 1
      cli/vendor/hmac-0.4.2/tests/data/sha224/5.input.bin
  53. 1
      cli/vendor/hmac-0.4.2/tests/data/sha224/5.key.bin
  54. 1
      cli/vendor/hmac-0.4.2/tests/data/sha224/5.output.bin
  55. 1
      cli/vendor/hmac-0.4.2/tests/data/sha224/6.input.bin
  56. 1
      cli/vendor/hmac-0.4.2/tests/data/sha224/6.key.bin
  57. 1
      cli/vendor/hmac-0.4.2/tests/data/sha224/6.output.bin
  58. 1
      cli/vendor/hmac-0.4.2/tests/data/sha224/7.input.bin
  59. 1
      cli/vendor/hmac-0.4.2/tests/data/sha224/7.key.bin
  60. 1
      cli/vendor/hmac-0.4.2/tests/data/sha224/7.output.bin
  61. 1
      cli/vendor/hmac-0.4.2/tests/data/sha256/1.input.bin
  62. 1
      cli/vendor/hmac-0.4.2/tests/data/sha256/1.key.bin
  63. BIN
      cli/vendor/hmac-0.4.2/tests/data/sha256/1.output.bin
  64. 1
      cli/vendor/hmac-0.4.2/tests/data/sha256/2.input.bin
  65. 1
      cli/vendor/hmac-0.4.2/tests/data/sha256/2.key.bin
  66. BIN
      cli/vendor/hmac-0.4.2/tests/data/sha256/2.output.bin
  67. 1
      cli/vendor/hmac-0.4.2/tests/data/sha256/3.input.bin
  68. 1
      cli/vendor/hmac-0.4.2/tests/data/sha256/3.key.bin
  69. 1
      cli/vendor/hmac-0.4.2/tests/data/sha256/3.output.bin
  70. 1
      cli/vendor/hmac-0.4.2/tests/data/sha256/4.input.bin
  71. 2
      cli/vendor/hmac-0.4.2/tests/data/sha256/4.key.bin
  72. 1
      cli/vendor/hmac-0.4.2/tests/data/sha256/4.output.bin
  73. 1
      cli/vendor/hmac-0.4.2/tests/data/sha256/5.input.bin
  74. 1
      cli/vendor/hmac-0.4.2/tests/data/sha256/5.key.bin
  75. 2
      cli/vendor/hmac-0.4.2/tests/data/sha256/5.output.bin
  76. 1
      cli/vendor/hmac-0.4.2/tests/data/sha256/6.input.bin
  77. 1
      cli/vendor/hmac-0.4.2/tests/data/sha256/6.key.bin
  78. 1
      cli/vendor/hmac-0.4.2/tests/data/sha256/6.output.bin
  79. 1
      cli/vendor/hmac-0.4.2/tests/data/sha256/7.input.bin
  80. 1
      cli/vendor/hmac-0.4.2/tests/data/sha256/7.key.bin
  81. 1
      cli/vendor/hmac-0.4.2/tests/data/sha256/7.output.bin
  82. 1
      cli/vendor/hmac-0.4.2/tests/data/sha384/1.input.bin
  83. 1
      cli/vendor/hmac-0.4.2/tests/data/sha384/1.key.bin
  84. 1
      cli/vendor/hmac-0.4.2/tests/data/sha384/1.output.bin
  85. 1
      cli/vendor/hmac-0.4.2/tests/data/sha384/2.input.bin
  86. 1
      cli/vendor/hmac-0.4.2/tests/data/sha384/2.key.bin
  87. 1
      cli/vendor/hmac-0.4.2/tests/data/sha384/2.output.bin
  88. 1
      cli/vendor/hmac-0.4.2/tests/data/sha384/3.input.bin
  89. 1
      cli/vendor/hmac-0.4.2/tests/data/sha384/3.key.bin
  90. 3
      cli/vendor/hmac-0.4.2/tests/data/sha384/3.output.bin
  91. 1
      cli/vendor/hmac-0.4.2/tests/data/sha384/4.input.bin
  92. 2
      cli/vendor/hmac-0.4.2/tests/data/sha384/4.key.bin
  93. BIN
      cli/vendor/hmac-0.4.2/tests/data/sha384/4.output.bin
  94. 1
      cli/vendor/hmac-0.4.2/tests/data/sha384/5.input.bin
  95. 1
      cli/vendor/hmac-0.4.2/tests/data/sha384/5.key.bin
  96. 1
      cli/vendor/hmac-0.4.2/tests/data/sha384/5.output.bin
  97. 1
      cli/vendor/hmac-0.4.2/tests/data/sha384/6.input.bin
  98. 1
      cli/vendor/hmac-0.4.2/tests/data/sha384/6.key.bin
  99. 1
      cli/vendor/hmac-0.4.2/tests/data/sha384/6.output.bin
  100. 1
      cli/vendor/hmac-0.4.2/tests/data/sha384/7.input.bin
  101. 1
      cli/vendor/hmac-0.4.2/tests/data/sha384/7.key.bin
  102. 1
      cli/vendor/hmac-0.4.2/tests/data/sha384/7.output.bin
  103. 1
      cli/vendor/hmac-0.4.2/tests/data/sha512/1.input.bin
  104. 1
      cli/vendor/hmac-0.4.2/tests/data/sha512/1.key.bin
  105. 1
      cli/vendor/hmac-0.4.2/tests/data/sha512/1.output.bin
  106. 1
      cli/vendor/hmac-0.4.2/tests/data/sha512/2.input.bin
  107. 1
      cli/vendor/hmac-0.4.2/tests/data/sha512/2.key.bin
  108. 2
      cli/vendor/hmac-0.4.2/tests/data/sha512/2.output.bin
  109. 1
      cli/vendor/hmac-0.4.2/tests/data/sha512/3.input.bin
  110. 1
      cli/vendor/hmac-0.4.2/tests/data/sha512/3.key.bin
  111. 1
      cli/vendor/hmac-0.4.2/tests/data/sha512/3.output.bin
  112. 1
      cli/vendor/hmac-0.4.2/tests/data/sha512/4.input.bin
  113. 2
      cli/vendor/hmac-0.4.2/tests/data/sha512/4.key.bin
  114. 1
      cli/vendor/hmac-0.4.2/tests/data/sha512/4.output.bin
  115. 1
      cli/vendor/hmac-0.4.2/tests/data/sha512/5.input.bin
  116. 1
      cli/vendor/hmac-0.4.2/tests/data/sha512/5.key.bin
  117. 2
      cli/vendor/hmac-0.4.2/tests/data/sha512/5.output.bin
  118. 1
      cli/vendor/hmac-0.4.2/tests/data/sha512/6.input.bin
  119. 1
      cli/vendor/hmac-0.4.2/tests/data/sha512/6.key.bin
  120. 2
      cli/vendor/hmac-0.4.2/tests/data/sha512/6.output.bin
  121. 1
      cli/vendor/hmac-0.4.2/tests/data/sha512/7.input.bin
  122. 1
      cli/vendor/hmac-0.4.2/tests/data/sha512/7.key.bin
  123. 1
      cli/vendor/hmac-0.4.2/tests/data/sha512/7.output.bin
  124. 57
      cli/vendor/hmac-0.4.2/tests/lib.rs

64
README.md

@ -1,21 +1,6 @@
# SilentDragonPaper
<p align="left">
<a href="https://twitter.com/MyHushTeam">
<img src="https://img.shields.io/twitter/url?style=social&url=https%3A%2F%2Ftwitter.com%2Fmyhushteam"
alt="MyHushTeam's Twitter"></a>
<a href="https://twitter.com/intent/follow?screen_name=MyHushTeam">
<img src="https://img.shields.io/twitter/follow/MyHushTeam?style=social&logo=twitter"
alt="follow on Twitter"></a>
<a href="https://fosstodon.org/@myhushteam">
<img src="https://img.shields.io/badge/Mastodon-MyHushTeam-blue"
alt="follow on Mastodon"></a>
<a href="https://www.reddit.com/r/Myhush/">
<img src="https://img.shields.io/reddit/subreddit-subscribers/Myhush?style=social"
alt="MyHushTeam's Reddit"></a>
</p>
SilentDragonPaper is a paper wallet generator that can run completely offline.
SilentDragonPaper is a paper wallet generator that can be compiled and run completely offline.
You can run it on an air-gapped computer to generate your shielded z-addresses, which will allow you to keep your keys completely offline.
@ -25,6 +10,8 @@ You can run it on an air-gapped computer to generate your shielded z-addresses,
## Download
Two options for Download, either a [pre-built binary](https://git.hush.is/hush/SilentDragonPaper#binary-installation) or [you compile it yourself](https://git.hush.is/hush/SilentDragonPaper#source-code-installation).
### Binary installation
SilentDragonPaper is available as pre-built binaries from our [release page](https://git.hush.is/hush/SilentDragonPaper/releases). Download the zip file for your platform, extract it and run the `./SilentDragonPaper` binary.
@ -48,22 +35,25 @@ cd SilentDragonPaper
#### Advanced Option : Compile using system installed rust
SilentDragonPaper is built with Rust. To compile from source, you must [install Rust 1.48](https://www.rust-lang.org/tools/install).
Older versions of Rust may work, newer versions will not.
SilentDragonPaper is built with Rust. To compile from source, you must [install at least Rust 1.48](https://www.rust-lang.org/tools/install). Please report any issues if a particular version of Rust does not compile this, but I have successfully built this with `rustc 1.64.0 (a55dd71d5 2022-09-19)`.
```
cd SilentDragonPaper/cli
cargo build --release
cargo build --release --offline
```
#### Compiled binary location
The completed binary is available in the `cli/target/release` folder.
**After building, the completed binary will be available in the `cli/target/release` folder.**
## Usage Instructions
### Generating wallets
To generate a Hush paper wallet, simply run `./SilentDragonPaper` or `./target/release/SilentDragonPaper` or `./cli/target/release/SilentDragonPaper` depending on method you used to install.
To generate a Hush paper wallet, simply run one of the following below as the exact command will depend on the method you used to install or compile it.
```
./SilentDragonPaper
./target/release/SilentDragonPaper
./cli/target/release/SilentDragonPaper
```
You'll be asked to type some random characters that will add entropy to the random number generator. Run with `--help` to see all options
@ -87,10 +77,10 @@ Note that generating vanity addresses with a prefix longer than 4-5 characters i
When generating paper wallets that will store large amounts of crypto, please take special care to ensure the keys are generated and kept completely offline.
1. `SilentDragonPaper` supports ARMv8 (Raspberry Pi 3+). You can put one in a Faraday cage along with a printer, and print out the PDFs securely.
2. Please ensure you supply random entropy when you run `SilentDragonPaper`. Your entropy is mixed in with system-provided entropy to generate keys
3. If you can, run with `unshare`, which will disable all network interfaces to a process, providing you with an additional layer of safety. (See next section)
4. After you've generated the keys, you can tear off the Address potion of the wallet and take it to your online computer/phone to send the address funds. Please always keep the private key offline.
5. When you're ready to spend the cold storage keys, import the private key into a full node, then don't re-use the key again.
1. Please ensure you supply random entropy when you run `SilentDragonPaper`. Your entropy is mixed in with system-provided entropy to generate keys.
1. If you can, run with `unshare`, which will disable all network interfaces to a process, providing you with an additional layer of safety. (See next section)
1. After you've generated the keys, you can tear off the Address potion of the wallet and take it to your online computer/phone to send the address funds. Please always keep the private key offline.
1. When you're ready to spend the cold storage keys, import the private key into a full node, then don't re-use the key again.
### Run without network
@ -129,15 +119,29 @@ ARGS:
<output> Name of output file.
```
## Support
## Support and Socials
Please feel free to join us on Telegram for official support:
* Main group: https://hush.is/tg
* Support group: https://hush.is/telegram_support
* Mining group: https://hush.is/telegram_mining
If you prefer Matrix, then please join our Matrix chatrooms which are bridged to the above Telegram rooms:
* Main group: [#hush_main:matrix.org](https://hush.is/matrix)
* Support group: [#hush_support:matrix.org](https://matrix.to/#/#hush_support:matrix.org)
* Mining group: [#hush_mining:matrix.org](https://matrix.to/#/#hush_mining:matrix.org)
For support join us on [Telegram Support](https://hush.is/telegram_support), or our [Main Telegram](https://hush.is/telegram) or tweet at [@MyHushTeam](https://twitter.com/MyHushTeam), or toot at our [Mastodon](https://fosstodon.org/@myhushteam), or [file an issue](https://git.hush.is/hush/SilentDragonPaper/issues).
Other socials:
* PeerTube: [videos.hush.is](https://hush.is/peertube)
* Twitter: [@hushisprivacy](https://hush.is/twitter)
* Mastodon: [@myhushteam@fosstodon.org](https://hush.is/mastodon)
* Reddit: [@Myhush](https://hush.is/reddit)
## Copyright
Released under the [GNU Public License Version 3](https://www.gnu.org/licenses/gpl-3.0.en.html) or later.
Copyright (c) 2019-2021 The Hush Developers
Copyright (c) 2019-2023 The Hush Developers
Copyright (c) 2019 adityapk00

4
build.sh

@ -1,5 +1,5 @@
#!/bin/bash
# Copyright (c) 2016-2021 The Hush developers
# Copyright (c) 2016-2023 The Hush developers
# Distributed under the GPLv3 software license, see the accompanying
# file COPYING or https://www.gnu.org/licenses/gpl-3.0.en.html
@ -38,4 +38,4 @@ PATH=$(pwd)/../build/bin/:$PATH
echo PATH=$PATH
cargo --version
rustc --version
../build/bin/cargo build --verbose --release
../build/bin/cargo build --verbose --release --offline

2
cli/Cargo.toml

@ -10,7 +10,7 @@ edition = "2018"
[patch.crates-io]
aes = { path = "vendor/aes-0.2.0" }
aes-soft = { git = "https://github.com/RustCrypto/block-ciphers", rev = "aes-soft-v0.2.0" }
aesni = { git = "https://github.com/RustCrypto/block-ciphers", rev = "aesni-v0.4.2" }
aesni = { path = "vendor/aesni" }
block-cipher-trait = { git = "https://github.com/RustCrypto/traits", rev = "block-cipher-trait-v0.5.3" }
stream-cipher = { git = "https://github.com/RustCrypto/traits", rev = "stream-cipher-v0.1.1" }
hmac = { path = "vendor/hmac-0.4.2" }

1
cli/vendor/aes-0.2.0/.cargo-checksum.json

@ -0,0 +1 @@
{"files":{"Cargo.toml":"fe7769b26a732dd9348115d6a9661607753875909888ba16292ec69e18266033","LICENSE-APACHE":"a9040321c3712d8fd0b09cf52b17445de04a23a10165049ae187cd39e5c86be5","LICENSE-MIT":"f7e8ab639afef15573680c97f796166835cbeb3865175882fea41c60d106b733","src/lib.rs":"0108e29e65ed2509add80706fd69e61d32e1dfe4bb0d9c83928c1db995354ce3"},"package":null}

24
cli/vendor/aes-0.2.0/Cargo.toml.orig

@ -1,24 +0,0 @@
[package]
name = "aes"
version = "0.2.0"
authors = ["RustCrypto Developers"]
license = "MIT OR Apache-2.0"
description = "Facade for AES (Rijndael) block ciphers implementations"
documentation = "https://docs.rs/aes"
repository = "https://github.com/RustCrypto/block-ciphers"
keywords = ["crypto", "aes", "rijndael", "block-cipher"]
categories = ["cryptography", "no-std"]
[dependencies]
block-cipher-trait = "0.5"
[target.'cfg(not(all(target_feature="aes", target_feature = "sse2", any(target_arch = "x86_64", target_arch = "x86"))))'.dependencies]
aes-soft = "0.2"
[target.'cfg(all(target_feature="aes", target_feature = "sse2", any(target_arch = "x86_64", target_arch = "x86")))'.dependencies]
aesni = { version = "0.4", default-features = false }
[dev-dependencies]
block-cipher-trait = { version = "0.5", features = ["dev"] }
[workspace]

68
cli/vendor/aes-0.2.0/benches/aes128.rs

@ -1,68 +0,0 @@
#![no_std]
#![feature(test)]
extern crate aes;
extern crate test;
use aes::{Aes128, BlockCipher};
#[bench]
pub fn aes128_encrypt(bh: &mut test::Bencher) {
let cipher = Aes128::new(&Default::default());
let mut input = Default::default();
bh.iter(|| {
cipher.encrypt_block(&mut input);
test::black_box(&input);
});
bh.bytes = input.len() as u64;
}
#[bench]
pub fn aes128_decrypt(bh: &mut test::Bencher) {
let cipher = Aes128::new(&Default::default());
let mut input = Default::default();
bh.iter(|| {
cipher.decrypt_block(&mut input);
test::black_box(&input);
});
bh.bytes = input.len() as u64;
}
#[bench]
pub fn aes128_encrypt8(bh: &mut test::Bencher) {
let cipher = Aes128::new(&Default::default());
let mut input = Default::default();
bh.iter(|| {
cipher.encrypt_blocks(&mut input);
test::black_box(&input);
});
bh.bytes = (input[0].len() * input.len()) as u64;
}
#[bench]
pub fn aes128_decrypt8(bh: &mut test::Bencher) {
let cipher = Aes128::new(&Default::default());
let mut input = Default::default();
bh.iter(|| {
cipher.decrypt_blocks(&mut input);
test::black_box(&input);
});
bh.bytes = (input[0].len() * input.len()) as u64;
}
/*
#[bench]
pub fn ctr_aes128(bh: &mut test::Bencher) {
let mut cipher = aes::CtrAes128::new(&[0; 16], &[0; 16]);
let mut input = [0u8; 10000];
bh.iter(|| {
cipher.xor(&mut input);
test::black_box(&input);
});
bh.bytes = input.len() as u64;
}
*/

69
cli/vendor/aes-0.2.0/benches/aes192.rs

@ -1,69 +0,0 @@
#![no_std]
#![feature(test)]
extern crate aes;
extern crate test;
use aes::{Aes192, BlockCipher};
#[bench]
pub fn aes192_encrypt(bh: &mut test::Bencher) {
let cipher = Aes192::new(&Default::default());
let mut input = Default::default();
bh.iter(|| {
cipher.encrypt_block(&mut input);
test::black_box(&input);
});
bh.bytes = input.len() as u64;
}
#[bench]
pub fn aes192_decrypt(bh: &mut test::Bencher) {
let cipher = Aes192::new(&Default::default());
let mut input = Default::default();
bh.iter(|| {
cipher.decrypt_block(&mut input);
test::black_box(&input);
});
bh.bytes = input.len() as u64;
}
#[bench]
pub fn aes192_encrypt8(bh: &mut test::Bencher) {
let cipher = Aes192::new(&Default::default());
let mut input = Default::default();
bh.iter(|| {
cipher.encrypt_blocks(&mut input);
test::black_box(&input);
});
bh.bytes = (input[0].len() * input.len()) as u64;
}
#[bench]
pub fn aes192_decrypt8(bh: &mut test::Bencher) {
let cipher = Aes192::new(&Default::default());
let mut input = Default::default();
bh.iter(|| {
cipher.decrypt_blocks(&mut input);
test::black_box(&input);
});
bh.bytes = (input[0].len() * input.len()) as u64;
}
/*
#[bench]
pub fn ctr_aes192(bh: &mut test::Bencher) {
let mut cipher = aes::CtrAes192::new(&[0; 24], &[0; 16]);
let mut input = [0u8; 10000];
bh.iter(|| {
cipher.xor(&mut input);
test::black_box(&input);
});
bh.bytes = input.len() as u64;
}
*/

68
cli/vendor/aes-0.2.0/benches/aes256.rs

@ -1,68 +0,0 @@
#![no_std]
#![feature(test)]
extern crate aes;
extern crate test;
use aes::{Aes256, BlockCipher};
#[bench]
pub fn aes256_encrypt(bh: &mut test::Bencher) {
let cipher = Aes256::new(&Default::default());
let mut input = Default::default();
bh.iter(|| {
cipher.encrypt_block(&mut input);
test::black_box(&input);
});
bh.bytes = input.len() as u64;
}
#[bench]
pub fn aes256_decrypt(bh: &mut test::Bencher) {
let cipher = Aes256::new(&Default::default());
let mut input = Default::default();
bh.iter(|| {
cipher.decrypt_block(&mut input);
test::black_box(&input);
});
bh.bytes = input.len() as u64;
}
#[bench]
pub fn aes256_encrypt8(bh: &mut test::Bencher) {
let cipher = Aes256::new(&Default::default());
let mut input = Default::default();
bh.iter(|| {
cipher.encrypt_blocks(&mut input);
test::black_box(&input);
});
bh.bytes = (input[0].len() * input.len()) as u64;
}
#[bench]
pub fn aes256_decrypt8(bh: &mut test::Bencher) {
let cipher = Aes256::new(&Default::default());
let mut input = Default::default();
bh.iter(|| {
cipher.decrypt_blocks(&mut input);
test::black_box(&input);
});
bh.bytes = (input[0].len() * input.len()) as u64;
}
/*
#[bench]
pub fn ctr_aes256(bh: &mut test::Bencher) {
let mut cipher = aes::CtrAes256::new(&[0; 32], &[0; 16]);
let mut input = [0u8; 10000];
bh.iter(|| {
cipher.xor(&mut input);
test::black_box(&input);
});
bh.bytes = input.len() as u64;
}
*/

BIN
cli/vendor/aes-0.2.0/tests/data/aes128.ciphertexts.bin

Binary file not shown.

BIN
cli/vendor/aes-0.2.0/tests/data/aes128.index.bin

Binary file not shown.

BIN
cli/vendor/aes-0.2.0/tests/data/aes128.keys.bin

Binary file not shown.

BIN
cli/vendor/aes-0.2.0/tests/data/aes128.plaintexts.bin

Binary file not shown.

BIN
cli/vendor/aes-0.2.0/tests/data/aes192.ciphertexts.bin

Binary file not shown.

BIN
cli/vendor/aes-0.2.0/tests/data/aes192.index.bin

Binary file not shown.

BIN
cli/vendor/aes-0.2.0/tests/data/aes192.keys.bin

Binary file not shown.

BIN
cli/vendor/aes-0.2.0/tests/data/aes192.plaintexts.bin

Binary file not shown.

BIN
cli/vendor/aes-0.2.0/tests/data/aes256.ciphertexts.bin

Binary file not shown.

BIN
cli/vendor/aes-0.2.0/tests/data/aes256.index.bin

Binary file not shown.

BIN
cli/vendor/aes-0.2.0/tests/data/aes256.keys.bin

Binary file not shown.

BIN
cli/vendor/aes-0.2.0/tests/data/aes256.plaintexts.bin

Binary file not shown.

10
cli/vendor/aes-0.2.0/tests/lib.rs

@ -1,10 +0,0 @@
//! Test vectors are from NESSIE:
//! https://www.cosic.esat.kuleuven.be/nessie/testvectors/
#![no_std]
extern crate aes;
#[macro_use]
extern crate block_cipher_trait;
new_test!(aes128_test, "aes128", aes::Aes128);
new_test!(aes192_test, "aes192", aes::Aes192);
new_test!(aes256_test, "aes256", aes::Aes256);

1
cli/vendor/crypto-mac-0.4.0/.cargo-checksum.json

@ -0,0 +1 @@
{"files":{"Cargo.toml":"e0cc5f966c73e14099d0820fa908887c6d492fbd680841a6e81bdec9f053d44d","LICENSE-APACHE":"a9040321c3712d8fd0b09cf52b17445de04a23a10165049ae187cd39e5c86be5","LICENSE-MIT":"9e0dfd2dd4173a530e238cb6adb37aa78c34c6bc7444e0e10c1ab5d8881f63ba","src/lib.rs":"878ddfc0a081ae1172dfba753beb89476bdbbf423fcc38ae692a02736aed8d07"},"package":null}

1
cli/vendor/crypto-mac-0.4.0/.cargo-ok

@ -1 +0,0 @@
ok

13
cli/vendor/crypto-mac-0.4.0/Cargo.toml.orig

@ -1,13 +0,0 @@
[package]
name = "crypto-mac"
version = "0.4.0"
authors = ["The RustCrypto Devs"]
license = "MIT/Apache-2.0"
description = "Trait for Message Authentication Code (MAC) algorithms"
documentation = "https://docs.rs/crypto-mac"
repository = "https://github.com/RustCrypto/traits"
keywords = ["crypto", "mac"]
[dependencies]
generic-array = "0.8"
constant_time_eq = "0.1"

1
cli/vendor/hmac-0.4.2/.cargo-checksum.json

@ -0,0 +1 @@
{"files":{"Cargo.toml":"399d1c36cbd87de4b1fc24ad81f21fe43aef826b1e723e6c02c44a0ebe77c269","LICENSE-APACHE":"a9040321c3712d8fd0b09cf52b17445de04a23a10165049ae187cd39e5c86be5","LICENSE-MIT":"9e0dfd2dd4173a530e238cb6adb37aa78c34c6bc7444e0e10c1ab5d8881f63ba","src/lib.rs":"f17520ab746a7a9113219622aba60e0b5fa9601752e1fa06a71cbfdf905322fc"},"package":null}

1
cli/vendor/hmac-0.4.2/.cargo-ok

@ -1 +0,0 @@
ok

19
cli/vendor/hmac-0.4.2/Cargo.toml.orig

@ -1,19 +0,0 @@
[package]
name = "hmac"
version = "0.4.2"
authors = ["RustCrypto Developers"]
license = "MIT/Apache-2.0"
description = "Generic implementation of Hash-based Message Authentication Code (HMAC)"
documentation = "https://docs.rs/hmac"
repository = "https://github.com/RustCrypto/MACs"
keywords = ["crypto", "mac", "hmac", "digest"]
[dependencies]
crypto-mac = "0.4"
generic-array = "0.8"
digest = "0.6"
[dev-dependencies]
crypto-tests = "0.5"
md-5 = "0.5"
sha2 = "0.6"

1
cli/vendor/hmac-0.4.2/tests/data/md5/1.input.bin

@ -1 +0,0 @@
Hi There

1
cli/vendor/hmac-0.4.2/tests/data/md5/1.key.bin

@ -1 +0,0 @@

1
cli/vendor/hmac-0.4.2/tests/data/md5/1.output.bin

@ -1 +0,0 @@
��rz68�������

1
cli/vendor/hmac-0.4.2/tests/data/md5/2.input.bin

@ -1 +0,0 @@
what do ya want for nothing?

1
cli/vendor/hmac-0.4.2/tests/data/md5/2.key.bin

@ -1 +0,0 @@
Jefe

2
cli/vendor/hmac-0.4.2/tests/data/md5/2.output.bin

@ -1,2 +0,0 @@
u x>jーオ�n1
]キ8

1
cli/vendor/hmac-0.4.2/tests/data/md5/3.input.bin

@ -1 +0,0 @@
ンンンンンンンンンンンンンンンンンンンンンンンンンンンンンンンンンンンンンンンンンンンンンンンンンン

1
cli/vendor/hmac-0.4.2/tests/data/md5/3.key.bin

@ -1 +0,0 @@
ェェェェェェェェェェェェェェェェ

1
cli/vendor/hmac-0.4.2/tests/data/md5/3.output.bin

@ -1 +0,0 @@
V¾4RLˆÛ¸Ç3ðè³ö

1
cli/vendor/hmac-0.4.2/tests/data/md5/4.input.bin

@ -1 +0,0 @@
The quick brown fox jumps over the lazy dog

1
cli/vendor/hmac-0.4.2/tests/data/md5/4.key.bin

@ -1 +0,0 @@
key

1
cli/vendor/hmac-0.4.2/tests/data/md5/4.output.bin

@ -1 +0,0 @@
€F>wIą -ÂIâu

1
cli/vendor/hmac-0.4.2/tests/data/sha224/1.input.bin

@ -1 +0,0 @@
Hi There

1
cli/vendor/hmac-0.4.2/tests/data/sha224/1.key.bin

@ -1 +0,0 @@

1
cli/vendor/hmac-0.4.2/tests/data/sha224/1.output.bin

@ -1 +0,0 @@
‰o±Š»ßh2|Ô�ó?G´±™ºOShK"

1
cli/vendor/hmac-0.4.2/tests/data/sha224/2.input.bin

@ -1 +0,0 @@
what do ya want for nothing?

1
cli/vendor/hmac-0.4.2/tests/data/sha224/2.key.bin

@ -1 +0,0 @@
Jefe

BIN
cli/vendor/hmac-0.4.2/tests/data/sha224/2.output.bin

Binary file not shown.

1
cli/vendor/hmac-0.4.2/tests/data/sha224/3.input.bin

@ -1 +0,0 @@
ンンンンンンンンンンンンンンンンンンンンンンンンンンンンンンンンンンンンンンンンンンンンンンンンンン

1
cli/vendor/hmac-0.4.2/tests/data/sha224/3.key.bin

@ -1 +0,0 @@
ェェェェェェェェェェェェェェェェェェェェ

1
cli/vendor/hmac-0.4.2/tests/data/sha224/3.output.bin

@ -1 +0,0 @@
³Ë5ˆÆÁöÿ©iM}jÒd“e°Áö]iÑìƒ3ê

1
cli/vendor/hmac-0.4.2/tests/data/sha224/4.input.bin

@ -1 +0,0 @@
ヘヘヘヘヘヘヘヘヘヘヘヘヘヘヘヘヘヘヘヘヘヘヘヘヘヘヘヘヘヘヘヘヘヘヘヘヘヘヘヘヘヘヘヘヘヘヘヘヘヘ

2
cli/vendor/hmac-0.4.2/tests/data/sha224/4.key.bin

@ -1,2 +0,0 @@



1
cli/vendor/hmac-0.4.2/tests/data/sha224/4.output.bin

@ -1 +0,0 @@
lPht<¬j*¼³‚b|ìj�Ønü-ç¯ìZ

1
cli/vendor/hmac-0.4.2/tests/data/sha224/5.input.bin

@ -1 +0,0 @@
Test With Truncation

1
cli/vendor/hmac-0.4.2/tests/data/sha224/5.key.bin

@ -1 +0,0 @@

1
cli/vendor/hmac-0.4.2/tests/data/sha224/5.output.bin

@ -1 +0,0 @@
*Йh╘ █7и┬╪ш÷йo╗ °ьWгЛJйеL

1
cli/vendor/hmac-0.4.2/tests/data/sha224/6.input.bin

@ -1 +0,0 @@
Test Using Larger Than Block-Size Key - Hash Key First

1
cli/vendor/hmac-0.4.2/tests/data/sha224/6.key.bin

@ -1 +0,0 @@
ェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェ

1
cli/vendor/hmac-0.4.2/tests/data/sha224/6.output.bin

@ -1 +0,0 @@
•é Û– •­®¾›-o ¼âÔ™ñòÒ·'?¦‡

1
cli/vendor/hmac-0.4.2/tests/data/sha224/7.input.bin

@ -1 +0,0 @@
This is a test using a larger than block-size key and a larger than block-size data. The key needs to be hashed before being used by the HMAC algorithm.

1
cli/vendor/hmac-0.4.2/tests/data/sha224/7.key.bin

@ -1 +0,0 @@
ェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェ

1
cli/vendor/hmac-0.4.2/tests/data/sha224/7.output.bin

@ -1 +0,0 @@
:…Af¬]Ÿ?TÕг�½”gpÛœ+•ÉöõeÑ

1
cli/vendor/hmac-0.4.2/tests/data/sha256/1.input.bin

@ -1 +0,0 @@
Hi There

1
cli/vendor/hmac-0.4.2/tests/data/sha256/1.key.bin

@ -1 +0,0 @@

BIN
cli/vendor/hmac-0.4.2/tests/data/sha256/1.output.bin

Binary file not shown.

1
cli/vendor/hmac-0.4.2/tests/data/sha256/2.input.bin

@ -1 +0,0 @@
what do ya want for nothing?

1
cli/vendor/hmac-0.4.2/tests/data/sha256/2.key.bin

@ -1 +0,0 @@
Jefe

BIN
cli/vendor/hmac-0.4.2/tests/data/sha256/2.output.bin

Binary file not shown.

1
cli/vendor/hmac-0.4.2/tests/data/sha256/3.input.bin

@ -1 +0,0 @@
ンンンンンンンンンンンンンンンンンンンンンンンンンンンンンンンンンンンンンンンンンンンンンンンンンン

1
cli/vendor/hmac-0.4.2/tests/data/sha256/3.key.bin

@ -1 +0,0 @@
ェェェェェェェェェェェェェェェェェェェェ

1
cli/vendor/hmac-0.4.2/tests/data/sha256/3.output.bin

@ -1 +0,0 @@
w>©6€F…M¸ëБ�§)Y ‹>øÁ"ÙcUÎÕeþ

1
cli/vendor/hmac-0.4.2/tests/data/sha256/4.input.bin

@ -1 +0,0 @@
ヘヘヘヘヘヘヘヘヘヘヘヘヘヘヘヘヘヘヘヘヘヘヘヘヘヘヘヘヘヘヘヘヘヘヘヘヘヘヘヘヘヘヘヘヘヘヘヘヘヘ

2
cli/vendor/hmac-0.4.2/tests/data/sha256/4.key.bin

@ -1,2 +0,0 @@



1
cli/vendor/hmac-0.4.2/tests/data/sha256/4.output.bin

@ -1 +0,0 @@
‚UŠ8šD<¤Ě��™ň:…đúŁĺxřz.?ôg)f[

1
cli/vendor/hmac-0.4.2/tests/data/sha256/5.input.bin

@ -1 +0,0 @@
Test With Truncation

1
cli/vendor/hmac-0.4.2/tests/data/sha256/5.key.bin

@ -1 +0,0 @@

2
cli/vendor/hmac-0.4.2/tests/data/sha256/5.output.bin

@ -1,2 +0,0 @@
£¶tsΰn yl)UU+ϊo|
j�ο‹“ψ`�°Ν Ε

1
cli/vendor/hmac-0.4.2/tests/data/sha256/6.input.bin

@ -1 +0,0 @@
Test Using Larger Than Block-Size Key - Hash Key First

1
cli/vendor/hmac-0.4.2/tests/data/sha256/6.key.bin

@ -1 +0,0 @@
ェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェ

1
cli/vendor/hmac-0.4.2/tests/data/sha256/6.output.bin

@ -1 +0,0 @@
`ä1YචŠ&ªËõ·Ž Æ!7(ÅFãT

1
cli/vendor/hmac-0.4.2/tests/data/sha256/7.input.bin

@ -1 +0,0 @@
This is a test using a larger than block-size key and a larger than block-size data. The key needs to be hashed before being used by the HMAC algorithm.

1
cli/vendor/hmac-0.4.2/tests/data/sha256/7.key.bin

@ -1 +0,0 @@
ェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェ

1
cli/vendor/hmac-0.4.2/tests/data/sha256/7.output.bin

@ -1 +0,0 @@
› ˙§”/Ë'c_ĽŐ°éDżÜcdO“ŠQS\:5â

1
cli/vendor/hmac-0.4.2/tests/data/sha384/1.input.bin

@ -1 +0,0 @@
Hi There

1
cli/vendor/hmac-0.4.2/tests/data/sha384/1.key.bin

@ -1 +0,0 @@

1
cli/vendor/hmac-0.4.2/tests/data/sha384/1.output.bin

@ -1 +0,0 @@
¯׀9D״H•bk%פ«F�ש��הֶ‚×L|כֵ�תך�©n�JסRט²ת�¶

1
cli/vendor/hmac-0.4.2/tests/data/sha384/2.input.bin

@ -1 +0,0 @@
what do ya want for nothing?

1
cli/vendor/hmac-0.4.2/tests/data/sha384/2.key.bin

@ -1 +0,0 @@
Jefe

1
cli/vendor/hmac-0.4.2/tests/data/sha384/2.output.bin

@ -1 +0,0 @@
¯EÒãvH@1axÒµŠkœ~ôdõ Gä.Ãsc"D^Ž"@Ê^iâÇ‹29ìú²I

1
cli/vendor/hmac-0.4.2/tests/data/sha384/3.input.bin

@ -1 +0,0 @@
ンンンンンンンンンンンンンンンンンンンンンンンンンンンンンンンンンンンンンンンンンンンンンンンンンン

1
cli/vendor/hmac-0.4.2/tests/data/sha384/3.key.bin

@ -1 +0,0 @@
ェェェェェェェェェェェェェェェェェェェェ

3
cli/vendor/hmac-0.4.2/tests/data/sha384/3.output.bin

@ -1,3 +0,0 @@
ˆ&Óæ­Š
¢¬àȨo
¦5ÙG¬Ÿëè>ôåYfK*Z³�Á8¹N:¶á£O'

1
cli/vendor/hmac-0.4.2/tests/data/sha384/4.input.bin

@ -1 +0,0 @@
ヘヘヘヘヘヘヘヘヘヘヘヘヘヘヘヘヘヘヘヘヘヘヘヘヘヘヘヘヘヘヘヘヘヘヘヘヘヘヘヘヘヘヘヘヘヘヘヘヘヘ

2
cli/vendor/hmac-0.4.2/tests/data/sha384/4.key.bin

@ -1,2 +0,0 @@



BIN
cli/vendor/hmac-0.4.2/tests/data/sha384/4.output.bin

Binary file not shown.

1
cli/vendor/hmac-0.4.2/tests/data/sha384/5.input.bin

@ -1 +0,0 @@
Test With Truncation

1
cli/vendor/hmac-0.4.2/tests/data/sha384/5.key.bin

@ -1 +0,0 @@

1
cli/vendor/hmac-0.4.2/tests/data/sha384/5.output.bin

@ -1 +0,0 @@
:¿4ÃP;*#¤nüa›®ø—ôÈä,“Lå\Ë®—@ü¼ôÊb&ž*7͈º’cAïä®ê

1
cli/vendor/hmac-0.4.2/tests/data/sha384/6.input.bin

@ -1 +0,0 @@
Test Using Larger Than Block-Size Key - Hash Key First

1
cli/vendor/hmac-0.4.2/tests/data/sha384/6.key.bin

@ -1 +0,0 @@
ェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェ

1
cli/vendor/hmac-0.4.2/tests/data/sha384/6.output.bin

@ -1 +0,0 @@
NÎD…�>�ˆÒÆ:Å´Ožñ*+X�<Ñ:ÄÆ .ö«@0þ‚–$�ñcôIR

1
cli/vendor/hmac-0.4.2/tests/data/sha384/7.input.bin

@ -1 +0,0 @@
This is a test using a larger than block-size key and a larger than block-size data. The key needs to be hashed before being used by the HMAC algorithm.

1
cli/vendor/hmac-0.4.2/tests/data/sha384/7.key.bin

@ -1 +0,0 @@
ェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェ

1
cli/vendor/hmac-0.4.2/tests/data/sha384/7.output.bin

@ -1 +0,0 @@
fŽ” 5/%N�Ó,`$ þ°¸ûšÜλ‚F™Å¦xÌ1ç™m8`æ FR>

1
cli/vendor/hmac-0.4.2/tests/data/sha512/1.input.bin

@ -1 +0,0 @@
Hi There

1
cli/vendor/hmac-0.4.2/tests/data/sha512/1.key.bin

@ -1 +0,0 @@

1
cli/vendor/hmac-0.4.2/tests/data/sha512/1.output.bin

@ -1 +0,0 @@
‡ª|Þ¥ïa�Oð´$l°#yôâÎNÂxzгEá|ÞÚ¨3·Ö¸§‹'N®£ôä¾�‘Nëañp.il :hT

1
cli/vendor/hmac-0.4.2/tests/data/sha512/2.input.bin

@ -1 +0,0 @@
what do ya want for nothing?

1
cli/vendor/hmac-0.4.2/tests/data/sha512/2.key.bin

@ -1 +0,0 @@
Jefe

2
cli/vendor/hmac-0.4.2/tests/data/sha512/2.output.bin

@ -1,2 +0,0 @@
Kz{�������;Vࣇ�d".��' ��%T�X�u�Z�JmOe�����걣MJkKcn
8��7

1
cli/vendor/hmac-0.4.2/tests/data/sha512/3.input.bin

@ -1 +0,0 @@
ンンンンンンンンンンンンンンンンンンンンンンンンンンンンンンンンンンンンンンンンンンンンンンンンンン

1
cli/vendor/hmac-0.4.2/tests/data/sha512/3.key.bin

@ -1 +0,0 @@
ェェェェェェェェェェェェェェェェェェェェ

1
cli/vendor/hmac-0.4.2/tests/data/sha512/3.output.bin

@ -1 +0,0 @@
Зs╟²V╒└О╟Пul┴ И╠╣шщ▌Х6UЬ>3╡'²9©>└┌y╖"х╢┘╓~gх╧Fё7╬Х■&t'┬YА2▓Ш

1
cli/vendor/hmac-0.4.2/tests/data/sha512/4.input.bin

@ -1 +0,0 @@
ヘヘヘヘヘヘヘヘヘヘヘヘヘヘヘヘヘヘヘヘヘヘヘヘヘヘヘヘヘヘヘヘヘヘヘヘヘヘヘヘヘヘヘヘヘヘヘヘヘヘ

2
cli/vendor/hmac-0.4.2/tests/data/sha512/4.key.bin

@ -1,2 +0,0 @@



1
cli/vendor/hmac-0.4.2/tests/data/sha512/4.output.bin

@ -1 +0,0 @@
°ºFV7EŒi�å¨ÅöJ÷åvÙùK‡-ço€P6ãÛ©¥Á¢^´Öy'\Åx€c¥ñ—A O-â­ë뢘Ý

1
cli/vendor/hmac-0.4.2/tests/data/sha512/5.input.bin

@ -1 +0,0 @@
Test With Truncation

1
cli/vendor/hmac-0.4.2/tests/data/sha512/5.key.bin

@ -1 +0,0 @@

2
cli/vendor/hmac-0.4.2/tests/data/sha512/5.output.bin

@ -1,2 +0,0 @@
A_­bqX
SAy¼‰‡¦P‡’*O»6f:±m q[PÝÐü#P„ë�3d¡EO²ïgÍ)þgsŽ¢fék

1
cli/vendor/hmac-0.4.2/tests/data/sha512/6.input.bin

@ -1 +0,0 @@
Test Using Larger Than Block-Size Key - Hash Key First

1
cli/vendor/hmac-0.4.2/tests/data/sha512/6.key.bin

@ -1 +0,0 @@
ェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェ

2
cli/vendor/hmac-0.4.2/tests/data/sha512/6.output.bin

@ -1,2 +0,0 @@
��Bcاء�ً��ء�{و��Fر�Jَء7���RkVذ7ـ_%��ز!]jR�نOs�?
ٌ��Z�]xe�

1
cli/vendor/hmac-0.4.2/tests/data/sha512/7.input.bin

@ -1 +0,0 @@
This is a test using a larger than block-size key and a larger than block-size data. The key needs to be hashed before being used by the HMAC algorithm.

1
cli/vendor/hmac-0.4.2/tests/data/sha512/7.key.bin

@ -1 +0,0 @@
ェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェェ

1
cli/vendor/hmac-0.4.2/tests/data/sha512/7.output.bin

@ -1 +0,0 @@
縵jw]ネ}コ、゚ゥ�^?�゙スq�r掩]�- ヘノDカ,ャ<Iこ ^�テ葯Fv璟潺`eノt@卲jX

57
cli/vendor/hmac-0.4.2/tests/lib.rs

@ -1,57 +0,0 @@
#![no_std]
#[macro_use]
extern crate crypto_tests;
extern crate hmac;
extern crate md_5 as md5;
extern crate sha2;
use crypto_tests::mac::{mac_test, MacTest};
use hmac::Hmac;
#[test]
fn hmac_md5() {
// Test vectors from RFC 2104, plus wiki test
let tests = new_mac_tests!("md5/1", "md5/2", "md5/3", "md5/4");
mac_test::<Hmac<md5::Md5>>(&tests);
}
#[test]
fn hmac_sha224() {
// Test vectors from RFC 4231
let tests = new_mac_tests!(
"sha224/1", "sha224/2", "sha224/3", "sha224/4",
"sha224/5", "sha224/6", "sha224/7"
);
mac_test::<Hmac<sha2::Sha224>>(&tests);
}
#[test]
fn hmac_sha256() {
// Test vectors from RFC 4231
let tests = new_mac_tests!(
"sha256/1", "sha256/2", "sha256/3", "sha256/4",
"sha256/5", "sha256/6", "sha256/7"
);
mac_test::<Hmac<sha2::Sha256>>(&tests);
}
#[test]
fn hmac_sha384() {
// Test vectors from RFC 4231
let tests = new_mac_tests!(
"sha384/1", "sha384/2", "sha384/3", "sha384/4",
"sha384/5", "sha384/6", "sha384/7"
);
mac_test::<Hmac<sha2::Sha384>>(&tests);
}
#[test]
fn hmac_sha512() {
// Test vectors from RFC 4231
let tests = new_mac_tests!(
"sha512/1", "sha512/2", "sha512/3", "sha512/4",
"sha512/5", "sha512/6", "sha512/7"
);
mac_test::<Hmac<sha2::Sha512>>(&tests);
}
Loading…
Cancel
Save