Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for NewCBCGenericEncrypter (0.34 sec)

  1. src/crypto/cipher/export_test.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    package cipher
    
    // Export internal functions for testing.
    var NewCBCGenericEncrypter = newCBCGenericEncrypter
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Aug 17 18:47:33 UTC 2022
    - 322 bytes
    - Viewed (0)
  2. src/crypto/cipher/fuzz_test.go

    const datalen = 1024
    
    func TestFuzz(t *testing.T) {
    
    	for _, ft := range cbcAESFuzzTests {
    		c, _ := aes.NewCipher(ft.key)
    
    		cbcAsm := cipher.NewCBCEncrypter(c, commonIV)
    		cbcGeneric := cipher.NewCBCGenericEncrypter(c, commonIV)
    
    		if testing.Short() {
    			timeout = time.NewTimer(10 * time.Millisecond)
    		} else {
    			timeout = time.NewTimer(2 * time.Second)
    		}
    
    		indata := make([]byte, datalen)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 03 13:39:12 UTC 2022
    - 2K bytes
    - Viewed (0)
  3. src/crypto/cipher/cbc.go

    	}
    	return (*cbcEncrypter)(newCBC(b, iv))
    }
    
    // newCBCGenericEncrypter returns a BlockMode which encrypts in cipher block chaining
    // mode, using the given Block. The length of iv must be the same as the
    // Block's block size. This always returns the generic non-asm encrypter for use
    // in fuzz testing.
    func newCBCGenericEncrypter(b Block, iv []byte) BlockMode {
    	if len(iv) != b.BlockSize() {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Sep 28 03:55:33 UTC 2022
    - 5.4K bytes
    - Viewed (0)
Back to top