--- rpl/src/instructions_c8.c 2013/02/27 14:12:57 1.3 +++ rpl/src/instructions_c8.c 2013/02/27 17:11:41 1.6 @@ -1,6 +1,6 @@ /* ================================================================================ - RPL/2 (R) version 4.1.12 + RPL/2 (R) version 4.1.13 Copyright (C) 1989-2013 Dr. BERTRAND Joël This file is part of RPL/2. @@ -292,7 +292,7 @@ instruction_cipher(struct_processus *s_e printf(" Usage:\n\n"); } - printf(" \"password\" { \"key\" \"DES-EDE-OFB\" \"SHA1\" " + printf(" \"password\" { \"KEY\" \"DES-EDE-OFB\" \"SHA1\" " "# 0h 3 } CIPHER\n"); printf(" \"text\" { \"ENCRYPT\" \"AES-128-CBC\" \"key\" " "\"iv\" } CIPHER\n"); @@ -1755,16 +1755,13 @@ instruction_cipher(struct_processus *s_e return; } - if (((*(*l_element_courant).donnee).objet = malloc( - (strlen(algorithme_chiffrement) + 1) * sizeof(unsigned char))) - == NULL) + if (((*(*l_element_courant).donnee).objet = + conversion_majuscule(algorithme_chiffrement)) == NULL) { (*s_etat_processus).erreur_systeme = d_es_allocation_memoire; return; } - strcpy((*(*l_element_courant).donnee).objet, algorithme_chiffrement); - // Clef if (((*l_element_courant).suivant = allocation_maillon(