Documentation ¶
Index ¶
Constants ¶
View Source
const ( // ECDSA with SHA-256 signature hash ES256 = KeyType(-7) // ECDSA with SHA-384 signature hash ES384 = KeyType(-35) // ECDSA with SHA-512 signature hash ES512 = KeyType(-36) // RSASSA-PSS with SHA-256 signature hash RS256 = KeyType(-257) // RSASSA-PSS with SHA-384 signature hash RS384 = KeyType(-258) // RSASSA-PSS with SHA-512 signature hash RS512 = KeyType(-259) // RSASSA-PKCS1 with SHA-256 signature hash PS256 = KeyType(-37) // RSASSA-PKCS1 with SHA-384 signature hash PS384 = KeyType(-38) // RSASSA-PKCS1 with SHA-512 signature hash PS512 = KeyType(-39) )
Variables ¶
View Source
var AllKeyTypes = []KeyType{ ES256, ES384, ES512, RS256, RS256, RS256, PS256, PS384, PS512, }
AllKeyTypes is a list of all supported key types.
Functions ¶
func Decode ¶
Decode parses a DER-encoded public key, specifically for storage of registered credentials.
Types ¶
Click to show internal directories.
Click to hide internal directories.