Generate an EC public/private key pair and save as two key files.
Public Function eccMakeKeys ( _ szPubKeyFile As String, _ szPriKeyFile As String, _ szCurveName As String, _ szPassword As String, _ Optional szParams As String = "", _ Optional nOptions As Long = 0 _ ) As Long
PKI_PBE_SHA_3DES (0) for "pbeWithSHAAnd3-KeyTripleDES-CBC" from PKCS12 (default) PKI_PBE_PBKDF2_DESEDE3 for PBKDF2 using des-EDE3-CBC PKI_PBE_PBKDF2_AES128 for PBKDF2 using aes128-CBC PKI_PBE_PBKDF2_AES192 for PBKDF2 using aes192-CBC PKI_PBE_PBKDF2_AES256 for PBKDF2 using aes256-CBCplus optionally to output in textual PEM format [default format=DER binary]
PKI_KEY_FORMAT_PEM
szParams
are:"count=5000;"
[default=2048]."prf=hmacWithSHA256;"
[default=hmacWithSHA1
]."rngseed=pqrrr1234xyz;"
.{hmacWithSHA1|hmacWithSHA224|hmacWithSHA256|hmacWithSHA384|hmacWithSHA512}
.' Create an ECC key pair using defaults r = eccMakeKeys("myeccP256.pub", "myeccP256.p8e", "Secp256r1", "password") ' Same but using different curve, stronger security and in PEM format r = eccMakeKeys("myeccBP256r1.pub", "myeccBP256r1.p8e", "brainpoolP256r1", "password1", "count=6000;prf=hmacWithSHA256", PKI_PBE_PBKDF2_AES128 Or PKI_KEY_FORMAT_PEM)