+
    i                       ^ RI Ht ^ RIt^ RIHt ^ RIHt  ! R R]P                  4      t ! R R]P                  4      t	 ! R	 R
]P                  4      t
 ! R R]P                  4      t ! R R]P                  4      t ! R R]P                  R7      t ! R R]4      t ! R R]4      t ! R R4      t ! R R]4      tR# )    )annotationsN)utils)HashAlgorithmc                      ] tR t^tRtRtRtR# )PBESz%PBESv1 using SHA1 and 3-Key TripleDESz)PBESv2 using SHA256 PBKDF2 and AES256 CBC N)__name__
__module____qualname____firstlineno__PBESv1SHA1And3KeyTripleDESCBCPBESv2SHA256AndAES256CBC__static_attributes__r       t/home/wkmabra/.openclaw/workspace/venv/lib/python3.14/site-packages/cryptography/hazmat/primitives/_serialization.pyr   r      s    $K!Jr   r   c                  .    ] tR t^tRtRtRtRtRtRt	Rt
R# )	EncodingPEMDEROpenSSHRawz
ANSI X9.62zS/MIMEr   N)r	   r
   r   r   r   r   r   r   X962SMIMEr   r   r   r   r   r      s     
C
CG
CDEr   r   c                  6    ] tR t^tRtRtRtRtRtR R lt	Rt
R	# )
PrivateFormatPKCS8TraditionalOpenSSLr   r   PKCS12c                   V ^8  d   QhRR/# )   return!KeySerializationEncryptionBuilderr   )formats   "r   __annotate__PrivateFormat.__annotate__%   s     7 7$E 7r   c                	x    V \         P                  \         P                  39  d   \        R 4      h\	        V 4      # )zUencryption_builder only supported with PrivateFormat.OpenSSH and PrivateFormat.PKCS12)r   r   r   
ValueErrorr"   )selfs   &r   encryption_builder PrivateFormat.encryption_builder%   s:    --}/C/CDD,  166r   r   N)r	   r
   r   r   r   r   r   r   r   r)   r   r   r   r   r   r      s&    E-
CGF7 7r   r   c                  .    ] tR t^.tRtRtRtRtRtRt	Rt
R# )	PublicFormatz&X.509 subjectPublicKeyInfo with PKCS#1z
Raw PKCS#1r   r   zX9.62 Compressed PointzX9.62 Uncompressed Pointr   N)r	   r
   r   r   SubjectPublicKeyInfoPKCS1r   r   CompressedPointUncompressedPointr   r   r   r   r,   r,   .   s"    CEG
C.O2r   r,   c                      ] tR t^7tRtRtR# )ParameterFormatPKCS3r   N)r	   r
   r   r   r3   r   r   r   r   r2   r2   7   s    Er   r2   c                      ] tR t^;tRtR# )KeySerializationEncryptionr   Nr	   r
   r   r   r   r   r   r   r5   r5   ;       r   r5   )	metaclassc                  "    ] tR t^?tR R ltRtR# )BestAvailableEncryptionc                   V ^8  d   QhRR/# )r    passwordbytesr   )r#   s   "r   r$   $BestAvailableEncryption.__annotate__@   s     ! ! !r   c                	t    \        V\        4      '       d   \        V4      ^ 8X  d   \        R4      hWn        R# )r   !Password must be 1 or more bytes.N)
isinstancer=   lenr'   r<   r(   r<   s   &&r   __init__ BestAvailableEncryption.__init__@   s+    (E**c(mq.@@AA r   )r<   Nr	   r
   r   r   rD   r   r   r   r   r:   r:   ?   s    ! !r   r:   c                      ] tR t^GtRtR# )NoEncryptionr   Nr6   r   r   r   rH   rH   G   r7   r   rH   c                  b    ] tR t^KtRRRRRR/R R lltR R ltR	 R
 ltR R ltR R ltRt	R# )r"   _kdf_roundsN
_hmac_hash_key_cert_algorithmc          
     ,    V ^8  d   QhRRRRRRRRR	R
/# )r    r#   r   rJ   
int | NonerK   HashAlgorithm | NonerL   PBES | Noner!   Noner   )r#   s   "r   r$   .KeySerializationEncryptionBuilder.__annotate__L   s<     7 77  	7
 )7 )7 
