8000 Make the crypto module doc match the code on the supported schemes and where the EncryptionInfo is by dominion525 · Pull Request #165 · dominion525/jetdb · GitHub
[go: up one dir, main page]

Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions crates/jetdb/src/crypto.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
//! Encryption support for .accdb files (MS-OFFCRYPTO).
//!
//! Supports Agile Encryption, RC4 CryptoAPI, and NonStandard AES.
//! The EncryptionInfo is stored at page 0 offset 0x299.
//! Supports Agile Encryption, RC4 CryptoAPI, Standard AES and NonStandard AES.
//! Page 0 holds the length of the EncryptionInfo (u16 LE) at offset 0x299,
//! and the EncryptionInfo itself from offset 0x29B.

use crate::file::FileError;
use crate::format::db_header;
Expand Down
2 changes: 1 addition & 1 deletion crates/jetdb/src/format.rs
Original file line number Diff line number Diff line change
Expand Up @@ -609,7 +609,7 @@ pub mod db_header {
pub const DB_KEY: usize = 0x3E;
/// Password offset for Jet 3.
pub const PASSWORD_JET3: usize = 0x42;
/// Offset of the EncryptionInfo length field (Agile Encryption, .accdb).
/// Offset of the length of the EncryptionInfo of an .accdb, which every scheme has.
pub const ENCRYPTION_INFO_OFFSET: usize = 0x299;
}

Expand Down
Loading
0