Home
last modified time | relevance | path

Searched refs:load_pkcs1 (Results 1 – 9 of 9) sorted by relevance

/external/python/rsa/tests/
Dtest_load_save_keys.py79 key = rsa.key.PrivateKey.load_pkcs1(PRIVATE_DER, 'DER')
103 key = rsa.key.PrivateKey.load_pkcs1(PRIVATE_DER, 'DER')
129 key = rsa.key.PublicKey.load_pkcs1(PUBLIC_DER, 'DER')
150 key = rsa.key.PrivateKey.load_pkcs1(PRIVATE_PEM, 'PEM')
170 key = rsa.key.PublicKey.load_pkcs1(PUBLIC_PEM, 'PEM')
190 privkey = rsa.key.PrivateKey.load_pkcs1(keydata)
Dtest_pem.py65 key = rsa.key.PrivateKey.load_pkcs1(private_key_pem)
69 key = rsa.key.PrivateKey.load_pkcs1(private_key_pem.encode('ascii'))
83 key = rsa.key.PrivateKey.load_pkcs1(private_key_pem)
97 key = rsa.key.PrivateKey.load_pkcs1(private_key_pem.encode('ascii'))
Dtest_cli.py145 rsa.PrivateKey.load_pkcs1(pemfile.read())
161 rsa.PrivateKey.load_pkcs1(derfile.read(), format='DER')
180 rsa.PublicKey.load_pkcs1(pemfile.read())
283 key = rsa.PublicKey.load_pkcs1(pemfile.read())
Dtest_pkcs1.py71 self.private_key = rsa.PrivateKey.load_pkcs1(
194 self.private_key = rsa.PrivateKey.load_pkcs1(b'''
/external/python/oauth2client/oauth2client/
D_pure_python_crypt.py122 pubkey = rsa.PublicKey.load_pkcs1(key_bytes, 'DER')
124 pubkey = rsa.PublicKey.load_pkcs1(key_pem, 'PEM')
171 pkey = rsa.key.PrivateKey.load_pkcs1(key_bytes,
179 pkey = rsa.key.PrivateKey.load_pkcs1(pkey_info.asOctets(),
/external/python/rsa/rsa/
Dutil.py61 priv_key = rsa.key.PrivateKey.load_pkcs1(in_data, cli.inform)
Dcli.py168 return self.key_class.load_pkcs1(keydata, keyform)
Dkey.py100 def load_pkcs1(cls, keyfile: bytes, format: str = 'PEM') -> 'AbstractKey': member in AbstractKey
/external/python/rsa/doc/
Dusage.rst35 Alternatively you can use :py:meth:`rsa.PrivateKey.load_pkcs1` and
36 :py:meth:`rsa.PublicKey.load_pkcs1` to load keys from a file:
41 >>> privkey = rsa.PrivateKey.load_pkcs1(keydata)