Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 32 for hex (0.15 sec)

  1. docs/debugging/inspect/decrypt-v1.go

    package main
    
    import (
    	"encoding/binary"
    	"encoding/hex"
    	"fmt"
    	"hash/crc32"
    	"io"
    
    	"github.com/secure-io/sio-go"
    )
    
    func extractInspectV1(keyHex string, r io.Reader, w io.Writer, okMsg string) error {
    	id, err := hex.DecodeString(keyHex[:8])
    	if err != nil {
    		return err
    	}
    	key, err := hex.DecodeString(keyHex[8:])
    	if err != nil {
    		return err
    	}
    	// Verify that CRC is ok.
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Thu Apr 11 21:22:47 GMT 2024
    - 1.6K bytes
    - Viewed (0)
  2. cmd/signature-v4.go

    }
    
    // compareSignatureV4 returns true if and only if both signatures
    // are equal. The signatures are expected to be HEX encoded strings
    // according to the AWS S3 signature V4 spec.
    func compareSignatureV4(sig1, sig2 string) bool {
    	// The CTC using []byte(str) works because the hex encoding
    	// is unique for a sequence of bytes. See also compareSignatureV2.
    	return subtle.ConstantTimeCompare([]byte(sig1), []byte(sig2)) == 1
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Fri Apr 19 16:45:54 GMT 2024
    - 12.3K bytes
    - Viewed (0)
  3. cmd/xl-storage-format-v1.go

    		Hash:      hex.EncodeToString(c.Hash),
    	}
    	return json.Marshal(info)
    }
    
    // UnmarshalJSON - custom checksum info unmarshaller
    func (c *ChecksumInfo) UnmarshalJSON(data []byte) error {
    	var info checksumInfoJSON
    	json := jsoniter.ConfigCompatibleWithStandardLibrary
    	if err := json.Unmarshal(data, &info); err != nil {
    		return err
    	}
    	sum, err := hex.DecodeString(info.Hash)
    	if err != nil {
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 8.2K bytes
    - Viewed (0)
  4. cmd/encryption-v1.go

    }
    
    // DecryptETag decrypts the ETag that is part of given object
    // with the given object encryption key.
    //
    // However, DecryptETag does not try to decrypt the ETag if
    // it consists of a 128 bit hex value (32 hex chars) and exactly
    // one '-' followed by a 32-bit number.
    // This special case addresses randomly-generated ETags generated
    // by the MinIO server when running in non-compat mode. These
    // random ETags are not encrypt.
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 36.5K bytes
    - Viewed (0)
  5. samples/guide/src/main/java/okhttp3/recipes/WebSocketEcho.java

        System.out.println("MESSAGE: " + text);
      }
    
      @Override public void onMessage(WebSocket webSocket, ByteString bytes) {
        System.out.println("MESSAGE: " + bytes.hex());
      }
    
      @Override public void onClosing(WebSocket webSocket, int code, String reason) {
        webSocket.close(1000, null);
        System.out.println("CLOSE: " + code + " " + reason);
      }
    
    Java
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Thu Apr 04 11:40:21 GMT 2024
    - 1.6K bytes
    - Viewed (0)
  6. src/cmd/asm/internal/asm/testdata/ppc64.s

    	MOVW $1234567, R5               // 6405001260a5d687 or 0600001238a0d687
    	// Hex constant 0x80000001
    	MOVW $2147483649, R5            // 6405800060a50001 or 0600800038a00001
    	MOVD $2147483649, R5            // 6405800060a50001 or 0600800038a00001
    	// Hex constant 0xFFFFFFFF80000001
    	MOVD $-2147483647, R5           // 3ca0800060a50001 or 0603800038a00001
    	// Hex constant 0xFFFFFFFE00000002 (load of constant on < power10, pli on >= power10
    Others
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Mon Apr 01 18:50:29 GMT 2024
    - 48.8K bytes
    - Viewed (0)
  7. cmd/auth-handler.go

    		if sha256Sum, ok := r.Form[xhttp.AmzContentSha256]; ok && len(sha256Sum) > 0 {
    			contentSHA256, err = hex.DecodeString(sha256Sum[0])
    			if err != nil {
    				return ErrContentSHA256Mismatch
    			}
    		}
    	} else if _, ok := r.Header[xhttp.AmzContentSha256]; !skipSHA256 && ok {
    		contentSHA256, err = hex.DecodeString(r.Header.Get(xhttp.AmzContentSha256))
    		if err != nil || len(contentSHA256) == 0 {
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 26K bytes
    - Viewed (0)
  8. cmd/format-erasure_test.go

    //
    // You should have received a copy of the GNU Affero General Public License
    // along with this program.  If not, see <http://www.gnu.org/licenses/>.
    
    package cmd
    
    import (
    	"crypto/sha256"
    	"encoding/hex"
    	"encoding/json"
    	"os"
    	"reflect"
    	"testing"
    )
    
    // tests fixFormatErasureV3 - fix format.json on all disks.
    func TestFixFormatV3(t *testing.T) {
    	erasureDirs, err := getRandomDisks(8)
    	if err != nil {
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Mon Apr 15 08:25:46 GMT 2024
    - 12.9K bytes
    - Viewed (0)
  9. docs/debugging/xl-meta/main.go

    		Signature string
    		Type      uint8
    		Flags     uint8
    		EcM, EcN  uint8 // Note that these will be 0/0 for non-v2 objects and older xl.meta
    	}{
    		VersionID: hex.EncodeToString(z.VersionID[:]),
    		ModTime:   time.Unix(0, z.ModTime),
    		Signature: hex.EncodeToString(z.Signature[:]),
    		Type:      z.Type,
    		Flags:     z.Flags,
    		EcM:       z.EcM,
    		EcN:       z.EcN,
    	}
    	return json.Marshal(tmp)
    }
    
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Wed Apr 24 17:56:22 GMT 2024
    - 20.2K bytes
    - Viewed (1)
  10. cmd/erasure-metadata.go

    //
    // You should have received a copy of the GNU Affero General Public License
    // along with this program.  If not, see <http://www.gnu.org/licenses/>.
    
    package cmd
    
    import (
    	"context"
    	"encoding/hex"
    	"fmt"
    	"sort"
    	"strings"
    	"time"
    
    	"github.com/minio/minio/internal/amztime"
    	"github.com/minio/minio/internal/bucket/replication"
    	"github.com/minio/minio/internal/crypto"
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Sun Apr 28 17:53:50 GMT 2024
    - 19.2K bytes
    - Viewed (1)
Back to top