@aws-crypto/supports-web-crypto
Version:
Provides functions for detecting if the host environment supports the WebCrypto API
5 lines (4 loc) • 301 B
TypeScript
export declare function supportsWebCrypto(window: Window): boolean;
export declare function supportsSecureRandom(window: Window): boolean;
export declare function supportsSubtleCrypto(subtle: SubtleCrypto): boolean;
export declare function supportsZeroByteGCM(subtle: SubtleCrypto): Promise<boolean>;