pure sdk for main

This commit is contained in:
divadiow
2025-08-27 09:51:58 +01:00
parent f0d033f1c9
commit 0571416e7c
3283 changed files with 1577720 additions and 1 deletions
+23
View File
@@ -0,0 +1,23 @@
#include "typesdef.h"
#include "list.h"
#include "errno.h"
#include "dev.h"
#include "hal/sysaes.h"
int32 sysaes_encrypt(struct sysaes_dev *dev, struct sysaes_para *para)
{
if (dev && ((const struct aes_hal_ops *)dev->dev.ops)->encrypt) {
return ((const struct aes_hal_ops *)dev->dev.ops)->encrypt(dev, para);
}
return RET_ERR;
}
int32 sysaes_decrypt(struct sysaes_dev *dev, struct sysaes_para *para)
{
if (dev && ((const struct aes_hal_ops *)dev->dev.ops)->decrypt) {
return ((const struct aes_hal_ops *)dev->dev.ops)->decrypt(dev, para);
}
return RET_ERR;
}