The Design and Implementation of the FreeBSD Operating System, Second Edition
Now available: The Design and Implementation of the FreeBSD Operating System (Second Edition)


[ source navigation ] [ diff markup ] [ identifier search ] [ freetext search ] [ file search ] [ list types ] [ track identifier ]

FreeBSD/Linux Kernel Cross Reference
sys/crypto/openssl/ossl_aarch64.h

Version: -  FREEBSD  -  FREEBSD-13-STABLE  -  FREEBSD-13-0  -  FREEBSD-12-STABLE  -  FREEBSD-12-0  -  FREEBSD-11-STABLE  -  FREEBSD-11-0  -  FREEBSD-10-STABLE  -  FREEBSD-10-0  -  FREEBSD-9-STABLE  -  FREEBSD-9-0  -  FREEBSD-8-STABLE  -  FREEBSD-8-0  -  FREEBSD-7-STABLE  -  FREEBSD-7-0  -  FREEBSD-6-STABLE  -  FREEBSD-6-0  -  FREEBSD-5-STABLE  -  FREEBSD-5-0  -  FREEBSD-4-STABLE  -  FREEBSD-3-STABLE  -  FREEBSD22  -  l41  -  OPENBSD  -  linux-2.6  -  MK84  -  PLAN9  -  xnu-8792 
SearchContext: -  none  -  3  -  10 

    1 /*
    2  * Copyright 1995-2016 The OpenSSL Project Authors. All Rights Reserved.
    3  *
    4  * Licensed under the OpenSSL license (the "License").  You may not use
    5  * this file except in compliance with the License.  You can obtain a copy
    6  * in the file LICENSE in the source distribution or at
    7  * https://www.openssl.org/source/license.html
    8  */
    9 
   10 #ifndef __OSSL_AARCH64__
   11 #define __OSSL_AARCH64__
   12 
   13 #include <crypto/openssl/ossl.h>
   14 #include <crypto/openssl/ossl_cipher.h>
   15 #include <crypto/openssl/aarch64/arm_arch.h>
   16 
   17 /* aesv8-armx.S */
   18 ossl_cipher_encrypt_t aes_v8_cbc_encrypt;
   19 /* vpaes-armv8.S */
   20 ossl_cipher_encrypt_t vpaes_cbc_encrypt;
   21 
   22 static void
   23 AES_CBC_ENCRYPT(const unsigned char *in, unsigned char *out,
   24     size_t length, const void *key, unsigned char *iv, int encrypt)
   25 {
   26         if (OPENSSL_armcap_P & ARMV8_AES)
   27                 aes_v8_cbc_encrypt(in, out, length, key, iv, encrypt);
   28         else
   29                 vpaes_cbc_encrypt(in, out, length, key, iv, encrypt);
   30 }
   31 #endif

Cache object: 7b6d6630d9b000fa37cc76ff0d95f69c


[ source navigation ] [ diff markup ] [ identifier search ] [ freetext search ] [ file search ] [ list types ] [ track identifier ]


This page is part of the FreeBSD/Linux Linux Kernel Cross-Reference, and was automatically generated using a modified version of the LXR engine.