(crypted []byte)
| 140 | } |
| 141 | |
| 142 | func (alg *cryptFernet) decrypt(crypted []byte) ([]byte, error) { |
| 143 | decrypted := fernet.VerifyAndDecrypt(crypted, alg.ttl, []*fernet.Key{alg.key}) |
| 144 | if decrypted == nil { |
| 145 | return nil, fmt.Errorf("can't decrypt the field value") |
| 146 | } |
| 147 | return decrypted, nil |
| 148 | } |
nothing calls this directly
no outgoing calls
no test coverage detected