powerdlz23 1.1.7 → 1.1.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/pto/yaamp/README.md +70 -0
- package/pto/yaamp/blocknotify/blocknotify.cpp +90 -0
- package/pto/yaamp/config/blake.conf +16 -0
- package/pto/yaamp/config/fresh.conf +16 -0
- package/pto/yaamp/config/groestl.conf +16 -0
- package/pto/yaamp/config/keccak.conf +16 -0
- package/pto/yaamp/config/lyra2.conf +16 -0
- package/pto/yaamp/config/neo.conf +16 -0
- package/pto/yaamp/config/nist5.conf +16 -0
- package/pto/yaamp/config/quark.conf +16 -0
- package/pto/yaamp/config/qubit.conf +16 -0
- package/pto/yaamp/config/run.sh +12 -0
- package/pto/yaamp/config/scrypt.conf +16 -0
- package/pto/yaamp/config/scryptn.conf +16 -0
- package/pto/yaamp/config/sha.conf +17 -0
- package/pto/yaamp/config/skein.conf +16 -0
- package/pto/yaamp/config/x11.conf +16 -0
- package/pto/yaamp/config/x13.conf +16 -0
- package/pto/yaamp/config/x14.conf +16 -0
- package/pto/yaamp/config/x15.conf +16 -0
- package/pto/yaamp/rc.local +30 -0
- package/pto/yaamp/stratum/algos/Lyra2.c +208 -0
- package/pto/yaamp/stratum/algos/Lyra2.h +50 -0
- package/pto/yaamp/stratum/algos/Lyra2RE.c +70 -0
- package/pto/yaamp/stratum/algos/Lyra2RE.h +16 -0
- package/pto/yaamp/stratum/algos/Sponge.c +745 -0
- package/pto/yaamp/stratum/algos/Sponge.h +115 -0
- package/pto/yaamp/stratum/algos/blake.c +16 -0
- package/pto/yaamp/stratum/algos/blake.h +16 -0
- package/pto/yaamp/stratum/algos/fresh.c +44 -0
- package/pto/yaamp/stratum/algos/fresh.h +16 -0
- package/pto/yaamp/stratum/algos/groestl.c +41 -0
- package/pto/yaamp/stratum/algos/groestl.h +18 -0
- package/pto/yaamp/stratum/algos/jha.c +135 -0
- package/pto/yaamp/stratum/algos/jha.h +16 -0
- package/pto/yaamp/stratum/algos/keccak.c +32 -0
- package/pto/yaamp/stratum/algos/keccak.h +16 -0
- package/pto/yaamp/stratum/algos/makefile +32 -0
- package/pto/yaamp/stratum/algos/neoscrypt.c +962 -0
- package/pto/yaamp/stratum/algos/neoscrypt.h +33 -0
- package/pto/yaamp/stratum/algos/nist5.c +47 -0
- package/pto/yaamp/stratum/algos/nist5.h +16 -0
- package/pto/yaamp/stratum/algos/quark.c +210 -0
- package/pto/yaamp/stratum/algos/quark.h +16 -0
- package/pto/yaamp/stratum/algos/qubit.c +44 -0
- package/pto/yaamp/stratum/algos/qubit.h +17 -0
- package/pto/yaamp/stratum/algos/scrypt.c +681 -0
- package/pto/yaamp/stratum/algos/scryptn.c +257 -0
- package/pto/yaamp/stratum/algos/scryptn.h +16 -0
- package/pto/yaamp/stratum/algos/sha256.c +287 -0
- package/pto/yaamp/stratum/algos/sha256.h +440 -0
- package/pto/yaamp/stratum/algos/skein.c +27 -0
- package/pto/yaamp/stratum/algos/skein.h +16 -0
- package/pto/yaamp/stratum/algos/whirlpoolx.c +44 -0
- package/pto/yaamp/stratum/algos/whirlpoolx.h +16 -0
- package/pto/yaamp/stratum/algos/x11.c +85 -0
- package/pto/yaamp/stratum/algos/x11.h +16 -0
- package/pto/yaamp/stratum/algos/x13.c +98 -0
- package/pto/yaamp/stratum/algos/x13.h +16 -0
- package/pto/yaamp/stratum/algos/x14.c +102 -0
- package/pto/yaamp/stratum/algos/x14.h +16 -0
- package/pto/yaamp/stratum/algos/x15.c +106 -0
- package/pto/yaamp/stratum/algos/x15.h +16 -0
- package/pto/yaamp/stratum/algos/zr5.c +104 -0
- package/pto/yaamp/stratum/algos/zr5.h +17 -0
- package/pto/yaamp/stratum/base58.cpp +99 -0
- package/pto/yaamp/stratum/client.cpp +432 -0
- package/pto/yaamp/stratum/client.h +142 -0
- package/pto/yaamp/stratum/client_core.cpp +312 -0
- package/pto/yaamp/stratum/client_difficulty.cpp +105 -0
- package/pto/yaamp/stratum/client_submit.cpp +304 -0
- package/pto/yaamp/stratum/coinbase.cpp +139 -0
- package/pto/yaamp/stratum/coind.cpp +188 -0
- package/pto/yaamp/stratum/coind.h +97 -0
- package/pto/yaamp/stratum/coind_aux.cpp +107 -0
- package/pto/yaamp/stratum/coind_submit.cpp +113 -0
- package/pto/yaamp/stratum/coind_template.cpp +309 -0
- package/pto/yaamp/stratum/db.cpp +418 -0
- package/pto/yaamp/stratum/db.h +32 -0
- package/pto/yaamp/stratum/iniparser/AUTHORS +6 -0
- package/pto/yaamp/stratum/iniparser/INSTALL +15 -0
- package/pto/yaamp/stratum/iniparser/LICENSE +21 -0
- package/pto/yaamp/stratum/iniparser/Makefile +72 -0
- package/pto/yaamp/stratum/iniparser/README +12 -0
- package/pto/yaamp/stratum/iniparser/doc/Makefile +16 -0
- package/pto/yaamp/stratum/iniparser/doc/iniparser.dox +81 -0
- package/pto/yaamp/stratum/iniparser/doc/iniparser.main +207 -0
- package/pto/yaamp/stratum/iniparser/html/doxygen.css +545 -0
- package/pto/yaamp/stratum/iniparser/html/doxygen.png +0 -0
- package/pto/yaamp/stratum/iniparser/html/globals_func.html +64 -0
- package/pto/yaamp/stratum/iniparser/html/index.html +101 -0
- package/pto/yaamp/stratum/iniparser/html/iniparser_8h.html +583 -0
- package/pto/yaamp/stratum/iniparser/html/iniparser_8main.html +19 -0
- package/pto/yaamp/stratum/iniparser/html/tab_b.gif +0 -0
- package/pto/yaamp/stratum/iniparser/html/tab_l.gif +0 -0
- package/pto/yaamp/stratum/iniparser/html/tab_r.gif +0 -0
- package/pto/yaamp/stratum/iniparser/html/tabs.css +105 -0
- package/pto/yaamp/stratum/iniparser/src/dictionary.c +402 -0
- package/pto/yaamp/stratum/iniparser/src/dictionary.h +185 -0
- package/pto/yaamp/stratum/iniparser/src/iniparser.c +904 -0
- package/pto/yaamp/stratum/iniparser/src/iniparser.h +315 -0
- package/pto/yaamp/stratum/iniparser/test/Makefile +27 -0
- package/pto/yaamp/stratum/iniparser/test/iniexample.c +100 -0
- package/pto/yaamp/stratum/iniparser/test/parse.c +24 -0
- package/pto/yaamp/stratum/iniparser/test/twisted-errors.ini +9 -0
- package/pto/yaamp/stratum/iniparser/test/twisted-genhuge.py +12 -0
- package/pto/yaamp/stratum/iniparser/test/twisted-ofkey.ini +66 -0
- package/pto/yaamp/stratum/iniparser/test/twisted-ofval.ini +56 -0
- package/pto/yaamp/stratum/iniparser/test/twisted.ini +131 -0
- package/pto/yaamp/stratum/job.cpp +324 -0
- package/pto/yaamp/stratum/job.h +120 -0
- package/pto/yaamp/stratum/job_core.cpp +132 -0
- package/pto/yaamp/stratum/job_send.cpp +162 -0
- package/pto/yaamp/stratum/json.cpp +980 -0
- package/pto/yaamp/stratum/json.h +271 -0
- package/pto/yaamp/stratum/list.cpp +165 -0
- package/pto/yaamp/stratum/makefile +53 -0
- package/pto/yaamp/stratum/merkle.cpp +86 -0
- package/pto/yaamp/stratum/object.cpp +73 -0
- package/pto/yaamp/stratum/object.h +25 -0
- package/pto/yaamp/stratum/remote.cpp +301 -0
- package/pto/yaamp/stratum/remote.h +96 -0
- package/pto/yaamp/stratum/remote_template.cpp +138 -0
- package/pto/yaamp/stratum/rpc.cpp +270 -0
- package/pto/yaamp/stratum/rpc.h +32 -0
- package/pto/yaamp/stratum/sha3/aes_helper.c +392 -0
- package/pto/yaamp/stratum/sha3/hamsi_helper.c +39648 -0
- package/pto/yaamp/stratum/sha3/libhash.a +0 -0
- package/pto/yaamp/stratum/sha3/makefile +34 -0
- package/pto/yaamp/stratum/sha3/md_helper.c +347 -0
- package/pto/yaamp/stratum/sha3/sph_blake.c +1127 -0
- package/pto/yaamp/stratum/sha3/sph_blake.h +327 -0
- package/pto/yaamp/stratum/sha3/sph_bmw.c +965 -0
- package/pto/yaamp/stratum/sha3/sph_bmw.h +328 -0
- package/pto/yaamp/stratum/sha3/sph_cubehash.c +723 -0
- package/pto/yaamp/stratum/sha3/sph_cubehash.h +292 -0
- package/pto/yaamp/stratum/sha3/sph_echo.c +1031 -0
- package/pto/yaamp/stratum/sha3/sph_echo.h +320 -0
- package/pto/yaamp/stratum/sha3/sph_fugue.c +1208 -0
- package/pto/yaamp/stratum/sha3/sph_fugue.h +81 -0
- package/pto/yaamp/stratum/sha3/sph_groestl.c +3119 -0
- package/pto/yaamp/stratum/sha3/sph_groestl.h +329 -0
- package/pto/yaamp/stratum/sha3/sph_hamsi.c +867 -0
- package/pto/yaamp/stratum/sha3/sph_hamsi.h +322 -0
- package/pto/yaamp/stratum/sha3/sph_hefty1.c +378 -0
- package/pto/yaamp/stratum/sha3/sph_hefty1.h +66 -0
- package/pto/yaamp/stratum/sha3/sph_jh.c +1116 -0
- package/pto/yaamp/stratum/sha3/sph_jh.h +298 -0
- package/pto/yaamp/stratum/sha3/sph_keccak.c +1824 -0
- package/pto/yaamp/stratum/sha3/sph_keccak.h +293 -0
- package/pto/yaamp/stratum/sha3/sph_luffa.c +1426 -0
- package/pto/yaamp/stratum/sha3/sph_luffa.h +296 -0
- package/pto/yaamp/stratum/sha3/sph_shabal.c +806 -0
- package/pto/yaamp/stratum/sha3/sph_shabal.h +344 -0
- package/pto/yaamp/stratum/sha3/sph_shavite.c +1764 -0
- package/pto/yaamp/stratum/sha3/sph_shavite.h +314 -0
- package/pto/yaamp/stratum/sha3/sph_simd.c +1799 -0
- package/pto/yaamp/stratum/sha3/sph_simd.h +309 -0
- package/pto/yaamp/stratum/sha3/sph_skein.c +1254 -0
- package/pto/yaamp/stratum/sha3/sph_skein.h +298 -0
- package/pto/yaamp/stratum/sha3/sph_types.h +1976 -0
- package/pto/yaamp/stratum/sha3/sph_whirlpool.c +3480 -0
- package/pto/yaamp/stratum/sha3/sph_whirlpool.h +209 -0
- package/pto/yaamp/stratum/share.cpp +279 -0
- package/pto/yaamp/stratum/share.h +106 -0
- package/pto/yaamp/stratum/socket.cpp +159 -0
- package/pto/yaamp/stratum/socket.h +28 -0
- package/pto/yaamp/stratum/stratum.cpp +321 -0
- package/pto/yaamp/stratum/stratum.h +141 -0
- package/pto/yaamp/stratum/user.cpp +104 -0
- package/pto/yaamp/stratum/util.cpp +666 -0
- package/pto/yaamp/stratum/util.h +127 -0
- package/pto/yaamp/web/.project +22 -0
- package/pto/yaamp/web/blocks.sh +10 -0
- package/pto/yaamp/web/extensions/jqplot/MIT-LICENSE.txt +21 -0
- package/pto/yaamp/web/extensions/jqplot/README.txt +77 -0
- package/pto/yaamp/web/extensions/jqplot/changes.txt +458 -0
- package/pto/yaamp/web/extensions/jqplot/copyright.txt +56 -0
- package/pto/yaamp/web/extensions/jqplot/excanvas.js +1438 -0
- package/pto/yaamp/web/extensions/jqplot/excanvas.min.js +3 -0
- package/pto/yaamp/web/extensions/jqplot/gpl-2.0.txt +280 -0
- package/pto/yaamp/web/extensions/jqplot/jqPlotCssStyling.txt +53 -0
- package/pto/yaamp/web/extensions/jqplot/jqPlotOptions.txt +391 -0
- package/pto/yaamp/web/extensions/jqplot/jquery.jqplot.css +259 -0
- package/pto/yaamp/web/extensions/jqplot/jquery.jqplot.js +11411 -0
- package/pto/yaamp/web/extensions/jqplot/jquery.jqplot.min.css +1 -0
- package/pto/yaamp/web/extensions/jqplot/jquery.jqplot.min.js +3 -0
- package/pto/yaamp/web/extensions/jqplot/optionsTutorial.txt +243 -0
- package/pto/yaamp/web/extensions/jqplot/plugins/jqplot.BezierCurveRenderer.js +314 -0
- package/pto/yaamp/web/extensions/jqplot/plugins/jqplot.BezierCurveRenderer.min.js +3 -0
- package/pto/yaamp/web/extensions/jqplot/plugins/jqplot.barRenderer.js +801 -0
- package/pto/yaamp/web/extensions/jqplot/plugins/jqplot.barRenderer.min.js +3 -0
- package/pto/yaamp/web/extensions/jqplot/plugins/jqplot.blockRenderer.js +235 -0
- package/pto/yaamp/web/extensions/jqplot/plugins/jqplot.blockRenderer.min.js +3 -0
- package/pto/yaamp/web/extensions/jqplot/plugins/jqplot.bubbleRenderer.js +759 -0
- package/pto/yaamp/web/extensions/jqplot/plugins/jqplot.bubbleRenderer.min.js +3 -0
- package/pto/yaamp/web/extensions/jqplot/plugins/jqplot.canvasAxisLabelRenderer.js +203 -0
- package/pto/yaamp/web/extensions/jqplot/plugins/jqplot.canvasAxisLabelRenderer.min.js +3 -0
- package/pto/yaamp/web/extensions/jqplot/plugins/jqplot.canvasAxisTickRenderer.js +253 -0
- package/pto/yaamp/web/extensions/jqplot/plugins/jqplot.canvasAxisTickRenderer.min.js +3 -0
- package/pto/yaamp/web/extensions/jqplot/plugins/jqplot.canvasOverlay.js +1021 -0
- package/pto/yaamp/web/extensions/jqplot/plugins/jqplot.canvasOverlay.min.js +3 -0
- package/pto/yaamp/web/extensions/jqplot/plugins/jqplot.canvasTextRenderer.js +449 -0
- package/pto/yaamp/web/extensions/jqplot/plugins/jqplot.canvasTextRenderer.min.js +3 -0
- package/pto/yaamp/web/extensions/jqplot/plugins/jqplot.categoryAxisRenderer.js +679 -0
- package/pto/yaamp/web/extensions/jqplot/plugins/jqplot.categoryAxisRenderer.min.js +3 -0
- package/pto/yaamp/web/extensions/jqplot/plugins/jqplot.ciParser.js +116 -0
- package/pto/yaamp/web/extensions/jqplot/plugins/jqplot.ciParser.min.js +3 -0
- package/pto/yaamp/web/extensions/jqplot/plugins/jqplot.cursor.js +1108 -0
- package/pto/yaamp/web/extensions/jqplot/plugins/jqplot.cursor.min.js +3 -0
- package/pto/yaamp/web/extensions/jqplot/plugins/jqplot.dateAxisRenderer.js +741 -0
- package/pto/yaamp/web/extensions/jqplot/plugins/jqplot.dateAxisRenderer.min.js +3 -0
- package/pto/yaamp/web/extensions/jqplot/plugins/jqplot.donutRenderer.js +805 -0
- package/pto/yaamp/web/extensions/jqplot/plugins/jqplot.donutRenderer.min.js +3 -0
- package/pto/yaamp/web/extensions/jqplot/plugins/jqplot.dragable.js +225 -0
- package/pto/yaamp/web/extensions/jqplot/plugins/jqplot.dragable.min.js +3 -0
- package/pto/yaamp/web/extensions/jqplot/plugins/jqplot.enhancedLegendRenderer.js +305 -0
- package/pto/yaamp/web/extensions/jqplot/plugins/jqplot.enhancedLegendRenderer.min.js +3 -0
- package/pto/yaamp/web/extensions/jqplot/plugins/jqplot.funnelRenderer.js +943 -0
- package/pto/yaamp/web/extensions/jqplot/plugins/jqplot.funnelRenderer.min.js +3 -0
- package/pto/yaamp/web/extensions/jqplot/plugins/jqplot.highlighter.js +465 -0
- package/pto/yaamp/web/extensions/jqplot/plugins/jqplot.highlighter.min.js +3 -0
- package/pto/yaamp/web/extensions/jqplot/plugins/jqplot.json2.js +475 -0
- package/pto/yaamp/web/extensions/jqplot/plugins/jqplot.json2.min.js +3 -0
- package/pto/yaamp/web/extensions/jqplot/plugins/jqplot.logAxisRenderer.js +534 -0
- package/pto/yaamp/web/extensions/jqplot/plugins/jqplot.logAxisRenderer.min.js +3 -0
- package/pto/yaamp/web/extensions/jqplot/plugins/jqplot.mekkoAxisRenderer.js +611 -0
- package/pto/yaamp/web/extensions/jqplot/plugins/jqplot.mekkoAxisRenderer.min.js +3 -0
- package/pto/yaamp/web/extensions/jqplot/plugins/jqplot.mekkoRenderer.js +437 -0
- package/pto/yaamp/web/extensions/jqplot/plugins/jqplot.mekkoRenderer.min.js +3 -0
- package/pto/yaamp/web/extensions/jqplot/plugins/jqplot.meterGaugeRenderer.js +1029 -0
- package/pto/yaamp/web/extensions/jqplot/plugins/jqplot.meterGaugeRenderer.min.js +3 -0
- package/pto/yaamp/web/extensions/jqplot/plugins/jqplot.mobile.js +45 -0
- package/pto/yaamp/web/extensions/jqplot/plugins/jqplot.mobile.min.js +3 -0
- package/pto/yaamp/web/extensions/jqplot/plugins/jqplot.ohlcRenderer.js +373 -0
- package/pto/yaamp/web/extensions/jqplot/plugins/jqplot.ohlcRenderer.min.js +3 -0
- package/pto/yaamp/web/extensions/jqplot/plugins/jqplot.pieRenderer.js +904 -0
- package/pto/yaamp/web/extensions/jqplot/plugins/jqplot.pieRenderer.min.js +3 -0
- package/pto/yaamp/web/extensions/jqplot/plugins/jqplot.pointLabels.js +377 -0
- package/pto/yaamp/web/extensions/jqplot/plugins/jqplot.pointLabels.min.js +3 -0
- package/pto/yaamp/web/extensions/jqplot/plugins/jqplot.pyramidAxisRenderer.js +728 -0
- package/pto/yaamp/web/extensions/jqplot/plugins/jqplot.pyramidAxisRenderer.min.js +3 -0
- package/pto/yaamp/web/extensions/jqplot/plugins/jqplot.pyramidGridRenderer.js +429 -0
- package/pto/yaamp/web/extensions/jqplot/plugins/jqplot.pyramidGridRenderer.min.js +3 -0
- package/pto/yaamp/web/extensions/jqplot/plugins/jqplot.pyramidRenderer.js +514 -0
- package/pto/yaamp/web/extensions/jqplot/plugins/jqplot.pyramidRenderer.min.js +3 -0
- package/pto/yaamp/web/extensions/jqplot/plugins/jqplot.trendline.js +223 -0
- package/pto/yaamp/web/extensions/jqplot/plugins/jqplot.trendline.min.js +3 -0
- package/pto/yaamp/web/extensions/jqplot/usage.txt +126 -0
- package/pto/yaamp/web/extensions/jquery/js/jquery-1.10.2.min.js +6 -0
- package/pto/yaamp/web/extensions/jquery/js/jquery-1.8.3-dev.js +9472 -0
- package/pto/yaamp/web/extensions/jquery/js/jquery-ui-1.10.3.custom.min.js +7 -0
- package/pto/yaamp/web/extensions/jquery/js/jquery-ui-1.9.1.custom.min.js +6 -0
- package/pto/yaamp/web/extensions/jquery/themes/ui-lightness/images/animated-overlay.gif +0 -0
- package/pto/yaamp/web/extensions/jquery/themes/ui-lightness/images/ui-bg_diagonals-thick_18_b81900_40x40.png +0 -0
- package/pto/yaamp/web/extensions/jquery/themes/ui-lightness/images/ui-bg_diagonals-thick_20_666666_40x40.png +0 -0
- package/pto/yaamp/web/extensions/jquery/themes/ui-lightness/images/ui-bg_flat_10_000000_40x100.png +0 -0
- package/pto/yaamp/web/extensions/jquery/themes/ui-lightness/images/ui-bg_glass_100_f6f6f6_1x400.png +0 -0
- package/pto/yaamp/web/extensions/jquery/themes/ui-lightness/images/ui-bg_glass_100_fdf5ce_1x400.png +0 -0
- package/pto/yaamp/web/extensions/jquery/themes/ui-lightness/images/ui-bg_glass_65_ffffff_1x400.png +0 -0
- package/pto/yaamp/web/extensions/jquery/themes/ui-lightness/images/ui-bg_gloss-wave_35_f6a828_500x100.png +0 -0
- package/pto/yaamp/web/extensions/jquery/themes/ui-lightness/images/ui-bg_highlight-soft_100_eeeeee_1x100.png +0 -0
- package/pto/yaamp/web/extensions/jquery/themes/ui-lightness/images/ui-bg_highlight-soft_75_ffe45c_1x100.png +0 -0
- package/pto/yaamp/web/extensions/jquery/themes/ui-lightness/images/ui-icons_222222_256x240.png +0 -0
- package/pto/yaamp/web/extensions/jquery/themes/ui-lightness/images/ui-icons_228ef1_256x240.png +0 -0
- package/pto/yaamp/web/extensions/jquery/themes/ui-lightness/images/ui-icons_ef8c08_256x240.png +0 -0
- package/pto/yaamp/web/extensions/jquery/themes/ui-lightness/images/ui-icons_ffd27a_256x240.png +0 -0
- package/pto/yaamp/web/extensions/jquery/themes/ui-lightness/images/ui-icons_ffffff_256x240.png +0 -0
- package/pto/yaamp/web/extensions/jquery/themes/ui-lightness/jquery-ui.css +1178 -0
- package/pto/yaamp/web/extensions/jquery/themes/ui-lightness/jquery.ui.accordion.css +38 -0
- package/pto/yaamp/web/extensions/jquery/themes/ui-lightness/jquery.ui.all.css +12 -0
- package/pto/yaamp/web/extensions/jquery/themes/ui-lightness/jquery.ui.autocomplete.css +16 -0
- package/pto/yaamp/web/extensions/jquery/themes/ui-lightness/jquery.ui.base.css +25 -0
- package/pto/yaamp/web/extensions/jquery/themes/ui-lightness/jquery.ui.button.css +114 -0
- package/pto/yaamp/web/extensions/jquery/themes/ui-lightness/jquery.ui.core.css +93 -0
- package/pto/yaamp/web/extensions/jquery/themes/ui-lightness/jquery.ui.datepicker.css +178 -0
- package/pto/yaamp/web/extensions/jquery/themes/ui-lightness/jquery.ui.dialog.css +69 -0
- package/pto/yaamp/web/extensions/jquery/themes/ui-lightness/jquery.ui.menu.css +79 -0
- package/pto/yaamp/web/extensions/jquery/themes/ui-lightness/jquery.ui.progressbar.css +28 -0
- package/pto/yaamp/web/extensions/jquery/themes/ui-lightness/jquery.ui.resizable.css +78 -0
- package/pto/yaamp/web/extensions/jquery/themes/ui-lightness/jquery.ui.selectable.css +15 -0
- package/pto/yaamp/web/extensions/jquery/themes/ui-lightness/jquery.ui.slider.css +73 -0
- package/pto/yaamp/web/extensions/jquery/themes/ui-lightness/jquery.ui.spinner.css +65 -0
- package/pto/yaamp/web/extensions/jquery/themes/ui-lightness/jquery.ui.tabs.css +52 -0
- package/pto/yaamp/web/extensions/jquery/themes/ui-lightness/jquery.ui.theme.css +406 -0
- package/pto/yaamp/web/extensions/jquery/themes/ui-lightness/jquery.ui.tooltip.css +19 -0
- package/pto/yaamp/web/favicon.ico +0 -0
- package/pto/yaamp/web/framework-1.0.8/.htaccess +1 -0
- package/pto/yaamp/web/framework-1.0.8/YiiBase.php +684 -0
- package/pto/yaamp/web/framework-1.0.8/base/CApplication.php +718 -0
- package/pto/yaamp/web/framework-1.0.8/base/CApplicationComponent.php +56 -0
- package/pto/yaamp/web/framework-1.0.8/base/CBehavior.php +87 -0
- package/pto/yaamp/web/framework-1.0.8/base/CComponent.php +599 -0
- package/pto/yaamp/web/framework-1.0.8/base/CErrorEvent.php +54 -0
- package/pto/yaamp/web/framework-1.0.8/base/CErrorHandler.php +336 -0
- package/pto/yaamp/web/framework-1.0.8/base/CException.php +22 -0
- package/pto/yaamp/web/framework-1.0.8/base/CExceptionEvent.php +36 -0
- package/pto/yaamp/web/framework-1.0.8/base/CHttpException.php +40 -0
- package/pto/yaamp/web/framework-1.0.8/base/CModel.php +634 -0
- package/pto/yaamp/web/framework-1.0.8/base/CModelBehavior.php +54 -0
- package/pto/yaamp/web/framework-1.0.8/base/CModelEvent.php +32 -0
- package/pto/yaamp/web/framework-1.0.8/base/CModule.php +465 -0
- package/pto/yaamp/web/framework-1.0.8/base/CSecurityManager.php +245 -0
- package/pto/yaamp/web/framework-1.0.8/base/CStatePersister.php +102 -0
- package/pto/yaamp/web/framework-1.0.8/base/interfaces.php +534 -0
- package/pto/yaamp/web/framework-1.0.8/caching/CApcCache.php +108 -0
- package/pto/yaamp/web/framework-1.0.8/caching/CCache.php +312 -0
- package/pto/yaamp/web/framework-1.0.8/caching/CDbCache.php +250 -0
- package/pto/yaamp/web/framework-1.0.8/caching/CDummyCache.php +145 -0
- package/pto/yaamp/web/framework-1.0.8/caching/CEAcceleratorCache.php +104 -0
- package/pto/yaamp/web/framework-1.0.8/caching/CFileCache.php +217 -0
- package/pto/yaamp/web/framework-1.0.8/caching/CMemCache.php +272 -0
- package/pto/yaamp/web/framework-1.0.8/caching/CXCache.php +97 -0
- package/pto/yaamp/web/framework-1.0.8/caching/CZendDataCache.php +98 -0
- package/pto/yaamp/web/framework-1.0.8/caching/dependencies/CCacheDependency.php +62 -0
- package/pto/yaamp/web/framework-1.0.8/caching/dependencies/CChainedCacheDependency.php +68 -0
- package/pto/yaamp/web/framework-1.0.8/caching/dependencies/CDbCacheDependency.php +87 -0
- package/pto/yaamp/web/framework-1.0.8/caching/dependencies/CDirectoryCacheDependency.php +134 -0
- package/pto/yaamp/web/framework-1.0.8/caching/dependencies/CExpressionDependency.php +49 -0
- package/pto/yaamp/web/framework-1.0.8/caching/dependencies/CFileCacheDependency.php +53 -0
- package/pto/yaamp/web/framework-1.0.8/caching/dependencies/CGlobalStateCacheDependency.php +54 -0
- package/pto/yaamp/web/framework-1.0.8/collections/CAttributeCollection.php +187 -0
- package/pto/yaamp/web/framework-1.0.8/collections/CConfiguration.php +121 -0
- package/pto/yaamp/web/framework-1.0.8/collections/CList.php +341 -0
- package/pto/yaamp/web/framework-1.0.8/collections/CListIterator.php +94 -0
- package/pto/yaamp/web/framework-1.0.8/collections/CMap.php +319 -0
- package/pto/yaamp/web/framework-1.0.8/collections/CMapIterator.php +93 -0
- package/pto/yaamp/web/framework-1.0.8/collections/CQueue.php +168 -0
- package/pto/yaamp/web/framework-1.0.8/collections/CQueueIterator.php +94 -0
- package/pto/yaamp/web/framework-1.0.8/collections/CStack.php +169 -0
- package/pto/yaamp/web/framework-1.0.8/collections/CStackIterator.php +94 -0
- package/pto/yaamp/web/framework-1.0.8/collections/CTypedList.php +52 -0
- package/pto/yaamp/web/framework-1.0.8/db/CDbCommand.php +326 -0
- package/pto/yaamp/web/framework-1.0.8/db/CDbConnection.php +645 -0
- package/pto/yaamp/web/framework-1.0.8/db/CDbDataReader.php +221 -0
- package/pto/yaamp/web/framework-1.0.8/db/CDbException.php +21 -0
- package/pto/yaamp/web/framework-1.0.8/db/CDbTransaction.php +108 -0
- package/pto/yaamp/web/framework-1.0.8/db/ar/CActiveFinder.php +1359 -0
- package/pto/yaamp/web/framework-1.0.8/db/ar/CActiveRecord.php +2212 -0
- package/pto/yaamp/web/framework-1.0.8/db/ar/CActiveRecordBehavior.php +96 -0
- package/pto/yaamp/web/framework-1.0.8/db/schema/CDbColumnSchema.php +143 -0
- package/pto/yaamp/web/framework-1.0.8/db/schema/CDbCommandBuilder.php +664 -0
- package/pto/yaamp/web/framework-1.0.8/db/schema/CDbCriteria.php +166 -0
- package/pto/yaamp/web/framework-1.0.8/db/schema/CDbExpression.php +49 -0
- package/pto/yaamp/web/framework-1.0.8/db/schema/CDbSchema.php +203 -0
- package/pto/yaamp/web/framework-1.0.8/db/schema/CDbTableSchema.php +76 -0
- package/pto/yaamp/web/framework-1.0.8/db/schema/mssql/CMssqlColumnSchema.php +55 -0
- package/pto/yaamp/web/framework-1.0.8/db/schema/mssql/CMssqlCommandBuilder.php +304 -0
- package/pto/yaamp/web/framework-1.0.8/db/schema/mssql/CMssqlPdoAdapter.php +74 -0
- package/pto/yaamp/web/framework-1.0.8/db/schema/mssql/CMssqlSchema.php +310 -0
- package/pto/yaamp/web/framework-1.0.8/db/schema/mssql/CMssqlTableSchema.php +33 -0
- package/pto/yaamp/web/framework-1.0.8/db/schema/mysql/CMysqlColumnSchema.php +46 -0
- package/pto/yaamp/web/framework-1.0.8/db/schema/mysql/CMysqlSchema.php +201 -0
- package/pto/yaamp/web/framework-1.0.8/db/schema/mysql/CMysqlTableSchema.php +26 -0
- package/pto/yaamp/web/framework-1.0.8/db/schema/oci/COciColumnSchema.php +54 -0
- package/pto/yaamp/web/framework-1.0.8/db/schema/oci/COciCommandBuilder.php +122 -0
- package/pto/yaamp/web/framework-1.0.8/db/schema/oci/COciSchema.php +276 -0
- package/pto/yaamp/web/framework-1.0.8/db/schema/oci/COciTableSchema.php +26 -0
- package/pto/yaamp/web/framework-1.0.8/db/schema/pgsql/CPgsqlColumnSchema.php +56 -0
- package/pto/yaamp/web/framework-1.0.8/db/schema/pgsql/CPgsqlSchema.php +282 -0
- package/pto/yaamp/web/framework-1.0.8/db/schema/pgsql/CPgsqlTableSchema.php +25 -0
- package/pto/yaamp/web/framework-1.0.8/db/schema/sqlite/CSqliteColumnSchema.php +33 -0
- package/pto/yaamp/web/framework-1.0.8/db/schema/sqlite/CSqliteCommandBuilder.php +41 -0
- package/pto/yaamp/web/framework-1.0.8/db/schema/sqlite/CSqliteSchema.php +129 -0
- package/pto/yaamp/web/framework-1.0.8/i18n/CChoiceFormat.php +77 -0
- package/pto/yaamp/web/framework-1.0.8/i18n/CDateFormatter.php +507 -0
- package/pto/yaamp/web/framework-1.0.8/i18n/CDbMessageSource.php +114 -0
- package/pto/yaamp/web/framework-1.0.8/i18n/CGettextMessageSource.php +111 -0
- package/pto/yaamp/web/framework-1.0.8/i18n/CLocale.php +243 -0
- package/pto/yaamp/web/framework-1.0.8/i18n/CMessageSource.php +157 -0
- package/pto/yaamp/web/framework-1.0.8/i18n/CNumberFormatter.php +280 -0
- package/pto/yaamp/web/framework-1.0.8/i18n/CPhpMessageSource.php +96 -0
- package/pto/yaamp/web/framework-1.0.8/i18n/gettext/CGettextFile.php +36 -0
- package/pto/yaamp/web/framework-1.0.8/i18n/gettext/CGettextMoFile.php +269 -0
- package/pto/yaamp/web/framework-1.0.8/i18n/gettext/CGettextPoFile.php +89 -0
- package/pto/yaamp/web/framework-1.0.8/logging/CDbLogRoute.php +168 -0
- package/pto/yaamp/web/framework-1.0.8/logging/CEmailLogRoute.php +122 -0
- package/pto/yaamp/web/framework-1.0.8/logging/CFileLogRoute.php +162 -0
- package/pto/yaamp/web/framework-1.0.8/logging/CLogFilter.php +103 -0
- package/pto/yaamp/web/framework-1.0.8/logging/CLogRoute.php +107 -0
- package/pto/yaamp/web/framework-1.0.8/logging/CLogRouter.php +107 -0
- package/pto/yaamp/web/framework-1.0.8/logging/CLogger.php +237 -0
- package/pto/yaamp/web/framework-1.0.8/logging/CProfileLogRoute.php +201 -0
- package/pto/yaamp/web/framework-1.0.8/logging/CWebLogRoute.php +57 -0
- package/pto/yaamp/web/framework-1.0.8/messages/bg/yii.php +213 -0
- package/pto/yaamp/web/framework-1.0.8/messages/config.php +19 -0
- package/pto/yaamp/web/framework-1.0.8/messages/de/yii.php +221 -0
- package/pto/yaamp/web/framework-1.0.8/messages/el/yii.php +222 -0
- package/pto/yaamp/web/framework-1.0.8/messages/es/yii.php +231 -0
- package/pto/yaamp/web/framework-1.0.8/messages/fr/yii.php +210 -0
- package/pto/yaamp/web/framework-1.0.8/messages/he/yii.php +206 -0
- package/pto/yaamp/web/framework-1.0.8/messages/hu/yii.php +213 -0
- package/pto/yaamp/web/framework-1.0.8/messages/id/yii.php +213 -0
- package/pto/yaamp/web/framework-1.0.8/messages/it/yii.php +208 -0
- package/pto/yaamp/web/framework-1.0.8/messages/ja/yii.php +230 -0
- package/pto/yaamp/web/framework-1.0.8/messages/nl/yii.php +206 -0
- package/pto/yaamp/web/framework-1.0.8/messages/no/yii.php +222 -0
- package/pto/yaamp/web/framework-1.0.8/messages/pl/yii.php +213 -0
- package/pto/yaamp/web/framework-1.0.8/messages/pt/yii.php +213 -0
- package/pto/yaamp/web/framework-1.0.8/messages/ro/yii.php +213 -0
- package/pto/yaamp/web/framework-1.0.8/messages/ru/yii.php +214 -0
- package/pto/yaamp/web/framework-1.0.8/messages/sr_sr/yii.php +205 -0
- package/pto/yaamp/web/framework-1.0.8/messages/sr_yu/yii.php +205 -0
- package/pto/yaamp/web/framework-1.0.8/messages/sv/yii.php +226 -0
- package/pto/yaamp/web/framework-1.0.8/messages/uk/yii.php +213 -0
- package/pto/yaamp/web/framework-1.0.8/messages/vi/yii.php +213 -0
- package/pto/yaamp/web/framework-1.0.8/messages/zh_cn/yii.php +213 -0
- package/pto/yaamp/web/framework-1.0.8/messages/zh_tw/yii.php +207 -0
- package/pto/yaamp/web/framework-1.0.8/utils/CDateTimeParser.php +230 -0
- package/pto/yaamp/web/framework-1.0.8/utils/CFileHelper.php +228 -0
- package/pto/yaamp/web/framework-1.0.8/utils/CMarkdownParser.php +179 -0
- package/pto/yaamp/web/framework-1.0.8/utils/CPropertyValue.php +158 -0
- package/pto/yaamp/web/framework-1.0.8/utils/CTimestamp.php +715 -0
- package/pto/yaamp/web/framework-1.0.8/utils/CVarDumper.php +142 -0
- package/pto/yaamp/web/framework-1.0.8/utils/mimeTypes.php +178 -0
- package/pto/yaamp/web/framework-1.0.8/validators/CCaptchaValidator.php +72 -0
- package/pto/yaamp/web/framework-1.0.8/validators/CCompareValidator.php +151 -0
- package/pto/yaamp/web/framework-1.0.8/validators/CDefaultValueValidator.php +51 -0
- package/pto/yaamp/web/framework-1.0.8/validators/CEmailValidator.php +80 -0
- package/pto/yaamp/web/framework-1.0.8/validators/CExistValidator.php +88 -0
- package/pto/yaamp/web/framework-1.0.8/validators/CFileValidator.php +159 -0
- package/pto/yaamp/web/framework-1.0.8/validators/CFilterValidator.php +49 -0
- package/pto/yaamp/web/framework-1.0.8/validators/CInlineValidator.php +41 -0
- package/pto/yaamp/web/framework-1.0.8/validators/CNumberValidator.php +86 -0
- package/pto/yaamp/web/framework-1.0.8/validators/CRangeValidator.php +53 -0
- package/pto/yaamp/web/framework-1.0.8/validators/CRegularExpressionValidator.php +51 -0
- package/pto/yaamp/web/framework-1.0.8/validators/CRequiredValidator.php +36 -0
- package/pto/yaamp/web/framework-1.0.8/validators/CStringValidator.php +78 -0
- package/pto/yaamp/web/framework-1.0.8/validators/CTypeValidator.php +99 -0
- package/pto/yaamp/web/framework-1.0.8/validators/CUniqueValidator.php +106 -0
- package/pto/yaamp/web/framework-1.0.8/validators/CUrlValidator.php +49 -0
- package/pto/yaamp/web/framework-1.0.8/validators/CValidator.php +194 -0
- package/pto/yaamp/web/framework-1.0.8/vendors/README.html +89 -0
- package/pto/yaamp/web/framework-1.0.8/vendors/adodb/LICENSE.txt +182 -0
- package/pto/yaamp/web/framework-1.0.8/vendors/cldr/LICENSE.txt +33 -0
- package/pto/yaamp/web/framework-1.0.8/vendors/gettext/LICENSE.txt +22 -0
- package/pto/yaamp/web/framework-1.0.8/vendors/json/LICENSE.txt +22 -0
- package/pto/yaamp/web/framework-1.0.8/vendors/markdown/LICENSE.txt +36 -0
- package/pto/yaamp/web/framework-1.0.8/vendors/markdown/markdown.php +2623 -0
- package/pto/yaamp/web/framework-1.0.8/views/de/error.php +38 -0
- package/pto/yaamp/web/framework-1.0.8/views/de/error400.php +34 -0
- package/pto/yaamp/web/framework-1.0.8/views/de/error403.php +33 -0
- package/pto/yaamp/web/framework-1.0.8/views/de/error404.php +34 -0
- package/pto/yaamp/web/framework-1.0.8/views/de/error500.php +35 -0
- package/pto/yaamp/web/framework-1.0.8/views/de/error503.php +31 -0
- package/pto/yaamp/web/framework-1.0.8/views/de/exception.php +74 -0
- package/pto/yaamp/web/framework-1.0.8/views/de/log-firebug.php +23 -0
- package/pto/yaamp/web/framework-1.0.8/views/de/log.php +32 -0
- package/pto/yaamp/web/framework-1.0.8/views/de/profile-callstack-firebug.php +19 -0
- package/pto/yaamp/web/framework-1.0.8/views/de/profile-callstack.php +30 -0
- package/pto/yaamp/web/framework-1.0.8/views/de/profile-summary-firebug.php +23 -0
- package/pto/yaamp/web/framework-1.0.8/views/de/profile-summary.php +41 -0
- package/pto/yaamp/web/framework-1.0.8/views/error.php +37 -0
- package/pto/yaamp/web/framework-1.0.8/views/error400.php +33 -0
- package/pto/yaamp/web/framework-1.0.8/views/error403.php +32 -0
- package/pto/yaamp/web/framework-1.0.8/views/error404.php +33 -0
- package/pto/yaamp/web/framework-1.0.8/views/error500.php +35 -0
- package/pto/yaamp/web/framework-1.0.8/views/error503.php +31 -0
- package/pto/yaamp/web/framework-1.0.8/views/es/error.php +37 -0
- package/pto/yaamp/web/framework-1.0.8/views/es/error400.php +33 -0
- package/pto/yaamp/web/framework-1.0.8/views/es/error403.php +32 -0
- package/pto/yaamp/web/framework-1.0.8/views/es/error404.php +33 -0
- package/pto/yaamp/web/framework-1.0.8/views/es/error500.php +35 -0
- package/pto/yaamp/web/framework-1.0.8/views/es/error503.php +31 -0
- package/pto/yaamp/web/framework-1.0.8/views/es/exception.php +74 -0
- package/pto/yaamp/web/framework-1.0.8/views/es/log-firebug.php +23 -0
- package/pto/yaamp/web/framework-1.0.8/views/es/log.php +32 -0
- package/pto/yaamp/web/framework-1.0.8/views/es/profile-callstack-firebug.php +19 -0
- package/pto/yaamp/web/framework-1.0.8/views/es/profile-callstack.php +30 -0
- package/pto/yaamp/web/framework-1.0.8/views/es/profile-summary-firebug.php +22 -0
- package/pto/yaamp/web/framework-1.0.8/views/es/profile-summary.php +41 -0
- package/pto/yaamp/web/framework-1.0.8/views/exception.php +74 -0
- package/pto/yaamp/web/framework-1.0.8/views/fr/error.php +37 -0
- package/pto/yaamp/web/framework-1.0.8/views/fr/error400.php +33 -0
- package/pto/yaamp/web/framework-1.0.8/views/fr/error403.php +32 -0
- package/pto/yaamp/web/framework-1.0.8/views/fr/error404.php +34 -0
- package/pto/yaamp/web/framework-1.0.8/views/fr/error500.php +35 -0
- package/pto/yaamp/web/framework-1.0.8/views/fr/error503.php +31 -0
- package/pto/yaamp/web/framework-1.0.8/views/fr/exception.php +74 -0
- package/pto/yaamp/web/framework-1.0.8/views/fr/log-firebug.php +23 -0
- package/pto/yaamp/web/framework-1.0.8/views/fr/log.php +32 -0
- package/pto/yaamp/web/framework-1.0.8/views/fr/profile-callstack-firebug.php +19 -0
- package/pto/yaamp/web/framework-1.0.8/views/fr/profile-callstack.php +30 -0
- package/pto/yaamp/web/framework-1.0.8/views/fr/profile-summary-firebug.php +22 -0
- package/pto/yaamp/web/framework-1.0.8/views/fr/profile-summary.php +41 -0
- package/pto/yaamp/web/framework-1.0.8/views/he/error.php +38 -0
- package/pto/yaamp/web/framework-1.0.8/views/he/error400.php +34 -0
- package/pto/yaamp/web/framework-1.0.8/views/he/error403.php +33 -0
- package/pto/yaamp/web/framework-1.0.8/views/he/error404.php +34 -0
- package/pto/yaamp/web/framework-1.0.8/views/he/error500.php +36 -0
- package/pto/yaamp/web/framework-1.0.8/views/he/error503.php +32 -0
- package/pto/yaamp/web/framework-1.0.8/views/he/exception.php +75 -0
- package/pto/yaamp/web/framework-1.0.8/views/he/log-firebug.php +23 -0
- package/pto/yaamp/web/framework-1.0.8/views/he/log.php +32 -0
- package/pto/yaamp/web/framework-1.0.8/views/he/profile-callstack-firebug.php +19 -0
- package/pto/yaamp/web/framework-1.0.8/views/he/profile-callstack.php +30 -0
- package/pto/yaamp/web/framework-1.0.8/views/he/profile-summary-firebug.php +22 -0
- package/pto/yaamp/web/framework-1.0.8/views/he/profile-summary.php +41 -0
- package/pto/yaamp/web/framework-1.0.8/views/id/error.php +37 -0
- package/pto/yaamp/web/framework-1.0.8/views/id/error400.php +33 -0
- package/pto/yaamp/web/framework-1.0.8/views/id/error403.php +32 -0
- package/pto/yaamp/web/framework-1.0.8/views/id/error404.php +33 -0
- package/pto/yaamp/web/framework-1.0.8/views/id/error500.php +35 -0
- package/pto/yaamp/web/framework-1.0.8/views/id/error503.php +31 -0
- package/pto/yaamp/web/framework-1.0.8/views/id/exception.php +74 -0
- package/pto/yaamp/web/framework-1.0.8/views/id/log-firebug.php +23 -0
- package/pto/yaamp/web/framework-1.0.8/views/id/log.php +32 -0
- package/pto/yaamp/web/framework-1.0.8/views/id/profile-callstack-firebug.php +19 -0
- package/pto/yaamp/web/framework-1.0.8/views/id/profile-callstack.php +30 -0
- package/pto/yaamp/web/framework-1.0.8/views/id/profile-summary-firebug.php +22 -0
- package/pto/yaamp/web/framework-1.0.8/views/id/profile-summary.php +41 -0
- package/pto/yaamp/web/framework-1.0.8/views/ja/error.php +37 -0
- package/pto/yaamp/web/framework-1.0.8/views/ja/error400.php +33 -0
- package/pto/yaamp/web/framework-1.0.8/views/ja/error403.php +32 -0
- package/pto/yaamp/web/framework-1.0.8/views/ja/error404.php +33 -0
- package/pto/yaamp/web/framework-1.0.8/views/ja/error500.php +35 -0
- package/pto/yaamp/web/framework-1.0.8/views/ja/error503.php +31 -0
- package/pto/yaamp/web/framework-1.0.8/views/ja/exception.php +74 -0
- package/pto/yaamp/web/framework-1.0.8/views/ja/log-firebug.php +23 -0
- package/pto/yaamp/web/framework-1.0.8/views/ja/log.php +32 -0
- package/pto/yaamp/web/framework-1.0.8/views/ja/profile-callstack-firebug.php +19 -0
- package/pto/yaamp/web/framework-1.0.8/views/ja/profile-callstack.php +30 -0
- package/pto/yaamp/web/framework-1.0.8/views/ja/profile-summary-firebug.php +22 -0
- package/pto/yaamp/web/framework-1.0.8/views/ja/profile-summary.php +41 -0
- package/pto/yaamp/web/framework-1.0.8/views/log-firebug.php +23 -0
- package/pto/yaamp/web/framework-1.0.8/views/log.php +32 -0
- package/pto/yaamp/web/framework-1.0.8/views/nl/error.php +25 -0
- package/pto/yaamp/web/framework-1.0.8/views/nl/error400.php +24 -0
- package/pto/yaamp/web/framework-1.0.8/views/nl/error403.php +24 -0
- package/pto/yaamp/web/framework-1.0.8/views/nl/error404.php +24 -0
- package/pto/yaamp/web/framework-1.0.8/views/nl/error500.php +24 -0
- package/pto/yaamp/web/framework-1.0.8/views/nl/error503.php +24 -0
- package/pto/yaamp/web/framework-1.0.8/views/nl/exception.php +62 -0
- package/pto/yaamp/web/framework-1.0.8/views/nl/log-firebug.php +22 -0
- package/pto/yaamp/web/framework-1.0.8/views/nl/log.php +29 -0
- package/pto/yaamp/web/framework-1.0.8/views/nl/profile-callstack-firebug.php +17 -0
- package/pto/yaamp/web/framework-1.0.8/views/nl/profile-callstack.php +29 -0
- package/pto/yaamp/web/framework-1.0.8/views/nl/profile-summary-firebug.php +20 -0
- package/pto/yaamp/web/framework-1.0.8/views/nl/profile-summary.php +41 -0
- package/pto/yaamp/web/framework-1.0.8/views/no/error.php +37 -0
- package/pto/yaamp/web/framework-1.0.8/views/no/error400.php +33 -0
- package/pto/yaamp/web/framework-1.0.8/views/no/error403.php +32 -0
- package/pto/yaamp/web/framework-1.0.8/views/no/error404.php +33 -0
- package/pto/yaamp/web/framework-1.0.8/views/no/error500.php +35 -0
- package/pto/yaamp/web/framework-1.0.8/views/no/error503.php +31 -0
- package/pto/yaamp/web/framework-1.0.8/views/no/exception.php +74 -0
- package/pto/yaamp/web/framework-1.0.8/views/no/log-firebug.php +23 -0
- package/pto/yaamp/web/framework-1.0.8/views/no/log.php +32 -0
- package/pto/yaamp/web/framework-1.0.8/views/no/profile-callstack-firebug.php +19 -0
- package/pto/yaamp/web/framework-1.0.8/views/no/profile-callstack.php +30 -0
- package/pto/yaamp/web/framework-1.0.8/views/no/profile-summary-firebug.php +22 -0
- package/pto/yaamp/web/framework-1.0.8/views/no/profile-summary.php +41 -0
- package/pto/yaamp/web/framework-1.0.8/views/profile-callstack-firebug.php +19 -0
- package/pto/yaamp/web/framework-1.0.8/views/profile-callstack.php +30 -0
- package/pto/yaamp/web/framework-1.0.8/views/profile-summary-firebug.php +22 -0
- package/pto/yaamp/web/framework-1.0.8/views/profile-summary.php +41 -0
- package/pto/yaamp/web/framework-1.0.8/views/pt/error.php +37 -0
- package/pto/yaamp/web/framework-1.0.8/views/pt/error400.php +33 -0
- package/pto/yaamp/web/framework-1.0.8/views/pt/error403.php +32 -0
- package/pto/yaamp/web/framework-1.0.8/views/pt/error404.php +33 -0
- package/pto/yaamp/web/framework-1.0.8/views/pt/error500.php +35 -0
- package/pto/yaamp/web/framework-1.0.8/views/pt/error503.php +31 -0
- package/pto/yaamp/web/framework-1.0.8/views/pt/exception.php +74 -0
- package/pto/yaamp/web/framework-1.0.8/views/pt/log-firebug.php +23 -0
- package/pto/yaamp/web/framework-1.0.8/views/pt/log.php +32 -0
- package/pto/yaamp/web/framework-1.0.8/views/pt/profile-callstack-firebug.php +19 -0
- package/pto/yaamp/web/framework-1.0.8/views/pt/profile-callstack.php +30 -0
- package/pto/yaamp/web/framework-1.0.8/views/pt/profile-summary-firebug.php +22 -0
- package/pto/yaamp/web/framework-1.0.8/views/pt/profile-summary.php +41 -0
- package/pto/yaamp/web/framework-1.0.8/views/ro/error.php +37 -0
- package/pto/yaamp/web/framework-1.0.8/views/ro/error400.php +33 -0
- package/pto/yaamp/web/framework-1.0.8/views/ro/error403.php +32 -0
- package/pto/yaamp/web/framework-1.0.8/views/ro/error404.php +33 -0
- package/pto/yaamp/web/framework-1.0.8/views/ro/error500.php +35 -0
- package/pto/yaamp/web/framework-1.0.8/views/ro/error503.php +31 -0
- package/pto/yaamp/web/framework-1.0.8/views/ro/exception.php +74 -0
- package/pto/yaamp/web/framework-1.0.8/views/ro/log-firebug.php +23 -0
- package/pto/yaamp/web/framework-1.0.8/views/ro/log.php +32 -0
- package/pto/yaamp/web/framework-1.0.8/views/ro/profile-callstack-firebug.php +19 -0
- package/pto/yaamp/web/framework-1.0.8/views/ro/profile-callstack.php +30 -0
- package/pto/yaamp/web/framework-1.0.8/views/ro/profile-summary-firebug.php +22 -0
- package/pto/yaamp/web/framework-1.0.8/views/ro/profile-summary.php +41 -0
- package/pto/yaamp/web/framework-1.0.8/views/ru/error.php +37 -0
- package/pto/yaamp/web/framework-1.0.8/views/ru/error400.php +33 -0
- package/pto/yaamp/web/framework-1.0.8/views/ru/error403.php +32 -0
- package/pto/yaamp/web/framework-1.0.8/views/ru/error404.php +33 -0
- package/pto/yaamp/web/framework-1.0.8/views/ru/error500.php +35 -0
- package/pto/yaamp/web/framework-1.0.8/views/ru/error503.php +31 -0
- package/pto/yaamp/web/framework-1.0.8/views/ru/exception.php +74 -0
- package/pto/yaamp/web/framework-1.0.8/views/ru/log-firebug.php +23 -0
- package/pto/yaamp/web/framework-1.0.8/views/ru/log.php +32 -0
- package/pto/yaamp/web/framework-1.0.8/views/ru/profile-callstack-firebug.php +19 -0
- package/pto/yaamp/web/framework-1.0.8/views/ru/profile-callstack.php +30 -0
- package/pto/yaamp/web/framework-1.0.8/views/ru/profile-summary-firebug.php +22 -0
- package/pto/yaamp/web/framework-1.0.8/views/ru/profile-summary.php +41 -0
- package/pto/yaamp/web/framework-1.0.8/views/sv/error.php +37 -0
- package/pto/yaamp/web/framework-1.0.8/views/sv/error400.php +33 -0
- package/pto/yaamp/web/framework-1.0.8/views/sv/error403.php +33 -0
- package/pto/yaamp/web/framework-1.0.8/views/sv/error404.php +33 -0
- package/pto/yaamp/web/framework-1.0.8/views/sv/error500.php +35 -0
- package/pto/yaamp/web/framework-1.0.8/views/sv/error503.php +31 -0
- package/pto/yaamp/web/framework-1.0.8/views/sv/exception.php +74 -0
- package/pto/yaamp/web/framework-1.0.8/views/sv/log-firebug.php +23 -0
- package/pto/yaamp/web/framework-1.0.8/views/sv/log.php +32 -0
- package/pto/yaamp/web/framework-1.0.8/views/sv/profile-callstack-firebug.php +19 -0
- package/pto/yaamp/web/framework-1.0.8/views/sv/profile-callstack.php +30 -0
- package/pto/yaamp/web/framework-1.0.8/views/sv/profile-summary-firebug.php +22 -0
- package/pto/yaamp/web/framework-1.0.8/views/sv/profile-summary.php +41 -0
- package/pto/yaamp/web/framework-1.0.8/views/zh_cn/error.php +37 -0
- package/pto/yaamp/web/framework-1.0.8/views/zh_cn/error400.php +33 -0
- package/pto/yaamp/web/framework-1.0.8/views/zh_cn/error403.php +32 -0
- package/pto/yaamp/web/framework-1.0.8/views/zh_cn/error404.php +33 -0
- package/pto/yaamp/web/framework-1.0.8/views/zh_cn/error500.php +35 -0
- package/pto/yaamp/web/framework-1.0.8/views/zh_cn/error503.php +31 -0
- package/pto/yaamp/web/framework-1.0.8/views/zh_cn/exception.php +74 -0
- package/pto/yaamp/web/framework-1.0.8/views/zh_cn/log-firebug.php +23 -0
- package/pto/yaamp/web/framework-1.0.8/views/zh_cn/log.php +32 -0
- package/pto/yaamp/web/framework-1.0.8/views/zh_cn/profile-callstack-firebug.php +19 -0
- package/pto/yaamp/web/framework-1.0.8/views/zh_cn/profile-callstack.php +28 -0
- package/pto/yaamp/web/framework-1.0.8/views/zh_cn/profile-summary-firebug.php +22 -0
- package/pto/yaamp/web/framework-1.0.8/views/zh_cn/profile-summary.php +41 -0
- package/pto/yaamp/web/framework-1.0.8/views/zh_tw/error.php +37 -0
- package/pto/yaamp/web/framework-1.0.8/views/zh_tw/error400.php +33 -0
- package/pto/yaamp/web/framework-1.0.8/views/zh_tw/error403.php +32 -0
- package/pto/yaamp/web/framework-1.0.8/views/zh_tw/error404.php +33 -0
- package/pto/yaamp/web/framework-1.0.8/views/zh_tw/error500.php +35 -0
- package/pto/yaamp/web/framework-1.0.8/views/zh_tw/error503.php +31 -0
- package/pto/yaamp/web/framework-1.0.8/views/zh_tw/exception.php +74 -0
- package/pto/yaamp/web/framework-1.0.8/views/zh_tw/log-firebug.php +23 -0
- package/pto/yaamp/web/framework-1.0.8/views/zh_tw/log.php +32 -0
- package/pto/yaamp/web/framework-1.0.8/views/zh_tw/profile-callstack-firebug.php +19 -0
- package/pto/yaamp/web/framework-1.0.8/views/zh_tw/profile-callstack.php +30 -0
- package/pto/yaamp/web/framework-1.0.8/views/zh_tw/profile-summary-firebug.php +22 -0
- package/pto/yaamp/web/framework-1.0.8/views/zh_tw/profile-summary.php +41 -0
- package/pto/yaamp/web/framework-1.0.8/web/CAssetManager.php +227 -0
- package/pto/yaamp/web/framework-1.0.8/web/CBaseController.php +283 -0
- package/pto/yaamp/web/framework-1.0.8/web/CCacheHttpSession.php +111 -0
- package/pto/yaamp/web/framework-1.0.8/web/CClientScript.php +562 -0
- package/pto/yaamp/web/framework-1.0.8/web/CController.php +1072 -0
- package/pto/yaamp/web/framework-1.0.8/web/CDbHttpSession.php +203 -0
- package/pto/yaamp/web/framework-1.0.8/web/CExtController.php +53 -0
- package/pto/yaamp/web/framework-1.0.8/web/CFormModel.php +113 -0
- package/pto/yaamp/web/framework-1.0.8/web/CHttpCookie.php +63 -0
- package/pto/yaamp/web/framework-1.0.8/web/CHttpRequest.php +763 -0
- package/pto/yaamp/web/framework-1.0.8/web/CHttpSession.php +522 -0
- package/pto/yaamp/web/framework-1.0.8/web/CHttpSessionIterator.php +92 -0
- package/pto/yaamp/web/framework-1.0.8/web/COutputEvent.php +38 -0
- package/pto/yaamp/web/framework-1.0.8/web/CPagination.php +161 -0
- package/pto/yaamp/web/framework-1.0.8/web/CSort.php +292 -0
- package/pto/yaamp/web/framework-1.0.8/web/CTheme.php +124 -0
- package/pto/yaamp/web/framework-1.0.8/web/CThemeManager.php +127 -0
- package/pto/yaamp/web/framework-1.0.8/web/CUploadedFile.php +210 -0
- package/pto/yaamp/web/framework-1.0.8/web/CUrlManager.php +613 -0
- package/pto/yaamp/web/framework-1.0.8/web/CWebApplication.php +608 -0
- package/pto/yaamp/web/framework-1.0.8/web/CWebModule.php +187 -0
- package/pto/yaamp/web/framework-1.0.8/web/actions/CAction.php +58 -0
- package/pto/yaamp/web/framework-1.0.8/web/actions/CInlineAction.php +34 -0
- package/pto/yaamp/web/framework-1.0.8/web/actions/CViewAction.php +165 -0
- package/pto/yaamp/web/framework-1.0.8/web/auth/CAccessControlFilter.php +295 -0
- package/pto/yaamp/web/framework-1.0.8/web/auth/CAuthAssignment.php +102 -0
- package/pto/yaamp/web/framework-1.0.8/web/auth/CAuthItem.php +269 -0
- package/pto/yaamp/web/framework-1.0.8/web/auth/CAuthManager.php +157 -0
- package/pto/yaamp/web/framework-1.0.8/web/auth/CBaseUserIdentity.php +116 -0
- package/pto/yaamp/web/framework-1.0.8/web/auth/CDbAuthManager.php +584 -0
- package/pto/yaamp/web/framework-1.0.8/web/auth/CPhpAuthManager.php +535 -0
- package/pto/yaamp/web/framework-1.0.8/web/auth/CUserIdentity.php +79 -0
- package/pto/yaamp/web/framework-1.0.8/web/auth/CWebUser.php +583 -0
- package/pto/yaamp/web/framework-1.0.8/web/auth/schema.sql +42 -0
- package/pto/yaamp/web/framework-1.0.8/web/filters/CFilter.php +64 -0
- package/pto/yaamp/web/framework-1.0.8/web/filters/CFilterChain.php +131 -0
- package/pto/yaamp/web/framework-1.0.8/web/filters/CInlineFilter.php +61 -0
- package/pto/yaamp/web/framework-1.0.8/web/helpers/CGoogleApi.php +72 -0
- package/pto/yaamp/web/framework-1.0.8/web/helpers/CHtml.php +1801 -0
- package/pto/yaamp/web/framework-1.0.8/web/helpers/CJSON.php +698 -0
- package/pto/yaamp/web/framework-1.0.8/web/helpers/CJavaScript.php +128 -0
- package/pto/yaamp/web/framework-1.0.8/web/renderers/CPradoViewRenderer.php +245 -0
- package/pto/yaamp/web/framework-1.0.8/web/renderers/CViewRenderer.php +93 -0
- package/pto/yaamp/web/framework-1.0.8/web/services/CWebService.php +271 -0
- package/pto/yaamp/web/framework-1.0.8/web/services/CWebServiceAction.php +130 -0
- package/pto/yaamp/web/framework-1.0.8/web/services/CWsdlGenerator.php +373 -0
- package/pto/yaamp/web/framework-1.0.8/web/widgets/CAutoComplete.php +285 -0
- package/pto/yaamp/web/framework-1.0.8/web/widgets/CClipWidget.php +55 -0
- package/pto/yaamp/web/framework-1.0.8/web/widgets/CContentDecorator.php +83 -0
- package/pto/yaamp/web/framework-1.0.8/web/widgets/CFilterWidget.php +74 -0
- package/pto/yaamp/web/framework-1.0.8/web/widgets/CFlexWidget.php +116 -0
- package/pto/yaamp/web/framework-1.0.8/web/widgets/CHtmlPurifier.php +64 -0
- package/pto/yaamp/web/framework-1.0.8/web/widgets/CInputWidget.php +80 -0
- package/pto/yaamp/web/framework-1.0.8/web/widgets/CMarkdown.php +119 -0
- package/pto/yaamp/web/framework-1.0.8/web/widgets/CMaskedTextField.php +106 -0
- package/pto/yaamp/web/framework-1.0.8/web/widgets/CMultiFileUpload.php +115 -0
- package/pto/yaamp/web/framework-1.0.8/web/widgets/COutputCache.php +336 -0
- package/pto/yaamp/web/framework-1.0.8/web/widgets/COutputProcessor.php +77 -0
- package/pto/yaamp/web/framework-1.0.8/web/widgets/CStarRating.php +207 -0
- package/pto/yaamp/web/framework-1.0.8/web/widgets/CTabView.php +201 -0
- package/pto/yaamp/web/framework-1.0.8/web/widgets/CTextHighlighter.php +127 -0
- package/pto/yaamp/web/framework-1.0.8/web/widgets/CTreeView.php +232 -0
- package/pto/yaamp/web/framework-1.0.8/web/widgets/CWidget.php +202 -0
- package/pto/yaamp/web/framework-1.0.8/web/widgets/captcha/CCaptcha.php +132 -0
- package/pto/yaamp/web/framework-1.0.8/web/widgets/captcha/CCaptchaAction.php +233 -0
- package/pto/yaamp/web/framework-1.0.8/web/widgets/captcha/Duality.ttf +0 -0
- package/pto/yaamp/web/framework-1.0.8/web/widgets/pagers/CBasePager.php +129 -0
- package/pto/yaamp/web/framework-1.0.8/web/widgets/pagers/CLinkPager.php +194 -0
- package/pto/yaamp/web/framework-1.0.8/web/widgets/pagers/CListPager.php +85 -0
- package/pto/yaamp/web/framework-1.0.8/web/widgets/pagers/pager.css +68 -0
- package/pto/yaamp/web/framework-1.0.8/web/widgets/views/flexWidget.php +98 -0
- package/pto/yaamp/web/framework-1.0.8/yii.php +29 -0
- package/pto/yaamp/web/images/41.png +0 -0
- package/pto/yaamp/web/images/amc.jpg +0 -0
- package/pto/yaamp/web/images/base/action_refresh_blue.gif +0 -0
- package/pto/yaamp/web/images/base/action_save.gif +0 -0
- package/pto/yaamp/web/images/base/delete.png +0 -0
- package/pto/yaamp/web/images/base/dot.png +0 -0
- package/pto/yaamp/web/images/base/download.png +0 -0
- package/pto/yaamp/web/images/base/edit.png +0 -0
- package/pto/yaamp/web/images/base/enroll.png +0 -0
- package/pto/yaamp/web/images/base/favorite.png +0 -0
- package/pto/yaamp/web/images/base/folder_new.png +0 -0
- package/pto/yaamp/web/images/base/new.png +0 -0
- package/pto/yaamp/web/images/base/newcomment.png +0 -0
- package/pto/yaamp/web/images/base/newfile.png +0 -0
- package/pto/yaamp/web/images/base/newfolder.png +0 -0
- package/pto/yaamp/web/images/base/newuser.png +0 -0
- package/pto/yaamp/web/images/base/pause.png +0 -0
- package/pto/yaamp/web/images/base/play.png +0 -0
- package/pto/yaamp/web/images/base/tools.png +0 -0
- package/pto/yaamp/web/images/base/top.png +0 -0
- package/pto/yaamp/web/images/base/top_header.png +0 -0
- package/pto/yaamp/web/images/base/top_header_selected.png +0 -0
- package/pto/yaamp/web/images/base/video_play.png +0 -0
- package/pto/yaamp/web/images/beta_corner_banner.png +0 -0
- package/pto/yaamp/web/images/beta_corner_banner2.png +0 -0
- package/pto/yaamp/web/images/btc.png +0 -0
- package/pto/yaamp/web/images/coin-154.png +0 -0
- package/pto/yaamp/web/images/coin-22.png +0 -0
- package/pto/yaamp/web/images/coin-251.png +0 -0
- package/pto/yaamp/web/images/coin-30.png +0 -0
- package/pto/yaamp/web/images/coin-316.png +0 -0
- package/pto/yaamp/web/images/coin-33.png +0 -0
- package/pto/yaamp/web/images/coin-6.png +0 -0
- package/pto/yaamp/web/images/coin-834.png +0 -0
- package/pto/yaamp/web/images/gears.png +0 -0
- package/pto/yaamp/web/images/minus2-78.png +0 -0
- package/pto/yaamp/web/images/next.png +0 -0
- package/pto/yaamp/web/images/pause.png +0 -0
- package/pto/yaamp/web/images/play.png +0 -0
- package/pto/yaamp/web/images/plus2-78.png +0 -0
- package/pto/yaamp/web/images/sign-in-with-twitter-gray.png +0 -0
- package/pto/yaamp/web/images/sign-in-with-twitter-link.png +0 -0
- package/pto/yaamp/web/images/start.png +0 -0
- package/pto/yaamp/web/images/t_mini-a.png +0 -0
- package/pto/yaamp/web/images/tweet.jpg +0 -0
- package/pto/yaamp/web/images/twitter.jpg +0 -0
- package/pto/yaamp/web/images/ui/16x16_2leftarrow.png +0 -0
- package/pto/yaamp/web/images/ui/16x16_2rightarrow.png +0 -0
- package/pto/yaamp/web/images/ui/16x16_bottom.png +0 -0
- package/pto/yaamp/web/images/ui/16x16_chat.png +0 -0
- package/pto/yaamp/web/images/ui/16x16_delete.png +0 -0
- package/pto/yaamp/web/images/ui/16x16_edit.png +0 -0
- package/pto/yaamp/web/images/ui/16x16_email.png +0 -0
- package/pto/yaamp/web/images/ui/16x16_fileclose.png +0 -0
- package/pto/yaamp/web/images/ui/16x16_kcontrol.png +0 -0
- package/pto/yaamp/web/images/ui/16x16_kuser.png +0 -0
- package/pto/yaamp/web/images/ui/16x16_ledgreen.png +0 -0
- package/pto/yaamp/web/images/ui/16x16_link.png +0 -0
- package/pto/yaamp/web/images/ui/16x16_misc.png +0 -0
- package/pto/yaamp/web/images/ui/16x16_package_edutainment.png +0 -0
- package/pto/yaamp/web/images/ui/16x16_window_list.png +0 -0
- package/pto/yaamp/web/images/ui/22x22_bottom.png +0 -0
- package/pto/yaamp/web/images/ui/24x24_link.png +0 -0
- package/pto/yaamp/web/images/ui/32x32_link.png +0 -0
- package/pto/yaamp/web/images/ui/48x48_link.png +0 -0
- package/pto/yaamp/web/images/ui/arrow-down.gif +0 -0
- package/pto/yaamp/web/images/ui/arrow-right.gif +0 -0
- package/pto/yaamp/web/images/ui/asc.gif +0 -0
- package/pto/yaamp/web/images/ui/away.gif +0 -0
- package/pto/yaamp/web/images/ui/bg.gif +0 -0
- package/pto/yaamp/web/images/ui/control_play_blue.png +0 -0
- package/pto/yaamp/web/images/ui/desc.gif +0 -0
- package/pto/yaamp/web/images/ui/down_arrow.png +0 -0
- package/pto/yaamp/web/images/ui/empty.png +0 -0
- package/pto/yaamp/web/images/ui/expand_down.png +0 -0
- package/pto/yaamp/web/images/ui/expand_up.png +0 -0
- package/pto/yaamp/web/images/ui/green-check.png +0 -0
- package/pto/yaamp/web/images/ui/icon-check.gif +0 -0
- package/pto/yaamp/web/images/ui/install-flash.jpg +0 -0
- package/pto/yaamp/web/images/ui/linkout.png +0 -0
- package/pto/yaamp/web/images/ui/loading.gif +0 -0
- package/pto/yaamp/web/images/ui/loading_white.gif +0 -0
- package/pto/yaamp/web/images/ui/menudot.png +0 -0
- package/pto/yaamp/web/images/ui/menuo_bg.gif +0 -0
- package/pto/yaamp/web/images/ui/offline.gif +0 -0
- package/pto/yaamp/web/images/ui/online.gif +0 -0
- package/pto/yaamp/web/images/ui/shade.gif +0 -0
- package/pto/yaamp/web/images/ui/shadeactive.gif +0 -0
- package/pto/yaamp/web/images/ui/showactivity.png +0 -0
- package/pto/yaamp/web/images/ui/showcourse.png +0 -0
- package/pto/yaamp/web/images/ui/showdetail.png +0 -0
- package/pto/yaamp/web/images/ui/showfile.png +0 -0
- package/pto/yaamp/web/images/ui/showfolder.png +0 -0
- package/pto/yaamp/web/images/ui/showgraph.png +0 -0
- package/pto/yaamp/web/images/ui/showlink.png +0 -0
- package/pto/yaamp/web/images/ui/showmedium.png +0 -0
- package/pto/yaamp/web/images/ui/showsmall.png +0 -0
- package/pto/yaamp/web/images/ui/tintblue.gif +0 -0
- package/pto/yaamp/web/images/ui/tintbluedark.gif +0 -0
- package/pto/yaamp/web/images/vn_embed.png +0 -0
- package/pto/yaamp/web/index.php +30 -0
- package/pto/yaamp/web/loop2.sh +9 -0
- package/pto/yaamp/web/main.sh +9 -0
- package/pto/yaamp/web/robots.txt +2 -0
- package/pto/yaamp/web/run.php +25 -0
- package/pto/yaamp/web/serverconfig.php +26 -0
- package/pto/yaamp/web/yaamp/components/CUFHtml.php +136 -0
- package/pto/yaamp/web/yaamp/components/UniForm.php +25 -0
- package/pto/yaamp/web/yaamp/components/UserIdentity.php +25 -0
- package/pto/yaamp/web/yaamp/config.php +68 -0
- package/pto/yaamp/web/yaamp/core/backend/backend.php +17 -0
- package/pto/yaamp/web/yaamp/core/backend/blocks.php +243 -0
- package/pto/yaamp/web/yaamp/core/backend/clear.php +47 -0
- package/pto/yaamp/web/yaamp/core/backend/coins.php +245 -0
- package/pto/yaamp/web/yaamp/core/backend/markets.php +505 -0
- package/pto/yaamp/web/yaamp/core/backend/payment.php +153 -0
- package/pto/yaamp/web/yaamp/core/backend/rawcoins.php +144 -0
- package/pto/yaamp/web/yaamp/core/backend/renting.php +271 -0
- package/pto/yaamp/web/yaamp/core/backend/sell.php +126 -0
- package/pto/yaamp/web/yaamp/core/backend/services.php +210 -0
- package/pto/yaamp/web/yaamp/core/backend/stats.php +347 -0
- package/pto/yaamp/web/yaamp/core/backend/system.php +253 -0
- package/pto/yaamp/web/yaamp/core/backend/users.php +95 -0
- package/pto/yaamp/web/yaamp/core/common/Shortcuts.php +77 -0
- package/pto/yaamp/web/yaamp/core/common/common.php +10 -0
- package/pto/yaamp/web/yaamp/core/common/libUtil.php +305 -0
- package/pto/yaamp/web/yaamp/core/common/libdbo.php +91 -0
- package/pto/yaamp/web/yaamp/core/common/system.php +135 -0
- package/pto/yaamp/web/yaamp/core/common/util.php +317 -0
- package/pto/yaamp/web/yaamp/core/common/utilConversion.php +296 -0
- package/pto/yaamp/web/yaamp/core/core.php +11 -0
- package/pto/yaamp/web/yaamp/core/exchange/bittrex.php +28 -0
- package/pto/yaamp/web/yaamp/core/exchange/bleutrade.php +28 -0
- package/pto/yaamp/web/yaamp/core/exchange/ccexapi.php +106 -0
- package/pto/yaamp/web/yaamp/core/exchange/cryptsy.php +63 -0
- package/pto/yaamp/web/yaamp/core/exchange/exchange.php +12 -0
- package/pto/yaamp/web/yaamp/core/exchange/jubi.php +20 -0
- package/pto/yaamp/web/yaamp/core/exchange/poloniex.php +242 -0
- package/pto/yaamp/web/yaamp/core/exchange/yobit.php +77 -0
- package/pto/yaamp/web/yaamp/core/exchange2/CExchange.php +198 -0
- package/pto/yaamp/web/yaamp/core/exchange2/CExchangeCoin.php +84 -0
- package/pto/yaamp/web/yaamp/core/exchange2/exchange.php +7 -0
- package/pto/yaamp/web/yaamp/core/functions/curloauth.php +50 -0
- package/pto/yaamp/web/yaamp/core/functions/easybitcoin.php +220 -0
- package/pto/yaamp/web/yaamp/core/functions/functions.php +11 -0
- package/pto/yaamp/web/yaamp/core/functions/memcache.php +85 -0
- package/pto/yaamp/web/yaamp/core/functions/url.php +79 -0
- package/pto/yaamp/web/yaamp/core/functions/yaamp.php +365 -0
- package/pto/yaamp/web/yaamp/core/trading/bittrex_trading.php +221 -0
- package/pto/yaamp/web/yaamp/core/trading/bleutrade_trading.php +218 -0
- package/pto/yaamp/web/yaamp/core/trading/c-cex_trading.php +192 -0
- package/pto/yaamp/web/yaamp/core/trading/cryptsy_trading.php +231 -0
- package/pto/yaamp/web/yaamp/core/trading/poloniex_trading.php +179 -0
- package/pto/yaamp/web/yaamp/core/trading/trading.php +11 -0
- package/pto/yaamp/web/yaamp/core/trading/yobit_trading.php +205 -0
- package/pto/yaamp/web/yaamp/include.php +11 -0
- package/pto/yaamp/web/yaamp/models/db_accountsModel.php +33 -0
- package/pto/yaamp/web/yaamp/models/db_algosModel.php +33 -0
- package/pto/yaamp/web/yaamp/models/db_balancesModel.php +33 -0
- package/pto/yaamp/web/yaamp/models/db_balanceuserModel.php +33 -0
- package/pto/yaamp/web/yaamp/models/db_blocksModel.php +33 -0
- package/pto/yaamp/web/yaamp/models/db_coinsModel.php +46 -0
- package/pto/yaamp/web/yaamp/models/db_connectionsModel.php +35 -0
- package/pto/yaamp/web/yaamp/models/db_earningsModel.php +33 -0
- package/pto/yaamp/web/yaamp/models/db_exchangeModel.php +33 -0
- package/pto/yaamp/web/yaamp/models/db_hashrateModel.php +33 -0
- package/pto/yaamp/web/yaamp/models/db_hashrenterModel.php +33 -0
- package/pto/yaamp/web/yaamp/models/db_hashstatsModel.php +33 -0
- package/pto/yaamp/web/yaamp/models/db_hashuserModel.php +33 -0
- package/pto/yaamp/web/yaamp/models/db_jobsModel.php +33 -0
- package/pto/yaamp/web/yaamp/models/db_jobsubmitsModel.php +33 -0
- package/pto/yaamp/web/yaamp/models/db_marketsModel.php +33 -0
- package/pto/yaamp/web/yaamp/models/db_miningModel.php +33 -0
- package/pto/yaamp/web/yaamp/models/db_nicehashModel.php +33 -0
- package/pto/yaamp/web/yaamp/models/db_ordersModel.php +33 -0
- package/pto/yaamp/web/yaamp/models/db_payoutsModel.php +33 -0
- package/pto/yaamp/web/yaamp/models/db_rawcoinsModel.php +36 -0
- package/pto/yaamp/web/yaamp/models/db_rentersModel.php +33 -0
- package/pto/yaamp/web/yaamp/models/db_rentertxsModel.php +33 -0
- package/pto/yaamp/web/yaamp/models/db_serversModel.php +33 -0
- package/pto/yaamp/web/yaamp/models/db_servicesModel.php +33 -0
- package/pto/yaamp/web/yaamp/models/db_sharesModel.php +33 -0
- package/pto/yaamp/web/yaamp/models/db_shares_vipModel.php +33 -0
- package/pto/yaamp/web/yaamp/models/db_statsModel.php +33 -0
- package/pto/yaamp/web/yaamp/models/db_stratumsModel.php +33 -0
- package/pto/yaamp/web/yaamp/models/db_withdrawsModel.php +33 -0
- package/pto/yaamp/web/yaamp/models/db_workersModel.php +33 -0
- package/pto/yaamp/web/yaamp/modules/api/ApiController.php +301 -0
- package/pto/yaamp/web/yaamp/modules/coin/CoinController.php +54 -0
- package/pto/yaamp/web/yaamp/modules/coin/_form.php +75 -0
- package/pto/yaamp/web/yaamp/modules/coin/index.php +134 -0
- package/pto/yaamp/web/yaamp/modules/common/CommonController.php +55 -0
- package/pto/yaamp/web/yaamp/modules/common/maintenance.php +25 -0
- package/pto/yaamp/web/yaamp/modules/common/yaamp.php +23 -0
- package/pto/yaamp/web/yaamp/modules/explorer/ExplorerController.php +56 -0
- package/pto/yaamp/web/yaamp/modules/explorer/block.php +122 -0
- package/pto/yaamp/web/yaamp/modules/explorer/coin.php +63 -0
- package/pto/yaamp/web/yaamp/modules/explorer/index.php +67 -0
- package/pto/yaamp/web/yaamp/modules/explorer/tx.php +73 -0
- package/pto/yaamp/web/yaamp/modules/explorer/util.php +146 -0
- package/pto/yaamp/web/yaamp/modules/market/MarketController.php +86 -0
- package/pto/yaamp/web/yaamp/modules/market/update.php +23 -0
- package/pto/yaamp/web/yaamp/modules/nicehash/NicehashController.php +55 -0
- package/pto/yaamp/web/yaamp/modules/nicehash/index.php +37 -0
- package/pto/yaamp/web/yaamp/modules/nicehash/index_results.php +78 -0
- package/pto/yaamp/web/yaamp/modules/renting/RentingController.php +469 -0
- package/pto/yaamp/web/yaamp/modules/renting/admin.php +148 -0
- package/pto/yaamp/web/yaamp/modules/renting/all_orders_results.php +95 -0
- package/pto/yaamp/web/yaamp/modules/renting/balance_results.php +115 -0
- package/pto/yaamp/web/yaamp/modules/renting/create.php +52 -0
- package/pto/yaamp/web/yaamp/modules/renting/graph_job_results.php +74 -0
- package/pto/yaamp/web/yaamp/modules/renting/graph_price_results.php +54 -0
- package/pto/yaamp/web/yaamp/modules/renting/index.php +318 -0
- package/pto/yaamp/web/yaamp/modules/renting/login.php +239 -0
- package/pto/yaamp/web/yaamp/modules/renting/orders_results.php +130 -0
- package/pto/yaamp/web/yaamp/modules/renting/settings.php +156 -0
- package/pto/yaamp/web/yaamp/modules/renting/status_results.php +103 -0
- package/pto/yaamp/web/yaamp/modules/renting/tx.php +74 -0
- package/pto/yaamp/web/yaamp/modules/site/SiteController.php +772 -0
- package/pto/yaamp/web/yaamp/modules/site/about.php +59 -0
- package/pto/yaamp/web/yaamp/modules/site/admin.php +90 -0
- package/pto/yaamp/web/yaamp/modules/site/admin_results.php +171 -0
- package/pto/yaamp/web/yaamp/modules/site/api.php +136 -0
- package/pto/yaamp/web/yaamp/modules/site/backup.php +33 -0
- package/pto/yaamp/web/yaamp/modules/site/block.php +46 -0
- package/pto/yaamp/web/yaamp/modules/site/block_results.php +85 -0
- package/pto/yaamp/web/yaamp/modules/site/coin.php +145 -0
- package/pto/yaamp/web/yaamp/modules/site/coin_form.php +229 -0
- package/pto/yaamp/web/yaamp/modules/site/coin_results.php +242 -0
- package/pto/yaamp/web/yaamp/modules/site/common.php +231 -0
- package/pto/yaamp/web/yaamp/modules/site/common_results.php +576 -0
- package/pto/yaamp/web/yaamp/modules/site/connections.php +57 -0
- package/pto/yaamp/web/yaamp/modules/site/connections_results.php +48 -0
- package/pto/yaamp/web/yaamp/modules/site/diff.php +36 -0
- package/pto/yaamp/web/yaamp/modules/site/earning.php +50 -0
- package/pto/yaamp/web/yaamp/modules/site/earning_results.php +74 -0
- package/pto/yaamp/web/yaamp/modules/site/emptymarkets.php +34 -0
- package/pto/yaamp/web/yaamp/modules/site/eval.php +22 -0
- package/pto/yaamp/web/yaamp/modules/site/exchange.php +50 -0
- package/pto/yaamp/web/yaamp/modules/site/exchange_results.php +183 -0
- package/pto/yaamp/web/yaamp/modules/site/index.php +154 -0
- package/pto/yaamp/web/yaamp/modules/site/memcached.php +56 -0
- package/pto/yaamp/web/yaamp/modules/site/miners.php +88 -0
- package/pto/yaamp/web/yaamp/modules/site/mining.php +235 -0
- package/pto/yaamp/web/yaamp/modules/site/monsters.php +129 -0
- package/pto/yaamp/web/yaamp/modules/site/multialgo.php +84 -0
- package/pto/yaamp/web/yaamp/modules/site/payments.php +50 -0
- package/pto/yaamp/web/yaamp/modules/site/payments_results.php +56 -0
- package/pto/yaamp/web/yaamp/modules/site/results/current_results.php +158 -0
- package/pto/yaamp/web/yaamp/modules/site/results/found_results.php +94 -0
- package/pto/yaamp/web/yaamp/modules/site/results/graph_assets_results.php +58 -0
- package/pto/yaamp/web/yaamp/modules/site/results/graph_earnings_results.php +47 -0
- package/pto/yaamp/web/yaamp/modules/site/results/graph_hashrate_results.php +68 -0
- package/pto/yaamp/web/yaamp/modules/site/results/graph_negative_results.php +36 -0
- package/pto/yaamp/web/yaamp/modules/site/results/graph_price_results.php +68 -0
- package/pto/yaamp/web/yaamp/modules/site/results/graph_profit_results.php +25 -0
- package/pto/yaamp/web/yaamp/modules/site/results/graph_user_results.php +81 -0
- package/pto/yaamp/web/yaamp/modules/site/results/history_results.php +156 -0
- package/pto/yaamp/web/yaamp/modules/site/results/miners_results.php +126 -0
- package/pto/yaamp/web/yaamp/modules/site/results/mining_results.php +216 -0
- package/pto/yaamp/web/yaamp/modules/site/results/user_earning_results.php +92 -0
- package/pto/yaamp/web/yaamp/modules/site/results/wallet_graphs_results.php +33 -0
- package/pto/yaamp/web/yaamp/modules/site/results/wallet_miners_results.php +117 -0
- package/pto/yaamp/web/yaamp/modules/site/results/wallet_results.php +263 -0
- package/pto/yaamp/web/yaamp/modules/site/terms.php +392 -0
- package/pto/yaamp/web/yaamp/modules/site/tx.php +64 -0
- package/pto/yaamp/web/yaamp/modules/site/user.php +80 -0
- package/pto/yaamp/web/yaamp/modules/site/user_results.php +136 -0
- package/pto/yaamp/web/yaamp/modules/site/version.php +50 -0
- package/pto/yaamp/web/yaamp/modules/site/version_results.php +48 -0
- package/pto/yaamp/web/yaamp/modules/site/wallet.php +390 -0
- package/pto/yaamp/web/yaamp/modules/site/worker.php +50 -0
- package/pto/yaamp/web/yaamp/modules/site/worker_results.php +55 -0
- package/pto/yaamp/web/yaamp/modules/stats/StatsController.php +65 -0
- package/pto/yaamp/web/yaamp/modules/stats/graph_results_1.php +20 -0
- package/pto/yaamp/web/yaamp/modules/stats/graph_results_2.php +19 -0
- package/pto/yaamp/web/yaamp/modules/stats/graph_results_3.php +20 -0
- package/pto/yaamp/web/yaamp/modules/stats/graph_results_4.php +34 -0
- package/pto/yaamp/web/yaamp/modules/stats/graph_results_5.php +33 -0
- package/pto/yaamp/web/yaamp/modules/stats/graph_results_6.php +40 -0
- package/pto/yaamp/web/yaamp/modules/stats/graph_results_7.php +34 -0
- package/pto/yaamp/web/yaamp/modules/stats/graph_results_8.php +33 -0
- package/pto/yaamp/web/yaamp/modules/stats/graph_results_9.php +44 -0
- package/pto/yaamp/web/yaamp/modules/stats/index.php +502 -0
- package/pto/yaamp/web/yaamp/modules/thread/CronjobController.php +196 -0
- package/pto/yaamp/web/yaamp/modules/trading/TradingController.php +59 -0
- package/pto/yaamp/web/yaamp/modules/trading/index.php +270 -0
- package/pto/yaamp/web/yaamp/modules/trading/mining_results.php +245 -0
- package/pto/yaamp/web/yaamp/ui/app.php +8 -0
- package/pto/yaamp/web/yaamp/ui/css/editor.css +34 -0
- package/pto/yaamp/web/yaamp/ui/css/indicator.gif +0 -0
- package/pto/yaamp/web/yaamp/ui/css/jquery-ui-fixes.css +26 -0
- package/pto/yaamp/web/yaamp/ui/css/list.css +78 -0
- package/pto/yaamp/web/yaamp/ui/css/main.css +225 -0
- package/pto/yaamp/web/yaamp/ui/css/news.css +82 -0
- package/pto/yaamp/web/yaamp/ui/css/objectmenu.css +27 -0
- package/pto/yaamp/web/yaamp/ui/css/poll.css +194 -0
- package/pto/yaamp/web/yaamp/ui/css/table.css +124 -0
- package/pto/yaamp/web/yaamp/ui/css/tags.css +97 -0
- package/pto/yaamp/web/yaamp/ui/css/uni-form-generic.css +25 -0
- package/pto/yaamp/web/yaamp/ui/css/uni-form.css +94 -0
- package/pto/yaamp/web/yaamp/ui/js/auto_refresh.js +33 -0
- package/pto/yaamp/web/yaamp/ui/js/cookies.js +45 -0
- package/pto/yaamp/web/yaamp/ui/js/datetime.js +126 -0
- package/pto/yaamp/web/yaamp/ui/js/jquery.bgiframe.js +44 -0
- package/pto/yaamp/web/yaamp/ui/js/jquery.dialogextend.js +589 -0
- package/pto/yaamp/web/yaamp/ui/js/jquery.tablesorter.js +1031 -0
- package/pto/yaamp/web/yaamp/ui/js/jquery.yii.js +45 -0
- package/pto/yaamp/web/yaamp/ui/js/swfobject.js +780 -0
- package/pto/yaamp/web/yaamp/ui/js/texteditor.js +54 -0
- package/pto/yaamp/web/yaamp/ui/js/uni-form.jquery.js +38 -0
- package/pto/yaamp/web/yaamp/ui/js/util.js +108 -0
- package/pto/yaamp/web/yaamp/ui/lib/lib.php +4 -0
- package/pto/yaamp/web/yaamp/ui/lib/libview.php +59 -0
- package/pto/yaamp/web/yaamp/ui/lib/pageheader.php +26 -0
- package/pto/yaamp/web/yaamp/ui/main.php +131 -0
- package/pto/yaamp/web/yaamp/ui/misc.php +41 -0
- package/pto/yaamp/yaamp.sql +3098 -0
|
@@ -0,0 +1,965 @@
|
|
|
1
|
+
/* $Id: bmw.c 227 2010-06-16 17:28:38Z tp $ */
|
|
2
|
+
/*
|
|
3
|
+
* BMW implementation.
|
|
4
|
+
*
|
|
5
|
+
* ==========================(LICENSE BEGIN)============================
|
|
6
|
+
*
|
|
7
|
+
* Copyright (c) 2007-2010 Projet RNRT SAPHIR
|
|
8
|
+
*
|
|
9
|
+
* Permission is hereby granted, free of charge, to any person obtaining
|
|
10
|
+
* a copy of this software and associated documentation files (the
|
|
11
|
+
* "Software"), to deal in the Software without restriction, including
|
|
12
|
+
* without limitation the rights to use, copy, modify, merge, publish,
|
|
13
|
+
* distribute, sublicense, and/or sell copies of the Software, and to
|
|
14
|
+
* permit persons to whom the Software is furnished to do so, subject to
|
|
15
|
+
* the following conditions:
|
|
16
|
+
*
|
|
17
|
+
* The above copyright notice and this permission notice shall be
|
|
18
|
+
* included in all copies or substantial portions of the Software.
|
|
19
|
+
*
|
|
20
|
+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
|
21
|
+
* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
|
22
|
+
* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
|
|
23
|
+
* IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
|
|
24
|
+
* CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
|
|
25
|
+
* TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
|
|
26
|
+
* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
27
|
+
*
|
|
28
|
+
* ===========================(LICENSE END)=============================
|
|
29
|
+
*
|
|
30
|
+
* @author Thomas Pornin <thomas.pornin@cryptolog.com>
|
|
31
|
+
*/
|
|
32
|
+
|
|
33
|
+
#include <stddef.h>
|
|
34
|
+
#include <string.h>
|
|
35
|
+
#include <limits.h>
|
|
36
|
+
|
|
37
|
+
#ifdef __cplusplus
|
|
38
|
+
extern "C"{
|
|
39
|
+
#endif
|
|
40
|
+
|
|
41
|
+
#include "sph_bmw.h"
|
|
42
|
+
|
|
43
|
+
#if SPH_SMALL_FOOTPRINT && !defined SPH_SMALL_FOOTPRINT_BMW
|
|
44
|
+
#define SPH_SMALL_FOOTPRINT_BMW 1
|
|
45
|
+
#endif
|
|
46
|
+
|
|
47
|
+
#ifdef _MSC_VER
|
|
48
|
+
#pragma warning (disable: 4146)
|
|
49
|
+
#endif
|
|
50
|
+
|
|
51
|
+
static const sph_u32 IV224[] = {
|
|
52
|
+
SPH_C32(0x00010203), SPH_C32(0x04050607),
|
|
53
|
+
SPH_C32(0x08090A0B), SPH_C32(0x0C0D0E0F),
|
|
54
|
+
SPH_C32(0x10111213), SPH_C32(0x14151617),
|
|
55
|
+
SPH_C32(0x18191A1B), SPH_C32(0x1C1D1E1F),
|
|
56
|
+
SPH_C32(0x20212223), SPH_C32(0x24252627),
|
|
57
|
+
SPH_C32(0x28292A2B), SPH_C32(0x2C2D2E2F),
|
|
58
|
+
SPH_C32(0x30313233), SPH_C32(0x34353637),
|
|
59
|
+
SPH_C32(0x38393A3B), SPH_C32(0x3C3D3E3F)
|
|
60
|
+
};
|
|
61
|
+
|
|
62
|
+
static const sph_u32 IV256[] = {
|
|
63
|
+
SPH_C32(0x40414243), SPH_C32(0x44454647),
|
|
64
|
+
SPH_C32(0x48494A4B), SPH_C32(0x4C4D4E4F),
|
|
65
|
+
SPH_C32(0x50515253), SPH_C32(0x54555657),
|
|
66
|
+
SPH_C32(0x58595A5B), SPH_C32(0x5C5D5E5F),
|
|
67
|
+
SPH_C32(0x60616263), SPH_C32(0x64656667),
|
|
68
|
+
SPH_C32(0x68696A6B), SPH_C32(0x6C6D6E6F),
|
|
69
|
+
SPH_C32(0x70717273), SPH_C32(0x74757677),
|
|
70
|
+
SPH_C32(0x78797A7B), SPH_C32(0x7C7D7E7F)
|
|
71
|
+
};
|
|
72
|
+
|
|
73
|
+
#if SPH_64
|
|
74
|
+
|
|
75
|
+
static const sph_u64 IV384[] = {
|
|
76
|
+
SPH_C64(0x0001020304050607), SPH_C64(0x08090A0B0C0D0E0F),
|
|
77
|
+
SPH_C64(0x1011121314151617), SPH_C64(0x18191A1B1C1D1E1F),
|
|
78
|
+
SPH_C64(0x2021222324252627), SPH_C64(0x28292A2B2C2D2E2F),
|
|
79
|
+
SPH_C64(0x3031323334353637), SPH_C64(0x38393A3B3C3D3E3F),
|
|
80
|
+
SPH_C64(0x4041424344454647), SPH_C64(0x48494A4B4C4D4E4F),
|
|
81
|
+
SPH_C64(0x5051525354555657), SPH_C64(0x58595A5B5C5D5E5F),
|
|
82
|
+
SPH_C64(0x6061626364656667), SPH_C64(0x68696A6B6C6D6E6F),
|
|
83
|
+
SPH_C64(0x7071727374757677), SPH_C64(0x78797A7B7C7D7E7F)
|
|
84
|
+
};
|
|
85
|
+
|
|
86
|
+
static const sph_u64 IV512[] = {
|
|
87
|
+
SPH_C64(0x8081828384858687), SPH_C64(0x88898A8B8C8D8E8F),
|
|
88
|
+
SPH_C64(0x9091929394959697), SPH_C64(0x98999A9B9C9D9E9F),
|
|
89
|
+
SPH_C64(0xA0A1A2A3A4A5A6A7), SPH_C64(0xA8A9AAABACADAEAF),
|
|
90
|
+
SPH_C64(0xB0B1B2B3B4B5B6B7), SPH_C64(0xB8B9BABBBCBDBEBF),
|
|
91
|
+
SPH_C64(0xC0C1C2C3C4C5C6C7), SPH_C64(0xC8C9CACBCCCDCECF),
|
|
92
|
+
SPH_C64(0xD0D1D2D3D4D5D6D7), SPH_C64(0xD8D9DADBDCDDDEDF),
|
|
93
|
+
SPH_C64(0xE0E1E2E3E4E5E6E7), SPH_C64(0xE8E9EAEBECEDEEEF),
|
|
94
|
+
SPH_C64(0xF0F1F2F3F4F5F6F7), SPH_C64(0xF8F9FAFBFCFDFEFF)
|
|
95
|
+
};
|
|
96
|
+
|
|
97
|
+
#endif
|
|
98
|
+
|
|
99
|
+
#define XCAT(x, y) XCAT_(x, y)
|
|
100
|
+
#define XCAT_(x, y) x ## y
|
|
101
|
+
|
|
102
|
+
#define LPAR (
|
|
103
|
+
|
|
104
|
+
#define I16_16 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15
|
|
105
|
+
#define I16_17 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16
|
|
106
|
+
#define I16_18 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17
|
|
107
|
+
#define I16_19 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18
|
|
108
|
+
#define I16_20 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19
|
|
109
|
+
#define I16_21 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20
|
|
110
|
+
#define I16_22 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21
|
|
111
|
+
#define I16_23 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22
|
|
112
|
+
#define I16_24 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23
|
|
113
|
+
#define I16_25 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24
|
|
114
|
+
#define I16_26 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25
|
|
115
|
+
#define I16_27 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26
|
|
116
|
+
#define I16_28 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27
|
|
117
|
+
#define I16_29 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28
|
|
118
|
+
#define I16_30 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29
|
|
119
|
+
#define I16_31 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30
|
|
120
|
+
|
|
121
|
+
#define M16_16 0, 1, 3, 4, 7, 10, 11
|
|
122
|
+
#define M16_17 1, 2, 4, 5, 8, 11, 12
|
|
123
|
+
#define M16_18 2, 3, 5, 6, 9, 12, 13
|
|
124
|
+
#define M16_19 3, 4, 6, 7, 10, 13, 14
|
|
125
|
+
#define M16_20 4, 5, 7, 8, 11, 14, 15
|
|
126
|
+
#define M16_21 5, 6, 8, 9, 12, 15, 16
|
|
127
|
+
#define M16_22 6, 7, 9, 10, 13, 0, 1
|
|
128
|
+
#define M16_23 7, 8, 10, 11, 14, 1, 2
|
|
129
|
+
#define M16_24 8, 9, 11, 12, 15, 2, 3
|
|
130
|
+
#define M16_25 9, 10, 12, 13, 0, 3, 4
|
|
131
|
+
#define M16_26 10, 11, 13, 14, 1, 4, 5
|
|
132
|
+
#define M16_27 11, 12, 14, 15, 2, 5, 6
|
|
133
|
+
#define M16_28 12, 13, 15, 16, 3, 6, 7
|
|
134
|
+
#define M16_29 13, 14, 0, 1, 4, 7, 8
|
|
135
|
+
#define M16_30 14, 15, 1, 2, 5, 8, 9
|
|
136
|
+
#define M16_31 15, 16, 2, 3, 6, 9, 10
|
|
137
|
+
|
|
138
|
+
#define ss0(x) (((x) >> 1) ^ SPH_T32((x) << 3) \
|
|
139
|
+
^ SPH_ROTL32(x, 4) ^ SPH_ROTL32(x, 19))
|
|
140
|
+
#define ss1(x) (((x) >> 1) ^ SPH_T32((x) << 2) \
|
|
141
|
+
^ SPH_ROTL32(x, 8) ^ SPH_ROTL32(x, 23))
|
|
142
|
+
#define ss2(x) (((x) >> 2) ^ SPH_T32((x) << 1) \
|
|
143
|
+
^ SPH_ROTL32(x, 12) ^ SPH_ROTL32(x, 25))
|
|
144
|
+
#define ss3(x) (((x) >> 2) ^ SPH_T32((x) << 2) \
|
|
145
|
+
^ SPH_ROTL32(x, 15) ^ SPH_ROTL32(x, 29))
|
|
146
|
+
#define ss4(x) (((x) >> 1) ^ (x))
|
|
147
|
+
#define ss5(x) (((x) >> 2) ^ (x))
|
|
148
|
+
#define rs1(x) SPH_ROTL32(x, 3)
|
|
149
|
+
#define rs2(x) SPH_ROTL32(x, 7)
|
|
150
|
+
#define rs3(x) SPH_ROTL32(x, 13)
|
|
151
|
+
#define rs4(x) SPH_ROTL32(x, 16)
|
|
152
|
+
#define rs5(x) SPH_ROTL32(x, 19)
|
|
153
|
+
#define rs6(x) SPH_ROTL32(x, 23)
|
|
154
|
+
#define rs7(x) SPH_ROTL32(x, 27)
|
|
155
|
+
|
|
156
|
+
#define Ks(j) SPH_T32((sph_u32)(j) * SPH_C32(0x05555555))
|
|
157
|
+
|
|
158
|
+
#define add_elt_s(mf, hf, j0m, j1m, j3m, j4m, j7m, j10m, j11m, j16) \
|
|
159
|
+
(SPH_T32(SPH_ROTL32(mf(j0m), j1m) + SPH_ROTL32(mf(j3m), j4m) \
|
|
160
|
+
- SPH_ROTL32(mf(j10m), j11m) + Ks(j16)) ^ hf(j7m))
|
|
161
|
+
|
|
162
|
+
#define expand1s_inner(qf, mf, hf, i16, \
|
|
163
|
+
i0, i1, i2, i3, i4, i5, i6, i7, i8, \
|
|
164
|
+
i9, i10, i11, i12, i13, i14, i15, \
|
|
165
|
+
i0m, i1m, i3m, i4m, i7m, i10m, i11m) \
|
|
166
|
+
SPH_T32(ss1(qf(i0)) + ss2(qf(i1)) + ss3(qf(i2)) + ss0(qf(i3)) \
|
|
167
|
+
+ ss1(qf(i4)) + ss2(qf(i5)) + ss3(qf(i6)) + ss0(qf(i7)) \
|
|
168
|
+
+ ss1(qf(i8)) + ss2(qf(i9)) + ss3(qf(i10)) + ss0(qf(i11)) \
|
|
169
|
+
+ ss1(qf(i12)) + ss2(qf(i13)) + ss3(qf(i14)) + ss0(qf(i15)) \
|
|
170
|
+
+ add_elt_s(mf, hf, i0m, i1m, i3m, i4m, i7m, i10m, i11m, i16))
|
|
171
|
+
|
|
172
|
+
#define expand1s(qf, mf, hf, i16) \
|
|
173
|
+
expand1s_(qf, mf, hf, i16, I16_ ## i16, M16_ ## i16)
|
|
174
|
+
#define expand1s_(qf, mf, hf, i16, ix, iy) \
|
|
175
|
+
expand1s_inner LPAR qf, mf, hf, i16, ix, iy)
|
|
176
|
+
|
|
177
|
+
#define expand2s_inner(qf, mf, hf, i16, \
|
|
178
|
+
i0, i1, i2, i3, i4, i5, i6, i7, i8, \
|
|
179
|
+
i9, i10, i11, i12, i13, i14, i15, \
|
|
180
|
+
i0m, i1m, i3m, i4m, i7m, i10m, i11m) \
|
|
181
|
+
SPH_T32(qf(i0) + rs1(qf(i1)) + qf(i2) + rs2(qf(i3)) \
|
|
182
|
+
+ qf(i4) + rs3(qf(i5)) + qf(i6) + rs4(qf(i7)) \
|
|
183
|
+
+ qf(i8) + rs5(qf(i9)) + qf(i10) + rs6(qf(i11)) \
|
|
184
|
+
+ qf(i12) + rs7(qf(i13)) + ss4(qf(i14)) + ss5(qf(i15)) \
|
|
185
|
+
+ add_elt_s(mf, hf, i0m, i1m, i3m, i4m, i7m, i10m, i11m, i16))
|
|
186
|
+
|
|
187
|
+
#define expand2s(qf, mf, hf, i16) \
|
|
188
|
+
expand2s_(qf, mf, hf, i16, I16_ ## i16, M16_ ## i16)
|
|
189
|
+
#define expand2s_(qf, mf, hf, i16, ix, iy) \
|
|
190
|
+
expand2s_inner LPAR qf, mf, hf, i16, ix, iy)
|
|
191
|
+
|
|
192
|
+
#if SPH_64
|
|
193
|
+
|
|
194
|
+
#define sb0(x) (((x) >> 1) ^ SPH_T64((x) << 3) \
|
|
195
|
+
^ SPH_ROTL64(x, 4) ^ SPH_ROTL64(x, 37))
|
|
196
|
+
#define sb1(x) (((x) >> 1) ^ SPH_T64((x) << 2) \
|
|
197
|
+
^ SPH_ROTL64(x, 13) ^ SPH_ROTL64(x, 43))
|
|
198
|
+
#define sb2(x) (((x) >> 2) ^ SPH_T64((x) << 1) \
|
|
199
|
+
^ SPH_ROTL64(x, 19) ^ SPH_ROTL64(x, 53))
|
|
200
|
+
#define sb3(x) (((x) >> 2) ^ SPH_T64((x) << 2) \
|
|
201
|
+
^ SPH_ROTL64(x, 28) ^ SPH_ROTL64(x, 59))
|
|
202
|
+
#define sb4(x) (((x) >> 1) ^ (x))
|
|
203
|
+
#define sb5(x) (((x) >> 2) ^ (x))
|
|
204
|
+
#define rb1(x) SPH_ROTL64(x, 5)
|
|
205
|
+
#define rb2(x) SPH_ROTL64(x, 11)
|
|
206
|
+
#define rb3(x) SPH_ROTL64(x, 27)
|
|
207
|
+
#define rb4(x) SPH_ROTL64(x, 32)
|
|
208
|
+
#define rb5(x) SPH_ROTL64(x, 37)
|
|
209
|
+
#define rb6(x) SPH_ROTL64(x, 43)
|
|
210
|
+
#define rb7(x) SPH_ROTL64(x, 53)
|
|
211
|
+
|
|
212
|
+
#define Kb(j) SPH_T64((sph_u64)(j) * SPH_C64(0x0555555555555555))
|
|
213
|
+
|
|
214
|
+
#if SPH_SMALL_FOOTPRINT_BMW
|
|
215
|
+
|
|
216
|
+
static const sph_u64 Kb_tab[] = {
|
|
217
|
+
Kb(16), Kb(17), Kb(18), Kb(19), Kb(20), Kb(21), Kb(22), Kb(23),
|
|
218
|
+
Kb(24), Kb(25), Kb(26), Kb(27), Kb(28), Kb(29), Kb(30), Kb(31)
|
|
219
|
+
};
|
|
220
|
+
|
|
221
|
+
#define rol_off(mf, j, off) \
|
|
222
|
+
SPH_ROTL64(mf(((j) + (off)) & 15), (((j) + (off)) & 15) + 1)
|
|
223
|
+
|
|
224
|
+
#define add_elt_b(mf, hf, j) \
|
|
225
|
+
(SPH_T64(rol_off(mf, j, 0) + rol_off(mf, j, 3) \
|
|
226
|
+
- rol_off(mf, j, 10) + Kb_tab[j]) ^ hf(((j) + 7) & 15))
|
|
227
|
+
|
|
228
|
+
#define expand1b(qf, mf, hf, i) \
|
|
229
|
+
SPH_T64(sb1(qf((i) - 16)) + sb2(qf((i) - 15)) \
|
|
230
|
+
+ sb3(qf((i) - 14)) + sb0(qf((i) - 13)) \
|
|
231
|
+
+ sb1(qf((i) - 12)) + sb2(qf((i) - 11)) \
|
|
232
|
+
+ sb3(qf((i) - 10)) + sb0(qf((i) - 9)) \
|
|
233
|
+
+ sb1(qf((i) - 8)) + sb2(qf((i) - 7)) \
|
|
234
|
+
+ sb3(qf((i) - 6)) + sb0(qf((i) - 5)) \
|
|
235
|
+
+ sb1(qf((i) - 4)) + sb2(qf((i) - 3)) \
|
|
236
|
+
+ sb3(qf((i) - 2)) + sb0(qf((i) - 1)) \
|
|
237
|
+
+ add_elt_b(mf, hf, (i) - 16))
|
|
238
|
+
|
|
239
|
+
#define expand2b(qf, mf, hf, i) \
|
|
240
|
+
SPH_T64(qf((i) - 16) + rb1(qf((i) - 15)) \
|
|
241
|
+
+ qf((i) - 14) + rb2(qf((i) - 13)) \
|
|
242
|
+
+ qf((i) - 12) + rb3(qf((i) - 11)) \
|
|
243
|
+
+ qf((i) - 10) + rb4(qf((i) - 9)) \
|
|
244
|
+
+ qf((i) - 8) + rb5(qf((i) - 7)) \
|
|
245
|
+
+ qf((i) - 6) + rb6(qf((i) - 5)) \
|
|
246
|
+
+ qf((i) - 4) + rb7(qf((i) - 3)) \
|
|
247
|
+
+ sb4(qf((i) - 2)) + sb5(qf((i) - 1)) \
|
|
248
|
+
+ add_elt_b(mf, hf, (i) - 16))
|
|
249
|
+
|
|
250
|
+
#else
|
|
251
|
+
|
|
252
|
+
#define add_elt_b(mf, hf, j0m, j1m, j3m, j4m, j7m, j10m, j11m, j16) \
|
|
253
|
+
(SPH_T64(SPH_ROTL64(mf(j0m), j1m) + SPH_ROTL64(mf(j3m), j4m) \
|
|
254
|
+
- SPH_ROTL64(mf(j10m), j11m) + Kb(j16)) ^ hf(j7m))
|
|
255
|
+
|
|
256
|
+
#define expand1b_inner(qf, mf, hf, i16, \
|
|
257
|
+
i0, i1, i2, i3, i4, i5, i6, i7, i8, \
|
|
258
|
+
i9, i10, i11, i12, i13, i14, i15, \
|
|
259
|
+
i0m, i1m, i3m, i4m, i7m, i10m, i11m) \
|
|
260
|
+
SPH_T64(sb1(qf(i0)) + sb2(qf(i1)) + sb3(qf(i2)) + sb0(qf(i3)) \
|
|
261
|
+
+ sb1(qf(i4)) + sb2(qf(i5)) + sb3(qf(i6)) + sb0(qf(i7)) \
|
|
262
|
+
+ sb1(qf(i8)) + sb2(qf(i9)) + sb3(qf(i10)) + sb0(qf(i11)) \
|
|
263
|
+
+ sb1(qf(i12)) + sb2(qf(i13)) + sb3(qf(i14)) + sb0(qf(i15)) \
|
|
264
|
+
+ add_elt_b(mf, hf, i0m, i1m, i3m, i4m, i7m, i10m, i11m, i16))
|
|
265
|
+
|
|
266
|
+
#define expand1b(qf, mf, hf, i16) \
|
|
267
|
+
expand1b_(qf, mf, hf, i16, I16_ ## i16, M16_ ## i16)
|
|
268
|
+
#define expand1b_(qf, mf, hf, i16, ix, iy) \
|
|
269
|
+
expand1b_inner LPAR qf, mf, hf, i16, ix, iy)
|
|
270
|
+
|
|
271
|
+
#define expand2b_inner(qf, mf, hf, i16, \
|
|
272
|
+
i0, i1, i2, i3, i4, i5, i6, i7, i8, \
|
|
273
|
+
i9, i10, i11, i12, i13, i14, i15, \
|
|
274
|
+
i0m, i1m, i3m, i4m, i7m, i10m, i11m) \
|
|
275
|
+
SPH_T64(qf(i0) + rb1(qf(i1)) + qf(i2) + rb2(qf(i3)) \
|
|
276
|
+
+ qf(i4) + rb3(qf(i5)) + qf(i6) + rb4(qf(i7)) \
|
|
277
|
+
+ qf(i8) + rb5(qf(i9)) + qf(i10) + rb6(qf(i11)) \
|
|
278
|
+
+ qf(i12) + rb7(qf(i13)) + sb4(qf(i14)) + sb5(qf(i15)) \
|
|
279
|
+
+ add_elt_b(mf, hf, i0m, i1m, i3m, i4m, i7m, i10m, i11m, i16))
|
|
280
|
+
|
|
281
|
+
#define expand2b(qf, mf, hf, i16) \
|
|
282
|
+
expand2b_(qf, mf, hf, i16, I16_ ## i16, M16_ ## i16)
|
|
283
|
+
#define expand2b_(qf, mf, hf, i16, ix, iy) \
|
|
284
|
+
expand2b_inner LPAR qf, mf, hf, i16, ix, iy)
|
|
285
|
+
|
|
286
|
+
#endif
|
|
287
|
+
|
|
288
|
+
#endif
|
|
289
|
+
|
|
290
|
+
#define MAKE_W(tt, i0, op01, i1, op12, i2, op23, i3, op34, i4) \
|
|
291
|
+
tt((M(i0) ^ H(i0)) op01 (M(i1) ^ H(i1)) op12 (M(i2) ^ H(i2)) \
|
|
292
|
+
op23 (M(i3) ^ H(i3)) op34 (M(i4) ^ H(i4)))
|
|
293
|
+
|
|
294
|
+
#define Ws0 MAKE_W(SPH_T32, 5, -, 7, +, 10, +, 13, +, 14)
|
|
295
|
+
#define Ws1 MAKE_W(SPH_T32, 6, -, 8, +, 11, +, 14, -, 15)
|
|
296
|
+
#define Ws2 MAKE_W(SPH_T32, 0, +, 7, +, 9, -, 12, +, 15)
|
|
297
|
+
#define Ws3 MAKE_W(SPH_T32, 0, -, 1, +, 8, -, 10, +, 13)
|
|
298
|
+
#define Ws4 MAKE_W(SPH_T32, 1, +, 2, +, 9, -, 11, -, 14)
|
|
299
|
+
#define Ws5 MAKE_W(SPH_T32, 3, -, 2, +, 10, -, 12, +, 15)
|
|
300
|
+
#define Ws6 MAKE_W(SPH_T32, 4, -, 0, -, 3, -, 11, +, 13)
|
|
301
|
+
#define Ws7 MAKE_W(SPH_T32, 1, -, 4, -, 5, -, 12, -, 14)
|
|
302
|
+
#define Ws8 MAKE_W(SPH_T32, 2, -, 5, -, 6, +, 13, -, 15)
|
|
303
|
+
#define Ws9 MAKE_W(SPH_T32, 0, -, 3, +, 6, -, 7, +, 14)
|
|
304
|
+
#define Ws10 MAKE_W(SPH_T32, 8, -, 1, -, 4, -, 7, +, 15)
|
|
305
|
+
#define Ws11 MAKE_W(SPH_T32, 8, -, 0, -, 2, -, 5, +, 9)
|
|
306
|
+
#define Ws12 MAKE_W(SPH_T32, 1, +, 3, -, 6, -, 9, +, 10)
|
|
307
|
+
#define Ws13 MAKE_W(SPH_T32, 2, +, 4, +, 7, +, 10, +, 11)
|
|
308
|
+
#define Ws14 MAKE_W(SPH_T32, 3, -, 5, +, 8, -, 11, -, 12)
|
|
309
|
+
#define Ws15 MAKE_W(SPH_T32, 12, -, 4, -, 6, -, 9, +, 13)
|
|
310
|
+
|
|
311
|
+
#if SPH_SMALL_FOOTPRINT_BMW
|
|
312
|
+
|
|
313
|
+
#define MAKE_Qas do { \
|
|
314
|
+
unsigned u; \
|
|
315
|
+
sph_u32 Ws[16]; \
|
|
316
|
+
Ws[ 0] = Ws0; \
|
|
317
|
+
Ws[ 1] = Ws1; \
|
|
318
|
+
Ws[ 2] = Ws2; \
|
|
319
|
+
Ws[ 3] = Ws3; \
|
|
320
|
+
Ws[ 4] = Ws4; \
|
|
321
|
+
Ws[ 5] = Ws5; \
|
|
322
|
+
Ws[ 6] = Ws6; \
|
|
323
|
+
Ws[ 7] = Ws7; \
|
|
324
|
+
Ws[ 8] = Ws8; \
|
|
325
|
+
Ws[ 9] = Ws9; \
|
|
326
|
+
Ws[10] = Ws10; \
|
|
327
|
+
Ws[11] = Ws11; \
|
|
328
|
+
Ws[12] = Ws12; \
|
|
329
|
+
Ws[13] = Ws13; \
|
|
330
|
+
Ws[14] = Ws14; \
|
|
331
|
+
Ws[15] = Ws15; \
|
|
332
|
+
for (u = 0; u < 15; u += 5) { \
|
|
333
|
+
qt[u + 0] = SPH_T32(ss0(Ws[u + 0]) + H(u + 1)); \
|
|
334
|
+
qt[u + 1] = SPH_T32(ss1(Ws[u + 1]) + H(u + 2)); \
|
|
335
|
+
qt[u + 2] = SPH_T32(ss2(Ws[u + 2]) + H(u + 3)); \
|
|
336
|
+
qt[u + 3] = SPH_T32(ss3(Ws[u + 3]) + H(u + 4)); \
|
|
337
|
+
qt[u + 4] = SPH_T32(ss4(Ws[u + 4]) + H(u + 5)); \
|
|
338
|
+
} \
|
|
339
|
+
qt[15] = SPH_T32(ss0(Ws[15]) + H(0)); \
|
|
340
|
+
} while (0)
|
|
341
|
+
|
|
342
|
+
#define MAKE_Qbs do { \
|
|
343
|
+
qt[16] = expand1s(Qs, M, H, 16); \
|
|
344
|
+
qt[17] = expand1s(Qs, M, H, 17); \
|
|
345
|
+
qt[18] = expand2s(Qs, M, H, 18); \
|
|
346
|
+
qt[19] = expand2s(Qs, M, H, 19); \
|
|
347
|
+
qt[20] = expand2s(Qs, M, H, 20); \
|
|
348
|
+
qt[21] = expand2s(Qs, M, H, 21); \
|
|
349
|
+
qt[22] = expand2s(Qs, M, H, 22); \
|
|
350
|
+
qt[23] = expand2s(Qs, M, H, 23); \
|
|
351
|
+
qt[24] = expand2s(Qs, M, H, 24); \
|
|
352
|
+
qt[25] = expand2s(Qs, M, H, 25); \
|
|
353
|
+
qt[26] = expand2s(Qs, M, H, 26); \
|
|
354
|
+
qt[27] = expand2s(Qs, M, H, 27); \
|
|
355
|
+
qt[28] = expand2s(Qs, M, H, 28); \
|
|
356
|
+
qt[29] = expand2s(Qs, M, H, 29); \
|
|
357
|
+
qt[30] = expand2s(Qs, M, H, 30); \
|
|
358
|
+
qt[31] = expand2s(Qs, M, H, 31); \
|
|
359
|
+
} while (0)
|
|
360
|
+
|
|
361
|
+
#else
|
|
362
|
+
|
|
363
|
+
#define MAKE_Qas do { \
|
|
364
|
+
qt[ 0] = SPH_T32(ss0(Ws0 ) + H( 1)); \
|
|
365
|
+
qt[ 1] = SPH_T32(ss1(Ws1 ) + H( 2)); \
|
|
366
|
+
qt[ 2] = SPH_T32(ss2(Ws2 ) + H( 3)); \
|
|
367
|
+
qt[ 3] = SPH_T32(ss3(Ws3 ) + H( 4)); \
|
|
368
|
+
qt[ 4] = SPH_T32(ss4(Ws4 ) + H( 5)); \
|
|
369
|
+
qt[ 5] = SPH_T32(ss0(Ws5 ) + H( 6)); \
|
|
370
|
+
qt[ 6] = SPH_T32(ss1(Ws6 ) + H( 7)); \
|
|
371
|
+
qt[ 7] = SPH_T32(ss2(Ws7 ) + H( 8)); \
|
|
372
|
+
qt[ 8] = SPH_T32(ss3(Ws8 ) + H( 9)); \
|
|
373
|
+
qt[ 9] = SPH_T32(ss4(Ws9 ) + H(10)); \
|
|
374
|
+
qt[10] = SPH_T32(ss0(Ws10) + H(11)); \
|
|
375
|
+
qt[11] = SPH_T32(ss1(Ws11) + H(12)); \
|
|
376
|
+
qt[12] = SPH_T32(ss2(Ws12) + H(13)); \
|
|
377
|
+
qt[13] = SPH_T32(ss3(Ws13) + H(14)); \
|
|
378
|
+
qt[14] = SPH_T32(ss4(Ws14) + H(15)); \
|
|
379
|
+
qt[15] = SPH_T32(ss0(Ws15) + H( 0)); \
|
|
380
|
+
} while (0)
|
|
381
|
+
|
|
382
|
+
#define MAKE_Qbs do { \
|
|
383
|
+
qt[16] = expand1s(Qs, M, H, 16); \
|
|
384
|
+
qt[17] = expand1s(Qs, M, H, 17); \
|
|
385
|
+
qt[18] = expand2s(Qs, M, H, 18); \
|
|
386
|
+
qt[19] = expand2s(Qs, M, H, 19); \
|
|
387
|
+
qt[20] = expand2s(Qs, M, H, 20); \
|
|
388
|
+
qt[21] = expand2s(Qs, M, H, 21); \
|
|
389
|
+
qt[22] = expand2s(Qs, M, H, 22); \
|
|
390
|
+
qt[23] = expand2s(Qs, M, H, 23); \
|
|
391
|
+
qt[24] = expand2s(Qs, M, H, 24); \
|
|
392
|
+
qt[25] = expand2s(Qs, M, H, 25); \
|
|
393
|
+
qt[26] = expand2s(Qs, M, H, 26); \
|
|
394
|
+
qt[27] = expand2s(Qs, M, H, 27); \
|
|
395
|
+
qt[28] = expand2s(Qs, M, H, 28); \
|
|
396
|
+
qt[29] = expand2s(Qs, M, H, 29); \
|
|
397
|
+
qt[30] = expand2s(Qs, M, H, 30); \
|
|
398
|
+
qt[31] = expand2s(Qs, M, H, 31); \
|
|
399
|
+
} while (0)
|
|
400
|
+
|
|
401
|
+
#endif
|
|
402
|
+
|
|
403
|
+
#define MAKE_Qs do { \
|
|
404
|
+
MAKE_Qas; \
|
|
405
|
+
MAKE_Qbs; \
|
|
406
|
+
} while (0)
|
|
407
|
+
|
|
408
|
+
#define Qs(j) (qt[j])
|
|
409
|
+
|
|
410
|
+
#if SPH_64
|
|
411
|
+
|
|
412
|
+
#define Wb0 MAKE_W(SPH_T64, 5, -, 7, +, 10, +, 13, +, 14)
|
|
413
|
+
#define Wb1 MAKE_W(SPH_T64, 6, -, 8, +, 11, +, 14, -, 15)
|
|
414
|
+
#define Wb2 MAKE_W(SPH_T64, 0, +, 7, +, 9, -, 12, +, 15)
|
|
415
|
+
#define Wb3 MAKE_W(SPH_T64, 0, -, 1, +, 8, -, 10, +, 13)
|
|
416
|
+
#define Wb4 MAKE_W(SPH_T64, 1, +, 2, +, 9, -, 11, -, 14)
|
|
417
|
+
#define Wb5 MAKE_W(SPH_T64, 3, -, 2, +, 10, -, 12, +, 15)
|
|
418
|
+
#define Wb6 MAKE_W(SPH_T64, 4, -, 0, -, 3, -, 11, +, 13)
|
|
419
|
+
#define Wb7 MAKE_W(SPH_T64, 1, -, 4, -, 5, -, 12, -, 14)
|
|
420
|
+
#define Wb8 MAKE_W(SPH_T64, 2, -, 5, -, 6, +, 13, -, 15)
|
|
421
|
+
#define Wb9 MAKE_W(SPH_T64, 0, -, 3, +, 6, -, 7, +, 14)
|
|
422
|
+
#define Wb10 MAKE_W(SPH_T64, 8, -, 1, -, 4, -, 7, +, 15)
|
|
423
|
+
#define Wb11 MAKE_W(SPH_T64, 8, -, 0, -, 2, -, 5, +, 9)
|
|
424
|
+
#define Wb12 MAKE_W(SPH_T64, 1, +, 3, -, 6, -, 9, +, 10)
|
|
425
|
+
#define Wb13 MAKE_W(SPH_T64, 2, +, 4, +, 7, +, 10, +, 11)
|
|
426
|
+
#define Wb14 MAKE_W(SPH_T64, 3, -, 5, +, 8, -, 11, -, 12)
|
|
427
|
+
#define Wb15 MAKE_W(SPH_T64, 12, -, 4, -, 6, -, 9, +, 13)
|
|
428
|
+
|
|
429
|
+
#if SPH_SMALL_FOOTPRINT_BMW
|
|
430
|
+
|
|
431
|
+
#define MAKE_Qab do { \
|
|
432
|
+
unsigned u; \
|
|
433
|
+
sph_u64 Wb[16]; \
|
|
434
|
+
Wb[ 0] = Wb0; \
|
|
435
|
+
Wb[ 1] = Wb1; \
|
|
436
|
+
Wb[ 2] = Wb2; \
|
|
437
|
+
Wb[ 3] = Wb3; \
|
|
438
|
+
Wb[ 4] = Wb4; \
|
|
439
|
+
Wb[ 5] = Wb5; \
|
|
440
|
+
Wb[ 6] = Wb6; \
|
|
441
|
+
Wb[ 7] = Wb7; \
|
|
442
|
+
Wb[ 8] = Wb8; \
|
|
443
|
+
Wb[ 9] = Wb9; \
|
|
444
|
+
Wb[10] = Wb10; \
|
|
445
|
+
Wb[11] = Wb11; \
|
|
446
|
+
Wb[12] = Wb12; \
|
|
447
|
+
Wb[13] = Wb13; \
|
|
448
|
+
Wb[14] = Wb14; \
|
|
449
|
+
Wb[15] = Wb15; \
|
|
450
|
+
for (u = 0; u < 15; u += 5) { \
|
|
451
|
+
qt[u + 0] = SPH_T64(sb0(Wb[u + 0]) + H(u + 1)); \
|
|
452
|
+
qt[u + 1] = SPH_T64(sb1(Wb[u + 1]) + H(u + 2)); \
|
|
453
|
+
qt[u + 2] = SPH_T64(sb2(Wb[u + 2]) + H(u + 3)); \
|
|
454
|
+
qt[u + 3] = SPH_T64(sb3(Wb[u + 3]) + H(u + 4)); \
|
|
455
|
+
qt[u + 4] = SPH_T64(sb4(Wb[u + 4]) + H(u + 5)); \
|
|
456
|
+
} \
|
|
457
|
+
qt[15] = SPH_T64(sb0(Wb[15]) + H(0)); \
|
|
458
|
+
} while (0)
|
|
459
|
+
|
|
460
|
+
#define MAKE_Qbb do { \
|
|
461
|
+
unsigned u; \
|
|
462
|
+
for (u = 16; u < 18; u ++) \
|
|
463
|
+
qt[u] = expand1b(Qb, M, H, u); \
|
|
464
|
+
for (u = 18; u < 32; u ++) \
|
|
465
|
+
qt[u] = expand2b(Qb, M, H, u); \
|
|
466
|
+
} while (0)
|
|
467
|
+
|
|
468
|
+
#else
|
|
469
|
+
|
|
470
|
+
#define MAKE_Qab do { \
|
|
471
|
+
qt[ 0] = SPH_T64(sb0(Wb0 ) + H( 1)); \
|
|
472
|
+
qt[ 1] = SPH_T64(sb1(Wb1 ) + H( 2)); \
|
|
473
|
+
qt[ 2] = SPH_T64(sb2(Wb2 ) + H( 3)); \
|
|
474
|
+
qt[ 3] = SPH_T64(sb3(Wb3 ) + H( 4)); \
|
|
475
|
+
qt[ 4] = SPH_T64(sb4(Wb4 ) + H( 5)); \
|
|
476
|
+
qt[ 5] = SPH_T64(sb0(Wb5 ) + H( 6)); \
|
|
477
|
+
qt[ 6] = SPH_T64(sb1(Wb6 ) + H( 7)); \
|
|
478
|
+
qt[ 7] = SPH_T64(sb2(Wb7 ) + H( 8)); \
|
|
479
|
+
qt[ 8] = SPH_T64(sb3(Wb8 ) + H( 9)); \
|
|
480
|
+
qt[ 9] = SPH_T64(sb4(Wb9 ) + H(10)); \
|
|
481
|
+
qt[10] = SPH_T64(sb0(Wb10) + H(11)); \
|
|
482
|
+
qt[11] = SPH_T64(sb1(Wb11) + H(12)); \
|
|
483
|
+
qt[12] = SPH_T64(sb2(Wb12) + H(13)); \
|
|
484
|
+
qt[13] = SPH_T64(sb3(Wb13) + H(14)); \
|
|
485
|
+
qt[14] = SPH_T64(sb4(Wb14) + H(15)); \
|
|
486
|
+
qt[15] = SPH_T64(sb0(Wb15) + H( 0)); \
|
|
487
|
+
} while (0)
|
|
488
|
+
|
|
489
|
+
#define MAKE_Qbb do { \
|
|
490
|
+
qt[16] = expand1b(Qb, M, H, 16); \
|
|
491
|
+
qt[17] = expand1b(Qb, M, H, 17); \
|
|
492
|
+
qt[18] = expand2b(Qb, M, H, 18); \
|
|
493
|
+
qt[19] = expand2b(Qb, M, H, 19); \
|
|
494
|
+
qt[20] = expand2b(Qb, M, H, 20); \
|
|
495
|
+
qt[21] = expand2b(Qb, M, H, 21); \
|
|
496
|
+
qt[22] = expand2b(Qb, M, H, 22); \
|
|
497
|
+
qt[23] = expand2b(Qb, M, H, 23); \
|
|
498
|
+
qt[24] = expand2b(Qb, M, H, 24); \
|
|
499
|
+
qt[25] = expand2b(Qb, M, H, 25); \
|
|
500
|
+
qt[26] = expand2b(Qb, M, H, 26); \
|
|
501
|
+
qt[27] = expand2b(Qb, M, H, 27); \
|
|
502
|
+
qt[28] = expand2b(Qb, M, H, 28); \
|
|
503
|
+
qt[29] = expand2b(Qb, M, H, 29); \
|
|
504
|
+
qt[30] = expand2b(Qb, M, H, 30); \
|
|
505
|
+
qt[31] = expand2b(Qb, M, H, 31); \
|
|
506
|
+
} while (0)
|
|
507
|
+
|
|
508
|
+
#endif
|
|
509
|
+
|
|
510
|
+
#define MAKE_Qb do { \
|
|
511
|
+
MAKE_Qab; \
|
|
512
|
+
MAKE_Qbb; \
|
|
513
|
+
} while (0)
|
|
514
|
+
|
|
515
|
+
#define Qb(j) (qt[j])
|
|
516
|
+
|
|
517
|
+
#endif
|
|
518
|
+
|
|
519
|
+
#define FOLD(type, mkQ, tt, rol, mf, qf, dhf) do { \
|
|
520
|
+
type qt[32], xl, xh; \
|
|
521
|
+
mkQ; \
|
|
522
|
+
xl = qf(16) ^ qf(17) ^ qf(18) ^ qf(19) \
|
|
523
|
+
^ qf(20) ^ qf(21) ^ qf(22) ^ qf(23); \
|
|
524
|
+
xh = xl ^ qf(24) ^ qf(25) ^ qf(26) ^ qf(27) \
|
|
525
|
+
^ qf(28) ^ qf(29) ^ qf(30) ^ qf(31); \
|
|
526
|
+
dhf( 0) = tt(((xh << 5) ^ (qf(16) >> 5) ^ mf( 0)) \
|
|
527
|
+
+ (xl ^ qf(24) ^ qf( 0))); \
|
|
528
|
+
dhf( 1) = tt(((xh >> 7) ^ (qf(17) << 8) ^ mf( 1)) \
|
|
529
|
+
+ (xl ^ qf(25) ^ qf( 1))); \
|
|
530
|
+
dhf( 2) = tt(((xh >> 5) ^ (qf(18) << 5) ^ mf( 2)) \
|
|
531
|
+
+ (xl ^ qf(26) ^ qf( 2))); \
|
|
532
|
+
dhf( 3) = tt(((xh >> 1) ^ (qf(19) << 5) ^ mf( 3)) \
|
|
533
|
+
+ (xl ^ qf(27) ^ qf( 3))); \
|
|
534
|
+
dhf( 4) = tt(((xh >> 3) ^ (qf(20) << 0) ^ mf( 4)) \
|
|
535
|
+
+ (xl ^ qf(28) ^ qf( 4))); \
|
|
536
|
+
dhf( 5) = tt(((xh << 6) ^ (qf(21) >> 6) ^ mf( 5)) \
|
|
537
|
+
+ (xl ^ qf(29) ^ qf( 5))); \
|
|
538
|
+
dhf( 6) = tt(((xh >> 4) ^ (qf(22) << 6) ^ mf( 6)) \
|
|
539
|
+
+ (xl ^ qf(30) ^ qf( 6))); \
|
|
540
|
+
dhf( 7) = tt(((xh >> 11) ^ (qf(23) << 2) ^ mf( 7)) \
|
|
541
|
+
+ (xl ^ qf(31) ^ qf( 7))); \
|
|
542
|
+
dhf( 8) = tt(rol(dhf(4), 9) + (xh ^ qf(24) ^ mf( 8)) \
|
|
543
|
+
+ ((xl << 8) ^ qf(23) ^ qf( 8))); \
|
|
544
|
+
dhf( 9) = tt(rol(dhf(5), 10) + (xh ^ qf(25) ^ mf( 9)) \
|
|
545
|
+
+ ((xl >> 6) ^ qf(16) ^ qf( 9))); \
|
|
546
|
+
dhf(10) = tt(rol(dhf(6), 11) + (xh ^ qf(26) ^ mf(10)) \
|
|
547
|
+
+ ((xl << 6) ^ qf(17) ^ qf(10))); \
|
|
548
|
+
dhf(11) = tt(rol(dhf(7), 12) + (xh ^ qf(27) ^ mf(11)) \
|
|
549
|
+
+ ((xl << 4) ^ qf(18) ^ qf(11))); \
|
|
550
|
+
dhf(12) = tt(rol(dhf(0), 13) + (xh ^ qf(28) ^ mf(12)) \
|
|
551
|
+
+ ((xl >> 3) ^ qf(19) ^ qf(12))); \
|
|
552
|
+
dhf(13) = tt(rol(dhf(1), 14) + (xh ^ qf(29) ^ mf(13)) \
|
|
553
|
+
+ ((xl >> 4) ^ qf(20) ^ qf(13))); \
|
|
554
|
+
dhf(14) = tt(rol(dhf(2), 15) + (xh ^ qf(30) ^ mf(14)) \
|
|
555
|
+
+ ((xl >> 7) ^ qf(21) ^ qf(14))); \
|
|
556
|
+
dhf(15) = tt(rol(dhf(3), 16) + (xh ^ qf(31) ^ mf(15)) \
|
|
557
|
+
+ ((xl >> 2) ^ qf(22) ^ qf(15))); \
|
|
558
|
+
} while (0)
|
|
559
|
+
|
|
560
|
+
#define FOLDs FOLD(sph_u32, MAKE_Qs, SPH_T32, SPH_ROTL32, M, Qs, dH)
|
|
561
|
+
|
|
562
|
+
#if SPH_64
|
|
563
|
+
|
|
564
|
+
#define FOLDb FOLD(sph_u64, MAKE_Qb, SPH_T64, SPH_ROTL64, M, Qb, dH)
|
|
565
|
+
|
|
566
|
+
#endif
|
|
567
|
+
|
|
568
|
+
static void
|
|
569
|
+
compress_small(const unsigned char *data, const sph_u32 h[16], sph_u32 dh[16])
|
|
570
|
+
{
|
|
571
|
+
#if SPH_LITTLE_FAST
|
|
572
|
+
#define M(x) sph_dec32le_aligned(data + 4 * (x))
|
|
573
|
+
#else
|
|
574
|
+
sph_u32 mv[16];
|
|
575
|
+
|
|
576
|
+
mv[ 0] = sph_dec32le_aligned(data + 0);
|
|
577
|
+
mv[ 1] = sph_dec32le_aligned(data + 4);
|
|
578
|
+
mv[ 2] = sph_dec32le_aligned(data + 8);
|
|
579
|
+
mv[ 3] = sph_dec32le_aligned(data + 12);
|
|
580
|
+
mv[ 4] = sph_dec32le_aligned(data + 16);
|
|
581
|
+
mv[ 5] = sph_dec32le_aligned(data + 20);
|
|
582
|
+
mv[ 6] = sph_dec32le_aligned(data + 24);
|
|
583
|
+
mv[ 7] = sph_dec32le_aligned(data + 28);
|
|
584
|
+
mv[ 8] = sph_dec32le_aligned(data + 32);
|
|
585
|
+
mv[ 9] = sph_dec32le_aligned(data + 36);
|
|
586
|
+
mv[10] = sph_dec32le_aligned(data + 40);
|
|
587
|
+
mv[11] = sph_dec32le_aligned(data + 44);
|
|
588
|
+
mv[12] = sph_dec32le_aligned(data + 48);
|
|
589
|
+
mv[13] = sph_dec32le_aligned(data + 52);
|
|
590
|
+
mv[14] = sph_dec32le_aligned(data + 56);
|
|
591
|
+
mv[15] = sph_dec32le_aligned(data + 60);
|
|
592
|
+
#define M(x) (mv[x])
|
|
593
|
+
#endif
|
|
594
|
+
#define H(x) (h[x])
|
|
595
|
+
#define dH(x) (dh[x])
|
|
596
|
+
|
|
597
|
+
FOLDs;
|
|
598
|
+
|
|
599
|
+
#undef M
|
|
600
|
+
#undef H
|
|
601
|
+
#undef dH
|
|
602
|
+
}
|
|
603
|
+
|
|
604
|
+
static const sph_u32 final_s[16] = {
|
|
605
|
+
SPH_C32(0xaaaaaaa0), SPH_C32(0xaaaaaaa1), SPH_C32(0xaaaaaaa2),
|
|
606
|
+
SPH_C32(0xaaaaaaa3), SPH_C32(0xaaaaaaa4), SPH_C32(0xaaaaaaa5),
|
|
607
|
+
SPH_C32(0xaaaaaaa6), SPH_C32(0xaaaaaaa7), SPH_C32(0xaaaaaaa8),
|
|
608
|
+
SPH_C32(0xaaaaaaa9), SPH_C32(0xaaaaaaaa), SPH_C32(0xaaaaaaab),
|
|
609
|
+
SPH_C32(0xaaaaaaac), SPH_C32(0xaaaaaaad), SPH_C32(0xaaaaaaae),
|
|
610
|
+
SPH_C32(0xaaaaaaaf)
|
|
611
|
+
};
|
|
612
|
+
|
|
613
|
+
static void
|
|
614
|
+
bmw32_init(sph_bmw_small_context *sc, const sph_u32 *iv)
|
|
615
|
+
{
|
|
616
|
+
memcpy(sc->H, iv, sizeof sc->H);
|
|
617
|
+
sc->ptr = 0;
|
|
618
|
+
#if SPH_64
|
|
619
|
+
sc->bit_count = 0;
|
|
620
|
+
#else
|
|
621
|
+
sc->bit_count_high = 0;
|
|
622
|
+
sc->bit_count_low = 0;
|
|
623
|
+
#endif
|
|
624
|
+
}
|
|
625
|
+
|
|
626
|
+
static void
|
|
627
|
+
bmw32(sph_bmw_small_context *sc, const void *data, size_t len)
|
|
628
|
+
{
|
|
629
|
+
unsigned char *buf;
|
|
630
|
+
size_t ptr;
|
|
631
|
+
sph_u32 htmp[16];
|
|
632
|
+
sph_u32 *h1, *h2;
|
|
633
|
+
#if !SPH_64
|
|
634
|
+
sph_u32 tmp;
|
|
635
|
+
#endif
|
|
636
|
+
|
|
637
|
+
#if SPH_64
|
|
638
|
+
sc->bit_count += (sph_u64)len << 3;
|
|
639
|
+
#else
|
|
640
|
+
tmp = sc->bit_count_low;
|
|
641
|
+
sc->bit_count_low = SPH_T32(tmp + ((sph_u32)len << 3));
|
|
642
|
+
if (sc->bit_count_low < tmp)
|
|
643
|
+
sc->bit_count_high ++;
|
|
644
|
+
sc->bit_count_high += len >> 29;
|
|
645
|
+
#endif
|
|
646
|
+
buf = sc->buf;
|
|
647
|
+
ptr = sc->ptr;
|
|
648
|
+
h1 = sc->H;
|
|
649
|
+
h2 = htmp;
|
|
650
|
+
while (len > 0) {
|
|
651
|
+
size_t clen;
|
|
652
|
+
|
|
653
|
+
clen = (sizeof sc->buf) - ptr;
|
|
654
|
+
if (clen > len)
|
|
655
|
+
clen = len;
|
|
656
|
+
memcpy(buf + ptr, data, clen);
|
|
657
|
+
data = (const unsigned char *)data + clen;
|
|
658
|
+
len -= clen;
|
|
659
|
+
ptr += clen;
|
|
660
|
+
if (ptr == sizeof sc->buf) {
|
|
661
|
+
sph_u32 *ht;
|
|
662
|
+
|
|
663
|
+
compress_small(buf, h1, h2);
|
|
664
|
+
ht = h1;
|
|
665
|
+
h1 = h2;
|
|
666
|
+
h2 = ht;
|
|
667
|
+
ptr = 0;
|
|
668
|
+
}
|
|
669
|
+
}
|
|
670
|
+
sc->ptr = ptr;
|
|
671
|
+
if (h1 != sc->H)
|
|
672
|
+
memcpy(sc->H, h1, sizeof sc->H);
|
|
673
|
+
}
|
|
674
|
+
|
|
675
|
+
static void
|
|
676
|
+
bmw32_close(sph_bmw_small_context *sc, unsigned ub, unsigned n,
|
|
677
|
+
void *dst, size_t out_size_w32)
|
|
678
|
+
{
|
|
679
|
+
unsigned char *buf, *out;
|
|
680
|
+
size_t ptr, u, v;
|
|
681
|
+
unsigned z;
|
|
682
|
+
sph_u32 h1[16], h2[16], *h;
|
|
683
|
+
|
|
684
|
+
buf = sc->buf;
|
|
685
|
+
ptr = sc->ptr;
|
|
686
|
+
z = 0x80 >> n;
|
|
687
|
+
buf[ptr ++] = ((ub & -z) | z) & 0xFF;
|
|
688
|
+
h = sc->H;
|
|
689
|
+
if (ptr > (sizeof sc->buf) - 8) {
|
|
690
|
+
memset(buf + ptr, 0, (sizeof sc->buf) - ptr);
|
|
691
|
+
compress_small(buf, h, h1);
|
|
692
|
+
ptr = 0;
|
|
693
|
+
h = h1;
|
|
694
|
+
}
|
|
695
|
+
memset(buf + ptr, 0, (sizeof sc->buf) - 8 - ptr);
|
|
696
|
+
#if SPH_64
|
|
697
|
+
sph_enc64le_aligned(buf + (sizeof sc->buf) - 8,
|
|
698
|
+
SPH_T64(sc->bit_count + n));
|
|
699
|
+
#else
|
|
700
|
+
sph_enc32le_aligned(buf + (sizeof sc->buf) - 8,
|
|
701
|
+
sc->bit_count_low + n);
|
|
702
|
+
sph_enc32le_aligned(buf + (sizeof sc->buf) - 4,
|
|
703
|
+
SPH_T32(sc->bit_count_high));
|
|
704
|
+
#endif
|
|
705
|
+
compress_small(buf, h, h2);
|
|
706
|
+
for (u = 0; u < 16; u ++)
|
|
707
|
+
sph_enc32le_aligned(buf + 4 * u, h2[u]);
|
|
708
|
+
compress_small(buf, final_s, h1);
|
|
709
|
+
out = dst;
|
|
710
|
+
for (u = 0, v = 16 - out_size_w32; u < out_size_w32; u ++, v ++)
|
|
711
|
+
sph_enc32le(out + 4 * u, h1[v]);
|
|
712
|
+
}
|
|
713
|
+
|
|
714
|
+
#if SPH_64
|
|
715
|
+
|
|
716
|
+
static void
|
|
717
|
+
compress_big(const unsigned char *data, const sph_u64 h[16], sph_u64 dh[16])
|
|
718
|
+
{
|
|
719
|
+
#if SPH_LITTLE_FAST
|
|
720
|
+
#define M(x) sph_dec64le_aligned(data + 8 * (x))
|
|
721
|
+
#else
|
|
722
|
+
sph_u64 mv[16];
|
|
723
|
+
|
|
724
|
+
mv[ 0] = sph_dec64le_aligned(data + 0);
|
|
725
|
+
mv[ 1] = sph_dec64le_aligned(data + 8);
|
|
726
|
+
mv[ 2] = sph_dec64le_aligned(data + 16);
|
|
727
|
+
mv[ 3] = sph_dec64le_aligned(data + 24);
|
|
728
|
+
mv[ 4] = sph_dec64le_aligned(data + 32);
|
|
729
|
+
mv[ 5] = sph_dec64le_aligned(data + 40);
|
|
730
|
+
mv[ 6] = sph_dec64le_aligned(data + 48);
|
|
731
|
+
mv[ 7] = sph_dec64le_aligned(data + 56);
|
|
732
|
+
mv[ 8] = sph_dec64le_aligned(data + 64);
|
|
733
|
+
mv[ 9] = sph_dec64le_aligned(data + 72);
|
|
734
|
+
mv[10] = sph_dec64le_aligned(data + 80);
|
|
735
|
+
mv[11] = sph_dec64le_aligned(data + 88);
|
|
736
|
+
mv[12] = sph_dec64le_aligned(data + 96);
|
|
737
|
+
mv[13] = sph_dec64le_aligned(data + 104);
|
|
738
|
+
mv[14] = sph_dec64le_aligned(data + 112);
|
|
739
|
+
mv[15] = sph_dec64le_aligned(data + 120);
|
|
740
|
+
#define M(x) (mv[x])
|
|
741
|
+
#endif
|
|
742
|
+
#define H(x) (h[x])
|
|
743
|
+
#define dH(x) (dh[x])
|
|
744
|
+
|
|
745
|
+
FOLDb;
|
|
746
|
+
|
|
747
|
+
#undef M
|
|
748
|
+
#undef H
|
|
749
|
+
#undef dH
|
|
750
|
+
}
|
|
751
|
+
|
|
752
|
+
static const sph_u64 final_b[16] = {
|
|
753
|
+
SPH_C64(0xaaaaaaaaaaaaaaa0), SPH_C64(0xaaaaaaaaaaaaaaa1),
|
|
754
|
+
SPH_C64(0xaaaaaaaaaaaaaaa2), SPH_C64(0xaaaaaaaaaaaaaaa3),
|
|
755
|
+
SPH_C64(0xaaaaaaaaaaaaaaa4), SPH_C64(0xaaaaaaaaaaaaaaa5),
|
|
756
|
+
SPH_C64(0xaaaaaaaaaaaaaaa6), SPH_C64(0xaaaaaaaaaaaaaaa7),
|
|
757
|
+
SPH_C64(0xaaaaaaaaaaaaaaa8), SPH_C64(0xaaaaaaaaaaaaaaa9),
|
|
758
|
+
SPH_C64(0xaaaaaaaaaaaaaaaa), SPH_C64(0xaaaaaaaaaaaaaaab),
|
|
759
|
+
SPH_C64(0xaaaaaaaaaaaaaaac), SPH_C64(0xaaaaaaaaaaaaaaad),
|
|
760
|
+
SPH_C64(0xaaaaaaaaaaaaaaae), SPH_C64(0xaaaaaaaaaaaaaaaf)
|
|
761
|
+
};
|
|
762
|
+
|
|
763
|
+
static void
|
|
764
|
+
bmw64_init(sph_bmw_big_context *sc, const sph_u64 *iv)
|
|
765
|
+
{
|
|
766
|
+
memcpy(sc->H, iv, sizeof sc->H);
|
|
767
|
+
sc->ptr = 0;
|
|
768
|
+
sc->bit_count = 0;
|
|
769
|
+
}
|
|
770
|
+
|
|
771
|
+
static void
|
|
772
|
+
bmw64(sph_bmw_big_context *sc, const void *data, size_t len)
|
|
773
|
+
{
|
|
774
|
+
unsigned char *buf;
|
|
775
|
+
size_t ptr;
|
|
776
|
+
sph_u64 htmp[16];
|
|
777
|
+
sph_u64 *h1, *h2;
|
|
778
|
+
|
|
779
|
+
sc->bit_count += (sph_u64)len << 3;
|
|
780
|
+
buf = sc->buf;
|
|
781
|
+
ptr = sc->ptr;
|
|
782
|
+
h1 = sc->H;
|
|
783
|
+
h2 = htmp;
|
|
784
|
+
while (len > 0) {
|
|
785
|
+
size_t clen;
|
|
786
|
+
|
|
787
|
+
clen = (sizeof sc->buf) - ptr;
|
|
788
|
+
if (clen > len)
|
|
789
|
+
clen = len;
|
|
790
|
+
memcpy(buf + ptr, data, clen);
|
|
791
|
+
data = (const unsigned char *)data + clen;
|
|
792
|
+
len -= clen;
|
|
793
|
+
ptr += clen;
|
|
794
|
+
if (ptr == sizeof sc->buf) {
|
|
795
|
+
sph_u64 *ht;
|
|
796
|
+
|
|
797
|
+
compress_big(buf, h1, h2);
|
|
798
|
+
ht = h1;
|
|
799
|
+
h1 = h2;
|
|
800
|
+
h2 = ht;
|
|
801
|
+
ptr = 0;
|
|
802
|
+
}
|
|
803
|
+
}
|
|
804
|
+
sc->ptr = ptr;
|
|
805
|
+
if (h1 != sc->H)
|
|
806
|
+
memcpy(sc->H, h1, sizeof sc->H);
|
|
807
|
+
}
|
|
808
|
+
|
|
809
|
+
static void
|
|
810
|
+
bmw64_close(sph_bmw_big_context *sc, unsigned ub, unsigned n,
|
|
811
|
+
void *dst, size_t out_size_w64)
|
|
812
|
+
{
|
|
813
|
+
unsigned char *buf, *out;
|
|
814
|
+
size_t ptr, u, v;
|
|
815
|
+
unsigned z;
|
|
816
|
+
sph_u64 h1[16], h2[16], *h;
|
|
817
|
+
|
|
818
|
+
buf = sc->buf;
|
|
819
|
+
ptr = sc->ptr;
|
|
820
|
+
z = 0x80 >> n;
|
|
821
|
+
buf[ptr ++] = ((ub & -z) | z) & 0xFF;
|
|
822
|
+
h = sc->H;
|
|
823
|
+
if (ptr > (sizeof sc->buf) - 8) {
|
|
824
|
+
memset(buf + ptr, 0, (sizeof sc->buf) - ptr);
|
|
825
|
+
compress_big(buf, h, h1);
|
|
826
|
+
ptr = 0;
|
|
827
|
+
h = h1;
|
|
828
|
+
}
|
|
829
|
+
memset(buf + ptr, 0, (sizeof sc->buf) - 8 - ptr);
|
|
830
|
+
sph_enc64le_aligned(buf + (sizeof sc->buf) - 8,
|
|
831
|
+
SPH_T64(sc->bit_count + n));
|
|
832
|
+
compress_big(buf, h, h2);
|
|
833
|
+
for (u = 0; u < 16; u ++)
|
|
834
|
+
sph_enc64le_aligned(buf + 8 * u, h2[u]);
|
|
835
|
+
compress_big(buf, final_b, h1);
|
|
836
|
+
out = dst;
|
|
837
|
+
for (u = 0, v = 16 - out_size_w64; u < out_size_w64; u ++, v ++)
|
|
838
|
+
sph_enc64le(out + 8 * u, h1[v]);
|
|
839
|
+
}
|
|
840
|
+
|
|
841
|
+
#endif
|
|
842
|
+
|
|
843
|
+
/* see sph_bmw.h */
|
|
844
|
+
void
|
|
845
|
+
sph_bmw224_init(void *cc)
|
|
846
|
+
{
|
|
847
|
+
bmw32_init(cc, IV224);
|
|
848
|
+
}
|
|
849
|
+
|
|
850
|
+
/* see sph_bmw.h */
|
|
851
|
+
void
|
|
852
|
+
sph_bmw224(void *cc, const void *data, size_t len)
|
|
853
|
+
{
|
|
854
|
+
bmw32(cc, data, len);
|
|
855
|
+
}
|
|
856
|
+
|
|
857
|
+
/* see sph_bmw.h */
|
|
858
|
+
void
|
|
859
|
+
sph_bmw224_close(void *cc, void *dst)
|
|
860
|
+
{
|
|
861
|
+
sph_bmw224_addbits_and_close(cc, 0, 0, dst);
|
|
862
|
+
}
|
|
863
|
+
|
|
864
|
+
/* see sph_bmw.h */
|
|
865
|
+
void
|
|
866
|
+
sph_bmw224_addbits_and_close(void *cc, unsigned ub, unsigned n, void *dst)
|
|
867
|
+
{
|
|
868
|
+
bmw32_close(cc, ub, n, dst, 7);
|
|
869
|
+
sph_bmw224_init(cc);
|
|
870
|
+
}
|
|
871
|
+
|
|
872
|
+
/* see sph_bmw.h */
|
|
873
|
+
void
|
|
874
|
+
sph_bmw256_init(void *cc)
|
|
875
|
+
{
|
|
876
|
+
bmw32_init(cc, IV256);
|
|
877
|
+
}
|
|
878
|
+
|
|
879
|
+
/* see sph_bmw.h */
|
|
880
|
+
void
|
|
881
|
+
sph_bmw256(void *cc, const void *data, size_t len)
|
|
882
|
+
{
|
|
883
|
+
bmw32(cc, data, len);
|
|
884
|
+
}
|
|
885
|
+
|
|
886
|
+
/* see sph_bmw.h */
|
|
887
|
+
void
|
|
888
|
+
sph_bmw256_close(void *cc, void *dst)
|
|
889
|
+
{
|
|
890
|
+
sph_bmw256_addbits_and_close(cc, 0, 0, dst);
|
|
891
|
+
}
|
|
892
|
+
|
|
893
|
+
/* see sph_bmw.h */
|
|
894
|
+
void
|
|
895
|
+
sph_bmw256_addbits_and_close(void *cc, unsigned ub, unsigned n, void *dst)
|
|
896
|
+
{
|
|
897
|
+
bmw32_close(cc, ub, n, dst, 8);
|
|
898
|
+
sph_bmw256_init(cc);
|
|
899
|
+
}
|
|
900
|
+
|
|
901
|
+
#if SPH_64
|
|
902
|
+
|
|
903
|
+
/* see sph_bmw.h */
|
|
904
|
+
void
|
|
905
|
+
sph_bmw384_init(void *cc)
|
|
906
|
+
{
|
|
907
|
+
bmw64_init(cc, IV384);
|
|
908
|
+
}
|
|
909
|
+
|
|
910
|
+
/* see sph_bmw.h */
|
|
911
|
+
void
|
|
912
|
+
sph_bmw384(void *cc, const void *data, size_t len)
|
|
913
|
+
{
|
|
914
|
+
bmw64(cc, data, len);
|
|
915
|
+
}
|
|
916
|
+
|
|
917
|
+
/* see sph_bmw.h */
|
|
918
|
+
void
|
|
919
|
+
sph_bmw384_close(void *cc, void *dst)
|
|
920
|
+
{
|
|
921
|
+
sph_bmw384_addbits_and_close(cc, 0, 0, dst);
|
|
922
|
+
}
|
|
923
|
+
|
|
924
|
+
/* see sph_bmw.h */
|
|
925
|
+
void
|
|
926
|
+
sph_bmw384_addbits_and_close(void *cc, unsigned ub, unsigned n, void *dst)
|
|
927
|
+
{
|
|
928
|
+
bmw64_close(cc, ub, n, dst, 6);
|
|
929
|
+
sph_bmw384_init(cc);
|
|
930
|
+
}
|
|
931
|
+
|
|
932
|
+
/* see sph_bmw.h */
|
|
933
|
+
void
|
|
934
|
+
sph_bmw512_init(void *cc)
|
|
935
|
+
{
|
|
936
|
+
bmw64_init(cc, IV512);
|
|
937
|
+
}
|
|
938
|
+
|
|
939
|
+
/* see sph_bmw.h */
|
|
940
|
+
void
|
|
941
|
+
sph_bmw512(void *cc, const void *data, size_t len)
|
|
942
|
+
{
|
|
943
|
+
bmw64(cc, data, len);
|
|
944
|
+
}
|
|
945
|
+
|
|
946
|
+
/* see sph_bmw.h */
|
|
947
|
+
void
|
|
948
|
+
sph_bmw512_close(void *cc, void *dst)
|
|
949
|
+
{
|
|
950
|
+
sph_bmw512_addbits_and_close(cc, 0, 0, dst);
|
|
951
|
+
}
|
|
952
|
+
|
|
953
|
+
/* see sph_bmw.h */
|
|
954
|
+
void
|
|
955
|
+
sph_bmw512_addbits_and_close(void *cc, unsigned ub, unsigned n, void *dst)
|
|
956
|
+
{
|
|
957
|
+
bmw64_close(cc, ub, n, dst, 8);
|
|
958
|
+
sph_bmw512_init(cc);
|
|
959
|
+
}
|
|
960
|
+
|
|
961
|
+
#endif
|
|
962
|
+
|
|
963
|
+
#ifdef __cplusplus
|
|
964
|
+
}
|
|
965
|
+
#endif
|