Hmac constructor

Hmac(
  1. RustCryptoWorld _world
)

Implementation

Hmac(this._world)
    : _hmacSha224 = _world.library.getComponentFunction(
        'wasm-run-dart:rust-crypto/hmac#hmac-sha224',
        const FuncType([('key', ListType(U8())), ('bytes', ListType(U8()))],
            [('', ResultType(ListType(U8()), StringType()))]),
      )!,
      _hmacSha256 = _world.library.getComponentFunction(
        'wasm-run-dart:rust-crypto/hmac#hmac-sha256',
        const FuncType([('key', ListType(U8())), ('bytes', ListType(U8()))],
            [('', ResultType(ListType(U8()), StringType()))]),
      )!,
      _hmacSha384 = _world.library.getComponentFunction(
        'wasm-run-dart:rust-crypto/hmac#hmac-sha384',
        const FuncType([('key', ListType(U8())), ('bytes', ListType(U8()))],
            [('', ResultType(ListType(U8()), StringType()))]),
      )!,
      _hmacSha512 = _world.library.getComponentFunction(
        'wasm-run-dart:rust-crypto/hmac#hmac-sha512',
        const FuncType([('key', ListType(U8())), ('bytes', ListType(U8()))],
            [('', ResultType(ListType(U8()), StringType()))]),
      )!,
      _hmacBlake3 = _world.library.getComponentFunction(
        'wasm-run-dart:rust-crypto/hmac#hmac-blake3',
        const FuncType([('key', ListType(U8())), ('bytes', ListType(U8()))],
            [('', ResultType(ListType(U8()), StringType()))]),
      )!;