Home
last modified time | relevance | path

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

/ohos5.0/foundation/filemanagement/storage_service/services/storage_daemon/include/crypto/
H A Dhuks_master.h40 bool EncryptKey(KeyContext &ctx, const UserAuth &auth, const KeyInfo &key, bool isNeedNewNonce);
41 bool EncryptKeyEx(const UserAuth &auth, const KeyBlob &rnd, KeyContext &ctx);
42 bool DecryptKey(KeyContext &ctx, const UserAuth &auth, KeyInfo &key, bool isNeedNewNonce);
43 bool DecryptKeyEx(KeyContext &ctx, const UserAuth &auth, KeyBlob &rnd);
44 bool UpgradeKey(KeyContext &ctx);
H A Dbase_key.h94 KeyContext &keyCtx);
95 bool SaveAndCleanKeyBuff(const std::string &keyPath, KeyContext &keyCtx);
105 bool EncryptEceSece(const UserAuth &auth, const uint32_t keyType, KeyContext &keyCtx);
107 bool DecryptReal(const UserAuth &auth, const uint32_t keyType, KeyContext &keyCtx);
113 void ClearKeyContext(KeyContext &keyCtx);
114 bool InitKeyContext(const UserAuth &auth, const std::string &keyPath, KeyContext &keyCtx);
122 KeyContext keyContext_ {};
H A Dopenssl_crypto.h28 static bool AESDecrypt(const KeyBlob &preKey, KeyContext &keyContext_, KeyBlob &plainText);
29 … static bool AESEncrypt(const KeyBlob &preKey, const KeyBlob &plainText, KeyContext &keyContext_);
H A Dkey_blob.h153 struct KeyContext { struct
/ohos5.0/foundation/filemanagement/storage_service/services/storage_daemon/crypto/src/
H A Dhuks_master.cpp453 static HksParamSet *GenHuksKeyBlobParam(KeyContext &ctx) in GenHuksKeyBlobParam()
479 static int AppendNonceAad(KeyContext &ctx, HksParamSet *paramSet) in AppendNonceAad()
490 static int AppendNonceAadTokenEx(KeyContext &ctx, const UserAuth &auth, HksParamSet *paramSet, bool… in AppendNonceAadTokenEx()
530 static int AppendNonceAadToken(KeyContext &ctx, const UserAuth &auth, HksParamSet *paramSet) in AppendNonceAadToken()
559 static HksParamSet *GenHuksOptionParamEx(KeyContext &ctx, const UserAuth &auth, const bool isEncryp… in GenHuksOptionParamEx()
610 static HksParamSet *GenHuksOptionParam(KeyContext &ctx, in GenHuksOptionParam()
698 bool HuksMaster::EncryptKeyEx(const UserAuth &auth, const KeyBlob &rnd, KeyContext &ctx) in EncryptKeyEx()
732 bool HuksMaster::EncryptKey(KeyContext &ctx, const UserAuth &auth, const KeyInfo &key, bool isNeedN… in EncryptKey()
765 bool HuksMaster::DecryptKey(KeyContext &ctx, const UserAuth &auth, KeyInfo &key, bool isNeedNewNonc… in DecryptKey()
799 bool HuksMaster::DecryptKeyEx(KeyContext &ctx, const UserAuth &auth, KeyBlob &rnd) in DecryptKeyEx()
[all …]
H A Dbase_key.cpp71 static void DoTempStore(const KeyContext &sourceCtx, KeyContext &targetCtx) in DoTempStore()
247 KeyContext keyCtx = {}; in StoreKey()
306 bool BaseKey::SaveAndCleanKeyBuff(const std::string &keyPath, KeyContext &keyCtx) in StoreKey()
330 bool needGenerateShield, KeyContext &keyCtx) in StoreKey()
424 KeyContext ctxDe; in StoreKey()
600 KeyContext ctxNone; in StoreKey()
629 KeyContext ctxNone; in StoreKey()
657 KeyContext tempCtx = {}; in StoreKey()
895 KeyContext keyCtx; in StoreKey()
928 KeyContext keyCtx; in StoreKey()
[all …]
H A Dopenssl_crypto.cpp28 bool OpensslCrypto::AESDecrypt(const KeyBlob &preKey, KeyContext &keyContext_, KeyBlob &plainText) in AESDecrypt()
80 bool OpensslCrypto::AESEncrypt(const KeyBlob &preKey, const KeyBlob &plainText, KeyContext &keyCont… in AESEncrypt()