Thread (11 messages) 11 messages, 3 authors, 2015-08-03

Re: Limited usefulness of RSA set key function

From: Stephan Mueller <hidden>
Date: 2015-08-03 07:18:47

Am Montag, 3. August 2015, 00:14:28 schrieb Marcel Holtmann:

Hi Marcel,
It does not. The RSA Private Key has a different format.

      RSAPrivateKey ::= SEQUENCE {
          version           Version,
          modulus           INTEGER,  -- n
          publicExponent    INTEGER,  -- e
          privateExponent   INTEGER,  -- d
          prime1            INTEGER,  -- p
          prime2            INTEGER,  -- q
          exponent1         INTEGER,  -- d mod (p-1)
          exponent2         INTEGER,  -- d mod (q-1)
          coefficient       INTEGER,  -- (inverse of q) mod p
      }

And honestly that the RSA Public Key magically matches seems more luck then
clear intention.

      RSAPublicKey ::= SEQUENCE {
          modulus           INTEGER,  -- n
          publicExponent    INTEGER   -- e
      }
I think here we may have the issue: the ASN.1 structure the kernel uses should 
be changed to implement that commonly used ASN.1 structure. If this change 
would allow a DER to be used, I think we have the solution.


-- 
Ciao
Stephan
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help