Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 12 for Alg (0.01 sec)

  1. internal/jwt/parser.go

    	if err != nil {
    		return nil, &jwtgo.ValidationError{Inner: err, Errors: jwtgo.ValidationErrorMalformed}
    	}
    	headerDec := buf[:n]
    	buf = buf[n:]
    
    	alg, _, _, err := jsonparser.Get(headerDec, "alg")
    	if err != nil {
    		return nil, &jwtgo.ValidationError{Inner: err, Errors: jwtgo.ValidationErrorMalformed}
    	}
    
    	n, err = base64DecodeBytes(token[i+1:j], buf)
    	if err != nil {
    Registered: Sun Dec 28 19:28:13 UTC 2025
    - Last Modified: Sun Sep 28 20:59:21 UTC 2025
    - 14.1K bytes
    - Viewed (0)
  2. internal/config/identity/openid/ecdsa-sha3_contrib.go

    	jwt.RegisterSigningMethod(SigningMethodES3256.Alg(), func() jwt.SigningMethod {
    		return SigningMethodES3256
    	})
    
    	// ES384
    	SigningMethodES3384 = &jwt.SigningMethodECDSA{Name: "ES3384", Hash: crypto.SHA3_384, KeySize: 48, CurveBits: 384}
    	jwt.RegisterSigningMethod(SigningMethodES3384.Alg(), func() jwt.SigningMethod {
    		return SigningMethodES3384
    	})
    
    	// ES512
    Registered: Sun Dec 28 19:28:13 UTC 2025
    - Last Modified: Fri May 16 14:27:42 UTC 2025
    - 1.7K bytes
    - Viewed (0)
  3. internal/config/identity/openid/rsa-sha3_contrib.go

    	jwt.RegisterSigningMethod(SigningMethodRS3256.Alg(), func() jwt.SigningMethod {
    		return SigningMethodRS3256
    	})
    
    	// RS3384
    	SigningMethodRS3384 = &jwt.SigningMethodRSA{Name: "RS3384", Hash: crypto.SHA3_384}
    	jwt.RegisterSigningMethod(SigningMethodRS3384.Alg(), func() jwt.SigningMethod {
    		return SigningMethodRS3384
    	})
    
    	// RS3512
    Registered: Sun Dec 28 19:28:13 UTC 2025
    - Last Modified: Fri May 16 14:27:42 UTC 2025
    - 1.6K bytes
    - Viewed (0)
  4. internal/bucket/encryption/bucket-sse-config.go

    type Algorithm string
    
    // UnmarshalXML - Unmarshals XML tag to valid SSE algorithm
    func (alg *Algorithm) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error {
    	var s string
    	if err := d.DecodeElement(&s, &start); err != nil {
    		return err
    	}
    
    	switch s {
    	case string(AES256):
    		*alg = AES256
    	case string(AWSKms):
    		*alg = AWSKms
    	default:
    		return errors.New("Unknown SSE algorithm")
    	}
    
    	return nil
    }
    Registered: Sun Dec 28 19:28:13 UTC 2025
    - Last Modified: Tue Oct 25 00:44:15 UTC 2022
    - 4.9K bytes
    - Viewed (0)
  5. internal/config/identity/openid/jwks.go

    )
    
    // JWKS - https://tools.ietf.org/html/rfc7517
    type JWKS struct {
    	Keys []*JWKS `json:"keys,omitempty"`
    
    	Kty string `json:"kty"`
    	Use string `json:"use,omitempty"`
    	Kid string `json:"kid,omitempty"`
    	Alg string `json:"alg,omitempty"`
    
    	Crv string `json:"crv,omitempty"`
    	X   string `json:"x,omitempty"`
    	Y   string `json:"y,omitempty"`
    	D   string `json:"d,omitempty"`
    	N   string `json:"n,omitempty"`
    Registered: Sun Dec 28 19:28:13 UTC 2025
    - Last Modified: Tue Apr 02 23:02:35 UTC 2024
    - 3.1K bytes
    - Viewed (0)
  6. internal/hash/checksum.go

    func NewChecksumWithType(alg ChecksumType, value string) *Checksum {
    	if !alg.IsSet() {
    		return nil
    	}
    	wantParts := 0
    	if strings.ContainsRune(value, '-') {
    		valSplit := strings.Split(value, "-")
    		if len(valSplit) != 2 {
    			return nil
    		}
    		value = valSplit[0]
    		nParts, err := strconv.Atoi(valSplit[1])
    		if err != nil {
    			return nil
    		}
    		alg |= ChecksumMultipart
    		wantParts = nParts
    Registered: Sun Dec 28 19:28:13 UTC 2025
    - Last Modified: Fri Aug 22 14:15:21 UTC 2025
    - 18.3K bytes
    - Viewed (0)
  7. internal/config/identity/openid/jwt_test.go

    		Claims: jwtgo.StandardClaims{
    			ExpiresAt: 253428928061,
    			Audience:  "76b95ae5-33ef-4283-97b7-d2a85dc2d8f4",
    		},
    		Header: map[string]any{
    			"typ": "JWT",
    			"alg": jwtgo.SigningMethodHS256.Alg(),
    			"kid": "76b95ae5-33ef-4283-97b7-d2a85dc2d8f4",
    		},
    	}
    
    	token, err := jwt.SignedString([]byte("WNGvKVyyNmXq0TraSvjaDN9CtpFgx35IXtGEffMCPR0"))
    	if err != nil {
    		t.Fatal(err)
    	}
    Registered: Sun Dec 28 19:28:13 UTC 2025
    - Last Modified: Fri Aug 29 02:39:48 UTC 2025
    - 8.2K bytes
    - Viewed (0)
  8. internal/hash/checksum_test.go

    			if (tt.checksum.Is(ChecksumSHA1) || tt.checksum.Is(ChecksumSHA256)) && tt.fullobj {
    				// Validate that NewChecksumType correctly marks these as invalid
    				alg := tt.checksum.String()
    				typ := NewChecksumType(alg, xhttp.AmzChecksumTypeFullObject)
    				if !typ.Is(ChecksumInvalid) {
    					t.Fatalf("Expected ChecksumInvalid for %s with full object, got %s", tt.name, typ.StringFull())
    				}
    				return
    			}
    Registered: Sun Dec 28 19:28:13 UTC 2025
    - Last Modified: Fri Aug 22 14:15:21 UTC 2025
    - 7.1K bytes
    - Viewed (0)
  9. cmd/bitrot.go

    // The zero value of a bitrot algorithm is never supported.
    func BitrotAlgorithmFromString(s string) (a BitrotAlgorithm) {
    	for alg, name := range bitrotAlgorithms {
    		if name == s {
    			return alg
    		}
    	}
    	return a
    }
    
    func newBitrotWriter(disk StorageAPI, origvolume, volume, filePath string, length int64, algo BitrotAlgorithm, shardSize int64) io.Writer {
    Registered: Sun Dec 28 19:28:13 UTC 2025
    - Last Modified: Sun Sep 28 20:59:21 UTC 2025
    - 7.7K bytes
    - Viewed (0)
  10. cmd/streaming-signature-v4.go

    // Does not update anything in cr.
    func (cr *s3ChunkedReader) getChunkSignature() string {
    	hashedChunk := hex.EncodeToString(cr.chunkSHA256Writer.Sum(nil))
    
    	// Calculate string to sign.
    	alg := signV4ChunkedAlgorithm + "\n"
    	stringToSign := alg +
    		cr.seedDate.Format(iso8601Format) + "\n" +
    		getScope(cr.seedDate, cr.region) + "\n" +
    		cr.seedSignature + "\n" +
    		emptySHA256 + "\n" +
    		hashedChunk
    
    	// Get hmac signing key.
    Registered: Sun Dec 28 19:28:13 UTC 2025
    - Last Modified: Sun Sep 28 20:59:21 UTC 2025
    - 18.2K bytes
    - Viewed (0)
Back to top