From 6de30124915718e56bf25cba1f49a919d9def1c0 Mon Sep 17 00:00:00 2001 From: John Jiang Date: Wed, 27 Mar 2024 15:47:37 +0800 Subject: [PATCH] TKSS-748: Typos in READMEs --- kona-crypto/README.md | 6 +++--- kona-ssl/README.md | 3 --- 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/kona-crypto/README.md b/kona-crypto/README.md index 2bda49ea..bd01daf9 100644 --- a/kona-crypto/README.md +++ b/kona-crypto/README.md @@ -41,8 +41,8 @@ the less the position is, the higher the priority is. The minimum value is 1. #### Key pair Generating SM2 key pair is the same as generating the key pairs on other EC curves. It just needs to invoke the standard JDK APIs. `KonaCrypto` provides two `KeyPairGenerator` implementations for generating SM2 key pair: -- The JDK builtin `ECKeyPairGenerator`. In the key pair generated by this implementations, the format of private key is `PKCS#8` and the format of public key is `X.509`. -- A new introduced `SM2KeyPairGenerator`. In the key pair generated by this implementations, the format of the both keys is `RAW`. The length of private key is 32-bytes. The length of public key is 65-bytes, The format is `04||x||y`. `04` represents the uncompressed format; `x` and `y` are the coordinates of the public point in the curve, and both are 32-bytes. +- The JDK builtin `ECKeyPairGenerator`. In the key pair generated by this implementation, the format of private key is `PKCS#8` and the format of public key is `X.509`. +- A new introduced `SM2KeyPairGenerator`. In the key pair generated by this implementation, the format of the both keys is `RAW`. The length of private key is 32-bytes. The length of public key is 65-bytes, The format is `04||x||y`. `04` represents the uncompressed format; `x` and `y` are the coordinates of the public point in the curve, and both are 32-bytes. Create `KeyPairGenerator` implementation on `ECKeyPairGenerator`. @@ -81,7 +81,7 @@ SM2 private key is 32-bytes length without any format. byte[] encodedPrivateKey = privateKey.getEncoded(); ``` -For more infomation on key pair generation, please refer to the official [KeyPairGenerator] docs. +For more information on key pair generation, please refer to the official [KeyPairGenerator] docs. #### Prepare public key and private key Generally, in the signing and encrypting operations, the key pairs are already generated. They are not generated on the runtime. It just reads the existing public key and private key to create PublicKey and PrivateKey instances respectively. diff --git a/kona-ssl/README.md b/kona-ssl/README.md index 5ac0ed8a..3b7c4646 100644 --- a/kona-ssl/README.md +++ b/kona-ssl/README.md @@ -65,8 +65,5 @@ Please read the official [SSLContext] reference for understanding it deeply. [RFC 8998]: -[JSSE reference]: - - [SSLContext]: