Skip to content

Commit 864b0f7

Browse files
committed
Merge branch 'release/1.4.1'
2 parents 65093b3 + 3e179c0 commit 864b0f7

File tree

6 files changed

+8
-5
lines changed

6 files changed

+8
-5
lines changed

.github/workflows/publish-central.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,4 +39,5 @@ jobs:
3939
MAVEN_USERNAME: ${{ secrets.OSSRH_USERNAME }}
4040
MAVEN_PASSWORD: ${{ secrets.OSSRH_PASSWORD }}
4141
MAVEN_GPG_PASSPHRASE: ${{ secrets.RELEASES_GPG_PASSPHRASE }}
42-
MAVEN_GPG_KEY: ${{ secrets.RELEASES_GPG_PRIVATE_KEY }}
42+
MAVEN_GPG_KEY: ${{ secrets.RELEASES_GPG_PRIVATE_KEY }}
43+
MAVEN_GPG_KEY_FINGERPRINT: ${{ vars.RELEASES_GPG_KEY_FINGERPRINT }}

.github/workflows/publish-github.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ jobs:
2626
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2727
MAVEN_GPG_PASSPHRASE: ${{ secrets.RELEASES_GPG_PASSPHRASE }}
2828
MAVEN_GPG_KEY: ${{ secrets.RELEASES_GPG_PRIVATE_KEY }}
29+
MAVEN_GPG_KEY_FINGERPRINT: ${{ vars.RELEASES_GPG_KEY_FINGERPRINT }}
2930
notify:
3031
runs-on: ubuntu-latest
3132
needs: [publish]

integrations-win.vcxproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@
124124
<ClCompile Include="src\main\native\org_cryptomator_windows_autostart_WinShellLinks_Native.cpp" />
125125
<ClCompile Include="src\main\native\org_cryptomator_windows_keychain_WinDataProtection_Native.cpp" />
126126
<ClCompile Include="src\main\native\org_cryptomator_windows_keychain_WindowsHello_Native.cpp" />
127-
<ClCompile Include="src\main\native\org_cryptomator_windows_uiappearnce_WinAppearance_Native.cpp" />
127+
<ClCompile Include="src\main\native\org_cryptomator_windows_uiappearance_WinAppearance_Native.cpp" />
128128
</ItemGroup>
129129
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
130130
<ImportGroup Label="ExtensionTargets">

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<modelVersion>4.0.0</modelVersion>
66
<groupId>org.cryptomator</groupId>
77
<artifactId>integrations-win</artifactId>
8-
<version>1.4.0</version>
8+
<version>1.4.1</version>
99

1010
<name>Cryptomator Integrations for Windows</name>
1111
<description>Provides optional Windows services used by Cryptomator</description>

src/main/native/org_cryptomator_windows_keychain_WindowsHello_Native.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ using namespace Windows::Security::Cryptography::Core;
2121
using namespace Windows::Storage::Streams;
2222

2323
static std::atomic<int> g_promptFocusCount{ 0 };
24-
static IBuffer info = CryptographicBuffer::ConvertStringToBinary(L"EncryptionKey", BinaryStringEncoding::Utf8);
24+
static auto HKDF_INFO = L"org.cryptomator.windows.keychain.windowsHello";
2525

2626
// Helper methods for conversion
2727
std::vector<uint8_t> jbyteArrayToVector(JNIEnv* env, jbyteArray array) {
@@ -96,7 +96,7 @@ IBuffer DeriveKeyUsingHKDF(const IBuffer& inputData, const IBuffer& salt, uint32
9696
if (expandKey.KeySize() < macProvider.MacLength()) {
9797
throw std::runtime_error("Key provided by HMAC_SHA256 implementation is shorter than the HMAC length.");
9898
}
99-
int maxKeySize = 255 * macProvider.MacLength();
99+
auto maxKeySize = 255 * macProvider.MacLength();
100100
if (keySizeInBytes > maxKeySize) {
101101
throw std::runtime_error("HKDF requires keySizeInBytes to be at most " + std::to_string(maxKeySize) + " bytes.");
102102
}
@@ -153,6 +153,7 @@ bool deriveEncryptionKey(const std::wstring keyId, const std::vector<uint8_t>& c
153153

154154
// Derive the encryption/decryption key using HKDF
155155
const auto response = signature.Result();
156+
IBuffer info = CryptographicBuffer::ConvertStringToBinary(HKDF_INFO, BinaryStringEncoding::Utf8);
156157
key = DeriveKeyUsingHKDF(response, challengeBuffer, 32, info); // needs to be 32 bytes for SHA256
157158
return true;
158159

src/main/native/org_cryptomator_windows_uiappearnce_WinAppearance_Native.cpp renamed to src/main/native/org_cryptomator_windows_uiappearance_WinAppearance_Native.cpp

File renamed without changes.

0 commit comments

Comments
 (0)