version 1.52, 2013/12/03 09:36:12
|
version 1.80, 2024/07/05 07:04:23
|
Line 1
|
Line 1
|
/* |
/* |
================================================================================ |
================================================================================ |
RPL/2 (R) version 4.1.17 |
RPL/2 (R) version 4.1.36 |
Copyright (C) 1989-2013 Dr. BERTRAND Joël |
Copyright (C) 1989-2024 Dr. BERTRAND Joël |
|
|
This file is part of RPL/2. |
This file is part of RPL/2. |
|
|
Line 605 instruction_diag_fleche(struct_processus
|
Line 605 instruction_diag_fleche(struct_processus
|
void |
void |
instruction_digest(struct_processus *s_etat_processus) |
instruction_digest(struct_processus *s_etat_processus) |
{ |
{ |
EVP_MD_CTX contexte; |
EVP_MD_CTX *contexte; |
|
|
const EVP_MD *EVP_sum; |
const EVP_MD *EVP_sum; |
const EVP_CIPHER *EVP_chiffrement; |
const EVP_CIPHER *EVP_chiffrement; |
Line 684 instruction_digest(struct_processus *s_e
|
Line 684 instruction_digest(struct_processus *s_e
|
printf(" - DES-EDE3-CB\n"); |
printf(" - DES-EDE3-CB\n"); |
printf(" - DESX-CBC\n"); |
printf(" - DESX-CBC\n"); |
# endif |
# endif |
# ifndef OPENSSL_NO_SHA |
|
printf(" - DSS\n"); |
|
printf(" - DSS1\n"); |
|
printf(" - ECDSA\n"); |
|
# endif |
|
# ifndef OPENSSL_NO_IDEA |
# ifndef OPENSSL_NO_IDEA |
printf(" - IDEA-CBC\n"); |
printf(" - IDEA-CBC\n"); |
# endif |
# endif |
Line 712 instruction_digest(struct_processus *s_e
|
Line 707 instruction_digest(struct_processus *s_e
|
# ifndef OPENSSL_NO_RIPEMD |
# ifndef OPENSSL_NO_RIPEMD |
printf(" - RIPEMD160\n"); |
printf(" - RIPEMD160\n"); |
# endif |
# endif |
# ifndef OPENSSL_NO_SHA |
|
printf(" - SHA\n"); |
|
printf(" - SHA1\n"); |
printf(" - SHA1\n"); |
# endif |
|
# ifndef OPENSSL_NO_SHA256 |
|
printf(" - SHA224\n"); |
printf(" - SHA224\n"); |
printf(" - SHA256\n"); |
printf(" - SHA256\n"); |
# endif |
|
# ifndef OPENSSL_NO_SHA512 |
|
printf(" - SHA384\n"); |
printf(" - SHA384\n"); |
printf(" - SHA512\n"); |
printf(" - SHA512\n"); |
# endif |
|
# ifndef OPENSSL_NO_WHIRLPOOL |
# ifndef OPENSSL_NO_WHIRLPOOL |
printf(" - WHIRLPOOL\n"); |
printf(" - WHIRLPOOL\n"); |
# endif |
# endif |
Line 778 instruction_digest(struct_processus *s_e
|
Line 766 instruction_digest(struct_processus *s_e
|
((*s_objet_argument_2).type == CHN)) |
((*s_objet_argument_2).type == CHN)) |
{ |
{ |
// Liste des sommes disponibles : |
// Liste des sommes disponibles : |
// - EVP_dss |
|
// - EVP_dss1 |
|
// - EVP_ecdsa |
|
// - EVP_md2 |
// - EVP_md2 |
// - EVP_md4 |
// - EVP_md4 |
// - EVP_md5 |
// - EVP_md5 |
// - EVP_mdc2 |
// - EVP_mdc2 |
// - EVP_ripemd160 |
// - EVP_ripemd160 |
// - EVP_sha |
|
// - EVP_sha1 |
// - EVP_sha1 |
// - EVP_sha224 |
// - EVP_sha224 |
// - EVP_sha256 |
// - EVP_sha256 |
Line 794 instruction_digest(struct_processus *s_e
|
Line 778 instruction_digest(struct_processus *s_e
|
// - EVP_sha512 |
// - EVP_sha512 |
// - EVP_whirlpool |
// - EVP_whirlpool |
|
|
if ((fonction = conversion_majuscule((unsigned char *) |
if ((fonction = conversion_majuscule(s_etat_processus, |
(*s_objet_argument_1).objet)) == NULL) |
(unsigned char *) (*s_objet_argument_1).objet)) == NULL) |
{ |
{ |
(*s_etat_processus).erreur_systeme = d_es_allocation_memoire; |
(*s_etat_processus).erreur_systeme = d_es_allocation_memoire; |
return; |
return; |
Line 805 instruction_digest(struct_processus *s_e
|
Line 789 instruction_digest(struct_processus *s_e
|
|
|
switch(fonction[0]) |
switch(fonction[0]) |
{ |
{ |
case 'D': |
|
{ |
|
switch(fonction[1]) |
|
{ |
|
case 'S': // ds |
|
{ |
|
switch(fonction[2]) |
|
{ |
|
# ifndef OPENSSL_NO_SHA |
|
case 'S': // dss |
|
{ |
|
switch(fonction[3]) |
|
{ |
|
case d_code_fin_chaine: |
|
{ |
|
EVP_sum = EVP_dss(); |
|
break; |
|
} |
|
|
|
case '1': // dss1 |
|
{ |
|
if (fonction[4] == d_code_fin_chaine) |
|
{ |
|
EVP_sum = EVP_dss1(); |
|
} |
|
else |
|
{ |
|
somme_invalide = d_vrai; |
|
} |
|
|
|
break; |
|
} |
|
|
|
default: |
|
{ |
|
somme_invalide = d_vrai; |
|
break; |
|
} |
|
} |
|
|
|
break; |
|
} |
|
# endif |
|
|
|
default: |
|
{ |
|
somme_invalide = d_vrai; |
|
break; |
|
} |
|
} |
|
|
|
break; |
|
} |
|
|
|
default: |
|
{ |
|
somme_invalide = d_vrai; |
|
break; |
|
} |
|
} |
|
|
|
break; |
|
} |
|
|
|
case 'E': |
|
{ |
|
switch(fonction[1]) |
|
{ |
|
case 'C': // ec |
|
{ |
|
switch(fonction[2]) |
|
{ |
|
case 'D': // ecd |
|
{ |
|
switch(fonction[3]) |
|
{ |
|
case 'S': // ecds |
|
{ |
|
switch(fonction[4]) |
|
{ |
|
# ifndef OPENSSL_NO_SHA |
|
case 'A': // ecdsa |
|
{ |
|
if (fonction[5] == |
|
d_code_fin_chaine) |
|
{ |
|
EVP_sum = EVP_ecdsa(); |
|
} |
|
else |
|
{ |
|
somme_invalide = d_vrai; |
|
} |
|
|
|
break; |
|
} |
|
# endif |
|
|
|
default: |
|
{ |
|
somme_invalide = d_vrai; |
|
break; |
|
} |
|
} |
|
|
|
break; |
|
} |
|
|
|
default: |
|
{ |
|
somme_invalide = d_vrai; |
|
break; |
|
} |
|
} |
|
|
|
break; |
|
} |
|
|
|
default: |
|
{ |
|
somme_invalide = d_vrai; |
|
break; |
|
} |
|
} |
|
|
|
break; |
|
} |
|
|
|
default: |
|
{ |
|
somme_invalide = d_vrai; |
|
break; |
|
} |
|
} |
|
|
|
break; |
|
} |
|
|
|
case 'M': |
case 'M': |
{ |
{ |
switch(fonction[1]) |
switch(fonction[1]) |
Line 1072 instruction_digest(struct_processus *s_e
|
Line 919 instruction_digest(struct_processus *s_e
|
{ |
{ |
switch(fonction[2]) |
switch(fonction[2]) |
{ |
{ |
# ifndef OPENSSL_NO_SHA |
|
case 'A': |
case 'A': |
{ |
{ |
switch(fonction[3]) |
switch(fonction[3]) |
{ |
{ |
case d_code_fin_chaine: |
|
{ |
|
EVP_sum = EVP_sha(); |
|
break; |
|
} |
|
|
|
case '1': // sha1 |
case '1': // sha1 |
{ |
{ |
if (fonction[4] == d_code_fin_chaine) |
if (fonction[4] == d_code_fin_chaine) |
Line 1097 instruction_digest(struct_processus *s_e
|
Line 937 instruction_digest(struct_processus *s_e
|
break; |
break; |
} |
} |
|
|
# ifndef OPENSSL_NO_SHA256 |
|
case '2': // sha2 |
case '2': // sha2 |
{ |
{ |
switch(fonction[4]) |
switch(fonction[4]) |
Line 1173 instruction_digest(struct_processus *s_e
|
Line 1012 instruction_digest(struct_processus *s_e
|
|
|
break; |
break; |
} |
} |
# endif |
|
|
|
# ifndef OPENSSL_NO_SHA512 |
|
case '3': // sha3 |
case '3': // sha3 |
{ |
{ |
switch(fonction[4]) |
switch(fonction[4]) |
Line 1265 instruction_digest(struct_processus *s_e
|
Line 1102 instruction_digest(struct_processus *s_e
|
|
|
break; |
break; |
} |
} |
# endif |
|
|
|
default: |
default: |
{ |
{ |
Line 1276 instruction_digest(struct_processus *s_e
|
Line 1112 instruction_digest(struct_processus *s_e
|
|
|
break; |
break; |
} |
} |
# endif |
|
|
|
default: |
default: |
{ |
{ |
Line 1333 instruction_digest(struct_processus *s_e
|
Line 1168 instruction_digest(struct_processus *s_e
|
return; |
return; |
} |
} |
|
|
if (EVP_DigestInit(&contexte, EVP_sum) != 1) |
if ((contexte = EVP_MD_CTX_new()) == NULL) |
{ |
{ |
EVP_MD_CTX_cleanup(&contexte); |
liberation(s_etat_processus, s_objet_argument_1); |
|
liberation(s_etat_processus, s_objet_argument_2); |
|
|
|
(*s_etat_processus).erreur_systeme = d_es_allocation_memoire; |
|
return; |
|
} |
|
|
|
if (EVP_DigestInit(contexte, EVP_sum) != 1) |
|
{ |
|
EVP_MD_CTX_free(contexte); |
|
|
liberation(s_etat_processus, s_objet_argument_1); |
liberation(s_etat_processus, s_objet_argument_1); |
liberation(s_etat_processus, s_objet_argument_2); |
liberation(s_etat_processus, s_objet_argument_2); |
Line 1347 instruction_digest(struct_processus *s_e
|
Line 1191 instruction_digest(struct_processus *s_e
|
if ((chaine = formateur_flux(s_etat_processus, (unsigned char *) |
if ((chaine = formateur_flux(s_etat_processus, (unsigned char *) |
(*s_objet_argument_2).objet, &longueur_chaine)) == NULL) |
(*s_objet_argument_2).objet, &longueur_chaine)) == NULL) |
{ |
{ |
EVP_MD_CTX_cleanup(&contexte); |
EVP_MD_CTX_free(contexte); |
|
|
liberation(s_etat_processus, s_objet_argument_1); |
liberation(s_etat_processus, s_objet_argument_1); |
liberation(s_etat_processus, s_objet_argument_2); |
liberation(s_etat_processus, s_objet_argument_2); |
Line 1355 instruction_digest(struct_processus *s_e
|
Line 1199 instruction_digest(struct_processus *s_e
|
return; |
return; |
} |
} |
|
|
if (EVP_DigestUpdate(&contexte, chaine, (size_t) longueur_chaine) != 1) |
if (EVP_DigestUpdate(contexte, chaine, (size_t) longueur_chaine) != 1) |
{ |
{ |
free(chaine); |
free(chaine); |
EVP_MD_CTX_cleanup(&contexte); |
EVP_MD_CTX_free(contexte); |
|
|
liberation(s_etat_processus, s_objet_argument_1); |
liberation(s_etat_processus, s_objet_argument_1); |
liberation(s_etat_processus, s_objet_argument_2); |
liberation(s_etat_processus, s_objet_argument_2); |
Line 1367 instruction_digest(struct_processus *s_e
|
Line 1211 instruction_digest(struct_processus *s_e
|
return; |
return; |
} |
} |
|
|
if (EVP_DigestFinal_ex(&contexte, somme, &longueur_somme) != 1) |
if (EVP_DigestFinal_ex(contexte, somme, &longueur_somme) != 1) |
{ |
{ |
free(chaine); |
free(chaine); |
EVP_MD_CTX_cleanup(&contexte); |
EVP_MD_CTX_free(contexte); |
|
|
liberation(s_etat_processus, s_objet_argument_1); |
liberation(s_etat_processus, s_objet_argument_1); |
liberation(s_etat_processus, s_objet_argument_2); |
liberation(s_etat_processus, s_objet_argument_2); |
Line 1380 instruction_digest(struct_processus *s_e
|
Line 1224 instruction_digest(struct_processus *s_e
|
} |
} |
|
|
free(chaine); |
free(chaine); |
EVP_MD_CTX_cleanup(&contexte); |
EVP_MD_CTX_free(contexte); |
|
|
if ((s_objet_resultat = allocation(s_etat_processus, CHN)) == NULL) |
if ((s_objet_resultat = allocation(s_etat_processus, CHN)) == NULL) |
{ |
{ |
Line 1446 instruction_digest(struct_processus *s_e
|
Line 1290 instruction_digest(struct_processus *s_e
|
|
|
l_element_courant = (*s_objet_argument_1).objet; |
l_element_courant = (*s_objet_argument_1).objet; |
|
|
if ((fonction = conversion_majuscule((unsigned char *) |
if ((fonction = conversion_majuscule(s_etat_processus, |
(*(*l_element_courant).donnee).objet)) == NULL) |
(unsigned char *) (*(*l_element_courant).donnee).objet)) |
|
== NULL) |
{ |
{ |
(*s_etat_processus).erreur_systeme = d_es_allocation_memoire; |
(*s_etat_processus).erreur_systeme = d_es_allocation_memoire; |
return; |
return; |
Line 1457 instruction_digest(struct_processus *s_e
|
Line 1302 instruction_digest(struct_processus *s_e
|
|
|
switch(fonction[0]) |
switch(fonction[0]) |
{ |
{ |
case 'D': |
|
{ |
|
switch(fonction[1]) |
|
{ |
|
case 'S': // ds |
|
{ |
|
switch(fonction[2]) |
|
{ |
|
# ifndef OPENSSL_NO_SHA |
|
case 'S': // dss |
|
{ |
|
switch(fonction[3]) |
|
{ |
|
case d_code_fin_chaine: |
|
{ |
|
EVP_sum = EVP_dss(); |
|
break; |
|
} |
|
|
|
case '1': // dss1 |
|
{ |
|
if (fonction[4] == d_code_fin_chaine) |
|
{ |
|
EVP_sum = EVP_dss1(); |
|
} |
|
else |
|
{ |
|
somme_invalide = d_vrai; |
|
} |
|
|
|
break; |
|
} |
|
|
|
default: |
|
{ |
|
somme_invalide = d_vrai; |
|
break; |
|
} |
|
} |
|
|
|
break; |
|
} |
|
# endif |
|
|
|
default: |
|
{ |
|
somme_invalide = d_vrai; |
|
break; |
|
} |
|
} |
|
|
|
break; |
|
} |
|
|
|
default: |
|
{ |
|
somme_invalide = d_vrai; |
|
break; |
|
} |
|
} |
|
|
|
break; |
|
} |
|
|
|
case 'E': |
|
{ |
|
switch(fonction[1]) |
|
{ |
|
case 'C': // ec |
|
{ |
|
switch(fonction[2]) |
|
{ |
|
case 'D': // ecd |
|
{ |
|
switch(fonction[3]) |
|
{ |
|
case 'S': // ecds |
|
{ |
|
switch(fonction[4]) |
|
{ |
|
# ifndef OPENSSL_NO_SHA |
|
case 'A': // ecdsa |
|
{ |
|
if (fonction[5] == |
|
d_code_fin_chaine) |
|
{ |
|
EVP_sum = EVP_ecdsa(); |
|
} |
|
else |
|
{ |
|
somme_invalide = d_vrai; |
|
} |
|
|
|
break; |
|
} |
|
# endif |
|
|
|
default: |
|
{ |
|
somme_invalide = d_vrai; |
|
break; |
|
} |
|
} |
|
|
|
break; |
|
} |
|
|
|
default: |
|
{ |
|
somme_invalide = d_vrai; |
|
break; |
|
} |
|
} |
|
|
|
break; |
|
} |
|
|
|
default: |
|
{ |
|
somme_invalide = d_vrai; |
|
break; |
|
} |
|
} |
|
|
|
break; |
|
} |
|
|
|
default: |
|
{ |
|
somme_invalide = d_vrai; |
|
break; |
|
} |
|
} |
|
|
|
break; |
|
} |
|
|
|
case 'M': |
case 'M': |
{ |
{ |
switch(fonction[1]) |
switch(fonction[1]) |
Line 1724 instruction_digest(struct_processus *s_e
|
Line 1432 instruction_digest(struct_processus *s_e
|
{ |
{ |
switch(fonction[2]) |
switch(fonction[2]) |
{ |
{ |
# ifndef OPENSSL_NO_SHA |
|
case 'A': |
case 'A': |
{ |
{ |
switch(fonction[3]) |
switch(fonction[3]) |
{ |
{ |
case d_code_fin_chaine: |
|
{ |
|
EVP_sum = EVP_sha(); |
|
break; |
|
} |
|
|
|
case '1': // sha1 |
case '1': // sha1 |
{ |
{ |
if (fonction[4] == d_code_fin_chaine) |
if (fonction[4] == d_code_fin_chaine) |
Line 1749 instruction_digest(struct_processus *s_e
|
Line 1450 instruction_digest(struct_processus *s_e
|
break; |
break; |
} |
} |
|
|
# ifndef OPENSSL_NO_SHA256 |
|
case '2': // sha2 |
case '2': // sha2 |
{ |
{ |
switch(fonction[4]) |
switch(fonction[4]) |
Line 1825 instruction_digest(struct_processus *s_e
|
Line 1525 instruction_digest(struct_processus *s_e
|
|
|
break; |
break; |
} |
} |
# endif |
|
|
|
# ifndef OPENSSL_NO_SHA512 |
|
case '3': // sha3 |
case '3': // sha3 |
{ |
{ |
switch(fonction[4]) |
switch(fonction[4]) |
Line 1917 instruction_digest(struct_processus *s_e
|
Line 1615 instruction_digest(struct_processus *s_e
|
|
|
break; |
break; |
} |
} |
# endif |
|
|
|
default: |
default: |
{ |
{ |
Line 1928 instruction_digest(struct_processus *s_e
|
Line 1625 instruction_digest(struct_processus *s_e
|
|
|
break; |
break; |
} |
} |
# endif |
|
|
|
default: |
default: |
{ |
{ |
Line 2277 instruction_digest(struct_processus *s_e
|
Line 1973 instruction_digest(struct_processus *s_e
|
|
|
memset(vecteur_initialisation, 0, (size_t) longueur_clef); |
memset(vecteur_initialisation, 0, (size_t) longueur_clef); |
|
|
if ((tampon = chiffrement(EVP_chiffrement, d_vrai, |
if ((tampon = chiffrement(s_etat_processus, EVP_chiffrement, d_vrai, |
chaine, longueur_chaine, clef, longueur_clef, |
chaine, longueur_chaine, clef, longueur_clef, |
vecteur_initialisation, &longueur_tampon)) == NULL) |
vecteur_initialisation, &longueur_tampon, 'Y')) == NULL) |
{ |
{ |
free(fonction); |
free(fonction); |
free(vecteur_initialisation); |
free(vecteur_initialisation); |
Line 2384 instruction_digest(struct_processus *s_e
|
Line 2080 instruction_digest(struct_processus *s_e
|
if ((chaine = formateur_flux(s_etat_processus, (unsigned char *) |
if ((chaine = formateur_flux(s_etat_processus, (unsigned char *) |
(*s_objet_argument_2).objet, &longueur_chaine)) == NULL) |
(*s_objet_argument_2).objet, &longueur_chaine)) == NULL) |
{ |
{ |
EVP_MD_CTX_cleanup(&contexte); |
|
|
|
liberation(s_etat_processus, s_objet_argument_1); |
liberation(s_etat_processus, s_objet_argument_1); |
liberation(s_etat_processus, s_objet_argument_2); |
liberation(s_etat_processus, s_objet_argument_2); |
|
|
Line 2403 instruction_digest(struct_processus *s_e
|
Line 2097 instruction_digest(struct_processus *s_e
|
memcpy(tampon + longueur_bloc, chaine, (size_t) longueur_chaine); |
memcpy(tampon + longueur_bloc, chaine, (size_t) longueur_chaine); |
longueur_tampon = longueur_bloc + longueur_chaine; |
longueur_tampon = longueur_bloc + longueur_chaine; |
|
|
if (EVP_DigestInit(&contexte, EVP_sum) != 1) |
if ((contexte = EVP_MD_CTX_new()) == NULL) |
|
{ |
|
liberation(s_etat_processus, s_objet_argument_1); |
|
liberation(s_etat_processus, s_objet_argument_2); |
|
|
|
(*s_etat_processus).erreur_systeme = d_es_allocation_memoire; |
|
return; |
|
} |
|
|
|
if (EVP_DigestInit(contexte, EVP_sum) != 1) |
{ |
{ |
free(tampon); |
free(tampon); |
free(clef); |
free(clef); |
free(chaine); |
free(chaine); |
|
|
EVP_MD_CTX_cleanup(&contexte); |
EVP_MD_CTX_free(contexte); |
|
|
liberation(s_etat_processus, s_objet_argument_1); |
liberation(s_etat_processus, s_objet_argument_1); |
liberation(s_etat_processus, s_objet_argument_2); |
liberation(s_etat_processus, s_objet_argument_2); |
Line 2418 instruction_digest(struct_processus *s_e
|
Line 2121 instruction_digest(struct_processus *s_e
|
return; |
return; |
} |
} |
|
|
if (EVP_DigestUpdate(&contexte, tampon, (size_t) longueur_tampon) |
if (EVP_DigestUpdate(contexte, tampon, (size_t) longueur_tampon) |
!= 1) |
!= 1) |
{ |
{ |
free(tampon); |
free(tampon); |
free(clef); |
free(clef); |
free(chaine); |
free(chaine); |
|
|
EVP_MD_CTX_cleanup(&contexte); |
EVP_MD_CTX_free(contexte); |
|
|
liberation(s_etat_processus, s_objet_argument_1); |
liberation(s_etat_processus, s_objet_argument_1); |
liberation(s_etat_processus, s_objet_argument_2); |
liberation(s_etat_processus, s_objet_argument_2); |
Line 2436 instruction_digest(struct_processus *s_e
|
Line 2139 instruction_digest(struct_processus *s_e
|
|
|
free(tampon); |
free(tampon); |
|
|
if (EVP_DigestFinal_ex(&contexte, somme, &longueur_somme) != 1) |
if (EVP_DigestFinal_ex(contexte, somme, &longueur_somme) != 1) |
{ |
{ |
free(chaine); |
free(chaine); |
EVP_MD_CTX_cleanup(&contexte); |
EVP_MD_CTX_free(contexte); |
|
|
liberation(s_etat_processus, s_objet_argument_1); |
liberation(s_etat_processus, s_objet_argument_1); |
liberation(s_etat_processus, s_objet_argument_2); |
liberation(s_etat_processus, s_objet_argument_2); |
Line 2448 instruction_digest(struct_processus *s_e
|
Line 2151 instruction_digest(struct_processus *s_e
|
return; |
return; |
} |
} |
|
|
EVP_MD_CTX_cleanup(&contexte); |
EVP_MD_CTX_reset(contexte); |
|
|
for(i = 0; i < longueur_bloc; i++) |
for(i = 0; i < longueur_bloc; i++) |
{ |
{ |
Line 2466 instruction_digest(struct_processus *s_e
|
Line 2169 instruction_digest(struct_processus *s_e
|
memcpy(tampon + longueur_bloc, somme, (size_t) longueur_somme); |
memcpy(tampon + longueur_bloc, somme, (size_t) longueur_somme); |
longueur_tampon = longueur_bloc + longueur_somme; |
longueur_tampon = longueur_bloc + longueur_somme; |
|
|
if (EVP_DigestInit(&contexte, EVP_sum) != 1) |
if (EVP_DigestInit(contexte, EVP_sum) != 1) |
{ |
{ |
free(tampon); |
free(tampon); |
free(clef); |
free(clef); |
free(chaine); |
free(chaine); |
|
|
EVP_MD_CTX_cleanup(&contexte); |
EVP_MD_CTX_free(contexte); |
|
|
liberation(s_etat_processus, s_objet_argument_1); |
liberation(s_etat_processus, s_objet_argument_1); |
liberation(s_etat_processus, s_objet_argument_2); |
liberation(s_etat_processus, s_objet_argument_2); |
Line 2481 instruction_digest(struct_processus *s_e
|
Line 2184 instruction_digest(struct_processus *s_e
|
return; |
return; |
} |
} |
|
|
if (EVP_DigestUpdate(&contexte, tampon, (size_t) longueur_tampon) |
if (EVP_DigestUpdate(contexte, tampon, (size_t) longueur_tampon) |
!= 1) |
!= 1) |
{ |
{ |
free(tampon); |
free(tampon); |
free(clef); |
free(clef); |
free(chaine); |
free(chaine); |
|
|
EVP_MD_CTX_cleanup(&contexte); |
EVP_MD_CTX_free(contexte); |
|
|
liberation(s_etat_processus, s_objet_argument_1); |
liberation(s_etat_processus, s_objet_argument_1); |
liberation(s_etat_processus, s_objet_argument_2); |
liberation(s_etat_processus, s_objet_argument_2); |
Line 2499 instruction_digest(struct_processus *s_e
|
Line 2202 instruction_digest(struct_processus *s_e
|
|
|
free(tampon); |
free(tampon); |
|
|
if (EVP_DigestFinal_ex(&contexte, somme, &longueur_somme) != 1) |
if (EVP_DigestFinal_ex(contexte, somme, &longueur_somme) != 1) |
{ |
{ |
free(chaine); |
free(chaine); |
EVP_MD_CTX_cleanup(&contexte); |
EVP_MD_CTX_free(contexte); |
|
|
liberation(s_etat_processus, s_objet_argument_1); |
liberation(s_etat_processus, s_objet_argument_1); |
liberation(s_etat_processus, s_objet_argument_2); |
liberation(s_etat_processus, s_objet_argument_2); |
Line 2511 instruction_digest(struct_processus *s_e
|
Line 2214 instruction_digest(struct_processus *s_e
|
return; |
return; |
} |
} |
|
|
EVP_MD_CTX_cleanup(&contexte); |
EVP_MD_CTX_free(contexte); |
|
|
free(chaine); |
free(chaine); |
free(clef); |
free(clef); |