There are differences in capitalization and in hyphenation. In the FFI this means that your inputs (say, "AES256") may not match the output from packet parsing to JSON ("AES-256").
This is confusing and seems like duplication we ought to be able to eliminate.
Description
We have defined multiple mappings from ints to strings for various types and this may present an inconsistent interface to the user.
For example: https://github.com/riboseinc/rnp/blob/d562b479b12d930111025500d8c63ac442c1c4f3/src/librepgp/stream-dump.cpp#L154 https://github.com/riboseinc/rnp/blob/d562b479b12d930111025500d8c63ac442c1c4f3/src/lib/rnp.cpp#L309
There are differences in capitalization and in hyphenation. In the FFI this means that your inputs (say, "AES256") may not match the output from packet parsing to JSON ("AES-256"). This is confusing and seems like duplication we ought to be able to eliminate.