Class: RASN1::Types::OctetString

Inherits:
Primitive show all
Defined in:
lib/rasn1/types/octet_string.rb

Overview

ASN.1 Octet String

An OCTET STRINT may contain another primtive object:

os = OctetString.new(:os)
int = Integer.new(:int)
int.value = 12
os.value = int
os.to_der   # => DER string with INTEGER in OCTET STRING

Author:

  • Sylvain Daubert

Direct Known Subclasses

IA5String, NumericString, PrintableString, Utf8String

Constant Summary collapse

TAG =
0x04

Constants inherited from Primitive

Primitive::ASN1_PC

Constants inherited from Base

Base::CLASSES, Base::INDEFINITE_LENGTH, Base::MAX_TAG

Instance Attribute Summary

Attributes inherited from Base

#asn1_class, #default, #name, #value

Method Summary

Methods inherited from Base

#constructed?, #explicit?, #implicit?, #initialize, #initialize_copy, #optional?, #parse!, #primitive?, #tag, #tagged?, #to_der, type, #type, #value_size

Constructor Details

This class inherits a constructor from RASN1::Types::Base