1
1
mirror of https://github.com/henrydcase/pqc.git synced 2024-11-22 15:39:07 +00:00

Update README.md

This commit is contained in:
Henry Case 2021-03-27 00:10:29 +00:00 committed by GitHub
parent 2453c43da9
commit de793ebcc8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -48,7 +48,7 @@ Library provides simple API, wrapping PQClean. For example to use KEM, one shoul
pqc_kem_encapsulate(p, ct.data(), ss1.data(), pk.data()); pqc_kem_encapsulate(p, ct.data(), ss1.data(), pk.data());
pqc_kem_decapsulate(p, ss2.data(), ct.data(), sk.data()); pqc_kem_decapsulate(p, ss2.data(), ct.data(), sk.data());
params_t *p = pqc_sig_alg_by_id(DILITHIUM2); *p = pqc_sig_alg_by_id(DILITHIUM2);
size_t sigsz = sig.capacity(); size_t sigsz = sig.capacity();
pqc_keygen(p, pk.data(), sk.data()); pqc_keygen(p, pk.data(), sk.data());
pqc_sig_create(p, sig.data(), &sigsz, msg.data(), msg.size(), sk.data()); pqc_sig_create(p, sig.data(), &sigsz, msg.data(), msg.size(), sk.data());