Ai
1 Star 0 Fork 2

BuildOpenSource/busybox

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
tls_rsa.h 955 Bytes
一键复制 编辑 原始数据 按行查看 历史
Denys Vlasenko 提交于 2018-11-25 23:17 +08:00 . tls: do not leak RSA key
/*
* Copyright (C) 2017 Denys Vlasenko
*
* Licensed under GPLv2, see file LICENSE in this source tree.
*
* Selected few declarations for RSA.
*/
typedef struct {
pstm_int e, d, N, qP, dP, dQ, p, q;
uint32 size; /* Size of the key in bytes */
int32 optimized; /* 1 for optimized */
//bbox psPool_t *pool;
} psRsaKey_t;
static ALWAYS_INLINE void psRsaKey_clear(psRsaKey_t *key)
{
pstm_clear(&key->N);
pstm_clear(&key->e);
pstm_clear(&key->d);
pstm_clear(&key->p);
pstm_clear(&key->q);
pstm_clear(&key->dP);
pstm_clear(&key->dQ);
pstm_clear(&key->qP);
}
#define psRsaEncryptPub(pool, key, in, inlen, out, outlen, data) \
psRsaEncryptPub( key, in, inlen, out, outlen)
int32 psRsaEncryptPub(psPool_t *pool, psRsaKey_t *key,
unsigned char *in, uint32 inlen,
unsigned char *out, uint32 outlen, void *data) FAST_FUNC;
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/build-open-source/busybox.git
git@gitee.com:build-open-source/busybox.git
build-open-source
busybox
busybox
master

搜索帮助