(key: unknown)
| 32 | * @returns Whether or not the object is a `EncryptionKey`. |
| 33 | */ |
| 34 | const isEncryptionKey = (key: unknown): key is EncryptionKey => |
| 35 | isPlainObject(key) && |
| 36 | hasProperty(key, 'key') && |
| 37 | hasProperty(key, 'lib') && |
| 38 | hasProperty(key, 'keyMetadata') && |
| 39 | isKeyDerivationOptions(key.keyMetadata); |
| 40 | |
| 41 | /** |
| 42 | * The Encryptor class provides methods for encrypting and |
no test coverage detected