Lines Matching refs:AlgorithmCategory

237         if alg.category == AlgorithmCategory.KEY_AGREEMENT and \
264 class AlgorithmCategory(enum.Enum): class
338 'SHA': AlgorithmCategory.HASH,
339 'SHAKE256_512': AlgorithmCategory.HASH,
340 'MD': AlgorithmCategory.HASH,
341 'RIPEMD': AlgorithmCategory.HASH,
342 'ANY_HASH': AlgorithmCategory.HASH,
343 'HMAC': AlgorithmCategory.MAC,
344 'STREAM_CIPHER': AlgorithmCategory.CIPHER,
345 'CHACHA20_POLY1305': AlgorithmCategory.AEAD,
346 'DSA': AlgorithmCategory.SIGN,
347 'ECDSA': AlgorithmCategory.SIGN,
348 'EDDSA': AlgorithmCategory.SIGN,
349 'PURE_EDDSA': AlgorithmCategory.SIGN,
350 'RSA_PSS': AlgorithmCategory.SIGN,
351 'RSA_PKCS1V15_SIGN': AlgorithmCategory.SIGN,
352 'RSA_PKCS1V15_CRYPT': AlgorithmCategory.ASYMMETRIC_ENCRYPTION,
353 'RSA_OAEP': AlgorithmCategory.ASYMMETRIC_ENCRYPTION,
354 'HKDF': AlgorithmCategory.KEY_DERIVATION,
355 'TLS12_PRF': AlgorithmCategory.KEY_DERIVATION,
356 'TLS12_PSK_TO_MS': AlgorithmCategory.KEY_DERIVATION,
357 'TLS12_ECJPAKE_TO_PMS': AlgorithmCategory.KEY_DERIVATION,
358 'PBKDF': AlgorithmCategory.KEY_DERIVATION,
359 'ECDH': AlgorithmCategory.KEY_AGREEMENT,
360 'FFDH': AlgorithmCategory.KEY_AGREEMENT,
362 'KEY_AGREEMENT': AlgorithmCategory.KEY_DERIVATION,
363 'JPAKE': AlgorithmCategory.PAKE,
366 CATEGORY_FROM_HEAD[x] = AlgorithmCategory.MAC
368 CATEGORY_FROM_HEAD[x] = AlgorithmCategory.CIPHER
370 CATEGORY_FROM_HEAD[x] = AlgorithmCategory.AEAD
372 def determine_category(self, expr: str, head: str) -> AlgorithmCategory:
419 if self.category != AlgorithmCategory.KEY_AGREEMENT:
532 def can_do(self, category: AlgorithmCategory) -> bool: argument
537 if category == AlgorithmCategory.KEY_DERIVATION and \
547 if self.category == AlgorithmCategory.HASH:
549 elif self.category == AlgorithmCategory.MAC:
552 elif self.category == AlgorithmCategory.CIPHER or \
553 self.category == AlgorithmCategory.AEAD:
555 elif self.category == AlgorithmCategory.SIGN:
559 elif self.category == AlgorithmCategory.ASYMMETRIC_ENCRYPTION:
563 elif self.category == AlgorithmCategory.KEY_DERIVATION or \
564 self.category == AlgorithmCategory.KEY_AGREEMENT: