Skip to content
Browse files

merged pandora one changes from glennimoss

  • Loading branch information...
1 parent 00dd804 commit 302bf2a338587f5f35c4af20d52ac7654f4d3500 @TingPing committed Jun 29, 2012
View
353 data/ui/PreferencesPithosDialog.ui
@@ -1,30 +1,115 @@
-<?xml version="1.0"?>
+<?xml version="1.0" encoding="UTF-8"?>
<interface>
- <requires lib="gtk+" version="2.16"/>
+ <!-- interface-requires gtk+ 3.0 -->
<!-- interface-requires preferences_pithos_dialog 1.0 -->
- <!-- interface-naming-policy project-wide -->
<object class="PreferencesPithosDialog" id="preferences_pithos_dialog">
<property name="width_request">333</property>
+ <property name="can_focus">False</property>
<property name="border_width">5</property>
<property name="title" translatable="yes">Preferences</property>
<property name="window_position">center</property>
<property name="icon_name">pithos</property>
<property name="type_hint">normal</property>
- <property name="has_separator">False</property>
<child internal-child="vbox">
- <object class="GtkVBox" id="dialog-vbox1">
+ <object class="GtkBox" id="dialog-vbox1">
<property name="visible">True</property>
+ <property name="can_focus">False</property>
<property name="spacing">2</property>
+ <child internal-child="action_area">
+ <object class="GtkButtonBox" id="dialog-action_area1">
+ <property name="visible">True</property>
+ <property name="can_focus">False</property>
+ <property name="layout_style">end</property>
+ <child>
+ <object class="GtkButton" id="button2">
+ <property name="label">gtk-cancel</property>
+ <property name="use_action_appearance">False</property>
+ <property name="visible">True</property>
+ <property name="can_focus">True</property>
+ <property name="receives_default">True</property>
+ <property name="use_action_appearance">False</property>
+ <property name="use_stock">True</property>
+ <signal name="clicked" handler="cancel" swapped="no"/>
+ </object>
+ <packing>
+ <property name="expand">False</property>
+ <property name="fill">False</property>
+ <property name="position">0</property>
+ </packing>
+ </child>
+ <child>
+ <object class="GtkButton" id="button1">
+ <property name="label">gtk-ok</property>
+ <property name="use_action_appearance">False</property>
+ <property name="visible">True</property>
+ <property name="can_focus">True</property>
+ <property name="receives_default">True</property>
+ <property name="use_action_appearance">False</property>
+ <property name="use_stock">True</property>
+ <signal name="clicked" handler="ok" swapped="no"/>
+ </object>
+ <packing>
+ <property name="expand">False</property>
+ <property name="fill">False</property>
+ <property name="position">1</property>
+ </packing>
+ </child>
+ </object>
+ <packing>
+ <property name="expand">False</property>
+ <property name="fill">True</property>
+ <property name="pack_type">end</property>
+ <property name="position">0</property>
+ </packing>
+ </child>
<child>
<object class="GtkTable" id="table1">
<property name="visible">True</property>
- <property name="n_rows">14</property>
+ <property name="can_focus">False</property>
+ <property name="n_rows">15</property>
<property name="n_columns">3</property>
<property name="column_spacing">5</property>
<property name="row_spacing">5</property>
<child>
+ <placeholder/>
+ </child>
+ <child>
+ <placeholder/>
+ </child>
+ <child>
+ <placeholder/>
+ </child>
+ <child>
+ <placeholder/>
+ </child>
+ <child>
+ <placeholder/>
+ </child>
+ <child>
+ <placeholder/>
+ </child>
+ <child>
+ <placeholder/>
+ </child>
+ <child>
+ <placeholder/>
+ </child>
+ <child>
+ <placeholder/>
+ </child>
+ <child>
+ <placeholder/>
+ </child>
+ <child>
+ <placeholder/>
+ </child>
+ <child>
+ <placeholder/>
+ </child>
+ <child>
<object class="GtkLabel" id="label1">
<property name="visible">True</property>
+ <property name="can_focus">False</property>
<property name="xalign">0</property>
<property name="label" translatable="yes">Email</property>
</object>
@@ -39,7 +124,7 @@
<object class="GtkEntry" id="prefs_username">
<property name="visible">True</property>
<property name="can_focus">True</property>
- <property name="invisible_char">&#x2022;</property>
+ <property name="invisible_char"></property>
</object>
<packing>
<property name="left_attach">2</property>
@@ -51,6 +136,7 @@
<child>
<object class="GtkLabel" id="label2">
<property name="visible">True</property>
+ <property name="can_focus">False</property>
<property name="xalign">0</property>
<property name="label" translatable="yes">Password</property>
</object>
@@ -66,7 +152,7 @@
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="visibility">False</property>
- <property name="invisible_char">&#x2022;</property>
+ <property name="invisible_char"></property>
</object>
<packing>
<property name="left_attach">2</property>
@@ -76,8 +162,27 @@
</packing>
</child>
<child>
+ <object class="GtkCheckButton" id="checkbutton_pandora_one">
+ <property name="label" translatable="yes">Pandora One Subscriber</property>
+ <property name="use_action_appearance">False</property>
+ <property name="visible">True</property>
+ <property name="can_focus">True</property>
+ <property name="receives_default">False</property>
+ <property name="use_action_appearance">False</property>
+ <property name="xalign">0.5</property>
+ <property name="draw_indicator">True</property>
+ </object>
+ <packing>
+ <property name="left_attach">2</property>
+ <property name="right_attach">3</property>
+ <property name="top_attach">3</property>
+ <property name="bottom_attach">4</property>
+ </packing>
+ </child>
+ <child>
<object class="GtkLabel" id="label3">
<property name="visible">True</property>
+ <property name="can_focus">False</property>
<property name="xalign">0</property>
<property name="label" translatable="yes">Pandora.com Account</property>
<attributes>
@@ -92,6 +197,7 @@
<child>
<object class="GtkLabel" id="label4">
<property name="visible">True</property>
+ <property name="can_focus">False</property>
<property name="xalign">0</property>
<property name="label" translatable="yes">Options</property>
<attributes>
@@ -100,107 +206,160 @@
</object>
<packing>
<property name="right_attach">3</property>
- <property name="top_attach">7</property>
- <property name="bottom_attach">8</property>
+ <property name="top_attach">8</property>
+ <property name="bottom_attach">9</property>
<property name="y_padding">5</property>
</packing>
</child>
<child>
+ <object class="GtkCheckButton" id="checkbutton_growl">
+ <property name="label" translatable="yes">Show Growl notifications</property>
+ <property name="use_action_appearance">False</property>
+ <property name="visible">True</property>
+ <property name="can_focus">True</property>
+ <property name="receives_default">False</property>
+ <property name="use_action_appearance">False</property>
+ <property name="xalign">0.5</property>
+ <property name="draw_indicator">True</property>
+ </object>
+ <packing>
+ <property name="left_attach">1</property>
+ <property name="right_attach">3</property>
+ <property name="top_attach">10</property>
+ <property name="bottom_attach">11</property>
+ </packing>
+ </child>
+ <child>
+ <placeholder/>
+ </child>
+ <child>
+ <placeholder/>
+ </child>
+ <child>
+ <placeholder/>
+ </child>
+ <child>
+ <placeholder/>
+ </child>
+ <child>
+ <placeholder/>
+ </child>
+ <child>
+ <placeholder/>
+ </child>
+ <child>
+ <placeholder/>
+ </child>
+ <child>
+ <placeholder/>
+ </child>
+ <child>
+ <placeholder/>
+ </child>
+ <child>
+ <placeholder/>
+ </child>
+ <child>
+ <placeholder/>
+ </child>
+ <child>
+ <placeholder/>
+ </child>
+ <child>
+ <placeholder/>
+ </child>
+ <child>
+ <placeholder/>
+ </child>
+ <child>
<object class="GtkLabel" id="label5">
<property name="visible">True</property>
+ <property name="can_focus">False</property>
<property name="label" translatable="yes">&lt;small&gt;&lt;a href='http://pandora.com'&gt;Create an account at pandora.com&lt;/a&gt;&lt;/small&gt;</property>
<property name="use_markup">True</property>
</object>
<packing>
<property name="left_attach">1</property>
<property name="right_attach">3</property>
- <property name="top_attach">3</property>
- <property name="bottom_attach">4</property>
+ <property name="top_attach">4</property>
+ <property name="bottom_attach">5</property>
</packing>
</child>
<child>
- <object class="GtkLabel" id="audioFormatLabel">
+ <object class="GtkLabel" id="audioQualityLabel">
<property name="visible">True</property>
+ <property name="can_focus">False</property>
<property name="xalign">0</property>
- <property name="label" translatable="yes">Audio Format</property>
+ <property name="label" translatable="yes">Audio Quality</property>
</object>
<packing>
<property name="left_attach">1</property>
<property name="right_attach">2</property>
- <property name="top_attach">5</property>
- <property name="bottom_attach">6</property>
+ <property name="top_attach">6</property>
+ <property name="bottom_attach">7</property>
</packing>
</child>
<child>
- <object class="GtkComboBox" id="prefs_audio_format">
+ <object class="GtkComboBox" id="prefs_audio_quality">
<property name="visible">True</property>
+ <property name="can_focus">False</property>
</object>
<packing>
<property name="left_attach">2</property>
<property name="right_attach">3</property>
- <property name="top_attach">5</property>
- <property name="bottom_attach">6</property>
+ <property name="top_attach">6</property>
+ <property name="bottom_attach">7</property>
</packing>
</child>
<child>
<object class="GtkLabel" id="label6">
<property name="visible">True</property>
+ <property name="can_focus">False</property>
<property name="xalign">0</property>
<property name="label" translatable="yes">Proxy URL</property>
</object>
<packing>
<property name="left_attach">1</property>
<property name="right_attach">2</property>
- <property name="top_attach">6</property>
- <property name="bottom_attach">7</property>
+ <property name="top_attach">7</property>
+ <property name="bottom_attach">8</property>
</packing>
</child>
<child>
<object class="GtkEntry" id="prefs_proxy">
<property name="visible">True</property>
<property name="can_focus">True</property>
- <property name="invisible_char">&#x2022;</property>
+ <property name="invisible_char"></property>
</object>
<packing>
<property name="left_attach">2</property>
<property name="right_attach">3</property>
- <property name="top_attach">6</property>
- <property name="bottom_attach">7</property>
- </packing>
- </child>
- <child>
- <object class="GtkCheckButton" id="checkbutton_growl">
- <property name="label" translatable="yes">Use Growl Notifications</property>
- <property name="visible">True</property>
- <property name="can_focus">True</property>
- <property name="receives_default">False</property>
- <property name="draw_indicator">True</property>
- </object>
- <packing>
- <property name="left_attach">1</property>
- <property name="right_attach">3</property>
- <property name="top_attach">8</property>
- <property name="bottom_attach">9</property>
+ <property name="top_attach">7</property>
+ <property name="bottom_attach">8</property>
</packing>
</child>
<child>
<object class="GtkCheckButton" id="checkbutton_icon">
<property name="label" translatable="yes">Show notification area icon</property>
+ <property name="use_action_appearance">False</property>
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="receives_default">False</property>
+ <property name="use_action_appearance">False</property>
+ <property name="xalign">0.5</property>
<property name="draw_indicator">True</property>
</object>
<packing>
<property name="left_attach">1</property>
<property name="right_attach">3</property>
- <property name="top_attach">10</property>
- <property name="bottom_attach">11</property>
+ <property name="top_attach">11</property>
+ <property name="bottom_attach">12</property>
</packing>
</child>
<child>
<object class="GtkLabel" id="label7">
<property name="visible">True</property>
+ <property name="can_focus">False</property>
<property name="xalign">0</property>
<property name="label" translatable="yes">Last.fm Scrobbling</property>
<attributes>
@@ -209,28 +368,31 @@
</object>
<packing>
<property name="right_attach">3</property>
- <property name="top_attach">12</property>
- <property name="bottom_attach">13</property>
+ <property name="top_attach">13</property>
+ <property name="bottom_attach">14</property>
<property name="y_padding">5</property>
</packing>
</child>
<child>
<object class="GtkButton" id="lastfm_btn">
<property name="label" translatable="yes">Authenticate</property>
+ <property name="use_action_appearance">False</property>
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="receives_default">True</property>
+ <property name="use_action_appearance">False</property>
</object>
<packing>
<property name="left_attach">1</property>
<property name="right_attach">3</property>
- <property name="top_attach">13</property>
- <property name="bottom_attach">14</property>
+ <property name="top_attach">14</property>
+ <property name="bottom_attach">15</property>
</packing>
</child>
<child>
<object class="GtkLabel" id="label8">
<property name="visible">True</property>
+ <property name="can_focus">False</property>
<property name="xalign">0</property>
<property name="label" translatable="yes">Advanced Settings</property>
<attributes>
@@ -239,8 +401,8 @@
</object>
<packing>
<property name="right_attach">3</property>
- <property name="top_attach">4</property>
- <property name="bottom_attach">5</property>
+ <property name="top_attach">5</property>
+ <property name="bottom_attach">6</property>
<property name="y_padding">5</property>
</packing>
</child>
@@ -259,107 +421,14 @@
<child>
<placeholder/>
</child>
- <child>
- <placeholder/>
- </child>
- <child>
- <placeholder/>
- </child>
- <child>
- <placeholder/>
- </child>
- <child>
- <placeholder/>
- </child>
- <child>
- <placeholder/>
- </child>
- <child>
- <placeholder/>
- </child>
- <child>
- <placeholder/>
- </child>
- <child>
- <placeholder/>
- </child>
- <child>
- <placeholder/>
- </child>
- <child>
- <placeholder/>
- </child>
- <child>
- <placeholder/>
- </child>
- <child>
- <placeholder/>
- </child>
- <child>
- <placeholder/>
- </child>
- <child>
- <placeholder/>
- </child>
- <child>
- <placeholder/>
- </child>
- <child>
- <placeholder/>
- </child>
- <child>
- <placeholder/>
- </child>
- <child>
- <placeholder/>
- </child>
</object>
<packing>
+ <property name="expand">False</property>
+ <property name="fill">True</property>
<property name="padding">5</property>
<property name="position">1</property>
</packing>
</child>
- <child internal-child="action_area">
- <object class="GtkHButtonBox" id="dialog-action_area1">
- <property name="visible">True</property>
- <property name="layout_style">end</property>
- <child>
- <object class="GtkButton" id="button2">
- <property name="label">gtk-cancel</property>
- <property name="visible">True</property>
- <property name="can_focus">True</property>
- <property name="receives_default">True</property>
- <property name="use_stock">True</property>
- <signal name="clicked" handler="cancel"/>
- </object>
- <packing>
- <property name="expand">False</property>
- <property name="fill">False</property>
- <property name="position">0</property>
- </packing>
- </child>
- <child>
- <object class="GtkButton" id="button1">
- <property name="label">gtk-ok</property>
- <property name="visible">True</property>
- <property name="can_focus">True</property>
- <property name="receives_default">True</property>
- <property name="use_stock">True</property>
- <signal name="clicked" handler="ok"/>
- </object>
- <packing>
- <property name="expand">False</property>
- <property name="fill">False</property>
- <property name="position">1</property>
- </packing>
- </child>
- </object>
- <packing>
- <property name="expand">False</property>
- <property name="pack_type">end</property>
- <property name="position">0</property>
- </packing>
- </child>
</object>
</child>
<action-widgets>
View
20 pithos.pyw
@@ -170,7 +170,7 @@ class PithosWindow(gtk.Window):
self.show_preferences(is_startup=True)
self.set_proxy()
- self.set_audio_format()
+ self.set_audio_quality()
self.pandora_connect()
def init_core(self):
@@ -304,20 +304,21 @@ class PithosWindow(gtk.Window):
def set_proxy(self):
self.worker_run('set_proxy', (self.preferences['proxy'],))
- def set_audio_format(self):
- self.worker_run('set_audio_format', (self.preferences['audio_format'],))
+ def set_audio_quality(self):
+ self.worker_run('set_audio_quality', (self.preferences['audio_quality'],))
def pandora_connect(self, message="Logging in...", callback=None):
args = (self.preferences['username'],
- self.preferences['password'])
+ self.preferences['password'],
+ self.preferences['pandora_one'])
def pandora_ready(*ignore):
logging.info("Pandora connected")
self.process_stations(self)
if callback:
callback()
- self.worker_run('connect', args, pandora_ready, message, 'login')
+ self.worker_run('connect', (self.preferences,), pandora_ready, message, 'login')
def process_stations(self, *ignore):
self.stations_model.clear()
@@ -758,10 +759,11 @@ class PithosWindow(gtk.Window):
if not is_startup:
if self.preferences['proxy'] != old_prefs['proxy']:
self.set_proxy()
- if self.preferences['audio_format'] != old_prefs['audio_format']:
- self.set_audio_format()
+ if self.preferences['audio_quality'] != old_prefs['audio_quality']:
+ self.set_audio_quality()
if ( self.preferences['username'] != old_prefs['username']
- or self.preferences['password'] != old_prefs['password']):
+ or self.preferences['password'] != old_prefs['password']
+ or self.preferences['pandora_one'] != old_prefs['pandora_one']):
self.pandora_connect()
load_plugins(self)
@@ -830,7 +832,7 @@ if __name__ == "__main__":
if options.verbose:
logging.basicConfig(level=logging.INFO, format='%(levelname)s - %(module)s:%(funcName)s:%(lineno)d - %(message)s', filename=logfile)
else:
- logging.basicConfig(level=logging.WARNING, filename=logfile)
+ logging.basicConfig(level=logging.WARNING)
logging.info("Pithos %s"%VERSION)
View
39 pithos/PreferencesPithosDialog.py
@@ -55,14 +55,14 @@ def finish_initializing(self, builder):
self.builder.connect_signals(self)
# initialize the "Audio format" combobox backing list
- audio_format_combo = self.builder.get_object('prefs_audio_format')
+ audio_quality_combo = self.builder.get_object('prefs_audio_quality')
fmt_store = gtk.ListStore(gobject.TYPE_STRING)
- for audio_format in valid_audio_formats:
- fmt_store.append((audio_format,))
- audio_format_combo.set_model(fmt_store)
+ for audio_format, quality in valid_audio_formats:
+ fmt_store.append((quality,))
+ audio_quality_combo.set_model(fmt_store)
render_text = gtk.CellRendererText()
- audio_format_combo.pack_start(render_text, expand=True)
- audio_format_combo.add_attribute(render_text, "text", 0)
+ audio_quality_combo.pack_start(render_text, expand=True)
+ audio_quality_combo.add_attribute(render_text, "text", 0)
self.__load_preferences()
@@ -78,6 +78,7 @@ def __load_preferences(self):
self.__preferences = {
"username":'',
"password":'',
+ "pandora_one":False,
"notify":False,
"growl":False,
"last_station_id":None,
@@ -87,7 +88,7 @@ def __load_preferences(self):
"enable_mediakeys": False,
"enable_screensaverpause":False,
"volume": 0.5,
- "audio_format": valid_audio_formats[1],
+ "audio_quality": valid_audio_formats[0][0],
}
try:
@@ -98,11 +99,12 @@ def __load_preferences(self):
for line in f:
sep = line.find('=')
key = line[:sep]
- val = line[sep+1:].strip()
- if val == 'None': val=None
- elif val == 'False': val=False
- elif val == 'True': val=True
- self.__preferences[key]=val
+ if key in self.__preferences:
+ val = line[sep+1:].strip()
+ if val == 'None': val=None
+ elif val == 'False': val=False
+ elif val == 'True': val=True
+ self.__preferences[key]=val
self.setup_fields()
def save(self):
@@ -123,11 +125,15 @@ def save(self):
def setup_fields(self):
self.builder.get_object('prefs_username').set_text(self.__preferences["username"])
self.builder.get_object('prefs_password').set_text(self.__preferences["password"])
+ self.builder.get_object('checkbutton_pandora_one').set_active(self.__preferences["pandora_one"])
self.builder.get_object('prefs_proxy').set_text(self.__preferences["proxy"])
- audio_format_combo = self.builder.get_object('prefs_audio_format')
- audio_pref_idx = list(valid_audio_formats).index(self.__preferences["audio_format"])
- audio_format_combo.set_active(audio_pref_idx)
+ audio_quality_combo = self.builder.get_object('prefs_audio_quality')
+ try:
+ audio_pref_idx = list(audio_format for audio_format, quality in valid_audio_formats).index(self.__preferences["audio_quality"])
+ except ValueError:
+ audio_pref_idx = 0
+ audio_quality_combo.set_active(audio_pref_idx)
self.builder.get_object('checkbutton_icon').set_active(self.__preferences["show_icon"])
self.builder.get_object('checkbutton_growl').set_active(self.__preferences["growl"])
@@ -141,8 +147,9 @@ def ok(self, widget, data=None):
self.__preferences["username"] = self.builder.get_object('prefs_username').get_text()
self.__preferences["password"] = self.builder.get_object('prefs_password').get_text()
+ self.__preferences["pandora_one"] = self.builder.get_object('checkbutton_pandora_one').get_active()
self.__preferences["proxy"] = self.builder.get_object('prefs_proxy').get_text()
- self.__preferences["audio_format"] = valid_audio_formats[self.builder.get_object('prefs_audio_format').get_active()]
+ self.__preferences["audio_quality"] = valid_audio_formats[self.builder.get_object('prefs_audio_quality').get_active()][0]
self.__preferences["show_icon"] = self.builder.get_object('checkbutton_icon').get_active()
self.save()
View
5 pithos/pandora/__init__.py
@@ -14,12 +14,11 @@
#with this program. If not, see <http://www.gnu.org/licenses/>.
### END LICENSE
-#from pithos.pandora.pandora import *
-from pandora import *
+from pithos.pandora.pandora import *
def make_pandora(testing=False):
if testing:
- from fake import FakePandora
+ from pithos.pandora.fake import FakePandora
return FakePandora()
else:
return Pandora()
View
314 pithos/pandora/blowfish.py
@@ -28,9 +28,6 @@
Send questions, comments, bugs my way:
Michael Gilfix <mgilfix@eecs.tufts.edu>
-
-This version is modified by Kevin Mehall <km@kevinmehall.net> to accept the
-S and P boxes directly, rather than computing them from a key
"""
__author__ = "Michael Gilfix <mgilfix@eecs.tufts.edu>"
@@ -87,10 +84,313 @@ def __round_func (self, xl)
# For the __round_func
modulus = long (2) ** 32
- def __init__ (self, p_boxes, s_boxes):
- self.p_boxes = p_boxes
- self.s_boxes = s_boxes
-
+ def __init__ (self, key):
+
+ if not key or len (key) < 8 or len (key) > 56:
+ raise RuntimeError, "Attempted to initialize Blowfish cipher with key of invalid length: %s" %len (key)
+
+ self.p_boxes = [
+ 0x243F6A88, 0x85A308D3, 0x13198A2E, 0x03707344,
+ 0xA4093822, 0x299F31D0, 0x082EFA98, 0xEC4E6C89,
+ 0x452821E6, 0x38D01377, 0xBE5466CF, 0x34E90C6C,
+ 0xC0AC29B7, 0xC97C50DD, 0x3F84D5B5, 0xB5470917,
+ 0x9216D5D9, 0x8979FB1B
+ ]
+
+ self.s_boxes = [
+ [
+ 0xD1310BA6, 0x98DFB5AC, 0x2FFD72DB, 0xD01ADFB7,
+ 0xB8E1AFED, 0x6A267E96, 0xBA7C9045, 0xF12C7F99,
+ 0x24A19947, 0xB3916CF7, 0x0801F2E2, 0x858EFC16,
+ 0x636920D8, 0x71574E69, 0xA458FEA3, 0xF4933D7E,
+ 0x0D95748F, 0x728EB658, 0x718BCD58, 0x82154AEE,
+ 0x7B54A41D, 0xC25A59B5, 0x9C30D539, 0x2AF26013,
+ 0xC5D1B023, 0x286085F0, 0xCA417918, 0xB8DB38EF,
+ 0x8E79DCB0, 0x603A180E, 0x6C9E0E8B, 0xB01E8A3E,
+ 0xD71577C1, 0xBD314B27, 0x78AF2FDA, 0x55605C60,
+ 0xE65525F3, 0xAA55AB94, 0x57489862, 0x63E81440,
+ 0x55CA396A, 0x2AAB10B6, 0xB4CC5C34, 0x1141E8CE,
+ 0xA15486AF, 0x7C72E993, 0xB3EE1411, 0x636FBC2A,
+ 0x2BA9C55D, 0x741831F6, 0xCE5C3E16, 0x9B87931E,
+ 0xAFD6BA33, 0x6C24CF5C, 0x7A325381, 0x28958677,
+ 0x3B8F4898, 0x6B4BB9AF, 0xC4BFE81B, 0x66282193,
+ 0x61D809CC, 0xFB21A991, 0x487CAC60, 0x5DEC8032,
+ 0xEF845D5D, 0xE98575B1, 0xDC262302, 0xEB651B88,
+ 0x23893E81, 0xD396ACC5, 0x0F6D6FF3, 0x83F44239,
+ 0x2E0B4482, 0xA4842004, 0x69C8F04A, 0x9E1F9B5E,
+ 0x21C66842, 0xF6E96C9A, 0x670C9C61, 0xABD388F0,
+ 0x6A51A0D2, 0xD8542F68, 0x960FA728, 0xAB5133A3,
+ 0x6EEF0B6C, 0x137A3BE4, 0xBA3BF050, 0x7EFB2A98,
+ 0xA1F1651D, 0x39AF0176, 0x66CA593E, 0x82430E88,
+ 0x8CEE8619, 0x456F9FB4, 0x7D84A5C3, 0x3B8B5EBE,
+ 0xE06F75D8, 0x85C12073, 0x401A449F, 0x56C16AA6,
+ 0x4ED3AA62, 0x363F7706, 0x1BFEDF72, 0x429B023D,
+ 0x37D0D724, 0xD00A1248, 0xDB0FEAD3, 0x49F1C09B,
+ 0x075372C9, 0x80991B7B, 0x25D479D8, 0xF6E8DEF7,
+ 0xE3FE501A, 0xB6794C3B, 0x976CE0BD, 0x04C006BA,
+ 0xC1A94FB6, 0x409F60C4, 0x5E5C9EC2, 0x196A2463,
+ 0x68FB6FAF, 0x3E6C53B5, 0x1339B2EB, 0x3B52EC6F,
+ 0x6DFC511F, 0x9B30952C, 0xCC814544, 0xAF5EBD09,
+ 0xBEE3D004, 0xDE334AFD, 0x660F2807, 0x192E4BB3,
+ 0xC0CBA857, 0x45C8740F, 0xD20B5F39, 0xB9D3FBDB,
+ 0x5579C0BD, 0x1A60320A, 0xD6A100C6, 0x402C7279,
+ 0x679F25FE, 0xFB1FA3CC, 0x8EA5E9F8, 0xDB3222F8,
+ 0x3C7516DF, 0xFD616B15, 0x2F501EC8, 0xAD0552AB,
+ 0x323DB5FA, 0xFD238760, 0x53317B48, 0x3E00DF82,
+ 0x9E5C57BB, 0xCA6F8CA0, 0x1A87562E, 0xDF1769DB,
+ 0xD542A8F6, 0x287EFFC3, 0xAC6732C6, 0x8C4F5573,
+ 0x695B27B0, 0xBBCA58C8, 0xE1FFA35D, 0xB8F011A0,
+ 0x10FA3D98, 0xFD2183B8, 0x4AFCB56C, 0x2DD1D35B,
+ 0x9A53E479, 0xB6F84565, 0xD28E49BC, 0x4BFB9790,
+ 0xE1DDF2DA, 0xA4CB7E33, 0x62FB1341, 0xCEE4C6E8,
+ 0xEF20CADA, 0x36774C01, 0xD07E9EFE, 0x2BF11FB4,
+ 0x95DBDA4D, 0xAE909198, 0xEAAD8E71, 0x6B93D5A0,
+ 0xD08ED1D0, 0xAFC725E0, 0x8E3C5B2F, 0x8E7594B7,
+ 0x8FF6E2FB, 0xF2122B64, 0x8888B812, 0x900DF01C,
+ 0x4FAD5EA0, 0x688FC31C, 0xD1CFF191, 0xB3A8C1AD,
+ 0x2F2F2218, 0xBE0E1777, 0xEA752DFE, 0x8B021FA1,
+ 0xE5A0CC0F, 0xB56F74E8, 0x18ACF3D6, 0xCE89E299,
+ 0xB4A84FE0, 0xFD13E0B7, 0x7CC43B81, 0xD2ADA8D9,
+ 0x165FA266, 0x80957705, 0x93CC7314, 0x211A1477,
+ 0xE6AD2065, 0x77B5FA86, 0xC75442F5, 0xFB9D35CF,
+ 0xEBCDAF0C, 0x7B3E89A0, 0xD6411BD3, 0xAE1E7E49,
+ 0x00250E2D, 0x2071B35E, 0x226800BB, 0x57B8E0AF,
+ 0x2464369B, 0xF009B91E, 0x5563911D, 0x59DFA6AA,
+ 0x78C14389, 0xD95A537F, 0x207D5BA2, 0x02E5B9C5,
+ 0x83260376, 0x6295CFA9, 0x11C81968, 0x4E734A41,
+ 0xB3472DCA, 0x7B14A94A, 0x1B510052, 0x9A532915,
+ 0xD60F573F, 0xBC9BC6E4, 0x2B60A476, 0x81E67400,
+ 0x08BA6FB5, 0x571BE91F, 0xF296EC6B, 0x2A0DD915,
+ 0xB6636521, 0xE7B9F9B6, 0xFF34052E, 0xC5855664,
+ 0x53B02D5D, 0xA99F8FA1, 0x08BA4799, 0x6E85076A
+ ],
+ [
+ 0x4B7A70E9, 0xB5B32944, 0xDB75092E, 0xC4192623,
+ 0xAD6EA6B0, 0x49A7DF7D, 0x9CEE60B8, 0x8FEDB266,
+ 0xECAA8C71, 0x699A17FF, 0x5664526C, 0xC2B19EE1,
+ 0x193602A5, 0x75094C29, 0xA0591340, 0xE4183A3E,
+ 0x3F54989A, 0x5B429D65, 0x6B8FE4D6, 0x99F73FD6,
+ 0xA1D29C07, 0xEFE830F5, 0x4D2D38E6, 0xF0255DC1,
+ 0x4CDD2086, 0x8470EB26, 0x6382E9C6, 0x021ECC5E,
+ 0x09686B3F, 0x3EBAEFC9, 0x3C971814, 0x6B6A70A1,
+ 0x687F3584, 0x52A0E286, 0xB79C5305, 0xAA500737,
+ 0x3E07841C, 0x7FDEAE5C, 0x8E7D44EC, 0x5716F2B8,
+ 0xB03ADA37, 0xF0500C0D, 0xF01C1F04, 0x0200B3FF,
+ 0xAE0CF51A, 0x3CB574B2, 0x25837A58, 0xDC0921BD,
+ 0xD19113F9, 0x7CA92FF6, 0x94324773, 0x22F54701,
+ 0x3AE5E581, 0x37C2DADC, 0xC8B57634, 0x9AF3DDA7,
+ 0xA9446146, 0x0FD0030E, 0xECC8C73E, 0xA4751E41,
+ 0xE238CD99, 0x3BEA0E2F, 0x3280BBA1, 0x183EB331,
+ 0x4E548B38, 0x4F6DB908, 0x6F420D03, 0xF60A04BF,
+ 0x2CB81290, 0x24977C79, 0x5679B072, 0xBCAF89AF,
+ 0xDE9A771F, 0xD9930810, 0xB38BAE12, 0xDCCF3F2E,
+ 0x5512721F, 0x2E6B7124, 0x501ADDE6, 0x9F84CD87,
+ 0x7A584718, 0x7408DA17, 0xBC9F9ABC, 0xE94B7D8C,
+ 0xEC7AEC3A, 0xDB851DFA, 0x63094366, 0xC464C3D2,
+ 0xEF1C1847, 0x3215D908, 0xDD433B37, 0x24C2BA16,
+ 0x12A14D43, 0x2A65C451, 0x50940002, 0x133AE4DD,
+ 0x71DFF89E, 0x10314E55, 0x81AC77D6, 0x5F11199B,
+ 0x043556F1, 0xD7A3C76B, 0x3C11183B, 0x5924A509,
+ 0xF28FE6ED, 0x97F1FBFA, 0x9EBABF2C, 0x1E153C6E,
+ 0x86E34570, 0xEAE96FB1, 0x860E5E0A, 0x5A3E2AB3,
+ 0x771FE71C, 0x4E3D06FA, 0x2965DCB9, 0x99E71D0F,
+ 0x803E89D6, 0x5266C825, 0x2E4CC978, 0x9C10B36A,
+ 0xC6150EBA, 0x94E2EA78, 0xA5FC3C53, 0x1E0A2DF4,
+ 0xF2F74EA7, 0x361D2B3D, 0x1939260F, 0x19C27960,
+ 0x5223A708, 0xF71312B6, 0xEBADFE6E, 0xEAC31F66,
+ 0xE3BC4595, 0xA67BC883, 0xB17F37D1, 0x018CFF28,
+ 0xC332DDEF, 0xBE6C5AA5, 0x65582185, 0x68AB9802,
+ 0xEECEA50F, 0xDB2F953B, 0x2AEF7DAD, 0x5B6E2F84,
+ 0x1521B628, 0x29076170, 0xECDD4775, 0x619F1510,
+ 0x13CCA830, 0xEB61BD96, 0x0334FE1E, 0xAA0363CF,
+ 0xB5735C90, 0x4C70A239, 0xD59E9E0B, 0xCBAADE14,
+ 0xEECC86BC, 0x60622CA7, 0x9CAB5CAB, 0xB2F3846E,
+ 0x648B1EAF, 0x19BDF0CA, 0xA02369B9, 0x655ABB50,
+ 0x40685A32, 0x3C2AB4B3, 0x319EE9D5, 0xC021B8F7,
+ 0x9B540B19, 0x875FA099, 0x95F7997E, 0x623D7DA8,
+ 0xF837889A, 0x97E32D77, 0x11ED935F, 0x16681281,
+ 0x0E358829, 0xC7E61FD6, 0x96DEDFA1, 0x7858BA99,
+ 0x57F584A5, 0x1B227263, 0x9B83C3FF, 0x1AC24696,
+ 0xCDB30AEB, 0x532E3054, 0x8FD948E4, 0x6DBC3128,
+ 0x58EBF2EF, 0x34C6FFEA, 0xFE28ED61, 0xEE7C3C73,
+ 0x5D4A14D9, 0xE864B7E3, 0x42105D14, 0x203E13E0,
+ 0x45EEE2B6, 0xA3AAABEA, 0xDB6C4F15, 0xFACB4FD0,
+ 0xC742F442, 0xEF6ABBB5, 0x654F3B1D, 0x41CD2105,
+ 0xD81E799E, 0x86854DC7, 0xE44B476A, 0x3D816250,
+ 0xCF62A1F2, 0x5B8D2646, 0xFC8883A0, 0xC1C7B6A3,
+ 0x7F1524C3, 0x69CB7492, 0x47848A0B, 0x5692B285,
+ 0x095BBF00, 0xAD19489D, 0x1462B174, 0x23820E00,
+ 0x58428D2A, 0x0C55F5EA, 0x1DADF43E, 0x233F7061,
+ 0x3372F092, 0x8D937E41, 0xD65FECF1, 0x6C223BDB,
+ 0x7CDE3759, 0xCBEE7460, 0x4085F2A7, 0xCE77326E,
+ 0xA6078084, 0x19F8509E, 0xE8EFD855, 0x61D99735,
+ 0xA969A7AA, 0xC50C06C2, 0x5A04ABFC, 0x800BCADC,
+ 0x9E447A2E, 0xC3453484, 0xFDD56705, 0x0E1E9EC9,
+ 0xDB73DBD3, 0x105588CD, 0x675FDA79, 0xE3674340,
+ 0xC5C43465, 0x713E38D8, 0x3D28F89E, 0xF16DFF20,
+ 0x153E21E7, 0x8FB03D4A, 0xE6E39F2B, 0xDB83ADF7
+ ],
+ [
+ 0xE93D5A68, 0x948140F7, 0xF64C261C, 0x94692934,
+ 0x411520F7, 0x7602D4F7, 0xBCF46B2E, 0xD4A20068,
+ 0xD4082471, 0x3320F46A, 0x43B7D4B7, 0x500061AF,
+ 0x1E39F62E, 0x97244546, 0x14214F74, 0xBF8B8840,
+ 0x4D95FC1D, 0x96B591AF, 0x70F4DDD3, 0x66A02F45,
+ 0xBFBC09EC, 0x03BD9785, 0x7FAC6DD0, 0x31CB8504,
+ 0x96EB27B3, 0x55FD3941, 0xDA2547E6, 0xABCA0A9A,
+ 0x28507825, 0x530429F4, 0x0A2C86DA, 0xE9B66DFB,
+ 0x68DC1462, 0xD7486900, 0x680EC0A4, 0x27A18DEE,
+ 0x4F3FFEA2, 0xE887AD8C, 0xB58CE006, 0x7AF4D6B6,
+ 0xAACE1E7C, 0xD3375FEC, 0xCE78A399, 0x406B2A42,
+ 0x20FE9E35, 0xD9F385B9, 0xEE39D7AB, 0x3B124E8B,
+ 0x1DC9FAF7, 0x4B6D1856, 0x26A36631, 0xEAE397B2,
+ 0x3A6EFA74, 0xDD5B4332, 0x6841E7F7, 0xCA7820FB,
+ 0xFB0AF54E, 0xD8FEB397, 0x454056AC, 0xBA489527,
+ 0x55533A3A, 0x20838D87, 0xFE6BA9B7, 0xD096954B,
+ 0x55A867BC, 0xA1159A58, 0xCCA92963, 0x99E1DB33,
+ 0xA62A4A56, 0x3F3125F9, 0x5EF47E1C, 0x9029317C,
+ 0xFDF8E802, 0x04272F70, 0x80BB155C, 0x05282CE3,
+ 0x95C11548, 0xE4C66D22, 0x48C1133F, 0xC70F86DC,
+ 0x07F9C9EE, 0x41041F0F, 0x404779A4, 0x5D886E17,
+ 0x325F51EB, 0xD59BC0D1, 0xF2BCC18F, 0x41113564,
+ 0x257B7834, 0x602A9C60, 0xDFF8E8A3, 0x1F636C1B,
+ 0x0E12B4C2, 0x02E1329E, 0xAF664FD1, 0xCAD18115,
+ 0x6B2395E0, 0x333E92E1, 0x3B240B62, 0xEEBEB922,
+ 0x85B2A20E, 0xE6BA0D99, 0xDE720C8C, 0x2DA2F728,
+ 0xD0127845, 0x95B794FD, 0x647D0862, 0xE7CCF5F0,
+ 0x5449A36F, 0x877D48FA, 0xC39DFD27, 0xF33E8D1E,
+ 0x0A476341, 0x992EFF74, 0x3A6F6EAB, 0xF4F8FD37,
+ 0xA812DC60, 0xA1EBDDF8, 0x991BE14C, 0xDB6E6B0D,
+ 0xC67B5510, 0x6D672C37, 0x2765D43B, 0xDCD0E804,
+ 0xF1290DC7, 0xCC00FFA3, 0xB5390F92, 0x690FED0B,
+ 0x667B9FFB, 0xCEDB7D9C, 0xA091CF0B, 0xD9155EA3,
+ 0xBB132F88, 0x515BAD24, 0x7B9479BF, 0x763BD6EB,
+ 0x37392EB3, 0xCC115979, 0x8026E297, 0xF42E312D,
+ 0x6842ADA7, 0xC66A2B3B, 0x12754CCC, 0x782EF11C,
+ 0x6A124237, 0xB79251E7, 0x06A1BBE6, 0x4BFB6350,
+ 0x1A6B1018, 0x11CAEDFA, 0x3D25BDD8, 0xE2E1C3C9,
+ 0x44421659, 0x0A121386, 0xD90CEC6E, 0xD5ABEA2A,
+ 0x64AF674E, 0xDA86A85F, 0xBEBFE988, 0x64E4C3FE,
+ 0x9DBC8057, 0xF0F7C086, 0x60787BF8, 0x6003604D,
+ 0xD1FD8346, 0xF6381FB0, 0x7745AE04, 0xD736FCCC,
+ 0x83426B33, 0xF01EAB71, 0xB0804187, 0x3C005E5F,
+ 0x77A057BE, 0xBDE8AE24, 0x55464299, 0xBF582E61,
+ 0x4E58F48F, 0xF2DDFDA2, 0xF474EF38, 0x8789BDC2,
+ 0x5366F9C3, 0xC8B38E74, 0xB475F255, 0x46FCD9B9,
+ 0x7AEB2661, 0x8B1DDF84, 0x846A0E79, 0x915F95E2,
+ 0x466E598E, 0x20B45770, 0x8CD55591, 0xC902DE4C,
+ 0xB90BACE1, 0xBB8205D0, 0x11A86248, 0x7574A99E,
+ 0xB77F19B6, 0xE0A9DC09, 0x662D09A1, 0xC4324633,
+ 0xE85A1F02, 0x09F0BE8C, 0x4A99A025, 0x1D6EFE10,
+ 0x1AB93D1D, 0x0BA5A4DF, 0xA186F20F, 0x2868F169,
+ 0xDCB7DA83, 0x573906FE, 0xA1E2CE9B, 0x4FCD7F52,
+ 0x50115E01, 0xA70683FA, 0xA002B5C4, 0x0DE6D027,
+ 0x9AF88C27, 0x773F8641, 0xC3604C06, 0x61A806B5,
+ 0xF0177A28, 0xC0F586E0, 0x006058AA, 0x30DC7D62,
+ 0x11E69ED7, 0x2338EA63, 0x53C2DD94, 0xC2C21634,
+ 0xBBCBEE56, 0x90BCB6DE, 0xEBFC7DA1, 0xCE591D76,
+ 0x6F05E409, 0x4B7C0188, 0x39720A3D, 0x7C927C24,
+ 0x86E3725F, 0x724D9DB9, 0x1AC15BB4, 0xD39EB8FC,
+ 0xED545578, 0x08FCA5B5, 0xD83D7CD3, 0x4DAD0FC4,
+ 0x1E50EF5E, 0xB161E6F8, 0xA28514D9, 0x6C51133C,
+ 0x6FD5C7E7, 0x56E14EC4, 0x362ABFCE, 0xDDC6C837,
+ 0xD79A3234, 0x92638212, 0x670EFA8E, 0x406000E0
+ ],
+ [
+ 0x3A39CE37, 0xD3FAF5CF, 0xABC27737, 0x5AC52D1B,
+ 0x5CB0679E, 0x4FA33742, 0xD3822740, 0x99BC9BBE,
+ 0xD5118E9D, 0xBF0F7315, 0xD62D1C7E, 0xC700C47B,
+ 0xB78C1B6B, 0x21A19045, 0xB26EB1BE, 0x6A366EB4,
+ 0x5748AB2F, 0xBC946E79, 0xC6A376D2, 0x6549C2C8,
+ 0x530FF8EE, 0x468DDE7D, 0xD5730A1D, 0x4CD04DC6,
+ 0x2939BBDB, 0xA9BA4650, 0xAC9526E8, 0xBE5EE304,
+ 0xA1FAD5F0, 0x6A2D519A, 0x63EF8CE2, 0x9A86EE22,
+ 0xC089C2B8, 0x43242EF6, 0xA51E03AA, 0x9CF2D0A4,
+ 0x83C061BA, 0x9BE96A4D, 0x8FE51550, 0xBA645BD6,
+ 0x2826A2F9, 0xA73A3AE1, 0x4BA99586, 0xEF5562E9,
+ 0xC72FEFD3, 0xF752F7DA, 0x3F046F69, 0x77FA0A59,
+ 0x80E4A915, 0x87B08601, 0x9B09E6AD, 0x3B3EE593,
+ 0xE990FD5A, 0x9E34D797, 0x2CF0B7D9, 0x022B8B51,
+ 0x96D5AC3A, 0x017DA67D, 0xD1CF3ED6, 0x7C7D2D28,
+ 0x1F9F25CF, 0xADF2B89B, 0x5AD6B472, 0x5A88F54C,
+ 0xE029AC71, 0xE019A5E6, 0x47B0ACFD, 0xED93FA9B,
+ 0xE8D3C48D, 0x283B57CC, 0xF8D56629, 0x79132E28,
+ 0x785F0191, 0xED756055, 0xF7960E44, 0xE3D35E8C,
+ 0x15056DD4, 0x88F46DBA, 0x03A16125, 0x0564F0BD,
+ 0xC3EB9E15, 0x3C9057A2, 0x97271AEC, 0xA93A072A,
+ 0x1B3F6D9B, 0x1E6321F5, 0xF59C66FB, 0x26DCF319,
+ 0x7533D928, 0xB155FDF5, 0x03563482, 0x8ABA3CBB,
+ 0x28517711, 0xC20AD9F8, 0xABCC5167, 0xCCAD925F,
+ 0x4DE81751, 0x3830DC8E, 0x379D5862, 0x9320F991,
+ 0xEA7A90C2, 0xFB3E7BCE, 0x5121CE64, 0x774FBE32,
+ 0xA8B6E37E, 0xC3293D46, 0x48DE5369, 0x6413E680,
+ 0xA2AE0810, 0xDD6DB224, 0x69852DFD, 0x09072166,
+ 0xB39A460A, 0x6445C0DD, 0x586CDECF, 0x1C20C8AE,
+ 0x5BBEF7DD, 0x1B588D40, 0xCCD2017F, 0x6BB4E3BB,
+ 0xDDA26A7E, 0x3A59FF45, 0x3E350A44, 0xBCB4CDD5,
+ 0x72EACEA8, 0xFA6484BB, 0x8D6612AE, 0xBF3C6F47,
+ 0xD29BE463, 0x542F5D9E, 0xAEC2771B, 0xF64E6370,
+ 0x740E0D8D, 0xE75B1357, 0xF8721671, 0xAF537D5D,
+ 0x4040CB08, 0x4EB4E2CC, 0x34D2466A, 0x0115AF84,
+ 0xE1B00428, 0x95983A1D, 0x06B89FB4, 0xCE6EA048,
+ 0x6F3F3B82, 0x3520AB82, 0x011A1D4B, 0x277227F8,
+ 0x611560B1, 0xE7933FDC, 0xBB3A792B, 0x344525BD,
+ 0xA08839E1, 0x51CE794B, 0x2F32C9B7, 0xA01FBAC9,
+ 0xE01CC87E, 0xBCC7D1F6, 0xCF0111C3, 0xA1E8AAC7,
+ 0x1A908749, 0xD44FBD9A, 0xD0DADECB, 0xD50ADA38,
+ 0x0339C32A, 0xC6913667, 0x8DF9317C, 0xE0B12B4F,
+ 0xF79E59B7, 0x43F5BB3A, 0xF2D519FF, 0x27D9459C,
+ 0xBF97222C, 0x15E6FC2A, 0x0F91FC71, 0x9B941525,
+ 0xFAE59361, 0xCEB69CEB, 0xC2A86459, 0x12BAA8D1,
+ 0xB6C1075E, 0xE3056A0C, 0x10D25065, 0xCB03A442,
+ 0xE0EC6E0E, 0x1698DB3B, 0x4C98A0BE, 0x3278E964,
+ 0x9F1F9532, 0xE0D392DF, 0xD3A0342B, 0x8971F21E,
+ 0x1B0A7441, 0x4BA3348C, 0xC5BE7120, 0xC37632D8,
+ 0xDF359F8D, 0x9B992F2E, 0xE60B6F47, 0x0FE3F11D,
+ 0xE54CDA54, 0x1EDAD891, 0xCE6279CF, 0xCD3E7E6F,
+ 0x1618B166, 0xFD2C1D05, 0x848FD2C5, 0xF6FB2299,
+ 0xF523F357, 0xA6327623, 0x93A83531, 0x56CCCD02,
+ 0xACF08162, 0x5A75EBB5, 0x6E163697, 0x88D273CC,
+ 0xDE966292, 0x81B949D0, 0x4C50901B, 0x71C65614,
+ 0xE6C6C7BD, 0x327A140A, 0x45E1D006, 0xC3F27B9A,
+ 0xC9AA53FD, 0x62A80F00, 0xBB25BFE2, 0x35BDD2F6,
+ 0x71126905, 0xB2040222, 0xB6CBCF7C, 0xCD769C2B,
+ 0x53113EC0, 0x1640E3D3, 0x38ABBD60, 0x2547ADF0,
+ 0xBA38209C, 0xF746CE76, 0x77AFA1C5, 0x20756060,
+ 0x85CBFE4E, 0x8AE88DD8, 0x7AAAF9B0, 0x4CF9AA7E,
+ 0x1948C25C, 0x02FB8A8C, 0x01C36AE4, 0xD6EBE1F9,
+ 0x90D4F869, 0xA65CDEA0, 0x3F09252D, 0xC208E69F,
+ 0xB74E6132, 0xCE77E25B, 0x578FDFE3, 0x3AC372E6
+ ]
+ ]
+
+ # Cycle through the p-boxes and round-robin XOR the
+ # key with the p-boxes
+ key_len = len (key)
+ index = 0
+ for i in range (len (self.p_boxes)):
+ val = (ord (key[index % key_len]) << 24) + \
+ (ord (key[(index + 1) % key_len]) << 16) + \
+ (ord (key[(index + 2) % key_len]) << 8) + \
+ ord (key[(index + 3) % key_len])
+ self.p_boxes[i] = self.p_boxes[i] ^ val
+ index = index + 4
+
+ # For the chaining process
+ l, r = 0, 0
+
+ # Begin chain replacing the p-boxes
+ for i in range (0, len (self.p_boxes), 2):
+ l, r = self.cipher (l, r, self.ENCRYPT)
+ self.p_boxes[i] = l
+ self.p_boxes[i + 1] = r
+
+ # Chain replace the s-boxes
+ for i in range (len (self.s_boxes)):
+ for j in range (0, len (self.s_boxes[i]), 2):
+ l, r = self.cipher (l, r, self.ENCRYPT)
+ self.s_boxes[i][j] = l
+ self.s_boxes[i][j + 1] = r
def cipher (self, xl, xr, direction):
View
109 pithos/pandora/fake.py
@@ -52,79 +52,70 @@ def maybe_fail(self):
def set_authenticated(self):
self.auth_check.set_active(True)
-
- def xmlrpc_call(self, method, args=[], url_args=True, secure=False):
+
+ def json_call(self, method, args={}, https=False, blowfish=True):
time.sleep(1)
- if method != 'listener.authenticateListener':
- self.maybe_fail()
-
- if method == 'listener.authenticateListener':
- self.set_authenticated()
- return {'webAuthToken': '123', 'listenerId':'456', 'authToken':'789'}
-
- elif method == 'station.getStations':
- return [
- {'stationId':'987', 'stationIdToken':'345434', 'isCreator':True, 'isQuickMix':False, 'stationName':"Test Station 1"},
- {'stationId':'321', 'stationIdToken':'453544', 'isCreator':True, 'isQuickMix':True, 'stationName':"Fake's QuickMix",
+ self.maybe_fail()
+
+ if method == 'user.getStationList':
+ return {'stations': [
+ {'stationId':'987', 'stationToken':'345434', 'isShared':False, 'isQuickMix':False, 'stationName':"Test Station 1"},
+ {'stationId':'321', 'stationToken':'453544', 'isShared':False, 'isQuickMix':True, 'stationName':"Fake's QuickMix",
'quickMixStationIds':['987', '343']},
- {'stationId':'432', 'stationIdToken':'345485', 'isCreator':True, 'isQuickMix':False, 'stationName':"Test Station 2"},
- {'stationId':'254', 'stationIdToken':'345415', 'isCreator':True, 'isQuickMix':False, 'stationName':"Test Station 4 - Out of Order"},
- {'stationId':'343', 'stationIdToken':'345435', 'isCreator':True, 'isQuickMix':False, 'stationName':"Test Station 3"},
- ]
- elif method == 'playlist.getFragment':
- return [self.makeFakeSong(args) for i in range(4)]
+ {'stationId':'432', 'stationToken':'345485', 'isShared':False, 'isQuickMix':False, 'stationName':"Test Station 2"},
+ {'stationId':'254', 'stationToken':'345415', 'isShared':False, 'isQuickMix':False, 'stationName':"Test Station 4 - Out of Order"},
+ {'stationId':'343', 'stationToken':'345435', 'isShared':False, 'isQuickMix':False, 'stationName':"Test Station 3"},
+ ]}
+ elif method == 'station.getPlaylist':
+ stationId = self.get_station_by_token(args['stationToken']).id
+ return {'items': [self.makeFakeSong(stationId) for i in range(4)]}
elif method == 'music.search':
return {'artists': [
- {'score':90, 'musicId':'988', 'artistName':"artistName"},
+ {'score':90, 'musicToken':'988', 'artistName':"artistName"},
],
'songs':[
- {'score':80, 'musicId':'238', 'songTitle':"SongName", 'artistSummary':"ArtistName"},
+ {'score':80, 'musicToken':'238', 'songName':"SongName", 'artistName':"ArtistName"},
],
}
elif method == 'station.createStation':
- return {'stationId':'999', 'stationIdToken':'345433', 'isCreator':True, 'isQuickMix':False, 'stationName':"Added Station"}
- elif method in ('station.setQuickMix',
- 'station.addFeedback',
- 'station.transformShared',
- 'station.setStationName',
- 'station.removeStation',
- 'listener.addTiredSong',
- 'station.createBookmark',
- 'station.createArtistBookmark',
+ return {'stationId':'999', 'stationToken':'345433', 'isShared':False, 'isQuickMix':False, 'stationName':"Added Station"}
+ elif method == 'station.addFeedback':
+ return {'feedbackId': '1234'}
+ elif method in ('user.setQuickMix',
+ 'station.deleteFeedback',
+ 'station.transformSharedStation',
+ 'station.renameStation',
+ 'station.deleteStation',
+ 'user.sleepSong',
+ 'bookmark.addSongBookmark',
+ 'bookmark.addArtistBookmark',
):
return 1
else:
logging.error("Invalid method %s" % method)
-
+
def connect(self, user, password):
- self.listenerId = self.authToken = None
-
- user = self.xmlrpc_call('listener.authenticateListener', [user, password], [], secure=True)
-
- self.webAuthToken = user['webAuthToken']
- self.listenerId = user['listenerId']
- self.authToken = user['authToken']
-
- self.get_stations(self)
-
- def makeFakeSong(self, args):
+ self.set_authenticated()
+ self.get_stations()
+
+ def get_station_by_token(self, token):
+ for i in self.stations:
+ if i.idToken == token:
+ return i
+
+ def makeFakeSong(self, stationId):
c = self.count()
return {
- 'albumTitle':"AlbumName",
- 'artistSummary':"ArtistName",
- 'artistMusicId':'4324',
- 'audioURL':'http://kevinmehall.net/p/pithos/testfile.aac?val='+'0'*48,
- 'fileGain':0,
- 'identity':'5908540384',
- 'musicId':'4543',
- 'rating': 1 if c%3 == 0 else 0,
- 'stationId': args[0],
- 'songTitle': 'Test song %i'%c,
- 'userSeed': '54543',
- 'songDetailURL': 'http://kevinmehall.net/p/pithos/',
- 'albumDetailURL':'http://kevinmehall.net/p/pithos/',
- 'artRadio':'http://i.imgur.com/H3Z8x.jpg',
- 'songType':0,
- 'trackToken':12345,
+ 'albumName':"AlbumName",
+ 'artistName':"ArtistName",
+ 'additionalAudioUrl':'http://kevinmehall.net/p/pithos/testfile.aac?val='+'0'*48,
+ 'trackGain':0,
+ 'trackToken':'5908540384',
+ 'songRating': 1 if c%3 == 0 else 0,
+ 'stationId': stationId,
+ 'songName': 'Test song %i'%c,
+ 'songDetailUrl': 'http://kevinmehall.net/p/pithos/',
+ 'albumDetailUrl':'http://kevinmehall.net/p/pithos/',
+ 'albumArtUrl':'http://i.imgur.com/H4Z8x.jpg',
}
-
+
View
101 pithos/pandora/pandora.py
@@ -15,8 +15,7 @@
#with this program. If not, see <http://www.gnu.org/licenses/>.
### END LICENSE
-from blowfish import Blowfish
-import pandora_keys
+from pithos.pandora.blowfish import Blowfish
import json
import logging
import time
@@ -28,24 +27,39 @@
# See http://pan-do-ra-api.wikia.com/wiki/Json/5 for API documentation.
PROTOCOL_VERSION = '5'
-RPC_URL = "://tuner.pandora.com/services/json/?"
-DEVICE_MODEL = 'android-generic'
-PARTNER_USERNAME = 'android'
-PARTNER_PASSWORD = 'AC7IBG09A3DTSYM4R41UJWL07VLN8JI7'
+
+CLIENTS = {'android-generic': {'deviceModel': 'android-generic',
+ 'partner_username': 'android',
+ 'partner_password': 'AC7IBG09A3DTSYM4R41UJWL07VLN8JI7',
+ 'rpcUrl': '://tuner.pandora.com/services/json/?',
+ 'encryptKey': '6#26FRL$ZWD',
+ 'decryptKey': 'R=U!LH$O2B#',
+ },
+ 'pandora one': {'deviceModel': 'D01',
+ 'partner_username': 'pandora one',
+ 'partner_password': 'TVCKIBGS9AO9TSYLNNFUML0743LH82D',
+ 'rpcUrl': '://internal-tuner.pandora.com/services/json/?',
+ 'encryptKey': '2%3WCL*JU$MP]4',
+ 'decryptKey': 'U#IO$RZPAB%VX2',
+ }
+ }
+DEFAULT_CLIENT = CLIENTS['android-generic']
HTTP_TIMEOUT = 30
-AUDIO_FORMAT = 'aacplus'
USER_AGENT = 'pithos'
RATE_BAN = 'ban'
RATE_LOVE = 'love'
RATE_NONE = None
API_ERROR_API_VERSION_NOT_SUPPORTED = 11
+API_ERROR_COUNTRY_NOT_SUPPORTED = 12
API_ERROR_INSUFFICIENT_CONNECTIVITY = 13
API_ERROR_READ_ONLY_MODE = 1000
API_ERROR_INVALID_AUTH_TOKEN = 1001
API_ERROR_INVALID_LOGIN = 1002
+API_ERROR_LISTENER_NOT_AUTHORIZED = 1003
+API_ERROR_PARTNER_NOT_AUTHORIZED = 1010
PLAYLIST_VALIDITY_TIME = 60*60*3
@@ -61,24 +75,16 @@ class PandoraAPIVersionError(PandoraError): pass
class PandoraTimeout(PandoraNetError): pass
-blowfish_encode = Blowfish(pandora_keys.out_key_p, pandora_keys.out_key_s)
-
def pad(s, l):
return s + "\0" * (l - len(s))
-def pandora_encrypt(s):
- return "".join([blowfish_encode.encrypt(pad(s[i:i+8], 8)).encode('hex') for i in xrange(0, len(s), 8)])
-
-blowfish_decode = Blowfish(pandora_keys.in_key_p, pandora_keys.in_key_s)
-
-def pandora_decrypt(s):
- return "".join([blowfish_decode.decrypt(pad(s[i:i+16].decode('hex'), 8)) for i in xrange(0, len(s), 16)]).rstrip('\x08')
-
class Pandora(object):
- def __init__(self):
- self.set_proxy(None)
- self.set_audio_format(AUDIO_FORMAT)
+ def pandora_encrypt(self, s):
+ return "".join([self.blowfish_encode.encrypt(pad(s[i:i+8], 8)).encode('hex') for i in xrange(0, len(s), 8)])
+
+ def pandora_decrypt(self, s):
+ return "".join([self.blowfish_decode.decrypt(pad(s[i:i+16].decode('hex'), 8)) for i in xrange(0, len(s), 16)]).rstrip('\x08')
def json_call(self, method, args={}, https=False, blowfish=True):
url_arg_strings = []
@@ -93,7 +99,7 @@ def json_call(self, method, args={}, https=False, blowfish=True):
url_arg_strings.append('method=%s'%method)
protocol = 'https' if https else 'http'
- url = protocol + RPC_URL + '&'.join(url_arg_strings)
+ url = protocol + self.rpc_url + '&'.join(url_arg_strings)
if self.time_offset:
args['syncTime'] = int(time.time()+self.time_offset)
@@ -107,7 +113,7 @@ def json_call(self, method, args={}, https=False, blowfish=True):
logging.debug(data)
if blowfish:
- data = pandora_encrypt(data)
+ data = self.pandora_encrypt(data)
try:
req = urllib2.Request(url, data, {'User-agent': USER_AGENT, 'Content-type': 'text/plain'})
@@ -134,6 +140,9 @@ def json_call(self, method, args={}, https=False, blowfish=True):
if code == API_ERROR_INVALID_AUTH_TOKEN:
raise PandoraAuthTokenInvalid(msg)
+ elif code == API_ERROR_COUNTRY_NOT_SUPPORTED:
+ raise PandoraError("Pandora not available", code,
+ submsg="Pandora is not available outside the United States.")
elif code == API_ERROR_API_VERSION_NOT_SUPPORTED:
raise PandoraAPIVersionError(msg)
elif code == API_ERROR_INSUFFICIENT_CONNECTIVITY:
@@ -144,34 +153,55 @@ def json_call(self, method, args={}, https=False, blowfish=True):
submsg="Pandora is in read-only mode as it is performing maintenance. Try again later.")
elif code == API_ERROR_INVALID_LOGIN:
raise PandoraError("Login Error", code, submsg="Invalid username or password")
+ elif code == API_ERROR_LISTENER_NOT_AUTHORIZED:
+ raise PandoraError("Login Error", code, submsg='User is not a Pandora One subscriber.\nPlease uncheck "Pandora One Subscriber" in preferences.')
+ elif code == API_ERROR_PARTNER_NOT_AUTHORIZED:
+ raise PandoraError("Login Error", code,
+ submsg="Invalid Pandora partner keys. A Pithos update may be required.")
else:
raise PandoraError("Pandora returned an error", code, "%s (code %d)"%(msg, code))
if 'result' in tree:
return tree['result']
- def set_audio_format(self, fmt):
- self.audio_format = ['aacplus', 'mp3', 'mp3-hifi'].index(fmt)
+ def set_audio_quality(self, fmt):
+ self.audio_quality = fmt
def set_proxy(self, proxy):
if proxy:
proxy_handler = urllib2.ProxyHandler({'http': proxy})
- self.opener = urllib2.build_opener(proxy_handler)
+ self.opener = urllib2.build_opener(proxy_handler)
else:
- self.opener = urllib2.build_opener()
+ self.opener = urllib2.build_opener()
+
+ def connect(self, prefs):
+ client = DEFAULT_CLIENT
+ if prefs['pandora_one']:
+ client = CLIENTS['pandora one']
+ self.partner_username = prefs.get('partner_username', client['partner_username'])
+ self.partner_password = prefs.get('partner_password', client['partner_password'])
+ self.device_model = prefs.get('device_model', client['deviceModel'])
+ self.blowfish_encode = Blowfish(prefs.get('encrypt_key', client['encryptKey']))
+ self.blowfish_decode = Blowfish(prefs.get('decrypt_key', client['decryptKey']))
+ self.rpc_url = prefs.get('rpc_url', client['rpcUrl'])
- def connect(self, user, password):
self.partnerId = self.userId = self.partnerAuthToken = self.userAuthToken = self.time_offset = None
- partner = self.json_call('auth.partnerLogin', {'deviceModel': DEVICE_MODEL, 'username': PARTNER_USERNAME, 'password': PARTNER_PASSWORD, 'version': PROTOCOL_VERSION}, https=True, blowfish=False)
+ partner = self.json_call('auth.partnerLogin', {'deviceModel': self.device_model,
+ 'username': self.partner_username,
+ 'password': self.partner_password,
+ 'version': PROTOCOL_VERSION},
+ https=True, blowfish=False)
self.partnerId = partner['partnerId']
self.partnerAuthToken = partner['partnerAuthToken']
- pandora_time = int(pandora_decrypt(partner['syncTime'])[4:14])
+ pandora_time = int(self.pandora_decrypt(partner['syncTime'])[4:14])
self.time_offset = pandora_time - time.time()
logging.info("Time offset is %s", self.time_offset)
- user = self.json_call('auth.userLogin', {'username': user, 'password': password, 'loginType': 'user'}, https=True)
+ user = self.json_call('auth.userLogin', {'username': prefs['username'],
+ 'password': prefs['password'], 'loginType': 'user'},
+ https=True)
self.userId = user['userId']
self.userAuthToken = user['userAuthToken']
@@ -245,7 +275,8 @@ def transformIfShared(self):
def get_playlist(self):
logging.info("pandora: Get Playlist")
- playlist = self.pandora.json_call('station.getPlaylist', {'stationToken': self.idToken, 'additionalAudioUrl': 'HTTP_64_AACPLUS_ADTS,HTTP_128_MP3,HTTP_192_MP3'}, https=True)
+ playlist = self.pandora.json_call('station.getPlaylist',
+ {'stationToken': self.idToken}, https=True)
songs = []
for i in playlist['items']:
if 'songName' in i: # check for ads
@@ -273,14 +304,16 @@ def __init__(self, pandora, d):
self.album = d['albumName']
self.artist = d['artistName']
- self.audioUrl = d['additionalAudioUrl'][self.pandora.audio_format]
- self.fileGain = d['trackGain']
+ if self.pandora.audio_quality in d['audioUrlMap']:
+ self.audioUrl = d['audioUrlMap'][self.pandora.audio_quality]['audioUrl']
+ else:
+ # Just pick the first one
+ self.audioUrl = d['audioUrlMap'].values()[0]['audioUrl']
self.trackToken = d['trackToken']
self.rating = RATE_LOVE if d['songRating'] == 1 else RATE_NONE # banned songs won't play, so we don't care about them
self.stationId = d['stationId']
self.title = d['songName']
self.songDetailURL = d['songDetailUrl']
- self.albumDetailURL = d['albumDetailUrl']
self.artRadio = d['albumArtUrl']
self.tired=False
View
369 pithos/pandora/pandora_keys.py
@@ -1,369 +0,0 @@
-# processed Android keys
-out_key_p = [
-0xb43f6f21, 0x77d67cb4, 0x872bc2af, 0x740c67d2, 0x06b5b538, 0x203471d9,
-0x5b166908, 0x1992e2dd, 0x709c1604, 0xf44b2f24, 0x80b4e61e, 0xf4dd369b,
-0x0b635c77, 0x3ece8651, 0x0d0bcd5b, 0x577afa1f, 0xef341b74, 0xfe722dca
-]
-
-out_key_s = [[
-0xe15f9e9b, 0x03555599, 0x47048d11, 0xaddfbacb, 0x8563f318, 0x1731d807,
-0xc70a3692, 0x5c2375d3, 0x93935e57, 0x63fffcb8, 0x7af11e27, 0x7b350860,
-0x68d7c26f, 0xdaf049c4, 0xd14b68ec, 0xda9e11d7, 0x9705dbd0, 0x7cca75fe,
-0x03aba426, 0x0f31fc8c, 0xedc14781, 0xaf7d0036, 0xea013ac8, 0x167e94c4,
-0xb6fe76a8, 0x076e1b0a, 0x37d3f9b3, 0x9314b846, 0x949216ae, 0xe920d195,
-0xe6eedebb, 0xf6e5bb9a, 0x622eee66, 0x1e13131d, 0xffe62a02, 0xd1ea1074,
-0xe86c6f7b, 0x3bf2a360, 0xb81d9322, 0x98b98e89, 0xb4a25e21, 0x5d2b39a7,
-0xdf2b838a, 0x7d6858fc, 0x53d7534f, 0x699c3bee, 0xef22acba, 0x56ba8780,
-0xa8fbe73c, 0xb4caab7f, 0x32fb4391, 0xce117bb4, 0xb26d1c6d, 0x26efcb76,
-0x7573e394, 0xd7edbe85, 0x6f61abb8, 0xc9fa6366, 0x45b8b08c, 0x2cf8c2b4,
-0xd3cbabf1, 0x6cdde675, 0xae8f00ec, 0xef5107eb, 0x98ff45b5, 0x4b76ee02,
-0x31e152be, 0x9f86d02c, 0x358bb661, 0xf821def5, 0x120e9c36, 0x46c23b3e,
-0xff5062de, 0x41b8b28c, 0xa22c9f8d, 0x028bf7f9, 0x5ebe8f80, 0x78e8de1c,
-0x0d594ad4, 0xec9819a9, 0x10761f9f, 0x2dac4a3c, 0x32d63a18, 0x9eaf8c9e,
-0x724a3c41, 0xb9afb3b7, 0xbe6f2245, 0x684c7581, 0xd15b9adf, 0xee9437af,
-0x22114a47, 0xe2a9eed4, 0x15c6068d, 0x1dfb4e19, 0xc32abdb2, 0x3bae15ee,
-0x19ec45c2, 0x1f90957d, 0xff649405, 0x4ce2fa05, 0x8ef84fd1, 0x2ee46348,
-0x84502a27, 0x42077b9b, 0x105183ae, 0xd44db5ac, 0xc754b5ad, 0xaa94e602,
-0xeba1d85c, 0x647d6a2a, 0x2d2dc661, 0x17ef131f, 0x65035f04, 0x24bc155f,
-0xb852bb07, 0xd2a03fcc, 0x9400b35d, 0x66a23536, 0x68cc1ab0, 0x2b366e16,
-0x445202f1, 0x08e28943, 0x59dab809, 0x0d85b68d, 0xf69b85ff, 0x05ec1a2e,
-0x9abb1c81, 0xec81e9ed, 0x31ed505f, 0x25f28f7f, 0xa768cab1, 0x6ffef36a,
-0xb0347700, 0xa57519ae, 0x9b1b1ed5, 0x4d257368, 0xe0693824, 0x66c1b6d4,
-0x28a8f8ba, 0x0d556d85, 0x7ef1cd17, 0x5f028fa3, 0xe5a61301, 0xffef2e0e,
-0xb737cb57, 0x35de5f36, 0x244411c7, 0xb860e566, 0x107bc291, 0x163894c9,
-0xce006743, 0xee8accbd, 0x2c546301, 0xb628a648, 0x8c9a5f88, 0x4cd0fafe,
-0xf376a955, 0x1e67ee50, 0xe488161f, 0x6badb6a6, 0x7fe45f7f, 0x49515270,
-0x8f921aa3, 0x7bb9547c, 0x4dd89e33, 0x5b66e4fd, 0x844acb4f, 0xf5fd71bb,
-0xb37fd813, 0x26870647, 0x18b17366, 0xc1a76ad3, 0x082adb60, 0x0ec19a13,
-0xf54da029, 0xd26d804d, 0xf5709013, 0xd691ac51, 0x1da76f01, 0x84310b0f,
-0x98dd505e, 0x3e2887db, 0x9de8b16f, 0xfa84b608, 0x3b348c33, 0x28a3f3ab,
-0x189f0238, 0xd7cf415c, 0x8a33849e, 0x0fd0e49f, 0xa6500b7e, 0xd17235ec,
-0x7e1f150d, 0xacd0857d, 0x47f179a7, 0x41d258b1, 0x1af08047, 0x799bab6f,
-0xd3bc6b2e, 0xa29e8a77, 0x58170aac, 0x96bc089b, 0x71692dec, 0x157aa527,
-0x6b8427b1, 0xb7c3cd64, 0x335275e5, 0x31a58e0a, 0x56e77232, 0x8eb18fc5,
-0xbe85fbec, 0x45b25fb1, 0x401b0c7c, 0x64268428, 0x2074cf4e, 0x3214c2b0,
-0x0f878220, 0x99f3af0c, 0xab466398, 0xbd5d244a, 0xee73ba24, 0x6973a5a6,
-0x58a1fd3a, 0x2922b89a, 0xf89afd2a, 0xa154a891, 0xb695fa10, 0xfc4815f4,
-0xdf333dbf, 0xaac85b90, 0xf4f715e2, 0x883fd9c7, 0x9921b9a5, 0xf52e8325,
-0x3c764f83, 0xdc2f15d0, 0x9d13ed18, 0x0e606226, 0x9a3df52b, 0x1aee312e,
-0x7c9c956e, 0x74945570, 0x6511f87e, 0x079b1fac, 0x307ec31b, 0x7ce01d73,
-0xd517313d, 0x33932d2b, 0xb9f6d593, 0xe09e0b96, 0x56b123a0, 0xffe4e3b6,
-0xb00acaff, 0x79ac263d, 0xb40fcd02, 0xdd291445
-],[
-0xe88915a7, 0x2fd71acb, 0x8de63f40, 0xd9667945, 0xad7f4d6c, 0x7d471d97,
-0x763fe4cf, 0x9b7be03f, 0xc2753c36, 0x485ca61c, 0x464f68f9, 0x68e20787,
-0xf9b5112e, 0xefa30f29, 0xb0bf5579, 0x1ff012a9, 0x84eb1932, 0x860c72c3,
-0xe78c719f, 0x09931794, 0xf40de80c, 0xc3734531, 0x47c0f73d, 0xed152258,
-0xd1063d9b, 0x8ab6c8dc, 0x4bd5cf71, 0xe5bb0287, 0x8cfd2000, 0x4943cd0e,
-0xb3d1d376, 0x5069c9ef, 0x21cd7de9, 0x0dc70db3, 0x2c52c071, 0x954b1899,
-0xf629c4c8, 0x54f7bfea, 0x52736639, 0xdac7c000, 0xf6ea60eb, 0xa155a177,
-0x3ed41d88, 0x2a967cd4, 0x8eda21bb, 0x28d8e3d7, 0x0b199754, 0x4d6e5dd8,
-0x5355c236, 0x85102121, 0x8ee4939e, 0x30dc9a44, 0x16aea2f8, 0xd7f5e4e0,
-0x81f46691, 0x941ec3ec, 0x0b90833b, 0x613c85c5, 0x72678ee4, 0x42af8034,
-0x85327e5a, 0x0650eafd, 0x66ea2cbf, 0xb5db4c39, 0x561cc65d, 0xf856517b,
-0xda186e32, 0x3c7cb9d8, 0x90a16ab0, 0x7231ad00, 0xd4f3b7af, 0x38409ee1,
-0x25663e24, 0x2737afbc, 0x4ef9cde2, 0xdba641e1, 0x616e97dc, 0x6c951874,
-0x8796c409, 0x421ee6c4, 0x8c151c79, 0xb11febf1, 0x98bc1204, 0xb028f602,
-0x1504d1f6, 0x33202b57, 0xbd993956, 0x2359b3c7, 0xab331fa8, 0xd48afd73,
-0xdefafcec, 0x75dd341b, 0x3b83626f, 0x7d3981cc, 0xa6380a9a, 0xf660aff5,
-0xa29fcecd, 0xf895d432, 0x31e403e5, 0xb5bb3e12, 0x4601fe55, 0xa6055d21,
-0x72d8b825, 0xdb8b8562, 0x0dc236c7, 0x41d3fbe5, 0xc6c02321, 0x6b68bdf8,
-0x4e355453, 0x1ed80b3e, 0xc65d4ced, 0x0988916e, 0x8c3fff7d, 0x1c44a511,
-0x6e190b89, 0xe4ef9975, 0x554d6a39, 0x4e4def49, 0xa294c0c0, 0x4811b319,
-0x6708876d, 0xa1b35ca0, 0x9508cfde, 0x74bcfdfb, 0x43631d77, 0x21871456,
-0xa6b83afb, 0xe96a7352, 0x47db29de, 0x39c197fa, 0x1404a39c, 0x92b3ab85,
-0x0ec976b4, 0xc77c5425, 0x582d6b41, 0xc5de160f, 0x83f9293a, 0xf561f916,
-0x4c3d9b6a, 0x170d6f94, 0x357180fd, 0xc73ad219, 0x727ea163, 0xe9bc0edb,
-0x34266e50, 0x93fbc9e6, 0xb0ceae22, 0xc71caeed, 0x5229d6cc, 0xb072c679,
-0xead50629, 0x328e387c, 0x31b38479, 0x9ffc2ede, 0x1aebd9f7, 0x66cde36d,
-0x94eb1015, 0x214a341b, 0x4e2725ce, 0xb646ed42, 0x126a5d3b, 0xd45d974e,
-0x0c23a1ed, 0xc7f23f3a, 0x039e06db, 0x45e7c121, 0xd4fb7c84, 0x93259026,
-0x5c273558, 0xfe28386e, 0x55e97b1c, 0xc3273147, 0xaf9cf707, 0x714df708,
-0xd020da13, 0x63ff077b, 0xa3e8b295, 0x149e5c40, 0xfec0a3ba, 0x56f00b03,
-0x052eeec3, 0xa16bb594, 0x11f71787, 0x3d070441, 0x43921051, 0x81372cf4,
-0x508689c9, 0xb67ef857, 0x3acfda1d, 0xe437d27d, 0x503c18a7, 0xcf3c2d49,
-0x4fcfde8d, 0x9b9bb94c, 0x4185a775, 0x1ef11c15, 0x5e851380, 0xf0388cee,
-0xc5444f7a, 0xe7d10b5b, 0xbbb2deec, 0x54412917, 0x3f7a98d7, 0x68585273,
-0xe7fd9971, 0x5ca5fd84, 0xa264a533, 0x6cda27d8, 0x0bc4d33d, 0xfa9ef695,
-0x9b1c3ab9, 0xa49ddf15, 0x213aa509, 0xcd2e0539, 0xd9fdb9b1, 0x612d781c,
-0x6af5985a, 0xa0585c6d, 0x4d70e637, 0x436e1d58, 0x2e98d56e, 0x36c51320,
-0x8424af0e, 0x3233250b, 0x51764e9c, 0x034bad26, 0x5c8550f0, 0x271d7047,
-0xa5afaec5, 0xa4d41479, 0xbb775519, 0x5f94a186, 0x5fb27b56, 0xa48405bd,
-0x8f543fdf, 0x23ac0b49, 0x9d36d6a0, 0x63739090, 0xc39314ce, 0x1c798ad2,
-0x8f3fd9f0, 0x8330ff19, 0x851874b8, 0x32a79ca2, 0xbdd64e38, 0xb6ac2e6c,
-0x4691accd, 0x4f5b9d71, 0x0bd4f753, 0xb3074a95, 0xb26e4510, 0x63969c27,
-0x22e07207, 0x0129e524, 0xc766650e, 0x438be192
-],[
-0x3750c5d2, 0xfb85d7b4, 0x38836748, 0x2d9144ef, 0x795371b6, 0x56ed49ce,
-0xad880cfb, 0xa49b9346, 0xcf773a62, 0xeec4ba92, 0xa4475a71, 0xdd7f2159,
-0x0127c957, 0xefb0c0e2, 0x68bbca45, 0xa4e5eca5, 0x67b73975, 0x71d507fc,
-0x69e075c7, 0x563c029a, 0x8f3376db, 0x2a6acc70, 0x556b9333, 0x5e5d182f,
-0x29f5d5cc, 0xeafea42f, 0x69efc675, 0x68d15318, 0x95f9759b, 0xced1cbb4,
-0x1882f46c, 0x6c326bce, 0xc9942a49, 0xddd8c723, 0x8e9ec07a, 0x01f7e12c,
-0x645cb5cd, 0x391f1510, 0x163c35f5, 0xd94f9a87, 0xb74585d8, 0x60b1bc61,
-0x521eaed9, 0xb73ccd09, 0xcdef5503, 0xc55df55f, 0xefd4c973, 0x78948287,
-0xaab7bd7a, 0xeebefe2d, 0x2b8721c9, 0x2b04f7d0, 0xf2cbf31a, 0x7ee524d6,
-0x36d46e55, 0x8dac73a0, 0x8427954d, 0x5f2a3a39, 0x6413a9f1, 0x022b301d,
-0xa072616c, 0x3d3ef628, 0x98b9e887, 0x866685fb, 0x9e3fcfbc, 0xf3eeed63,
-0xcaba75e3, 0xd9015927, 0x325626bc, 0x2c5b752d, 0xc1385649, 0x7d39f1ac,
-0xb1b2e515, 0x1d70444d, 0x8f414d5f, 0x7ea7c37d, 0x7b2ef041, 0xab0d8d8c,
-0xa8a61f2d, 0xb0bde42d, 0xb0b8a457, 0x44a920a8, 0x2db3ab91, 0xe6b7ad63,
-0xbfb64cd4, 0x99568ae7, 0x1bceacc8, 0xcc5f7d17, 0x5fa452eb, 0x446b9f97,
-0xe633ddb1, 0x60aca6f4, 0xdab2c9ea, 0xa5b630d6, 0x825f75ff, 0xa3ac0e6d,
-0xb3894704, 0x13de228f, 0x4e9f6581, 0x6d107b01, 0xcab6097c, 0xe62b146f,
-0xea71c048, 0xfe504e0e, 0x0702cc9a, 0x3d1a7d01, 0x13617030, 0x3d879f89,
-0xc28b65ee, 0x5872c3c3, 0x05b4bb68, 0x9a861425, 0x8a4cd6fe, 0x55243744,
-0x4858ecb6, 0xb568d8dd, 0xbebf9fdd, 0xc84fd4c6, 0x4f4af9c0, 0x9b08f63d,
-0xf1a0376a, 0xa355f6cf, 0x2fcb228a, 0x0cdddf69, 0xe468afe7, 0x29398554,
-0x7117abd5, 0xe2fe5567, 0x508a5d85, 0x49adf79d, 0x75011a15, 0x31d8e338,
-0x74d222b5, 0x24960278, 0xcdff9aff, 0x7aad9fa0, 0x9b06269e, 0x69b501f1,
-0xe0086ab7, 0xf2e16ce4, 0x8cb98307, 0x715b2506, 0x3cc16c6e, 0xd74378d2,
-0xb510a616, 0x1922ebbc, 0x75d40946, 0xbc4f0b56, 0x4ab3a831, 0xf6eb3d5e,
-0x7110bcd0, 0x105bfce5, 0x8ca82576, 0x96dbeea9, 0x40488279, 0x951974fb,
-0x94b565e4, 0x692c10ce, 0x6a692d18, 0xaa0af02e, 0x7379d550, 0x9ce8b210,
-0xd4635640, 0x33ea7667, 0x5e776e92, 0x9ae7c2d1, 0x2562c476, 0xe8b9342d,
-0xd3d0e320, 0x3cc6af4f, 0x3f3042a1, 0x4bdc1927, 0x5a142bb4, 0x137d70ef,
-0x7fb6018a, 0x080d779c, 0x550fee8b, 0xd71ac558, 0xa7298efc, 0x714e8084,
-0x8e6d9001, 0x8ca5f159, 0x4a7c41d3, 0xfc3feac7, 0x61aa5710, 0xd13aa1bc,
-0x665e4645, 0xfe4d4faf, 0x2ee5c84b, 0x91262e53, 0x699e98d9, 0x4f61f245,
-0xbd6e788e, 0x1e5c2d6d, 0xc64185a4, 0xeef57cb3, 0x4d39a6b4, 0x15fa53f4,
-0x9c8a0a48, 0x6442e21e, 0xf82b64ce, 0x73d86319, 0xf1a30515, 0x48f14387,
-0x848a69a7, 0x8b1c7641, 0x8d271922, 0x135857d4, 0xa3f4e0a8, 0x97b75963,
-0x1e761918, 0x6bb49070, 0x34dacfe6, 0xbe78db33, 0x51e3f2ea, 0xbd5ff0c9,
-0xd15adc12, 0xadd67ab9, 0x0c0c5c33, 0x149c2097, 0xaad74487, 0x8436773d,
-0x6ea35567, 0x54bb4ad0, 0x7447cf20, 0x9c8552a3, 0x811096a6, 0xa3434fba,
-0x3803dbcc, 0x504714f7, 0x9052704c, 0xcf5df346, 0x17646400, 0x87cc0403,
-0xfaa228ce, 0x6f2d3289, 0x808948f1, 0x505ef302, 0xaaca43db, 0x526f9953,
-0x3fbb002b, 0xa7c7443b, 0x4d6e36cd, 0x0457ac81, 0x59139c59, 0x0e155100,
-0xd2a1baa7, 0xecc08a20, 0xcdde24cb, 0x16ae51f8, 0xd9a1fa7e, 0xc50f461a,
-0xb569ed99, 0x5a77293f, 0x02f86aa8, 0x050f0024
-],[
-0xd404b9a8, 0xd3438135, 0x227e435d, 0x31076cbd, 0xaee796dc, 0xe404313c,
-0x2623800a, 0x093a69b2, 0x58ee884f, 0x776f4874, 0xe572d368, 0xd5a5cbe7,
-0x3f3bbef0, 0x7c17d8f6, 0x220a067d, 0xd793de4d, 0xa0109a98, 0x62637a6b,
-0x22d8d756, 0x5066308f, 0x7e90eca2, 0xc0b754bd, 0x4084b7c5, 0x9486c097,
-0x36a046b5, 0x114975c0, 0xd91424c8, 0x890246d5, 0x59eb4a73, 0x9afa3756,
-0x70b8c470, 0xc08ea016, 0x4c28c5f4, 0x9f623b08, 0x73fc47c4, 0xedfa1d69,
-0x4a2b1786, 0xced564eb, 0xbe12a43a, 0x52e852a4, 0x3cb3c210, 0xca9ae070,
-0xe33e7ed5, 0xd6af2ef1, 0xe49e5a83, 0xf5772eaa, 0x8551eb98, 0x1cf22cfc,
-0xadaa0256, 0xecd056ca, 0xc209d2b9, 0x9b3e0762, 0x1ee2a087, 0x2b821484,
-0x8fe22587, 0xce149c00, 0x91ce4d3e, 0x19a97f27, 0x46bcda1b, 0x404cd997,
-0x82e82b04, 0x9d4dedbc, 0xc0859cb5, 0xf01b46c0, 0xb8b203cd, 0x45090f79,
-0x8be4ab5d, 0xe2d1cd5c, 0xcbc8431b, 0xe7ee2388, 0x7e111b93, 0xc519d732,
-0x0655ccf5, 0x783288a3, 0x9d698132, 0xaa0e34dd, 0x2d34f890, 0x27fe844e,
-0x9cbc4da6, 0xd953afc3, 0xfb07a430, 0xcf035ecb, 0xcc4c8d9b, 0x2abd5860,
-0xb82869b1, 0x3c70d06f, 0x207e13c0, 0x429c196e, 0xfe9ede86, 0x4f710351,
-0xdf8e7c12, 0xe7f5c14f, 0x6f619bf3, 0xa6a99158, 0x23431a99, 0xdc2ae09d,
-0x6894ad00, 0xdd61887e, 0x951926ba, 0xb653acd3, 0x4be2af6c, 0xaecb2462,
-0x2cd45174, 0x0f92838b, 0x5664d019, 0x38a28976, 0x2dbbeeae, 0xbe54b161,
-0xa7570953, 0xa9296b69, 0x6e8cd50d, 0x2dff6493, 0xd8897cc9, 0x9807846e,
-0x067833e2, 0xff0a0865, 0x6798fb62, 0x38ff940e, 0x257dfead, 0x36ed0dd9,
-0x87786abc, 0x2fcce945, 0x40baaf09, 0xa55edef1, 0x83231abf, 0x29579f57,
-0x7d26bfd8, 0x24d3d02c, 0xbad9f470, 0x76049108, 0xe3c6e9fd, 0xaee57efa,
-0x974bf27a, 0x4d753ea9, 0x326fa8bf, 0x0f234d18, 0x892d41f1, 0xa314e7a0,
-0xe6ad75a3, 0x6b824a07, 0x3c54f6bb, 0x9b41b17f, 0xa717e8f7, 0xe0b4383b,
-0xb9d9772c, 0x60bd9aea, 0xb0a28d0c, 0xec6c7f0e, 0x2475ad83, 0x81e3ac81,
-0x4f9eb09d, 0x4ae9dcd1, 0xcacf2923, 0x138d5de0, 0xc23dc080, 0xdc6212c5,
-0x49d40182, 0x9a299359, 0x96494f05, 0x50958bcc, 0xedd87cf1, 0x8e41d821,
-0xdbc893e2, 0x81760ba1, 0x5bc77924, 0xe4c423cf, 0xfb96b131, 0x1ff9238d,
-0x0f5ce7d5, 0x550fd44f, 0x2b9979f8, 0x14d1e16f, 0xe694fc5c, 0x06e9befc,
-0xa328bce7, 0xb3be44b8, 0x11714887, 0xfd3856e6, 0x6e81a076, 0xdaabdacd,
-0xddd1abde, 0xcaf9dabd, 0x50cb477d, 0x1c8fed49, 0xd25a8ad8, 0xa4b5a936,
-0x2f7fdcc5, 0x769f6748, 0x416623d7, 0xd9181558, 0x0c864431, 0x00bd5e0d,
-0xe64bb5c8, 0x88482e47, 0x1aeda9af, 0x95a56caf, 0x7135065a, 0xa1928e57,
-0x8e6eedd9, 0xadc56171, 0xd3c859a0, 0xb13bec39, 0x1dcdb139, 0x188b3229,
-0xf6733af0, 0x9c5902f1, 0xe62faa6e, 0xc36f65b6, 0x9cc971f2, 0x4d2ba095,
-0x909a0f45, 0x7218f3a9, 0x563c0ce3, 0xf194acfd, 0x386df463, 0x8907bdcb,
-0x300035a9, 0x00c7fdc5, 0x50adac43, 0x6e53e258, 0xe1f636b4, 0x271b7918,
-0xfa7a3af8, 0x40913066, 0x3e8706de, 0xbd421d95, 0x004e20fc, 0x2a7bb121,
-0xac159bf6, 0x49b64135, 0xebe39504, 0x60a191eb, 0xfdcd513d, 0x4bf25769,
-0xa8b74196, 0x9fce29fc, 0xb25af8a7, 0x98a93a20, 0xc4bab38d, 0xbeef4028,
-0xa4ac98d9, 0x7839b20b, 0x2034d530, 0x9f25f4a0, 0x099fa1a5, 0xd031b88f,
-0x9d05688b, 0x5b2fd566, 0x661a06a9, 0x1fceb5ac, 0xca8b6bd5, 0x192151b9,
-0x69e54eeb, 0x29429086, 0xa676e0c5, 0x5869aac7
-]]
-
-in_key_p = [
-0x7965742c, 0x4a205f3d, 0x143f8f89, 0xc976e0b1, 0x37d227b0, 0x78968d06,
-0x9f28933c, 0xd21a7537, 0x80eb812c, 0xe5a60d9b, 0xf2b6b13d, 0x67079baf,
-0x0c73a7c2, 0x95d331dd, 0x80379ec4, 0x16b753b1, 0xc23f34ae, 0x7a3c45d7
-]
-
-in_key_s = [[
-0x58af6ece, 0x6b306780, 0x033ef993, 0x4299c20b, 0x47adc709, 0xdb40ee14,
-0x3772fa47, 0x473385d9, 0xbfc0af75, 0xd439ae96, 0x6a2ef2ee, 0x4a25f261,
-0x69345881, 0x65dd6dfc, 0x7a87b813, 0x626a4332, 0x675a3e91, 0x2c19b6da,
-0x62108522, 0x26cb31b9, 0x584df87d, 0x5024976f, 0x48136869, 0x5c56cba9,
-0x5ad39e1b, 0x133f6eba, 0xb1c66e67, 0x90880621, 0xa9886abc, 0x5aafb5fd,
-0x2623955d, 0x737cc474, 0xd5248060, 0x67c4b493, 0xbac12128, 0x095810ab,
-0x613ab2f2, 0x30e1b44a, 0x8291449b, 0xaf474e70, 0x6cd5307b, 0xb13ad61d,
-0x721871f8, 0xfd55db7f, 0x7415a01c, 0x580b8ca6, 0x284fe1b9, 0xa4f0bd0d,
-0x7bf1167d, 0x82662fc7, 0xc7524e17, 0x2f7c69a2, 0x089fa280, 0x90e18cd8,
-0x70536f17, 0xf5e7ed0d, 0x13388a46, 0x9db0cece, 0xc6710fe3, 0x00e399ad,
-0x22e77d76, 0x63cde083, 0x757d804e, 0xf821aead, 0xf84b66e9, 0xe6bc3e7c,
-0x5dfc3e57, 0x158c599d, 0x27dedf6b, 0x777bf721, 0x05d82093, 0x8b2bc85f,
-0x09918b2f, 0xf4c702e8, 0xdf00cd28, 0x491a4fad, 0x64944ee2, 0x872ed2e7,
-0xf3288db7, 0x1f93d679, 0xad42dd2d, 0xe8131a69, 0xd8ba3a70, 0x73f86d65,
-0xb3c72776, 0x52cc70c8, 0xaba8c646, 0x4a323b09, 0x7d482403, 0x9e03399d,
-0x2b717494, 0x6bed832b, 0xf8a661ba, 0xc07e4f5e, 0x589460bc, 0x1da78d74,
-0xd8ecd29f, 0xba3ed619, 0xf2d647b0, 0xaf86f7a8, 0x4ca53870, 0xbfecf67f,
-0xa778b6fe, 0x84d56e44, 0x1f4f61ed, 0x1f8329e1, 0xedd3e331, 0x27f854e3,
-0x2da40439, 0xfbc0bb45, 0x91327b1f, 0xc819276c, 0x72ad0fae, 0xde13b223,
-0xd2f381dc, 0x826bb46d, 0x295bc153, 0x9048ac23, 0x945605d9, 0x944d59cb,
-0xba1a643d, 0xa16f9e33, 0xed95325e, 0xb1e5e9ca, 0xc2233f09, 0x44585853,
-0x6a4eec8f, 0xf93c1555, 0xd6793587, 0xe934216b, 0x3a8332b3, 0x3a8466c9,
-0xac7386cc, 0x01668a9f, 0xa28ff66f, 0xda303600, 0xd6e18e43, 0x3d592ada,
-0xde2c3640, 0x8df5bd6b, 0x1ab26fbb, 0xe59ec9e8, 0xac9925b3, 0xc227130c,
-0x467a9af0, 0xa9579945, 0x0e1652a4, 0x433805af, 0x4ae0f0fd, 0xd9218763,
-0x54d623ff, 0x39bd38c8, 0xc639e971, 0xefed7056, 0xcf46f0d3, 0x0a43fb36,
-0xe73e362e, 0x092400f6, 0x242821e7, 0xc3953cdb, 0x8c02d71c, 0xd9d5b909,
-0x64b442af, 0x29d5ffba, 0xb479b691, 0x5aa9a01c, 0x49cbd1c9, 0x41eafbf8,
-0x888144a6, 0x844c076d, 0x05581523, 0xc5e98ffd, 0x13056fe1, 0xa4056b01,
-0x09f53013, 0x0ad00575, 0xacb8354d, 0x52ece455, 0xfd8890d3, 0xaf651f23,
-0xad7374d2, 0x99cceab5, 0x2f0f603d, 0x5e7ea504, 0x608963e1, 0xc1bd2196,
-0x200b27b3, 0xd9d1e761, 0xeff36e5a, 0x547b24c8, 0x7c7f77bc, 0xa9e78393,
-0x6b9f3172, 0xc6529dbd, 0xb6e0011d, 0x40cda153, 0xe74ddd18, 0x01a98b3b,
-0xd9b6f384, 0x57aaa89b, 0x98f36734, 0x98baaa5a, 0x47f961de, 0x12803dcb,
-0x24d3e504, 0xb5fa31a1, 0xcda87476, 0x9cc48fc9, 0xbdd02ca2, 0xf5963721,
-0x722cc439, 0x519ef966, 0xd5699454, 0xf8aeed1c, 0xc5ec22b8, 0x52d7eb6a,
-0xc179828c, 0xb383272e, 0x206888fc, 0xaf1a692e, 0x217bf251, 0x6c0d0a71,
-0x0c84184b, 0x79dd1780, 0x3b3f72a8, 0x33478e4b, 0x06bf0967, 0x9023fa3f,
-0x8303a262, 0x7ac0e4a6, 0xd439deb1, 0x1dbef98b, 0xfef0be31, 0x1b87f008,
-0x7c2196ff, 0xf5447601, 0xb1508f3a, 0x512cfd07, 0x3137b2d4, 0x768cffc8,
-0x970c456d, 0xc06d34b4, 0xe257e53d, 0x8c75c72b, 0xc9db8a31, 0xde84bb8f,
-0x5b332228, 0x8bf79c5a, 0x0b3efe49, 0xf0c4bf7e, 0xb958ed83, 0x5b37ee2d,
-0xdb04c07a, 0x72739791, 0x55c40314, 0x5129c81c
-],[
-0x700c96f3, 0xde2d98f3, 0x503d5563, 0xa5a92702, 0x5f87b11c, 0xc5fdf6c2,
-0x9d5eadf9, 0x82d21e82, 0xbfbe92ec, 0x27b25533, 0xf6c9aba1, 0x787d218d,
-0xfdbf4423, 0x439ed927, 0x3201f7b4, 0xb8dfe640, 0x88ad318e, 0x2076ab45,
-0xc8654627, 0x658d0920, 0x09fe3274, 0xf00fd288, 0xf3e47731, 0x6028108c,
-0x98f52e66, 0x10b6f6c6, 0xfe6e6cbd, 0x18855ca0, 0x41b04ef1, 0x3a075160,
-0x5158de83, 0xfbb9f0c9, 0x5e3fdc6c, 0xd72efef8, 0x04c4ef61, 0x99edda29,
-0xc653fe1e, 0x6b85e447, 0xbe07d9f5, 0x16ce88d4, 0x6bf376dd, 0xa12cefde,
-0x22fc5353, 0x2890980d, 0x8b99543c, 0xab2c42bc, 0x510892c5, 0x416951dd,
-0x219d7d99, 0x5c83a431, 0x7f6b1f4e, 0x3cdddebd, 0xb96b4c75, 0xb88adf78,
-0x48d54415, 0xd89aa204, 0x85fa0a84, 0xcceba68c, 0x6ff06438, 0x0f3bae05,
-0xd2d85107, 0x19b91d81, 0x2c68aed8, 0xbbe8f8d2, 0xa26c27a8, 0xba1b02e0,
-0x90f091fe, 0xa62a3797, 0x9fc43203, 0x59393925, 0x354aa050, 0xa709b895,
-0x6b8aa793, 0x4a679a6c, 0x47eea590, 0x21aa4b78, 0xc103cef9, 0x7832f982,
-0x0a19af36, 0x71253891, 0xa0c16436, 0x968852bd, 0x6694b976, 0x0884fb93,
-0x46eb1e9f, 0xfa945c75, 0xd3c928fb, 0xd1c8bf8c, 0xaf20aaa9, 0x9fa86cd2,
-0xdccded57, 0x1bdd4247, 0x94f91d5c, 0x7d6d5058, 0x11f0db4e, 0xf9a48f09,
-0xffa3dfb4, 0xb27b4de0, 0xdeab8e3f, 0x20ad0f77, 0x9c13ff7c, 0x16acc3a5,
-0x59fd4711, 0xe13fc78e, 0x286b7532, 0x3352f5bb, 0xa3305feb, 0x643cfc7b,
-0x689de9f4, 0x4ea0b270, 0x532dc782, 0xa5c504c3, 0xbfc29608, 0x0f3fd845,
-0xd62c9c37, 0x8f9d345a, 0x7bca7eb6, 0xda8e1fcc, 0x152b59ce, 0x625bb739,
-0x49a5aa8f, 0x24417d34, 0xe9c9ed1b, 0x0e20a019, 0xe81dbc3a, 0xea7fdd74,
-0xbd0a0794, 0x85585d33, 0xa48530d2, 0x991cc6ab, 0xa5488f6c, 0x4f1a494d,
-0xb45f297f, 0x0f357907, 0x56574fec, 0x4d4519ff, 0x2b78fbdf, 0x28ca6528,
-0x095d79b6, 0x48cb1657, 0x6b56eed0, 0xb0ccbe78, 0xe702aec1, 0x350bdfb7,
-0x59e0e969, 0xa4154ba8, 0xba56355c, 0x545028bc, 0xef129a26, 0xc594c313,
-0xf74051a7, 0x90f33de7, 0x7946623b, 0x06875cf1, 0xa47f30cd, 0x3fd1eee0,
-0x848065a2, 0x4788db48, 0x7afff19f, 0x1a6f58aa, 0xa929b0be, 0x4297c802,
-0xa5c9db5c, 0x972df7f5, 0xfb449508, 0xfa5e027f, 0x903d0acc, 0xd9481446,
-0x485f43f3, 0xe99d44bb, 0xf830b7d5, 0x7a8d521c, 0x84b98afb, 0xe88c86df,
-0xf59c4cd1, 0x9f66e618, 0x71f390ec, 0x59c364ef, 0x47e57d97, 0xdb769d9b,
-0x8a5df152, 0xf3f1afc2, 0x23791aa5, 0x6032c1e6, 0xcdcd381b, 0x88298f9a,
-0x0489b57b, 0x7206785b, 0x086f2c1b, 0x779c61e9, 0xf87ea443, 0x57c8da35,
-0xa417c341, 0x7883bff4, 0x165beefa, 0xe630556f, 0xe136b428, 0x65f03ab7,
-0xc218b820, 0xc4df8526, 0x2a4f4982, 0x124811e9, 0xf799a377, 0xfd1d0033,
-0x663fb7ef, 0x1ccafabc, 0x44af1166, 0x5a164940, 0x848956ea, 0x6e6552b2,
-0xf6ef98dd, 0x3bcf388d, 0xb054a3bc, 0x64ef380a, 0xb0df7014, 0xbc6e2bf1,
-0xf40268c2, 0xd4552ec1, 0xfc31e5da, 0x8737009f, 0x8a644503, 0x76743771,
-0x2a594cc4, 0x9be48de7, 0x0e750c92, 0x7790c8f1, 0x8e2b2824, 0x671bef2d,
-0x2fdffaab, 0x0a75c150, 0x9db37e38, 0x964ec3a0, 0xc2f0bef2, 0x4dea50cc,
-0x0e224e06, 0x7b5fb816, 0x256bf43c, 0x2e254562, 0xe4d05bb6, 0xb192839c,
-0x0dcbc8e7, 0x45565f05, 0xdd0f61ae, 0x2af501fe, 0x740cc6ee, 0x20a23735,
-0x6d4c1a5f, 0xdf48e0f3, 0x841b7d9a, 0xec88226d, 0x454937e6, 0xbd38c2fc,
-0x67a5fe1c, 0x310dade4, 0xf0544ba3, 0xe5077fdc
-],[
-0x3a9b9093, 0xa4633d29, 0x864616ef, 0x6306b63d, 0x6d40a577, 0x8472be3a,
-0x3f82f43c, 0x11b3dc89, 0x58b59414, 0x9625f326, 0x9732ecaa, 0x03bf67ad,
-0x69fa01d4, 0x48cdebb5, 0x2d5b8bc4, 0x37d5592c, 0xc7d6e32a, 0x33ad6f03,
-0xa07d2033, 0x1ecb01f0, 0xc457c910, 0xfd4768a8, 0x60df8140, 0x3f6de965,
-0xf705d74e, 0x8a72e059, 0x2205a9eb, 0xce273ab1, 0xfa920510, 0x176e53c5,
-0xdf4c779b, 0x0df906ca, 0xb99317fa, 0x3f2951df, 0xe8eb0716, 0xf4378364,
-0xb2e5013b, 0x01c87633, 0xe1369e82, 0xb73812cc, 0x859e8144, 0x4feff8f3,
-0x2c3b97a3, 0x7e8a3b4f, 0x2ae02629, 0xe3b078cf, 0x69555f9a, 0x9795b141,
-0x2cb274c3, 0x0e7f8477, 0x765b20cf, 0xb908ff7d, 0xbd5f6ff5, 0x33dcae67,
-0x5223dc88, 0x8c777c0f, 0x257535a3, 0xaf772c03, 0xdbee922f, 0xb9903499,
-0x51a5c816, 0x1f566f58, 0xc56c5d6a, 0x5dae7e5c, 0xbf2f4e5d, 0xec994673,
-0xd10292f9, 0x4807ebf7, 0x8cb1b02a, 0xc245f1a0, 0x967f40c2, 0x9c18fce3,
-0xad6f9f84, 0xffdacf8a, 0x383ba5c7, 0xb1062148, 0x9f8b5794, 0xf04b8b41,
-0xf7065c1e, 0x2df21206, 0xd2c19e57, 0x8a1d1724, 0x098807ae, 0xf1ffad8c,
-0x28c3b7ab, 0x15f08cb9, 0x819a0342, 0x9ca785ad, 0xbca12936, 0x57005e72,
-0xd2952717, 0xaa2c7a40, 0xbad5c47a, 0x5e249a52, 0xe4f67168, 0xa24b0fd9,
-0x0c74b46d, 0x2c6f753e, 0x271e8a9d, 0xbecfc090, 0x1ae87e40, 0xb8d370fe,
-0xe55229b5, 0x4d4f8df2, 0x5500eaed, 0x7077304a, 0x0cc88f39, 0x0c1a57ff,
-0x65a15916, 0xeb25a56f, 0xce051524, 0x6f3b6b29, 0xc377ca76, 0xa4b92e18,
-0x6a65ce33, 0x9705be40, 0x0ee9622c, 0xc151bcfa, 0xa4b920bc, 0x0b062e55,
-0x907dfe6c, 0x2454ef6a, 0x639b7d23, 0x886fcbf0, 0x4be37f14, 0xe841ca25,
-0x19290f76, 0x6ac74f0c, 0xd77807fc, 0x38662787, 0x31fbab00, 0x6e86d381,
-0x6542ef1e, 0xcf0fd34d, 0xd76365fa, 0xb38a9713, 0x03ca5ed3, 0xda72b659,
-0x98449c9d, 0x5a4bb852, 0xe8b96682, 0x254d34df, 0x8fa2c1b4, 0x2e8bbc0c,
-0x9f8c0ad0, 0x4737af25, 0x8d8dcd3f, 0x37ae4fe6, 0x3ca183dd, 0x5c6800a6,
-0x8ac9fab7, 0xa6a8560a, 0xf38ff50d, 0x7ef176af, 0xe1cde486, 0x1efe0b95,
-0x8aa0b26d, 0x6bb7e125, 0xae3082de, 0xb8b8693c, 0x260bc5ef, 0xaa4ca762,
-0x96ee37d5, 0x92ed36ab, 0x4e64cbfe, 0x15302e8e, 0xc7ec0569, 0x7a3e62e4,
-0x846a7554, 0x3a527824, 0x413e1bb7, 0xf277c0c0, 0x4aed3640, 0x070e7cf1,
-0x34ba52ac, 0xb0e769ac, 0x173ff792, 0x54ab5bf9, 0x2c7fe691, 0x44e1dcff,
-0xccad04a0, 0xc36df12c, 0x426046a1, 0x1815e1a6, 0x1d08d080, 0x2122a6f7,
-0xfe0adbb3, 0x3ee44567, 0x97eacfd6, 0x6c39b52c, 0xf1666890, 0x0c064e3b,
-0x4f0ce499, 0xa57051c2, 0xbafaecf1, 0x4bd81cd4, 0x323926d2, 0x0f486b0f,
-0x0bf3059a, 0xb64882b4, 0x26356a23, 0xc409dcc1, 0xd0fab32d, 0x9a6a9a3f,
-0xcfe564f1, 0x662a0bab, 0x3531647f, 0xd6d32083, 0x1470e956, 0x170f18da,
-0x7777d4af, 0xd3c7d311, 0x31ed300f, 0xb0438514, 0x69596a4d, 0xc204cf7a,
-0x9f359719, 0x1f7b1e3f, 0x6fcb0d4b, 0x006ff6a0, 0xc45dd3f3, 0x2004ac7a,
-0xa659fc7d, 0x6bb525f7, 0x79c2468c, 0x69b66bc8, 0xacd88068, 0xbc177474,
-0x9bb8cdb8, 0xc1847712, 0x198ab988, 0xfb914a8e, 0x58d8915e, 0x9a7546e5,
-0x96f72399, 0x0ed06fdb, 0xa3dfa9a1, 0x7afe55c8, 0xefbe9837, 0x28fc70e9,
-0x58d7f102, 0x96efb6ce, 0xdcbe8b2c, 0x4e0b3a4d, 0xe6bde8ec, 0xc85297e4,
-0xc6a21317, 0x9ab106f5, 0xcfd005d5, 0x8df74a34, 0x9ddda71e, 0x455b9da6,
-0xd5d097f7, 0xceefc20d, 0x5ed612b3, 0xe3d05a19
-],[
-0x39f5f98f, 0x5f4aedf0, 0xa78a4e15, 0xefe018c6, 0x794c93ce, 0x619114c5,
-0x9bf937bd, 0x11b0e9e8, 0x03ee0ebe, 0x3463a92a, 0xad780118, 0xfec71882,
-0xdd2a4fee, 0x16ebed33, 0x32a07f20, 0x07c860ad, 0xaeecf1cc, 0x59155142,
-0xf9355fa0, 0x0c888f13, 0x9269f453, 0xbb030f9c, 0x4a7e7d1f, 0x7bde69c6,
-0xd6251060, 0x89edd1d7, 0xbfc1fce3, 0x800cd339, 0xbbdb406e, 0x29f830fc,
-0xf0185bc8, 0xcb3e5dfc, 0x34bb9de7, 0xb9be2e7f, 0xdc0a256c, 0xa3cf476d,
-0xe8146f0e, 0xa05f759c, 0xb207a38f, 0x5cea7f07, 0x11966d9a, 0xb86ae0ca,
-0xa7f7507b, 0x86456caf, 0xda2fc94a, 0xf40ee3d7, 0xb3b16d2a, 0x65985d5b,
-0x1d568e9d, 0xba2ca598, 0x6e2b6fb5, 0x51c61179, 0xe4541a9f, 0x491b2d44,
-0x5a6684e3, 0xfa3a88f0, 0x4df38d58, 0x3eb854b1, 0x640e2fc0, 0x131ac3a0,
-0x559a919a, 0x3fc31514, 0xd688840c, 0x1c34479d, 0xa94c5267, 0xc9dba308,
-0xd3c74191, 0x8a7b1567, 0xca88f7e1, 0x7eb2621a, 0x891b7145, 0xbb795c83,
-0xbea8a0dc, 0xa14cdafe, 0xa4ef8a76, 0x11a4b6c4, 0xfdd49085, 0xd75b50c6,
-0x7d250736, 0x36c9e67f, 0xf851eaa6, 0xdbdebcd8, 0xadeb555c, 0xa1d73460,
-0x804b6e19, 0x7143d204, 0x08825c66, 0x2303d8b6, 0x1c87b9dd, 0x221cdafa,
-0x3c8b6ecb, 0x866e4fde, 0x7e6423f7, 0x176a26b7, 0x2e6a6d38, 0x1c91d2b1,
-0x0a00cfcf, 0xf3ab1646, 0x4c7219ec, 0x461eca91, 0x984dd5c4, 0xcad2e054,
-0x0154d6d2, 0x4ab7bcfb, 0x339e2ba5, 0x660f4c0b, 0xfb5527f2, 0xfdad33b1,
-0x654fab58, 0xd03fc602, 0xe80a4cc3, 0x201abcbe, 0x87aaae96, 0x2b63614b,
-0x8a99ec48, 0x10478493, 0xba8dca6c, 0xa0a16ab4, 0x35713cf7, 0x666cb206,
-0x4c3cc644, 0x448530df, 0x1c2633ec, 0x53aa9dfb, 0xa302dce8, 0x2591e95e,
-0x907278b0, 0x3db7c94d, 0xd24995f5, 0x0d2d47c8, 0x62f6c46c, 0x4a7898ed,
-0xf6a0b8b1, 0xc9e996bf, 0x709d7875, 0x114f9629, 0xf6a6ac6d, 0x49e81de9,
-0x01f352da, 0xf7cf515f, 0x17687e75, 0xde732d7f, 0xb0bc9739, 0x753fbf17,
-0x256dd9c2, 0xb3825bb9, 0xff1c5cf4, 0x1eb65a04, 0x15f13888, 0xb33c5b65,
-0x39ac79f1, 0xfc2d0825, 0xc76cdc60, 0xc713543c, 0x7c03244c, 0x59d55bdb,
-0x6c4f9986, 0xb179d387, 0x0d6b7585, 0x82650fd8, 0x0c402008, 0xb2b992db,
-0x1a98611b, 0x65bec302, 0x3140c3ba, 0x6a0ae834, 0x040de77e, 0xb5620ac0,
-0x109f3480, 0xa8b6a324, 0x194ece42, 0x5a1ffefb, 0x4ee8e582, 0xa2c942bf,
-0x4959b308, 0xbfc3d444, 0x7dfad51f, 0xafd87111, 0x1696895b, 0xe2c9c82d,
-0x1feba9f8, 0xa10feccd, 0xffb77472, 0x06ce8942, 0x24761e62, 0x64190fc3,
-0xf457dd2a,