Class BytesUtil
java.lang.Object
org.apache.kerby.kerberos.kerb.crypto.util.BytesUtil
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic intbytes2int(byte[] bytes, boolean bigEndian) static intbytes2int(byte[] bytes, int offset, boolean bigEndian) static longbytes2long(byte[] bytes, boolean bigEndian) static longbytes2long(byte[] bytes, int offset, boolean bigEndian) static shortbytes2short(byte[] bytes, boolean bigEndian) static shortbytes2short(byte[] bytes, int offset, boolean bigEndian) static byte[]duplicate(byte[] bytes) static byte[]duplicate(byte[] bytes, int offset, int len) static byte[]int2bytes(int val, boolean bigEndian) static voidint2bytes(int val, byte[] bytes, int offset, boolean bigEndian) static byte[]long2bytes(long val, boolean bigEndian) static voidlong2bytes(long val, byte[] bytes, int offset, boolean bigEndian) static byte[]padding(byte[] data, int block) static byte[]short2bytes(int val, boolean bigEndian) static voidshort2bytes(int val, byte[] bytes, int offset, boolean bigEndian) static voidxor(byte[] a, byte[] b, byte[] output) static voidxor(byte[] input, int offset, byte[] output)
-
Constructor Details
-
BytesUtil
public BytesUtil()
-
-
Method Details
-
bytes2short
public static short bytes2short(byte[] bytes, int offset, boolean bigEndian) -
bytes2short
public static short bytes2short(byte[] bytes, boolean bigEndian) -
short2bytes
public static byte[] short2bytes(int val, boolean bigEndian) -
short2bytes
public static void short2bytes(int val, byte[] bytes, int offset, boolean bigEndian) -
bytes2int
public static int bytes2int(byte[] bytes, boolean bigEndian) -
bytes2int
public static int bytes2int(byte[] bytes, int offset, boolean bigEndian) -
int2bytes
public static byte[] int2bytes(int val, boolean bigEndian) -
int2bytes
public static void int2bytes(int val, byte[] bytes, int offset, boolean bigEndian) -
long2bytes
public static byte[] long2bytes(long val, boolean bigEndian) -
long2bytes
public static void long2bytes(long val, byte[] bytes, int offset, boolean bigEndian) -
bytes2long
public static long bytes2long(byte[] bytes, boolean bigEndian) -
bytes2long
public static long bytes2long(byte[] bytes, int offset, boolean bigEndian) -
padding
public static byte[] padding(byte[] data, int block) -
duplicate
public static byte[] duplicate(byte[] bytes) -
duplicate
public static byte[] duplicate(byte[] bytes, int offset, int len) -
xor
public static void xor(byte[] input, int offset, byte[] output) -
xor
public static void xor(byte[] a, byte[] b, byte[] output)
-