Documentation ¶
Index ¶
- func MarshalTokenKey(key *rsa.PublicKey, legacyFormat bool) ([]byte, error)
- func MarshalTokenKeyPSSOID(key *rsa.PublicKey) ([]byte, error)
- func MarshalTokenKeyRSAEncryptionOID(key *rsa.PublicKey) ([]byte, error)
- func MustHex(d []byte) string
- func MustHexList(d [][]byte) []string
- func MustMarshalPrivateKey(key *rsa.PrivateKey) []byte
- func MustMarshalPrivateOPRFKey(key *oprf.PrivateKey) []byte
- func MustMarshalPublicKey(key *rsa.PublicKey) []byte
- func MustMarshalPublicOPRFKey(key *oprf.PublicKey) []byte
- func MustUnhex(t *testing.T, h string) []byte
- func MustUnhexList(t *testing.T, h []string) [][]byte
- func MustUnmarshalBatchedPrivateOPRFKey(data []byte) *oprf.PrivateKey
- func MustUnmarshalBatchedPublicOPRFKey(data []byte) *oprf.PublicKey
- func MustUnmarshalPrivateKey(data []byte) *rsa.PrivateKey
- func MustUnmarshalPrivateOPRFKey(data []byte) *oprf.PrivateKey
- func MustUnmarshalPublicKey(data []byte) *rsa.PublicKey
- func MustUnmarshalPublicOPRFKey(data []byte) *oprf.PublicKey
- func UnmarshalTokenKey(data []byte) (*rsa.PublicKey, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MustHexList ¶
func MustMarshalPrivateKey ¶
func MustMarshalPrivateKey(key *rsa.PrivateKey) []byte
func MustMarshalPrivateOPRFKey ¶
func MustMarshalPrivateOPRFKey(key *oprf.PrivateKey) []byte
func MustMarshalPublicKey ¶
func MustUnmarshalBatchedPrivateOPRFKey ¶
func MustUnmarshalBatchedPrivateOPRFKey(data []byte) *oprf.PrivateKey
func MustUnmarshalPrivateKey ¶
func MustUnmarshalPrivateKey(data []byte) *rsa.PrivateKey
func MustUnmarshalPrivateOPRFKey ¶
func MustUnmarshalPrivateOPRFKey(data []byte) *oprf.PrivateKey
func MustUnmarshalPublicKey ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.