Sha256: b056d9192946b5e684b2403eb2e48a0ba992db7e8655e73e7cecce91008f3067
Contents?: true
Size: 548 Bytes
Versions: 2
Compression:
Stored size: 548 Bytes
Contents
# frozen_string_literal: true module RASN1 module Types # ASN.1 Octet String # # An OCTET STRINT may contain another primtive object: # os = OctetString.new # int = Integer.new # int.value = 12 # os.value = int # os.to_der # => DER string with INTEGER in OCTET STRING # @author Sylvain Daubert class OctetString < Primitive # OctetString tag value TAG = 0x04 def inspect(level=0) str = common_inspect(level) str << " #{value.inspect}" end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
rasn1-0.7.1 | lib/rasn1/types/octet_string.rb |
rasn1-0.7.0 | lib/rasn1/types/octet_string.rb |