ByteExtensions Class
- java.
lang. Object - com.
microsoft. azure. keyvault. cryptography. ByteExtensions
- com.
public class ByteExtensions
Method Summary
Modifier and Type | Method and Description |
---|---|
byte [] | or(byte[] self, byte[] other) |
byte [] | or(byte[] self, byte[] other, int offset) |
boolean |
sequenceEqualConstantTime(byte[] self, byte[] other)
Compares two byte arrays in constant time. |
byte [] | xor(byte[] self, byte[] other) |
void | zero(byte[] self) |
Method Details
or
public static byte [] or(byte[] self, byte[] other)
Parameters:
self
other
or
public static byte [] or(byte[] self, byte[] other, int offset)
Parameters:
self
other
offset
sequenceEqualConstantTime
public static boolean sequenceEqualConstantTime(byte[] self, byte[] other)
Compares two byte arrays in constant time.
Parameters:
self
- The first byte array to compare
other
- The second byte array to compare
Returns:
True if the two byte arrays are equal.
xor
public static byte [] xor(byte[] self, byte[] other)
Parameters:
self
other
zero
public static void zero(byte[] self)
Parameters:
self
Applies to
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.
Azure SDK for Java