summaryrefslogtreecommitdiffstats
path: root/src/plugins/crypto_native
AgeCommit message (Expand)AuthorFilesLines
2020-11-13crypto-native: fix multi-arch variant initializationRay Kinsella1-4/+0
2020-09-15crypto-native: fix issues detected by coiverityDamjan Marion2-3/+11
2020-08-06misc: harmonize namesDave Barach1-8/+8
2020-07-21crypto: bails out early for unsupported key typeBenoƮt Ganne1-4/+4
2020-05-11crypto-native: properly deal with broken or outdated toolchainsDamjan Marion5-42/+54
2020-04-30crypto: introduce async crypto infraFan Zhang1-0/+4
2020-04-29misc: switch to clang-9Damjan Marion1-3/+3
2020-03-06crypto: align per thread data to cache lineFilip Tehlar1-0/+1
2020-02-25crypto-native: GCM implementation with vector AESNI instructionsDamjan Marion1-4/+479
2020-02-24crypto-native: introduce aes_gcm_flags_tDamjan Marion1-84/+107
2020-02-24crypto-native: introduce counter structDamjan Marion1-44/+51
2020-02-24crypto-native: inverse Hi so it naturally fits into 512-bit registerDamjan Marion2-30/+34
2020-02-24crypto-native: replace aesni with aesDamjan Marion1-137/+134
2020-02-24crypto-native: do not overwrite data after partial tagDamjan Marion1-1/+1
2020-02-17crypto-native: calculate ghash using vpclmulqdq instructionsDamjan Marion1-0/+126
2020-02-14crypto-native: refactor CBC codeDamjan Marion4-606/+440
2020-02-13vppinfra: add 128-bit and 512-bit a ^ b ^ c shortcutDamjan Marion1-18/+6
2020-02-13crypto-native: add AArch64 AES-GCM native implementationDamjan Marion5-55/+60
2020-02-13crypto-native: add AArch64 ghash supportDamjan Marion1-1/+23
2020-02-12crypto-native: fix ghash function namingDamjan Marion1-6/+6
2020-02-12crypto-native: use and instead of blendDamjan Marion1-4/+1
2020-02-12crypto-native: add missing static_always_inlineDamjan Marion1-6/+6
2020-02-12crypto-native: refactor GCM code to use generic typesDamjan Marion3-291/+325
2020-02-11crypto-native: fix ARM compilatiion flagsDamjan Marion1-1/+1
2020-01-31crypto-native: add ARMv8 AES-CBC implementationDamjan Marion7-367/+756
2020-01-30crypto-native: refactor AES codeDamjan Marion4-166/+169
2020-01-30crypto-native: don't expand aes-cbc keys twiceDamjan Marion2-11/+7
2020-01-28crypto-native: rename crypto_ia32 to crypto_nativeDamjan Marion8-0/+1993
t;name>, \g<n>) */ vlib_config_function_runtime_t _vlib_config_function_\g<name>"), ( re.compile("(?P<m>VLIB_EARLY_CONFIG_FUNCTION)\s*[(](?P<name>[a-zA-Z0-9_]+),\s*(?P<n>\"[^\"]+\")(,[^)]*)?[)]"), r"/** @brief (@em constructor) \g<m> (\g<name>, \g<n>) */ vlib_config_function_runtime_t _vlib_config_function_\g<name>"), # Search for "format_thing" and "unformat_thing" when used as a function pointer and add parens ( re.compile("(?P<pre>(^|,)\s*)(?P<name>(un)?format_[a-zA-Z0-9_]+)(?P<post>\s*(,|$))"), r"\g<pre>\g<name>()\g<post>" ), # Search for CLIB_PAD_FROM_TO(...); and replace with padding # #define CLIB_PAD_FROM_TO(from,to) u8 pad_##from[(to) - (from)] ( re.compile("(?P<m>CLIB_PAD_FROM_TO)\s*[(](?P<from>[^,]+),\s*(?P<to>[^)]+)[)]"), r"/** Padding. */ u8 pad_\g<from>[(\g<to>) - (\g<from>)]" ), ] filename = sys.argv[1] cwd = os.getcwd() if filename[0:len(cwd)] == cwd: filename = filename[len(cwd):] if filename[0] == "/": filename = filename[1:] with open(filename) as fd: line_num = 0 for line in fd: line_num += 1 str = line[:-1] # filter \n # Look for search/replace patterns for p in replace_patterns: str = p[0].sub(p[1], str) sys.stdout.write(str+"\n") # All done