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 D | dlp_file.cpp | 137 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 D | dlp_file_test.cpp | 146 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 D | dlp_file.h | 202 bool IsValidCipher(const struct DlpBlob& key, const struct DlpUsageSpec& spec,
|