Searched defs:cipher (Results 1 - 4 of 4) sorted by relevance

/vbox/src/VBox/Devices/PC/ipxe/src/tests/
H A Dcbc_test.c39 * @v cipher Cipher algorithm
48 int cbc_test_encrypt ( struct cipher_algorithm *cipher, const void *key, argument
51 uint8_t ctx[ cipher->ctxsize ];
55 /* Initialise cipher */
56 rc = cipher_setkey ( cipher, ctx, key, key_len );
58 cipher_setiv ( cipher, ctx, iv );
61 cipher_encrypt ( cipher, ctx, plaintext, ciphertext, len );
70 * @v cipher Cipher algorithm
79 int cbc_test_decrypt ( struct cipher_algorithm *cipher, const void *key, argument
82 uint8_t ctx[ cipher
[all...]
/vbox/src/VBox/Devices/PC/ipxe/src/include/ipxe/
H A Dcrypto.h47 /** A cipher algorithm */
177 static inline int cipher_setkey ( struct cipher_algorithm *cipher, argument
179 return cipher->setkey ( ctx, key, keylen );
182 static inline void cipher_setiv ( struct cipher_algorithm *cipher, argument
184 cipher->setiv ( ctx, iv );
187 static inline void cipher_encrypt ( struct cipher_algorithm *cipher, argument
190 cipher->encrypt ( ctx, src, dst, len );
192 #define cipher_encrypt( cipher, ctx, src, dst, len ) do { \
193 assert ( ( (len) & ( (cipher)->blocksize - 1 ) ) == 0 ); \
194 cipher_encrypt ( (cipher), (ct
197 cipher_decrypt( struct cipher_algorithm *cipher, void *ctx, const void *src, void *dst, size_t len ) argument
[all...]
H A Dtls.h47 /** Change cipher content type */
75 /* TLS cipher specifications */
111 /** A TLS cipher suite */
115 /** Bulk encryption cipher algorithm */
116 struct cipher_algorithm *cipher; member in struct:tls_cipher_suite
125 /** A TLS cipher specification */
133 /** Bulk encryption cipher context */
135 /** Next bulk encryption cipher context (TX only) */
211 /** Current TX cipher specification */
213 /** Next TX cipher specificatio
[all...]
/vbox/src/VBox/Devices/PC/ipxe/src/net/
H A Dtls.c452 size_t iv_size = tx_cipherspec->suite->cipher->blocksize;
480 if ( ( rc = cipher_setkey ( tx_cipherspec->suite->cipher,
492 if ( ( rc = cipher_setkey ( rx_cipherspec->suite->cipher,
504 cipher_setiv ( tx_cipherspec->suite->cipher,
511 cipher_setiv ( rx_cipherspec->suite->cipher,
529 /** Null cipher suite */
532 .cipher = &cipher_null,
536 /** Supported cipher suites, in order of preference */
542 .cipher = &aes_cbc_algorithm,
549 .cipher
622 struct cipher_algorithm *cipher = suite->cipher; local
1739 struct cipher_algorithm *cipher = cipherspec->suite->cipher; local
1936 struct cipher_algorithm *cipher = cipherspec->suite->cipher; local
[all...]

Completed in 36 milliseconds