| 87 | } |
| 88 | |
| 89 | Result<BytesView> EncryptedDiskCache::decrypt(const BytesView& input) { |
| 90 | auto out = makeShared<ByteBuffer>(); |
| 91 | if (!getDataEncryptor().decrypt(input.data(), input.size(), *out)) { |
| 92 | return Error("Failed to derypt data"); |
| 93 | } |
| 94 | |
| 95 | return out->toBytesView(); |
| 96 | } |
| 97 | |
| 98 | StringBox EncryptedDiskCache::getKeychainKey() { |
| 99 | return STRING_LITERAL(kKeychainKey); |
nothing calls this directly
no test coverage detected