Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 497 for key (0.3 sec)

  1. internal/crypto/key.go

    }
    
    // SealedKey represents a sealed object key. It can be stored
    // at an untrusted location.
    type SealedKey struct {
    	Key       [64]byte // The encrypted and authenticated object-key.
    	IV        [32]byte // The random IV used to encrypt the object-key.
    	Algorithm string   // The sealing algorithm used to encrypt the object key.
    }
    
    // Seal encrypts the ObjectKey using the 256 bit external key and IV. The sealed
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Tue Mar 19 20:28:10 GMT 2024
    - 6.4K bytes
    - Viewed (0)
  2. internal/kms/single-key.go

    	key, err := base64.StdEncoding.DecodeString(b64Key)
    	if err != nil {
    		return nil, err
    	}
    	return New(keyID, key)
    }
    
    // New returns a single-key KMS that derives new DEKs from the
    // given key.
    func New(keyID string, key []byte) (KMS, error) {
    	if len(key) != 32 {
    		return nil, errors.New("kms: invalid key length " + strconv.Itoa(len(key)))
    	}
    	return secretKey{
    		keyID: keyID,
    		key:   key,
    	}, nil
    }
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri Mar 01 21:09:42 GMT 2024
    - 7.9K bytes
    - Viewed (0)
  3. .github/workflows/root.key

    Harshavardhana <******@****.***> 1620513629 -0700
    Others
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sat May 08 22:40:29 GMT 2021
    - 119 bytes
    - Viewed (0)
  4. internal/kms/key-manager.go

    )
    
    // KeyManager is the generic interface that handles KMS key operations
    type KeyManager interface {
    	// CreateKey creates a new key at the KMS with the given key ID.
    	CreateKey(ctx context.Context, keyID string) error
    
    	// DeleteKey deletes a key at the KMS with the given key ID.
    	// Please note that is a dangerous operation.
    	// Once a key has been deleted all data that has been encrypted with it cannot be decrypted
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri Mar 01 21:09:42 GMT 2024
    - 1.9K bytes
    - Viewed (0)
  5. internal/crypto/key_test.go

    	for i, test := range generateKeyTests {
    		i, test := i, test
    		func() {
    			defer recoverTest(i, test.ShouldPass, t)
    			key := GenerateKey(test.ExtKey[:], test.Random)
    			if [32]byte(key) == [32]byte{} {
    				t.Errorf("Test %d: generated key is zero key", i) // check that we generate random and unique key
    			}
    		}()
    	}
    }
    
    var generateIVTests = []struct {
    	Random     io.Reader
    	ShouldPass bool
    }{
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri Feb 02 00:13:57 GMT 2024
    - 6.8K bytes
    - Viewed (0)
  6. internal/kms/single-key_test.go

    func TestSingleKeyRoundtrip(t *testing.T) {
    	KMS, err := Parse("my-key:eEm+JI9/q4JhH8QwKvf3LKo4DEBl6QbfvAl1CAbMIv8=")
    	if err != nil {
    		t.Fatalf("Failed to initialize KMS: %v", err)
    	}
    
    	key, err := KMS.GenerateKey(context.Background(), "my-key", Context{})
    	if err != nil {
    		t.Fatalf("Failed to generate key: %v", err)
    	}
    	plaintext, err := KMS.DecryptKey(key.KeyID, key.Ciphertext, Context{})
    	if err != nil {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Tue Jul 19 01:54:27 GMT 2022
    - 3K bytes
    - Viewed (0)
  7. internal/event/target/testdata/contrib/certs/nats_server_key.pem

    -----BEGIN EC PRIVATE KEY----- MHcCAQEEILFuMS2xvsc/CsuqtSv3S2iSCcc28rZs AwEHoUQDQgAEqJSlCOxV SSC/X3+aUQzflOkL8MJQ5lxKodW== -----END EC PRIVATE KEY-----...
    Others
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Tue Jun 01 21:59:40 GMT 2021
    - 227 bytes
    - Viewed (0)
  8. internal/event/target/testdata/contrib/certs/nats_client_key.pem

    -----BEGIN EC PRIVATE KEY----- MHcCAQEEIBluB2BuspJc/ZwNmygNw06NbdTZDroAo AwEHoUQDQgAEQIWK0F2G+e4AaYcBT9aOUuwo8aBig 4rCvhUktmLZbVO3DOy+wHbiyG7hJxhx2EA== -----END EC PRIVATE KEY-----...
    Others
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Tue Jun 01 21:59:40 GMT 2021
    - 227 bytes
    - Viewed (0)
  9. internal/event/target/testdata/contrib/certs/root_ca_key.pem

    -----BEGIN EC PRIVATE KEY----- MHcCAQEEIB8tAGuc9FP4+zMvYRhoAoGCCqGSM49 AwEHoUQDQgAESvX1TRh3 hNSNEmiYKqaZvThB8N9i== -----END EC PRIVATE KEY-----...
    Others
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Tue Jun 01 21:59:40 GMT 2021
    - 227 bytes
    - Viewed (0)
  10. internal/logger/help.go

    		},
    		config.HelpKV{
    			Key:         KafkaClientTLSKey,
    			Description: "path to client key for mTLS auth",
    			Optional:    true,
    			Type:        "path",
    			Sensitive:   true,
    		},
    		config.HelpKV{
    			Key:         KafkaVersion,
    			Description: "specify the version of the Kafka cluster",
    			Optional:    true,
    			Type:        "string",
    		},
    		config.HelpKV{
    			Key:         QueueSize,
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Mar 07 20:17:46 GMT 2024
    - 6.4K bytes
    - Viewed (0)
Back to top