( format: KeyFormat_.Format<"secret", "decode", Data>, algorithm: A, options?: CryptoKeyOptions )
| 14701 | * @since 4.0.0 |
| 14702 | */ |
| 14703 | export const AeadKeyFromFormat = <A extends Aead_.Algorithm, Data>( |
| 14704 | format: KeyFormat_.Format<"secret", "decode", Data>, |
| 14705 | algorithm: A, |
| 14706 | options?: CryptoKeyOptions |
| 14707 | ): decodeTo<AeadKey<A>, Codec<Data>> => |
| 14708 | cryptoKeyFromFormat( |
| 14709 | "AeadKeyFromFormat", |
| 14710 | AeadKey(algorithm), |
| 14711 | format, |
| 14712 | (data) => KeyFormat_.decodeSecret(format, algorithm, data) as Effect.Effect<Aead_.Key<A>, CryptoError_.CryptoError>, |
| 14713 | options?.allowEncode === true |
| 14714 | ) |
| 14715 | |
| 14716 | /** |
| 14717 | * Type-level representation of {@link CipherKey}. |
nothing calls this directly
no test coverage detected