Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 52 for addTypes (0.15 sec)

  1. src/crypto/tls/key_schedule.go

    	var hkdfLabel cryptobyte.Builder
    	hkdfLabel.AddUint16(uint16(length))
    	hkdfLabel.AddUint8LengthPrefixed(func(b *cryptobyte.Builder) {
    		b.AddBytes([]byte("tls13 "))
    		b.AddBytes([]byte(label))
    	})
    	hkdfLabel.AddUint8LengthPrefixed(func(b *cryptobyte.Builder) {
    		b.AddBytes(context)
    	})
    	hkdfLabelBytes, err := hkdfLabel.Bytes()
    	if err != nil {
    		// Rather than calling BytesOrPanic, we explicitly handle this error, in
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 14:56:25 UTC 2024
    - 6.5K bytes
    - Viewed (0)
  2. build-logic/documentation/src/main/groovy/gradlebuild/docs/dsl/docbook/LinkRenderer.java

                    linkElement.appendChild(addType(name, listener));
                }
            });
    
            linkElement.normalize();
            if (linkElement.getChildNodes().getLength() == 1 && linkElement.getFirstChild() instanceof Element) {
                return linkElement.getFirstChild();
            }
            return linkElement;
        }
    
        private Node addType(String className, GenerationListener listener) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Dec 09 08:14:05 UTC 2020
    - 6.3K bytes
    - Viewed (0)
  3. platforms/core-configuration/declarative-dsl-core/src/main/kotlin/org/gradle/internal/declarativedsl/schemaBuilder/DataSchemaBuilder.kt

            private
            val propertyOriginalTypes = mutableMapOf<KClass<*>, MutableMap<String, KType>>()
    
            private
            val claimedFunctions = mutableMapOf<KClass<*>, MutableSet<KFunction<*>>>()
    
            fun addType(kClass: KClass<*>) {
                properties.getOrPut(kClass) { mutableMapOf() }
                propertyOriginalTypes.getOrPut(kClass) { mutableMapOf() }
            }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue May 14 10:08:02 UTC 2024
    - 5.9K bytes
    - Viewed (0)
  4. staging/src/k8s.io/apiserver/pkg/storage/value/encrypt/envelope/envelope.go

    		return nil, err
    	}
    	// Append the length of the encrypted DEK as the first 2 bytes.
    	b := cryptobyte.NewBuilder(nil)
    	b.AddUint16LengthPrefixed(func(b *cryptobyte.Builder) {
    		b.AddBytes([]byte(encKey))
    	})
    	b.AddBytes(result)
    
    	return b.Bytes()
    }
    
    var _ value.Transformer = &envelopeTransformer{}
    
    // addTransformer inserts a new transformer to the Envelope cache of DEKs for future reads.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Mar 14 14:23:50 UTC 2023
    - 6.2K bytes
    - Viewed (0)
  5. src/cmd/link/internal/ld/seh.go

    			continue
    		}
    		uw := ldr.SEHUnwindSym(s)
    		if uw == 0 {
    			continue
    		}
    		name := ctxt.SymName(uw)
    		off, cached := uwcache[name]
    		if !cached {
    			off = xdata.Size()
    			uwcache[name] = off
    			xdata.AddBytes(ldr.Data(uw))
    			// The SEH unwind data can contain relocations,
    			// make sure those are copied over.
    			rels := ldr.Relocs(uw)
    			for i := 0; i < rels.Count(); i++ {
    				r := rels.At(i)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Nov 09 19:01:27 UTC 2023
    - 2K bytes
    - Viewed (0)
  6. src/crypto/tls/ech.go

    	var b cryptobyte.Builder
    	b.AddUint8(0) // outer
    	b.AddUint16(kdfID)
    	b.AddUint16(aeadID)
    	b.AddUint8(id)
    	b.AddUint16LengthPrefixed(func(b *cryptobyte.Builder) { b.AddBytes(encodedKey) })
    	b.AddUint16LengthPrefixed(func(b *cryptobyte.Builder) { b.AddBytes(payload) })
    	return b.Bytes()
    }
    
    func computeAndUpdateOuterECHExtension(outer, inner *clientHelloMsg, ech *echContext, useKey bool) error {
    	var encapKey []byte
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 03:10:12 UTC 2024
    - 7.4K bytes
    - Viewed (0)
  7. staging/src/k8s.io/apiserver/pkg/storage/value/encrypt/envelope/kmsv2/envelope.go

    	b := cryptobyte.NewBuilder(nil)
    	b.AddUint32(uint32(encryptedDEKSourceType))
    	b.AddUint16LengthPrefixed(func(b *cryptobyte.Builder) {
    		b.AddBytes(encryptedDEKSource)
    	})
    	b.AddUint16LengthPrefixed(func(b *cryptobyte.Builder) {
    		b.AddBytes(toBytes(keyID))
    	})
    	if len(annotations) == 0 {
    		return b.Bytes()
    	}
    
    	// add the length of annotations to the cache key
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Oct 27 00:23:50 UTC 2023
    - 18.7K bytes
    - Viewed (0)
  8. src/vendor/golang.org/x/crypto/cryptobyte/asn1.go

    			return
    		}
    		c.AddBytes([]byte(t.Format(defaultUTCTimeFormatStr)))
    	})
    }
    
    // AddASN1BitString appends a DER-encoded ASN.1 BIT STRING. This does not
    // support BIT STRINGs that are not a whole number of bytes.
    func (b *Builder) AddASN1BitString(data []byte) {
    	b.AddASN1(asn1.BIT_STRING, func(b *Builder) {
    		b.AddUint8(0)
    		b.AddBytes(data)
    	})
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Nov 29 21:28:33 UTC 2023
    - 21.5K bytes
    - Viewed (0)
  9. src/cmd/internal/dwarf/dwarf.go

    		ctxt.AddInt(s, 1, value)
    		p := data.([]byte)[:value]
    		ctxt.AddBytes(s, p)
    
    	case DW_FORM_block2: // block
    		value &= 0xffff
    
    		ctxt.AddInt(s, 2, value)
    		p := data.([]byte)[:value]
    		ctxt.AddBytes(s, p)
    
    	case DW_FORM_block4: // block
    		value &= 0xffffffff
    
    		ctxt.AddInt(s, 4, value)
    		p := data.([]byte)[:value]
    		ctxt.AddBytes(s, p)
    
    	case DW_FORM_block: // block
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Mar 06 15:23:18 UTC 2024
    - 43K bytes
    - Viewed (0)
  10. src/vendor/golang.org/x/crypto/cryptobyte/builder.go

    func (b *Builder) AddUint64(v uint64) {
    	b.add(byte(v>>56), byte(v>>48), byte(v>>40), byte(v>>32), byte(v>>24), byte(v>>16), byte(v>>8), byte(v))
    }
    
    // AddBytes appends a sequence of bytes to the byte string.
    func (b *Builder) AddBytes(v []byte) {
    	b.add(v...)
    }
    
    // BuilderContinuation is a continuation-passing interface for building
    // length-prefixed byte sequences. Builder methods for length-prefixed
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Oct 10 16:32:44 UTC 2023
    - 9.9K bytes
    - Viewed (0)
Back to top