RSA/DSA/ECDSA/EdDSA signature verification. More...
#include "ssh/ssh.h"
#include "ssh/ssh_algorithms.h"
#include "ssh/ssh_key_import.h"
#include "ssh/ssh_cert_import.h"
#include "ssh/ssh_sign_verify.h"
#include "ssh/ssh_sign_misc.h"
#include "ssh/ssh_misc.h"
#include "debug.h"
Go to the source code of this file.
Macros | |
#define | TRACE_LEVEL SSH_TRACE_LEVEL |
Functions | |
error_t | sshVerifySignature (SshConnection *connection, const SshString *publicKeyAlgo, const SshBinaryString *publicKeyBlob, const SshBinaryString *sessionId, const SshBinaryString *message, const SshBinaryString *signature) |
Signature verification. More... | |
error_t | sshVerifyRsaSignature (const SshString *publicKeyAlgo, const SshBinaryString *publicKeyBlob, const SshBinaryString *sessionId, const SshBinaryString *message, const SshBinaryString *signatureBlob) |
RSA signature verification. More... | |
error_t | sshVerifyDsaSignature (const SshString *publicKeyAlgo, const SshBinaryString *publicKeyBlob, const SshBinaryString *sessionId, const SshBinaryString *message, const SshBinaryString *signatureBlob) |
DSA signature verification. More... | |
error_t | sshVerifyEcdsaSignature (const SshString *publicKeyAlgo, const SshBinaryString *publicKeyBlob, const SshBinaryString *sessionId, const SshBinaryString *message, const SshBinaryString *signatureBlob) |
ECDSA signature verification. More... | |
error_t | sshVerifyEd25519Signature (const SshString *publicKeyAlgo, const SshBinaryString *publicKeyBlob, const SshBinaryString *sessionId, const SshBinaryString *message, const SshBinaryString *signatureBlob) |
Ed25519 signature verification. More... | |
error_t | sshVerifyEd448Signature (const SshString *publicKeyAlgo, const SshBinaryString *publicKeyBlob, const SshBinaryString *sessionId, const SshBinaryString *message, const SshBinaryString *signatureBlob) |
Ed448 signature verification. More... | |
Detailed Description
RSA/DSA/ECDSA/EdDSA signature verification.
License
SPDX-License-Identifier: GPL-2.0-or-later
Copyright (C) 2019-2024 Oryx Embedded SARL. All rights reserved.
This file is part of CycloneSSH Open.
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
- Version
- 2.4.4
Definition in file ssh_sign_verify.c.
Macro Definition Documentation
◆ TRACE_LEVEL
#define TRACE_LEVEL SSH_TRACE_LEVEL |
Definition at line 32 of file ssh_sign_verify.c.
Function Documentation
◆ sshVerifyDsaSignature()
error_t sshVerifyDsaSignature | ( | const SshString * | publicKeyAlgo, |
const SshBinaryString * | publicKeyBlob, | ||
const SshBinaryString * | sessionId, | ||
const SshBinaryString * | message, | ||
const SshBinaryString * | signatureBlob | ||
) |
DSA signature verification.
- Parameters
-
[in] publicKeyAlgo Public key algorithm [in] publicKeyBlob Signer's public key [in] sessionId Session identifier (optional parameter) [in] message Message whose signature is to be verified [in] signatureBlob Signature to be verified
- Returns
- Error code
Definition at line 364 of file ssh_sign_verify.c.
◆ sshVerifyEcdsaSignature()
error_t sshVerifyEcdsaSignature | ( | const SshString * | publicKeyAlgo, |
const SshBinaryString * | publicKeyBlob, | ||
const SshBinaryString * | sessionId, | ||
const SshBinaryString * | message, | ||
const SshBinaryString * | signatureBlob | ||
) |
ECDSA signature verification.
- Parameters
-
[in] publicKeyAlgo Public key algorithm [in] publicKeyBlob Signer's public key [in] sessionId Session identifier (optional parameter) [in] message Message whose signature is to be verified [in] signatureBlob Signature to be verified
- Returns
- Error code
Definition at line 493 of file ssh_sign_verify.c.
◆ sshVerifyEd25519Signature()
error_t sshVerifyEd25519Signature | ( | const SshString * | publicKeyAlgo, |
const SshBinaryString * | publicKeyBlob, | ||
const SshBinaryString * | sessionId, | ||
const SshBinaryString * | message, | ||
const SshBinaryString * | signatureBlob | ||
) |
Ed25519 signature verification.
- Parameters
-
[in] publicKeyAlgo Public key algorithm [in] publicKeyBlob Signer's public key [in] sessionId Session identifier (optional parameter) [in] message Message whose signature is to be verified [in] signatureBlob Signature to be verified
- Returns
- Error code
Definition at line 672 of file ssh_sign_verify.c.
◆ sshVerifyEd448Signature()
error_t sshVerifyEd448Signature | ( | const SshString * | publicKeyAlgo, |
const SshBinaryString * | publicKeyBlob, | ||
const SshBinaryString * | sessionId, | ||
const SshBinaryString * | message, | ||
const SshBinaryString * | signatureBlob | ||
) |
Ed448 signature verification.
- Parameters
-
[in] publicKeyAlgo Public key algorithm [in] publicKeyBlob Signer's public key [in] sessionId Session identifier (optional parameter) [in] message Message whose signature is to be verified [in] signatureBlob Signature to be verified
- Returns
- Error code
Definition at line 775 of file ssh_sign_verify.c.
◆ sshVerifyRsaSignature()
error_t sshVerifyRsaSignature | ( | const SshString * | publicKeyAlgo, |
const SshBinaryString * | publicKeyBlob, | ||
const SshBinaryString * | sessionId, | ||
const SshBinaryString * | message, | ||
const SshBinaryString * | signatureBlob | ||
) |
RSA signature verification.
- Parameters
-
[in] publicKeyAlgo Public key algorithm [in] publicKeyBlob Signer's public key [in] sessionId Session identifier (optional parameter) [in] message Message whose signature is to be verified [in] signatureBlob Signature to be verified
- Returns
- Error code
Definition at line 218 of file ssh_sign_verify.c.
◆ sshVerifySignature()
error_t sshVerifySignature | ( | SshConnection * | connection, |
const SshString * | publicKeyAlgo, | ||
const SshBinaryString * | publicKeyBlob, | ||
const SshBinaryString * | sessionId, | ||
const SshBinaryString * | message, | ||
const SshBinaryString * | signature | ||
) |
Signature verification.
- Parameters
-
[in] connection Pointer to the SSH connection [in] publicKeyAlgo Public key algorithm [in] publicKeyBlob Signer's public key [in] sessionId Session identifier (optional parameter) [in] message Message whose signature is to be verified [in] signature Signature to be verified
- Returns
- Error code
Definition at line 59 of file ssh_sign_verify.c.