Home
last modified time | relevance | path

Searched refs:saltlen (Results 1 – 5 of 5) sorted by relevance

/base/startup/hvb/libhvb/src/crypto/
Dhvb_rsa_verify.c50 uint8_t *salt, uint32_t saltlen, in emsa_pss_calc_m() argument
56 m_tmp_len = digestlen + saltlen + PSS_MTMP_PADDING_LEN; in emsa_pss_calc_m()
65 if (saltlen != 0 && salt) { in emsa_pss_calc_m()
66 hvb_memcpy(&m_tmp[PSS_MTMP_PADDING_LEN + digestlen], salt, saltlen); in emsa_pss_calc_m()
183 uint32_t saltlen) in emsa_pss_verify_check_db() argument
187 for (i = 0; i < emlen - digestlen - saltlen - PSS_EM_PADDING_LEN; i++) { in emsa_pss_verify_check_db()
193 if (db[db_len - saltlen - PSS_DB_PADDING_LEN] != PADDING_UNIT_ONE) { in emsa_pss_verify_check_db()
200 static int emsa_pss_verify(uint32_t saltlen, const uint8_t *pdigest, in emsa_pss_verify() argument
221 …if (emlen < digestlen + PSS_EM_PADDING_LEN || saltlen > (emlen - digestlen - PSS_EM_PADDING_LEN)) { in emsa_pss_verify()
257 ret = emsa_pss_verify_check_db(db, db_len, emlen, digestlen, saltlen); in emsa_pss_verify()
[all …]
/base/startup/hvb/libhvb/include/
Dhvb_crypto.h78 uint32_t signlen, uint32_t saltlen);
/base/security/crypto_framework/plugin/openssl_plugin/common/src/
Dopenssl_adapter.c610 int Openssl_EVP_PKEY_CTX_set_rsa_pss_saltlen(EVP_PKEY_CTX *ctx, int saltlen) in Openssl_EVP_PKEY_CTX_set_rsa_pss_saltlen() argument
612 return EVP_PKEY_CTX_set_rsa_pss_saltlen(ctx, saltlen); in Openssl_EVP_PKEY_CTX_set_rsa_pss_saltlen()
615 int Openssl_EVP_PKEY_CTX_get_rsa_pss_saltlen(EVP_PKEY_CTX *ctx, int *saltlen) in Openssl_EVP_PKEY_CTX_get_rsa_pss_saltlen() argument
617 return EVP_PKEY_CTX_get_rsa_pss_saltlen(ctx, saltlen); in Openssl_EVP_PKEY_CTX_get_rsa_pss_saltlen()
/base/security/crypto_framework/test/unittest/src/
Dopenssl_adapter_mock.c925 int Openssl_EVP_PKEY_CTX_set_rsa_pss_saltlen(EVP_PKEY_CTX *ctx, int saltlen) in Openssl_EVP_PKEY_CTX_set_rsa_pss_saltlen() argument
927 return EVP_PKEY_CTX_set_rsa_pss_saltlen(ctx, saltlen); in Openssl_EVP_PKEY_CTX_set_rsa_pss_saltlen()
930 int Openssl_EVP_PKEY_CTX_get_rsa_pss_saltlen(EVP_PKEY_CTX *ctx, int *saltlen) in Openssl_EVP_PKEY_CTX_get_rsa_pss_saltlen() argument
932 return EVP_PKEY_CTX_get_rsa_pss_saltlen(ctx, saltlen); in Openssl_EVP_PKEY_CTX_get_rsa_pss_saltlen()
/base/security/crypto_framework/plugin/openssl_plugin/common/inc/
Dopenssl_adapter.h166 int Openssl_EVP_PKEY_CTX_set_rsa_pss_saltlen(EVP_PKEY_CTX *ctx, int saltlen);
167 int Openssl_EVP_PKEY_CTX_get_rsa_pss_saltlen(EVP_PKEY_CTX *ctx, int *saltlen);