From 2eb3939ece842e3a0bb641238fd9ac216107aec7 Mon Sep 17 00:00:00 2001 From: Tim Otten Date: Fri, 18 Dec 2020 13:14:17 -0800 Subject: [PATCH] (NFC) CRM_Utils_Hook - Tweak description of crypto() --- CRM/Utils/Hook.php | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/CRM/Utils/Hook.php b/CRM/Utils/Hook.php index 8ec1d7235da5..920cdf74e145 100644 --- a/CRM/Utils/Hook.php +++ b/CRM/Utils/Hook.php @@ -1760,9 +1760,12 @@ public static function alterTemplateFile($formName, &$form, $context, &$tplName) } /** - * Initialize the cryptographic service. + * Register cryptographic resources, such as keys and cipher-suites. * - * This may be used to register additional keys or cipher-suites. + * Ex: $crypto->addSymmetricKey([ + * 'key' => hash_hkdf('sha256', 'abcd1234'), + * 'suite' => 'aes-cbc-hs', + * ]); * * @param \Civi\Crypto\CryptoRegistry $crypto *