#ifndef _KNOXAI_RSA_H_
#define _KNOXAI_RSA_H_
#include <stdio.h>
#include <stdint.h>

//This is the header file containing the declarations of 
//platform-independent TZ functions, as well as the 
//declarations of the types and return codes related to TZ functions.

#define TZ_API_OK      0
#define TZ_API_ERROR   1

uint32_t knoxai_rsa_encrypt(
    uint8_t *keyMod,
    uint32_t keyModLen,
    uint8_t *keyPubExp,
    uint32_t keyPubExpLen,
    uint8_t * in,
    uint32_t in_len,
    uint8_t * out,
    uint32_t * pOut_len
);

uint32_t knoxai_rsa_decrypt(
    uint8_t *keyMod,
    uint32_t keyModLen,
    uint8_t *keyPubExp,
    uint32_t keyPubExpLen,
    uint8_t *keyPriExp,
    uint32_t keyPriExpLen,
    uint8_t * in,
    uint32_t in_len,
    uint8_t * out,
    uint32_t * pOut_len
);

#endif /* _KNOXAI_RSA_H_ */

