Closed chester-leung closed 3 years ago
hello @chester-leung i can fork and take a look if you don't start the issue.
Hi @lvntky, that would be great!
@chester-leung sorry for the delay I've been busy for few days at my job and can't log in to GitHub. now I'm forked the project, I'm working on it. I hope I can figure it out, Best wishes!
To prevent inconsistent key sizes across the MC2 ecosystem, we should not allow users to specify a key size in
generate_symmetric_key()
. Instead, we should retrieve theCIPHER_KEY_SIZE
from C++, similar to this, and use theCIPHER_KEY_SIZE
as the number of bytes for our generated key.To do so, we'll need to add a function in
src/c_api.cpp
, similar to thecipher_iv_size()
function that gets theCIPHER_KEY_SIZE
from C++.