I want to sign a SHA-256 hash with DSA.
Using Java I can write:
Signature sig = Signature.getInstance("SHA256withDSA");
sig.initSign(priKey);
sig.update(new byte[]{1});
byte[] sign = sig.sign();
System.out.println(HexUtil.encodeHexStr(sign));
Using the Go language, I couldn't find any way to resolve it
The only instance of checking a
DSAWithSHA256signature in go is ingithub.com/avast/apkverifierBut actually using the signature algorithm is indeed unsupported, for reason illustrated in
github.com/grantae/certinfoHence its unsupported status in Go
crypto/x509package.