Documentation
¶
Overview ¶
Package rsaoaep provides RSA-OAEP cipher helpers without colliding with crypto/rsa.
New code should import this package instead of the legacy pki/rsa path:
import "github.com/InsideGallery/core/pki/rsaoaep"
Compatibility: github.com/InsideGallery/core/pki/rsa remains available for existing consumers. Prefer New and FromPrivateKey from rsaoaep so RSA-OAEP usage has an algorithm-specific import path.
Index ¶
Constants ¶
View Source
const ( // PrivateKeyPEMBlockType is the PEM block type used for PKCS#1 private keys. PrivateKeyPEMBlockType = legacy.TypeRSAPrivateKey // DefaultKeyBits is the default RSA key size. DefaultKeyBits = legacy.DefaultBitsSize )
Variables ¶
View Source
var ErrFailedToParsePEMBlock = legacy.ErrFailedToParsePEMBlock
ErrFailedToParsePEMBlock reports invalid private-key PEM data.
Functions ¶
This section is empty.
Types ¶
type Cipher ¶
Cipher encrypts and decrypts data with RSA-OAEP.
func FromPrivateKey ¶
FromPrivateKey restores an RSA-OAEP cipher from PKCS#1 private-key PEM data.
Click to show internal directories.
Click to hide internal directories.