github.com/shogo82148/std@v1.22.1-0.20240327122250-4e474527810c/crypto/ecdh/x25519.go (about)

     1  // Copyright 2022 The Go Authors. All rights reserved.
     2  // Use of this source code is governed by a BSD-style
     3  // license that can be found in the LICENSE file.
     4  
     5  package ecdh
     6  
     7  // X25519はCurve25519上でX25519関数を実装する [Curve] を返します
     8  // (RFC 7748、セクション5)。
     9  //
    10  // この関数の複数の呼び出しは同じ値を返すため、等価性チェックやスイッチ文に使用できます。
    11  func X25519() Curve