func (alg Algorithm) Hash() crypto.Hash {
	switch alg {
	case AlgorithmRS1:
		return crypto.SHA1
	case AlgorithmRS512, AlgorithmPS512, AlgorithmES512:
		return crypto.SHA512
	case AlgorithmRS384, AlgorithmPS384, AlgorithmES384:
		return crypto.SHA384
	case AlgorithmRS256, AlgorithmPS256, AlgorithmES256:
		return crypto.SHA256
	case AlgorithmEdDSA:
		return 0 // hashing is already part of EdDSA itself
	default:
		return 0 // unknown
	}
}
// Hash returns the cryptographic Hash used by the algorithm.
Hash returns the cryptographic Hash used by the algorithm.
// Hash returns the cryptographic Hash used by the algorithm .
func (alg Algorithm) Hash() crypto.Hash {
	switch alg {
	case AlgorithmRS1:
		return crypto.SHA1
	case AlgorithmRS512, AlgorithmPS512, AlgorithmES512:
		return crypto.SHA512
	case AlgorithmRS384, AlgorithmPS384, AlgorithmES384:
		return crypto.SHA384
	case AlgorithmRS256, AlgorithmPS256, AlgorithmES256:
		return crypto.SHA256
	case AlgorithmEdDSA:
		return 0 
	default:
		return 0 
	}
}
func ( alg Algorithm ) Hash ( ) crypto . Hash { switch alg { case AlgorithmRS1 : return crypto . SHA1 case AlgorithmRS512 , AlgorithmPS512 , AlgorithmES512 : return crypto . SHA512 case AlgorithmRS384 , AlgorithmPS384 , AlgorithmES384 : return crypto . SHA384 case AlgorithmRS256 , AlgorithmPS256 , AlgorithmES256 : return crypto . SHA256 case AlgorithmEdDSA : return 0 default : return 0 } }
Hash returns the cryptographic Hash used by the algorithm.
Hash returns the cryptographic Hash used by the algorithm .
// hashing is already part of EdDSA itself // unknown