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

Method getAlgorithmBlockSize

src/Encoder/Hash.js:169–172  ·  view source on GitHub ↗

* Returns block size (in bytes) for given algorithm name. * @param {string} name Algorithm name * @return {int|null} Block size integer or null, if algorithm is not defined

(name)

Source from the content-addressed store, hash-verified

167 * @return {int|null} Block size integer or null, if algorithm is not defined
168 */
169 static getAlgorithmBlockSize (name) {
170 const algorithm = algorithms.find(algorithm => algorithm.name === name)
171 return algorithm !== undefined ? algorithm.blockSize : null
172 }
173}

Callers 1

performEncodeMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected