X-Git-Url: https://git.saurik.com/apple/security.git/blobdiff_plain/b1ab9ed8d0e0f1c3b66d7daa8fd5564444c56195..e3d3b979fd185d8303f28a937baa53a187fb8c7d:/libsecurity_apple_csp/lib/DH_exchange.cpp?ds=sidebyside diff --git a/libsecurity_apple_csp/lib/DH_exchange.cpp b/libsecurity_apple_csp/lib/DH_exchange.cpp index ae5f1eef..f09c83f7 100644 --- a/libsecurity_apple_csp/lib/DH_exchange.cpp +++ b/libsecurity_apple_csp/lib/DH_exchange.cpp @@ -74,7 +74,7 @@ void DeriveKey_DH ( errorLog0("DeriveKey_DH: no pub_key, no Param\n"); CssmError::throwMe(CSSMERR_CSP_INVALID_KEY); } - pubKeyBn = BN_bin2bn(Param.Data, Param.Length, NULL); + pubKeyBn = BN_bin2bn(Param.Data, (int)Param.Length, NULL); if(pubKeyBn == NULL) { CssmError::throwMe(CSSMERR_CSP_MEMORY_ERROR); } @@ -94,7 +94,7 @@ void DeriveKey_DH ( * to deal with that if they really need privSize bytes. */ assert((uint32)rtn <= privSize); - uint32 toMove = keyData->Length; + CSSM_SIZE toMove = keyData->Length; if((uint32)rtn < toMove) { toMove = (uint32)rtn; }