diff options
Diffstat (limited to 'core/include/tee/tee_cryp_provider.h')
-rw-r--r-- | core/include/tee/tee_cryp_provider.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/core/include/tee/tee_cryp_provider.h b/core/include/tee/tee_cryp_provider.h index 0140d98..45b0b69 100644 --- a/core/include/tee/tee_cryp_provider.h +++ b/core/include/tee/tee_cryp_provider.h @@ -243,6 +243,16 @@ struct acipher_ops { const uint8_t *sig, size_t sig_len); }; +/* Encode/Decode operations */ + +struct codec_ops { + TEE_Result (*base64_encode)(const uint8_t *in, uint32_t inlen, + uint8_t *out, uint32_t *outlen); + TEE_Result (*base64_decode)(const uint8_t *in, uint32_t inlen, + uint8_t *out, uint32_t *outlen); +}; + + /* Cryptographic Provider API */ struct crypto_ops { /* Human-readable provider name */ @@ -254,6 +264,7 @@ struct crypto_ops { struct mac_ops mac; struct authenc_ops authenc; struct acipher_ops acipher; + struct codec_ops codec; struct bignum_ops bignum; }; |