blob: 9a0d3c23857d6db5090730545fe61810fbf58890 [file] [log] [blame]
// Copyright 2018 The Fuchsia Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
pub mod aes;
use failure::Error;
pub trait Algorithm {
fn wrap(&self, key: &[u8], data: &[u8]) -> Result<Vec<u8>, Error>;
fn unwrap(&self, key: &[u8], data: &[u8]) -> Result<Vec<u8>, Error>;
}