Home
last modified time | relevance | path

Searched refs:encrypt (Results 1 – 25 of 157) sorted by relevance

1234567

/external/boringssl/src/fipstools/
Dcavp_keywrap_test.cc30 bool encrypt; member
35 static bool AESKeyWrap(std::vector<uint8_t> *out, bool encrypt, in AESKeyWrap() argument
44 if (encrypt) { in AESKeyWrap()
66 std::string count, unused, in_label = ctx->encrypt ? "P" : "C", in TestCipher()
67 result_label = ctx->encrypt ? "C" : "P"; in TestCipher()
79 if (!AESKeyWrap(&result, ctx->encrypt, key, in)) { in TestCipher()
80 if (ctx->encrypt) { in TestCipher()
107 bool encrypt; in cavp_keywrap_test_main() local
109 encrypt = true; in cavp_keywrap_test_main()
111 encrypt = false; in cavp_keywrap_test_main()
[all …]
Dcavp_aes_test.cc44 bool encrypt, std::vector<uint8_t> key, in MonteCarlo() argument
46 const std::string in_label = encrypt ? "PLAINTEXT" : "CIPHERTEXT", in MonteCarlo()
47 result_label = encrypt ? "CIPHERTEXT" : "PLAINTEXT"; in MonteCarlo()
61 if (!CipherOperation(cipher, &result, encrypt, key, iv, in)) { in MonteCarlo()
70 if (encrypt) { in MonteCarlo()
77 if (!CipherOperation(cipher, &result, encrypt, key, iv, in)) { in MonteCarlo()
/external/scapy/scapy/contrib/
Dmacsec.uts11 …\x00\x13\x01\x56\x00\x01', an=0, pn=100, key=b'aaaaaaaaaaaaaaaa', icvlen=16, encrypt=1, send_sci=1)
26 …\x00\x13\x01\x56\x00\x01', an=0, pn=100, key=b'aaaaaaaaaaaaaaaa', icvlen=16, encrypt=1, send_sci=1)
29 e = sa.encrypt(m)
42 …\x00\x13\x01\x56\x00\x01', an=0, pn=100, key=b'aaaaaaaaaaaaaaaa', icvlen=16, encrypt=1, send_sci=1)
45 e = sa.encrypt(m)
60 …\x00\x13\x01\x56\x00\x01', an=0, pn=100, key=b'aaaaaaaaaaaaaaaa', icvlen=16, encrypt=1, send_sci=1)
63 e = sa.encrypt(m)
71 …\x00\x13\x01\x56\x00\x01', an=0, pn=200, key=b'aaaaaaaaaaaaaaaa', icvlen=16, encrypt=0, send_sci=1)
86 …\x00\x13\x01\x56\x00\x01', an=0, pn=200, key=b'aaaaaaaaaaaaaaaa', icvlen=16, encrypt=0, send_sci=1)
89 e = sa.encrypt(m)
[all …]
/external/conscrypt/benchmark-base/src/main/java/org/conscrypt/
DCipherEncryptBenchmark.java57 int encrypt() throws Exception { in encrypt() method in CipherEncryptBenchmark
58 return encryptStrategy.encrypt(); in encrypt()
90 abstract int encrypt() throws Exception; in encrypt() method in CipherEncryptBenchmark.EncryptStrategy
105 int encrypt() throws Exception { in encrypt() method in CipherEncryptBenchmark.ArrayStrategy
143 int encrypt() throws Exception { in encrypt() method in CipherEncryptBenchmark.ByteBufferStrategy
/external/conscrypt/repackaged/benchmark-base/src/main/java/com/android/org/conscrypt/
DCipherEncryptBenchmark.java62 int encrypt() throws Exception { in encrypt() method in CipherEncryptBenchmark
63 return encryptStrategy.encrypt(); in encrypt()
95 abstract int encrypt() throws Exception; in encrypt() method in CipherEncryptBenchmark.EncryptStrategy
110 int encrypt() throws Exception { in encrypt() method in CipherEncryptBenchmark.ArrayStrategy
148 int encrypt() throws Exception { in encrypt() method in CipherEncryptBenchmark.ByteBufferStrategy
/external/grpc-grpc-java/alts/src/test/java/io/grpc/alts/internal/
DChannelCrypterNettyTestBase.java90 client.encrypt(frameEncrypt.out, frameEncrypt.plain); in encryptDecrypt()
105 client.encrypt(frameEncrypt.out, frameEncrypt.plain); in encryptDecryptLarge()
119 client.encrypt(frameEncrypt.out, frameEncrypt.plain); in encryptDecryptMultiple()
142 client.encrypt(frameEncrypt.out, frameEncrypt.plain); in encryptDecryptComposite()
166 client.encrypt(frameEncrypt.out, frameEncrypt.plain); in reflection()
180 client.encrypt(frameEncrypt1.out, frameEncrypt1.plain); in skipMessage()
182 client.encrypt(frameEncrypt2.out, frameEncrypt2.plain); in skipMessage()
197 client.encrypt(frameEncrypt.out, frameEncrypt.plain); in corruptMessage()
213 client.encrypt(frameEncrypt.out, frameEncrypt.plain); in replayMessage()
DAltsTsiFrameProtectorTest.java296 crypter.encrypt(frameOut, framePlain); in parseFrame_oneFrameNoFragment()
342 crypter.encrypt(frameOut1, framePlain1); in parseFrame_twoFramesNoFragment()
343 crypter.encrypt(frameOut2, framePlain2); in parseFrame_twoFramesNoFragment()
394 crypter.encrypt(frameOut1, framePlain1); in parseFrame_twoFramesNoFragment_Leftover()
395 crypter.encrypt(frameOut2, framePlain2); in parseFrame_twoFramesNoFragment_Leftover()
459 crypter.encrypt(frameOut1, framePlain1); in parseFrame_twoFramesFragmentSecond()
460 crypter.encrypt(frameOut2, framePlain2); in parseFrame_twoFramesFragmentSecond()
/external/python/rsa/doc/
Dcli.rst12 .. index:: pyrsa-keygen, pyrsa-encrypt, pyrsa-decrypt, pyrsa-sign
13 .. index:: pyrsa-verify, pyrsa-priv2pub, pyrsa-encrypt-bigfile
21 | pyrsa-encrypt | Encrypts a file. The file must be shorter than | :py:func:`rsa.encryp…
35 | *pyrsa-encrypt-bigfile* | *Encrypts a file to an encrypted VARBLOCK file. | *Deprecated in Pytho…
Dusage.rst50 encrypt. If you don't mind having a slightly smaller key than you
97 To encrypt or decrypt a message, use :py:func:`rsa.encrypt` resp.
118 >>> crypto = rsa.encrypt(message, bob_pub)
131 RSA can only encrypt messages that are smaller than the key. A couple
142 >>> crypto = rsa.encrypt(b'hello', bob_pub)
232 RSA can only encrypt messages that are smaller than the key. A couple
242 like AES or DES3 to encrypt the file with a random key, then encrypt
251 #. Use that key to encrypt the file with AES.
252 #. :py:func:`Encrypt <rsa.encrypt>` the AES key with RSA
254 >>> encrypted_aes_key = rsa.encrypt(aes_key, public_rsa_key)
Dupgrading.rst34 re-encrypt them::
40 new_crypto = rsa.encrypt(decrypted, version_3_public_key)
52 secure, but also requires a larger key to encrypt the same message.
/external/u-boot/drivers/fpga/
Dsocfpga_arria10.c159 bool encrypt, compress; in fpgamgr_set_cdratio_cdwidth() local
169 encrypt = (rbf_data[ENCRYPTION_OFFSET] >> 2) & 3; in fpgamgr_set_cdratio_cdwidth()
170 encrypt = encrypt != 0; in fpgamgr_set_cdratio_cdwidth()
177 debug("read from rbf header: encrypt=%d compress=%d\n", encrypt, compress); in fpgamgr_set_cdratio_cdwidth()
199 if (!compress && !encrypt) { in fpgamgr_set_cdratio_cdwidth()
/external/boringssl/src/decrepit/blowfish/
Dblowfish.c141 const BF_KEY *key, int encrypt) { in BF_ecb_encrypt() argument
146 if (encrypt) { in BF_ecb_encrypt()
156 const BF_KEY *schedule, uint8_t *ivec, int encrypt) { in BF_cbc_encrypt() argument
162 if (encrypt) { in BF_cbc_encrypt()
503 int encrypt) { in BF_cfb64_encrypt() argument
511 if (encrypt) { in BF_cfb64_encrypt()
569 BF_ecb_encrypt(in, out, bf_key, ctx->encrypt); in bf_ecb_cipher()
582 BF_cbc_encrypt(in, out, len, bf_key, ctx->iv, ctx->encrypt); in bf_cbc_cipher()
590 BF_cfb64_encrypt(in, out, len, bf_key, ctx->iv, &num, ctx->encrypt); in bf_cfb_cipher()
/external/robolectric-shadows/shadows/framework/src/main/java/org/robolectric/shadows/
DShadowBluetoothServerSocket.java19 int type, boolean auth, boolean encrypt, ParcelUuid uuid) { in newInstance() argument
24 new Object[] {type, auth, encrypt, uuid}); in newInstance()
29 new Object[] {type, auth, encrypt, getPort(uuid)}); in newInstance()
/external/grpc-grpc-java/alts/src/main/java/io/grpc/alts/internal/
DAesGcmHkdfAeadCrypter.java58 public void encrypt(ByteBuffer ciphertext, ByteBuffer plaintext, byte[] nonce) in encrypt() method in AesGcmHkdfAeadCrypter
62 aeadCrypter.encrypt(ciphertext, plaintext, nonceBuffer); in encrypt()
66 public void encrypt(ByteBuffer ciphertext, ByteBuffer plaintext, ByteBuffer aad, byte[] nonce) in encrypt() method in AesGcmHkdfAeadCrypter
70 aeadCrypter.encrypt(ciphertext, plaintext, aad, nonceBuffer); in encrypt()
DAeadCrypter.java36 void encrypt(ByteBuffer ciphertext, ByteBuffer plaintext, byte[] nonce) in encrypt() method
49 void encrypt(ByteBuffer ciphertext, ByteBuffer plaintext, ByteBuffer aad, byte[] nonce) in encrypt() method
DAesGcmAeadCrypter.java75 public void encrypt(ByteBuffer ciphertext, ByteBuffer plaintext, byte[] nonce) in encrypt() method in AesGcmAeadCrypter
81 public void encrypt(ByteBuffer ciphertext, ByteBuffer plaintext, ByteBuffer aad, byte[] nonce) in encrypt() method in AesGcmAeadCrypter
/external/scapy/test/
Dipsec.uts26 e = sa.encrypt(p)
57 e = sa.encrypt(p)
109 e = sa.encrypt(p)
161 e = sa.encrypt(p)
213 e = sa.encrypt(p)
264 e = sa.encrypt(p)
315 e = sa.encrypt(p)
371 e = sa.encrypt(p)
404 e = sa.encrypt(p)
439 e = sa.encrypt(p)
[all …]
/external/python/rsa/tests/
Dtest_pkcs1.py35 encrypted = pkcs1.encrypt(message, self.pub)
45 encrypted = pkcs1.encrypt(message, self.pub)
63 encrypted1 = pkcs1.encrypt(message, self.pub)
64 encrypted2 = pkcs1.encrypt(message, self.pub)
/external/fonttools/Tests/misc/
Deexec_test.py3 from fontTools.misc.eexec import decrypt, encrypt
15 encryptedStr, R = encrypt(testStr, 12321)
/external/boringssl/src/crypto/fipsmodule/cipher/
De_des.c86 ctx->encrypt); in des_cbc_cipher()
113 &dat->ks.ks, ctx->encrypt); in des_ecb_cipher()
154 &dat->ks.ks[2], (DES_cblock *)ctx->iv, ctx->encrypt); in des_ede3_cbc_cipher()
206 ctx->encrypt); in des_ede_ecb_cipher()
Dcipher.c137 enc = ctx->encrypt; in EVP_CipherInit_ex()
142 ctx->encrypt = enc; in EVP_CipherInit_ex()
152 ctx->encrypt = enc; in EVP_CipherInit_ex()
476 if (ctx->encrypt) { in EVP_CipherUpdate()
484 if (ctx->encrypt) { in EVP_CipherFinal_ex()
500 return ctx->encrypt; in EVP_CIPHER_CTX_encrypting()
/external/boringssl/src/crypto/cipher_extra/
Dcipher_test.cc152 static void TestOperation(FileTest *t, const EVP_CIPHER *cipher, bool encrypt, in TestOperation() argument
160 if (encrypt) { in TestOperation()
172 encrypt ? 1 : 0)); in TestOperation()
181 if (is_aead && !encrypt) { in TestOperation()
204 if (encrypt && is_aead) { in TestOperation()
/external/openssh/
DPROTOCOL.chacha20poly130541 to encrypt the 4 byte packet length field. The second instance,
43 (Authenticated Encryption with Associated Data) that is used to encrypt
49 the MAC. By using an independently-keyed cipher instance to encrypt the
80 To send a packet, first encode the 4 byte length and encrypt it using
88 used to encrypt more than 2^70 bytes under the same {key, nonce}. The
Dcipher.c62 int encrypt; member
347 cc->encrypt = do_encrypt; in cipher_init()
453 len, aadlen, authlen, cc->encrypt); in cipher_crypt()
479 if (!cc->encrypt && in cipher_crypt()
498 return cc->encrypt ? in cipher_crypt()
500 if (cc->encrypt && in cipher_crypt()
/external/conscrypt/benchmark-jmh/src/jmh/java/org/conscrypt/
DJmhCipherEncryptBenchmark.java56 public void encrypt(Blackhole bh) throws Exception { in encrypt() method in JmhCipherEncryptBenchmark
57 bh.consume(benchmark.encrypt()); in encrypt()

1234567