Home
last modified time | relevance | path

Searched refs:pkcs1 (Results 1 – 20 of 20) sorted by relevance

/external/python/rsa/tests/
Dtest_pkcs1.py22 from rsa import pkcs1
34 encrypted = pkcs1.encrypt(message, self.pub)
37 decrypted = pkcs1.decrypt(encrypted, self.priv)
44 encrypted = pkcs1.encrypt(message, self.pub)
53 self.assertRaises(pkcs1.DecryptionError, pkcs1.decrypt, encrypted,
62 encrypted1 = pkcs1.encrypt(message, self.pub)
63 encrypted2 = pkcs1.encrypt(message, self.pub)
102 signature = pkcs1.sign(message, self.priv, 'SHA-256')
103 self.assertEqual('SHA-256', pkcs1.verify(message, signature, self.pub))
111 signature = pkcs1.sign(message, self.priv, 'SHA3-256')
[all …]
/external/python/rsa/rsa/
Dpkcs1_v2.py23 pkcs1,
51 hash_length = pkcs1.HASH_METHODS[hasher]().digest_size
55 hash_list=', '.join(sorted(pkcs1.HASH_METHODS.keys()))
73 pkcs1.compute_hash(
D__init__.py25 from rsa.pkcs1 import encrypt, decrypt, sign, verify, DecryptionError, \
Dcli.py27 import rsa.pkcs1
29 HASH_METHODS = sorted(rsa.pkcs1.HASH_METHODS.keys())
/external/python/oauth2client/oauth2client/
D_pure_python_crypt.py90 return rsa.pkcs1.verify(message, signature, self._pubkey)
91 except (ValueError, rsa.pkcs1.VerificationError):
148 return rsa.pkcs1.sign(message, self._key, 'SHA-256')
/external/python/rsa/doc/
Dreference.rst45 .. autoclass:: rsa.pkcs1.CryptoError(Exception)
47 .. autoclass:: rsa.pkcs1.DecryptionError(CryptoError)
49 .. autoclass:: rsa.pkcs1.VerificationError(CryptoError)
Dusage.rst139 :py:class:`rsa.pkcs1.DecryptionError`. If you want to be *sure*, use
147 rsa.pkcs1.DecryptionError: Decryption failed
153 :py:class:`rsa.pkcs1.DecryptionError` exception. It shows where
197 :py:class:`rsa.pkcs1.VerificationError` is thrown:
203 File "/home/sybren/workspace/python-rsa/rsa/pkcs1.py", line 289, in verify
205 rsa.pkcs1.VerificationError: Verification failed
210 :py:class:`rsa.pkcs1.VerificationError` exception. It shows where
Dindex.rst28 the stack trace of a :py:class:`rsa.pkcs1.CryptoError` exception
/external/rust/crates/ring/src/rsa/
Dpadding.rs113 fn pkcs1_encode(pkcs1: &PKCS1, m_hash: &digest::Digest, m_out: &mut [u8]) { in pkcs1_encode()
116 let digest_len = pkcs1.digestinfo_prefix.len() + pkcs1.digest_alg.output_len; in pkcs1_encode()
129 let (digest_prefix, digest_dst) = em[3 + pad_len..].split_at_mut(pkcs1.digestinfo_prefix.len()); in pkcs1_encode()
130 digest_prefix.copy_from_slice(pkcs1.digestinfo_prefix); in pkcs1_encode()
/external/wpa_supplicant_8/src/tls/
DMakefile9 pkcs1.o \
/external/python/oauth2client/tests/
Dtest_service_account.py86 self.assertTrue(rsa.pkcs1.verify(b'Google', signature, pub_key))
88 with self.assertRaises(rsa.pkcs1.VerificationError):
89 rsa.pkcs1.verify(b'Orest', signature, pub_key)
90 with self.assertRaises(rsa.pkcs1.VerificationError):
91 rsa.pkcs1.verify(b'Google', b'bad signature', pub_key)
/external/boringssl/src/crypto/obj/
Dobjects.txt162 pkcs 1 : pkcs1
163 pkcs1 1 : : rsaEncryption
164 pkcs1 2 : RSA-MD2 : md2WithRSAEncryption
165 pkcs1 3 : RSA-MD4 : md4WithRSAEncryption
166 pkcs1 4 : RSA-MD5 : md5WithRSAEncryption
167 pkcs1 5 : RSA-SHA1 : sha1WithRSAEncryption
169 pkcs1 7 : RSAES-OAEP : rsaesOaep
170 pkcs1 8 : MGF1 : mgf1
171 pkcs1 9 : PSPECIFIED : pSpecified
172 pkcs1 10 : RSASSA-PSS : rsassaPss
[all …]
Dobj_mac.num184 pkcs1 186
/external/scapy/scapy/layers/tls/crypto/
Dhkdf.py12 from scapy.layers.tls.crypto.pkcs1 import _get_hash
Dcipher_aead.py19 from scapy.layers.tls.crypto.pkcs1 import pkcs_i2osp, pkcs_os2ip
/external/ipsec-tools/src/racoon/
Deaytest.c121 char *pkcs1 = local
155 printf ("%s", pkcs1);
157 priv = pem_read_buf(pkcs1);
/external/scapy/scapy/layers/tls/
Dkeyexchange_tls13.py19 from scapy.layers.tls.crypto.pkcs1 import pkcs_i2osp, pkcs_os2ip
Drecord.py30 from scapy.layers.tls.crypto.pkcs1 import randstring, pkcs_i2osp
Dkeyexchange.py21 from scapy.layers.tls.crypto.pkcs1 import pkcs_i2osp, pkcs_os2ip
Dcert.py50 from scapy.layers.tls.crypto.pkcs1 import (pkcs_os2ip, pkcs_i2osp, _get_hash,