Home
last modified time | relevance | path

Searched refs:IsValidCipher (Results 1 – 3 of 3) sorted by relevance

/ohos5.0/base/security/dlp_permission_service/interfaces/inner_api/dlp_parse/src/
H A Ddlp_file.cpp137 bool DlpFile::IsValidCipher(const struct DlpBlob& key, const struct DlpUsageSpec& spec, in IsValidCipher() function in OHOS::Security::DlpPermission::DlpFile
286 if (!IsValidCipher(key, spec, hmacKey)) { in SetCipher()
1204 …if (inPlainFileFd < 0 || dlpFd_ < 0 || !IsValidCipher(cipher_.encKey, cipher_.usageSpec, cipher_.h… in GenFile()
1296 if (!IsValidCipher(cipher_.encKey, cipher_.usageSpec, cipher_.hmacKey)) { in RemoveDlpPermission()
1313 opFd < 0 || !IsValidCipher(cipher_.encKey, cipher_.usageSpec, cipher_.hmacKey)) { in DlpFileRead()
1544 opFd < 0 || !IsValidCipher(cipher_.encKey, cipher_.usageSpec, cipher_.hmacKey)) { in DlpFileWrite()
/ohos5.0/base/security/dlp_permission_service/interfaces/inner_api/dlp_parse/test/
H A Ddlp_file_test.cpp146 ASSERT_FALSE(testFile.IsValidCipher(key, spec, hmacKey));
151 ASSERT_FALSE(testFile.IsValidCipher(key, spec, hmacKey));
156 ASSERT_FALSE(testFile.IsValidCipher(key, spec, hmacKey));
162 ASSERT_FALSE(testFile.IsValidCipher(key, spec, hmacKey));
171 ASSERT_FALSE(testFile.IsValidCipher(key, spec, hmacKey));
178 ASSERT_FALSE(testFile.IsValidCipher(key, spec, hmacKey));
185 ASSERT_TRUE(testFile.IsValidCipher(key, spec, hmacKey));
/ohos5.0/base/security/dlp_permission_service/interfaces/inner_api/dlp_parse/include/
H A Ddlp_file.h202 bool IsValidCipher(const struct DlpBlob& key, const struct DlpUsageSpec& spec,