Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 435 for cipher (0.13 sec)

  1. src/crypto/cipher/ofb.go

    	for remain < len(x.out)-bs {
    		x.b.Encrypt(x.cipher, x.cipher)
    		copy(x.out[remain:], x.cipher)
    		remain += bs
    	}
    	x.out = x.out[:remain]
    	x.outUsed = 0
    }
    
    func (x *ofb) XORKeyStream(dst, src []byte) {
    	if len(dst) < len(src) {
    		panic("crypto/cipher: output smaller than input")
    	}
    	if alias.InexactOverlap(dst[:len(src)], src) {
    		panic("crypto/cipher: invalid buffer overlap")
    	}
    	for len(src) > 0 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Oct 13 17:09:47 UTC 2023
    - 1.6K bytes
    - Viewed (0)
  2. src/crypto/cipher/benchmark_test.go

    	benchmarkAESStream(b, cipher.NewCFBDecrypter, make([]byte, almost1K))
    }
    
    func BenchmarkAESCFBDecrypt8K(b *testing.B) {
    	benchmarkAESStream(b, cipher.NewCFBDecrypter, make([]byte, almost8K))
    }
    
    func BenchmarkAESOFB1K(b *testing.B) {
    	benchmarkAESStream(b, cipher.NewOFB, make([]byte, almost1K))
    }
    
    func BenchmarkAESCTR1K(b *testing.B) {
    	benchmarkAESStream(b, cipher.NewCTR, make([]byte, almost1K))
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Apr 28 19:13:50 UTC 2021
    - 3.3K bytes
    - Viewed (0)
  3. src/crypto/issue21104_test.go

    }
    func TestOFBOutOfBoundsWrite(t *testing.T) {
    	testBlock(t, "OFB", cipher.NewOFB)
    }
    func TestCFBEncryptOutOfBoundsWrite(t *testing.T) {
    	testBlock(t, "CFB Encrypt", cipher.NewCFBEncrypter)
    }
    func TestCFBDecryptOutOfBoundsWrite(t *testing.T) {
    	testBlock(t, "CFB Decrypt", cipher.NewCFBDecrypter)
    }
    func testBlock(t *testing.T, name string, newCipher func(cipher.Block, []byte) cipher.Stream) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Dec 06 06:03:36 UTC 2017
    - 1.8K bytes
    - Viewed (0)
  4. src/crypto/cipher/ctr.go

    // license that can be found in the LICENSE file.
    
    // Counter (CTR) mode.
    
    // CTR converts a block cipher into a stream cipher by
    // repeatedly encrypting an incrementing counter and
    // xoring the resulting stream of data with the input.
    
    // See NIST SP 800-38A, pp 13-15
    
    package cipher
    
    import (
    	"bytes"
    	"crypto/internal/alias"
    	"crypto/subtle"
    )
    
    type ctr struct {
    	b       Block
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Oct 13 17:09:47 UTC 2023
    - 2.2K bytes
    - Viewed (0)
  5. pkg/model/fips.go

    		// Default (unset) cipher suites field in the FIPS build of Envoy uses only the FIPS ciphers.
    		// Therefore, we only filter this field when it is set.
    		if len(ctx.TlsParams.CipherSuites) > 0 {
    			ciphers := []string{}
    			for _, cipher := range ctx.TlsParams.CipherSuites {
    				if _, ok := fipsCipherIndex[cipher]; ok {
    					ciphers = append(ciphers, cipher)
    				}
    			}
    			ctx.TlsParams.CipherSuites = ciphers
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Mar 28 22:11:02 UTC 2024
    - 2.9K bytes
    - Viewed (0)
  6. src/crypto/internal/boring/aes.go

    }
    
    type extraModes interface {
    	// Copied out of crypto/aes/modes.go.
    	NewCBCEncrypter(iv []byte) cipher.BlockMode
    	NewCBCDecrypter(iv []byte) cipher.BlockMode
    	NewCTR(iv []byte) cipher.Stream
    	NewGCM(nonceSize, tagSize int) (cipher.AEAD, error)
    }
    
    var _ extraModes = (*aesCipher)(nil)
    
    func NewAESCipher(key []byte) (cipher.Block, error) {
    	c := &aesCipher{key: bytes.Clone(key)}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jan 26 22:52:27 UTC 2024
    - 10.2K bytes
    - Viewed (0)
  7. src/crypto/aes/cbc_s390x.go

    func (x *cbc) CryptBlocks(dst, src []byte) {
    	if len(src)%BlockSize != 0 {
    		panic("crypto/cipher: input not full blocks")
    	}
    	if len(dst) < len(src) {
    		panic("crypto/cipher: output smaller than input")
    	}
    	if alias.InexactOverlap(dst[:len(src)], src) {
    		panic("crypto/cipher: invalid buffer overlap")
    	}
    	if len(src) > 0 {
    		cryptBlocksChain(x.c, &x.iv[0], &x.b.key[0], &dst[0], &src[0], len(src))
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 04 17:29:44 UTC 2024
    - 1.6K bytes
    - Viewed (0)
  8. subprojects/core-api/src/main/java/org/gradle/util/internal/SupportedEncryptionAlgorithm.java

            return new IvParameterSpec(initVector);
        }
    
        private Cipher encryptingCipher(SecretKey key, IVCollector collector) throws EncryptionException {
            try {
                Cipher newCipher = Cipher.getInstance(transformation);
                newCipher.init(Cipher.ENCRYPT_MODE, key);
                if (initVectorLength > 0) {
                    assert collector != null;
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Dec 06 12:42:13 UTC 2023
    - 4.4K bytes
    - Viewed (0)
  9. src/crypto/cipher/gcm.go

    	}
    
    	if cipher, ok := cipher.(gcmAble); ok {
    		return cipher.NewGCM(nonceSize, tagSize)
    	}
    
    	if cipher.BlockSize() != gcmBlockSize {
    		return nil, errors.New("cipher: NewGCM requires 128-bit block cipher")
    	}
    
    	var key [gcmBlockSize]byte
    	cipher.Encrypt(key[:], key[:])
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 13 18:57:38 UTC 2024
    - 13.7K bytes
    - Viewed (0)
  10. src/crypto/aes/cbc_ppc64x.go

    func (b *aesCipherAsm) NewCBCEncrypter(iv []byte) cipher.BlockMode {
    	var c cbc
    	c.b = b
    	c.enc = cbcEncrypt
    	copy(c.iv[:], iv)
    	return &c
    }
    
    func (b *aesCipherAsm) NewCBCDecrypter(iv []byte) cipher.BlockMode {
    	var c cbc
    	c.b = b
    	c.enc = cbcDecrypt
    	copy(c.iv[:], iv)
    	return &c
    }
    
    func (x *cbc) BlockSize() int { return BlockSize }
    
    // cryptBlocksChain invokes the cipher message identifying encrypt or decrypt.
    //
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 26 19:58:31 UTC 2024
    - 1.7K bytes
    - Viewed (0)
Back to top