]> git.saurik.com Git - apple/security.git/blobdiff - libsecurity_apple_csp/lib/RSA_DSA_keys.cpp
Security-55471.14.8.tar.gz
[apple/security.git] / libsecurity_apple_csp / lib / RSA_DSA_keys.cpp
index 7b9deb5f6b33189b37f42faf7bc4cbed40df0a0e..b73fc470d1dece7267a9a30a6bd92d9be44456bb 100644 (file)
@@ -562,7 +562,7 @@ void DSAKeyPairGenContext::generate(
        if(paramData != NULL) {
                /* this contains the DER encoding of a NSS_DSAAlgParams */
                CSSM_RETURN crtn = DSADecodeAlgParams(algParams, paramData->Data,
-                       paramData->Length, coder);
+                       (unsigned)paramData->Length, coder);
                if(crtn) {
                        CssmError::throwMe(crtn);
                }
@@ -623,7 +623,7 @@ void DSAKeyPairGenContext::generate(
        CssmData *seedData = context.get<CssmData>(CSSM_ATTRIBUTE_SEED);
        if(seedData) {
                seed = seedData->data();
-               seedLen = seedData->length();
+               seedLen = (unsigned)seedData->length();
        }
 
        /* generate the params, temp alloc from SecNssCoder  */