forums.ps2dev.org Forum Index forums.ps2dev.org
Homebrew PS2, PSP & PS3 Development Discussions
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

GPG library for the psp

 
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP Development
View previous topic :: View next topic  
Author Message
coolkehon



Joined: 20 Oct 2008
Posts: 355

PostPosted: Sun Oct 11, 2009 2:28 am    Post subject: GPG library for the psp Reply with quote

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)?
Back to top
View user's profile Send private message MSN Messenger
jojojoris



Joined: 30 Mar 2008
Posts: 261

PostPosted: Sun Oct 11, 2009 4:49 pm    Post subject: Reply with quote

by name is jojojoris

and

I will try to port as soon as possible.
_________________
Code:
int main(){
     SetupCallbacks();
     makeNiceGame();
     sceKernelExitGame();
}
Back to top
View user's profile Send private message
coolkehon



Joined: 20 Oct 2008
Posts: 355

PostPosted: Mon Oct 12, 2009 2:11 am    Post subject: Reply with quote

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
Back to top
View user's profile Send private message MSN Messenger
jojojoris



Joined: 30 Mar 2008
Posts: 261

PostPosted: Mon Oct 12, 2009 5:02 am    Post subject: Reply with quote

I'm afraid i am not able to port the GnuGP lib. It depends on a lib which i failed to port (libGcrypt).
_________________
Code:
int main(){
     SetupCallbacks();
     makeNiceGame();
     sceKernelExitGame();
}
Back to top
View user's profile Send private message
coolkehon



Joined: 20 Oct 2008
Posts: 355

PostPosted: Mon Oct 12, 2009 8:41 am    Post subject: Reply with quote

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:
#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)
Back to top
View user's profile Send private message MSN Messenger
Display posts from previous:   
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP Development All times are GMT + 10 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group