YoushouldhavereceivedacopyoftheGNUGeneralPublicLicense alongwiththisprogram;ifnot,writetotheFreeSoftware
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1335 USA */
/* prepare random nonce */ if (my_random_bytes((unsignedchar *)nonce, (int)sizeof(nonce))) return CR_ERROR; // eh? OpenSSL error
/* send it */ if (vio->write_packet(vio, reply + CRYPTO_BYTES, NONCE_BYTES)) return CR_AUTH_HANDSHAKE;
/* read the signature */ if ((pkt_len= vio->read_packet(vio, &pkt)) != CRYPTO_BYTES) return CR_AUTH_HANDSHAKE;
memcpy(reply, pkt, CRYPTO_BYTES);
if (crypto_sign_open(reply, CRYPTO_BYTES + NONCE_BYTES,
(unsignedchar*)info->auth_string)) return CR_AUTH_USER_CREDENTIALS; // wrong password provided by the user
/* Atleastoneof_init/_deinitisneededunlesstheserverisstarted with--allow_suspicious_udfs.
*/
MYSQL_PLUGIN_EXPORT
my_bool ed25519_password_init(UDF_INIT *initid, UDF_ARGS *args, char *message)
{ if (args->arg_count != 1 || args->arg_type[0] != STRING_RESULT)
{
strcpy(message,"Wrong arguments to ed25519_password()"); return1;
} if (!loaded)
{ /* cannot work unless the plugin is loaded, we need services. */
strcpy(message,"Authentication plugin ed25519 is not loaded"); return1;
}
initid->max_length= PASSWORD_LEN_BUF; return0;
}
Messung V0.5 in Prozent
¤ Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.0.13Bemerkung:
(vorverarbeitet am 2026-10-08)
¤
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.