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.
15 lines (14 loc) • 714 B
TypeScript
/**
* @license
* Copyright 2023 Google LLC
* SPDX-License-Identifier: Apache-2.0
*/
import { PbHpkeKeyFormat, PbHpkeParams, PbHpkePrivateKey, PbHpkePublicKey } from '../../../internal/proto';
/** Validate HPKE params. */
export declare function validateParams(params: PbHpkeParams): void;
/** Validate HPKE key format. */
export declare function validateKeyFormat(keyFormat: PbHpkeKeyFormat): void;
/** Validate HPKE public key. */
export declare function validatePublicKey(key: PbHpkePublicKey, publicKeyManagerVersion: number): void;
/** Validate HPKE private key. */
export declare function validatePrivateKey(key: PbHpkePrivateKey, privateKeyManagerVersion: number, publicKeyManagerVersion: number): void;