text: #include <gmp.h>
  #include <stdio.h>
  #include "../structure/structure.h"
  #include "../calcul/calcul.h"
  #include "../chiffrement/gestion_block.h"
  #include "oaep_1.h"
  #include <stdlib.h>
  #include "dechiffrement.h"
  
  
  message* dechiffrement(message *c, cle_prive *prive) {
  
  	// Initialisation
  	message * m;
  	block * b; 
  	b = creer_block_oaep_1(c);
  
  	// Code
  	// RSA
  	for (int i = 0; i < b->nb_block; i++) {
  		mpz_powm(b->tab[i], b->tab[i], prive->d, prive->n);
  		
  	}
  	
  	// OAEP^(-1)
  	oaep_1(b);
  			
  	m = recupere_message_oaep_1(b);
  				
  	for(int i = 0; i < (b->nb_block); i++) {
          mpz_clear(b->tab[i]);
      }
      free(b->tab);
  
  	return m;
  	
  
  	
  }
  