Page MenuHomePhabricator

PSA driver for cipher multipart capability
Open, NormalPublic

Description

Develop a cc_3xx driver entry point for the cipher multipart capability (cipher_encrypt_multipart, cipher_decrypt_multipart)

List of entry points to be finalised first.

Modify the build system to build any additional source added.

Make sure no tests break.

Event Timeline

adeaarm triaged this task as Normal priority.Fri, Jun 25, 11:17 AM
adeaarm created this task.
adeaarm assigned this task to noonfom.Thu, Jul 1, 2:28 PM

Prototypes derived from: https://github.com/ARMmbed/mbedtls/blob/development/library/psa_crypto_driver_wrappers.h

typedef ... acme_cipher_operation_t;
psa_status_t acme_cipher_encrypt_setup(
    acme_cipher_operation_t *operation,
    const psa_key_attributes_t *attributes,
    const uint8_t *key, size_t key_length,
    psa_algorithm_t alg);
psa_status_t acme_cipher_decrypt_setup(
    acme_cipher_operation_t *operation,
    const psa_key_attributes_t *attributes,
    const uint8_t *key, size_t key_length,
    psa_algorithm_t alg);
psa_status_t acme_cipher_set_iv(
    acme_cipher_operation_t *operation,
    const uint8_t *iv, size_t iv_length);
psa_status_t acme_cipher_update(
    acme_cipher_operation_t *operation,
    const uint8_t *input, size_t input_length,
    uint8_t *output, size_t output_size, size_t *output_length);
psa_status_t acme_cipher_finish(
    acme_cipher_operation_t *operation,
    uint8_t *output, size_t output_size, size_t *output_length);
psa_status_t acme_cipher_abort(
    acme_cipher_operation_t *operation);
noonfom moved this task from Restricted Project Column to Restricted Project Column on the Restricted Project board.Mon, Jul 5, 8:28 AM
noonfom moved this task from Restricted Project Column to Restricted Project Column on the Restricted Project board.Fri, Jul 23, 8:26 AM