Searched refs:plaintext (Results 1 - 18 of 18) sorted by relevance

/external/chromium/net/http/
H A Ddes_unittest.cc17 // DES known plaintext (64-bits).
39 static const uint8 plaintext[] = { 0, 0, 0, 0, 0, 0, 0, 0 }; local
46 DESEncrypt(key, plaintext, ciphertext);
/external/openssl/crypto/evp/
H A Devp_test.c138 const unsigned char *plaintext,int pn,
151 hexdump(stdout,"Plaintext",plaintext,pn);
171 if(!EVP_EncryptUpdate(&ctx,out,&outl,plaintext,pn))
230 if(memcmp(out,plaintext,pn))
234 hexdump(stderr,"Expected",plaintext,pn);
246 const unsigned char *plaintext,int pn,
256 test1(c,key,kn,iv,in,plaintext,pn,ciphertext,cn,encdec);
262 const unsigned char *plaintext,int pn,
275 hexdump(stdout,"Plaintext",plaintext,pn);
285 if(!EVP_DigestUpdate(&ctx,plaintext,p
136 test1(const EVP_CIPHER *c,const unsigned char *key,int kn, const unsigned char *iv,int in, const unsigned char *plaintext,int pn, const unsigned char *ciphertext,int cn, int encdec) argument
244 test_cipher(const char *cipher,const unsigned char *key,int kn, const unsigned char *iv,int in, const unsigned char *plaintext,int pn, const unsigned char *ciphertext,int cn, int encdec) argument
261 test_digest(const char *digest, const unsigned char *plaintext,int pn, const unsigned char *ciphertext, unsigned int cn) argument
369 unsigned char *iv,*key,*plaintext,*ciphertext; local
[all...]
/external/dbus/dbus/
H A Ddbus-auth.h65 const DBusString *plaintext,
70 DBusString *plaintext);
H A Ddbus-auth.c1083 DBusString plaintext; local
1085 if (!_dbus_string_init (&plaintext))
1088 if (!_dbus_string_append_uint (&plaintext,
1092 if (!_dbus_string_hex_encode (&plaintext, 0,
1097 _dbus_string_free (&plaintext);
1102 _dbus_string_free (&plaintext);
2341 * @param plaintext the plain text data
2347 const DBusString *plaintext,
2350 _dbus_assert (plaintext != encoded);
2358 return (* auth->mech->client_encode_func) (auth, plaintext, encode
2346 _dbus_auth_encode_data(DBusAuth *auth, const DBusString *plaintext, DBusString *encoded) argument
2409 _dbus_auth_decode_data(DBusAuth *auth, const DBusString *encoded, DBusString *plaintext) argument
[all...]
H A Ddbus-transport.c790 DBusString plaintext; local
795 if (!_dbus_string_init (&plaintext))
802 encoded, &plaintext))
804 _dbus_string_free (&plaintext);
813 if (!_dbus_string_move (&plaintext, 0, buffer,
816 _dbus_string_free (&plaintext);
831 _dbus_string_free (&plaintext);
/external/dropbear/libtomcrypt/demos/
H A Dtv_gen.c168 "The output of step N is used as the key and plaintext for step N+1 (key bytes repeated as required to fill the key)\n\n");
398 plaintext[MAXBLOCKSIZE*2], tag[MAXBLOCKSIZE]; local
402 fprintf(out, "EAX Test Vectors. Uses the 00010203...NN-1 pattern for header/nonce/plaintext/key. The outputs\n"
424 plaintext[z] = (unsigned char)(z & 255);
429 if ((err = eax_encrypt_authenticate_memory(x, key, kl, nonce, y1, header, y1, plaintext, y1, plaintext, tag, &len)) != CRYPT_OK) {
435 fprintf(out, "%02X", plaintext[z]);
458 plaintext[MAXBLOCKSIZE*2], tag[MAXBLOCKSIZE]; local
462 fprintf(out, "OCB Test Vectors. Uses the 00010203...NN-1 pattern for nonce/plaintext/key. The outputs\n"
489 plaintext[
522 plaintext[MAXBLOCKSIZE*2], tag[MAXBLOCKSIZE]; local
584 unsigned char key[MAXBLOCKSIZE], plaintext[MAXBLOCKSIZE*2], tag[MAXBLOCKSIZE]; local
[all...]
H A Dencrypt.c97 unsigned char plaintext[512],ciphertext[512]; local
182 if ((errno = ctr_decrypt(inbuf,plaintext,y,&ctr)) != CRYPT_OK) {
187 if (fwrite(plaintext,1,y,fdout) != y) {
/external/chromium/net/third_party/nss/ssl/
H A Dssl3ext.c546 SECItem plaintext; local
669 plaintext = plaintext_item;
672 rv = ssl3_AppendNumberToItem(&plaintext, TLS_EX_SESS_TICKET_VERSION,
677 rv = ssl3_AppendNumberToItem(&plaintext, ss->version,
682 rv = ssl3_AppendNumberToItem(&plaintext, ss->ssl3.hs.cipher_suite,
687 rv = ssl3_AppendNumberToItem(&plaintext, ss->ssl3.hs.compression, 1);
691 rv = ssl3_AppendNumberToItem(&plaintext, ss->sec.authAlgorithm, 1);
693 rv = ssl3_AppendNumberToItem(&plaintext, ss->sec.authKeyBits, 4);
695 rv = ssl3_AppendNumberToItem(&plaintext, ss->sec.keaType, 1);
697 rv = ssl3_AppendNumberToItem(&plaintext, s
[all...]
H A Dssl3con.c2161 * Returns the number of bytes of plaintext that were successfully sent
2162 * plus the number of bytes of plaintext that were copied into the
2169 * Attempt to make and send SSL records for all plaintext
8478 sslBuffer *plaintext; local
8518 plaintext = &temp_buf;
8520 plaintext = databuf;
8523 plaintext->len = 0; /* filled in by decode call below. */
8524 if (plaintext->space < MAX_FRAGMENT_LENGTH) {
8525 rv = sslBuffer_Grow(plaintext, MAX_FRAGMENT_LENGTH + 2048);
8548 /* decrypt from cText buf to plaintext
[all...]
/external/webkit/SunSpider/tests/sunspider-0.9/
H A Dcrypto-aes.js158 * Use AES to encrypt 'plaintext' with 'password' using 'nBits' key, in 'Counter' mode of operation
162 * - cipherblock = plaintext xor outputblock
164 function AESEncryptCtr(plaintext, password, nBits) {
188 var blockCount = Math.ceil(plaintext.length/blockSize);
200 var blockLength = b<blockCount-1 ? blockSize : (plaintext.length-1)%blockSize+1;
203 for (var i=0; i<blockLength; i++) { // -- xor plaintext with ciphered counter byte-by-byte --
204 var plaintextByte = plaintext.charCodeAt(b*blockSize+i);
228 * - cipherblock = plaintext xor outputblock
250 var plaintext = new Array(ciphertext.length-1);
263 // -- xor plaintext wit
[all...]
/external/webkit/SunSpider/tests/sunspider-0.9.1/
H A Dcrypto-aes.js158 * Use AES to encrypt 'plaintext' with 'password' using 'nBits' key, in 'Counter' mode of operation
162 * - cipherblock = plaintext xor outputblock
164 function AESEncryptCtr(plaintext, password, nBits) {
188 var blockCount = Math.ceil(plaintext.length/blockSize);
200 var blockLength = b<blockCount-1 ? blockSize : (plaintext.length-1)%blockSize+1;
203 for (var i=0; i<blockLength; i++) { // -- xor plaintext with ciphered counter byte-by-byte --
204 var plaintextByte = plaintext.charCodeAt(b*blockSize+i);
228 * - cipherblock = plaintext xor outputblock
250 var plaintext = new Array(ciphertext.length-1);
263 // -- xor plaintext wit
[all...]
/external/dropbear/libtomcrypt/src/encauth/eax/
H A Deax_test.c38 plaintext[MAXBLOCKSIZE],
53 /* plaintext */
73 /* plaintext */
93 /* plaintext */
102 /* test with header + nonce + plaintext */
114 /* plaintext */
129 /* test with header + nonce + plaintext [not even sizes!] */
141 /* plaintext */
231 tests[x].plaintext, tests[x].msglen, outct, outtag, &len)) != CRYPT_OK) {
259 if ((res != 1) || XMEMCMP(outct, tests[x].plaintext, test
[all...]
/external/dropbear/libtomcrypt/src/ciphers/
H A Dkhazad.c677 static void khazad_crypt(const unsigned char *plaintext, unsigned char *ciphertext, argument
682 * map plaintext block to cipher state (mu)
686 ((ulong64)plaintext[0] << 56) ^
687 ((ulong64)plaintext[1] << 48) ^
688 ((ulong64)plaintext[2] << 40) ^
689 ((ulong64)plaintext[3] << 32) ^
690 ((ulong64)plaintext[4] << 24) ^
691 ((ulong64)plaintext[5] << 16) ^
692 ((ulong64)plaintext[6] << 8) ^
693 ((ulong64)plaintext[
[all...]
H A Danubis.c1039 static void anubis_crypt(const unsigned char *plaintext, unsigned char *ciphertext, argument
1046 * map plaintext block to cipher state (mu)
1051 (plaintext[pos ] << 24) ^
1052 (plaintext[pos + 1] << 16) ^
1053 (plaintext[pos + 2] << 8) ^
1054 (plaintext[pos + 3] ) ^
1134 @param pt The input plaintext (16 bytes)
1151 @param pt The output plaintext (16 bytes)
/external/dropbear/libtomcrypt/
H A Dcrypt.tex445 the same buffer. For the encrypt function \textit{pt}\footnote{pt stands for plaintext.} is the input and
509 /* ... load a block of plaintext in pt ... */
533 /* now we have decrypted ct to the original plaintext in pt */
767 size of the cipher. Given a key $k$, a plaintext $P$ and a cipher $E$ we shall denote the encryption of the block
798 as the block cipher is under a chosen plaintext attack (provided the initial vector is unique).
825 \item Provably as secure as the block cipher being used under a chosen plaintext attack.
827 \item Allows random access to the plaintext.
840 by encrypting the last ciphertext block in ECB mode, and XOR'ing the output against the last partial block of plaintext. LibTomCrypt does not
877 length as the block size\footnote{In other words the size of a block of plaintext for the cipher, e.g. 8 for DES, 16 for AES, etc.}
988 if ((err = ctr_encrypt( buffer, /* plaintext */
[all...]
/external/webkit/WebCore/css/
H A Dhtml.css550 pre, xmp, plaintext, listing {
/external/webkit/WebCore/inspector/front-end/
H A Dinspector.css539 -webkit-user-modify: read-write-plaintext-only;
1481 -webkit-user-modify: read-write-plaintext-only;
1499 -webkit-user-modify: read-write-plaintext-only;
2113 -webkit-user-modify: read-write-plaintext-only;
/external/bluetooth/bluez/lib/bluetooth/
H A Dhci.h1447 uint8_t plaintext[16]; member in struct:__anon229

Completed in 595 milliseconds