You are here

public static function ParagonIE_Sodium_Core_Util::intToChr in Automatic Updates 8

Same name and namespace in other branches
  1. 7 vendor/paragonie/sodium_compat/src/Core/Util.php \ParagonIE_Sodium_Core_Util::intToChr()

Cache-timing-safe variant of ord()

@internal You should not use this directly from another application

Parameters

int $int:

Return value

string

Throws

TypeError

25 calls to ParagonIE_Sodium_Core_Util::intToChr()
ParagonIE_Sodium_Compat::crypto_sign_ed25519_sk_to_curve25519 in vendor/paragonie/sodium_compat/src/Compat.php
Convert an Ed25519 secret key to a Curve25519 secret key
ParagonIE_Sodium_Compat::increment in vendor/paragonie/sodium_compat/src/Compat.php
Increase a string (little endian)
ParagonIE_Sodium_Compat::pad in vendor/paragonie/sodium_compat/src/Compat.php
ParagonIE_Sodium_Core32_BLAKE2b::contextToString in vendor/paragonie/sodium_compat/src/Core32/BLAKE2b.php
@internal You should not use this directly from another application
ParagonIE_Sodium_Core32_Curve25519::ge_p3_tobytes in vendor/paragonie/sodium_compat/src/Core32/Curve25519.php
@internal You should not use this directly from another application

... See full list

File

vendor/paragonie/sodium_compat/src/Core/Util.php, line 387

Class

ParagonIE_Sodium_Core_Util
Class ParagonIE_Sodium_Core_Util

Code

public static function intToChr($int) {
  return pack('C', $int);
}