KeyEncoding: Clean up and reorganize to match style
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
This commit is contained in:
1 parent
c3afe5be2c
commit
f0f9192aed
3 files changed
+85
-71
No files matched your search
@@ -91,7 +91,7 @@ public class Interface extends BaseObservable implements Observable {
|
||||
|
||||
public void setPrivateKey(String privateKey) {
|
||||
// Avoid exceptions from Keypair while the user is typing.
|
||||
if (privateKey.length() != KeyEncoding.WG_KEY_LEN_BASE64)
|
||||
if (privateKey.length() != KeyEncoding.KEY_LENGTH_BASE64)
|
||||
return;
|
||||
keypair = new Keypair(privateKey);
|
||||
notifyPropertyChanged(BR.privateKey);
|
||||
|
||||
Reference in new issue
Block a user