Searched refs:padsize (Results 1 – 8 of 8) sorted by relevance
/freebsd/sys/cddl/boot/zfs/ |
H A D | sha256.c | 201 unsigned padsize = size & 63; in SHA256() local 205 for (i = 0; i < size - padsize; i += 64) in SHA256() 209 for (k = 0; k < padsize; k++) in SHA256() 212 for (pad[padsize++] = 0x80; (padsize & 63) != 56; padsize++) in SHA256() 213 pad[padsize] = 0; in SHA256() 216 pad[padsize++] = (size << 3) >> (56 - 8 * i); in SHA256() 218 for (i = 0; i < padsize; i += 64) in SHA256() 257 unsigned padsize = size & 127; in SHA512() local 261 for (i = 0; i < size - padsize; i += 128) in SHA512() 265 for (k = 0; k < padsize; k++) in SHA512() [all …]
|
/freebsd/crypto/heimdal/lib/gssapi/krb5/ |
H A D | test_cfx.c | 59 uint16_t padsize; in test_range() local 82 &rsize, &cksumsize, &padsize); in test_range() 101 uint16_t padsize; in test_special() local 124 &rsize, &cksumsize, &padsize); in test_special()
|
H A D | cfx.c | 69 size_t padsize; in _gsskrb5cfx_wrap_length_cfx() local 75 ret = krb5_crypto_getblocksize(context, crypto, &padsize); in _gsskrb5cfx_wrap_length_cfx() 77 ret = krb5_crypto_getpadsize(context, crypto, &padsize); in _gsskrb5cfx_wrap_length_cfx() 82 if (padsize > 1) { in _gsskrb5cfx_wrap_length_cfx() 84 *padlength = padsize - (input_length % padsize); in _gsskrb5cfx_wrap_length_cfx()
|
/freebsd/crypto/openssl/crypto/srp/ |
H A D | srp_vfy.c | 48 size_t size, padsize; in t_fromb64() local 54 padsize = 4 - (size & 3); in t_fromb64() 55 padsize &= 3; in t_fromb64() 58 if (size > INT_MAX || ((size + padsize) / 4) * 3 > alen) in t_fromb64() 75 if (padsize == 3) { in t_fromb64() 86 if (padsize != 0 in t_fromb64() 87 && EVP_DecodeUpdate(ctx, a, &outl, pad, padsize) < 0) { in t_fromb64() 100 if (padsize != 0) { in t_fromb64() 101 if ((int)padsize >= outl) { in t_fromb64() 119 memmove(a, a + padsize, outl - padsize); in t_fromb64() [all …]
|
/freebsd/crypto/heimdal/lib/krb5/ |
H A D | crypto.c | 830 block_sz = (sz + et->padsize - 1) &~ (et->padsize - 1); /* pad */ in encrypt_internal_derived() 895 block_sz = (sz + et->padsize - 1) &~ (et->padsize - 1); /* pad */ in encrypt_internal() 1005 if (((len - checksum_sz) % et->padsize) != 0) { in decrypt_internal_derived() 1075 if ((len % et->padsize) != 0) { in decrypt_internal() 1144 if ((len % et->padsize) != 0) { in decrypt_internal_special() 1251 block_sz = (sz + et->padsize - 1) &~ (et->padsize - 1); /* pad */ in krb5_encrypt_iov_ivec() 1450 if ((len % et->padsize) != 0) { in krb5_decrypt_iov_ivec() 1707 if (crypto->et->padsize > 1) in krb5_crypto_length() 1708 *len = crypto->et->padsize; in krb5_crypto_length() 2177 size_t *padsize) in krb5_crypto_getpadsize() argument [all …]
|
H A D | crypto.h | 107 size_t padsize; member
|
/freebsd/crypto/heimdal/lib/hx509/ |
H A D | crypto.c | 2594 size_t padsize, bsize; in hx509_crypto_encrypt() local 2625 padsize = 0; in hx509_crypto_encrypt() 2632 padsize = bsize - (length % bsize); in hx509_crypto_encrypt() 2635 (*ciphertext)->length = length + padsize; in hx509_crypto_encrypt() 2636 (*ciphertext)->data = malloc(length + padsize); in hx509_crypto_encrypt() 2643 if (padsize) { in hx509_crypto_encrypt() 2647 for (i = 0; i < padsize; i++) in hx509_crypto_encrypt() 2648 *p++ = padsize; in hx509_crypto_encrypt() 2653 length + padsize); in hx509_crypto_encrypt() 2728 int padsize; in hx509_crypto_decrypt() local [all …]
|
/freebsd/crypto/heimdal/ |
H A D | ChangeLog.2003 | 54 * 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
|