我爱占星网 我爱占星网
首页
编程
java
php
前端
首页 编程 java php 前端

x509 CheckSignature参数

In the x509 library, there is a function called CheckSignature. I'm a bit lost as to what to pass into signed. What is it supposed to be?

The function is

func (c *Certificate) CheckSignature(algo SignatureAlgorithm, signed, signature []byte) (err error)

https://golang.org/src/crypto/x509/x509.go?s=21660:21759#L623

Another thing I want to double is that if I signed something with the private key associated with the certificate, will that signature pass this CheckSignature function?

signed looks to be the certificate in ASN.1 DER format of the signer.

近期文章

  • 为什么Go的Logger无法关闭与syslog的连接?
  • Golang GORP-没有错误,没有结果
  • Goclipse中没有显示轮廓
  • 如何使用go stdlib加载DSA PublicKey
  • 在运行时转储Go进程堆
  • 将日志或配置引用传递给自定义Go程序包
  • 使用nullString的golang gorp select失败
  • GCC 5.2安装/更新(OS X 10.10)
  • net / context的cancel()函数做什么?
  • 带-linkshared选项的v 1.5版产生链接错误
  • CircleCI和Golang-无法导入AWS开发工具包
  • Golang中的GoProxy SSL拦截
  • Golang:检索大猩猩/会话Cookie
  • 在Swig生成的Go代码中获取空指针取消引用
  • 在Go中迷失于Dijkstra
  • 在Heroku上“呈现”吗?
  • 需要在Ubuntu 14.04(trusty64)上将Go 1.2.1升级到1.3+
  • Windows系统调用
  • 有什么方法可以使用Go执行跟踪器在多服务基础架构中收集全局跟踪?
  • 将相同的关键字分配给多个goroutine

Copyright ©2022 我爱占星 All Rights Reserved.

浙ICP备2022030071号-1

部分图文来自网络,如有侵犯您的版权,请告诉我们删除

友情链接:代码精华