Documentation
¶
Index ¶
Constants ¶
View Source
const ( // ProductionNotarizerPublicKey used to verify session JWT signatures with the custom double SHA-256 scheme ProductionNotarizerPublicKey = "" /* 130-byte string literal not displayed */ // ProductionOTPVerificationPublicKey used to verify OTP verification tokens with standard ES256 JWT ProductionOTPVerificationPublicKey = "037e1d0aecd22e33bf831bcb905d31971013b83d2b3ebb718fba4e58fa5a93019d" // ProductionTLSFetcherSigningPublicKey is the production TLS Fetcher enclave quorum signing key. // It is used to verify the encryptionTargetBundle returned by INIT_OTP before HPKE-encrypting // the OTP attempt to the enclave ProductionTLSFetcherSigningPublicKey = "" /* 130-byte string literal not displayed */ )
Production public keys used for signature verification
Variables ¶
This section is empty.
Functions ¶
func VerifyOtpVerificationToken ¶
func VerifyOtpVerificationToken(tokenString, dangerouslyOverridePublicKey string, parserOpts ...jwt.ParserOption) error
VerifyOtpVerificationToken verifies the signature of an OTP verification token JWT using the production OTP verification public key.
func VerifySessionJwtSignature ¶
func VerifySessionJwtSignature(jwtString string, dangerouslyOverrideNotarizerPublicKey ...string) error
VerifySessionJwtSignature verifies the signature of a 0xkey session JWT using standard ES256 semantics with the production notarizer public key.
Session JWTs use the standard ES256 signing scheme:
- SHA-256 hash over header.payload
- ECDSA signature with P-256 curve
- IEEE P1363 signature format (raw R || S concatenation, 64 bytes)
- Uncompressed public key (65 bytes, starts with 0x04)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.