Standard library / crypto/x509

crypto/x509.SHA512WithRSA

Signature algorithm identifier SHA512WithRSA. An identifier is not proof of signature validity or support in every protocol. Expected stdout: '6\n'.

Formal Syntax & Structure

go syntaxgo
const SHA512WithRSA SignatureAlgorithm = 6

Working Example

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