Table of Contents

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

encryptedPath string

Path 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

encryptedStream Stream

Readable, 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.

Share