diff options
author | Paul J. Davis <paul.joseph.davis@gmail.com> | 2020-04-09 11:27:40 -0500 |
---|---|---|
committer | Paul J. Davis <paul.joseph.davis@gmail.com> | 2020-04-09 11:27:40 -0500 |
commit | 464ca64193fbcebae1fe194f2e0726a33619e9a7 (patch) | |
tree | 3b12ace7526bd0ab6a7391d88e209dc3f6415fc1 | |
parent | 6180fc90620661d20c5502bc115e8b893d6c1049 (diff) | |
download | couchdb-464ca64193fbcebae1fe194f2e0726a33619e9a7.tar.gz |
Add helper for not_found
-rw-r--r-- | src/aegis/src/aegis.erl | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/aegis/src/aegis.erl b/src/aegis/src/aegis.erl index 9b4778d00..b27f32a2d 100644 --- a/src/aegis/src/aegis.erl +++ b/src/aegis/src/aegis.erl @@ -89,6 +89,9 @@ encrypt(#{} = Db, Key, Value) -> <<1:8, CipherTag:128, CipherText/binary>>. +decrypt(#{} = Db, Key, not_found) -> + not_found; + decrypt(#{} = Db, Key, Value) when is_binary(Key), is_binary(Value) -> #{ aegis_ctx = Ctx, |