Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix to switch to FIPS compliant algorithms/classes #66

Merged
merged 1 commit into from
Oct 8, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Rubeus/lib/KDCKeyAgreement.cs
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ private static byte[] CalculateIntegrity(byte count, byte[] data) {
input[0] = count;
data.CopyTo(input, 1);

using (SHA1Managed sha1 = new SHA1Managed()) {
using (SHA1CryptoServiceProvider sha1 = new SHA1CryptoServiceProvider()) {
return sha1.ComputeHash(input);
}
}
Expand Down
2 changes: 1 addition & 1 deletion Rubeus/lib/krb_structures/KrbPkAuthenticator.cs
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ public AsnElt Encode() {

byte[] paChecksum;

using (SHA1Managed sha1 = new SHA1Managed()) {
using (SHA1CryptoServiceProvider sha1 = new SHA1CryptoServiceProvider()) {
paChecksum = sha1.ComputeHash(RequestBody.Encode().Encode());
}

Expand Down