ot::Crypto::Ecdsa::P256::KeyPair::Generate() method
Generates and populates the `KeyPair` with a new public/private keys.
Return value
kErrorNone A new key pair was generated successfully. kErrorNoBufs Failed to allocate buffer for key generation. kErrorNotCapable Feature not supported. kErrorFailed Failed to generate key.