PluginProbe
Media Cloud Sync / 1.4.2
Media Cloud Sync v1.4.2
1.4.2 1.4.1 1.4.0 1.3.12 1.3.11 1.3.10 trunk 1.0.0 1.0.1 1.0.2 1.0.3 1.1.0 1.1.1 1.2.0 1.2.10 1.2.11 1.2.12 1.2.13 1.2.2 1.2.3 1.2.4 1.2.5 1.2.6 1.2.7 1.2.8 All 36 releases
media-cloud-sync / includes / sdk / s3 / Aws / Crypto / Cipher / CipherMethod.php

CipherMethod.php in Media Cloud Sync 1.4.2, at includes/sdk/s3/Aws/Crypto/Cipher/CipherMethod.php

56 lines 1.6 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 namespace Dudlewebs\WPMCS\s3\Aws\Crypto\Cipher;
4
5 interface CipherMethod
6 {
7 /**
8 * Returns an identifier recognizable by `openssl_*` functions, such as
9 * `aes-256-cbc` or `aes-128-ctr`.
10 *
11 * @return string
12 */
13 public function getOpenSslName();
14 /**
15 * Returns an AES recognizable name, such as 'AES/GCM/NoPadding'.
16 *
17 * @return string
18 */
19 public function getAesName();
20 /**
21 * Returns the IV that should be used to initialize the next block in
22 * encrypt or decrypt.
23 *
24 * @return string
25 */
26 public function getCurrentIv();
27 /**
28 * Indicates whether the cipher method used with this IV requires padding
29 * the final block to make sure the plaintext is evenly divisible by the
30 * block size.
31 *
32 * @return boolean
33 */
34 public function requiresPadding();
35 /**
36 * Adjust the return of this::getCurrentIv to reflect a seek performed on
37 * the encryption stream using this IV object.
38 *
39 * @param int $offset
40 * @param int $whence
41 *
42 * @throws LogicException Thrown if the requested seek is not supported by
43 * this IV implementation. For example, a CBC IV
44 * only supports a full rewind ($offset === 0 &&
45 * $whence === SEEK_SET)
46 */
47 public function seek($offset, $whence = \SEEK_SET);
48 /**
49 * Take account of the last cipher text block to adjust the return of
50 * this::getCurrentIv
51 *
52 * @param string $cipherTextBlock
53 */
54 public function update($cipherTextBlock);
55 }
56