Function getAlgorithmByOID

  • Gets WebCrypto algorithm by well-known OID

    Returns

    WebCrypto algorithm or an empty object

    Type Parameters

    • T extends Algorithm = Algorithm

    Parameters

    • oid: string

      algorithm identifier

    • Optional safety: boolean

      if true throws exception on unknown algorithm identifier

    • Optional target: string

      name of the target

    Returns T | object

  • Type Parameters

    • T extends Algorithm = Algorithm

    Parameters

    • oid: string
    • safety: true
    • Optional target: string

    Returns T

Generated using TypeDoc