MCPcopy Create free account
hub / github.com/secdev/scapy / _lcm

Function _lcm

scapy/layers/ipsec.py:233–240  ·  view source on GitHub ↗

Least Common Multiple between 2 integers.

(a, b)

Source from the content-addressed store, hash-verified

231
232
233def _lcm(a, b):
234 """
235 Least Common Multiple between 2 integers.
236 """
237 if a == 0 or b == 0:
238 return 0
239 else:
240 return abs(a * b) // gcd(a, b)
241
242
243class CryptAlgo(object):

Callers 1

padMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…