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%
{
"context": "This criteria evaluates how well the engineer uses the crypto.constants object from crypto-browserify to access cryptographic constants. The focus is on proper usage of RSA padding mode constants, elliptic curve point format constants, and Diffie-Hellman validation flag constants.",
"type": "weighted_checklist",
"checklist": [
{
"name": "crypto-browserify import",
"description": "The code correctly imports or requires the crypto-browserify package (e.g., const crypto = require('crypto-browserify') or const crypto = require('crypto'))",
"max_score": 10
},
{
"name": "crypto.constants access",
"description": "The code accesses the constants object from the crypto module (e.g., crypto.constants)",
"max_score": 15
},
{
"name": "RSA_PKCS1_OAEP_PADDING usage",
"description": "The getPaddingMode function correctly returns crypto.constants.RSA_PKCS1_OAEP_PADDING for OAEP mode",
"max_score": 15
},
{
"name": "RSA_PKCS1_PADDING usage",
"description": "The getPaddingMode function correctly returns crypto.constants.RSA_PKCS1_PADDING for PKCS1 mode",
"max_score": 10
},
{
"name": "RSA_PKCS1_PSS_PADDING usage",
"description": "The getPaddingMode function correctly returns crypto.constants.RSA_PKCS1_PSS_PADDING for PSS mode",
"max_score": 10
},
{
"name": "POINT_CONVERSION_COMPRESSED usage",
"description": "The getPointFormat function correctly returns crypto.constants.POINT_CONVERSION_COMPRESSED for compressed format",
"max_score": 10
},
{
"name": "POINT_CONVERSION_UNCOMPRESSED usage",
"description": "The getPointFormat function correctly returns crypto.constants.POINT_CONVERSION_UNCOMPRESSED for uncompressed format",
"max_score": 10
},
{
"name": "DH_CHECK_P_NOT_PRIME usage",
"description": "The getDHCheckFlags function correctly includes crypto.constants.DH_CHECK_P_NOT_PRIME in the returned object",
"max_score": 5
},
{
"name": "DH_CHECK_P_NOT_SAFE_PRIME usage",
"description": "The getDHCheckFlags function correctly includes crypto.constants.DH_CHECK_P_NOT_SAFE_PRIME in the returned object",
"max_score": 5
},
{
"name": "DH_UNABLE_TO_CHECK_GENERATOR usage",
"description": "The getDHCheckFlags function correctly includes crypto.constants.DH_UNABLE_TO_CHECK_GENERATOR in the returned object",
"max_score": 5
},
{
"name": "DH_NOT_SUITABLE_GENERATOR usage",
"description": "The getDHCheckFlags function correctly includes crypto.constants.DH_NOT_SUITABLE_GENERATOR in the returned object",
"max_score": 5
}
]
}