Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 12 for chanchan (0.23 sec)

  1. src/math/rand/v2/chacha8.go

    	"errors"
    	"internal/byteorder"
    	"internal/chacha8rand"
    )
    
    // A ChaCha8 is a ChaCha8-based cryptographically strong
    // random number generator.
    type ChaCha8 struct {
    	state chacha8rand.State
    
    	// The last readLen bytes of readBuf are still to be consumed by Read.
    	readBuf [8]byte
    	readLen int // 0 <= readLen <= 8
    }
    
    // NewChaCha8 returns a new ChaCha8 seeded with the given seed.
    func NewChaCha8(seed [32]byte) *ChaCha8 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 22:09:08 UTC 2024
    - 2.8K bytes
    - Viewed (0)
  2. src/internal/chacha8rand/chacha8.go

    	data := make([]byte, 6*8)
    	copy(data, "chacha8:")
    	used := (s.c/ctrInc)*chunk + s.i
    	byteorder.BePutUint64(data[1*8:], uint64(used))
    	for i, seed := range s.seed {
    		byteorder.LePutUint64(data[(2+i)*8:], seed)
    	}
    	return data
    }
    
    type errUnmarshalChaCha8 struct{}
    
    func (*errUnmarshalChaCha8) Error() string {
    	return "invalid ChaCha8 encoding"
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 13 21:47:29 UTC 2024
    - 4.4K bytes
    - Viewed (0)
  3. src/internal/chacha8rand/chacha8_generic.go

    // Copyright 2023 The Go Authors. All rights reserved.
    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    // ChaCha8 is ChaCha with 8 rounds.
    // See https://cr.yp.to/chacha/chacha-20080128.pdf.
    //
    // ChaCha8 operates on a 4x4 matrix of uint32 values, initially set to:
    //
    //	const1 const2 const3 const4
    //	seed   seed   seed   seed
    //	seed   seed   seed   seed
    //	counter64     0      0
    //
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Dec 05 20:32:54 UTC 2023
    - 6.3K bytes
    - Viewed (0)
  4. src/internal/chacha8rand/chacha8_amd64.s

    // Copyright 2023 The Go Authors. All rights reserved.
    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    #include "textflag.h"
    
    // ChaCha8 is ChaCha with 8 rounds.
    // See https://cr.yp.to/chacha/chacha-20080128.pdf.
    // See chacha8_generic.go for additional details.
    
    // ROL rotates the uint32s in register R left by N bits, using temporary T.
    #define ROL(N, R, T) \
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Dec 05 20:34:30 UTC 2023
    - 4.6K bytes
    - Viewed (0)
  5. src/internal/chacha8rand/chacha8_arm64.s

    	VADD A.S4, B.S4, A.S4; VEOR D.B16, A.B16, D.B16;   VTBL V31.B16, [D.B16], D.B16; \
    	VADD C.S4, D.S4, C.S4; VEOR B.B16, C.B16, V30.B16; VSHL  $7, V30.S4, B.S4; VSRI $25, V30.S4, B.S4
    
    // block runs 4 ChaCha8 block transformations in the four stripes of the V registers.
    
    // func block(seed *[8]uint32, blocks *[4][16]uint32, counter uint32)
    TEXT ·block<ABIInternal>(SB), NOSPLIT, $16
    	// seed in R0
    	// blocks in R1
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Dec 05 20:34:30 UTC 2023
    - 3.2K bytes
    - Viewed (0)
  6. api/go1.22.txt

    pkg math/rand/v2, func Uint64N(uint64) uint64 #61716
    pkg math/rand/v2, func UintN(uint) uint #61716
    pkg math/rand/v2, method (*ChaCha8) MarshalBinary() ([]uint8, error) #61716
    pkg math/rand/v2, method (*ChaCha8) Seed([32]uint8) #61716
    pkg math/rand/v2, method (*ChaCha8) Uint64() uint64 #61716
    pkg math/rand/v2, method (*ChaCha8) UnmarshalBinary([]uint8) error #61716
    pkg math/rand/v2, method (*PCG) MarshalBinary() ([]uint8, error) #61716
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jan 24 20:54:27 UTC 2024
    - 7.7K bytes
    - Viewed (0)
  7. doc/next/6-stdlib/99-minor/math/rand/v2/67059.md

    The new [ChaCha8.Read] method implements the [io.Reader] interface....
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 22:09:08 UTC 2024
    - 68 bytes
    - Viewed (0)
  8. src/runtime/rand.go

    }
    
    // rand32 is uint32(rand()), called from compiler-generated code.
    //
    //go:nosplit
    func rand32() uint32 {
    	return uint32(rand())
    }
    
    // rand returns a random uint64 from the per-m chacha8 state.
    // Do not change signature: used via linkname from other packages.
    //
    //go:nosplit
    //go:linkname rand
    func rand() uint64 {
    	// Note: We avoid acquirem here so that in the fast path
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 31 14:32:47 UTC 2024
    - 8K bytes
    - Viewed (0)
  9. src/vendor/golang.org/x/crypto/chacha20/chacha_s390x.s

    	VSRLB M0, NONCE, NONCE
    
    	// initialize counter values
    	VLREPF (R7), CTR
    	VZERO  INC
    	VLEIF  $1, $1, INC
    	VLEIF  $2, $2, INC
    	VLEIF  $3, $3, INC
    	VAF    INC, CTR, CTR
    	VREPIF $4, INC
    
    chacha:
    	VREPF $0, J0, X0
    	VREPF $1, J0, X1
    	VREPF $2, J0, X2
    	VREPF $3, J0, X3
    	VREPF $0, KEY0, X4
    	VREPF $1, KEY0, X5
    	VREPF $2, KEY0, X6
    	VREPF $3, KEY0, X7
    	VREPF $0, KEY1, X8
    	VREPF $1, KEY1, X9
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:33 UTC 2023
    - 5.3K bytes
    - Viewed (0)
  10. src/cmd/internal/goobj/builtinlist.go

    	{"runtime.makechan64", 1},
    	{"runtime.makechan", 1},
    	{"runtime.chanrecv1", 1},
    	{"runtime.chanrecv2", 1},
    	{"runtime.chansend1", 1},
    	{"runtime.closechan", 1},
    	{"runtime.chanlen", 1},
    	{"runtime.chancap", 1},
    	{"runtime.writeBarrier", 0},
    	{"runtime.typedmemmove", 1},
    	{"runtime.typedmemclr", 1},
    	{"runtime.typedslicecopy", 1},
    	{"runtime.selectnbsend", 1},
    	{"runtime.selectnbrecv", 1},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 21 21:08:03 UTC 2024
    - 7.4K bytes
    - Viewed (0)
Back to top