...
Package rocacheck
Package rocacheck checks if a key was generated by broken Infineon code and
is vulnerable to factorization via the Return of Coppersmith's Attack (ROCA)
/ CVE-2017-15361.
func IsWeak(k *rsa.PublicKey) bool
IsWeak returns true if a RSA public key is vulnerable to Return of
Coppersmith's Attack (ROCA).