rsa

package
v0.0.0-...-fb5bbcc Latest Latest
Warning

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

Go to latest
Published: Dec 22, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const RSA_KEY_LENGTH = 2048
View Source
const RSA_LOGIN_LENGTH = RSA_KEY_LENGTH / 8
View Source
const RSA_PUB_KEY_LENGTH = RSA_LOGIN_LENGTH + 14

Variables

This section is empty.

Functions

This section is empty.

Types

type RSA

type RSA struct {
	PublicKey [RSA_PUB_KEY_LENGTH]byte
	// contains filtered or unexported fields
}

func (*RSA) Decrypt

func (r *RSA) Decrypt(data []byte) ([]byte, error)

Attempts to decrypt RSA data, which is `RSA_LOGIN_LENGTH` length

func (*RSA) Init

func (r *RSA) Init()

Initializes RSA which generates keypair

Jump to

Keyboard shortcuts

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