Revert "New function mbedtls_rsa_get_bitlen"

This reverts commit 1d26709dbd4a4f8ef9ea0ff58f2644a4bc3fc49c.
diff --git a/library/pk_wrap.c b/library/pk_wrap.c
index f9b4c65..2c7d2d7 100644
--- a/library/pk_wrap.c
+++ b/library/pk_wrap.c
@@ -66,7 +66,7 @@
 static size_t rsa_get_bitlen( const void *ctx )
 {
     const mbedtls_rsa_context * rsa = (const mbedtls_rsa_context *) ctx;
-    return( mbedtls_rsa_get_bitlen( rsa ) );
+    return( 8 * mbedtls_rsa_get_len( rsa ) );
 }
 
 static int rsa_verify_wrap( void *ctx, mbedtls_md_type_t md_alg,