Install & Compatibility
Where this runs
No compatibility data collected yet for this library.
Code
Verified usage
Verified import paths — ran on the pinned version, not inferred.
crypto
✓ github.com/jacobsa/crypto
Encrypts plaintext using AES-SIV mode.
package main
import (
"fmt"
"github.com/jacobsa/crypto/siv"
)
func main() {
key := make([]byte, 32)
plaintext := []byte("Hello, world!")
aad := []byte("additional data")
ciphertext, err := siv.Encrypt(key, plaintext, aad)
if err != nil {
panic(err)
}
fmt.Printf("Ciphertext: %x\n", ciphertext)
}
Debug
Known issues
No known issues recorded.
Upgrade
Version history
0.0.0-20190317225127-9f44e2d11115latest on pkg.go.dev
Audit
Dependencies
No dependency data recorded yet.