Files
tsnet-proxy/vendor/github.com/tailscale/wireguard-go/device/aead_other.go
T
2026-10-22 12:27:19 +01:00

19 lines
331 B
Go

//go:build !arm && !(amd64 && gc && !purego)
/* SPDX-License-Identifier: MIT
*
* Copyright (C) 2017-2023 WireGuard LLC. All Rights Reserved.
*/
package device
import (
"crypto/cipher"
"golang.org/x/crypto/chacha20poly1305"
)
func chacha20poly1305New(key []byte) (cipher.AEAD, error) {
return chacha20poly1305.New(key)
}