Discover Packages
github.com/De-IM/mautrix
crypto
aescbc
package
Version:
v0.0.6
Opens a new window with list of versions in this module.
Published: Dec 20, 2024
License: MPL-2.0
Opens a new window with license information.
Imports: 4
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
View Source
var (
ErrNoKeyProvided = errors .New ("no key")
ErrIVNotBlockSize = errors .New ("IV length does not match AES block size")
ErrNotMultipleBlockSize = errors .New ("ciphertext length is not a multiple of the AES block size")
)
Decrypt decrypts the ciphertext with the key and IV. The IV length must be
equal to the block size.
This function mutates the ciphertext.
Encrypt encrypts the plaintext with the key and IV. The IV length must be
equal to the AES block size.
This function might mutate the plaintext.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.