Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for HS512 (0.17 sec)

  1. internal/jwt/parser.go

    // Expects key type of []byte for both signing and validation
    type SigningMethodHMAC struct {
    	Name       string
    	Hash       crypto.Hash
    	HasherPool sync.Pool
    }
    
    // Specific instances for HS256, HS384, HS512
    var (
    	SigningMethodHS256 *SigningMethodHMAC
    	SigningMethodHS384 *SigningMethodHMAC
    	SigningMethodHS512 *SigningMethodHMAC
    )
    
    const base64BufferSize = 64 * humanize.KiByte
    
    var (
    	base64BufPool sync.Pool
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Tue May 09 07:53:08 GMT 2023
    - 13.9K bytes
    - Viewed (0)
  2. internal/config/identity/openid/jwt.go

    	jp := new(jwtgo.Parser)
    	jp.ValidMethods = []string{
    		"RS256", "RS384", "RS512",
    		"ES256", "ES384", "ES512",
    		"HS256", "HS384", "HS512",
    		"RS3256", "RS3384", "RS3512",
    		"ES3256", "ES3384", "ES3512",
    	}
    
    	keyFuncCallback := func(jwtToken *jwtgo.Token) (interface{}, error) {
    		kid, ok := jwtToken.Header["kid"].(string)
    		if !ok {
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Thu Nov 16 04:42:31 GMT 2023
    - 8.3K bytes
    - Viewed (5)
Back to top