• David S. Miller's avatar
    sparc64: Unroll ECB decryption loops in AES driver. · 30101315
    David S. Miller authored
    Before:
    
    testing speed of ecb(aes) decryption
    test 0 (128 bit key, 16 byte blocks): 1 operation in 223 cycles (16 bytes)
    test 1 (128 bit key, 64 byte blocks): 1 operation in 230 cycles (64 bytes)
    test 2 (128 bit key, 256 byte blocks): 1 operation in 325 cycles (256 bytes)
    test 3 (128 bit key, 1024 byte blocks): 1 operation in 719 cycles (1024 bytes)
    test 4 (128 bit key, 8192 byte blocks): 1 operation in 4266 cycles (8192 bytes)
    test 5 (192 bit key, 16 byte blocks): 1 operation in 211 cycles (16 bytes)
    test 6 (192 bit key, 64 byte blocks): 1 operation in 234 cycles (64 bytes)
    test 7 (192 bit key, 256 byte blocks): 1 operation in 353 cycles (256 bytes)
    test 8 (192 bit key, 1024 byte blocks): 1 operation in 808 cycles (1024 bytes)
    test 9 (192 bit key, 8192 byte blocks): 1 operation in 5344 cycles (8192 bytes)
    test 10 (256 bit key, 16 byte blocks): 1 operation in 214 cycles (16 bytes)
    test 11 (256 bit key, 64 byte blocks): 1 operation in 243 cycles (64 bytes)
    test 12 (256 bit key, 256 byte blocks): 1 operation in 393 cycles (256 bytes)
    test 13 (256 bit key, 1024 byte blocks): 1 operation in 939 cycles (1024 bytes)
    test 14 (256 bit key, 8192 byte blocks): 1 operation in 6039 cycles (8192 bytes)
    
    After:
    
    testing speed of ecb(aes) decryption
    test 0 (128 bit key, 16 byte blocks): 1 operation in 226 cycles (16 bytes)
    test 1 (128 bit key, 64 byte blocks): 1 operation in 231 cycles (64 bytes)
    test 2 (128 bit key, 256 byte blocks): 1 operation in 313 cycles (256 bytes)
    test 3 (128 bit key, 1024 byte blocks): 1 operation in 681 cycles (1024 bytes)
    test 4 (128 bit key, 8192 byte blocks): 1 operation in 3964 cycles (8192 bytes)
    test 5 (192 bit key, 16 byte blocks): 1 operation in 205 cycles (16 bytes)
    test 6 (192 bit key, 64 byte blocks): 1 operation in 240 cycles (64 bytes)
    test 7 (192 bit key, 256 byte blocks): 1 operation in 341 cycles (256 bytes)
    test 8 (192 bit key, 1024 byte blocks): 1 operation in 770 cycles (1024 bytes)
    test 9 (192 bit key, 8192 byte blocks): 1 operation in 5050 cycles (8192 bytes)
    test 10 (256 bit key, 16 byte blocks): 1 operation in 216 cycles (16 bytes)
    test 11 (256 bit key, 64 byte blocks): 1 operation in 250 cycles (64 bytes)
    test 12 (256 bit key, 256 byte blocks): 1 operation in 371 cycles (256 bytes)
    test 13 (256 bit key, 1024 byte blocks): 1 operation in 869 cycles (1024 bytes)
    test 14 (256 bit key, 8192 byte blocks): 1 operation in 5494 cycles (8192 bytes)
    Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
    30101315
aes_asm.S 37.6 KB