Debian Codegraph @

lib/3rdParty/composer/aws/aws-sdk-php/src/Crypto/AlgorithmConstants.php

raw symbols SCIP
1 <?php
2 namespace Aws\Crypto;
3
4 class AlgorithmConstants
5 {
6 /**
7 * The maximum number of 16-byte blocks that can be encrypted with a
8 * GCM cipher. Note the maximum bit-length of the plaintext is (2^39 - 256),
9 * which translates to a maximum byte-length of (2^36 - 32), which in turn
10 * translates to a maximum block-length of (2^32 - 2).
11 *
12 * Reference: NIST Special Publication 800-38D.
13 * @link http://csrc.nist.gov/publications/nistpubs/800-38D/SP-800-38D.pdf
14 */
15 public const GCM_MAX_CONTENT_LENGTH_BITS = (1 << 39) - 256;
16
17 /**
18 * The Maximum length of the content that can be encrypted in CBC mode.
19 */
20 public const CBC_MAX_CONTENT_LENGTH_BYTES = 1 << 55;
21
22 /**
23 * The maximum number of bytes that can be securely encrypted per a single key using AES/CTR.
24 */
25 public const CTR_MAX_CONTENT_LENGTH_BYTES = -1;
26 }