hyb
2026-01-30 15bc7727b58bf9ca0c8f21702fa893daac232b8d
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
Ë
ž¬`iüãó¬—ddlZddlmZddlmZddlmZddlmZdedee    e
fde    fd    „Z ded
ee    e
fde    fd „Z Gd „d e «Zdedee    e
fdefd„Zy)éN)Údeque)Ú
ModuleType)ÚUnion)ÚstrxorÚcipherÚ    plaintextÚreturncó°—tdt|«d«Dcgc]
}|||dz‘Œ }}t|«}d|dz
z}|d}t|dd«}td|dz«D]]}tjd|«}    |j ||j «z«}
t|
dd|    «}|j|
dd«Œ_|dj|«zScc}w)Nréééú>Qó)
ÚrangeÚlenrÚstructÚpackÚencryptÚpopleftrÚappendÚjoin) rrÚiÚSÚnÚsÚAÚRÚtÚt_64Úcts            õiH:\项目\archive\测试组\脚本\Change_password\venv_build\Lib\site-packages\Crypto/Cipher/_mode_kw.pyÚWr"
s܀ô$)¨¬C°    «N¸AÓ#>Ö?˜aˆ1Qq‘SÒ    Ð?€AÐ?Ü ˆA‹€AØ    ˆQ‰U‰ €AØ    ˆ!‰€AÜ ˆaˆe‹ €Aä 1a˜!‘e‹_òˆÜ{‰{˜4 Ó#ˆØ ^‰^˜A §    ¡    £ ™OÓ ,ˆÜ 2bq6˜4Ó  ˆØ    ‰ABÕð    ð ˆsx‰x˜‹{‰?Ðùò    @s™CÚ
ciphertextcó¬—tdt|«d«Dcgc]
}|||dz‘Œ }}t|«}d|dz
z}|d}t|dd«}t|dd«D]]}tjd|«}    |j t ||    «|j«z«}
|
dd}|j|
dd«Œ_|dj|«zScc}w)Nrr r r éÿÿÿÿrr)
rrrrrÚdecryptrÚpopÚ
appendleftr) rr#rÚCrrrrrrÚpts            r!Ú    W_inverser+sڀô%*¨!¬S°«_¸aÓ$@ÖA˜qˆAa˜‘cÒ    ÐA€AÐAÜ ˆA‹€AØ    ˆQ‰U‰ €AØ    ˆ!‰€AÜ ˆaˆe‹ €Aä 1a˜‹_òˆÜ{‰{˜4 Ó#ˆØ ^‰^œF 1 d›O¨a¯e©e«gÑ5Ó 6ˆØ ˆrˆFˆØ     ‰ R˜˜VÕð    ð ˆsx‰x˜‹{‰?Ðùò    Bs™Ccó^—eZdZdZdedeeeffd„Zdeeefdefd„Z    deeefdefd    „Z
y
) ÚKWModeaKey Wrap (KW) mode.
 
    This is a deterministic Authenticated Encryption (AE) mode
    for protecting cryptographic keys. See `NIST SP800-38F`_.
 
    It provides both confidentiality and authenticity, and it designed
    so that any bit of the ciphertext depends on all bits of the plaintext.
 
    This mode is only available for ciphers that operate on 128 bits blocks
    (e.g., AES).
 
    .. _`NIST SP800-38F`: http://csrc.nist.gov/publications/nistpubs/800-38F/SP-800-38F.pdf
 
    :undocumented: __init__
    ÚfactoryÚkeycó¸—|j|_|jdk7r td«‚||_|j||j«|_d|_y)NézKKey Wrap mode is only available for ciphers that operate on 128 bits blocksF)Ú
block_sizeÚ
ValueErrorÚ_factoryÚnewÚMODE_ECBÚ_cipherÚ_done)Úselfr.r/s   r!Ú__init__zKWMode.__init__?sZ€ð"×,Ñ,ˆŒØ ?‰?˜bÒ  Üð@óAð A𠈌 Ø—{‘{ 3¨×(8Ñ(8Ó9ˆŒ ؈
rrr    có
—|jr td«‚t|«dzr td«‚t|«dkr td«‚t|«dk\r td«‚t|jd|z«}d    |_|S)
aEncrypt and authenticate (wrap) a cryptographic key.
 
        Args:
          plaintext:
            The cryptographic key to wrap.
            It must be at least 16 bytes long, and its length
            must be a multiple of 8.
 
        Returns:
            The wrapped key.
        ú(The cipher cannot be used more than oncer z2The plaintext must have length multiple of 8 bytesr1z,The plaintext must be at least 16 bytes longlzThe plaintext is too long󦦦¦¦¦¦¦T)r8r3rr"r7)r9rÚress   r!Úsealz KWMode.sealLs€ð :Š:ÜÐGÓHÐ Hä ˆy‹>˜AÒ ÜÐQÓRÐ Rä ˆy‹>˜BÒ ÜÐKÓLÐ Lä ˆy‹>˜UÒ "ÜÐ8Ó9Ð 9䐗 ‘ ÐAÀIÑMÓNˆØˆŒ
؈
rr#cóþ—|jr td«‚t|«dzr td«‚t|«dkr td«‚t|j|«}|dddk7r td«‚d    |_|ddS)
awDecrypt and authenticate (unwrap) a cryptographic key.
 
        Args:
          ciphertext:
            The cryptographic key to unwrap.
            It must be at least 24 bytes long, and its length
            must be a multiple of 8.
 
        Returns:
            The original key.
 
        Raises: ValueError
           If the ciphertext or the key are not valid.
        r<r z3The ciphertext must have length multiple of 8 byteséz-The ciphertext must be at least 24 bytes longNr=zIncorrect integrity check valueT)r8r3rr+r7)r9r#r*s   r!Úunsealz KWMode.unsealis„€ð  :Š:ÜÐGÓHÐ Hä ˆz‹?˜QÒ ÜÐRÓSÐ Sä ˆz‹?˜RÒ ÜÐLÓMÐ Mä t—|‘| ZÓ 0ˆà ˆbˆqˆ6Ð8Ò 8ÜÐ>Ó?Ð ?؈Œ
à!"ˆvˆ rN) Ú__name__Ú
__module__Ú __qualname__Ú__doc__rrÚbytesÚ    bytearrayr:r?rB©rr!r-r-.s`„ñð  Ø$ð à˜E 9Ð,Ñ-ó ð˜e E¨9Ð$4Ñ5ð¸%óð:  u¨iÐ'7Ñ!8ð¸Uôrr-r.Úkwargsc óv—    |d}t||«S#t$r}tdt|«z«‚d}~wwxYw)aCreate a new block cipher in Key Wrap mode.
 
    Args:
      factory:
        A block cipher module, taken from `Crypto.Cipher`.
        The cipher must have block length of 16 bytes, such as AES.
 
    Keywords:
      key:
        The secret key to use to seal or unseal.
    r/zMissing parameter:N)ÚKeyErrorÚ    TypeErrorÚstrr-)r.rJr/Úes    r!Ú_create_kw_cipherrP‹sF€ð7ؐU‰mˆô '˜3Ó Ðøô ò7ÜÐ,¬s°1«vÑ5Ó6Ð6ûð7ús‚“    8œ3³8)rÚ collectionsrÚtypesrÚtypingrÚCrypto.Util.strxorrrGrHr"r+Úobjectr-rPrIrr!ú<module>rVs•ðÛ ÝåÝå%ðˆjðؐu˜iÐ'Ñ(ðØ-2óð$jðØ  yР0Ñ1ðØ6;óô$ZˆVôZðz ˜zð Ø % e¨YÐ&6Ñ 7ð Ø<Bô r