mirror of
https://github.com/nextcloud/server.git
synced 2026-05-28 04:32:30 -04:00
Promote ext-sodium from recommended to required so RFC 9421 Ed25519 signing/verifying can rely on libsodium unconditionally. Add the matching openssl + sodium psalm stubs. Signed-off-by: Micke Nordin <kano@sunet.se>
13 lines
398 B
PHP
13 lines
398 B
PHP
<?php
|
|
|
|
/**
|
|
* SPDX-FileCopyrightText: 2026 Nextcloud GmbH and Nextcloud contributors
|
|
* SPDX-License-Identifier: AGPL-3.0-or-later
|
|
*/
|
|
|
|
// ext-sodium Ed25519 size constants for psalm.
|
|
const SODIUM_CRYPTO_SIGN_BYTES = 64;
|
|
const SODIUM_CRYPTO_SIGN_SEEDBYTES = 32;
|
|
const SODIUM_CRYPTO_SIGN_PUBLICKEYBYTES = 32;
|
|
const SODIUM_CRYPTO_SIGN_SECRETKEYBYTES = 64;
|
|
const SODIUM_CRYPTO_SIGN_KEYPAIRBYTES = 96;
|