class final readonly Core · roukmoute/pdf 0.6.1

PDF\Security\PublicKeyCipherOperation
Per-filter key/cipher binding, including object-specific RC4/AESV2 and object-independent AESV3.

Read the source declaration ↗

Inheritance and contracts

This type declares no parent, interface or trait.

Construction

__construct()

public function __construct(PDF\Security\PublicKeyCipher $cipher, PDF\Security\HistoricalEncryptionKey|PDF\Security\FileEncryptionKey $key, ?PDF\Security\Aes128Backend $aes128 = null, ?PDF\Security\Aes256Backend $aes256 = null, PDF\Security\RandomSource $random = new SystemRandomSource(), PDF\Security\Rc4Cipher $rc4 = new Rc4Cipher(), PDF\Security\HistoricalObjectKeyDerivation $objectKeys = new HistoricalObjectKeyDerivation())

Declared by PDF\Security\PublicKeyCipherOperation · View the code ↗

Declared methods

decrypt()

public function decrypt(string $bytes, PDF\Syntax\Object\IndirectObject\ObjectIdentifier $identifier): string

Declared by PDF\Security\PublicKeyCipherOperation · View the code ↗

decryptDirect()

public function decryptDirect(string $bytes): string

Declared by PDF\Security\PublicKeyCipherOperation · View the code ↗

encrypt()

public function encrypt(string $bytes, PDF\Syntax\Object\IndirectObject\ObjectIdentifier $identifier): string

Declared by PDF\Security\PublicKeyCipherOperation · View the code ↗

encryptDirect()

public function encryptDirect(string $bytes): string
An explicit stream Crypt specifier bypasses object-key derivation (7.4.10).

Declared by PDF\Security\PublicKeyCipherOperation · View the code ↗

Properties