⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 integer.as

📁 As3 Crypto is a cryptography library written in Actionscript 3 that provides several common algorith
💻 AS
字号:
/**
 * Integer
 * 
 * An ASN1 type for an Integer, represented with a BigInteger
 * Copyright (c) 2007 Henri Torgemane
 * 
 * See LICENSE.txt for full license information.
 */
package com.hurlant.util.der
{
	import com.hurlant.math.BigInteger;
	import flash.utils.ByteArray;

	public class Integer extends BigInteger implements IAsn1Type
	{
		private var type:uint;
		private var len:uint;
		
		public function Integer(type:uint, length:uint, b:ByteArray) {
			this.type = type;
			this.len = length;
			super(b);
		}
		
		public function getLength():uint
		{
			return len;
		}
		
		public function getType():uint
		{
			return type;
		}
		
		override public function toString(radix:Number=0):String {
			return DER.indent+"Integer["+type+"]["+len+"]["+super.toString(16)+"]";
		}
		
		public function toDER():ByteArray {
			return null;
		}
		
	}
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -