The crypto manager offers cryptographic operations through a cryptographic module. Operations are called by using the static methods of the CryptoManager. The following operations are available
The random seed is currently not entered by the user, as the Tinguin interface only works properly on Windows 95. If, however, you want to test this (on Windows 95), change the "seed = new byte; // getSeedFromUser();" lines in CryptoMan.java to read "seed = getSeedFromUser();" (2 occurrences).
Initialisation of the Crypto Manager requires the userid as input parameter. If this parameter can be read (e.g., from preferences) this can be avoided in future versions.
The present version has been tested on Linux with RSA and DES as cryptographic algorithms. Test programs can be found in "semper/src/semper/statement/Test". The program "semper/src/semper/statement/Test/TCrypto" tests storage and retrieval of the key in archive. However, for the moment it requires that databases are cleared between each test (rm *.db). Thus for the moment the programs can only be used to illustrate the use of the CryptoManager and the Statement services . Libraries for WIN95, SOLARIS and LINUX are on the server. See the file "readme.txt" in the crypto directory for more information.
Cryptographic keys are handled by CryptoKeyInfo objects. Such an object can either contain a handle to the key or the actual key value. These objects also contain information (Capabilities) needed to control use of the keys. Whenever a key is needed it is verified that the capability corresponding to the key is unlocked. It is up to the entity generating the key to add a capability to the key. Due to problems of the Access Control Manager this has not been tested thoroughly.
Keys can be stored using storeKeyVal . In this operation the user can ask that the key be encrypted under the masterKey (default) or some other key before storage. Keys can be retrieved using getKeyVal . Here the user can either ask for the encrypted key or that it shoud be decrypted first. Again the masterKey of CryptoMan is the default key.
The master key is generated when SEMPER is installed or run the very first time using generateMasterKey . Later, the key is read from storage during initialisation of the CryptoManager. The master key is protected (by encryption) under a password chosen by the user. Thus usage of the master key depend on the password being typed in by the user on initialisation. As we don't know how to use the Access Control Manager for selecting and getting this password when the master key is generated, we currently use a default password.
Date: August 23, 1996 .