Affected by GO-2025-3442
and 1 other vulnerabilities
GO-2025-3442 : CometBFT allows a malicious peer to make node stuck in blocksync in github.com/cometbft/cometbft
GO-2025-3443 : CometBFT allows a malicious peer to stall the network by disseminating seemingly valid block parts in github.com/cometbft/cometbft
Retracted : a regression was introduced
Discover Packages
github.com/cometbft/cometbft
crypto
xsalsa20symmetric
package
Version:
v0.38.4
Opens a new window with list of versions in this module.
Published: Jan 22, 2024
License: Apache-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
¶
func DecryptSymmetric(ciphertext []byte , secret []byte ) (plaintext []byte , err error )
secret must be 32 bytes long. Use something like Sha256(Bcrypt(passphrase))
The ciphertext is (secretbox.Overhead + 24) bytes longer than the plaintext.
func EncryptSymmetric(plaintext []byte , secret []byte ) (ciphertext []byte )
secret must be 32 bytes long. Use something like Sha256(Bcrypt(passphrase))
The ciphertext is (secretbox.Overhead + 24) bytes longer than the plaintext.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.