We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 538680a commit 2da42f7Copy full SHA for 2da42f7
1 file changed
src/lib.rs
@@ -148,8 +148,14 @@ impl RustyVault {
148
self.core.load().init(seal_config)
149
}
150
151
- pub fn unseal(&self, key: &[u8]) -> Result<bool, RvError> {
152
- self.core.load().unseal(key)
+ pub fn unseal(&self, keys: &[&[u8]]) -> Result<bool, RvError> {
+ for key in keys.iter() {
153
+ if self.core.load().unseal(key)? {
154
+ return Ok(true);
155
+ }
156
157
+
158
+ Ok(false)
159
160
161
pub fn seal(&self) -> Result<(), RvError> {
0 commit comments