-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
78bf6c5
commit b8851ca
Showing
3 changed files
with
28 additions
and
2 deletions.
There are no files selected for viewing
13 changes: 13 additions & 0 deletions
13
srcpkgs/vaultwarden/patches/reference-static-in-constant.patch
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,13 @@ | ||
diff --git a/src/crypto.rs b/src/crypto.rs | ||
index a987b0f..eff1785 100644 | ||
--- a/src/crypto.rs | ||
+++ b/src/crypto.rs | ||
@@ -6,7 +6,7 @@ use std::num::NonZeroU32; | ||
use data_encoding::{Encoding, HEXLOWER}; | ||
use ring::{digest, hmac, pbkdf2}; | ||
|
||
-const DIGEST_ALG: pbkdf2::Algorithm = pbkdf2::PBKDF2_HMAC_SHA256; | ||
+static DIGEST_ALG: pbkdf2::Algorithm = pbkdf2::PBKDF2_HMAC_SHA256; | ||
const OUTPUT_LEN: usize = digest::SHA256_OUTPUT_LEN; | ||
|
||
pub fn hash_password(secret: &[u8], salt: &[u8], iterations: u32) -> Vec<u8> { |
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,13 @@ | ||
diff --git a/Cargo.toml b/Cargo.toml | ||
index e3755e2..1fbe7a6 100644 | ||
--- a/Cargo.toml | ||
+++ b/Cargo.toml | ||
@@ -5,7 +5,7 @@ name = "vaultwarden" | ||
version = "1.0.0" | ||
authors = ["Daniel García <[email protected]>"] | ||
edition = "2021" | ||
-rust-version = "1.83.0" | ||
+rust-version = "1.82.0" | ||
resolver = "2" | ||
|
||
repository = "https://github.com/dani-garcia/vaultwarden" |
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