RSA Quantum-vulnerable Recorded traffic 4 places See details
Call to code named for an algorithm
A call, construction or operation whose own name states the algorithm: a project's wrapper such as `Hash.sha256(data)`, `hmacSha256(key, msg)`, `getMD5()` or `new ScryptGenerator(..)`, a key type such as `new Ed25519PublicKey(bytes)`, or an operation on an object named for its algorithm, `sha256.digest()`. The library call inside the wrapper is reported where it is written; these are the places it is used.
This line calls code named after an encryption or hashing method.
What to do. Migrate the wrapper once, and these call sites follow it.
-
src/main/java/com/mastercard/developer/encryption/FieldLevelEncryptionParams.java:53
byte[] encryptedSecretKeyBytes = RSA.wrapSecretKey(config.encryptionCertificate.getPublicKey(), secretKey, config.oaepPaddingDigestAlgorithm); -
src/main/java/com/mastercard/developer/encryption/FieldLevelEncryptionParams.java:86
secretKey = RSA.unwrapSecretKey(config.decryptionKey, encryptedSecretKeyBytes, oaepPaddingDigestAlgorithmValue); -
src/main/java/com/mastercard/developer/encryption/jwe/JweObject.java:44
Key cek = RSA.unwrapSecretKey(config.getDecryptionKey(), Base64.getUrlDecoder().decode(this.getEncryptedKey()), "SHA-256"); -
src/main/java/com/mastercard/developer/encryption/jwe/JweObject.java:62
byte[] encryptedSecretKeyBytes = RSA.wrapSecretKey(config.getEncryptionKey(), cek, "SHA-256");