mirror of
https://github.com/signalapp/libsignal.git
synced 2026-05-09 08:33:13 +02:00
Expose ProfileKey.deriveAccessKey()
Client apps will be able to switch over to this at their leisure.
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
@@ -38,4 +38,8 @@ public final class ProfileKey extends ByteArray {
|
||||
}
|
||||
}
|
||||
|
||||
public byte[] deriveAccessKey() {
|
||||
return Native.ProfileKey_DeriveAccessKey(contents);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user