Repository navigation
Add a Go envelope package tested against the shared vectors - #30
Conversation
bindings/go seals and opens the shared v1, v2, and v3 vectors with XChaCha20-Poly1305, HKDF-SHA256, and Argon2id from golang.org/x/crypto. Rewrap writes a version-3 blob. Co-authored-by: Admin <GoDeskio@users.noreply.github.com>
|
Review the following changes in direct dependencies. Learn more about Socket for GitHub.
|
|
Warning Review the following alerts detected in dependencies. According to your organization's Security Policy, it is recommended to resolve "Warn" alerts. Learn more about Socket for GitHub.
|
Summary
bindings/gois a Go package RailYard, Portkyl, and GitGoat can import. It is wire-compatible with the Rust and Python envelope.Rewrapdecrypts any supported blob and writes version 3 under the current key id.golang.org/x/crypto(XChaCha20-Poly1305, HKDF, Argon2id) and the Go standard library for AES-GCM. No other crypto library.Module path:
github.com/GoDeskio/Encryptoglyph/bindings/go.Local tests
Go 1.22.2 with the toolchain it selected for
golang.org/x/crypto v0.31.0, frombindings/go:8 tests, 8 passed, 0 failed.
go vet ./...exited 0.The shared-vector test decrypts
testvectors/envelope.jsonv1, v2, and v3, and the known-answer test reseals v3 with the vector nonce. The blind index matchesblind_index_hex.GitHub Actions is budget-blocked. A failure that only says the Actions budget is not a failure of this package.