Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for DecodedLen (0.07 sec)

  1. docs/debugging/inspect/utils.go

    	// Try PEM
    	if block, _ := pem.Decode(priv); block != nil {
    		return x509.ParsePKCS1PrivateKey(block.Bytes)
    	}
    	// Try base 64
    	dst := make([]byte, base64.StdEncoding.DecodedLen(len(priv)))
    	if n, err := base64.StdEncoding.Decode(dst, priv); err == nil {
    		return x509.ParsePKCS1PrivateKey(dst[:n])
    	}
    	// Try Raw, return error
    	return x509.ParsePKCS1PrivateKey(priv)
    }
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Wed Nov 02 20:36:38 UTC 2022
    - 1.4K bytes
    - Viewed (0)
  2. internal/auth/credentials.go

    	}
    	if length <= 0 {
    		length = secretKeyMaxLen
    	}
    	if length < secretKeyMinLen {
    		return "", errors.New("auth: secret key length is too short")
    	}
    
    	key := make([]byte, base64.RawStdEncoding.DecodedLen(length))
    	if _, err := io.ReadFull(random, key); err != nil {
    		return "", err
    	}
    
    	s := base64.RawStdEncoding.EncodeToString(key)
    	return strings.ReplaceAll(s, "/", "+"), nil
    }
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue May 28 17:14:16 UTC 2024
    - 12K bytes
    - Viewed (0)
  3. api/go1.txt

    pkg encoding/base32, method (*Encoding) Decode([]uint8, []uint8) (int, error)
    pkg encoding/base32, method (*Encoding) DecodeString(string) ([]uint8, error)
    pkg encoding/base32, method (*Encoding) DecodedLen(int) int
    pkg encoding/base32, method (*Encoding) Encode([]uint8, []uint8)
    pkg encoding/base32, method (*Encoding) EncodeToString([]uint8) string
    pkg encoding/base32, method (*Encoding) EncodedLen(int) int
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Wed Aug 14 18:58:28 UTC 2013
    - 1.7M bytes
    - Viewed (0)
Back to top