# README

Cryptography

Wrappers around Go cryptographic functions, you should avoid using any cryptographic primitives that are not from this package.

# Packages

No description provided by the author
Package minisign implements the minisign signature scheme.

# Functions

AgeDecrypt - Decrypt using Curve 25519 + ChaCha20Poly1305.
AgeEncrypt - Encrypt using Nacl Box.
AgeKeyPairFromImplant - Decrypt the session key from an implant.
AgeServerKeyPair - Get teh server's ECC key pair.
Decrypt - Decrypt using chacha20poly1305 https://pkg.go.dev/golang.org/x/crypto/chacha20poly1305.
Encrypt - Encrypt using chacha20poly1305 https://pkg.go.dev/golang.org/x/crypto/chacha20poly1305.
KeyFromBytes - Convert to fixed length buffer.
MinisignServerPrivateKey - Get the server's minisign key pair.
MinisignServerPublicKey - Get the server's minisign public key string.
MinisignServerSign - Sign a message with the server's minisign private key.
NewCipherContext - Wrapper around creating a cipher context from a key.
PreludeDecrypt a command.
PreludeEncrypt the results.
No description provided by the author
RandomAgeKeyPair - Generate a random Curve 25519 key pair.
No description provided by the author
No description provided by the author
RandomSymmetricKey - Generate random ID of randomIDSize bytes.
RC4 encryption - Cryptographically insecure! Added for stage-listener shellcode obfuscation Dont use for anything else!.

# Variables

ErrDecryptFailed.
ErrInvalidKeyLength - Invalid key length.
ErrReplayAttack - Replay attack.

# Structs

AgeKeyPair - Holds the public/private key pair.
CipherContext - Tracks a series of messages encrypted under the same key and detects/prevents replay attacks.