public static byte[] serializeECPublicKey(short[] ecPointFormats, ECPublicKeyParameters keyParameters) throws IOException { return serializeECPoint(ecPointFormats, keyParameters.getQ()); }
public static byte[] serializeECPublicKey(short[] ecPointFormats, ECPublicKeyParameters keyParameters) throws IOException { return serializeECPoint(ecPointFormats, keyParameters.getQ()); }
public static void writeECPoint(short[] ecPointFormats, ECPoint point, OutputStream output) throws IOException { TlsUtils.writeOpaque8(serializeECPoint(ecPointFormats, point), output); }
public static void writeECPoint(short[] ecPointFormats, ECPoint point, OutputStream output) throws IOException { TlsUtils.writeOpaque8(serializeECPoint(ecPointFormats, point), output); }
/** * Serializes an ec point and returns its encoded version, consisting of one * byte encoding information and ec coordinates * * @param ecPointFormats * The EcPointFormats * @param point * The Point that should be converted * @return The serialized ECPoint * @throws IOException * If something goes wrong during Serialisation */ public static byte[] serializeECPoint(ECPointFormat[] ecPointFormats, ECPoint point) throws IOException { short[] pf = convertPointFormats(ecPointFormats); return TlsECCUtils.serializeECPoint(pf, point); }
TlsUtils.writeOpaque8(serializeECPoint(ecPointFormats, ecParameters.getG()), output); writeECParameter(ecParameters.getN(), output); writeECParameter(ecParameters.getH(), output);
TlsUtils.writeOpaque8(serializeECPoint(ecPointFormats, ecParameters.getG()), output); writeECParameter(ecParameters.getN(), output); writeECParameter(ecParameters.getH(), output);