Use BLAKE2b checksum instead of SHA-1 and SHA-512
This commit is contained in:
parent
9325419002
commit
e6e6e6c206
7 changed files with 58 additions and 38 deletions
|
@ -110,7 +110,7 @@ CREATE TABLE IF NOT EXISTS exercice_files(
|
|||
path VARCHAR(255) NOT NULL UNIQUE,
|
||||
id_exercice INTEGER NOT NULL,
|
||||
name VARCHAR(255) NOT NULL,
|
||||
sha1 BINARY(20) NOT NULL,
|
||||
cksum BINARY(64) NOT NULL,
|
||||
size INTEGER NOT NULL,
|
||||
FOREIGN KEY(id_exercice) REFERENCES exercices(id_exercice)
|
||||
);
|
||||
|
@ -134,7 +134,7 @@ CREATE TABLE IF NOT EXISTS exercice_keys(
|
|||
id_key INTEGER NOT NULL PRIMARY KEY AUTO_INCREMENT,
|
||||
id_exercice INTEGER NOT NULL,
|
||||
type VARCHAR(255) NOT NULL,
|
||||
value BINARY(64) NOT NULL,
|
||||
cksum BINARY(64) NOT NULL,
|
||||
FOREIGN KEY(id_exercice) REFERENCES exercices(id_exercice)
|
||||
);
|
||||
`); err != nil {
|
||||
|
|
Reference in a new issue