Lines Matching refs:fd
98 void DecryptSetKey(int fd) const
100 if (ohos::DecryptSetKey(fd, static_cast<int>(GetBundleUid())) < 0) {
103 if (ohos::DecryptAssociateKey(fd, static_cast<int>(GetProcessUid()),
109 void DecryptRemoveKey(int fd) const
111 if (ohos::DecrypRemoveKey(fd, static_cast<int>(GetProcessUid())) < 0
112 || ohos::DecrypRemoveKey(fd, static_cast<int>(GetBundleUid())) < 0) {
142 int fd = open(DEV_APP_CRYPTO_PATH, O_RDONLY);
144 DecryptSetKey(fd);
153 close(fd);
170 DecryptRemoveKey(fd);
172 close(fd);