# Cipher or CipherSpi?

Rodrigo Sodre (rsodre@solar.com.br)
Sat, 07 Feb 1998 20:38:44 -0200

- Messages sorted by: [ date ][ thread ][ subject ][ author ]
- Next message: Mystic.Readings@javasoft.com: "Psychic Readings"
- Previous message: Rodrigo Sodre: "subscribe"
- Next in thread: Jan Luehe: "Re: Cipher or CipherSpi?"

    Message-Id: <1.5.4.32.19980207223844.00675e08@pop.solar.com.br>

    Date: Sat, 07 Feb 1998 20:38:44 -0200

    To: java-security@web1.javasoft.com

    From: Rodrigo Sodre <rsodre@solar.com.br>

    Subject: Cipher or CipherSpi?

Greetings,

To implement a provider, the first step is implement the
criptographic algoritm classes. For example, if I want to prove an MD5 class
I must do it in the following way:

class MyMD5Class extends Message Digest {
...
}

and inside defining the methods starting by "engine" (remembring that
MessageDigest is a subclass of MessageDigestSpi, wich defines a group of
methods started by "engine").

So, my doubt: if I want to prove a class that implements RSA, wich
class should I extend: Chipher or CipherSpi? (Cipher isn't a class of
CipherSpi).

Thanks in advance and best regards.

Rodrigo Sodre - rsodre@solar.com.br

- Next message: Mystic.Readings@javasoft.com: "Psychic Readings"
- Previous message: Rodrigo Sodre: "subscribe"
- Next in thread: Jan Luehe: "Re: Cipher or CipherSpi?"