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

/vbox/src/VBox/Devices/PC/ipxe/src/tests/
H A Dcbc_test.c43 * @v plaintext Plaintext data
49 size_t key_len, const void *iv, const void *plaintext,
61 cipher_encrypt ( cipher, ctx, plaintext, ciphertext, len );
75 * @v expected_plaintext Expected plaintext data
83 uint8_t plaintext[ len ]; local
92 cipher_decrypt ( cipher, ctx, ciphertext, plaintext, len );
95 return ( memcmp ( plaintext, expected_plaintext, len ) == 0 );
48 cbc_test_encrypt( struct cipher_algorithm *cipher, const void *key, size_t key_len, const void *iv, const void *plaintext, const void *expected_ciphertext, size_t len ) argument
H A Dcbc_test.h12 const void *plaintext,
26 * @v plaintext Plaintext data
30 #define cbc_encrypt_ok( cipher, key, key_len, iv, plaintext, \
32 ok ( cbc_test_encrypt ( cipher, key, key_len, iv, plaintext, \
44 * @v expected_plaintext Expected plaintext data
H A Dpubkey_test.h18 * @v expected Expected plaintext
19 * @v expected_len Expected plaintext length
50 * @v plaintext Plaintext
54 decrypt_key, decrypt_key_len, plaintext, \
66 (plaintext), \
72 encrypted_len, (plaintext), \
85 * @v plaintext Plaintext
90 #define pubkey_sign_ok( pubkey, key, key_len, digest, plaintext, \
97 digest_update ( (digest), digestctx, (plaintext), \
123 * @v plaintext Plaintex
[all...]
H A Daes_cbc_test.c47 /** Define inline plaintext data */
64 const void *plaintext; member in struct:aes_cbc_test
65 /** Length of plaintext */
94 .plaintext = name ## _plaintext, \
112 (test)->iv, (test)->plaintext, \
116 (test)->plaintext, (test)->ciphertext_len ); \
H A Drsa_test.c46 /** Define inline plaintext data */
66 const void *plaintext; member in struct:rsa_encrypt_decrypt_test
72 * padding, so a given plaintext will encrypt to multiple
101 .plaintext = name ## _plaintext, \
118 const void *plaintext; member in struct:rsa_signature_test
151 .plaintext = name ## _plaintext, \
166 (test)->ciphertext_len, (test)->plaintext, \
170 (test)->public_len, (test)->plaintext, \
174 (test)->private_len, (test)->plaintext, \
188 (test)->plaintext, (tes
[all...]
/vbox/src/libs/xpcom18a4/nsprpub/lib/tests/
H A Dbase64t.c200 const char *plaintext; member in struct:__anon17146
1831 PRUint32 plen = PL_strlen(array[i].plaintext);
1834 char *rv = PL_Base64Encode(array[i].plaintext, plen, result);
1845 i, array[i].plaintext, array[i].cyphertext, clen, result);
2021 PRUint32 plen = PL_strlen(array[i].plaintext);
2024 char *rv = PL_Base64Encode(array[i].plaintext, plen, (char *)0);
2035 i, array[i].plaintext, array[i].cyphertext, rv);
2327 if( 0 != PL_strncmp(result, array[i].plaintext, plen) )
2330 i, array[i].cyphertext, array[i].plaintext, plen, result);
2383 if( 0 != PL_strncmp(result, array[i].plaintext, ple
[all...]
/vbox/src/VBox/Devices/PC/ipxe/src/crypto/
H A Dcrypto_null.c94 const void *plaintext __unused,
103 void *plaintext __unused ) {
H A Drsa.c363 * @v plaintext Plaintext
364 * @v plaintext_len Length of plaintext
368 static int rsa_encrypt ( void *ctx, const void *plaintext, argument
379 DBGC ( context, "RSA %p plaintext too long (%zd bytes, max "
384 DBGC_HDA ( context, 0, plaintext, plaintext_len );
400 plaintext, plaintext_len );
416 * @v plaintext Plaintext
420 size_t ciphertext_len, void *plaintext ) {
457 memcpy ( plaintext, start, plaintext_len );
459 DBGC_HDA ( context, 0, plaintext, plaintext_le
[all...]
/vbox/src/VBox/Devices/PC/ipxe/src/net/
H A Dtls.c825 * @v len Length of plaintext record
1154 * @v len Length of plaintext record
1183 * @v len Length of plaintext record
1223 * @v len Length of plaintext handshake record
1368 * @v len Length of plaintext handshake record
1402 * @v len Length of plaintext handshake record
1425 * @v len Length of plaintext handshake record
1459 * @v len Length of plaintext handshake record
1505 * @v len Length of plaintext record
1581 * @v len Length of plaintext recor
1656 void *plaintext; local
1694 void *plaintext; local
1740 void *plaintext = NULL; local
1829 tls_split_stream( struct tls_session *tls, void *plaintext, size_t plaintext_len, void **data, size_t *len, void **digest ) argument
1867 tls_split_block( struct tls_session *tls, void *plaintext, size_t plaintext_len, void **data, size_t *len, void **digest ) argument
1938 void *plaintext = NULL; local
[all...]

Completed in 91 milliseconds