Uploaded image for project: 'Directory ApacheDS'
  1. Directory ApacheDS
  2. DIRSERVER-1351

DERInteger class provides no access to the full possible range of values a DERInteger can contain

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • None
    • asn1
    • None
    • any

    Description

      ASN.1 encoded DERInteger objects are used for storing keypairs in base64 encoded public key blocks such as this one:

      ----BEGIN RSA PUBLIC KEY----
      MIGJAoGBAMQgV2gXLbXgesWgeAsj8P1Uvm/zibrFXqwDq27lLKNgWGYGX2ax3LyT
      3nzI1Y5oLs4kPKTsMM5ft9aokwf417lKoCRlZc9ptfRbgxDx90c9GtWVmkrmDvCK
      ae59TMoXIiGfZiwWT6KKq5Zm9/Fu2Il3B2vHGkKJYKixmiBJRKp/AgMBAAE=
      ----END RSA PUBLIC KEY----

      This contains a DERSequence of two DERInteger objects representing the public exponent and the modulus of the key. But the modulus is far to large to be represented by 'intValue()', so there is no way to convert from this into a PublicKey object.

      Attachments

        1. patch.txt
          0.5 kB
          Brad Davis

        Activity

          People

            elecharny Emmanuel Lécharny
            jherico Brad Davis
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - 0.5h
                0.5h
                Remaining:
                Remaining Estimate - 0.5h
                0.5h
                Logged:
                Time Spent - Not Specified
                Not Specified