GPG library for the psp

Discuss the development of new homebrew software, tools and libraries.

Moderators: cheriff, TyRaNiD

Post Reply
coolkehon
Posts: 355
Joined: Mon Oct 20, 2008 5:44 am

GPG library for the psp

Post by coolkehon »

I know that hashlib, cryptopp, and openssl have been ported to the psp (thanks jojojarias) but is there a gpg library for the psp? or is there a library that might be capable of being ported to the psp (I may try to port)?
jojojoris
Posts: 255
Joined: Sun Mar 30, 2008 4:06 am

Post by jojojoris »

by name is jojojoris

and

I will try to port as soon as possible.

Code: Select all

int main(){
     SetupCallbacks();
     makeNiceGame();
     sceKernelExitGame();
}
coolkehon
Posts: 355
Joined: Mon Oct 20, 2008 5:44 am

Post by coolkehon »

well what's the library called because i could use one for the pc side to learn with right now. I'm not sure if the others are cross-platform enough
jojojoris
Posts: 255
Joined: Sun Mar 30, 2008 4:06 am

Post by jojojoris »

I'm afraid i am not able to port the GnuGP lib. It depends on a lib which i failed to port (libGcrypt).

Code: Select all

int main(){
     SetupCallbacks();
     makeNiceGame();
     sceKernelExitGame();
}
coolkehon
Posts: 355
Joined: Mon Oct 20, 2008 5:44 am

Post by coolkehon »

no worries I'll just use the rsa in cryptopp also I wanted the CMAC mode of operation so I went a head and modified your makefile to compile the latest rev 477 from the cryptopp repo on sourceforge here it is

Code: Select all

#makfile originally by jojojaris
#but modified to port cryptopp 5.6.0 rev 447 by coolkehon

PREFIX=$(shell psp-config –psp-prefix)

PREFIX=/usr/local/pspdev/psp



TARGET_LIB = libcryptopp.a

SRCS = $(wildcard *.cpp)

ifeq ($(SRCS),)				# workaround wildcard function bug in GNU Make 3.77

SRCS = $(shell echo *.cpp)

endif

#pre objects so that they can be removed

PRE_OBJS = $(SRCS:.cpp=.o)
#here to remove the test objects from library
TESTOBJS = bench.o bench2.o test.o validat1.o validat2.o validat3.o adhoc.o datatest.o regtest.o fipsalgt.o dlltest.o
OBJS = $(filter-out $(TESTOBJS),$(PRE_OBJS))



INCDIR =

CFLAGS = -O2 -G0 -Wall

CXXFLAGS = $(CFLAGS)

ASFLAGS = $(CFLAGS)



LIBDIR =

#LDFLAGS = -flat_namespace -undefined suppress -m

LDFLAGS =

LIBS=-lstdc++



PSPSDK=$(shell psp-config --pspsdk-path)

include $(PSPSDK)/lib/build.mak



install:

	mkdir -p $(PREFIX)/include/cryptopp

	cp *.h $(PREFIX)/include/cryptopp

	cp *.a $(PREFIX)/lib

tell:

	echo $(PREFIX)
Post Reply