Expand description
PDF encryption support according to ISO 32000-1 Chapter 7.6
This module provides encryption using RC4 40-bit and 128-bit algorithms, AES-128 and AES-256 encryption, supporting Standard Security Handler (Revision 2, 3, 4, 5, and 6) and Public Key Security Handler.
Structs§
- Aes
- AES cipher implementation using RustCrypto (production-grade)
- AesKey
- AES encryption key
- Crypt
Filter - Crypt filter definition
- Crypt
Filter Manager - Crypt Filter Manager
- Document
Encryption - Integration with Document for encryption
- Embedded
File Encryption - Embedded file encryption handler
- Encryption
Dictionary - PDF encryption dictionary
- Encryption
Key - Encryption key
- Extended
Encryption Dict - Extended encryption dictionary with EFF support
- Functional
Crypt Filter - Functional Crypt Filter implementation
- Object
Encryptor - Object Encryptor for encrypting PDF objects
- Owner
Password - Owner password
- Permission
Check Result - Permission check result
- Permission
Event - Permission event for logging
- Permission
Flags - Individual permission flags
- Permissions
- Permission flags for encrypted PDFs
- Public
KeyEncryption Dict - Public Key Encryption Dictionary
- Public
KeySecurity Handler - Public Key Security Handler
- Rc4
- RC4 cipher state
- Rc4Key
- RC4 key for encryption/decryption
- Recipient
- Recipient information for public key encryption
- Runtime
Permissions - Runtime permissions enforcer
- Runtime
Permissions Builder - Builder for RuntimePermissions
- Standard
Security Handler - Standard Security Handler
- User
Password - User password
Enums§
- AesError
- AES-related errors
- AesKey
Size - AES key sizes supported by PDF
- Auth
Event - Authentication event for crypt filters
- Crypt
Filter Method - Crypt filter method
- Encryption
Algorithm - Encryption algorithm
- LogLevel
- Log level for permission events
- Permission
Operation - Permission operation type
- Security
Handler Revision - Security handler revision
- Stream
Filter - Stream filter name
- String
Filter - String filter name
- SubFilter
- SubFilter types for public key security
Traits§
- Permissions
Validator - Permissions validator trait
- Security
Handler - Security Handler trait for encryption/decryption operations
Functions§
- compute_
hash_ r6_ algorithm_ 2b - Compute R6 password hash using Algorithm 2.B (ISO 32000-2:2020 §7.6.4.3.4)
- generate_
iv - Generate random IV for AES encryption
Type Aliases§
- Permission
Callback - Callback for permission checks