com.digt.trusted.crypto
Class GOSTSessionKey

java.lang.Object
  extended by com.digt.trusted.crypto.GOSTSessionKey
All Implemented Interfaces:
java.io.Serializable, java.security.Key, javax.crypto.SecretKey

public class GOSTSessionKey
extends java.lang.Object
implements javax.crypto.SecretKey

See Also:
Serialized Form

Field Summary
 
Fields inherited from interface javax.crypto.SecretKey
serialVersionUID
 
Constructor Summary
GOSTSessionKey()
           
GOSTSessionKey(byte[] EncodedObject)
          GOSTSessionKey in bytes: magik(1 byte) + length_keyBlob(2 bytes) + keyBlob(length_keyBlob bytes) + length_KP_IV(2 bytes) + KP_IV(length_KP_IV bytes) + length_KP_PADDING(2 bytes) + KP_PADDING(length_KP_PADDING bytes) + length_KP_MODE(2 bytes) + KP_MODE(length_KP_MODE bytes) + length_hProv(2 bytes) + hProv(length_hProv bytes) + length_hKey(2 bytes) + hKey(length_hKey bytes) + CRC(1 byte)
 
Method Summary
 void destroy()
           
protected  void finalize()
           
 void genKey(java.lang.String containerName)
           
 java.lang.String getAlgorithm()
           
 byte[] getEncoded()
           
 java.lang.String getFormat()
           
 long gethKey()
           
 long gethProv()
           
 byte[] getkeyBlob()
           
 byte[] getKP_IV()
           
 byte[] getKP_MODE()
           
 byte[] getKP_PADDING()
           
 void sethKey(long hKey)
           
 void sethProv(long hProv)
           
 void setkeyBlob(byte[] keyBlob)
           
 void setKP_IV(byte[] KP_IV)
           
 void setKP_MODE(byte[] KP_MODE)
           
 void setKP_PADDING(byte[] KP_PADDING)
           
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GOSTSessionKey

public GOSTSessionKey()

GOSTSessionKey

public GOSTSessionKey(byte[] EncodedObject)
GOSTSessionKey in bytes: magik(1 byte) + length_keyBlob(2 bytes) + keyBlob(length_keyBlob bytes) + length_KP_IV(2 bytes) + KP_IV(length_KP_IV bytes) + length_KP_PADDING(2 bytes) + KP_PADDING(length_KP_PADDING bytes) + length_KP_MODE(2 bytes) + KP_MODE(length_KP_MODE bytes) + length_hProv(2 bytes) + hProv(length_hProv bytes) + length_hKey(2 bytes) + hKey(length_hKey bytes) + CRC(1 byte)

Method Detail

getEncoded

public byte[] getEncoded()
Specified by:
getEncoded in interface java.security.Key

genKey

public void genKey(java.lang.String containerName)

setkeyBlob

public void setkeyBlob(byte[] keyBlob)

setKP_IV

public void setKP_IV(byte[] KP_IV)

setKP_PADDING

public void setKP_PADDING(byte[] KP_PADDING)

setKP_MODE

public void setKP_MODE(byte[] KP_MODE)

sethProv

public void sethProv(long hProv)

sethKey

public void sethKey(long hKey)

getkeyBlob

public byte[] getkeyBlob()

getKP_IV

public byte[] getKP_IV()

getKP_PADDING

public byte[] getKP_PADDING()

getKP_MODE

public byte[] getKP_MODE()

gethProv

public long gethProv()

gethKey

public long gethKey()

getAlgorithm

public java.lang.String getAlgorithm()
Specified by:
getAlgorithm in interface java.security.Key

getFormat

public java.lang.String getFormat()
Specified by:
getFormat in interface java.security.Key

destroy

public void destroy()

finalize

protected void finalize()
Overrides:
finalize in class java.lang.Object