Retail products


Traffic interception SDK

Control every TCP/IP network connection

  • Route connections via proxy
  • Redirect connections and modify the data
  • Block connections and applications
SSL interception SDK

View SSL in plaintext and modify it

  • View the SSL stream decrypted in plaintext
  • Redirect SSL connection and modify decrypted data
  • Browser shows "SSL lock" without warnings

Documentation


blowfish.cpp File Reference

#include "stdafx.h"
#include <exception>
#include "blowfish.h"

Include dependency graph for blowfish.cpp:

Go to the source code of this file.


Namespaces

namespace  blowfish
namespace  blowfish::core
 Low-level utilities - for advanced users only.

Typedefs

typedef core::BlockIterator blowfish::DIter
 Iterator used to traverse data in all encryption routines below.

Functions

uint32 blowfish::core::F (Pad const &pad, uint32 u)
 The base scrambling function of Blowfish, using the S boxes.
Block blowfish::core::encipherBlock (Pad const &pad, Block const &block)
Block blowfish::core::decipherBlock (Pad const &pad, Block const &block)
 Standard sixteen round deciphering of block using pad.
Pad blowfish::generatePad (void const *keyPtr, int keyLen)
 Returns an encription pad generated using the specified key/password.
Block blowfish::operator^ (Block const &a, Block const &b)
 Returns a new block made of the xor-ed fields of a and b.
void blowfish::encrypt_ECB (Pad const &pad, void const *src, void *dst, size_t byteSize)
void blowfish::decrypt_ECB (Pad const &pad, void const *src, void *dst, size_t byteSize)
void blowfish::encrypt_CBC (Pad const &pad, void const *src, void *dst, size_t byteSize, Block *pChain)
void blowfish::decrypt_CBC (Pad const &pad, void const *src, void *dst, size_t byteSize, Block *pChain)
void blowfish::encrypt_CFB (Pad const &pad, void const *src, void *dst, size_t byteSize, Block *pChain)
void blowfish::decrypt_CFB (Pad const &pad, void const *src, void *dst, size_t byteSize, Block *pChain)

Variables

Pad const blowfish::core::defaultPiPad
 default pad based on the decimals of pi

Detailed Description

Implementation of the BLOWFISH algorithm. Reference: <http://www.counterpane.com/blowfish.html>
Author:
Ivan Vecerina - 2002

Definition in file blowfish.cpp.