OpenPGP_SignaturePacket::get_subpackets PHP Method

get_subpackets() static public method

See also: http://tools.ietf.org/html/rfc4880#section-5.2.3.1
static public get_subpackets ( $input )
    static function get_subpackets($input)
    {
        $subpackets = array();
        while (($length = strlen($input)) > 0) {
            $subpackets[] = self::get_subpacket($input);
            if ($length == strlen($input)) {
                // Parsing stuck?
                break;
            }
        }
        return $subpackets;
    }