Skip to content

Commit

Permalink
Merge pull request #50 from enowars/checker-mumble
Browse files Browse the repository at this point in the history
Fixes after enowars7
  • Loading branch information
theodorsm authored Jul 24, 2023
2 parents edc0d8f + 231ca5a commit e1c7a05
Show file tree
Hide file tree
Showing 3 changed files with 131 additions and 117 deletions.
7 changes: 6 additions & 1 deletion checker/src/internal/crypto/crypto.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,12 @@ func EncryptAES(input []byte, key []byte) ([]byte, error) {
return buf, nil
}

func DecryptAES(ct []byte, key []byte) ([]byte, error) {
func DecryptAES(ct []byte, key []byte) (plainText []byte, err error) {
defer func() {
if r := recover(); r != nil {
err = errors.New("Decrypt paniced")
}
}()
aesBlock, err := aes.NewCipher(key)
if err != nil {
return nil, err
Expand Down
Loading

0 comments on commit e1c7a05

Please sign in to comment.