diff options
| author | 2025-09-13 00:51:54 +0330 | |
|---|---|---|
| committer | 2025-09-13 00:51:54 +0330 | |
| commit | 59a134f2d68a6b27e8bd4e2c31794bd8f2dad6e8 (patch) | |
| tree | 07a85376425a0393ce2557e87adb6a7dd0aa4a02 /security.c | |
| parent | bug fixes (diff) | |
new things
Diffstat (limited to 'security.c')
| -rw-r--r-- | security.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -100,7 +100,7 @@ encrypt_and_sign(plain_payload input, keypair author_keys, public_key target_enc return output; } -plain_payload decrypt(secure_payload input, keypair target_keys, public_key author_signing_public) { +plain_payload decrypt(secure_payload input, keypair target_keys, public_key author_public, public_key author_signing_public) { init_sec(); plain_payload output; @@ -125,7 +125,7 @@ plain_payload decrypt(secure_payload input, keypair target_keys, public_key auth input.encrypted_data, sizeof(input.encrypted_data), input.nonce, - target_keys.encryption_pub, + author_public, target_keys.encryption_priv) != 0) { fprintf(stderr, "sodium decryption failed\n"); |
