Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for errDecryptionFailed (0.14 sec)

  1. internal/kms/errors.go

    	return Error{
    		Code:    http.StatusInternalServerError,
    		APICode: "kms:KeyGenerationFailed",
    		Err:     "failed to generate data key with KMS key",
    		Cause:   err,
    	}
    }
    
    func errDecryptionFailed(err error) Error {
    	return Error{
    		Code:    http.StatusInternalServerError,
    		APICode: "kms:DecryptionFailed",
    		Err:     "failed to decrypt ciphertext 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

    			return nil, ErrKeyNotFound
    		}
    		if errors.Is(err, kes.ErrDecrypt) {
    			return nil, ErrDecrypt
    		}
    		if errors.Is(err, kes.ErrNotAllowed) {
    			return nil, ErrPermission
    		}
    		return nil, errDecryptionFailed(err)
    	}
    	return plaintext, nil
    }
    
    // MAC generates the checksum of the given req.Message using the key
    // with the req.Name at 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 nil, ErrKeyNotFound
    		}
    		if errors.Is(err, kms.ErrPermission) {
    			return nil, ErrPermission
    		}
    		return nil, errDecryptionFailed(err)
    	}
    	return resp.Plaintext, nil
    }
    
    // MAC generates the checksum of the given req.Message using the key
    // with the req.Name at the KMS.
    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