Lines Matching refs:key_len
338 size_t key_len; in php_sha256_crypt_r() local
372 key_len = strlen(key); in php_sha256_crypt_r()
375 char *tmp = (char *) alloca(key_len + __alignof__(uint32_t)); in php_sha256_crypt_r()
376 …_key = memcpy(tmp + __alignof__(uint32_t) - (uintptr_t)tmp % __alignof__(uint32_t), key, key_len); in php_sha256_crypt_r()
390 sha256_process_bytes(key, key_len, &ctx); in php_sha256_crypt_r()
403 sha256_process_bytes(key, key_len, &alt_ctx); in php_sha256_crypt_r()
409 sha256_process_bytes(key, key_len, &alt_ctx); in php_sha256_crypt_r()
416 for (cnt = key_len; cnt > 32; cnt -= 32) { in php_sha256_crypt_r()
423 for (cnt = key_len; cnt > 0; cnt >>= 1) { in php_sha256_crypt_r()
427 sha256_process_bytes(key, key_len, &ctx); in php_sha256_crypt_r()
438 for (cnt = 0; cnt < key_len; ++cnt) { in php_sha256_crypt_r()
439 sha256_process_bytes(key, key_len, &alt_ctx); in php_sha256_crypt_r()
446 cp = p_bytes = alloca(key_len); in php_sha256_crypt_r()
447 for (cnt = key_len; cnt >= 32; cnt -= 32) { in php_sha256_crypt_r()
478 sha256_process_bytes(p_bytes, key_len, &ctx); in php_sha256_crypt_r()
490 sha256_process_bytes(p_bytes, key_len, &ctx); in php_sha256_crypt_r()
497 sha256_process_bytes(p_bytes, key_len, &ctx); in php_sha256_crypt_r()
563 ZEND_SECURE_ZERO(p_bytes, key_len); in php_sha256_crypt_r()
569 ZEND_SECURE_ZERO(copied_key, key_len); in php_sha256_crypt_r()