In the crypt function is there ever a situation in which the aadlen would not be 4? Just curious. I threw in an assert(aadlen == 4); just before that conditional and haven't broken anything yet. Just not sure if I'm missing a case where it might be 0. Chris