* 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)
| 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 | } |