{
  "_id": "6ac79115de46216d5edd24d2",
  "Package": "HomomorphicEncryption",
  "Title": "BFV, BGV, CKKS Schema for Fully Homomorphic Encryption",
  "Version": "0.9.0",
  "Authors@R": "person(\"Bastiaan\", \"Quast\", , \"bquast@gmail.com\", role = c(\"aut\", \"cre\"),\ncomment = c(ORCID = \"0000-0002-2951-3577\"))",
  "Description": "Implements the Brakerski-Fan-Vercauteren (BFV, 2012)\n<https://eprint.iacr.org/2012/144>,\nBrakerski-Gentry-Vaikuntanathan (BGV, 2014)\n<doi:10.1145/2633600>, and Cheon-Kim-Kim-Song (CKKS, 2016)\n<https://eprint.iacr.org/2016/421.pdf> schema for Fully\nHomomorphic Encryption. The included vignettes demonstrate the\nencryption procedures.",
  "License": "GPL (>= 3)",
  "Encoding": "UTF-8",
  "Roxygen": "list(markdown = TRUE)",
  "RoxygenNote": "7.2.3",
  "VignetteBuilder": "knitr",
  "Config/testthat/edition": "3",
  "Repository": "https://bquast.r-universe.dev",
  "Date/Publication": "2024-01-09 13:15:35 UTC",
  "RemoteUrl": "https://github.com/bquast/homomorphicencryption",
  "RemoteRef": "HEAD",
  "RemoteSha": "617dd31e67befef38cecbd483798840108a0f379",
  "NeedsCompilation": "no",
  "Packaged": {
    "Date": "2026-10-08 12:40:59 UTC",
    "User": "root"
  },
  "Author": "Bastiaan Quast [aut, cre] (ORCID:\n<https://orcid.org/0000-0002-2951-3577>)",
  "Maintainer": "Bastiaan Quast <bquast@gmail.com>",
  "_user": "bquast",
  "_type": "src",
  "_file": "HomomorphicEncryption_0.9.0.tar.gz",
  "_fileid": "https://r2.ropensci.org/1c565d3e69bdd2d5c05655b3f9083a68eac5923dbfbc2db40a43dfc1981643b4",
  "_filesize": 129662,
  "_sha256": "1c565d3e69bdd2d5c05655b3f9083a68eac5923dbfbc2db40a43dfc1981643b4",
  "_expires": "2027-01-16T12:48:19.000Z",
  "_created": "2026-10-08T12:40:59.000Z",
  "_published": "2026-10-08T12:48:21.525Z",
  "_buildurl": "https://github.com/r-universe/bquast/actions/runs/37778269043",
  "_status": "success",
  "_host": "GitHub-Actions",
  "_jobs": [
    {
      "job": 113315864650,
      "time": 106,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "11550369378"
    },
    {
      "job": 113315864548,
      "time": 111,
      "config": "linux-release-x86_64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "11550374129"
    },
    {
      "job": 113315864526,
      "time": 104,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "11551665354"
    },
    {
      "job": 113315864636,
      "time": 121,
      "config": "macos-release-arm64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "11550568837"
    },
    {
      "job": 113314747818,
      "time": 161,
      "config": "source",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "11551497125"
    },
    {
      "job": 113315864713,
      "time": 94,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "11550499064"
    },
    {
      "job": 113315864551,
      "time": 61,
      "config": "windows-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "11550239330"
    },
    {
      "job": 113315864768,
      "time": 66,
      "config": "windows-oldrel-x86_64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "11550587819"
    },
    {
      "job": 113315864627,
      "time": 61,
      "config": "windows-release-x86_64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "11551192514"
    }
  ],
  "_upstream": "https://github.com/bquast/homomorphicencryption",
  "_commit": {
    "id": "617dd31e67befef38cecbd483798840108a0f379",
    "author": "Bastiaan Quast <bquast@gmail.com>",
    "committer": "Bastiaan Quast <bquast@gmail.com>",
    "message": "update comments\n",
    "time": 1704806135
  },
  "_maintainer": {
    "name": "Bastiaan Quast",
    "email": "bquast@gmail.com",
    "login": "bquast",
    "orcid": "0000-0002-2951-3577",
    "twitter": "@baquast",
    "description": "Machine Learning engineer | author of py, R packages: transformer, attention, rnn, HomomorphicEncryption, HEtools llama.go, mlx-profiler",
    "uuid": 2590349
  },
  "_distro": "resolute",
  "_registered": true,
  "_dependencies": [
    {
      "package": "polynom",
      "role": "Depends"
    },
    {
      "package": "stats",
      "role": "Depends"
    },
    {
      "package": "HEtools",
      "role": "Depends"
    },
    {
      "package": "covr",
      "role": "Suggests"
    },
    {
      "package": "knitr",
      "role": "Suggests"
    },
    {
      "package": "rmarkdown",
      "role": "Suggests"
    },
    {
      "package": "testthat",
      "version": ">= 3.0.0",
      "role": "Suggests"
    }
  ],
  "_owner": "bquast",
  "_selfowned": true,
  "_usedby": 0,
  "_updates": [],
  "_tags": [],
  "_stars": 1,
  "_contributors": [
    {
      "user": "bquast",
      "count": 125,
      "uuid": 2590349
    }
  ],
  "_userbio": {
    "uuid": 2590349,
    "type": "user",
    "name": "Bastiaan Quast",
    "followers": 227,
    "description": "Machine Learning engineer | author of py, R packages: transformer, attention, rnn, HomomorphicEncryption, HEtools llama.go, mlx-profiler"
  },
  "_downloads": {
    "count": 379,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/HomomorphicEncryption"
  },
  "_devurl": "https://github.com/bquast/homomorphicencryption",
  "_searchresults": 109,
  "_rbuild": "4.6.1",
  "_assets": [
    "extra/citation.cff",
    "extra/citation.html",
    "extra/citation.json",
    "extra/citation.txt",
    "extra/contents.json",
    "extra/HomomorphicEncryption.html",
    "extra/manual.pdf",
    "extra/NEWS.html",
    "extra/NEWS.txt",
    "extra/readme.html",
    "extra/readme.md"
  ],
  "_homeurl": "https://github.com/bquast/homomorphicencryption",
  "_realowner": "bquast",
  "_cranurl": true,
  "_releases": [
    {
      "version": "0.1.0",
      "date": "2022-10-21"
    },
    {
      "version": "0.2.0",
      "date": "2023-11-11"
    },
    {
      "version": "0.3.0",
      "date": "2023-12-09"
    },
    {
      "version": "0.9.0",
      "date": "2024-01-09"
    }
  ],
  "_exports": [
    "BFV_encrypt",
    "BFV_KeyGen",
    "CoefMod",
    "compute_basis_coordinates",
    "coordinate_wise_random_rounding",
    "decode",
    "encode",
    "EncryptPoly0",
    "EncryptPoly1",
    "GenA",
    "GenError",
    "GenEvalKey0",
    "GenPubKey",
    "GenPubKey0",
    "GenPubKey1",
    "GenSecretKey",
    "GenU",
    "pi_function",
    "pi_inverse",
    "round_coordinates",
    "sigma_function",
    "sigma_inverse",
    "sigma_R_discretization",
    "vandermonde"
  ],
  "_help": [
    {
      "page": "BFV_encrypt",
      "title": "BFV encryption",
      "topics": [
        "BFV_encrypt"
      ]
    },
    {
      "page": "BFV_KeyGen",
      "title": "Brakerski / Fan-Vercauteren",
      "topics": [
        "BFV_KeyGen"
      ]
    },
    {
      "page": "compute_basis_coordinates",
      "title": "compute basis coordinates",
      "topics": [
        "compute_basis_coordinates"
      ]
    },
    {
      "page": "coordinate_wise_random_rounding",
      "title": "coordinate-wise random rounding",
      "topics": [
        "coordinate_wise_random_rounding"
      ]
    },
    {
      "page": "decode",
      "title": "decode",
      "topics": [
        "decode"
      ]
    },
    {
      "page": "encode",
      "title": "encode",
      "topics": [
        "encode"
      ]
    },
    {
      "page": "EncryptPoly0",
      "title": "Encrypt Polynomial Message Part 0",
      "topics": [
        "EncryptPoly0"
      ]
    },
    {
      "page": "EncryptPoly1",
      "title": "Encrypt Polynomial Message Part 1",
      "topics": [
        "EncryptPoly1"
      ]
    },
    {
      "page": "GenA",
      "title": "Generate a",
      "topics": [
        "GenA"
      ]
    },
    {
      "page": "GenError",
      "title": "Generate a",
      "topics": [
        "GenError"
      ]
    },
    {
      "page": "GenEvalKey0",
      "title": "Generate the Evaluation Key",
      "topics": [
        "GenEvalKey0"
      ]
    },
    {
      "page": "GenPubKey",
      "title": "Generate the Public Key",
      "topics": [
        "GenPubKey"
      ]
    },
    {
      "page": "GenPubKey0",
      "title": "Generate part 0 of the Public Key",
      "topics": [
        "GenPubKey0"
      ]
    },
    {
      "page": "GenPubKey1",
      "title": "Generate part 1 of the Public Key",
      "topics": [
        "GenPubKey1"
      ]
    },
    {
      "page": "GenSecretkey",
      "title": "Generate Secret key",
      "topics": [
        "GenSecretKey",
        "GenSecretkey"
      ]
    },
    {
      "page": "GenU",
      "title": "Generate u",
      "topics": [
        "GenU"
      ]
    },
    {
      "page": "pi_function",
      "title": "pi function",
      "topics": [
        "pi_function"
      ]
    },
    {
      "page": "pi_inverse",
      "title": "pi inverse function",
      "topics": [
        "pi_inverse"
      ]
    },
    {
      "page": "round_coordinates",
      "title": "round coordinates",
      "topics": [
        "round_coordinates"
      ]
    },
    {
      "page": "sigma_function",
      "title": "sigma function",
      "topics": [
        "sigma_function"
      ]
    },
    {
      "page": "sigma_inverse",
      "title": "sigma inverse",
      "topics": [
        "sigma_inverse"
      ]
    },
    {
      "page": "sigma_R_discretization",
      "title": "sigma discretization",
      "topics": [
        "sigma_R_discretization"
      ]
    },
    {
      "page": "vandermonde",
      "title": "vandermonde",
      "topics": [
        "vandermonde"
      ]
    }
  ],
  "_readme": "https://github.com/bquast/homomorphicencryption/raw/HEAD/README.md",
  "_rundeps": [
    "HEtools",
    "polynom"
  ],
  "_vignettes": [
    {
      "source": "BFV.Rmd",
      "filename": "BFV.html",
      "title": "BFV",
      "engine": "knitr::rmarkdown",
      "headings": [],
      "created": "2022-10-11 01:49:10",
      "modified": "2023-12-28 21:04:10",
      "commits": 8
    },
    {
      "source": "BFV-2.Rmd",
      "filename": "BFV-2.html",
      "title": "BFV 2",
      "engine": "knitr::rmarkdown",
      "headings": [],
      "created": "2023-12-28 21:04:32",
      "modified": "2023-12-28 21:04:32",
      "commits": 1
    },
    {
      "source": "BFV-base.Rmd",
      "filename": "BFV-base.html",
      "title": "BFV in base R",
      "engine": "knitr::rmarkdown",
      "headings": [],
      "created": "2022-12-04 22:43:26",
      "modified": "2022-12-04 22:43:26",
      "commits": 1
    },
    {
      "source": "BFV-relinearization.Rmd",
      "filename": "BFV-relinearization.html",
      "title": "BFV relinearization",
      "engine": "knitr::rmarkdown",
      "headings": [],
      "created": "2022-12-04 03:53:20",
      "modified": "2022-12-04 22:39:24",
      "commits": 3
    },
    {
      "source": "BFV-addition.Rmd",
      "filename": "BFV-addition.html",
      "title": "BFV-addition",
      "engine": "knitr::rmarkdown",
      "headings": [],
      "created": "2022-10-11 20:37:57",
      "modified": "2022-10-11 23:48:11",
      "commits": 3
    },
    {
      "source": "BFV-multiply.Rmd",
      "filename": "BFV-multiply.html",
      "title": "BFV-multiply",
      "engine": "knitr::rmarkdown",
      "headings": [],
      "created": "2022-10-11 23:18:31",
      "modified": "2022-12-04 22:43:55",
      "commits": 3
    },
    {
      "source": "BGV.Rmd",
      "filename": "BGV.html",
      "title": "BGV",
      "engine": "knitr::rmarkdown",
      "headings": [],
      "created": "2022-10-13 02:19:30",
      "modified": "2022-10-13 02:19:30",
      "commits": 1
    },
    {
      "source": "BGV-2.Rmd",
      "filename": "BGV-2.html",
      "title": "BGV 2",
      "engine": "knitr::rmarkdown",
      "headings": [],
      "created": "2023-12-31 00:37:30",
      "modified": "2023-12-31 12:49:17",
      "commits": 2
    },
    {
      "source": "BGV-addition-2.Rmd",
      "filename": "BGV-addition-2.html",
      "title": "BGV addition 2",
      "engine": "knitr::rmarkdown",
      "headings": [],
      "created": "2023-12-31 14:15:14",
      "modified": "2024-01-02 22:30:20",
      "commits": 4
    },
    {
      "source": "BGV-ModSwitch.Rmd",
      "filename": "BGV-ModSwitch.html",
      "title": "BGV ModSwitch",
      "engine": "knitr::rmarkdown",
      "headings": [],
      "created": "2022-12-04 22:44:13",
      "modified": "2022-12-04 22:44:13",
      "commits": 1
    },
    {
      "source": "BGV-addition.Rmd",
      "filename": "BGV-addition.html",
      "title": "BGV-addition",
      "engine": "knitr::rmarkdown",
      "headings": [],
      "created": "2022-10-14 01:19:12",
      "modified": "2022-10-14 20:58:01",
      "commits": 2
    },
    {
      "source": "BGV-multiply.Rmd",
      "filename": "BGV-multiply.html",
      "title": "BGV-multiply",
      "engine": "knitr::rmarkdown",
      "headings": [],
      "created": "2022-10-14 03:02:54",
      "modified": "2022-10-14 20:58:01",
      "commits": 2
    },
    {
      "source": "CKKS.Rmd",
      "filename": "CKKS.html",
      "title": "CKKS",
      "engine": "knitr::rmarkdown",
      "headings": [],
      "created": "2022-10-14 20:37:45",
      "modified": "2023-12-24 13:13:03",
      "commits": 9
    },
    {
      "source": "CKKS-encode.Rmd",
      "filename": "CKKS-encode.html",
      "title": "CKKS encode",
      "engine": "knitr::rmarkdown",
      "headings": [],
      "created": "2023-12-23 23:36:01",
      "modified": "2023-12-25 11:23:05",
      "commits": 6
    },
    {
      "source": "CKKS-encode-2.Rmd",
      "filename": "CKKS-encode-2.html",
      "title": "CKKS encode 3",
      "engine": "knitr::rmarkdown",
      "headings": [],
      "created": "2023-12-23 23:37:14",
      "modified": "2023-12-25 12:26:23",
      "commits": 7
    },
    {
      "source": "CKKS-encode-encrypt.Rmd",
      "filename": "CKKS-encode-encrypt.html",
      "title": "CKKS encode encrypt",
      "engine": "knitr::rmarkdown",
      "headings": [],
      "created": "2023-12-24 14:08:48",
      "modified": "2023-12-25 12:56:03",
      "commits": 5
    },
    {
      "source": "CKKS-encode-encrypt-2.Rmd",
      "filename": "CKKS-encode-encrypt-2.html",
      "title": "CKKS encode encrypt 2",
      "engine": "knitr::rmarkdown",
      "headings": [],
      "created": "2023-12-25 13:03:26",
      "modified": "2024-01-04 19:01:50",
      "commits": 6
    }
  ],
  "_score": 5.966845423654917,
  "_indexed": true,
  "_nocasepkg": "homomorphicencryption",
  "_universes": [
    "bquast"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "0.9.0",
      "date": "2026-10-08T12:42:46.000Z",
      "distro": "resolute",
      "commit": "617dd31e67befef38cecbd483798840108a0f379",
      "fileid": "https://r2.ropensci.org/54c638fc15485832b66a29634bce5d3f37c0793c0955b039a54b63b55bcba0ea",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/bquast/actions/runs/37778269043"
    },
    {
      "r": "4.6.1",
      "os": "linux",
      "version": "0.9.0",
      "date": "2026-10-08T12:42:53.000Z",
      "distro": "resolute",
      "commit": "617dd31e67befef38cecbd483798840108a0f379",
      "fileid": "https://r2.ropensci.org/446610ccf3360e184218be1181adc4d14adb08e316d46f3a4330f9f06c817a9b",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/bquast/actions/runs/37778269043"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "0.9.0",
      "date": "2026-10-08T12:47:44.000Z",
      "commit": "617dd31e67befef38cecbd483798840108a0f379",
      "fileid": "https://r2.ropensci.org/e4f3402c2dbb46d4f0b35055768239edbd53c5403868b6245a6c3add7b3f0eb8",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/bquast/actions/runs/37778269043"
    },
    {
      "r": "4.6.1",
      "os": "mac",
      "version": "0.9.0",
      "date": "2026-10-08T12:43:07.000Z",
      "commit": "617dd31e67befef38cecbd483798840108a0f379",
      "fileid": "https://r2.ropensci.org/501d6a51ad1f39aece35b06b3420dca37cea96d1d6cc40395b97d207ef704ab5",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/bquast/actions/runs/37778269043"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "0.9.0",
      "date": "2026-10-08T12:42:47.000Z",
      "commit": "617dd31e67befef38cecbd483798840108a0f379",
      "fileid": "https://r2.ropensci.org/e4d95bf4cbf6d6810e7f37cbcd80d59ebce9e6f6e75a44c3a673b550029b98c6",
      "status": "success",
      "buildurl": "https://github.com/r-universe/bquast/actions/runs/37778269043"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "0.9.0",
      "date": "2026-10-08T12:41:59.000Z",
      "commit": "617dd31e67befef38cecbd483798840108a0f379",
      "fileid": "https://r2.ropensci.org/62a0105ec626793013007f7af902e23291770c8bb59eee5c203a80d79d132780",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/bquast/actions/runs/37778269043"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "0.9.0",
      "date": "2026-10-08T12:42:02.000Z",
      "commit": "617dd31e67befef38cecbd483798840108a0f379",
      "fileid": "https://r2.ropensci.org/ba4a30a0d32f66bcb0a97f2cb6c0278435371077c210add71e8de2696bee4d97",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/bquast/actions/runs/37778269043"
    },
    {
      "r": "4.6.1",
      "os": "win",
      "version": "0.9.0",
      "date": "2026-10-08T12:41:58.000Z",
      "commit": "617dd31e67befef38cecbd483798840108a0f379",
      "fileid": "https://r2.ropensci.org/7089e7b458db1ac8f8b8a149f0f19ddd98129c4ad9a6641e2d94d2d5f2aa3336",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/bquast/actions/runs/37778269043"
    }
  ]
}