Misc cleanup
This commit is contained in:
parent
9b5fa56215
commit
084ce14451
17 changed files with 101 additions and 620 deletions
|
|
@ -10,6 +10,7 @@ import java.util.Map;
|
|||
/**
|
||||
* Cross-platform memory locking and secure zeroing for sensitive cryptographic buffers. Fails gracefully if unavailable.
|
||||
*/
|
||||
@SuppressWarnings("SameReturnValue")
|
||||
public final class SecureMemory {
|
||||
|
||||
@Getter
|
||||
|
|
@ -75,6 +76,7 @@ public final class SecureMemory {
|
|||
/**
|
||||
* Wraps bytes with memory locking and guaranteed zeroing on close. AutoCloseable for try-with-resources.
|
||||
*/
|
||||
@SuppressWarnings("SameReturnValue")
|
||||
public static class SecureBuffer implements AutoCloseable {
|
||||
|
||||
private final Arena arena;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue