Documentation ¶
Index ¶
- Constants
- type FastRSA
- func (r *FastRSA) Base64(message string) (string, error)
- func (r *FastRSA) ConvertJWKToPrivateKey(data, keyID string) (string, error)
- func (r *FastRSA) ConvertJWKToPublicKey(data, keyID string) (string, error)
- func (r *FastRSA) ConvertKeyPairToPKCS12(privateKey, certificate, password string) (string, error)
- func (r *FastRSA) ConvertPKCS12ToKeyPair(pkcs12, password string) (*PKCS12KeyPair, error)
- func (r *FastRSA) ConvertPrivateKeyToJWK(privateKey string) (string, error)
- func (r *FastRSA) ConvertPrivateKeyToPKCS1(privateKey string) (string, error)
- func (r *FastRSA) ConvertPrivateKeyToPKCS8(privateKey string) (string, error)
- func (r *FastRSA) ConvertPrivateKeyToPublicKey(privateKey string) (string, error)
- func (r *FastRSA) ConvertPublicKeyToJWK(privateKey string) (string, error)
- func (r *FastRSA) ConvertPublicKeyToPKCS1(publicKey string) (string, error)
- func (r *FastRSA) ConvertPublicKeyToPKIX(publicKey string) (string, error)
- func (r *FastRSA) DecryptOAEP(ciphertext, label, hashName, privateKey string) (string, error)
- func (r *FastRSA) DecryptOAEPBytes(ciphertext []byte, label, hashName, privateKey string) ([]byte, error)
- func (r *FastRSA) DecryptPKCS1v15(ciphertext, privateKey string) (string, error)
- func (r *FastRSA) DecryptPKCS1v15Bytes(ciphertext []byte, privateKey string) ([]byte, error)
- func (r *FastRSA) DecryptPrivateKey(privateKeyEncrypted, password string) (string, error)
- func (r *FastRSA) EncryptOAEP(message, label, hashName, publicKey string) (string, error)
- func (r *FastRSA) EncryptOAEPBytes(message []byte, label, hashName, publicKey string) ([]byte, error)
- func (r *FastRSA) EncryptPKCS1v15(message, publicKey string) (string, error)
- func (r *FastRSA) EncryptPKCS1v15Bytes(message []byte, publicKey string) ([]byte, error)
- func (r *FastRSA) EncryptPrivateKey(privateKey, password, cipherName string) (string, error)
- func (r *FastRSA) Generate(nBits int) (*KeyPair, error)
- func (r *FastRSA) Hash(message, name string) (string, error)
- func (r *FastRSA) MetadataPrivateKey(privateKey string) (*PrivateKeyInfo, error)
- func (r *FastRSA) MetadataPublicKey(publicKey string) (*PublicKeyInfo, error)
- func (r *FastRSA) SignPKCS1v15(message, hashName, privateKey string) (string, error)
- func (r *FastRSA) SignPKCS1v15Bytes(message []byte, hashName, privateKey string) ([]byte, error)
- func (r *FastRSA) SignPSS(message, hashName, saltLengthName, privateKey string) (string, error)
- func (r *FastRSA) SignPSSBytes(message []byte, hashName, saltLengthName, privateKey string) ([]byte, error)
- func (r *FastRSA) VerifyPKCS1v15(signature, message, hashName, publicKey string) (bool, error)
- func (r *FastRSA) VerifyPKCS1v15Bytes(signature, message []byte, hashName, publicKey string) (bool, error)
- func (r *FastRSA) VerifyPSS(signature, message, hashName, saltLengthName, publicKey string) (bool, error)
- func (r *FastRSA) VerifyPSSBytes(signature, message []byte, hashName, saltLengthName, publicKey string) (bool, error)
- type HeaderPrivateKeyType
- type HeaderPublicKeyType
- type KeyPair
- type PKCS12KeyPair
- type PrivateKeyFormatType
- type PrivateKeyInfo
- type PublicKeyFormatType
- type PublicKeyInfo
Constants ¶
View Source
const ( HeaderPublicKeyPKCS1 = HeaderPublicKeyType("RSA PUBLIC KEY") HeaderPublicKeyPKIX = HeaderPublicKeyType("PUBLIC KEY") )
View Source
const ( HeaderPrivateKeyPKCS1 = HeaderPrivateKeyType("RSA PRIVATE KEY") HeaderPrivateKeyPKCS8 = HeaderPrivateKeyType("PRIVATE KEY") )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FastRSA ¶
type FastRSA struct { }
func NewFastRSA ¶
func NewFastRSA() *FastRSA
func (*FastRSA) ConvertJWKToPrivateKey ¶ added in v0.9.0
func (*FastRSA) ConvertJWKToPublicKey ¶ added in v0.9.0
func (*FastRSA) ConvertKeyPairToPKCS12 ¶ added in v0.9.0
func (*FastRSA) ConvertPKCS12ToKeyPair ¶ added in v0.9.0
func (r *FastRSA) ConvertPKCS12ToKeyPair(pkcs12, password string) (*PKCS12KeyPair, error)
func (*FastRSA) ConvertPrivateKeyToJWK ¶ added in v0.9.0
func (*FastRSA) ConvertPrivateKeyToPKCS1 ¶ added in v0.9.0
func (*FastRSA) ConvertPrivateKeyToPKCS8 ¶ added in v0.9.0
func (*FastRSA) ConvertPrivateKeyToPublicKey ¶ added in v0.9.1
func (*FastRSA) ConvertPublicKeyToJWK ¶ added in v0.9.0
func (*FastRSA) ConvertPublicKeyToPKCS1 ¶ added in v0.9.0
func (*FastRSA) ConvertPublicKeyToPKIX ¶ added in v0.9.0
func (*FastRSA) DecryptOAEP ¶
func (*FastRSA) DecryptOAEPBytes ¶ added in v0.9.2
func (*FastRSA) DecryptPKCS1v15 ¶
func (*FastRSA) DecryptPKCS1v15Bytes ¶ added in v0.9.2
func (*FastRSA) DecryptPrivateKey ¶ added in v0.9.0
func (*FastRSA) EncryptOAEP ¶
func (*FastRSA) EncryptOAEPBytes ¶ added in v0.9.2
func (*FastRSA) EncryptPKCS1v15 ¶
func (*FastRSA) EncryptPKCS1v15Bytes ¶ added in v0.9.2
func (*FastRSA) EncryptPrivateKey ¶ added in v0.9.0
func (*FastRSA) MetadataPrivateKey ¶ added in v0.9.5
func (r *FastRSA) MetadataPrivateKey(privateKey string) (*PrivateKeyInfo, error)
func (*FastRSA) MetadataPublicKey ¶ added in v0.9.5
func (r *FastRSA) MetadataPublicKey(publicKey string) (*PublicKeyInfo, error)
func (*FastRSA) SignPKCS1v15 ¶
func (*FastRSA) SignPKCS1v15Bytes ¶ added in v0.9.2
func (*FastRSA) SignPSSBytes ¶ added in v0.9.2
func (*FastRSA) VerifyPKCS1v15 ¶
func (*FastRSA) VerifyPKCS1v15Bytes ¶ added in v0.9.2
type HeaderPrivateKeyType ¶ added in v1.1.0
type HeaderPrivateKeyType string
type HeaderPublicKeyType ¶ added in v1.1.0
type HeaderPublicKeyType string
type PKCS12KeyPair ¶ added in v0.9.0
type PrivateKeyFormatType ¶ added in v0.9.0
type PrivateKeyFormatType int
const ( PrivateKeyFormatTypePKCS1 PrivateKeyFormatType = iota PrivateKeyFormatTypePKCS8 )
type PrivateKeyInfo ¶ added in v0.9.5
type PublicKeyFormatType ¶ added in v0.9.0
type PublicKeyFormatType int
const ( PublicKeyFormatTypePKCS1 PublicKeyFormatType = iota PublicKeyFormatTypePKIX )
type PublicKeyInfo ¶ added in v0.9.5
Source Files ¶
- chunk.go
- codec.go
- common.go
- convert_jwk.go
- convert_keypair_pkcs12.go
- convert_pkcs12_keypair.go
- convert_privatekey.go
- convert_publickey.go
- decrypt_oaep.go
- decrypt_pkcsv15.go
- decrypt_privatekey.go
- encrypt_oaep.go
- encrypt_pkcsv15.go
- encrypt_privatekey.go
- generate.go
- hash.go
- line_breaker.go
- metadata.go
- rsa.go
- sign_pkcsv15.go
- sign_pss.go
- verify_pkcsv15.go
- verify_pss.go
Click to show internal directories.
Click to hide internal directories.