+
    i                         R t ^ RIHt ^ RIHt ^ RIHt ^ RIHt ^ RIHt Rt	 ! R R]P                  4      t ! R	 R
]P                  ]P                  4      tR# )z
RSA cryptography signer and verifier.

This file provides a shared wrapper, that defers to _python_rsa or _cryptography_rsa
for implmentations using different third party libraries
)RSAPrivateKey)RSAPublicKey)_helpers)_cryptography_rsa)basezrsa.keyc                   ~   a  ] tR t^ t o RtR t]P                  ! ]P                  4      R 4       t
]R 4       tRtV tR# )RSAVerifieray  Verifies RSA cryptographic signatures using public keys.

Args:
    public_key (Union["rsa.key.PublicKey", cryptography.hazmat.primitives.asymmetric.rsa.RSAPublicKey]):
        The public key used to verify signatures.
Raises:
    ImportError: if called with an rsa.key.PublicKey, when the rsa library is not installed
    ValueError: if an unrecognized public key is provided
c                   VP                   P                  p\        V\        4      '       d   \        pM;VP                  \        4      '       d
   ^ RIHp TpM\        R\        V4       24      hVP                  V4      V n        R# )    _python_rsazunrecognized public key type: N)	__class__
__module__
isinstancer   r   
startswithRSA_KEY_MODULE_PREFIXgoogle.auth.cryptr   
ValueErrortyper   _impl)self
public_key
module_strimpl_libr   s   &&   h/Users/igloo/.openclaw/workspace/scratch/fb_ad_env/lib/python3.14/site-packages/google/auth/crypt/rsa.py__init__RSAVerifier.__init__+   sj    ))44
j,//(H""#8995"H=d:>N=OPQQ))*5
    c                8    V P                   P                  W4      # N)r   verify)r   message	signatures   &&&r   r    RSAVerifier.verify7   s    zz  44r   c                p    V P                  V 4      p\        P                  P                  V4      Vn        V# )aB  Construct a Verifier instance from a public key or public
certificate string.

Args:
    public_key (Union[str, bytes]): The public key in PEM format or the
        x509 public key certificate.

Returns:
    google.auth.crypt.Verifier: The constructed verifier.

Raises:
    ValueError: If the public_key can't be parsed.
)__new__r   r   from_stringr   )clsr   instances   && r   r&   RSAVerifier.from_string;   s/     ;;s#*66BB:Nr   r   N)__name__r   __qualname____firstlineno____doc__r   r   copy_docstringr   Verifierr    classmethodr&   __static_attributes____classdictcell____classdict__s   @r   r   r       sF     
6 T]]+5 ,5  r   r   c                      a  ] tR t^Ot o RtRR lt]]P                  ! ]	P                  4      R 4       4       t]P                  ! ]	P                  4      R 4       t]RR l4       tRtV tR# )		RSASignera  Signs messages with an RSA private key.

Args:
    private_key (Union["rsa.key.PrivateKey", cryptography.hazmat.primitives.asymmetric.rsa.RSAPrivateKey]):
        The private key to sign with.
    key_id (str): Optional key ID used to identify this private key. This
        can be useful to associate the private key with its associated
        public key or certificate.

Raises:
    ImportError: if called with an rsa.key.PrivateKey, when the rsa library is not installed
    ValueError: if an unrecognized public key is provided
Nc                   VP                   P                  p\        V\        4      '       d   \        pM;VP                  \        4      '       d
   ^ RIHp TpM\        R\        V4       24      hVP                  WR7      V n        R# )r
   r   zunrecognized private key type: key_idN)r   r   r   r   r   r   r   r   r   r   r   r7   r   )r   private_keyr:   r   r   r   s   &&&   r   r   RSASigner.__init__^   sm     **55
k=11(H""#8995"H>tK?P>QRSS'''C
r   c                .    V P                   P                  # r   )r   r:   )r   s   &r   r:   RSASigner.key_idj   s     zz   r   c                8    V P                   P                  V4      # r   )r   sign)r   r!   s   &&r   r@   RSASigner.signo   s    zzw''r   c                r    V P                  V 4      p\        P                  P                  WR7      Vn        V# )aV  Construct a Signer instance from a private key in PEM format.

Args:
    key (str): Private key in PEM format.
    key_id (str): An optional key id used to identify the private key.

Returns:
    google.auth.crypt.Signer: The constructed signer.

Raises:
    ValueError: If the key cannot be parsed as PKCS#1 or PKCS#8 in
        PEM format.
r9   )r%   r   r7   r&   r   )r'   keyr:   r(   s   &&& r   r&   RSASigner.from_strings   s2     ;;s#*44@@@Tr   r*   r   )r+   r   r,   r-   r.   r   propertyr   r/   r   Signerr:   r@   r1   r&   r2   r3   r4   s   @r   r7   r7   O   sr     
D T[[)! * ! T[[)( *(  r   r7   N)r.   -cryptography.hazmat.primitives.asymmetric.rsar   r   google.authr   r   r   r   r   r0   r   rF   FromServiceAccountMixinr7    r   r   <module>rK      sK    H F   / "! ,$-- ,^5T99 5r   