- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 435 for cipher (0.11 sec)
-
src/crypto/des/cipher.go
type tripleDESCipher struct { cipher1, cipher2, cipher3 desCipher } // NewTripleDESCipher creates and returns a new [cipher.Block]. func NewTripleDESCipher(key []byte) (cipher.Block, error) { if len(key) != 24 { return nil, KeySizeError(len(key)) } c := new(tripleDESCipher) c.cipher1.generateSubkeys(key[:8]) c.cipher2.generateSubkeys(key[8:16]) c.cipher3.generateSubkeys(key[16:]) return c, nil }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon May 13 18:57:38 UTC 2024 - 4K bytes - Viewed (0) -
src/crypto/cipher/cipher.go
// license that can be found in the LICENSE file. // Package cipher implements standard block cipher modes that can be wrapped // around low-level block cipher implementations. // See https://csrc.nist.gov/groups/ST/toolkit/BCM/current_modes.html // and NIST Special Publication 800-38A. package cipher // A Block represents an implementation of block cipher // using a given key. It provides the capability to encrypt
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Sep 28 03:55:33 UTC 2022 - 2.4K bytes - Viewed (0) -
src/crypto/aes/cipher.go
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, // either 16, 24, or 32 bytes to select // AES-128, AES-192, or AES-256. func NewCipher(key []byte) (cipher.Block, error) { k := len(key) switch k { default: return nil, KeySizeError(k) case 16, 24, 32: break }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Mar 25 14:58:19 UTC 2024 - 2K bytes - Viewed (0) -
src/crypto/cipher/cbc.go
// Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. // Cipher block chaining (CBC) mode. // CBC provides confidentiality by xoring (chaining) each plaintext block // with the previous ciphertext block before applying the block cipher. // See NIST SP 800-38A, pp 10-11 package cipher import ( "bytes" "crypto/internal/alias" "crypto/subtle" ) type cbc struct {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Sep 28 03:55:33 UTC 2022 - 5.4K bytes - Viewed (0) -
src/crypto/tls/cipher_suites.go
// certificate is ECDSA or EdDSA. If this is not set then the cipher suite // is RSA based. suiteECSign // suiteTLS12 indicates that the cipher suite should only be advertised // and accepted when using TLS 1.2. suiteTLS12 // suiteSHA384 indicates that the cipher suite uses SHA384 as the // handshake hash. suiteSHA384 ) // A cipherSuite is a TLS 1.0–1.2 cipher suite, and defines the key exchange
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 29 17:58:53 UTC 2024 - 25.5K bytes - Viewed (0) -
src/crypto/aes/modes.go
// See crypto/cipher/cbc.go. type cbcEncAble interface { NewCBCEncrypter(iv []byte) cipher.BlockMode } // cbcDecAble is implemented by cipher.Blocks that can provide an optimized // implementation of CBC decryption through the cipher.BlockMode interface. // See crypto/cipher/cbc.go. type cbcDecAble interface { NewCBCDecrypter(iv []byte) cipher.BlockMode }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Feb 14 15:32:26 UTC 2018 - 1.1K bytes - Viewed (0) -
src/crypto/aes/modes_test.go
func (*testBlock) NewGCM(int, int) (cipher.AEAD, error) { return &testAEAD{}, nil } func (*testBlock) NewCBCEncrypter([]byte) cipher.BlockMode { return &testBlockMode{} } func (*testBlock) NewCBCDecrypter([]byte) cipher.BlockMode { return &testBlockMode{} } func (*testBlock) NewCTR([]byte) cipher.Stream { return &testStream{} } // testAEAD implements the cipher.AEAD interface. type testAEAD struct{}
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Feb 14 15:32:26 UTC 2018 - 3.5K bytes - Viewed (0) -
src/main/java/org/codelibs/core/crypto/CachedCipher.java
} } return cipher; } protected Cipher pollEncryptoCipher(final Key key) { Cipher cipher = encryptoQueue.poll(); if (cipher == null) { try { cipher = Cipher.getInstance(transformation); cipher.init(Cipher.ENCRYPT_MODE, key); } catch (final InvalidKeyException e) {
Registered: Wed Jun 12 12:50:12 UTC 2024 - Last Modified: Thu Mar 07 01:59:08 UTC 2024 - 8.1K bytes - Viewed (0) -
src/crypto/cipher/cipher_test.go
package cipher_test import ( "bytes" "crypto/aes" "crypto/cipher" "crypto/des" "testing" ) func TestCryptBlocks(t *testing.T) { buf := make([]byte, 16) block, _ := aes.NewCipher(buf) mode := cipher.NewCBCDecrypter(block, buf) mustPanic(t, "crypto/cipher: input not full blocks", func() { mode.CryptBlocks(buf, buf[:3]) }) mustPanic(t, "crypto/cipher: output smaller than input", func() { mode.CryptBlocks(buf[:3], buf) })
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Oct 13 21:42:23 UTC 2016 - 2.2K bytes - Viewed (0) -
src/test/java/org/codelibs/fess/helper/RoleQueryHelperTest.java
}; roleQueryHelperImpl.cipher = cipher; Set<String> roleSet; boolean encrypted; String value; encrypted = true; value = cipher.encryptoText(""); roleSet = decodedRoleList(roleQueryHelperImpl, value, encrypted); assertEquals(0, roleSet.size()); encrypted = true; value = cipher.encryptoText("role1");
Registered: Wed Jun 12 13:08:18 UTC 2024 - Last Modified: Thu Feb 22 01:37:57 UTC 2024 - 14.2K bytes - Viewed (0)