*algParams = (uint8 *)malloc(len);
memmove(*algParams, nssPubKeyInfo.algorithm.parameters.Data, len);
*algParamLen = len;
*algParams = (uint8 *)malloc(len);
memmove(*algParams, nssPubKeyInfo.algorithm.parameters.Data, len);
*algParamLen = len;
*algParams = (uint8 *)malloc(len);
memmove(*algParams, nssPrivKeyInfo.algorithm.parameters.Data, len);
*algParamLen = len;
*algParams = (uint8 *)malloc(len);
memmove(*algParams, nssPrivKeyInfo.algorithm.parameters.Data, len);
*algParamLen = len;
CSSM_DATA encodedParams = {0, NULL};
/* TBD encode the label into a RSAES-OAEP-params */
CSSM_DATA encodedParams = {0, NULL};
/* TBD encode the label into a RSAES-OAEP-params */
- return RSAPrivateKeyEncodePKCS8(coder, openKey, encodedKey, encodedParams.Data, encodedParams.Length);
+ return RSAPrivateKeyEncodePKCS8(coder, openKey, encodedKey, encodedParams.Data, (unsigned int)encodedParams.Length);
CSSM_DATA encodedParams = {0, NULL};
/* TBD encode the label into a RSAES-OAEP-params */
CSSM_DATA encodedParams = {0, NULL};
/* TBD encode the label into a RSAES-OAEP-params */
- return RSAPublicKeyEncodeX509(coder, openKey, encodedKey, encodedParams.Data, encodedParams.Length);
+ return RSAPublicKeyEncodeX509(coder, openKey, encodedKey, encodedParams.Data, (unsigned int)encodedParams.Length);
- return DSAPrivateKeyDecodeFIPS186(coder, openKey, p, length);
+ return DSAPrivateKeyDecodeFIPS186(coder, openKey, p, (unsigned)length);
case CSSM_KEYBLOB_RAW_FORMAT_OPENSSL:
return DSAPrivateKeyDecodeOpenssl(coder, openKey, p, length);
case CSSM_KEYBLOB_RAW_FORMAT_PKCS8:
case CSSM_KEYBLOB_RAW_FORMAT_OPENSSL:
return DSAPrivateKeyDecodeOpenssl(coder, openKey, p, length);
case CSSM_KEYBLOB_RAW_FORMAT_PKCS8:
- return DSAPrivateKeyDecodePKCS8(coder, openKey, p, length);
+ return DSAPrivateKeyDecodePKCS8(coder, openKey, p, (unsigned)length);