7r   c               	6    Wn         W n        W0n        W@n        R # N)_formatrJ   rK   rL   )r(   r#   rJ   rK   rL   s   &&$$$r   rD   *KeySerializationEncryptionBuilder.__init__L   s     &$#6 r   c                    V ^8  d   QhRRRR/# )r    roundsintr!   r"   r   )r#   s   "r   r$   rR   Z   s     
 
 
)J 
r   c                	    V P                   e   \        R4      h\        V\        4      '       g   \	        R4      hV^8  d   \        R4      h\        V P                  VV P                  V P                  R7      # )Nzkdf_rounds already setzkdf_rounds must be an integerz%kdf_rounds must be a positive integerrJ   rK   rL   )	rJ   r'   rA   rY   	TypeErrorr"   rU   rK   rL   )r(   rX   s   &&r   
kdf_rounds,KeySerializationEncryptionBuilder.kdf_roundsZ   sm    '566&#&&;<<A:DEE0LL $ 8 8	
 	
r   c                    V ^8  d   QhRRRR/# )r    	algorithmr   r!   r"   r   )r#   s   "r   r$   rR   k   s     
 
&
	*
r   c                	    V P                   \        P                  Jd   \        R 4      hV P                  e   \        R4      h\        V P                   V P                  VV P                  R7      # )z2hmac_hash only supported with PrivateFormat.PKCS12zhmac_hash already setr[   )	rU   r   r   r\   rK   r'   r"   rJ   rL   r(   r`   s   &&r   	hmac_hash+KeySerializationEncryptionBuilder.hmac_hashk   sg     <<}333D  ??&4550LL((  $ 8 8	
 	
r   c                    V ^8  d   QhRRRR/# )r    r`   r   r!   r"   r   )r#   s   "r   r$   rR   |   s     
 

	*
r   c                	    V P                   \        P                  Jd   \        R 4      hV P                  e   \        R4      h\        V P                   V P                  V P                  VR7      # )z;key_cert_algorithm only supported with PrivateFormat.PKCS12zkey_cert_algorithm already setr[   )	rU   r   r   r\   rL   r'   r"   rJ   rK   rb   s   &&r   key_cert_algorithm4KeySerializationEncryptionBuilder.key_cert_algorithm|   sg     <<}333M  ##/=>>0LL(( )	
 	
r   c                    V ^8  d   QhRRRR/# )r    r<   r=   r!   r5   r   )r#   s   "r   r$   rR      s     

 

e 

(B 

r   c                	    \        V\        4      '       d   \        V4      ^ 8X  d   \        R4      h\	        V P
                  VV P                  V P                  V P                  R7      # )r   r@   )r]   rc   rg   )	rA   r=   rB   r'   _KeySerializationEncryptionrU   rJ   rK   rL   rC   s   &&r   build'KeySerializationEncryptionBuilder.build   sV    (E**c(mq.@@AA*LL''oo#77
 	
r   )rU   rK   rJ   rL   )
r	   r
   r   r   rD   r]   rc   rg   rl   r   r   r   r   r"   r"   K   s>    7 #'	7
 ,07 ,07
"
"
 

 

r   r"   c                  "    ] tR t^tR R ltRtR# )rk   c          
     ,    V ^8  d   QhRRRRRRRRR	R
/# )r    r#   r   r<   r=   r]   rN   rc   rO   rg   rP   r   )r#   s   "r   r$   (_KeySerializationEncryption.__annotate__   s<     6 66 6
 6 (6 (6r   c               	B    Wn         W n        W0n        W@n        WPn        R # rT   )rU   r<   rJ   rK   rL   )r(   r#   r<   r]   rc   rg   s   &&&$$$r   rD   $_KeySerializationEncryption.__init__   s      %##5 r   )rU   rK   rJ   rL   r<   NrF   r   r   r   rk   rk      s    6 6r   rk   )
__future__r   abccryptographyr   %cryptography.hazmat.primitives.hashesr   Enumr   r   r   r,   r2   ABCMetar5   r:   rH   r"   rk   r   r   r   <module>ry      s   
 # 
  ?K5:: K
uzz 7EJJ 7 35:: 3ejj 	3;; 	!8 !	- 	K
 K
\6"< 6r   