Function report |
Source Code:lib\crypto\des.c |
Create Date:2022-07-28 06:47:16 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:Encryption key expansion* RFC2451: Weak key checks SHOULD be performed.* FIPS 74:* Keys having duals are keys which produce all zeros, all ones, or* alternating zero-one patterns in the C and D registers after Permuted* Choice 1 has operated on the key.
Proto:static unsigned long des_ekey(u32 *pe, const u8 *k)
Type:unsigned long
Parameter:
| Type | Parameter | Name |
|---|---|---|
| u32 * | pe | |
| const u8 * | k |
| 629 | d &= 0x0e |
| 629 | d <<= 4 |
| 629 | d = Lookup tables for key expansion [d] |
| 630 | c &= 0x0e |
| 630 | c <<= 4 |
| 630 | c = Lookup tables for key expansion [c] |
| 631 | b &= 0x0e |
| 631 | b <<= 4 |
| 631 | b = Lookup tables for key expansion [b] |
| 632 | a &= 0x0e |
| 632 | a <<= 4 |
| 632 | a = Lookup tables for key expansion [a] |
| 655 | pt += 512 |
| 657 | d &= 0xe0 |
| 657 | d >>= 4 |
| 657 | d = Lookup tables for key expansion [d + 1] |
| 658 | c &= 0xe0 |
| 658 | c >>= 4 |
| 658 | c = Lookup tables for key expansion [c + 1] |
| 659 | b &= 0xe0 |
| 659 | b >>= 4 |
| 659 | b = Lookup tables for key expansion [b + 1] |
| 660 | a &= 0xe0 |
| 660 | a >>= 4 |
| 660 | a = Lookup tables for key expansion [a + 1] |
| 687 | c &= 0xffff0000 |
| 696 | Return w |
| Name | Describe |
|---|---|
| des_expand_key | |
| des3_ede_expand_key |
| Source code conversion tool public plug-in interface | X |
|---|---|
| Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion |