Erase keys after using them. (Copies created by ciphers, etc, may

still exist.)
This commit is contained in:
akwizgran
2011-11-16 16:22:35 +00:00
parent ece03038f4
commit f10512d787
10 changed files with 115 additions and 62 deletions

View File

@@ -4,6 +4,9 @@ import javax.crypto.SecretKey;
public interface ErasableKey extends SecretKey {
/** Returns a copy of the key. */
ErasableKey copy();
/** Erases the key from memory. */
void erase();
}