Mercurial > projects > dcrypt
view dcrypt/crypto/BlockCipher.d @ 8:23c62e28b3a4
Reworked symmetric cipher classes to have SymmetricCipher as their superclass, and follow the general interface of init(), process(), etc. Made sure everything still passed test vectors. Removed Cipher class. I'll worry about that shit when we support something other than symmetric ciphers.
author | Thomas Dixon <reikon@reikon.us> |
---|---|
date | Mon, 18 Aug 2008 01:14:37 -0400 |
parents | 71aae178f89a |
children | cd376996cdb3 |
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 */ module dcrypt.crypto.BlockCipher; public import dcrypt.crypto.SymmetricCipher; public import dcrypt.crypto.params.SymmetricKey; /** Interface for a standard block cipher. */ abstract class BlockCipher : SymmetricCipher { /** Returns: The block size in bytes that this cipher will operate on. */ uint blockSize(); }