OXIESEC PANEL
- Current Dir:
/
/
opt
/
gsutil
/
third_party
/
rsa
/
rsa
/
__pycache__
Server IP: 2a02:4780:11:1594:0:ef5:22d7:a
Upload:
Create Dir:
Name
Size
Modified
Perms
📁
..
-
02/11/2025 08:19:48 AM
rwxr-xr-x
📄
__init__.cpython-39.pyc
1 KB
02/11/2025 08:19:48 AM
rw-r--r--
📄
_compat.cpython-39.pyc
3.71 KB
02/11/2025 08:19:48 AM
rw-r--r--
📄
common.cpython-39.pyc
3.86 KB
02/11/2025 08:19:48 AM
rw-r--r--
📄
core.cpython-39.pyc
1.18 KB
02/11/2025 08:19:48 AM
rw-r--r--
📄
key.cpython-39.pyc
22.54 KB
02/11/2025 08:19:48 AM
rw-r--r--
📄
machine_size.cpython-39.pyc
1.37 KB
02/11/2025 08:19:48 AM
rw-r--r--
📄
pem.cpython-39.pyc
2.29 KB
02/11/2025 08:19:48 AM
rw-r--r--
📄
pkcs1.cpython-39.pyc
11.44 KB
02/11/2025 08:19:48 AM
rw-r--r--
📄
prime.cpython-39.pyc
3.63 KB
02/11/2025 08:19:48 AM
rw-r--r--
📄
randnum.cpython-39.pyc
1.64 KB
02/11/2025 08:19:48 AM
rw-r--r--
📄
transform.cpython-39.pyc
4.89 KB
02/11/2025 08:19:48 AM
rw-r--r--
Editing: key.cpython-39.pyc
Close
a �'k`�_ � @ s\ d Z ddlZddlZddlmZ ddlZddlZddlZddl Zddl Ze�e�Z dZG dd� de�ZG dd� de�ZG d d � d e�Zejjdfdd �Zdd� Zdd� Zdefdd�Zddefdd�Zg d�Zedk�rXddlZzRed�D ]DZe�� \ZZe�r �q0ed dk�re�s"edkr�e de � q�W n e!�yN e d� Y n 0 e d� dS )aj RSA key generation code. Create new keys with the newkeys() function. It will give you a PublicKey and a PrivateKey object. Loading and saving keys requires the pyasn1 module. This module is imported as late as possible, such that other functionality will remain working in absence of pyasn1. .. note:: Storing public and private keys via the `pickle` module is possible. However, it is insecure to load a key from an untrusted source. The pickle module is not secure against erroneous or maliciously constructed data. Never unpickle data received from an untrusted or unauthenticated source. � N)�rangei c @ sx e Zd ZdZdZdd� Zedd� �Zedd� �Zd d � Z dd� Z eddd��Zedd� �Z ddd�Zdd� Zdd� ZdS )�AbstractKeyz0Abstract superclass for private and public keys.��n�ec C s || _ || _d S �Nr )�selfr r � r �&/opt/gsutil/third_party/rsa/rsa/key.py�__init__8 s zAbstractKey.__init__c C s dS )z�Loads a key in PKCS#1 PEM format, implement in a subclass. :param keyfile: contents of a PEM-encoded file that contains the public key. :type keyfile: bytes :return: the loaded key :rtype: AbstractKey Nr ��cls�keyfiler r r �_load_pkcs1_pem<