Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 452 for New (0.32 sec)

  1. src/crypto/sha512/sha512.go

    func consumeUint64(b []byte) ([]byte, uint64) {
    	return b[8:], byteorder.BeUint64(b)
    }
    
    // New returns a new hash.Hash computing the SHA-512 checksum.
    func New() hash.Hash {
    	if boring.Enabled {
    		return boring.NewSHA512()
    	}
    	d := &digest{function: crypto.SHA512}
    	d.Reset()
    	return d
    }
    
    // New512_224 returns a new hash.Hash computing the SHA-512/224 checksum.
    func New512_224() hash.Hash {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 16 16:50:58 UTC 2024
    - 9.2K bytes
    - Viewed (0)
  2. src/crypto/x509/x509.go

    	if template == nil {
    		return nil, errors.New("x509: template can not be nil")
    	}
    	if issuer == nil {
    		return nil, errors.New("x509: issuer can not be nil")
    	}
    	if (issuer.KeyUsage & KeyUsageCRLSign) == 0 {
    		return nil, errors.New("x509: issuer must have the crlSign key usage bit set")
    	}
    	if len(issuer.SubjectKeyId) == 0 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 09:20:15 UTC 2024
    - 82K bytes
    - Viewed (0)
  3. src/crypto/rsa/rsa_test.go

    			}
    		}
    	}
    }
    
    func TestDecryptOAEP(t *testing.T) {
    	random := rand.Reader
    
    	sha1 := sha1.New()
    	n := new(big.Int)
    	d := new(big.Int)
    	for i, test := range testEncryptOAEPData {
    		n.SetString(test.modulus, 16)
    		d.SetString(test.d, 16)
    		private := new(PrivateKey)
    		private.PublicKey = PublicKey{N: n, E: test.e}
    		private.D = d
    
    		for j, message := range test.msgs {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jan 12 00:55:41 UTC 2024
    - 30.9K bytes
    - Viewed (0)
  4. src/crypto/ecdsa/ecdsa_s390x.s

    	BGT  retry       // signing unsuccessful, but retry with new CSPRN
    	BLT  error       // condition code of 1 indicates a failure
    
    success:
    	MOVD $0, errn+16(FP) // return 0 - sign/verify was successful
    	RET
    
    error:
    	MOVD $1, errn+16(FP) // return 1 - sign/verify failed
    	RET
    
    retry:
    	MOVD $2, errn+16(FP) // return 2 - sign/verify was unsuccessful -- if sign, retry with new RN
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 04 17:29:44 UTC 2024
    - 891 bytes
    - Viewed (0)
  5. src/crypto/internal/edwards25519/field/fe.go

    	t0 := new(Element)
    
    	// r = (u * v3) * (u * v7)^((p-5)/8)
    	v2 := new(Element).Square(v)
    	uv3 := new(Element).Multiply(u, t0.Multiply(v2, v))
    	uv7 := new(Element).Multiply(uv3, t0.Square(v2))
    	rr := new(Element).Multiply(uv3, t0.Pow22523(uv7))
    
    	check := new(Element).Multiply(v, t0.Square(rr)) // check = v * r^2
    
    	uNeg := new(Element).Negate(u)
    	correctSignSqrt := check.Equal(u)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 13 18:57:38 UTC 2024
    - 11.8K bytes
    - Viewed (0)
  6. src/crypto/internal/nistec/p256_asm_table_test.go

    		})
    
    		for k := 0; k < 6; k++ {
    			base.Double(base)
    		}
    	}
    }
    
    func testP256AffineTable(t *testing.T, base *P256Point, table *p256AffineTable) {
    	p := NewP256Point()
    	zInv := new(p256Element)
    	zInvSq := new(p256Element)
    
    	for j := 0; j < 32; j++ {
    		p.Add(p, base)
    
    		// Convert p to affine coordinates.
    		p256Inverse(zInv, &p.z)
    		p256Sqr(zInvSq, zInv, 1)
    		p256Mul(zInv, zInv, zInvSq)
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 04 17:29:44 UTC 2024
    - 1.1K bytes
    - Viewed (0)
  7. src/cmd/vendor/golang.org/x/tools/go/analysis/internal/analysisflags/flags.go

    // Start and End are zero-based half-open indices into the original byte
    // sequence of the file, and New is the new text.
    type JSONTextEdit struct {
    	Filename string `json:"filename"`
    	Start    int    `json:"start"`
    	End      int    `json:"end"`
    	New      string `json:"new"`
    }
    
    // A JSONSuggestedFix describes an edit that should be applied as a whole or not
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jan 22 19:00:13 UTC 2024
    - 12.1K bytes
    - Viewed (0)
  8. src/crypto/sha1/sha1.go

    	d.h[3] = init3
    	d.h[4] = init4
    	d.nx = 0
    	d.len = 0
    }
    
    // New returns a new hash.Hash computing the SHA1 checksum. The Hash also
    // implements [encoding.BinaryMarshaler] and [encoding.BinaryUnmarshaler] to
    // marshal and unmarshal the internal state of the hash.
    func New() hash.Hash {
    	if boring.Enabled {
    		return boring.NewSHA1()
    	}
    	d := new(digest)
    	d.Reset()
    	return d
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 16 16:50:58 UTC 2024
    - 5.7K bytes
    - Viewed (0)
  9. doc/next/6-stdlib/99-minor/reflect/66056.md

    The new methods [Value.Seq] and [Value.Seq2] return sequences that iterate over the value
    as though it were used in a for/range loop.
    The new methods [Type.CanSeq] and [Type.CanSeq2] report whether calling
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 09 11:54:18 UTC 2024
    - 282 bytes
    - Viewed (0)
  10. doc/next/6-stdlib/3-structs.md

    ### New structs package
    
    The new [structs] package provides
    types for struct fields that modify properties of
    the containing struct type such as memory layout.
    
    In this release, the only such type is
    [`HostLayout`](/pkg/structs#HostLayout)
    which indicates that a structure with a field of that
    type has a layout that conforms to host platform
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 16:06:02 UTC 2024
    - 356 bytes
    - Viewed (0)
Back to top