Re: Proposal: ChaCha20 and ChaCha20-Poly1305 Cipher implementations

2018-01-27 Thread Bernd Eckenfels
Hello Jamil, thanks BTW for bringing modern cryto to the OpenJDK. 😊 I was not refering to OID for getInstance, however now that you mention it it would be good to have such an alias. RFC 8103 defines id-alg-AEADChaCha20Poly1305 OBJECT IDENTIFIER ::={ iso(1) member-body(2) us(840) rsadsi(113549

Re: Proposal: ChaCha20 and ChaCha20-Poly1305 Cipher implementations

2018-01-27 Thread Jamil Nimeh
Hi Bernd, To your last question, maybe we don't provide an encoding and Cipher.getParameters() would throw an exception.  And the form of Cipher.getInstance() that takes AlgorithmParameters for ChaCha20 would throw an exception also. And down the line if a parameter encoding is standardized we c