TianoCore EDK2 master
Loading...
Searching...
No Matches
CryptRsaPssNull.c File Reference
#include "InternalCryptLib.h"

Go to the source code of this file.

Functions

BOOLEAN EFIAPI RsaPssVerify (IN VOID *RsaContext, IN CONST UINT8 *Message, IN UINTN MsgSize, IN CONST UINT8 *Signature, IN UINTN SigSize, IN UINT16 DigestLen, IN UINT16 SaltLen)
 

Detailed Description

RSA-PSS Asymmetric Cipher Wrapper Implementation over MbedTLS.

This file does not provide real capabilities for following APIs in RSA handling: 1) RsaPssVerify

Copyright (c) 2023, Intel Corporation. All rights reserved.
SPDX-License-Identifier: BSD-2-Clause-Patent

Definition in file CryptRsaPssNull.c.

Function Documentation

◆ RsaPssVerify()

BOOLEAN EFIAPI RsaPssVerify ( IN VOID *  RsaContext,
IN CONST UINT8 *  Message,
IN UINTN  MsgSize,
IN CONST UINT8 *  Signature,
IN UINTN  SigSize,
IN UINT16  DigestLen,
IN UINT16  SaltLen 
)

Verifies the RSA signature with RSASSA-PSS signature scheme defined in RFC 8017. Implementation determines salt length automatically from the signature encoding. Mask generation function is the same as the message digest algorithm. Salt length should be equal to digest length.

Parameters
[in]RsaContextPointer to RSA context for signature verification.
[in]MessagePointer to octet message to be verified.
[in]MsgSizeSize of the message in bytes.
[in]SignaturePointer to RSASSA-PSS signature to be verified.
[in]SigSizeSize of signature in bytes.
[in]DigestLenLength of digest for RSA operation.
[in]SaltLenSalt length for PSS encoding.
Return values
TRUEValid signature encoded in RSASSA-PSS.
FALSEInvalid signature or invalid RSA context.

Definition at line 34 of file CryptRsaPssNull.c.