Loading…

Kryptel/Java

Key-related Functions (package com.kryptel.key)

Description

This package contains interfaces and classes for key handling.

Constants

KeyIdent

Lists static 128-bit key IDs. These constants are outdated and are used only with legacy old-style callbacks (see the description of IKeyCallback interface for more details).

Every binary key has an associated key ID, which uniquely identifies the given key file. In addition to 'dynamic' key file IDs, there are a number of pre-defined static IDs that specify the key material used during encryption. For example, IDENT_PASSWORD means that the data was encrypted with a password.

During decryption the key material ID is compared with all the static IDs. If it does not match any, then this ID belongs to a binary key file.

See also: Key File Format.

Structures

KeyRecord

Key callback function returns the received key material in this structure.

Interfaces

IKeyCallback

This interface defines key callbacks; high-level Kryptel components such as storage handlers obtain key material by calling client-supplied callbacks.

Classes

BinaryKeyFile

Encapsulates Kryptel binary key files.

KeyBlock

This important class incorporates the functionality for building and parsing Unified Key Blocks.

KeyUtils

Contains several static helper functions used by library components. Those functions are of no use for client applications.

Examples

Key Callback Example

Shows how to implement a key callback using the KeyBlock class.