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.
21 lines (20 loc) • 594 B
TypeScript
/**
* @license
* Copyright 2020 Google LLC
* SPDX-License-Identifier: Apache-2.0
*/
import { KeysetReader } from './keyset_reader';
import { PbEncryptedKeyset } from './proto';
/**
* BinaryKeysetReader knows how to read a keyset or an encrypted keyset
* serialized to binary format.
*
* @final
*/
export declare class BinaryKeysetReader implements KeysetReader {
private readonly serializedKeyset;
constructor(serializedKeyset: Uint8Array);
static withUint8Array(serializedKeyset: Uint8Array): BinaryKeysetReader;
read(): any;
readEncrypted(): PbEncryptedKeyset;
}