Searched refs:privateKey (Results 1 – 3 of 3) sorted by relevance
140 optional<vector<uint8_t>> ecPrivateKeyToKeyPair(const vector<uint8_t>& privateKey);195 optional<vector<uint8_t>> ecdh(const vector<uint8_t>& publicKey, const vector<uint8_t>& privateKey);
1044 vector<uint8_t> privateKey; in ecKeyPairGetPrivateKey() local1045 privateKey.resize(BN_num_bytes(bignum)); in ecKeyPairGetPrivateKey()1046 BN_bn2bin(bignum, privateKey.data()); in ecKeyPairGetPrivateKey()1047 return privateKey; in ecKeyPairGetPrivateKey()1050 optional<vector<uint8_t>> ecPrivateKeyToKeyPair(const vector<uint8_t>& privateKey) { in ecPrivateKeyToKeyPair() argument1051 auto bn = BIGNUM_Ptr(BN_bin2bn(privateKey.data(), privateKey.size(), nullptr)); in ecPrivateKeyToKeyPair()1326 const vector<uint8_t>& privateKey) { in ecdh() argument1353 auto bn = BIGNUM_Ptr(BN_bin2bn(privateKey.data(), privateKey.size(), nullptr)); in ecdh()
118 optional<vector<uint8_t>> privateKey = support::ecKeyPairGetPrivateKey(keyPKCS8.value()); in generateReaderKey() local119 return make_pair(publicKey.value(), privateKey.value()); in generateReaderKey()