(KEYBase r, ECKeyInfo keyinfo)
| 493 | "FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFC7634D81F4372DDF581A0DB248B0A77AECEC196ACCC52973"); |
| 494 | |
| 495 | private static PublicKey |
| 496 | toECGOSTPublicKey(KEYBase r, ECKeyInfo keyinfo) throws IOException, |
| 497 | GeneralSecurityException, MalformedKeyException |
| 498 | { |
| 499 | DNSInput in = new DNSInput(r.getKey()); |
| 500 | |
| 501 | BigInteger x = readBigIntegerLittleEndian(in, keyinfo.length); |
| 502 | BigInteger y = readBigIntegerLittleEndian(in, keyinfo.length); |
| 503 | ECPoint q = new ECPoint(x, y); |
| 504 | |
| 505 | KeyFactory factory = KeyFactory.getInstance("ECGOST3410"); |
| 506 | return factory.generatePublic(new ECPublicKeySpec(q, keyinfo.spec)); |
| 507 | } |
| 508 | |
| 509 | private static PublicKey |
| 510 | toECDSAPublicKey(KEYBase r, ECKeyInfo keyinfo) throws IOException, |
no test coverage detected