From cd2e6496b60c4bc350d3f6b32bbdf225028171b8 Mon Sep 17 00:00:00 2001 From: 0x330a <92654767+0x330a@users.noreply.github.com> Date: Fri, 17 Apr 2026 09:40:40 +0700 Subject: [PATCH] fix: remove prefix from hmacsha256 output encoding --- Cargo.toml | 2 +- android/src/main/java/KeystorePlugin.kt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 1b9554e..b25ec65 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "tauri-plugin-keystore" -version = "2.4.1" +version = "2.4.2" authors = ["0x330a"] description = "Interact with the device-native key storage (Android Keystore, iOS Keychain) & perform ecdh operations for generating symmetric keys" edition = "2021" diff --git a/android/src/main/java/KeystorePlugin.kt b/android/src/main/java/KeystorePlugin.kt index 26b55a1..3d9f2ad 100644 --- a/android/src/main/java/KeystorePlugin.kt +++ b/android/src/main/java/KeystorePlugin.kt @@ -570,7 +570,7 @@ class KeystorePlugin(private val activity: Activity) : Plugin(activity) { mac.init(key) val resultBytes = mac.doFinal(request.input.toByteArray()) - val hexOutput = encode(resultBytes) + val hexOutput = encode(resultBytes, prefix = "") val response = Hmac256Response(output = hexOutput) invoke.resolveObject(response)