[ENG-361] Crypto crate docs and tests (#572)

* add hashing tests

* add encryption/decryption tests

* remove `reason`

* add file header tests (preview media deserialization is broken)

* fix keyslot reading bug

* add sd-crypto testing to ci

* add tests/constants for all hashing algorthms and param levels

* add blake3-kdf tests

* use `const` arrays for storing expected output

* test for `5MiB` `encrypt_streams` and `decrypt_streams`

* add invalid/mismatched nonce tests

* update `primitives` docs

* remove erroneous `,`

* grammar tweaks

* add errors to `#[should_panic]`

* cleanup `stream` tests

* cleanup hashing tests a little

* function docs
This commit is contained in:
jake
2023-02-16 11:42:30 +00:00
committed by GitHub
parent b856f15b22
commit c7dbc784cd
12 changed files with 1036 additions and 105 deletions

View File

@@ -188,6 +188,9 @@ jobs:
- name: Check core
run: cargo check -p sd-core --release
- name: Cargo test sd-crypto
run: cargo test -p sd-crypto --release --lib --all-features
- name: Bundle Desktop
run: pnpm desktop tauri build