]> git.baikalelectronics.ru Git - arm-tf.git/commitdiff
docs(auth): add auth_decrypt in CM chapter
authorYann Gautier <yann.gautier@foss.st.com>
Tue, 24 Jan 2023 08:23:10 +0000 (09:23 +0100)
committerManish V Badarkhe <Manish.Badarkhe@arm.com>
Fri, 21 Apr 2023 08:46:01 +0000 (09:46 +0100)
The call to REGISTER_CRYPTO_LIB requires auth_decrypt function to be
provided. Add its prototype and update REGISTER_CRYPTO_LIB call.

Signed-off-by: Yann Gautier <yann.gautier@foss.st.com>
Change-Id: Id1f2a54867ffe5dec36e0bf22490d01858891585

docs/design/auth-framework.rst

index 38a1173dbf8d7ffa77f47f8357e3a1598ef2feff..508a82faccd899cc8de202a97ef97f395e3da4fc 100644 (file)
@@ -241,6 +241,11 @@ functions must be provided by the CL:
                      unsigned char output[CRYPTO_MD_MAX_SIZE])
     int (*verify_hash)(void *data_ptr, unsigned int data_len,
                        void *digest_info_ptr, unsigned int digest_info_len);
+    int (*auth_decrypt)(enum crypto_dec_algo dec_algo, void *data_ptr,
+                        size_t len, const void *key, unsigned int key_len,
+                        unsigned int key_flags, const void *iv,
+                        unsigned int iv_len, const void *tag,
+                        unsigned int tag_len);
 
 These functions are registered in the CM using the macro:
 
@@ -250,7 +255,8 @@ These functions are registered in the CM using the macro:
                         _init,
                         _verify_signature,
                         _calc_hash,
-                        _verify_hash);
+                        _verify_hash,
+                        _auth_decrypt);
 
 ``_name`` must be a string containing the name of the CL. This name is used for
 debugging purposes.