Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -629,7 +629,7 @@ async def encrypt(
) -> EncryptResponse:
"""
Encrypt a payload.
Encrypt a payload using an existing key, specified by the `key_id` parameter. Only keys with a usage set to `symmetric_encryption` are supported by this method. The maximum payload size that can be encrypted is 64 KB of plaintext.
Encrypt a payload using an existing key, specified by the `key_id` parameter. The maximum payload size that can be encrypted is 64 KB of plaintext.
:param key_id: The key must have an usage set to `symmetric_encryption` or `asymmetric_encryption`.
:param plaintext: Data size must be between 1 and 65535 bytes.
:param region: Region to target. If none is passed will use default region from the config.
Expand Down
2 changes: 1 addition & 1 deletion scaleway/scaleway/key_manager/v1alpha1/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -629,7 +629,7 @@ def encrypt(
) -> EncryptResponse:
"""
Encrypt a payload.
Encrypt a payload using an existing key, specified by the `key_id` parameter. Only keys with a usage set to `symmetric_encryption` are supported by this method. The maximum payload size that can be encrypted is 64 KB of plaintext.
Encrypt a payload using an existing key, specified by the `key_id` parameter. The maximum payload size that can be encrypted is 64 KB of plaintext.
:param key_id: The key must have an usage set to `symmetric_encryption` or `asymmetric_encryption`.
:param plaintext: Data size must be between 1 and 65535 bytes.
:param region: Region to target. If none is passed will use default region from the config.
Expand Down