Home
last modified time | relevance | path

Searched refs:auth_data_len (Results 1 – 4 of 4) sorted by relevance

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