Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of about 10,000 for Cipher (0.29 sec)

  1. src/crypto/cipher/benchmark_test.go

    }
    
    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)
  2. src/crypto/rc4/rc4.go

    import (
    	"crypto/internal/alias"
    	"strconv"
    )
    
    // A Cipher is an instance of RC4 using a particular key.
    type Cipher struct {
    	s    [256]uint32
    	i, j uint8
    }
    
    type KeySizeError int
    
    func (k KeySizeError) Error() string {
    	return "crypto/rc4: invalid key size " + strconv.Itoa(int(k))
    }
    
    // NewCipher creates and returns a new [Cipher]. The key argument should be the
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Oct 13 17:09:47 UTC 2023
    - 1.9K bytes
    - Viewed (0)
  3. src/crypto/aes/gcm_s390x.go

    )
    
    var errOpen = errors.New("cipher: message authentication failed")
    
    // Assert that aesCipherAsm implements the gcmAble interface.
    var _ gcmAble = (*aesCipherAsm)(nil)
    
    // NewGCM returns the AES cipher wrapped in Galois Counter Mode. This is only
    // called by [crypto/cipher.NewGCM] via the gcmAble interface.
    func (c *aesCipherAsm) NewGCM(nonceSize, tagSize int) (cipher.AEAD, error) {
    	var hk gcmHashKey
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 13 18:57:38 UTC 2024
    - 11.3K bytes
    - Viewed (0)
  4. 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)
  5. src/main/java/jcifs/util/Crypto.java

            return new HMACT64(key);
        }
    
    
        /**
         * 
         * @param key
         * @return RC4 cipher
         */
        public static Cipher getArcfour ( byte[] key ) {
            try {
                Cipher c = Cipher.getInstance("RC4");
                c.init(Cipher.ENCRYPT_MODE, new SecretKeySpec(key, "RC4"));
                return c;
            }
            catch (
                NoSuchAlgorithmException |
    Registered: Wed Jun 12 15:45:55 UTC 2024
    - Last Modified: Tue Aug 17 17:34:29 UTC 2021
    - 5.2K bytes
    - Viewed (0)
  6. 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)
  7. src/crypto/aes/gcm_ppc64x.go

    func counterCryptASM(nr int, out, in []byte, counter *[gcmBlockSize]byte, key *uint32)
    
    // NewGCM returns the AES cipher wrapped in Galois Counter Mode. This is only
    // called by [crypto/cipher.NewGCM] via the gcmAble interface.
    func (c *aesCipherAsm) NewGCM(nonceSize, tagSize int) (cipher.AEAD, error) {
    	var h1, h2 uint64
    	g := &gcmAsm{cipher: c, ks: c.enc[:c.l], nonceSize: nonceSize, tagSize: tagSize}
    
    	hle := make([]byte, gcmBlockSize)
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 13 18:57:38 UTC 2024
    - 6.4K bytes
    - Viewed (0)
  8. pilot/pkg/bootstrap/options.go

    	for _, cipher := range tls.InsecureCipherSuites() {
    		acceptedCiphers[cipher.Name] = cipher.ID
    	}
    	for _, cipher := range tls.CipherSuites() {
    		acceptedCiphers[cipher.Name] = cipher.ID
    	}
    	return acceptedCiphers
    }
    
    // TLSCipherSuites returns a list of cipher suite IDs from the cipher suite names passed.
    func TLSCipherSuites(cipherNames []string) ([]uint16, error) {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jun 13 17:48:28 UTC 2024
    - 6.1K bytes
    - Viewed (0)
  9. src/crypto/cipher/gcm_test.go

    		tagSize := (len(test.result) - len(test.plaintext)) / 2
    
    		var aesgcm cipher.AEAD
    		switch {
    		// Handle non-standard tag sizes
    		case tagSize != 16:
    			aesgcm, err = cipher.NewGCMWithTagSize(aes, tagSize)
    			if err != nil {
    				t.Fatal(err)
    			}
    
    		// Handle 0 nonce size (expect error and continue)
    		case len(nonce) == 0:
    			aesgcm, err = cipher.NewGCMWithNonceSize(aes, 0)
    			if err == nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Oct 25 15:27:49 UTC 2023
    - 35K bytes
    - Viewed (0)
  10. src/crypto/aes/aes_gcm.go

    )
    
    var errOpen = errors.New("cipher: message authentication failed")
    
    // Assert that aesCipherGCM implements the gcmAble interface.
    var _ gcmAble = (*aesCipherGCM)(nil)
    
    // NewGCM returns the AES cipher wrapped in Galois Counter Mode. This is only
    // called by [crypto/cipher.NewGCM] via the gcmAble interface.
    func (c *aesCipherGCM) NewGCM(nonceSize, tagSize int) (cipher.AEAD, error) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Mar 27 18:23:49 UTC 2024
    - 5.4K bytes
    - Viewed (0)
Back to top