RSAKey.toRSAPrivateKey: Consider returning PrivateKey field when available

Issue #507 new
Vladimir Dzhuvinov created an issue

Instead of recreating the key object from private key material.

Comments (1)

  1. Vladimir Dzhuvinov reporter

    E.g. to conserve additional PSS data:

    SunRsaSign RSASSA-PSS private CRT key, 2048 bits
      params: MD: SHA-256
    MGF: java.security.spec.MGF1ParameterSpec@612679d6
    SaltLength: 32
    TrailerField: 1
    

    vs

    SunRsaSign RSA private CRT key, 2048 bits
      params: null
    

  2. Log in to comment