Options
All
  • Public
  • Public/Protected
  • All
Menu

Class RsaCryptographyProvider

Package version

An RSA cryptography provider supporting RSA algorithms. The browser replacement of the RsaCryptographyProvider. Since we do not support local cryptography in the browser this replacement always returns false for supportsAlgorithm and supportsOperation so that these methods should never be called.

Hierarchy

  • RsaCryptographyProvider

Implements

Index

Constructors

constructor

Methods

decrypt

encrypt

isSupported

sign

signData

  • signData(_algorithm: SignatureAlgorithm, _data: Uint8Array, _options?: SignOptions): Promise<SignResult>

unwrapKey

verify

  • verify(_algorithm: SignatureAlgorithm, _digest: Uint8Array, _signature: Uint8Array, _options?: VerifyOptions): Promise<VerifyResult>

verifyData

  • verifyData(algorithm: SignatureAlgorithm, data: Uint8Array, signature: Uint8Array, _options?: VerifyOptions): Promise<VerifyResult>

wrapKey

Object literals

signatureAlgorithmToHashAlgorithm

signatureAlgorithmToHashAlgorithm: object

Mapping between signature algorithms and their corresponding hash algorithms. Externally used for testing.

internal

PS256

PS256: string = "SHA256"

PS384

PS384: string = "SHA384"

PS512

PS512: string = "SHA512"

RS256

RS256: string = "SHA256"

RS384

RS384: string = "SHA384"

RS512

RS512: string = "SHA512"

Generated using TypeDoc