rsa

package
v2.4.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 23, 2024 License: GPL-3.0 Imports: 10 Imported by: 0

Documentation

Overview

Package rsa is an authenticator for Agent communications with the server using RSA key exchange Primarily used with Mythic's HTTP profile

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Authenticator

type Authenticator struct {
	// contains filtered or unexported fields
}

Authenticator is a structure used for OPAQUE authentication

func New

func New(id uuid.UUID, key rsa.PrivateKey) *Authenticator

New returns an RSA Authenticator structure used for Agent authentication

func (*Authenticator) Authenticate

func (a *Authenticator) Authenticate(msg messages.Base) (messages.Base, bool, error)

Authenticate performs the necessary steps to authenticate the agent, returning one or more Base messages needed to complete authentication. Function must take in a Base message for when the authentication process takes more than one step.

func (*Authenticator) Secret

func (a *Authenticator) Secret() ([]byte, error)

Secret returns encryption keys derived during the Agent authentication process (if applicable)

func (*Authenticator) String

func (a *Authenticator) String() string

String returns a string representation of the Authenticator's type

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL