MCPcopy Index your code
hub / github.com/SourceCode-AI/aura / test_crypto

Function test_crypto

tests/test_crypto_analyzer.py:2–22  ·  view source on GitHub ↗
(fixtures, fuzzy_rule_match)

Source from the content-addressed store, hash-verified

1
2def test_crypto(fixtures, fuzzy_rule_match):
3 matches = [
4 {
5 'type': 'CryptoKeyGeneration',
6 'extra': {
7 'function': 'cryptography.hazmat.primitives.asymmetric.dsa.generate_private_key',
8 'key_type': 'dsa',
9 'key_size': 1024
10 }
11 },
12 {
13 'type': 'CryptoKeyGeneration',
14 'extra': {
15 'function': 'Crypto.PublicKey.RSA.generate',
16 'key_type': 'rsa',
17 'key_size': 1024
18 }
19 }
20 ]
21
22 fixtures.scan_and_match("crypto.py", matches)

Callers

nothing calls this directly

Calls 1

scan_and_matchMethod · 0.80

Tested by

no test coverage detected