Home
last modified time | relevance | path

Searched refs:padsize (Results 1 – 6 of 6) sorted by relevance

/minix3/crypto/external/bsd/heimdal/dist/lib/gssapi/krb5/
H A Dtest_cfx.c61 uint16_t padsize; in test_range() local
84 &rsize, &cksumsize, &padsize); in test_range()
103 uint16_t padsize; in test_special() local
126 &rsize, &cksumsize, &padsize); in test_special()
H A Dcfx.c71 size_t padsize; in _gsskrb5cfx_wrap_length_cfx() local
77 ret = krb5_crypto_getblocksize(context, crypto, &padsize); in _gsskrb5cfx_wrap_length_cfx()
79 ret = krb5_crypto_getpadsize(context, crypto, &padsize); in _gsskrb5cfx_wrap_length_cfx()
84 if (padsize > 1) { in _gsskrb5cfx_wrap_length_cfx()
86 *padlength = padsize - (input_length % padsize); in _gsskrb5cfx_wrap_length_cfx()
/minix3/crypto/external/bsd/heimdal/dist/lib/krb5/
H A Dcrypto.c832 block_sz = (sz + et->padsize - 1) &~ (et->padsize - 1); /* pad */ in encrypt_internal_derived()
897 block_sz = (sz + et->padsize - 1) &~ (et->padsize - 1); /* pad */ in encrypt_internal()
1007 if (((len - checksum_sz) % et->padsize) != 0) { in decrypt_internal_derived()
1077 if ((len % et->padsize) != 0) { in decrypt_internal()
1146 if ((len % et->padsize) != 0) { in decrypt_internal_special()
1253 block_sz = (sz + et->padsize - 1) &~ (et->padsize - 1); /* pad */ in krb5_encrypt_iov_ivec()
1452 if ((len % et->padsize) != 0) { in krb5_decrypt_iov_ivec()
1709 if (crypto->et->padsize > 1) in krb5_crypto_length()
1710 *len = crypto->et->padsize; in krb5_crypto_length()
2176 size_t *padsize) in krb5_crypto_getpadsize() argument
[all …]
H A Dcrypto.h109 size_t padsize; member
/minix3/crypto/external/bsd/heimdal/dist/lib/hx509/
H A Dcrypto.c2568 size_t padsize, bsize; in hx509_crypto_encrypt() local
2598 padsize = 0; in hx509_crypto_encrypt()
2605 padsize = bsize - (length % bsize); in hx509_crypto_encrypt()
2608 (*ciphertext)->length = length + padsize; in hx509_crypto_encrypt()
2609 (*ciphertext)->data = malloc(length + padsize); in hx509_crypto_encrypt()
2616 if (padsize) { in hx509_crypto_encrypt()
2620 for (i = 0; i < padsize; i++) in hx509_crypto_encrypt()
2621 *p++ = padsize; in hx509_crypto_encrypt()
2626 length + padsize); in hx509_crypto_encrypt()
2698 int padsize; in hx509_crypto_decrypt() local
[all …]
/minix3/crypto/external/bsd/heimdal/dist/
H A DChangeLog.200354 * lib/krb5/crypto.c (decrypt_internal_derived): move up padsize to
59 * lib/krb5/crypto.c: require cipher-text to be padded to padsize
1755 into blocksize and padsize, padsize is the minimum padding
1757 (enctype_*): add padsize
1758 (encrypt_internal): use padsize
1759 (encrypt_internal_derived): use padsize
1760 (wrapped_length): use padsize
1761 (wrapped_length_dervied): use padsize