1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/os/security/crypto/weakcrypto/test/tbigint/scripts/tmontgomerytests.txt Fri Jun 15 03:10:57 2012 +0200
1.3 @@ -0,0 +1,148 @@
1.4 +<action>
1.5 + <actionname>Montgomery Multiplication Vector Test #1</actionname>
1.6 + <actiontype>MontgomeryVector</actiontype>
1.7 + <actionbody>
1.8 + <a>16A0</a>
1.9 + <b>04CD</b>
1.10 + <modulus>011BBF</modulus>
1.11 + <ans>011AC1</ans>
1.12 + <op>multiply</op>
1.13 + </actionbody>
1.14 + <actionresult>
1.15 + <return>KErrNone</return>
1.16 + </actionresult>
1.17 +</action>
1.18 +<action>
1.19 + <actionname>Montgomery Reduce Vector Test #1</actionname>
1.20 + <actiontype>MontgomeryVector</actiontype>
1.21 + <actionbody>
1.22 + <a>6C9E20</a>
1.23 + <modulus>011BBF</modulus>
1.24 + <ans>011AC1</ans>
1.25 + <op>reduce</op>
1.26 + </actionbody>
1.27 + <actionresult>
1.28 + <return>KErrNone</return>
1.29 + </actionresult>
1.30 +</action>
1.31 +<action>
1.32 + <actionname>Montgomery Square Vector Test #1</actionname>
1.33 + <actiontype>MontgomeryVector</actiontype>
1.34 + <actionbody>
1.35 + <a>6C9E20</a>
1.36 + <modulus>011BBF</modulus>
1.37 + <ans>FC04</ans>
1.38 + <op>square</op>
1.39 + </actionbody>
1.40 + <actionresult>
1.41 + <return>KErrNone</return>
1.42 + </actionresult>
1.43 +</action>
1.44 +<action>
1.45 + <actionname>Montgomery Exponentiation Vector Test #1</actionname>
1.46 + <actiontype>MontgomeryVector</actiontype>
1.47 + <actionbody>
1.48 + <a>16A0</a>
1.49 + <b>04CD</b>
1.50 + <modulus>011BBF</modulus>
1.51 + <ans>70A6</ans>
1.52 + <op>exponentiate</op>
1.53 + </actionbody>
1.54 + <actionresult>
1.55 + <return>KErrNone</return>
1.56 + </actionresult>
1.57 +</action>
1.58 +<action>
1.59 + <actionname>Montgomery Exponentiation Vector Test #2</actionname>
1.60 + <actiontype>MontgomeryVector</actiontype>
1.61 + <actionbody>
1.62 + <a>125C881E</a>
1.63 + <b>B009377B</b>
1.64 + <modulus>0160126EF7</modulus>
1.65 + <ans>0160126EF6</ans>
1.66 + <op>exponentiate</op>
1.67 + </actionbody>
1.68 + <actionresult>
1.69 + <return>KErrNone</return>
1.70 + </actionresult>
1.71 +</action>
1.72 +<action>
1.73 + <actionname>Montgomery Exponentiation Forward Backward test</actionname>
1.74 + <actiontype>MontgomeryFB</actiontype>
1.75 + <actionbody>
1.76 + <bits>0200</bits>
1.77 + </actionbody>
1.78 + <actionresult>
1.79 + <return>KErrNone</return>
1.80 + </actionresult>
1.81 +</action>
1.82 +<action>
1.83 + <actionname>OOM start</actionname>
1.84 + <actiontype>startmemfailure</actiontype>
1.85 + <actionbody></actionbody>
1.86 + <actionresult>
1.87 + <return>KErrNone</return>
1.88 + </actionresult>
1.89 +</action>
1.90 +<action>
1.91 + <actionname>Montgomery Multiplication Vector Test #1</actionname>
1.92 + <actiontype>MontgomeryVector</actiontype>
1.93 + <actionbody>
1.94 + <a>16A0</a>
1.95 + <b>04CD</b>
1.96 + <modulus>011BBF</modulus>
1.97 + <ans>011AC1</ans>
1.98 + <op>multiply</op>
1.99 + </actionbody>
1.100 + <actionresult>
1.101 + <return>KErrNone</return>
1.102 + </actionresult>
1.103 +</action>
1.104 +<action>
1.105 + <actionname>Montgomery Reduce Vector Test #1</actionname>
1.106 + <actiontype>MontgomeryVector</actiontype>
1.107 + <actionbody>
1.108 + <a>6C9E20</a>
1.109 + <modulus>011BBF</modulus>
1.110 + <ans>011AC1</ans>
1.111 + <op>reduce</op>
1.112 + </actionbody>
1.113 + <actionresult>
1.114 + <return>KErrNone</return>
1.115 + </actionresult>
1.116 +</action>
1.117 +<action>
1.118 + <actionname>Montgomery Square Vector Test #1</actionname>
1.119 + <actiontype>MontgomeryVector</actiontype>
1.120 + <actionbody>
1.121 + <a>6C9E20</a>
1.122 + <modulus>011BBF</modulus>
1.123 + <ans>FC04</ans>
1.124 + <op>square</op>
1.125 + </actionbody>
1.126 + <actionresult>
1.127 + <return>KErrNone</return>
1.128 + </actionresult>
1.129 +</action>
1.130 +<action>
1.131 + <actionname>Montgomery Exponentiation Vector Test #2</actionname>
1.132 + <actiontype>MontgomeryVector</actiontype>
1.133 + <actionbody>
1.134 + <a>125C881E</a>
1.135 + <b>B009377B</b>
1.136 + <modulus>0160126EF7</modulus>
1.137 + <ans>0160126EF6</ans>
1.138 + <op>exponentiate</op>
1.139 + </actionbody>
1.140 + <actionresult>
1.141 + <return>KErrNone</return>
1.142 + </actionresult>
1.143 +</action>
1.144 +<action>
1.145 + <actionname>OOM end</actionname>
1.146 + <actiontype>stopmemfailure</actiontype>
1.147 + <actionbody></actionbody>
1.148 + <actionresult>
1.149 + <return>KErrNone</return>
1.150 + </actionresult>
1.151 +</action>