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.
39 lines (38 loc) • 1 kB
TypeScript
/**
* @license
* Copyright 2020 Google LLC
* SPDX-License-Identifier: Apache-2.0
*/
import { PbKeyTemplate } from '../internal/proto';
/**
* Pre-generated KeyTemplates for AES GCM keys.
*
* @final
*/
export declare class AesGcmKeyTemplates {
/**
* Returns a KeyTemplate that generates new instances of AesGcmKey
* with the following parameters:
* key size: 16 bytes
* OutputPrefixType: TINK
*
*/
static aes128Gcm(): PbKeyTemplate;
/**
* Returns a KeyTemplate that generates new instances of AesGcmKey
* with the following parameters:
* key size: 32 bytes
* OutputPrefixType: TINK
*
*/
static aes256Gcm(): PbKeyTemplate;
/**
* Returns a KeyTemplate that generates new instances of AesGcmKey
* with the following parameters:
* key size: 32 bytes
* OutputPrefixType: RAW
*
*/
static aes256GcmNoPrefix(): PbKeyTemplate;
private static newAesGcmKeyTemplate;
}