Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for if (0.12 sec)

  1. internal/config/api/api.go

    	maxVerStr := env.Get(EnvAPIObjectMaxVersions, "")
    	if maxVerStr == "" {
    		maxVerStr = env.Get(EnvAPIObjectMaxVersionsLegacy, kvs.Get(apiObjectMaxVersions))
    	}
    	if maxVerStr != "" {
    		maxVersions, err := strconv.ParseInt(maxVerStr, 10, 64)
    		if err != nil {
    			return cfg, err
    		}
    		if maxVersions <= 0 {
    			return cfg, fmt.Errorf("invalid object max versions value: %v", maxVersions)
    		}
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Mar 28 01:08:07 GMT 2024
    - 11.1K bytes
    - Viewed (1)
  2. internal/fips/api.go

    // like AES or SHA-256, are implemented using a FIPS 140
    // certified module.
    //
    // If FIPS-140 is enabled no non-NIST/FIPS approved
    // primitives must be used.
    const Enabled = enabled
    
    // DARECiphers returns a list of supported cipher suites
    // for the DARE object encryption.
    func DARECiphers() []byte {
    	if Enabled {
    		return []byte{sio.AES_256_GCM}
    	}
    	return []byte{sio.AES_256_GCM, sio.CHACHA20_POLY1305}
    }
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri Dec 30 19:37:07 GMT 2022
    - 5.1K bytes
    - Viewed (0)
Back to top