45cf87d08933ec19d18bbdb971f82b8a160a1e1f
Files Diff
- Added: 1
- Removed: 1
- Renamed: 0
- Modified: 10
Refactorings reported:
| Refactoring Name | Occurences | ||
|---|---|---|---|
| Rename Method | 2 | ||
| Rename Method private encryptContentLength(contentLength long, iv byte[]) : byte[] renamed to private encryptHeaderData(plaintextBytes byte[], iv byte[]) : byte[] in class org.cryptomator.crypto.aes256.Aes256Cryptor | From | To | |
| Rename Method private decryptContentLength(encryptedContentLengthBytes byte[], iv byte[]) : long renamed to private decryptHeaderData(ciphertextBytes byte[], iv byte[]) : byte[] in class org.cryptomator.crypto.aes256.Aes256Cryptor | From | To | |
| Change Parameter Type | 1 | ||
| Change Parameter Type contentLength : long to plaintextBytes : byte[] in method private encryptHeaderData(plaintextBytes byte[], iv byte[]) : byte[] in class org.cryptomator.crypto.aes256.Aes256Cryptor | From | To | |
| Rename Variable | 5 | ||
| Rename Variable headerMac : byte[] to storedHeaderMac : byte[] in method public decryptFile(encryptedFile SeekableByteChannel, plaintextFile OutputStream) : Long in class org.cryptomator.crypto.aes256.Aes256Cryptor | From | To | |
| Rename Variable contentMac : byte[] to encryptedContentKeyBytes : byte[] in method public decryptFile(encryptedFile SeekableByteChannel, plaintextFile OutputStream) : Long in class org.cryptomator.crypto.aes256.Aes256Cryptor | From | To | |
| Rename Variable minAdditionalBlocks : long to n : int in method public encryptFile(plaintextFile InputStream, encryptedFile SeekableByteChannel) : Long in class org.cryptomator.crypto.aes256.Aes256Cryptor | From | To | |
| Rename Variable macIn : InputStream to buffer : byte[] in method public decryptFile(encryptedFile SeekableByteChannel, plaintextFile OutputStream) : Long in class org.cryptomator.crypto.aes256.Aes256Cryptor | From | To | |
| Rename Variable cipheredIn : InputStream to plaintext : byte[] in method public decryptFile(encryptedFile SeekableByteChannel, plaintextFile OutputStream) : Long in class org.cryptomator.crypto.aes256.Aes256Cryptor | From | To | |
| Change Return Type | 1 | ||
| Change Return Type long to byte[] in method private decryptHeaderData(ciphertextBytes byte[], iv byte[]) : byte[] in class org.cryptomator.crypto.aes256.Aes256Cryptor | From | To | |
| Change Variable Type | 3 | ||
| Change Variable Type minAdditionalBlocks : long to n : int in method public encryptFile(plaintextFile InputStream, encryptedFile SeekableByteChannel) : Long in class org.cryptomator.crypto.aes256.Aes256Cryptor | From | To | |
| Change Variable Type macIn : InputStream to buffer : byte[] in method public decryptFile(encryptedFile SeekableByteChannel, plaintextFile OutputStream) : Long in class org.cryptomator.crypto.aes256.Aes256Cryptor | From | To | |
| Change Variable Type cipheredIn : InputStream to plaintext : byte[] in method public decryptFile(encryptedFile SeekableByteChannel, plaintextFile OutputStream) : Long in class org.cryptomator.crypto.aes256.Aes256Cryptor | From | To | |
| Inline Variable | 1 | ||
| Inline Variable macMatches : boolean in method public decryptFile(encryptedFile SeekableByteChannel, plaintextFile OutputStream) : Long from class org.cryptomator.crypto.aes256.Aes256Cryptor | From | To | |
| Rename Parameter | 2 | ||
| Rename Parameter contentLength : long to plaintextBytes : byte[] in method private encryptHeaderData(plaintextBytes byte[], iv byte[]) : byte[] in class org.cryptomator.crypto.aes256.Aes256Cryptor | From | To | |
| Rename Parameter encryptedContentLengthBytes : byte[] to ciphertextBytes : byte[] in method private decryptHeaderData(ciphertextBytes byte[], iv byte[]) : byte[] in class org.cryptomator.crypto.aes256.Aes256Cryptor | From | To |