net.jradius.tls
Class TlsBlockCipher

java.lang.Object
  extended by net.jradius.tls.TlsBlockCipher

public class TlsBlockCipher
extends Object

A generic TLS 1.0 block cipher. This can be used for AES or 3DES for example.


Method Summary
 byte[] decodeCiphertext(short type, byte[] ciphertext, int offset, int len)
           
 byte[] encodePlaintext(short type, byte[] plaintext, int offset, int len)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

encodePlaintext

public byte[] encodePlaintext(short type,
                              byte[] plaintext,
                              int offset,
                              int len)

decodeCiphertext

public byte[] decodeCiphertext(short type,
                               byte[] ciphertext,
                               int offset,
                               int len)
                        throws IOException
Throws:
IOException


Copyright © 2011 Coova Technologies, LLC, All Rights Reserved.