summaryrefslogtreecommitdiff
path: root/flash-src/third-party/com/hurlant/crypto/symmetric/aeskey.pl
diff options
context:
space:
mode:
authorHiroshi Ichikawa <gimite@gmail.com>2011-09-17 19:56:27 +0900
committerHiroshi Ichikawa <gimite@gmail.com>2011-09-17 19:56:27 +0900
commita308f867c7874844fa6547360fe96d5b97fa1deb (patch)
treeafdfb21396423dc3f6b8fb1df091c84c946a63f4 /flash-src/third-party/com/hurlant/crypto/symmetric/aeskey.pl
parent4be643b29c1146b085e6688d4850e935a165da09 (diff)
parent5c7df9d52083c5320a305a6f3b89ef4b08c89c16 (diff)
downloadweb-socket-js-a308f867c7874844fa6547360fe96d5b97fa1deb.tar.gz
Merge branch 'master' into hybi-07
Conflicts: WebSocketMain.swf WebSocketMainInsecure.zip
Diffstat (limited to 'flash-src/third-party/com/hurlant/crypto/symmetric/aeskey.pl')
-rw-r--r--flash-src/third-party/com/hurlant/crypto/symmetric/aeskey.pl29
1 files changed, 29 insertions, 0 deletions
diff --git a/flash-src/third-party/com/hurlant/crypto/symmetric/aeskey.pl b/flash-src/third-party/com/hurlant/crypto/symmetric/aeskey.pl
new file mode 100644
index 0000000..b8f58fd
--- /dev/null
+++ b/flash-src/third-party/com/hurlant/crypto/symmetric/aeskey.pl
@@ -0,0 +1,29 @@
+#!/usr/bin/perl
+use strict;
+use warnings;
+
+sub say {
+ my $w = shift;
+ print $w;
+ print "\n";
+}
+
+sub dump {
+ my $i = shift;
+ &say(sprintf("Sbox[%d] = _Sbox[%d]", $i, $i));
+ &say(sprintf("InvSbox[%d] = _InvSbox[%d]", $i, $i));
+ &say(sprintf("Xtime2Sbox[%d] = _Xtime2Sbox[%d]", $i, $i));
+ &say(sprintf("Xtime3Sbox[%d] = _Xtime3Sbox[%d]", $i, $i));
+ &say(sprintf("Xtime2[%d] = _Xtime2[%d]", $i, $i));
+ &say(sprintf("Xtime9[%d] = _Xtime9[%d]", $i, $i));
+ &say(sprintf("XtimeB[%d] = _XtimeB[%d]", $i, $i));
+ &say(sprintf("XtimeD[%d] = _XtimeD[%d]", $i, $i));
+ &say(sprintf("XtimeE[%d] = _XtimeE[%d]", $i, $i));
+}
+
+for (my $i=0;$i<256;$i++) {
+ &dump($i);
+}
+
+
+