Lines Matching refs:alg
204 def __init__(self, alg):
205 self.alg = alg
208 return '0x%0x' % (alg)
220 def __init__(self, alg):
221 self.alg = alg
224 return '0x%0x' % (alg)
325 def get_digest_size(alg):
326 ds = ALG_DIGEST_SIZE_MAP.get(alg)
328 raise UnknownAlgorithmIdError(alg)
332 def get_hash_function(alg):
333 f = ALG_HASH_FUNCTION_MAP.get(alg)
335 raise UnknownAlgorithmIdError(alg)
340 alg = NAME_ALG_MAP.get(name)
341 if not alg:
343 return alg