Standard library / crypto/tls

tls.TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA256

IANA cipher suite identifier TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA256. Historical TLS 1.2-or-earlier identifier; availability and security depend on the suite and toolchain. Do not enable obsolete suites merely because the constant exists. The example prints the numeric identifier, not a negotiated value. Expected stdout: '49187\n'.

Formal Syntax & Structure

go syntaxgo
const TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA256 uint16 = 49187

Working Example

Example Snippetgo
package main
import (  "crypto/tls"  "fmt")
func main() { fmt.Println(uint16(tls.TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA256)) }
func must[T any](v T, e error) T {  if e != nil {    panic(e)  }  return v}func check(e error) {  if e != nil {    panic(e)  }}
Go Reference