mirror of
https://github.com/yaklang/yaklang-chrome-extension.git
synced 2026-09-21 19:10:41 +08:00
41 lines
1.2 KiB
TypeScript
41 lines
1.2 KiB
TypeScript
import type { PageCryptoAdapter } from './contract';
|
|
import { cryptoJsAdapter } from './cryptojs';
|
|
import { jsEncryptAdapter } from './jsencrypt';
|
|
import { webCryptoAdapter } from './webcrypto';
|
|
import { smCryptoAdapter } from './sm-crypto';
|
|
import { nodeForgeAdapter } from './node-forge';
|
|
import { jsrsasignAdapter } from './jsrsasign';
|
|
import { joseAdapter } from './jose';
|
|
import { libsodiumAdapter } from './libsodium';
|
|
import { tweetNaclAdapter } from './tweetnacl';
|
|
import { nobleAdapter } from './noble';
|
|
import { openPgpAdapter } from './openpgp';
|
|
|
|
export const PAGE_CRYPTO_ADAPTERS: PageCryptoAdapter[] = [
|
|
webCryptoAdapter,
|
|
cryptoJsAdapter,
|
|
jsEncryptAdapter,
|
|
smCryptoAdapter,
|
|
nodeForgeAdapter,
|
|
jsrsasignAdapter,
|
|
joseAdapter,
|
|
libsodiumAdapter,
|
|
tweetNaclAdapter,
|
|
nobleAdapter,
|
|
openPgpAdapter,
|
|
];
|
|
|
|
export type {
|
|
CallableOperationKind,
|
|
CryptoAdapterInvocationPlan,
|
|
CryptoAdapterManifest,
|
|
CryptoAdapterOperation,
|
|
CryptoAdapterScope,
|
|
CryptoAdapterToolkit,
|
|
PageCryptoAdapter,
|
|
} from './contract';
|
|
|
|
export { createCryptoAdapterRuntime } from './registry';
|
|
export type { CryptoAdapterRuntime, CryptoAdapterRuntimeHost } from './registry';
|
|
export { CRYPTO_ADAPTER_MANIFESTS, cryptoAdapterLabel } from './catalog';
|