view dcrypt/crypto/Crypto.d @ 12:8c7f8fecdd75

Added ManagedBlockCipher, changed Crypto to just import everything, made Hash.update() return itself (for chaining) and ditched BlockCipherWrapper.
author Thomas Dixon <reikon@reikon.us>
date Sat, 30 Aug 2008 14:38:23 -0400
parents 02970e63257d
children
line wrap: on
line source

/**
 * This file is part of the dcrypt project.
 *
 * Copyright: Copyright (C) dcrypt contributors 2008. All rights reserved.
 * License:   MIT
 * Authors:   Thomas Dixon
 */

/** Import _everything_ */
module dcrypt.crypto.Crypto;

// Hash functions
public import dcrypt.crypto.Hash;
public import dcrypt.crypto.hashes.MD5;
public import dcrypt.crypto.hashes.SHA1;
public import dcrypt.crypto.hashes.SHA224;
public import dcrypt.crypto.hashes.SHA256;
public import dcrypt.crypto.hashes.SHA384;
public import dcrypt.crypto.hashes.SHA512;

// Message authentication codes
public import dcrypt.crypto.MAC;
public import dcrypt.crypto.macs.HMAC;

// Params
public import dcrypt.crypto.params.SymmetricKey;
public import dcrypt.crypto.params.ParametersWithIV;

// Ciphers
public import dcrypt.crypto.Cipher;
public import dcrypt.crypto.BlockCipher;
public import dcrypt.crypto.StreamCipher;
public import dcrypt.crypto.ManagedBlockCipher;
public import dcrypt.crypto.ciphers.Blowfish;
public import dcrypt.crypto.ciphers.RC6;
public import dcrypt.crypto.ciphers.TEA;
public import dcrypt.crypto.ciphers.XTEA;
public import dcrypt.crypto.ciphers.AES;
public import dcrypt.crypto.ciphers.RC4;

// Block modes
public import dcrypt.crypto.modes.CBC;
public import dcrypt.crypto.modes.CTR;

// Block padding
public import dcrypt.crypto.BlockCipherPadding;
public import dcrypt.crypto.padding.NullByte;
public import dcrypt.crypto.padding.X923;
public import dcrypt.crypto.padding.PKCS7;
public import dcrypt.crypto.padding.RFC1321;