Mercurial > projects > dcrypt
diff dcrypt/crypto/params/SymmetricKey.d @ 33:b9f8aa42a547
More changes suggested by Glenn Haecker for D2 compatibility.
author | Thomas Dixon <reikon@reikon.us> |
---|---|
date | Thu, 14 May 2009 01:33:11 -0400 |
parents | 8b5eaf3c2979 |
children |
line wrap: on
line diff
--- a/dcrypt/crypto/params/SymmetricKey.d Tue May 12 22:09:33 2009 -0400 +++ b/dcrypt/crypto/params/SymmetricKey.d Thu May 14 01:33:11 2009 -0400 @@ -25,6 +25,15 @@ _key = cast(ubyte[]) key; } + /** Play nice with D2's idea of const. */ + version (D_Version2) + { + this (string key) + { + this(cast(ubyte[])key); + } + } + /** Returns: Key in ubytes held by this object. */ ubyte[] key() {