code: public static int bitLength (byte[] bytes) {
          Objects.requireNonNull(bytes, Required.BYTES.toString());
          int byteLength = bytes.length;
          
          int length = 0;
          if (byteLength <= MAX_BYTE_LENGTH && byteLength > 0) {
              length = byteLength * BYTES;
          }
          
          return length;
      }
docs: Calculates the bit length of a given byte array
  
  @param bytes The byte array
  @return The number of bit