Standard library / crypto/tls

tls.PKCS1WithSHA256

TLS signature scheme identifier PKCS1WithSHA256. Actual negotiation depends on peer capabilities and policy. The example prints the numeric identifier, not a negotiated value. Expected stdout: '1025\n'.

Formal Syntax & Structure

go syntaxgo
const PKCS1WithSHA256 SignatureScheme = 1025

Working Example

Example Snippetgo
package main
import (  "crypto/tls"  "fmt")
func main() { fmt.Println(uint16(tls.PKCS1WithSHA256)) }
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