VirtualBox

Changeset 74295 in vbox for trunk/src


Ignore:
Timestamp:
Sep 16, 2018 3:36:08 PM (6 years ago)
Author:
vboxsync
Message:

IPRT/crypto: Wrapped SSL, alleged RC4, and RSA key generation. Added methods for quering someRSA key components. Exposed big numbers, x509 and asn1 APIs as stable. bugref:9246

Location:
trunk/src/VBox/Runtime
Files:
3 added
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/Makefile.kmk

    r74293 r74295  
    373373        common/crypto/key-file.cpp \
    374374        common/crypto/key-openssl.cpp \
     375        common/crypto/key-create-rsa-openssl.cpp \
     376        common/crypto/rc4-openssl.cpp \
    375377        common/crypto/rsa-asn1-decoder.cpp \
    376378        common/crypto/rsa-core.cpp \
     
    393395        common/crypto/spc-init.cpp \
    394396        common/crypto/spc-sanity.cpp \
     397        common/crypto/ssl-openssl.cpp \
    395398        common/crypto/x509-asn1-decoder.cpp \
    396399        common/crypto/x509-certpaths.cpp \
  • trunk/src/VBox/Runtime/VBox/VBoxRTImp.def

    r74220 r74295  
    22;; @file
    33; VirtualBox Runtime DLL - Stable Interface Definition file.
     4;
    45
    56;
    6 ; Copyright (C) 2010-2017 Oracle Corporation
     7; Copyright (C) 2010-2018 Oracle Corporation
    78;
    89; This file is part of VirtualBox Open Source Edition (OSE), as
     
    2728EXPORTS
    2829    ; data
    29     g_aRTUniFlagsRanges     DATA
    30     g_aRTUniLowerRanges     DATA
    31     g_aRTUniUpperRanges     DATA
    32     g_fRTAlignmentChecks    DATA
    33     g_pSUPGlobalInfoPage    DATA
    34     g_pStdErr               DATA
    35     g_pStdIn                DATA
    36     g_pStdOut               DATA
    37     g_pszRTAssertExpr       DATA
    38     g_pszRTAssertFile       DATA
    39     g_pszRTAssertFunction   DATA
    40     g_szRTAssertMsg1        DATA
    41     g_szRTAssertMsg2        DATA
    42     g_u32RTAssertLine       DATA
     30    g_aRTUniFlagsRanges             DATA
     31    g_aRTUniLowerRanges             DATA
     32    g_aRTUniUpperRanges             DATA
     33    g_fRTAlignmentChecks            DATA
     34    g_pSUPGlobalInfoPage            DATA
     35    g_pStdErr                       DATA
     36    g_pStdIn                        DATA
     37    g_pStdOut                       DATA
     38    g_pszRTAssertExpr               DATA
     39    g_pszRTAssertFile               DATA
     40    g_pszRTAssertFunction           DATA
     41    g_szRTAssertMsg1                DATA
     42    g_szRTAssertMsg2                DATA
     43    g_u32RTAssertLine               DATA
     44    g_RTAsn1BitString_Vtable        DATA
     45    g_RTAsn1Boolean_Vtable          DATA
     46    g_RTAsn1Core_Vtable             DATA
     47    g_RTAsn1DefaultAllocator        DATA
     48    g_RTAsn1EFenceAllocator         DATA
     49    g_RTAsn1Integer_Vtable          DATA
     50    g_RTAsn1Null_Vtable             DATA
     51    g_RTAsn1ObjId_Vtable            DATA
     52    g_RTAsn1OctetString_Vtable      DATA
     53    g_RTAsn1SaferAllocator          DATA
     54    g_RTAsn1String_Vtable           DATA
     55    g_RTAsn1Time_Vtable             DATA
     56    g_aRTCrX509CertificateMarkers   DATA
     57    g_cRTCrX509CertificateMarkers   DATA
     58
    4359
    4460    ; code
     
    5268    ASMAtomicXchgU64        ; not-some-systems...
    5369
     70    RTAsn1BitString_AreContentBitsValid
     71    RTAsn1BitString_CheckSanity
     72    RTAsn1BitString_Clone
     73    RTAsn1BitString_Compare
     74    RTAsn1BitString_DecodeAsn1
     75    RTAsn1BitString_DecodeAsn1Ex
     76    RTAsn1BitString_Delete
     77    RTAsn1BitString_Enum
     78    RTAsn1BitString_GetAsUInt64
     79    RTAsn1BitString_Init
     80    RTAsn1BitString_RefreshContent
     81    RTAsn1BmpString_CheckSanity
     82    RTAsn1BmpString_Clone
     83    RTAsn1BmpString_Compare
     84    RTAsn1BmpString_DecodeAsn1
     85    RTAsn1BmpString_Delete
     86    RTAsn1BmpString_Enum
     87    RTAsn1BmpString_Init
     88    RTAsn1Boolean_CheckSanity
     89    RTAsn1Boolean_Clone
     90    RTAsn1Boolean_Compare
     91    RTAsn1Boolean_DecodeAsn1
     92    RTAsn1Boolean_Delete
     93    RTAsn1Boolean_Enum
     94    RTAsn1Boolean_Init
     95    RTAsn1Boolean_InitDefault
     96    RTAsn1Boolean_Set
     97    RTAsn1ContentAllocZ
     98    RTAsn1ContentDup
     99    RTAsn1ContentFree
     100    RTAsn1ContentReallocZ
     101    RTAsn1ContextTagN_Clone
     102    RTAsn1ContextTagN_Init
     103    RTAsn1Core_ChangeTag
     104    RTAsn1Core_CheckSanity
     105    RTAsn1Core_Clone
     106    RTAsn1Core_CloneContent
     107    RTAsn1Core_CloneNoContent
     108    RTAsn1Core_Compare
     109    RTAsn1Core_CompareEx
     110    RTAsn1Core_DecodeAsn1
     111    RTAsn1Core_Delete
     112    RTAsn1Core_Enum
     113    RTAsn1Core_Init
     114    RTAsn1Core_InitDefault
     115    RTAsn1Core_InitEx
     116    RTAsn1Core_ResetImplict
     117    RTAsn1Core_SetTagAndFlags
     118    RTAsn1CursorCheckEnd
     119    RTAsn1CursorGetBitString
     120    RTAsn1CursorGetBitStringEx
     121    RTAsn1CursorGetBmpString
     122    RTAsn1CursorGetBoolean
     123    RTAsn1CursorGetContextTagNCursor
     124    RTAsn1CursorGetCore
     125    RTAsn1CursorGetDynType
     126    RTAsn1CursorGetIa5String
     127    RTAsn1CursorGetInteger
     128    RTAsn1CursorGetNull
     129    RTAsn1CursorGetObjId
     130    RTAsn1CursorGetOctetString
     131    RTAsn1CursorGetSequenceCursor
     132    RTAsn1CursorGetSetCursor
     133    RTAsn1CursorGetString
     134    RTAsn1CursorGetTime
     135    RTAsn1CursorGetUtf8String
     136    RTAsn1CursorInitAllocation
     137    RTAsn1CursorInitArrayAllocation
     138    RTAsn1CursorInitPrimary
     139    RTAsn1CursorInitSub
     140    RTAsn1CursorInitSubFromCore
     141    RTAsn1CursorIsEnd
     142    RTAsn1CursorIsNextEx
     143    RTAsn1CursorMatchTagClassFlagsEx
     144    RTAsn1CursorPeek
     145    RTAsn1CursorReadHdr
     146    RTAsn1CursorSetInfo
     147    RTAsn1CursorSetInfoV
     148    RTAsn1Dummy_InitEx
     149    RTAsn1Dump
     150    RTAsn1DynType_CheckSanity
     151    RTAsn1DynType_Clone
     152    RTAsn1DynType_Compare
     153    RTAsn1DynType_DecodeAsn1
     154    RTAsn1DynType_Delete
     155    RTAsn1DynType_Enum
     156    RTAsn1DynType_Init
     157    RTAsn1EncodePrepare
     158    RTAsn1EncodeRecalcHdrSize
     159    RTAsn1EncodeToBuffer
     160    RTAsn1EncodeWrite
     161    RTAsn1EncodeWriteHeader
     162    RTAsn1GeneralString_CheckSanity
     163    RTAsn1GeneralString_Clone
     164    RTAsn1GeneralString_Compare
     165    RTAsn1GeneralString_DecodeAsn1
     166    RTAsn1GeneralString_Delete
     167    RTAsn1GeneralString_Enum
     168    RTAsn1GeneralString_Init
     169    RTAsn1GeneralizedTime_CheckSanity
     170    RTAsn1GeneralizedTime_Clone
     171    RTAsn1GeneralizedTime_Compare
     172    RTAsn1GeneralizedTime_DecodeAsn1
     173    RTAsn1GeneralizedTime_Delete
     174    RTAsn1GeneralizedTime_Enum
     175    RTAsn1GeneralizedTime_Init
     176    RTAsn1GraphicString_CheckSanity
     177    RTAsn1GraphicString_Clone
     178    RTAsn1GraphicString_Compare
     179    RTAsn1GraphicString_DecodeAsn1
     180    RTAsn1GraphicString_Delete
     181    RTAsn1GraphicString_Enum
     182    RTAsn1GraphicString_Init
     183    RTAsn1Ia5String_CheckSanity
     184    RTAsn1Ia5String_Clone
     185    RTAsn1Ia5String_Compare
     186    RTAsn1Ia5String_DecodeAsn1
     187    RTAsn1Ia5String_Delete
     188    RTAsn1Ia5String_Enum
     189    RTAsn1Ia5String_Init
     190    RTAsn1Integer_CheckSanity
     191    RTAsn1Integer_Clone
     192    RTAsn1Integer_Compare
     193    RTAsn1Integer_DecodeAsn1
     194    RTAsn1Integer_Delete
     195    RTAsn1Integer_Enum
     196    RTAsn1Integer_FromBigNum
     197    RTAsn1Integer_Init
     198    RTAsn1Integer_InitDefault
     199    RTAsn1Integer_InitU64
     200    RTAsn1Integer_ToBigNum
     201    RTAsn1Integer_ToString
     202    RTAsn1Integer_UnsignedCompare
     203    RTAsn1Integer_UnsignedCompareWithU32
     204    RTAsn1Integer_UnsignedCompareWithU64
     205    RTAsn1Integer_UnsignedLastBit
     206    RTAsn1MemAllocZ
     207    RTAsn1MemDup
     208    RTAsn1MemFree
     209    RTAsn1MemFreeArray
     210    RTAsn1MemInitAllocation
     211    RTAsn1MemInitArrayAllocation
     212    RTAsn1MemResizeArray
     213    RTAsn1Null_CheckSanity
     214    RTAsn1Null_Clone
     215    RTAsn1Null_Compare
     216    RTAsn1Null_DecodeAsn1
     217    RTAsn1Null_Delete
     218    RTAsn1Null_Enum
     219    RTAsn1Null_Init
     220    RTAsn1NumericString_CheckSanity
     221    RTAsn1NumericString_Clone
     222    RTAsn1NumericString_Compare
     223    RTAsn1NumericString_DecodeAsn1
     224    RTAsn1NumericString_Delete
     225    RTAsn1NumericString_Enum
     226    RTAsn1NumericString_Init
     227    RTAsn1ObjIdCountComponents
     228    RTAsn1ObjIdGetComponentsAsUInt32
     229    RTAsn1ObjIdGetLastComponentsAsUInt32
     230    RTAsn1ObjId_CheckSanity
     231    RTAsn1ObjId_Clone
     232    RTAsn1ObjId_Compare
     233    RTAsn1ObjId_CompareWithString
     234    RTAsn1ObjId_DecodeAsn1
     235    RTAsn1ObjId_Delete
     236    RTAsn1ObjId_Enum
     237    RTAsn1ObjId_Init
     238    RTAsn1ObjId_InitFromString
     239    RTAsn1ObjId_StartsWith
     240    RTAsn1OctetString_AreContentBytesValid
     241    RTAsn1OctetString_CheckSanity
     242    RTAsn1OctetString_Clone
     243    RTAsn1OctetString_Compare
     244    RTAsn1OctetString_DecodeAsn1
     245    RTAsn1OctetString_Delete
     246    RTAsn1OctetString_Enum
     247    RTAsn1OctetString_Init
     248    RTAsn1OctetString_RefreshContent
     249    RTAsn1PrintableString_CheckSanity
     250    RTAsn1PrintableString_Clone
     251    RTAsn1PrintableString_Compare
     252    RTAsn1PrintableString_DecodeAsn1
     253    RTAsn1PrintableString_Delete
     254    RTAsn1PrintableString_Enum
     255    RTAsn1PrintableString_Init
     256    RTAsn1QueryObjIdName
     257    RTAsn1SeqOfBitStrings_CheckSanity
     258    RTAsn1SeqOfBitStrings_Clone
     259    RTAsn1SeqOfBitStrings_Compare
     260    RTAsn1SeqOfBitStrings_DecodeAsn1
     261    RTAsn1SeqOfBitStrings_Delete
     262    RTAsn1SeqOfBitStrings_Enum
     263    RTAsn1SeqOfBitStrings_Erase
     264    RTAsn1SeqOfBitStrings_Init
     265    RTAsn1SeqOfBitStrings_InsertEx
     266    RTAsn1SeqOfBooleans_CheckSanity
     267    RTAsn1SeqOfBooleans_Clone
     268    RTAsn1SeqOfBooleans_Compare
     269    RTAsn1SeqOfBooleans_DecodeAsn1
     270    RTAsn1SeqOfBooleans_Delete
     271    RTAsn1SeqOfBooleans_Enum
     272    RTAsn1SeqOfBooleans_Erase
     273    RTAsn1SeqOfBooleans_Init
     274    RTAsn1SeqOfBooleans_InsertEx
     275    RTAsn1SeqOfCore_Clone
     276    RTAsn1SeqOfCore_Init
     277    RTAsn1SeqOfCores_CheckSanity
     278    RTAsn1SeqOfCores_Clone
     279    RTAsn1SeqOfCores_Compare
     280    RTAsn1SeqOfCores_DecodeAsn1
     281    RTAsn1SeqOfCores_Delete
     282    RTAsn1SeqOfCores_Enum
     283    RTAsn1SeqOfCores_Erase
     284    RTAsn1SeqOfCores_Init
     285    RTAsn1SeqOfCores_InsertEx
     286    RTAsn1SeqOfIntegers_CheckSanity
     287    RTAsn1SeqOfIntegers_Clone
     288    RTAsn1SeqOfIntegers_Compare
     289    RTAsn1SeqOfIntegers_DecodeAsn1
     290    RTAsn1SeqOfIntegers_Delete
     291    RTAsn1SeqOfIntegers_Enum
     292    RTAsn1SeqOfIntegers_Erase
     293    RTAsn1SeqOfIntegers_Init
     294    RTAsn1SeqOfIntegers_InsertEx
     295    RTAsn1SeqOfObjIds_CheckSanity
     296    RTAsn1SeqOfObjIds_Clone
     297    RTAsn1SeqOfObjIds_Compare
     298    RTAsn1SeqOfObjIds_DecodeAsn1
     299    RTAsn1SeqOfObjIds_Delete
     300    RTAsn1SeqOfObjIds_Enum
     301    RTAsn1SeqOfObjIds_Erase
     302    RTAsn1SeqOfObjIds_Init
     303    RTAsn1SeqOfObjIds_InsertEx
     304    RTAsn1SeqOfOctetStrings_CheckSanity
     305    RTAsn1SeqOfOctetStrings_Clone
     306    RTAsn1SeqOfOctetStrings_Compare
     307    RTAsn1SeqOfOctetStrings_DecodeAsn1
     308    RTAsn1SeqOfOctetStrings_Delete
     309    RTAsn1SeqOfOctetStrings_Enum
     310    RTAsn1SeqOfOctetStrings_Erase
     311    RTAsn1SeqOfOctetStrings_Init
     312    RTAsn1SeqOfOctetStrings_InsertEx
     313    RTAsn1SeqOfStrings_CheckSanity
     314    RTAsn1SeqOfStrings_Clone
     315    RTAsn1SeqOfStrings_Compare
     316    RTAsn1SeqOfStrings_DecodeAsn1
     317    RTAsn1SeqOfStrings_Delete
     318    RTAsn1SeqOfStrings_Enum
     319    RTAsn1SeqOfStrings_Erase
     320    RTAsn1SeqOfStrings_Init
     321    RTAsn1SeqOfStrings_InsertEx
     322    RTAsn1SeqOfTimes_CheckSanity
     323    RTAsn1SeqOfTimes_Clone
     324    RTAsn1SeqOfTimes_Compare
     325    RTAsn1SeqOfTimes_DecodeAsn1
     326    RTAsn1SeqOfTimes_Delete
     327    RTAsn1SeqOfTimes_Enum
     328    RTAsn1SeqOfTimes_Erase
     329    RTAsn1SeqOfTimes_Init
     330    RTAsn1SeqOfTimes_InsertEx
     331    RTAsn1SequenceCore_Clone
     332    RTAsn1SequenceCore_Init
     333    RTAsn1SetCore_Clone
     334    RTAsn1SetCore_Init
     335    RTAsn1SetOfBitStrings_CheckSanity
     336    RTAsn1SetOfBitStrings_Clone
     337    RTAsn1SetOfBitStrings_Compare
     338    RTAsn1SetOfBitStrings_DecodeAsn1
     339    RTAsn1SetOfBitStrings_Delete
     340    RTAsn1SetOfBitStrings_Enum
     341    RTAsn1SetOfBitStrings_Erase
     342    RTAsn1SetOfBitStrings_Init
     343    RTAsn1SetOfBitStrings_InsertEx
     344    RTAsn1SetOfBooleans_CheckSanity
     345    RTAsn1SetOfBooleans_Clone
     346    RTAsn1SetOfBooleans_Compare
     347    RTAsn1SetOfBooleans_DecodeAsn1
     348    RTAsn1SetOfBooleans_Delete
     349    RTAsn1SetOfBooleans_Enum
     350    RTAsn1SetOfBooleans_Erase
     351    RTAsn1SetOfBooleans_Init
     352    RTAsn1SetOfBooleans_InsertEx
     353    RTAsn1SetOfCore_Clone
     354    RTAsn1SetOfCore_Init
     355    RTAsn1SetOfCores_CheckSanity
     356    RTAsn1SetOfCores_Clone
     357    RTAsn1SetOfCores_Compare
     358    RTAsn1SetOfCores_DecodeAsn1
     359    RTAsn1SetOfCores_Delete
     360    RTAsn1SetOfCores_Enum
     361    RTAsn1SetOfCores_Erase
     362    RTAsn1SetOfCores_Init
     363    RTAsn1SetOfCores_InsertEx
     364    RTAsn1SetOfIntegers_CheckSanity
     365    RTAsn1SetOfIntegers_Clone
     366    RTAsn1SetOfIntegers_Compare
     367    RTAsn1SetOfIntegers_DecodeAsn1
     368    RTAsn1SetOfIntegers_Delete
     369    RTAsn1SetOfIntegers_Enum
     370    RTAsn1SetOfIntegers_Erase
     371    RTAsn1SetOfIntegers_Init
     372    RTAsn1SetOfIntegers_InsertEx
     373    RTAsn1SetOfObjIdSeqs_CheckSanity
     374    RTAsn1SetOfObjIdSeqs_Clone
     375    RTAsn1SetOfObjIdSeqs_Compare
     376    RTAsn1SetOfObjIdSeqs_DecodeAsn1
     377    RTAsn1SetOfObjIdSeqs_Delete
     378    RTAsn1SetOfObjIdSeqs_Enum
     379    RTAsn1SetOfObjIdSeqs_Erase
     380    RTAsn1SetOfObjIdSeqs_Init
     381    RTAsn1SetOfObjIdSeqs_InsertEx
     382    RTAsn1SetOfObjIds_CheckSanity
     383    RTAsn1SetOfObjIds_Clone
     384    RTAsn1SetOfObjIds_Compare
     385    RTAsn1SetOfObjIds_DecodeAsn1
     386    RTAsn1SetOfObjIds_Delete
     387    RTAsn1SetOfObjIds_Enum
     388    RTAsn1SetOfObjIds_Erase
     389    RTAsn1SetOfObjIds_Init
     390    RTAsn1SetOfObjIds_InsertEx
     391    RTAsn1SetOfOctetStrings_CheckSanity
     392    RTAsn1SetOfOctetStrings_Clone
     393    RTAsn1SetOfOctetStrings_Compare
     394    RTAsn1SetOfOctetStrings_DecodeAsn1
     395    RTAsn1SetOfOctetStrings_Delete
     396    RTAsn1SetOfOctetStrings_Enum
     397    RTAsn1SetOfOctetStrings_Erase
     398    RTAsn1SetOfOctetStrings_Init
     399    RTAsn1SetOfOctetStrings_InsertEx
     400    RTAsn1SetOfStrings_CheckSanity
     401    RTAsn1SetOfStrings_Clone
     402    RTAsn1SetOfStrings_Compare
     403    RTAsn1SetOfStrings_DecodeAsn1
     404    RTAsn1SetOfStrings_Delete
     405    RTAsn1SetOfStrings_Enum
     406    RTAsn1SetOfStrings_Erase
     407    RTAsn1SetOfStrings_Init
     408    RTAsn1SetOfStrings_InsertEx
     409    RTAsn1SetOfTimes_CheckSanity
     410    RTAsn1SetOfTimes_Clone
     411    RTAsn1SetOfTimes_Compare
     412    RTAsn1SetOfTimes_DecodeAsn1
     413    RTAsn1SetOfTimes_Delete
     414    RTAsn1SetOfTimes_Enum
     415    RTAsn1SetOfTimes_Erase
     416    RTAsn1SetOfTimes_Init
     417    RTAsn1SetOfTimes_InsertEx
     418    RTAsn1String_CheckSanity
     419    RTAsn1String_Clone
     420    RTAsn1String_Compare
     421    RTAsn1String_CompareEx
     422    RTAsn1String_CompareValues
     423    RTAsn1String_CompareWithString
     424    RTAsn1String_DecodeAsn1
     425    RTAsn1String_Delete
     426    RTAsn1String_Enum
     427    RTAsn1String_Init
     428    RTAsn1String_InitEx
     429    RTAsn1String_InitWithValue
     430    RTAsn1String_QueryUtf8
     431    RTAsn1String_QueryUtf8Len
     432    RTAsn1String_RecodeAsUtf8
     433    RTAsn1T61String_CheckSanity
     434    RTAsn1T61String_Clone
     435    RTAsn1T61String_Compare
     436    RTAsn1T61String_DecodeAsn1
     437    RTAsn1T61String_Delete
     438    RTAsn1T61String_Enum
     439    RTAsn1T61String_Init
     440    RTAsn1Time_CheckSanity
     441    RTAsn1Time_Clone
     442    RTAsn1Time_Compare
     443    RTAsn1Time_CompareWithTimeSpec
     444    RTAsn1Time_DecodeAsn1
     445    RTAsn1Time_Delete
     446    RTAsn1Time_Enum
     447    RTAsn1Time_Init
     448    RTAsn1Time_InitEx
     449    RTAsn1UniversalString_CheckSanity
     450    RTAsn1UniversalString_Clone
     451    RTAsn1UniversalString_Compare
     452    RTAsn1UniversalString_DecodeAsn1
     453    RTAsn1UniversalString_Delete
     454    RTAsn1UniversalString_Enum
     455    RTAsn1UniversalString_Init
     456    RTAsn1UtcTime_CheckSanity
     457    RTAsn1UtcTime_Clone
     458    RTAsn1UtcTime_Compare
     459    RTAsn1UtcTime_DecodeAsn1
     460    RTAsn1UtcTime_Delete
     461    RTAsn1UtcTime_Enum
     462    RTAsn1UtcTime_Init
     463    RTAsn1Utf8String_CheckSanity
     464    RTAsn1Utf8String_Clone
     465    RTAsn1Utf8String_Compare
     466    RTAsn1Utf8String_DecodeAsn1
     467    RTAsn1Utf8String_Delete
     468    RTAsn1Utf8String_Enum
     469    RTAsn1Utf8String_Init
     470    RTAsn1VisibleString_CheckSanity
     471    RTAsn1VisibleString_Clone
     472    RTAsn1VisibleString_Compare
     473    RTAsn1VisibleString_DecodeAsn1
     474    RTAsn1VisibleString_Delete
     475    RTAsn1VisibleString_Enum
     476    RTAsn1VisibleString_Init
     477    RTAsn1VtCheckSanity
     478    RTAsn1VtClone
     479    RTAsn1VtCompare
     480    RTAsn1VtDeepEnum
     481    RTAsn1VtDelete
    54482    RTAssertAreQuiet
    55483    RTAssertMayPanic
     
    260688    RTBase64EncodedLength
    261689    RTBase64EncodedLengthEx
     690    RTBigNumAdd
     691    RTBigNumAssign
     692    RTBigNumBitWidth
     693    RTBigNumByteWidth
     694    RTBigNumClone
     695    RTBigNumCompare
     696    RTBigNumCompareWithS64
     697    RTBigNumCompareWithU64
     698    RTBigNumDestroy
     699    RTBigNumDivide
     700    RTBigNumDivideLong
     701    RTBigNumExponentiate
     702    RTBigNumInit
     703    RTBigNumInitZero
     704    RTBigNumModExp
     705    RTBigNumModulo
     706    RTBigNumMultiply
     707    RTBigNumNegate
     708    RTBigNumNegateThis
     709    RTBigNumShiftLeft
     710    RTBigNumShiftRight
     711    RTBigNumSubtract
     712    RTBigNumToBytesBigEndian
    262713    RTBldCfgCompiler
    263714    RTBldCfgRevision
     
    354805    RTCrKeyCreateFromPublicAlgorithmAndBits
    355806    RTCrKeyCreateFromSubjectPublicKeyInfo
     807    RTCrKeyCreateNewRsa
    356808    RTCrKeyGetBitCount
    357809    RTCrKeyGetType
     
    360812    RTCrKeyRelease
    361813    RTCrKeyRetain
     814    RTCrKeyQueryRsaModulus
     815    RTCrKeyQueryRsaPrivateExponent
     816    RTCrRc4
     817    RTCrRc4SetKey
    362818    RTCrPkixGetCiperOidFromSignatureAlgorithm
    363819    RTCrPkixPubKeySignDigest
     
    374830    RTCrPkixSignatureVerifyBitString
    375831    RTCrPkixSignatureVerifyOctetString
     832    RTCrSslCreate
     833    RTCrSslCreateSessionForNativeSocket
     834    RTCrSslLoadTrustedRootCerts
     835    RTCrSslRelease
     836    RTCrSslRetain
     837    RTCrSslSessionAccept
     838    RTCrSslSessionConnect
     839    RTCrSslSessionGetCertIssuerNameAsString
     840    RTCrSslSessionGetVersion
     841    RTCrSslSessionPending
     842    RTCrSslSessionRead
     843    RTCrSslSessionRelease
     844    RTCrSslSessionRetain
     845    RTCrSslSessionWrite
     846    RTCrSslSetCertificateFile
     847    RTCrSslSetNoPeerVerify
     848    RTCrSslSetPrivateKeyFile
     849    RTCrX509CertificatePolicies_CheckSanity
     850    RTCrX509CertificatePolicies_Clone
     851    RTCrX509CertificatePolicies_Compare
     852    RTCrX509CertificatePolicies_DecodeAsn1
     853    RTCrX509CertificatePolicies_Delete
     854    RTCrX509CertificatePolicies_Enum
     855    RTCrX509CertificatePolicies_Erase
     856    RTCrX509CertificatePolicies_Init
     857    RTCrX509CertificatePolicies_InsertEx
     858    RTCrX509Certificate_CheckSanity
     859    RTCrX509Certificate_Clone
     860    RTCrX509Certificate_Compare
     861    RTCrX509Certificate_DecodeAsn1
     862    RTCrX509Certificate_Delete
     863    RTCrX509Certificate_Enum
     864    RTCrX509Certificate_Init
     865    RTCrX509Certificate_IsSelfSigned
     866    RTCrX509Certificate_MatchIssuerAndSerialNumber
     867    RTCrX509Certificate_MatchSubjectOrAltSubjectByRfc5280
     868    RTCrX509Certificate_ReadFromBuffer
     869    RTCrX509Certificate_ReadFromFile
     870    RTCrX509Certificate_VerifySignature
     871    RTCrX509Certificate_VerifySignatureSelfSigned
     872    RTCrX509Certificates_CheckSanity
     873    RTCrX509Certificates_Clone
     874    RTCrX509Certificates_Compare
     875    RTCrX509Certificates_DecodeAsn1
     876    RTCrX509Certificates_Delete
     877    RTCrX509Certificates_Enum
     878    RTCrX509Certificates_Erase
     879    RTCrX509Certificates_FindByIssuerAndSerialNumber
     880    RTCrX509Certificates_Init
     881    RTCrX509Certificates_InsertEx
    376882    RTDbgAsCreate
    377883    RTDbgAsCreateF
  • trunk/src/VBox/Runtime/common/crypto/key.cpp

    r74052 r74295  
    357357}
    358358
     359
     360RTDECL(int) RTCrKeyQueryRsaModulus(RTCRKEY hKey, PRTBIGNUM pModulus)
     361{
     362    PRTCRKEYINT pThis = hKey;
     363    AssertPtrReturn(pThis, VERR_INVALID_HANDLE);
     364    AssertReturn(pThis->u32Magic == RTCRKEYINT_MAGIC, VERR_INVALID_HANDLE);
     365    AssertReturn(pThis->enmType == RTCRKEYTYPE_RSA_PRIVATE || pThis->enmType == RTCRKEYTYPE_RSA_PUBLIC, VERR_WRONG_TYPE);
     366    AssertPtrReturn(pModulus, VERR_INVALID_POINTER);
     367
     368    if (pThis->enmType == RTCRKEYTYPE_RSA_PRIVATE)
     369        return RTBigNumAssign(pModulus, &pThis->u.RsaPrivate.Modulus);
     370    return RTBigNumAssign(pModulus, &pThis->u.RsaPublic.Modulus);
     371}
     372
     373
     374RTDECL(int) RTCrKeyQueryRsaPrivateExponent(RTCRKEY hKey, PRTBIGNUM pPrivateExponent)
     375{
     376    PRTCRKEYINT pThis = hKey;
     377    AssertPtrReturn(pThis, VERR_INVALID_HANDLE);
     378    AssertReturn(pThis->u32Magic == RTCRKEYINT_MAGIC, VERR_INVALID_HANDLE);
     379    AssertReturn(pThis->enmType == RTCRKEYTYPE_RSA_PRIVATE, VERR_WRONG_TYPE);
     380    AssertPtrReturn(pPrivateExponent, VERR_INVALID_POINTER);
     381
     382    return RTBigNumAssign(pPrivateExponent, &pThis->u.RsaPrivate.PrivateExponent);
     383}
     384
  • trunk/src/VBox/Runtime/include/internal/magics.h

    r73665 r74295  
    3737/** Magic value for RTCRKEYINT::u32Magic. (Ronald Linn Rivest) */
    3838#define RTCRKEYINT_MAGIC                UINT32_C(0x19470506)
     39/** Magic value for RTCRSSLINT::u32Magic. (Robert Upshur Woodward) */
     40#define RTCRSSLINT_MAGIC                UINT32_C(0x19430326)
     41/** Magic value for RTCRSSLSESSIONINT::u32Magic. (Carl Berstein) */
     42#define RTCRSSLSESSIONINT_MAGIC         UINT32_C(0x19440214)
    3943/** Magic number for RTDBGMODINT::u32Magic. (Charles Lloyd) */
    4044#define RTDBGAS_MAGIC                   UINT32_C(0x19380315)
  • trunk/src/VBox/Runtime/tools/Makefile.kmk

    r74237 r74295  
    2929
    3030
    31 # RTIsoMaker - ISO image maker - build version.
    32 BLDPROGS += bldRTIsoMaker
    33 bldRTIsoMaker_TEMPLATE = VBoxAdvBldProg
    34 bldRTIsoMaker_SOURCES = \
    35         RTIsoMaker.cpp \
    36        ../common/misc/buildconfig.cpp
    37 bldRTIsoMaker_DEFS = \
    38         IPRT_BLDCFG_SCM_REV=$(if $(VBOX_SVN_REV_FALLBACK),$(VBOX_SVN_REV_FALLBACK),$(VBOX_SVN_REV)) \
    39         IPRT_BLDCFG_VERSION_STRING=\"$(VBOX_VERSION_STRING)\" \
    40         IPRT_BLDCFG_VERSION_MAJOR=$(VBOX_VERSION_MAJOR) \
    41         IPRT_BLDCFG_VERSION_MINOR=$(VBOX_VERSION_MINOR) \
    42         IPRT_BLDCFG_VERSION_BUILD=$(VBOX_VERSION_BUILD) \
    43         IPRT_BLDCFG_TARGET=\"$(KBUILD_TARGET)\" \
    44         IPRT_BLDCFG_TARGET_ARCH=\"$(KBUILD_TARGET_ARCH)\" \
    45         IPRT_BLDCFG_TYPE=\"$(KBUILD_TYPE)\"
    46 bldRTIsoMaker_INCS = ../include
     31if !defined(VBOX_ONLY_EXTPACKS) && !defined(VBOX_ONLY_DOCS)
     32 # RTIsoMaker - ISO image maker - build version.
     33 BLDPROGS += bldRTIsoMaker
     34 bldRTIsoMaker_TEMPLATE = VBoxAdvBldProg
     35 bldRTIsoMaker_SOURCES = \
     36        RTIsoMaker.cpp \
     37        ../common/misc/buildconfig.cpp
     38 bldRTIsoMaker_DEFS = \
     39        IPRT_BLDCFG_SCM_REV=$(if $(VBOX_SVN_REV_FALLBACK),$(VBOX_SVN_REV_FALLBACK),$(VBOX_SVN_REV)) \
     40        IPRT_BLDCFG_VERSION_STRING=\"$(VBOX_VERSION_STRING)\" \
     41        IPRT_BLDCFG_VERSION_MAJOR=$(VBOX_VERSION_MAJOR) \
     42        IPRT_BLDCFG_VERSION_MINOR=$(VBOX_VERSION_MINOR) \
     43        IPRT_BLDCFG_VERSION_BUILD=$(VBOX_VERSION_BUILD) \
     44        IPRT_BLDCFG_TARGET=\"$(KBUILD_TARGET)\" \
     45        IPRT_BLDCFG_TARGET_ARCH=\"$(KBUILD_TARGET_ARCH)\" \
     46        IPRT_BLDCFG_TYPE=\"$(KBUILD_TYPE)\"
     47 bldRTIsoMaker_INCS = ../include
     48endif
    4749
    4850
     
    5456 bldRTManifest_SOURCES  = RTManifest.cpp
    5557
    56  # RTSignTool - Signing utility - build version.  Signed on windows so we can get the certificate from it.
    57  BLDPROGS += bldRTSignTool
    58  bldRTSignTool_TEMPLATE = VBoxAdvBldProg
    59  bldRTSignTool_SOURCES = RTSignTool.cpp
    60  bldRTSignTool_DEFS = IPRT_IN_BUILD_TOOL
    61  bldRTSignTool_POST_CMDS.win = $(VBOX_SIGN_IMAGE_CMDS)
    62 
    6358 if !defined(VBOX_ONLY_EXTPACKS)
     59
     60  # RTSignTool - Signing utility - build version.  Signed on windows so we can get the certificate from it.
     61  BLDPROGS += bldRTSignTool
     62  bldRTSignTool_TEMPLATE = VBoxAdvBldProg
     63  bldRTSignTool_SOURCES = RTSignTool.cpp
     64  bldRTSignTool_DEFS = IPRT_IN_BUILD_TOOL
     65  bldRTSignTool_POST_CMDS.win = $(VBOX_SIGN_IMAGE_CMDS)
     66
    6467  # RTLdrCheckImports - import checker.
    6568  PROGRAMS += bldRTLdrCheckImports
     
    6770  bldRTLdrCheckImports_DEFS = IPRT_IN_BUILD_TOOL
    6871  bldRTLdrCheckImports_SOURCES = RTLdrCheckImports.cpp
     72
    6973 endif
    70 
    7174endif
    7275
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