Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 6 of 6 for HashType (0.33 sec)

  1. src/cmd/internal/codesign/codesign.go

    	nCodeSlots    uint32 // number of ordinary (code) hash slots
    	codeLimit     uint32 // limit to main image signature range
    	hashSize      uint8  // size of each hash in bytes
    	hashType      uint8  // type of hash (cdHashType* constants)
    	_pad1         uint8  // unused (must be zero)
    	pageSize      uint8  // log2(page size in bytes); 0 => infinite
    	_pad2         uint32 // unused (must be zero)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 29 14:23:19 UTC 2022
    - 8.3K bytes
    - Viewed (0)
  2. src/cmd/internal/obj/objfile_test.go

    	r = Addrel(syms[4])
    	r.Sym = syms[0]
    	// s5 references s1
    	r = Addrel(syms[5])
    	r.Sym = syms[1]
    	// s6 references s2
    	r = Addrel(syms[6])
    	r.Sym = syms[2]
    
    	// compute hashes
    	h := make([]goobj.HashType, len(syms))
    	w := &writer{}
    	for i := range h {
    		h[i] = w.contentHash(syms[i])
    	}
    
    	tests := []struct {
    		a, b  int
    		equal bool
    	}{
    		{0, 1, true},  // same contents, no relocs
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Nov 15 20:21:30 UTC 2022
    - 3.7K bytes
    - Viewed (0)
  3. src/cmd/internal/obj/objfile.go

    	// scratch space for writing (the Write methods escape
    	// as they are interface calls)
    	tmpSym      goobj.Sym
    	tmpReloc    goobj.Reloc
    	tmpAux      goobj.Aux
    	tmpHash64   goobj.Hash64Type
    	tmpHash     goobj.HashType
    	tmpRefFlags goobj.RefFlags
    	tmpRefName  goobj.RefName
    }
    
    // prepare package index list
    func (w *writer) init() {
    	w.pkglist = make([]string, len(w.ctxt.pkgIdx)+1)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 19:57:43 UTC 2024
    - 24K bytes
    - Viewed (0)
  4. src/cmd/internal/goobj/objfile.go

    // Hash returns a pointer to the i-th hashed symbol's hash.
    // Note: here i is the index of hashed symbols, not all symbols
    // (unlike other accessors).
    func (r *Reader) Hash(i uint32) *HashType {
    	off := r.h.Offsets[BlkHash] + uint32(i*HashSize)
    	return (*HashType)(unsafe.Pointer(&r.b[off]))
    }
    
    // NReloc returns the number of relocations of the i-th symbol.
    func (r *Reader) NReloc(i uint32) int {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 19:57:43 UTC 2024
    - 23.8K bytes
    - Viewed (0)
  5. src/crypto/x509/x509.go

    	var hashType crypto.Hash
    	var pubKeyAlgo PublicKeyAlgorithm
    
    	for _, details := range signatureAlgorithmDetails {
    		if details.algo == algo {
    			hashType = details.hash
    			pubKeyAlgo = details.pubKeyAlgo
    			break
    		}
    	}
    
    	switch hashType {
    	case crypto.Hash(0):
    		if pubKeyAlgo != Ed25519 {
    			return ErrUnsupportedAlgorithm
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 09:20:15 UTC 2024
    - 82K bytes
    - Viewed (0)
  6. src/cmd/link/internal/loader/loader.go

    		// check, as same hash indicates same content.
    		var checkHash func() (symAndSize, bool)
    		var addToHashMap func(symAndSize)
    		var h64 uint64        // only used for hashed64Def
    		var h *goobj.HashType // only used for hashedDef
    		if kind == hashed64Def {
    			checkHash = func() (symAndSize, bool) {
    				h64 = r.Hash64(li - uint32(r.ndef))
    				s, existed := st.hashed64Syms[h64]
    				return s, existed
    			}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 24 20:26:10 UTC 2024
    - 81.5K bytes
    - Viewed (0)
Back to top