Skip to content
GitLab
Explorer
Connexion
S'inscrire
Navigation principale
Rechercher ou aller à…
Projet
L
LEPL1503-2022-skeleton
Gestion
Activité
Membres
Labels
Programmation
Tickets
Tableaux des tickets
Jalons
Wiki
Code
Requêtes de fusion
Dépôt
Branches
Validations
Étiquettes
Graphe du dépôt
Comparer les révisions
Extraits de code
Compilation
Pipelines
Jobs
Planifications de pipeline
Artéfacts
Déploiement
Releases
Registre de paquets
Registre de conteneur
Registre de modèles
Opération
Environnements
Modules Terraform
Surveillance
Incidents
Analyse
Données d'analyse des chaînes de valeur
Analyse des contributeurs
Données d'analyse CI/CD
Données d'analyse du dépôt
Expériences du modèle
Aide
Aide
Support
Documentation de GitLab
Comparer les forfaits GitLab
Forum de la communauté
Contribuer à GitLab
Donner votre avis
Conditions générales et politique de confidentialité
Raccourcis clavier
?
Extraits de code
Groupes
Projets
Afficher davantage de fils d'Ariane
Guillaume Deceuninck
LEPL1503-2022-skeleton
Validations
898ee96e
Valider
898ee96e
rédigé
3 years ago
par
Louis Navarre
Parcourir les fichiers
Options
Téléchargements
Correctifs
Plain Diff
Follow Python code for GF 25§ functions
parent
c9b1059f
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
Modifications
1
Masquer les modifications d'espaces
En ligne
Côte à côte
Affichage de
1 fichier modifié
headers/system.h
+8
-9
8 ajouts, 9 suppressions
headers/system.h
avec
8 ajouts
et
9 suppressions
headers/system.h
+
8
−
9
Voir le fichier @
898ee96e
...
...
@@ -16,18 +16,17 @@ typedef struct
* @param symbol_size: size of the two symbols (of the same size!)
* @return: a new vector of `symbol_size` byte containing the result of symbol_1 + symbol_2 in GF(256)
*/
uint8_t
*
gf256_add_
two_
vector
s
(
uint8_t
*
symbol_1
,
uint8_t
*
symbol_2
,
uint32_t
symbol_size
);
uint8_t
*
gf
_
256_
full_
add_vector
(
uint8_t
*
symbol_1
,
uint8_t
*
symbol_2
,
uint32_t
symbol_size
);
/**
*
* Add two vectors in a Galois Field 256 where the second vector is scaled
* @param symbol_1: the first symbol to add
* @param symbol_2: the second symbol to add (the scaled one)
* Multiply a vector by a coefficient in a Galois Field 256
* @param symbol: the symbol to multiply
* @param coef: the coefficient of the scaling
* @param symbol_size: size of the
two
symbol
s (of the same size!)
* @return: a new vector of `symbol_size` byte containing the result of symbol
_1 + symbol_2
* coef in GF(256)
* @param symbol_size: size of the symbol
* @return: a new vector of `symbol_size` byte containing the result of symbol * coef in GF(256)
*/
uint8_t
*
gf256_
add_two_vectors_scaled
(
uint8_t
*
symbol_1
,
uint8_t
*
symbol_2
,
uint8_t
coef
,
uint32_t
symbol_size
);
uint8_t
*
gf
_
256_
mul_vector
(
uint8_t
*
symbol
,
uint8_t
coef
,
uint32_t
symbol_size
);
/**
*
...
...
@@ -35,9 +34,9 @@ uint8_t *gf256_add_two_vectors_scaled(uint8_t *symbol_1, uint8_t *symbol_2, uint
* @param symbol: the symbol to add
* @param coef: the dividing coefficient
* @param symbol_size: size of the two symbols (of the same size!)
* @return: a new vector of `symbol_size` byte containing the result of symbol
_1
/ coef
* @return: a new vector of `symbol_size` byte containing the result of symbol / coef
*/
uint8_t
*
gf256_
divide
_vector
_scaled
(
uint8_t
*
symbol
,
uint8_t
coef
,
uint32_t
symbol_size
);
uint8_t
*
gf
_
256_
inv
_vector
(
uint8_t
*
symbol
,
uint8_t
coef
,
uint32_t
symbol_size
);
/**
*
...
...
Ce diff est replié.
Cliquez pour l'agrandir.
Aperçu
0%
Chargement en cours
Veuillez réessayer
ou
joindre un nouveau fichier
.
Annuler
You are about to add
0
people
to the discussion. Proceed with caution.
Terminez d'abord l'édition de ce message.
Enregistrer le commentaire
Annuler
Veuillez vous
inscrire
ou vous
se connecter
pour commenter