Print this page
4896 Performance improvements for KCF AES modes

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/common/sys/crypto/impl.h
          +++ new/usr/src/uts/common/sys/crypto/impl.h
↓ open down ↓ 12 lines elided ↑ open up ↑
  13   13   * When distributing Covered Code, include this CDDL HEADER in each
  14   14   * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
  15   15   * If applicable, add the following below this CDDL HEADER, with the
  16   16   * fields enclosed by brackets "[]" replaced with your own identifying
  17   17   * information: Portions Copyright [yyyy] [name of copyright owner]
  18   18   *
  19   19   * CDDL HEADER END
  20   20   */
  21   21  /*
  22   22   * Copyright (c) 2003, 2010, Oracle and/or its affiliates. All rights reserved.
       23 + * Copyright 2015 by Saso Kiselkov. All rights reserved.
  23   24   */
  24   25  
  25   26  #ifndef _SYS_CRYPTO_IMPL_H
  26   27  #define _SYS_CRYPTO_IMPL_H
  27   28  
  28   29  /*
  29   30   * Kernel Cryptographic Framework private implementation definitions.
  30   31   */
  31   32  
  32   33  #include <sys/types.h>
↓ open down ↓ 1316 lines elided ↑ open up ↑
1349 1350  extern int crypto_mblk_data(crypto_data_t *, uchar_t *, int, cmd_type_t,
1350 1351      void *, void (*update)());
1351 1352  extern int crypto_put_output_data(uchar_t *, crypto_data_t *, int);
1352 1353  extern int crypto_get_input_data(crypto_data_t *, uchar_t **, uchar_t *);
1353 1354  extern int crypto_copy_key_to_ctx(crypto_key_t *, crypto_key_t **, size_t *,
1354 1355      int kmflag);
1355 1356  extern int crypto_digest_data(crypto_data_t *, void *, uchar_t *,
1356 1357      void (*update)(), void (*final)(), uchar_t);
1357 1358  extern int crypto_update_iov(void *, crypto_data_t *, crypto_data_t *,
1358 1359      int (*cipher)(void *, caddr_t, size_t, crypto_data_t *),
1359      -    void (*copy_block)(uint8_t *, uint64_t *));
     1360 +    void (*copy_block)(const uint8_t *, uint64_t *));
1360 1361  extern int crypto_update_uio(void *, crypto_data_t *, crypto_data_t *,
1361 1362      int (*cipher)(void *, caddr_t, size_t, crypto_data_t *),
1362      -    void (*copy_block)(uint8_t *, uint64_t *));
     1363 +    void (*copy_block)(const uint8_t *, uint64_t *));
1363 1364  extern int crypto_update_mp(void *, crypto_data_t *, crypto_data_t *,
1364 1365      int (*cipher)(void *, caddr_t, size_t, crypto_data_t *),
1365      -    void (*copy_block)(uint8_t *, uint64_t *));
     1366 +    void (*copy_block)(const uint8_t *, uint64_t *));
1366 1367  extern int crypto_get_key_attr(crypto_key_t *, crypto_attr_type_t, uchar_t **,
1367 1368      ssize_t *);
1368 1369  
1369 1370  /* Access to the provider's table */
1370 1371  extern void kcf_prov_tab_init(void);
1371 1372  extern int kcf_prov_tab_add_provider(kcf_provider_desc_t *);
1372 1373  extern int kcf_prov_tab_rem_provider(crypto_provider_id_t);
1373 1374  extern kcf_provider_desc_t *kcf_prov_tab_lookup_by_name(char *);
1374 1375  extern kcf_provider_desc_t *kcf_prov_tab_lookup_by_dev(char *, uint_t);
1375 1376  extern int kcf_get_hw_prov_tab(uint_t *, kcf_provider_desc_t ***, int,
↓ open down ↓ 35 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX