Uploaded image for project: 'Erlang/OTP'
  1. Erlang/OTP
  2. ERL-890

crypto:cipher_info/1 fails for some ciphers

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 22.0
    • Fix Version/s: 22.0
    • Component/s: crypto
    • Labels:
      None

      Description

      I would like us to be able to run this without failures:

      [crypto:cipher_info(C) || C <- proplists:get_value(ciphers, crypto:supports())].
      

      The aliases defined here give a badarg because they're not listed in cipher_types:

      https://github.com/erlang/otp/blob/master/lib/crypto/src/crypto.erl#L2392

      How do you want me to fix this, should they be added to the cipher_types in cipher.c? Handled specifically?

      In addition to those there is also aes_ige256 failing with notsup, should it be handled specifically in crypto:cipher_info/1? Please give me some pointers and I'll send a PR.

        Attachments

          Activity

            People

            Assignee:
            otp_team_ps Team PS
            Reporter:
            essen essen
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: