Searched refs:cipherCtx (Results 1 - 25 of 25) sorted by relevance

/macosx-10.9.5/Security-55471.14.18/libsecurity_ssl/Security/
H A DsymCipher.c123 SymCipherContext *cipherCtx)
125 check(cipherCtx!=NULL);
127 SymCipherContext ctx = *cipherCtx;
131 * cipherCtx->symCipher.keyAlg
132 * cipherCtx->encrypting
136 * Resulting ccmode --> cipherCtx
163 *cipherCtx = ctx;
173 SymCipherContext cipherCtx)
176 ASSERT(cipherCtx != NULL);
177 ASSERT(cipherCtx
118 CCSymmInit( const SSLSymmetricCipherParams *params, int encrypting, uint8_t *key, uint8_t* iv, SymCipherContext *cipherCtx) argument
169 CCSymmEncryptDecrypt( const uint8_t *src, uint8_t *dest, size_t len, SymCipherContext cipherCtx) argument
202 CCSymmFinish( SymCipherContext cipherCtx) argument
258 CCSymmInit( const SSLSymmetricCipherParams *params, int encrypting, uint8_t *key, uint8_t* iv, SymCipherContext *cipherCtx) argument
302 CCSymmEncryptDecrypt( const uint8_t *src, uint8_t *dest, size_t len, SymCipherContext cipherCtx) argument
332 CCSymmAEADSetIV( const uint8_t *iv, size_t len, SymCipherContext cipherCtx) argument
357 CCSymmAddADD( const uint8_t *src, size_t len, SymCipherContext cipherCtx) argument
381 CCSymmAEADEncrypt( const uint8_t *src, uint8_t *dest, size_t len, SymCipherContext cipherCtx) argument
407 CCSymmAEADDecrypt( const uint8_t *src, uint8_t *dest, size_t len, SymCipherContext cipherCtx) argument
434 CCSymmAEADDone( uint8_t *mac, size_t *macLen, SymCipherContext cipherCtx) argument
463 CCSymmFinish( SymCipherContext cipherCtx) argument
[all...]
H A Dtls1RecordCallouts.c66 ctx->readCipher.cipherCtx)) != 0)
131 CipherContext *cipherCtx) // macRef, macSecret valid on entry
137 check(cipherCtx);
138 check(cipherCtx->macRef != NULL);
139 hmac = cipherCtx->macRef->hmac;
142 if(cipherCtx->macCtx.hmacCtx != NULL) {
143 hmac->free(cipherCtx->macCtx.hmacCtx);
144 cipherCtx->macCtx.hmacCtx = NULL;
146 serr = hmac->alloc(hmac, cipherCtx->macSecret,
147 cipherCtx
130 tls1InitMac( CipherContext *cipherCtx) argument
154 tls1FreeMac( CipherContext *cipherCtx) argument
178 tls1ComputeMac( uint8_t type, SSLBuffer data, SSLBuffer mac, CipherContext *cipherCtx, sslUint64 seqNo, struct SSLRecordInternalContext *ctx) argument
[all...]
H A DsymCipher.h69 SymCipherContext *cipherCtx);
73 SymCipherContext cipherCtx);
77 SymCipherContext cipherCtx);
82 SymCipherContext cipherCtx);
84 SymCipherContext cipherCtx);
88 SymCipherContext cipherCtx);
H A DsslNullCipher.c43 SymCipherContext *cipherCtx)
60 SymCipherContext cipherCtx)
38 NullInit( const SSLSymmetricCipherParams *cipher, int encrypting, uint8_t *key, uint8_t *iv, SymCipherContext *cipherCtx) argument
59 NullFinish( SymCipherContext cipherCtx) argument
H A DcryptType.h54 SymCipherContext cipherCtx; member in struct:CipherContext
H A Dssl3RecordCallouts.c215 payload.data, payload.length, ctx->writeCipher.cipherCtx)) != 0)
270 payload->length, ctx->readCipher.cipherCtx);
313 CipherContext *cipherCtx) // macRef, macSecret valid on entry
320 check(cipherCtx->macRef != NULL);
321 hash = cipherCtx->macRef->hash;
324 hashCtx = &cipherCtx->macCtx.hashCtx;
336 CipherContext *cipherCtx)
340 check(cipherCtx != NULL);
342 if(cipherCtx->macRef == NULL) {
345 hashCtx = &cipherCtx
312 ssl3InitMac( CipherContext *cipherCtx) argument
335 ssl3FreeMac( CipherContext *cipherCtx) argument
354 ssl3ComputeMac( uint8_t type, SSLBuffer data, SSLBuffer mac, CipherContext *cipherCtx, sslUint64 seqNo, struct SSLRecordInternalContext *ctx) argument
[all...]
H A Dtls_record.h62 CipherContext *cipherCtx // macRef, macSecret valid on entry
68 CipherContext *cipherCtx);
75 CipherContext *cipherCtx, // assumes macCtx, macRef
H A DSSLRecordInternal.c69 if ((err = cipher->symCipher->finish(cipher->cipherCtx)) != 0) {
525 &clientPending->cipherCtx)) != 0)
532 &serverPending->cipherCtx)) != 0)
/macosx-10.9.5/Security-55471.14.18/libsecurity_ssl/lib/
H A DsymCipher.c123 SymCipherContext *cipherCtx)
125 check(cipherCtx!=NULL);
127 SymCipherContext ctx = *cipherCtx;
131 * cipherCtx->symCipher.keyAlg
132 * cipherCtx->encrypting
136 * Resulting ccmode --> cipherCtx
163 *cipherCtx = ctx;
173 SymCipherContext cipherCtx)
176 ASSERT(cipherCtx != NULL);
177 ASSERT(cipherCtx
118 CCSymmInit( const SSLSymmetricCipherParams *params, int encrypting, uint8_t *key, uint8_t* iv, SymCipherContext *cipherCtx) argument
169 CCSymmEncryptDecrypt( const uint8_t *src, uint8_t *dest, size_t len, SymCipherContext cipherCtx) argument
202 CCSymmFinish( SymCipherContext cipherCtx) argument
258 CCSymmInit( const SSLSymmetricCipherParams *params, int encrypting, uint8_t *key, uint8_t* iv, SymCipherContext *cipherCtx) argument
302 CCSymmEncryptDecrypt( const uint8_t *src, uint8_t *dest, size_t len, SymCipherContext cipherCtx) argument
332 CCSymmAEADSetIV( const uint8_t *iv, size_t len, SymCipherContext cipherCtx) argument
357 CCSymmAddADD( const uint8_t *src, size_t len, SymCipherContext cipherCtx) argument
381 CCSymmAEADEncrypt( const uint8_t *src, uint8_t *dest, size_t len, SymCipherContext cipherCtx) argument
407 CCSymmAEADDecrypt( const uint8_t *src, uint8_t *dest, size_t len, SymCipherContext cipherCtx) argument
434 CCSymmAEADDone( uint8_t *mac, size_t *macLen, SymCipherContext cipherCtx) argument
463 CCSymmFinish( SymCipherContext cipherCtx) argument
[all...]
H A Dtls1RecordCallouts.c66 ctx->readCipher.cipherCtx)) != 0)
131 CipherContext *cipherCtx) // macRef, macSecret valid on entry
137 check(cipherCtx);
138 check(cipherCtx->macRef != NULL);
139 hmac = cipherCtx->macRef->hmac;
142 if(cipherCtx->macCtx.hmacCtx != NULL) {
143 hmac->free(cipherCtx->macCtx.hmacCtx);
144 cipherCtx->macCtx.hmacCtx = NULL;
146 serr = hmac->alloc(hmac, cipherCtx->macSecret,
147 cipherCtx
130 tls1InitMac( CipherContext *cipherCtx) argument
154 tls1FreeMac( CipherContext *cipherCtx) argument
178 tls1ComputeMac( uint8_t type, SSLBuffer data, SSLBuffer mac, CipherContext *cipherCtx, sslUint64 seqNo, struct SSLRecordInternalContext *ctx) argument
[all...]
H A DsymCipher.h69 SymCipherContext *cipherCtx);
73 SymCipherContext cipherCtx);
77 SymCipherContext cipherCtx);
82 SymCipherContext cipherCtx);
84 SymCipherContext cipherCtx);
88 SymCipherContext cipherCtx);
H A DsslNullCipher.c43 SymCipherContext *cipherCtx)
60 SymCipherContext cipherCtx)
38 NullInit( const SSLSymmetricCipherParams *cipher, int encrypting, uint8_t *key, uint8_t *iv, SymCipherContext *cipherCtx) argument
59 NullFinish( SymCipherContext cipherCtx) argument
H A DcryptType.h54 SymCipherContext cipherCtx; member in struct:CipherContext
H A Dssl3RecordCallouts.c215 payload.data, payload.length, ctx->writeCipher.cipherCtx)) != 0)
270 payload->length, ctx->readCipher.cipherCtx);
313 CipherContext *cipherCtx) // macRef, macSecret valid on entry
320 check(cipherCtx->macRef != NULL);
321 hash = cipherCtx->macRef->hash;
324 hashCtx = &cipherCtx->macCtx.hashCtx;
336 CipherContext *cipherCtx)
340 check(cipherCtx != NULL);
342 if(cipherCtx->macRef == NULL) {
345 hashCtx = &cipherCtx
312 ssl3InitMac( CipherContext *cipherCtx) argument
335 ssl3FreeMac( CipherContext *cipherCtx) argument
354 ssl3ComputeMac( uint8_t type, SSLBuffer data, SSLBuffer mac, CipherContext *cipherCtx, sslUint64 seqNo, struct SSLRecordInternalContext *ctx) argument
[all...]
H A Dtls_record.h62 CipherContext *cipherCtx // macRef, macSecret valid on entry
68 CipherContext *cipherCtx);
75 CipherContext *cipherCtx, // assumes macCtx, macRef
H A DSSLRecordInternal.c69 if ((err = cipher->symCipher->finish(cipher->cipherCtx)) != 0) {
525 &clientPending->cipherCtx)) != 0)
532 &serverPending->cipherCtx)) != 0)
/macosx-10.9.5/Security-55471.14.18/libsecurity_ssl/security_ssl/
H A DsymCipher.c123 SymCipherContext *cipherCtx)
125 check(cipherCtx!=NULL);
127 SymCipherContext ctx = *cipherCtx;
131 * cipherCtx->symCipher.keyAlg
132 * cipherCtx->encrypting
136 * Resulting ccmode --> cipherCtx
163 *cipherCtx = ctx;
173 SymCipherContext cipherCtx)
176 ASSERT(cipherCtx != NULL);
177 ASSERT(cipherCtx
118 CCSymmInit( const SSLSymmetricCipherParams *params, int encrypting, uint8_t *key, uint8_t* iv, SymCipherContext *cipherCtx) argument
169 CCSymmEncryptDecrypt( const uint8_t *src, uint8_t *dest, size_t len, SymCipherContext cipherCtx) argument
202 CCSymmFinish( SymCipherContext cipherCtx) argument
258 CCSymmInit( const SSLSymmetricCipherParams *params, int encrypting, uint8_t *key, uint8_t* iv, SymCipherContext *cipherCtx) argument
302 CCSymmEncryptDecrypt( const uint8_t *src, uint8_t *dest, size_t len, SymCipherContext cipherCtx) argument
332 CCSymmAEADSetIV( const uint8_t *iv, size_t len, SymCipherContext cipherCtx) argument
357 CCSymmAddADD( const uint8_t *src, size_t len, SymCipherContext cipherCtx) argument
381 CCSymmAEADEncrypt( const uint8_t *src, uint8_t *dest, size_t len, SymCipherContext cipherCtx) argument
407 CCSymmAEADDecrypt( const uint8_t *src, uint8_t *dest, size_t len, SymCipherContext cipherCtx) argument
434 CCSymmAEADDone( uint8_t *mac, size_t *macLen, SymCipherContext cipherCtx) argument
463 CCSymmFinish( SymCipherContext cipherCtx) argument
[all...]
H A Dtls1RecordCallouts.c66 ctx->readCipher.cipherCtx)) != 0)
131 CipherContext *cipherCtx) // macRef, macSecret valid on entry
137 check(cipherCtx);
138 check(cipherCtx->macRef != NULL);
139 hmac = cipherCtx->macRef->hmac;
142 if(cipherCtx->macCtx.hmacCtx != NULL) {
143 hmac->free(cipherCtx->macCtx.hmacCtx);
144 cipherCtx->macCtx.hmacCtx = NULL;
146 serr = hmac->alloc(hmac, cipherCtx->macSecret,
147 cipherCtx
130 tls1InitMac( CipherContext *cipherCtx) argument
154 tls1FreeMac( CipherContext *cipherCtx) argument
178 tls1ComputeMac( uint8_t type, SSLBuffer data, SSLBuffer mac, CipherContext *cipherCtx, sslUint64 seqNo, struct SSLRecordInternalContext *ctx) argument
[all...]
H A DsymCipher.h69 SymCipherContext *cipherCtx);
73 SymCipherContext cipherCtx);
77 SymCipherContext cipherCtx);
82 SymCipherContext cipherCtx);
84 SymCipherContext cipherCtx);
88 SymCipherContext cipherCtx);
H A DsslNullCipher.c43 SymCipherContext *cipherCtx)
60 SymCipherContext cipherCtx)
38 NullInit( const SSLSymmetricCipherParams *cipher, int encrypting, uint8_t *key, uint8_t *iv, SymCipherContext *cipherCtx) argument
59 NullFinish( SymCipherContext cipherCtx) argument
H A DcryptType.h54 SymCipherContext cipherCtx; member in struct:CipherContext
H A Dssl3RecordCallouts.c215 payload.data, payload.length, ctx->writeCipher.cipherCtx)) != 0)
270 payload->length, ctx->readCipher.cipherCtx);
313 CipherContext *cipherCtx) // macRef, macSecret valid on entry
320 check(cipherCtx->macRef != NULL);
321 hash = cipherCtx->macRef->hash;
324 hashCtx = &cipherCtx->macCtx.hashCtx;
336 CipherContext *cipherCtx)
340 check(cipherCtx != NULL);
342 if(cipherCtx->macRef == NULL) {
345 hashCtx = &cipherCtx
312 ssl3InitMac( CipherContext *cipherCtx) argument
335 ssl3FreeMac( CipherContext *cipherCtx) argument
354 ssl3ComputeMac( uint8_t type, SSLBuffer data, SSLBuffer mac, CipherContext *cipherCtx, sslUint64 seqNo, struct SSLRecordInternalContext *ctx) argument
[all...]
H A Dtls_record.h62 CipherContext *cipherCtx // macRef, macSecret valid on entry
68 CipherContext *cipherCtx);
75 CipherContext *cipherCtx, // assumes macCtx, macRef
H A DSSLRecordInternal.c69 if ((err = cipher->symCipher->finish(cipher->cipherCtx)) != 0) {
525 &clientPending->cipherCtx)) != 0)
532 &serverPending->cipherCtx)) != 0)
/macosx-10.9.5/apache-786.1/httpd/srclib/apr-util/crypto/
H A Dapr_crypto_openssl.c67 EVP_CIPHER_CTX cipherCtx; member in struct:apr_crypto_block_t
137 EVP_CIPHER_CTX_cleanup(&ctx->cipherCtx);
494 EVP_CIPHER_CTX_init(&block->cipherCtx);
522 if (!EVP_EncryptInit_ex(&block->cipherCtx, key->cipher, config->engine,
525 if (!EVP_EncryptInit_ex(&block->cipherCtx, key->cipher, config->engine, (unsigned char *) key->key, (unsigned char *) usedIv)) {
531 if (!EVP_CIPHER_CTX_set_padding(&block->cipherCtx, key->doPad)) {
585 if (!EVP_EncryptUpdate(&ctx->cipherCtx, (*out), &outl, in, inlen)) {
587 if (!EVP_EncryptUpdate(&ctx->cipherCtx, (*out), &outl,
621 if (EVP_EncryptFinal_ex(&ctx->cipherCtx, out, &len) == 0) {
665 EVP_CIPHER_CTX_init(&block->cipherCtx);
[all...]

Completed in 215 milliseconds