version 1.32, 2019/01/01 09:02:46
|
version 1.39, 2023/08/07 17:42:49
|
Line 1
|
Line 1
|
/* |
/* |
================================================================================ |
================================================================================ |
RPL/2 (R) version 4.1.30 |
RPL/2 (R) version 4.1.35 |
Copyright (C) 1989-2019 Dr. BERTRAND Joël |
Copyright (C) 1989-2023 Dr. BERTRAND Joël |
|
|
This file is part of RPL/2. |
This file is part of RPL/2. |
|
|
Line 43 chiffrement(struct_processus *s_etat_pro
|
Line 43 chiffrement(struct_processus *s_etat_pro
|
unsigned char *vecteur_initialisation, |
unsigned char *vecteur_initialisation, |
integer8 *longueur_message_chiffre) |
integer8 *longueur_message_chiffre) |
{ |
{ |
int i; |
|
int longueur_bloc_de_chiffrement; |
int longueur_bloc_de_chiffrement; |
int longueur_message_1; |
int longueur_message_1; |
int longueur_message_2; |
int longueur_message_2; |
Line 98 chiffrement(struct_processus *s_etat_pro
|
Line 97 chiffrement(struct_processus *s_etat_pro
|
|
|
// Mise à jour du vecteur d'initialisation |
// Mise à jour du vecteur d'initialisation |
|
|
for(i = 0; i < EVP_CIPHER_iv_length(type_chiffrement); i++) |
EVP_CIPHER_CTX_get_updated_iv(contexte, vecteur_initialisation, |
{ |
(size_t) EVP_CIPHER_iv_length(type_chiffrement)); |
vecteur_initialisation[i] = EVP_CIPHER_CTX_iv(contexte)[i]; |
|
} |
|
|
|
EVP_CIPHER_CTX_free(contexte); |
EVP_CIPHER_CTX_free(contexte); |
|
|