| Home >> All >> com >> ssttr >> [ crypto Javadoc ] |
com.ssttr.crypto: Javadoc index of package com.ssttr.crypto.
Package Samples:
com.ssttr.crypto
Classes:
DH: This class performs the basic essential functions for Diffie-Hellman key genereration. Specifily, given a generator (g), exponent (x), and prime modulus (m), it performs: g x mod m . Of course this could also be done just as easily with the java.math.BigInteger.modPow() method, but that class is rarely included in J2ME and embeded JVMs this can still be usefull. It is worth noting that this class has been tested to reliably work on key sizes >= 64 bits. It will often fail on a keys To generate a shared private key: Jack performs: int keySize = 128; DH dh = new DH(keySize); Random rnd = new Random(); ...
TEA: This is a 100% Pure Java implementation of the Tiny Encryption Algorithm which can be found http://vader.brad.ac.uk/tea/tea.shtml . Or at least that's where I originaly found it. It appears that it is still available here: http://www.simonshepherd.supanet.com/tea.htm . TEA is only capable of using 128 bit keys. If any other key length is desired you will have to pad or chop (as appropriate) the key to be 128 bits long. It was ported from the ANSI C new variant http://vader.brad.ac.uk/tea/source.shtml#new_ansi . As I mentioned above, that page seems to have disappeard, so here's the new equivelent: ...
MessageDigest: The MessageDigest class defines a general class for computing digest functions. It is defined as an abstract class that is subclassed by message digest algorithms. In this way the PKCS classes can be built to take a MessageDigest object without needing to know what 'kind' of message digest they are computing. This class defines the standard functions that all message digest algorithms share, and ways to put all Java fundamental types into the digest. It does not define methods for digestifying either arbitrary objects or arrays of objects however.
MD5: The MD5 class is used to compute an MD5 message digest over a given buffer of bytes. It is an implementation of the RSA Data Security Inc MD5 algorithim as described in internet RFC 1321.
MD2: The MD2 class is used to compute an MD2 message digest over a given buffer of bytes. It is an implementation of the RSA Data Security Inc MD2 algorithim as described in internet RFC 1319.
SHA1: This is a simple port of Steve Reid's SHA-1 code into Java. I've run his test vectors through the code and they all pass.
SKEncryption
| Home | Contact Us | Privacy Policy | Terms of Service |