Subversion Repositories Kolibri OS

Rev

Rev 9216 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 9216 Rev 9990
Line 207... Line 207...
207
        DEBUGF  3, "SSH: Using RSA with SHA1 hash\n"
207
        DEBUGF  3, "SSH: Using RSA with SHA1 hash\n"
208
        add     esi, 4+4+7
208
        add     esi, 4+4+7
209
        push    esi
209
        push    esi
Line 210... Line 210...
210
 
210
 
211
; EMSA-PKCS1-v1_5
211
; EMSA-PKCS1-v1_5
212
        invoke  sha1_init, [h_ctx]
212
        invoke  sha1.init, [h_ctx]
213
        invoke  sha1_update, [h_ctx], [M], [message_len]
213
        invoke  sha1.update, [h_ctx], [M], [message_len]
Line 214... Line 214...
214
        invoke  sha1_finish, [h_ctx]
214
        invoke  sha1.finish, [h_ctx]
215
 
215
 
216
        mov     edi, [EM_accent]
216
        mov     edi, [EM_accent]
217
        mov     al, 0x00
217
        mov     al, 0x00
Line 241... Line 241...
241
        DEBUGF  3, "SSH: Using RSA with SHA2-256 hash\n"
241
        DEBUGF  3, "SSH: Using RSA with SHA2-256 hash\n"
242
        add     esi, 4+4+12
242
        add     esi, 4+4+12
243
        push    esi
243
        push    esi
Line 244... Line 244...
244
 
244
 
245
; EMSA-PKCS1-v1_5
245
; EMSA-PKCS1-v1_5
246
        invoke  sha2_256_init, [h_ctx]
246
        invoke  sha2_256.init, [h_ctx]
247
        invoke  sha2_256_update, [h_ctx], [M], [message_len]
247
        invoke  sha2_256.update, [h_ctx], [M], [message_len]
Line 248... Line 248...
248
        invoke  sha2_256_finish, [h_ctx]
248
        invoke  sha2_256.finish, [h_ctx]
249
 
249
 
250
        mov     edi, [EM_accent]
250
        mov     edi, [EM_accent]
251
        mov     al, 0x00
251
        mov     al, 0x00
Line 275... Line 275...
275
        DEBUGF  3, "SSH: Using RSA with SHA2-512 hash\n"
275
        DEBUGF  3, "SSH: Using RSA with SHA2-512 hash\n"
276
        add     esi, 4+4+12
276
        add     esi, 4+4+12
277
        push    esi
277
        push    esi
Line 278... Line 278...
278
 
278
 
279
; EMSA-PKCS1-v1_5
279
; EMSA-PKCS1-v1_5
280
        invoke  sha2_512_init, [h_ctx]
280
        invoke  sha2_512.init, [h_ctx]
281
        invoke  sha2_512_update, [h_ctx], [M], [message_len]
281
        invoke  sha2_512.update, [h_ctx], [M], [message_len]
Line 282... Line 282...
282
        invoke  sha2_512_finish, [h_ctx]
282
        invoke  sha2_512.finish, [h_ctx]
283
 
283
 
284
        mov     edi, [EM_accent]
284
        mov     edi, [EM_accent]
285
        mov     al, 0x00
285
        mov     al, 0x00