MCPcopy Create free account
hub / github.com/SourceCode-AI/aura / _lib_crypto

Method _lib_crypto

aura/analyzers/python/crypto.py:67–79  ·  view source on GitHub ↗
(self, context, info)

Source from the content-addressed store, hash-verified

65 yield self._gen_hit(context, info, key_size)
66
67 def _lib_crypto(self, context, info):
68 try:
69 signature = context.node.apply_signature("bits", randfunc=None, domain=None)
70 except TypeError:
71 return
72
73 key_size = signature.args[0]
74 if isinstance(key_size, Number):
75 key_size = key_size.value
76 elif not type(key_size) == int:
77 return
78
79 yield self._gen_hit(context, info, key_size)
80
81 def _gen_hit(self, context, info, key_size=None):
82 hit = Detection(

Callers

nothing calls this directly

Calls 2

_gen_hitMethod · 0.95
apply_signatureMethod · 0.80

Tested by

no test coverage detected