SignatureSigner
ptolemy.actor.lib.security.SignatureSigner

Sign the input data using a private key. <p>In cryptography, digital signatures can be used to verify that the data was not modified in transit. However, the data itself is passed in clear text. <p>The <i>provider</i> and <i>signatureAlgorithm</i> parameters should be set to the values used to generate the privateKey. See <a href="../../../../ptolemy/actor/lib/security/PrivateKeyReader.xml">ptolemy.actor.lib.security.PrivateKeyReader</a> and <a href="../../../../ptolemy/actor/lib/security/SignatureActor.xml">ptolemy.actor.lib.security.SignatureActor</a> for possible values. <p>The <i>provider</i> and <i>signatureAlgorithm</i> parameters should be set to the same value as the corresponding parameters in the SignatureVerifier actor. <p>Each time fire() is called, the <i>privateKey</i> is used to create a signature for each block of unsigned byte array data read from the <i>input</i> port. The signed data is passed to a SignatureVerifier actor on the <i>signature</i> port as an unsigned byte array. <p>The <i>input</i> data itself is passed to in <b>clear text</b> on the <i>output</i> port. <p>This actor relies on the Java Cryptography Architecture (JCA) and Java Cryptography Extension (JCE). See the <a href="../../../../ptolemy/actor/lib/security/CryptographyActor.xml">ptolemy.actor.lib.security.CryptographyActor</a> documentation for resources about JCA and JCE.

Author(s): Christopher Hylands Brooks, Contributor: Rakesh Reddy
Version:$Id: SignatureSigner.doc.html,v 1.1 2006/02/22 18:41:22 mangal Exp $
Pt.Proposed Rating:Yellow (cxh)
Pt.Accepted Rating:Red (cxh)


privateKey
The private key to be used by the SignatureVerifier actor to verify the data on the <i>output</i> port. The type of this input port is an ObjectToken containing a java.security.PrivateKey.
signature
The signature of the data. The type of this output port is unsigned byte array. The data is read in on the <i>input</i> port and the signature is generated on this port. The <i>output</i> port contains the data in clear text.