From 0e6b599a6c78e25e28acc57ba5669037e5372c53 Mon Sep 17 00:00:00 2001 From: uniscon1105 Date: Fri, 26 Jan 2018 12:34:15 +0100 Subject: [PATCH] Fix help text for the CreateKeyPair demo The help message for the CreateKeyPair demo shows an incorrect algorithm (AES) but for asymmetric keys PyKMIP only supports RSA with a minimum length of 512-bits. This change updates the PyKMIP documentation to correct this. Signed-off-by: Gaurav Kumar Garg --- docs/source/server.rst | 8 ++++---- kmip/demos/utils.py | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/docs/source/server.rst b/docs/source/server.rst index aa1ab5b..fe2cfb8 100644 --- a/docs/source/server.rst +++ b/docs/source/server.rst @@ -373,11 +373,11 @@ CreateKeyPair ~~~~~~~~~~~~~ The CreateKeyPair operation is used to create asymmetric key pairs. -========== ========== +========== =============== Algorithm Key Sizes -========== ========== -RSA 1024, 2048 -========== ========== +========== =============== +RSA 512, 1024, 2048 +========== =============== All users are allowed to create asymmetric keys. There are no quotas currently enforced by the server. diff --git a/kmip/demos/utils.py b/kmip/demos/utils.py index 876e086..a93a48b 100644 --- a/kmip/demos/utils.py +++ b/kmip/demos/utils.py @@ -112,7 +112,7 @@ def build_cli_parser(operation=None): type="str", default=None, dest="algorithm", - help="Encryption algorithm for the secret (e.g., AES)") + help="Encryption algorithm for the secret (e.g., RSA)") parser.add_option( "-l", "--length", @@ -120,7 +120,7 @@ def build_cli_parser(operation=None): type="int", default=None, dest="length", - help="Key length in bits (e.g., 128, 256)") + help="Key length in bits (e.g., 512, 1024, 2048)") parser.add_option( "-n", "--name",