func PadEcdsa256Sig()

in iimg/iimg.go [107:118]


func PadEcdsa256Sig(sig []byte) ([]byte, error) {
	if len(sig) < 70 {
		return nil, errors.Errorf(
			"Invalid ECDSA256 signature; length (%d) less than 70", len(sig))
	}

	if len(sig) < 72 {
		sig = append(sig, []byte{0x00, 0x00}...)
	}

	return sig, nil
}