Giter Site home page Giter Site logo

line / aes-gcm-siv Goto Github PK

View Code? Open in Web Editor NEW
31.0 8.0 3.0 219 KB

AES-GCM-SIV (RFC 8452) implementation for C, Android and Java, with hardware acceleration support.

License: Apache License 2.0

CMake 2.19% Swift 0.11% Java 32.32% C 35.03% C++ 30.34%
aead aes-gcm-siv crypto cryptography rfc8452 android c java

aes-gcm-siv's Introduction

AES-GCM-SIV Library

Overview

AES-GCM-SIV is an authenticated encryption algorithm designed to provide nonce misuse resistance, and is specified in RFC 8452.

This repository provides C, Android, and Java implementations, and is optimized for high-performance in architectures with cryptographic hardware accelerators.

Table of Contents

Getting started

C

The C implementation of AES-GCM-SIV provides the core functionality of the library, and is located in the lib repository. It is optimized for high-performance encryption and decryption in specific CPU architecture.

Detailed instructions are available in this README.md.

Android

The Android implementation is done with a JNI (Java Native Interface) wrapper over the C implementation. This allows to take advantage of the optimized C code when it is supported by the runtime architecture. The JNI bindings are in the jni repository, and the Android code is located in the android repository.

Detailed instructions are available in this README.md.

Java

The Java implementation is done with a JNI (Java Native Interface) wrapper over the C implementation. This allows to take advantage of the optimized C code when it is supported by the runtime architecture. The JNI bindings are in the jni repository, and the Java code is located in the java repository.

Detailed instructions are available in this README.md.

How to contribute

We welcome your various contributions, including bug fixes, vulnerability reports, and more. Please see the CONTRIBUTING.md file for details.

License

This library is provided under Apache 2.0 license. In accordance with the Apache 2.0 license terms, users MUST distribute a copy of the Apache 2.0 license with the product using this library.

Additionally, the software-based AES implementation is taken from Mbed TLS, which is also distributed under the Apache 2.0 license.

Some modifications have been made to better suit the aes-gcm-siv library, and the modified source files retain the original copyright information, with additional notice that they have been modified. The concerned files are the following:

  • lib/src/generic/aes_mbedtls.c
  • lib/src/generic/aes_mbedtls.h

Further reading

More details on how the library has been optimized can be found in our blog post (available in English, Japanese and Korean):

aes-gcm-siv's People

Contributors

juh0ng avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.