Options
All
  • Public
  • Public/Protected
  • All
Menu

Class RSAPublicKey

Represents the RSAPublicKey structure described in RFC3447

Hierarchy

Implements

Index

Constructors

Properties

modulus: Integer

Modulus part of RSA public key

publicExponent: Integer

Public exponent of RSA public key

CLASS_NAME: string = "RSAPublicKey"

Name of the class

Accessors

  • get className(): string

Methods

  • fromSchema(schema: AsnType): void
  • toSchema(): Sequence
  • toString(encoding?: "base64" | "base64url" | "hex"): string
  • blockName(): string
  • defaultValues(memberName: "modulus" | "publicExponent"): Integer
  • Returns default values for all class members

    Parameters

    • memberName: "modulus" | "publicExponent"

      String name for a class member

    Returns Integer

    Default value

  • fromBER<T>(this: PkiObjectConstructor<T>, raw: BufferSource): T
  • Creates PKI object from the raw data

    Type Parameters

    Parameters

    • this: PkiObjectConstructor<T>
    • raw: BufferSource

      ASN.1 encoded raw data

    Returns T

    Initialized and filled current class object

  • schema(parameters?: SchemaParameters<{ modulus?: string; publicExponent?: string }>): any
  • Returns value of pre-defined ASN.1 schema for current class

    asn

    ASN.1 schema

    RSAPublicKey ::= Sequence {
       modulus           Integer,  -- n
       publicExponent    Integer   -- e
    }
    

    Parameters

    • parameters: SchemaParameters<{ modulus?: string; publicExponent?: string }> = {}

      Input parameters for the schema

    Returns any

    ASN.1 schema object

Generated using TypeDoc