MCPcopy Create free account
hub / github.com/cryptii/cryptii / getMode

Method getMode

src/Encoder/BlockCipher.js:306–308  ·  view source on GitHub ↗

* Returns mode for given name. * @protected * @param {string} name Mode name * @return {?object} Mode object or null, if not found.

(name)

Source from the content-addressed store, hash-verified

304 * @return {?object} Mode object or null, if not found.
305 */
306 static getMode (name) {
307 return modes.find(mode => mode.name === name)
308 }
309
310 /**
311 * Returns mode objects available in the current environment.

Callers 2

settingValueDidChangeMethod · 0.80
createCipherMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected