test_support.htm 7.36 KB
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html xmlns:v="urn:schemas-microsoft-com:vml"
xmlns:o="urn:schemas-microsoft-com:office:office"
xmlns:w="urn:schemas-microsoft-com:office:word"
xmlns="http://www.w3.org/TR/REC-html40">

<head>
<meta http-equiv=Content-Type content="text/html; charset=windows-1252">
<meta name=ProgId content=Word.Document>
<meta name=Generator content="Microsoft Word 9">
<meta name=Originator content="Microsoft Word 9">
<link rel=File-List href="./test_support_files/filelist.xml">
<title>test support</title>
<!--[if gte mso 9]><xml>
 <o:DocumentProperties>
  <o:Author>pramila</o:Author>
  <o:Template>Normal</o:Template>
  <o:LastAuthor>pramila</o:LastAuthor>
  <o:Revision>2</o:Revision>
  <o:TotalTime>11626</o:TotalTime>
  <o:Created>2003-08-23T17:24:00Z</o:Created>
  <o:LastSaved>2003-08-23T17:24:00Z</o:LastSaved>
  <o:Pages>2</o:Pages>
  <o:Words>231</o:Words>
  <o:Characters>1318</o:Characters>
  <o:Company>RouteFree</o:Company>
  <o:Lines>10</o:Lines>
  <o:Paragraphs>2</o:Paragraphs>
  <o:CharactersWithSpaces>1618</o:CharactersWithSpaces>
  <o:Version>9.2720</o:Version>
 </o:DocumentProperties>
</xml><![endif]-->
<style>
<!--
 /* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
	{mso-style-parent:"";
	margin:0in;
	margin-bottom:.0001pt;
	mso-pagination:widow-orphan;
	font-size:12.0pt;
	font-family:"Times New Roman";
	mso-fareast-font-family:"Times New Roman";}
h1
	{mso-style-next:Normal;
	margin:0in;
	margin-bottom:.0001pt;
	mso-pagination:widow-orphan;
	mso-outline-level:1;
	font-size:12.0pt;
	font-family:"Times New Roman";
	mso-font-kerning:0pt;}
h3
	{mso-style-next:Normal;
	margin-top:12.0pt;
	margin-right:0in;
	margin-bottom:3.0pt;
	margin-left:0in;
	mso-pagination:widow-orphan;
	mso-outline-level:3;
	font-size:13.0pt;
	font-family:Arial;}
p.MsoPlainText, li.MsoPlainText, div.MsoPlainText
	{margin:0in;
	margin-bottom:.0001pt;
	mso-pagination:widow-orphan;
	font-size:10.0pt;
	font-family:"Courier New";
	mso-fareast-font-family:"Times New Roman";}
@page Section1
	{size:8.5in 11.0in;
	margin:1.0in 1.25in 1.0in 1.25in;
	mso-header-margin:.5in;
	mso-footer-margin:.5in;
	mso-paper-source:0;}
div.Section1
	{page:Section1;}
-->
</style>
<!--[if gte mso 9]><xml>
 <o:shapedefaults v:ext="edit" spidmax="1052"/>
</xml><![endif]--><!--[if gte mso 9]><xml>
 <o:shapelayout v:ext="edit">
  <o:idmap v:ext="edit" data="1"/>
 </o:shapelayout></xml><![endif]-->
</head>

<body lang=EN-US style='tab-interval:.5in'>

<div class=Section1>

<p class=MsoNormal>&nbsp;</p>

<h1>General Utilities for Testing</h1>

<p class=MsoNormal><![if !supportEmptyParas]>&nbsp;<![endif]><o:p></o:p></p>

<p class=MsoNormal>&nbsp;</p>

<p class=MsoNormal><b>RSALIB:<o:p></o:p></b></p>

<p class=MsoNormal>library for cert creation and general RSA functionality:</p>

<p class=MsoNormal>&nbsp;</p>

<p class=MsoNormal>&nbsp;</p>

<p class=MsoNormal><b>Utility Functions:<o:p></o:p></b></p>

<p class=MsoNormal>&nbsp;</p>

<p class=MsoNormal>(RSA )-&gt; saveKeyData() -&gt; keydata file /* takes newly
generated RSA structure to save data in file with name of server */</p>

<p class=MsoNormal>&nbsp;</p>

<p class=MsoNormal>keydata file -&gt; readKeyData() -&gt; (RSA *) /* reads in
key data to RSA structure to perform sign operation, returns name of server*/</p>

<p class=MsoNormal>&nbsp;</p>

<p class=MsoNormal>key data file, data<span style="mso-spacerun: yes">
</span>-&gt; signData() -&gt; sign<span style="mso-spacerun: yes"> </span>/*
reads in key data, data, creates RSA structure and signs */</p>

