Crypto: Add X25519DH vectors

and add note about public key high bit
This commit is contained in:
zzz
2024-02-06 08:18:02 -05:00
parent 92a649d655
commit 91f5bb3540
2 changed files with 72 additions and 0 deletions

View File

@@ -469,6 +469,7 @@ public final class Curve25519 {
* @param offset Offset into the result buffer.
* @param privateKey The private key to use in the evaluation.
* @param publicKey The public key to use in the evaluation, or null
* MUST have MSB high bit cleared, i.e. publicKey[31] & 0x80 == 0
* if the base point of the curve should be used.
*/
public static void eval(byte[] result, int offset, byte[] privateKey, byte[] publicKey)