skalenetwork / skale-consensus

Running the very core of SKL network, SKALE BFT consensus is universal, modern, modular, high-performance, asynchronous, provably-secure, agent-based Proof-of-Stake blockchain consensus engine in C++ 17. Includes provably secure embedded Oracle. Used by SKALE elastic blockchains. Easy and flexible enough to implement your own blockchain or smart contract platform. BLS signatures and Binary Asynchronous Consensus are main building blocks.
https://docs.skale.network/technology/consensus-spec
GNU Affero General Public License v3.0
77 stars 32 forks source link

Implement TE public encryption #582

Open sync-by-unito[bot] opened 2 years ago

sync-by-unito[bot] commented 2 years ago

Implement TE public encryption function of a 128-bit AES key using the current TE threshold encryption key

{noformat}

string CryptoManager::teEncryptAESKey(ptr<vector<uint8t>> aesKey) { CHECKSTATE(aesKey) CHECKSTATE(aesKey->size() == AESKEYLEN_BYTES);

if \(!isSGXEnabled\) {
    // mockup - dont encrypt
    return Utils::vector2Hex\(*aesKey\);
} else {
    return teEncryptAESKeySgx\(*aesKey\);
}

}

// encrypt 128 bit AES key using the current SGX public . Return a hex encryption string string CryptoManager::teEncryptAESKeySgx(sharedptr<vector<uint8t>> ) { return ""; }{noformat}

┆Issue is synchronized with this Jira Task

sync-by-unito[bot] commented 2 years ago

➤ Automation for Jira commented:

Corresponding Pull Request https://github.com/skalenetwork/skale-consensus/pull/586

sync-by-unito[bot] commented 2 years ago

➤ Evgeniy Zherdzitskiy commented:

Not include in V2 release. Temporary moved to BLOCKED column