src/sodium/keys_encryption.cpp
void DS_EncPrivKey::updatePubKey() {
	uint8_t tmp[ENC_PUBKEY_SIZE_BYTES];
	if (crypto_scalarmult_base(tmp, key) == 0) {
		pubkey.SetFromBinaryData(tmp, ENC_PUBKEY_SIZE_BYTES);
	} else {
		pubkey.SetNull();
	}
}
/**
DS_EncPriKey: Encryption private key and encryption interface
*/
Encryption private key and encryption interface
Encryption private key and encryption interface
void DS_EncPrivKey::updatePubKey() {
	uint8_t tmp[ENC_PUBKEY_SIZE_BYTES];
	if (crypto_scalarmult_base(tmp, key) == 0) {
		pubkey.SetFromBinaryData(tmp, ENC_PUBKEY_SIZE_BYTES);
	} else {
		pubkey.SetNull();
	}
}
void DS_EncPrivKey :: updatePubKey ( ) { uint8_t tmp [ ENC_PUBKEY_SIZE_BYTES ] ; if ( crypto_scalarmult_base ( tmp , key ) == 0 ) { pubkey . SetFromBinaryData ( tmp , ENC_PUBKEY_SIZE_BYTES ) ; } else { pubkey . SetNull ( ) ; } }
DS_EncPriKey: Encryption private key and encryption interface
DS_EncPriKey : Encryption private key and encryption interface