Skip to content

Commit 92bd2cd

Browse files
committed
Explicitly use sha256 digests.
1 parent 4b975b5 commit 92bd2cd

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

MasterPassword/C/build

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ fi
3636
### DEPENDENCIES
3737

3838
digest() {
39-
openssl sha1 -binary < "$1" | od -t x1 -An -v | tr -d '[:space:]'
39+
openssl sha -sha256 -binary < "$1" | od -t x1 -An -v | tr -d '[:space:]'
4040
}
4141
fetch() {
4242
if hash wget 2>/dev/null; then
@@ -81,7 +81,7 @@ fetchSource() (
8181
[[ -e $files ]] || {
8282
echo
8383
echo "Unpacking: ${PWD##*/}, using package..."
84-
unpack "${pkg##*/}" "$pkg_sha"
84+
unpack "${pkg##*/}" "$pkg_sha256"
8585
}
8686

8787
elif [[ $git ]] && hash git 2>/dev/null; then
@@ -114,7 +114,7 @@ fetchSource() (
114114
echo
115115
echo "Fetching: ${PWD##*/}, using package..."
116116
fetch "$pkg"
117-
unpack "${pkg##*/}" "$pkg_sha"
117+
unpack "${pkg##*/}" "$pkg_sha256"
118118
}
119119

120120
else

MasterPassword/C/lib/bcrypt/.source

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
home=http://www.openwall.com/crypt/
22
pkg=http://www.openwall.com/crypt/crypt_blowfish-1.3.tar.gz
3-
pkg_sha=461ba876ebacd5f7dc95f1eb3c5286d6e0983ae0
3+
pkg_sha256=83fa01fca6996fe8d882b7f8e9ba0305a5664936100b01481ea3c6a8ce8d72fd

MasterPassword/C/lib/scrypt/.source

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
home=https://code.google.com/p/scrypt/
22
svn=http://scrypt.googlecode.com/svn
33
pkg=http://masterpasswordapp.com/libscrypt-b12b554.tar.gz
4-
pkg_sha=a86445c3e031392d20652f4163adfd3fb0b1994e
4+
pkg_sha256=c726daec68a345e420896f005394a948dc5a6924713ed94b684c856d4c247f0b

0 commit comments

Comments
 (0)