public final class ByteExtensions extends Object
| Constructor and Description |
|---|
ByteExtensions() |
| Modifier and Type | Method and Description |
|---|---|
static byte[] |
or(byte[] self,
byte[] other) |
static byte[] |
or(byte[] self,
byte[] other,
int offset) |
static boolean |
sequenceEqualConstantTime(byte[] self,
byte[] other)
Compares two byte arrays in constant time.
|
static byte[] |
xor(byte[] self,
byte[] other) |
static void |
zero(byte[] self) |
public static byte[] or(byte[] self,
byte[] other)
public static byte[] or(byte[] self,
byte[] other,
int offset)
public static byte[] xor(byte[] self,
byte[] other)
public static void zero(byte[] self)
public static boolean sequenceEqualConstantTime(byte[] self,
byte[] other)
self - The first byte array to compareother - The second byte array to compare/**
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*/