org.bouncycastle.util

## Class Util

- java.lang.Object
- - org.bouncycastle.util.Util

-     public class Util
      extends Object

  Utility class for byte array operations and cryptographic helper functions. Provides methods for cloning, concatenating, and comparing byte arrays.

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `Util()`

  - ### Method Summary

    All Methods Static Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `static byte[]` | `append(byte[] a, byte b)`
    `static byte[]` | `clone(byte[] a)`
    `static byte[]` | `concatenate(byte[][] arrays)`
    `static byte[]` | `concatenate(byte[] a, byte[] b)`
    `static boolean` | `constantTimeAreEqual(byte[] a, byte[] b)`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### Util

          public Util()

  - ### Method Detail

    - #### append

          public static byte[] append(byte[] a,
                                      byte b)

    - #### clone

          public static byte[] clone(byte[] a)

    - #### concatenate

          public static byte[] concatenate(byte[][] arrays)

    - #### concatenate

          public static byte[] concatenate(byte[] a,
                                           byte[] b)

    - #### constantTimeAreEqual

          public static boolean constantTimeAreEqual(byte[] a,
                                                     byte[] b)