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.
14 lines (13 loc) • 625 B
TypeScript
/**
* @license
* Copyright 2022 Google LLC
* SPDX-License-Identifier: Apache-2.0
*/
/** Transforms the bytes field value to a Uint8Array. */
export declare function bytesAsU8(b: string | Uint8Array): Uint8Array;
export declare function bytesAsU8(b: string | Uint8Array | undefined): Uint8Array | undefined;
/** Returns the length of the bytes field. */
export declare function bytesLength(b: string | Uint8Array): number;
export declare function bytesLength(b: string | Uint8Array | undefined): number | undefined;
/** A type union representing a serialized proto */
export declare type ProtoBytes = string | Uint8Array;