Finished implementing the crypto wrappers. TODO: keyfile mgmt