Previous topic |
Next topic |
Contents |
Contact z/OS |
Library |
PDF
gsk_generate_secret() z/OS Cryptographic Services System SSL Programming SC14-7495-00 |
|
Generates the Diffie-Hellman shared secret.
Format
Parameters
ResultsThe function return value will be
0 if no error is detected. Otherwise, it will be one of the return
codes listed in the gskcms.h include file. These are some
possible errors:
UsageThe gsk_generate_secret() routine will generate the Diffie-Hellman shared secret value as defined in PKCS #3 (Diffie-Hellman Key Agreement Standard) and RFC 2631: Diffie-Hellman Key Agreement Method. The required key parameters P and G, and, in non-FIPS mode, the optional key parameters Q and J are supplied as an ASN.1-encoded sequence as defined in either PKCS #3 or RFC 5280: Internet X.509 Public Key Infrastructure Certificate and Certificate Revocation List (CRL) Profile. The return value will be the binary value for Z. The key size is determined by the size of the modulus P, and must be between 512 and 2048 bits if not executing in FIPS mode, or it must be 2048 bits if in FIPS mode. |
Copyright IBM Corporation 1990, 2014
|