Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add size enforcement and tests #37

Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
tryin more stuff
  • Loading branch information
James-Pickett committed Apr 12, 2024
commit a90e10c8d5f434aff1e8b3dd6acb6cea18535bce
3 changes: 2 additions & 1 deletion cross_language_tests/aes_cross_test.go
Original file line number Diff line number Diff line change
@@ -49,6 +49,7 @@ func TestAesRuby(t *testing.T) {
dir := t.TempDir()
testfile := path.Join(dir, "testcase.msgpack")

// #nosec G306 -- Need readable files
t.Run("setup", func(t *testing.T) {
if tt.Key == nil {
tt.Key = mkrand(t, 32)
@@ -61,7 +62,7 @@ func TestAesRuby(t *testing.T) {
b, err := msgpack.Marshal(tt)
require.NoError(t, err)

require.NoError(t, os.WriteFile(testfile, []byte(base64.StdEncoding.EncodeToString(b)), 0644)) // #nosec G306 -- Need readable files
require.NoError(t, os.WriteFile(testfile, []byte(base64.StdEncoding.EncodeToString(b)), 0644))
})

t.Run("ruby decrypt go", func(t *testing.T) {
Loading