diff --git a/src/crypto/crypto_wolfssl.c b/src/crypto/crypto_wolfssl.c
index bc4fd6a2a..b5a1e3fa3 100644
--- a/src/crypto/crypto_wolfssl.c
+++ b/src/crypto/crypto_wolfssl.c
@@ -1181,7 +1181,7 @@ int crypto_bignum_rshift(const struct crypto_bignum *a, int n,
 {
 	if (mp_copy((mp_int *) a, (mp_int *) r) != MP_OKAY)
 		return -1;
-	mp_rshd((mp_int *) r, n);
+	mp_rshb((mp_int *) r, n);
 	return 0;
 }