Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for errKeyGenerationFailed (0.09 sec)

  1. internal/kms/errors.go

    	return Error{
    		Code:    http.StatusInternalServerError,
    		APICode: "kms:KeyListingFailed",
    		Err:     "failed to list keys at the KMS",
    		Cause:   err,
    	}
    }
    
    func errKeyGenerationFailed(err error) Error {
    	return Error{
    		Code:    http.StatusInternalServerError,
    		APICode: "kms:KeyGenerationFailed",
    		Err:     "failed to generate data key with KMS key",
    		Cause:   err,
    	}
    }
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Jul 16 14:03:03 UTC 2024
    - 3.6K bytes
    - Viewed (0)
  2. internal/kms/kes.go

    	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
    }
    
    // ImportKey imports a cryptographic key into the KMS.
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Sun Aug 18 06:43:03 UTC 2024
    - 7.3K bytes
    - Viewed (0)
  3. internal/kms/kms.go

    	})
    	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)
Back to top