# frozen_string_literal: true module RASN1 module Types # ASN.1 IA5 String # @author Sylvain Daubert class IA5String < OctetString # IA5String id value ID = 22 # Get ASN.1 type # @return [String] def self.type 'IA5String' end private def value_to_der @value.to_s.force_encoding('US-ASCII').force_encoding('BINARY') end def der_to_value(der, ber: false) super @value.force_encoding('US-ASCII') end end end end