public static function ParagonIE_Sodium_Crypto32::box_keypair_from_secretkey_and_publickey in Automatic Updates 7
Same name and namespace in other branches
- 8 vendor/paragonie/sodium_compat/src/Crypto32.php \ParagonIE_Sodium_Crypto32::box_keypair_from_secretkey_and_publickey()
@internal Do not use this directly. Use ParagonIE_Sodium_Compat.
Parameters
string $sKey:
string $pKey:
Return value
string
Throws
TypeError
3 calls to ParagonIE_Sodium_Crypto32::box_keypair_from_secretkey_and_publickey()
- ParagonIE_Sodium_Compat::crypto_box_keypair_from_secretkey_and_publickey in vendor/
paragonie/ sodium_compat/ src/ Compat.php - Combine two keys into a keypair for use in library methods that expect a keypair. This doesn't necessarily have to be the same person's keys.
- ParagonIE_Sodium_Crypto32::box_seal in vendor/
paragonie/ sodium_compat/ src/ Crypto32.php - X25519-XSalsa20-Poly1305 with one ephemeral X25519 keypair.
- ParagonIE_Sodium_Crypto32::box_seal_open in vendor/
paragonie/ sodium_compat/ src/ Crypto32.php - Opens a message encrypted via box_seal().
File
- vendor/
paragonie/ sodium_compat/ src/ Crypto32.php, line 591
Class
- ParagonIE_Sodium_Crypto32
- Class ParagonIE_Sodium_Crypto
Code
public static function box_keypair_from_secretkey_and_publickey($sKey, $pKey) {
return ParagonIE_Sodium_Core32_Util::substr($sKey, 0, 32) . ParagonIE_Sodium_Core32_Util::substr($pKey, 0, 32);
}