# Cupcake
Cupcake is an efficient Rust library for the (additive version of) Fan-Vercauteren homomorphic encryption scheme, offering capabilities to
encrypt vectors, add/subtract two encrypted vectors, and rerandomize a ciphertext.
## Requirements
Cupcake requires or works with
* Mac OS X or Linux
## Installation
Add the following line to the dependencies of your Cargo.toml:
```
Cupcake = "0.2.1"
```
## Building from source
```bash
git clone https://github.com/facebookresearch/Cupcake
cd cupcake
cargo build --release
```
## Examples
Several examples are included in `examples/<name>.rs`, and can be run via
`cargo run --example <name>`
## Documentation
Documentation on the API can be built from `cargo doc`.
## Benchmarks and Tests
We have included benchmarks and tests for both homomorphic operations and underlying arithmetic operations. They can be run using `cargo bench` and `cargo test`.
## Supported parameters
Currently, we provide only one set of secure parameter, namely `FV::<Scalar>::default_2048();`. This parameter set has an estimated security level of about 128 bits according
to the homomorphic encryption security standards [link](http://homomorphicencryption.org/wp-content/uploads/2018/11/HomomorphicEncryptionStandardv1.1.pdf). Use other parameters at your own risk! With the default parameter set, the plaintext type is vector of `u8` with a fixed length 2048.
## References
- [The Fan-Vercauteren scheme](http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.400.6346&rep=rep1&type=pdf)
See the [CONTRIBUTING](CONTRIBUTING.md) file for how to help out.
## License
Cupcake is MIT licensed, as found in the LICENSE file.
没有合适的资源?快使用搜索试试~ 我知道了~
用于基于格的加法同态加密的Rust库。.zip
共26个文件
rs:19个
md:4个
gitignore:1个
1.该资源内容由用户上传,如若侵权请联系客服进行举报
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
版权申诉
0 下载量 19 浏览量
2023-03-26
23:58:34
上传
评论
收藏 30KB ZIP 举报
温馨提示
用于基于格的加法同态加密的Rust库。.zip
资源推荐
资源详情
资源评论
收起资源包目录
用于基于格的加法同态加密的Rust库。.zip (26个子文件)
Cupcake-main
Cargo.toml 788B
src
utils.rs 1KB
serialize.rs 3KB
lib.rs 26KB
randutils.rs 2KB
traits.rs 2KB
polyarith
mod.rs 18B
lazy_ntt.rs 1KB
rqpoly.rs 13KB
integer_arith
butterfly.rs 7KB
mod.rs 2KB
util.rs 1000B
scalar.rs 13KB
LICENSE 1KB
benches
butterfly.rs 2KB
integerops.rs 734B
scheme.rs 2KB
polyops.rs 2KB
CONTRIBUTING.md 1KB
examples
serialization.rs 1KB
rerandomize.rs 1KB
basic.rs 1KB
CHANGELOG.md 207B
CODE_OF_CONDUCT.md 3KB
.gitignore 28B
README.md 2KB
共 26 条
- 1
资源评论
快撑死的鱼
- 粉丝: 1w+
- 资源: 9154
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功