Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 118 for cipher (0.21 sec)

  1. internal/kms/secret-key.go

    	iv, nonce := random[:16], random[16:]
    
    	var aead cipher.AEAD
    	switch keyType {
    	case kms.AES256:
    		mac := hmac.New(sha256.New, s.key)
    		mac.Write(iv)
    		sealingKey := mac.Sum(nil)
    
    		block, err := aes.NewCipher(sealingKey)
    		if err != nil {
    			return nil, err
    		}
    		aead, err = cipher.NewGCM(block)
    		if err != nil {
    			return nil, err
    		}
    	case kms.ChaCha20:
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Tue May 07 23:55:37 UTC 2024
    - 8.2K bytes
    - Viewed (0)
  2. src/vendor/golang.org/x/crypto/chacha20/chacha_arm64.go

    //go:build gc && !purego
    
    package chacha20
    
    const bufSize = 256
    
    //go:noescape
    func xorKeyStreamVX(dst, src []byte, key *[8]uint32, nonce *[3]uint32, counter *uint32)
    
    func (c *Cipher) xorKeyStreamBlocks(dst, src []byte) {
    	xorKeyStreamVX(dst, src, &c.key, &c.nonce, &c.counter)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:33 UTC 2023
    - 441 bytes
    - Viewed (0)
  3. src/crypto/rsa/example_test.go

    	}
    
    	// Since the key is random, using a fixed nonce is acceptable as the
    	// (key, nonce) pair will still be unique, as required.
    	var zeroNonce [12]byte
    	aead, err := cipher.NewGCM(block)
    	if err != nil {
    		panic("cipher.NewGCM failed: " + err.Error())
    	}
    	ciphertext, _ := hex.DecodeString("00112233445566")
    	plaintext, err := aead.Open(nil, zeroNonce[:], ciphertext, nil)
    	if err != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Aug 22 22:52:37 UTC 2023
    - 5.8K bytes
    - Viewed (0)
  4. src/test/java/org/codelibs/fess/util/ParameterUtilTest.java

            value = "password=b";
            expect = "password={cipher}5691346cc398a4450114883140fa84a7";
            assertEquals(expect, ParameterUtil.encrypt(value));
    
            value = "aaa.password=b\naaa=c\nccc.key=d";
            expect = "aaa.password={cipher}5691346cc398a4450114883140fa84a7\n" + "aaa=c\n" + "ccc.key={cipher}bf66204f1a59036869a684d61d337bd4";
            assertEquals(expect, ParameterUtil.encrypt(value));
    Registered: Wed Jun 12 13:08:18 UTC 2024
    - Last Modified: Thu Feb 22 01:37:57 UTC 2024
    - 7.1K bytes
    - Viewed (0)
  5. src/vendor/golang.org/x/crypto/chacha20/chacha_ppc64le.go

    //go:build gc && !purego
    
    package chacha20
    
    const bufSize = 256
    
    //go:noescape
    func chaCha20_ctr32_vsx(out, inp *byte, len int, key *[8]uint32, counter *uint32)
    
    func (c *Cipher) xorKeyStreamBlocks(dst, src []byte) {
    	chaCha20_ctr32_vsx(&dst[0], &src[0], len(src), &c.key, &c.counter)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:33 UTC 2023
    - 447 bytes
    - Viewed (0)
  6. src/vendor/golang.org/x/crypto/chacha20/chacha_s390x.go

    // be called when the vector facility is available. Implementation in asm_s390x.s.
    //
    //go:noescape
    func xorKeyStreamVX(dst, src []byte, key *[8]uint32, nonce *[3]uint32, counter *uint32)
    
    func (c *Cipher) xorKeyStreamBlocks(dst, src []byte) {
    	if cpu.S390X.HasVX {
    		xorKeyStreamVX(dst, src, &c.key, &c.nonce, &c.counter)
    	} else {
    		c.xorKeyStreamBlocksGeneric(dst, src)
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:33 UTC 2023
    - 743 bytes
    - Viewed (0)
  7. pilot/cmd/pilot-discovery/app/cmd.go

    		"File containing the x509 private key matching --tlsCertFile")
    	c.PersistentFlags().StringSliceVar(&serverArgs.ServerOptions.TLSOptions.TLSCipherSuites, "tls-cipher-suites", nil,
    		"Comma-separated list of cipher suites for istiod TLS server. "+
    			"If omitted, the default Go cipher suites will be used. \n"+
    			"Preferred values: "+strings.Join(secureTLSCipherNames(), ", ")+". \n"+
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Apr 12 16:44:32 UTC 2024
    - 8.5K bytes
    - Viewed (0)
  8. staging/src/k8s.io/apiserver/pkg/storage/value/encrypt/envelope/envelope.go

    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    See the License for the specific language governing permissions and
    limitations under the License.
    */
    
    // Package envelope transforms values for storage at rest using a Envelope provider
    package envelope
    
    import (
    	"context"
    	"crypto/aes"
    	"crypto/cipher"
    	"crypto/rand"
    	"encoding/base64"
    	"fmt"
    	"time"
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Mar 14 14:23:50 UTC 2023
    - 6.2K bytes
    - Viewed (0)
  9. src/vendor/golang.org/x/crypto/internal/alias/alias.go

    // index. The memory beyond the slice length is ignored. Note that x and y can
    // have different lengths and still not have any inexact overlap.
    //
    // InexactOverlap can be used to implement the requirements of the crypto/cipher
    // AEAD, Block, BlockMode and Stream interfaces.
    func InexactOverlap(x, y []byte) bool {
    	if len(x) == 0 || len(y) == 0 || &x[0] == &y[0] {
    		return false
    	}
    	return AnyOverlap(x, y)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:33 UTC 2023
    - 1.1K bytes
    - Viewed (0)
  10. src/vendor/golang.org/x/crypto/internal/alias/alias_purego.go

    // index. The memory beyond the slice length is ignored. Note that x and y can
    // have different lengths and still not have any inexact overlap.
    //
    // InexactOverlap can be used to implement the requirements of the crypto/cipher
    // AEAD, Block, BlockMode and Stream interfaces.
    func InexactOverlap(x, y []byte) bool {
    	if len(x) == 0 || len(y) == 0 || &x[0] == &y[0] {
    		return false
    	}
    	return AnyOverlap(x, y)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:33 UTC 2023
    - 1.2K bytes
    - Viewed (0)
Back to top