Code Coverage
 
Lines
Functions and Methods
Classes and Traits
Total
n/a
0 / 0
n/a
0 / 0
CRAP
n/a
0 / 0
EncryptionMethod
n/a
0 / 0
n/a
0 / 0
0
n/a
0 / 0
1<?php
2
3declare(strict_types=1);
4
5namespace Phpdftk\Pdf\Toolkit\Encryption;
6
7/**
8 * PDF encryption algorithms mapped to their encryption dictionary revisions.
9 *
10 * RC4-40 uses V1/R2 (40-bit key, PDF 1.1+). RC4-128 uses V2/R3 (128-bit key,
11 * PDF 1.4+). AES-128 uses V4/R4 with a crypt filter (PDF 1.6+). AES-256 uses
12 * V5/R6 with the extension-level key derivation (PDF 2.0). The PublicKey
13 * variants use the same V/R but derive the file encryption key from a PKCS#7
14 * envelope instead of a user/owner password.
15 */
16enum EncryptionMethod
17{
18    case Rc440;
19    case Rc4128;
20    case Aes128;
21    case Aes256;
22    case PublicKeyAes128;
23    case PublicKeyAes256;
24}