mirror of
https://github.com/Kunzisoft/KeePassDX.git
synced 2026-11-27 20:36:46 -08:00
fix: Remove decodeHexToByteArray
This commit is contained in:
1 file changed
-7
-7
@@ -223,13 +223,6 @@ object PasskeyHelper {
|
||||
return key
|
||||
}
|
||||
|
||||
private fun String.decodeHexToByteArray(): ByteArray {
|
||||
if (length % 2 != 0) {
|
||||
throw IllegalArgumentException("Must have an even length")
|
||||
}
|
||||
return chunked(2).map { it.toInt(16).toByte() }.toByteArray()
|
||||
}
|
||||
|
||||
fun ProviderCreateCredentialRequest.retrievePasskeyCreationComponent(): PublicKeyCredentialCreationOptions {
|
||||
val request = this
|
||||
if (request.callingRequest !is CreatePublicKeyCredentialRequest) {
|
||||
|
||||
Reference in new issue
Block a user