Skip to main content

easypdf_core/crypto/
mod.rs

1//! PDF 加密与数字签名操作(ISO 32000)。
2//!
3//! 本模块分为两个子模块:
4//!
5//! - [`encrypt`]: 基于密码的加密(`/V 4`、`/R 4` AES-128 / `/V 5` AES-256)。
6//! - [`sign`]: 数字签名(`PKCS#7` 分离式 `SignedData`,RSA-PKCS#1v1.5)。
7//!
8//! 两个子模块均致力于符合 PDF 规范(ISO 32000-1 / ISO 32000-2)。
9
10mod crypto_error;
11pub mod encrypt;
12pub mod sign;
13
14pub use crypto_error::CryptoError;
15pub use encrypt::{
16    EncryptionInfo, PdfEncryption, PdfEncryptionAlgorithm, PdfPermissions, decrypt_pdf,
17    encrypt_pdf, get_encryption_info,
18};
19pub use sign::{PdfSigner, SignatureInfo, sign_pdf, verify_pdf_signature};