Decode generic IKE payload header

-Add a new IkePayload type and relevant enums
-Decode IkeMessage body into a List of generic IkePayloads
-Fix a signed-overflow bug in decoding IKE major version

IkePayload is currently instantiated by a constructor; following
CLs will implement a factory to instantiate different subclasses
of IkePayload according to its type.

Bug: 110435061
Test: FrameworksIkeTests - testDecodeIkePayload
Change-Id: Ia3f78bf58f6e7e058140a669be6cfbc658bf8701
4 files changed
tree: 2d766e55fd8536f8eeaa7affda60886f28717cb4
  1. src/
  2. tests/
  3. Android.mk
  4. OWNERS
  5. PREUPLOAD.cfg
  6. README.md
README.md

IKEv2 Library for Android

Introduction

This IKEv2 library is an in-process client library implementing the IKEv2 protocol as well as extensions necessary for the support of IWLAN. It is designed to work in a non-privileged fashion on top of the Android IPsec API surface.