Added SHA1 as hashing or DSA.key. Also added compliance with recent Nigori serialization changes.