Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 7 of 7 for DEK (0.03 sec)

  1. internal/kms/kes.go

    	dek, err := c.client.GenerateKey(ctx, name, aad)
    	if err != nil {
    		if errors.Is(err, kes.ErrKeyNotFound) {
    			return DEK{}, ErrKeyNotFound
    		}
    		if errors.Is(err, kes.ErrNotAllowed) {
    			return DEK{}, ErrPermission
    		}
    		return DEK{}, errKeyGenerationFailed(err)
    	}
    	return DEK{
    		KeyID:      name,
    		Plaintext:  dek.Plaintext,
    		Ciphertext: dek.Ciphertext,
    	}, nil
    }
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Sun Aug 18 06:43:03 UTC 2024
    - 7.3K bytes
    - Viewed (0)
  2. internal/kms/secret-key.go

    // name of the secretKey.
    //
    // The returned DEK is encrypted using AES-GCM and the ciphertext format is compatible
    // with KES and MinKMS.
    func (s secretKey) GenerateKey(_ context.Context, req *GenerateKeyRequest) (DEK, error) {
    	if req.Name != s.keyID {
    		return DEK{}, ErrKeyNotFound
    	}
    	associatedData, err := req.AssociatedData.MarshalText()
    	if err != nil {
    		return DEK{}, err
    	}
    
    	const randSize = 28
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Sun Aug 18 06:43:03 UTC 2024
    - 8.3K bytes
    - Viewed (0)
  3. internal/kms/kms.go

    		AssociatedData: aad,
    		Length:         32,
    	})
    	if err != nil {
    		if errors.Is(err, kms.ErrKeyNotFound) {
    			return DEK{}, ErrKeyNotFound
    		}
    		if errors.Is(err, kms.ErrPermission) {
    			return DEK{}, ErrPermission
    		}
    		return DEK{}, errKeyGenerationFailed(err)
    	}
    
    	return DEK{
    		KeyID:      name,
    		Version:    resp.Version,
    		Plaintext:  resp.Plaintext,
    		Ciphertext: resp.Ciphertext,
    	}, nil
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Sun Aug 18 06:43:03 UTC 2024
    - 11.5K bytes
    - Viewed (0)
  4. internal/kms/conn.go

    	// not exist.
    	//
    	// The context is associated and tied to the generated DEK.
    	// The same context must be provided when the generated key
    	// should be decrypted. Therefore, it is the callers
    	// responsibility to remember the corresponding context for
    	// a particular DEK. The context may be nil.
    	GenerateKey(context.Context, *GenerateKeyRequest) (DEK, error)
    
    	// DecryptKey decrypts the ciphertext with the key referenced
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Sun Aug 18 06:43:03 UTC 2024
    - 5K bytes
    - Viewed (0)
  5. internal/kms/stub.go

    	return nil
    }
    
    // GenerateKey is a non-functional stub.
    func (s StubKMS) GenerateKey(_ context.Context, req *GenerateKeyRequest) (DEK, error) {
    	if !s.containsKeyName(req.Name) {
    		return DEK{}, ErrKeyNotFound
    	}
    	return DEK{
    		KeyID:      req.Name,
    		Version:    0,
    		Plaintext:  []byte("stubplaincharswhichare32bytelong"),
    		Ciphertext: []byte("stubplaincharswhichare32bytelong"),
    	}, nil
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Sun Aug 18 06:43:03 UTC 2024
    - 3.6K bytes
    - Viewed (0)
  6. docs/tr/docs/alternatives.md

    Böylece Flask-apispec, Python döküman dizilerine YAML gibi farklı bir syntax yazma sorununu çözmüş oldu.
    
    **FastAPI**'ı geliştirene dek benim favori arka uç kombinasyonum Flask'in yanında Marshmallow ve Webargs ile birlikte Flask-apispec idi.
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 20 19:20:23 UTC 2024
    - 28.8K bytes
    - Viewed (0)
  7. CHANGELOG/CHANGELOG-1.29.md

    - Added `apiserver_envelope_encryption_dek_cache_filled` to measure number of records in data encryption key (DEK) cache. ([#119878](https://github.com/kubernetes/kubernetes/pull/119878), [@ritazh](https://github.com/ritazh))
    Registered: Fri Nov 01 09:05:11 UTC 2024
    - Last Modified: Wed Oct 23 04:37:31 UTC 2024
    - 375.1K bytes
    - Viewed (1)
Back to top