Expose ProfileKey.deriveAccessKey()

Client apps will be able to switch over to this at their leisure.
This commit is contained in:
Jordan Rose
2023-04-25 17:41:12 -07:00
parent f16584000e
commit c433d1e34c
12 changed files with 60 additions and 3 deletions

View File

@@ -311,6 +311,7 @@ public final class Native {
public static native void ProfileKeyCredentialRequest_CheckValidContents(byte[] buffer);
public static native void ProfileKey_CheckValidContents(byte[] buffer);
public static native byte[] ProfileKey_DeriveAccessKey(byte[] profileKey);
public static native byte[] ProfileKey_GetCommitment(byte[] profileKey, UUID uuid);
public static native byte[] ProfileKey_GetProfileKeyVersion(byte[] profileKey, UUID uuid);

View File

@@ -38,4 +38,8 @@ public final class ProfileKey extends ByteArray {
}
}
public byte[] deriveAccessKey() {
return Native.ProfileKey_DeriveAccessKey(contents);
}
}