06b80c9dcd
BouncyCastle had an implementation for X25519 and X448 for some time. But the JCA interface has been added only recently in version 1.61. There is an overflow bug in this version that will be fixed upstream in verion 1.63. The tests ignore some minor bugs (Runtime exceptions instead of checked exceptions) so that the test against BouncyCastle can be added as a presubmit test. Changing the ASN encoding of XDH keys. Previously they used the jdk encoding. This encoding was wrong. NOKEYCHECK=True PiperOrigin-RevId: 264348566 GitOrigin-RevId: 6564f188a3ed50f73c48cb8c41833d8c3798ab78