Move some basic crypto primitives from syndicated to
syndicate.util.crypto, so syndicatelib can get at them.