Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for secureWipeKey (1.35 sec)

  1. src/main/java/jcifs/internal/smb2/Smb2SigningDigest.java

            } finally {
                this.signingLock.unlock();
            }
        }
    
        /**
         * Securely wipe signing key from memory
         */
        public void secureWipeKey() {
            this.signingLock.lock();
            try {
                if (this.signingKey != null) {
                    java.util.Arrays.fill(this.signingKey, (byte) 0);
                    this.signingKey = null;
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 9.9K bytes
    - Viewed (0)
  2. src/test/java/jcifs/internal/smb2/Smb2SigningDigestTest.java

                CommonServerMessageBlock response = mock(CommonServerMessageBlock.class);
    
                digest.sign(data, 0, data.length, request, response);
    
                // Wipe the key
                digest.secureWipeKey();
    
                // Verify digest fails after wiping
                byte[] newData = new byte[128];
                Arrays.fill(newData, (byte) 0x66);
    
                assertThrows(IllegalStateException.class, () -> {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 43.7K bytes
    - Viewed (0)
Back to top