Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for bytesToPublicKey (0.49 sec)

  1. cmd/admin-handlers.go

    		return nil
    	case ci := <-resultCh:
    		out, err := json.MarshalIndent(ci, "", "  ")
    		if err != nil {
    			bugLogIf(ctx, err)
    			return nil
    		}
    		return out
    	}
    }
    
    func bytesToPublicKey(pub []byte) (*rsa.PublicKey, error) {
    	block, _ := pem.Decode(pub)
    	if block != nil {
    		pub = block.Bytes
    	}
    	key, err := x509.ParsePKCS1PublicKey(pub)
    	if err != nil {
    		return nil, err
    	}
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Mon Apr 29 17:39:04 GMT 2024
    - 97.8K bytes
    - Viewed (2)
Back to top