Partager via


ByteExtensions Classe

  • java.lang.Object
    • com.microsoft.azure.keyvault.cryptography.ByteExtensions

public class ByteExtensions

Résumé de la méthode

Modificateur et type Méthode et description
byte [] or(byte[] self, byte[] other)
byte [] or(byte[] self, byte[] other, int offset)
boolean sequenceEqualConstantTime(byte[] self, byte[] other)

Compare deux tableaux d’octets en temps constant.

byte [] xor(byte[] self, byte[] other)
void zero(byte[] self)

Détails de la méthode

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)

Compare deux tableaux d’octets en temps constant.

Parameters:

self - Premier tableau d’octets à comparer
other - Deuxième tableau d’octets à comparer

Returns:

True si les deux tableaux d’octets sont égaux.

xor

public static byte [] xor(byte[] self, byte[] other)

Parameters:

self
other

zero

public static void zero(byte[] self)

Parameters:

self

S’applique à