Added a publicly accessible generation function for symmetric keys

This is for example needed in the storage component which is going
to use the streaming crypto api.

Closes #238