hpke

package
v0.0.7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 28, 2026 License: CC0-1.0 Imports: 5 Imported by: 0

Documentation

Overview

Package hpke provides Go bindings for android.crypto.hpke.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Init

func Init(env *jni.Env) error

Init resolves all JNI class and method references for this package. It is safe to call multiple times (uses sync.Once internally). Exported for E2E testing on Android.

Types

type Spi

type Spi struct {
	VM  *jni.VM
	Obj *jni.GlobalRef
}

Spi wraps android.crypto.hpke.HpkeSpi.

func (*Spi) EngineExport

func (m *Spi) EngineExport(arg0 int32, arg1 *jni.Object) (*jni.Object, error)

EngineExport calls android.crypto.hpke.HpkeSpi.engineExport.

func (*Spi) EngineInitRecipient

func (m *Spi) EngineInitRecipient(
	arg0 *jni.Object,
	arg1 *jni.Object,
	arg2 *jni.Object,
	arg3 *jni.Object,
	arg4 *jni.Object,
	arg5 *jni.Object,
) error

EngineInitRecipient calls android.crypto.hpke.HpkeSpi.engineInitRecipient.

func (*Spi) EngineInitSender

func (m *Spi) EngineInitSender(
	arg0 *jni.Object,
	arg1 *jni.Object,
	arg2 *jni.Object,
	arg3 *jni.Object,
	arg4 *jni.Object,
) error

EngineInitSender calls android.crypto.hpke.HpkeSpi.engineInitSender.

func (*Spi) EngineInitSenderWithSeed

func (m *Spi) EngineInitSenderWithSeed(
	arg0 *jni.Object,
	arg1 *jni.Object,
	arg2 *jni.Object,
	arg3 *jni.Object,
	arg4 *jni.Object,
	arg5 *jni.Object,
) error

EngineInitSenderWithSeed calls android.crypto.hpke.HpkeSpi.engineInitSenderWithSeed.

func (*Spi) EngineOpen

func (m *Spi) EngineOpen(arg0 *jni.Object, arg1 *jni.Object) (*jni.Object, error)

EngineOpen calls android.crypto.hpke.HpkeSpi.engineOpen.

func (*Spi) EngineSeal

func (m *Spi) EngineSeal(arg0 *jni.Object, arg1 *jni.Object) (*jni.Object, error)

EngineSeal calls android.crypto.hpke.HpkeSpi.engineSeal.

func (*Spi) GetEncapsulated

func (m *Spi) GetEncapsulated() (*jni.Object, error)

GetEncapsulated calls android.crypto.hpke.HpkeSpi.getEncapsulated.

type XdhKeySpec

type XdhKeySpec struct {
	VM  *jni.VM
	Obj *jni.GlobalRef
}

XdhKeySpec wraps android.crypto.hpke.XdhKeySpec.

func NewXdhKeySpec

func NewXdhKeySpec(vm *jni.VM, arg0 *jni.Object) (*XdhKeySpec, error)

NewXdhKeySpec creates a new android.crypto.hpke.XdhKeySpec instance.

func (*XdhKeySpec) Equals

func (m *XdhKeySpec) Equals(arg0 *jni.Object) (bool, error)

Equals calls android.crypto.hpke.XdhKeySpec.equals.

func (*XdhKeySpec) GetFormat

func (m *XdhKeySpec) GetFormat() (string, error)

GetFormat calls android.crypto.hpke.XdhKeySpec.getFormat.

func (*XdhKeySpec) GetKey

func (m *XdhKeySpec) GetKey() (*jni.Object, error)

GetKey calls android.crypto.hpke.XdhKeySpec.getKey.

func (*XdhKeySpec) HashCode

func (m *XdhKeySpec) HashCode() (int32, error)

HashCode calls android.crypto.hpke.XdhKeySpec.hashCode.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL