Home
last modified time | relevance | path

Searched refs:cryspr (Results 1 – 15 of 15) sorted by relevance

/dports/www/srt/srt-1.4.4/haicrypt/
H A Dcryspr.c273 cryspr_cb->cryspr=(CRYSPR_methods *)cryspr; in crysprFallback_Open()
681 cryspr->prng = crysprStub_Prng; in crysprInit()
682 cryspr->aes_set_key = crysprStub_AES_SetKey; in crysprInit()
689 cryspr->open = crysprFallback_Open; in crysprInit()
690 cryspr->close = crysprFallback_Close; in crysprInit()
692 cryspr->km_pbkdf2 = crysprStub_KmPbkdf2; in crysprInit()
693 cryspr->km_setkey = crysprFallback_KmSetKey; in crysprInit()
697 cryspr->ms_setkey = crysprFallback_MsSetKey; in crysprInit()
698 cryspr->ms_encrypt = crysprFallback_MsEncrypt; in crysprInit()
699 cryspr->ms_decrypt = crysprFallback_MsDecrypt; in crysprInit()
[all …]
H A Dhcrypt.c72 crypto->cryspr = cfg->cryspr; in sHaiCrypt_PrepareHandle()
101 crypto->cryspr_cb = crypto->cryspr->open(crypto->cryspr, cfg->data_max_len); in sHaiCrypt_PrepareHandle()
141 } else if (NULL == cfg->cryspr) { in HaiCrypt_Create()
202 pcfg->cryspr = crypto->cryspr; in HaiCrypt_ExtractConfig()
299 …cryptoClone->cryspr_cb = cryptoClone->cryspr->open(cryptoClone->cryspr, cryptoClone->cfg.data_max_… in HaiCrypt_Clone()
332 if (crypto->cryspr && crypto->cryspr->close) crypto->cryspr->close(crypto->cryspr_cb); in HaiCrypt_Close()
H A Dfilelist-mbedtls.maf10 cryspr.h
11 cryspr-mbedtls.h
15 cryspr.c
16 cryspr-mbedtls.c
H A Dfilelist-openssl.maf10 cryspr.h
11 cryspr-openssl.h
15 cryspr.c
16 cryspr-openssl.c
H A Dhcrypt_rx.c42 ASSERT(NULL != crypto->cryspr); /* Header check should prevent this error */ in HaiCrypt_Rx_Data()
45 if (NULL == crypto->cryspr->ms_decrypt) { in HaiCrypt_Rx_Data()
53 if (0 > (nb = crypto->cryspr->ms_decrypt(crypto->cryspr_cb, ctx, &indata, 1, NULL, NULL, NULL))) { in HaiCrypt_Rx_Data()
95 ASSERT(NULL != crypto->cryspr); /* Header check should prevent this error */ in HaiCrypt_Rx_Process()
98 if (NULL == crypto->cryspr->ms_decrypt) { in HaiCrypt_Rx_Process()
107 if (crypto->cryspr->ms_decrypt(crypto->cryspr_cb, ctx, &indata, 1, out_p, out_len_p, &nbout)) { in HaiCrypt_Rx_Process()
H A Dfilelist-gnutls.maf12 cryspr.h
13 cryspr-gnutls.h
17 cryspr.c
18 cryspr-gnutls.c
H A Dhcrypt_sa.c39 if (0 > (iret = crypto->cryspr->km_setkey(crypto->cryspr_cb, in hcryptCtx_SetSecret()
78 iret = crypto->cryspr->km_pbkdf2(crypto->cryspr_cb, ctx->cfg.pwd, ctx->cfg.pwd_len, in hcryptCtx_GenSecret()
90 …if (0 > (iret = crypto->cryspr->km_setkey(crypto->cryspr_cb, (HCRYPT_CTX_F_ENCRYPT & ctx->flags ? … in hcryptCtx_GenSecret()
H A Dcryspr.h45 struct tag_CRYSPR_methods *cryspr; member
104 struct tag_CRYSPR_methods *cryspr,
197 CRYSPR_methods *crysprInit(CRYSPR_methods *cryspr);
H A Dhcrypt_ctx_tx.c55 if (0 > (iret = crypto->cryspr->prng(ctx->salt, ctx->salt_len))) { in hcryptCtx_Tx_Rekey()
62 if (0 > (iret = crypto->cryspr->prng(ctx->sek, ctx->sek_len))) { in hcryptCtx_Tx_Rekey()
68 if (crypto->cryspr->ms_setkey(crypto->cryspr_cb, ctx, ctx->sek, ctx->sek_len)) { in hcryptCtx_Tx_Rekey()
128 if (crypto->cryspr->ms_setkey(crypto->cryspr_cb, ctx, ctx->sek, ctx->sek_len)) { in hcryptCtx_Tx_CloneKey()
198 if (0 > crypto->cryspr->prng(new_ctx->sek, new_ctx->sek_len)) { in hcryptCtx_Tx_Refresh()
203 if (crypto->cryspr->ms_setkey(crypto->cryspr_cb, new_ctx, new_ctx->sek, new_ctx->sek_len)) { in hcryptCtx_Tx_Refresh()
323 if (0 > crypto->cryspr->km_wrap(crypto->cryspr_cb, in hcryptCtx_Tx_AsmKM()
H A Dhcrypt_tx.c39 ASSERT(NULL != crypto->cryspr); in HaiCrypt_Tx_GetBuf()
118 …if (0 > (nbout = crypto->cryspr->ms_encrypt(crypto->cryspr_cb, ctx, &indata, 1, NULL, NULL, NULL))… in HaiCrypt_Tx_Data()
167 …if (crypto->cryspr->ms_encrypt(crypto->cryspr_cb, ctx, &indata, 1, &out_p[nbout], &out_len_p[nbout… in HaiCrypt_Tx_Process()
H A Dhcrypt_ctx_rx.c41 if (crypto->cryspr->ms_setkey(crypto->cryspr_cb, ctx, sek, sek_len)) { in hcryptCtx_Rx_Rekey()
160 if (0 > crypto->cryspr->km_unwrap(crypto->cryspr_cb, seks, in hcryptCtx_Rx_ParseKM()
H A Dhaicrypt.h67 HaiCrypt_Cryspr cryspr; /* CRYSPR implementation */ member
H A Dhcrypt.h77 CRYSPR_methods * cryspr; member
/dports/www/srt/srt-1.4.4/srtcore/
H A Dcrypto.cpp712 crypto_cfg.cryspr = HaiCryptCryspr_Get_Instance(); in createCryptoCtx()
721 …< CryptoFlags(crypto_cfg.flags) << " xport=" << crypto_cfg.xport << " cryspr=" << crypto_cfg.cryspr in createCryptoCtx()
/dports/www/srt/srt-1.4.4/test/
H A Dtest_cryspr.cpp197 EXPECT_EQ(cryspr_m, cryspr_cb->cryspr); //methods set in control block