Exp mod: Make sure RR has enough limbs

When generated by exp_mod, RR has enough limbs to be passed as a
parameter to core functions. If it is received from the caller, it might
be of any length.

Signed-off-by: Janos Follath <janos.follath@arm.com>
diff --git a/library/bignum.c b/library/bignum.c
index 5ddcf72..0b8fec3 100644
--- a/library/bignum.c
+++ b/library/bignum.c
@@ -1639,6 +1639,7 @@
             *prec_RR = RR;
         }
     } else {
+        MBEDTLS_MPI_CHK(mbedtls_mpi_grow(prec_RR, N->n));
         RR = *prec_RR;
     }