Home
last modified time | relevance | path

Searched refs:base32Len (Results 1 – 3 of 3) sorted by relevance

/dports/security/pam_google_authenticator/google-authenticator-libpam-1.09/src/
H A Dpam_google_authenticator.c694 const int base32Len = strcspn(buf, "\n"); in get_shared_secret() local
697 if (base32Len > 100000) { in get_shared_secret()
701 *secretLen = (base32Len*5 + 7)/8; in get_shared_secret()
702 uint8_t *secret = malloc(base32Len + 1); in get_shared_secret()
707 memcpy(secret, buf, base32Len); in get_shared_secret()
708 secret[base32Len] = '\000'; in get_shared_secret()
709 if ((*secretLen = base32_decode(secret, secret, base32Len)) < 1) { in get_shared_secret()
713 explicit_bzero(secret, base32Len); in get_shared_secret()
717 memset(secret + *secretLen, 0, base32Len + 1 - *secretLen); in get_shared_secret()
/dports/sysutils/nix/nix-2.3.10/src/libutil/
H A Dhash.hh68 size_t base32Len() const in base32Len() function
H A Dhash.cc79 size_t len = hash.base32Len(); in printHash32()
173 else if (!isSRI && size == base32Len()) { in Hash()