func NewSignDetachedArmor62Stream(version Version, detachedsig io.Writer, signer SigningSecretKey, brand string) (stream io.WriteCloser, err error) {
	enc, err := NewArmor62EncoderStream(detachedsig, MessageTypeDetachedSignature, brand)
	if err != nil {
		return nil, err
	}
	out, err := NewSignDetachedStream(version, enc, signer)
	if err != nil {
		return nil, err
	}
	return closeForwarder([]io.WriteCloser{out, enc}), nil
}
NewSignDetachedArmor62Stream creates a stream that consumes plaintext data.
It will write out the detached signature to the io.Writer passed in as
detachedsig. The `brand` is optional, and allows you to specify
your "white label" brand to this signature.

The signed data is armored with the recommended armor62-style
NewSignDetachedArmor62Stream only generates detached signatures.

The signature is armored with the recommended armor62-style
format.
package saltpack
import "io"
func applyBrand(f func(Version, io.Writer, SigningSecretKey, string) (io.WriteCloser, error), brand string) func(Version, io.Writer, SigningSecretKey) (io.WriteCloser, error) {
	return func(version Version, signedtext io.Writer, signer SigningSecretKey) (io.WriteCloser, error) {
		return f(version, signedtext, signer, brand)
	}
}
func NewSignArmor62Stream(version Version, signedtext io.Writer, signer SigningSecretKey, brand string) (stream io.WriteCloser, err error) {
	enc, err := NewArmor62EncoderStream(signedtext, MessageTypeAttachedSignature, brand)
	if err != nil {
		return nil, err
	}
	out, err := NewSignStream(version, enc, signer)
	if err != nil {
		return nil, err
	}
	return closeForwarder([]io.WriteCloser{out, enc}), nil
}
func SignArmor62(version Version, plaintext []byte, signer SigningSecretKey, brand string) (string, error) {
	buf, err := signToStream(version, plaintext, signer, applyBrand(NewSignArmor62Stream, brand))
	if err != nil {
		return "", err
	}
	return buf.String(), nil
}