Skip to content
This repository has been archived by the owner on Aug 11, 2023. It is now read-only.

Commit

Permalink
fix: Clear key in MaskedIndex, simplified some object instantiations,…
Browse files Browse the repository at this point in the history
… correct version information in AssemblyInfo.
  • Loading branch information
Frank Schwab committed Jun 15, 2021
1 parent b50e301 commit fa05547
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 4 deletions.
12 changes: 12 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,18 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [2.1.1] - 2021-06-15

### Changed
- Clear key in MaskedIndex.
- Simplified some object instantiations.
- Correct version information in AssemblyInfo.

## [2.1.0] - 2021-06-08

### Changed
- Use index masking instead of obfuscation array.

## [2.0.6] - 2021-05-12

### Changed
Expand Down
5 changes: 4 additions & 1 deletion TUPWLib/Crypto/MaskedIndex.vb
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,11 @@
'
' Author: Frank Schwab, DB Systel GmbH
'
' Version: 1.0.0
' Version: 1.0.1
'
' Change history:
' 2020-05-28: V1.0.0: Created.
' 2020-06-15: V1.0.1: Clear key bytes.
'

Imports System.Security.Cryptography
Expand Down Expand Up @@ -116,6 +117,8 @@ Public Class MaskedIndex : Implements IDisposable
}
m_Encryptor = cipher.CreateEncryptor()
End Using

ArrayHelper.Clear(key)
End Sub

''' <summary>
Expand Down
3 changes: 2 additions & 1 deletion TUPWLib/Crypto/SplitKeyEncryption.vb
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
'
' Author: Frank Schwab, DB Systel GmbH
'
' Version: 2.1.0
' Version: 2.1.1
'
' Change history:
' 2020-05-05: V1.0.0: Created.
Expand All @@ -40,6 +40,7 @@
' 2021-05-11: V2.0.5: Clearer structure of getting the encryption parts from string.
' 2021-05-11: V2.0.6: Corrected exception for Base32Encoding.
' 2021-06-08: V2.1.0: Use ProtectedByteArray with index masking.
' 2021-06-15: V2.1.1: Clear key in MaskedIndex.
'

Imports System.IO
Expand Down
4 changes: 2 additions & 2 deletions TUPWLib/My Project/AssemblyInfo.vb
Original file line number Diff line number Diff line change
Expand Up @@ -30,5 +30,5 @@ Imports System.Runtime.InteropServices
' You can specify all the values or you can default the Build and Revision Numbers
' by using the '*' as shown below:

<Assembly: AssemblyVersion("2.0.6.0")>
<Assembly: AssemblyFileVersion("2.0.6.0")>
<Assembly: AssemblyVersion("2.1.1.0")>
<Assembly: AssemblyFileVersion("2.1.1.0")>

0 comments on commit fa05547

Please sign in to comment.