Mercurial > projects > dcrypt
comparison dcrypt/crypto/params/ParametersWithIV.d @ 2:71aae178f89a
Added copy() to hash functions. Modified some code style.
author | Thomas Dixon <reikon@reikon.us> |
---|---|
date | Wed, 13 Aug 2008 22:01:19 -0400 |
parents | 0e08791a1418 |
children | 5ce3012f1def |
comparison
equal
deleted
inserted
replaced
1:483e4467b5f6 | 2:71aae178f89a |
---|---|
18 /** | 18 /** |
19 * Params: | 19 * Params: |
20 * params = Parameters to wrap. | 20 * params = Parameters to wrap. |
21 * iv = IV to be held. | 21 * iv = IV to be held. |
22 */ | 22 */ |
23 this(CipherParameters params=null, ubyte[] iv_=null) { | 23 this (CipherParameters params=null, ubyte[] iv_=null) { |
24 if (params) | 24 if (params) |
25 m_params = params; | 25 m_params = params; |
26 ubyte[] iv = cast(ubyte[]) iv_; | 26 ubyte[] iv = cast(ubyte[]) iv_; |
27 if (iv) | 27 if (iv) |
28 m_iv = iv; | 28 m_iv = iv; |