VirtualBox

Changeset 101197 in vbox for trunk/src


Ignore:
Timestamp:
Sep 20, 2023 1:47:19 PM (15 months ago)
Author:
vboxsync
Message:

Runtime/{openssl-sha256,openssl-sha512}.cpp: Updated the
RTSha224Final(), RTSha256Final(), RTSha384Final(), and RTSha512Final()
function definitions to line up with their corresponding declarations by
using the matching manifest constant, e.g. RTSha512Final() ->
RTSHA512_HASH_SIZE.

Location:
trunk/src/VBox/Runtime/common/checksum
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/common/checksum/openssl-sha256.cpp

    r98103 r101197  
    9393
    9494
    95 RTDECL(void) RTSha256Final(PRTSHA256CONTEXT pCtx, uint8_t pabDigest[32])
     95RTDECL(void) RTSha256Final(PRTSHA256CONTEXT pCtx, uint8_t pabDigest[RTSHA256_HASH_SIZE])
    9696{
    9797    SHA256_Final((unsigned char *)&pabDigest[0], &pCtx->Private);
     
    143143
    144144
    145 RTDECL(void) RTSha224Final(PRTSHA224CONTEXT pCtx, uint8_t pabDigest[32])
     145RTDECL(void) RTSha224Final(PRTSHA224CONTEXT pCtx, uint8_t pabDigest[RTSHA224_HASH_SIZE])
    146146{
    147147    SHA224_Final((unsigned char *)&pabDigest[0], &pCtx->Private);
  • trunk/src/VBox/Runtime/common/checksum/openssl-sha512.cpp

    r98103 r101197  
    9393
    9494
    95 RTDECL(void) RTSha512Final(PRTSHA512CONTEXT pCtx, uint8_t pabDigest[32])
     95RTDECL(void) RTSha512Final(PRTSHA512CONTEXT pCtx, uint8_t pabDigest[RTSHA512_HASH_SIZE])
    9696{
    9797    SHA512_Final((unsigned char *)&pabDigest[0], &pCtx->Private);
     
    144144
    145145
    146 RTDECL(void) RTSha384Final(PRTSHA384CONTEXT pCtx, uint8_t pabDigest[32])
     146RTDECL(void) RTSha384Final(PRTSHA384CONTEXT pCtx, uint8_t pabDigest[RTSHA384_HASH_SIZE])
    147147{
    148148    SHA384_Final((unsigned char *)&pabDigest[0], &pCtx->Private);
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette