SecretKey
ptolemy.actor.lib.security.SecretKey

Create a secret key and send it on the <i>output</i>. <p>The secret key is a symmetric key can be used by the <a href="../../../../ptolemy/actor/lib/security/SymmetricEncryption.xml">ptolemy.actor.lib.security.SymmetricEncryption</a> and <a href="../../../../ptolemy/actor/lib/security/SymmetricDecryption.xml">ptolemy.actor.lib.security.SymmetricDecryption</a> actors. See <a href="../../../../ptolemy/actor/lib/security/SymmetricEncryption.xml">ptolemy.actor.lib.security.SymmetricEncryption</a> for a description of symmetric vs. asymmetric algorithms. <p>This key should be not be visible to users as the security of the encrypted message relies on the secrecy of this key. <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 the JCE.

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




algorithm
Specify the algorithm to be used to process data. The algorithm is specified as a string. The algorithms are limited to those implemented by providers using the Java JCE which are found on the system. The initial default is "DES".
provider
Specify a provider for the given algorithm. Takes the algorithm name as a string. The default value is "SystemDefault" which allows the system chooses the provider based on the JCE architecture.
keySize
Specify the size of the key to be created. The key size is an integer value representing the number of bits in the key. The initial default depends on the algorithm that is selected, not all algorithms use <i>keySize</i>. <p>DSA is the most common algorithm that uses <i>keySize</i>, the Sun documentation says: "The length, in bits, of the modulus p. This must range from 512 to 1024, and must be a multiple of 64. The default keysize is 1024." Refer to <a href="http://java.sun.com/j2se/1.4.2/docs/guide/security/CryptoSpec.html#AppB"><code>http://java.sun.com/j2se/1.4.2/docs/guide/security/CryptoSpec.html#AppB</code></a> for a list of possible key sizes for certain algorithms. The initial default is 1024.