Ignore:
Timestamp:
Jun 22, 2021, 9:00:19 PM (3 years ago)
Author:
coas-nagasima
Message:

WolfSSLとAzure IoT SDKを更新

Location:
azure_iot_hub_f767zi/trunk/wolfssl-4.7.0
Files:
1 edited
1 moved

Legend:

Unmodified
Added
Removed
  • azure_iot_hub_f767zi/trunk/wolfssl-4.7.0/wolfcrypt/src/des3.c

    r457 r464  
    346346    }
    347347
    348     static void Des3Crypt(Des3* des, byte* out, const byte* in, word32 sz,
     348    static int Des3Crypt(Des3* des, byte* out, const byte* in, word32 sz,
    349349                   int dir)
    350350    {
     
    461461        }
    462462    #endif /* WOLFSSL_STM32_CUBEMX */
     463        return 0;
    463464    }
    464465
    465466    int wc_Des3_CbcEncrypt(Des3* des, byte* out, const byte* in, word32 sz)
    466467    {
    467         Des3Crypt(des, out, in, sz, DES_ENCRYPTION);
    468         return 0;
     468        return Des3Crypt(des, out, in, sz, DES_ENCRYPTION);
    469469    }
    470470
    471471    int wc_Des3_CbcDecrypt(Des3* des, byte* out, const byte* in, word32 sz)
    472472    {
    473         Des3Crypt(des, out, in, sz, DES_DECRYPTION);
    474         return 0;
     473        return Des3Crypt(des, out, in, sz, DES_DECRYPTION);
    475474    }
    476475
     
    11721171
    11731172    /* permuted choice table (key) */
    1174     static const byte pc1[] = {
     1173    static const FLASH_QUALIFIER byte pc1[] = {
    11751174           57, 49, 41, 33, 25, 17,  9,
    11761175            1, 58, 50, 42, 34, 26, 18,
     
    11851184
    11861185    /* number left rotations of pc1 */
    1187     static const byte totrot[] = {
     1186    static const FLASH_QUALIFIER byte totrot[] = {
    11881187           1,2,4,6,8,10,12,14,15,17,19,21,23,25,27,28
    11891188    };
    11901189
    11911190    /* permuted choice key (table) */
    1192     static const byte pc2[] = {
     1191    static const FLASH_QUALIFIER byte pc2[] = {
    11931192           14, 17, 11, 24,  1,  5,
    11941193            3, 28, 15,  6, 21, 10,
     
    12041203
    12051204    /* bit 0 is left-most in byte */
    1206     static const int bytebit[] = {
     1205    static const FLASH_QUALIFIER int bytebit[] = {
    12071206        0200,0100,040,020,010,04,02,01
    12081207    };
    12091208
    1210     static const word32 Spbox[8][64] = {
     1209    static const FLASH_QUALIFIER word32 Spbox[8][64] = {
    12111210    {   0x01010400,0x00000000,0x00010000,0x01010404,
    12121211        0x01010004,0x00010404,0x00000004,0x00010000,
Note: See TracChangeset for help on using the changeset viewer.