def decode(input)
            case input
            when String
              decode_string(input)
            when OpenSSL::ASN1::ASN1Data