comparison dcrypt/crypto/ManagedBlockCipher.d @ 23:4589f8c5eb3c

Replaced dcrypt.crypto.Util with dcrypt.misc.Bitwise and dcrypt.misc.ByteConverter. Altered all dependent files to reflect changes.
author Thomas Dixon <reikon@reikon.us>
date Sat, 14 Feb 2009 19:58:20 -0500
parents 7ea528b61802
children 8b5eaf3c2979
comparison
equal deleted inserted replaced
22:74303a717032 23:4589f8c5eb3c
130 index += diff; 130 index += diff;
131 } 131 }
132 132
133 if (index) 133 if (index)
134 result += cipher.update(buffer[0..index], output[result..result+index]); 134 result += cipher.update(buffer[0..index], output[result..result+index]);
135 } else { 135 } else { // decrypt
136 if (streamMode || index == blockSize) { 136 if (streamMode || index == blockSize) {
137 result += cipher.update(buffer[0..index], buffer[0..index]); 137 result += cipher.update(buffer[0..index], buffer[0..index]);
138 index = 0; 138 index = 0;
139 } else { 139 } else {
140 reset(); 140 reset();