github.com/LagrangeDev/LagrangeGo@v0.0.0-20240512064304-ad4a85e10cb4/utils/crypto/ecdh/define.go (about)

     1  package ecdh
     2  
     3  import (
     4  	"encoding/hex"
     5  )
     6  
     7  var (
     8  	ecdhP256PublicBytes, _ = hex.DecodeString("049D1423332735980EDABE7E9EA451B3395B6F35250DB8FC56F25889F628CBAE3E8E73077914071EEEBC108F4E0170057792BB17AA303AF652313D17C1AC815E79")
     9  	// ecdhS192PublicBytes, _ = hex.DecodeString("04928D8850673088B343264E0C6BACB8496D697799F37211DEB25BB73906CB089FEA9639B4E0260498B51A992D50813DA8")
    10  )
    11  
    12  var (
    13  	p256 = newp256exchanger()
    14  	// s192 = news192exchanger()
    15  )
    16  
    17  /*
    18  
    19  func S192() Exchanger {
    20  	return s192
    21  }
    22  
    23  */
    24  
    25  func P256() Exchanger {
    26  	return p256
    27  }