Skip to content

Commit

Permalink
initial commit for providing sha1 support and allowinsecuremessages
Browse files Browse the repository at this point in the history
  • Loading branch information
HimanshuSharma-Angel committed Jan 11, 2024
1 parent 238d10e commit 5eee914
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions crypto/keyring_message.go
Original file line number Diff line number Diff line change
Expand Up @@ -343,6 +343,8 @@ func asymmetricDecryptStream(
},
}

config.InsecureAllowUnauthenticatedMessages = true

if verificationContext != nil {
config.KnownNotations = map[string]bool{constants.SignatureContextName: true}
}
Expand Down
1 change: 1 addition & 0 deletions crypto/signature.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ import (
)

var allowedHashes = []crypto.Hash{
crypto.SHA1,
crypto.SHA224,
crypto.SHA256,
crypto.SHA384,
Expand Down

0 comments on commit 5eee914

Please sign in to comment.