Class SideChannelUtils
java.lang.Object
io.getlime.security.powerauth.crypto.lib.util.SideChannelUtils
Utilities for preventing side channel attacks.
- Author:
- Roman Strobl, roman.strobl@wultra.com
-
Method Summary
Modifier and TypeMethodDescriptionstatic booleanconstantTimeAreEqual(byte[] bytes1, byte[] bytes2) Compare two byte arrays in constant time.
-
Method Details
-
constantTimeAreEqual
public static boolean constantTimeAreEqual(byte[] bytes1, byte[] bytes2) Compare two byte arrays in constant time.- Parameters:
bytes1- First byte array.bytes2- Second byte array.- Returns:
- Whether byte arrays are equal.
-