Main Page | Namespace List | Class Hierarchy | Alphabetical List | Compound List | File List | Namespace Members | Compound Members | File Members

# PK_CryptoSystem Class Reference

`#include <cryptlib.h>`

Inheritance diagram for PK_CryptoSystem:

List of all members.

## Detailed Description

interface for public-key encryptors and decryptors

This class provides an interface common to encryptors and decryptors for querying their plaintext and ciphertext lengths.

Definition at line 1101 of file cryptlib.h.

## Public Member Functions
virtual unsigned int | MaxPlaintextLength (unsigned int cipherTextLength) const=0
| maximum length of plaintext for a given ciphertext length
virtual unsigned int | CiphertextLength (unsigned int plainTextLength) const=0
| calculate length of ciphertext given length of plaintext

## Member Function Documentation

virtual unsigned int PK_CryptoSystem::MaxPlaintextLength | ( | unsigned int | cipherTextLength | ) | const`[pure virtual]`

| maximum length of plaintext for a given ciphertext length Note: This function returns 0 if cipherTextLength is not valid (too long or too short). Implemented in PK_FixedLengthCryptoSystem.

virtual unsigned int PK_CryptoSystem::CiphertextLength | ( | unsigned int | plainTextLength | ) | const`[pure virtual]`

| calculate length of ciphertext given length of plaintext Note: This function returns 0 if plainTextLength is not valid (too long). Implemented in PK_FixedLengthCryptoSystem.

The documentation for this class was generated from the following file:

- cryptlib.h