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