Fix X448 key size. For GPG_KEY_STORAGE, it should be rounded up.

Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
This commit is contained in:
NIIBE Yutaka 2022-06-09 11:45:15 +09:00
parent 4b1aadda0c
commit af129fc848

View File

@ -345,7 +345,7 @@ gpg_get_algo_attr_key_size (enum kind_of_key kk, enum size_of_key s)
return 128;
case ALGO_X448:
if (s == GPG_KEY_STORAGE)
return 112;
return 128;
else
return 56;
ed25519: