MCPcopy Create free account
hub / github.com/Effect-TS/effect / CipherKey

Function CipherKey

packages/effect/src/Schema.ts:14742–14749  ·  view source on GitHub ↗
(algorithm: A)

Source from the content-addressed store, hash-verified

14740 * @since 4.0.0
14741 */
14742export const CipherKey = <A extends Cipher_.Algorithm>(algorithm: A): CipherKey<A> =>
14743 declareCryptoKey<Cipher_.Key<A>>(
14744 "CipherKey",
14745 "Cipher",
14746 "Key",
14747 Cipher_.isKey,
14748 algorithm
14749 )
14750
14751/**
14752 * Schema that decodes raw key bytes into a `Cipher.Key`.

Callers 2

CipherKeyFromBytesFunction · 0.70
CipherKeyFromFormatFunction · 0.70

Calls 1

declareCryptoKeyFunction · 0.85

Tested by

no test coverage detected