Shorts (Bouncy Castle Library 1.85 API Specification)
Date: 2026-07-12

org.bouncycastle.util

## Class Shorts

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

-     public class Shorts
      extends java.lang.Object

  Utility methods and constants for shorts.

- - ### Field Summary

    Fields
    Modifier and Type | Field and Description
    --- | ---
    `static int` | `BYTES`
    `static int` | `SIZE`

  - ### Constructor Summary

    Constructors
    Constructor and Description
    `Shorts()`

  - ### Method Summary

    All Methods Static Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `static java.lang.Short` | `valueOf(short value)`
    `static void` | `xorTo(int len, short[] x, short[] z)`

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

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

- - ### Field Detail

    - #### BYTES

          public static final int BYTES

      See Also:
        Constant Field Values

    - #### SIZE

          public static final int SIZE

      See Also:
        Constant Field Values

  - ### Constructor Detail

    - #### Shorts

          public Shorts()

  - ### Method Detail

    - #### valueOf

          public static java.lang.Short valueOf(short value)

    - #### xorTo

          public static void xorTo(int len,
                                   short[] x,
                                   short[] z)