Skip to main content

FileField

Enum FileField 

Source
#[non_exhaustive]
pub enum FileField {
Show 57 variants AgileReserved, SpinCount, KeyDataKeyBits, EncryptedKeyKeyBits, KeyDataBlockSize, EncryptedKeyBlockSize, KeyDataHashSize, EncryptedKeyHashSize, KeyDataSaltSize, EncryptedKeySaltSize, KeyDataSaltValue, EncryptedKeySaltValue, KeyDataHashAlgorithm, EncryptedKeyHashAlgorithm, KeyDataCipherAlgorithm, EncryptedKeyCipherAlgorithm, KeyDataCipherChaining, EncryptedKeyCipherChaining, EncryptedKeyValue, EncryptedVerifierHashInput, EncryptedVerifierHashValue, PasswordKeyEncryptor, DataIntegrity, EncryptedHmacKey, EncryptedHmacValue, SessionKey, EncryptionInfo, EncryptionHeaderSize, EncryptionHeader, EncryptionHeaderFlags, EncryptionHeaderKeySize, EncryptionHeaderAlgId, EncryptionVerifier, VerifierSaltSize, VerifierHashSize, EncryptedPackageSize, Rc4Office97Header, FibWIdent, FibLKey, EncryptionVersionInfo, BiffRecord, WorkbookBof, Filepass, FilepassEncryptionType, UserEditAtom, OffsetLastEdit, PersistDirectory, EncryptSessionPersistIdRef, CryptSession10Container, PersistObject, PicturesRecord, SummaryStream, SummaryDescriptorArray, SummaryDescriptorCount, SummaryDescriptor, SummaryStreamName, SummaryStreamExtent,
}
Available on crate feature crypto-ops only.
Expand description

What Error::BadParameters, Error::InvariantViolated and Error::UnsupportedAlgorithm carry: closed enums and integers, never text the file chose. Exported for the same reason as the two above: a caller matches on them. What Error::BadParameters, Error::InvariantViolated and Error::UnsupportedAlgorithm carry: closed enums and integers, never text the file chose. Exported for the same reason as the two above: a caller matches on them. What Error::BadParameters, Error::InvariantViolated and Error::UnsupportedAlgorithm carry: closed enums and integers, never text the file chose. Exported for the same reason as the two above: a caller matches on them. Which field of the file a crate::Error::BadParameters is about.

Named in the specification’s own spelling. Where the format carries two copies of one field (agile keyData and p:encryptedKey), each has its own entry.

Variants (Non-exhaustive)§

This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
§

AgileReserved

The agile EncryptionInfo’s Reserved field.

§

SpinCount

p:encryptedKey/@spinCount.

§

KeyDataKeyBits

keyData/@keyBits.

§

EncryptedKeyKeyBits

p:encryptedKey/@keyBits.

§

KeyDataBlockSize

keyData/@blockSize.

§

EncryptedKeyBlockSize

p:encryptedKey/@blockSize.

§

KeyDataHashSize

keyData/@hashSize.

§

EncryptedKeyHashSize

p:encryptedKey/@hashSize.

§

KeyDataSaltSize

keyData/@saltSize.

§

EncryptedKeySaltSize

p:encryptedKey/@saltSize.

§

KeyDataSaltValue

keyData/@saltValue, its decoded length.

§

EncryptedKeySaltValue

p:encryptedKey/@saltValue, its decoded length.

§

KeyDataHashAlgorithm

keyData/@hashAlgorithm.

§

EncryptedKeyHashAlgorithm

p:encryptedKey/@hashAlgorithm.

§

KeyDataCipherAlgorithm

keyData/@cipherAlgorithm.

§

EncryptedKeyCipherAlgorithm

p:encryptedKey/@cipherAlgorithm.

§

KeyDataCipherChaining

keyData/@cipherChaining.

§

EncryptedKeyCipherChaining

p:encryptedKey/@cipherChaining.

§

EncryptedKeyValue

p:encryptedKey/@encryptedKeyValue, its decoded length.

§

EncryptedVerifierHashInput

p:encryptedKey/@encryptedVerifierHashInput, its decoded length.

§

EncryptedVerifierHashValue

p:encryptedKey/@encryptedVerifierHashValue, its decoded length.

§

PasswordKeyEncryptor

The keyEncryptor / p:encryptedKey elements.

§

DataIntegrity

The dataIntegrity element.

§

EncryptedHmacKey

dataIntegrity/@encryptedHmacKey, its decoded length.

§

EncryptedHmacValue

dataIntegrity/@encryptedHmacValue, its decoded length.

§

SessionKey

The session key keyData/@keyBits describes, as recovered.

§

EncryptionInfo

The binary EncryptionInfo as a whole: its fixed prefix.

§

EncryptionHeaderSize

EncryptionHeaderSize.

§

EncryptionHeader

The EncryptionHeader structure’s fixed fields.

§

EncryptionHeaderFlags

EncryptionHeader.Flags.

§

EncryptionHeaderKeySize

EncryptionHeader.KeySize.

§

EncryptionHeaderAlgId

EncryptionHeader.AlgID.

§

EncryptionVerifier

The EncryptionVerifier structure.

§

VerifierSaltSize

EncryptionVerifier.SaltSize.

§

VerifierHashSize

EncryptionVerifier.VerifierHashSize.

§

EncryptedPackageSize

EncryptedPackage’s StreamSize.

§

Rc4Office97Header

The Office 97/2000 RC4 header (2.3.6.1).

§

FibWIdent

FibBase.wIdent.

§

FibLKey

FibBase.lKey.

§

EncryptionVersionInfo

The EncryptionVersionInfo a FIB or FILEPASS points at.

§

BiffRecord

A BIFF record header.

§

WorkbookBof

The Workbook stream’s opening BOF record.

§

Filepass

The FILEPASS record.

§

FilepassEncryptionType

FILEPASS.wEncryptionType.

§

UserEditAtom

The UserEditAtom.

§

OffsetLastEdit

UserEditAtom.offsetLastEdit.

§

PersistDirectory

The PersistDirectoryAtom.

§

EncryptSessionPersistIdRef

UserEditAtom.encryptSessionPersistIdRef.

§

CryptSession10Container

The CryptSession10Container.

§

PersistObject

A persist object’s offset.

§

PicturesRecord

A record of the Pictures stream.

§

SummaryStream

The encryption stream as a whole.

§

SummaryDescriptorArray

The EncryptedStreamDescriptor array.

§

SummaryDescriptorCount

EncryptedStreamDescriptorCount.

§

SummaryDescriptor

One EncryptedStreamDescriptor.

§

SummaryStreamName

An EncryptedStreamDescriptor’s stream name.

§

SummaryStreamExtent

An encrypted stream’s extent.

Implementations§

Source§

impl FileField

Source

pub fn spelling(self) -> &'static str

The field’s spelling, as the specification writes it.

Trait Implementations§

Source§

impl Clone for FileField

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Copy for FileField

Source§

impl Debug for FileField

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Display for FileField

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Eq for FileField

Source§

impl PartialEq for FileField

Source§

fn eq(&self, other: &Self) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl StructuralPartialEq for FileField

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T> ToString for T
where T: Display + ?Sized,

Source§

fn to_string(&self) -> String

Converts the given value to a String. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.