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

# PK_FixedLengthCryptoSystem Class Reference

`#include <cryptlib.h>`

Inheritance diagram for PK_FixedLengthCryptoSystem:

List of all members.

## Detailed Description

interface for encryptors and decryptors with fixed length ciphertext

A simplified interface is provided for crypto systems (such as RSA) whose ciphertext length and maximum plaintext length depend only on the key.

Definition at line 1167 of file cryptlib.h.

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

## Member Function Documentation

unsigned int PK_FixedLengthCryptoSystem::MaxPlaintextLength | ( | unsigned int | cipherTextLength | ) | const`[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). Implements PK_CryptoSystem. Definition at line 595 of file cryptlib.cpp.

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

| calculate length of ciphertext given length of plaintext Note: This function returns 0 if plainTextLength is not valid (too long). Implements PK_CryptoSystem. Definition at line 603 of file cryptlib.cpp.

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

- cryptlib.h
- cryptlib.cpp