My requirement is to generate PKA key pair and create signature on some data elements and send to other party, the other party will have my public key so it can verify my signature
The API I am using is
1. Create PKA Key token CSNDPKB
Key structure is
Modlen = 2048
Pubexplen = 3
Pubexp = 65537*256
Rule array = RSA-AESM + SIG-ONLY
Key token is built successfully
2. Generate PKA Key pair CSNDPKG
Rule Array = MASTER
Keyname = 'Test.PKA.01'
KeyNMLen = 64
Source Token length = Length of source Token
Source Token = Toke return from CSNDPKB
This API is work, and the PKA key pair is key store created as internal Key
3. Using step 2 Key pair to generate/Verify signature without any problem,
4. When try to use CSNDPKX to extract public key
KeyNMlen = 3500
Keyname = 'Test. PKA.01'
it always return 8/47, "the source key token is unusable", so I dont believe the problem is in CSNDPKX, problem something wrong in CSNDPKB or CSNDPKG,
does anyone know what is the problem or have sample code to yse CSNDPKB/CSNDPKG to create 2048 bits PKA key pair and can extract public key for other application
James Teng