apache-mynewt-bot removed a comment on issue #2175: da1469x: add initial crypto 
driver
URL: https://github.com/apache/mynewt-core/pull/2175#issuecomment-581078817
 
 
   
   <!-- style-bot -->
   
   ## Style check summary
   
   ### Our coding style is 
[here!](https://github.com/apache/mynewt-core/blob/master/CODING_STANDARDS.md)
   
   
   #### hw/drivers/crypto/crypto_da1469x/src/crypto_da1469x.c
   <details>
   
   ```diff
   @@ -30,7 +30,7 @@
    
    static bool
    da1469x_has_support(struct crypto_dev *crypto, uint8_t op, uint16_t algo,
   -        uint16_t mode, uint16_t keylen)
   +                    uint16_t mode, uint16_t keylen)
    {
        (void)op;
    
   @@ -50,8 +50,8 @@
    
    static uint32_t
    da1469x_crypto_op(struct crypto_dev *crypto, uint8_t op, uint16_t algo,
   -        uint16_t mode, const uint8_t *key, uint16_t keylen, uint8_t *iv,
   -        const uint8_t *inbuf, uint8_t *outbuf, uint32_t len)
   +                  uint16_t mode, const uint8_t *key, uint16_t keylen, 
uint8_t *iv,
   +                  const uint8_t *inbuf, uint8_t *outbuf, uint32_t len)
    {
        uint8_t i;
        uint8_t iv_save[AES_BLOCK_LEN];
   @@ -157,7 +157,7 @@
         * FIXME: refactor busy wait!?
         */
        while (!(AES_HASH->CRYPTO_STATUS_REG &
   -                AES_HASH_CRYPTO_STATUS_REG_CRYPTO_INACTIVE_Msk));
   +             AES_HASH_CRYPTO_STATUS_REG_CRYPTO_INACTIVE_Msk));
    
        /*
         * Update crypto framework internals
   @@ -189,8 +189,8 @@
    
    static uint32_t
    da1469x_crypto_encrypt(struct crypto_dev *crypto, uint16_t algo, uint16_t 
mode,
   -        const uint8_t *key, uint16_t keylen, uint8_t *iv, const uint8_t 
*inbuf,
   -        uint8_t *outbuf, uint32_t len)
   +                       const uint8_t *key, uint16_t keylen, uint8_t *iv, 
const uint8_t *inbuf,
   +                       uint8_t *outbuf, uint32_t len)
    {
        return da1469x_crypto_op(crypto, CRYPTO_OP_ENCRYPT, algo, mode, key,
                keylen, iv, inbuf, outbuf, len);
   @@ -198,8 +198,8 @@
    
    static uint32_t
    da1469x_crypto_decrypt(struct crypto_dev *crypto, uint16_t algo, uint16_t 
mode,
   -        const uint8_t *key, uint16_t keylen, uint8_t *iv, const uint8_t 
*inbuf,
   -        uint8_t *outbuf, uint32_t len)
   +                       const uint8_t *key, uint16_t keylen, uint8_t *iv, 
const uint8_t *inbuf,
   +                       uint8_t *outbuf, uint32_t len)
    {
        return da1469x_crypto_op(crypto, CRYPTO_OP_DECRYPT, algo, mode, key,
                keylen, iv, inbuf, outbuf, len);
   ```
   
   </details>

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services

Reply via email to