Factor out Field25519 and add basic tests for it.
We want to make sure that the arithmetic of field F_(2^255 - 19) is accurate. Basic tests: We generate random numbers, make computations with Field25519 and compare the results with Java BigInteger. Change-Id: I7f9d15d163cface359c9671306aab19a4621b71e ORIGINAL_AUTHOR=Quan Nguyen <quannguyen@google.com> GitOrigin-RevId: 75c5356416438b54a18b656ee618aaade85b8cae
Showing
- java/src/main/java/com/google/crypto/tink/subtle/BUILD 3 additions, 0 deletionsjava/src/main/java/com/google/crypto/tink/subtle/BUILD
- java/src/main/java/com/google/crypto/tink/subtle/Curve25519.java 60 additions, 596 deletions...c/main/java/com/google/crypto/tink/subtle/Curve25519.java
- java/src/main/java/com/google/crypto/tink/subtle/Ed25519.java 97 additions, 97 deletions.../src/main/java/com/google/crypto/tink/subtle/Ed25519.java
- java/src/main/java/com/google/crypto/tink/subtle/Ed25519ConstantsGenerator.java 6 additions, 6 deletions.../google/crypto/tink/subtle/Ed25519ConstantsGenerator.java
- java/src/main/java/com/google/crypto/tink/subtle/Ed25519Sign.java 2 additions, 2 deletions.../main/java/com/google/crypto/tink/subtle/Ed25519Sign.java
- java/src/main/java/com/google/crypto/tink/subtle/Ed25519Verify.java 2 additions, 2 deletions...ain/java/com/google/crypto/tink/subtle/Ed25519Verify.java
- java/src/main/java/com/google/crypto/tink/subtle/Field25519.java 594 additions, 0 deletions...c/main/java/com/google/crypto/tink/subtle/Field25519.java
- java/src/main/java/com/google/crypto/tink/subtle/NaClCryptoBox.java 2 additions, 2 deletions...ain/java/com/google/crypto/tink/subtle/NaClCryptoBox.java
- java/src/test/java/com/google/crypto/tink/subtle/Field25519Test.java 169 additions, 0 deletions...st/java/com/google/crypto/tink/subtle/Field25519Test.java
Loading
Please register or sign in to comment