aboutsummaryrefslogtreecommitdiff
path: root/src/noscrypt.c
diff options
context:
space:
mode:
authorLibravatar vnugent <public@vaughnnugent.com>2024-11-04 11:21:47 -0500
committerLibravatar vnugent <public@vaughnnugent.com>2024-11-04 11:21:47 -0500
commit7ec20facaff2e38b2cdb2f445bda1d5a237e1ea7 (patch)
tree09a36061e8303a50a6f3609153685eaab37744ec /src/noscrypt.c
parente0d30c1d8f407bfef05a9cc36398bb0894a96c39 (diff)
refactor: #9 Light cleanup & prep for release
Diffstat (limited to 'src/noscrypt.c')
-rw-r--r--src/noscrypt.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/noscrypt.c b/src/noscrypt.c
index fededaf..1e19337 100644
--- a/src/noscrypt.c
+++ b/src/noscrypt.c
@@ -216,7 +216,7 @@ static NCResult _computeSharedSecret(
*/
result = secp256k1_ecdh(
ctx->secpCtx,
- (uint8_t*)sharedPoint,
+ sharedPoint->value,
&pubKey,
sk->key,
&_edhHashFuncInternal,
@@ -876,7 +876,6 @@ NC_EXPORT NCResult NC_CC NCEncrypt(
result = _encryptNip44Ex(ctx, &conversationKey, args->keyData, args);
}
-
break;
/* At the moment nip04 compatability is not supported */