mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-08-31 18:02:20 +00:00
Fix typo [skip ci]
This commit is contained in:
parent
e0abfd0f66
commit
648e414f69
@ -504,7 +504,7 @@ static NSData *encryptRSAModernPadding(id<EncryptionProvider> encryptionProvider
|
||||
}
|
||||
[bignumContext assignBinTo:bignumKeyAesEncrypted value:keyAesEncrypted];
|
||||
int compareResult = [bignumContext compare:rsaModule with:bignumKeyAesEncrypted];
|
||||
if (compareResult == -1) {
|
||||
if (compareResult < 0) {
|
||||
continue;
|
||||
}
|
||||
|
||||
@ -513,7 +513,7 @@ static NSData *encryptRSAModernPadding(id<EncryptionProvider> encryptionProvider
|
||||
[paddedEncryptedData appendData:encryptedData];
|
||||
while (paddedEncryptedData.length < 256) {
|
||||
uint8_t zero = 0;
|
||||
[paddedEncryptedData replaceBytesInRange:NSMakeRange(0, 0) withBytes:&zero];
|
||||
[paddedEncryptedData replaceBytesInRange:NSMakeRange(0, 0) withBytes:&zero length:1];
|
||||
}
|
||||
|
||||
if (paddedEncryptedData.length != 256) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user