diff --git a/crypto/include/dap_pkey.h b/crypto/include/dap_pkey.h
index 869b4db840256a34be7fada5285a16c1a0e67ea4..00b5dcb263bf5b1efb2ce81a1f63d07a6db76bbe 100755
--- a/crypto/include/dap_pkey.h
+++ b/crypto/include/dap_pkey.h
@@ -155,10 +155,10 @@ DAP_STATIC_INLINE dap_pkey_type_t dap_pkey_type_from_enc_key_type(dap_enc_key_ty
 typedef struct dap_pkey {
     struct {
         dap_pkey_type_t type;   // Pkey type
-        uint32_t size;          // Pkey size
-    } DAP_ALIGN_PACKED header;
+        uint32_t size DAP_ALIGNED(4);          // Pkey size
+    } DAP_PACKED header;
     uint8_t pkey[];             // Raw pkey data
-} DAP_ALIGN_PACKED dap_pkey_t;
+} DAP_PACKED dap_pkey_t;
 
 DAP_STATIC_INLINE size_t dap_pkey_get_size(dap_pkey_t *a_pkey) { return sizeof(dap_pkey_t) + a_pkey->header.size; }