implement support for configuing key size, set default to 3072