Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 435 for cipher (0.11 sec)

  1. src/crypto/cipher/ctr_aes_test.go

    // CTR AES test vectors.
    
    // See U.S. National Institute of Standards and Technology (NIST)
    // Special Publication 800-38A, ``Recommendation for Block Cipher
    // Modes of Operation,'' 2001 Edition, pp. 55-58.
    
    package cipher_test
    
    import (
    	"bytes"
    	"crypto/aes"
    	"crypto/cipher"
    	"testing"
    )
    
    var commonCounter = []byte{0xf0, 0xf1, 0xf2, 0xf3, 0xf4, 0xf5, 0xf6, 0xf7, 0xf8, 0xf9, 0xfa, 0xfb, 0xfc, 0xfd, 0xfe, 0xff}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Sep 08 04:08:51 UTC 2014
    - 3K bytes
    - Viewed (0)
  2. src/crypto/des/example_test.go

    	tripleDESKey = append(tripleDESKey, ede2Key[:8]...)
    
    	_, err := des.NewTripleDESCipher(tripleDESKey)
    	if err != nil {
    		panic(err)
    	}
    
    	// See crypto/cipher for how to use a cipher.Block for encryption and
    	// decryption.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Sep 08 04:08:51 UTC 2014
    - 697 bytes
    - Viewed (0)
  3. src/main/java/jcifs/internal/smb2/nego/EncryptionNegotiateContext.java

            SMBUtil.writeInt2(this.ciphers != null ? this.ciphers.length : 0, dst, dstIndex);
            dstIndex += 2;
    
            if ( this.ciphers != null ) {
                for ( int cipher : this.ciphers ) {
                    SMBUtil.writeInt2(cipher, dst, dstIndex);
                    dstIndex += 2;
                }
            }
            return dstIndex - start;
        }
    
    
        /**
         * {@inheritDoc}
         *
    Registered: Wed Jun 12 15:45:55 UTC 2024
    - Last Modified: Sun Jul 01 13:12:10 UTC 2018
    - 3.2K bytes
    - Viewed (0)
  4. internal/fips/api.go

    const Enabled = enabled
    
    // DARECiphers returns a list of supported cipher suites
    // for the DARE object encryption.
    func DARECiphers() []byte {
    	if Enabled {
    		return []byte{sio.AES_256_GCM}
    	}
    	return []byte{sio.AES_256_GCM, sio.CHACHA20_POLY1305}
    }
    
    // TLSCiphers returns a list of supported TLS transport
    // cipher suite IDs.
    //
    // The list contains only ciphers that use AES-GCM or
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri Dec 30 19:37:07 UTC 2022
    - 5.1K bytes
    - Viewed (0)
  5. samples/guide/src/main/java/okhttp3/recipes/CustomCipherSuites.java

      public CustomCipherSuites() throws GeneralSecurityException {
        // Configure cipher suites to demonstrate how to customize which cipher suites will be used for
        // an OkHttp request. In order to be selected a cipher suite must be included in both OkHttp's
        // connection spec and in the SSLSocket's enabled cipher suites array. Most applications should
        // not customize the cipher suites list.
        List<CipherSuite> customCipherSuites = asList(
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Thu Mar 14 21:57:42 UTC 2019
    - 6.5K bytes
    - Viewed (0)
  6. src/crypto/cipher/ofb_test.go

    // OFB AES test vectors.
    
    // See U.S. National Institute of Standards and Technology (NIST)
    // Special Publication 800-38A, ``Recommendation for Block Cipher
    // Modes of Operation,'' 2001 Edition, pp. 52-55.
    
    package cipher_test
    
    import (
    	"bytes"
    	"crypto/aes"
    	"crypto/cipher"
    	"testing"
    )
    
    type ofbTest struct {
    	name string
    	key  []byte
    	iv   []byte
    	in   []byte
    	out  []byte
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Sep 08 04:08:51 UTC 2014
    - 3K bytes
    - Viewed (0)
  7. src/crypto/aes/cipher_asm.go

    //go:noescape
    func expandKeyAsm(nr int, key *byte, enc *uint32, dec *uint32)
    
    type aesCipherAsm struct {
    	aesCipher
    }
    
    // aesCipherGCM implements crypto/cipher.gcmAble so that crypto/cipher.NewGCM
    // will use the optimised implementation in aes_gcm.go when possible.
    // Instances of this type only exist when hasGCMAsm returns true. Likewise,
    // the gcmAble implementation is in aes_gcm.go.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 25 14:58:19 UTC 2024
    - 3K bytes
    - Viewed (0)
  8. src/crypto/cipher/cbc_aes_test.go

    // CBC AES test vectors.
    
    // See U.S. National Institute of Standards and Technology (NIST)
    // Special Publication 800-38A, ``Recommendation for Block Cipher
    // Modes of Operation,'' 2001 Edition, pp. 24-29.
    
    package cipher_test
    
    import (
    	"bytes"
    	"crypto/aes"
    	"crypto/cipher"
    	"testing"
    )
    
    var cbcAESTests = []struct {
    	name string
    	key  []byte
    	iv   []byte
    	in   []byte
    	out  []byte
    }{
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Sep 08 04:08:51 UTC 2014
    - 2.9K bytes
    - Viewed (0)
  9. staging/src/k8s.io/apiserver/pkg/storage/value/encrypt/envelope/testing/v1beta1/kms_plugin_mock.go

    	klog.V(3).InfoS("Received Decrypt Request", "cipher", string(request.Cipher))
    
    	s.mu.Lock()
    	defer s.mu.Unlock()
    	if s.inFailedState {
    		return nil, status.Error(codes.FailedPrecondition, "failed precondition - key disabled")
    	}
    
    	buf := make([]byte, base64.StdEncoding.DecodedLen(len(request.Cipher)))
    	n, err := base64.StdEncoding.Decode(buf, request.Cipher)
    	if err != nil {
    		return nil, err
    	}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Mar 29 05:36:41 UTC 2023
    - 5.2K bytes
    - Viewed (0)
  10. src/vendor/golang.org/x/crypto/chacha20poly1305/xchacha20poly1305.go

    // Copyright 2018 The Go Authors. All rights reserved.
    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    package chacha20poly1305
    
    import (
    	"crypto/cipher"
    	"errors"
    
    	"golang.org/x/crypto/chacha20"
    )
    
    type xchacha20poly1305 struct {
    	key [KeySize]byte
    }
    
    // NewX returns a XChaCha20-Poly1305 AEAD that uses the given 256-bit key.
    //
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Nov 09 20:10:44 UTC 2021
    - 2.5K bytes
    - Viewed (0)
Back to top