mirror of
https://code.briarproject.org/briar/briar.git
synced 2026-02-20 14:49:53 +01:00
Return a copy when explicitly asked for one (fixes a test).
This commit is contained in:
@@ -31,7 +31,7 @@ class ErasableKeyImpl implements ErasableKey {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public ErasableKey copy() {
|
public ErasableKey copy() {
|
||||||
return new ErasableKeyImpl(getEncoded(), algorithm);
|
return new ErasableKeyImpl(key.clone(), algorithm);
|
||||||
}
|
}
|
||||||
|
|
||||||
public synchronized void erase() {
|
public synchronized void erase() {
|
||||||
|
|||||||
Reference in New Issue
Block a user