feat(cybersecurity): auto-commit con 48 cambios

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-06-04 23:44:39 +02:00
parent efc9911925
commit 729921e16e
48 changed files with 3765 additions and 8 deletions
+10
View File
@@ -0,0 +1,10 @@
package cybersecurity
import "crypto/ed25519"
// SignEd25519 signs msg with an Ed25519 private key and returns the 64-byte signature.
// priv must be a valid Ed25519 private key (64 bytes as returned by GenerateIdentity or ed25519.GenerateKey).
// This function is pure: same inputs always produce the same output (ed25519 is deterministic).
func SignEd25519(priv, msg []byte) []byte {
return ed25519.Sign(ed25519.PrivateKey(priv), msg)
}