( format: KeyFormat_.Format<"public", "decode", Data>, algorithm: A )
| 15326 | * @since 4.0.0 |
| 15327 | */ |
| 15328 | export const KeyWrapPublicKeyFromFormat = <A extends KeyWrap_.RsaOaep, Data>( |
| 15329 | format: KeyFormat_.Format<"public", "decode", Data>, |
| 15330 | algorithm: A |
| 15331 | ): decodeTo<KeyWrapPublicKey<A>, Codec<Data>> => |
| 15332 | cryptoKeyFromFormat( |
| 15333 | "KeyWrapPublicKeyFromFormat", |
| 15334 | KeyWrapPublicKey(algorithm), |
| 15335 | format, |
| 15336 | (data) => |
| 15337 | KeyFormat_.decodePublic(format, algorithm, data) as Effect.Effect< |
| 15338 | KeyWrap_.PublicKey<A>, |
| 15339 | CryptoError_.CryptoError |
| 15340 | >, |
| 15341 | true |
| 15342 | ) |
| 15343 | |
| 15344 | /** |
| 15345 | * Type-level representation of {@link KeyWrapPrivateKey}. |
nothing calls this directly
no test coverage detected