(data []byte, opts *options.Cookie)
| 305 | } |
| 306 | |
| 307 | func encrypt(data []byte, opts *options.Cookie) ([]byte, error) { |
| 308 | cipher, err := makeCipher(opts) |
| 309 | if err != nil { |
| 310 | return nil, err |
| 311 | } |
| 312 | return cipher.Encrypt(data) |
| 313 | } |
| 314 | |
| 315 | func decrypt(data []byte, opts *options.Cookie) ([]byte, error) { |
| 316 | cipher, err := makeCipher(opts) |
no test coverage detected