(ECPublicKey key, ECKeyInfo keyinfo)
| 605 | } |
| 606 | |
| 607 | private static byte [] |
| 608 | fromECDSAPublicKey(ECPublicKey key, ECKeyInfo keyinfo) { |
| 609 | DNSOutput out = new DNSOutput(); |
| 610 | |
| 611 | BigInteger x = key.getW().getAffineX(); |
| 612 | BigInteger y = key.getW().getAffineY(); |
| 613 | |
| 614 | writePaddedBigInteger(out, x, keyinfo.length); |
| 615 | writePaddedBigInteger(out, y, keyinfo.length); |
| 616 | |
| 617 | return out.toByteArray(); |
| 618 | } |
| 619 | |
| 620 | /** Builds a DNSKEY record from a PublicKey */ |
| 621 | static byte [] |
no test coverage detected