func (p *Plugin) InitPlugin(messenger plugin.BinaryMessenger) error {
	p.channel = plugin.NewMethodChannel(messenger, channelName, plugin.StandardMethodCodec{})
	p.instance = openPGPMobile.NewFastOpenPGP()
	p.channel.HandleFunc("encrypt", p.encrypt)
	p.channel.HandleFunc("decrypt", p.decrypt)
	p.channel.HandleFunc("encryptSymmetric", p.encryptSymmetric)
	p.channel.HandleFunc("decryptSymmetric", p.decryptSymmetric)
	p.channel.HandleFunc("sign", p.sign)
	p.channel.HandleFunc("verify", p.verify)
	p.channel.HandleFunc("generate", p.generate)
	p.channel.CatchAllHandleFunc(p.catchAllTest)

	return nil
}
// InitPlugin initializes the plugin.
InitPlugin initializes the plugin.
// InitPlugin initializes the plugin .
func (p *Plugin) InitPlugin(messenger plugin.BinaryMessenger) error {
	p.channel = plugin.NewMethodChannel(messenger, channelName, plugin.StandardMethodCodec{})
	p.instance = openPGPMobile.NewFastOpenPGP()
	p.channel.HandleFunc("encrypt", p.encrypt)
	p.channel.HandleFunc("decrypt", p.decrypt)
	p.channel.HandleFunc("encryptSymmetric", p.encryptSymmetric)
	p.channel.HandleFunc("decryptSymmetric", p.decryptSymmetric)
	p.channel.HandleFunc("sign", p.sign)
	p.channel.HandleFunc("verify", p.verify)
	p.channel.HandleFunc("generate", p.generate)
	p.channel.CatchAllHandleFunc(p.catchAllTest)
	return nil
}
func ( p * Plugin ) InitPlugin ( messenger plugin . BinaryMessenger ) error { p . channel = plugin . NewMethodChannel ( messenger , channelName , plugin . StandardMethodCodec { } ) p . instance = openPGPMobile . NewFastOpenPGP ( ) p . channel . HandleFunc ( " " , p . encrypt ) p . channel . HandleFunc ( " " , p . decrypt ) p . channel . HandleFunc ( " " , p . encryptSymmetric ) p . channel . HandleFunc ( " " , p . decryptSymmetric ) p . channel . HandleFunc ( " " , p . sign ) p . channel . HandleFunc ( " " , p . verify ) p . channel . HandleFunc ( " " , p . generate ) p . channel . CatchAllHandleFunc ( p . catchAllTest ) return nil }
InitPlugin initializes the plugin.
InitPlugin initializes the plugin .