<p class=MsoNormal>&nbsp;</p>

<p class=MsoNormal>(RSA )-&gt; validate() -&gt; true or false<span
style="mso-spacerun: yes"> </span>/* reads in key data and generates random
data, signs and verifies validate key pair </p>

<p class=MsoNormal style='margin-left:2.0in;text-indent:.5in'>and verify
operation */</p>

<p class=MsoNormal>&nbsp;</p>

<p class=MsoNormal>keydata file -&gt; createCustomCert() -&gt; cert file /* for
inclusion in cert.sys or sysapp package */</p>

<p class=MsoNormal>&nbsp;</p>

<p class=MsoNormal><b>&nbsp;<o:p></o:p></b></p>

<p class=MsoNormal><b>include librsaX86 and look in lib/librsa/util.h<o:p></o:p></b></p>

<p class=MsoNormal><b><![if !supportEmptyParas]>&nbsp;<![endif]><o:p></o:p></b></p>

<p class=MsoNormal><b><![if !supportEmptyParas]>&nbsp;<![endif]><o:p></o:p></b></p>

<p class=MsoNormal><b>Certsgen:<o:p></o:p></b></p>

<p class=MsoNormal><b>&nbsp;<o:p></o:p></b></p>

<p class=MsoNormal>creates a whole set of consistent certs, signed, using
RSALIB.</p>

<p class=MsoNormal>&nbsp;</p>

<p class=MsoNormal>certsgen takes a list of subject names in order and create
certs and store everything in cert.sys.</p>

<p class=MsoNormal>The key files (with names ) are stored in .key files</p>

<p class=MsoNormal><![if !supportEmptyParas]>&nbsp;<![endif]><o:p></o:p></p>

<p class=MsoNormal>Format of cmds.txt</p>

<p class=MsoNormal><![if !supportEmptyParas]>&nbsp;<![endif]><o:p></o:p></p>

<p class=MsoNormal>root key file</p>

<p class=MsoNormal>number of chains</p>

<p class=MsoNormal>subject-name signer-name</p>

<p class=MsoNormal><![if !supportEmptyParas]>&nbsp;<![endif]><o:p></o:p></p>

<p class=MsoNormal>output is in cert.sys </p>

<p class=MsoNormal>see a checked in cmds.txt file for example.</p>

<p class=MsoNormal><![if !supportEmptyParas]>&nbsp;<![endif]><o:p></o:p></p>

<p class=MsoNormal><![if !supportEmptyParas]>&nbsp;<![endif]><o:p></o:p></p>

<p class=MsoNormal>&nbsp;</p>

<p class=MsoNormal>make keydata files save both private and public key info, so
it can be input to sysapp bundle creation, eliminate *.bin files.</p>

<p class=MsoNormal>&nbsp;</p>

<p class=MsoNormal>_________________________________________________________________________________________</p>

<p class=MsoNormal style='margin-left:.5in'>&nbsp;</p>

<p class=MsoNormal style='margin-left:.5in;text-indent:-.5in'><b>Crlgen:<o:p></o:p></b></p>

<p class=MsoNormal style='margin-left:.5in;text-indent:-.5in'><b><![if !supportEmptyParas]>&nbsp;<![endif]><o:p></o:p></b></p>

<p class=MsoNormal style='margin-left:.5in;text-indent:-.5in'>creates a crl.sys
file based on inputs from a .dat file and .key files generated from certsgen</p>

<p class=MsoNormal style='margin-left:.5in;text-indent:-.5in'><![if !supportEmptyParas]>&nbsp;<![endif]><o:p></o:p></p>

<p class=MsoNormal style='margin-left:.5in;text-indent:-.5in'>The format of
.dat file is in an example .dat file checked in tools/crls/</p>

<p class=MsoNormal style='margin-left:.5in;text-indent:-.5in'><![if !supportEmptyParas]>&nbsp;<![endif]><o:p></o:p></p>

<p class=MsoNormal style='margin-left:.5in;text-indent:-.5in'>It supports
creation of multiple crls from input .key files (from certsgen) and appends
them to crl.sys</p>

<p class=MsoNormal style='margin-left:.5in;text-indent:-.5in'><![if !supportEmptyParas]>&nbsp;<![endif]><o:p></o:p></p>

<p class=MsoNormal style='margin-left:.5in;text-indent:-.5in'><![if !supportEmptyParas]>&nbsp;<![endif]><o:p></o:p></p>

<p class=MsoNormal style='margin-left:.5in'>&nbsp;</p>

<p class=MsoNormal style='margin-left:.5in'>&nbsp;</p>

<p class=MsoNormal style='margin-left:.5in'>&nbsp;</p>

<p class=MsoNormal style='margin-left:.5in'>&nbsp;</p>

</div>

</body>

</html>