/**
 * This code was generated by [react-native-codegen](https://www.npmjs.com/package/react-native-codegen).
 *
 * Do not edit this file as changes may cause incorrect behavior and will be lost
 * once the code is regenerated.
 *
 * @generated by codegen project: GenerateModuleCpp.js
 */

#include "RNEncryptionSpecJSI.h"

namespace facebook::react {

static jsi::Value __hostFunction_NativeEncryptionCxxSpecJSI_generateAESKey(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) {
  return static_cast<NativeEncryptionCxxSpecJSI *>(&turboModule)->generateAESKey(
    rt,
    count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asNumber()
  );
}
static jsi::Value __hostFunction_NativeEncryptionCxxSpecJSI_encryptAES(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) {
  return static_cast<NativeEncryptionCxxSpecJSI *>(&turboModule)->encryptAES(
    rt,
    count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asString(rt),
    count <= 1 ? throw jsi::JSError(rt, "Expected argument in position 1 to be passed") : args[1].asString(rt)
  );
}
static jsi::Value __hostFunction_NativeEncryptionCxxSpecJSI_decryptAES(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) {
  return static_cast<NativeEncryptionCxxSpecJSI *>(&turboModule)->decryptAES(
    rt,
    count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asString(rt),
    count <= 1 ? throw jsi::JSError(rt, "Expected argument in position 1 to be passed") : args[1].asString(rt)
  );
}
static jsi::Value __hostFunction_NativeEncryptionCxxSpecJSI_encryptFile(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) {
  return static_cast<NativeEncryptionCxxSpecJSI *>(&turboModule)->encryptFile(
    rt,
    count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asString(rt),
    count <= 1 ? throw jsi::JSError(rt, "Expected argument in position 1 to be passed") : args[1].asString(rt),
    count <= 2 ? throw jsi::JSError(rt, "Expected argument in position 2 to be passed") : args[2].asString(rt)
  );
}
static jsi::Value __hostFunction_NativeEncryptionCxxSpecJSI_decryptFile(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) {
  return static_cast<NativeEncryptionCxxSpecJSI *>(&turboModule)->decryptFile(
    rt,
    count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asString(rt),
    count <= 1 ? throw jsi::JSError(rt, "Expected argument in position 1 to be passed") : args[1].asString(rt)
  );
}
static jsi::Value __hostFunction_NativeEncryptionCxxSpecJSI_encryptAsyncAES(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) {
  return static_cast<NativeEncryptionCxxSpecJSI *>(&turboModule)->encryptAsyncAES(
    rt,
    count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asString(rt),
    count <= 1 ? throw jsi::JSError(rt, "Expected argument in position 1 to be passed") : args[1].asString(rt)
  );
}
static jsi::Value __hostFunction_NativeEncryptionCxxSpecJSI_decryptAsyncAES(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) {
  return static_cast<NativeEncryptionCxxSpecJSI *>(&turboModule)->decryptAsyncAES(
    rt,
    count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asString(rt),
    count <= 1 ? throw jsi::JSError(rt, "Expected argument in position 1 to be passed") : args[1].asString(rt)
  );
}
static jsi::Value __hostFunction_NativeEncryptionCxxSpecJSI_generateRSAKeyPair(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) {
  return static_cast<NativeEncryptionCxxSpecJSI *>(&turboModule)->generateRSAKeyPair(
    rt
  );
}
static jsi::Value __hostFunction_NativeEncryptionCxxSpecJSI_getPublicRSAkey(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) {
  return static_cast<NativeEncryptionCxxSpecJSI *>(&turboModule)->getPublicRSAkey(
    rt,
    count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asString(rt)
  );
}
static jsi::Value __hostFunction_NativeEncryptionCxxSpecJSI_encryptRSA(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) {
  return static_cast<NativeEncryptionCxxSpecJSI *>(&turboModule)->encryptRSA(
    rt,
    count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asString(rt),
    count <= 1 ? throw jsi::JSError(rt, "Expected argument in position 1 to be passed") : args[1].asString(rt)
  );
}
static jsi::Value __hostFunction_NativeEncryptionCxxSpecJSI_decryptRSA(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) {
  return static_cast<NativeEncryptionCxxSpecJSI *>(&turboModule)->decryptRSA(
    rt,
    count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asString(rt),
    count <= 1 ? throw jsi::JSError(rt, "Expected argument in position 1 to be passed") : args[1].asString(rt)
  );
}
static jsi::Value __hostFunction_NativeEncryptionCxxSpecJSI_encryptAsyncRSA(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) {
  return static_cast<NativeEncryptionCxxSpecJSI *>(&turboModule)->encryptAsyncRSA(
    rt,
    count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asString(rt),
    count <= 1 ? throw jsi::JSError(rt, "Expected argument in position 1 to be passed") : args[1].asString(rt)
  );
}
static jsi::Value __hostFunction_NativeEncryptionCxxSpecJSI_decryptAsyncRSA(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) {
  return static_cast<NativeEncryptionCxxSpecJSI *>(&turboModule)->decryptAsyncRSA(
    rt,
    count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asString(rt),
    count <= 1 ? throw jsi::JSError(rt, "Expected argument in position 1 to be passed") : args[1].asString(rt)
  );
}
static jsi::Value __hostFunction_NativeEncryptionCxxSpecJSI_hashSHA256(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) {
  return static_cast<NativeEncryptionCxxSpecJSI *>(&turboModule)->hashSHA256(
    rt,
    count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asString(rt)
  );
}
static jsi::Value __hostFunction_NativeEncryptionCxxSpecJSI_hashSHA512(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) {
  return static_cast<NativeEncryptionCxxSpecJSI *>(&turboModule)->hashSHA512(
    rt,
    count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asString(rt)
  );
}
static jsi::Value __hostFunction_NativeEncryptionCxxSpecJSI_generateHMACKey(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) {
  return static_cast<NativeEncryptionCxxSpecJSI *>(&turboModule)->generateHMACKey(
    rt,
    count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asNumber()
  );
}
static jsi::Value __hostFunction_NativeEncryptionCxxSpecJSI_hmacSHA256(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) {
  return static_cast<NativeEncryptionCxxSpecJSI *>(&turboModule)->hmacSHA256(
    rt,
    count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asString(rt),
    count <= 1 ? throw jsi::JSError(rt, "Expected argument in position 1 to be passed") : args[1].asString(rt)
  );
}
static jsi::Value __hostFunction_NativeEncryptionCxxSpecJSI_hmacSHA512(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) {
  return static_cast<NativeEncryptionCxxSpecJSI *>(&turboModule)->hmacSHA512(
    rt,
    count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asString(rt),
    count <= 1 ? throw jsi::JSError(rt, "Expected argument in position 1 to be passed") : args[1].asString(rt)
  );
}
static jsi::Value __hostFunction_NativeEncryptionCxxSpecJSI_generateRandomString(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) {
  return static_cast<NativeEncryptionCxxSpecJSI *>(&turboModule)->generateRandomString(
    rt,
    count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asNumber()
  );
}
static jsi::Value __hostFunction_NativeEncryptionCxxSpecJSI_base64Encode(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) {
  return static_cast<NativeEncryptionCxxSpecJSI *>(&turboModule)->base64Encode(
    rt,
    count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asString(rt)
  );
}
static jsi::Value __hostFunction_NativeEncryptionCxxSpecJSI_base64Decode(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) {
  return static_cast<NativeEncryptionCxxSpecJSI *>(&turboModule)->base64Decode(
    rt,
    count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asString(rt)
  );
}
static jsi::Value __hostFunction_NativeEncryptionCxxSpecJSI_generateECDSAKeyPair(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) {
  return static_cast<NativeEncryptionCxxSpecJSI *>(&turboModule)->generateECDSAKeyPair(
    rt
  );
}
static jsi::Value __hostFunction_NativeEncryptionCxxSpecJSI_getPublicECDSAKey(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) {
  return static_cast<NativeEncryptionCxxSpecJSI *>(&turboModule)->getPublicECDSAKey(
    rt,
    count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asString(rt)
  );
}
static jsi::Value __hostFunction_NativeEncryptionCxxSpecJSI_signDataECDSA(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) {
  return static_cast<NativeEncryptionCxxSpecJSI *>(&turboModule)->signDataECDSA(
    rt,
    count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asString(rt),
    count <= 1 ? throw jsi::JSError(rt, "Expected argument in position 1 to be passed") : args[1].asString(rt)
  );
}
static jsi::Value __hostFunction_NativeEncryptionCxxSpecJSI_verifySignatureECDSA(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) {
  return static_cast<NativeEncryptionCxxSpecJSI *>(&turboModule)->verifySignatureECDSA(
    rt,
    count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asString(rt),
    count <= 1 ? throw jsi::JSError(rt, "Expected argument in position 1 to be passed") : args[1].asString(rt),
    count <= 2 ? throw jsi::JSError(rt, "Expected argument in position 2 to be passed") : args[2].asString(rt)
  );
}

NativeEncryptionCxxSpecJSI::NativeEncryptionCxxSpecJSI(std::shared_ptr<CallInvoker> jsInvoker)
  : TurboModule("Encryption", jsInvoker) {
  methodMap_["generateAESKey"] = MethodMetadata {1, __hostFunction_NativeEncryptionCxxSpecJSI_generateAESKey};
  methodMap_["encryptAES"] = MethodMetadata {2, __hostFunction_NativeEncryptionCxxSpecJSI_encryptAES};
  methodMap_["decryptAES"] = MethodMetadata {2, __hostFunction_NativeEncryptionCxxSpecJSI_decryptAES};
  methodMap_["encryptFile"] = MethodMetadata {3, __hostFunction_NativeEncryptionCxxSpecJSI_encryptFile};
  methodMap_["decryptFile"] = MethodMetadata {2, __hostFunction_NativeEncryptionCxxSpecJSI_decryptFile};
  methodMap_["encryptAsyncAES"] = MethodMetadata {2, __hostFunction_NativeEncryptionCxxSpecJSI_encryptAsyncAES};
  methodMap_["decryptAsyncAES"] = MethodMetadata {2, __hostFunction_NativeEncryptionCxxSpecJSI_decryptAsyncAES};
  methodMap_["generateRSAKeyPair"] = MethodMetadata {0, __hostFunction_NativeEncryptionCxxSpecJSI_generateRSAKeyPair};
  methodMap_["getPublicRSAkey"] = MethodMetadata {1, __hostFunction_NativeEncryptionCxxSpecJSI_getPublicRSAkey};
  methodMap_["encryptRSA"] = MethodMetadata {2, __hostFunction_NativeEncryptionCxxSpecJSI_encryptRSA};
  methodMap_["decryptRSA"] = MethodMetadata {2, __hostFunction_NativeEncryptionCxxSpecJSI_decryptRSA};
  methodMap_["encryptAsyncRSA"] = MethodMetadata {2, __hostFunction_NativeEncryptionCxxSpecJSI_encryptAsyncRSA};
  methodMap_["decryptAsyncRSA"] = MethodMetadata {2, __hostFunction_NativeEncryptionCxxSpecJSI_decryptAsyncRSA};
  methodMap_["hashSHA256"] = MethodMetadata {1, __hostFunction_NativeEncryptionCxxSpecJSI_hashSHA256};
  methodMap_["hashSHA512"] = MethodMetadata {1, __hostFunction_NativeEncryptionCxxSpecJSI_hashSHA512};
  methodMap_["generateHMACKey"] = MethodMetadata {1, __hostFunction_NativeEncryptionCxxSpecJSI_generateHMACKey};
  methodMap_["hmacSHA256"] = MethodMetadata {2, __hostFunction_NativeEncryptionCxxSpecJSI_hmacSHA256};
  methodMap_["hmacSHA512"] = MethodMetadata {2, __hostFunction_NativeEncryptionCxxSpecJSI_hmacSHA512};
  methodMap_["generateRandomString"] = MethodMetadata {1, __hostFunction_NativeEncryptionCxxSpecJSI_generateRandomString};
  methodMap_["base64Encode"] = MethodMetadata {1, __hostFunction_NativeEncryptionCxxSpecJSI_base64Encode};
  methodMap_["base64Decode"] = MethodMetadata {1, __hostFunction_NativeEncryptionCxxSpecJSI_base64Decode};
  methodMap_["generateECDSAKeyPair"] = MethodMetadata {0, __hostFunction_NativeEncryptionCxxSpecJSI_generateECDSAKeyPair};
  methodMap_["getPublicECDSAKey"] = MethodMetadata {1, __hostFunction_NativeEncryptionCxxSpecJSI_getPublicECDSAKey};
  methodMap_["signDataECDSA"] = MethodMetadata {2, __hostFunction_NativeEncryptionCxxSpecJSI_signDataECDSA};
  methodMap_["verifySignatureECDSA"] = MethodMetadata {3, __hostFunction_NativeEncryptionCxxSpecJSI_verifySignatureECDSA};
}


} // namespace facebook::react
