Search

Hardware Security SDK
Hardware Security SDK
  • SDK
    WebAuthn/FIDO2: Passwordless Login FIDO U2F: Two-Factor Login Server Login with Security Keys and Smartcards (SSH) Personal Identity Verification (PIV)
  • Case Studies
  • Hardware
  • Developer Docs
  • Changelog
  • Pricing
  • Blog
  • Get the SDK
Guides
  • WebAuthn - WebView Bridge
  • FIDO2 / WebAuthn
  • FIDO U2F
  • SSH Authentication with Jsch
  • SSH Authentication with SSHJ
  • PIV for TLS Client Certificates
  • Encrypting Secrets
  • Encrypted Database with Room
Documentation
  • SDK Overview
  • SDK Configuration
  • Supported Hardware
  • Start on Hardware Discovery
  • Missing Features?
  • Changelog
Xamarin.Android
  • Xamarin SDK Overview
  • WebAuthn - WebView
  • Native U2F
API Reference
  • de.cotech.hw
  • de.cotech.hw.exceptions
  • de.cotech.hw.fido
  • de.cotech.hw.fido.exceptions
  • de.cotech.hw.fido.ui
  • de.cotech.hw.fido.util
  • de.cotech.hw.fido2
  • de.cotech.hw.fido2.domain
  • de.cotech.hw.fido2.domain.create
  • de.cotech.hw.fido2.domain.get
  • de.cotech.hw.fido2.exceptions
  • de.cotech.hw.fido2.ui
  • de.cotech.hw.openpgp
  • de.cotech.hw.openpgp.exceptions
  • de.cotech.hw.openpgp.pairedkey
  • de.cotech.hw.openpgp.secrets
  • de.cotech.hw.openpgp.storage
  • de.cotech.hw.openpgp.util
  • de.cotech.hw.piv
  • de.cotech.hw.piv.exceptions
  • de.cotech.hw.provider
  • de.cotech.hw.raw
  • de.cotech.hw.secrets
  • de.cotech.hw.ssh
  • de.cotech.hw.sshj
  • de.cotech.hw.ui
  • de.cotech.hw.util
  • Ask us by email
  • Request features
  • Something is incorrect or outdated? We want to ensure it gets addressed immediately. Please let us know.

hwsecurity / de.cotech.hw.util / Arrays / constantTimeAreEqual /

constantTimeAreEqual

open fun constantTimeAreEqual(expected: Array< Byte>, supplied: Array< Byte>): Boolean

A constant time equals comparison - does not terminate early iftest will fail. For best results always pass the expected valueas the first parameter.

Return

true if arrays equal, false otherwise.

Parameters

Name Summary
expected first array
supplied second array
Last updated on Mar 21, 2021

© 2023 heylogin GmbH

Slack / Matrix Room
Twitter
support@hwsecurity.dev

GitHub
Media Kit
Privacy Policy
Impressum

Cite
Copy Download