Summary

  

This chapter discussed the CipherSpi class that is used to provide a cipher as a service provider. The Service Provider Interface gives Java applications the capability to use the cipher algorithm without your having to understand the details of the algorithm. Special security considerations have to be taken into account when working with a cipher service provider. If the algorithm was corrupted or compromised, the plaintext could be intercepted.

Regardless of the type of cipher algorithm, be it an asymmetric cipher or stream cipher, the cipher SPI works the same. The differences are algorithm specific. These specifics include the padding types and cipher modes. The cipher engine is initialized with a key. The key could be a secret key or one of the keys in the key pair. The point is that all initializations require a key. The cipher Service Provider Interface provides a common framework for all ciphers regardless of the algorithm. The algorithm will change in the internal workings on how the bytes and keys are manipulated.

  


Java Security Solutions
Java Security Solutions
ISBN: 0764549286
EAN: 2147483647
Year: 2001
Pages: 222

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net