Sha256: 2c1609d397bf93aaa82f9c4980c4fd2182659666e45b313dd86871239c0eb648
Contents?: true
Size: 534 Bytes
Versions: 2
Compression:
Stored size: 534 Bytes
Contents
# frozen_string_literal: true module RASN1 module Types # ASN.1 IA5 String # @author Sylvain Daubert class IA5String < OctetString # IA5String tag value TAG = 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
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
rasn1-0.7.1 | lib/rasn1/types/ia5string.rb |
rasn1-0.7.0 | lib/rasn1/types/ia5string.rb |