Right, of course. I just generalized things a bit.
If you're talking about private keys, the distiction remains: either you want to export/import what is in an already encrypted wallet (useful for backup), or you want to do encryption separately. The intent here seems to be the second case, which is fine. It just means you'll need to both the wallet passphrase and the key password ready if you want to import.
Also, considering the used version byte, could you follow
this thread? I'd say encrypted privkeys form a new data class.