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

org.bouncycastle.math.raw

## Class Bits

- java.lang.Object
- - org.bouncycastle.math.raw.Bits

-     public abstract class Bits
      extends java.lang.Object

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `Bits()`

  - ### Method Summary

    All Methods Static Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `static int` | `bitPermuteStep(int x, int m, int s)`
    `static long` | `bitPermuteStep(long x, long m, int s)`
    `static int` | `bitPermuteStepSimple(int x, int m, int s)`
    `static long` | `bitPermuteStepSimple(long x, long m, int s)`

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

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

- - ### Constructor Detail

    - #### Bits

          public Bits()

  - ### Method Detail

    - #### bitPermuteStep

          public static int bitPermuteStep(int x,
                                           int m,
                                           int s)

    - #### bitPermuteStep

          public static long bitPermuteStep(long x,
                                            long m,
                                            int s)

    - #### bitPermuteStepSimple

          public static int bitPermuteStepSimple(int x,
                                                 int m,
                                                 int s)

    - #### bitPermuteStepSimple

          public static long bitPermuteStepSimple(long x,
                                                  long m,
                                                  int s)