/** * Sequence * * An ASN1 type for a Sequence, implemented as an Array * Copyright (c) 2007 Henri Torgemane * * See LICENSE.txt for full license information. */ package com.hurlant.util.der { import flash.utils.ByteArray; public dynamic class Sequence extends Array implements IAsn1Type { protected var type:uint; protected var len:uint; public function Sequence(type:uint = 0x30, length:uint = 0x00) { this.type = type; this.len = length; } public function getLength():uint { return len; } public function getType():uint { return type; } public function toDER():ByteArray { var tmp:ByteArray = new ByteArray; for (var i:int=0;i