Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 62 for encryptKey (0.16 sec)

  1. cmd/kubeadm/app/util/crypto/crypto_test.go

    	tests := map[string]struct {
    		encryptKey       []byte
    		decryptKey       []byte
    		data             []byte
    		expectDecryptErr bool
    	}{
    		"can decrypt using the correct key": {
    			encryptKey:       key1,
    			decryptKey:       key1,
    			data:             testData,
    			expectDecryptErr: false,
    		},
    		"can't decrypt using incorrect key": {
    			encryptKey:       key1,
    			decryptKey:       key2,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Aug 17 14:40:46 UTC 2021
    - 2.4K bytes
    - Viewed (0)
  2. internal/kms/kes.go

    	return c.client.ImportKey(ctx, keyID, &kes.ImportKeyRequest{
    		Key: bytes,
    	})
    }
    
    // EncryptKey Encrypts and authenticates a (small) plaintext with the cryptographic key
    // The plaintext must not exceed 1 MB
    func (c *kesConn) EncryptKey(keyID string, plaintext []byte, ctx Context) ([]byte, error) {
    	ctxBytes, err := ctx.MarshalText()
    	if err != nil {
    		return nil, err
    	}
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Tue May 07 23:55:37 UTC 2024
    - 7.1K bytes
    - Viewed (0)
  3. docs/distributed/decom-encrypted.sh

    	exit 1
    fi
    
    got_checksum=$(./mc cat myminio/versioned/dsync/drwmutex.go | md5sum)
    if [ "${expected_checksum}" != "${got_checksum}" ]; then
    	echo "BUG: decommission failed on encrypted objects: expected ${expected_checksum} got ${got_checksum}"
    	exit 1
    fi
    
    ./s3-check-md5 -versions -access-key minioadmin -secret-key minioadmin -endpoint http://127.0.0.1:9001/ -bucket versioned
    
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Mon May 27 19:17:46 UTC 2024
    - 4.1K bytes
    - Viewed (0)
  4. docs/distributed/decom-encrypted-kes.sh

    if [ "${expected_checksum}" != "${got_checksum}" ]; then
    	echo "BUG: decommission failed on encrypted objects: expected ${expected_checksum} got ${got_checksum}"
    	exit 1
    fi
    
    got_checksum_1=$(./mc cat myminio/versioned-1/dsync/drwmutex.go | md5sum)
    if [ "${expected_checksum}" != "${got_checksum_1}" ]; then
    	echo "BUG: decommission failed on encrypted objects: expected ${expected_checksum} got ${got_checksum_1}"
    	exit 1
    fi
    
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Mon May 27 19:17:46 UTC 2024
    - 7.1K bytes
    - Viewed (0)
  5. docs/distributed/decom-encrypted-sse-s3.sh

    	exit 1
    fi
    
    got_checksum=$(./mc cat myminio/versioned/dsync/drwmutex.go | md5sum)
    if [ "${expected_checksum}" != "${got_checksum}" ]; then
    	echo "BUG: decommission failed on encrypted objects: expected ${expected_checksum} got ${got_checksum}"
    	exit 1
    fi
    
    ./mc ls -r myminio/versioned >decommissioned_ns.txt
    ./mc ls -r --versions myminio/versioned >decommissioned_ns_versions.txt
    
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Mon May 27 19:17:46 UTC 2024
    - 4.5K bytes
    - Viewed (0)
  6. docs/site-replication/run-ssec-object-replication-with-compression.sh

    	exit_1
    fi
    
    # Stat the SSEC objects from source site
    echo "Stat minio1/test-bucket/encrypted"
    ./mc stat minio1/test-bucket/encrypted --enc-c "minio1/test-bucket/encrypted=${TEST_MINIO_ENC_KEY}" --insecure --json
    stat_out1=$(./mc stat minio1/test-bucket/encrypted --enc-c "minio1/test-bucket/encrypted=${TEST_MINIO_ENC_KEY}" --insecure --json)
    src_obj1_etag=$(echo "${stat_out1}" | jq '.etag')
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Mon Jun 10 15:31:51 UTC 2024
    - 8.2K bytes
    - Viewed (0)
  7. src/crypto/x509/pem_decrypt.go

    	encrypted := make([]byte, len(data), len(data)+pad)
    	// We could save this copy by encrypting all the whole blocks in
    	// the data separately, but it doesn't seem worth the additional
    	// code.
    	copy(encrypted, data)
    	// See RFC 1423, Section 1.1.
    	for i := 0; i < pad; i++ {
    		encrypted = append(encrypted, byte(pad))
    	}
    	enc.CryptBlocks(encrypted, encrypted)
    
    	return &pem.Block{
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Oct 13 17:09:47 UTC 2023
    - 7.2K bytes
    - Viewed (0)
  8. src/crypto/x509/pem_decrypt_test.go

    			t.Error("encrypt: ", err)
    			continue
    		}
    		if !IsEncryptedPEMBlock(block) {
    			t.Error("PEM block does not appear to be encrypted")
    		}
    		if block.Type != "RSA PRIVATE KEY" {
    			t.Errorf("unexpected block type; got %q want %q", block.Type, "RSA PRIVATE KEY")
    		}
    		if block.Headers["Proc-Type"] != "4,ENCRYPTED" {
    			t.Errorf("block does not have correct Proc-Type header")
    		}
    		der, err := DecryptPEMBlock(block, password)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 21 20:03:55 UTC 2019
    - 8.9K bytes
    - Viewed (0)
  9. staging/src/k8s.io/apiserver/pkg/storage/value/encrypt/identity/identity.go

    	errEncryptedData = fmt.Errorf("identity transformer tried to read encrypted data")
    )
    
    // identityTransformer performs no transformation on provided data, but validates
    // that the data is not encrypted data during TransformFromStorage
    type identityTransformer struct{}
    
    // NewEncryptCheckTransformer returns an identityTransformer which returns an error
    // on attempts to read encrypted data
    func NewEncryptCheckTransformer() value.Transformer {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Oct 13 14:52:29 UTC 2022
    - 2K bytes
    - Viewed (0)
  10. .typos.toml

        "eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiJ9.*",
        "MIIDBTCCAe2gAwIBAgIQWHw7h.*",
        'http\.Header\{"X-Amz-Server-Side-Encryptio":',
        "ZoEoZdLlzVbOlT9rbhD7ZN7TLyiYXSAlB79uGEge",
    ]
    
    [default.extend-words]
    "encrypter" = "encrypter"
    "kms" = "kms"
    "requestor" = "requestor"
    
    [default.extend-identifiers]
    "HashiCorp" = "HashiCorp"
    
    [type.go.extend-identifiers]
    "bui" = "bui"
    "dm2nd" = "dm2nd"
    "ot" = "ot"
    "ParseND" = "ParseND"
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Thu Apr 18 15:15:02 UTC 2024
    - 854 bytes
    - Viewed (0)
Back to top