finally fixed asymmetric encryption pbp<=>pcp, it now works

This commit is contained in:
TLINDEN
2014-02-06 20:09:55 +01:00
parent 7d715ba880
commit 181c5ddac4
3 changed files with 32 additions and 11 deletions

View File

@@ -464,6 +464,7 @@ int pcp_importpublic (vault_t *vault, FILE *in, int pbpcompat) {
memcpy(pub->pub, b->pub, crypto_box_PUBLICKEYBYTES);
memcpy(pub->edpub, b->edpub, crypto_sign_PUBLICKEYBYTES);
memcpy(pub->id, pcp_getpubkeyid(pub), 17);
_lc(pub->owner);
/* edpub used for signing, might differ */
memcpy(tmp->edpub, b->sigpub, crypto_sign_PUBLICKEYBYTES);