Lines Matching refs:base
302 """Return an expression for the "base" of the algorithm.
480 def permitted_truncations(cls, base: str) -> FrozenSet[int]:
481 """Permitted output lengths for the given MAC or AEAD base algorithm.
488 if base in cls.PERMITTED_TAG_LENGTHS:
489 return cls.PERMITTED_TAG_LENGTHS[base]
490 max_length = cls.MAC_LENGTH.get(base, None)
492 m = cls.HMAC_RE.match(base)
496 raise ValueError('Unknown permitted lengths for ' + base)
501 r'\((?P<base>.*),'
512 base = m.group('base')
514 permitted_lengths = self.permitted_truncations(base)