package boring
Import Path
crypto/internal/boring (on go.dev )
Dependency Relation
imports 4 packages , and imported by 11 packages
Package-Level Type Names (total 8, in which 7 are exported)
/* sort exporteds by: alphabet | popularity */
type BigInt ([])
A BigInt is the raw words from a BigInt.
This definition allows us to avoid importing math/big.
Conversion between BigInt and *big.Int is in crypto/internal/boring/bbig.
As Outputs Of (at least 3, all are exported )
func GenerateKeyECDSA (curve string ) (X, Y, D BigInt , err error )
func GenerateKeyRSA (bits int ) (N, E, D, P, Q, Dp, Dq, Qinv BigInt , err error )
func crypto/internal/boring/bbig.Enc (b *big .Int ) BigInt
As Inputs Of (at least 5, all are exported )
func NewPrivateKeyECDSA (curve string , X, Y, D BigInt ) (*PrivateKeyECDSA , error )
func NewPrivateKeyRSA (N, E, D, P, Q, Dp, Dq, Qinv BigInt ) (*PrivateKeyRSA , error )
func NewPublicKeyECDSA (curve string , X, Y BigInt ) (*PublicKeyECDSA , error )
func NewPublicKeyRSA (N, E BigInt ) (*PublicKeyRSA , error )
func crypto/internal/boring/bbig.Dec (b BigInt ) *big .Int
type PrivateKeyECDH (struct)
Methods (only one, which is exported )
(*PrivateKeyECDH) PublicKey () (*PublicKeyECDH , error )
As Outputs Of (at least 2, both are exported )
func GenerateKeyECDH (string ) (*PrivateKeyECDH , []byte , error )
func NewPrivateKeyECDH (string , []byte ) (*PrivateKeyECDH , error )
As Inputs Of (at least 2, in which 1 is exported )
func ECDH (*PrivateKeyECDH , *PublicKeyECDH ) ([]byte , error )
/* at least one unexported ... */ /* at least one unexported: */
func crypto/ecdh.newBoringPrivateKey (c ecdh .Curve , bk *PrivateKeyECDH , privateKey []byte ) (*ecdh .PrivateKey , error )
type PrivateKeyRSA (struct)
As Outputs Of (at least 2, in which 1 is exported )
func NewPrivateKeyRSA (N, E, D, P, Q, Dp, Dq, Qinv BigInt ) (*PrivateKeyRSA , error )
/* at least one unexported ... */ /* at least one unexported: */
func crypto/rsa.boringPrivateKey (*rsa .PrivateKey ) (*PrivateKeyRSA , error )
As Inputs Of (at least 5, all are exported )
func DecryptRSANoPadding (priv *PrivateKeyRSA , ciphertext []byte ) ([]byte , error )
func DecryptRSAOAEP (h, mgfHash hash .Hash , priv *PrivateKeyRSA , ciphertext, label []byte ) ([]byte , error )
func DecryptRSAPKCS1 (priv *PrivateKeyRSA , ciphertext []byte ) ([]byte , error )
func SignRSAPKCS1v15 (priv *PrivateKeyRSA , h crypto .Hash , hashed []byte ) ([]byte , error )
func SignRSAPSS (priv *PrivateKeyRSA , h crypto .Hash , hashed []byte , saltLen int ) ([]byte , error )
type PublicKeyRSA (struct)
As Outputs Of (at least 2, in which 1 is exported )
func NewPublicKeyRSA (N, E BigInt ) (*PublicKeyRSA , error )
/* at least one unexported ... */ /* at least one unexported: */
func crypto/rsa.boringPublicKey (*rsa .PublicKey ) (*PublicKeyRSA , error )
As Inputs Of (at least 5, all are exported )
func EncryptRSANoPadding (pub *PublicKeyRSA , msg []byte ) ([]byte , error )
func EncryptRSAOAEP (h, mgfHash hash .Hash , pub *PublicKeyRSA , msg, label []byte ) ([]byte , error )
func EncryptRSAPKCS1 (pub *PublicKeyRSA , msg []byte ) ([]byte , error )
func VerifyRSAPKCS1v15 (pub *PublicKeyRSA , h crypto .Hash , hashed, sig []byte ) error
func VerifyRSAPSS (pub *PublicKeyRSA , h crypto .Hash , hashed, sig []byte , saltLen int ) error
Package-Level Functions (total 37, all are exported)
The pages are generated with Golds v0.6.7 . (GOOS=linux GOARCH=amd64)
Golds is a Go 101 project developed by Tapir Liu .
PR and bug reports are welcome and can be submitted to the issue list .
Please follow @Go100and1 (reachable from the left QR code) to get the latest news of Golds .