|
6 | 6 | use \Defuse\Crypto\Core;
|
7 | 7 | use \Defuse\Crypto\FileConfig;
|
8 | 8 |
|
9 |
| -/* |
10 |
| - * PHP Encryption Library |
11 |
| - * Copyright (c) 2014-2015, Taylor Hornby <https://defuse.ca> |
12 |
| - * All rights reserved. |
13 |
| - * |
14 |
| - * Streaming File Encryption Class |
15 |
| - * Copyright (c) 2015 Paragon Initiative Enterprises <https://paragonie.com> |
16 |
| - * All rights reserved. |
17 |
| - * |
18 |
| - * Redistribution and use in source and binary forms, with or without |
19 |
| - * modification, are permitted provided that the following conditions are met: |
20 |
| - * |
21 |
| - * 1. Redistributions of source code must retain the above copyright notice, |
22 |
| - * this list of conditions and the following disclaimer. |
23 |
| - * |
24 |
| - * 2. Redistributions in binary form must reproduce the above copyright notice, |
25 |
| - * this list of conditions and the following disclaimer in the documentation |
26 |
| - * and/or other materials provided with the distribution. |
27 |
| - * |
28 |
| - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" |
29 |
| - * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE |
30 |
| - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE |
31 |
| - * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE |
32 |
| - * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR |
33 |
| - * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF |
34 |
| - * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS |
35 |
| - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN |
36 |
| - * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) |
37 |
| - * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE |
38 |
| - * POSSIBILITY OF SUCH DAMAGE. |
39 |
| - */ |
40 | 9 | final class File implements StreamInterface
|
41 | 10 | {
|
42 | 11 | // File ciphertext format: [____VERSION____][____SALT____][____IV____][____CIPHERTEXT____][____HMAC____].
|
|
0 commit comments