Identity: refactor routing key creation
Created by: coneiric
By submitting this pull-request, I confirm the following:
- I have read and understood the contributor guide in kovri-docs.
- I have checked that another pull-request for this purpose does not exist.
- I have considered and confirmed that this submission will be valuable to others.
- I accept that this submission may not be used and that this pull-request may be closed by the will of the maintainer.
- I give this submission freely under the BSD 3-clause license.
Resolves TODO replacing sprintf
with calls to standard library functions, and fixes gcc8 format truncation warning.