pub struct VerifyResult<'ctx> { /* private fields */ }Expand description
Result of a verify (or decrypt) operation. Owns the verify-op handle until drop; methods read out the per-signature / per-recipient state.
It also owns the op’s inputs and output, moved here by
VerifyOp::execute. Drop destroys the op
handle first and the streams after — the canonical upstream ordering —
so nothing the op references is freed early.
Implementations§
Source§impl<'ctx> VerifyResult<'ctx>
impl<'ctx> VerifyResult<'ctx>
Sourcepub fn signature_count(&self) -> Result<usize>
pub fn signature_count(&self) -> Result<usize>
Number of signatures found in the verified stream.
Sourcepub fn signature_at(&self, idx: usize) -> Result<Option<VerifySignature>>
pub fn signature_at(&self, idx: usize) -> Result<Option<VerifySignature>>
Borrow the per-signature result at idx.
Sourcepub fn signatures(&self) -> Result<Vec<VerifySignature>>
pub fn signatures(&self) -> Result<Vec<VerifySignature>>
All per-signature results.
Sourcepub fn iter_signatures(&self) -> impl Iterator<Item = VerifySignature> + '_
pub fn iter_signatures(&self) -> impl Iterator<Item = VerifySignature> + '_
Lazy iterator over per-signature results. Skips holes (returns
None for any index where librnp returns no handle) — use the
strict Self::signatures collector if holes are unexpected.
Sourcepub fn recipient_count(&self) -> Result<usize>
pub fn recipient_count(&self) -> Result<usize>
Number of public-key recipients in the verified stream.
pub fn recipient_at(&self, idx: usize) -> Result<Option<Recipient>>
pub fn recipients(&self) -> Result<Vec<Recipient>>
Sourcepub fn used_recipient(&self) -> Result<Option<Recipient>>
pub fn used_recipient(&self) -> Result<Option<Recipient>>
The recipient that was actually used for decryption, if any.
Sourcepub fn symenc_count(&self) -> Result<usize>
pub fn symenc_count(&self) -> Result<usize>
Number of symmetric-only encrypted session keys (password-based recipients) in the verified stream.
pub fn symenc_at(&self, idx: usize) -> Result<Option<Symenc>>
pub fn symencs(&self) -> Result<Vec<Symenc>>
Sourcepub fn used_symenc(&self) -> Result<Option<Symenc>>
pub fn used_symenc(&self) -> Result<Option<Symenc>>
The symenc that was actually used for decryption, if any.
Sourcepub fn file_info(&self) -> Result<Option<FileInfo>>
pub fn file_info(&self) -> Result<Option<FileInfo>>
File metadata embedded in the literal-data packet, if any.