crypto/weakcrypto/test/tbigint/scripts/tmontgomerytests.txt
changeset 71 dd83586b62d6
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/crypto/weakcrypto/test/tbigint/scripts/tmontgomerytests.txt	Fri Jun 11 15:32:35 2010 +0300
@@ -0,0 +1,148 @@
+<action>
+	<actionname>Montgomery Multiplication Vector Test #1</actionname>
+	<actiontype>MontgomeryVector</actiontype>
+	<actionbody>
+		<a>16A0</a>
+		<b>04CD</b>
+		<modulus>011BBF</modulus>
+		<ans>011AC1</ans>
+		<op>multiply</op>
+	</actionbody>
+	<actionresult>
+		<return>KErrNone</return>
+	</actionresult>
+</action>
+<action>
+	<actionname>Montgomery Reduce Vector Test #1</actionname>
+	<actiontype>MontgomeryVector</actiontype>
+	<actionbody>
+		<a>6C9E20</a>
+		<modulus>011BBF</modulus>
+		<ans>011AC1</ans>
+		<op>reduce</op>
+	</actionbody>
+	<actionresult>
+		<return>KErrNone</return>
+	</actionresult>
+</action>
+<action>
+	<actionname>Montgomery Square Vector Test #1</actionname>
+	<actiontype>MontgomeryVector</actiontype>
+	<actionbody>
+		<a>6C9E20</a>
+		<modulus>011BBF</modulus>
+		<ans>FC04</ans>
+		<op>square</op>
+	</actionbody>
+	<actionresult>
+		<return>KErrNone</return>
+	</actionresult>
+</action>
+<action>
+	<actionname>Montgomery Exponentiation Vector Test #1</actionname>
+	<actiontype>MontgomeryVector</actiontype>
+	<actionbody>
+		<a>16A0</a>
+		<b>04CD</b>
+		<modulus>011BBF</modulus>
+		<ans>70A6</ans>
+		<op>exponentiate</op>
+	</actionbody>
+	<actionresult>
+		<return>KErrNone</return>
+	</actionresult>
+</action>
+<action>
+	<actionname>Montgomery Exponentiation Vector Test #2</actionname>
+	<actiontype>MontgomeryVector</actiontype>
+	<actionbody>
+		<a>125C881E</a>
+		<b>B009377B</b>
+		<modulus>0160126EF7</modulus>
+		<ans>0160126EF6</ans>
+		<op>exponentiate</op>
+	</actionbody>
+	<actionresult>
+		<return>KErrNone</return>
+	</actionresult>
+</action>
+<action>
+	<actionname>Montgomery Exponentiation Forward Backward test</actionname>
+	<actiontype>MontgomeryFB</actiontype>
+	<actionbody>
+		<bits>0200</bits>
+	</actionbody>
+	<actionresult>
+		<return>KErrNone</return>
+	</actionresult>
+</action>
+<action>
+	<actionname>OOM start</actionname>
+	<actiontype>startmemfailure</actiontype>
+	<actionbody></actionbody>
+	<actionresult>
+		<return>KErrNone</return>
+	</actionresult>
+</action>
+<action>
+	<actionname>Montgomery Multiplication Vector Test #1</actionname>
+	<actiontype>MontgomeryVector</actiontype>
+	<actionbody>
+		<a>16A0</a>
+		<b>04CD</b>
+		<modulus>011BBF</modulus>
+		<ans>011AC1</ans>
+		<op>multiply</op>
+	</actionbody>
+	<actionresult>
+		<return>KErrNone</return>
+	</actionresult>
+</action>
+<action>
+	<actionname>Montgomery Reduce Vector Test #1</actionname>
+	<actiontype>MontgomeryVector</actiontype>
+	<actionbody>
+		<a>6C9E20</a>
+		<modulus>011BBF</modulus>
+		<ans>011AC1</ans>
+		<op>reduce</op>
+	</actionbody>
+	<actionresult>
+		<return>KErrNone</return>
+	</actionresult>
+</action>
+<action>
+	<actionname>Montgomery Square Vector Test #1</actionname>
+	<actiontype>MontgomeryVector</actiontype>
+	<actionbody>
+		<a>6C9E20</a>
+		<modulus>011BBF</modulus>
+		<ans>FC04</ans>
+		<op>square</op>
+	</actionbody>
+	<actionresult>
+		<return>KErrNone</return>
+	</actionresult>
+</action>
+<action>
+	<actionname>Montgomery Exponentiation Vector Test #2</actionname>
+	<actiontype>MontgomeryVector</actiontype>
+	<actionbody>
+		<a>125C881E</a>
+		<b>B009377B</b>
+		<modulus>0160126EF7</modulus>
+		<ans>0160126EF6</ans>
+		<op>exponentiate</op>
+	</actionbody>
+	<actionresult>
+		<return>KErrNone</return>
+	</actionresult>
+</action>
+<action>
+	<actionname>OOM end</actionname>
+	<actiontype>stopmemfailure</actiontype>
+	<actionbody></actionbody>
+	<actionresult>
+		<return>KErrNone</return>
+	</actionresult>
+</action>