(data []byte, opts *options.Cookie)
| 313 | } |
| 314 | |
| 315 | func decrypt(data []byte, opts *options.Cookie) ([]byte, error) { |
| 316 | cipher, err := makeCipher(opts) |
| 317 | if err != nil { |
| 318 | return nil, err |
| 319 | } |
| 320 | return cipher.Decrypt(data) |
| 321 | } |
| 322 | |
| 323 | func makeCipher(opts *options.Cookie) (encryption.Cipher, error) { |
| 324 | secret, err := opts.GetSecret() |
no test coverage detected