Skip to content

Commit

Permalink
Deprecate XorBytes
Browse files Browse the repository at this point in the history
Now that we no longer support Go 1.19, we might as well
deprecate XorBytes and use the stdlib version instead.
  • Loading branch information
jech committed Sep 20, 2024
1 parent e8ac9ae commit e62d789
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 256 deletions.
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@ require (
github.com/stretchr/testify v1.9.0
github.com/wlynxg/anet v0.0.4
golang.org/x/net v0.28.0
golang.org/x/sys v0.24.0
)

require (
github.com/davecgh/go-spew v1.1.1 // indirect
github.com/pmezard/go-difflib v1.0.0 // indirect
golang.org/x/sys v0.24.0 // indirect
gopkg.in/yaml.v3 v3.0.1 // indirect
)
4 changes: 2 additions & 2 deletions utils/xor/xor_generic.go → utils/xor/xor.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@
// SPDX-FileCopyrightText: 2024 The Pion community <https://pion.ly>
// SPDX-License-Identifier: MIT

//go:build go1.20 && !arm && !gccgo

// Package xor provides the XorBytes function.
package xor

Expand All @@ -14,6 +12,8 @@ import (

// XorBytes calls [crypto/suble.XORBytes].
//
// Deprecated: please call [crypto/subtle.XORBytes] instead.
//
//revive:disable-next-line
func XorBytes(dst, a, b []byte) int {
return subtle.XORBytes(dst, a, b)
Expand Down
60 changes: 0 additions & 60 deletions utils/xor/xor_arm.go

This file was deleted.

116 changes: 0 additions & 116 deletions utils/xor/xor_arm.s

This file was deleted.

77 changes: 0 additions & 77 deletions utils/xor/xor_old.go

This file was deleted.

0 comments on commit e62d789

Please sign in to comment.