Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for RawURLEncoding (0.56 sec)

  1. internal/config/identity/openid/jwks.go

    	case "RSA":
    		if key.N == "" || key.E == "" {
    			return nil, errMalformedJWKRSAKey
    		}
    
    		// decode exponent
    		ebuf, err := base64.RawURLEncoding.DecodeString(key.E)
    		if err != nil {
    			return nil, errMalformedJWKRSAKey
    		}
    
    		nbuf, err := base64.RawURLEncoding.DecodeString(key.N)
    		if err != nil {
    			return nil, errMalformedJWKRSAKey
    		}
    
    		var n, e big.Int
    		n.SetBytes(nbuf)
    		e.SetBytes(ebuf)
    
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Tue Apr 02 23:02:35 UTC 2024
    - 3.1K bytes
    - Viewed (0)
  2. cmd/object-api-input-checks.go

    	}
    	if uploadIDMarker != "" {
    		if HasSuffix(keyMarker, SlashSeparator) {
    			return InvalidUploadIDKeyCombination{
    				UploadIDMarker: uploadIDMarker,
    				KeyMarker:      keyMarker,
    			}
    		}
    		_, err := base64.RawURLEncoding.DecodeString(uploadIDMarker)
    		if err != nil {
    			return MalformedUploadID{
    				UploadID: uploadIDMarker,
    			}
    		}
    	}
    	return nil
    }
    
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Thu Apr 04 12:04:40 UTC 2024
    - 5.7K bytes
    - Viewed (0)
  3. cmd/erasure-utils.go

    	}
    
    	// Success.
    	return totalWritten, nil
    }
    
    // returns deploymentID from uploadID
    func getDeplIDFromUpload(uploadID string) (string, error) {
    	uploadBytes, err := base64.RawURLEncoding.DecodeString(uploadID)
    	if err != nil {
    		return "", fmt.Errorf("error parsing uploadID %s (%w)", uploadID, err)
    	}
    	slc := strings.SplitN(string(uploadBytes), ".", 2)
    	if len(slc) != 2 {
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Wed Jan 31 02:11:45 UTC 2024
    - 3.1K bytes
    - Viewed (0)
Back to top