Files
herolib/aiprompts/v_core/crypto/des.md
2025-09-02 07:28:13 +02:00

1.5 KiB

module des

Contents

encrypt_block

fn encrypt_block(subkeys []u64, mut dst []u8, src []u8)

Encrypt one block from src into dst, using the subkeys.

[Return to contents]

new_cipher

fn new_cipher(key []u8) cipher.Block

NewCipher creates and returns a new cipher.Block.

[Return to contents]

new_triple_des_cipher

fn new_triple_des_cipher(key []u8) cipher.Block

NewTripleDesCipher creates and returns a new cipher.Block.

[Return to contents]

DesCipher

encrypt

fn (c &DesCipher) encrypt(mut dst []u8, src []u8)

encrypt a block of data using the DES algorithm

[Return to contents]

decrypt

fn (c &DesCipher) decrypt(mut dst []u8, src []u8)

decrypt a block of data using the DES algorithm

[Return to contents]

TripleDesCipher

encrypt

fn (c &TripleDesCipher) encrypt(mut dst []u8, src []u8)

encrypt a block of data using the TripleDES algorithm

[Return to contents]

decrypt

fn (c &TripleDesCipher) decrypt(mut dst []u8, src []u8)

decrypt a block of data using the TripleDES algorithm

[Return to contents]

Powered by vdoc. Generated on: 2 Sep 2025 07:18:17