Searched refs:modlen (Results 1 - 5 of 5) sorted by relevance

/freebsd-11-stable/contrib/wpa/src/tls/
H A Dpkcs1.c18 static int pkcs1_generate_encryption_block(u8 block_type, size_t modlen, argument
32 * k = length of modulus in octets (modlen)
35 if (modlen < 12 || modlen > *outlen || inlen > modlen - 11) {
37 "lengths (modlen=%lu outlen=%lu inlen=%lu)",
38 __func__, (unsigned long) modlen,
47 ps_len = modlen - inlen - 3;
85 size_t modlen; local
87 modlen
[all...]
H A Drsa.c270 size_t modlen; local
329 modlen = crypto_rsa_get_modulus_len(key);
330 if (modlen > *outlen) {
331 *outlen = modlen;
335 if (bignum_get_unsigned_bin_len(tmp) > modlen)
338 *outlen = modlen;
339 os_memset(out, 0, modlen);
342 (modlen - bignum_get_unsigned_bin_len(tmp)), NULL) < 0)
/freebsd-11-stable/crypto/openssh/
H A Dssh-rsa.c169 size_t len, diff, modlen, dlen; local
198 modlen = RSA_size(key->rsa);
199 if (len > modlen) {
202 } else if (len < modlen) {
203 diff = modlen - len;
205 if ((sigblob = realloc(sigblob, modlen)) == NULL) {
212 len = modlen;
/freebsd-11-stable/contrib/wpa/src/crypto/
H A Dcrypto_libtomcrypt.c490 static int pkcs1_generate_encryption_block(u8 block_type, size_t modlen, argument
504 * k = length of modulus in octets (modlen)
507 if (modlen < 12 || modlen > *outlen || inlen > modlen - 11) {
509 "lengths (modlen=%lu outlen=%lu inlen=%lu)",
510 __func__, (unsigned long) modlen,
519 ps_len = modlen - inlen - 3;
557 unsigned long len, modlen; local
560 modlen
[all...]
/freebsd-11-stable/sys/dev/digi/
H A Ddigi.c776 int modlen, res; local
783 modlen = strlen(sc->module);
784 modfile = malloc(modlen + 6, M_TEMP, M_WAITOK);
785 snprintf(modfile, modlen + 6, "digi_%s", sc->module);
792 sym = malloc(modlen + 10, M_TEMP, M_WAITOK);
793 snprintf(sym, modlen + 10, "digi_mod_%s", sc->module);

Completed in 111 milliseconds