Documentation ¶
Index ¶
- Constants
- func NewCommonKeyCrypto(commonKey []byte) (*commonkeycrypto.CommonKeyCrypto, error)
- func NewPublicKeyCrypto(bits int, encryptType publickeycrypto.EncryptKeyType) (*publickeycrypto.PublicKeyCrypto, error)
- func NewPublicKeyCryptoWithJWKPublicKey(publickey []byte, encryptType publickeycrypto.EncryptKeyType) (*publickeycrypto.PublicKeyCrypto, error)
- func NewPublicKeyCryptoWithPEMPublicKey(publickey []byte, encryptType publickeycrypto.EncryptKeyType) (*publickeycrypto.PublicKeyCrypto, error)
Constants ¶
View Source
const ( // EncryptTypeRSA is RSA KeyType EncryptTypeRSA publickeycrypto.EncryptKeyType = publickeycrypto.EncryptTypeRSA // EncryptTypeECDSA is ECDSASA KeyType EncryptTypeECDSA publickeycrypto.EncryptKeyType = publickeycrypto.EncryptTypeECDSA )
Variables ¶
This section is empty.
Functions ¶
func NewCommonKeyCrypto ¶
func NewCommonKeyCrypto(commonKey []byte) (*commonkeycrypto.CommonKeyCrypto, error)
NewCommonKeyCrypto create CommonKeyCrypto
func NewPublicKeyCrypto ¶
func NewPublicKeyCrypto(bits int, encryptType publickeycrypto.EncryptKeyType) (*publickeycrypto.PublicKeyCrypto, error)
NewPublicKeyCrypto create PublicKeyCrypto
func NewPublicKeyCryptoWithJWKPublicKey ¶
func NewPublicKeyCryptoWithJWKPublicKey(publickey []byte, encryptType publickeycrypto.EncryptKeyType) (*publickeycrypto.PublicKeyCrypto, error)
NewPublicKeyCryptoWithJWKPublicKey create PublicKeyCrypto with JWK PublicKey
func NewPublicKeyCryptoWithPEMPublicKey ¶
func NewPublicKeyCryptoWithPEMPublicKey(publickey []byte, encryptType publickeycrypto.EncryptKeyType) (*publickeycrypto.PublicKeyCrypto, error)
NewPublicKeyCryptoWithPEMPublicKey create PublicKeyCrypto with PEM PublicKey
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.