size_t num_data)
{
krb5_error_code ret;
- size_t header_len, trailer_len, padding_len;
+ unsigned int header_len, trailer_len, padding_len;
krb5_crypto_iov *iov;
krb5_crypto_iov *stream;
size_t i, j;
{
krb5_crypto_iov iov[4];
krb5_error_code ret;
- size_t header_len = 0;
- size_t padding_len = 0;
- size_t trailer_len = 0;
+ unsigned int header_len = 0;
+ unsigned int padding_len = 0;
+ unsigned int trailer_len = 0;
ret = aead->crypto_length(aead, enc, hash, KRB5_CRYPTO_TYPE_HEADER,
&header_len);
const struct krb5_hash_provider *hash,
size_t inputlen, size_t *length)
{
- size_t header_len = 0;
- size_t padding_len = 0;
- size_t trailer_len = 0;
+ unsigned int header_len = 0;
+ unsigned int padding_len = 0;
+ unsigned int trailer_len = 0;
aead->crypto_length(aead, enc, hash, KRB5_CRYPTO_TYPE_HEADER, &header_len);
krb5int_c_padding_length(aead, enc, hash, inputlen, &padding_len);
const struct krb5_enc_provider *enc,
const struct krb5_hash_provider *hash,
krb5_cryptotype type,
- size_t *length)
+ unsigned int *length)
{
switch (type) {
case KRB5_CRYPTO_TYPE_HEADER:
krb5_error_code ret = 0;
size_t i;
const struct krb5_keytypes *ktp = NULL;
- size_t data_length = 0, pad_length;
+ unsigned int data_length = 0, pad_length;
krb5_crypto_iov *padding = NULL;
/*
* report variable header lengths
*/
- for (i = 0; i < krb5_enctypes_length; i++) {
+ for (i = 0; i < (size_t)krb5_enctypes_length; i++) {
if (krb5_enctypes_list[i].etype == enctype) {
ktp = &krb5_enctypes_list[i];
break;
const struct krb5_enc_provider *enc,
const struct krb5_hash_provider *hash,
krb5_cryptotype type,
- size_t *length)
+ unsigned int *length)
{
switch (type) {
case KRB5_CRYPTO_TYPE_HEADER:
krb5_crypto_iov *header, *trailer, *padding;
krb5_keyblock ke, ki;
size_t i;
- size_t blocksize = 0;
- size_t plainlen = 0;
- size_t hmacsize = 0;
- size_t padsize = 0;
+ unsigned int blocksize = 0;
+ unsigned int plainlen = 0;
+ unsigned int hmacsize = 0;
+ unsigned int padsize = 0;
unsigned char *cksum = NULL;
ke.contents = ki.contents = NULL;
krb5_crypto_iov *header, *trailer;
krb5_keyblock ke, ki;
size_t i;
- size_t blocksize = 0; /* careful, this is enc block size not confounder len */
- size_t cipherlen = 0;
- size_t hmacsize = 0;
+ unsigned int blocksize = 0; /* careful, this is enc block size not confounder len */
+ unsigned int cipherlen = 0;
+ unsigned int hmacsize = 0;
unsigned char *cksum = NULL;
ke.contents = ki.contents = NULL;
const struct krb5_enc_provider *enc,
const struct krb5_hash_provider *hash,
krb5_cryptotype type,
- size_t *length)
+ unsigned int *length)
{
switch (type) {
case KRB5_CRYPTO_TYPE_HEADER: