diff options
author | tb <> | 2024-10-30 17:49:27 +0000 |
---|---|---|
committer | tb <> | 2024-10-30 17:49:27 +0000 |
commit | 5178da8bac39346f24655279edfd7f58c1646b41 (patch) | |
tree | b5f13b12e48905d5444aa9a407301866f9cff247 /src/lib/libcrypto/cms/cms_lib.c | |
parent | f174b640b45fb43e39517a8614a0e8215bad9c13 (diff) | |
download | openbsd-5178da8bac39346f24655279edfd7f58c1646b41.tar.gz openbsd-5178da8bac39346f24655279edfd7f58c1646b41.tar.bz2 openbsd-5178da8bac39346f24655279edfd7f58c1646b41.zip |
Rewrite EC_POINT_point2hex()
Instead of doing everything by hand, this can use EC_POINT_point2bn()
and chain it with BN_bn2hex(), slashing the number of lines in half.
This removes one of the ten remaining "01234567890ABCDEF" strings from
libcrypto. Unfortunately, none of the nine others is used in an API that
could convert the octet string directly, so we use that ugly detour via
a bignum. Still it's better than what was there.
ok jsing
Diffstat (limited to 'src/lib/libcrypto/cms/cms_lib.c')
0 files changed, 0 insertions, 0 deletions