I think I could pull in Convert.hexStringToByteArray.  I might try pulling in that test class locally just to make sure things still run before you commit the field arithmetic stuff.  I also noticed I left in some debug routines in ChaCha20Cipher that need to get the axe, so I'll cut those out today.

--Jamil

On 3/28/2018 6:59 AM, Adam Petcher wrote:
On 3/28/2018 2:48 AM, sha.ji...@oracle.com wrote:

Would you like to move this method to a test lib class, like test/lib/jdk/test/lib/Utils.java? In fact, this class has a method, named toHexString, for converting bin to hex.

This method appears to be the same as Convert.hexStringToByteArray that I added to jdk.test.lib along with the field arithmetic implementation. That code is not incorporated yet, but the Poly1305 code depends on the field arithmetic code, anyway. So adding this dependency may be reasonable.

Reply via email to