-
Notifications
You must be signed in to change notification settings - Fork 50
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
We should make an effort to break up the large `bitwarden` crate into smaller more isolated crates. This extracts the cryptographic primitives into a crate, which better isolates them and may improve compile time slightly. We should continue to extract further areas.
- Loading branch information
Showing
87 changed files
with
737 additions
and
600 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -29,6 +29,7 @@ jobs: | |
|
||
package: | ||
- bitwarden | ||
- bitwarden-crypto | ||
- bitwarden-api-api | ||
- bitwarden-api-identity | ||
|
||
|
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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,45 @@ | ||
[package] | ||
name = "bitwarden-crypto" | ||
version = "0.1.0" | ||
authors = ["Bitwarden Inc"] | ||
license-file = "LICENSE" | ||
repository = "https://github.com/bitwarden/sdk" | ||
homepage = "https://bitwarden.com" | ||
description = """ | ||
Bitwarden Cryptographic primitives | ||
""" | ||
keywords = ["bitwarden"] | ||
edition = "2021" | ||
rust-version = "1.57" | ||
|
||
[features] | ||
default = [] | ||
|
||
mobile = ["uniffi"] | ||
|
||
[dependencies] | ||
aes = ">=0.8.2, <0.9" | ||
argon2 = { version = ">=0.5.0, <0.6", features = [ | ||
"alloc", | ||
], default-features = false } | ||
base64 = ">=0.21.2, <0.22" | ||
cbc = { version = ">=0.1.2, <0.2", features = ["alloc"] } | ||
hkdf = ">=0.12.3, <0.13" | ||
hmac = ">=0.12.1, <0.13" | ||
num-bigint = ">=0.4, <0.5" | ||
num-traits = ">=0.2.15, <0.3" | ||
pbkdf2 = { version = ">=0.12.1, <0.13", default-features = false } | ||
rand = ">=0.8.5, <0.9" | ||
rsa = ">=0.9.2, <0.10" | ||
schemars = { version = ">=0.8, <0.9", features = ["uuid1"] } | ||
serde = { version = ">=1.0, <2.0", features = ["derive"] } | ||
sha1 = ">=0.10.5, <0.11" | ||
sha2 = ">=0.10.6, <0.11" | ||
subtle = ">=2.5.0, <3.0" | ||
thiserror = ">=1.0.40, <2.0" | ||
uniffi = { version = "=0.25.2", optional = true } | ||
uuid = { version = ">=1.3.3, <2.0", features = ["serde"] } | ||
|
||
[dev-dependencies] | ||
rand_chacha = "0.3.1" | ||
serde_json = ">=1.0.96, <2.0" |
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
Oops, something went wrong.