IBM Crypto Education Community

  • 1.  Need Help with RSA 2048 Private Key Generation

    Posted Mon June 28, 2021 12:54 PM
    Edited by Mani D Mon June 28, 2021 01:32 PM
    Hi,

    I am trying to generate RSA 2048 Key Pair using CSNDPKB. But i get reason code 762,

    I am not sure what is wrong with skeleton below. Can you please help

    Key Pair : 'RSA-PRIV' & 'KEY-MGMT' 
    Skeleton : as below
    Modulus length                             PIC 9(04) COMP VALUE 2048.
    Modulus field length                   PIC 9(04) COMP VALUE 0.
    Public exponent field length     PIC 9(04) COMP VALUE 3.
    Private exponent field length    PIC 9(04) COMP VALUE 0.
    RSA public exponent                   PIC X(03) VALUE X'010001'.

    Thanks
    Mani


  • 2.  RE: Need Help with RSA 2048 Private Key Generation

    Posted Mon June 28, 2021 04:46 PM
    Hi Mani - you need to specify RSA-CRT instead of RSA-PRIV.  RSA-PRIV has a maximum length of 1024.

    Sheri DeGroodt

    ------------------------------
    Sheri DeGroodt
    ------------------------------



  • 3.  RE: Need Help with RSA 2048 Private Key Generation

    Posted Tue June 29, 2021 09:36 AM
    Hi Sheri, Thanks for your help.

    I was able to generate with RSA-CRT

    Thanks
    Mani

    ------------------------------
    Mani D
    ------------------------------