diff --git a/sevo-bin b/sevo-bin new file mode 100755 index 0000000..04dc78a Binary files /dev/null and b/sevo-bin differ diff --git a/sevo-bin.asc b/sevo-bin.asc new file mode 100644 index 0000000..096ddfd --- /dev/null +++ b/sevo-bin.asc @@ -0,0 +1,7 @@ +-----BEGIN PGP SIGNATURE----- + +iHUEABYKAB0WIQSIYqsGDRigdWDP1eXlYWVV3U7argUCZzlOsQAKCRDlYWVV3U7a +roKJAP9h/9PsPwIH6BMujQh6rwwBeYwrA87b9SKfY1fSukBQwgD/TUzIhAorxwgc +NzmH4kbYusvMEl6FC6isrOUT7nH8AAc= +=X7M6 +-----END PGP SIGNATURE----- diff --git a/sevo-bin.sha3-256 b/sevo-bin.sha3-256 new file mode 100644 index 0000000..7e819d5 --- /dev/null +++ b/sevo-bin.sha3-256 @@ -0,0 +1 @@ +dd1fadf7f9e4d94d870c2b105fb165a00009c9b20aa56e43bb376341ea241301 sevo-bin diff --git a/sevo-bin.sha3-256.asc b/sevo-bin.sha3-256.asc new file mode 100644 index 0000000..2346473 --- /dev/null +++ b/sevo-bin.sha3-256.asc @@ -0,0 +1,7 @@ +-----BEGIN PGP SIGNATURE----- + +iHUEABYKAB0WIQSIYqsGDRigdWDP1eXlYWVV3U7argUCZzlOsQAKCRDlYWVV3U7a +rk0RAQD8dZkMcn9h8kxUndEHxtwA7GEJTeiBBbY1kLdvnf2dDwD+M0+O/kxVfTAl +lhgE4T95NrRni6ARG6NizrouR5xLAQI= +=ME9q +-----END PGP SIGNATURE----- diff --git a/verify.sh b/verify.sh new file mode 100755 index 0000000..07d0f98 --- /dev/null +++ b/verify.sh @@ -0,0 +1,42 @@ +#!/bin/bash + +# Colores +GREEN='\033[0;32m' +RED='\033[0;31m' +YELLOW='\033[1;33m' +NC='\033[0m' + +echo "🔍 Verificando SEVO..." + +# Verificar firma GPG del binario +echo -e "${YELLOW}📦 Verificando firma del binario...${NC}" +if gpg --verify sevo-bin.asc sevo-bin 2>/dev/null; then + echo -e "${GREEN}✓ Firma del binario válida${NC}" +else + echo -e "${RED}✗ Error: Firma del binario inválida${NC}" + exit 1 +fi + +# Verificar firma del archivo SHA3 +echo -e "${YELLOW}🔐 Verificando firma del archivo SHA3...${NC}" +if gpg --verify sevo-bin.sha3-256.asc sevo-bin.sha3-256 2>/dev/null; then + echo -e "${GREEN}✓ Firma del SHA3 válida${NC}" +else + echo -e "${RED}✗ Error: Firma del SHA3 inválida${NC}" + exit 1 +fi + +# Verificar suma SHA3-256 +echo -e "${YELLOW}🔍 Verificando suma SHA3-256...${NC}" +STORED_HASH=$(cat sevo-bin.sha3-256) +CALCULATED_HASH=$(rhash --sha3-256 sevo-bin) +if [ "$STORED_HASH" = "$CALCULATED_HASH" ]; then + echo -e "${GREEN}✓ Suma SHA3-256 válida${NC}" +else + echo -e "${RED}✗ Error: Suma SHA3-256 inválida${NC}" + echo -e "Esperado: $STORED_HASH" + echo -e "Calculado: $CALCULATED_HASH" + exit 1 +fi + +echo -e "${GREEN}✅ Verificación completada exitosamente${NC}"