Convert publickey_verify to bridge_fn

This included reordering parameters in the C version so that the
output parameter is always first. That's consistent with our other C
APIs anyway.
This commit is contained in:
Jordan Rose
2020-11-24 10:53:15 -08:00
parent a569f2af87
commit 19be1c569d
9 changed files with 79 additions and 50 deletions

View File

@@ -86,7 +86,7 @@ public final class Native {
public static native void ECPublicKey_Destroy(long handle);
public static native byte[] ECPublicKey_GetPublicKeyBytes(long handle);
public static native byte[] ECPublicKey_Serialize(long handle);
public static native boolean ECPublicKey_Verify(long handle, byte[] message, byte[] signature);
public static native boolean ECPublicKey_Verify(long key, byte[] message, byte[] signature);
public static native byte[] GroupCipher_DecryptMessage(long senderKeyName, byte[] message, SenderKeyStore store);
public static native byte[] GroupCipher_EncryptMessage(long senderKeyName, byte[] message, SenderKeyStore store);