From 27e69b59a574f82b05b5a0f9ab3bafedd876f7a6 Mon Sep 17 00:00:00 2001 From: Gilles Peskine Date: Sat, 19 Sep 2020 00:35:01 +0200 Subject: [PATCH] Fix prototypes of opaque key creation entry points The output length parameter was missing. Reported by Steven Cooreman. Signed-off-by: Gilles Peskine --- docs/proposed/psa-driver-interface.md | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/docs/proposed/psa-driver-interface.md b/docs/proposed/psa-driver-interface.md index f28e9a8ac..c7dbed3b6 100644 --- a/docs/proposed/psa-driver-interface.md +++ b/docs/proposed/psa-driver-interface.md @@ -5,7 +5,7 @@ This document describes an interface for cryptoprocessor drivers in the PSA cryp This specification is work in progress and should be considered to be in a beta stage. There is ongoing work to implement this interface in Mbed TLS, which is the reference implementation of the PSA Cryptography API. At this stage, Arm does not expect major changes, but minor changes are expected based on experience from the first implementation and on external feedback. -Time-stamp: "2020/09/18 20:35:28 GMT" +Time-stamp: "2020/09/18 22:34:47 GMT" ## Introduction @@ -503,10 +503,12 @@ psa_status_t acme_import_key(const psa_key_attributes_t *attributes, const uint8_t *data, size_t data_length, uint8_t *key_buffer, - size_t key_buffer_size); + size_t key_buffer_size, + size_t *key_buffer_length); psa_status_t acme_generate_key(const psa_key_attributes_t *attributes, uint8_t *key_buffer, - size_t key_buffer_size); + size_t key_buffer_size, + size_t *key_buffer_length); ``` If the driver has an [`"allocate_key"` entry point](#key-management-in-a-secure-element-with-storage), the core calls the `"allocate_key"` entry point with the same attributes on the same key buffer before calling the key creation entry point.