Documentation
¶
Overview ¶
Package rsa is the legacy RSA-OAEP import path.
New code should import the focused replacement package:
import "github.com/InsideGallery/core/pki/rsaoaep"
Compatibility: existing RSA-OAEP exports remain available for downstream consumers that still import pki/rsa. Do not add new helpers here; add RSA-OAEP behavior to pki/rsaoaep so call sites avoid a local name collision with crypto/rsa.
Index ¶
Constants ¶
View Source
const ( TypeRSAPrivateKey = "RSA PRIVATE KEY" DefaultBitsSize = 4096 )
Variables ¶
View Source
var (
ErrFailedToParsePEMBlock = errors.New("failed to parse PEM block containing the public key")
)
All kind of errors
Functions ¶
This section is empty.
Types ¶
type RSA ¶
type RSA struct {
// contains filtered or unexported fields
}
func FromPrivateKey ¶
func (*RSA) FromBinary ¶
func (a *RSA) FromBinary(raw []byte) (localCipher.Cipher, error)
Click to show internal directories.
Click to hide internal directories.