Skip to content

Block crypto

Bruce Wayne edited this page Oct 29, 2025 · 9 revisions

Create

AES

IBlockCrypto crypto = AesCrypto.CreateCore(key);

SM4

IBlockCrypto crypto = new SM4Crypto(key);

Properties

Property Description
Name Name of the crypto
BlockSize Block size of the crypto

Methods

Method Description
void Encrypt(ReadOnlySpan<byte>, Span<byte>) Encrypt a block
void Decrypt(ReadOnlySpan<byte>, Span<byte>) Decrypt a block
void Dispose() Releases the resources

Data format extensions

KDF

Symmetric crypto

Clone this wiki locally