Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 8 of 8 for Vector3 (0.09 sec)

  1. src/crypto/internal/hpke/hpke_test.go

    	vectorsJSON, err := os.ReadFile("testdata/rfc9180-vectors.json")
    	if err != nil {
    		t.Fatal(err)
    	}
    
    	var vectors []struct {
    		Name        string
    		Setup       string
    		Encryptions string
    	}
    	if err := json.Unmarshal(vectorsJSON, &vectors); err != nil {
    		t.Fatal(err)
    	}
    
    	for _, vector := range vectors {
    		t.Run(vector.Name, func(t *testing.T) {
    			setup := parseVectorSetup(vector.Setup)
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 22:33:33 UTC 2024
    - 4.7K bytes
    - Viewed (0)
  2. src/crypto/rsa/pss_test.go

    	}
    
    	if err = EMSAPSSVerify(hashed, encoded, 1023, len(salt), sha1.New()); err != nil {
    		t.Errorf("Bad verification: %s", err)
    	}
    }
    
    // TestPSSGolden tests all the test vectors in pss-vect.txt from
    // ftp://ftp.rsasecurity.com/pub/pkcs/pkcs-1/pkcs-1v2-1-vec.zip
    func TestPSSGolden(t *testing.T) {
    	inFile, err := os.Open("testdata/pss-vect.txt.bz2")
    	if err != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 18:42:28 UTC 2024
    - 8.8K bytes
    - Viewed (0)
  3. src/crypto/subtle/xor_ppc64x.s

    	MOVD	$16, R10
    	MOVD	$32, R14
    	MOVD	$48, R15
    	ANDCC	$63, R6, R9	// Check for tailing bytes for later
    	PCALIGN $16
    	// Case for >= 64 bytes
    	// Process 64 bytes per iteration
    	// Load 4 vectors of a and b
    	// XOR the corresponding vectors
    	// from a and b and store the result
    loop64:
    	LXVD2X	(R4)(R8), VS32
    	LXVD2X	(R4)(R10), VS34
    	LXVD2X	(R4)(R14), VS36
    	LXVD2X	(R4)(R15), VS38
    	LXVD2X	(R5)(R8), VS33
    	LXVD2X	(R5)(R10), VS35
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 18:17:17 UTC 2024
    - 2.9K bytes
    - Viewed (0)
  4. src/internal/cpu/cpu_arm64_hwcap.go

    	hwcap_SHA2    = 1 << 6
    	hwcap_CRC32   = 1 << 7
    	hwcap_ATOMICS = 1 << 8
    	hwcap_CPUID   = 1 << 11
    	hwcap_SHA512  = 1 << 21
    )
    
    func hwcapInit(os string) {
    	// HWCap was populated by the runtime from the auxiliary vector.
    	// Use HWCap information since reading aarch64 system registers
    	// is not supported in user space on older linux kernels.
    	ARM64.HasAES = isSet(HWCap, hwcap_AES)
    	ARM64.HasPMULL = isSet(HWCap, hwcap_PMULL)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 21:17:41 UTC 2024
    - 2.4K bytes
    - Viewed (0)
  5. src/internal/cpu/cpu.go

    	HasSHA512 bool // K{I,L}MD-SHA-512 functions
    	HasSHA3   bool // K{I,L}MD-SHA3-{224,256,384,512} and K{I,L}MD-SHAKE-{128,256} functions
    	HasVX     bool // vector facility. Note: the runtime sets this when it processes auxv records.
    	HasVXE    bool // vector-enhancements facility 1
    	HasKDSA   bool // elliptic curve functions
    	HasECDSA  bool // NIST curves
    	HasEDDSA  bool // Edwards curves
    	_         CacheLinePad
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 19:57:43 UTC 2024
    - 7.1K bytes
    - Viewed (0)
  6. src/runtime/rand.go

    	"unsafe"
    	_ "unsafe" // for go:linkname
    )
    
    // OS-specific startup can set startupRand if the OS passes
    // random data to the process at startup time.
    // For example Linux passes 16 bytes in the auxv vector.
    var startupRand []byte
    
    // globalRand holds the global random state.
    // It is only used at startup and for creating new m's.
    // Otherwise the per-m random state should be used
    // by calling goodrand.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 31 14:32:47 UTC 2024
    - 8K bytes
    - Viewed (0)
  7. src/cmd/vendor/golang.org/x/sys/unix/bpxsvc_zos.s

    	MOVD  plist_base+0(FP), R1  // r1 points to plist
    	MOVD  bpx_offset+24(FP), R2 // r2 offset to BPX vector table
    	MOVD  R14, R7               // save r14
    	MOVD  R15, R8               // save r15
    	MOVWZ 16(R0), R9
    	MOVWZ 544(R9), R9
    	MOVWZ 24(R9), R9            // call vector in r9
    	ADD   R2, R9                // add offset to vector table
    	MOVWZ (R9), R9              // r9 points to entry point
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 08 16:12:58 UTC 2024
    - 8.1K bytes
    - Viewed (0)
  8. src/crypto/internal/hpke/hpke.go

    	"math/bits"
    
    	"golang.org/x/crypto/chacha20poly1305"
    	"golang.org/x/crypto/hkdf"
    )
    
    // testingOnlyGenerateKey is only used during testing, to provide
    // a fixed test key to use when checking the RFC 9180 vectors.
    var testingOnlyGenerateKey func() (*ecdh.PrivateKey, error)
    
    type hkdfKDF struct {
    	hash crypto.Hash
    }
    
    func (kdf *hkdfKDF) LabeledExtract(suiteID []byte, salt []byte, label string, inputKey []byte) []byte {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 22:33:33 UTC 2024
    - 7K bytes
    - Viewed (0)
Back to top