Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 7 of 7 for KeySizeError (0.18 sec)

  1. src/crypto/des/cipher.go

    package des
    
    import (
    	"crypto/cipher"
    	"crypto/internal/alias"
    	"internal/byteorder"
    	"strconv"
    )
    
    // The DES block size in bytes.
    const BlockSize = 8
    
    type KeySizeError int
    
    func (k KeySizeError) Error() string {
    	return "crypto/des: invalid key size " + strconv.Itoa(int(k))
    }
    
    // desCipher is an instance of DES encryption.
    type desCipher struct {
    	subkeys [16]uint64
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 13 18:57:38 UTC 2024
    - 4K bytes
    - Viewed (0)
  2. src/crypto/aes/cipher.go

    type aesCipher struct {
    	l   uint8 // only this length of the enc and dec array is actually used
    	enc [28 + 32]uint32
    	dec [28 + 32]uint32
    }
    
    type KeySizeError int
    
    func (k KeySizeError) Error() string {
    	return "crypto/aes: invalid key size " + strconv.Itoa(int(k))
    }
    
    // NewCipher creates and returns a new [cipher.Block].
    // The key argument should be the AES key,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 25 14:58:19 UTC 2024
    - 2K bytes
    - Viewed (0)
  3. src/crypto/rc4/rc4.go

    package rc4
    
    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)
  4. src/crypto/aes/cipher_s390x.go

    	}
    
    	var function code
    	switch len(key) {
    	case 128 / 8:
    		function = aes128
    	case 192 / 8:
    		function = aes192
    	case 256 / 8:
    		function = aes256
    	default:
    		return nil, KeySizeError(len(key))
    	}
    
    	var c aesCipherAsm
    	c.function = function
    	c.key = c.storage[:len(key)]
    	copy(c.key, key)
    	return &c, nil
    }
    
    func (c *aesCipherAsm) BlockSize() int { return BlockSize }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 04 17:29:44 UTC 2024
    - 2.6K bytes
    - Viewed (0)
  5. src/crypto/aes/cipher_asm.go

    	var rounds int
    	switch len(key) {
    	case 128 / 8:
    		rounds = 10
    	case 192 / 8:
    		rounds = 12
    	case 256 / 8:
    		rounds = 14
    	default:
    		return nil, KeySizeError(len(key))
    	}
    
    	expandKeyAsm(rounds, &key[0], &c.enc[0], &c.dec[0])
    	if supportsAES && supportsGFMUL {
    		return &c, nil
    	}
    	return &c.aesCipherAsm, nil
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 25 14:58:19 UTC 2024
    - 3K bytes
    - Viewed (0)
  6. src/cmd/vendor/golang.org/x/tools/internal/stdlib/manifest.go

    		{"SHA512", Const, 0},
    		{"SHA512_224", Const, 5},
    		{"SHA512_256", Const, 5},
    		{"Signer", Type, 4},
    		{"SignerOpts", Type, 4},
    	},
    	"crypto/aes": {
    		{"(KeySizeError).Error", Method, 0},
    		{"BlockSize", Const, 0},
    		{"KeySizeError", Type, 0},
    		{"NewCipher", Func, 0},
    	},
    	"crypto/cipher": {
    		{"(StreamReader).Read", Method, 0},
    		{"(StreamWriter).Close", Method, 0},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 02:20:05 UTC 2024
    - 534.2K bytes
    - Viewed (0)
  7. api/go1.txt

    pkg crypto, type Hash uint
    pkg crypto, type PrivateKey interface {}
    pkg crypto/aes, const BlockSize ideal-int
    pkg crypto/aes, func NewCipher([]uint8) (cipher.Block, error)
    pkg crypto/aes, method (KeySizeError) Error() string
    pkg crypto/aes, type KeySizeError int
    pkg crypto/cipher, func NewCBCDecrypter(Block, []uint8) BlockMode
    pkg crypto/cipher, func NewCBCEncrypter(Block, []uint8) BlockMode
    pkg crypto/cipher, func NewCFBDecrypter(Block, []uint8) Stream
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Aug 14 18:58:28 UTC 2013
    - 1.7M bytes
    - Viewed (0)
Back to top