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

/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/snoop/
H A Dsnoop_ipsec.c110 uint_t ahlen, auth_data_len; local
138 auth_data_len = ahlen - sizeof (ah_t);
140 data = auth_data + auth_data_len;
169 buff = malloc(auth_data_len * 2 + 1);
173 for (i = 0; i < auth_data_len; i++)
178 auth_data_len), "ICV = %s",
/illumos-gate/usr/src/common/crypto/modes/
H A Dccm.c711 encode_adata_len(ulong_t auth_data_len, uint8_t *encoded, size_t *encoded_len) argument
720 if (auth_data_len < ((1ULL<<16) - (1ULL<<8))) {
723 encoded[0] = (auth_data_len & 0xff00) >> 8;
724 encoded[1] = auth_data_len & 0xff;
726 } else if ((auth_data_len >= ((1ULL<<16) - (1ULL<<8))) &&
727 (auth_data_len < (1ULL << 31))) {
734 *lencoded_ptr = htonl(auth_data_len);
736 encoded[2] = (auth_data_len & 0xff000000) >> 24;
737 encoded[3] = (auth_data_len & 0xff0000) >> 16;
738 encoded[4] = (auth_data_len
770 ccm_init(ccm_ctx_t *ctx, unsigned char *nonce, size_t nonce_len, unsigned char *auth_data, size_t auth_data_len, size_t block_size, int (*encrypt_block)(const void *, const uint8_t *, uint8_t *), void (*xor_block)(uint8_t *, uint8_t *)) argument
[all...]
H A Dgcm.c565 unsigned char *auth_data, size_t auth_data_len, size_t block_size,
587 remainder = auth_data_len;
564 gcm_init(gcm_ctx_t *ctx, unsigned char *iv, size_t iv_len, unsigned char *auth_data, size_t auth_data_len, size_t block_size, int (*encrypt_block)(const void *, const uint8_t *, uint8_t *), void (*copy_block)(uint8_t *, uint8_t *), void (*xor_block)(uint8_t *, uint8_t *)) argument
/illumos-gate/usr/src/uts/common/crypto/io/
H A Ddprov.c4332 size_t nonce_len, auth_data_len, total_param_len; local
4341 auth_data_len = STRUCT_FGET(params, ulAuthDataSize);
4345 sizeof (CK_AES_CCM_PARAMS) + nonce_len + auth_data_len;
4353 aes_ccm_params->ulAuthDataSize = auth_data_len;
4369 aes_ccm_params->authData, auth_data_len) != 0) {
4418 size_t nonce_len, auth_data_len, total_param_len; local
4427 auth_data_len = STRUCT_FGET(params, ulAADLen);
4431 sizeof (CK_AES_GCM_PARAMS) + nonce_len + auth_data_len;
4439 aes_gcm_params->ulAADLen = auth_data_len;
4452 aes_gcm_params->pAAD, auth_data_len) !
4493 size_t auth_data_len, total_param_len; local
[all...]

Completed in 90 milliseconds