Method ReadScheme
- Namespace
- LMKit.Cryptography
- Assembly
- LM-Kit.NET.dll
ReadScheme(string)
Reads the GgufEncryptionScheme recorded in the header of an LM-Kit encrypted container.
public static GgufEncryptionScheme ReadScheme(string encryptedPath)
Parameters
encryptedPathstringPath to the encrypted container.
Returns
- GgufEncryptionScheme
The scheme the container was encrypted with.
Exceptions
- InvalidDataException
The file is not an LM-Kit encrypted container.
ReadScheme(Stream)
Reads the GgufEncryptionScheme recorded in the header of an LM-Kit encrypted container. The container is expected to start at stream offset zero; the stream's position is restored before returning.
public static GgufEncryptionScheme ReadScheme(Stream encryptedStream)
Parameters
encryptedStreamStreamReadable, seekable stream over the container.
Returns
- GgufEncryptionScheme
The scheme the container was encrypted with.
Exceptions
- InvalidDataException
The stream is not an LM-Kit encrypted container.