From 105ec06da36c9a5be48e91ffcbf5ea06f7218a6b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thomas=20Obernd=C3=B6rfer?= Date: Tue, 18 Mar 2014 18:42:52 +0100 Subject: [PATCH] Throw error when trying to use IDEA cipher --- src/crypto/cipher/index.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/crypto/cipher/index.js b/src/crypto/cipher/index.js index b69d4467..06efdc8b 100644 --- a/src/crypto/cipher/index.js +++ b/src/crypto/cipher/index.js @@ -18,7 +18,11 @@ module.exports = { /** @see module:crypto/cipher/twofish */ twofish: require('./twofish.js'), /** @see module:crypto/cipher/blowfish */ - blowfish: require('./blowfish.js') + blowfish: require('./blowfish.js'), + /** Not implemented */ + idea: function() { + throw new Error('IDEA symmetric-key algorithm not implemented'); + } }; var aes = require('./aes.js');