Home
last modified time | relevance | path

Searched refs:paddingMode (Results 1 – 7 of 7) sorted by relevance

/base/security/crypto_framework/plugin/openssl_plugin/crypto_operation/cipher/src/
Dcipher_sm4_openssl.c164 switch (cipherImpl->attr.paddingMode) { in GetPaddingMode()
202 …if (cipherImpl->attr.paddingMode != HCF_ALG_NOPADDING && cipherImpl->attr.paddingMode != HCF_ALG_P… in CheckParam()
203 && cipherImpl->attr.paddingMode != HCF_ALG_PADDING_PKCS7) { in CheckParam()
204 LOGE("Invalid padding mode %u", cipherImpl->attr.paddingMode); in CheckParam()
Dcipher_rsa_openssl.c187 (void)GetOpensslPadding(attr.paddingMode, &opensslPadding); in SetDetailParams()
193 if (attr.paddingMode != HCF_OPENSSL_RSA_PKCS1_OAEP_PADDING) { in SetDetailParams()
241 if (attr.paddingMode != HCF_OPENSSL_RSA_PKCS1_OAEP_PADDING) { in SetRsaCipherSpecUint8Array()
294 if (attr.paddingMode != HCF_OPENSSL_RSA_PKCS1_OAEP_PADDING) { in GetRsaCipherSpecUint8Array()
327 if (attr.paddingMode != HCF_OPENSSL_RSA_PKCS1_OAEP_PADDING) { in GetRsaCipherSpecString()
483 if (GetOpensslPadding(params->paddingMode, &opensslPadding) != HCF_SUCCESS) { in CheckRsaCipherParams()
492 if (params->paddingMode == HCF_OPENSSL_RSA_PKCS1_OAEP_PADDING) { in CheckRsaCipherParams()
Dcipher_3des_openssl.c134 int32_t padding = (cipherImpl->attr.paddingMode == HCF_ALG_NOPADDING) ? 0 : EVP_PADDING_PKCS7; in EngineCipherInit()
Dcipher_aes_openssl.c402 int32_t padding = (cipherImpl->attr.paddingMode == HCF_ALG_NOPADDING) ? 0 : EVP_PADDING_PKCS7; in EngineCipherInit()
/base/security/crypto_framework/common/inc/
Dparams_parser.h139 HcfAlgParaValue paddingMode; member
/base/security/crypto_framework/test/unittest/src/
Dcrypto_rsa_cipher_test.cpp2353 .paddingMode = HCF_OPENSSL_RSA_PKCS1_PADDING,
2369 .paddingMode = HCF_OPENSSL_RSA_PSS_PADDING,
2386 .paddingMode = HCF_OPENSSL_RSA_PKCS1_PADDING,
2407 .paddingMode = HCF_OPENSSL_RSA_PKCS1_PADDING,
2442 .paddingMode = HCF_OPENSSL_RSA_PKCS1_PADDING,
2467 .paddingMode = HCF_OPENSSL_RSA_PKCS1_PADDING,
2488 .paddingMode = HCF_OPENSSL_RSA_PKCS1_PADDING,
2510 .paddingMode = HCF_OPENSSL_RSA_PKCS1_PADDING,
2531 .paddingMode = HCF_OPENSSL_RSA_PKCS1_PADDING,
2553 .paddingMode = HCF_OPENSSL_RSA_PKCS1_PADDING,
[all …]
/base/security/crypto_framework/frameworks/crypto_operation/
Dcipher.c127 cipherAttr->paddingMode = value; in SetPadding()