crypto-inventory 0.4.0: Swift and Kotlin detectors (CryptoKit, CommonCrypto, Security.framework, Android Keystore, Tink, OkHttp, the libsignal Swift and Android APIs), Apple and Android manifests; remediation recipes for Apache and HAProxy measured on real servers, HAProxy precondition fixed
This commit is contained in:
1 parent
e453c0c42d
commit
b6ed4d2b71
37 files changed
+1623
-82
No files matched your search
@@ -0,0 +1,17 @@
|
||||
// Fixtura negativa Kotlin: SecureRandom singur (aleator, nu criptografie; forma din libsignal
|
||||
// java/shared/java/org/signal/libsignal/zkgroup/donation/DonationPermit.kt:122) si un tip X509Certificate purtat ca parametru,
|
||||
// fara nicio verificare de lant. Nicio gasire.
|
||||
package fixturi
|
||||
|
||||
import java.security.SecureRandom
|
||||
import java.security.cert.X509Certificate
|
||||
|
||||
class ZgomotSecureRandom {
|
||||
fun aleator(rng: SecureRandom = SecureRandom()): ByteArray {
|
||||
val b = ByteArray(32)
|
||||
rng.nextBytes(b)
|
||||
return b
|
||||
}
|
||||
|
||||
fun subiect(cert: X509Certificate): String = cert.subjectX500Principal.name
|
||||
}
|
||||
Reference in new issue
Block a user