From c6305045e37ed53c91069c01a5098ed3bd6c8007 Mon Sep 17 00:00:00 2001 From: Daniel Hougaard Date: Tue, 15 Apr 2025 05:24:09 +0400 Subject: [PATCH] Revert "fix(docs): rename `isDigest` to `preDigested`" This reverts commit 2642f7501ddbfee9d7fa39955e5b6e9d124040b7. --- docs/documentation/platform/kms/overview.mdx | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/docs/documentation/platform/kms/overview.mdx b/docs/documentation/platform/kms/overview.mdx index 1abdf55e3..577373ab8 100644 --- a/docs/documentation/platform/kms/overview.mdx +++ b/docs/documentation/platform/kms/overview.mdx @@ -284,7 +284,7 @@ In the following steps, we explore how to generate a key and use it to sign data ``` - To sign predigested data, you can pass `"preDigested": true` in the request body. This requires the data to be a base64 encoded digest of the data you wish to sign. + To sign predigested data, you can pass `"isDigest": true` in the request body. This requires the data to be a base64 encoded digest of the data you wish to sign. It's important that the digest is created using the same hashing algorithm as the signing algorithm. As an example, you would create the digest with `SHA512` if you are using the `RSASSA_PKCS1_V1_5_SHA_512` signing algorithm. @@ -346,7 +346,7 @@ In the following steps, we explore how to verify data using an existing key in I } ``` - To verify predigested data, you can pass `"preDigested": true` in the request body. This requires the data to be a base64 encoded digest of the data you wish to verify. + To verify predigested data, you can pass `"isDigest": true` in the request body. This requires the data to be a base64 encoded digest of the data you wish to verify. It's important that the digest is created using the same hashing algorithm as the signing algorithm. As an example, you would create the digest with `SHA512` if you are using the `RSASSA_PKCS1_V1_5_SHA_512` signing algorithm. @@ -378,7 +378,7 @@ In the following steps, we explore how to verify data using an existing key in I To sign and verify a digest using the Infisical KMS, you can use the `Sign` and `Verify` endpoints respectively. - You will need to pass `"preDigested": true` in the request body to indicate that you are signing or verifying a digest. + You will need to pass `"isDigest": true` in the request body to indicate that you are signing or verifying a digest. The data you are signing or verifying will need to be a base64 encoded digest of the data you wish to sign or verify. It's important that the digest is created using the same hashing algorithm as the signing algorithm. As an example, you would create the digest with `SHA512` if you are using the `RSASSA_PKCS1_V1_5_SHA_512` signing algorithm. @@ -396,7 +396,7 @@ In the following steps, we explore how to verify data using an existing key in I --data '{ "data": , "signingAlgorithm": "RSASSA_PKCS1_V1_5_SHA_512", - "preDigested": true + "isDigest": true }' ``` @@ -420,7 +420,7 @@ In the following steps, we explore how to verify data using an existing key in I "data": , "signature": , "signingAlgorithm": "RSASSA_PKCS1_V1_5_SHA_512", - "preDigested": true + "isDigest": true }' ```