amazon-web-services - 为什么AWS KMS加密/解密不需要数据 key ?

标签 amazon-web-services amazon-kms

我正在阅读 https://docs.aws.amazon.com/cli/latest/reference/kms/encrypt.htmlhttps://docs.aws.amazon.com/cli/latest/reference/kms/decrypt.html 中的 AWS 加密 cli 文档。我发现我无需创建数据 key 即可加密/解密。当我读取 https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html 时,它表示我需要使用 KMS CMK 生成用于加密我的数据的数据 key 。 所以我很困惑我是否需要数据 key ?

最佳答案

CMK 旨在加密/解密数据 key 。因此,直接调用加密函数时可以加密的明文数量限制为 4 KB。您可以通过传递大于 4 KB 的消息来轻松测试这一点。

These operations are designed to encrypt and decrypt data keys. They use an AWS KMS customer master key (CMK) in the encryption operations and they cannot accept more than 4 KB (4096 bytes) of data. Although you might use them to encrypt small amounts of data, such as a password or RSA key, they are not designed to encrypt application data.

关于amazon-web-services - 为什么AWS KMS加密/解密不需要数据 key ?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/59877193/

相关文章:

amazon-web-services - CloudFront 速率限制规则不起作用

amazon-web-services - AWS SSM 代理 - 使用 aws cli,有没有办法列出所有缺少 SSM 代理的 AWS 实例?

amazon-web-services - Redshift 查询限制为 100 mb

amazon-web-services - 使用月度许可在云 (AWS) 上许可产品

amazon-web-services - 新的 key 策略将不允许您将来更新 key 策略

amazon-web-services - Docker Elastic Beanstalk ELB忽略.ebextesnions

c# - 如何使用签名版本 4 生成 AWS S3 预签名 URL

amazon-web-services - 使用 AWS KMS 加密静态数据的目的是什么?

amazon-web-services - AWS SAM : How to create an S3 bucket with an already existing encryption key using SAM