Function lbcrypto::convertToSecretKeyDist(const std::string&)

Function Documentation

SecretKeyDist lbcrypto::convertToSecretKeyDist(const std::string &str)

Converts the name of a secret key distribution (e.g. “UNIFORM_TERNARY”) to the enum value.

Parameters

str – the name of the distribution, spelled as the enumerator.

Returns

the corresponding SecretKeyDist; throws if the name is unknown.