Home
last modified time | relevance | path

Searched refs:OH_Crypto_ErrCode (Results 1 - 18 of 18) sorted by relevance

/base/security/crypto_framework/interfaces/kits/native/include/
H A Dcrypto_sym_cipher.h79 * @return {@link OH_Crypto_ErrCode#CRYPTO_SUCCESS} 0 - If the operation is successful.
80 * {@link OH_Crypto_ErrCode#CRYPTO_INVALID_PARAMS} 401 - If parameter is invalid.
81 * {@link OH_Crypto_ErrCode#CRYPTO_NOT_SUPPORTED} 801 - If the operation is not supported.
82 * {@link OH_Crypto_ErrCode#CRYPTO_MEMORY_ERROR} 17620001 - If memory operation failed.
83 * {@link OH_Crypto_ErrCode#CRYPTO_OPERTION_ERROR} 17630001 - If crypto opertion failed.
86 OH_Crypto_ErrCode OH_CryptoSymCipherParams_Create(OH_CryptoSymCipherParams **params);
94 * @return {@link OH_Crypto_ErrCode#CRYPTO_SUCCESS} 0 - If the operation is successful.
95 * {@link OH_Crypto_ErrCode#CRYPTO_INVALID_PARAMS} 401 - If parameter is invalid.
96 * {@link OH_Crypto_ErrCode#CRYPTO_NOT_SUPPORTED} 801 - If the operation is not supported.
97 * {@link OH_Crypto_ErrCode#CRYPTO_MEMORY_ERRO
[all...]
H A Dcrypto_signature.h79 * @return {@link OH_Crypto_ErrCode#CRYPTO_SUCCESS} 0 - If the operation is successful.
80 * {@link OH_Crypto_ErrCode#CRYPTO_INVALID_PARAMS} 401 - If parameter is invalid.
81 * {@link OH_Crypto_ErrCode#CRYPTO_NOT_SUPPORTED} 801 - If the operation is not supported.
82 * {@link OH_Crypto_ErrCode#CRYPTO_MEMORY_ERROR} 17620001 - If memory operation failed.
83 * {@link OH_Crypto_ErrCode#CRYPTO_OPERTION_ERROR} 17630001 - If crypto opertion failed.
86 OH_Crypto_ErrCode OH_CryptoVerify_Create(const char *algoName, OH_CryptoVerify **verify);
93 * @return {@link OH_Crypto_ErrCode#CRYPTO_SUCCESS} 0 - If the operation is successful.
94 * {@link OH_Crypto_ErrCode#CRYPTO_INVALID_PARAMS} 401 - If parameter is invalid.
95 * {@link OH_Crypto_ErrCode#CRYPTO_NOT_SUPPORTED} 801 - If the operation is not supported.
96 * {@link OH_Crypto_ErrCode#CRYPTO_MEMORY_ERRO
[all...]
H A Dcrypto_sym_key.h64 * @return {@link OH_Crypto_ErrCode#CRYPTO_SUCCESS} 0 - If the operation is successful.
65 * {@link OH_Crypto_ErrCode#CRYPTO_INVALID_PARAMS} 401 - If parameter is invalid.
66 * {@link OH_Crypto_ErrCode#CRYPTO_NOT_SUPPORTED} 801 - If the operation is not supported.
67 * {@link OH_Crypto_ErrCode#CRYPTO_MEMORY_ERROR} 17620001 - If memory operation failed.
68 * {@link OH_Crypto_ErrCode#CRYPTO_OPERTION_ERROR} 17630001 - If crypto opertion failed.
71 OH_Crypto_ErrCode OH_CryptoSymKeyGenerator_Create(const char *algoName, OH_CryptoSymKeyGenerator **ctx);
78 * @return {@link OH_Crypto_ErrCode#CRYPTO_SUCCESS} 0 - If the operation is successful.
79 * {@link OH_Crypto_ErrCode#CRYPTO_INVALID_PARAMS} 401 - If parameter is invalid.
80 * {@link OH_Crypto_ErrCode#CRYPTO_NOT_SUPPORTED} 801 - If the operation is not supported.
81 * {@link OH_Crypto_ErrCode#CRYPTO_MEMORY_ERRO
[all...]
H A Dcrypto_asym_key.h155 * @return {@link OH_Crypto_ErrCode#CRYPTO_SUCCESS} 0 - If the operation is successful.
156 * {@link OH_Crypto_ErrCode#CRYPTO_INVALID_PARAMS} 401 - If parameter is invalid.
157 * {@link OH_Crypto_ErrCode#CRYPTO_NOT_SUPPORTED} 801 - If the operation is not supported.
158 * {@link OH_Crypto_ErrCode#CRYPTO_MEMORY_ERROR} 17620001 - If memory operation failed.
159 * {@link OH_Crypto_ErrCode#CRYPTO_OPERTION_ERROR} 17630001 - If crypto opertion failed.
162 OH_Crypto_ErrCode OH_CryptoAsymKeyGenerator_Create(const char *algoName, OH_CryptoAsymKeyGenerator **ctx);
169 * @return {@link OH_Crypto_ErrCode#CRYPTO_SUCCESS} 0 - If the operation is successful.
170 * {@link OH_Crypto_ErrCode#CRYPTO_INVALID_PARAMS} 401 - If parameter is invalid.
171 * {@link OH_Crypto_ErrCode#CRYPTO_NOT_SUPPORTED} 801 - If the operation is not supported.
172 * {@link OH_Crypto_ErrCode#CRYPTO_MEMORY_ERRO
[all...]
H A Dcrypto_digest.h57 * @return {@link OH_Crypto_ErrCode#CRYPTO_SUCCESS} 0 - If the operation is successful.
58 * {@link OH_Crypto_ErrCode#CRYPTO_INVALID_PARAMS} 401 - If parameter is invalid.
59 * {@link OH_Crypto_ErrCode#CRYPTO_NOT_SUPPORTED} 801 - If the operation is not supported.
60 * {@link OH_Crypto_ErrCode#CRYPTO_MEMORY_ERROR} 17620001 - If memory operation failed.
61 * {@link OH_Crypto_ErrCode#CRYPTO_OPERTION_ERROR} 17630001 - If crypto opertion failed.
64 OH_Crypto_ErrCode OH_CryptoDigest_Create(const char *algoName, OH_CryptoDigest **ctx);
71 * @return {@link OH_Crypto_ErrCode#CRYPTO_SUCCESS} 0 - If the operation is successful.
72 * {@link OH_Crypto_ErrCode#CRYPTO_INVALID_PARAMS} 401 - If parameter is invalid.
73 * {@link OH_Crypto_ErrCode#CRYPTO_NOT_SUPPORTED} 801 - If the operation is not supported.
74 * {@link OH_Crypto_ErrCode#CRYPTO_MEMORY_ERRO
[all...]
H A Dcrypto_common.h74 } OH_Crypto_ErrCode; typedef
/base/security/crypto_framework/frameworks/native/src/
H A Dsym_cipher.c59 OH_Crypto_ErrCode OH_CryptoSymCipherParams_Create(OH_CryptoSymCipherParams **params) in OH_CryptoSymCipherParams_Create()
71 OH_Crypto_ErrCode OH_CryptoSymCipherParams_SetParam(OH_CryptoSymCipherParams *params, in OH_CryptoSymCipherParams_SetParam()
104 OH_Crypto_ErrCode OH_CryptoSymCipher_Create(const char *algoName, OH_CryptoSymCipher **ctx) in OH_CryptoSymCipher_Create()
113 OH_Crypto_ErrCode OH_CryptoSymCipher_Init(OH_CryptoSymCipher *ctx, Crypto_CipherMode mod, in OH_CryptoSymCipher_Init()
123 OH_Crypto_ErrCode OH_CryptoSymCipher_Update(OH_CryptoSymCipher *ctx, Crypto_DataBlob *in, Crypto_DataBlob *out) in OH_CryptoSymCipher_Update()
132 OH_Crypto_ErrCode OH_CryptoSymCipher_Final(OH_CryptoSymCipher *ctx, Crypto_DataBlob *in, Crypto_DataBlob *out) in OH_CryptoSymCipher_Final()
H A Ddigest.c36 OH_Crypto_ErrCode OH_CryptoDigest_Create(const char *algoName, OH_CryptoDigest **ctx) in OH_CryptoDigest_Create()
45 OH_Crypto_ErrCode OH_CryptoDigest_Update(OH_CryptoDigest *ctx, Crypto_DataBlob *in) in OH_CryptoDigest_Update()
54 OH_Crypto_ErrCode OH_CryptoDigest_Final(OH_CryptoDigest *ctx, Crypto_DataBlob *out) in OH_CryptoDigest_Final()
H A Dsym_key.c45 OH_Crypto_ErrCode OH_CryptoSymKeyGenerator_Create(const char *algoName, OH_CryptoSymKeyGenerator **ctx) in OH_CryptoSymKeyGenerator_Create()
54 OH_Crypto_ErrCode OH_CryptoSymKeyGenerator_Generate(OH_CryptoSymKeyGenerator *ctx, OH_CryptoSymKey **keyCtx) in OH_CryptoSymKeyGenerator_Generate()
63 OH_Crypto_ErrCode OH_CryptoSymKeyGenerator_Convert(OH_CryptoSymKeyGenerator *ctx, in OH_CryptoSymKeyGenerator_Convert()
97 OH_Crypto_ErrCode OH_CryptoSymKey_GetKeyData(OH_CryptoSymKey *keyCtx, Crypto_DataBlob *out) in OH_CryptoSymKey_GetKeyData()
H A Dsignature.c49 OH_Crypto_ErrCode OH_CryptoVerify_Create(const char *algoName, OH_CryptoVerify **verify) in OH_CryptoVerify_Create()
58 OH_Crypto_ErrCode OH_CryptoVerify_Init(OH_CryptoVerify *ctx, OH_CryptoPubKey *pubKey) in OH_CryptoVerify_Init()
67 OH_Crypto_ErrCode OH_CryptoVerify_Update(OH_CryptoVerify *ctx, Crypto_DataBlob *in) in OH_CryptoVerify_Update()
89 OH_Crypto_ErrCode OH_CryptoVerify_Recover(OH_CryptoVerify *ctx, Crypto_DataBlob *signData, in OH_CryptoVerify_Recover()
107 OH_Crypto_ErrCode OH_CryptoVerify_SetParam(OH_CryptoVerify *ctx, CryptoSignature_ParamType type, in OH_CryptoVerify_SetParam()
139 OH_Crypto_ErrCode OH_CryptoVerify_GetParam(OH_CryptoVerify *ctx, CryptoSignature_ParamType type, in OH_CryptoVerify_GetParam()
H A Dasym_key.c66 OH_Crypto_ErrCode OH_CryptoAsymKeyGenerator_Create(const char *algoName, OH_CryptoAsymKeyGenerator **ctx) in OH_CryptoAsymKeyGenerator_Create()
75 OH_Crypto_ErrCode OH_CryptoAsymKeyGenerator_Generate(OH_CryptoAsymKeyGenerator *ctx, OH_CryptoKeyPair **keyCtx) in OH_CryptoAsymKeyGenerator_Generate()
84 OH_Crypto_ErrCode OH_CryptoAsymKeyGenerator_Convert(OH_CryptoAsymKeyGenerator *ctx, Crypto_EncodingType type, in OH_CryptoAsymKeyGenerator_Convert()
141 OH_Crypto_ErrCode OH_CryptoPubKey_Encode(OH_CryptoPubKey *key, Crypto_EncodingType type, in OH_CryptoPubKey_Encode()
178 OH_Crypto_ErrCode OH_CryptoPubKey_GetParam(OH_CryptoPubKey *key, CryptoAsymKey_ParamType item, Crypto_DataBlob *value) in OH_CryptoPubKey_GetParam()
H A Dnative_common.c18 OH_Crypto_ErrCode GetOhCryptoErrCode(HcfResult errCode) in GetOhCryptoErrCode()
/base/security/crypto_framework/test/unittest/src/native/
H A Dnative_digest_test.cpp51 OH_Crypto_ErrCode ret = OH_CryptoDigest_Create("SHA1", &mdObj); in HWTEST_F()
72 OH_Crypto_ErrCode ret = OH_CryptoDigest_Create("SHA1", &mdObj); in HWTEST_F()
84 OH_Crypto_ErrCode ret = OH_CryptoDigest_Create("SHA1", &mdObj); in HWTEST_F()
H A Dnative_sym_cipher_test.cpp52 OH_Crypto_ErrCode AesEncrypt(OH_CryptoSymCipher *cipher, OH_CryptoSymKey *key, OH_CryptoSymCipherParams *params, in AesEncrypt()
59 OH_Crypto_ErrCode ret = OH_CryptoSymCipher_Init(cipher, CRYPTO_ENCRYPT_MODE, key, params); in AesEncrypt()
96 OH_Crypto_ErrCode AesDecrypt(OH_CryptoSymCipher *cipher, OH_CryptoSymKey *key, OH_CryptoSymCipherParams *params, in AesDecrypt()
103 OH_Crypto_ErrCode ret = OH_CryptoSymCipher_Init(cipher, CRYPTO_DECRYPT_MODE, key, params); in AesDecrypt()
157 OH_Crypto_ErrCode ret = OH_CryptoSymCipherParams_Create(&params); in HWTEST_F()
H A Dnative_sym_key_test.cpp54 OH_Crypto_ErrCode ret = OH_CryptoSymKeyGenerator_Create("AES128", &ctx); in HWTEST_F()
70 OH_Crypto_ErrCode ret = OH_CryptoSymKeyGenerator_Create("AES128", &ctx); in HWTEST_F()
H A Dnative_asym_key_test.cpp60 OH_Crypto_ErrCode ret = OH_CryptoAsymKeyGenerator_Create("DSA2048", &generator); in HWTEST_F()
83 OH_Crypto_ErrCode res = OH_CryptoAsymKeyGenerator_Create("RSA512", &generator); in HWTEST_F()
122 OH_Crypto_ErrCode ret = OH_CryptoAsymKeyGenerator_Create("RSA768", &generator); in HWTEST_F()
142 OH_Crypto_ErrCode ret; in HWTEST_F()
184 OH_Crypto_ErrCode ret; in HWTEST_F()
H A Dnative_signature_test.cpp50 OH_Crypto_ErrCode res = OH_CryptoAsymKeyGenerator_Create("RSA2048|PRIMES_2", &generator); in HWTEST_F()
80 OH_Crypto_ErrCode res = CRYPTO_SUCCESS; in HWTEST_F()
/base/security/crypto_framework/frameworks/native/include/
H A Dnative_common.h26 OH_Crypto_ErrCode GetOhCryptoErrCode(HcfResult errCode);

Completed in 6 milliseconds