code: func verifyKeyData(data []byte) bool {
  	if len(data) == 0 {
  		return false
  	}
  	_, err := ParsePrivateKeyPEM(data)
  	return err == nil
  }
docs: // verifyKeyData returns true if the provided data appears to be a valid private key.