C# 클래스 StreamCryptor.Model.EncryptedFileHeader

파일 보기 프로젝트 열기: bitbeans/StreamCryptor 1 사용 예제들

Private Properties

프로퍼티 타입 설명

공개 메소드들

메소드 설명
EncryptedFileHeader ( ) : System

Initialize the EncryptedFileHeader for decryption.

Used for decryption.

EncryptedFileHeader ( int currentVersion, int nonceLength, int chunkBaseNonceLength, long unencryptedFileLength, byte senderPrivateKey, byte senderPublicKey, byte recipientPublicKey ) : System

Initialize the EncryptedFileHeader for encryption.

ProtectFileName ( string fileName, int fileNameLength ) : void

Encrypts the file name.

SetHeaderChecksum ( int headerChecksumLength ) : void

Sets the header checksum.

ValidateHeaderChecksum ( byte ephemeralKey, int headerChecksumLength ) : void

Validates the header checksum.

메소드 상세

EncryptedFileHeader() 공개 메소드

Initialize the EncryptedFileHeader for decryption.
Used for decryption.
public EncryptedFileHeader ( ) : System
리턴 System

EncryptedFileHeader() 공개 메소드

Initialize the EncryptedFileHeader for encryption.
public EncryptedFileHeader ( int currentVersion, int nonceLength, int chunkBaseNonceLength, long unencryptedFileLength, byte senderPrivateKey, byte senderPublicKey, byte recipientPublicKey ) : System
currentVersion int The StreamCryptor version.
nonceLength int The length which nonces will be generated.
chunkBaseNonceLength int The length of the base nonce.
unencryptedFileLength long The length of unencrypted file.
senderPrivateKey byte The senders private key.
senderPublicKey byte The senders public key.
recipientPublicKey byte The recipient public key.
리턴 System

ProtectFileName() 공개 메소드

Encrypts the file name.
public ProtectFileName ( string fileName, int fileNameLength ) : void
fileName string The file name.
fileNameLength int The length it will be filled up.
리턴 void

SetHeaderChecksum() 공개 메소드

Sets the header checksum.
public SetHeaderChecksum ( int headerChecksumLength ) : void
headerChecksumLength int The length of the checksum.
리턴 void

ValidateHeaderChecksum() 공개 메소드

Validates the header checksum.
public ValidateHeaderChecksum ( byte ephemeralKey, int headerChecksumLength ) : void
ephemeralKey byte A 64 byte key.
headerChecksumLength int The length of the checksum.
리턴 void