kkAyataka
kkAyataka
I think that it is not a feature of the encryption (plusaes) library. It is a feature of binary handling. For example, we can use `std::string` as input data or...
No reply, out of scope
I considered 0-size IV, but it is hard to accept. My understanding is that the IV size of GCM should be one or more. The library can arithmetically calculate with...
Hmm. I cannot imagine. I don't want to ignore the specifications. Can you give a specific use case? For example, If I create a special version of the following, would...
Merged.
I tried to encrypt it for now. Node.js ```js const crypto = require('crypto'); const encryptSymmetric = (keyStr, ivStr, plaintext) => { const key =Buffer.from(keyStr).toString('base64'); const iv = Buffer.from(ivStr).toString('base64'); const cipher...
I added the decryption code. Encryption results are the same. So the result of Node.js can be decrypted with plusaes.
```cpp std::vector encrypted_from_nodejs = { 0xc8, 0x97, 0x91, 0x82, 0x6d, 0x6d, 0xe1, 0x91, 0x89, 0x67, 0x4c, 0xe5, 0xb4, 0x66 }; const std::string raw_aadata_from_nodejs = "SuperSecretKey"; std::vector aadata_from_nodejs(raw_aadata_from_nodejs.begin(), raw_aadata_from_nodejs.end()); std::vector iv_same_nodejs...