|
@@ -94,8 +94,8 @@ static const ed25519_impl_t *ed25519_impl = NULL;
|
|
|
static inline const ed25519_impl_t *
|
|
|
get_ed_impl(void)
|
|
|
{
|
|
|
- if (PREDICT_UNLIKELY(ed25519_impl == NULL)) {
|
|
|
- pick_ed25519_impl();
|
|
|
+ if (BUG(ed25519_impl == NULL)) {
|
|
|
+ pick_ed25519_impl();
|
|
|
}
|
|
|
return ed25519_impl;
|
|
|
}
|
|
@@ -594,9 +594,12 @@ pick_ed25519_impl(void)
|
|
|
if (ed25519_impl_spot_check() == 0)
|
|
|
return;
|
|
|
|
|
|
+
|
|
|
+ * unreachable unless ed25519_donna is broken */
|
|
|
log_warn(LD_CRYPTO, "The Ed25519-donna implementation seems broken; using "
|
|
|
"the ref10 implementation.");
|
|
|
ed25519_impl = &impl_ref10;
|
|
|
+
|
|
|
}
|
|
|
|
|
|
|