( algorithm: A, options?: CryptoKeyOptions )
| 14676 | * @since 4.0.0 |
| 14677 | */ |
| 14678 | export const AeadKeyFromBytes = <A extends Aead_.Algorithm>( |
| 14679 | algorithm: A, |
| 14680 | options?: CryptoKeyOptions |
| 14681 | ): decodeTo<AeadKey<A>, Uint8Array> => |
| 14682 | cryptoKeyFromBytes( |
| 14683 | "AeadKeyFromBytes", |
| 14684 | AeadKey(algorithm), |
| 14685 | (bytes) => Aead_.key(algorithm, bytes), |
| 14686 | options?.allowEncode === true ? Aead_.toBytes : undefined |
| 14687 | ) |
| 14688 | |
| 14689 | /** |
| 14690 | * Schema that decodes an `Aead.Key` from a JWK with `KeyFormat.decodeSecret`. |
nothing calls this directly
no test coverage detected