Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 7 of 7 for hex (0.15 sec)

  1. cmd/test-utils_test.go

    		stringToSign += getSHA256Hash(buffer[:n])
    
    		date := sumHMAC([]byte("AWS4"+secretKey), []byte(currTime.Format(yyyymmdd)))
    		region := sumHMAC(date, []byte(regionStr))
    		service := sumHMAC(region, []byte(serviceS3))
    		signingKey := sumHMAC(service, []byte("aws4_request"))
    
    		signature = hex.EncodeToString(sumHMAC(signingKey, []byte(stringToSign)))
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri May 03 17:26:51 GMT 2024
    - 76.2K bytes
    - Viewed (0)
  2. cmd/object-api-listobjects_test.go

    // along with this program.  If not, see <http://www.gnu.org/licenses/>.
    
    package cmd
    
    import (
    	"bytes"
    	"context"
    	"crypto/md5"
    	"encoding/hex"
    	"fmt"
    	"strconv"
    	"strings"
    	"testing"
    )
    
    func TestListObjectsVersionedFolders(t *testing.T) {
    	ExecObjectLayerTest(t, testListObjectsVersionedFolders)
    }
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed May 01 11:07:40 GMT 2024
    - 73.1K bytes
    - Viewed (0)
  3. cmd/peer-rest-server.go

    // along with this program.  If not, see <http://www.gnu.org/licenses/>.
    
    package cmd
    
    import (
    	"bytes"
    	"context"
    	"encoding/gob"
    	"encoding/hex"
    	"encoding/json"
    	"errors"
    	"fmt"
    	"io"
    	"net/http"
    	"net/url"
    	"strconv"
    	"strings"
    	"sync"
    	"sync/atomic"
    	"time"
    
    	"github.com/dustin/go-humanize"
    	"github.com/klauspost/compress/zstd"
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 51.8K bytes
    - Viewed (0)
  4. src/archive/zip/reader_test.go

    //			log.Fatal(err)
    //		}
    //		return buf.Bytes()
    //	}
    //
    // The 4 GB of zeros compresses to 4 MB, which compresses to 20 kB,
    // which compresses to 1252 bytes (in the hex dump below).
    //
    // It's here in hex for the same reason as rZipBytes above: to avoid
    // problems with on-disk virus scanners or other zip processors.
    func biggestZipBytes() []byte {
    	s := `
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Wed Mar 27 18:23:49 GMT 2024
    - 55.3K bytes
    - Viewed (0)
  5. cmd/bucket-handlers.go

    		if err != nil {
    			writeErrorResponse(ctx, w, toAPIError(ctx, err), r.URL)
    			return
    		}
    
    		// Set the correct hex md5sum for the fan-out stream.
    		fanOutOpts.MD5Hex = hex.EncodeToString(md5w.Sum(nil))
    
    		concurrentSize := 100
    		if runtime.GOMAXPROCS(0) < concurrentSize {
    			concurrentSize = runtime.GOMAXPROCS(0)
    		}
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 25 16:27:27 GMT 2024
    - 61.6K bytes
    - Viewed (0)
  6. cmd/xl-storage-format-v2.go

    }
    
    func (x xlMetaV2VersionHeader) String() string {
    	return fmt.Sprintf("Type: %s, VersionID: %s, Signature: %s, ModTime: %s, Flags: %s, N: %d, M: %d",
    		x.Type.String(),
    		hex.EncodeToString(x.VersionID[:]),
    		hex.EncodeToString(x.Signature[:]),
    		time.Unix(0, x.ModTime),
    		x.Flags.String(),
    		x.EcN, x.EcM,
    	)
    }
    
    // matchesNotStrict returns whether x and o have both have non-zero version,
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Tue Apr 23 05:07:37 GMT 2024
    - 63.6K bytes
    - Viewed (1)
  7. src/cmd/cgo/gcc.go

    		if n.Define != "" {
    			if i, err := strconv.ParseInt(n.Define, 0, 64); err == nil {
    				n.Kind = "iconst"
    				// Turn decimal into hex, just for consistency
    				// with enum-derived constants. Otherwise
    				// in the cgo -godefs output half the constants
    				// are in hex and half are in whatever the #define used.
    				n.Const = fmt.Sprintf("%#x", i)
    			} else if n.Define[0] == '\'' {
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Thu Nov 02 16:43:23 GMT 2023
    - 97K bytes
    - Viewed (0)
Back to top