SymmetricAlgorithm.TryEncryptCfbCore 메서드
이 문서의 내용
정의
중요
일부 정보는 릴리스되기 전에 상당 부분 수정될 수 있는 시험판 제품과 관련이 있습니다. Microsoft는 여기에 제공된 정보에 대해 어떠한 명시적이거나 묵시적인 보증도 하지 않습니다.
파생 클래스에서 재정의된 경우 지정된 패딩 모드 및 피드백 크기와 함께 CFB 모드를 사용하여 데이터를 지정된 버퍼로 암호화하려고 시도합니다.
protected:
virtual bool TryEncryptCfbCore(ReadOnlySpan<System::Byte> plaintext, ReadOnlySpan<System::Byte> iv, Span<System::Byte> destination, System::Security::Cryptography::PaddingMode paddingMode, int feedbackSizeInBits, [Runtime::InteropServices::Out] int % bytesWritten);
protected virtual bool TryEncryptCfbCore(ReadOnlySpan<byte> plaintext, ReadOnlySpan<byte> iv, Span<byte> destination, System.Security.Cryptography.PaddingMode paddingMode, int feedbackSizeInBits, out int bytesWritten);
abstract member TryEncryptCfbCore : ReadOnlySpan<byte> * ReadOnlySpan<byte> * Span<byte> * System.Security.Cryptography.PaddingMode * int * int -> bool
override this.TryEncryptCfbCore : ReadOnlySpan<byte> * ReadOnlySpan<byte> * Span<byte> * System.Security.Cryptography.PaddingMode * int * int -> bool
Protected Overridable Function TryEncryptCfbCore (plaintext As ReadOnlySpan(Of Byte), iv As ReadOnlySpan(Of Byte), destination As Span(Of Byte), paddingMode As PaddingMode, feedbackSizeInBits As Integer, ByRef bytesWritten As Integer) As Boolean
- plaintext
- ReadOnlySpan<Byte>
암호화할 데이터입니다.
- iv
- ReadOnlySpan<Byte>
초기화 벡터입니다.
- paddingMode
- PaddingMode
암호 텍스트를 생성하고 암호 해독 중에 제거하는 데 사용되는 패딩 모드입니다.
- feedbackSizeInBits
- Int32
비트 단위로 지정된 피드백 크기입니다.
- bytesWritten
- Int32
이 메서드가 반환되면 에 기록 destination
된 총 바이트 수가 포함됩니다.
true
가 암호화된 데이터를 받을 만큼 충분히 크면 destination
이고, false
그렇지 않으면 입니다.
파생 클래스가 구현을 제공하지 않았습니다.
파생 클래스는 이를 재정의하고 구현을 제공해야 합니다.
이 메서드의 구현은 정확하게 작성해야 합니다.
GetCiphertextLengthCfb(plaintext.Length, paddingMode, feedbackSizeInBits)
에 바이트를 지정 destination
하고 를 통해 bytesWritten
보고합니다.
적용 대상
제품 | 버전 |
---|---|
.NET | 6, 7, 8, 9, 10 |
.NET 피드백
.NET은(는) 오픈 소스 프로젝트입니다. 다음 링크를 선택하여 피드백을 제공해 주세요.