/*ARGSUSED*/ void krb5_raw_encrypt_length(const struct krb5_enc_provider *enc, const struct krb5_hash_provider *hash, size_t inputlen, size_t *length) { size_t blocksize; blocksize = enc->block_size; *length = krb5_roundup(inputlen, blocksize); }
void krb5_old_encrypt_length(const struct krb5_enc_provider *enc, const struct krb5_hash_provider *hash, size_t inputlen, size_t *length) { size_t blocksize, hashsize; blocksize = enc->block_size; hashsize = hash->hashsize; *length = krb5_roundup(blocksize+hashsize+inputlen, blocksize); }