add HashLen to hash lib
add digest to symmetric crypto