Crate dbe

Source
Expand description

DBE

Encrypt utils for developing database.

github

license-apache license-mit

§Introduction

§License

Licensed under either of Apache License, Version 2.0 or MIT license at your option.
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in this project by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.

Structs§

DefaultEncryptor
Default encryptor
Encryption
Encryption
IV
IV.

Enums§

AesErroraes or aes-std
Aes error
EncryptError
Encrypt error
EncryptionAlgorithm
Encryption algorithm.

Constants§

BLOCK_SIZE
The block size of the encryption algorithm.

Traits§

Encryptor
AES encryption extensions

Functions§

block_size
Returns the block size of the encryption algorithm
encrypt
Encrypts data with IV. Can be used for both encryption and decryption.
encrypt_to
Encrypts src with IV to dst. Can be used for both encryption and decryption.
encrypt_to_vec
Encrypts src with IV to a new Vec. Can be used for both encryption and decryption.
is_valid_private_key
Check if the private key length is valid
random_iv
generates IV.

Type Aliases§

Aes128Ctraes or aes-std
AES-128 in CTR mode
Aes192Ctraes or aes-std
AES-192 in CTR mode
Aes256Ctraes or aes-std
AES-256 in CTR mode