/external/chromium/net/http/ |
des_unittest.cc | 20 // DES known ciphertext (64-bits). 25 uint8 ciphertext[8]; local 26 memset(ciphertext, 0xaf, sizeof(ciphertext)); 28 DESEncrypt(des_known_key, des_ecb_known_plaintext, ciphertext); 29 EXPECT_EQ(0, memcmp(ciphertext, des_ecb_known_ciphertext, 8)); 43 uint8 ciphertext[8]; local 44 memset(ciphertext, 0xaf, sizeof(ciphertext)); 46 DESEncrypt(key, plaintext, ciphertext); [all...] |
/external/dropbear/libtomcrypt/demos/ |
encrypt.c | 97 unsigned char plaintext[512],ciphertext[512]; local 223 if ((errno = ctr_encrypt(inbuf,ciphertext,y,&ctr)) != CRYPT_OK) { 228 if (fwrite(ciphertext,1,y,fdout) != y) {
|
/external/openssl/crypto/evp/ |
evp_test.c | 139 const unsigned char *ciphertext,int cn, 152 hexdump(stdout,"Ciphertext",ciphertext,cn); 186 fprintf(stderr,"Ciphertext length mismatch got %d expected %d\n", 191 if(memcmp(out,ciphertext,cn)) 193 fprintf(stderr,"Ciphertext mismatch\n"); 195 hexdump(stderr,"Expected",ciphertext,cn); 210 if(!EVP_DecryptUpdate(&ctx,out,&outl,ciphertext,cn)) 247 const unsigned char *ciphertext,int cn, 256 test1(c,key,kn,iv,in,plaintext,pn,ciphertext,cn,encdec) 369 unsigned char *iv,*key,*plaintext,*ciphertext; local [all...] |
/external/chromium/net/third_party/nss/ssl/ |
ssl3ext.c | 548 SECItem ciphertext = {0, NULL, 0}; local 738 if (SECITEM_AllocItem(NULL, &ciphertext, ciphertext_length) == NULL) { 750 rv = AES_Encrypt(aes_ctx, ciphertext.data, &ciphertext.len, 751 ciphertext.len, plaintext_item.data, 760 rv = PK11_CipherOp(aes_ctx_pkcs11, ciphertext.data, 761 (int *)&ciphertext.len, ciphertext.len, 768 /* Convert ciphertext length to network order. */ 769 length_buf[0] = (ciphertext.len >> 8) & 0xff [all...] |