evalphobia/hierogolyph

View on GitHub
crypto/aesgcm/crypto_aes_gcm.go

Summary

Maintainability
A
35 mins
Test Coverage

Function Decrypt has 5 return statements (exceeds 4 allowed).
Open

func Decrypt(cipherText, key []byte) (string, error) {
    // use first 32byte if the key length is longer than 32byte.
    if len(key) > 32 {
        key = key[0:32]
    }
Severity: Major
Found in crypto/aesgcm/crypto_aes_gcm.go - About 35 mins to fix

    There are no issues that match your filters.

    Category
    Status