Rechercher dans le manuel MySQL

12.19.1 MySQL Enterprise Encryption Installation

MySQL Enterprise Encryption functions are located in a user-defined function (UDF) library file installed in the plugin directory (the directory named by the plugin_dir system variable). The UDF library base name is openssl_udf and the suffix is platform dependent. For example, the file name on Linux or Windows is openssl_udf.so or openssl_udf.dll, respectively.

To install functions from the library file, use the CREATE FUNCTION statement. To load all functions from the library, use this set of statements (adjust the file name suffix as necessary):

  1. CREATE FUNCTION asymmetric_decrypt RETURNS STRING
  2.   SONAME 'openssl_udf.so';
  3. CREATE FUNCTION asymmetric_derive RETURNS STRING
  4.   SONAME 'openssl_udf.so';
  5. CREATE FUNCTION asymmetric_encrypt RETURNS STRING
  6.   SONAME 'openssl_udf.so';
  7. CREATE FUNCTION asymmetric_sign RETURNS STRING
  8.   SONAME 'openssl_udf.so';
  9. CREATE FUNCTION asymmetric_verify RETURNS INTEGER
  10.   SONAME 'openssl_udf.so';
  11. CREATE FUNCTION create_asymmetric_priv_key RETURNS STRING
  12.   SONAME 'openssl_udf.so';
  13. CREATE FUNCTION create_asymmetric_pub_key RETURNS STRING
  14.   SONAME 'openssl_udf.so';
  15. CREATE FUNCTION create_dh_parameters RETURNS STRING
  16.   SONAME 'openssl_udf.so';
  17. CREATE FUNCTION create_digest RETURNS STRING
  18.   SONAME 'openssl_udf.so';

Once installed, UDFs remain installed across server restarts. To unload UDFs, use the DROP FUNCTION statement. For example, to unload the key-generation functions, do this:

  1. DROP FUNCTION create_asymmetric_priv_key;
  2. DROP FUNCTION create_asymmetric_pub_key;

In the CREATE FUNCTION and DROP FUNCTION statements, the function names must be specified in lowercase. This differs from their use at function invocation time, for which you can use any lettercase.

The CREATE FUNCTION and DROP FUNCTION statements require the INSERT and DROP privilege, respectively, for the mysql database.


Find a PHP function

Document created the 26/06/2006, last modified the 26/10/2018
Source of the printed document:https://www.gaudry.be/en/mysql-rf-enterprise-encryption-installation.html

The infobrol is a personal site whose content is my sole responsibility. The text is available under CreativeCommons license (BY-NC-SA). More info on the terms of use and the author.

References

  1. View the html document Language of the document:en Manuel MySQL : https://dev.mysql.com/

These references and links indicate documents consulted during the writing of this page, or which may provide additional information, but the authors of these sources can not be held responsible for the content of this page.
The author This site is solely responsible for the way in which the various concepts, and the freedoms that are taken with the reference works, are presented here. Remember that you must cross multiple source information to reduce the risk of errors.

Contents Haut