msfshashes

package
v0.0.0-...-84da98f Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2013 License: MIT Imports: 14 Imported by: 0

Documentation

Overview

msfshashes (in msfshashes.go) implements msfs hash functionality

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetPKI

func GetPKI(rsaName string) (*rsa.PrivateKey, []byte, error)

GetPKI retrieves 'rputn' RSA public and private key values

func Sha224base64

func Sha224base64(item []byte) (string, []byte)

Sha224base64 performs a sha224 hash on a byte array and then perfroms a base64 encoding on the result.

func Sign64

func Sign64(rsakey *rsa.PrivateKey, item []byte) (string, []byte)

Sign64 signs a byte array with a private key.

func Un64

func Un64(hash64val string) ([]byte, error)

Un64 decodes a base-64 encoded hash string and returns a byte array or an error.

Types

type HSC

type HSC struct {
	PrivKey *rsa.PrivateKey
	PubCert []byte
}

HSC implements the hash store client

func (*HSC) Prepare

func (hsc *HSC) Prepare(rsaName string) error

type HSS

type HSS struct{}

HSS implements the hash store server

func (*HSS) Prepare

func (hss *HSS) Prepare(destination string) fuse.Error

Jump to

Keyboard shortcuts

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