*
*/
-#include "cryptlib.h"
+#include "internal/cryptlib.h"
#include "bn_lcl.h"
/*
if (BN_is_zero(scalar)) {
r = OPENSSL_malloc(1);
- if (!r) {
+ if (r == NULL) {
BNerr(BN_F_BN_COMPUTE_WNAF, ERR_R_MALLOC_FAILURE);
goto err;
}
if (in->top > size)
return 0;
- memset(out, 0, sizeof(BN_ULONG) * size);
- memcpy(out, in->d, sizeof(BN_ULONG) * in->top);
+ memset(out, 0, sizeof(*out) * size);
+ memcpy(out, in->d, sizeof(*out) * in->top);
return 1;
}