]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - lib/rsa/rsa-sign.c
tools, fit_check_sign: verify a signed fit image
[karo-tx-uboot.git] / lib / rsa / rsa-sign.c
index 0fe6e9f9cf1178b084596f83aa2a02ed4ec95b14..ca8c120d97cf96b0de668674a8d84194139cc9c6 100644 (file)
@@ -193,7 +193,7 @@ static int rsa_sign_with_key(RSA *rsa, struct checksum_algo *checksum_algo,
                goto err_create;
        }
        EVP_MD_CTX_init(context);
-       if (!EVP_SignInit(context, checksum_algo->calculate())) {
+       if (!EVP_SignInit(context, checksum_algo->calculate_sign())) {
                ret = rsa_err("Signer setup failed");
                goto err_sign;
        }