iaik.tc.tss.impl.csp
Class TcBasicCrypto

java.lang.Object
  extended by iaik.tc.tss.impl.csp.TcBasicCrypto
Direct Known Subclasses:
TcCrypto

public class TcBasicCrypto
extends java.lang.Object

This class is the CSP (crypto service provider) of the TSS. That means that all cryptographic functionality required by the TSS is centralized in this class. The intention is to make porting to different crypto libraries as simple as possible. To allow compilation of the API definition (without implementation) (i.e. for Wrapper translation with GCJ), the TcCrypto class has been split in a basic part, and a full implementation that extends it. TcBasicCrypto is compatible with GCJ.


Constructor Summary
TcBasicCrypto()
           
 
Method Summary
static boolean checkCryptoAvailability()
           
static byte[] hmacSha1(byte[] data, byte[] key)
           
static byte[] sha1(byte[] input)
          This method computes the sha1 hash of the provided byte array.
static byte[] xor(byte[] data, byte[] key)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TcBasicCrypto

public TcBasicCrypto()
Method Detail

checkCryptoAvailability

public static boolean checkCryptoAvailability()

sha1

public static byte[] sha1(byte[] input)
This method computes the sha1 hash of the provided byte array.


hmacSha1

public static byte[] hmacSha1(byte[] data,
                              byte[] key)

xor

public static byte[] xor(byte[] data,
                         byte[] key)