mirror of
https://github.com/FiloSottile/age.git
synced 2026-01-07 12:35:14 +00:00
age: reject leading zeroes and sign in scrypt work factor
This commit is contained in:
@@ -6,18 +6,14 @@
|
||||
|
||||
package main
|
||||
|
||||
import (
|
||||
"strings"
|
||||
|
||||
"filippo.io/age/internal/testkit"
|
||||
)
|
||||
import "filippo.io/age/internal/testkit"
|
||||
|
||||
func main() {
|
||||
f := testkit.NewTestFile()
|
||||
f.VersionLine("v1")
|
||||
f.X25519(testkit.TestX25519Recipient)
|
||||
body, args := f.UnreadLine(), f.UnreadLine()
|
||||
f.TextLine(strings.Replace(args, "X25519", "x25519", -1))
|
||||
body, args := f.UnreadLine(), f.UnreadArgsLine()
|
||||
f.ArgsLine("x25519", args[1])
|
||||
f.TextLine(body)
|
||||
f.HMAC()
|
||||
f.Payload("age")
|
||||
|
||||
Reference in New Issue
Block a user