mirror of
https://github.com/etesync/android
synced 2024-12-23 15:18:14 +00:00
Journalmanager crypto: Make AsymmetricKeyPair serializable.
This should fix a rare crash on the login page.
This commit is contained in:
parent
71d694c1c1
commit
2e25c44d78
@ -36,6 +36,7 @@ import org.spongycastle.crypto.util.SubjectPublicKeyInfoFactory;
|
||||
import org.spongycastle.util.encoders.Hex;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.io.Serializable;
|
||||
import java.math.BigInteger;
|
||||
import java.security.SecureRandom;
|
||||
import java.util.Arrays;
|
||||
@ -68,7 +69,7 @@ public class Crypto {
|
||||
}
|
||||
|
||||
@RequiredArgsConstructor
|
||||
public static class AsymmetricKeyPair {
|
||||
public static class AsymmetricKeyPair implements Serializable {
|
||||
@Getter(AccessLevel.PUBLIC)
|
||||
private final byte[] privateKey;
|
||||
@Getter(AccessLevel.PUBLIC)
|
||||
|
Loading…
Reference in New Issue
Block a user