Version 1.0: Original version.
Version 1.1: Key generation function and related functions updated to facilitate the use of externally generated seeds.