View source: R/kms_operations.R
kms_sign | R Documentation |
Creates a digital signature for a message or message digest by using the private key in an asymmetric signing KMS key. To verify the signature, use the verify
operation, or use the public key in the same asymmetric KMS key outside of KMS. For information about asymmetric KMS keys, see Asymmetric KMS keys in the Key Management Service Developer Guide.
See https://www.paws-r-sdk.com/docs/kms_sign/ for full documentation.
kms_sign(
KeyId,
Message,
MessageType = NULL,
GrantTokens = NULL,
SigningAlgorithm,
DryRun = NULL
)
KeyId |
[required] Identifies an asymmetric KMS key. KMS uses the private key in the
asymmetric KMS key to sign the message. The To specify a KMS key, use its key ID, key ARN, alias name, or alias ARN.
When using an alias name, prefix it with For example:
To get the key ID and key ARN for a KMS key, use
|
Message |
[required] Specifies the message or message digest to sign. Messages can be 0-4096 bytes. To sign a larger message, provide a message digest. If you provide a message digest, use the |
MessageType |
Tells KMS whether the value of the When the value of Use the When the value of You can submit a message digest and omit the The hashing algorithm in that
|
GrantTokens |
A list of grant tokens. Use a grant token when your permission to call this operation comes from a new grant that has not yet achieved eventual consistency. For more information, see Grant token and Using a grant token in the Key Management Service Developer Guide. |
SigningAlgorithm |
[required] Specifies the signing algorithm to use when signing the message. Choose an algorithm that is compatible with the type and size of the specified asymmetric KMS key. When signing with RSA key pairs, RSASSA-PSS algorithms are preferred. We include RSASSA-PKCS1-v1_5 algorithms for compatibility with existing applications. |
DryRun |
Checks if your request will succeed. To learn more about how to use this parameter, see Testing your KMS API calls in the Key Management Service Developer Guide. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.