Interface IAlgorithm

interface IAlgorithm {
    toAsnAlgorithm(alg): null | AlgorithmIdentifier;
    toWebAlgorithm(alg): null | Algorithm;
}

Implemented by

Methods

  • Converts WebCrypto algorithm to ASN.1 algorithm

    Parameters

    • alg: Algorithm

      WebCrypto algorithm

    Returns null | AlgorithmIdentifier

    ASN.1 algorithm or null

  • Converts ASN.1 algorithm to WebCrypto algorithm

    Parameters

    • alg: AlgorithmIdentifier

      ASN.1 algorithm

    Returns null | Algorithm

    WebCrypto algorithm or null

Generated using TypeDoc