tessl install tessl/npm-crypto-browserify@3.12.0Browser-compatible implementation of Node.js crypto module providing cryptographic operations in web environments.
Agent Success
Agent success rate when using this tile
100%
Improvement
Agent success rate improvement when using this tile compared to baseline
1x
Baseline
Agent success rate without this tile
100%
A utility module that provides configuration helpers for cryptographic operations, including RSA padding mode selection, elliptic curve point format conversion, and Diffie-Hellman parameter validation.
getPaddingMode function returns the appropriate numeric constant for OAEP padding @testgetPaddingMode function returns the appropriate numeric constant for PKCS#1 v1.5 padding @testgetPaddingMode function returns the appropriate numeric constant for PSS padding @testgetPointFormat function returns the appropriate numeric constant for compressed point format @testgetPointFormat function returns the appropriate numeric constant for uncompressed point format @testgetDHCheckFlags function returns an object containing all four DH check flag constants with their correct values @test@generates
/**
* Converts a padding mode name to its numeric constant value.
*
* @param {string} mode - The padding mode name (e.g., "OAEP", "PKCS1", "PSS")
* @returns {number} The numeric constant representing the padding mode
*/
function getPaddingMode(mode) {
// IMPLEMENTATION HERE
}
/**
* Converts a point format name to its numeric constant value.
*
* @param {string} format - The point format name (e.g., "compressed", "uncompressed", "hybrid")
* @returns {number} The numeric constant representing the point format
*/
function getPointFormat(format) {
// IMPLEMENTATION HERE
}
/**
* Returns an object containing all Diffie-Hellman check flag constants.
*
* @returns {Object} An object with properties for each DH check flag
*/
function getDHCheckFlags() {
// IMPLEMENTATION HERE
}
module.exports = {
getPaddingMode,
getPointFormat,
getDHCheckFlags,
};Provides cryptographic constants for RSA padding modes, elliptic curve point formats, and Diffie-Hellman validation flags.