C# 클래스 Microsoft.Protocols.TestSuites.MS_WOPI.RSACryptoContext

A class is used to support RSA crypt operation.
파일 보기 프로젝트 열기: OfficeDev/Interop-TestSuites 1 사용 예제들

공개 메소드들

메소드 설명
SignDataWithCurrentPublicKey ( byte originalData ) : byte[]

A method is used to sign the data with current key-pairs. The signed data only pass the validation by using current public key.

SignDataWithOldPublicKey ( byte originalData ) : byte[]

A method is used to sign the data with old key-pairs. The signed data only pass the validation by using old public key.

VerifySignedDataUsingCurrentKey ( byte signedData, byte originalData ) : bool

A method is used to validate the signed data by using current public key.

VerifySignedDataUsingOldKey ( byte signedData, byte originalData ) : bool

A method is used to validate the signed data by using old public key.

비공개 메소드들

메소드 설명
SignData ( byte originalData, byte fullkeyBlob ) : byte[]

A method is used to sign the data with specified key-pairs. The signed data only pass the validation by using the public key part of the specified key-pairs.

VerifySignedData ( byte signedData, byte originalData, byte publicKeyBlob ) : bool

A method is used to validate the signed data by using specified public key.

메소드 상세

SignDataWithCurrentPublicKey() 공개 정적인 메소드

A method is used to sign the data with current key-pairs. The signed data only pass the validation by using current public key.
public static SignDataWithCurrentPublicKey ( byte originalData ) : byte[]
originalData byte A parameter represents the binaries data which will be signed with current key-pairs.
리턴 byte[]

SignDataWithOldPublicKey() 공개 정적인 메소드

A method is used to sign the data with old key-pairs. The signed data only pass the validation by using old public key.
public static SignDataWithOldPublicKey ( byte originalData ) : byte[]
originalData byte A parameter represents the binaries data which will be signed with old key-pairs.
리턴 byte[]

VerifySignedDataUsingCurrentKey() 공개 정적인 메소드

A method is used to validate the signed data by using current public key.
public static VerifySignedDataUsingCurrentKey ( byte signedData, byte originalData ) : bool
signedData byte A parameter represents the signed data which will be validate.
originalData byte A parameter represents the original data which is used to execute the validation.
리턴 bool

VerifySignedDataUsingOldKey() 공개 정적인 메소드

A method is used to validate the signed data by using old public key.
public static VerifySignedDataUsingOldKey ( byte signedData, byte originalData ) : bool
signedData byte A parameter represents the signed data which will be validate.
originalData byte A parameter represents the original data which is used to execute the validation.
리턴 bool