dholecrypto-js icon indicating copy to clipboard operation
dholecrypto-js copied to clipboard

Keywrap bug using `SymmetricKey.generate()`

Open grempe opened this issue 4 years ago • 0 comments

If using the instructions provided in the README for Keyring Keywrap it fails with:

    let wrap = await SymmetricKey.generate();
    
    // alternatively, if keywrap key is set to null it works
    // let wrap = null

    let ring = new Keyring(wrap);
    let symmetric = await SymmetricKey.generate();
    let key = await ring.save(symmetric);

TypeError: Invalid type; string or buffer expected

See the following failing runkit example:

https://runkit.com/grempe/604bb5107fed34001a98c583

grempe avatar Mar 12 '21 18:03 grempe