tink-crypto
Version:
A multi-language, cross-platform library that provides cryptographic APIs that are secure, easy to use correctly, and hard(er) to misuse.
24 lines (23 loc) • 536 B
TypeScript
/**
* @license
* Copyright 2020 Google LLC
* SPDX-License-Identifier: Apache-2.0
*/
import { PbEncryptedKeyset, PbKeyset } from './proto';
/**
* KeysetReader knows how to read a keyset or an encrypted keyset from some
* source.
*
*/
export interface KeysetReader {
/**
* Reads and returns a (cleartext) Keyset object from the underlying source.
*
*/
read(): PbKeyset;
/**
* Reads and returns an EncryptedKeyset from the underlying source.
*
*/
readEncrypted(): PbEncryptedKeyset;
}