Class EncryptedGguf.Reader
- Namespace
- LMKit.Cryptography
- Assembly
- LM-Kit.NET.dll
Reader over an encrypted GGUF container. Exposes the decrypted metadata block and an indexer that decrypts arbitrary plaintext byte ranges on demand.
public sealed class EncryptedGguf.Reader : IDisposable
- Inheritance
-
EncryptedGguf.Reader
- Implements
- Inherited Members
Properties
- MetadataSize
Plaintext GGUF metadata size (gguf_get_data_offset equivalent).
- PlaintextSize
Plaintext size of the original GGUF file (bytes).
- Scheme
The encryption scheme used.
Methods
- Dispose()
Dispose the reader and wipe the derived key from memory.
- GetMetadataBytes()
Allocate and return the decrypted GGUF metadata block.
- Open(string, string)
Open an encrypted container for reading.
- ReadDecrypted(long, Span<byte>)
Read decrypted plaintext bytes into
destination.